/* ===== Settings & privacy: the overhead console ===== */
.st-hero { position: relative; overflow: hidden; padding: calc(var(--space-24) + 24px) 0 var(--space-12); background:
  radial-gradient(1200px 500px at 80% -10%, rgb(245 166 35 / .16), transparent 60%),
  radial-gradient(800px 400px at 0% 110%, rgb(47 210 122 / .08), transparent 60%),
  linear-gradient(180deg, #0c0d10, #121418); color: #f3f1ec; }
.st-hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgb(255 255 255 / .022) 0 1px, transparent 1px 4px); pointer-events: none; }
.st-hero .container { position: relative; }
.st-hero .eyebrow { color: var(--amber); }
.st-hero__title { font-family: var(--font-display); font-stretch: 118%; font-weight: 900; font-size: clamp(2.4rem, 7vw, 5rem); line-height: .95; letter-spacing: -.03em; margin: 8px 0 14px; }
.st-hero__title span { color: var(--amber); }
.st-hero__lede { max-width: 58ch; color: rgb(243 241 236 / .78); font-size: var(--text-lg); line-height: 1.5; margin: 0 0 var(--space-10); }

.st-console { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; padding: 22px; border-radius: 28px;
  background: linear-gradient(180deg, #23262c, #17191d 55%, #121317); border: 1px solid rgb(255 255 255 / .08);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), inset 0 -10px 30px rgb(0 0 0 / .5), 0 30px 60px rgb(0 0 0 / .45); }
.st-console__rail { position: absolute; top: 9px; left: 22px; right: 22px; display: flex; justify-content: space-around; max-width: calc(57% - 22px); }
@media (max-width: 860px) { .st-console__rail { max-width: none; } }
.st-console__rail i { width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #6b6f78, #2a2c31); box-shadow: inset 0 1px 1px rgb(0 0 0 / .6); }
.st-console__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 14px 4px 4px; }

.st-rock { --led: #2fd27a; appearance: none; border: 0; background: none; color: inherit; cursor: pointer; display: grid; justify-items: center; gap: 8px; padding: 6px 0; font: inherit; -webkit-tap-highlight-color: transparent; scroll-margin-top: 120px; }
.st-rock__well { width: 100%; max-width: 92px; aspect-ratio: 3 / 4.4; padding: 7px; border-radius: 16px; background: linear-gradient(180deg, #0b0c0e, #1a1c20); box-shadow: inset 0 3px 8px rgb(0 0 0 / .8), 0 1px 0 rgb(255 255 255 / .06); perspective: 340px; }
.st-rock__cap { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 11px; color: #e9e6df;
  background: linear-gradient(180deg, #4a4e57 0%, #33363d 48%, #26282d 52%, #1d1f23 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 6px 10px rgb(0 0 0 / .5);
  transform-origin: 50% 50%; transform: rotateX(16deg); transition: transform .32s cubic-bezier(.3, 1.6, .5, 1), background .3s; }
.st-rock__cap svg { width: 44%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 16%; }
.st-rock__led { position: absolute; top: 12%; left: 50%; width: 26%; height: 7px; transform: translateX(-50%); border-radius: 99px; background: var(--led); box-shadow: 0 0 6px var(--led), 0 0 18px var(--led); transition: background .25s, box-shadow .25s; }
.st-rock[data-state="off"] { --led: #e5484d; }
.st-rock[data-state="off"] .st-rock__cap { transform: rotateX(-16deg); background: linear-gradient(180deg, #1d1f23 0%, #26282d 48%, #33363d 52%, #4a4e57 100%); color: rgb(233 230 223 / .55); }
.st-rock[data-state="off"] .st-rock__led { box-shadow: 0 0 4px var(--led); opacity: .85; }
.st-rock[data-state="approx"] { --led: var(--amber); }
.st-rock[data-state="approx"] .st-rock__cap { transform: rotateX(0deg); }
.st-rock.is-flip .st-rock__well { animation: st-thunk .35s ease-out; }
@keyframes st-thunk { 30% { transform: translateY(2px) scale(.985); } }
.st-rock:focus-visible { outline: none; }
.st-rock:focus-visible .st-rock__well { outline: 3px solid var(--amber); outline-offset: 3px; }
.st-rock__name { font: 800 .82rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.st-rock__val { font: 700 .8rem/1 var(--font-body); color: var(--led); min-height: 1em; }
:target.st-rock .st-rock__well { animation: st-seek 1.4s ease-out 2; }
@keyframes st-seek { 0%, 100% { box-shadow: inset 0 3px 8px rgb(0 0 0 / .8); } 50% { box-shadow: inset 0 3px 8px rgb(0 0 0 / .8), 0 0 0 4px var(--amber); } }

.st-receipt { position: relative; padding: 18px 18px 16px; border-radius: 6px 6px 18px 18px; background: #f6f2e7; color: #23211c; font-size: .95rem; line-height: 1.4;
  box-shadow: 0 14px 30px rgb(0 0 0 / .4); transform: rotate(.6deg); }
.st-receipt::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 8px; background: radial-gradient(circle at 6px 0, transparent 5px, #f6f2e7 5.5px) 0 0 / 12px 8px repeat-x; }
.st-receipt__head { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 2px dashed rgb(35 33 28 / .25); font: 800 .78rem/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.st-receipt__time { font-weight: 600; letter-spacing: .02em; text-transform: none; color: rgb(35 33 28 / .6); }
.st-receipt__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.st-receipt__list li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: start; animation: st-print .4s var(--ease) both; }
.st-receipt__list li > i { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #1f9d58; }
.st-receipt__list li.is-mid > i { background: #c77d00; }
.st-receipt__list li.is-no > i { background: #c9383d; }
.st-receipt__list em { display: block; margin-top: 2px; font-size: .88em; font-style: normal; font-weight: 700; color: #b12f33; }
@keyframes st-print { from { opacity: 0; transform: translateY(-4px); } }
.st-receipt__foot { margin: 12px 0 0; padding-top: 10px; border-top: 2px dashed rgb(35 33 28 / .25); font-size: .78rem; color: rgb(35 33 28 / .6); }

.st-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.st-mode { position: relative; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 18px; cursor: pointer;
  color: #f3f1ec; font: inherit; background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .1); transition: border-color .2s, background .2s, transform .2s; }
.st-mode:hover { border-color: rgb(245 166 35 / .55); transform: translateY(-2px); }
.st-mode b { font: 800 1rem/1.15 var(--font-display); }
.st-mode small { grid-column: 2; color: rgb(243 241 236 / .62); font-size: .8rem; line-height: 1.3; }
.st-mode__key { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, #2a2d33 0 38%, #43474f 40% 62%, #1b1d21 64%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .15); position: relative; transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.st-mode__key::after { content: ""; position: absolute; left: 50%; top: 22%; width: 4px; height: 56%; margin-left: -2px; border-radius: 2px; background: #c9ccd2; }
.st-mode.is-turn .st-mode__key, .st-mode.is-on .st-mode__key { transform: rotate(90deg); }
.st-mode.is-on { border-color: var(--amber); background: rgb(245 166 35 / .1); }
.st-mode.is-on .st-mode__key { box-shadow: 0 0 0 3px rgb(245 166 35 / .35), 0 0 16px rgb(245 166 35 / .5); }

/* sections */
.st-sec__lede { max-width: 60ch; color: var(--color-text-muted); margin: 0 0 var(--space-8); }
.st-sec--alt { background: var(--color-surface); }
.st-bench { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.st-test { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 22px; background: var(--color-surface); border: 1px solid var(--color-border); transition: border-color .25s, box-shadow .25s; scroll-margin-top: 110px; }
.st-test.is-live { border-color: #2fd27a; box-shadow: 0 0 0 4px rgb(47 210 122 / .14); }
.st-test header { display: flex; gap: 12px; align-items: center; }
.st-test h3 { margin: 0 0 3px; font: 800 1.08rem/1.1 var(--font-display); }
.st-test__ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgb(245 166 35 / .14); color: var(--color-accent-text, var(--amber)); }
.st-test__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.st-perm { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--color-text-muted); }
.st-perm::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-perm--ok { color: #1f9d58; } .st-perm--ask { color: #c77d00; } .st-perm--no { color: #d64545; }
[data-theme='dark'] .st-perm--ok { color: #2fd27a; } [data-theme='dark'] .st-perm--ask { color: var(--amber); }
.st-perm a { color: inherit; }
.st-test__out { margin: 0; min-height: 3.9em; font-size: .9rem; line-height: 1.45; color: var(--color-text-muted); }
.st-test__out b { color: var(--color-text); }
.st-test__out a, .st-link { color: var(--color-accent-text, var(--amber)); font-weight: 700; }
.st-link { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.st-test__act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.st-used { margin: 0; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: .72rem; color: var(--color-text-muted); }
.st-used span { padding: 3px 8px; border-radius: 99px; background: var(--color-surface-2); border: 1px solid var(--color-border); }
.st-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; color: var(--color-text); }

.st-vu, .st-view, .st-radar, .st-lock { height: 132px; border-radius: 16px; background: #0d0e11; position: relative; overflow: hidden; }
.st-vu { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 14px; }
.st-vu i { --v: 0; flex: 1; max-width: 8px; height: calc(8% + var(--v) * 88%); border-radius: 4px; background: linear-gradient(180deg, #e5484d, var(--amber) 35%, #2fd27a 70%); opacity: calc(.35 + var(--v)); transition: height .06s linear; }
.st-test:not(.is-live) .st-vu i { animation: st-idle 2.4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 80ms); }
.st-vu i:nth-child(3n) { --i: 3; } .st-vu i:nth-child(3n+1) { --i: 6; } .st-vu i:nth-child(4n) { --i: 9; }
@keyframes st-idle { 50% { height: 18%; } }
.st-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-view__c i { position: absolute; width: 18px; height: 18px; border: 2px solid var(--amber); }
.st-view__c i:nth-child(1) { top: 10px; left: 10px; border-width: 2px 0 0 2px; } .st-view__c i:nth-child(2) { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.st-view__c i:nth-child(3) { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; } .st-view__c i:nth-child(4) { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }
.st-view__rec { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 3px 9px; border-radius: 99px; background: rgb(229 72 77 / .9); color: #fff; font: 800 .66rem/1.3 var(--font-display); letter-spacing: .06em; white-space: nowrap; }
.st-view__rec[hidden] { display: none; }
.st-radar { background: radial-gradient(circle, #0f2a1b 0, #0a140f 70%); }
.st-radar::before, .st-radar::after { content: ""; position: absolute; inset: 50% auto auto 50%; border-radius: 50%; border: 1px solid rgb(47 210 122 / .25); transform: translate(-50%, -50%); }
.st-radar::before { width: 110px; height: 110px; } .st-radar::after { width: 60px; height: 60px; }
.st-radar__sweep { position: absolute; left: 50%; top: 50%; width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%; background: conic-gradient(from 0deg, rgb(47 210 122 / .45), transparent 70deg); animation: st-sweep 3.2s linear infinite; }
.st-test.is-live .st-radar__sweep { animation-duration: .9s; }
@keyframes st-sweep { to { transform: rotate(360deg); } }
.st-radar__ring { --r: 0%; position: absolute; left: 50%; top: 50%; width: var(--r); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: rgb(245 166 35 / .18); border: 1.5px dashed var(--amber); transition: width .8s var(--ease); }
.st-radar__dot { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #2fd27a; box-shadow: 0 0 0 4px rgb(47 210 122 / .25), 0 0 16px #2fd27a; opacity: 0; transition: opacity .3s, filter .4s; }
.st-test.is-found .st-radar__dot { opacity: 1; }
.st-radar__dot.is-fuzzy { background: var(--amber); filter: blur(4px); width: 24px; height: 24px; margin: -12px 0 0 -12px; }
.st-radar__n { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font: 800 .62rem/1 var(--font-display); color: rgb(47 210 122 / .7); }
.st-lock { background: linear-gradient(160deg, #2b2f48, #3b2534 60%, #4a2e1b); display: grid; justify-items: center; align-content: start; padding-top: 14px; }
.st-lock__time { font: 300 2.6rem/1 var(--font-display); color: rgb(255 255 255 / .9); letter-spacing: -.02em; }
.st-lock__card { position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; gap: 2px; padding: 9px 11px; border-radius: 14px; background: rgb(245 245 245 / .82); backdrop-filter: blur(10px); color: #1b1b1b; font-size: .76rem; line-height: 1.3; transform: translateY(140%); opacity: 0; }
.st-lock__card b { font-size: .8rem; }
.st-lock__card.is-drop { animation: st-drop 4.4s var(--ease) both; }
@keyframes st-drop { 0% { transform: translateY(-260%); opacity: 0; } 12%, 85% { transform: none; opacity: 1; } 100% { transform: translateY(140%); opacity: 0; } }

/* make it yours */
.st-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.st-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 22px; background: var(--color-bg); border: 1px solid var(--color-border); }
.st-label { margin: 0; font: 800 .8rem/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.st-hint { margin: 0; font-size: .8rem; line-height: 1.4; color: var(--color-text-muted); }
.st-input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font: 600 1rem var(--font-body); }
.st-input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgb(245 166 35 / .18); }
.st-greet { margin: 4px 0 0; font: 800 1.35rem/1.2 var(--font-display); font-stretch: 110%; color: var(--color-text); min-height: 1.6em; }
.st-greet span { color: var(--amber); }
.st-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-theme { display: grid; gap: 6px; justify-items: center; padding: 6px 4px 8px; border-radius: 14px; border: 2px solid transparent; background: none; color: var(--color-text); font: 700 .82rem var(--font-body); cursor: pointer; }
.st-theme[aria-checked="true"] { border-color: var(--amber); background: rgb(245 166 35 / .08); }
.st-theme__pv { display: grid; gap: 4px; width: 100%; aspect-ratio: 1 / 1.15; padding: 8px 7px; border-radius: 10px; border: 1px solid var(--color-border); align-content: start; }
.st-theme__pv i { display: block; height: 6px; border-radius: 3px; background: currentColor; opacity: .5; }
.st-theme__pv i:first-child { width: 60%; height: 8px; background: var(--amber); opacity: 1; }
.st-theme__pv i:last-child { width: 75%; }
.st-theme__pv--dark { background: #121418; color: #d9d6cf; }
.st-theme__pv--light { background: #f7f5f0; color: #3a3a3a; }
.st-theme__pv--auto { background: linear-gradient(135deg, #f7f5f0 50%, #121418 50%); color: #8a8a8a; }
.st-range { -webkit-appearance: none; appearance: none; --p: 0%; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--amber) var(--p), var(--color-border) var(--p)); margin: 8px 0 0; }
.st-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--amber); box-shadow: 0 3px 8px rgb(0 0 0 / .3); cursor: pointer; }
.st-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--amber); cursor: pointer; }
.st-range__ticks { display: flex; justify-content: space-between; font-size: .7rem; font-weight: 700; color: var(--color-text-muted); }
.st-sample { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--color-surface); border-left: 4px solid var(--amber); }
.st-sample__k { font: 800 .68rem/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); }
.st-sample b { font: 800 1.05rem/1.2 var(--font-display); }
.st-sample span:last-child { font-size: .85rem; color: var(--color-text-muted); }
.st-card--toggles { gap: 14px; }
.st-tg { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-tg b { display: block; font: 800 1rem/1.2 var(--font-display); }
.st-tg span { font-size: .8rem; color: var(--color-text-muted); }
.st-sw { flex: none; position: relative; width: 54px; height: 32px; border-radius: 99px; border: 0; background: var(--color-border); cursor: pointer; transition: background .25s; }
.st-sw i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .3); transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); }
.st-sw[aria-checked="true"] { background: #1f9d58; }
.st-sw[aria-checked="true"] i { transform: translateX(22px); }
.st-sw:focus-visible, .st-theme:focus-visible, .st-seg button:focus-visible, .st-mode:focus-visible, .st-gb__x:focus-visible, .st-hold__btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* voice */
.st-voice { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.st-voice__face { position: relative; width: 220px; aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.st-voice__face img { width: 70%; height: 70%; border-radius: 50%; object-fit: cover; position: relative; z-index: 1; box-shadow: 0 10px 30px rgb(0 0 0 / .3); }
.st-voice__ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--amber), #2fd27a, var(--amber)); opacity: .25; filter: blur(2px); }
.st-voice__face.is-talk .st-voice__ring { opacity: .8; animation: st-sweep 1.6s linear infinite; }
.st-voice__bars { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 4px; align-items: end; height: 30px; padding: 6px 12px; border-radius: 99px; background: #15171b; }
.st-voice__bars i { width: 4px; height: 6px; border-radius: 2px; background: var(--amber); }
.st-voice__face.is-talk .st-voice__bars i { animation: st-talk .5s ease-in-out infinite alternate; }
.st-voice__bars i:nth-child(2) { animation-delay: .1s !important; } .st-voice__bars i:nth-child(3) { animation-delay: .2s !important; } .st-voice__bars i:nth-child(4) { animation-delay: .05s !important; } .st-voice__bars i:nth-child(5) { animation-delay: .15s !important; }
@keyframes st-talk { to { height: 18px; } }
.st-voice__ctl { display: grid; gap: 10px; max-width: 560px; }
.st-voice__ctl .st-label { margin-top: 8px; }
.st-voice__ctl .btn { justify-self: start; margin-top: 8px; }
.st-seg { display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px; border-radius: 14px; background: var(--color-surface); border: 1px solid var(--color-border); }
.st-seg button { padding: 10px 6px; border: 0; border-radius: 10px; background: none; color: var(--color-text-muted); font: 700 .9rem var(--font-body); cursor: pointer; transition: background .2s, color .2s; }
.st-seg button[aria-checked="true"] { background: var(--amber); color: #1a1205; box-shadow: 0 4px 12px rgb(245 166 35 / .3); }

/* glovebox */
.st-glove { display: grid; gap: 10px; }
.st-gb { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(80px, 1fr) 70px 92px; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--color-bg); border: 1px solid var(--color-border); }
.st-gb.is-empty { opacity: .6; }
.st-gb__t b { display: block; font: 800 1rem/1.2 var(--font-display); }
.st-gb__t span { font-size: .8rem; color: var(--color-text-muted); }
.st-gb__t em { font-style: normal; font-weight: 700; color: #1f9d58; }
.st-gb__bar { height: 10px; border-radius: 99px; background: var(--color-surface-2); overflow: hidden; }
.st-gb__bar i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--amber), #e8742a); animation: st-grow .8s var(--ease) both; }
@keyframes st-grow { from { width: 0; } }
.st-gb__n { font: 700 .85rem var(--font-body); text-align: right; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.st-gb__x { padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--color-border); background: none; color: var(--color-text); font: 700 .85rem var(--font-body); cursor: pointer; }
.st-gb__x:hover:not(:disabled) { border-color: #d64545; color: #d64545; }
.st-gb__x:disabled { cursor: default; opacity: .5; }
.st-hold { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.st-hold__btn { position: relative; overflow: hidden; padding: 14px 22px; border-radius: 14px; border: 2px solid #d64545; background: none; color: #d64545; font: 800 .95rem var(--font-body); cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; }
.st-hold__btn span { position: relative; }
.st-hold__fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: rgb(214 69 69 / .22); }
.st-hold__btn.is-hold .st-hold__fill { transform: scaleX(1); transition: transform 1.6s linear; }
.st-hold__btn.is-done { background: #d64545; color: #fff; }

/* cab key */
.st-keywrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.st-key__act { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.st-key { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; max-width: 440px; margin-inline: auto; width: 100%; }
.st-key__blade { height: 70px; margin-right: -14px; border-radius: 10px 0 0 10px; background: linear-gradient(180deg, #e7e9ee, #a9adb6 55%, #c9ccd2);
  clip-path: polygon(0 30%, 8% 30%, 8% 0, 100% 0, 100% 100%, 8% 100%, 8% 70%, 0 70%); box-shadow: inset 0 1px 0 #fff; position: relative; }
.st-key__blade::after { content: ""; position: absolute; left: 12%; right: 0; bottom: 0; height: 40%; background: #8f949d; clip-path: polygon(0 100%, 6% 30%, 12% 100%, 20% 10%, 28% 100%, 36% 40%, 46% 100%, 54% 20%, 62% 100%, 72% 50%, 82% 100%, 90% 0, 100% 100%); }
.st-key.is-cut .st-key__blade::after { animation: st-cut 1s steps(12) both; }
@keyframes st-cut { from { clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); } }
.st-key__qr { position: relative; z-index: 1; display: grid; place-items: center; width: 220px; aspect-ratio: 1; padding: 14px; border-radius: 28px; background: linear-gradient(160deg, #2a2d33, #15171b); box-shadow: 0 20px 40px rgb(0 0 0 / .35), inset 0 1px 0 rgb(255 255 255 / .12); color: rgb(255 255 255 / .55); font-size: .85rem; text-align: center; }
.st-key__qr svg { width: 100%; height: 100%; border-radius: 12px; }
.st-key.is-cut .st-key__qr { animation: st-pop .5s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes st-pop { from { transform: scale(.9) rotate(-4deg); } }

/* help */
.st-help { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--color-bg); border: 1px solid var(--color-border); margin-bottom: 16px; }
.st-help button { padding: 9px 16px; border: 0; border-radius: 10px; background: none; color: var(--color-text-muted); font: 700 .9rem var(--font-body); cursor: pointer; }
.st-help button[aria-selected="true"] { background: var(--color-text); color: var(--color-bg); }
.st-steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 720px; }
.st-steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 52px; border-radius: 14px; background: var(--color-bg); border: 1px solid var(--color-border); line-height: 1.45; }
.st-steps li::before { content: counter(s); position: absolute; left: 12px; top: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--amber); color: #1a1205; font: 800 .85rem var(--font-display); }
.st-steps[hidden] { display: none; }

/* import sheet */
.st-import { position: fixed; inset: 0; z-index: 2147482000; display: grid; place-items: center; padding: 20px; background: rgb(0 0 0 / .6); backdrop-filter: blur(6px); animation: st-print .3s both; }
.st-import__card { max-width: 400px; padding: 26px; border-radius: 24px; background: var(--color-surface); color: var(--color-text); text-align: center; box-shadow: 0 30px 60px rgb(0 0 0 / .4); }
.st-import__card h2 { margin: 10px 0 8px; font: 900 1.5rem/1.1 var(--font-display); }
.st-import__card p { margin: 0 0 18px; color: var(--color-text-muted); }
.st-import__key { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle, var(--amber) 0 30%, transparent 32%), rgb(245 166 35 / .18); }
.st-import__act { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* light mode for the dark hero stays dark (it's the cab console); cards follow the theme */
[data-theme='light'] .st-sec--alt .st-card, [data-theme='light'] .st-gb, [data-theme='light'] .st-steps li { background: #fff; }

@media (max-width: 1100px) {
  .st-bench, .st-grid { grid-template-columns: repeat(2, 1fr); }
  .st-modes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .st-console { grid-template-columns: 1fr; padding: 18px 14px; }
  .st-voice, .st-keywrap { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  .st-hero { padding-top: calc(var(--space-20) + 16px); }
  .st-console__row { gap: 8px; }
  .st-rock__name { font-size: .6rem; letter-spacing: .02em; }
  .st-rock__val { font-size: .7rem; }
  .st-modes { gap: 8px; }
  .st-mode { grid-template-columns: 1fr; padding: 12px; row-gap: 4px; }
  .st-mode__key { grid-row: auto; width: 26px; height: 26px; }
  .st-mode small { grid-column: 1; }
  .st-bench, .st-grid { grid-template-columns: 1fr; }
  .st-gb { grid-template-columns: 1fr auto; grid-template-areas: "t x" "b n"; gap: 10px 12px; }
  .st-gb__t { grid-area: t; } .st-gb__x { grid-area: x; } .st-gb__bar { grid-area: b; } .st-gb__n { grid-area: n; }
  .st-key__qr { width: 180px; }
  .st-seg button { font-size: .82rem; padding: 10px 2px; }
  .st-help { display: flex; }
  .st-help button { flex: 1; }
}
.st-sec .section__title { margin-bottom: var(--space-6); }
.st-sec .section__title + .st-sec__lede { margin-top: calc(-1 * var(--space-3)); }
