/* Darkdot Files - design tokens */
:root {
  /* System font stacks only - no bundled or third-party fonts, works on any OS. */
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, 'Menlo', 'Consolas', 'Liberation Mono', 'Courier New', monospace;

  --bg: oklch(0.992 0.002 250);
  --bg-elev: oklch(1 0 0);
  --bg-subtle: oklch(0.975 0.003 250);
  --bg-hover: oklch(0.96 0.004 250);

  --fg: oklch(0.18 0.005 250);
  --fg-muted: oklch(0.55 0.008 250);
  --fg-faint: oklch(0.72 0.006 250);

  --border: oklch(0.92 0.004 250);
  --border-strong: oklch(0.85 0.005 250);

  --accent: oklch(0.62 0.16 145);
  --accent-fg: oklch(0.99 0 0);
  --accent-soft: oklch(0.95 0.04 145);

  --warn: oklch(0.72 0.15 70);
  --warn-soft: oklch(0.96 0.04 70);
  --danger: oklch(0.58 0.20 25);
  --danger-soft: oklch(0.96 0.04 25);

  --shadow-sm: 0 1px 2px oklch(0.18 0.005 250 / 0.04);
  --shadow-md: 0 4px 12px oklch(0.18 0.005 250 / 0.06), 0 1px 2px oklch(0.18 0.005 250 / 0.04);
  --shadow-lg: 0 12px 40px oklch(0.18 0.005 250 / 0.10), 0 2px 4px oklch(0.18 0.005 250 / 0.04);

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
}

* { box-sizing: border-box; }
html, body, #root { height: 100%; margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mono { font-family: var(--font-mono); }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-fg); }

/* === LAYOUT === */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100vh;
  background: var(--bg);
}
.app.no-sidebar { grid-template-columns: 1fr; }

/* === SIDEBAR === */
.sidebar {
  background: var(--bg-subtle);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-brand {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--fg);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.brand-mark::after {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.brand-name {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.brand-suffix { color: var(--fg-muted); font-weight: 400; }
.beta-tag { color: var(--fg-muted); font-weight: 400; font-size: 0.82em; }

.sidebar-section {
  padding: 14px 12px 4px;
}
.sidebar-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
  padding: 0 8px 6px;
  font-weight: 500;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--fg-muted);
  cursor: pointer;
  width: 100%;
  text-align: left;
  margin-bottom: 1px;
}
.nav-item:hover { background: var(--bg-hover); color: var(--fg); }
.nav-item.active { background: var(--bg-elev); color: var(--fg); box-shadow: var(--shadow-sm); }
.nav-item .icon { width: 14px; height: 14px; flex-shrink: 0; }
.nav-item .badge {
  margin-left: auto;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
.nav-item.active .badge { background: var(--bg-subtle); }

.sidebar-footer {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid var(--border);
}
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius);
  cursor: pointer;
}
.user-card:hover { background: var(--bg-hover); }
.user-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.user-info { font-size: 12px; line-height: 1.3; flex: 1; min-width: 0; }
.user-name { font-weight: 500; color: var(--fg); }
.user-meta { color: var(--fg-faint); font-size: 11px; }

/* === MAIN === */
.main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.topbar {
  height: 52px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  flex-shrink: 0;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  flex: 1;
  min-width: 0;
}
.breadcrumbs .crumb { color: var(--fg-muted); cursor: pointer; }
.breadcrumbs .crumb:hover { color: var(--fg); }
.breadcrumbs .crumb.current { color: var(--fg); font-weight: 500; }
.breadcrumbs .sep { color: var(--fg-faint); }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  background: var(--bg-elev);
  cursor: pointer;
  transition: border-color 0.15s;
}
.credit-pill:hover { border-color: var(--border-strong); }
.credit-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.credit-pill.low .credit-dot { background: var(--warn); }
.credit-pill.zero .credit-dot { background: var(--danger); }
.credit-amount { font-family: var(--font-mono); font-weight: 500; }
.credit-label { color: var(--fg-muted); }

.content {
  flex: 1;
  overflow: auto;
  padding: 28px 28px 80px;
}
.content.tight { padding: 0; }

