/*
  Fraktal onboarding: styles added on top of Bojan's stylesheet (bojan.css, untouched).
  Everything here uses his tokens: colours, radii, easing, fonts.
  Nick's parts (the cast, speech bubbles, the gauge, the cards) are redrawn in that dark system.
*/
:root {
  --nick-w: 0px;
  --dock-h: 0px;
  --r-xl: 20px;
  --panel-inset: rgba(8, 10, 21, .55);
  --violet: #8b7cf6;
  --shadow-pop: 0 18px 48px rgba(2, 4, 16, .55);
}
[hidden] { display: none !important; }
html.nick-on { --nick-w: 420px; }
img { max-width: 100%; }
.mono, .path { font-family: var(--font-mono); font-size: 12px; letter-spacing: -.01em; }
.path { align-self: flex-start; color: var(--ink-secondary); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-subtle); border-radius: 6px; padding: 2px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: inline-block; vertical-align: middle; }
.ic { flex: none; display: block; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; margin-right: 6px; flex: none; }
.dot--pulse { animation: dot-pulse 1.4s ease-in-out infinite; }
@keyframes dot-pulse { 50% { opacity: .25; } }
.tag { gap: 5px; }
.tag svg { flex: none; }

/* ---------- shell ---------- */
.onboarding-root { margin-right: var(--nick-w); transition: margin-right .28s var(--ease-out); grid-template-rows: 58px 1fr; }
.stage-action-dock, .cast { right: var(--nick-w); transition: right .28s var(--ease-out); }
.stage-host-wrap { width: 100%; min-width: 0; display: flex; justify-content: center; }
#stage-host { outline: none; }
.stage-main { padding-bottom: 72px; }
.stage-main--with-dock { padding-bottom: calc(var(--dock-h) + 48px); }
.stage-main[data-cast="asleep"], .stage-main[data-cast="awake"] { padding-bottom: calc(var(--dock-h) + 170px); }
.stage-main[data-cast="peek"] { padding-bottom: calc(var(--dock-h) + 96px); }
.stage-container--xl { max-width: 980px; }
.stage-action-dock-inner--xl { max-width: 980px; }
.stage-container { gap: 18px; }

/* top bar */
.topbar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; }
.topbar-back { gap: 8px; }
.kbd-hint { font-weight: 500; letter-spacing: 0; }
.topbar .kbd-hint, .tile .kbd-hint, .depth-opt .kbd-hint, .btn--row .kbd-hint, .nick .kbd-hint { background: rgba(255, 255, 255, .09); color: var(--ink-secondary); opacity: 1; font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .08); }
.step-progress { gap: 14px; }
.step-progress-label { min-width: 0; text-align: right; white-space: nowrap; color: var(--ink-secondary); }
.step-progress-label b { color: var(--ink-muted); font-weight: 500; margin-right: 6px; }
.step-segments { gap: 5px; }
.step-segment { position: relative; width: 20px; height: 3px; padding: 0; border: 0; cursor: pointer; }
.step-segment::after { content: ""; position: absolute; inset: -10px -2px; }
.step-segment:hover { background: rgba(255, 255, 255, .5); }
.step-segment--done:hover { background: var(--ink-primary); }
.step-segment--active:hover { background: var(--ember-bright); }
.topbar-right { gap: 14px; min-width: 0; }
.eta { font-size: 12px; font-weight: 500; color: var(--ink-secondary); white-space: nowrap; }
.nick-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 8px 0 6px; border-radius: 99px; border: 1px solid var(--line-subtle); background: rgba(255, 255, 255, .04); color: var(--ink-secondary); font-size: 12px; font-weight: 500; white-space: nowrap; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.nick-toggle:hover { background: rgba(255, 255, 255, .09); color: var(--ink-primary); }
.nick-switch { position: relative; width: 26px; height: 16px; border-radius: 99px; background: rgba(255, 255, 255, .18); transition: background-color var(--dur-med) var(--ease-out); flex: none; }
.nick-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-primary); transition: transform var(--dur-med) var(--ease-out); }
.nick-toggle--on { border-color: var(--ember-border); background: var(--ember-soft); color: var(--ember-hot); }
.nick-toggle--on .nick-switch { background: var(--ember); }
.nick-toggle--on .nick-switch::after { transform: translateX(10px); background: #120905; }

/* bottom bar */
.action-bar { flex-wrap: nowrap; }
.action-bar-group { flex-wrap: nowrap; min-width: 0; }
.btn { text-decoration: none; }
.btn svg { flex: none; }
.btn--primary svg, .btn--ember svg { color: currentColor; }
.btn--ember .kbd-hint { background: rgba(18, 9, 5, .16); }

/* entrance */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.in .rise { animation: rise .5s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 55ms + 90ms); }

