body.guided { height: 100vh; overflow: hidden; display: flex; flex-direction: column; font-size: 14px; line-height: 1.5; background: #050507; }

.menubar { position: relative; z-index: 9000; display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 16px; background: rgba(14,14,18,0.72); backdrop-filter: blur(20px) saturate(1.4); border-bottom: 1px solid rgba(255,255,255,0.06); }
.menubar .logo { font-size: 15px; gap: 8px; }
.chapters { flex: 1; display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.chapters button { flex: none; background: none; border: 0; color: #77777d; border-radius: 8px; padding: 5px 10px; font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chapters button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2c2c31; }
.chapters button.seen { color: #b5b5ba; }
.chapters button.seen::before { background: #5b5b62; }
.chapters button[aria-current="step"] { color: #fff; background: rgba(255,255,255,0.08); }
.chapters button[aria-current="step"]::before { background: var(--accent); box-shadow: 0 0 0 3px rgba(59,116,255,0.25); }
.controls { display: flex; align-items: center; gap: 10px; }
.controls .pill { padding: 5px 14px; font-size: 13px; }
.auto { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid #2b2b2e; color: #9c9c9d; border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.auto .play { width: 0; height: 0; border-left: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.auto[aria-pressed="true"] { color: #fff; border-color: var(--accent); background: rgba(59,116,255,0.16); }
.auto[aria-pressed="true"] .play { width: 8px; height: 9px; border: 0; border-left: 2.5px solid currentColor; border-right: 2.5px solid currentColor; }
.clock { color: #d5d5d8; font-size: 13px; font-variant-numeric: tabular-nums; min-width: 92px; text-align: right; }

.desk { position: relative; flex: 1; min-height: 0; overflow: hidden; background:
	radial-gradient(1100px 600px at 18% 110%, rgba(59,116,255,0.28), transparent 60%),
	radial-gradient(900px 520px at 92% -10%, rgba(120,80,255,0.20), transparent 60%),
	radial-gradient(700px 400px at 55% 45%, rgba(59,116,255,0.07), transparent 70%),
	linear-gradient(180deg, #08080c, #0b0c14); }
.desk::before { content: ""; position: absolute; inset: -20%; background: repeating-linear-gradient(118deg, transparent 0 140px, rgba(255,255,255,0.018) 140px 210px); animation: drift 60s linear infinite; pointer-events: none; }
@keyframes drift { to { transform: translateX(140px); } }

.window[data-app="assistant"] { --x: .305; --y: .02; --w: .39; --h: .96; }
.window[data-app="zebra"] { --x: .705; --y: .02; --w: .28; --h: .96; }
.window { position: absolute; left: calc(100% * var(--x)); top: calc((100% - 84px) * var(--y)); width: calc(100% * var(--w)); height: calc((100% - 84px) * var(--h)); display: flex; flex-direction: column; background: rgba(20,20,24,0.94); backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.6), 0 18px 50px rgba(0,0,0,0.45); overflow: hidden; transition: box-shadow .35s, border-color .35s, transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s, left .5s, top .5s, width .5s, height .5s; }
.window.front { box-shadow: 0 0 0 0.5px rgba(0,0,0,0.6), 0 30px 90px rgba(0,0,0,0.65); border-color: rgba(255,255,255,0.12); }
.window.lift { animation: lift .45s cubic-bezier(.2,.8,.2,1); }
@keyframes lift { 40% { transform: scale(1.012); } }
.window.reading { border-color: rgba(59,116,255,0.8); box-shadow: 0 0 0 3px rgba(59,116,255,0.22), 0 30px 90px rgba(0,0,0,0.65); }
.window.writing { border-color: rgba(255,255,255,0.7); box-shadow: 0 0 0 3px rgba(255,255,255,0.14), 0 30px 90px rgba(0,0,0,0.65); }
.window.dragging { transition: none; }

.titlebar { position: relative; flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; height: 36px; padding: 0 12px; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); border-bottom: 1px solid rgba(255,255,255,0.06); cursor: grab; user-select: none; touch-action: none; }
.window.dragging .titlebar { cursor: grabbing; }
.lights { position: absolute; left: 12px; display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a40; }
.window.front .lights i:nth-child(1) { background: #ff5f57; }
.window.front .lights i:nth-child(2) { background: #febc2e; }
.window.front .lights i:nth-child(3) { background: #28c840; }
.titlebar .name { font-size: 13px; font-weight: 500; color: #d5d5d8; }
.titlebar .hint { position: absolute; right: 12px; font-size: 11px; color: #5f5f66; max-width: 42%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titlebar .url { font-size: 12px; color: #9c9c9d; background: rgba(0,0,0,0.35); border-radius: 7px; padding: 3px 14px; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titlebar .url::before { content: ""; display: inline-block; width: 7px; height: 8px; margin-right: 7px; border: 1.5px solid #6f6f72; border-radius: 2px; vertical-align: -1px; }

.window .body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.app-head { flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px 8px; }
.app-head h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 8px; }
.app-head .count { font-size: 12px; color: #6f6f72; }

.tasks, .prs { position: relative; list-style: none; margin: 0; padding: 0 8px 10px; overflow: auto; flex: 1; }
.tasks li { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 8px; max-height: 80px; border-radius: 8px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.04); transition: background .3s, opacity .4s; }
.tasks .check { flex: none; position: relative; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; border: 1.6px solid #55555c; transition: background .3s, border-color .3s; }
.tasks li[data-p="1"] .check { border-color: #ff5f57; background: rgba(255,95,87,0.12); }
.tasks li[data-p="2"] .check { border-color: #febc2e; background: rgba(254,188,46,0.10); }
.tasks li[data-p="3"] .check { border-color: #4c8dff; background: rgba(76,141,255,0.08); }
.tasks .title { flex: 1; }
.tasks small { display: block; font-size: 11px; color: #5f5f66; }
.tasks .due { font-size: 11px; color: #3ccf6e; white-space: nowrap; }
.tasks .due:not(:empty)::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border: 1.4px solid currentColor; border-radius: 2px; vertical-align: -1px; }
.tasks li.done .check { background: #55555c; border-color: #55555c; }
.tasks li.done .check::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tasks li.done .title { text-decoration: line-through; color: #6f6f72; }
.tasks li.gone { opacity: 0; max-height: 0; padding-block: 0; border: 0; overflow: hidden; transition: opacity .3s, max-height .45s .2s, padding .45s .2s; }
.tasks li.changed { animation: changed 1.4s ease-out; }
@keyframes changed { from { background: rgba(59,116,255,0.3); } }

.focus { background: rgba(59,116,255,0.16) !important; box-shadow: inset 0 0 0 1px rgba(59,116,255,0.55); }
.scan::after { content: ""; position: absolute; left: 0; right: 0; height: 60px; top: -60px; background: linear-gradient(180deg, transparent, rgba(59,116,255,0.2), transparent); animation: scan 1.3s ease-in-out forwards; pointer-events: none; }
@keyframes scan { to { top: 100%; } }


.prs li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 8px; font-size: 13px; border-radius: 8px; border-bottom: 1px solid rgba(255,255,255,0.04); transition: background .3s; }
.prs small { display: block; font-size: 11px; color: #6f6f72; }
.state { flex: none; font-size: 11px; font-weight: 500; padding: 1px 9px; border-radius: 999px; margin-top: 1px; }
.state.merged { background: #8250df; color: #fff; }
.state.open { background: #238636; color: #fff; }
.state.draft { background: #2b2b2e; color: #9c9c9d; }

.memory { margin: 0; padding: 4px 16px 16px; overflow: auto; flex: 1; font-size: 13px; }
.memory dt { color: #6f6f72; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; margin-top: 14px; }
.memory dt:first-child { margin-top: 4px; }
.memory dd { margin: 5px 0 0; }
.memory ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.memory ul:not(:empty) + .none { display: none; }
.memory li, .memory dd.filled { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 9px; padding: 8px 10px; }
.memory small { color: #8f8f95; }
.none { color: #4a4a50; }
.new { animation: arrive 1s cubic-bezier(.2,.8,.2,1); }
@keyframes arrive { 0% { opacity: 0; transform: translateY(6px) scale(.98); } 40% { opacity: 1; box-shadow: 0 0 0 4px rgba(59,116,255,0.3); background: rgba(59,116,255,0.16); } 100% { box-shadow: 0 0 0 0 rgba(59,116,255,0); } }

.log { flex: 1; overflow: auto; padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 12px; }
.log > * { flex-shrink: 0; }
.log .mark { align-self: center; max-width: 90%; margin: 2px 0; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); font-size: 12.5px; color: #b5b5ba; text-align: center; animation: rise .35s ease-out; }
.log .mark b { color: #fff; font-weight: 600; margin-right: 6px; }
.coach { align-self: stretch; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #f5f5f5; color: #0a0a0a; box-shadow: 0 10px 30px rgba(0,0,0,0.35); animation: coach .45s cubic-bezier(.2,1.3,.4,1); max-height: 400px; overflow: hidden; }
@keyframes coach { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.coach .stripes { flex: none; margin-top: 3px; background: #0a0a0a; }
.coach .text { flex: 1; font-size: 14px; line-height: 1.5; }
.coach .next { flex: none; align-self: flex-end; background: #0a0a0a; color: #f5f5f5; border: 0; border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 13px; cursor: pointer; transition: transform .15s; }
.coach .next.pressed { transform: scale(.94); }
.coach.leaving { opacity: 0; max-height: 0; padding-block: 0; margin-top: -12px; transition: opacity .2s, max-height .4s .1s, padding .4s .1s, margin .4s .1s; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14px; animation: rise .35s cubic-bezier(.2,.8,.2,1); }
.bubble p + p, .bubble p + ul, .bubble p + ol, .bubble ul + p, .bubble ol + p { margin-top: 8px; }
.bubble ul, .bubble ol { margin: 6px 0 0; padding-left: 20px; }
.bubble li + li { margin-top: 2px; }
.bubble.me { align-self: flex-end; background: #2a3b66; border-bottom-right-radius: 5px; }
.bubble.ai { align-self: flex-start; padding-inline: 2px; max-width: 94%; }
.bubble.ai .w { opacity: 0; transition: opacity .3s; }
.bubble.ai .w.on { opacity: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.thinking { align-self: flex-start; max-width: 94%; font-size: 13px; color: #8f8f95; animation: rise .3s ease-out; }
.thinking summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.thinking summary::-webkit-details-marker { display: none; }
.thinking summary::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: conic-gradient(from 0deg, #3b74ff, #c8d7ff, #3b74ff); animation: spin 1.2s linear infinite; }
.thinking.done summary::before { content: "›"; width: auto; height: auto; background: none; animation: none; color: #55555c; transition: transform .2s; }
.thinking.done[open] summary::before { transform: rotate(90deg); }
.thinking summary span { background: linear-gradient(90deg, #6f6f72 0%, #f5f5f5 45%, #6f6f72 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite; }
.thinking.done summary span { animation: none; background: none; color: #6f6f72; }
@keyframes shimmer { from { background-position: 110% 0; } to { background-position: -110% 0; } }
.thinking .thought { margin: 6px 0 0 5px; padding-left: 14px; border-left: 2px solid #26262b; font-style: italic; line-height: 1.55; color: #8f8f95; }
@keyframes spin { to { transform: rotate(360deg); } }

.step { align-self: flex-start; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 94%; font-size: 12.5px; color: #8f8f95; border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 7px 11px; background: rgba(255,255,255,0.025); animation: rise .3s ease-out; }
.step .who { display: inline-flex; align-items: center; gap: 6px; color: #e5e5e8; font-weight: 500; }
.step b { color: #e5e5e8; font-weight: 500; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.step .result { color: #d5d5d8; }
.step .result::before { content: "→ "; color: #6f6f72; }
.step .spin { width: 11px; height: 11px; border: 2px solid #34343a; border-top-color: #e5e5e8; border-radius: 50%; animation: spin .7s linear infinite; }
.step.call { cursor: pointer; }
.step.call:hover { border-color: rgba(255,255,255,0.16); }
.step.call .more { margin-left: auto; color: #55555c; font-size: 11px; }
.step.read { border-color: rgba(59,116,255,0.28); background: rgba(59,116,255,0.06); }
.step .stripes.small { width: 13px; height: 13px; }
.app-dot { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.app-dot.tasks { background: linear-gradient(135deg, #ff6b5a, #e5484d); }
.app-dot.github { background: linear-gradient(135deg, #3b3b42, #1d1d22); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.app-dot.chat { background: linear-gradient(135deg, #a67cff, #6e40c9); }
.step pre { flex-basis: 100%; margin: 6px 0 0; max-height: 280px; overflow: auto; font-size: 11px; line-height: 1.5; color: #b5b5b8; background: rgba(0,0,0,0.45); border-radius: 8px; padding: 10px; white-space: pre-wrap; word-break: break-word; }

.composer { flex: none; padding: 8px 14px 12px; }
.turn { margin: 0 0 6px 2px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #7da2ff; }
.options { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px; margin-bottom: 10px; }
.options:empty { display: none; }
.options button { background: transparent; color: #b5c8ff; border: 1px dashed rgba(76,141,255,0.5); border-radius: 12px; padding: 5px 11px; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; max-width: 100%; transition: transform .15s, background .2s; animation: rise .3s ease-out, glow 2.2s 1s ease-in-out infinite; }
.options button::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border: solid currentColor; border-width: 2px 0 0 2px; transform: translateY(1px) rotate(45deg); opacity: .8; }
.options button:hover { background: rgba(59,116,255,0.35); }
.options button.nudge { animation: glow 1s ease-in-out infinite; border-color: #9db8ff; }
.options button.pressed { transform: scale(.96); background: rgba(59,116,255,0.55); }
@keyframes glow { 50% { box-shadow: 0 0 0 5px rgba(59,116,255,0.14); } }
.input { position: relative; min-height: 46px; display: flex; align-items: center; flex-wrap: wrap; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 10px 46px 10px 14px; background: rgba(0,0,0,0.25); font-size: 14px; }
.input .placeholder { color: #4f4f55; margin-left: 2px; }
.input .typed:not(:empty) ~ .placeholder { display: none; }
.caret { display: inline-block; width: 1.5px; height: 1.1em; background: var(--accent); animation: blink 1s steps(1) infinite; }
.input .send { position: absolute; right: 8px; bottom: 7px; width: 30px; height: 30px; border: 0; padding: 0; border-radius: 9px; background: #2b2b2e; cursor: pointer; transition: background .2s; }
.input .send::before { content: ""; position: absolute; left: 50%; top: 55%; width: 8px; height: 8px; border: solid #0a0a0a; border-width: 2px 0 0 2px; transform: translate(-50%, -50%) rotate(45deg); }
.input.ready .send { background: #f5f5f5; }
.input.drafting { border-color: rgba(76,141,255,0.65); box-shadow: 0 0 0 3px rgba(59,116,255,0.14); cursor: pointer; }
.input.drafting .typed { color: #fff; }
.input .send.nudge { animation: glow 1s ease-in-out infinite; }
.connected { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; color: #55555c; }
.connected .stripes.small { width: 11px; height: 11px; background: #55555c; }
@keyframes blink { 50% { opacity: 0; } }

.beams { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 8000; }
.beams path { fill: none; stroke: url(#beam); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 10 14; animation: flow .5s linear infinite, fade 1.7s ease-in-out forwards; filter: drop-shadow(0 0 6px rgba(59,116,255,0.9)); }
.beams path.write { stroke: #e5e5e8; filter: drop-shadow(0 0 6px rgba(255,255,255,0.7)); }
.beams circle { fill: #fff; filter: drop-shadow(0 0 8px #9db8ff); animation: fade 1.7s ease-in-out forwards; }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes fade { 0% { opacity: 0; } 15%, 75% { opacity: 1; } 100% { opacity: 0; } }

.cursor { position: absolute; left: 0; top: 0; z-index: 9300; pointer-events: none; opacity: 0; transition: opacity .3s; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.cursor.on { opacity: 1; }
.cursor.click::after { content: ""; position: absolute; left: -10px; top: -10px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.85); animation: ripple .5s ease-out forwards; }
@keyframes ripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

.dock { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 9000; display: flex; align-items: flex-end; gap: 8px; padding: 7px 9px; border-radius: 20px; background: rgba(30,30,36,0.55); backdrop-filter: blur(24px) saturate(1.5); border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.dock button { position: relative; background: none; border: 0; padding: 0; cursor: pointer; transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.dock button:hover { transform: translateY(-6px) scale(1.12); }
.dock button::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255,255,255,0.7); }
.dock button.bounce { animation: bounce .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes bounce { 35% { transform: translateY(-14px); } }
.dock .divider { width: 1px; height: 36px; margin: 0 3px 4px; background: rgba(255,255,255,0.14); }
.icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 4px 12px rgba(0,0,0,0.4); }
.icon.assistant { background: radial-gradient(circle at 30% 25%, #9db8ff, #3b74ff 55%, #2448b8); }
.icon.assistant::before { content: ""; width: 20px; height: 20px; background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.icon.tasks { background: linear-gradient(135deg, #ff6b5a, #e5484d); }
.icon.tasks::before { content: ""; width: 9px; height: 17px; margin-top: -4px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }


.icon.github { background: linear-gradient(135deg, #2f2f36, #121216); }
.icon.github::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #e5e5e8; border-bottom-color: transparent; transform: rotate(-45deg); }
.icon.zebra { background: #f5f5f5; }
.icon.zebra .stripes { background: #0a0a0a; width: 22px; height: 22px; }


.cover { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 16px; background: radial-gradient(800px 500px at 50% 40%, rgba(59,116,255,0.18), transparent 70%), rgba(5,5,7,0.86); backdrop-filter: blur(10px); animation: rise .5s ease-out; }
.cover[hidden] { display: none; }
.cover .card { max-width: 540px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.cover h1, .cover h2 { font-size: clamp(34px, 6vw, 56px); line-height: 1.02; letter-spacing: -0.04em; }
.cover p { color: #9c9c9d; font-size: 17px; }
.cover .small { font-size: 13px; color: #6f6f72; }
.cover .button { border: 0; cursor: pointer; font: inherit; font-weight: 500; margin-top: 4px; }
.cover .link { background: none; border: 0; cursor: pointer; font: inherit; }
.name { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.name label { font-size: 14px; color: var(--muted); }
.name input { width: min(320px, 100%); min-height: 50px; border-radius: 14px; border: 1px solid #2b2b2e; background: rgba(20,20,24,0.9); color: var(--text); font: inherit; font-size: 18px; text-align: center; padding: 0 16px; }
.name input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.window[hidden] { display: none; }
.window.opening { animation: open .45s cubic-bezier(.2,.9,.3,1.1); }
@keyframes open { from { opacity: 0; transform: scale(.94) translateY(12px); } }
.window.closing { animation: close .35s ease-in forwards; }
@keyframes close { to { opacity: 0; transform: scale(.96) translateY(8px); } }

.approve { flex: none; margin-left: auto; align-self: center; background: #238636; color: #fff; border: 0; border-radius: 7px; padding: 4px 12px; font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; transition: opacity .3s, transform .15s; }
.approve.pressed { transform: scale(.94); }
.approve:disabled { opacity: 0; pointer-events: none; }
.state.approved { background: #1f6f3a; color: #d6ffe3; }
.target { position: relative; z-index: 1; box-shadow: 0 0 0 3px rgba(59,116,255,0.6), 0 0 24px rgba(59,116,255,0.6); animation: beckon 1.4s ease-in-out infinite; }
@keyframes beckon { 50% { box-shadow: 0 0 0 6px rgba(59,116,255,0.25), 0 0 30px rgba(59,116,255,0.4); } }
.tip { position: absolute; z-index: 9100; transform: translate(-50%, calc(-100% - 14px)); max-width: 260px; padding: 8px 12px; border-radius: 10px; background: #f5f5f5; color: #0a0a0a; font-size: 13px; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: pop-tip .35s cubic-bezier(.2,1.3,.4,1); pointer-events: none; }
.tip::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #f5f5f5; }
.tip.side { transform: translateY(-50%); animation: none; }
.tip.side::after { left: -6px; top: 50%; bottom: auto; margin: -6px 0 0; border: 6px solid transparent; border-left: 0; border-right-color: #f5f5f5; }
.tip.left { transform: translate(-100%, -50%); animation: none; }
.tip.left::after { left: auto; right: -6px; top: 50%; bottom: auto; margin: -6px 0 0; border: 6px solid transparent; border-right: 0; border-left-color: #f5f5f5; }
@keyframes pop-tip { from { opacity: 0; transform: translate(-50%, calc(-100% - 4px)); } }

.memory li.kept { color: #8f8f95; }
.memory li.kept::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 7px; vertical-align: -2px; border-radius: 50%; background: #3ccf6e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23062' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.memory li.kept b { color: #8f8f95; }
.memory li.leaving { animation: leave .5s ease-in forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(16px); max-height: 0; padding-block: 0; margin: 0; } }
.memory li b { font-weight: 600; margin-right: 4px; }
.memory li small { display: block; }

.messages { list-style: none; margin: 0; padding: 4px 12px 12px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.messages li { display: flex; gap: 10px; font-size: 13px; animation: rise .35s ease-out; }
.avatar { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #fff; background: hsl(var(--hue, 220) 55% 42%); }
.messages b { font-weight: 600; margin-right: 6px; }
.messages time { font-size: 11px; color: #6f6f72; }
.messages p { margin-top: 2px; color: #d5d5d8; }

.meeting .body { background: #0c0c0f; }
.tiles { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; padding: 10px; }
.tile { position: relative; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(160deg, #1b1d26, #121318); border: 2px solid transparent; transition: border-color .25s, box-shadow .25s; animation: rise .4s ease-out; }
.tile .avatar { width: 56px; height: 56px; border-radius: 50%; font-size: 22px; }
.tile .who { position: absolute; left: 10px; bottom: 8px; font-size: 12px; color: #d5d5d8; background: rgba(0,0,0,0.45); padding: 1px 8px; border-radius: 6px; }
.tile.talking { border-color: #3ccf6e; box-shadow: 0 0 0 3px rgba(60,207,110,0.18); }
.tile.talking .avatar { animation: talk .5s ease-in-out infinite alternate; }
@keyframes talk { to { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(60,207,110,0.18); } }
.captions { flex: none; list-style: none; margin: 0; padding: 10px 14px 14px; max-height: 42%; overflow: auto; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 13px; }
.captions li { animation: rise .3s ease-out; color: #d5d5d8; }
.captions b { color: #fff; margin-right: 6px; }
.rec { position: absolute; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; animation: blink 1.2s infinite; }

.icon.chat { background: linear-gradient(135deg, #a67cff, #6e40c9); }
.icon.chat::before { content: ""; width: 20px; height: 15px; border-radius: 6px 6px 6px 2px; background: #fff; }
.icon.meet { background: linear-gradient(135deg, #3ccf6e, #1f8f4a); }
.icon.meet::before { content: ""; width: 16px; height: 12px; border-radius: 3px; background: #fff; box-shadow: 9px 0 0 -3px #fff; margin-right: 6px; }

.clock.tick { animation: tick .6s ease-out; }
@keyframes tick { 30% { color: #fff; text-shadow: 0 0 12px rgba(59,116,255,0.9); } }

.mind { position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); font-size: 12.5px; color: #d5d5d8; white-space: nowrap; }
.mind[hidden] { display: none; }
.mind .stripes.small { width: 12px; height: 12px; }
.mind .kept { color: #3ccf6e; }
.mind .kept:empty { display: none; }
.mind.bump { animation: bump .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 40% { transform: scale(1.08); background: rgba(59,116,255,0.25); } }
.float { position: absolute; right: 10px; top: 0; font-size: 12px; font-weight: 600; color: #9db8ff; pointer-events: none; animation: float 1.2s ease-out forwards; }
.float.green { color: #3ccf6e; }
@keyframes float { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-22px); } }
.me { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #d5d5d8; }
.me .avatar { width: 22px; height: 22px; border-radius: 50%; font-size: 11px; }

.toasts { position: fixed; top: 54px; right: 14px; z-index: 9400; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 28px)); pointer-events: none; }
.toast { display: flex; gap: 11px; align-items: flex-start; padding: 11px 13px; border-radius: 14px; background: rgba(40,40,46,0.82); backdrop-filter: blur(24px) saturate(1.6); border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 16px 40px rgba(0,0,0,0.5); animation: slide .45s cubic-bezier(.2,1.1,.3,1); }
.toast .icon { flex: none; width: 34px; height: 34px; border-radius: 9px; }
.toast .icon.chat::before { width: 15px; height: 11px; }
.toast .title { display: block; font-size: 13px; font-weight: 600; }
.toast p { font-size: 13px; color: #d5d5d8; line-height: 1.4; }
.toast.out { animation: unslide .4s ease-in forwards; }
@keyframes slide { from { opacity: 0; transform: translateX(40px); } }
@keyframes unslide { to { opacity: 0; transform: translateX(40px); } }

.daycard { position: absolute; inset: 0; z-index: 8500; display: grid; place-items: center; background: radial-gradient(600px 300px at 50% 50%, rgba(5,5,7,0.75), rgba(5,5,7,0.35)); pointer-events: none; animation: daycard 2.4s ease-in-out forwards; }
.daycard[hidden] { display: none; }
.daycard.quick, .daycard.quick span { animation-duration: 1.4s; }
.daycard span { font-size: clamp(48px, 9vw, 104px); font-weight: 600; letter-spacing: -0.05em; color: #fff; text-shadow: 0 10px 60px rgba(59,116,255,0.6); animation: dayword 2.4s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes daycard { 0% { opacity: 0; } 15%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dayword { from { transform: translateY(14px) scale(.96); filter: blur(6px); } 30% { transform: none; filter: none; } to { transform: translateY(-8px); } }

.step .took { color: #55555c; font-size: 11px; font-variant-numeric: tabular-nums; }

.score { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(620px, 100%); margin: 6px 0 2px; }
.score div { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 2px; padding: 14px 8px; border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
.score dd { order: -1; margin: 0; font-size: 40px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.score dt { font-size: 12px; color: #8f8f95; line-height: 1.3; }
.score .zero { border-color: rgba(60,207,110,0.45); background: rgba(60,207,110,0.08); }
.score .zero dd { color: #3ccf6e; }

.backstage { align-self: flex-start; max-width: 94%; font-size: 12.5px; color: #8f8f95; }
.backstage summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }
.backstage summary::-webkit-details-marker { display: none; }
.backstage summary::after { content: "›"; color: #55555c; transition: transform .2s; }
.backstage[open] summary::after { transform: rotate(90deg); }
.backstage summary:hover { border-color: rgba(255,255,255,0.16); color: #d5d5d8; }
.backstage .spin { display: none; width: 11px; height: 11px; border: 2px solid #34343a; border-top-color: #e5e5e8; border-radius: 50%; animation: spin .7s linear infinite; }
.backstage.running .spin { display: inline-block; }
.backstage .inner { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding-left: 10px; border-left: 2px solid #26262b; }
.backstage .inner .step { max-width: 100%; }

.lesson-card { position: absolute; inset: 0; z-index: 8800; display: grid; place-items: center; padding: 16px; background: rgba(5,5,7,0.55); backdrop-filter: blur(4px); animation: rise .35s ease-out; }
.lesson-card[hidden] { display: none; }
.lesson-card.leaving { animation: unlesson .4s ease-in forwards; }
@keyframes unlesson { to { opacity: 0; } }
.sheet { width: min(520px, 100%); max-height: 100%; overflow: auto; padding: 28px 30px; border-radius: 22px; background: #f5f5f5; color: #0a0a0a; box-shadow: 0 30px 90px rgba(0,0,0,0.6); animation: pop-sheet .5s cubic-bezier(.2,1.2,.4,1); }
@keyframes pop-sheet { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.sheet .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #3b74ff; }
.sheet h3 { margin: 8px 0 12px; font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
.sheet p { font-size: 15px; color: #3a3a40; }
.sheet ul { margin: 10px 0 0; padding-left: 20px; font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.sheet .remember { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #e8eeff; color: #0a0a0a; font-weight: 500; }
.sheet .remember q { font-weight: 600; color: #2448b8; }
.sheet button { margin-top: 20px; background: #0a0a0a; color: #f5f5f5; border: 0; border-radius: 999px; padding: 10px 20px; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: transform .15s; }
.sheet button.pressed { transform: scale(.95); }
.phrases { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.phrases li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(59,116,255,0.08); }
.phrases span { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #3b74ff; }
.phrases q { font-size: 17px; font-weight: 600; }
.cover .phrases { width: min(460px, 100%); }
.cover .phrases li { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
.cover .phrases span { color: #7da2ff; }
.cover .phrases q { color: #fff; }

.guided .foot { display: none; }

@media (max-width: 1000px) {
	body.guided { height: 100dvh; }
	.menubar { height: auto; flex-wrap: wrap; gap: 6px 12px; padding: 8px 12px; }
	.chapters { order: 3; flex-basis: 100%; justify-content: flex-start; }
	.controls { margin-left: auto; }
	.controls .pill { display: none; }
	.me { display: none; }
	.mind { order: 2; margin-left: auto; padding: 3px 10px; font-size: 12px; }
	.toasts { top: 96px; left: 14px; right: 14px; width: auto; }
	.score { grid-template-columns: repeat(2, 1fr); }
	.score dd { font-size: 32px; }
	.clock { min-width: 0; }
	.window { left: 8px !important; top: 8px !important; width: calc(100% - 16px) !important; height: calc(100% - 88px) !important; opacity: 0; pointer-events: none; transform: translateY(10px) scale(.98); }
	.window.front { opacity: 1; pointer-events: auto; transform: none; }
	.titlebar { cursor: default; }
	.titlebar .hint { display: none; }
	.beams, .cursor { display: none; }
	.dock { bottom: 8px; gap: 6px; padding: 6px 8px; }
	.icon { width: 40px; height: 40px; }
	.dock button.ping .icon { box-shadow: 0 0 0 2px var(--accent); }
	
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
