/* Reference structure: window tabs, breadcrumb, fixed navigation rail, compact panels. */
.admin-window { width:calc(100vw - 100px);height:calc(100vh - 100px);max-width:1780px;max-height:980px;border-radius:4px; }
.window-topbar { height:48px;min-height:48px;padding:0 0 0 22px;gap:8px; }
.staff-tabs { display:flex;align-self:stretch;gap:6px;overflow-x:auto;min-width:0;max-width:calc(100% - 170px);padding-top:7px;scrollbar-width:thin; }
.staff-tab { display:flex;min-width:155px;max-width:235px;flex-shrink:0;border:1px solid rgba(255,255,255,.09);border-bottom:none;border-radius:7px 7px 0 0;background:rgba(0,0,0,.12); }
.staff-tab.active { background:rgba(149,161,187,.12);border-color:rgba(159,181,218,.35); }
.staff-tab-button { display:flex;gap:10px;align-items:center;flex:1;min-width:0;padding:0 12px;border:0;background:none;color:#c6c9cf;font-size:12px;white-space:nowrap; }
.staff-tab-button>span:last-child { overflow:hidden;text-overflow:ellipsis; }
.staff-tab.active .staff-tab-button { color:#eee; }
.staff-tab-close,.staff-tab-add { background:transparent;border:0;color:#aeb2b9;font-size:19px;padding:0 10px; }
.staff-tab-close:hover,.staff-tab-add:hover { color:#fff;background:rgba(255,255,255,.06); }
.staff-tab-add { height:38px;align-self:center; }
.window-topbar .topbar-actions { margin-left:auto;align-self:stretch;gap:0; }
.window-topbar .topbar-actions { flex-shrink:0; }
.window-topbar .topbar-icon-btn { display:flex;align-items:center;justify-content:center; }
.staff-tabs { max-width:calc(100% - 220px); }
.window-topbar .topbar-icon-btn,.window-topbar .close-btn { border-radius:0;height:100%;width:50px;font-size:18px; }
.staff-breadcrumb { height:42px;flex-shrink:0;padding:0 22px;display:flex;align-items:center;background:rgba(255,255,255,.045);border-bottom:1px solid rgba(255,255,255,.055); }
.staff-breadcrumb .topbar-title { font-size:12px;font-weight:500;gap:14px; }
.staff-breadcrumb .topbar-title>button:not(.topbar-back-btn) { background:none;border:0;color:#b6bac0;padding:4px 0;font:inherit; }
.staff-crumb-divider { color:#899099; }
.staff-breadcrumb #topbar-title-text { color:#e1e3e8; }
.staff-breadcrumb .topbar-back-btn { height:26px;width:24px; }
.staff-breadcrumb .icon-arrow-back { transform:scale(.7); }
.staff-layout { display:flex;flex:1;min-height:0; }
.staff-rail { width:228px;flex-shrink:0;display:flex;flex-direction:column;padding:20px 14px 14px;background:rgba(0,0,0,.08); }
.staff-rail nav { display:flex;flex-direction:column;gap:5px;overflow-y:auto;flex:1; }
.staff-nav-button { display:flex;align-items:center;gap:14px;min-height:44px;padding:10px 13px;border:1px solid transparent;border-radius:3px;color:#c6c6c9;background:transparent;text-align:left;font-size:13px;font-weight:400; }
.staff-nav-button:hover { background:rgba(255,255,255,.065);color:#fff; }
.staff-nav-button.active { background:rgba(180,186,199,.15);border-left-color:#bbc7de;color:#f3f4f6;font-weight:600; }
.staff-nav-icon { width:21px;height:21px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:#e5e7eb; }
.staff-nav-icon svg { width:100%;height:100%; }
.staff-tab .staff-nav-icon { width:17px;height:17px; }
.staff-return { margin-top:16px;display:flex;gap:12px;align-items:center;min-height:36px;padding:8px 12px;border:1px solid rgba(255,255,255,.16);border-radius:3px;background:rgba(255,255,255,.04);color:#d6d6d8;text-align:left;font-size:12px; }
.staff-return:disabled { opacity:.35;cursor:default; }
.staff-layout>.main { padding:20px 22px 14px;min-height:0; }
.cat-scroll { display:block;padding:0; }
.staff-home-section { margin:0 0 28px; }
.staff-home-section h2 { margin:0 0 14px;font-size:15px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;color:#e5e7ea; }
.staff-home-section:last-child { border-top:1px solid rgba(255,255,255,.12);padding-top:24px;margin-bottom:0; }
.staff-quick-grid { display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px; }
.staff-shortcut { min-height:132px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:14px 10px;border:1px solid rgba(255,255,255,.035);border-radius:2px;background:rgba(0,0,0,.24);color:#d7d9dd;font-size:13px;font-weight:500; }
.staff-shortcut .staff-nav-icon { width:29px;height:29px; }
.staff-shortcut:hover { background:rgba(255,255,255,.09);border-color:rgba(178,191,216,.28);color:#fff; }
.staff-recent-empty { grid-column:1/-1;padding:22px 16px;font-size:12px;color:#b9bcc3;border:1px solid rgba(255,255,255,.05);background:rgba(0,0,0,.10); }
.cat-grid.staff-categories { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:none;gap:12px; }
.staff-categories .icon-card { display:flex;flex-direction:row;justify-content:start;gap:18px;min-height:65px;padding:12px 22px;text-align:left; }
.staff-categories .icon-card .icon-badge { width:24px;height:24px; }
.staff-categories .icon-card .icon-badge svg { width:23px;height:23px; }
.staff-categories .icon-card .icon-label { font-size:13px;font-weight:500; }
.tab-content .cat-grid:not(.staff-categories) { max-width:none;grid-template-columns:repeat(4,minmax(0,1fr)); }
.tab-content .cat-grid:not(.staff-categories) .icon-card { min-height:140px; }
.staff-layout .tab-header { padding:10px 12px; }
.staff-layout .tab-header h2 { font-size:16px; }
.staff-layout .pcard-header,.staff-layout .players-list-header { min-height:37px;padding:9px 12px;font-size:12px;font-weight:600; }
.staff-layout .split-layout,.staff-layout .items-layout,.staff-layout .players-layout { padding:0;gap:14px; }
.staff-layout .params-subnav { padding:0 0 14px; }
.staff-layout .input-field { min-height:32px;font-size:12px; }
.staff-layout .btn { min-height:30px;font-size:11px;padding:6px 12px; }
.staff-layout .form-group label { font-size:12px;color:#c6c9ce;font-weight:400; }
.staff-layout .simple-row { padding:9px 12px; }
.staff-layout .simple-title { font-size:12px;font-weight:600; }
.staff-layout .simple-meta { font-size:11px; }
.staff-layout .players-list-col { width:220px; }
.staff-layout .items-cat-col { width:210px; }
.staff-layout .players-col { min-width:200px; }
.staff-layout .players-layout { overflow-x:auto; }
.staff-layout .pcard-header { text-transform:none; }
@media(max-width:1400px) { .staff-rail { width:190px; } .staff-layout>.main { padding:16px; } .staff-quick-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .staff-shortcut { min-height:100px; } .staff-home-section { margin-bottom:20px; } }
@media(max-height:800px) { .admin-window { height:calc(100vh - 50px); } .staff-shortcut { min-height:100px;gap:12px; } .staff-home-section { margin-bottom:18px; } }
.admin-window.staff-window-compact { width:min(1280px,calc(100vw - 160px));height:min(800px,calc(100vh - 140px)); }
.staff-window-compact .staff-rail { width:190px; }
.staff-window-compact .staff-quick-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.staff-window-compact .staff-shortcut { min-height:100px; }

/* DraJi home only: editorial header, tool strip, directory and session rail. */
#page-home .draji-home { display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px; }
#page-home .draji-home-welcome { grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:24px 28px;border-left:3px solid #c7cec5;background:linear-gradient(110deg,rgba(220,225,218,.12),rgba(0,0,0,.12));border-bottom:1px solid rgba(255,255,255,.12); }
#page-home .draji-home-eyebrow { font-size:10px;letter-spacing:.2em;color:#c1c8c1; }
#page-home .draji-home-welcome h1 { font-family:'IBM Plex Sans',sans-serif;font-size:30px;letter-spacing:-.035em;font-weight:500;margin:10px 0 6px;color:#f1f2ef; }
#page-home .draji-home-welcome p { margin:0;font-size:12px;color:#c4c8c6; }
#page-home .draji-home-mark { font-size:44px;line-height:1;font-weight:600;letter-spacing:-.08em;color:rgba(235,240,234,.65);padding-left:22px; }
#page-home .draji-home-mark span { display:block;font-size:8px;letter-spacing:.23em;margin-top:8px; }
#page-home .draji-home .staff-home-section { margin:0;padding:0;border:0; }
#page-home .draji-home h2 { font-size:11px;letter-spacing:.12em;color:#c9ceca;margin-bottom:14px; }
#page-home .draji-home-actions { grid-column:1/-1; }
#page-home .draji-home-actions .staff-quick-grid { display:flex;flex-wrap:wrap;gap:8px; }
#page-home .draji-home-actions .staff-shortcut { min-height:42px;flex-direction:row;gap:10px;padding:10px 16px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.055);font-size:12px; }
#page-home .draji-home-actions .staff-nav-icon { width:17px;height:17px; }
#page-home .draji-home .staff-categories { grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08); }
#page-home .draji-home .icon-card { display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:14px;row-gap:5px;min-height:86px;padding:18px;border:0;border-radius:0;background:rgba(8,10,10,.57);text-align:left; }
#page-home .draji-home .icon-card:hover { background:rgba(145,155,144,.18); }
#page-home .draji-home .icon-badge { grid-row:1/3;align-self:center;color:#d4dad4; }
#page-home .draji-home .icon-label { font-size:13px;align-self:end; }
#page-home .draji-home-description { grid-column:2;font-size:11px;font-weight:400;color:#b7beb9;line-height:1.4; }
#page-home .draji-home-history { padding:18px!important;background:rgba(0,0,0,.19);border-top:2px solid rgba(208,217,207,.3)!important; }
#page-home .draji-home-history .staff-quick-grid { display:flex;flex-direction:column;gap:0; }
#page-home .draji-home-history .staff-shortcut { flex-direction:row;justify-content:flex-start;min-height:48px;padding:12px 0;gap:12px;border:0;border-bottom:1px solid rgba(255,255,255,.09);background:transparent;text-align:left;font-size:12px; }
#page-home .draji-home-history .staff-nav-icon { width:18px;height:18px; }
#page-home .draji-home .staff-recent-empty { background:none;border:0;padding:0;margin:0;line-height:1.8;font-size:12px;color:#bdc4be; }
.staff-window-compact #page-home .draji-home { grid-template-columns:minmax(0,1fr) 210px;gap:18px; }
@media(max-width:1250px) { #page-home .draji-home { grid-template-columns:minmax(0,1fr)!important; } #page-home .draji-home-history { grid-column:1; } }
/* Revised home: compact directory workspace with a dedicated tools rail. */
#page-home .draji-home { grid-template-columns:250px minmax(0,1fr);gap:26px; }
#page-home .draji-home-welcome { grid-column:1/-1;padding:8px 0 22px;border-left:0;background:none; }
#page-home .draji-home-welcome h1 { font-size:27px;margin:7px 0; }
#page-home .draji-home-actions { grid-column:1;grid-row:2; }
#page-home .draji-home-actions .staff-quick-grid { flex-direction:column; }
#page-home .draji-home-actions .staff-shortcut { justify-content:flex-start;min-height:48px;border:0;border-left:2px solid rgba(220,225,218,.2); }
#page-home .draji-home-directory { grid-column:2;grid-row:2/4; }
#page-home .draji-home-history { grid-column:1;grid-row:3;align-self:start; }
#page-home .draji-home .staff-categories { background:none;border:0;gap:12px; }
#page-home .draji-home .icon-card { min-height:110px;border:1px solid rgba(255,255,255,.12);border-radius:5px;background:rgba(25,28,27,.65);padding:22px; }
.staff-window-compact #page-home .draji-home { grid-template-columns:190px minmax(0,1fr); }
#tab-players .players-layout { display:flex;gap:20px;overflow:hidden; }
#tab-players .players-list-col { width:260px;flex:0 0 260px;background:rgba(12,15,14,.58); }
#tab-players .players-list-search { padding:12px;border-bottom:1px solid rgba(255,255,255,.1); }
#tab-players .draji-player-dossier { display:flex;flex:1;min-width:0;min-height:0;flex-direction:column;gap:16px; }
#tab-players .draji-player-tabs { display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid rgba(255,255,255,.14);padding-bottom:12px; }
#tab-players .draji-player-tabs button { padding:12px 16px;border:1px solid transparent;border-radius:4px;background:rgba(0,0,0,.2);color:#c4cac6;font:inherit;font-size:12px;cursor:pointer; }
#tab-players .draji-player-tabs button.active { color:#fff;background:rgba(211,220,210,.15);border-color:rgba(211,220,210,.25); }
#tab-players .draji-player-panel { width:100%;min-width:0;flex:1;display:flex;flex-direction:row;gap:16px;overflow:auto; }
#tab-players .dossier-inactive { display:none!important; }
#tab-players .draji-player-panel>.players-box { flex:1;min-width:0;background:rgba(16,20,18,.48); }
#tab-players .draji-player-panel .pcard-header { min-height:48px;padding:14px 18px; }
#tab-players #players-empty-state { padding:70px 30px; }
#tab-players #players-identity-wrap { padding:20px; }
#tab-players #players-box-info-body { max-width:900px; }
@media(max-width:1250px) { #page-home .draji-home-directory,#page-home .draji-home-actions,#page-home .draji-home-history { grid-column:1;grid-row:auto; } #tab-players .players-list-col { width:220px;flex-basis:220px; } }

/* Reduce the expanded management window uniformly while retaining its layout. */
.admin-window:not(.staff-window-compact){transform:scale(.85);transform-origin:center;}
.staff-count { margin-left:auto;min-width:24px;padding:0 6px;border-radius:9px;background:#d6454b;color:#fff;font-size:10.5px;font-weight:700;line-height:17px;text-align:center;flex:none; }
.icon-card[data-goto] { position:relative; }
.icon-card[data-goto] > .staff-count { position:absolute;top:8px;right:8px;margin:0; }
#page-home .draji-home [hidden] { display:none!important; }
#page-home .draji-home-stats { grid-column:1/-1;display:flex;flex-direction:column;gap:14px;--dhs-panel:rgba(0,0,0,.26);--dhs-line:rgba(255,255,255,.06);--dhs-muted:#a9b1ac;--dhs-text:#f1f2ef;--dhs-blue:#8fc1ff;--dhs-green:#a0dbbb;--dhs-red:#ffabb0;--dhs-gold:#efd39b; }
#page-home .dhs-kpis { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px; }
#page-home .dhs-kpi { position:relative;display:flex;flex-direction:column;gap:8px;min-width:0;padding:16px 18px 18px;background:var(--dhs-panel);border:1px solid var(--dhs-line);border-radius:8px;overflow:hidden; }
#page-home .dhs-kpi::before { content:'';position:absolute;inset:0 auto 0 0;width:2px;background:var(--dhs-accent,#c7cec5);opacity:.85; }
#page-home .dhs-kpi-online { --dhs-accent:var(--dhs-blue); }
#page-home .dhs-kpi-peak { --dhs-accent:#c9a7f5; }
#page-home .dhs-kpi-record { --dhs-accent:var(--dhs-gold); }
#page-home .dhs-kpi-money { --dhs-accent:var(--dhs-green); }
#page-home .dhs-kpi-staff { --dhs-accent:#c7cec5; }
#page-home .dhs-kpi header { display:flex;align-items:center;justify-content:space-between;gap:8px; }
#page-home .dhs-kpi header span { font-size:10.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--dhs-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
#page-home .dhs-kpi header i { display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:7px;background:color-mix(in srgb,var(--dhs-accent) 14%,transparent);color:var(--dhs-accent); }
#page-home .dhs-kpi header svg { width:15px;height:15px; }
#page-home .dhs-kpi strong { font-family:'IBM Plex Sans',sans-serif;font-size:30px;line-height:1.05;font-weight:500;letter-spacing:-.03em;color:var(--dhs-text);font-variant-numeric:tabular-nums;white-space:nowrap; }
#page-home .dhs-kpi strong small { font-size:15px;font-weight:400;color:var(--dhs-muted);margin-left:6px;letter-spacing:0; }
#page-home .dhs-kpi footer { display:flex;align-items:center;gap:8px;min-height:18px;font-size:11.5px;color:var(--dhs-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums; }
#page-home .dhs-kpi em, #page-home .dhs-tip em { display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:999px;font-style:normal;font-size:10.5px;font-weight:600; }
#page-home .draji-home-stats em.up { color:var(--dhs-green);background:rgba(160,219,187,.12); }
#page-home .draji-home-stats em.down { color:var(--dhs-red);background:rgba(255,171,176,.12); }
#page-home .draji-home-stats em.flat { color:var(--dhs-muted);background:rgba(255,255,255,.06); }
#page-home .dhs-kpi-record em.up { color:var(--dhs-gold);background:rgba(239,211,155,.14); }
#page-home .dhs-live { width:7px;height:7px;border-radius:50%;background:var(--dhs-green);box-shadow:0 0 0 0 rgba(160,219,187,.5);animation:dhs-pulse 2s infinite; }
@keyframes dhs-pulse { 70% { box-shadow:0 0 0 7px rgba(160,219,187,0); } 100% { box-shadow:0 0 0 0 rgba(160,219,187,0); } }
@media (prefers-reduced-motion:reduce) { #page-home .dhs-live { animation:none; } }
#page-home .dhs-meter, #page-home .dhs-split { display:block;height:4px;border-radius:2px;overflow:hidden;background:rgba(255,255,255,.08);margin-top:auto; }
#page-home .dhs-meter b { display:block;height:100%;width:0;background:var(--dhs-blue);border-radius:2px;transition:width .5s ease; }
#page-home .dhs-split { background:var(--dhs-green); }
#page-home .dhs-split b { display:block;height:100%;width:0;background:#e9f3ed;transition:width .5s ease; }
#page-home .dhs-legend { display:inline-flex;align-items:center;gap:5px; }
#page-home .dhs-legend::before { content:'';width:7px;height:7px;border-radius:2px;background:var(--dhs-green); }
#page-home .dhs-legend.cash::before { background:#e9f3ed; }
#page-home .dhs-row { display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:10px; }
#page-home .dhs-chart, #page-home .dhs-week { background:var(--dhs-panel);border:1px solid var(--dhs-line);border-radius:8px; }
#page-home .dhs-chart { padding:18px 20px 14px;min-width:0; }
#page-home .dhs-chart-head { display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px; }
#page-home .draji-home-stats h2 { margin:0!important;font-size:13px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--dhs-text); }
#page-home .dhs-chart-head p { margin:4px 0 0;font-size:11.5px;color:var(--dhs-muted); }
#page-home .dhs-switch { display:flex;gap:2px;padding:3px;border-radius:7px;background:rgba(0,0,0,.35);border:1px solid var(--dhs-line); }
#page-home .dhs-switch button { height:26px;padding:0 14px;border:0;border-radius:5px;background:transparent;color:var(--dhs-muted);font:inherit;font-size:11.5px;font-weight:600;cursor:pointer;transition:background .15s,color .15s; }
#page-home .dhs-switch button:hover { color:var(--dhs-text); }
#page-home .dhs-switch button.active { background:rgba(255,255,255,.1);color:var(--dhs-text); }
#page-home .dhs-chart { display:flex;flex-direction:column; }
#page-home .dhs-plot { position:relative;flex:1;min-height:240px; }
#page-home .dhs-plot .dhs-svg { position:absolute;inset:0; }
#page-home .dhs-svg { display:block;width:100%;overflow:visible;color:var(--dhs-blue); }
#page-home .dhs-svg.dhs-money_total { color:var(--dhs-green); }
#page-home .dhs-grid { stroke:rgba(255,255,255,.06); }
#page-home .dhs-axis { font-size:10.5px;fill:#858d88;text-anchor:end;font-variant-numeric:tabular-nums; }
#page-home .dhs-record { stroke:var(--dhs-gold);stroke-dasharray:4 5;opacity:.6; }
#page-home .dhs-record-label { font-size:10.5px;font-weight:600;fill:var(--dhs-gold);text-anchor:end; }
#page-home .dhs-line { fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round; }
#page-home .dhs-guide { stroke:rgba(255,255,255,.14);stroke-dasharray:2 4; }
#page-home .dhs-dot { fill:#0d1012;stroke:currentColor;stroke-width:2;transition:r .15s; }
#page-home .dhs-dot.active { fill:currentColor;r:5; }
#page-home .dhs-day { font-size:10.5px;fill:#858d88;text-anchor:middle;text-transform:capitalize; }
#page-home .dhs-day.active { fill:var(--dhs-text);font-weight:600; }
#page-home .dhs-tip { position:absolute;transform:translate(-50%,-100%);display:flex;flex-direction:column;gap:4px;padding:9px 12px;border-radius:7px;background:rgba(14,17,18,.96);border:1px solid rgba(255,255,255,.12);box-shadow:0 10px 24px rgba(0,0,0,.4);pointer-events:none;white-space:nowrap; }
#page-home .dhs-tip span { font-size:10.5px;color:var(--dhs-muted); }
#page-home .dhs-tip span::first-letter { text-transform:uppercase; }
#page-home .dhs-tip strong { font-size:15px;font-weight:600;color:var(--dhs-text);font-variant-numeric:tabular-nums; }
#page-home .dhs-week { padding:18px 20px;display:flex;flex-direction:column;gap:6px; }
#page-home .dhs-week dl { margin:0;display:flex;flex-direction:column; }
#page-home .dhs-week dl div { display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--dhs-line); }
#page-home .dhs-week dl div:last-child { border-bottom:0; }
#page-home .dhs-week dt { font-size:11.5px;color:var(--dhs-muted); }
#page-home .dhs-week dd { margin:0;display:flex;flex-direction:column;align-items:flex-end;font-size:14px;font-weight:600;color:var(--dhs-text);font-variant-numeric:tabular-nums;text-align:right; }
#page-home .dhs-week dd small { font-size:10.5px;font-weight:400;color:#858d88;text-transform:none; }
.staff-window-compact #page-home .dhs-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }
.staff-window-compact #page-home .dhs-row { grid-template-columns:1fr; }
#page-home .dhs-kpi-record footer { flex-direction:column;align-items:flex-start;gap:2px; }
#page-home .dhs-kpi-record footer small { font-size:10.5px;color:#858d88; }
