:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#18202b;background:#eef1f4}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:#eef1f4}.topbar{min-height:120px;background:#18243a;color:#fff;padding:24px 4vw;display:flex;align-items:center;justify-content:space-between;gap:24px}.topbar h1{margin:2px 0 6px;font-size:30px}.topbar p{margin:0;color:#dbe3ef}.eyebrow{font-size:11px!important;letter-spacing:.14em;font-weight:800;color:#9eb7de!important}.eyebrow.dark{color:#52657e!important}.system-chip,.pill,.badge,.lock-badge,.edit-badge,.review-badge{display:inline-flex;align-items:center;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:800}.system-chip{background:#ffffff18}.pill{background:#e9eff8;color:#294e80}.badge{background:#e7ebf0;color:#455365}.lock-badge{background:#edf1f5;color:#596677}.edit-badge{background:#e6f6ec;color:#237243}.review-badge.pending{background:#fff0c9;color:#8a5a00}.review-badge.approved{background:#dff5e7;color:#18703b}main{padding:24px 3vw 60px}.login-card,.work-card,.empty-detail{background:#fff;border:1px solid #dbe1e8;border-radius:16px;box-shadow:0 4px 16px #17243a0b}.login-card{max-width:850px;margin:30px auto;padding:26px;display:flex;justify-content:space-between;gap:25px;align-items:end}.login-card h2{margin:0 0 6px}.login-card p{margin:0;color:#657286}.login-row{display:flex;gap:10px}input,textarea,button,select{font:inherit}input,textarea{width:100%;border:1px solid #cbd3dc;border-radius:9px;padding:10px 12px;background:#fff;color:#18202b}textarea{resize:vertical;line-height:1.45}input:focus,textarea:focus{outline:2px solid #9fb9dd;border-color:#5a7fac}button{border:0;border-radius:9px;padding:10px 14px;font-weight:750;cursor:pointer;background:#e8edf3;color:#25354a}button:hover{filter:brightness(.98)}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:#1c3557;color:#fff}.secondary{background:#dfe9f7;color:#234d7e}.ghost{background:#f1f3f6;color:#49596d}.success-button{background:#257a45;color:#fff}.dashboard-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.dashboard-head h2{margin:2px 0}.head-actions{display:flex;gap:8px}.workspace{display:grid;grid-template-columns:290px minmax(0,1fr);gap:18px;align-items:start}.case-column{background:#fff;border:1px solid #dbe1e8;border-radius:14px;padding:15px;position:sticky;top:14px;max-height:calc(100vh - 30px);overflow:auto}.section-title{display:flex;align-items:center;justify-content:space-between}.section-title h3{margin:0}.search{margin:12px 0}.case-list{display:flex;flex-direction:column;gap:8px}.case-item{text-align:left;background:#f7f9fb;border:1px solid #e1e6ec;padding:12px;display:flex;flex-direction:column;gap:4px}.case-item.active{background:#e8f0fb;border-color:#8bacd3}.case-item span{font-size:12px;color:#667487}.empty-detail{min-height:520px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#728093;text-align:center}.empty-icon{font-size:48px}.detail{min-width:0}.sticky-head{position:sticky;top:0;z-index:5;background:#eef1f4eF;backdrop-filter:blur(8px);padding:10px 0 13px}.detail-head{display:flex;justify-content:space-between;gap:20px;align-items:center}.detail-head h2{margin:7px 0 4px}.muted{color:#697789}.approval-box{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.case-nav{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 14px}.case-nav button{background:#fff;border:1px solid #d7dee7}.work-card{padding:22px;margin-bottom:16px;scroll-margin-top:100px}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px}.section-heading h3{margin:3px 0 5px;font-size:21px}.section-heading p{margin:0;color:#677589}.source-card{border-left:4px solid #6d819d}.source-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px;margin-bottom:18px}.source-grid article{background:#f6f8fa;border:1px solid #e3e8ee;border-radius:10px;padding:11px}.source-grid small{display:block;color:#758294;margin-bottom:5px}.source-grid strong{font-size:14px}.human-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.human-field{background:#f8fafb;border:1px solid #e1e6ec;border-radius:11px;padding:12px}.human-field.wide{grid-column:1/-1}.human-field label{display:block;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#6d7888;margin-bottom:5px}.human-field div{white-space:pre-wrap;line-height:1.45}.subheading{margin:22px 0 10px}.attachment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.attachment{border:1px solid #dce3ea;border-radius:12px;overflow:hidden;background:#f8fafb}.attachment .attachment-head{padding:10px 12px}.attachment h5{margin:0 0 3px}.attachment small{color:#718093}.attachment img{display:block;width:100%;height:200px;object-fit:contain;background:#20242a}.attachment pre{margin:0;padding:12px;max-height:220px;overflow:auto;background:#f2f5f8;font-size:12px;white-space:pre-wrap}.attachment .file-placeholder{padding:28px 12px;text-align:center;color:#647286}.attachment .pdf-preview{display:block;width:100%;height:360px;border:0;background:#fff}.attachment .file-preview{padding:18px 14px;display:grid;gap:8px}.attachment .file-preview small{display:block}.attachment .file-preview a{display:inline-flex;width:max-content;max-width:100%;padding:8px 10px;border-radius:8px;background:#e8eef7;color:#223a5f;text-decoration:none;font-weight:700}.minor-actions{margin-top:14px}.main-editors{display:grid;gap:14px}.editor-card{border:1px solid #dce3ea;border-radius:12px;padding:14px;background:#fbfcfd}.editor-card header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:9px}.editor-card h4{margin:0}.editor-card textarea{min-height:240px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#fff}.editor-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:9px}.save-state{font-size:12px;color:#697789}.structured-editors{display:grid;gap:12px}.structured-file{border:1px solid #dce3ea;border-radius:12px;background:#fbfcfd}.structured-file>summary{cursor:pointer;padding:14px;font-weight:800;display:flex;align-items:center;justify-content:space-between}.structured-body{padding:0 14px 14px}.json-fieldset{border:1px solid #e0e5eb;border-radius:10px;padding:11px;margin:8px 0;background:#fff}.json-fieldset>legend{font-weight:800;color:#45566b;padding:0 6px}.json-row{display:grid;grid-template-columns:minmax(145px,.7fr) minmax(0,1.5fr);gap:10px;align-items:start;margin:7px 0}.json-row>label{font-size:12px;color:#637186;font-weight:700;padding-top:10px;word-break:break-word}.json-row input[type=checkbox]{width:auto;margin-top:10px}.json-row textarea{min-height:76px}.array-item{border-left:3px solid #d8e2ee;padding-left:9px;margin:9px 0}.structured-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px}.note-form{display:grid;grid-template-columns:180px minmax(0,1fr) auto;gap:10px;align-items:start}.notes{display:grid;gap:8px;margin:14px 0}.note{background:#f6f8fa;border:1px solid #e1e6ec;padding:11px;border-radius:9px}.note time{float:right;color:#778596;font-size:11px}.note p{margin:7px 0 0;white-space:pre-wrap}.action-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.security-note{font-size:12px;color:#687689}.status-line{min-height:20px;margin-top:7px;font-size:13px}.status-line.error{color:#a92b2b}.status-line.success{color:#1d783f}.toast{position:fixed;right:22px;bottom:22px;max-width:420px;background:#18243a;color:#fff;padding:13px 16px;border-radius:10px;box-shadow:0 8px 30px #0003;z-index:50}.toast.error{background:#922f2f}.toast.success{background:#247046}@media(max-width:900px){.workspace{grid-template-columns:1fr}.case-column{position:relative;max-height:none}.detail-head{align-items:flex-start;flex-direction:column}.approval-box{justify-content:flex-start}.human-fields{grid-template-columns:1fr}.note-form{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column}.login-card{flex-direction:column;align-items:stretch}}