/* === BANNER === */
.banner {
  margin: 0 0 20px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--warn);
  background: var(--warn-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.banner.info {
  border-color: oklch(0.75 0.09 240);
  background: oklch(0.95 0.03 240);
}
.banner.danger { border-color: var(--danger); background: var(--danger-soft); }
.banner-icon { width: 14px; height: 14px; flex-shrink: 0; }
.banner-actions { margin-left: auto; display: flex; gap: 8px; }

/* === HEADINGS === */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 24px;
}
.page-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
}
.page-subtitle {
  color: var(--fg-muted);
  font-size: 13px;
  margin: 0;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--fg);
  white-space: nowrap;
  transition: all 0.12s;
  height: 30px;
}
.btn:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.btn:active { transform: translateY(0.5px); }
.btn.primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn.primary:hover { background: oklch(0.28 0.005 250); }
.btn.accent {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.btn.accent:hover { filter: brightness(1.05); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--bg-hover); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.sm { height: 26px; padding: 4px 10px; font-size: 12px; }
.btn.lg { height: 36px; padding: 8px 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn .icon { width: 13px; height: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* === SEARCH / INPUTS === */
.input {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  font-size: 13px;
  color: var(--fg);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
  width: 100%;
}
.input:focus { border-color: var(--fg); box-shadow: 0 0 0 3px oklch(from var(--fg) l c h / 0.08); }
.input.lg { height: 36px; font-size: 14px; }
.input.mono { font-family: var(--font-mono); }

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.input-group .input { padding-left: 30px; }
.input-group .input-icon {
  position: absolute;
  left: 9px;
  width: 14px; height: 14px;
  color: var(--fg-faint);
  pointer-events: none;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12px; font-weight: 500; color: var(--fg); }
.field-hint { font-size: 12px; color: var(--fg-muted); }
.field-error { font-size: 12px; color: var(--danger); }

/* === TABLE === */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  overflow: hidden;
}
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.table-toolbar .input-group { width: 280px; }
.table-toolbar .spacer { flex: 1; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table thead th {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--bg-subtle); }
.table tbody tr.clickable { cursor: pointer; }

.table .col-shrink { width: 1%; white-space: nowrap; }
.table .col-num { font-variant-numeric: tabular-nums; }
.table .row-actions {
  opacity: 0;
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}
.table tbody tr:hover .row-actions { opacity: 1; }

/* === HASH / CODE PILL === */
.hash {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.hash-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}
/* Object list: let the SHA-256 column absorb the remaining width and show as
   much of the full hash as fits, truncating at the END (ellipsis) responsively. */
.objects-wrap .table { table-layout: fixed; }
.objects-wrap .col-hash { max-width: 0; width: auto; }
.objects-wrap .col-size { width: 160px; min-width: 160px; white-space: nowrap; }
.col-hash .hash { display: flex; max-width: 100%; }
.col-hash .hash-text { flex: 1 1 auto; min-width: 0; max-width: none; }
.copy-btn {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px;
  color: var(--fg-faint);
  flex-shrink: 0;
}
.copy-btn:hover { background: var(--bg-hover); color: var(--fg); }
.copy-btn .icon { width: 12px; height: 12px; }
.copy-btn.copied { color: var(--accent); }

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--fg-muted);
  font-weight: 500;
  white-space: nowrap;
}
.badge.public { color: oklch(0.45 0.13 240); border-color: oklch(0.85 0.05 240); background: oklch(0.97 0.02 240); }
.badge.private { color: var(--fg); }
.badge.encrypted { color: var(--accent); border-color: oklch(0.85 0.06 145); background: var(--accent-soft); }
.badge.warn { color: oklch(0.45 0.13 70); border-color: oklch(0.85 0.06 70); background: var(--warn-soft); }
.badge.danger { color: var(--danger); border-color: oklch(0.85 0.06 25); background: var(--danger-soft); }
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* === STAT CARDS === */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  padding: 14px 16px;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-value {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.stat-value .unit { font-size: 13px; color: var(--fg-muted); font-weight: 500; margin-left: 4px; }
.stat-meta { font-size: 11px; color: var(--fg-muted); margin-top: 4px; }
.stat-meta .up { color: var(--accent); }
.stat-meta .down { color: var(--danger); }

/* === EMPTY STATE === */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--fg-muted);
}
.empty-icon { display: block; width: 32px; height: 32px; margin: 0 auto 12px; color: var(--fg-faint); }
.empty-title { font-size: 14px; color: var(--fg); font-weight: 500; margin-bottom: 4px; }
.empty-sub { font-size: 13px; margin-bottom: 16px; }

