/* Go Around · auth kit · BASE for the design-repo family: reset, type, card, buttons, pills, chips, top bar, notice, sheet, field.
   Extracted rule by rule from go-around-design components/pilot-ato-wired-19nov/shared/ga.css (nothing retyped). */
/* ── Base ─────────────────────────────────────────────────────────────────── */
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg);-webkit-text-size-adjust:100%;scrollbar-color:var(--ln) transparent}
body{font:400 15px/1.55 Satoshi,-apple-system,system-ui,sans-serif;color:var(--tx);min-height:100dvh;-webkit-font-smoothing:antialiased;
 background:radial-gradient(110% 55% at 50% -12%,var(--bg2),transparent 72%) no-repeat,var(--bg)}
::selection{background:color-mix(in srgb,var(--acc) 28%,transparent)}
a{color:inherit;text-decoration:none}
button,input{font:inherit;color:inherit;background:none;border:0}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
:focus-visible{outline:2px solid var(--acc);outline-offset:3px;border-radius:12px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mono,.num{font-family:'JetBrains Mono',ui-monospace,monospace;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.lbl{font:600 11px/14px 'General Sans',sans-serif;letter-spacing:.09em;text-transform:uppercase;color:var(--tx3)}
.muted{color:var(--tx2)}
.fine{font-size:13px;line-height:1.5;color:var(--tx3)}
/* ── Preview strip (design preview only; not part of the page) ─────────────── */
.pv{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center;padding:calc(var(--sat) + 8px) 12px 0;font:600 11px/1 'General Sans';letter-spacing:.06em;text-transform:uppercase;color:var(--tx3)}
html.cap .pv{display:none}
/* ── Top bar: the one real blur surface on the page ───────────────────────── */
.bar{position:sticky;top:0;z-index:30;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:calc(var(--sat) + 8px) max(16px,calc((100% - 640px) / 2 + 16px)) 8px}
@media (min-width:1100px){
 .bar{padding-inline:max(32px,calc((100% - 1140px) / 2 + 32px))}}
.bar::before{content:"";position:absolute;inset:0 0 -16px;z-index:-1;background:var(--bar);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);
 -webkit-mask-image:linear-gradient(#000 calc(100% - 16px),transparent);mask-image:linear-gradient(#000 calc(100% - 16px),transparent)}
.bar h1,.bar .ttl{font:600 17px/22px 'General Sans',sans-serif;text-align:center;white-space:nowrap}
.icb{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--card);box-shadow:inset 0 .5px 0 var(--hl),inset 0 0 0 .5px var(--ln),var(--sh)}
.icb svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.bar .end{justify-self:end}
@media (hover:hover){
 .icb{transition:transform var(--d1) var(--e-out)}
 .icb:hover{transform:translateY(-1px)}}
.icb:active{transform:scale(.97)}
/* ── Cards (fake glass: tint + inner highlight, no blur) ──────────────────── */
.card{position:relative;background:var(--card);border-radius:var(--r);padding:20px;box-shadow:inset 0 .5px 0 var(--hl),inset 0 0 0 .5px var(--ln),var(--sh)}
.card-h{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.card-h h2,.card-h h3{font:600 20px/26px 'Clash Display',sans-serif;letter-spacing:-.005em}
.card-h p{margin-top:2px;color:var(--tx2);font-size:14px;line-height:1.5}
.card-h .aside{flex:none}
.sub-h{margin:18px 0 6px}
a.rw{border-radius:0}
@media (hover:hover){
 a.rw .chev{transition:transform var(--d1) var(--e-out)}
 a.rw:hover .chev{transform:translateX(2px)}}
.chev{width:16px;height:16px;fill:none;stroke:var(--tx3);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
/* ── Pills, chips ─────────────────────────────────────────────────────────── */
.pill{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:999px;font:600 12px/1 'General Sans',sans-serif;white-space:nowrap;background:var(--well);box-shadow:inset 0 0 0 .5px var(--ln);color:var(--tx2)}
.pill i{width:6px;height:6px;border-radius:50%;background:var(--tx3);flex:none}
.pill.go i{background:var(--good)}
.pill.warn i{background:var(--warn)}
.pill.bad i{background:var(--bad)}
.pill.go{color:var(--tx)}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px;border-radius:999px;font:600 12.5px/1 'General Sans',sans-serif;background:var(--well);box-shadow:inset 0 0 0 .5px var(--ln);color:var(--tx2)}
.chip.ver{color:var(--tx)}
.chip svg{width:12px;height:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;font:600 14px/1 'General Sans',sans-serif;white-space:nowrap;
 transition:transform var(--d1) var(--e-out),background-color var(--d1) var(--e-out)}
.btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.btn.ink{background:var(--ink);color:var(--onink);box-shadow:0 1px 0 var(--hl) inset,0 6px 16px -6px rgba(0,0,0,.35)}
.btn.line{background:var(--card2);box-shadow:inset 0 0 0 .5px var(--ln),inset 0 .5px 0 var(--hl);color:var(--tx)}
.btn.quiet{padding:0 12px;color:var(--tx2)}
.btn.danger{color:var(--bad);background:transparent;box-shadow:inset 0 0 0 .5px color-mix(in srgb,var(--bad) 45%,transparent)}
.btn.grow{flex:1}
.btn:active{transform:scale(.97)}
.btn[disabled]{opacity:.45;cursor:not-allowed}
/* ── Meter ────────────────────────────────────────────────────────────────── */
.meter{display:block;height:4px;border-radius:4px;background:var(--ln);overflow:hidden}
.meter>b{display:block;height:100%;width:100%;border-radius:4px;background:var(--tx);transform-origin:left;transform:scaleX(var(--p,0))}
.meter.gold>b{background:linear-gradient(90deg,var(--gold3),var(--gold2),var(--gold1))}
/* ── Notice (inline banner) ───────────────────────────────────────────────── */
.notice{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:var(--r2);background:var(--well);box-shadow:inset 0 0 0 .5px var(--ln);font-size:14px;line-height:1.5}
.notice::before{content:"";flex:none;width:3px;align-self:stretch;border-radius:3px;background:var(--tx3)}
.notice.warn::before{background:var(--warn)}
.notice.bad::before{background:var(--bad)}
.notice.go::before{background:var(--good)}
.notice.gold::before{background:linear-gradient(var(--gold1),var(--gold3))}
.notice b{font-weight:700}
.notice .acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.notice .acts .btn{min-height:40px;padding:0 14px}
.notice ul{margin:8px 0 0 18px}
.notice li{margin-top:2px}
/* ── Stars (flat, drawn by CSS mask so one colour rule serves every theme) ── */
.stars{display:inline-flex;gap:2px;vertical-align:-2px}
.stars i{width:13px;height:13px;background:var(--tx3);opacity:.45;
 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.75 5.75 6.3.8-4.6 4.4 1.15 6.25L12 16.95 6.4 20l1.15-6.25L2.95 9.35l6.3-.8z'/%3E%3C/svg%3E") center/contain no-repeat;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.75 5.75 6.3.8-4.6 4.4 1.15 6.25L12 16.95 6.4 20l1.15-6.25L2.95 9.35l6.3-.8z'/%3E%3C/svg%3E") center/contain no-repeat}
.stars i.on{background:var(--gold2);opacity:1}
.stars.lg i{width:16px;height:16px}
/* ── Name line badges (server-computed mark, drawn like badges.js) ────────── */
.nm{display:inline-flex;align-items:center;gap:6px;min-width:0}
.nm .sfx{font-family:'JetBrains Mono',monospace;font-weight:500;color:var(--tx2);font-size:.62em;letter-spacing:0}
.nm img{flex:none}
/* ── Sheet (second blur surface) ──────────────────────────────────────────── */
.scrim{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.32);opacity:0;pointer-events:none;transition:opacity var(--d2) var(--e-out)}
.sheet{position:fixed;z-index:51;left:50%;bottom:0;width:min(560px,100%);max-height:86dvh;overflow:auto;padding:22px 20px calc(24px + var(--sab));border-radius:26px 26px 0 0;
 background:var(--bar);-webkit-backdrop-filter:saturate(170%) blur(20px);backdrop-filter:saturate(170%) blur(20px);box-shadow:inset 0 .5px 0 var(--hl),0 -10px 40px rgba(0,0,0,.25);
 transform:translate(-50%,104%);visibility:hidden;transition:transform var(--d3) var(--e-drawer),visibility 0s linear var(--d3)}
.sheet.on{visibility:visible;transition-delay:0s}
.sheet h3{font:600 20px/26px 'Clash Display'}
.sheet p{margin-top:6px;color:var(--tx2);font-size:14px}
.sheet-open .scrim{opacity:1;pointer-events:auto}
.sheet-open .sheet.on{transform:translate(-50%,0)}
@media (min-width:720px){
 .sheet{bottom:50%;border-radius:26px;transform:translate(-50%,calc(50% + 24px)) scale(.97);opacity:0;transition:transform var(--d2) var(--e-out),opacity var(--d2) var(--e-out),visibility 0s linear var(--d2)}
 .sheet-open .sheet.on{transform:translate(-50%,50%);opacity:1}}
.field{display:flex;align-items:center;gap:8px;margin-top:14px;min-height:48px;padding:0 14px;border-radius:14px;background:var(--well);box-shadow:inset 0 0 0 .5px var(--ln)}
.field span{color:var(--tx3);font-family:'JetBrains Mono',monospace}
.field input{flex:1;min-width:0;height:46px;font-size:16px;outline:none}
.field:focus-within{box-shadow:inset 0 0 0 1.5px var(--acc)}
/* ── Enter motion: one quiet settle on first paint, never on theme switch ─── */
@media (prefers-reduced-motion:no-preference){
 html.ready .enter{animation:settle var(--d3) var(--e-out) both;animation-delay:calc(var(--i,0) * 40ms)}}
html.cap .enter{animation:none}
@media (prefers-reduced-motion:reduce){
 *,*::before,*::after{transition-duration:1ms;animation:none}}
