/* Login onboarding · Totality product components */
@font-face { font-family: "Mulish"; font-weight: 300; font-display: swap; src: url("./design-fonts/mulish-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 500; font-display: swap; src: url("./design-fonts/mulish-latin-500-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  /* Ground */
  --ground: #0e0e0f; --night: #121213; --raise: #18181a;
  /* Eclipse palette */
  --ecru: #E8EBD5; --gold: #F6CF86; --pale: #EFE09A; --amber: #F4A340; --coronal: #DF753D; --white-hot: #fff6e2;
  --heat-one: linear-gradient(100deg, #E8EBD5 6%, #EFE09A 40%, #F4A340 96%);
  --sun: linear-gradient(315deg, #DF753D 15%, #F4A340 42%, #F6CF86 70%, #F1F0DE 88%);
  --rim: linear-gradient(135deg, rgb(243 236 210 / .7), rgb(246 199 126 / .45) 14%, rgb(244 163 64 / .2) 34%, rgb(232 235 213 / .07) 64%, rgb(232 235 213 / .05));
  /* Text */
  --heading: #f3eee9; --text: #e4ddd2; --soft: #cdc7bf; --muted: #a8a6a3; --faint: #77736e;
  /* Cool accent (test environment, small labels) */
  --ice: #9ad8ee; --ice-muted: #b9c6cc; --ice-line: 185 198 204;
  /* States: always paired with words and a glyph */
  /* Done is the brightest light (Ecru, with the bead's glow); waiting is pale gold; problems are coral. */
  --ok: #EEF0DF; --ok-rgb: 238 240 223; --ok-ink: #1d1710; --ok-glow: 0 0 10px rgb(255 240 210 / .55);
  /* Done, as a tiny total eclipse: the diamond-ring bead at the upper left (where the login bead settles),
     a dark moon nudged down-right, and the eclipse corona as the ring. Percent-based, so it scales. */
  --totality: radial-gradient(circle at 17% 17%, #fffaf0 0 max(1.2px, 4%), rgb(255 228 192 / .6) max(2px, 7.5%), rgb(244 163 64 / .14) max(3px, 11%), transparent max(4px, 15%)) padding-box,
    linear-gradient(90deg, transparent 0, rgb(255 232 200 / .55) 17%, rgb(255 232 200 / .08) 45%, transparent 60%) 0 17% / 100% 1px no-repeat padding-box,
    linear-gradient(#141414, #141414) padding-box,
    linear-gradient(315deg, #DF753D 8%, #F4A340 38%, #F6CF86 68%, #F1F0DE 92%) border-box;
  --totality-glow: -2px -2px 8px -3px rgb(255 222 175 / .5), 0 0 8px -2px rgb(244 163 64 / .3);
  /* Lines and surfaces */
  --line: rgb(255 242 220 / .08); --line-strong: rgb(255 242 220 / .15);
  --card: linear-gradient(180deg, rgb(28 28 30 / .82), rgb(16 16 18 / .9));
  --e2: 0 1px 0 rgb(255 255 255 / .04) inset, 0 24px 60px -30px rgb(0 0 0 / .9);
  --font: "Bionic Tomorrow", "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --font-text: "Mulish", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, .84, .24, 1);
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { background: var(--ground); }
body { min-height: 100vh; background: var(--ground); color: var(--text); font: 300 15px/1.6 var(--font-text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* The sky: darkest under the content, a warm haze high left, a cool trace low right. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(60% 50% at 12% -8%, rgb(244 163 64 / .13), transparent 60%),
  radial-gradient(50% 45% at 105% 105%, rgb(120 150 220 / .08), transparent 60%),
  radial-gradient(80% 60% at 50% 40%, #111112, var(--ground)); }
body[data-env="test"]::before { background:
  radial-gradient(60% 50% at 12% -8%, rgb(244 163 64 / .1), transparent 60%),
  radial-gradient(55% 50% at 105% 105%, rgb(110 180 220 / .11), transparent 60%),
  radial-gradient(80% 60% at 50% 40%, #111113, var(--ground)); }
a { color: var(--gold); text-underline-offset: 4px; text-decoration-color: rgb(246 207 134 / .4); }
a:hover { color: var(--white-hot); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
code, pre, .mono { font-family: var(--mono); }
h1, h2, h3 { font-family: var(--font); color: var(--heading); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }


/* ---------------- Product shell ---------------- */
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 56px; }
html, body { overflow-x: clip; }
.app-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 0 18px; border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, transparent, rgb(246 207 134 / .35) 20%, rgb(244 163 64 / .25) 60%, transparent) 1; margin-bottom: 30px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 500 18px/1 var(--font); color: var(--heading); letter-spacing: -.01em; }
.wordmark svg { width: 26px; height: 26px; overflow: visible; }
.wordmark small { font: 400 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line-strong); }
.app-bar .grow { flex: 1; }
.owner { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px 0 6px; border: 1px solid var(--line-strong); border-radius: 99px; font: 400 12.5px/1 var(--font); color: var(--soft); }
.owner i { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b2926, #121212); box-shadow: inset -2px -2px 0 rgb(244 163 64 / .6); }

/* Environment: always visible, never colour alone. */
.env { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 11px; border-radius: 3px; font: 600 10.5px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; border: 1px solid; }
.env::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.env.test { color: var(--ice); border-color: rgb(154 216 238 / .35); background: rgb(154 216 238 / .05); }
.env.live { color: var(--amber); border-color: rgb(244 163 64 / .42); background: rgb(244 163 64 / .06); }
.env.sandbox { color: #c9b6ff; border-color: rgb(201 182 255 / .4); background: rgb(201 182 255 / .06); border-style: dashed; }

/* Page title block */
.title { display: grid; gap: 10px; max-width: 760px; margin-bottom: 28px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 11px/1.4 var(--font); letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }
.kicker .who { color: var(--ice-muted); }
main h1 { font: 300 clamp(32px, 4.6vw, 50px)/1.04 var(--font); letter-spacing: -.045em; text-wrap: balance; }
main h1 .heat, .heat { background: var(--heat-one); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 16.5px; line-height: 1.6; color: var(--soft); max-width: 640px; }
h2 { font-size: 21px; font-weight: 400; }
h3 { font-size: 16px; font-weight: 500; }

/* Layout */
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
.cols.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: grid; gap: 16px; align-content: start; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Surfaces */
.card { position: relative; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); box-shadow: var(--e2); }
.card.lit { border-color: transparent; background: radial-gradient(120% 80% at 0% 0%, rgb(244 163 64 / .1), transparent 55%) padding-box, var(--card) padding-box, var(--rim) border-box; box-shadow: -14px -12px 40px -30px rgb(244 163 64 / .55), var(--e2); }
.card.cool { border-color: rgb(154 216 238 / .2); background: radial-gradient(120% 80% at 100% 0%, rgb(110 180 220 / .07), transparent 55%), var(--card); }
.inset { padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: rgb(0 0 0 / .22); }
.lbl { display: block; font: 600 10.5px/1.5 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.small { font-size: 13.5px; color: var(--muted); }
.tiny { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* Buttons. The Bionic button (.bionic-button) comes from the SDK stylesheet. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 3px; background: rgb(255 255 255 / .02); font: 500 14px/1 var(--font); color: var(--heading); text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.btn:hover { border-color: rgb(246 207 134 / .45); background: rgb(244 163 64 / .06); color: var(--white-hot); }
.btn svg { width: 16px; height: 16px; }
/* Solar: the landing's solid button. One per view, for the non-passkey next step. */
.btn.solar { border: 0; color: #1d1305; background: linear-gradient(180deg, #F7CB86, #F4A340 55%, #E98F45); box-shadow: inset 0 1px 0 rgb(250 240 215 / .55), 0 0 28px rgb(244 163 64 / .22), 0 10px 24px -12px rgb(0 0 0 / .6); }
.btn.solar:hover { background: linear-gradient(180deg, #FAD9A4, #F6B45C 55%, #EE9C4C); box-shadow: inset 0 1px 0 rgb(252 246 228 / .7), 0 0 44px 4px rgb(244 163 64 / .34), 0 10px 24px -12px rgb(0 0 0 / .6); color: #1d1305; }
.btn.quiet { border-color: transparent; background: none; color: var(--gold); padding-inline: 8px; }
.btn.quiet:hover { background: rgb(244 163 64 / .07); }
.btn.danger { color: var(--bad); border-color: rgb(255 138 101 / .32); }
.btn.danger:hover { background: rgb(255 138 101 / .07); color: #ffb39a; border-color: rgb(255 138 101 / .55); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; cursor: not-allowed; }
.ext::after { content: "↗"; font-size: 13px; opacity: .8; }
.bionic-button { font-family: var(--bionic-button-font); }

/* Fields */
.field { display: grid; gap: 7px; }
.field > span, .field > label, label.field { font: 500 13.5px/1.3 var(--font); color: var(--heading); }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
input[type="text"], input[type="url"], input:not([type]), select, textarea { width: 100%; min-height: 50px; padding: 0 15px; border: 1px solid rgb(255 242 220 / .16); border-radius: 6px; background: rgb(0 0 0 / .3); font: 400 15.5px/1.3 var(--font-text); color: var(--heading); transition: border-color .2s, box-shadow .2s; }
input[type="url"] { font-family: var(--mono); font-size: 14px; }
input::placeholder { color: rgb(216 216 216 / .32); }
input:focus { outline: none; border-color: rgb(246 207 134 / .6); box-shadow: 0 0 0 3px rgb(244 163 64 / .14); }
.field.bad input { border-color: rgb(255 138 101 / .55); }
.field.ok input { border-color: rgb(var(--ok-rgb) / .4); }
.hint { font-size: 12.5px; color: var(--muted); }
.hint b { font-weight: 500; color: var(--soft); }
.msg { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
.msg::before { flex: none; width: 16px; height: 16px; margin-top: 1px; display: grid; place-items: center; border-radius: 50%; font: 700 10px/1 var(--font); }
.msg.bad { color: #ffb39a; } .msg.bad::before { content: "!"; color: #1a0d08; background: var(--bad); }
.msg.ok { color: var(--ok); } .msg.ok::before { content: "✓"; width: 18px; height: 18px; margin-top: 0; font-size: 9px; border: 1px solid transparent; color: var(--ok); background: var(--totality); box-shadow: var(--totality-glow); }
.msg.wait { color: var(--wait); } .msg.wait::before { content: "…"; color: #1a1406; background: var(--wait); line-height: .6; }

/* Status: the live region, styled as a quiet strip. */
#status { min-height: 1.5em; margin-top: 22px; font: 400 13.5px/1.5 var(--font-text); color: var(--soft); }
#status:not(:empty) { display: flex; gap: 10px; align-items: flex-start; padding: 12px 15px; border: 1px solid var(--line-strong); border-left: 2px solid var(--gold); border-radius: 0 6px 6px 0; background: rgb(244 163 64 / .04); }
#status[data-tone="ok"]::before { content: ""; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 1px solid transparent; background: var(--totality); box-shadow: var(--totality-glow); }
#status[data-tone="ok"] { border-left-color: transparent; background: linear-gradient(180deg, #F1F0DE, #F6CF86 40%, #F4A340 75%, #DF753D) 0 0 / 2px 100% no-repeat, radial-gradient(60% 140% at 0% 0%, rgb(255 236 200 / .09), transparent 70%), rgb(var(--ok-rgb) / .03); }
#status[data-tone="wait"] { border-left-color: var(--wait); background: rgb(246 207 134 / .05); }
#status[data-tone="bad"] { border-left-color: var(--bad); background: rgb(255 138 101 / .06); color: #ffd2c4; }
#status:empty::before { content: none; }
#status::before { font: 600 10px/1.9 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); content: "Status"; flex: none; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 24px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 3px; font: 600 10.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); border-color: rgb(var(--ok-rgb) / .3); }
.pill.ok::before { width: 10px; height: 10px; border: 1px solid transparent; background: var(--totality); box-shadow: var(--totality-glow); }
.pill.wait { color: var(--wait); border-color: rgb(246 207 134 / .3); }
.pill.bad { color: var(--bad); border-color: rgb(255 138 101 / .35); }
.pill.amber { color: var(--amber); border-color: rgb(244 163 64 / .35); }
.pill.ice { color: var(--ice); border-color: rgb(154 216 238 / .3); }

/* Copyable value */
.copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 6px; background: rgb(0 0 0 / .34); overflow: hidden; }
.copy code { display: block; padding: 13px 15px; font-size: 13.5px; line-height: 1.5; color: var(--heading); overflow-wrap: anywhere; word-break: break-all; user-select: all; }
.copy button { min-width: 84px; min-height: 44px; border: 0; border-left: 1px solid var(--line); background: rgb(255 255 255 / .02); font: 500 12.5px/1 var(--font); color: var(--gold); cursor: pointer; }
.copy button:hover { background: rgb(244 163 64 / .08); }
.copy button[data-copied] { color: var(--ok); }

/* Definition list (records, terms) */
dl.terms { display: grid; gap: 14px; }
dl.terms > div { display: grid; gap: 6px; }
dl.terms dt { font: 600 10.5px/1.5 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
dl.terms dd { color: var(--heading); }
dl.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; font-size: 14px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { color: var(--heading); overflow-wrap: anywhere; }
dl.kv dd code { font-size: 13px; }

/* Progress steps inside a view (not a wizard counter) */
.steps { display: grid; gap: 0; counter-reset: s; }
.steps > li { list-style: none; counter-increment: s; position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 14px; padding: 0 0 22px; }
.steps > li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); font: 500 12px/1 var(--font); color: var(--muted); background: var(--night); position: relative; z-index: 1; }
.steps > li:nth-last-child(1 of :not([hidden]))::after { display: none; }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 30px; bottom: 0; width: 1px; background: var(--line-strong); }
.steps > li.done::before { content: "✓"; font-size: 12px; color: var(--ok); background: var(--totality); border: 1.5px solid transparent; box-shadow: var(--totality-glow); }
.steps > li.now::before { color: #1d1305; background: var(--sun); border: 0; box-shadow: 0 0 16px rgb(244 163 64 / .5); }
.steps > li.done::after { background: linear-gradient(rgb(246 207 134 / .7), var(--line-strong)); }
.steps b { font: 500 15px/1.35 var(--font); color: var(--heading); }
.steps span { font-size: 13.5px; color: var(--muted); }

/* Terminal / configuration */
.term { border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: #09090a; box-shadow: var(--e2); }
.term-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 400 12px/1 var(--font); color: var(--muted); }
.term-top i { width: 9px; height: 9px; border-radius: 50%; background: #2a2a2c; }
.term-top .grow { flex: 1; }
.term pre { margin: 0; padding: 18px 20px; font-size: 13.5px; line-height: 1.9; color: var(--soft); overflow-x: auto; white-space: pre; tab-size: 2; }
.term pre:focus-visible { outline-offset: -3px; }
.term .k { color: var(--ice-muted); }
.term .v { color: var(--heading); }
.term .s { color: var(--gold); }
.term .redact { display: inline-block; vertical-align: middle; width: 22ch; height: 1.05em; border-radius: 2px; background: repeating-linear-gradient(90deg, rgb(255 242 220 / .16) 0 6px, transparent 6px 9px); }
.cmd { display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1px solid var(--line); border-radius: 6px; background: #09090a; overflow: hidden; }
.cmd code { padding: 11px 14px; font-size: 13px; color: var(--heading); overflow-x: auto; white-space: nowrap; }
.cmd code::before { content: "$ "; color: var(--faint); }
.cmd button { min-width: 64px; min-height: 42px; border: 0; border-left: 1px solid var(--line); background: none; color: var(--gold); font: 500 12px/1 var(--font); cursor: pointer; }

/* Callouts */
.note { padding: 14px 16px 14px 18px; border-left: 2px solid var(--amber); border-radius: 0 6px 6px 0; background: linear-gradient(90deg, rgb(244 163 64 / .07), transparent); font-size: 13.5px; line-height: 1.55; color: var(--text); }
.note b { display: block; margin-bottom: 3px; font: 600 10.5px/1.6 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.note.cool { border-left-color: var(--ice-muted); background: linear-gradient(90deg, rgb(154 216 238 / .06), transparent); }
.note.cool b { color: var(--ice-muted); }
.note.warn { border-left-color: var(--wait); background: linear-gradient(90deg, rgb(246 207 134 / .07), transparent); }
.note.warn b { color: var(--wait); }
.note.bad { border-left-color: var(--bad); background: linear-gradient(90deg, rgb(255 138 101 / .08), transparent); }
.note.bad b { color: var(--bad); }


/* ---------------- The eclipse (login interstitial, lighter palette) ---------------- */
.eclipse { --d: 120px; display: block; position: relative; width: var(--d); aspect-ratio: 1; flex: none; }
.eclipse > * { position: absolute; border-radius: 50%; }
.eclipse .haze { inset: -60%; background: radial-gradient(circle closest-side, rgb(244 163 64 / .2) 36%, rgb(232 140 70 / .07) 52%, transparent 100%); animation: breathe 6s ease-in-out infinite; }
.eclipse .sun { inset: 0; background: var(--sun); filter: blur(calc(var(--d) * .008)); box-shadow: 0 0 calc(var(--d) * .05) calc(var(--d) * .008) rgb(236 140 66 / .7), 0 0 calc(var(--d) * .18) calc(var(--d) * .02) rgb(236 140 66 / .25); }
.eclipse .moon { inset: 0; translate: 1.2% 1.2%; background: radial-gradient(circle at 36% 34%, #1a1a1a, #0f0f0f 62%, #0b0b0b); box-shadow: inset 1px 1px 1px rgb(240 225 190 / .14); }
.eclipse .orbit { inset: -3px; border-radius: 50%; animation: orbit 2.4s linear infinite; }
/* The tail and bead ride the orbit: both must be positioned against it, or the bead falls to the orbit's corner. */
.eclipse .orbit > * { position: absolute; }
.eclipse .tail { inset: 0; border-radius: 50%; background: conic-gradient(transparent 0 62%, rgb(244 163 64 / .25) 80%, rgb(240 236 214 / .95)); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); }
.eclipse .bead { left: 50%; top: 1.5px; width: 0; height: 0; }
.eclipse .bead i { position: absolute; left: 0; top: 0; translate: -50% -50%; border-radius: 50%; }
.eclipse .bead .core { width: 5px; height: 5px; background: #fff; box-shadow: 0 0 4px 1px #fff, 0 0 10px 4px #F3E6C0, 0 0 24px 8px rgb(244 163 64 / .5); }
.eclipse .bead .streak { width: 44px; height: 1.5px; border-radius: 0; background: linear-gradient(90deg, transparent, rgb(244 200 140 / .1) 26%, rgb(240 236 214 / .9) 50%, rgb(244 200 140 / .1) 74%, transparent); transition: width .9s var(--ease); }
.eclipse .bead .spike { width: 1.5px; height: 0; border-radius: 0; background: linear-gradient(transparent, rgb(240 236 214 / .6), transparent); transition: height .9s var(--ease); }
/* Settled: the bead stops at 315° and flares into the diamond ring. */
.eclipse.settled .orbit { animation: none; rotate: 315deg; }
.eclipse.settled .tail { opacity: 0; }
.eclipse.settled .bead { rotate: 45deg; }
.eclipse.settled .bead .core { scale: 1.5; animation: twinkle 4s 1s ease-in-out infinite; }
.eclipse.settled .bead .streak { width: calc(var(--d) * 2.6); }
.eclipse.settled .bead .spike { height: calc(var(--d) * .4); }
.eclipse.still .orbit { animation: none; rotate: 315deg; }
.eclipse.still .tail { opacity: 0; }
/* Dim: ended or blocked. */
.eclipse.dim .sun { filter: grayscale(.7) brightness(.55); box-shadow: none; }
.eclipse.dim .haze, .eclipse.dim .orbit { display: none; }
/* Cool: test environment. */
.eclipse.cool .sun { background: linear-gradient(315deg, #3d6fd6 15%, #4ea6e2 40%, #8fd6ec 70%, #e2f6fb 88%); box-shadow: 0 0 calc(var(--d) * .05) calc(var(--d) * .008) rgb(80 160 230 / .55); }
.eclipse.cool .haze { background: radial-gradient(circle closest-side, rgb(110 180 230 / .18) 36%, transparent 100%); }
@keyframes orbit { to { rotate: 360deg; } }
@keyframes breathe { 50% { scale: 1.05; opacity: .8; } }
@keyframes twinkle { 50% { scale: 1.9; opacity: .85; } }
@keyframes rise { from { opacity: 0; translate: 0 10px; } }


/* Entrance */
.rise { animation: rise .7s var(--ease) both; }
.rise:nth-child(2) { animation-delay: .06s; } .rise:nth-child(3) { animation-delay: .12s; }


/* App list (01) */
.apps { display: grid; gap: 10px; }
.app { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgb(255 255 255 / .02); text-decoration: none; color: inherit; transition: border-color .2s, background .2s, translate .2s var(--ease); }
.app:hover { border-color: rgb(246 207 134 / .45); background: rgb(244 163 64 / .04); translate: 2px 0; color: inherit; }
.app .mono-av { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-strong); background: linear-gradient(160deg, #26252a, #141416); font: 500 16px/1 var(--font); color: var(--heading); }
.app strong { display: block; font: 500 15px/1.3 var(--font); color: var(--heading); }
.app small { display: block; margin-top: 2px; font: 400 12.5px/1.3 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app .next { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1 var(--font); color: var(--gold); }
.empty { display: grid; justify-items: center; gap: 10px; padding: 36px 20px; border: 1px dashed var(--line-strong); border-radius: 8px; text-align: center; color: var(--muted); }


/* Plans (09) */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.plan { display: grid; gap: 16px; align-content: start; padding: clamp(22px, 3vw, 30px); border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); position: relative; }
.plan.featured { border-color: transparent; background: radial-gradient(130% 70% at 0% 0%, rgb(244 163 64 / .14), transparent 55%) padding-box, var(--card) padding-box, linear-gradient(135deg, #f3ecd2, #f6c77e 14%, rgb(244 163 64 / .55) 34%, rgb(232 235 213 / .1) 64%, rgb(232 235 213 / .06)) border-box; box-shadow: -18px -16px 50px -34px rgb(244 163 64 / .6), var(--e2); }
.plan .badge { position: absolute; top: -11px; left: 24px; padding: 5px 10px; border-radius: 3px; font: 600 10px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: #1d1305; background: linear-gradient(180deg, #F7CB86, #F4A340 55%, #E98F45); }
.plan h2 { font: 300 26px/1.1 var(--font); letter-spacing: -.03em; }
.price { display: flex; align-items: baseline; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.price strong { font: 300 48px/1 var(--font); letter-spacing: -.05em; color: var(--heading); }
.plan.featured .price strong { background: var(--heat-one); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.plan ul { display: grid; gap: 9px; padding: 0; }
.plan li { list-style: none; display: flex; gap: 10px; font-size: 14px; color: var(--soft); }
.plan li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.plan .btn, .plan .bionic-button { width: 100%; max-width: none; }


  .entry { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; min-height: 520px; }
  .hero { position: relative; display: grid; gap: 18px; }
  .hero .eclipse { --d: 150px; margin: 0 0 18px 6px; }
  .hero h1 { font-size: clamp(38px, 5.4vw, 62px); }
  .track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
  .track > div { padding: 14px 16px 16px; border-radius: 8px; border: 1px solid var(--line); background: rgb(255 255 255 / .015); }
  .track ol { display: flex; flex-wrap: wrap; gap: 6px 4px; margin-top: 10px; padding: 0; font: 400 12.5px/1.3 var(--font); color: var(--soft); }
  .track li { list-style: none; display: inline-flex; align-items: center; gap: 4px; }
  .track li:not(:last-child)::after { content: "·"; margin-left: 4px; color: var(--faint); }
  .choose { display: grid; gap: 14px; }
  .choice { display: grid; gap: 12px; padding: 22px; }
  .choice h2 { font-size: 20px; }
  .choice p { font-size: 14px; color: var(--muted); }
  #apps { display: grid; gap: 10px; }
  .pending { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 8px; border: 1px solid rgb(246 207 134 / .28); background: rgb(244 163 64 / .04); }
  .pending .eclipse { --d: 42px; }
  @media (max-width: 960px) { .entry { grid-template-columns: minmax(0, 1fr); min-height: 0; } .hero .eclipse { --d: 96px; } }
  @media (max-width: 560px) { .track { grid-template-columns: minmax(0, 1fr); } }

main { max-width: 1120px; margin: 0 auto; padding: 20px clamp(16px, 4vw, 48px) 64px; }
.app-bar .wordmark img { width: 28px; height: 28px; }
.console-nav, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.console-nav { margin-block: 18px; }
.console-nav:empty, #apps:empty, #drafts:empty { display: none; }
.console-section { display: grid; gap: 18px; margin-block: 24px; min-width: 0; }
.card, .plan { min-width: 0; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
pre:empty { display: none; }
pre, .record { background: #101012; border: 1px solid var(--line-strong); border-radius: 6px; padding: 14px; }
.record dd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.record code { overflow-wrap: anywhere; min-width: 0; }
.usage-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.usage-ring { width: 112px; transform: rotate(-90deg); fill: none; stroke: var(--line-strong); stroke-width: 7; }
.usage-ring .amount { stroke: var(--amber); }
#status:not(:empty) { position: sticky; bottom: .75rem; padding: 12px; background: var(--ground); border: 1px solid var(--line-strong); z-index: 1; }
@media (max-width: 760px) { .plans, .cols, .entry { grid-template-columns: minmax(0, 1fr); } .entry { min-height: auto; } .app-bar { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
