/* ---------------------------------------------------------------
   ScepNet — Certificate Authority portal
   Design tokens. The portal is light mode only: `color-scheme: light`
   below pins form controls, scrollbars and the canvas to light even
   when the operating system is set to dark, so every colour has
   exactly one definition.
   --------------------------------------------------------------- */
:root {
  --bg: #eef1f8;
  --bg-a: #e8edfb;
  --bg-b: #f5f3fb;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eef2f9;
  --border: #e2e7f0;
  --border-strong: #ccd4e3;

  --ink: #101422;
  --ink-2: #4b5369;
  /* Carries the small uppercase labels (stat captions, table headers, .muted),
     so it has to clear 4.5:1 on --surface rather than just look grey. */
  --ink-3: #6b7385;

  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-ink: #ffffff;
  --accent-soft: #eef0ff;
  --accent-soft-ink: #4338ca;

  --ok: #047857;
  --ok-bg: #d5f5e3;
  --warn: #b45309;
  --warn-bg: #fdf0cd;
  --danger: #be123c;
  --danger-bg: #ffe1e6;
  --info: #0369a1;
  --info-bg: #dbeefe;

  --shadow-sm: 0 1px 2px rgba(16, 20, 34, .05), 0 1px 3px rgba(16, 20, 34, .04);
  --shadow-md: 0 2px 6px rgba(16, 20, 34, .05), 0 14px 34px rgba(16, 20, 34, .07);
  --shadow-lg: 0 24px 60px rgba(16, 20, 34, .14);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;

  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 8% -10%, var(--bg-a), transparent 65%),
    radial-gradient(760px 460px at 96% 0%, var(--bg-b), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

/* ---------------------------------------------------------------
   Top bar
   --------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 38%, transparent);
}
.brand-mark svg { width: 18px; height: 18px; display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.topbar-spacer { flex: 1; }

.nav { display: flex; align-items: center; gap: 6px; }

.nav a {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--surface-3); color: var(--ink); }
.nav a.active { background: var(--accent-soft); color: var(--accent-soft-ink); }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--ink-2);
  max-width: 230px;
}
.user-chip .avatar {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------
   Layout
   --------------------------------------------------------------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 34px 24px 80px; }
.wrap.narrow { max-width: 460px; padding-top: 8vh; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 30px 0 13px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ---------------------------------------------------------------
   Cards
   --------------------------------------------------------------- */
.card, .block {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.grid-2 > .card { margin-bottom: 0; }

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.card-head .icon {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
}
.card-head .icon svg { width: 17px; height: 17px; display: block; }
.card-head .icon.green { background: var(--ok-bg); color: var(--ok); }
.card-head .icon.amber { background: var(--warn-bg); color: var(--warn); }
.card-head .icon.blue  { background: var(--info-bg); color: var(--info); }
.card-head-text { min-width: 0; flex: 1; }
.card-head h2 { margin: 0; }
.card-head .desc { margin: 2px 0 0; }

/* Hero — tenant identity */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #22d3ee);
}
.hero::after {
  content: "";
  position: absolute;
  top: -110px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 68%);
  pointer-events: none;
}
.hero-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-mark {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 34%, transparent);
}
.hero-mark svg { width: 25px; height: 25px; display: block; }
.hero-meta { min-width: 0; flex: 1; }
.hero-meta h1 { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-meta .desc { margin: 0; }

/* ---------------------------------------------------------------
   Type
   --------------------------------------------------------------- */
h1 { font-size: 24px; font-weight: 680; letter-spacing: -0.02em; margin: 0 0 6px; }
h2 { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; margin: 0 0 10px; }
p.desc { color: var(--ink-2); margin: 0 0 18px; font-size: 13.5px; }
p.desc:last-child { margin-bottom: 0; }
.muted { color: var(--ink-3); }

code, .mono {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
}

/* ---------------------------------------------------------------
   Stats
   --------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.stat .label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stat .label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.stat .value {
  font-size: 27px;
  font-weight: 660;
  letter-spacing: -0.03em;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.stat.ok     .label .dot { background: var(--ok); }
.stat.ok     .value { color: var(--ok); }
.stat.danger .label .dot { background: var(--danger); }
.stat.danger .value { color: var(--danger); }
.stat.warn   .label .dot { background: var(--warn); }
.stat.warn   .value { color: var(--warn); }

/* ---------------------------------------------------------------
   Forms & buttons
   --------------------------------------------------------------- */
label { display: block; font-size: 12.5px; font-weight: 650; margin: 16px 0 6px; color: var(--ink-2); }

input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
/* PEM blobs: monospace, and only ever resizable vertically so a pasted CSR
   can't stretch the card sideways. */
textarea {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  resize: vertical;
  min-height: 120px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 17px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-size: 13.5px;
  font-weight: 640;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(16, 20, 34, .12);
  transition: transform .12s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease;
}
button:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 32%, transparent); }
button:active, .btn:active { transform: translateY(0); }
button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
button svg, .btn svg { width: 15px; height: 15px; }

