/* CloudDrive —— 轻量云盘界面样式
   设计基调：浅色石板底 + 单一蓝色强调，信息密度优先，移动端折叠为卡片列表 */

:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #5f6b7c;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-weak: #eff6ff;
  --danger: #dc2626;
  --danger-weak: #fef2f2;
  --ok: #15803d;
  --ok-weak: #f0fdf4;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #111a2e;
    --surface-soft: #16213a;
    --ink: #e8eefb;
    --ink-soft: #c3cee3;
    --muted: #93a3bd;
    --line: #253148;
    --line-strong: #33415c;
    --brand: #60a5fa;
    --brand-dark: #3b82f6;
    --brand-weak: #16233c;
    --danger: #f87171;
    --danger-weak: #2a1620;
    --ok: #4ade80;
    --ok-weak: #122a1e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 8px 24px rgba(0, 0, 0, .45);
  }

}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .86em;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1em .4em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
}
.skip-link:focus { left: 16px; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- 品牌 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #3b82f6, #2563eb 55%, #1e40af);
  box-shadow: 0 6px 14px rgba(37, 99, 235, .28);
  flex: none;
}
.brand-mark svg { width: 21px; height: 21px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; font-size: 15px; }
.brand-text small {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.brand-lg { gap: 12px; }
.brand-lg .brand-mark { width: 44px; height: 44px; border-radius: 13px; }
.brand-lg .brand-mark svg { width: 25px; height: 25px; }

/* ---------- 按钮 ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-ink: var(--ink-soft);
  --btn-line: var(--line-strong);
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: inherit;
  font-weight: 560;
  font-size: 14px;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-soft); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary {
  --btn-bg: var(--brand);
  --btn-ink: #fff;
  --btn-line: var(--brand);
  box-shadow: 0 6px 16px rgba(37, 99, 235, .22);
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { --btn-line: transparent; --btn-bg: transparent; --btn-ink: var(--ink-soft); }
.btn-ghost:hover { background: var(--surface-soft); }
.btn-danger {
  --btn-bg: var(--danger);
  --btn-ink: #fff;
  --btn-line: var(--danger);
}
.btn-danger:hover { filter: brightness(.94); }
.btn-block { width: 100%; }
.btn-sm { min-height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }

.icon-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { background: var(--brand-weak); color: var(--brand); }
.icon-btn.danger:hover { background: var(--danger-weak); color: var(--danger); }

/* ---------- 登录 ---------- */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px 48px;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(37, 99, 235, .13), transparent 70%),
    var(--bg);
}
.login-card {
  width: 100%;
  max-width: 404px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px 28px 26px;
}
.login-card h1 { font-size: 22px; letter-spacing: -.01em; margin-top: 20px; }
.login-card .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.login-card form { margin-top: 20px; }
.field { display: block; }
.field > span {
  display: block;
  font-size: 13px;
  font-weight: 560;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
input[type="text"],
input[type="password"],
input[type="search"],
select {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
}
input:focus-visible, select:focus-visible { outline-offset: 1px; border-color: var(--brand); }
.form-error {
  color: var(--danger);
  background: var(--danger-weak);
  border: 1px solid color-mix(in srgb, var(--danger) 24%, transparent);
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 13px;
  margin-top: 10px;
  border-color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 24%, transparent);
}
.login-card .btn-block { margin-top: 16px; }
.tiny { font-size: 12px; color: var(--muted); margin-top: 16px; line-height: 1.65; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar-actions { display: flex; align-items: center; gap: 6px; }

/* ---------- 页面 ---------- */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 22px 72px;
}
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero h1 { font-size: 27px; letter-spacing: -.02em; line-height: 1.25; }
.hero p { color: var(--muted); font-size: 14px; margin-top: 7px; max-width: 46ch; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat {
  min-width: 104px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
}
.stat span { display: block; font-size: 17px; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* ---------- 上传卡 ---------- */
.upload-card {
  position: relative;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  background:
    linear-gradient(180deg, var(--brand-weak), transparent 70%),
    var(--surface);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand-weak) 62%, transparent), transparent 70%),
    var(--surface);
  padding: 30px 24px 26px;
  text-align: center;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.upload-card.is-dragover {
  border-color: var(--brand);
  border-style: solid;
  background: var(--brand-weak);
  transform: translateY(-1px);
}
.upload-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.upload-icon svg { width: 24px; height: 24px; }
.upload-card h2 { font-size: 17px; letter-spacing: -.01em; }
.upload-card p { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
.upload-card .btn { margin-top: 16px; }
.upload-hint { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------- 上传队列 ---------- */
.queue { margin-top: 26px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.section-head h2 { font-size: 16px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.queue-list { display: flex; flex-direction: column; gap: 8px; }
.queue-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
}
.queue-item .q-name { font-size: 13.5px; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-item .q-meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.queue-item .q-state { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.queue-item.is-done .q-state { color: var(--ok); }
.queue-item.is-error .q-state { color: var(--danger); }
.progress {
  grid-column: 2 / -1;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #60a5fa);
  transition: width .2s ease;
}

/* ---------- 文件列表 ---------- */
.files { margin-top: 30px; }
.files-tools { display: flex; align-items: center; gap: 8px; }
.search { position: relative; display: block; }
.search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}
.search input { padding-left: 34px; min-width: 210px; min-height: 38px; border-radius: 10px; font-size: 13.5px; }

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.file-table { width: 100%; border-collapse: collapse; }
.file-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}
.file-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.file-table tr:last-child td { border-bottom: 0; }
.file-table tbody tr { transition: background .14s ease; }
.file-table tbody tr:hover { background: var(--surface-soft); }
.file-table .col-actions { width: 132px; text-align: right; }
.file-table td.col-actions { text-align: right; white-space: nowrap; }
.file-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.file-name .meta { min-width: 0; }
.file-name .name {
  display: block;
  font-size: 14px;
  font-weight: 560;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 46ch;
}
.file-name .sub { font-size: 12px; color: var(--muted); }

.type-tile {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  text-transform: uppercase;
  background: #64748b;
}
.type-tile[data-kind="image"] { background: #0f766e; }
.type-tile[data-kind="video"] { background: #7c3aed; }
.type-tile[data-kind="audio"] { background: #b45309; }
.type-tile[data-kind="pdf"] { background: #b91c1c; }
.type-tile[data-kind="archive"] { background: #a16207; }
.type-tile[data-kind="doc"] { background: #1d4ed8; }
.type-tile[data-kind="sheet"] { background: #15803d; }
.type-tile[data-kind="code"] { background: #475569; }
.type-tile[data-kind="text"] { background: #57534e; }

.time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.size { color: var(--ink-soft); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.empty { padding: 52px 22px; text-align: center; }
.empty svg { width: 60px; height: 60px; color: var(--line-strong); }
.empty h3 { font-size: 15px; margin-top: 12px; }
.empty p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.loading { padding: 34px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ---------- 对话框 ---------- */
.dialog {
  width: min(440px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}
.dialog::backdrop { background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px); }
.dialog-body { padding: 24px 24px 20px; }
.dialog h2 { font-size: 17px; letter-spacing: -.01em; }
.dialog .dialog-desc { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}
.share-file {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  margin-top: 14px;
}
.share-file .name { font-size: 13.5px; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-file .sub { font-size: 12px; color: var(--muted); }
.share-field { margin-top: 16px; }
.share-field > span { display: block; font-size: 13px; font-weight: 560; color: var(--ink-soft); margin-bottom: 6px; }
.copy-row { display: flex; gap: 8px; margin-top: 14px; }
.copy-row input { font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.hint.warn { color: var(--danger); }
.result-note {
  margin-top: 14px;
  font-size: 13px;
  background: var(--ok-weak);
  border: 1px solid color-mix(in srgb, var(--ok) 22%, transparent);
  border-radius: 9px;
  padding: 8px 11px;
  color: var(--ok);
  border-color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 22%, transparent);
}

/* ---------- 提示条 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 14px);
  background: #0f172a;
  color: #f8fafc;
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: 11px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 60;
  max-width: min(90vw, 460px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: #7f1d1d; }

/* ---------- 分享页 ---------- */
.share-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px 56px;
  background:
    radial-gradient(900px 420px at 50% -12%, rgba(37, 99, 235, .14), transparent 70%),
    var(--bg);
}
.share-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px;
  text-align: center;
}
.share-card .type-tile { width: 54px; height: 54px; border-radius: 15px; font-size: 12px; margin: 0 auto 14px; }
.share-card h1 { font-size: 19px; letter-spacing: -.01em; word-break: break-all; line-height: 1.35; }
.share-meta { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip {
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.share-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.preview {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-soft);
}
.preview img, .preview video { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #0b1120; }
.preview iframe { display: block; width: 100%; height: 460px; border: 0; background: #fff; }
.share-foot { margin-top: 22px; font-size: 12px; color: var(--muted); }
.share-error { text-align: center; }
.share-error h1 { font-size: 18px; margin-top: 14px; }
.share-error p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.share-error .btn { margin-top: 20px; }

/* ---------- 使用说明页 ---------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 22px 80px;
}
.doc h1 { font-size: 26px; letter-spacing: -.02em; }
.doc .lead { color: var(--muted); margin-top: 8px; }
.doc section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}
.doc h2 { font-size: 16px; letter-spacing: -.01em; }
.doc p, .doc li { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.doc ul { list-style: disc; padding-left: 20px; }
.doc ul li { margin-top: 6px; }
.doc .back { margin-top: 22px; display: inline-flex; }

@media (max-width: 760px) {
  .page { padding: 22px 16px 60px; }
  .topbar-inner { padding: 10px 16px; }
  .hero { align-items: flex-start; }
  .hero h1 { font-size: 22px; }
  .stats { width: 100%; }
  .stat { flex: 1; min-width: 0; padding: 9px 11px; }
  .upload-card { padding: 24px 16px 22px; }
  .search input { min-width: 0; width: 100%; }
  .files-tools { width: 100%; }
  .search { flex: 1; }
  .file-table thead { display: none; }
  .file-table, .file-table tbody, .file-table tr, .file-table td { display: block; width: 100%; }
  .file-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
  }
  .file-table tr:hover { background: transparent; }
  .file-table td { padding: 0; border: 0; }
  .file-table td.col-name { grid-column: 1 / 2; }
  .file-table td.col-size { grid-column: 1 / 2; }
  .file-table td.col-time { grid-column: 1 / 2; }
  .file-table td.col-actions {
    grid-column: 2 / 3;
    grid-row: 1 / 4;
    align-self: center;
    text-align: right;
  }
  .file-name .name { max-width: 34ch; }
  .time { font-size: 12.5px; }
  .queue-item { grid-template-columns: auto 1fr; }
  .queue-item .q-state { grid-column: 2 / 3; text-align: left; }
  .dialog-footer { padding: 12px 18px 16px; }
  .dialog-body { padding: 20px 18px 16px; }
  .share-card { padding: 22px 18px; }
  .icon-btn { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- 通用辅助类 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.min-w-0 { min-width: 0; }
.error-icon { width: 48px; height: 48px; color: var(--line-strong); }
.nojs { padding: 24px; text-align: center; }

/* 深色模式下主按钮改用深色文字，保证 4.5:1 以上对比度 */
@media (prefers-color-scheme: dark) {
  .btn.btn-primary { --btn-ink: #0b1120; }

.auth-tabs { display: flex; gap: 8px; margin: 18px 0 4px; }
.auth-tabs .tab {
  flex: 1;
  padding: 8px 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-weight: 560;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.auth-tabs { display: flex; gap: 8px; margin: 18px 0 4px; }
.auth-tabs .tab {
  flex: 1;
  padding: 8px 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-weight: 560;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.auth-tabs .tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (prefers-color-scheme: dark) {
  .auth-tabs .tab.active { color: #0b1120; }
}