/* === MODAL === */
.modal-backdrop {
  position: fixed; inset: 0;
  background: oklch(0.18 0.005 250 / 0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  animation: fadeIn 0.15s;
}
.modal {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 460px;
  max-width: 92vw;
  max-height: 88vh;
  overflow: auto;
  animation: modalIn 0.18s ease-out;
}
.modal.lg { width: 560px; }
.modal-header { padding: 18px 22px 4px; }
.modal-title { font-size: 16px; font-weight: 600; margin: 0; }
.modal-sub { font-size: 13px; color: var(--fg-muted); margin: 4px 0 0; }
.modal-body { padding: 16px 22px; }
.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* === DROPZONE === */
.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  background: var(--bg-subtle);
  transition: all 0.15s;
  cursor: pointer;
}
.dropzone:hover, .dropzone.over {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone-icon { width: 28px; height: 28px; margin: 0 auto 10px; color: var(--fg-muted); }
.dropzone-title { font-weight: 500; font-size: 14px; margin-bottom: 4px; }
.dropzone-sub { color: var(--fg-muted); font-size: 12px; }

/* === CARDS / SECTIONS === */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  overflow: hidden;
}
.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-weight: 600; font-size: 14px; margin: 0; }
.card-sub { color: var(--fg-muted); font-size: 12px; margin: 2px 0 0; }
.card-body { padding: 18px; }
.card-section {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.card-section:last-child { border-bottom: none; }

.section-title {
  font-size: 13px;
  font-weight: 600;
  margin: 28px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* === KEY/VALUE GRID === */
.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 16px;
  font-size: 13px;
}
.kv dt { color: var(--fg-muted); }
.kv dd { margin: 0; color: var(--fg); }

/* === TOAST === */
.toast-region {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}
.toast {
  background: var(--fg);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.2s ease-out;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.toast .icon { width: 14px; height: 14px; color: var(--accent); }
/* Warning toast (e.g. an upload rejected because it was not PGP-encrypted).
   Lingers longer than the success toast so the reason is readable. */
.toast.error { background: var(--danger, #b42318); color: #fff; align-items: flex-start; max-width: 460px; line-height: 1.4; }
.toast.error .icon { color: #fff; flex-shrink: 0; margin-top: 1px; }

/* === ONBOARDING / AUTH === */
.auth-wrap {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
}
.auth-side {
  background: var(--fg);
  color: var(--bg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, oklch(from var(--accent) l c h / 0.12), transparent 50%),
    radial-gradient(circle at 80% 80%, oklch(from var(--accent) l c h / 0.08), transparent 40%);
  pointer-events: none;
}
.auth-side > * { position: relative; z-index: 1; }
.auth-side .auth-body { margin: auto 0; }
.auth-side .brand-mark { background: var(--bg); }
.auth-side .brand-name { color: var(--bg); }
.auth-side .brand-suffix { color: oklch(0.7 0.005 250); }
.auth-side .beta-tag { color: oklch(0.7 0.005 250); }
.auth-headline {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}
.auth-sub { color: oklch(0.75 0.005 250); font-size: 14px; line-height: 1.6; max-width: 380px; }
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.auth-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: oklch(0.85 0.005 250);
}
.auth-feature .icon {
  width: 16px; height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}
.auth-feature strong { color: var(--bg); font-weight: 500; }
.auth-foot { font-size: 12px; color: oklch(0.6 0.005 250); }

.auth-title { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 6px; }
.auth-subtitle { color: var(--fg-muted); font-size: 13px; margin: 0 0 24px; }
.auth-fields { display: flex; flex-direction: column; gap: 14px; }
.auth-foot-link { font-size: 13px; color: var(--fg-muted); margin-top: 18px; }
.auth-foot-link a { color: var(--fg); font-weight: 500; cursor: pointer; }

/* Abuse-report: credential radios + result banner. */
.radio-row { display: flex; gap: 16px; }
.radio { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.abuse-result {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius); font-size: 13px; line-height: 1.45;
  border: 1px solid var(--border);
}
.abuse-result .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.abuse-result.ok { border-color: var(--accent); background: var(--bg-subtle); }
.abuse-result.ok .icon { color: var(--accent); }
.abuse-result.warn { border-color: var(--warn); background: var(--warn-soft); }
.abuse-result.warn .icon { color: var(--warn); }
.abuse-result.error { border-color: var(--danger); background: var(--danger-soft); }
.abuse-result.error .icon { color: var(--danger); }

/* Signup stepper */
.auth-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--fg-faint);
  margin-bottom: 20px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-stepper .step {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.45;
}
.auth-stepper .step.active { opacity: 1; color: var(--fg); }
.auth-stepper .step.done { opacity: 1; color: var(--fg-muted); }
.auth-stepper .step-num {
  width: 18px; height: 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
}
.auth-stepper .step.active .step-num { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.auth-stepper .step.done .step-num { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.auth-stepper .step-sep { flex: 1; height: 1px; background: var(--border); }

/* PGP key parse readout */
.key-parse {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-subtle);
  padding: 10px 12px;
  font-size: 12px;
}
.key-parse.ok { border-color: oklch(from var(--accent) l c h / 0.4); }
.key-parse.bad { border-color: var(--danger); background: oklch(from var(--danger) l c h / 0.06); }
.key-parse-head {
  display: flex; align-items: center; gap: 6px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 6px;
}
.key-parse.ok .key-parse-head .icon { color: var(--accent); }
.key-parse.bad .key-parse-head { color: var(--danger); }
.key-parse-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 4px 12px;
  color: var(--fg-muted);
}
.key-parse-grid dt { font-size: 11px; }
.key-parse-grid dd { margin: 0; color: var(--fg); font-family: var(--font-mono); font-size: 11px; }

.auth-required-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: -4px;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auth-required-note .icon { width: 12px; height: 12px; color: var(--accent); }

/* === PROGRESS BAR === */
.progress {
  width: 100%;
  height: 4px;
  background: var(--bg-hover);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}
.progress-bar.warn { background: var(--warn); }
.progress-bar.danger { background: var(--danger); }

/* === XMR PAYMENT === */
.xmr-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}
.qr-frame {
  width: 200px; height: 200px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  display: flex; align-items: center; justify-content: center;
}
.qr-frame svg { width: 100%; height: 100%; }

.address-box {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  word-break: break-all;
  line-height: 1.5;
  gap: 8px;
}
.address-box-text { flex: 1; }

.confirmations {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}
.confirmation-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.confirmation-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse 1.6s ease-out infinite;
  opacity: 0;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* === SEGMENTED === */
.segmented {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px;
  background: var(--bg-subtle);
  gap: 2px;
}
.segmented button {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
  color: var(--fg-muted);
  font-weight: 500;
}
.segmented button.active { background: var(--bg-elev); color: var(--fg); box-shadow: var(--shadow-sm); }

/* === SWITCH === */
.switch {
  width: 30px; height: 18px;
  background: var(--border-strong);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: var(--bg-elev);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: left 0.15s;
}
.switch.on { background: var(--accent); }
.switch.on::after { left: 14px; }
.switch:disabled { cursor: not-allowed; }

/* === KBD === */
kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-bottom-width: 1.5px;
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--fg-muted);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ==========================================================================
   NO-JS ADDITIONS - form-driven controls replacing the React interactions
   ========================================================================== */

form { margin: 0; }

/* Sidebar text logo (was inline styles in app.jsx) */
.sidebar-logo {
  padding: 20px 16px 10px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.sidebar-logo-suffix { color: var(--fg-muted); font-weight: 400; }

/* nav items are links now */
a.nav-item { text-decoration: none; }

/* Topbar account pill (was an inline-styled button) */
.account-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; height: 28px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-elev);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em;
}
.account-pill-label { color: var(--fg-muted); font-family: var(--font-ui); letter-spacing: 0; }
.account-pill-num { font-weight: 500; }

