:root{--bg:#f4f6f8;--surface:#fff;--surface-soft:#f8fafc;--border:#d8e0e8;--text:#101828;--muted:#667085;--blue:#2563eb;--blue-soft:#e9f1ff;--teal:#0f766e;--teal-soft:#def7ef;--amber:#b7791f;--amber-soft:#fff4d6;--red:#c24135;--red-soft:#fde8e5;--shadow:0 16px 44px #0f172a14}*{box-sizing:border-box}html,body{min-height:100%}body{background:var(--bg);color:var(--text);margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}.appShell{grid-template-columns:312px minmax(0,1fr);min-height:100vh;display:grid}.historyRail{border-right:1px solid var(--border);background:#fbfcfe;flex-direction:column;gap:18px;min-width:0;padding:22px;display:flex}.railHeader,.topBar,.panelHeader,.recorderActions,.processingRow,.errorBox,.alertRow{align-items:center;display:flex}.railHeader,.topBar,.panelHeader{justify-content:space-between;gap:14px}.eyebrow{color:var(--muted);letter-spacing:0;text-transform:uppercase;margin:0 0 4px;font-size:.74rem;font-weight:800}h1,h2,h3,p{margin-top:0}h1{margin-bottom:0;font-size:1.42rem;line-height:1.15}h2{margin-bottom:0;font-size:1.08rem;line-height:1.2}h3{margin-bottom:8px;font-size:.95rem;line-height:1.25}.iconButton,.ghostButton{border:1px solid var(--border);background:var(--surface);width:42px;height:42px;color:var(--text);border-radius:8px;justify-content:center;align-items:center;display:inline-flex}.iconButton svg,.ghostButton svg,.primaryButton svg,.secondaryButton svg,.recordButton svg,.stopButton svg{flex:none;width:18px;height:18px}.statsRow{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.statsRow div{border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:10px}.statsRow strong{font-size:1.15rem;display:block}.statsRow span{color:var(--muted);font-size:.76rem;font-weight:700;display:block}.historyList{flex-direction:column;gap:9px;min-height:0;display:flex;overflow:auto}.historyItem{border:1px solid var(--border);background:var(--surface);text-align:left;border-radius:8px;grid-template-columns:36px minmax(0,1fr);gap:10px;width:100%;min-height:70px;padding:10px;display:grid}.historyItem.active{background:var(--blue-soft);border-color:#8bb7ff}.historyItem strong,.historyItem small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.historyItem strong{font-size:.9rem}.historyItem small{color:var(--muted);margin-top:4px;font-size:.75rem}.historyIcon{background:var(--surface-soft);width:34px;height:34px;color:var(--muted);border-radius:8px;justify-content:center;align-items:center;display:inline-flex}.historyIcon svg{width:17px;height:17px}.historyIcon.completed{background:var(--teal-soft);color:var(--teal)}.historyIcon.failed{background:var(--red-soft);color:var(--red)}.historyIcon.processing{background:var(--amber-soft);color:var(--amber)}.workspace{min-width:0;padding:24px}.topBar{margin-bottom:16px}.titleBlock{flex:1;min-width:0}.titleInput{width:min(680px,100%);color:var(--text);background:0 0;border:0;border-bottom:1px solid #0000;padding:0 0 4px;font-size:1.65rem;font-weight:850;line-height:1.15}.titleInput:focus{border-bottom-color:var(--blue);outline:0}.topActions,.recorderActions{flex-wrap:wrap;gap:10px}.primaryButton,.secondaryButton,.recordButton,.stopButton{white-space:nowrap;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:0 14px;font-weight:800;display:inline-flex}.primaryButton{background:var(--blue);color:#fff}.secondaryButton{background:var(--surface);border-color:var(--border);color:var(--text)}.recordButton{background:var(--teal);color:#fff;min-width:142px}.stopButton{background:var(--red);color:#fff;min-width:142px}.commandGrid{grid-template-rows:minmax(330px,auto) minmax(310px,1fr);grid-template-columns:minmax(300px,.82fr) minmax(360px,1.18fr);gap:16px;display:grid}.panel{border:1px solid var(--border);background:var(--surface);min-width:0;box-shadow:var(--shadow);border-radius:8px;padding:18px}.transcriptPanel,.actionPanel{min-height:0}.statusPill,.priority{text-transform:capitalize;border-radius:999px;padding:5px 9px;font-size:.72rem;font-weight:850}.statusPill.idle,.statusPill.recorded{background:var(--surface-soft);color:var(--muted)}.statusPill.recording,.statusPill.failed{background:var(--red-soft);color:var(--red)}.statusPill.processing{background:var(--amber-soft);color:var(--amber)}.statusPill.completed{background:var(--teal-soft);color:var(--teal)}.timerFace{color:#fff;background:#111827;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:148px;margin:22px 0 18px;display:flex}.timerFace strong{font-variant-numeric:tabular-nums;font-size:clamp(2.2rem,7vw,4.8rem);line-height:.95}.timerFace span{color:#cbd5e1;font-size:.88rem;font-weight:700}.recordDot{background:#ef4444;border-radius:999px;width:18px;height:18px}.waveLine{grid-template-columns:repeat(7,1fr);align-items:center;gap:8px;height:54px;margin-bottom:18px;display:grid}.waveLine span{background:var(--blue);border-radius:999px;height:8px}.waveLine span:nth-child(2),.waveLine span:nth-child(6){background:var(--teal);height:22px}.waveLine span:nth-child(3),.waveLine span:nth-child(5){background:var(--amber);height:38px}.processingRow,.errorBox,.alertRow{border-radius:8px;gap:9px;margin-top:14px;padding:10px 12px;font-size:.88rem;font-weight:700}.processingRow{background:var(--amber-soft);color:#805a12}.errorBox,.alertRow{background:var(--red-soft);color:var(--red)}.processingRow svg,.errorBox svg,.alertRow svg{flex:none;width:18px;height:18px}.scrollArea{min-height:0;overflow:auto}.transcriptList{flex-direction:column;gap:10px;height:430px;margin-top:16px;padding-right:3px;display:flex}.transcriptLine{border-bottom:1px solid var(--border);grid-template-columns:96px minmax(0,1fr);gap:12px;padding-bottom:10px;display:grid}.transcriptLine strong,.transcriptLine small{display:block}.transcriptLine strong{font-size:.86rem}.transcriptLine small{color:var(--muted);margin-top:4px;font-size:.76rem}.transcriptLine p{color:#344054;margin-bottom:0;line-height:1.48}.summaryBlock{background:var(--surface-soft);border:1px solid var(--border);border-radius:8px;margin-top:18px;padding:14px}.summaryBlock p,.noteList p,.noteList li{color:#344054;line-height:1.5}.summaryBlock p,.noteList p{margin-bottom:0}.twoColumnNotes{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;display:grid}.noteList{border:1px solid var(--border);border-radius:8px;min-width:0;padding:14px}.noteList ul{margin:0;padding-left:18px}.noteList li+li{margin-top:8px}.actionList{flex-direction:column;gap:10px;height:398px;margin-top:16px;display:flex}.actionItem,.riskItem{border:1px solid var(--border);background:var(--surface-soft);border-radius:8px;padding:12px}.actionItem h3{margin-top:8px;margin-bottom:6px}.actionItem p,.actionItem small,.riskItem{color:#344054;line-height:1.42}.actionItem p{margin-bottom:8px;font-size:.88rem;font-weight:700}.actionItem small{display:block}.riskItem{background:var(--red-soft);align-items:flex-start;gap:9px;display:flex}.riskItem svg{width:17px;height:17px;color:var(--red);flex:none;margin-top:2px}.priorityHigh{background:var(--red-soft);color:var(--red)}.priorityMedium{background:var(--amber-soft);color:var(--amber)}.priorityLow{background:var(--teal-soft);color:var(--teal)}.emptyState{min-height:170px;color:var(--muted);text-align:center;border:1px dashed var(--border);border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:18px;display:flex}.emptyState svg{width:24px;height:24px}.mutedText{color:var(--muted);margin-bottom:0;font-size:.88rem;line-height:1.4}.spin{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width:1120px){.appShell{grid-template-columns:1fr}.historyRail{border-right:0;border-bottom:1px solid var(--border)}.historyList{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}}@media (max-width:860px){.workspace,.historyRail{padding:16px}.topBar{flex-direction:column;align-items:stretch}.topActions{width:100%}.topActions>button{flex:128px}.commandGrid,.twoColumnNotes{grid-template-columns:1fr}.transcriptList,.actionList{height:auto;max-height:420px}.titleInput{font-size:1.34rem}}@media (max-width:560px){.historyList,.statsRow{grid-template-columns:1fr}.transcriptLine{grid-template-columns:1fr;gap:5px}.recorderActions>button{flex:118px}.ghostButton{flex:0 0 42px}.panel{padding:14px}}
