:root { --accent: #4fd1ff; --bg: #05080f; --panel: rgba(8, 16, 28, 0.82); --text: #dbe9ff; --muted: #7f94b3; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#cam { position: fixed; right: 16px; bottom: 76px; width: 224px; height: 168px; object-fit: cover; border-radius: 12px; border: 1px solid rgba(79, 209, 255, 0.35); transform: scaleX(-1); opacity: 0.85; background: #000; }
#hands { position: fixed; right: 16px; bottom: 76px; width: 224px; height: 168px; pointer-events: none; transform: scaleX(-1); }
#hud { position: fixed; left: 16px; top: 16px; max-width: 360px; padding: 12px 14px; background: var(--panel); border: 1px solid rgba(79, 209, 255, 0.25); border-radius: 12px; backdrop-filter: blur(8px); }
#hud .row { display: flex; align-items: center; gap: 8px; }
#hud .dot { width: 10px; height: 10px; border-radius: 50%; background: #55607a; box-shadow: 0 0 8px transparent; }
#hud .dot.on { background: #5cff9d; box-shadow: 0 0 10px #5cff9d; }
#gesture { margin-top: 6px; font-size: 22px; font-weight: 700; letter-spacing: 0.02em; color: var(--accent); min-height: 30px; }
.hint, .small { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
#card { position: fixed; left: 16px; bottom: 76px; max-width: 420px; padding: 14px 16px; background: var(--panel); border: 1px solid rgba(79, 209, 255, 0.25); border-radius: 12px; backdrop-filter: blur(8px); }
#card .kicker { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
#card .title { font-size: 18px; font-weight: 700; margin: 4px 0; }
#card .body { color: var(--text); opacity: 0.9; }
#bar { position: fixed; left: 16px; bottom: 16px; display: flex; gap: 8px; }
button { background: rgba(79, 209, 255, 0.12); color: var(--text); border: 1px solid rgba(79, 209, 255, 0.4); border-radius: 999px; padding: 9px 16px; font: inherit; cursor: pointer; }
button:hover { background: rgba(79, 209, 255, 0.24); }
#panel { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 420px); padding: 18px; background: var(--panel); border: 1px solid rgba(79, 209, 255, 0.35); border-radius: 14px; backdrop-filter: blur(10px); display: grid; gap: 10px; }
#panel[hidden] { display: none; }
#panel label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
#panel input, #panel select { padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(79, 209, 255, 0.3); background: rgba(0, 0, 0, 0.35); color: var(--text); font: inherit; }
#panel .row { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 720px) { #cam, #hands { width: 140px; height: 105px; } #card { max-width: calc(100vw - 32px); } #hud { max-width: calc(100vw - 32px); } }
.tabs { display: flex; gap: 6px; margin-top: 8px; }
.tabs button { padding: 5px 12px; font-size: 13px; }
.tabs button.active { background: rgba(79, 209, 255, 0.35); border-color: var(--accent); }
#card .state { margin-top: 6px; color: #ffd166; font-weight: 700; }
.voice { margin-top: 8px; color: #ffd166; font-size: 14px; min-height: 18px; }
#list { position: fixed; inset: 16px 16px 76px 400px; overflow: auto; display: grid; gap: 10px; align-content: start; }
body[data-view="list"] #scene, body[data-view="list"] #card { display: none; }
body[data-view="core"] #card { left: 50%; transform: translateX(-50%); bottom: 90px; max-width: 560px; text-align: center; }
body[data-view="core"] .tabs, body[data-view="cards"] .voice { display: none; }
#list .item { padding: 12px 14px; background: var(--panel); border: 1px solid rgba(79, 209, 255, 0.2); border-radius: 10px; }
#list .item.active { border-color: var(--accent); background: rgba(20, 44, 80, 0.92); }
#list .k { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
#list .t { font-weight: 700; font-size: 17px; margin: 2px 0; }
#list .s { color: #ffd166; font-weight: 700; }
#list .b { color: var(--muted); }
@media (max-width: 900px) { #list { inset: 220px 16px 76px 16px; } }
#detail { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 720px); max-height: 80vh; overflow: auto; padding: 20px 22px; background: var(--panel); border: 1px solid rgba(79, 209, 255, 0.45); border-radius: 14px; backdrop-filter: blur(12px); z-index: 5; }
#detail[hidden] { display: none; }
#detail .kicker { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
#detail .title { font-size: 22px; font-weight: 700; margin: 6px 0 10px; }
#detail .text { white-space: pre-wrap; line-height: 1.5; }
#detail .sources { margin-top: 10px; color: var(--muted); font-size: 13px; }
#detail .sources a { color: var(--accent); }
#detail .row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