/* credit pill is a link */
a.credit-pill { text-decoration: none; color: inherit; }

/* Tabs (were inline-styled buttons) */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.tab {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex; align-items: baseline; gap: 4px;
}
.tab:hover { color: var(--fg); }
.tab.active { color: var(--fg); border-bottom-color: var(--fg); }
.tab-count { color: var(--fg-faint); margin-left: 4px; font-weight: 400; }

/* Segmented control with radio inputs (forms) or links (navigation) */
.segmented label {
  padding: 4px 10px; font-size: 12px; border-radius: 4px;
  color: var(--fg-muted); font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center;
  line-height: normal; /* match the original's <button> rendering */
}
.segmented label:has(input:checked) {
  background: var(--bg-elev); color: var(--fg); box-shadow: var(--shadow-sm);
}
.segmented input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0; margin: 0;
}
.seg-link {
  padding: 4px 10px; font-size: 12px; border-radius: 4px;
  color: var(--fg-muted); font-weight: 500;
}
.seg-link.active { background: var(--bg-elev); color: var(--fg); box-shadow: var(--shadow-sm); }

/* Whole-cell row links */
.table td .celllink {
  display: block;
  margin: -10px -12px;
  padding: 10px 12px;
  color: inherit;
}

/* Selection toolbar: reveal bulk actions when any row checkbox is checked */
.objects-wrap .sel-actions { display: none; gap: 8px; align-items: center; }
.objects-wrap:has(tbody input.objsel:checked) .sel-actions { display: flex; }
.objects-wrap:has(tbody input.objsel:checked) .unsel-actions { display: none; }
input.objsel { accent-color: var(--accent); cursor: pointer; }

