
:root{font-family:Inter,system-ui,Segoe UI,sans-serif;color-scheme:dark;background:#101417;color:#e9edea}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select,textarea{font:inherit}
header{border-bottom:1px solid #303a3b;padding:16px max(20px,calc((100vw - 1220px)/2));display:flex;justify-content:space-between;align-items:center;gap:20px}
header small{display:block;margin-top:4px;color:#a9b3b1}.brand{font-size:22px;font-weight:900;letter-spacing:-.7px}.brand span{color:#caba95}
main{max-width:1220px;margin:24px auto;padding:0 20px}.card{padding:22px;border:1px solid #394145;border-radius:15px;background:#1b2124}.narrow{max-width:480px;margin:45px auto}
.columns{display:grid;grid-template-columns:minmax(265px,325px) minmax(0,1fr);gap:16px;align-items:start}
.head,.line{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.head{margin-bottom:16px}.head h1{margin-bottom:4px}
h1{font-size:25px;margin:8px 0 15px}h2{font-size:18px;margin:0 0 13px}h3{font-size:16px}
small,.muted,p{color:#aab4b2}.small-note{font-size:13px;line-height:1.5}
label{display:block;color:#dbe1dd;font-size:13px;margin:12px 0}input,select,textarea{display:block;width:100%;margin-top:7px;background:#0e1214;border:1px solid #3e4b4c;border-radius:10px;color:#f3f4ef;padding:11px}
textarea{resize:vertical;font-family:ui-monospace,Consolas,monospace;font-size:13px;min-height:110px}
button{background:#caba95;color:#111;border:0;border-radius:9px;padding:10px 14px;font-weight:700;cursor:pointer;transition:filter .15s}
button:hover:not(:disabled){filter:brightness(1.09)}button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #e3c88f;outline-offset:2px}
button:disabled{opacity:.38;cursor:not-allowed}#logout{background:#333c3c;color:white}
.org-control{margin:0;min-width:225px}.org-control select{margin-top:5px}
.case-commands{display:flex;gap:8px;flex-wrap:wrap}.case-commands button{flex:1;min-width:115px}.list-pane h2{margin-bottom:16px}
.caseItem{display:block;width:100%;text-align:left;margin:8px 0;background:#252e31;color:#e4e9e6;border:1px solid #394547;line-height:1.35;padding:13px}
.caseItem small{display:block;margin-top:4px}.caseItem.selected{border-color:#caba95;background:#303735}
.detail-heading{margin-bottom:10px}.tag{font-size:12px;padding:6px 10px;border:1px solid #66736e;border-radius:20px}
.metadata-row{display:flex;align-items:end;justify-content:space-between;gap:16px}.metadata-row label{width:min(260px,65%)}.metadata-row p{margin:0 0 15px;font-size:13px}
.case-mapping{margin-top:16px;padding:16px;border:1px solid #3f4d4f;border-radius:12px;background:#141c1f;display:flex;align-items:center;justify-content:space-between;gap:16px}
.case-mapping strong{display:block;margin-bottom:4px;font-size:16px}.case-mapping p{margin:0}.action-primary{padding:14px 18px;white-space:nowrap}
.main-save{margin:14px 0 10px}.main-save .small-note{flex:1}.folded-section{border-top:1px solid #394345;margin-top:14px;padding:0}
.folded-section>summary{list-style:none;padding:17px 4px;cursor:pointer;font-weight:650;color:#e0e4e1;display:flex;justify-content:space-between;align-items:center}
.folded-section>summary::-webkit-details-marker{display:none}.folded-section>summary::after{content:'⌄';font-size:16px;color:#d8c69e}.folded-section[open]>summary::after{transform:rotate(180deg)}
.folded-section[open]{padding-bottom:12px}.secondary-actions{display:flex;flex-wrap:wrap;gap:8px}
.secondary-actions button,.folded-section button{background:#303b3d;color:#e9edea;border:1px solid #4a5759;font-size:13px}
.json-section{padding:11px 0;border-top:1px solid #374043;margin-top:12px}.json-section summary{cursor:pointer;color:#d6d9d6;font-size:13px}
.empty-state{padding:42px 20px;text-align:center;border:1px dashed #404f51;border-radius:12px;color:#aeb9b5}
.fileItem{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #394547;padding:12px 0}.fileItem button{padding:6px 10px}
.lab-footer{margin:18px 0;color:#a9b3b1;font-size:12px;line-height:1.6}#message{min-height:26px;font-size:14px;color:#edd293}
@media(max-width:940px){.columns{grid-template-columns:minmax(240px,0.8fr) minmax(0,1.5fr)}.case-mapping{align-items:stretch;flex-direction:column}.action-primary{width:100%}}
@media(max-width:720px){.columns{grid-template-columns:1fr}.head{align-items:start}main{margin-top:16px}.card{padding:16px}header{padding:15px 20px}.metadata-row{flex-wrap:wrap}.metadata-row label{width:100%}.case-mapping{flex-direction:column}.case-commands button{flex:1}}