/* guide row: Bojan's logo, the words, and whoever is speaking */
.agent-guide-row--host { grid-template-columns: 112px minmax(0, 1fr) auto; }
.agent-guide-copy { gap: 8px; }
.screen-sub { font-size: 15px; color: var(--ink-secondary); max-width: 60ch; text-wrap: pretty; }
.screen-heading { text-wrap: balance; }
.host { position: relative; display: flex; align-items: flex-end; gap: 10px; }
.host-img { width: 104px; height: 104px; display: block; filter: drop-shadow(0 10px 22px rgba(2, 4, 16, .6)); animation: bob 3.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.speech { position: relative; align-self: flex-start; margin-top: 6px; padding: 8px 12px; border-radius: 14px; background: var(--cta-primary-bg); color: var(--ink-on-light); font-size: 13px; font-weight: 550; line-height: 1.3; white-space: nowrap; box-shadow: 0 8px 22px rgba(2, 4, 16, .45); }
.speech::after { content: ""; position: absolute; right: -5px; bottom: 9px; width: 11px; height: 11px; background: inherit; transform: rotate(45deg); border-radius: 2px; }

/* mascots */
.mate { position: relative; display: inline-block; flex: none; line-height: 0; }
.mate img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 30%; background: radial-gradient(120% 120% at 28% 18%, #343a73 0, #181c3d 52%, #0c0e20 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 6px 16px rgba(2, 4, 16, .5); }
.mate--xs { width: 22px; height: 22px; }
.mate--sm { width: 34px; height: 34px; }
.mate--md { width: 44px; height: 44px; }
.mate--lg { width: 60px; height: 60px; }
.mate--xl { width: 216px; height: 216px; }
.mate--cast { width: 92px; height: 92px; }
.mate--xl.mate--badge::after { width: 22%; height: 22%; right: -3%; bottom: -3%; }
.mate--xs img, .mate--sm img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.mate--badge::after { content: ""; position: absolute; right: -6%; bottom: -6%; width: 30%; height: 30%; border-radius: 30%; background: var(--ember) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23120905' d='M0 0L45 0L45 55L100 55L100 100L0 100Z M55 0L75.25 0L75.25 24.75L100 24.75L100 45L55 45Z M79.75 0L88.8625 0L88.8625 11.1375L100 11.1375L100 20.25L79.75 20.25Z M90.8875 0L94.98813 0L94.98813 5.01188L100 5.01188L100 9.1125L90.8875 9.1125Z M95.89938 0h4.10062v4.10062h-4.10062Z'/%3E%3C/svg%3E") center / 54% no-repeat; box-shadow: 0 0 0 3px #0d0f1d, 0 4px 10px rgba(2, 4, 16, .5); }

/* the lineup along the bottom */
.cast { position: fixed; left: 0; bottom: var(--dock-h); height: 196px; z-index: 15; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; overflow: hidden; }
.cast-m { position: relative; flex: none; margin: 0 -5px; transform: translateY(var(--y, 210px)) rotate(var(--r, 0deg)); transition: transform .7s cubic-bezier(.2, 1.35, .4, 1), filter .7s; transition-delay: calc(var(--i) * 45ms); }
.cast[data-s="hidden"] .cast-m { --y: 210px; }
.cast[data-s="asleep"] .cast-m { --y: 40px; filter: grayscale(.6) brightness(.72); }
.cast[data-s="awake"] .cast-m { --y: 16px; }
.cast[data-s="peek"] .cast-m { --y: 56px; }
.cast .cast-m.up { --y: 6px; --r: -3deg; transition-delay: 0s; filter: none; z-index: 2; }
.cast-say { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) scale(.6); transform-origin: 50% 100%; opacity: 0; transition: opacity .25s, transform .3s cubic-bezier(.2, 1.4, .4, 1); padding: 6px 10px; border-radius: 12px; background: var(--cta-primary-bg); color: var(--ink-on-light); font-size: 12.5px; font-weight: 550; line-height: 1.2; white-space: nowrap; box-shadow: 0 8px 20px rgba(2, 4, 16, .5); }
.cast-m.up .cast-say { opacity: 1; transform: translateX(-50%) scale(1); }
.cast-m:nth-child(even) .cast-say { bottom: calc(100% + 34px); }
.cast-z { position: absolute; top: -4px; right: 12px; font-weight: 700; font-size: 15px; color: #a5b0ff; opacity: 0; }
.cast[data-s="asleep"] .cast-z { animation: zz 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * 230ms); }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 6px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translate(10px, -20px); } }
.cast.jump .cast-m { animation: jump .7s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes jump { 0% { transform: translateY(40px); } 45% { transform: translateY(-8px) rotate(var(--r2, 2deg)); } 100% { transform: translateY(16px); } }

/* shared bits */
.row-icon-slot--sm { width: 28px; height: 28px; border-radius: 8px; }
.row-icon-slot { color: var(--ink-primary); position: relative; }
.mini-title { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 12px; }
.section-title { display: inline-flex; align-items: center; gap: 8px; }
.sources-group-title { align-items: center; }
.sources-group-title > svg { color: var(--ink-secondary); flex: none; }
.disclosure { gap: 6px; }
.disclosure svg { transition: transform var(--dur-med) var(--ease-out); }
.disclosure--open svg:first-child:not(.chev) { transform: rotate(45deg); }
.disclosure--open .chev { transform: rotate(180deg); }
.check-box--some { background: var(--ember); border-color: var(--ember); }
.dash { width: 10px; height: 2px; border-radius: 2px; background: #120905; display: block; }
.list-row--acct { grid-template-columns: 32px minmax(0, 1fr) auto; }
.btn--row { gap: 8px; }
.masked { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0; }
.segmented-btn { cursor: pointer; }
.segmented-btn:hover:not(.segmented-btn--active):not(.segmented-btn--ember) { color: var(--ink-primary); background: rgba(255, 255, 255, .06); }
.text-input::placeholder { color: var(--ink-muted); }

/* ---------- 1. welcome ---------- */
.hero-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.hero-head .fraktal-agent-slot { margin: -18px 0 -6px; }
.hero-head .screen-sub { max-width: 52ch; font-size: 16px; text-wrap: balance; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.how { display: flex; flex-direction: column; }
.how-copy { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px 16px; }
.how-n { width: 22px; height: 22px; border-radius: 7px; flex: none; display: inline-grid; place-items: center; background: var(--ember-soft); border: 1px solid var(--ember-border); color: var(--ember-peach); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.how-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.how-text { font-size: 13px; color: var(--ink-secondary); margin-top: 2px; }
.art { height: 136px; margin: 10px 10px 0; border-radius: var(--radius-md); background: var(--panel-inset); border: 1px solid var(--line-subtle); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.art-folders { flex-direction: column; align-items: stretch; justify-content: center; gap: 7px; padding: 0 16px; }
.art-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-primary); padding: 6px 9px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-subtle); }
.art-row svg:first-child { color: var(--ink-muted); }
.art-row span:nth-child(2) { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-check { width: 16px; height: 16px; border-radius: 5px; background: var(--ember); color: #120905; display: inline-grid; place-items: center; flex: none; }
.art-check svg { width: 10px; height: 10px; }
.in .art-check { animation: tick .45s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--k) * 260ms + 700ms); }
@keyframes tick { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
.art-row:nth-child(3) .art-check { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.art-row:nth-child(3) .art-check svg { opacity: 0; }
.art-row:nth-child(3) { color: var(--ink-muted); }
.art-team { gap: 0; }
.art-mate { margin: 0 -5px; animation: bob 3.2s ease-in-out infinite; animation-delay: calc(var(--k) * -700ms); }
.art-mate .mate { width: 56px; height: 56px; }
.art-approve { flex-direction: column; gap: 10px; padding: 0 16px; align-items: stretch; }
.art-card { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-subtle); font-size: 12.5px; font-weight: 550; }
.art-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.art-btns span { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 28px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.art-no { border: 1px solid var(--line-strong); color: var(--ink-secondary); }
.art-yes { background: var(--ember); color: #120905; }
.art-yes svg { width: 11px; height: 11px; }
.in .art-yes { animation: glow-yes 2.8s ease-in-out 1.2s infinite; }
@keyframes glow-yes { 0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); } 50% { box-shadow: 0 0 0 5px rgba(249, 115, 22, .22); } }

/* ---------- 2. house rules ---------- */
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rule-card { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 14px; padding: 18px; align-content: start; }
.rule-copy { display: flex; flex-direction: column; gap: 4px; }
.rule-title { font-size: 16px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.rule-text { font-size: 13.5px; line-height: 1.5; color: var(--ink-secondary); }
.rule-toggle { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line-subtle); font-size: 13px; font-weight: 550; color: var(--ink-primary); cursor: pointer; }

/* ---------- 3. how you use AI ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px; text-align: left; color: inherit; cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), transform var(--dur-med) var(--ease-out); }
.tile:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.tile--on { border-color: var(--ember-border); background: linear-gradient(0deg, var(--surface-row-active), var(--surface-row-active)), var(--surface-panel); }
.tile--on:hover { border-color: var(--ember); }
.tile-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tile-icons { display: flex; flex: 1; }
.tile-icons .row-icon-slot + .row-icon-slot { margin-left: 6px; }
.tile-title { font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; color: var(--ink-primary); }
.tile-text { font-size: 13px; color: var(--ink-secondary); }
.custom { overflow: visible; }
.custom-row { display: flex; gap: 10px; padding: 12px; }
.mic-btn { flex: none; gap: 8px; }
.wave { display: none; align-items: center; gap: 2px; height: 16px; }
.wave i { width: 2.5px; height: 5px; border-radius: 2px; background: #120905; animation: wv .8s ease-in-out infinite; animation-delay: calc(var(--k) * 90ms); }
@keyframes wv { 0%, 100% { height: 4px; } 50% { height: 15px; } }
.mic-btn--live { background: var(--ember); border-color: transparent; color: #120905; }
.mic-btn--live:hover:not(:disabled) { background: var(--ember-bright); }
.mic-btn--live .wave { display: inline-flex; }

/* ---------- 5. your work ---------- */
.tree-item + .tree-item, .chat-app + .chat-app { border-top: 1px solid var(--line-subtle); }
.list-row--tree { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px; padding: 0 16px 0 10px; min-height: 62px; border-top: 0; }
.tree-toggle { width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-secondary); display: inline-grid; place-items: center; }
.tree-toggle:hover { background: rgba(255, 255, 255, .08); color: var(--ink-primary); }
.tree-toggle svg { transition: transform var(--dur-med) var(--ease-out); }
.tree-toggle--open svg { transform: rotate(90deg); }
.tree-main { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 12px; padding: 13px 0; border: 0; background: transparent; text-align: left; color: inherit; min-width: 0; }
.tree-item--off .tree-main { opacity: .62; }
.tree-children { padding: 2px 16px 10px 56px; background: rgba(255, 255, 255, .02); border-top: 1px solid rgba(255, 255, 255, .06); animation: rise .28s var(--ease-out) both; }
.tree-child { display: flex; align-items: center; gap: 10px; min-height: 38px; font-size: 13.5px; font-weight: 500; color: var(--ink-primary); border-top: 1px solid rgba(255, 255, 255, .06); transition: opacity var(--dur-fast) var(--ease-out); }
.tree-child:first-child { border-top: 0; }
.tree-child > svg { color: var(--ink-muted); }
.tree-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-meta { margin-left: auto; font-size: 12.5px; color: var(--ink-secondary); white-space: nowrap; }
.tree-child--off { opacity: .5; }
.chat-lead { padding: 12px 16px; font-size: 14px; color: var(--ink-secondary); border-bottom: 1px solid var(--line-subtle); }
.chat-lead b { color: var(--ink-primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.chat-app { padding: 10px 16px 8px; }
.chat-app-head { display: flex; align-items: center; gap: 12px; padding-bottom: 6px; }
.chat-app .tree-child { padding-left: 44px; }
.bring { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 550; cursor: pointer; }
.list-row--found { grid-template-columns: 32px minmax(0, 1fr) auto; }

/* ---------- 5b. bring agents ---------- */
.import-row { padding: 14px 16px; border-top: 1px solid var(--line-subtle); display: flex; flex-direction: column; gap: 10px; }
.import-row:first-child { border-top: 0; }
.import-top { display: grid; grid-template-columns: 32px minmax(0, 1fr) 372px; gap: 12px; align-items: center; }
.import-fate { display: flex; align-items: center; gap: 10px; margin-left: 44px; padding: 9px 12px; border-radius: 10px; background: var(--panel-inset); border: 1px solid var(--line-subtle); font-size: 13px; color: var(--ink-primary); min-height: 42px; }
.fate { flex: 1; min-width: 0; }
.fate-where { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-muted); font-size: 12px; white-space: nowrap; min-width: 0; }
.import-row--left .import-fate { color: var(--ink-secondary); }
.summary { font-size: 12.5px; color: var(--ink-primary); font-weight: 550; }

/* ---------- 6. depth ---------- */
.depth-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.depth-opt { display: flex; flex-direction: column; gap: 8px; padding: 16px; text-align: left; color: inherit; cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.depth-opt:hover { border-color: var(--line-strong); }
.depth-opt--on { border-color: var(--ember-border); background: linear-gradient(0deg, var(--surface-row-active), var(--surface-row-active)), var(--surface-panel); }
.depth-opt-top { display: flex; align-items: center; gap: 10px; }
.depth-opt-title { font-size: 16px; font-weight: 600; letter-spacing: -.015em; flex: 1; min-width: 0; }
.depth-opt-text { font-size: 13.5px; color: var(--ink-secondary); padding-left: 28px; }
.depth-opt-cost { display: flex; align-items: baseline; gap: 10px; padding-left: 28px; font-size: 13px; color: var(--ink-secondary); }
.depth-opt-cost b { font-size: 15px; color: var(--ink-primary); font-weight: 600; }
.depth-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.depth-col { padding: 18px 20px; min-width: 0; }
.depth-col + .depth-col { border-left: 1px solid var(--line-subtle); }
.read-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; padding: 5px 0; color: var(--ink-primary); }
.read-row--dim { color: var(--ink-muted); }
.read-row--dim .row-icon-slot { background: transparent; color: var(--ink-muted); }
.cost-big { display: flex; align-items: center; gap: 12px; }
.cost-num { font-size: 44px; font-weight: 700; letter-spacing: -.045em; line-height: 1; min-width: 2.1ch; }
.cost-of { font-size: 13px; color: var(--ink-secondary); line-height: 1.35; max-width: 16ch; }
.gauge { position: relative; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; margin: 16px 0 9px; }
.gauge--thin { height: 8px; margin: 12px 0 8px; }
.gauge-used { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(185, 189, 208, .5); }
.gauge-add { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--ember-deep), var(--ember-bright)); transition: width .4s var(--ease-out); }
.gauge-add--over { background: repeating-linear-gradient(45deg, var(--ember) 0 6px, var(--ember-peach) 6px 12px); }
.gauge-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-secondary); font-variant-numeric: tabular-nums; }
.gauge-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gauge-legend b { color: var(--ink-primary); font-weight: 600; }
.gauge-left { margin-left: auto; }
.gauge-left--over { color: var(--warn-text); font-weight: 600; }
.sw { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.sw--used { background: rgba(185, 189, 208, .6); }
.sw--add { background: var(--ember); }
.amber { margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: var(--warn-surface); border: 1px solid var(--warn-border); color: var(--ember-hot); font-size: 12.5px; line-height: 1.45; display: flex; gap: 9px; align-items: flex-start; }
.amber svg { margin-top: 1px; }
.acct-line { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-secondary); border-top: 1px solid var(--line-subtle); padding-top: 12px; padding-bottom: 12px; }
.acct-line b { color: var(--ink-primary); font-weight: 600; }