/* Link styled as a checkbox (header select-all) */
.cbx {
  width: 13px; height: 13px;
  margin: 3px 3px 3px 4px; /* mirror Chrome's UA margins on native checkboxes */
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-elev);
  color: var(--accent-fg);
  vertical-align: middle;
}
.cbx:hover { border-color: var(--fg-muted); }
.cbx.checked { background: var(--accent); border-color: var(--accent); }
button.cbx-row {
  display: flex; align-items: flex-start; gap: 10px;
  background: none; border: none; padding: 0; width: 100%;
  font: inherit; color: inherit; text-align: left;
}
button.cbx-row .cbx { flex-shrink: 0; }

/* Details-based dropdown menus (Size / Type filters) */
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; user-select: none; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu[open] > summary { background: var(--bg-hover); border-color: var(--border-strong); }
.menu-list {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  padding: 4px;
  min-width: 150px;
  z-index: 60;
  display: flex; flex-direction: column;
}
.menu-list a {
  padding: 6px 10px; border-radius: 4px; font-size: 12px;
  color: var(--fg); white-space: nowrap;
}
.menu-list a:hover { background: var(--bg-hover); }
.menu-list a.active { font-weight: 600; color: var(--accent); }

/* Copy affordances without a clipboard API:
   .copyable selects its whole content on click (user-select: all);
   .copy-pop reveals the full value in a popover for truncated hashes. */
.copyable { -webkit-user-select: all; user-select: all; cursor: copy; }
details.copy-pop { position: relative; display: inline-block; }
details.copy-pop > summary { list-style: none; }
details.copy-pop > summary::-webkit-details-marker { display: none; }
details.copy-pop[open] > summary { color: var(--fg); background: var(--bg-hover); }

/* Ledger transaction id: truncated by default, click to reveal the full hash.
   Pure CSS/HTML (<details>), no JavaScript. */
details.txid { display: inline-block; }
details.txid > summary {
  list-style: none; cursor: pointer; user-select: none;
  font-size: 11px; color: var(--fg-muted);
  display: inline-flex; align-items: center; gap: 4px;
  border-bottom: 1px dotted var(--border-strong); width: fit-content;
}
details.txid > summary::-webkit-details-marker { display: none; }
details.txid > summary::after {
  content: "\203A"; /* › */ font-size: 12px; line-height: 1; opacity: 0.7;
  transition: transform 0.12s ease;
}
details.txid[open] > summary { color: var(--fg); }
details.txid[open] > summary::after { transform: rotate(90deg); }
.txid-full {
  display: block; margin-top: 3px; font-size: 11px; color: var(--fg-muted);
  word-break: break-all; max-width: 320px;
}
.copy-pop-box {
  position: absolute; top: calc(100% + 4px); left: 0;
  z-index: 70;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  padding: 8px 10px;
  font-size: 11px;
  width: 340px;
  word-break: break-all;
  line-height: 1.5;
}

