:root {
  --bg: #f4f6f8;
  --card: #fff;
  --text: #1a1a1a;
  --muted: #5f6368;
  --accent: #1a73e8;
  --error: #b00020;
  --note: #fff8e1;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: #202124;
  color: #fff;
}
.brand { font-weight: 600; }
.top nav a { color: #cbd5e1; margin-left: 1rem; text-decoration: none; }
.top .user { margin-right: 0.5rem; color: #94a3b8; }
.container { max-width: 720px; margin: 1.5rem auto; padding: 0 1rem; }
.card {
  background: var(--card);
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  display: grid;
  gap: 1rem;
}
label { display: grid; gap: 0.35rem; font-weight: 500; }
input[type=text], input[type=password], input[type=file], select {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.65rem 1rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  width: fit-content;
}
.error { color: var(--error); }
.note { background: var(--note); padding: 0.75rem; border-radius: 4px; }
.muted { color: var(--muted); font-size: 0.95rem; }
.service-list { list-style: none; padding: 0; }
.service-list li { margin: 0.75rem 0; }
.service-list a { font-weight: 600; }
.hidden { display: none; }
.spinner {
  width: 28px; height: 28px;
  border: 3px solid #ddd;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 1rem 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.section-title { margin: 0 0 0.25rem; font-size: 1.1rem; }
.action-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
button:disabled { opacity: 0.6; cursor: not-allowed; }
button.secondary {
  background: #5f6368;
}
.progress {
  height: 8px;
  background: #e8eaed;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}
.upload-results { padding-left: 1.25rem; }
.upload-results li { margin: 0.35rem 0; }
.file-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.file-table th,
.file-table td {
  padding: 0.5rem 0.35rem;
  border-bottom: 1px solid #e8eaed;
  text-align: left;
  vertical-align: middle;
}
.file-table th:last-child,
.file-table td:last-child {
  text-align: right;
  white-space: nowrap;
}
button.danger {
  background: var(--error);
  padding: 0.35rem 0.65rem;
  font-size: 0.9rem;
}