/* ---------- 7. scan ---------- */
.read-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.read-main, .read-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.scan-phase-item + .scan-phase-item::before { content: "›"; margin-right: 10px; color: var(--ink-muted); font-weight: 400; }
.list-row--scan { grid-template-columns: 32px minmax(0, 1fr) auto; min-height: 54px; padding-top: 9px; padding-bottom: 9px; }
.list-row--scan .tag { min-width: 62px; justify-content: center; }
.ticker-label { font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
.cov-top { display: flex; align-items: baseline; gap: 8px; }
.cov-num { font-size: 34px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.cov-label { font-size: 13.5px; color: var(--ink-secondary); }
.skipped-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-subtle); color: var(--ok-text); }
.skipped-head .section-title { color: var(--ink-primary); }
.skipped-list { padding: 4px 16px 8px; }
.skipped-row { display: flex; align-items: center; gap: 9px; min-height: 34px; font-size: 13px; border-top: 1px solid rgba(255, 255, 255, .06); opacity: .28; transition: opacity .4s var(--ease-out); }
.skipped-row:first-child { border-top: 0; }
.skipped-row > svg { color: var(--ink-muted); }
.skipped-row .mono { color: var(--ink-primary); font-size: 12.5px; }
.skipped-count { color: var(--ink-secondary); font-size: 12.5px; margin-right: auto; }
.skipped-row .tag { opacity: 0; transform: scale(.9); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.skipped-row--on { opacity: 1; }
.skipped-row--on .tag { opacity: 1; transform: none; }
.theme { margin-bottom: 10px; opacity: .3; transition: opacity .4s; }
.theme:last-child { margin-bottom: 0; }
.theme--on { opacity: 1; }
.theme-top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; margin-bottom: 6px; min-height: 24px; }
.theme-who { display: inline-flex; align-items: center; gap: 6px; opacity: 0; transform: translateY(6px) scale(.8); transform-origin: 0 100%; transition: opacity .3s var(--ease-out), transform .45s cubic-bezier(.2, 1.5, .4, 1); }
.theme--on .theme-who { opacity: 1; transform: none; }
.theme-say { padding: 2px 8px; border-radius: 9px; background: var(--cta-primary-bg); color: var(--ink-on-light); font-size: 11.5px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.theme-n { margin-left: auto; }
.theme-n { color: var(--ink-secondary); }
.theme-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.theme-bar i { display: block; height: 100%; width: 0; border-radius: 3px; transition: width .25s linear; }

/* ---------- 8. here's what I think ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.biz-grid--1 { grid-template-columns: minmax(0, 620px); }
.biz-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: border-color var(--dur-med) var(--ease-out); }
.biz-card--done { border-color: var(--ok-border); }
.kick { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-secondary); }
.kick .tag { margin-left: auto; }
.kick-icon { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-subtle); color: var(--ink-primary); }
.kick-icon svg { width: 15px; height: 15px; }
.kick--ember { color: var(--ember-peach); }
.kick--ember .kick-icon { background: var(--ember-soft); border-color: var(--ember-border); color: var(--ember-peach); }
.biz-title { font-size: 26px; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }
.biz-text { font-size: 15px; line-height: 1.5; color: var(--ink-primary); text-wrap: pretty; }
.biz-added { color: var(--ok-text); }
.why { border-top: 1px solid var(--line-subtle); padding-top: 8px; }
.why .btn { padding-left: 6px; margin-left: -6px; }
.why-list { margin: 6px 0 2px; padding: 10px 12px 10px 28px; list-style: disc; border-radius: 10px; background: var(--panel-inset); border: 1px solid var(--line-subtle); font-size: 13px; line-height: 1.5; color: var(--ink-primary); display: flex; flex-direction: column; gap: 5px; animation: rise .26s var(--ease-out) both; }
.why-list li::marker { color: var(--ember); }
.biz-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.biz-acts .btn { min-height: 42px; }
.biz-fix { display: flex; gap: 8px; }
.biz-fix .btn { min-height: 40px; flex: none; }

/* ---------- 9. team ---------- */
.team-steps { display: flex; align-items: center; gap: 8px; align-self: center; }
.team-step { padding: 0; border: 0; background: transparent; border-radius: 30%; opacity: .5; transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out); line-height: 0; }
.team-step:hover { opacity: .85; }
.team-step--on { opacity: 1; transform: scale(1.12); }
.team-step--on .mate img { box-shadow: 0 0 0 2px var(--ember); }
.team-step--out .mate img { filter: grayscale(1); }
.team-step--all { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); color: var(--ink-primary); background: rgba(255, 255, 255, .05); }
.team-step--all.team-step--on { border-color: var(--ember); background: var(--ember-soft); color: var(--ember-peach); }
.team-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.team-left { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; position: sticky; top: 16px; }
.pedestal { position: relative; padding: 8px 0 4px; }
.pedestal::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(249, 115, 22, .22), rgba(249, 115, 22, 0)); pointer-events: none; }
.in .pedestal .mate { animation: stepin .7s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes stepin { from { transform: translateY(36px) scale(.88); opacity: 0; } to { transform: none; opacity: 1; } }
.plate-name { font-size: 22px; font-weight: 650; letter-spacing: -.025em; line-height: 1.1; }
.plate-role { font-size: 13.5px; color: var(--ink-secondary); margin-top: 3px; }
.plate-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.team-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.team-grid--out .team-right, .team-grid--out .pedestal { opacity: .45; filter: grayscale(.7); transition: opacity var(--dur-med) var(--ease-out), filter var(--dur-med) var(--ease-out); }
.intro { padding: 14px 18px; font-size: 15.5px; line-height: 1.45; font-weight: 500; overflow: visible; }
.intro-hey { color: var(--ember-peach); font-weight: 650; }
.spec-row { display: grid; grid-template-columns: 28px 86px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 16px; border-top: 1px solid var(--line-subtle); font-size: 13.5px; line-height: 1.45; }
.spec-row:first-child { border-top: 0; }
.spec-label { font-size: 12.5px; font-weight: 600; color: var(--ink-secondary); padding-top: 4px; }
.spec-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding-top: 3px; color: var(--ink-primary); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-tag svg { width: 14px; height: 14px; }
.skill-line { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.skill-kind { font-size: 12.5px; color: var(--ink-secondary); }
.tag.mono { font-size: 11.5px; }
.list-row--guardrail { min-height: 50px; padding-top: 9px; padding-bottom: 9px; grid-template-columns: minmax(0, 1fr) 300px; }
.mate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mate-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: opacity var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out); }
.mate-card-top { display: flex; align-items: center; gap: 14px; }
.mate-card-name { font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.mate-card-does { font-size: 13.5px; line-height: 1.5; color: var(--ink-primary); flex: 1; }
.mate-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mate-card--out { opacity: .5; }
.mate-card--out .mate img { filter: grayscale(1); }
.built-mark { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ok-surface); border: 1px solid var(--ok-border); color: var(--ok-text); transform: scale(0); opacity: 0; transition: transform .4s cubic-bezier(.2, 1.6, .4, 1), opacity .2s; flex: none; }
.mate-card--built { border-color: var(--ok-border); }
.mate-card--built .built-mark { transform: none; opacity: 1; }
.mate-card--own { border-style: dashed; border-color: var(--ember-border); }
.team-acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 10. vault ---------- */
.vault-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.vault-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.vault-idle { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 20px 28px; text-align: center; }
.vault-door { width: 168px; height: 168px; filter: drop-shadow(0 16px 30px rgba(2, 4, 16, .6)); }
.vault-door--spin { animation: vault-shake 1.7s var(--ease-out) both; }
@keyframes vault-shake { 0% { transform: none; } 18% { transform: rotate(-5deg) scale(1.03); } 40% { transform: rotate(4deg) scale(1.03); } 62% { transform: rotate(-2deg) scale(1.02); } 100% { transform: none; } }
.vault-go { min-height: 44px; padding: 0 22px; font-size: 14px; }
.vault-bar { max-width: 260px; border-radius: 2px; }
.vault-fill { width: 0; animation: vault-fill 1.6s var(--ease-out) forwards; }
@keyframes vault-fill { to { width: 100%; } }
.list-row--key { grid-template-columns: 32px minmax(0, 1fr) auto auto; min-height: 54px; padding-top: 9px; padding-bottom: 9px; }
.key-who { display: inline-flex; align-items: center; gap: 6px; }
.key-who .mate + .mate { margin-left: -10px; }
.request { position: relative; z-index: 3; overflow: visible; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.request-label { font-size: 13px; font-weight: 600; color: var(--ink-primary); }
.request-card { border-radius: var(--radius-md); border: 1px solid var(--ember-border); background: linear-gradient(180deg, rgba(249, 115, 22, .1), rgba(249, 115, 22, .03)); padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.request-top { display: flex; gap: 12px; align-items: center; }
.request-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 40px; }
.split { position: relative; display: inline-flex; }
.split-main { border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding-right: 14px; }
.split-more { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0 10px; border-left: 1px solid rgba(18, 18, 22, .18); min-width: 0; }
.menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 100%; padding: 4px; border-radius: 10px; background: #14172e; border: 1px solid var(--line-strong); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; animation: rise .16s var(--ease-out) both; }
.menu-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-primary); font-size: 13px; font-weight: 500; text-align: left; white-space: nowrap; }
.menu-item:hover, .menu-item:focus-visible { background: rgba(255, 255, 255, .08); }
.menu-item svg { color: var(--ember-peach); width: 12px; height: 12px; }
.menu-gap { width: 12px; display: inline-block; }
.tip { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px; align-items: start; }
.tip-text { font-size: 13px; line-height: 1.5; color: var(--ink-primary); }

