:root{--ink:#203247;--navy:#183a63;--teal:#18796d;--bluewash:#e9f0f7;--line:#d9e2ec;--paper:#fff;--ground:#f4f7fa;--muted:#627389;--danger:#b44848;--amber:#9d6515}
*{box-sizing:border-box}body{margin:0;background:var(--ground);color:var(--ink);font:15px/1.6 "Noto Sans CJK SC","Noto Sans SC","Microsoft YaHei",sans-serif;-webkit-tap-highlight-color:transparent}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #6badd5;outline-offset:3px}button{color:inherit}h1,h2,p{margin:0}h1{font-size:27px;line-height:1.4;letter-spacing:-.5px}h2{font-size:18px;line-height:1.5}p{color:var(--muted)}svg{width:22px;height:22px;display:block;flex-shrink:0}.hidden{display:none!important}.workspace{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.rail{position:sticky;top:0;height:100vh;background:var(--navy);color:white;padding:28px 20px;display:flex;flex-direction:column;gap:24px}.brand{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:700;line-height:1.3}.brand small{display:block;font-size:12px;font-weight:400;opacity:.7;margin-top:5px}.brand-mark{width:38px;height:38px;display:grid;place-items:center;background:#e6f2f0;color:var(--navy);border-radius:11px 11px 3px 11px;font-size:23px;font-weight:800}.rail>.button{background:#2c527e;border-color:#52729a;color:#fff}.rail-title{font-size:12px;opacity:.6;font-weight:500;margin-bottom:-12px}.rail .case-button{display:block;width:100%;border:0;border-left:3px solid transparent;background:transparent;color:#ccdaeb;padding:12px 10px;text-align:left;border-radius:0 5px 5px 0;margin-bottom:5px}.rail .case-button.selected{border-left-color:#9bdac6;background:#294d76;color:white}.rail-foot{margin-top:auto;font-size:12px;line-height:1.9;color:#bbcbdf}.app-header{height:74px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 34px}.desktop-title{font-weight:600;color:var(--navy)}.mobile-brand{display:none}.header-actions{display:flex;align-items:center;gap:12px}.connection{display:flex;align-items:center;gap:8px;border:0;background:#f1f5f8;border-radius:18px;padding:7px 12px;font-size:12px}.status-dot{width:7px;height:7px;border-radius:50%;background:var(--amber)}.connection.connected .status-dot{background:var(--teal)}.icon-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:50%;height:42px;width:42px;padding:0;background:var(--paper)}.content{max-width:1180px;margin:auto;padding:28px 34px 20px}.case-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px}.test-label{font-size:11px;color:var(--teal);display:inline-block;margin-bottom:6px;font-weight:600}.case-heading p{font-size:13px;margin-top:8px}.case-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.button{min-height:44px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:9px 18px;font-size:14px;font-weight:600;display:inline-flex;gap:8px;align-items:center;justify-content:center}.button.primary{background:var(--navy);color:white;border-color:var(--navy)}.button.subtle{background:transparent}.button.small{min-height:34px;padding:5px 10px;font-size:12px}.button.danger{background:var(--danger);border-color:var(--danger);color:white}.full-width{width:100%}.text-button{border:0;background:none;color:var(--teal);font-size:13px;padding:8px 2px}.steps{display:flex;gap:32px;border-bottom:1px solid var(--line);margin-bottom:18px}.steps button{display:flex;align-items:center;gap:8px;min-height:54px;border:0;border-bottom:3px solid transparent;background:none;color:var(--muted);font-size:14px;padding:5px 0 12px}.steps button>span{height:23px;width:23px;border:1px solid #bdcad8;border-radius:50%;display:grid;place-items:center;font-size:11px;line-height:1}.steps button.active{border-bottom-color:var(--navy);color:var(--navy);font-weight:700}.steps button.active>span{background:var(--navy);border-color:var(--navy);color:white}.steps i{font-style:normal;font-size:11px;color:var(--muted);background:#e9edf2;border-radius:10px;padding:0 7px}
.job-bar{background:#eaf2f3;border-left:3px solid var(--teal);padding:13px 15px;display:flex;gap:12px;align-items:center;margin-bottom:22px;min-height:74px}.job-copy{min-width:0;flex:1}.job-copy strong{display:block;font-size:13px}.job-copy>span{display:block;font-size:12px;color:#55716e;margin-top:2px}.job-indicator{width:9px;height:9px;background:var(--teal);border-radius:50%;flex-shrink:0}.job-bar.busy .job-indicator{width:16px;height:16px;background:transparent;border:2px solid #adcfca;border-top-color:var(--teal);animation:spin .9s linear infinite}.job-bar.failed{background:#fff0ef;border-left-color:var(--danger)}.job-bar.failed .job-indicator{background:var(--danger)}.job-bar.waiting{background:#f5f1e8;border-left-color:var(--amber)}.job-bar.waiting .job-indicator{background:var(--amber)}progress{display:block;width:100%;height:4px;border:0;accent-color:var(--teal);margin-top:8px}
.capture-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:26px}.input-pane{background:var(--paper);border:1px solid var(--line);border-radius:12px;overflow:hidden;align-self:start}.input-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:0;background:#f7f9fb;border-bottom:1px solid var(--line);padding:6px}.input-tabs button{border:0;min-height:44px;background:transparent;border-radius:6px;font-size:13px;color:var(--muted);white-space:nowrap}.input-tabs button.selected{background:white;color:var(--navy);box-shadow:0 1px 4px #15385b15;font-weight:700}.input-body{padding:27px}.section-heading{margin-bottom:22px}.section-heading p{font-size:13px;margin-top:6px}.recorder{padding:25px 10px 35px;display:flex;align-items:center;flex-direction:column;gap:8px}.recorder>strong{font-size:44px;letter-spacing:2px;font-weight:500;font-variant-numeric:tabular-nums;color:var(--navy);line-height:1.4}.recorder>span{font-size:13px;color:var(--muted)}.sound-bars{display:flex;align-items:center;justify-content:center;gap:5px;height:56px;margin-bottom:18px}.sound-bars i{width:4px;height:12px;border-radius:4px;background:#b4c8dc}.sound-bars i:nth-child(3n){height:30px}.sound-bars i:nth-child(4n){height:42px}.sound-bars i:nth-child(5n){height:22px}.sound-bars.recording i{background:var(--teal);animation:wave .7s ease-in-out infinite alternate}.sound-bars.recording i:nth-child(2n){animation-delay:-.4s}.sound-bars.recording i:nth-child(3n){animation-delay:-.2s}.sound-bars.paused i{background:var(--amber)}.record-controls{display:flex;justify-content:center;gap:10px}.record-button{min-width:174px}.caption{font-size:12px;line-height:1.7;color:var(--muted);margin-top:17px}.recorder+.record-controls+.caption{text-align:center}label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin:14px 0 7px}input,textarea{width:100%;border:1px solid var(--line);border-radius:8px;padding:12px;color:var(--ink);background:white;line-height:1.7}textarea{resize:vertical;font-size:15px;min-height:130px}input::placeholder,textarea::placeholder{color:#92a0b0}.choice-button{display:flex;align-items:center;justify-content:space-between;width:100%;background:white;border:1px solid var(--line);border-radius:8px;min-height:48px;padding:10px 13px;font-size:14px}.chevron{width:8px;height:8px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);margin-right:4px;margin-top:-4px}#saveText{margin-top:18px}.file-drop{border:1.5px dashed #b5c7d8;background:#f8fafc;padding:32px 15px;display:flex;align-items:center;flex-direction:column;text-align:center;gap:12px;border-radius:10px}.file-drop>span svg{width:42px;height:42px;color:#4d769f}.file-drop strong{font-size:15px}.file-drop p{font-size:12px}.file-drop.dragging{background:var(--bluewash);border-color:var(--navy)}.scan-launch{width:100%;border:1px solid #c8dbd8;background:#edf6f3;border-radius:10px;padding:22px 12px;display:flex;flex-direction:column;align-items:center;gap:9px;margin-top:20px;color:var(--teal)}.scan-launch svg{width:38px;height:38px}.scan-launch strong{font-size:18px}.scan-launch>span:last-child{font-size:12px}.scan-status{margin:10px 0 3px}.manual-camera{margin-top:12px}.camera-frame{position:relative;background:#122333;border-radius:10px;aspect-ratio:3/4;overflow:hidden;display:grid;place-items:center;max-height:540px}.camera-frame video{width:100%;height:100%;object-fit:contain;visibility:hidden}.camera-frame.live video{visibility:visible}.camera-frame p{position:absolute;font-size:13px;color:#c3cbd4}.camera-frame.live p{display:none}.camera-guide{position:absolute;inset:10% 8%;border:1px dashed #d4f0e4aa;border-radius:5px;pointer-events:none}.camera-facing{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);background:#07152299;color:white;font-size:11px;white-space:nowrap;padding:4px 11px;border-radius:15px}.camera-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:17px 0}.camera-controls>.button{font-size:12px;padding:8px 10px}.shutter{width:62px;height:62px;background:white;border:2px solid var(--navy);border-radius:50%;display:grid;place-items:center}.shutter span{width:48px;height:48px;border-radius:50%;background:var(--navy)}.flip-button{width:44px;height:44px}.pages-heading{display:flex;justify-content:space-between;align-items:center;margin:16px 0 8px;font-size:13px}.pages-heading span{font-weight:400;color:var(--muted);margin-left:5px}.page-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:15px}.page-tile{overflow:hidden;border:1px solid var(--line);border-radius:6px;background:#f5f7fa}.page-tile img{width:100%;aspect-ratio:3/4;object-fit:cover;display:block}.page-tile footer{display:flex;justify-content:space-between;align-items:center;font-size:11px;padding:4px 6px}.page-tile button{border:0;background:none;color:var(--danger);padding:5px}.empty{font-size:13px;color:var(--muted);padding:20px 0;line-height:1.9}.page-grid>.empty{grid-column:1/-1;padding:6px 0}.pane-title{display:flex;align-items:center;justify-content:space-between;margin:2px 0 16px}.pane-title h2{font-size:15px}.pane-title>span{font-size:11px;color:var(--muted)}.source-item{border-bottom:1px solid var(--line);padding:15px 0}.source-item:first-child{padding-top:0}.source-top{display:flex;gap:10px;align-items:flex-start}.source-symbol{height:34px;width:34px;background:var(--bluewash);color:var(--navy);border-radius:7px;display:grid;place-items:center;flex-shrink:0}.source-symbol svg{height:18px;width:18px}.source-title{font-size:13px;font-weight:600;overflow-wrap:anywhere}.source-time{font-size:11px;color:var(--muted);margin-top:3px}.source-status{display:inline-block;font-size:10px;background:#e8f1ed;color:var(--teal);border-radius:3px;padding:1px 5px;margin-left:4px;font-weight:400}.source-status.pending{background:#e9edf3;color:var(--muted)}.source-status.failed{background:#faede8;color:#9a573b}.source-excerpt{font-size:12px;color:var(--muted);margin:9px 0;white-space:pre-wrap;overflow-wrap:anywhere}.source-actions{display:flex;gap:14px;flex-wrap:wrap}.source-actions button{font-size:11px;padding:4px 0}.source-item audio{width:100%;height:36px;margin-top:8px}.panel-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin:28px 0 22px}.panel-heading p{font-size:13px;margin-top:6px}.fact-section{background:white;border:1px solid var(--line);border-radius:9px;margin-bottom:12px}.fact-section>summary{list-style:none;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;color:var(--navy);font-size:15px;font-weight:600}.fact-section>summary::-webkit-details-marker{display:none}.fact-section>summary span{font-size:11px;font-weight:400;color:var(--muted)}.fact{border-top:1px solid #e8edf2;padding:16px 20px}.fact>p{color:var(--ink);font-size:14px}.fact-evidence{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:9px;font-size:11px;color:var(--muted)}.fact-evidence button{border:0;background:var(--bluewash);font-size:11px;color:var(--navy);padding:3px 8px;border-radius:4px}.fact-status{font-size:10px;color:var(--teal);margin-right:7px}.notice{background:#f7f1e4;border-left:3px solid #c9a15a;padding:12px 16px;font-size:12px;line-height:1.8;margin:14px 0}.notice p{color:#7d662e}.notice ul{padding-left:18px;margin:5px 0}.notice+.notice{margin-top:10px}.history-sheet{background:white;box-shadow:0 2px 13px #2032470a;border:1px solid var(--line);border-radius:3px;padding:28px 35px 14px}.history-sheet>header{display:grid;grid-template-columns:1fr auto;gap:8px;border-bottom:2px solid var(--navy);padding-bottom:17px;margin-bottom:15px}.history-sheet>header>span{grid-column:1/-1;font-size:22px;font-weight:700;color:var(--navy);letter-spacing:4px;text-align:center;margin-bottom:12px}.history-sheet>header strong{font-size:14px}.history-sheet>header small{font-size:11px;color:var(--amber)}.history-sheet>textarea{border:0;border-radius:0;padding:10px 0;min-height:60vh;resize:vertical;line-height:2.05;font-size:15px;color:#233345;outline-offset:7px}.history-sheet>footer{border-top:1px solid var(--line);padding-top:9px;font-size:10px;color:var(--muted)}.history-actions{display:flex;gap:10px;margin:18px 0}.version-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.version-row button{font-size:11px}.workspace-note{font-size:10px;color:#8190a1;padding:26px 0 8px;text-align:center}
.sheet-backdrop{position:fixed;inset:0;z-index:50;background:#15293e66;display:flex;align-items:flex-end;justify-content:center;backdrop-filter:blur(3px)}.sheet{width:100%;max-width:560px;max-height:88vh;max-height:88dvh;overflow:auto;background:white;border-radius:20px 20px 0 0;padding:10px 24px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -4px 32px #102c4920}.sheet-grip{width:38px;height:4px;background:#cbd5df;border-radius:4px;margin:0 auto 10px}.sheet>header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:17px}.sheet>header h2{font-size:19px}.sheet>header .icon-button{height:34px;width:34px;border:0;background:#f0f4f7}.sheet p{font-size:13px;margin:8px 0 16px}.sheet input{font-size:14px}.sheet .full-width{margin-top:21px}.sheet-option{display:flex;align-items:center;justify-content:space-between;gap:14px;background:white;border:1px solid var(--line);border-radius:8px;width:100%;text-align:left;padding:14px;margin-bottom:9px;min-height:52px;font-size:14px}.sheet-option.selected{border-color:var(--teal);background:#edf6f3;color:var(--teal);font-weight:600}.sheet-option small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:4px}.sheet .sheet-actions{display:flex;gap:10px;margin-top:18px}.sheet-actions>.button{flex:1}.sheet pre{white-space:pre-wrap;font:13px/1.8 inherit;color:var(--ink);overflow-wrap:anywhere}.image-preview{position:fixed;inset:0;background:#102033f5;z-index:70;display:flex;flex-direction:column;align-items:center;padding:20px;gap:16px}.image-preview>.button{align-self:flex-end}.image-preview img{min-height:0;max-height:calc(100% - 65px);max-width:100%;object-fit:contain}.toast{position:fixed;bottom:calc(30px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#203247;color:white;padding:11px 18px;border-radius:8px;z-index:100;width:max-content;max-width:88vw;font-size:13px;box-shadow:0 3px 16px #20324720;text-align:center}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes wave{to{transform:scaleY(.45)}}@media(min-width:900px){.sheet-backdrop{align-items:center}.sheet{border-radius:16px;padding:24px;max-height:82vh}.sheet-grip{display:none}}@media(max-width:1120px){.capture-layout{grid-template-columns:minmax(0,1fr) 275px;gap:20px}.workspace{grid-template-columns:190px minmax(0,1fr)}.content{padding:25px}.app-header{padding:0 25px}.input-body{padding:22px}}@media(max-width:900px){.workspace{display:block}.rail{display:none}.capture-layout{grid-template-columns:minmax(0,1fr) 290px}.mobile-brand{display:flex;gap:10px;align-items:center;font-size:15px}.mobile-brand .brand-mark{height:30px;width:30px;font-size:20px;border-radius:8px 8px 2px 8px}.desktop-title{display:none}.app-header{height:64px}.content{padding:21px}.case-heading h1{font-size:25px}}@media(max-width:680px){.app-header{padding:0 16px}.connection{font-size:11px;padding:6px 9px}.header-actions{gap:8px}.header-actions .icon-button{height:34px;width:34px}.content{padding:20px 16px 10px}.case-heading{gap:10px;align-items:flex-start;margin-bottom:18px}.case-heading h1{font-size:24px}.case-heading p{font-size:12px;max-width:245px;line-height:1.7}.case-actions{gap:7px;flex-direction:column-reverse;align-items:flex-end}.case-actions .button{font-size:11px;padding:6px 8px;min-height:30px}.case-actions .icon-button{height:32px;width:32px}.case-actions svg{height:17px;width:17px}.steps{gap:0;justify-content:space-between}.steps button{font-size:13px;gap:6px;padding:5px 0 10px;min-height:48px}.steps button>span{height:21px;width:21px}.steps i{padding:0 5px;font-size:10px}.job-bar{padding:12px;gap:9px;margin-bottom:18px}.job-copy>span{font-size:11px}.job-copy strong{font-size:12px}.capture-layout{display:block}.input-body{padding:22px 19px}.source-pane{margin-top:27px}.source-item{background:white;border:1px solid var(--line);border-radius:8px;padding:15px;margin-bottom:10px}.source-item:first-child{padding-top:15px}.source-top{gap:11px}.source-time{font-size:11px}.source-title{font-size:14px}.source-excerpt{padding-left:45px}.source-actions{padding-left:45px;gap:18px}.source-item audio{margin-top:12px}.input-tabs{padding:5px}.input-tabs button{font-size:12px}.recorder{padding:20px 0 28px}.recorder>strong{font-size:42px}.sound-bars{margin-bottom:15px}.record-button{min-width:150px}.record-controls>.button{padding:10px 13px;font-size:13px}.panel-heading{margin-top:21px}.panel-heading h2{font-size:18px}.panel-heading p{font-size:12px}.panel-heading>.button{font-size:11px;white-space:nowrap;padding:8px 12px;min-height:37px}.history-sheet{padding:22px 19px 12px}.history-sheet>textarea{min-height:60vh;font-size:14px}.fact-section>summary,.fact{padding:15px}.sheet{padding-left:20px;padding-right:20px}.page-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.scan-launch{padding:20px 10px}.job-bar>.button{padding:4px 7px}.history-actions>.button{flex:1}}
.modal-open{overflow:hidden}.case-item{width:100%;border:0;background:transparent;color:#ccdaeb;display:flex;flex-direction:column;align-items:flex-start;padding:12px 10px;border-left:3px solid transparent;border-radius:0 6px 6px 0;text-align:left;margin-bottom:6px;overflow-wrap:anywhere}.case-item.active{background:#294d76;color:white;border-left-color:#9bdac6}.case-item small{font-size:11px;opacity:.7}.option-list{display:grid;gap:9px}.option-row{display:flex;align-items:center;justify-content:space-between;gap:14px;background:white;border:1px solid var(--line);border-radius:9px;width:100%;text-align:left;padding:14px 15px;min-height:54px;font-size:14px}.option-row.selected{border-color:var(--teal);background:#edf6f3;color:var(--teal);font-weight:600}.option-row strong,.option-row small{display:block}.option-row small{font-size:11px;color:var(--muted);font-weight:400;margin-top:4px}.sheet-description{line-height:1.9}.document-text{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;line-height:1.9}.help-copy b{color:var(--navy)}.empty-state{padding:26px 16px;background:#fff;border:1px dashed #cbd7e3;border-radius:9px;text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center}.empty-number{font-size:28px;font-weight:300;color:#abc0d3}.empty-state strong{font-size:14px;color:var(--navy)}.empty-state p{font-size:12px;line-height:1.9;max-width:350px}.source-kind{font-size:11px;color:var(--muted)}.source-item>strong{display:block;font-size:14px;overflow-wrap:anywhere;margin:7px 0}.source-item>p{font-size:12px;line-height:1.8;overflow-wrap:anywhere}.source-item>small{display:block;font-size:11px;color:var(--muted);margin-top:7px}.source-item>.source-actions{padding-left:0;gap:13px;margin-top:8px}.source-actions .remove{color:var(--danger);margin-left:auto}.page-thumb{position:relative;border:1px solid var(--line);background:#f3f6fa;border-radius:7px;overflow:hidden}.page-image{width:100%;border:0;padding:0;display:block;background:#e4ebf2;aspect-ratio:3/4}.page-image img{width:100%;height:100%;object-fit:cover;display:block}.page-thumb>span{display:block;padding:3px 8px;font-size:11px}.page-remove{position:absolute;right:5px;top:5px;border:0;border-radius:50%;background:#fff;color:var(--danger);height:26px;width:26px;box-shadow:0 1px 6px #20324730}.saved-page{border:1px solid var(--line);border-radius:7px;background:var(--bluewash);padding:22px 10px;color:var(--navy)}.fact-row{border-top:1px solid #e8edf2;padding:16px 20px}.fact-row>p{font-size:14px;color:var(--ink);line-height:1.9}.evidence-links{display:flex;flex-wrap:wrap;gap:9px;margin-top:7px}.evidence-links .text-button{font-size:11px;background:var(--bluewash);color:var(--navy);padding:3px 8px;border-radius:4px}.version-item{width:100%;display:flex;align-items:center;gap:14px;justify-content:space-between;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);padding:14px 0;font-size:12px}.version-item small{color:var(--muted);margin-left:auto}.versions-heading{font-size:14px;margin-top:26px}.job-indicator{font-size:0}.sheet pre{font-family:inherit}.source-top{justify-content:space-between}@media(max-width:680px){.fact-row{padding:15px}.version-item{gap:8px;font-size:11px}.version-item small{font-size:10px}}
.login-page{min-height:100vh;display:grid;place-items:center;padding:32px 20px;background:linear-gradient(160deg,#e8f0f6 0%,#f6f8fa 58%,#eaf3ef 100%)}.login-card{width:100%;max-width:460px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:34px;box-shadow:0 14px 50px #183a630b}.login-brand{display:flex;align-items:center;gap:12px;color:var(--navy);font-size:20px;font-weight:700;margin-bottom:35px}.login-brand small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:3px}.login-brand>b{margin-left:auto;font-size:10px;font-weight:500;color:var(--teal);background:#edf6f3;padding:3px 8px;border-radius:4px}.login-card h1{font-size:26px}.login-subtitle{font-size:13px;margin-top:8px;line-height:1.9}.login-status{font-size:12px;line-height:1.9;color:var(--muted);margin:24px 0 19px;padding:11px 13px;border-left:3px solid #abc5d7;background:#f2f6f9;overflow-wrap:anywhere}.login-status.error{color:#a3453f;background:#fff1ef;border-left-color:#c16c63}.login-status.loading{color:var(--teal);border-left-color:var(--teal);background:#eef7f3}.login-card label{font-size:13px}.login-card input{min-height:48px}.password-field{position:relative}.password-field input{padding-right:62px}.password-field button{position:absolute;right:10px;top:6px;bottom:6px;border:0;background:none;color:var(--teal);font-size:12px;padding:0 7px}.login-card .remember-option{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:400;margin:17px 0;color:var(--ink)}.remember-option input{width:17px;height:17px;min-height:0;margin:0;accent-color:var(--navy)}.login-card #loginSubmit{min-height:48px}.login-server{margin-top:28px;border-top:1px solid var(--line);padding-top:16px;font-size:12px;color:var(--muted)}.login-server summary{cursor:pointer;color:var(--navy);padding:4px 0}.login-server p{font-size:12px;margin:10px 0}.login-server input{font-size:13px}.login-server button{margin-top:13px;min-height:38px;font-size:12px}.login-footnote{font-size:11px;line-height:1.9;margin-top:25px;color:#8190a1}.account-profile{display:flex;align-items:center;gap:14px;margin-bottom:25px}.account-profile strong{font-size:18px}.account-profile p{font-size:12px;margin:2px 0}.account-service{background:#edf4f7;border-left:3px solid var(--teal);padding:14px}.account-service b{font-size:13px;color:var(--navy)}.account-service p{font-size:12px;margin:7px 0 0}.fact-quote{font-size:12px;color:var(--muted);border-left:2px solid var(--line);margin:9px 0;padding:0 10px;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:540px){.login-page{padding:22px 16px;align-items:start}.login-card{padding:27px 23px;margin:12px 0}.login-brand{margin-bottom:27px}.login-card h1{font-size:25px}.connection{max-width:150px}.connection>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}@media(max-height:600px){.login-page{align-items:start}.login-card{margin:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}
/* Clinical document workspace: navy #183a63, teal #18796d, white #fff, slate #627389. */
.sync-bar{display:flex;gap:14px;align-items:center;padding:11px 0 17px;border-bottom:1px solid var(--line);margin-bottom:20px}
.sync-bar>div{min-width:0;margin-right:auto}.sync-bar strong{display:block;font-size:12px;color:var(--navy)}.sync-bar span{display:block;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.sync-bar .text-button{flex-shrink:0;font-size:12px}.sync-bar.conflict strong,.sync-bar.failed strong{color:var(--amber)}
.context-fields,.document-evidence{background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:15px 18px;margin:16px 0}
.context-fields summary,.document-evidence summary{color:var(--navy);font-size:14px;font-weight:600;cursor:pointer}
.context-fields textarea{min-height:95px;margin-bottom:10px;font-size:14px}.document-source{padding:10px 0;border-bottom:1px solid var(--line)}.document-source>b{font-size:12px}
.clinical-timeline{border-left:2px solid #acc8d8;margin:18px 0 28px 8px;padding-left:20px}.clinical-timeline article{position:relative;padding-bottom:19px}.clinical-timeline article:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--teal);position:absolute;left:-25px;top:8px}
.clinical-timeline strong{font-size:12px;color:var(--teal)}.clinical-timeline p{font-size:14px;color:var(--ink);line-height:1.9}.system-title{margin:0 0 9px;color:var(--navy);font-size:14px}
.transcript-editor{min-height:35vh;font-size:14px;line-height:1.9}.transcript-segments{display:flex;gap:7px;flex-wrap:wrap;margin:13px 0}
.segment-link{border:1px solid var(--line);border-radius:6px;background:var(--bluewash);padding:6px 10px;font-size:12px;color:var(--navy)}
#transcriptAudio{width:100%;margin:8px 0}.original-transcript{margin-top:20px;font-size:13px}.danger{color:var(--danger)}
.sheet h3{font-size:15px;color:var(--navy);margin:20px 0 8px}
/* Immediate feedback for touch and keyboard actions. */
button{transition:background-color 120ms ease,border-color 120ms ease,box-shadow 120ms ease,filter 100ms ease,transform 80ms ease;touch-action:manipulation}
button:not(:disabled):active,button.is-tapped:not(:disabled){transform:translateY(1px);filter:brightness(.92)}
button.is-busy,button[aria-busy="true"]{cursor:progress;opacity:.8;filter:saturate(.8)}
button.is-busy::before,button[aria-busy="true"]::before{content:"";display:inline-block;width:13px;height:13px;flex:0 0 13px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;margin-right:6px;animation:action-busy .7s linear infinite}
.button.is-busy::before,.button[aria-busy="true"]::before{margin-right:0}
@keyframes action-busy{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){button{transition:none!important}button:not(:disabled):active,button.is-tapped:not(:disabled){transform:none}button.is-busy::before,button[aria-busy="true"]::before{animation:none!important}}

.direct-workspace .steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.direct-workspace .steps [hidden]{display:none!important}.direct-extra{display:flex;flex-wrap:wrap;gap:8px 22px;margin:14px 0}.direct-extra label{display:flex;gap:8px;align-items:center}.direct-extra input{width:18px;height:18px}.direct-export-actions{padding:12px 0;display:flex;flex-wrap:wrap;gap:10px}.direct-section textarea{min-height:150px}.direct-section{margin-top:12px}
@media(max-width:680px){.steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.steps button{font-size:12px;gap:4px;justify-content:center}.steps button>span{display:none}.sync-bar{gap:10px}.sync-bar .text-button{font-size:11px}.context-fields,.document-evidence{padding:14px}.history-actions{flex-wrap:wrap}.sheet .sheet-actions{flex-wrap:wrap}}

