/* The Generator v3 shell (2026-10-28): the library's top bar on black (LibraryTopBar.tsx), the six-step trail, the
   drawers and the shared controls. Steps add their own styles in steps/<name>.css and use these tokens. Corners: the
   product's 6px on buttons and fields where the Look asks for it; the Generator's own chrome stays ssych: pills. */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap');
:root { --ground: #000; --fill: rgba(255,255,255,.04); --fill-2: rgba(255,255,255,.07); --fill-3: rgba(255,255,255,.1); --hair: rgba(255,255,255,.06);
  --ink-100: #fff; --ink-85: rgba(255,255,255,.85); --ink-70: rgba(255,255,255,.7); --ink-62: rgba(255,255,255,.62); --ink-45: rgba(255,255,255,.45);
  --up: #34c28a; --down: #e06a6a; --accent: #8fb8ff; --font: 'Sora', system-ui, sans-serif; --ease: cubic-bezier(.16,1,.3,1); --ease-kit: cubic-bezier(.22,1,.36,1); }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ground); color: var(--ink-85); font: 400 13px/1.55 var(--font); }
button { font: inherit; color: inherit; }
svg { flex: none; }
/* the library's top bar, with the Generator's step trail in its middle */
.lnav { position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: rgba(0,0,0,.82); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.lnav .home { display: inline-flex; color: #fff; }
.lnav .lockup { height: 18px; width: auto; display: block; }
/* the steps as tabs (2026-11-06): text only, no pills; the current one full white with a 2px bar on the bar's bottom edge,
   the ones done at 45% (hover lifts them), the ones not reached at 25% */
.trail { margin: 0 auto; align-self: stretch; display: flex; align-items: stretch; gap: 2px; min-width: 0; }
.trail .s { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 0; border-radius: 0; background: none; color: rgba(255,255,255,.25); cursor: default; white-space: nowrap; transition: color .2s; }
.trail .s::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--ink-100); transform: scaleX(0); transition: transform .3s var(--ease); }
.trail .s.done { color: var(--ink-45); cursor: pointer; } .trail .s.done:hover { color: var(--ink-85); }
.trail .s.on { color: var(--ink-100); font-weight: 500; cursor: default; }
.trail .s.on::after { transform: none; }
.trail .s:focus-visible { outline: 1.5px solid rgba(90,170,255,.9); outline-offset: -8px; border-radius: 999px; }
.trail-m { display: none; color: var(--ink-70); font-weight: 500; }
.links { display: flex; gap: 2px; }
.link { height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: var(--ink-62); cursor: pointer; }
.link:hover { background: var(--fill); color: var(--ink-100); }
@media (max-width: 1100px) { .trail .s span { display: none; } .trail .s { padding: 0 10px; } .trail .s::after { left: 8px; right: 8px; } }
@media (max-width: 720px) { .lnav { padding: 0 14px; gap: 8px; } .trail { align-self: center; } .trail .s { display: none; } .trail-m { display: block; } .link span { display: none; } }
/* the stage each step draws into */
main { padding: 28px 24px 64px; }
.view { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; animation: in .38s var(--ease) both; }
.view.wide { max-width: 1400px; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
h1 { margin: 0; font: 500 24px/1.25 var(--font); color: var(--ink-100); letter-spacing: -.01em; }
.lead { margin: 0; color: var(--ink-62); }
.label { color: var(--ink-45); font-size: 11.5px; }
.row { display: flex; align-items: center; gap: 8px; } .grow { flex: 1; }
.block { background: var(--fill); border-radius: 12px; padding: 14px 16px; }
.btn { height: 34px; padding: 0 15px; border-radius: 999px; border: 0; font-weight: 500; cursor: pointer; background: var(--fill-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); color: var(--ink-85); display: inline-flex; align-items: center; gap: 7px; text-decoration: none; transition: background-color .2s, color .2s; }
.btn:hover { background: var(--fill-3); color: var(--ink-100); }
.btn.main { background: rgba(255,255,255,.92); color: #000; box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.16); }
.btn.main:hover { background: #fff; }
.btn:disabled { opacity: .45; cursor: default; }
.ib { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 999px; background: none; color: var(--ink-62); cursor: pointer; }
.ib:hover { background: var(--fill); color: var(--ink-100); }
.err { color: #f0a0a0; margin: 0; }
.from { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; color: var(--ink-85); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.thinking { display: flex; align-items: center; gap: 10px; color: var(--ink-70); }
.ring { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.18); border-top-color: #fff; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } .view { animation: none; } }
/* drawers */
.drawer { position: fixed; top: 60px; right: 0; bottom: 0; width: min(380px, 100vw); z-index: 40; background: #0b0b0c; padding: 16px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; display: flex; flex-direction: column; gap: 8px; }
/* the shadow only while it is open: closed, it sat just off screen and greyed the page's right edge */
.drawer.on { transform: none; visibility: visible; transition: transform .35s var(--ease); box-shadow: -1px 0 0 var(--hair), -24px 0 60px rgba(0,0,0,.5); }
.dr-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; } .dr-h b { color: var(--ink-100); font-weight: 500; font-size: 14px; }
.drawer .r { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--fill); cursor: pointer; }
.drawer .r:hover { background: var(--fill-2); } .drawer .r b { font-weight: 500; color: var(--ink-100); } .drawer .r span { font-size: 11.5px; color: var(--ink-45); }
.md p { margin: 0 0 10px; color: var(--ink-70); }
/* builds in progress (2026-11-05): the top bar's pill and Recent's first section */
.link.running { color: var(--ink-100); background: var(--fill-2); }
.link.running[hidden] { display: none; }
.link.running .ring { width: 12px; height: 12px; }
.drawer .dr-l { margin: 8px 2px 0; }
.drawer .r.run { display: grid; grid-template-columns: 12px 1fr; column-gap: 10px; align-items: center; }
.drawer .r.run .ring { width: 12px; height: 12px; grid-row: span 2; }
.drawer .r.here { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
@media (max-width: 720px) { .link.running span:last-child { display: inline; } }

/* the public Generator (gen.ssych.com, 2026-11-06): credits and the account in the top bar, the sign-in or plan panel in
   place of the steps. Savva's own page never has these elements. */
.gp-acct { display: inline-flex; align-items: center; gap: 10px; margin-left: 8px; }
.gp-cr { height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 999px; background: var(--fill); color: var(--ink-85); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gp-cr[hidden] { display: none; }
.gp-user { display: inline-flex; align-items: center; min-width: 28px; }
.gp-panel { max-width: 460px; margin: 16vh auto 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; animation: in .38s var(--ease) both; }
.gp-panel .btn { text-decoration: none; margin-top: 8px; }
body.gp-gated .lnav .links > .link { display: none; }
@media (max-width: 720px) { .gp-panel { margin-top: 10vh; } .gp-w { display: none; } }