button.secondary, .btn.secondary {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--ink);
  box-shadow: none;
}
button.secondary:hover, .btn.secondary:hover {
  background: var(--surface-3);
  border-color: var(--accent);
  color: var(--accent-soft-ink);
  box-shadow: var(--shadow-sm);
}

button.danger, .btn.danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
  box-shadow: none;
}
button.danger:hover, .btn.danger:hover {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--danger) 32%, transparent);
}

button.small, .btn.small { padding: 6px 11px; font-size: 12.5px; border-radius: 7px; }
button.block-btn { width: 100%; }

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

.error, .msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  margin-top: 14px;
  padding: 10px 13px;
  border-radius: var(--r-sm);
}
.error { color: var(--danger); background: var(--danger-bg); border: 1px solid color-mix(in srgb, var(--danger) 26%, transparent); }
.msg   { color: var(--ok);     background: var(--ok-bg);     border: 1px solid color-mix(in srgb, var(--ok) 26%, transparent); }

/* ---------------------------------------------------------------
   Badges
   --------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .02em;
  border: 1px solid transparent;
  background: var(--surface-3);
  color: var(--ink-2);
  vertical-align: middle;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.badge.pending,
.badge.awaiting_signature { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.badge.active,
.badge.valid    { background: var(--ok-bg);     color: var(--ok);     border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.badge.revoked,
.badge.removed  { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.badge.expiring { background: var(--warn-bg);   color: var(--warn);   border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.badge.info     { background: var(--info-bg);   color: var(--info);   border-color: color-mix(in srgb, var(--info) 25%, transparent); }

.badge.active::before { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .badge.active::before { animation: none; }
  button:hover, .btn:hover { transform: none; }
}

/* ---------------------------------------------------------------
   Key/value rows
   --------------------------------------------------------------- */
.kv {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px 16px;
  align-items: center;
  font-size: 13.5px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
}
.kv:first-of-type { border-top: none; }
.kv .k { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.kv > div:last-child { min-width: 0; word-break: break-word; }

/* Label above the value — used where the value is a long URL or secret
   that needs the full card width. */
.kv.stacked { grid-template-columns: minmax(0, 1fr); gap: 6px; align-items: stretch; }
.kv.stacked .k { letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }

/* Copyable secret / URL field */
.field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 7px 7px 7px 12px;
  min-width: 0;
}
.field .val {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  overflow-x: auto;
  white-space: nowrap;
  color: var(--ink);
  /* Long SCEP URLs scroll; keep the bar themed so it doesn't render as a
     heavy default strip under the text. */
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  padding-bottom: 2px;
}
.field .val::-webkit-scrollbar { height: 5px; }
.field .val::-webkit-scrollbar-track { background: transparent; }
.field .val::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.field .val.masked { overflow: hidden; }
.field .val.masked { letter-spacing: .18em; color: var(--ink-3); }
.field button { flex: none; }

.copied { background: var(--ok-bg) !important; color: var(--ok) !important; border-color: color-mix(in srgb, var(--ok) 30%, transparent) !important; }