/* Toast: auto-dismiss via CSS animation (2.4s, same as the original timer) */
.toast {
  animation: toastIn 0.2s ease-out, toastOut 0.3s ease-in 2.4s forwards;
}
/* Errors linger ~9s (they carry an actionable reason to read). */
.toast.error {
  animation: toastIn 0.2s ease-out, toastOut 0.3s ease-in 9s forwards;
}
@keyframes toastOut {
  to { opacity: 0; visibility: hidden; transform: translateY(6px); }
}

/* Passphrase show/hide via checkbox + text-security (no JS) */
.pw-input { -webkit-text-security: disc; }
.pw-toggle-cb { position: absolute; opacity: 0; width: 0; height: 0; }
.pwbox:has(.pw-toggle-cb:checked) .pw-input { -webkit-text-security: none; }
.pw-toggle { cursor: pointer; }
.pw-toggle .pw-eye-off { display: none; }
.pwbox:has(.pw-toggle-cb:checked) .pw-eye { display: none; }
.pwbox:has(.pw-toggle-cb:checked) .pw-eye-off { display: inline-flex; }

/* File input inside the dropzone */
.dropzone { display: block; }
.dropzone-file {
  display: block;
  margin: 12px auto 0;
  font-size: 12px;
  color: var(--fg-muted);
  max-width: 100%;
}
.dropzone-file::file-selector-button {
  margin-right: 10px;
  padding: 4px 10px;
  height: 26px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--fg);
  cursor: pointer;
  font-family: inherit;
}
.dropzone-file::file-selector-button:hover { background: var(--bg-hover); }

/* Modal close: full-backdrop link behind the dialog */
.modal-backdrop { position: fixed; }
.modal-dismiss { position: absolute; inset: 0; }
/* Pure-CSS modal dismissal: the backdrop label (or a Cancel label) checks the
   hidden checkbox, and :has() hides the whole overlay - no navigation. */