/* ---------- 11. pocket ---------- */
.pocket-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: center; }
.pocket-left { padding: 28px; display: flex; align-items: center; gap: 28px; }
.pocket-how { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.qr { padding: 12px; background: #fff; border-radius: 16px; line-height: 0; box-shadow: 0 12px 30px rgba(2, 4, 16, .5); }
.pocket-steps { display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 500; }
.pocket-steps li { display: flex; align-items: center; gap: 10px; }
.phone { width: 248px; height: 500px; border-radius: 42px; background: #05060f; padding: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 30px 70px rgba(2, 4, 16, .7); flex: none; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; padding: 44px 14px 16px; background: radial-gradient(120% 70% at 80% 0, #1c2163 0, #0b0d22 60%); display: flex; flex-direction: column; }
.phone-island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 74px; height: 22px; border-radius: 12px; background: #05060f; }
.phone-hi { font-size: 21px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 12px; }
.phone-deck { position: relative; flex: 1; }
.swipe { position: absolute; inset: 0 0 8px; border-radius: 20px; background: #171a36; border: 1px solid var(--line-strong); padding: 18px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; box-shadow: 0 12px 26px rgba(2, 4, 16, .5); transition: transform .42s var(--ease-out), opacity .42s var(--ease-out); }
.swipe p { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; text-wrap: balance; }
.swipe .mate { width: 84px; height: 84px; }
.swipe[data-depth="1"] { transform: translateY(8px) scale(.95); opacity: .7; }
.swipe[data-depth="2"] { transform: translateY(16px) scale(.9); opacity: .4; }
.swipe[data-depth="1"] > *, .swipe[data-depth="2"] > * { visibility: hidden; }
.swipe--go.swipe--right { transform: translate(130%, -6%) rotate(16deg); opacity: 0; }
.swipe--go.swipe--left { transform: translate(-130%, -6%) rotate(-16deg); opacity: 0; }
.swipe-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--ok-text); font-size: 15px; font-weight: 600; }
.swipe-empty svg { width: 22px; height: 22px; }
.phone-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 8px; }
.swipe-btn { height: 40px; border-radius: 99px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .06); color: var(--ink-primary); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.swipe-btn:hover:not(:disabled) { transform: translateY(-1px); background: rgba(255, 255, 255, .12); }
.swipe-btn--yes { background: var(--ember); border-color: transparent; color: #120905; }
.swipe-btn--yes:hover:not(:disabled) { background: var(--ember-bright); }
.swipe-btn:disabled { opacity: .35; cursor: default; }

/* ---------- 12. all set ---------- */
.sum-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.sum { padding: 14px; display: flex; flex-direction: column; gap: 3px; }
.sum-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sum-mark { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ok-surface); border: 1px solid var(--ok-border); color: var(--ok-text); }
.sum-mark svg { width: 10px; height: 10px; }
.sum--no .sum-mark { background: transparent; border-color: var(--line-strong); }
.sum-title { font-size: 12.5px; font-weight: 600; color: var(--ink-secondary); }
.sum-text { font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: var(--ink-primary); line-height: 1.3; }
.done-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; }
.needs, .tutorials { display: flex; align-items: center; gap: 14px; padding: 16px; }
.needs { border-color: var(--ember-border); background: linear-gradient(180deg, rgba(249, 115, 22, .1), rgba(249, 115, 22, .03)), var(--surface-panel); }
.needs-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; color: var(--ink-primary); }
.tool-acts { display: inline-flex; gap: 8px; flex: none; }
.tutorials .btn { flex: none; }

