:root {
  --bg: #eef3ef;
  --surface: #fbfcfa;
  --panel: #fff;
  --ink: #19302d;
  --muted: #71817d;
  --line: #dce5df;
  --jade: #176f64;
  --jade-dark: #0d524b;
  --mint: #e1f1eb;
  --lotus: #d86777;
  --gold: #d2a454;
  --shadow: 0 16px 38px rgba(34, 65, 58, .08);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: linear-gradient(180deg, #f9fbf8 0, var(--bg) 300px); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; border-radius: 7px; transition: .18s ease; }
button:hover { transform: translateY(-1px); }
h1, h2, p { margin: 0; }
h1 { font-size: 21px; }
h2 { margin-top: 3px; font-size: 17px; }
.eyebrow { color: var(--jade); font-size: 10px; font-weight: 900; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; padding: 11px 22px; border-bottom: 1px solid var(--line); background: rgba(251,252,250,.92); backdrop-filter: blur(16px); }
.brand, .top-actions, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 7px; color: #f5e4cd; background: var(--jade-dark); font-weight: 900; box-shadow: var(--shadow); }
.status, .subtle { color: var(--muted); font-size: 12px; font-weight: 750; }
.status { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.status.online { color: var(--jade); background: var(--mint); }
.primary { min-height: 38px; padding: 0 15px; color: white; background: var(--jade); font-weight: 850; }
.primary:hover { background: var(--jade-dark); }
.workspace { display: grid; grid-template-columns: minmax(280px, .95fr) minmax(390px, 1.4fr) minmax(260px, .9fr); gap: 14px; padding: 14px; max-width: 1660px; margin: auto; }
.left-column, .main-column, .right-column { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel, .stage { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); }
.panel { padding: 15px; }
.stage { position: relative; min-height: 318px; overflow: hidden; padding: 18px; color: #f5f3ed; background: linear-gradient(145deg, #173e3a, #1d6258 76%); }
.stage::after { content: ""; position: absolute; inset: auto 0 0; height: 85px; background: rgba(11,47,44,.44); border-top: 1px solid rgba(255,255,255,.08); }
.stage .eyebrow { color: #a5ddd1; }
.stage-copy { max-width: 68%; }
.stage-copy h2 { margin-top: 8px; font-size: 23px; }
.stage-copy p:last-child { margin-top: 8px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.6; }
.figurine { position: absolute; z-index: 2; right: 24px; bottom: 28px; width: 138px; height: 220px; }
.head { position: absolute; top: 14px; left: 18px; width: 103px; height: 93px; border-radius: 48% 48% 44% 44%; background: #f0d5be; box-shadow: inset 0 -8px rgba(168,103,90,.13); }
.hairpin { position: absolute; z-index: 3; top: 3px; right: 17px; width: 34px; height: 34px; border: 6px solid var(--lotus); border-radius: 50% 50% 48% 12%; transform: rotate(28deg); }
.eye { position: absolute; top: 42px; width: 10px; height: 6px; border-radius: 50%; background: #4a3632; }
.eye.left { left: 27px; } .eye.right { right: 27px; }
.mouth { position: absolute; left: 46px; top: 63px; width: 15px; height: 7px; border-bottom: 2px solid #a45e65; border-radius: 50%; }
.body { position: absolute; bottom: 0; left: 9px; width: 122px; height: 127px; border-radius: 47% 47% 22% 22%; background: #d7e6dc; box-shadow: inset -15px 0 rgba(23,111,100,.12); }
.lotus { position: absolute; left: 38px; top: 38px; width: 45px; height: 32px; border-radius: 50% 50% 40% 40%; background: var(--lotus); opacity: .8; }
.reflex { position: absolute; z-index: 3; left: 18px; bottom: 17px; display: flex; gap: 8px; align-items: center; font-size: 13px; }
.reflex span { width: 9px; height: 9px; border-radius: 50%; background: #a5ddd1; box-shadow: 0 0 0 4px rgba(165,221,209,.15); }
.reacting .reflex span { animation: pulse .65s ease; }
@keyframes pulse { 50% { transform: scale(1.5); background: #ffe4a5; } }
.section-heading { margin-bottom: 13px; }
.camera-frame { position: relative; min-height: 176px; overflow: hidden; border-radius: 7px; background: #dce8e2; }
video { width: 100%; height: 100%; min-height: 176px; object-fit: cover; display: block; }
.camera-hint { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; background: #edf4f0; }
.helper, .privacy-panel p { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.icon-text, .demo-strip button, .quick-prompts button { min-height: 32px; padding: 0 10px; color: var(--jade-dark); border: 1px solid var(--line); background: #f7faf8; font-size: 12px; font-weight: 800; }
.poi-list { display: grid; gap: 8px; min-height: 207px; }
.poi-item { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 8px; width: 100%; min-height: 46px; padding: 7px; color: var(--ink); text-align: left; border: 1px solid var(--line); background: #fbfcfb; }
.poi-item.selected { border-color: rgba(23,111,100,.55); background: var(--mint); }
.poi-index { color: var(--gold); font-size: 12px; font-weight: 900; }
.poi-copy { display: flex; flex-direction: column; gap: 2px; }
.poi-copy strong { font-size: 14px; }.poi-copy small { color: var(--muted); font-size: 11px; }
.confidence { color: var(--jade); font-size: 12px; font-weight: 900; }
.demo-strip { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; padding-top: 13px; margin-top: 12px; border-top: 1px solid var(--line); }
.demo-strip span { margin-right: 4px; color: var(--muted); font-size: 12px; font-weight: 800; }
.chat { display: flex; flex-direction: column; gap: 8px; min-height: 228px; max-height: 290px; overflow: auto; padding: 4px 2px 12px; }
.message { max-width: 86%; padding: 10px 12px; border-radius: 7px; font-size: 13px; line-height: 1.6; }
.message.companion { align-self: flex-start; color: #174841; background: var(--mint); }
.message.user { align-self: flex-end; color: white; background: var(--jade); }
.voice-console { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbf9; }
.talk-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 112px; color: white; background: var(--jade); }
.talk-button.active { background: #b65363; }
.talk-button.listening { background: var(--lotus); transform: scale(.98); }
.talk-button small { color: rgba(255,255,255,.76); font-size: 11px; }
.talk-icon { width: 24px; height: 32px; border: 3px solid white; border-radius: 14px; position: relative; }
.talk-icon::after { content: ""; position: absolute; left: 50%; bottom: -11px; width: 17px; height: 9px; border-bottom: 3px solid white; border-radius: 50%; transform: translateX(-50%); }
.voice-state { display: flex; flex-direction: column; justify-content: center; }
.voice-status { color: var(--jade); font-size: 15px; font-weight: 900; }
.voice-state p { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.voice-features { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.voice-features span { padding: 4px 6px; color: var(--jade-dark); border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 10px; font-weight: 850; }
.dev-tools { margin-top: 9px; padding-top: 7px; border-top: 1px dashed var(--line); }
.dev-tools summary { color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 800; }
.dev-composer { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-top: 8px; }
.dev-composer input { min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; outline-color: var(--jade); font-size: 12px; }
.dev-composer button { padding: 0 11px; color: var(--muted); background: #f7faf8; border: 1px solid var(--line); font-size: 12px; font-weight: 800; }
.quick-prompts { display: flex; gap: 7px; align-items: center; margin-top: 9px; }
.quick-prompts span { color: var(--muted); font-size: 11px; font-weight: 800; }
.timeline, .memory-list { display: grid; gap: 8px; }
.empty { color: var(--muted); font-size: 12px; line-height: 1.6; }
.timeline article { padding-left: 10px; border-left: 2px solid #b9dcd2; }
.timeline span, .timeline p, .memory-list small { display: block; color: var(--muted); font-size: 11px; }
.timeline strong { display: block; margin: 2px 0; font-size: 13px; }
.memory-list article { display: flex; align-items: center; justify-content: space-between; padding: 9px; border: 1px solid var(--line); border-radius: 7px; }
.memory-list strong { display: block; font-size: 12px; }
.memory-list span { color: var(--jade); font-size: 12px; font-weight: 900; }
.voice-packs { display: grid; gap: 7px; }
.voice-pack { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfb; }
.voice-pack.selected { border-color: rgba(23,111,100,.55); background: var(--mint); }
.voice-pack strong, .voice-pack small { display: block; }
.voice-pack strong { font-size: 13px; }
.voice-pack small, .voice-pack > span { color: var(--muted); font-size: 11px; }
.voice-actions { display: flex; gap: 6px; grid-column: 1 / -1; }
.voice-actions button { min-height: 28px; padding: 0 9px; color: var(--jade-dark); border: 1px solid var(--line); background: #fff; font-size: 11px; font-weight: 800; }
.voice-actions button:disabled { color: var(--muted); background: transparent; cursor: default; }
.privacy-panel label { display: flex; gap: 7px; align-items: center; margin-top: 12px; color: var(--ink); font-size: 13px; line-height: 1.4; }
@media (max-width: 1100px) { .workspace { grid-template-columns: 1fr 1.25fr; }.right-column { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px) { .topbar { align-items: flex-start; padding: 10px 12px; }.top-actions { align-items: flex-end; flex-direction: column; }.workspace { display: block; padding: 10px; }.left-column, .main-column, .right-column { display: flex; margin-bottom: 10px; }.stage { min-height: 286px; }.stage-copy { max-width: 62%; }.stage-copy h2 { font-size: 20px; }.quick-prompts { flex-wrap: wrap; }.voice-console { grid-template-columns: 122px 1fr; }.talk-button { min-height: 100px; } }
