:root{color-scheme:dark;--orange:#ec781c}body{background:#080b0a;color:#eef2ed}.adminHeader{position:relative;background:#1b392f;border:1px solid var(--orange);padding:18px 4%;gap:20px}.adminHeader img{width:200px;height:52px;object-fit:contain;background:#fffaf5;border-radius:8px;padding:4px}.adminHeader strong{font-size:18px}.adminHeader button{margin-inline-start:auto}button{background:var(--orange);border:1px solid var(--orange);color:#172116;font-weight:bold;min-height:42px}button:hover{background:#ff8a30}button:disabled{opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #ec781c;outline-offset:3px}input,select,textarea,.adminCard,.tableWrap{border:1px solid var(--orange);background:#101712;color:#eef2ed}textarea{width:100%;min-height:70px;border-radius:8px;font:inherit;padding:10px}#connectGate{max-width:560px;margin:40px auto}#connectGate p{line-height:2}#connectGate button{margin:8px 0}.opsIntro{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 0}.opsIntro h1{margin:8px 0;font-size:28px}.opsIntro p,#opsUpdated{font-size:12px;color:#b4c4b5;line-height:1.9}.opsStats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:16px 0}.opsStats article{display:grid;gap:12px;border:1px solid var(--orange);border-radius:12px;padding:20px;background:#111a15}.opsStats strong{font-size:27px;color:#f5bf86}.opsStats small{color:#c4d0c5}.opsTabs{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.opsTabs button{background:#142219;color:#e5ece4}.opsTabs [aria-pressed=true]{background:var(--orange);color:#172116}#opsError{color:#ffb77e;line-height:1.9}.opsTable{border-collapse:collapse;width:100%;font-size:12px;min-width:650px}.opsTable td,.opsTable th{padding:13px 10px;border-bottom:1px solid #344336;text-align:right;vertical-align:top}.opsTable th{background:#1b392f}.opsTable pre{white-space:pre-wrap;word-break:break-word;max-width:350px;font-size:11px;direction:ltr}.opsTable details{padding:5px;background:transparent}.opsLink{background:transparent!important;color:#ffc087!important;min-height:32px;padding:5px;text-decoration:underline;border:0;direction:ltr}.opsFields{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.opsField{padding:14px;border:1px solid #3b5142;border-radius:9px;display:grid;gap:10px;overflow-wrap:anywhere}.opsField small{color:#a9baad}.opsField strong{font-size:13px}.opsReview{margin:16px 0;padding:20px;border:1px solid #76502f;border-radius:12px}.opsReview p{line-height:1.9}.opsReview button{margin:8px}.opsDocument{display:inline-block;border:1px solid var(--orange);padding:10px;border-radius:8px;margin:8px;color:#efceac}#opsLookup,.opsSearch{display:flex;align-items:end;gap:12px;margin:18px 0}#opsLookup label,.opsSearch label{flex:1;margin:0}.opsArtGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.opsArtGrid article{border:1px solid #926036;border-radius:12px;padding:15px}.opsArtGrid img{width:100%;height:160px;object-fit:contain;background:#07100a}.opsArtGrid details{padding:8px}.opsEmpty{padding:30px;color:#bdc8c0}#opsContent{margin-bottom:30px}#opsContent h3{margin-top:30px}#opsContent>p{line-height:2;color:#b4c3b7}#opsContent label{line-height:1.8}#opsContent select{min-height:42px;border-radius:8px}#opsContent input{margin:6px 0 0}@media(max-width:800px){.opsStats{grid-template-columns:repeat(2,1fr)}.opsFields,.opsArtGrid{grid-template-columns:1fr}.opsIntro{display:block}.adminHeader{flex-wrap:wrap}.adminHeader img{width:160px}#opsLookup,.opsSearch{display:block}.opsTabs button{flex:1;min-width:120px}.adminMain{padding:20px 4%}}

/* Hosted staff management */
[hidden]{display:none!important}#staffPermissions label,#staffList fieldset label{display:block;margin:12px 0}#staffPanel input[type=checkbox]{width:auto;margin-left:8px}#ownerSetup{margin-top:28px}#ownerSetup summary{cursor:pointer;color:#ec781c}#staffPanel fieldset{border:1px solid #ec781c;border-radius:10px}#staffPanel form{max-width:720px}#principalName{font-size:13px;color:#d7e1da}

.hostedHeader {display:flex;justify-content:space-between;align-items:center;gap:12px;padding-block:12px}
.hostedBrand,.hostedActions {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hostedBrand a {font-weight:700;color:#f4f5ed;text-decoration:none}
.hostedBrand strong {font-size:13px;color:#d0e0d6;border-inline-start:1px solid #668275;padding-inline-start:9px}
.hostedActions button,.hostedActions a {margin:0;min-height:44px}
.hostedActions a {display:inline-flex;align-items:center;border:1px solid #749284;border-radius:9px;padding:8px 12px;color:#f2f6f0;text-decoration:none}
.hostedActions a:hover {background:#2b4e41}
#adminDashboard .opsIntro {padding:0 0 6px}
#adminDashboard .opsIntro h1 {font-size:clamp(1.2rem,3vw,1.85rem)}
#opsUpdated {margin:4px 0 0}
#adminDashboard .opsStats {grid-template-columns:repeat(auto-fit,minmax(145px,1fr));margin:13px 0 20px}
#adminDashboard .opsStats article {gap:7px;padding:14px;border-color:#4b5f50;background:#132019}
#adminDashboard .opsStats strong {font-size:clamp(1.15rem,3vw,1.65rem);color:#ffb77e}
.opsWorkspace {display:grid;grid-template-columns:minmax(160px,210px) minmax(0,1fr);gap:14px;align-items:start}
.opsSidebar {position:sticky;top:12px;border:1px solid #455e50;border-radius:14px;background:#121d17;padding:10px}
.opsBody {min-width:0}
.opsWorkspace .opsTabs {display:grid;gap:10px;margin:0}
.opsNavGroup {display:grid;gap:3px}
.opsNavGroup:not(:has([data-tab]:not([hidden]))) {display:none}
.opsNavGroup p {font-size:.72rem;color:#b6c8bc;margin:4px 5px}
.opsWorkspace .opsTabs button {width:100%;min-width:0;text-align:start;border-color:transparent;border-radius:8px;background:#1a2a21;font-weight:400}
.opsWorkspace .opsTabs button:hover {background:#284337}
.opsWorkspace .opsTabs [aria-pressed=true] {background:#ec781c;color:#172116;font-weight:700}
#opsMenu {display:none}
#opsError:empty {display:none}
.opsBody #opsContent {min-width:0;padding:clamp(12px,2vw,24px);border-color:#455e50}
.opsBody #opsContent h2:first-child {margin-top:0}
.opsBody .tableWrap {max-width:100%;overflow-x:auto;border-color:#455e50}
.opsBody .tableWrap:focus-visible {outline:2px solid #ec781c;outline-offset:3px}
.opsBody .opsTable tbody tr:nth-child(even) {background:#15231b}
.opsBody .opsTable tbody tr:hover {background:#1e3227}
.opsBody .opsReview {background:#14221a}
@media(max-width:850px){
 .opsWorkspace {grid-template-columns:minmax(0,1fr)}
 .opsSidebar {position:static}
 #opsMenu {width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px;text-align:start}
 #opsCurrentTab {font-size:.8em}
 #opsMenu[aria-expanded=false]+.opsTabs {display:none}
 .opsWorkspace .opsTabs {margin-top:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
 #adminDashboard .opsIntro {display:flex}
 #adminDashboard .opsIntro button {white-space:nowrap}
}
@media(max-width:420px){
 .hostedActions a,.hostedActions button {padding-inline:8px}
 .opsWorkspace .opsTabs {grid-template-columns:1fr}
 #adminDashboard .opsStats {grid-template-columns:repeat(2,minmax(0,1fr))}
}

.opsIdentityTabs {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.opsIdentityTabs button[aria-pressed="true"] {background:#ec781c;color:#171b15;border-color:#ec781c;font-weight:700}