/* ---------- Nick mode ---------- */
.nick { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100vw; z-index: 40; display: flex; flex-direction: column; background: rgba(9, 11, 24, .96); border-left: 1px solid var(--line-strong); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: -16px 0 48px rgba(2, 4, 16, .55); animation: nick-in .26s var(--ease-out) both; }
@keyframes nick-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.nick-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid var(--line-subtle); }
.nick-head-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.nick-head .btn { gap: 8px; flex: none; }
.nick-title { font-size: 19px; font-weight: 650; letter-spacing: -.025em; line-height: 1.2; }
.nick-sub { font-size: 13px; color: var(--ink-secondary); }
.nick-body { flex: 1 1 auto; overflow-y: auto; padding: 6px 18px 18px; outline: none; overscroll-behavior: contain; }
.nick-sec { padding: 14px 0; border-top: 1px solid var(--line-subtle); }
.nick-sec:first-child { border-top: 0; }
.nick-h { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ember-peach); margin-bottom: 8px; }
.nick-list { display: flex; flex-direction: column; gap: 8px; padding-left: 16px; list-style: disc; font-size: 13.5px; line-height: 1.55; color: var(--ink-primary); }
.nick-list li::marker { color: var(--ink-muted); }
.nick-list code { font-family: var(--font-mono); font-size: 12px; padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-subtle); color: var(--ember-hot); overflow-wrap: anywhere; }
.nick-foot { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line-subtle); }

