*{box-sizing:border-box;margin:0;padding:0}:root{color:#182335;font-synthesis:none;text-rendering:optimizelegibility;background:#f4f7fb;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}html,body,#root{min-width:320px;min-height:100vh}body{margin:0}button{font-family:inherit}button:focus-visible{outline-offset:2px;outline:2px solid #1769e8}:root{--navy:#10243f;--navy-dark:#0c1c32;--blue:#1769e8;--blue-light:#eaf3ff;--green:#16a765;--purple:#6847df;--orange:#f59e0b;--red:#ef4444;--text:#182335;--muted:#778397;--border:#e3e9f1;--surface:#fff;--page:#f4f7fb;--shadow:0 4px 18px #1d355712}*{box-sizing:border-box}body{background:var(--page);color:var(--text)}button{font:inherit}.app-shell{background:var(--page);min-height:100vh;display:flex}.sidebar{color:#fff;background:linear-gradient(#102b4d 0%,#0c1f37 100%);flex-direction:column;flex:0 0 176px;width:176px;height:100vh;min-height:100vh;padding:20px 10px 14px;display:flex;position:sticky;top:0}.sidebar-brand{align-items:center;gap:9px;padding:0 9px 24px;display:flex}.brand-mark{color:#fff;place-items:center;width:37px;height:37px;display:grid}.sidebar-title{letter-spacing:.03em;font-size:15px;font-weight:800}.sidebar-subtitle{opacity:.68;margin-top:2px;font-size:9px}.sidebar-nav{flex-direction:column;gap:5px;display:flex}.nav-item{color:#ffffffb8;cursor:pointer;text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:11px;min-height:38px;padding:0 10px;font-size:11px;transition:all .18s;display:flex}.nav-item:hover{color:#fff;background:#ffffff14}.nav-item.active{color:#fff;background:#1769e8;box-shadow:0 5px 16px #1769e84d}.system-status{background:#ffffff0a;border:1px solid #ffffff1a;border-radius:9px;margin-top:auto;padding:12px 11px}.system-status-title{letter-spacing:.08em;opacity:.6;margin-bottom:9px;font-size:8px}.system-row{color:#ffffffbd;align-items:center;gap:7px;margin:7px 0;font-size:8.5px;display:flex}.system-dot,.streaming-dot{background:#20c477;border-radius:50%;flex:0 0 7px;width:7px;height:7px;display:inline-block;box-shadow:0 0 0 3px #20c4771a}.main-shell{flex:1;min-width:0}.topbar{border-bottom:1px solid var(--border);background:#fff;justify-content:space-between;align-items:center;gap:18px;min-height:67px;padding:10px 18px 10px 20px;display:flex}.topbar h1{margin:0;font-size:20px;line-height:1}.topbar p{color:var(--muted);margin-top:4px;font-size:10px}.topbar-controls{align-items:stretch;gap:8px;display:flex}.selector,.date-display,.top-icon-button{border:1px solid var(--border);background:#fff;border-radius:8px}.selector{min-width:126px;color:var(--text);align-items:center;gap:8px;padding:7px 9px;display:flex}.selector span,.date-display span{flex-direction:column;align-items:flex-start;line-height:1.2;display:flex}.selector strong,.date-display strong{font-size:9px}.selector small,.date-display small{color:var(--muted);margin-top:2px;font-size:8px}.selector svg:last-child{margin-left:auto}.date-display{color:#40506a;align-items:center;gap:8px;padding:7px 10px;display:flex}.top-icon-button{color:#65738a;place-items:center;width:38px;display:grid}.dashboard-content{max-width:1550px;margin:0 auto;padding:12px 14px 18px}.status-grid{grid-template-columns:repeat(4,1fr);gap:9px;display:grid}.status-card{background:var(--surface);border:1px solid var(--border);min-height:70px;box-shadow:var(--shadow);border-radius:9px;align-items:center;gap:10px;padding:11px;display:flex}.status-icon{border-radius:9px;flex:0 0 38px;place-items:center;width:38px;height:38px;display:grid}.status-icon.blue{color:var(--blue);background:var(--blue-light)}.status-icon.green{color:var(--green);background:#eafaf2}.status-content{flex-direction:column;min-width:0;display:flex}.status-content>span{color:var(--muted);margin-bottom:2px;font-size:8px}.status-content strong{white-space:nowrap;text-overflow:ellipsis;font-size:11px;overflow:hidden}.status-content small{color:var(--muted);margin-top:3px;font-size:7.5px}.actions-grid{grid-template-columns:repeat(4,1fr);gap:9px;margin:10px 0;display:grid}.action-card{color:#fff;cursor:pointer;text-align:left;border:0;border-radius:8px;align-items:center;gap:10px;min-height:52px;padding:9px 12px;transition:transform .15s,box-shadow .15s;display:flex;box-shadow:0 4px 12px #1d355714}.action-card:hover{transform:translateY(-1px);box-shadow:0 7px 16px #1d355721}.action-card span{flex-direction:column;display:flex}.action-card strong{font-size:10px}.action-card small{opacity:.82;margin-top:2px;font-size:7px}.action-card.green{background:#10aa62}.action-card.blue{background:#1769e8}.action-card.purple{background:#6745df}.action-card.white{color:#2d405d;background:#fff;border:1px solid #c9d9ef}.analysis-top-grid{grid-template-columns:1.35fr 1fr;gap:9px;display:grid}.panel{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:9px;min-width:0;padding:11px}.panel-header{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:6px;display:flex}.panel-header h2{margin:0;font-size:12px}.panel-header p{color:var(--muted);margin:3px 0 0;font-size:8px}.panel-header p .streaming-dot{vertical-align:middle;margin-right:5px}.chart-meta{color:var(--muted);padding-top:3px;font-size:7.5px}.chart-section-title{color:#4a5870;justify-content:space-between;align-items:center;margin:4px 0 1px;font-size:9px;font-weight:700;display:flex}.acceleration-title{margin-top:4px}.mini-legend{color:#6c7788;gap:9px;font-size:7px;font-weight:500;display:flex}.mini-legend span{align-items:center;gap:3px;display:flex}.mini-legend i{width:9px;height:2px;display:inline-block}.line-red{background:#ef4444}.line-blue{background:#3b82f6}.line-green{background:#22c55e}.sensor-live-chart{height:132px}.acceleration-chart{height:110px}.analysis-chart{height:272px}.recharts-wrapper{font-family:inherit}.recharts-cartesian-grid-horizontal line,.recharts-cartesian-grid-vertical line{stroke:#e7ecf3}.recharts-text{fill:#7d8999}.recharts-default-tooltip{box-shadow:0 5px 15px #192d4b1a;background:#fff!important;border:1px solid #dfe6ef!important;border-radius:7px!important}.chart-legend-label{color:#65748b;align-items:center;gap:5px;font-size:8px;display:flex}.legend-line{background:#4c8dff;width:14px;height:2px}.metrics-analysis{margin-top:9px}.gait-metrics-grid{grid-template-columns:repeat(7,1fr);gap:7px;display:grid}.gait-metric-card{border:1px solid var(--border);min-height:74px;box-shadow:var(--shadow);background:#fff;border-radius:8px;align-items:flex-start;gap:7px;padding:9px;display:flex}.metric-icon{border-radius:50%;flex:0 0 28px;place-items:center;width:28px;height:28px;display:grid}.metric-icon.red{color:#ef4444;background:#fff0f0}.metric-icon.green{color:#10a765;background:#eafaf2}.metric-icon.orange{color:#ed9208;background:#fff6e6}.metric-icon.purple{color:#6745df;background:#f1edff}.metric-icon.blue{color:#2874df;background:#edf4ff}.gait-metric-card>div:last-child{min-width:0}.gait-metric-card span{color:var(--muted);white-space:nowrap;font-size:7.5px;display:block}.gait-metric-card strong{white-space:nowrap;margin-top:3px;font-size:13px;line-height:1.15;display:block}.gait-metric-card small{color:var(--muted);white-space:nowrap;margin-top:4px;font-size:6.5px;display:block}.lower-analysis-grid{grid-template-columns:1fr 1fr 1fr;gap:9px;margin-top:9px;display:grid}.stride-chart{height:145px}.chart-footnote{color:var(--muted);justify-content:flex-end;align-items:center;gap:6px;margin-top:2px;font-size:7px;display:flex}.dot-valid,.dot-rejected{border-radius:50%;width:6px;height:6px;display:inline-block}.dot-valid{background:#4c8dff}.dot-rejected{background:#ef4444;border-radius:0;transform:rotate(45deg)}.trajectory-wrap{height:180px;padding-top:1px}.trajectory-wrap svg{width:100%;height:100%}.axis-line{stroke:#9aa7b7;stroke-width:1px}.grid-line{stroke:#e7ecf3;stroke-width:1px}.trajectory-line{stroke:#3b82f6;stroke-width:2.2px;fill:none}.trajectory-point{fill:#5b9cff}.axis-label{fill:#7b8797;font-size:8px}.legacy-summary{color:#fff;background:#10243f;border-radius:8px;grid-template-columns:repeat(4,1fr);margin-top:9px;display:grid;overflow:hidden}.legacy-summary>div{border-right:1px solid #ffffff14;padding:9px 13px}.legacy-summary>div:last-child{border-right:0}.legacy-summary span{color:#ffffff8c;letter-spacing:.08em;font-size:7px;display:block}.legacy-summary strong{margin-top:4px;font-size:12px;display:block}@media (width<=1150px){.sidebar{flex-basis:158px;width:158px}.gait-metrics-grid{grid-template-columns:repeat(4,1fr)}.analysis-top-grid{grid-template-columns:1fr}}@media (width<=850px){.sidebar{flex-basis:70px;width:70px;padding-left:8px;padding-right:8px}.sidebar-brand{justify-content:center;padding-left:0;padding-right:0}.sidebar-brand>div:last-child,.nav-item span,.system-status{display:none}.nav-item{justify-content:center;padding:0}.topbar{align-items:flex-start}.topbar-controls .selector span,.topbar-controls .date-display span{display:none}.status-grid,.actions-grid{grid-template-columns:repeat(2,1fr)}.lower-analysis-grid{grid-template-columns:1fr}}@media (width<=580px){.topbar{padding:10px}.topbar h1{font-size:17px}.topbar p{max-width:180px}.topbar-controls .date-display{display:none}.dashboard-content{padding:8px}.status-grid,.actions-grid{grid-template-columns:1fr}.gait-metrics-grid{grid-template-columns:repeat(2,1fr)}.legacy-summary{grid-template-columns:1fr 1fr}.legacy-summary>div:nth-child(2){border-right:0}.legacy-summary>div:nth-child(-n+2){border-bottom:1px solid #ffffff14}.chart-section-title{flex-direction:column;align-items:flex-start;gap:3px}.mini-legend{flex-wrap:wrap}}.subject-dropdown{position:relative}.subject-dropdown .selector{align-items:center;gap:12px;display:flex}.subject-dropdown .selector>span{flex-direction:column;flex:1;align-items:flex-start;display:flex}.subject-dropdown .selector small,.date-display small{display:block}.chevron-open{transform:rotate(180deg)}.subject-menu{z-index:1000;background:#fff;border:1px solid #e2e8f0;border-radius:12px;width:260px;padding:8px;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 12px 30px #0f172a24}.subject-menu-header{justify-content:space-between;align-items:center;gap:8px;padding:8px;font-size:13px;display:flex}.subject-menu-header button{color:#2563eb;cursor:pointer;background:0 0;border:0;font-size:12px}.subject-menu-item{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;width:100%;padding:10px 8px;display:flex}.subject-menu-item:hover,.subject-menu-item.selected{background:#eff6ff}.subject-check{border:1px solid #cbd5e1;border-radius:5px;flex-shrink:0;justify-content:center;align-items:center;width:18px;height:18px;display:flex}.subject-menu-item.selected .subject-check{color:#fff;background:#2563eb;border-color:#2563eb}.subject-menu-label{flex-direction:column;gap:3px;display:flex}.subject-menu-label strong{font-size:13px}.subject-menu-label small,.subject-empty{color:#64748b;font-size:11px}.subject-empty{padding:8px}
