/* MCP Tools design system — calm paper-and-ink, deep teal accent, mono for evidence. */

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #f1efe9;
  --ink: #171c26;
  --muted: #626b78;
  --faint: #8b93a0;
  --line: #e5e2d9;
  --line-strong: #d5d1c5;

  --accent: #0d7a68;
  --accent-hover: #0a5f52;
  --accent-soft: #e3f1ed;
  --accent-ink: #0b5547;

  --ok: #1a7f37;
  --ok-soft: #e2f2e6;
  --warn: #9a6700;
  --warn-soft: #fbf0d9;
  --err: #c2352b;
  --err-soft: #fbe9e7;
  --info: #0b5cad;
  --info-soft: #e4eefb;
  --proto: #5b5bd6;
  --proto-soft: #ebebfa;

  --code-bg: #10161f;
  --code-ink: #d6dde8;
  --code-key: #7fd1c0;
  --code-str: #d8b45f;
  --code-num: #8fb8f0;
  --code-bool: #d38fd0;
  --code-muted: #5c6a7d;
  --code-add: #1d3528;
  --code-add-ink: #7ee2a8;
  --code-del: #3d2226;
  --code-del-ink: #f29a9a;

  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(23, 28, 38, .05), 0 4px 14px rgba(23, 28, 38, .05);
  --shadow-lg: 0 4px 12px rgba(23, 28, 38, .08), 0 16px 44px rgba(23, 28, 38, .12);

  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, sans-serif;
  --mono: "Cascadia Code", ui-monospace, "JetBrains Mono", Consolas, "SF Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5rem; font-weight: 650; }