/* ---------- narrower screens ---------- */
@media (max-width: 1180px) {
  html.nick-on { --nick-w: 0px; }
}
@media (max-width: 900px) {
  .read-grid, .vault-grid, .done-grid { grid-template-columns: minmax(0, 1fr); }
  .sum-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: 210px minmax(0, 1fr); gap: 20px; }
  .mate--xl { width: 180px; height: 180px; }
  .import-top { grid-template-columns: 32px minmax(0, 1fr); }
  .import-top .segmented { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
  .topbar-back .kbd-hint, .eta, .nick-toggle .kbd-hint, .kbd-hint { display: none; }
  .nick-toggle { padding: 0 9px 0 6px; gap: 6px; }
  .step-progress { justify-self: center; }
  .step-segments { gap: 3px; }
  .step-segment { width: 9px; }
  .stage-container { gap: 14px; }
  .screen-sub { font-size: 14.5px; }
  .agent-guide-row--host { grid-template-columns: 112px minmax(0, 1fr); justify-items: start; }
  .agent-guide-row--host .agent-guide-copy { grid-column: 1 / -1; grid-row: 2; }
  .agent-guide-row--host .host, .agent-guide-row--host .team-steps { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
  .host-img { width: 84px; height: 84px; }
  .speech { font-size: 12px; padding: 6px 9px; }
  .hero-head .fraktal-agent-slot { margin: 0; }
  .how-grid, .rule-grid, .tile-grid, .depth-opts, .biz-grid, .mate-grid, .depth-hero { grid-template-columns: minmax(0, 1fr); }
  .how { flex-direction: row; align-items: stretch; }
  .how .art { width: 132px; height: auto; min-height: 104px; margin: 10px 0 10px 10px; flex: none; }
  .how-copy { padding: 14px 14px 14px 12px; align-items: center; }
  .art-folders { padding: 0 8px; }
  .art-row { font-size: 11px; padding: 5px 6px; gap: 5px; }
  .art-row svg:first-child { display: none; }
  .art-mate .mate { width: 38px; height: 38px; }
  .art-mate { margin: 0 -6px; }
  .art-approve { padding: 0 8px; }
  .art-card { font-size: 11px; padding: 6px; gap: 6px; }
  .art-card .mate { width: 24px; height: 24px; }
  .art-btns span { font-size: 10.5px; height: 24px; }
  .depth-col + .depth-col { border-left: 0; border-top: 1px solid var(--line-subtle); }
  .custom-row { flex-direction: column; }
  .list-row.list-row--tree { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .list-row.list-row--tree > :nth-child(3) { grid-column: 3; justify-self: end; width: auto; }
  .tree-children { padding-left: 44px; }
  .chat-app .tree-child { padding-left: 0; }
  .tree-child { flex-wrap: wrap; row-gap: 2px; padding: 6px 0; }
  .list-row.list-row--found, .list-row.list-row--acct { grid-template-columns: 32px minmax(0, 1fr); }
  .list-row.list-row--found > :nth-child(3), .list-row.list-row--acct > :nth-child(3) { grid-column: 2; justify-self: start; width: auto; }
  .list-row.list-row--scan { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .list-row.list-row--scan > :nth-child(3) { grid-column: 3; justify-self: end; width: auto; }
  .list-row.list-row--key { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .list-row.list-row--key > :nth-child(3) { grid-column: 2 / -1; grid-row: 2; justify-self: start; }
  .list-row.list-row--key > :nth-child(4) { grid-column: 3; grid-row: 1; justify-self: end; }
  .list-row.list-row--guardrail { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .import-fate { margin-left: 0; flex-wrap: wrap; }
  .fate { flex: 1 1 100%; }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .team-left { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; text-align: left; gap: 12px 16px; }
  .mate--xl { width: 120px; height: 120px; }
  .pedestal { padding: 0; }
  .plate-tags { justify-content: flex-start; }
  .spec-row { grid-template-columns: 28px minmax(0, 1fr); row-gap: 2px; }
  .spec-body { grid-column: 2; }
  .skill-line { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .biz-title { font-size: 23px; }
  .pocket-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; }
  .pocket-left { width: 100%; flex-direction: column; padding: 20px; gap: 18px; }
  .pocket-how { align-items: center; }
  .sum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .needs, .tutorials { flex-wrap: wrap; }
  .needs .row-body, .tutorials .row-body { flex: 1 1 60%; }
  .tool-acts { width: 100%; }
  .tool-acts .btn { flex: 1; }
  .mate-card-foot { flex-wrap: wrap; }
  .stage-action-dock .action-bar { flex-direction: row; align-items: center; gap: 8px; }
  .stage-action-dock .action-bar-group { width: auto; }
  .stage-action-dock .action-bar-group:last-child { flex: 1; }
  .stage-action-dock .action-bar-group:first-child:empty { display: none; }
  .cast { height: 150px; }
  .cast-m { margin: 0 -11px; }
  .mate--cast { width: 56px; height: 56px; }
  .cast[data-s="asleep"] .cast-m { --y: 26px; }
  .cast[data-s="awake"] .cast-m { --y: 10px; }
  .cast[data-s="peek"] .cast-m { --y: 34px; }
  .cast-say { font-size: 11px; padding: 5px 8px; }
  .stage-main[data-cast="asleep"], .stage-main[data-cast="awake"] { padding-bottom: calc(var(--dock-h) + 110px); }
  .stage-main[data-cast="peek"] { padding-bottom: calc(var(--dock-h) + 60px); }
  .nick { width: 100vw; border-left: 0; }
  .request-acts .split { flex: 1; }
  .split-main { flex: 1; }
}
[data-reduced-motion="true"] .host-img, [data-reduced-motion="true"] .art-mate { animation: none; }
