:root {
  color-scheme: dark;
  --ink: #091016;
  --panel: rgba(15, 26, 34, .88);
  --panel-strong: #111e27;
  --line: rgba(151, 178, 193, .19);
  --muted: #8ea2ad;
  --text: #eef4f4;
  --accent: #ff9c2a;
  --accent-soft: rgba(255, 156, 42, .14);
  --signal: #8fd3b5;
  --danger: #ff756f;
  font-family: "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; min-width: 320px; color: var(--text); background: radial-gradient(circle at 84% 8%, rgba(28, 78, 91, .27), transparent 31rem), linear-gradient(145deg, #0b141a, #081017 58%, #0d171c); min-height: 100vh; }
button, input, select { font: inherit; }
button { color: inherit; }
.road-grid { position: fixed; inset: 0; pointer-events: none; opacity: .34; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 68px 68px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.topbar, main, footer { position: relative; z-index: 1; }
.topbar { height: 82px; padding: 0 clamp(24px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand b { display: block; font-size: 17px; letter-spacing: .08em; }
.brand small, .service-state small { display: block; margin-top: 4px; color: var(--muted); font: 600 9px/1 "Bahnschrift", monospace; letter-spacing: .19em; }
.brand-mark { width: 34px; height: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; transform: skew(-9deg); }
.brand-mark i { background: var(--accent); border-radius: 1px; }
.brand-mark i:nth-child(2) { opacity: .58; }.brand-mark i:nth-child(3) { opacity: .23; }
.service-state { display: flex; align-items: center; gap: 10px; text-align: right; }
.service-state b { font-size: 12px; font-weight: 600; }
.state-light { width: 9px; height: 9px; border-radius: 50%; background: #7f8a90; box-shadow: 0 0 0 5px rgba(127,138,144,.1); }
.is-online .state-light { background: var(--signal); box-shadow: 0 0 15px var(--signal); }
.is-offline .state-light { background: var(--danger); }
main { width: min(1460px, calc(100% - 48px)); margin: 0 auto; }
.hero { min-height: 310px; display: grid; grid-template-columns: 1.4fr .6fr; align-items: end; gap: 80px; padding: 62px 0 46px; }
.eyebrow, .panel-index, .result-kicker { color: var(--accent); font: 700 10px/1.3 "Bahnschrift", monospace; letter-spacing: .22em; }
h1 { margin: 13px 0 0; font-size: clamp(42px, 6vw, 84px); line-height: .98; letter-spacing: -.055em; font-weight: 650; }
h1 em { color: var(--muted); font-style: normal; font-weight: 430; }
.hero-note { max-width: 440px; justify-self: end; margin: 0; padding: 24px 0 4px 28px; color: #afbdc4; border-left: 1px solid var(--accent); font-size: 14px; line-height: 1.9; }
.workspace { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); border: 1px solid var(--line); background: rgba(4, 11, 15, .34); box-shadow: 0 32px 90px rgba(0,0,0,.24); }
.panel { min-height: 720px; padding: clamp(24px, 3.2vw, 48px); position: relative; }
.input-panel { border-right: 1px solid var(--line); }
.panel-index { position: absolute; top: 18px; right: 22px; color: #536a76; }
.panel-heading { display: flex; justify-content: space-between; align-items: end; margin: 12px 0 28px; }
.panel-heading p { margin: 0 0 5px; color: var(--muted); font-size: 11px; letter-spacing: .14em; }
.panel-heading h2 { margin: 0; font-size: 25px; font-weight: 600; }
.text-button { border: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; padding: 7px; }
.text-button:hover { color: var(--text); }
.drop-zone { width: 100%; height: 278px; padding: 0; overflow: hidden; position: relative; border: 1px dashed #3e5663; background: linear-gradient(145deg, rgba(20, 34, 43, .65), rgba(7, 14, 18, .75)); cursor: pointer; transition: border .2s, transform .2s, background .2s; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.preview-shell { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.preview-shell strong { margin-top: 10px; font-size: 16px; }.preview-shell small { color: var(--muted); font-size: 11px; }
.upload-glyph { width: 52px; height: 52px; border: 1px solid #547080; border-radius: 50%; display: grid; place-items: center; }
.upload-glyph::before { content: ''; width: 1px; height: 20px; background: var(--accent); }
.upload-glyph i::before, .upload-glyph i::after { content: ''; position: absolute; width: 8px; height: 1px; background: var(--accent); top: 20px; }
.upload-glyph i::before { transform: rotate(45deg); margin-left: -7px; }.upload-glyph i::after { transform: rotate(-45deg); margin-left: -1px; }
.drop-zone img { width: 100%; height: 100%; object-fit: contain; background: #05090c; }
.image-meta { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 7px 10px; background: rgba(6,12,16,.82); color: #d3dde1; font: 600 10px "Bahnschrift", monospace; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.field { display: flex; flex-direction: column; gap: 8px; }.event-field { margin-top: 22px; }
.field > span { color: #a9bac2; font-size: 11px; letter-spacing: .06em; }.field > span b { float: right; color: var(--accent); font: 700 8px "Bahnschrift", monospace; }
input, select { width: 100%; min-height: 48px; border: 1px solid #314550; border-radius: 0; outline: 0; padding: 0 13px; color: var(--text); background: #0d181f; transition: border .2s, box-shadow .2s; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.event-field select { min-height: 56px; font-size: 16px; }
.advanced { margin: 18px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.advanced summary { padding: 15px 2px; display: flex; justify-content: space-between; cursor: pointer; list-style: none; font-size: 12px; }.advanced summary small { color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 4px 0 18px; }.field-wide { grid-column: 1 / -1; }
.form-error, .audio-error { margin: 14px 0; padding: 11px 13px; color: #ffd5d2; background: rgba(255,117,111,.1); border-left: 2px solid var(--danger); font-size: 12px; line-height: 1.6; }
.primary-button { width: 100%; min-height: 70px; border: 0; padding: 0 22px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr 1fr; align-items: end; text-align: left; color: #16120b; background: var(--accent); cursor: pointer; transition: filter .2s, transform .2s; }
.primary-button span { font-size: 16px; font-weight: 800; }.primary-button small { grid-column: 1; align-self: start; font: 700 9px "Bahnschrift", monospace; opacity: .65; letter-spacing: .12em; }.primary-button i { grid-column: 2; grid-row: 1 / 3; align-self: center; font: 30px serif; }
.primary-button:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-2px); }.primary-button:disabled { opacity: .48; cursor: wait; }
.result-panel { display: flex; flex-direction: column; background: linear-gradient(150deg, rgba(16,30,38,.45), rgba(6,14,18,.32)); }
.empty-result, .running-result { margin: auto; max-width: 360px; text-align: center; }.empty-result p, .running-result h2 { margin: 25px 0 8px; font-size: 20px; }.empty-result small, .running-result p { color: var(--muted); line-height: 1.7; font-size: 12px; }
.scan-frame { display: block; width: 118px; height: 82px; margin: auto; border: 1px solid #314954; position: relative; }
.scan-frame::before, .scan-frame::after { content: ''; position: absolute; inset: -7px; border: solid var(--accent); border-width: 1px 0; opacity: .65; }.scan-frame i { position: absolute; left: 8px; right: 8px; top: 50%; height: 1px; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.radar { width: 94px; height: 94px; margin: auto; border-radius: 50%; border: 1px solid #36505d; position: relative; background: repeating-radial-gradient(circle, transparent 0 15px, rgba(118,160,178,.13) 16px); overflow: hidden; }
.radar::after { content: ''; position: absolute; inset: 50% 0 0 50%; transform-origin: 0 0; background: conic-gradient(from 270deg, rgba(255,156,42,.46), transparent 33%); animation: sweep 1.7s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.pipeline { display: flex; gap: 0; margin: 30px 0 0; padding: 0; list-style: none; }.pipeline li { flex: 1; min-width: 105px; color: #60737d; font-size: 10px; }.pipeline i { width: 9px; height: 9px; margin: 0 auto 9px; display: block; border-radius: 50%; background: #334650; }.pipeline .is-active { color: var(--text); }.pipeline .is-active i { background: var(--accent); box-shadow: 0 0 12px var(--accent); }.pipeline .is-done { color: var(--signal); }.pipeline .is-done i { background: var(--signal); }
.completed-result { padding-top: 20px; }.result-topline { display: flex; align-items: center; justify-content: space-between; }
.verdict { padding: 8px 12px; color: var(--signal); border: 1px solid currentColor; font-size: 11px; font-weight: 700; letter-spacing: .08em; }.status-not_established { color: #9bb1bd; }.status-unable_to_determine { color: var(--accent); }
.result-kicker { margin: 38px 0 8px; }.completed-result h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; }
.description { margin: 20px 0 26px; color: #d4dee2; font-size: 15px; line-height: 1.9; }
.result-section { padding: 19px 0; border-top: 1px solid var(--line); }.result-section h3 { margin: 0 0 12px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.evidence-list { margin: 0; padding: 0; list-style: none; }.evidence-list li { position: relative; padding: 5px 0 5px 18px; color: #b8c8cf; font-size: 12px; line-height: 1.65; }.evidence-list li::before { content: ''; position: absolute; left: 1px; top: 12px; width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); }
.lane-list { display: flex; flex-wrap: wrap; gap: 8px; }.lane-list span { padding: 6px 10px; background: #172831; color: #c8d7dc; border: 1px solid #2e4652; font-size: 11px; }
.timings { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin: 18px 0 12px; }.timings span { padding: 12px; border-right: 1px solid var(--line); }.timings span:last-child { border: 0; }.timings small { display: block; color: var(--muted); font: 700 8px "Bahnschrift", monospace; letter-spacing: .13em; }.timings b { display: block; margin-top: 4px; font: 600 14px "Bahnschrift", monospace; }
.request-id { color: #5f7580; font: 700 8px "Bahnschrift", monospace; letter-spacing: .12em; }.request-id button { max-width: 70%; border: 0; background: transparent; color: #758c97; font: inherit; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; vertical-align: middle; }
.result-actions { display: grid; grid-template-columns: 1fr; margin-top: 20px; }.secondary-button { min-height: 56px; border: 1px solid #3a515d; background: #101e26; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }.secondary-button:hover:not(:disabled) { border-color: var(--accent); }.secondary-button:disabled { cursor: wait; opacity: .55; }.secondary-button.accent { background: var(--accent-soft); border-color: rgba(255,156,42,.45); }.secondary-button b { font-size: 12px; }
.mic-icon { width: 9px; height: 14px; border: 2px solid var(--accent); border-radius: 8px; }
.voice-panel { margin-top: 16px; border: 1px solid #344b57; background: #071016; box-shadow: 0 24px 58px rgba(0,0,0,.35); }
.voice-panel-header { min-height: 66px; padding: 0 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(255,156,42,.1), rgba(11,23,29,.94) 34%); }
.voice-panel-header small { color: var(--accent); font: 700 8px "Bahnschrift", monospace; letter-spacing: .18em; }
.voice-panel-header h3 { margin: 4px 0 0; font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.voice-panel-header button { border: 1px solid #3b515d; padding: 7px 12px; color: var(--muted); background: rgba(8,17,22,.72); cursor: pointer; font-size: 11px; }
.voice-panel-header button:hover { color: var(--text); border-color: var(--accent); }
.voice-panel-signal { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,156,42,.48); border-radius: 50%; }
.voice-panel-signal i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: voice-pulse 1.35s ease-in-out infinite; }
.voice-terminal { height: 690px; position: relative; overflow: hidden; background: #091116; }
.voice-terminal iframe { width: 100%; height: 100%; display: block; border: 0; background: #091116; }
.voice-loading { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 14px; color: #9fb0b9; background: #091116; font-size: 11px; letter-spacing: .08em; }
.voice-loading i { width: 28px; height: 28px; border: 2px solid #334955; border-top-color: var(--accent); border-radius: 50%; animation: voice-spin .8s linear infinite; }
@keyframes voice-spin { to { transform: rotate(360deg); } }
@keyframes voice-pulse { 50% { transform: scale(.72); opacity: .48; } }
.capability-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0 70px; border: 1px solid var(--line); }.capability-strip span { padding: 18px; color: #8499a4; border-right: 1px solid var(--line); font-size: 11px; }.capability-strip span:last-child { border: 0; }.capability-strip b { color: var(--accent); margin-right: 12px; font: 700 10px "Bahnschrift", monospace; }
footer { padding: 28px clamp(24px, 5vw, 80px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #607680; font-size: 10px; letter-spacing: .12em; } footer p { margin: 0; letter-spacing: 0; }
[hidden] { display: none !important; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 26px; min-height: 0; }.hero-note { justify-self: start; }.workspace { grid-template-columns: 1fr; }.input-panel { border-right: 0; border-bottom: 1px solid var(--line); }.panel { min-height: 620px; }.capability-strip { grid-template-columns: 1fr 1fr; }.capability-strip span:nth-child(2) { border-right: 0; }.capability-strip span { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { main { width: min(100% - 24px, 1460px); }.topbar { height: 70px; padding: 0 15px; }.service-state small, .brand small { display: none; }.hero { padding: 45px 4px 32px; }.hero-note { padding-left: 16px; }.panel { padding: 24px 18px; }.drop-zone { height: 220px; }.field-grid, .result-actions { grid-template-columns: 1fr; }.field-wide { grid-column: auto; }.voice-panel { margin-left: -10px; margin-right: -10px; }.voice-panel-header { padding: 0 12px; }.voice-terminal { height: 620px; }.capability-strip { grid-template-columns: 1fr; }.capability-strip span { border-right: 0; } footer { display: block; padding: 22px 16px; } footer p { margin-top: 8px; line-height: 1.6; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