h1 { font-size: 1.7rem; letter-spacing: -.02em; }
h2 { font-size: 1.25rem; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; }
h4 { font-size: .95rem; }
p { margin: 0 0 .75rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: .05em .35em; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
main.container { min-height: 68vh; padding-top: 26px; padding-bottom: 60px; }

/* ------- header / footer ------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-row { display: flex; align-items: center; gap: 22px; height: 56px; }
.brand { display: flex; align-items: baseline; gap: 8px; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark { width: 21px; height: 21px; color: var(--accent); align-self: center; }
.brand-name { font-weight: 700; letter-spacing: -.02em; font-size: 1.02rem; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--muted); padding: 6px 10px; border-radius: 7px; font-size: .9rem; }
.nav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav a.active { color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; padding: 20px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.footer-links { display: flex; gap: 14px; }
.footer-links a { color: var(--muted); }

/* ------- layout utilities ------- */
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.start { align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
/* !important so it beats display rules on the element's own class (e.g.
   a.card-link { display:block } during inventory filtering). */
.hidden { display: none !important; }
.small { font-size: .84rem; }
.right { margin-left: auto; }
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 26px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ------- cards ------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 18px 20px; }
.card.pad-sm { padding: 12px 14px; }
.card-header { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-title { font-weight: 650; font-size: 1rem; margin: 0; }
.card-body { padding: 16px 20px; }
.card-sub { color: var(--muted); font-size: .85rem; margin: 0; }
a.card-link { display: block; color: inherit; }
a.card-link:hover { text-decoration: none; border-color: var(--line-strong); box-shadow: var(--shadow-lg); }

/* ------- stats ------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.stat-num { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-num .unit { font-size: .8rem; color: var(--muted); font-weight: 500; margin-left: 5px; }
.stat-label { color: var(--muted); font-size: .78rem; margin-top: 2px; }

/* ------- price block (pricing cards) ------- */
.price-block { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.price-now { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.price-now .price-unit { font-size: .85rem; color: var(--muted); font-weight: 500; margin-left: 6px; letter-spacing: 0; }
.price-then { color: var(--muted); font-size: .82rem; margin-top: 4px; }

/* ------- pills, badges, chips ------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.err { background: var(--err-soft); color: var(--err); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.proto { background: var(--proto-soft); color: var(--proto); }
.pill.muted { background: var(--surface-2); color: var(--muted); }
.pill.accent { background: var(--accent-soft); color: var(--accent-ink); }
.pill .dot.blink { animation: blink 2.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

.class-badge { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.class-badge.breaking { background: var(--err-soft); color: var(--err); }
.class-badge.potentially_breaking { background: var(--warn-soft); color: var(--warn); }
.class-badge.non_breaking { background: var(--ok-soft); color: var(--ok); }
.class-badge.informational { background: var(--surface-2); color: var(--muted); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .8rem; color: var(--muted); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.chip .dot.on { background: var(--ok); }
.chip .dot.off { background: var(--faint); }
.chip .dot.err { background: var(--err); }
.hash-chip, .copy-chip { font-family: var(--mono); font-size: .78rem; cursor: pointer; user-select: none; }
.hash-chip:hover, .copy-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 4px; background: var(--surface-2); color: var(--muted); font-size: .75rem; }

/* ------- buttons ------- */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: .9rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { background: var(--surface); border-color: #e5b9b5; color: var(--err); }
.btn-danger:hover { background: var(--err-soft); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-sm { padding: 4px 10px; font-size: .82rem; }
.btn-lg { padding: 11px 20px; font-size: 1rem; }
.btn .spin { animation: rotate 1s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.btn svg, .nav a svg { width: 15px; height: 15px; }

/* ------- forms ------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field > label { font-size: .85rem; font-weight: 600; }
.field .hint { font-size: .78rem; color: var(--muted); }
input[type="text"], input[type="url"], input[type="email"], input[type="number"], select, textarea {
  font-family: inherit; font-size: .92rem; padding: 8px 11px; border: 1px solid var(--line-strong);
  border-radius: 8px; background: var(--surface); color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.input-mono { font-family: var(--mono); }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: .9rem; padding: 4px 0; }
.checkbox-row input { width: auto; }

.toggle { position: relative; display: inline-block; width: 36px; height: 20px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider { position: absolute; inset: 0; background: var(--line-strong); border-radius: 999px; transition: .15s; cursor: pointer; }
.toggle .slider:before { content: ""; position: absolute; height: 14px; width: 14px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.toggle input:checked + .slider { background: var(--accent); }
.toggle input:checked + .slider:before { transform: translateX(16px); }

.radio-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; }
.radio-card:hover { border-color: var(--line-strong); }
.radio-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.radio-card input { width: auto; margin-top: 3px; }

/* ------- hero / inspect form ------- */
.hero { padding: 44px 0 10px; text-align: center; }
.hero-title { font-size: 2.1rem; letter-spacing: -.03em; margin-bottom: 8px; }
.hero-sub { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto 24px; }
.inspect-form { display: flex; gap: 10px; max-width: 660px; margin: 0 auto; }
.inspect-form input { font-family: var(--mono); font-size: .95rem; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); }
.inspect-form .btn { border-radius: 10px; }
.hero-hint { color: var(--faint); font-size: .82rem; margin-top: 10px; }
.example-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 620px) { .inspect-form { flex-direction: column; } .hero-title { font-size: 1.6rem; } }

/* ------- tables ------- */
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .mono { font-size: .8rem; }
.table-scroll { overflow-x: auto; }

/* Usage against a ceiling. A cap only means something next to the volume
   running under it, so the admin tiles pair the number with its proportion. */
.meter { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 2px; background: var(--accent); transition: width .3s ease; }
.meter.warn span { background: var(--warn, #b8860b); }
.meter.bad span { background: var(--bad, #b3261e); }
.meter.muted span { background: var(--faint); }

/* ------- schema table ------- */
.schema-table td:first-child { font-family: var(--mono); font-size: .8rem; white-space: nowrap; }
.req-star { color: var(--err); font-weight: 700; margin-left: 2px; }
.type-tag { font-family: var(--mono); font-size: .76rem; color: var(--proto); background: var(--proto-soft); padding: 1px 6px; border-radius: 4px; white-space: nowrap; }

/* ------- details / expanders ------- */
details.expander { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
details.expander > summary { list-style: none; cursor: pointer; padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; flex-wrap: wrap; }
details.expander > summary::-webkit-details-marker { display: none; }
details.expander > summary:before { content: "▸"; color: var(--faint); transition: transform .12s; font-size: .8rem; }
details.expander[open] > summary:before { transform: rotate(90deg); }
details.expander > .expander-body { padding: 4px 14px 14px; border-top: 1px solid var(--line); padding-top: 12px; }
details.expander + details.expander { margin-top: 8px; }

/* ------- code / json ------- */
.code-block { background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius-sm); overflow: hidden; font-size: .8rem; }
.code-title { display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: rgba(255,255,255,.05); color: #9aa7b8; font-size: .76rem; font-family: var(--mono); }
.code-title .copy-btn { margin-left: auto; }
.code-block pre { margin: 0; padding: 12px 14px; overflow-x: auto; font-family: var(--mono); line-height: 1.5; }
.copy-btn { background: transparent; border: 1px solid rgba(255,255,255,.18); color: #9aa7b8; border-radius: 5px; padding: 2px 8px; font-size: .72rem; cursor: pointer; font-family: var(--sans); }
.copy-btn:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.json .k { color: var(--code-key); }
.json .s { color: var(--code-str); }
.json .n { color: var(--code-num); }
.json .b { color: var(--code-bool); }
.json .z { color: var(--code-muted); }
.diff-line { display: block; padding: 0 8px; }
.diff-line.add { background: var(--code-add); color: var(--code-add-ink); }
.diff-line.del { background: var(--code-del); color: var(--code-del-ink); }
.diff-line.ctx { color: var(--code-ink); }
.diff-line .gutter { display: inline-block; width: 1.2em; color: inherit; opacity: .7; user-select: none; }

/* ------- callouts ------- */
.callout { border: 1px solid var(--line); border-left: 3px solid var(--faint); border-radius: var(--radius-sm); padding: 10px 14px; background: var(--surface); font-size: .9rem; margin: 8px 0; }
.callout .callout-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 3px; }
.callout.verified { border-left-color: var(--ok); }
.callout.verified .callout-label { color: var(--ok); }
.callout.interp { border-left-color: var(--info); }
.callout.interp .callout-label { color: var(--info); }
.callout.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.callout.warn .callout-label { color: var(--warn); }
.callout.err { border-left-color: var(--err); background: var(--err-soft); }
.callout.err .callout-label { color: var(--err); }
.callout.note { border-left-color: var(--accent); }
.callout.note .callout-label { color: var(--accent-ink); }

/* ------- timeline ------- */
.timeline { position: relative; padding-left: 4px; }
.tl-item { position: relative; display: flex; gap: 14px; padding: 0 0 22px; }
.tl-item:before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child:before { display: none; }
.tl-icon { flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--surface); z-index: 1; }
.tl-icon svg { width: 15px; height: 15px; }
.tl-icon.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.tl-icon.err { background: var(--err-soft); color: var(--err); border-color: transparent; }
.tl-icon.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tl-icon.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.tl-icon.proto { background: var(--proto-soft); color: var(--proto); border-color: transparent; }
.tl-icon.accent { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.tl-icon.mutedbg { background: var(--surface-2); color: var(--muted); border-color: transparent; }
.tl-body { flex: 1; min-width: 0; }
.tl-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.tl-title { font-weight: 650; font-size: .95rem; }
.tl-time { color: var(--faint); font-size: .8rem; margin-left: auto; white-space: nowrap; }
.tl-summary { color: var(--muted); font-size: .9rem; margin-top: 3px; }
.tl-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 7px; align-items: center; }
.tl-details { margin-top: 9px; }

/* ------- filter bar ------- */
.filter-bar { display: flex; gap: 7px; flex-wrap: wrap; margin: 10px 0 18px; }
.filter-chip { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: .82rem; font-weight: 600; color: var(--muted); cursor: pointer; font-family: inherit; }
.filter-chip:hover { color: var(--ink); }
.filter-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ------- uptime bar ------- */
.uptime-bar { display: flex; gap: 3px; align-items: flex-end; }
.uptime-cell { flex: 1; height: 26px; border-radius: 3px; background: var(--surface-2); min-width: 5px; }
.uptime-cell.ok { background: #46a758; }
.uptime-cell.deg { background: #e0b64c; }
.uptime-cell.down { background: #d9564a; }
.uptime-cell.auth { background: #7ba9d8; }
.uptime-cell.none { background: var(--surface-2); }
.uptime-legend { display: flex; gap: 14px; font-size: .74rem; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.uptime-legend .key { display: inline-flex; align-items: center; gap: 5px; }
.uptime-legend .swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ------- sparkline ------- */
.sparkline { display: block; }
.sparkline polyline { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.sparkline .area { fill: var(--accent-soft); stroke: none; opacity: .7; }
.sparkline .fail-dot { fill: var(--err); }

/* ------- progress steps (inspection) ------- */
.probe-steps { display: flex; flex-direction: column; gap: 0; }
.probe-step { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; color: var(--faint); position: relative; }
.probe-step .ps-icon { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: .7rem; }
.probe-step.active { color: var(--ink); }
.probe-step.active .ps-icon { border-color: var(--accent); }
.probe-step.active .ps-icon:after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1s ease-in-out infinite; }
.probe-step.done { color: var(--ink); }
.probe-step.done .ps-icon { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.probe-step.fail .ps-icon { border-color: var(--err); background: var(--err-soft); color: var(--err); }
.probe-step .ps-label { font-weight: 600; font-size: .92rem; }
.probe-step .ps-detail { font-size: .8rem; color: var(--muted); }

.radar-pulse { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--accent); position: relative; margin: 0 auto 12px; }
.radar-pulse:before, .radar-pulse:after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--accent); animation: radar 1.8s ease-out infinite; opacity: 0; }
.radar-pulse:after { animation-delay: .9s; }
.radar-pulse .core, .radar-pulse b { position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@keyframes radar { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.page-loading { text-align: center; padding: 90px 0; color: var(--muted); }

/* ------- modal ------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(23, 28, 38, .45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 100; overflow-y: auto; }
.modal { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 640px; }
.modal-header { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-header h3 { margin: 0; }
.modal-close { margin-left: auto; background: none; border: 0; font-size: 1.2rem; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.modal-close:hover { background: var(--surface-2); color: var(--ink); }
.modal-body { padding: 18px 20px; max-height: 72vh; overflow-y: auto; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.modal.wide { max-width: 860px; }

/* ------- toast ------- */
#toast-root { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 9px 18px; border-radius: 999px; font-size: .86rem; box-shadow: var(--shadow-lg); animation: toast-in .18s ease-out; display: flex; gap: 8px; align-items: center; }
.toast.ok svg { color: #6fdc9c; }
.toast.err { background: #5c1f1a; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ------- wizard / stepper ------- */
.stepper { display: flex; gap: 0; margin-bottom: 20px; }
.step { flex: 1; text-align: center; font-size: .78rem; color: var(--faint); position: relative; padding-top: 22px; }
.step:before { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); z-index: 1; }
.step:after { content: ""; position: absolute; top: 13px; left: calc(-50% + 8px); right: calc(50% + 8px); height: 2px; background: var(--line); }
.step:first-child:after { display: none; }
.step.active { color: var(--accent-ink); font-weight: 600; }
.step.active:before { border-color: var(--accent); background: var(--accent-soft); }
.step.done { color: var(--muted); }
.step.done:before { border-color: var(--ok); background: var(--ok); }

.token-box { background: var(--code-bg); color: #e8eef6; border-radius: var(--radius-sm); padding: 14px 16px; font-family: var(--mono); font-size: .85rem; word-break: break-all; position: relative; }
.token-box .copy-btn { position: absolute; top: 10px; right: 10px; }

/* ------- feeds / lists ------- */
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); align-items: baseline; font-size: .9rem; flex-wrap: wrap; }
.feed-item:last-child { border-bottom: 0; }
.feed-item .time { color: var(--faint); font-size: .78rem; margin-left: auto; white-space: nowrap; }

.empty-state { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty-state svg { width: 34px; height: 34px; color: var(--faint); margin-bottom: 10px; }
.empty-state h3 { color: var(--ink); }
.empty-state p { max-width: 460px; margin: 0 auto 14px; font-size: .9rem; }

.skeleton { border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 25%, #eae7df 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; min-height: 14px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ------- tabs ------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 9px 16px; font-size: .9rem; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--accent-ink); border-bottom-color: var(--accent); }

/* ------- misc ------- */
.kbd { font-family: var(--mono); font-size: .78rem; background: var(--surface-2); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; }
.page-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .right-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb { font-size: .82rem; color: var(--faint); margin-bottom: 8px; }
.breadcrumb a { color: var(--muted); }
.notice-bar { background: var(--accent-soft); border: 1px solid #cde5de; color: var(--accent-ink); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .88rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.badge-preview { display: inline-flex; }

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
