/* Superadmin shares Basic Matte's typography, with a calmer task-oriented shell. */
body[data-portal=admin]{--bg:#f5f6f3;--bg2:#edf0e9;--surface:#fff;--surface2:#f9faf7;--ink:#24392f;--ink2:#43584c;--muted:#657269;--line:#dfe5dc;--line2:#cbd5c8;--green:#416b4e;--admin-accent:#315a42;--admin-soft:#eaf1e7}
body[data-portal=admin] #design-sidebar{background:#20382b;border-color:#20382b}
body[data-portal=admin] .design-brand>span{color:#c9d7cc;font-size:10px;letter-spacing:.12em}
body[data-portal=admin] #design-nav button,body[data-portal=admin] .design-sidebar-footer>a,body[data-portal=admin] .design-sidebar-footer>button{color:#e0e9df;border-radius:8px}
body[data-portal=admin] #design-nav button{padding:10px 12px;min-height:43px;gap:11px;font-size:13px;line-height:1.35}
body[data-portal=admin] #design-nav button[aria-current=page]{color:#fff;background:#ffffff17;border-left:3px solid #c4d4a3}
body[data-portal=admin] #design-nav button[aria-current=page]:after{display:none}
body[data-portal=admin] #design-nav button:hover,body[data-portal=admin] .design-sidebar-footer>button:hover{background:#ffffff12}
body[data-portal=admin] .design-nav-label{color:#a9bfaf;margin:15px 12px 5px;font-size:9px;letter-spacing:.12em}
body[data-portal=admin] .system-nav-group:first-child .design-nav-label{margin-top:0}
body[data-portal=admin] .design-sidebar-footer,body[data-portal=admin] #design-profile,body[data-portal=admin] .admin-sidebar-return{border-color:#ffffff20!important}
body[data-portal=admin] #design-profile{color:#f0f5ec}
body[data-portal=admin] #design-profile small{color:#becfc0}
body[data-portal=admin] #design-profile .design-avatar{background:#ffffff17;color:#fff}
body[data-portal=admin] .design-room-title{background:var(--admin-soft);color:var(--admin-accent)}
body[data-portal=admin] .tour-launch,body[data-portal=admin] .siffer-presence-slot,body[data-portal=admin] #bm-mobile-nav,body[data-portal=admin] .xp{display:none!important}
body[data-portal=admin] .system-room,body[data-portal=admin] .system-school{font-size:14px;line-height:1.65}
body[data-portal=admin] .system-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin:0 0 28px}
body[data-portal=admin] .system-heading h1{font:600 clamp(28px,3vw,38px)/1.15 var(--font-display);letter-spacing:-.035em;margin:8px 0 10px;outline:none}
body[data-portal=admin] .system-heading .eyebrow{font-size:10px;letter-spacing:.11em;margin:0;color:var(--muted)}
body[data-portal=admin] .system-heading .eyebrow span{padding:0 6px;opacity:.5}
body[data-portal=admin] .system-heading .system-lead{font-size:14px;margin:0;max-width:62ch}
.system-heading-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;padding-top:18px;flex-shrink:0}
body[data-portal=admin] .btn,body[data-portal=admin] .action{font:600 13px/1.4 var(--font-body);min-height:42px;padding:10px 14px;border-radius:8px;white-space:normal;text-align:center;cursor:pointer}
body[data-portal=admin] .btn-p,body[data-portal=admin] .action:not(.secondary){background:var(--admin-accent);color:var(--surface);border-color:var(--admin-accent)}
body[data-portal=admin] .btn-o,body[data-portal=admin] .action.secondary{background:var(--surface);color:var(--ink);border:1px solid var(--line2)}
body[data-portal=admin] button:focus-visible,body[data-portal=admin] input:focus-visible,body[data-portal=admin] select:focus-visible,body[data-portal=admin] textarea:focus-visible{outline:3px solid #9bb78b;outline-offset:3px}
body[data-portal=admin] button:disabled{opacity:.6;cursor:wait}
body[data-portal=admin] .system-metrics{gap:14px;margin:0 0 30px}
body[data-portal=admin] .system-metric{padding:20px;border-radius:12px;box-shadow:0 2px 2px #233c2803}
body[data-portal=admin] .system-metric>span{font-size:12px;font-weight:550;color:var(--ink2)}
body[data-portal=admin] .system-metric>strong{font-size:32px;margin:10px 0 7px;line-height:1.25;letter-spacing:-.04em}
body[data-portal=admin] .system-metric>small{font-size:11px;line-height:1.5}
body[data-portal=admin] :is(.system-room,.system-school) h2{font:600 21px/1.3 var(--font-display);letter-spacing:-.02em;margin:26px 0 12px}
body[data-portal=admin] :is(.system-room,.system-school) h3{font:600 17px/1.4 var(--font-display);margin:0 0 8px}
body[data-portal=admin] :is(.system-room,.system-school) p{color:var(--muted);overflow-wrap:anywhere}
.system-section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px}
body[data-portal=admin] .system-section-heading h2{margin:0 0 5px}
.system-section-heading p{margin:0;font-size:13px}
.system-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.system-tool{display:flex;align-items:center;gap:16px;width:100%;min-width:0;padding:22px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);cursor:pointer;transition:border-color .15s,background .15s;font:inherit}
.system-tool:hover{border-color:var(--admin-accent);background:var(--surface2)}
.system-tool-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid var(--line);border-radius:11px;background:var(--admin-soft);color:var(--admin-accent)}
.system-tool>span:nth-child(2){flex:1;min-width:0}
.system-tool strong{display:block;font-size:15px;font-weight:650;margin:0 0 5px}
.system-tool small{display:block;color:var(--muted);font-size:12px;line-height:1.6}
.system-tool-arrow{color:var(--muted);align-self:flex-start;font-size:19px}
body[data-portal=admin] .system-grid{gap:14px;margin:26px 0}
body[data-portal=admin] .system-grid :is(.design-paper,.paper-panel){margin:0}
body[data-portal=admin] :is(.system-room,.system-school) :is(.design-paper,.paper-panel){background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:24px;min-width:0}
body[data-portal=admin] :is(.system-room,.system-school) :is(.design-paper,.paper-panel) h2:first-child{margin-top:0}
body[data-portal=admin] .system-grid .eyebrow{font-size:10px}
body[data-portal=admin] .system-grid h2{margin-top:8px}
.system-directory-search{display:flex;align-items:center;gap:12px;padding:8px 16px;border:1px solid var(--line2);border-radius:12px;background:var(--surface)}
.system-room .system-directory-search input{border:0;background:transparent;flex:1;min-width:0;padding:12px 0;font-size:14px}
.system-directory-group{margin:28px 0}
body[data-portal=admin] .system-result-count{font-size:12px;margin:14px 0;color:var(--muted)}
body[data-portal=admin] .system-context-note{border-left:3px solid var(--line2);background:var(--bg2);border-radius:0 8px 8px 0;padding:16px 20px;font-size:13px;margin:24px 0}
body[data-portal=admin] .system-context-note p{margin:6px 0 0}
.system-subnav{display:flex;flex-wrap:wrap;gap:5px;padding:5px;margin:0 0 26px;border:1px solid var(--line);border-radius:10px;background:var(--bg2)}
.system-subnav button{font:600 13px/1.35 var(--font-body);padding:10px 15px;min-height:42px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted);cursor:pointer}
.system-subnav button[aria-current=page]{color:var(--ink);background:var(--surface);border-color:var(--line);box-shadow:0 1px 2px #00000006}
body[data-portal=admin] .system-support{margin:0 0 30px}
.system-search input{flex:1;min-width:0}
body[data-portal=admin] :is(.system-room,.system-school) label{font-size:13px;font-weight:550}
body[data-portal=admin] :is(.system-room,.system-school) input,body[data-portal=admin] :is(.system-room,.system-school) select,body[data-portal=admin] :is(.system-room,.system-school) textarea{font:400 14px/1.5 var(--font-body);border:1px solid var(--line2);background:var(--surface);color:var(--ink);padding:11px 12px;border-radius:8px;min-height:44px;max-width:100%;min-width:0}
body[data-portal=admin] .system-filters{gap:12px;margin:18px 0}
body[data-portal=admin] .system-table-wrap{background:var(--surface);border:1px solid var(--line);border-radius:12px;margin:14px 0 24px;max-width:100%;overflow:auto}
body[data-portal=admin] .system-table{width:100%;min-width:0;border-collapse:collapse;font-size:13px}
body[data-portal=admin] .system-table th{font-size:10px;font-weight:650;letter-spacing:.055em;background:var(--bg2);color:var(--muted);padding:13px 16px}
body[data-portal=admin] .system-table td{padding:16px;border-bottom:1px solid var(--line);vertical-align:middle;min-width:0;overflow-wrap:anywhere}
body[data-portal=admin] .system-table tr:last-child td{border-bottom:0}
body[data-portal=admin] .system-table td:first-child{min-width:0}
body[data-portal=admin] .system-table small{display:block;font-size:11px;margin-top:4px;color:var(--muted)}
.system-row-actions{display:flex;gap:7px;flex-wrap:wrap;min-width:120px}
.system-badge{display:inline-block;padding:4px 9px;font-size:11px;line-height:1.5;color:var(--ink2);background:var(--bg2);border-radius:6px}
.system-badge.is-warning{background:#fff0d3;color:#775213}
body[data-portal=admin] .system-empty{padding:26px;border:1px dashed var(--line2);border-radius:10px;background:var(--surface2);margin:12px 0}
body[data-portal=admin] .system-empty h3{margin:0 0 6px}
body[data-portal=admin] .system-empty p{margin:0 0 12px;font-size:13px}
body[data-portal=admin] .system-warning{padding:20px;border:1px solid #d9bb7a;background:#fff9ec;color:#6b4e20}
body[data-portal=admin] .system-warning p{color:inherit}
body[data-portal=admin] .system-feedback{padding:24px;border-radius:12px;margin:16px 0}
.system-feedback-body{white-space:pre-wrap;color:var(--ink)!important;font-size:15px}
.system-feedback-form{display:grid;grid-template-columns:minmax(140px,1fr) minmax(0,3fr);gap:16px;align-items:start;border-top:1px solid var(--line);padding-top:20px;margin-top:20px}
.system-feedback-form label{display:grid;gap:8px}
.system-feedback-form textarea{margin:0!important;min-height:84px}
.system-feedback-form>button{justify-self:start}
.system-feedback-form>p{margin:6px 0}
body[data-portal=admin] .system-footnote{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:32px;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.system-school [hidden],.system-room [hidden]{display:none!important}
.system-school .workspace-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:20px 0}
.system-school .workspace-filters label{display:grid;gap:7px;flex:1}
.system-school .workspace-filters p:empty{display:none}
.system-school-form{margin:24px 0;scroll-margin-top:100px}
.system-school :is(.paper-panel form,.system-school-form form){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:760px}
.system-school :is(.paper-panel form,.system-school-form form)>label{display:grid;gap:7px}
.system-school :is(.paper-panel form,.system-school-form form)>button{justify-self:start;align-self:end}
.system-school :is(.paper-panel form,.system-school-form form)>p{grid-column:1/-1;margin:0}
.system-school .system-invitation-list article{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:10px;margin:12px 0}
.system-school .system-invitation-list article>div{min-width:0;overflow-wrap:anywhere}
.system-school .system-invitation-list p{margin:5px 0;font-size:13px}
.system-school .system-invitation-list small{color:var(--muted);font-size:12px}
.system-report{max-width:100%;overflow-wrap:anywhere}
.system-report .statrad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.system-report .stattile{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:18px}
.system-report .radar-rad{gap:12px;flex-wrap:wrap}
.system-report .radar-navn{min-width:0}
.system-report .radar-tall{white-space:normal}
[data-theme=dark] body[data-portal=admin]{--bg:#18231d;--bg2:#29362d;--surface:#223027;--surface2:#25362b;--ink:#e8efe5;--ink2:#cfddce;--muted:#acbdad;--line:#3b5040;--line2:#526954;--admin-accent:#b5cda4;--admin-soft:#304534}
[data-theme=dark] body[data-portal=admin] .action:not(.secondary),[data-theme=dark] body[data-portal=admin] .btn-p{color:#1c2b20}
[data-theme=dark] body[data-portal=admin] .system-warning{background:#3c3420;border-color:#897345;color:#ebd39e}
[data-theme=dark] .system-badge.is-warning{background:#4b3b1f;color:#f1d18d}
@media(min-width:960px){body[data-portal=admin] .wrap{padding-top:30px}body[data-portal=admin] #design-nav{padding-top:12px}body[data-portal=admin] .design-brand{padding-block:22px 14px}}
@media(max-width:1200px){body[data-portal=admin] .system-heading{flex-direction:column;gap:8px}.system-heading-actions{padding-top:0}.system-tool{padding:18px}.system-row-actions{min-width:0}}
@media(max-width:700px){body[data-portal=admin] .system-heading{margin-bottom:22px}.system-heading-actions{justify-content:flex-start}.system-tools,.system-grid{grid-template-columns:1fr!important}.system-tool{padding:18px;gap:12px}.system-tool strong{font-size:14px}.system-tool small{font-size:12px}.system-section-heading{align-items:flex-start;flex-direction:column;gap:12px}.system-subnav{gap:4px}.system-subnav button{padding:9px 10px;flex:1 1 auto}.system-feedback-form{grid-template-columns:1fr}.system-school :is(.paper-panel form,.system-school-form form){grid-template-columns:1fr}.system-school .system-invitation-list article{align-items:flex-start;flex-direction:column;gap:12px}.system-report .statrad{grid-template-columns:repeat(2,minmax(0,1fr))}.system-directory-search{padding:5px 12px}.system-directory-search>svg{display:none}.system-room .system-directory-search input{font-size:13px}.system-school .workspace-filters{align-items:stretch}.system-school .workspace-filters label{flex-basis:100%}
 body[data-portal=admin] .system-table,body[data-portal=admin] .system-table tbody,body[data-portal=admin] .system-table tr,body[data-portal=admin] .system-table td{display:block;width:auto;min-width:0}
 body[data-portal=admin] .system-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body[data-portal=admin] .system-table tr{padding:14px 16px;border-bottom:1px solid var(--line)}
 body[data-portal=admin] .system-table tr:last-child{border-bottom:0}
 body[data-portal=admin] .system-table td{border:0!important;padding:6px 0;text-align:left!important}
 body[data-portal=admin] .system-table td[data-label]:not(:first-child):before{content:attr(data-label);display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:3px}
 body[data-portal=admin] .system-table td:first-child{font-size:14px;font-weight:550}
 body[data-portal=admin] .system-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body[data-portal=admin] .system-metric{padding:15px}body[data-portal=admin] .system-metric>strong{font-size:27px}
 body[data-portal=admin] .system-metric>span{font-size:11px}
 body[data-portal=admin] :is(.system-room,.system-school) :is(.design-paper,.paper-panel){padding:19px}
 body[data-portal=admin] .system-footnote{flex-direction:column}
}
@media(max-width:420px){body[data-portal=admin] .system-heading h1{font-size:28px}.system-search{flex-direction:column}.system-search>button{align-self:flex-start}.system-tool-icon{flex-basis:34px;width:34px;height:34px}.system-tool-arrow{display:none}.system-report .statrad{grid-template-columns:1fr}}
@media print{body[data-portal=admin] .system-heading-actions,body[data-portal=admin] .system-subnav,body[data-portal=admin] .system-filters,body[data-portal=admin] #design-sidebar{display:none!important}body[data-portal=admin] .wrap{margin:0!important;width:100%!important}}

body[data-portal=admin] #siffer-feedback-launch,body[data-portal=admin] .siffer-hello,body[data-portal=admin] .siffer-nudge,body[data-portal=admin] .infi-utsagn{display:none!important}
/* Metrics are drill-down controls with an explicit destination affordance. */
body[data-portal=admin] button.system-metric{text-align:left;font-family:var(--font-body);color:var(--ink);cursor:pointer;transition:border-color .15s,box-shadow .15s}
body[data-portal=admin] button.system-metric:hover{border-color:var(--admin-accent);box-shadow:0 4px 14px #20382b0d}
body[data-portal=admin] .system-metric>.system-metric-link{display:flex;justify-content:space-between;gap:8px;margin-top:16px;padding-top:12px;border-top:1px solid var(--line);font-size:11px;color:var(--admin-accent)}
.system-detail-number{font:600 40px/1.1 var(--font-display);color:var(--ink)!important;margin:20px 0}

/* Scan the inbox first; edit a single case in a focused dialog. */
.system-feedback-toolbar{display:flex;gap:16px;align-items:end;margin-bottom:20px}.system-feedback-toolbar label{display:grid;gap:6px}.system-feedback-toolbar label:first-child{flex:1}.system-feedback-toolbar input{width:100%;box-sizing:border-box}
.system-feedback-list{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}.system-feedback-list:empty{display:none}.system-feedback-row{display:flex;align-items:center;gap:20px;width:100%;padding:20px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);text-align:left;font:inherit;cursor:pointer}.system-feedback-row:last-child{border-bottom:0}.system-feedback-row:hover{background:var(--surface2)}.system-feedback-row-main{flex:1;min-width:0;display:grid;gap:7px}.system-feedback-row strong{font-weight:550;font-size:15px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.system-feedback-meta{font-size:12px;color:var(--muted)}.system-feedback-open{font-size:12px;white-space:nowrap}.system-feedback-row .system-badge{flex-shrink:0}.system-badge[data-state=ny]{background:var(--admin-soft);color:var(--admin-accent)}.system-feedback-message{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg2);padding:20px;border-radius:10px;font-size:16px;line-height:1.7}.system-feedback-dialog{width:min(680px,calc(100vw - 32px))}.system-feedback-dialog .system-feedback-form{grid-template-columns:1fr;margin-top:24px}.system-feedback-dialog .system-feedback-help{font-size:12px;margin:0}.system-feedback-dialog .bm-dialog-actions{margin:0}.system-feedback-dialog textarea{width:100%;box-sizing:border-box}
@media(max-width:700px){.system-feedback-toolbar{align-items:stretch;flex-direction:column}.system-feedback-row{gap:10px;flex-wrap:wrap;padding:16px}.system-feedback-row-main{flex-basis:100%}.system-feedback-row strong{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.system-feedback-open{margin-left:auto}.system-feedback-dialog{padding:20px}.system-feedback-dialog .bm-dialog-actions{flex-wrap:wrap}}
