/* Selected changes 1–6 only. Existing component shadows and radii are retained. */
@font-face{font-family:Inter;src:url('/static/admin/fonts/Inter-variable.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
#workspace,.request-details-dialog,#editor,#account-dialog{font-family:Inter,'Segoe UI',Arial,sans-serif;font-optical-sizing:auto}
#workspace input,#workspace select,#workspace textarea,#workspace button,.request-details-dialog button{font-family:inherit}
#workspace .stats .stat{--kpi-tone:var(--brand);--kpi-rgb:var(--brand-rgb);background:var(--admin-surface);border-top-color:var(--kpi-tone)}
#workspace .stats .stat:nth-child(2){--kpi-tone:#27845b;--kpi-rgb:39,132,91}
#workspace .stats .stat:nth-child(3){--kpi-tone:#a23e58;--kpi-rgb:162,62,88;--stat-icon:url('/static/admin/icons/circle-x.svg')}
#workspace .stats .stat:nth-child(4){--kpi-tone:#64748b;--kpi-rgb:100,116,139}
#workspace .stats .stat::before{background:none}
#workspace .stats .stat::after{background:var(--kpi-tone);opacity:.55}
#workspace .stats .stat:hover{border-color:rgba(var(--kpi-rgb),.42);border-top-color:var(--kpi-tone)}
#workspace .stats .stat strong{font-weight:700;letter-spacing:-.75px}
/* A heading on the page canvas, with an icon matching the selected view. */
#workspace #page-title{display:inline-flex;align-items:center;gap:10px;padding:0;border:0;background:transparent;box-shadow:none;letter-spacing:-.65px;font-weight:650;line-height:1.35}
[data-theme="dark"] #workspace #page-title{background:transparent;border:0}
#workspace #page-title::before{content:'';display:block;flex:0 0 21px;width:21px;height:21px;background:var(--brand);mask:var(--heading-icon,url('/static/admin/icons/chart-column.svg')) center/contain no-repeat;-webkit-mask:var(--heading-icon,url('/static/admin/icons/chart-column.svg')) center/contain no-repeat}
#workspace:has(nav button[data-view="users"].active){--heading-icon:url('/static/admin/icons/user-round.svg')}
#workspace:has(nav button[data-view="add-user"].active){--heading-icon:url('/static/admin/icons/plus.svg')}
#workspace:has(nav button[data-view="settings"].active){--heading-icon:url('/static/admin/icons/settings.svg')}
#workspace:has(nav button[data-view="requests"].active){--heading-icon:url('/static/admin/icons/file-pen.svg')}
#workspace:has(nav button[data-view="approved"].active){--heading-icon:url('/static/admin/icons/check-square.svg')}
#workspace:has(nav button[data-view="rejected"].active){--heading-icon:url('/static/admin/icons/circle-x.svg')}
#workspace:has(nav button[data-view="pending"].active){--heading-icon:url('/static/admin/icons/refresh-cw.svg')}
#workspace:has(nav button[data-view="bonuses"].active){--heading-icon:url('/static/admin/icons/sliders.svg')}
#workspace:has(nav button[data-view="messages"].active){--heading-icon:url('/static/admin/icons/message-square.svg')}
#workspace:has(nav button[data-view="trial-blocks"].active){--heading-icon:url('/static/admin/icons/key-round.svg')}
/* Preserve expanding sections; replace large filled section headers with labels. */
#workspace .nav-group summary{background:transparent;border-color:transparent;color:#98a3b2;font-size:10px;font-weight:650;text-transform:uppercase;letter-spacing:1.25px;padding:6px 12px;min-height:28px}
#workspace .nav-group summary:hover{background:transparent;color:#e3e7ed}
#workspace .nav-group summary::after{width:6px;height:6px;border-color:#7e8999;border-width:1.5px}
#workspace .nav-group-links{padding-top:4px}
#workspace aside nav .nav-group-links button{font-weight:550;line-height:1.5}
/* Date shortcuts share one track; only the active option appears filled. */
#workspace .request-filter-panel .date-presets{display:flex;flex-wrap:wrap;width:fit-content;max-width:100%;gap:2px;padding:3px;background:var(--admin-head);border:1px solid var(--admin-border)}
#workspace .request-list .request-filter-panel .date-presets button{background:transparent;border-color:transparent;color:var(--admin-muted);box-shadow:none;min-height:29px;padding:4px 10px;font-size:11px;font-weight:550}
#workspace .request-filter-panel .date-presets button:hover{background:var(--admin-hover);color:var(--admin-text)}
#workspace .request-filter-panel .date-presets button[aria-pressed="true"]{background:var(--admin-surface);border-color:var(--admin-border);box-shadow:none;color:var(--brand);font-weight:650}
/* Neutral charcoal instead of blue surfaces, with status colors kept distinct. */
html[data-theme="dark"]{--admin-page:#18191c;--admin-surface:#232529;--admin-head:#2b2e33;--admin-hover:#303339;--admin-text:#eeeff2;--admin-muted:#b1b5bf;--admin-border:#3d4149;--premium-shadow:0 4px 18px #050a142e}
[data-theme="dark"] #workspace aside{background:linear-gradient(165deg,#202226 0,#141619 45%,#17191c 100%);border-right-color:#34373e}
[data-theme="dark"] #workspace input,[data-theme="dark"] #workspace select,[data-theme="dark"] #workspace textarea{background:#1c1e22;border-color:#454a54;color:var(--admin-text)}
[data-theme="dark"] #workspace table th{color:#c5c8d0}
[data-theme="dark"] #workspace aside nav .nav-group-links button:hover{background:#2b2e34;border-color:#444952}
[data-theme="dark"] #workspace .stats .stat:nth-child(2){--kpi-tone:#68b58d;--kpi-rgb:104,181,141}
[data-theme="dark"] #workspace .stats .stat:nth-child(3){--kpi-tone:#d1869a;--kpi-rgb:209,134,154}
[data-theme="dark"] #workspace .stats .stat:nth-child(4){--kpi-tone:#a4aab6;--kpi-rgb:164,170,182}
@media(max-width:640px){#workspace #page-title{font-size:18px;gap:8px}#workspace #page-title::before{width:18px;height:18px;flex-basis:18px}#workspace .request-filter-panel .date-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}#workspace .request-list .request-filter-panel .date-presets button{flex:1 1 calc(33% - 4px);padding:5px 6px;white-space:nowrap}#workspace .nav-group summary{font-size:10px}}