.modal-close-cb { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.modal-backdrop:has(.modal-close-cb:checked) { display: none; }
label.btn { cursor: pointer; }
.modal-backdrop, label.modal-dismiss { cursor: default !important; }
.modal { position: relative; z-index: 1; }

/* Modal footers may contain forms; keep buttons on one row */
.modal-footer form { display: inline-flex; }
.banner-actions form { display: inline-flex; }

/* User menu (details) in the sidebar footer */
details.user-menu { position: relative; }
details.user-menu > summary { list-style: none; }
details.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu-list {
  position: absolute; bottom: calc(100% + 6px); left: 8px; right: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  padding: 4px;
  z-index: 60;
}
.user-menu-item {
  display: block; width: 100%; text-align: left;
  padding: 6px 10px; border-radius: 4px; font-size: 13px;
  color: var(--fg);
}
.user-menu-item:hover { background: var(--bg-hover); }

/* API docs method badges */
.badge.method-get { color: oklch(0.45 0.13 240); border-color: currentColor; background: transparent; font-weight: 600; }
.badge.method-post { color: var(--accent); border-color: currentColor; background: transparent; font-weight: 600; }
.badge.method-delete { color: var(--danger); border-color: currentColor; background: transparent; font-weight: 600; }

/* Buttons rendered as links */
a.btn { text-decoration: none; }
summary.btn { display: inline-flex; }
summary.copy-btn { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

/* Links standing in for the original's <button> elements must not inherit the
   body line-height (buttons default to line-height normal) - keeps vertical
   rhythm identical to the React original. */
a.nav-item, .tab, .seg-link, a.credit-pill, .account-pill,
.menu-list a, .user-menu-item, .btn { line-height: normal; }

/* "browse" affordance inside the dropzone label, as in the original */
.dropzone-sub .browse { color: var(--fg); text-decoration: underline; }

/* Inline copy-pop sitting next to key IDs (original: <span> <CopyButton/>) */
td > details.copy-pop { vertical-align: middle; }

/* Access-key permission checkboxes (create-key modal) */
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.perm-opt { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.perm-opt input { accent-color: var(--accent); cursor: pointer; }

/* Header account pill: first 8 hex shown, remainder masked until clicked */
.acct-reveal-cb { position: absolute; opacity: 0; width: 0; height: 0; }
.acct-masked { cursor: pointer; }
.acct-dots { color: var(--fg-faint); letter-spacing: 1px; }
.account-pill .acct-full { display: none; }
.account-pill:has(.acct-reveal-cb:checked) .acct-masked { display: none; }
.account-pill:has(.acct-reveal-cb:checked) .acct-full { display: inline; }

/* Ledger txid: end-truncated single line until expanded */
details.txid summary .txid-trunc {
  display: inline-block; max-width: 220px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  vertical-align: bottom;
}
details.txid[open] summary { display: none; }

/* API docs */
.badge.method-head { color: oklch(0.45 0.10 300); border-color: currentColor; background: transparent; font-weight: 600; }
.docs { max-width: 860px; display: flex; flex-direction: column; gap: 12px; }
.docs .page-header { margin-bottom: 12px; }
.docs .section-title { margin: 8px 0 -4px; }
.docs code.mono { font-size: 0.95em; background: var(--bg-subtle); padding: 0 4px; border-radius: 3px; }
.docs pre code.mono, .docs .api-example code.mono { background: none; padding: 0; }
.docs .api-table code.mono { white-space: nowrap; }
.docs a:not(.btn):not(.api-row) { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }

/* Request builder: a plain GET form */
.docs-builder {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 0.8fr) auto;
  gap: 10px 12px; align-items: end; padding: 14px 16px;
}
.docs-builder select.input { width: 100%; min-width: 0; }
.docs-builder .btn { align-self: end; height: 32px; }
.docs-builder-note { grid-column: 1 / -1; font-size: 12px; color: var(--fg-muted); }
@media (max-width: 720px) { .docs-builder { grid-template-columns: 1fr 1fr; } }

.docs-facts-body { padding: 4px 16px 14px; font-size: 13px; line-height: 1.6; color: var(--fg-muted); }
.docs-facts-body p { margin: 10px 0 0; }
.docs-facts-body b { color: var(--fg); font-weight: 600; }
.docs-facts-body .api-example { margin-top: 10px; border-radius: var(--radius-sm); }

/* Endpoint index */
.api-list { padding: 0; }
.api-row {
  display: grid; grid-template-columns: 84px 200px 1fr auto;
  gap: 12px; align-items: baseline;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  color: var(--fg); text-decoration: none;
}
a.api-row:hover { background: var(--bg-subtle); }
.api-row:last-child { border-bottom: none; }
.api-row .badge { justify-self: start; }
.api-path { font-size: 13px; }
.api-desc { color: var(--fg-muted); font-size: 12px; line-height: 1.5; }
@media (max-width: 720px) {
  .api-row { grid-template-columns: 84px 1fr auto; }
  .api-desc { grid-column: 1 / -1; grid-row: 2; }
  .api-table tbody td, .api-table thead th { padding-left: 10px; padding-right: 10px; overflow-wrap: anywhere; }
  .docs .api-table code.mono { white-space: normal; }
}

.perm-chip {
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  padding: 1px 7px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--fg-muted); background: var(--bg-subtle);
  white-space: nowrap;
}
.perm-chip.warn { color: oklch(0.45 0.13 70); border-color: oklch(0.85 0.06 70); background: var(--warn-soft); white-space: normal; }

/* Endpoint sections */
.api-op { scroll-margin-top: 16px; }
.api-op-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.api-op-head .api-path { font-weight: 600; }
.api-op-head .api-try { margin-left: auto; }
.api-op-desc { margin: 0; padding: 12px 16px; font-size: 13px; line-height: 1.6; color: var(--fg-muted); }
.api-table { font-size: 12px; }
.api-table tbody td { padding: 7px 16px; vertical-align: top; line-height: 1.5; }
.api-table thead th { padding: 7px 16px; }
.api-table tbody tr:hover { background: none; }
.api-table td.mono { white-space: nowrap; color: var(--fg); width: 1%; }
.api-op > .api-table { border-top: 1px solid var(--border); }
.api-status {
  padding: 10px 16px; font-size: 12px; color: var(--fg-muted);
  border-top: 1px solid var(--border); font-family: var(--font-mono);
}
.api-status b { font-family: var(--font-ui); color: var(--fg); font-weight: 600; margin-right: 6px; }
.docs-public-url { padding: 0 16px 12px; font-size: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; word-break: break-all; }

/* Code tabs: pure CSS radios. Without CSS every panel shows in order. */
.code-tabs {
  display: flex; flex-wrap: wrap; align-items: stretch;
  border-top: 1px solid var(--border); background: var(--bg-subtle);
}
.code-tabs > input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.code-tabs > label {
  padding: 8px 14px; font-size: 12px; font-weight: 500; color: var(--fg-muted);
  cursor: pointer; border-bottom: 2px solid transparent; user-select: none;
}
.code-tabs > label:hover { color: var(--fg); }
.code-tabs > input:checked + label { color: var(--fg); border-bottom-color: var(--accent); }
.code-tabs > input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: -2px; }
.code-tabs > .api-example { display: none; flex-basis: 100%; border-top: 1px solid var(--border); }
.code-tabs > .t-curl:checked ~ .p-curl,
.code-tabs > .t-py:checked ~ .p-py,
.code-tabs > .t-cli:checked ~ .p-cli { display: block; }
/* No tab checked (e.g. a language this section lacks): show the first. */
.code-tabs:not(:has(> input:checked)) > .api-example:first-of-type { display: block; }

