:root { color-scheme: dark; font-family: "SFMono-Regular", Menlo, "Hiragino Kaku Gothic ProN", monospace; background: #000; color: #00ff66; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: #000; }
#matrix { position: fixed; inset: 0; width: 100%; height: 100%; opacity: .38; pointer-events: none; }
.scanlines { position: fixed; inset: 0; z-index: 5; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,.28) 3px 4px); mix-blend-mode: multiply; }
main { position: relative; z-index: 2; width: min(1100px, calc(100% - 32px)); margin: auto; padding: clamp(26px, 5vw, 64px) 0; }
header { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 22px 0 30px; border-top: 1px solid #00ff66; border-bottom: 1px solid #0b7e3b; }
.eyebrow { margin: 0; color: #00ff66; font-size: 10px; letter-spacing: .24em; text-shadow: 0 0 8px #00ff66; }
h1 { margin: 14px 0 8px; color: #baffd2; font-size: clamp(42px, 8vw, 86px); line-height: .9; letter-spacing: .04em; text-shadow: 0 0 7px #00ff66, 0 0 30px #00ff6655; }
h1 span { display: block; margin-top: 16px; color: #00c950; font-size: .19em; letter-spacing: .3em; }
.lead { color: #39bb6c; font-size: 11px; letter-spacing: .12em; }
.orb { position: relative; width: clamp(90px, 16vw, 164px); aspect-ratio: 1; flex: 0 0 auto; border: 1px solid #00ff66; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 12px, #00ff6618 13px 14px), radial-gradient(circle, #00ff66 0 2%, #003b18 16%, #000 67%); box-shadow: inset 0 0 30px #00ff6666, 0 0 45px #00ff6633; }
.orb::before, .orb::after { content: ""; position: absolute; inset: 13%; border: 1px dashed #00ff66; border-radius: 50%; animation: rotate 7s linear infinite; }
.orb::after { inset: 27%; animation-direction: reverse; animation-duration: 3.5s; }
.orb i { position: absolute; top: 50%; left: -12%; width: 124%; height: 1px; background: #00ff66; box-shadow: 0 0 12px #00ff66; animation: sweep 2.8s ease-in-out infinite; }
.orb.listening { animation: pulse .85s ease-in-out infinite; }
.orb.thinking { filter: hue-rotate(38deg); }
.orb.error { border-color: #ff3158; filter: hue-rotate(135deg); }
.control-deck { display: grid; grid-template-columns: 2fr 1fr; gap: 1px; margin: 24px 0 12px; background: #075b2c; border: 1px solid #087b39; }
.control-deck label { padding: 12px; background: #010805e8; }
label { color: #1fbf5d; font-size: 10px; letter-spacing: .12em; }
input, select { width: 100%; margin-top: 8px; padding: 12px 13px; border: 0; border-bottom: 1px solid #00b849; border-radius: 0; outline: 0; background: #001208; color: #7dffa9; font: inherit; }
input:focus, select:focus { background: #00200d; box-shadow: inset 0 -1px #00ff66; }
.conversation { border: 1px solid #00b849; background: rgba(0,8,3,.92); box-shadow: inset 0 0 50px #00311566, 0 0 30px #00ff6612; }
.status-line { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-bottom: 1px solid #075b2c; color: #39db79; font-size: 10px; letter-spacing: .12em; }
.status-line code { margin-left: auto; color: #1b8e49; }
#statusDot { width: 7px; height: 7px; border: 1px solid #29633f; border-radius: 50%; }
#statusDot.ready { background: #00ff66; box-shadow: 0 0 10px #00ff66; }
#statusDot.listening, #statusDot.thinking { background: #d1ff36; box-shadow: 0 0 10px #d1ff36; }
#statusDot.error { background: #ff3158; }
.wave-console { position: relative; height: 190px; border-bottom: 1px solid #075b2c; overflow: hidden; background: linear-gradient(90deg, #00130888, transparent 50%, #00130888); }
#waveform { width: 100%; height: 100%; display: block; }
.wave-label { position: absolute; inset: 12px 14px auto; display: flex; justify-content: space-between; color: #138b43; font-size: 9px; letter-spacing: .16em; }
.turn { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 24px 18px; border-bottom: 1px solid #06371d; }
.turn:last-child { border-bottom: 0; }
.turn b { color: #00ff66; font-size: 10px; letter-spacing: .2em; text-shadow: 0 0 8px #00ff66; }
.turn p { margin: 0; color: #93ffb7; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; font-size: clamp(16px, 2vw, 21px); line-height: 1.75; text-shadow: 0 0 10px #00ff6630; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
button { padding: 12px 18px; border: 1px solid #087b39; border-radius: 0; background: #000; color: #37d875; font: inherit; font-size: 11px; letter-spacing: .08em; cursor: pointer; }
button::before { content: "[ "; } button::after { content: " ]"; }
button.primary { background: #00e65c; border-color: #00ff66; color: #001f0c; font-weight: 700; box-shadow: 0 0 18px #00ff6644; }
button:disabled { opacity: .35; cursor: not-allowed; }
.toggle { display: flex; align-items: center; gap: 8px; padding: 8px; }
.toggle input { width: auto; margin: 0; accent-color: #00ff66; }
.voice-profile { padding: 8px 12px; color: #15763c; font-size: 9px; letter-spacing: .12em; }
details { margin-top: 24px; border: 1px solid #064825; padding: 14px; background: #000b05cc; color: #218c4a; font-size: 11px; }
summary { cursor: pointer; letter-spacing: .14em; }
.history p { color: #6ad990; line-height: 1.65; }
.history b { color: #00ff66; }
footer { display: flex; gap: 16px; margin-top: 28px; color: #176d38; font-size: 9px; letter-spacing: .08em; }
footer span { color: #00bf4c; }
.visual-panel { margin-top: 20px; border: 1px solid #00b849; background: rgba(0,8,3,.94); box-shadow: inset 0 0 55px #00311555; }
.visual-heading { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 16px 18px; border-bottom: 1px solid #075b2c; }
.visual-heading span { color: #198f47; font-size: 9px; letter-spacing: .2em; }
.visual-heading h2 { margin: 6px 0 0; color: #8fffb4; font-family: "Hiragino Kaku Gothic ProN", sans-serif; font-size: clamp(18px, 3vw, 26px); font-weight: 500; }
.visual-tools { display: flex; gap: 6px; }
.visual-tools button { padding: 8px 10px; font-size: 9px; }
#visualSummary { margin: 0; padding: 13px 18px; border-bottom: 1px solid #06371d; color: #40b66d; font-family: "Hiragino Kaku Gothic ProN", sans-serif; font-size: 13px; line-height: 1.6; }
.visual-stage { min-height: 320px; padding: 12px; overflow-x: auto; }
.visual-empty { display: grid; min-height: 290px; place-items: center; color: #0b562d; letter-spacing: .2em; }
.hayate-diagram { display: block; width: 100%; min-width: 650px; max-height: 520px; }
.node-ring { fill: #001408; stroke: #00ff66; stroke-width: 1.5; filter: drop-shadow(0 0 5px #00ff66); }
.node-core { fill: #002a12; stroke: #087b39; }
.node-label { fill: #b0ffc9; font: 13px "Hiragino Kaku Gothic ProN", sans-serif; }
.node-group, .edge-label, .axis-label, .milestone-meta { fill: #39a762; font: 9px monospace; }
.edge-label { paint-order: stroke; stroke: #000; stroke-width: 4px; }
.risk-point { fill: #001408; stroke: #a7ffbe; stroke-width: 2; filter: drop-shadow(0 0 5px #00ff66); }
.risk-number { fill: #a7ffbe; font: 11px monospace; }
.risk-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; padding: 0 22px 18px 42px; }
.risk-list li { color: #5ee88e; font: 12px "Hiragino Kaku Gothic ProN", sans-serif; }
.risk-list span { display: block; margin-top: 3px; color: #288c50; }
.timeline-axis, .milestone-line { stroke: #0fa74c; stroke-width: 2; }
.milestone-dot { fill: #00ff66; filter: drop-shadow(0 0 7px #00ff66); }
.milestone-title { fill: #a6ffc3; font: 12px "Hiragino Kaku Gothic ProN", sans-serif; }
@keyframes pulse { 50% { transform: scale(1.055); box-shadow: inset 0 0 45px #00ff6699, 0 0 70px #00ff6677; } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes sweep { 0%,100% { transform: translateY(-45px) rotate(-8deg); opacity: .2; } 50% { transform: translateY(45px) rotate(8deg); opacity: 1; } }
@media (max-width: 640px) { .control-deck { grid-template-columns: 1fr; } .turn { grid-template-columns: 1fr; gap: 8px; } .wave-console { height: 140px; } header { align-items: flex-start; } }
