@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #0D0F0C;
  --panel: #121411;
  --surface: #161915;
  --raised: #1E221C;
  --line: #1E221C;
  --line-strong: #343A30;
  --text: #F2F4EE;
  --text-soft: #D9DED3;
  --muted: #A3AB9C;
  --faint: #6F7869;
  --accent: #B8F25B;
  --accent-hover: #D4FA92;
  --accent-tint: #1E2419;
  --accent-line: #3B4A2A;
  --display: 'Bricolage Grotesque', sans-serif;
  --body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--display); margin: 0; }
button { font-family: var(--body); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 40px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px var(--display); color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.steps { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.steps a { padding: 6px 12px; border-radius: 999px; color: var(--faint); text-decoration: none; }
.steps a.past { color: var(--muted); }
.steps a:hover { color: var(--text); }
.steps a.on { color: var(--bg); background: var(--accent); font-weight: 600; }
.sample { font-size: 12px; color: var(--muted); border: 1px dashed #4A5244; padding: 4px 10px; border-radius: 6px; }

/* Layout */
.wrap { flex: 1; width: 100%; margin: 0 auto; padding: 48px 40px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.col-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.col-side { flex: 1 1 300px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.panel-title { font: 600 16px var(--display); }
.hint { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 4px 0 0; }
.lbl { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.lead { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); }
.h1 { font: 700 40px/1.1 var(--display); }

/* Buttons */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 16px var(--body); color: var(--bg); background: var(--accent); border: none; border-radius: 12px; padding: 14px 22px; min-height: 48px; text-decoration: none; cursor: pointer; }
.cta:hover { color: var(--bg); background: var(--accent-hover); }
.alt { display: inline-flex; align-items: center; gap: 10px; font: 600 16px var(--body); color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 22px; min-height: 48px; text-decoration: none; cursor: pointer; }
.alt:hover { color: var(--text); border-color: var(--accent); }
.ghost { font: 500 14px var(--body); color: var(--muted); background: none; border: 1px solid #2A2F27; border-radius: 10px; padding: 10px 14px; min-height: 44px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.ghost:hover { color: var(--text); border-color: #4A5244; }
.field { flex: 1; min-width: 0; font: 400 15px var(--body); color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 16px; min-height: 44px; outline: none; }
.field:focus { border-color: var(--accent); }
.icon-btn { background: none; border: none; color: var(--faint); cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { color: var(--text); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--accent-hover); background: var(--accent-tint); border: 1px solid var(--accent-line); padding: 6px 12px; border-radius: 999px; }
.chip small { font-size: 12px; color: #7E8F6A; }
.chip-empty { font-size: 14px; color: #4A5244; border: 1px dashed #2A2F27; padding: 6px 12px; border-radius: 999px; }
.logo-ph { width: 32px; height: 32px; border-radius: 8px; background: var(--raised); border: 1px solid #2A2F27; display: inline-flex; align-items: center; justify-content: center; font: 700 13px var(--display); color: var(--muted); }

/* 1 Interview */
.progress { height: 4px; background: var(--raised); border-radius: 4px; overflow: hidden; }
.progress > div { height: 4px; background: var(--accent); width: 0; transition: width .4s; }
.chat { display: flex; flex-direction: column; gap: 14px; }
.msg-agent { display: flex; gap: 12px; align-items: flex-start; max-width: 640px; animation: rise .3s ease-out both; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-tint); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; }
.msg-agent p { margin: 0; padding-top: 4px; font: 500 22px/1.35 var(--display); }
.msg-me { align-self: flex-end; font-size: 15px; color: var(--bg); background: var(--accent); padding: 10px 16px; border-radius: 16px 16px 4px 16px; max-width: 420px; animation: rise .25s ease-out both; }
.bubbles { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 48px; }
.bubble { font: 500 15px/1.2 var(--body); color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 12px 18px; min-height: 44px; cursor: pointer; transition: all .15s; animation: rise .3s ease-out both; }
.bubble:hover { border-color: var(--accent); background: var(--accent-tint); transform: translateY(-1px); }
.own { display: flex; gap: 10px; padding-left: 48px; max-width: 600px; }
.typing { display: flex; gap: 6px; padding: 8px 0 0 48px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
.facts { display: flex; flex-direction: column; gap: 18px; }
.fact { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

/* 2 Upload */
.drop { width: 100%; font: inherit; color: var(--text); background: var(--panel); border: 1.5px dashed var(--line-strong); border-radius: 16px; padding: 36px 24px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.drop:hover, .drop.over { border-color: var(--accent); background: #151A12; }
.file-card { background: var(--panel); border: 1px solid var(--accent-line); border-radius: 16px; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.link-row { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding-left: 16px; }
.pill-optional { align-self: flex-start; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid #2A2F27; padding: 4px 10px; border-radius: 999px; }

/* 3 Research */
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.feed li { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 12px; transition: all .3s; opacity: .4; }
.feed li.active { background: #151A12; opacity: 1; }
.feed li.done { opacity: 1; }
.feed .ico { flex: none; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.feed .label { flex: 1; font-size: 17px; }
.feed .count { font: 600 20px var(--display); color: var(--accent-hover); min-width: 120px; text-align: right; }
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.logos div { aspect-ratio: 1; border-radius: 12px; background: var(--raised); border: 1px solid #2A2F27; display: flex; align-items: center; justify-content: center; font: 700 16px var(--display); color: var(--muted); animation: pop .35s ease-out both; }
.spin { animation: spin .9s linear infinite; }

/* 4 Paths */
.cards { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.card { flex: 1 1 340px; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 22px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: #4A5244; transform: translateY(-2px); }
.card .rank { font-size: 13px; color: var(--accent); font-weight: 600; }
.card h2 { font: 700 28px/1.15 var(--display); margin: 6px 0; }
.why { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--text-soft); }
.why svg { flex: none; margin-top: 3px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface); border-radius: 12px; padding: 14px; }
.stat b { display: block; font: 700 24px var(--display); }
.stat span { font-size: 13px; color: var(--muted); }
.more { font: 600 15px var(--body); color: var(--text); background: var(--raised); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 18px; min-height: 44px; cursor: pointer; width: 100%; }
.more:hover { border-color: var(--accent); }
.scrim { position: fixed; inset: 0; background: rgba(5, 6, 5, .72); display: none; justify-content: flex-end; z-index: 10; }
.scrim.open { display: flex; }
.drawer { width: 560px; max-width: 100%; height: 100%; background: var(--panel); border-left: 1px solid #2A2F27; padding: 36px; display: flex; flex-direction: column; gap: 28px; overflow-y: auto; animation: slide .25s ease-out both; }
.day { display: flex; gap: 14px; align-items: baseline; font-size: 15px; line-height: 1.45; color: var(--text-soft); }
.day span:first-child { flex: none; width: 52px; font-size: 13px; color: var(--faint); }
.ladder { display: flex; flex-direction: column; }
.rung { display: flex; gap: 16px; }
.rung .rail { display: flex; flex-direction: column; align-items: center; width: 14px; }
.rung .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); }
.rung .dot.on { background: var(--accent); }
.rung .bar { flex: 1; width: 2px; background: #2A2F27; min-height: 34px; }
.rung:last-child .bar { display: none; }
.rung .body { flex: 1; padding-bottom: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.close { background: var(--raised); border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }

/* 5 Roadmap */
.done-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.review { font: 500 13px var(--body); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.review:hover { color: var(--text); }
.section { display: flex; flex-direction: column; align-items: center; gap: 28px; scroll-margin-top: 20px; }
.section-head { width: 100%; display: flex; align-items: center; gap: 16px; }
.section-head::before, .section-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.section-head > div { text-align: center; max-width: 520px; }
.section-head .kicker { font-size: 13px; font-weight: 600; color: var(--faint); }
.section-head h2 { font: 700 28px/1.15 var(--display); margin: 4px 0 6px; color: var(--muted); }
.section-head p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.section.here .kicker { color: var(--accent); }
.section.here h2 { color: var(--text); }
.map { position: relative; width: 520px; max-width: 100%; }
.link { position: absolute; height: 0; border-top: 3px dashed #2A2F27; transform-origin: 0 50%; }
.link.lit { border-top-style: solid; border-color: #5C8F2A; }
.node { position: absolute; display: block; width: 120px; height: 100px; text-decoration: none; transition: transform .2s; }
.node:hover { transform: translateY(-6px); }
.node.current svg { filter: drop-shadow(0 0 18px rgba(184, 242, 91, .55)); }
.here-pill { position: absolute; left: 50%; top: -34px; white-space: nowrap; font: 600 12px var(--body); color: var(--bg); background: var(--accent); padding: 5px 10px; border-radius: 999px; animation: bob 1.6s ease-in-out infinite; }
.node-label { position: absolute; width: 190px; }
.node-label b { display: block; font-size: 15px; }
.node-label span { font-size: 12px; color: var(--faint); }
.node-label.later b { color: var(--muted); }
.route { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.route li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.route a { color: var(--text-soft); text-decoration: none; }
.route a:hover { color: var(--accent); }
.sq { width: 10px; height: 10px; border-radius: 3px; background: #343A30; }
.legend { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted); }
.legend div { display: flex; gap: 10px; align-items: center; }

/* 6 Module */
.back { display: inline-flex; align-items: center; gap: 8px; font: 500 14px var(--body); color: var(--muted); text-decoration: none; align-self: flex-start; }
.back:hover { color: var(--text); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.res { display: flex; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; text-decoration: none; color: var(--text); transition: border-color .2s; }
.res:hover { border-color: #4A5244; color: var(--text); }
.res.top { border-color: var(--accent-line); background: #151A12; padding: 24px; }
.res .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--raised); display: flex; align-items: center; justify-content: center; font: 700 13px var(--display); color: var(--accent-hover); }
.res .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.res .title { font-weight: 600; font-size: 16px; }
.res .by { font-size: 13px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--raised); color: var(--muted); }
.tag.free { background: var(--accent-tint); color: var(--accent-hover); }
.tag.paid { background: #2A2318; color: #F2C77B; }
.seg-group { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.seg { font: 600 14px var(--body); border: none; border-radius: 8px; padding: 0 16px; min-height: 40px; cursor: pointer; background: transparent; color: var(--muted); }
.seg.on { background: var(--accent); color: var(--bg); }
.unlocked { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; background: #151A12; border: 1px solid var(--accent-line); border-radius: 16px; padding: 20px 24px; animation: rise .45s ease-out both; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }

@media (max-width: 720px) {
  .top, .wrap { padding-left: 16px; padding-right: 16px; }
  .h1 { font-size: 32px; }
  .bubbles, .own, .typing { padding-left: 0; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
}

/* 1b Task cards */
.phase-label { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 12px; }
.task-intro { display: flex; flex-direction: column; gap: 8px; }
.task-wrap { position: relative; min-height: 300px; display: flex; align-items: stretch; }
.task { flex: 1; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; animation: cardIn .35s ease-out both; transition: transform .35s ease-in, opacity .35s ease-in, border-color .2s; }
.task .src { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); }
.task .text { font: 600 32px/1.25 var(--display); }
.task .reveal { font-size: 14px; color: var(--accent-hover); min-height: 20px; }
.task.out-like { transform: translateX(120px) rotate(6deg); opacity: 0; border-color: var(--accent); }
.task.out-no { transform: translateX(-120px) rotate(-6deg); opacity: 0; border-color: #7A3B32; }
.task.out-maybe { transform: translateY(40px); opacity: 0; }
.rate { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rate button { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 15px var(--body); color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 16px 12px; min-height: 64px; cursor: pointer; transition: all .15s; }
.rate button:hover { transform: translateY(-2px); }
.rate .no:hover { border-color: #C0614F; background: #22171A; }
.rate .maybe:hover { border-color: #A3AB9C; }
.rate .like:hover { border-color: var(--accent); background: var(--accent-tint); }
.rate kbd { font: 500 11px var(--body); color: var(--faint); }
.forming { display: flex; flex-direction: column; gap: 12px; }
.f-row { display: flex; flex-direction: column; gap: 5px; transition: opacity .3s; }
.f-row .f-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.f-row .f-top span:last-child { font-size: 12px; color: var(--faint); white-space: nowrap; }
.f-bar { height: 6px; background: var(--raised); border-radius: 6px; overflow: hidden; }
.f-bar div { height: 6px; border-radius: 6px; background: #4A5E36; transition: width .5s ease, background .3s; }
.f-row.top3 .f-bar div { background: var(--accent); }
.f-row.dim { opacity: .45; }
.practical { display: flex; flex-direction: column; gap: 22px; animation: rise .3s ease-out both; }
.practical .row { display: flex; flex-direction: column; gap: 10px; }
.bubble.on { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.result { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; animation: rise .35s ease-out both; }
.result b { font: 700 20px var(--display); display: block; }
.result span { font-size: 14px; color: var(--muted); }
.result .n { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center; font: 700 16px var(--display); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* 1c Expectation stepper, bridge, map */
.expect { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.expect .st { display: flex; flex-direction: column; gap: 6px; }
.expect .st .ln { height: 4px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.expect .st .ln div { height: 4px; background: var(--accent); width: 0; transition: width .4s; }
.expect .st b { font: 600 13px var(--body); color: var(--faint); }
.expect .st span { font-size: 12px; color: #4A5244; }
.expect .st.on b { color: var(--text); }
.expect .st.on span { color: var(--muted); }
.expect .st.done b { color: var(--muted); }
.expect-note { font-size: 13px; color: var(--accent-hover); min-height: 18px; margin-top: 10px; }
.bridge { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 24px; animation: cardIn .4s ease-out both; }
.bridge .how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bridge .how div { background: var(--surface); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.bridge .how div b { font-size: 26px; }
.rate .emo { font-size: 26px; line-height: 1; }
.map-box { position: relative; height: 340px; border-radius: 12px; background: radial-gradient(circle at 50% 50%, #151813 0%, #101210 70%); border: 1px solid var(--line); overflow: hidden; touch-action: none; }
.map-box svg { width: 100%; height: 100%; display: block; }
.map-box .lnk { stroke: #3A4134; }
.map-box .lnk.task { stroke: #2C3228; }
.map-box text { font: 500 11px var(--body); fill: var(--muted); pointer-events: none; }
.map-box .nd { cursor: grab; transition: fill .3s; }
.map-box .nd:active { cursor: grabbing; }
.map-box g.top text { fill: var(--text); font-weight: 600; }
.map-box.hovering g:not(.hl) { opacity: .25; }
.map-box.hovering line:not(.hl) { opacity: .15; }
.map-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--faint); }
.map-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* 1d Voice */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mode-opt { text-align: left; display: flex; flex-direction: column; gap: 10px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; padding: 24px; cursor: pointer; transition: all .15s; }
.mode-opt:hover { border-color: var(--accent); background: var(--accent-tint); transform: translateY(-2px); }
.mode-opt .big { font-size: 34px; line-height: 1; }
.mode-opt b { font: 700 22px var(--display); }
.mode-opt span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.vbar { position: fixed; left: 0; right: 0; margin: 0 auto; bottom: 24px; z-index: 20; display: flex; align-items: center; gap: 14px; background: #171B15; border: 1px solid var(--accent-line); border-radius: 999px; padding: 10px 12px 10px 10px; box-shadow: 0 12px 40px rgba(0,0,0,.5); width: min(640px, calc(100% - 32px)); animation: rise .3s ease-out both; }
.mic { flex: none; width: 52px; height: 52px; border-radius: 50%; border: none; background: var(--raised); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.vbar.listening .mic { background: var(--accent); color: var(--bg); }
.vbar.listening .mic::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); animation: ring 1.2s ease-out infinite; }
.vbar.speaking .mic { background: #2A3420; color: var(--accent); }
.vtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vtext b { font-size: 14px; }
.vtext span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.waves { display: none; gap: 3px; align-items: center; height: 18px; }
.vbar.speaking .waves { display: flex; }
.waves i { width: 3px; border-radius: 3px; background: var(--accent); animation: wave .9s ease-in-out infinite; }
.waves i:nth-child(2) { animation-delay: .15s; } .waves i:nth-child(3) { animation-delay: .3s; } .waves i:nth-child(4) { animation-delay: .45s; }
.talk-btn { position: fixed; right: 24px; bottom: 24px; z-index: 20; }
@keyframes ring { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 18px; } }
@media (max-width: 720px) { .modes { grid-template-columns: minmax(0, 1fr); } }

/* 1e Voice stage (Gemini Live style) */
.voice-stage { display: none; flex: 1; min-height: calc(100vh - 74px); flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 32px 16px 150px; background: radial-gradient(circle at 50% 42%, #151C10 0%, var(--bg) 62%); position: relative; text-align: center; }
body.voice-mode .voice-stage { display: flex; }
body.voice-mode main.wrap { display: none; }
.v-step { font-size: 13px; color: var(--accent-hover); letter-spacing: .02em; min-height: 18px; }
.orb-wrap { position: relative; width: 300px; height: 300px; display: flex; align-items: center; justify-content: center; }
.orb-glow { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(184, 242, 91, .38), rgba(79, 179, 138, .12) 45%, transparent 68%); filter: blur(18px); transition: opacity .3s; }
.orb { position: relative; width: 200px; height: 200px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 34% 28%, #F4FFD9 0%, #B8F25B 28%, #4FB38A 64%, #17402F 100%); box-shadow: 0 0 90px rgba(184, 242, 91, .35), inset -24px -34px 60px rgba(0, 0, 0, .35); will-change: transform; }
.orb::before, .orb::after { content: ''; position: absolute; inset: -35%; filter: blur(20px); mix-blend-mode: screen; }
.orb::before { background: conic-gradient(from 0deg, transparent 0 15%, rgba(124, 224, 255, .55) 25%, transparent 40%, rgba(212, 250, 146, .7) 60%, transparent 75%); animation: swirl 7s linear infinite; }
.orb::after { background: conic-gradient(from 180deg, transparent 0 20%, rgba(255, 255, 255, .35) 30%, transparent 45%, rgba(79, 179, 138, .6) 70%, transparent 85%); animation: swirl 11s linear infinite reverse; }
body.v-speaking .orb::before { animation-duration: 2.4s; }
body.v-speaking .orb::after { animation-duration: 3.6s; }
body.v-listening .orb-wrap::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 2px solid rgba(184, 242, 91, .6); animation: ring 1.6s ease-out infinite; }
body.v-idle .orb { filter: saturate(.55) brightness(.8); }
.v-status { font: 600 14px var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.v-transcript { font: 600 30px/1.3 var(--display); max-width: 760px; min-height: 40px; color: var(--text); }
.v-caption { font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 640px; min-height: 24px; }
.v-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.v-facts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 760px; }
.v-facts .chip { animation: pop .35s ease-out both; }
.cc-btn { position: absolute; top: 20px; right: 24px; }
.cc-btn[aria-pressed="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }
@keyframes swirl { to { transform: rotate(360deg); } }

/* 2 Feedback round: bottom steps, corner widget, card stack */
body { padding-bottom: 84px; }
.brand { gap: 8px; letter-spacing: -.01em; }
.stepbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 16px; background: rgba(13, 15, 12, .92); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.stepbar a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; color: var(--faint); text-decoration: none; font-size: 14px; font-weight: 500; }
.stepbar a:hover { color: var(--text); }
.stepbar a.past { color: var(--muted); }
.stepbar a.past svg { color: var(--accent); }
.stepbar a.on { color: var(--bg); background: var(--accent); font-weight: 600; }
.stepbar .dots { width: 56px; height: 0; border-top: 2px dotted #343A30; }
.stepbar .dots.lit { border-top-color: var(--accent); }
.vbar { bottom: 92px; }
.talk-btn { bottom: 92px; right: auto; left: 24px; }
.voice-stage { padding-bottom: 190px; min-height: calc(100vh - 74px - 84px); }

.corner { position: fixed; right: 24px; bottom: 92px; z-index: 18; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.corner-pill { display: inline-flex; align-items: center; gap: 10px; font: 600 14px var(--body); color: var(--text); background: #171B15; border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.corner-pill:hover { border-color: var(--accent); }
.corner-pill .count { color: var(--bg); background: var(--accent); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.corner-pill .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.4s infinite; }
.corner-panel { width: 360px; max-width: calc(100vw - 48px); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); padding: 16px; display: flex; flex-direction: column; gap: 14px; animation: rise .25s ease-out both; }
.tabs { display: flex; gap: 4px; background: var(--surface); border-radius: 10px; padding: 4px; }
.tabs button { flex: 1; font: 600 14px var(--body); color: var(--muted); background: none; border: none; border-radius: 8px; min-height: 36px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--raised); color: var(--text); }
.corner .map-box { height: 300px; }
.about-group { display: flex; flex-direction: column; gap: 8px; }

.task-wrap { position: relative; padding-bottom: 34px; min-height: 300px; }
.task { position: relative; z-index: 3; }
.ghost-card { position: absolute; left: 0; right: 0; top: 0; bottom: 34px; border-radius: 24px; background: #1A1E17; border: 1px solid #3A4134; transition: transform .35s ease, opacity .35s ease; }
.ghost-card.g1 { z-index: 2; transform: translateY(17px) scale(.95); opacity: .85; }
.ghost-card.g2 { z-index: 1; transform: translateY(34px) scale(.9); opacity: .5; }
.task-wrap.advance .g1 { transform: none; opacity: 1; }
.task-wrap.advance .g2 { transform: translateY(17px) scale(.95); opacity: .85; }
.task.out-down { transform: translateY(70%) rotate(var(--tilt, 0deg)); opacity: 0; transition: transform .4s cubic-bezier(.5, 0, .75, 0), opacity .4s ease-in; }
.task.tint-like { border-color: var(--accent); }
.task.tint-no { border-color: #C0614F; }
.task.from-stack { animation: fromStack .3s ease-out both; }
@keyframes fromStack { from { transform: translateY(17px) scale(.95); } to { transform: none; } }

.bubble.no-anim { animation: none; }

body.voice-mode .minimap { display: none; }

/* 3 Mini map + What I know row */
.minimap { position: fixed; right: 24px; bottom: 92px; z-index: 18; width: 176px; height: 150px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: rgba(18, 20, 17, .94); backdrop-filter: blur(8px); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); cursor: pointer; overflow: hidden; transition: width .55s cubic-bezier(.22, 1, .36, 1), height .55s cubic-bezier(.22, 1, .36, 1), padding .55s cubic-bezier(.22, 1, .36, 1), border-color .3s, box-shadow .4s; }
.minimap.open { width: 380px; height: 440px; padding: 16px; cursor: default; border-color: var(--accent-line); }
.minimap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mm-head { display: flex; flex-direction: column; gap: 4px; }
.mm-title { display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--body); }
.mm-title .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.4s infinite; }
.mm-hint, .minimap .map-legend { max-height: 0; opacity: 0; overflow: hidden; transition: opacity .3s ease, max-height .45s cubic-bezier(.22, 1, .36, 1); }
.mm-hint { font-size: 13px; color: var(--muted); line-height: 1.4; }
.minimap.open .mm-hint, .minimap.open .map-legend { max-height: 60px; opacity: 1; transition-delay: .15s; }
.minimap.open { box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.minimap .map-box text { transition: opacity .35s ease .1s; }
.minimap .map-box { flex: 1; height: auto; min-height: 0; }
.minimap:not(.open) .map-box text { opacity: 0; }
.minimap:not(.open) .map-box { pointer-events: none; }
.know { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.know #facts { display: flex; flex-wrap: wrap; gap: 6px; }
.know .chip { font-size: 13px !important; padding: 4px 10px !important; }

/* 4 Polish: pill input, divider, receding chat, sub progress, wavy lines */
.own .field { border-radius: 999px; padding: 0 20px; }
.own .cta { border-radius: 999px; }
.know { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.msg-agent p, .msg-me { transition: font-size .35s ease, opacity .35s ease, padding .35s ease; }
.msg-agent.old p { font-size: 15px; font-weight: 500; color: var(--muted); padding-top: 8px; }
.msg-agent.old .avatar { width: 28px; height: 28px; opacity: .6; transition: all .35s ease; }
.msg-me.old { font-size: 13px; padding: 6px 12px; opacity: .65; }
.msg-agent.new p { animation: qIn .45s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes qIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.expect-note { margin-top: 0; }
.stepbar a { position: relative; overflow: hidden; }
.stepbar a .sub { font-weight: 500; opacity: .75; }
.stepbar a .fill { position: absolute; left: 0; bottom: 0; height: 3px; background: rgba(13, 15, 12, .45); transition: width .4s ease; }
.stepbar .wave { width: 56px; height: 10px; color: #343A30; flex: none; }
.stepbar .wave.lit { color: var(--accent); }
.map .wire { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }

/* 5 Pills everywhere, info dock, inline emoji rating */
.cta, .alt, .ghost, .more, .seg, .seg-group, .close, .icon-btn, .tabs, .tabs button, .rate button, .send, .add, .corner-pill { border-radius: 999px; }
.mode-opt { border-radius: 28px; }
.rate button { flex-direction: row; justify-content: center; gap: 10px; min-height: 56px; padding: 0 18px; }
.rate .emo { font-size: 22px; }
.info-dock { position: fixed; right: 24px; bottom: 92px; z-index: 18; width: 150px; height: 44px; overflow: hidden; background: rgba(18, 20, 17, .94); backdrop-filter: blur(8px); border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); cursor: pointer; transition: width .55s cubic-bezier(.22, 1, .36, 1), height .55s cubic-bezier(.22, 1, .36, 1), border-radius .55s cubic-bezier(.22, 1, .36, 1), border-color .3s; }
.info-dock.open { width: 300px; height: 232px; border-radius: 18px; border-color: var(--accent-line); cursor: default; }
.info-dock:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.id-mini { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 16px; font: 600 13px var(--body); color: var(--text-soft); white-space: nowrap; }
.id-mini svg { color: var(--accent); }
.id-body { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 14px; opacity: 0; transition: opacity .3s ease; }
.info-dock.open .id-body { opacity: 1; transition-delay: .15s; }
.node-label span { font-variant-numeric: tabular-nums; }