.api-example {
  margin: 0; padding: 12px 16px 14px;
  background: var(--bg-subtle);
  font-size: 12px; line-height: 1.6;
  overflow-x: auto; white-space: pre;
}
.api-example-label {
  padding: 10px 16px 0; font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-faint);
  background: var(--bg-subtle); border-top: 1px solid var(--border);
}

/* Bar charts: pure HTML/CSS (Tor Safest blocks SVG) with :hover tooltips.
   Mark spec: bars capped at 24px, 4px rounded data-end, square baseline,
   2px surface gap; the whole day-slot is the hover hit target. */
.chart-bars {
  display: flex; align-items: flex-end; gap: 2px;
  height: 140px;
}
.chart-slot {
  position: relative; flex: 1; height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
}
.chart-bar {
  display: block; width: 100%; max-width: 24px; min-height: 2px;
  border-radius: 4px 4px 0 0;
}
.chart-storage .chart-bar { background: var(--accent); opacity: 0.55; }
.chart-egress .chart-bar { background: oklch(0.55 0.13 250); opacity: 0.55; }
/* Today (the last bar) reads at full strength; hover lifts any bar. */
.chart-slot:last-child .chart-bar,
.chart-slot:hover .chart-bar { opacity: 1; }
.bar-tip {
  display: none; position: absolute; bottom: 100%; margin-bottom: 6px;
  left: 50%; transform: translateX(-50%);
  background: var(--fg); color: var(--bg);
  padding: 4px 8px; border-radius: 4px;
  font-size: 11px; white-space: nowrap;
  pointer-events: none; z-index: 5;
}
.chart-slot:hover .bar-tip { display: block; }
/* Keep edge tooltips inside the card. */
.chart-slot:first-child .bar-tip { left: 0; transform: none; }
.chart-slot:last-child .bar-tip { left: auto; right: 0; transform: none; }
.chart-axis {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--fg-faint); margin-top: 6px;
}

/* Object-list pagination (renders only when there is more than one page) */
.pager {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 10px; border-top: 1px solid var(--border);
}
.pager-status { font-size: 12px; color: var(--fg-muted); }

/* === STANDALONE NOTICE PAGE (404 / service unreachable) === */
.notice-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.notice {
  text-align: center;
  max-width: 360px;
}
.notice-brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 28px;
}
.notice-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}
.notice-sub {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin-bottom: 22px;
}

/* Icon cache preload (auth pages): fetched but never seen. <img> elements
   still load inside a visually-hidden box; keep it out of layout and a11y. */
.icon-preload {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