/* ---------------------------------------------------------------
   Setup guide: platform tabs, ordered steps, config snippets
   --------------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.tabs button {
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--border-strong); box-shadow: none;
  padding: 9px 15px; font-size: 13px;
}
.tabs button:hover { transform: none; box-shadow: none; background: var(--surface); color: var(--ink); }
.tabs button.active {
  background: var(--accent); color: #fff;
  border-color: transparent;
}

/* Config snippets. Always horizontally scrollable in their own box so a long
   openssl line can never widen the page itself. */
pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 10px 0 0;
  white-space: pre;
}
pre code { font-size: inherit; background: none; padding: 0; }

/* Numbered setup steps */
.step { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 13px; padding: 16px 0; border-top: 1px solid var(--border); }
.step:first-of-type { border-top: none; }
.step-n {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700;
}
.step h3 { font-size: 14.5px; margin: 3px 0 6px; }
.step p { color: var(--ink-2); font-size: 13.5px; line-height: 1.65; margin: 0 0 6px; }
.step ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; line-height: 1.7; }
.step li + li { margin-top: 3px; }

/* Inline callout for the things that silently break a deployment */
.note {
  border-left: 3px solid var(--warn);
  background: var(--warn-bg);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 11px 14px; margin: 12px 0 0;
  font-size: 13px; line-height: 1.65; color: var(--ink);
}
.note strong { font-weight: 700; }
.note.danger { border-left-color: var(--danger); background: var(--danger-bg); }

/* Download format pills */
.fmt-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fmt-links .btn { padding: 5px 11px; font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.fmt-pass { width: auto; flex: 0 1 220px; min-width: 160px; padding: 6px 10px; font-size: 12.5px; }

/* Selects sitting inline in an .actions row, rather than stacked in a form */
select.inline { width: auto; flex: none; min-width: 150px; padding: 8px 12px; font-size: 13px; }

/* ---------------------------------------------------------------
   Tables
   --------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  position: sticky;
  top: 0;
  text-align: left;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 680;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: var(--surface-2); }
tbody tr.cert-row:hover { background: transparent; }
td.subject { font-family: var(--mono); font-size: 12.5px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-2); }
td.right { text-align: right; }

.nested { padding: 0 14px 16px !important; background: var(--surface-2); }
.nested .table-wrap { box-shadow: var(--shadow-sm); }

.empty {
  padding: 34px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13.5px;
}
.empty svg { width: 30px; height: 30px; opacity: .45; display: block; margin: 0 auto 10px; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.toolbar input { flex: 1; min-width: 200px; max-width: 320px; padding: 8px 12px; font-size: 13px; }

/* ---------------------------------------------------------------
   Auth pages
   --------------------------------------------------------------- */
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  text-align: center;
}
.auth-brand .brand-mark { width: 46px; height: 46px; border-radius: 14px; }
.auth-brand .brand-mark svg { width: 24px; height: 24px; }
.auth-brand .name { font-weight: 680; font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; }
.auth-brand .sub {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.3;
}
.wrap.narrow .card { box-shadow: var(--shadow-lg); padding: 28px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--ink-2); margin-top: 20px; }

/* ---------------------------------------------------------------
   Skeleton loading
   --------------------------------------------------------------- */
.skeleton {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------
   Toasts
   --------------------------------------------------------------- */
#toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(360px, calc(100vw - 40px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 15px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  color: var(--ink);
  animation: toast-in .22s cubic-bezier(.2, .8, .3, 1);
}
.toast.ok     { border-left-color: var(--ok); }
.toast.danger { border-left-color: var(--danger); }
.toast svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.toast.ok svg { color: var(--ok); }
.toast.danger svg { color: var(--danger); }
.toast.leaving { animation: toast-out .18s ease forwards; }
@keyframes toast-in  { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes toast-out { to   { opacity: 0; transform: translateY(6px) scale(.98); } }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 640px) {
  .topbar-inner { padding: 0 16px; gap: 8px; }
  .brand-text small { display: none; }
  .user-chip span { display: none; }
  .user-chip { padding: 5px; }
  .wrap { padding: 24px 16px 60px; }
  .kv { grid-template-columns: 1fr; gap: 6px; }
  .hero { padding: 22px 18px; }
  .card, .block { padding: 18px 16px; }
}
