/* Consultation layouts keep the active System palette and permission-controlled data. */
body.app-page .layout-body:has(.chief-workspace,.chief-review-layout){grid-template-columns:var(--sidebar) minmax(0,1fr)!important}
body.app-page .layout-body:has(.chief-workspace,.chief-review-layout)>.widget-rail{display:none!important}
body.app-page:not(.admin-mode) .main-content:has(.chief-workspace,.chief-review-layout){padding:36px clamp(28px,4vw,72px) 80px!important}
.chief-command-hero,.chief-review-hero{display:flex;justify-content:space-between;align-items:center;gap:35px;border:0!important;border-radius:24px!important;padding:38px 40px!important;margin:0 0 28px!important;background:linear-gradient(120deg,var(--olive),#45513a)!important;color:#f7f2df;overflow:hidden;position:relative}
.chief-command-hero>div:first-child{position:relative;z-index:1;max-width:600px}
.chief-command-hero span,.chief-review-hero>div>span{font-size:9px!important;font-weight:750;letter-spacing:.15em!important;color:#ead58b!important}
.chief-command-hero h1,.chief-review-hero h1{font-size:clamp(30px,3.3vw,48px)!important;line-height:1.1!important;letter-spacing:-.05em!important;font-weight:800!important;color:#fff8e6!important;margin:17px 0!important}
.chief-command-hero p,.chief-review-hero p{font-size:13px!important;line-height:1.85!important;color:#e0e6d4!important;max-width:500px}
.chief-command-hero .btn{margin-top:12px;border-radius:10px}
.chief-team-scene{position:absolute;inset:0 0 0 48%;background-image:url('/assets/chief-team.webp');background-size:cover;background-position:45% center;opacity:.5;mask-image:linear-gradient(90deg,transparent,#000 70%);pointer-events:none}
.chief-review-hero>.btn{flex-shrink:0;background:#ffffff12;color:#fff4d8;border:1px solid #ffffff28;border-radius:10px}
.chief-workspace{grid-template-columns:minmax(0,1fr)!important;gap:30px!important}
.chief-workspace>.chief-menu{position:static;background:transparent!important;border:0!important;padding:0!important;min-width:0}
.chief-workspace .chief-menu>small{display:none}
.chief-workspace .chief-menu .chief-tabs{display:flex!important;gap:8px!important;flex-wrap:wrap!important;padding:0 0 22px!important;border-bottom:1px solid var(--line)!important;overflow:visible!important}
.chief-workspace .chief-menu .chief-tabs button{flex:0 0 auto;min-height:42px!important;padding:12px 16px!important;border-radius:28px!important;background:var(--card)!important;color:var(--text)!important;border:1px solid var(--line)!important;font-size:12px!important;white-space:nowrap!important}
.chief-workspace .chief-menu .chief-tabs button.active{background:var(--olive)!important;color:#fff6da!important;border-color:var(--olive)!important}
.chief-work-area{gap:30px!important}
.chief-work-area .chief-overview{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important}
.chief-work-area .chief-overview>button{border:1px solid var(--line)!important;border-radius:18px!important;padding:24px!important;min-height:145px!important;text-align:left!important;transition:transform .15s}
.chief-work-area .chief-overview>button:hover{transform:translateY(-3px)}
.chief-work-area .chief-overview small{font-size:11px!important;letter-spacing:0!important;color:var(--muted)!important}
.chief-work-area .chief-overview strong{font-size:38px!important;line-height:1.4;letter-spacing:-.05em;color:var(--ink)!important}
.chief-work-area .chief-overview span{font-size:10px!important;color:var(--muted)!important}
.chief-work-area>.chief-content{padding:30px!important;border:1px solid var(--line)!important;background:var(--card)!important;border-radius:20px!important}
.chief-work-area .chief-title{gap:24px;margin-bottom:22px!important}
.chief-work-area .chief-title h2{font-size:25px!important;letter-spacing:-.04em;margin:8px 0!important}
.chief-work-area .chief-title p{font-size:12px!important;line-height:1.85!important;color:var(--muted)!important}
.chief-work-area .panorama-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 24px!important}
.panorama-filters .btn{border-radius:24px;font-size:11px!important;padding:10px 16px!important}
.panorama-filters .btn.active{background:var(--olive)!important;color:#fff4d6!important;border-color:var(--olive)!important}
#panorama-update{margin-left:auto;color:var(--muted);font-size:10px;line-height:1.6}
.chief-work-area .chief-chart-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important}
.chief-work-area .chief-chart{padding:22px!important;background:var(--bg)!important;border:0!important;border-radius:16px!important;min-width:0}
.chief-chart-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}
.chief-chart-head span{font-size:11px;line-height:1.5;max-width:130px;color:var(--text)}
.chief-chart-head strong{font-size:28px!important;color:var(--ink)!important;letter-spacing:-.04em}
.chief-bars{height:155px!important;gap:4px!important;align-items:flex-end;overflow-x:auto}
.chief-bar-column{min-width:10px;flex:1}
.chief-bar{background:var(--gold)!important;min-width:5px;border-radius:4px 4px 0 0!important}
.chief-bar-value{font-size:9px!important;color:var(--muted)!important}
.chief-bar-column>small{font-size:8px!important;color:var(--muted)!important}
.chief-chart>small{display:block;margin-top:15px;font-size:10px;line-height:1.6;color:var(--muted)}
.chief-exact-data{border-top:1px solid var(--line);margin-top:26px;padding-top:20px}
.chief-exact-data>summary{cursor:pointer;color:var(--ink);font-size:12px;font-weight:750;padding:5px 0;display:flex;gap:20px;justify-content:space-between}
.chief-exact-data>summary>span{font-weight:400;color:var(--muted);font-size:10px}
.chief-exact-data[open]>summary{margin-bottom:20px}
.chief-work-area>.chief-feature{background:color-mix(in srgb,var(--gold) 12%,var(--card))!important;border:1px solid var(--line)!important;padding:30px!important;border-radius:20px!important;color:var(--text)!important}
.chief-feature h2{font-size:27px!important;color:var(--ink)!important;letter-spacing:-.04em}
.chief-feature p{font-size:13px;line-height:1.8;color:var(--muted)!important}
.chief-work-area .chief-matrix-scroll{margin-top:20px;border-radius:12px}
.chief-matrix th,.chief-matrix td{padding:16px!important;line-height:1.6}
.chief-title small{font-size:9px!important;letter-spacing:.12em;color:var(--muted)!important}

/* Weekly briefing and individual consultation. No new ratings or automatic decisions. */
.chief-review-layout{display:grid;gap:26px!important;min-width:0}
.review-period-bar{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:24px}
.review-period-bar>div:first-child{margin-right:auto;align-self:center}
.review-period-bar>div:first-child small,.review-period-bar>div:first-child b{display:block}
.review-period-bar>div:first-child small{font-size:8px;letter-spacing:.12em;color:var(--muted);margin-bottom:8px}
.review-period-bar>div:first-child b{font-size:13px;color:var(--ink)}
.review-period-bar .field{margin:0;max-width:180px}
.review-period-bar .btn{min-height:40px;border-radius:10px;font-size:11px}
.review-week-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.review-week-summary>div{background:var(--card);border:1px solid var(--line);padding:25px;border-radius:18px;min-width:0}
.review-week-summary small{display:block;color:var(--muted);font-size:8px;font-weight:750;letter-spacing:.08em}
.review-week-summary b{display:block;color:var(--ink);font-size:38px;line-height:1.3;letter-spacing:-.055em;margin:9px 0}
.review-week-summary b em{font-size:13px;font-style:normal;letter-spacing:0;margin-left:7px;color:var(--muted)}
.review-week-summary span{font-size:10px;line-height:1.7;color:var(--muted);display:block}
.review-briefing{display:flex;align-items:center;justify-content:space-between;gap:26px;background:color-mix(in srgb,var(--gold) 13%,var(--card));border-radius:18px;padding:28px}
.review-briefing small{font-size:8px;font-weight:800;letter-spacing:.13em;color:var(--muted)}
.review-briefing h2{font-size:24px;line-height:1.35;letter-spacing:-.035em;color:var(--ink);margin:10px 0}
.review-briefing p{font-size:12px;line-height:1.8;color:var(--text);max-width:670px;margin:0}
.review-briefing>.btn{flex-shrink:0;background:var(--card);color:var(--ink);border-color:var(--line);border-radius:10px}
.chief-review-layout .review-consultation{background:var(--card)!important;border:1px solid var(--line)!important;border-radius:22px!important;padding:30px!important;margin:0!important;scroll-margin-top:85px}
.review-consultation .chief-title{display:flex;justify-content:space-between;gap:25px;align-items:flex-start;margin:0 0 24px!important}
.review-consultation h2{font-size:26px!important;letter-spacing:-.04em;margin:8px 0!important;color:var(--ink)!important}
.review-consultation .chief-title p{font-size:12px!important;line-height:1.8!important;color:var(--muted)!important;max-width:650px}
.review-display{display:flex;background:var(--bg);padding:4px;border-radius:12px;gap:4px;flex-shrink:0}
.review-display button{border:0;background:transparent;padding:9px 13px;border-radius:9px;color:var(--muted);font-size:11px;cursor:pointer}
.review-display button.active{background:var(--card);color:var(--ink);box-shadow:0 2px 6px #0000000b;font-weight:750}
.review-filter-bar{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:16px;padding:20px;background:var(--bg);border-radius:14px}
.review-filter-bar .field{margin:0;min-width:0}
.review-filter-bar label,.review-period-bar label{font-size:9px!important;text-transform:none!important;letter-spacing:0!important;margin-bottom:8px!important;color:var(--muted)!important}
.review-filter-bar input,.review-filter-bar select,.review-period-bar input{min-height:42px;border-radius:9px!important;background:var(--card)!important;color:var(--text)!important;border:1px solid var(--line)!important;font-size:12px!important}
.review-focus-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:22px 0 6px}
.review-focus-tabs button{background:transparent;border:1px solid var(--line);border-radius:25px;color:var(--muted);padding:10px 13px;font-size:10px;font-weight:700;cursor:pointer}
.review-focus-tabs button.active{background:var(--olive);color:#fff5da;border-color:var(--olive)}
.review-result-count{font-size:10px;color:var(--muted);margin:17px 0!important}
.review-officer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.review-officer{border:1px solid var(--line);border-radius:16px;padding:22px;background:var(--card);min-width:0;break-inside:avoid}
.review-officer>header{display:flex;align-items:center;gap:13px;padding-bottom:20px;min-width:0}
.review-officer>header>div{min-width:0;flex:1}
.review-officer header .avatar{flex-shrink:0;border-radius:12px!important}
.review-officer header small{font-size:9px;color:var(--muted);display:block;margin-bottom:5px}
.review-officer header .chief-name-link{display:block;color:var(--ink);font:750 14px/1.5 Inter,Arial;padding:0;overflow-wrap:anywhere;text-align:left}
.review-officer header div>span{display:block;color:var(--muted);font-size:9px;margin-top:5px}
.review-context{background:color-mix(in srgb,var(--gold) 15%,var(--card));color:var(--text);padding:6px 9px;border-radius:8px;font-size:8px;flex-shrink:0}
.review-officer-metrics,.review-detail-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.review-officer-metrics>div{background:var(--bg);padding:14px 12px;border-radius:12px;min-width:0;display:flex;align-items:flex-start;flex-direction:column}
.review-officer-metrics small,.review-detail-metrics small{display:block;font-size:9px;color:var(--muted);margin-bottom:10px}
.review-officer-metrics b{font-size:18px;font-weight:750;color:var(--ink);letter-spacing:-.035em;line-height:1.4;white-space:nowrap}
.review-officer-metrics div>span:not(.review-grade){font-size:9px;color:var(--muted);margin:4px 0 0}
.review-officer-metrics .review-grade{margin-top:auto;position:relative;top:4px;font-size:8px;padding:4px 6px;line-height:1.5;white-space:nowrap}
.review-officer>footer{display:flex;justify-content:space-between;align-items:center;gap:14px;padding-top:20px;margin-top:20px;border-top:1px solid var(--line)}
.review-officer>footer>span{font-size:9px;color:var(--muted);line-height:1.6}
.review-officer>footer>.btn{font-size:10px;border-radius:9px;white-space:nowrap;background:var(--card);color:var(--ink)}
.review-empty{text-align:center;padding:45px 20px;color:var(--muted);font-size:12px}
.review-empty b{display:block;color:var(--ink);font-size:20px}
.chief-review-layout .chief-review-legend{display:flex;gap:18px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:24px;margin-top:26px;color:var(--muted);font-size:10px}
.chief-review-legend>span{display:flex;gap:8px;align-items:center}
.review-table-view{margin:16px 0 0;overflow:auto;max-width:100%;border-radius:12px}
.review-table-view td small,.review-table-view th small{display:block;font-size:9px;color:var(--muted);margin-top:7px}
.review-detail-metrics{padding:18px;background:var(--bg);border-radius:12px;margin-bottom:20px}
.review-detail-metrics b{display:block;font-size:14px;margin-bottom:8px;color:var(--ink)}
.review-officer[hidden],.review-officer-grid[hidden],.review-table-view[hidden],.review-empty[hidden],.chief-review-table tr[hidden]{display:none!important}
.normal-login-commander{position:absolute;right:0;bottom:20px;width:50%;height:72%;object-fit:contain;object-position:center bottom;mask-image:linear-gradient(0deg,transparent,#000 12%);pointer-events:none}
.system-home-hero .hw-hero-scene{inset:5% -7% 8% -14%;background-position:center;mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent),linear-gradient(0deg,transparent,#000 12%,#000 90%,transparent);mask-composite:intersect}
@media(min-width:1500px){body.app-page:not(.admin-mode) .main-content:has(.chief-workspace,.chief-review-layout){padding-left:clamp(40px,5vw,100px)!important;padding-right:clamp(40px,5vw,100px)!important}.chief-review-layout,.chief-workspace,.chief-command-hero,.chief-review-hero{max-width:1440px;margin-left:auto!important;margin-right:auto!important}}
@media(max-width:1150px){.chief-work-area .chief-overview,.review-week-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}.chief-work-area .chief-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.review-briefing{align-items:flex-start;flex-direction:column}.review-officer-grid{grid-template-columns:1fr}.review-period-bar>div:first-child{flex-basis:100%;margin-bottom:8px}}
@media(max-width:850px){body.app-page .layout-body:has(.chief-workspace,.chief-review-layout){display:block!important}body.app-page:not(.admin-mode) .main-content:has(.chief-workspace,.chief-review-layout){padding:24px 18px 80px!important}.chief-command-hero,.chief-review-hero{padding:28px!important;border-radius:20px!important}.chief-command-hero h1,.chief-review-hero h1{font-size:32px!important}.chief-workspace .chief-menu .chief-tabs{flex-wrap:nowrap!important;overflow:auto!important;padding-bottom:16px!important}.chief-review-hero{align-items:flex-start;flex-direction:column;gap:12px}.chief-review-layout .review-consultation{padding:20px!important}.review-filter-bar{grid-template-columns:1fr;padding:16px}.review-consultation .chief-title{flex-direction:column}.review-week-summary>div{padding:20px}.review-week-summary b{font-size:32px}.chief-work-area>.chief-content{padding:22px!important}.normal-login-commander{width:45%;height:60%;bottom:55px;opacity:.85}}
@media(max-width:550px){.chief-work-area .chief-chart-grid{grid-template-columns:1fr!important}.chief-work-area .chief-overview{gap:10px!important}.chief-work-area .chief-overview>button{padding:18px!important;min-height:125px!important}.chief-team-scene{inset:0 0 0 15%;opacity:.22}.review-period-bar{padding:20px;gap:10px}.review-period-bar .field{max-width:none;width:100%}.review-period-bar .btn{flex:1;white-space:nowrap}.review-officer{padding:16px}.review-officer-metrics{gap:6px}.review-officer-metrics>div{padding:12px 8px}.review-officer-metrics b{font-size:15px}.review-officer header .chief-name-link{font-size:13px}.review-context{font-size:7px}.review-week-summary{gap:10px}.review-week-summary>div{padding:18px}.review-detail-metrics{grid-template-columns:1fr}.normal-login-commander{display:none}.system-home-hero .hw-hero-scene{inset:0 -2% 15px}.system-home-hero .hw-hero-art{min-height:250px}.chief-exact-data>summary{flex-direction:column;gap:8px}}
body:is(.theme-halloween,.theme-christmas) :is(.chief-command-hero,.chief-review-hero){background:linear-gradient(115deg,var(--hw-panel),var(--hw-chrome))!important}
body:is(.theme-halloween,.theme-christmas) :is(.chief-menu .chief-tabs button.active,.panorama-filters .btn.active,.review-focus-tabs button.active){background:var(--hw-lilac)!important;color:#241d2b!important;border-color:var(--hw-lilac)!important}
@media(prefers-reduced-motion:reduce){.chief-overview>button{transition:none!important;transform:none!important}}
@media print{body:has(.chief-review-layout){background:#fff!important;color:#111!important}body:has(.chief-review-layout) :is(.topbar,.sidebar,.widget-rail,.online-fab,.donate-fab,.chief-review-hero>.btn,.review-period-bar,.review-filter-bar,.review-focus-tabs,.review-display,.review-officer footer>.btn,#loading){display:none!important}body.app-page .layout-body:has(.chief-review-layout){display:block!important}body.app-page:not(.admin-mode) .main-content:has(.chief-review-layout){padding:0!important;margin:0!important;width:100%!important}.chief-review-hero{background:#fff!important;color:#111!important;padding:10px 0!important}.chief-review-hero :is(h1,p,span){color:#111!important}.chief-review-hero h1{font-size:26px!important}.review-week-summary,.review-officer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.review-consultation{padding:12px!important}.review-officer{box-shadow:none;break-inside:avoid}.review-officer :is(b,small,span,button){color:#111!important}.review-briefing{padding:15px}.chief-review-legend{break-inside:avoid}}

/* Text and vehicle each keep their own space, including narrow desktop columns. */
.system-home-hero{container-type:inline-size;container-name:system-hero}
@container system-hero (max-width:740px){
 .system-home-hero .hw-hero-content{padding-right:22px;min-width:0}
 .system-home-hero .hw-hero-content p{max-width:240px}
 .system-home-hero .hw-hero-scene{inset:10% 0 14% 0;background-size:contain}
 .system-home-hero .hw-hero-content h1{font-size:clamp(34px,6cqw,44px)}
}
@container system-hero (max-width:520px){
 .system-home-hero .hw-hero-content{grid-column:1/-1;padding:28px 26px 0}
 .system-home-hero .hw-hero-content p{max-width:100%}
 .system-home-hero .hw-hero-art{grid-column:1/-1;min-height:260px;margin:0}
 .system-home-hero .hw-hero-scene{inset:0 4% 20px}
}
/* One continuous scene replaces the isolated vehicle in the normal home hero. */
.system-scene-hero{background:var(--olive);min-height:470px;grid-template-columns:1.06fr 1fr}
.system-scene-hero:before{content:'';position:absolute;inset:0;z-index:0;background-image:var(--home-scene);background-size:cover;background-position:70% center;pointer-events:none}
.system-scene-hero:after{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#1f2c24 0%,#1f2c24ed 28%,#1f2c2499 48%,#1f2c2410 72%),linear-gradient(0deg,#101b20a6,transparent 35%);pointer-events:none}
.system-scene-hero .hw-hero-content{z-index:2;padding:44px 16px 44px 40px}
.system-scene-hero .hw-hero-art{z-index:2;background:none;min-height:430px;pointer-events:none}
.system-scene-hero .hw-hero-art:before,.system-scene-hero .hw-hero-scene{display:none}
.system-scene-hero .hw-art-caption{left:5%;right:5%;bottom:24px;text-shadow:0 2px 8px #000}
.system-scene-hero .hw-season-year{display:none}
.system-scene-hero .hw-hero-chapter{margin-top:32px}
.system-scene-hero h1{font-size:clamp(38px,3.7vw,62px)}
.grau-invitation{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:28px;isolation:isolate;position:relative;overflow:hidden;margin:28px 0 36px;padding:32px 36px;border:1px solid var(--line);border-radius:24px;background:var(--card);color:var(--text)}
.grau-invitation-copy{position:relative;z-index:1}
.grau-invitation small{font-size:9px;letter-spacing:.14em;font-weight:800;color:var(--muted)}
.grau-invitation h2{font-size:clamp(25px,2.8vw,38px);line-height:1.12;letter-spacing:-.045em;color:var(--ink);margin:14px 0}
.grau-invitation p{font-size:12px;line-height:1.8;max-width:350px;color:var(--muted)}
.grau-requirement{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:750;margin:20px 0 16px;color:var(--ink)}
.grau-requirement svg{width:15px;height:15px;color:var(--gold)}
.grau-invitation .btn{display:block;background:var(--olive);color:#fff6df;border:0;border-radius:10px;font-size:11px}
.grau-invitation .btn:disabled{background:var(--line);color:var(--muted)}
.grau-invitation em{display:block;max-width:320px;font-style:normal;font-size:9px;line-height:1.7;color:var(--muted);margin-top:12px}
.grau-invitation-art{position:relative;min-width:0;padding:22px 0 4px;align-self:stretch;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 60%,color-mix(in srgb,var(--gold) 15%,transparent),transparent 70%)}
.grau-invitation-art>span{position:absolute;top:0;right:0;font-size:8px;letter-spacing:.14em;color:var(--muted)}
.grau-invitation-art img{width:100%;max-height:300px;object-fit:contain;filter:drop-shadow(0 18px 12px #0002)}
body:is(.theme-halloween,.theme-christmas) .grau-invitation{background:var(--hw-panel);border-color:var(--hw-border)}
body:is(.theme-halloween,.theme-christmas) .grau-invitation .btn{background:var(--hw-coral);color:#291b28}
/* The Halloween artwork is painted once across the hero, never in a second panel. */
body.theme-halloween .hw-home-hero{background:#261a34!important}
body.theme-halloween .hw-home-hero:before{content:'';position:absolute;inset:0;z-index:0;background:url('/assets/halloween-companions.webp') right center/auto 110% no-repeat;mask-image:linear-gradient(90deg,transparent 22%,#000 65%);pointer-events:none}
body.theme-halloween .hw-home-hero .hw-hero-scene{display:none!important}
body.theme-halloween .hw-home-hero .hw-hero-art{background:none!important}
body.theme-halloween .hw-home-hero .hw-hero-content{z-index:2;background:none!important}
.meeting-pulse{border-radius:20px;margin:28px 0!important}
body:is(.theme-halloween,.theme-christmas) .meeting-pulse{background:var(--hw-panel);color:var(--hw-text);border-color:var(--hw-border)}
body:is(.theme-halloween,.theme-christmas) .meeting-pulse-copy h2{color:var(--hw-text)}
body:is(.theme-halloween,.theme-christmas) .meeting-actions .btn{background:var(--hw-chrome);color:var(--hw-text);border-color:var(--hw-border)}
body:is(.theme-halloween,.theme-christmas) .meeting-actions .btn.active{background:var(--hw-coral);color:#291b28}
@media(max-width:1100px){
 .system-scene-hero{grid-template-columns:1fr;min-height:640px}
 .system-scene-hero:before{inset:42% 0 0;background-size:cover;background-position:75% center;mask-image:linear-gradient(0deg,#000 70%,transparent)}
 .system-scene-hero:after{background:linear-gradient(0deg,#1f2c2440,transparent 42%,#1f2c24 65%)}
 .system-scene-hero .hw-hero-content{padding:32px 32px 0;max-width:480px}
 .system-scene-hero .hw-hero-content p{max-width:100%}
 .system-scene-hero .hw-hero-content h1{font-size:46px}
 .system-scene-hero .hw-hero-art{min-height:280px;margin:0}
 .system-scene-hero .hw-art-caption{bottom:16px}
 .grau-invitation{padding:26px;gap:15px}
}
@media(max-width:700px){
 .system-scene-hero{min-height:650px}
 .system-scene-hero .hw-hero-content{padding:28px 26px 0}
 .system-scene-hero .hw-hero-content h1{font-size:40px}
 .system-scene-hero:before{inset:45% 0 0;background-position:77% center}
 .grau-invitation{grid-template-columns:1fr;padding:26px;margin:24px 0}
 .grau-invitation-art{grid-row:2;min-height:230px;padding:30px 0 0}
 .grau-invitation-art img{max-height:260px}
 body.theme-halloween .hw-home-hero:before{background-position:center bottom;background-size:auto 56%;mask-image:linear-gradient(0deg,#000 38%,transparent 62%)}
}

/* Keep content comfortably separated from the sidebar in every edition. */
body.app-page:not(.admin-mode) .app-shell .main-content:not(:has(.chief-workspace,.chief-review-layout)){padding-left:clamp(24px,2.4vw,44px)!important;padding-right:clamp(24px,2.4vw,44px)!important}
@media(max-width:600px){body.app-page:not(.admin-mode) .app-shell .main-content:not(:has(.chief-workspace,.chief-review-layout)){padding-left:18px!important;padding-right:18px!important}}

/* GRAU campaign: vehicle and location form a single, cinematic composition. */
.grau-invitation{min-height:410px;display:flex;align-items:center;padding:48px;isolation:isolate;background:#14201f!important;border:0!important;box-shadow:0 18px 45px #14201f1a}
.grau-invitation:after{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#101d1cf5 0%,#101d1cd9 28%,#101d1c70 48%,transparent 72%),linear-gradient(0deg,#0e1b20a6,transparent 40%);pointer-events:none}
.grau-invitation .grau-invitation-copy{z-index:2;width:46%;max-width:450px}
.grau-invitation small,.grau-invitation .grau-requirement{color:#f4d56d!important}
.grau-campaign-index{display:block;font-size:9px;letter-spacing:.18em;color:#bccac7;margin:10px 0 28px}
.grau-invitation h2{font-size:clamp(34px,3.4vw,54px);color:#fff9ea!important;letter-spacing:-.045em;margin:12px 0 20px}
.grau-invitation p{font-size:13px;color:#e1e7e0!important;line-height:1.8;max-width:330px}
.grau-invitation .btn{background:#f0cd57!important;color:#14201f!important;font-weight:800;padding:15px 22px}
.grau-invitation .btn:disabled{background:#59655e!important;color:#d6dfd8!important}
.grau-invitation em{color:#c5cfc9!important}
.grau-invitation-art{position:absolute!important;inset:0;padding:0;z-index:0;background:none;display:block}
.grau-invitation-art img{width:100%;height:100%;max-height:none;object-fit:cover;object-position:65% center;filter:none}
.grau-invitation-art>span{z-index:3;top:auto;bottom:24px;right:28px;color:#fff5d8;font-weight:700;text-shadow:0 2px 10px #000}
/* A photographic archive with strong hierarchy and generous image areas. */
.profile-gallery-intro{position:relative;overflow:hidden;padding:42px!important;background:linear-gradient(125deg,var(--olive),#344a3e)!important;color:#fff6df;border-radius:24px!important;gap:32px}
.profile-gallery-intro h2{color:#fff8e7!important;font-size:clamp(32px,3.4vw,52px)!important;line-height:1.06!important;letter-spacing:-.045em}
.profile-gallery-intro p{max-width:510px;color:#d8e2d7!important;line-height:1.8}
.profile-gallery-intro .gallery-eyebrow{color:#f0cd57!important}
.gallery-intro-aside{background:#ffffff0d;padding:28px;border-radius:20px;border:1px solid #ffffff1a;min-width:135px;text-align:center}
.gallery-intro-aside>small{display:block;font-size:8px;letter-spacing:.16em;color:#d4dfd3}
.gallery-intro-aside strong{font-size:54px!important;color:#f1d16b!important}
.gallery-intro-aside>span{color:#e5ecdf!important}
.gallery-explore-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:22px 0!important;background:transparent!important;border:0!important}
.gallery-explore-toolbar :is(select,input){border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:12px;padding:12px;font:inherit;min-width:180px}
.gallery-explore-toolbar input{flex:1}
.profile-gallery-view .cbm-album{border:0;background:transparent;box-shadow:none}
.profile-gallery-view .cbm-album>.card-title,.profile-gallery-view .album-description{display:none}
.profile-gallery-view .cbm-album>.card-body{padding:0!important}
.profile-gallery-view .album-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px!important}
.profile-gallery-view .album-photo{border:0!important;border-radius:18px!important;background:var(--card);overflow:hidden;aspect-ratio:auto!important;box-shadow:0 6px 20px #0000000a}
.profile-gallery-view .album-photo>button:first-child{width:100%;height:100%;display:flex;flex-direction:column;text-align:left;background:var(--card);border:0;padding:0;color:var(--ink)}
.profile-gallery-view .album-photo img{width:100%;height:220px!important;flex-shrink:0;aspect-ratio:auto!important;object-fit:cover;transition:transform .25s}
.profile-gallery-view .album-photo>button:hover img{transform:scale(1.025)}
.profile-gallery-view .album-featured{grid-column:span 2;grid-row:span 2}
.profile-gallery-view .album-featured img{height:100%!important;min-height:360px;flex:1}
.profile-gallery-view .album-photo>button>span{position:static!important;padding:20px!important;background:var(--card)!important;display:grid;gap:9px;color:var(--ink)!important;width:100%}
.profile-gallery-view .album-photo b{font-size:16px;color:var(--ink)!important}
.profile-gallery-view .album-photo small{font-size:9px;color:var(--muted)!important;letter-spacing:.08em}
.profile-gallery-view .album-photo i{float:right;font-size:18px;color:var(--gold)}
.album-photo[hidden]{display:none!important}
.album-viewer-stage{background:#101916;border-radius:16px;overflow:hidden;display:grid;place-items:center;min-height:250px}
.album-viewer-stage #album-full{max-height:62vh;width:100%;object-fit:contain;background:#101916}
.album-lightbox-meta{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0!important}
.album-lightbox-meta>div:first-child{display:grid;gap:6px;text-align:left}
.album-lightbox-meta b{font-size:20px}
.album-lightbox-meta small{color:var(--muted);font-size:10px}
.album-viewer-nav{display:flex;align-items:center;gap:12px;white-space:nowrap}
.album-thumbnails{display:flex;overflow:auto;gap:10px;padding:8px 0}
.album-thumbnails button{padding:3px;background:transparent;border:2px solid transparent;border-radius:10px;flex-shrink:0;cursor:pointer}
.album-thumbnails button[aria-pressed=true]{border-color:var(--gold)}
.album-thumbnails img{width:74px;height:50px;object-fit:cover;border-radius:5px}
.album-keyboard-hint{color:var(--muted);font-size:9px}
.chief-attendance-action{padding:24px!important;border-radius:18px;background:color-mix(in srgb,var(--gold) 12%,var(--card));display:flex;gap:20px;align-items:center;margin:24px 0}
.chief-attendance-action small{display:block;margin-top:7px;font-size:10px;color:var(--muted)}
@media(max-width:1100px){.grau-invitation{padding:32px;min-height:420px}.grau-invitation .grau-invitation-copy{width:52%}.grau-invitation h2{font-size:38px}.profile-gallery-view .album-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-gallery-view .album-featured{grid-row:auto}.profile-gallery-view .album-featured img{height:300px!important;min-height:0}}
@media(max-width:700px){.grau-invitation{min-height:700px;align-items:flex-start;padding:30px 26px}.grau-invitation .grau-invitation-copy{width:100%;max-width:none}.grau-invitation h2{font-size:40px}.grau-campaign-index{margin-bottom:20px}.grau-invitation-art{inset:40% 0 0!important}.grau-invitation-art img{object-position:67% center}.grau-invitation:after{background:linear-gradient(180deg,#101d1c 0%,#101d1cf2 35%,#101d1c80 50%,transparent 75%)}.grau-invitation-art>span{bottom:20px;right:20px;font-size:7px}.profile-gallery-intro{padding:28px!important;flex-direction:column;align-items:flex-start!important}.gallery-intro-aside{display:flex;gap:10px;align-items:baseline;padding:14px 18px;text-align:left}.gallery-intro-aside strong{font-size:32px!important}.profile-gallery-view .album-grid{grid-template-columns:1fr}.profile-gallery-view .album-featured{grid-column:auto}.profile-gallery-view .album-photo img,.profile-gallery-view .album-featured img{height:240px!important}.gallery-explore-toolbar :is(select,input){width:100%;min-width:0}.album-lightbox-meta{align-items:flex-start;flex-direction:column}.chief-attendance-action{flex-direction:column;align-items:flex-start}}
@media(max-width:700px){.profile-gallery-view .album-grid{grid-template-columns:1fr!important}.profile-gallery-view .album-photo:first-child{grid-column:auto!important;grid-row:auto!important}.profile-gallery-view .album-photo img{flex:none!important;min-height:0!important}}
/* 6.18.5: one continuous scene, editable framing, and paired control colors. */
.system-scene-hero{min-height:var(--hero-height,470px)}
@media(min-width:701px){.system-scene-hero .hw-hero-art{min-height:calc(var(--hero-height,470px) - 40px)}}
.system-scene-hero:before{background-position:var(--hero-focus,70%) center}
.system-scene-hero:after{background:linear-gradient(90deg,rgba(22,35,28,var(--hero-shade,.75)) 0%,rgba(22,35,28,.68) 27%,rgba(22,35,28,.18) 57%,transparent 80%),linear-gradient(0deg,#111c1e66,transparent 40%)}
.system-scene-hero h1{font-size:calc(clamp(38px,3.7vw,62px)*var(--hero-title-scale,1))}
.hero-editor{display:grid;gap:22px;margin:18px 0 28px;padding:24px;border-radius:18px;background:var(--card,#fff);border:1px solid var(--line,#d9ded4)}
.hero-editor-preview{min-height:270px;max-width:100%;border-radius:14px;background-size:cover;padding:28px;color:#fff8e8;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:14px;overflow:hidden}
.hero-editor-preview small{color:#ffe29a!important;letter-spacing:.12em;font-weight:800}.hero-editor-preview h3{max-width:60%;margin:0;color:#fff8e8!important;line-height:1.08}.hero-editor-preview p{max-width:55%;color:#eaeede!important;font-size:12px}.hero-editor-preview>span{background:#f0cf55;color:#1f2a20;padding:10px 16px;border-radius:6px;font-weight:800;font-size:12px}
.hero-editor label output{float:right;font-variant-numeric:tabular-nums;color:var(--muted)}.hero-editor input[type=range]{width:100%;accent-color:var(--olive);min-height:36px}.hero-editor>small{color:var(--muted);line-height:1.6}
body.app-page .btn.btn-primary{background:var(--gold)!important;border-color:var(--gold)!important;color:var(--accent-ink,#171914)!important}
body.app-page .btn.btn-primary:hover:not(:disabled){background:var(--gold2)!important;border-color:var(--gold2)!important;color:var(--accent-secondary-ink,#171914)!important}
body.app-page .btn.btn-dark,body.app-page .btn.btn-dark:hover:not(:disabled){background:var(--olive)!important;border-color:var(--olive)!important;color:var(--primary-ink,#fff)!important}
body.app-page .btn.btn-danger,body.app-page .btn.btn-danger:hover:not(:disabled){background:#a82f2b!important;border-color:#a82f2b!important;color:#fff!important}
body.app-page .btn :is(span,b,small,em){color:inherit!important}
body.app-page .app-shell :is(.profile-tabs,.profile-period,.ranking-tabs,.period-switch,.classroom-tabs,.panel-tabs,.timeline-toolbar,.sup-tabs) button:is(.active,[aria-selected=true],[aria-pressed=true]){background:var(--olive)!important;color:var(--primary-ink,#fff)!important}
body.app-page .app-shell :is(.profile-tabs,.profile-period,.ranking-tabs,.period-switch,.classroom-tabs,.panel-tabs,.timeline-toolbar,.sup-tabs) button:is(.active,[aria-selected=true],[aria-pressed=true]):hover{background:var(--olive2)!important;color:var(--secondary-ink,#fff)!important}
body.app-page button:focus-visible,body.app-page a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
body.app-page .btn:disabled{opacity:.65;cursor:not-allowed}
.communication-health{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.communication-health article{border:1px solid var(--line);border-radius:14px;background:var(--card);padding:22px}.communication-health small{display:block;color:var(--muted);font-size:10px;letter-spacing:.08em}.communication-health strong{display:block;font-size:30px;margin:10px 0}.communication-health p{font-size:12px;line-height:1.6;color:var(--muted)}
@media(max-width:700px){.system-scene-hero{min-height:680px}.system-scene-hero:before{inset:37% 0 0;background-position:var(--hero-focus,70%) center}.system-scene-hero:after{background:linear-gradient(180deg,#1f2c24 0%,#1f2c24f2 33%,#1f2c2470 48%,transparent 74%)}.system-scene-hero h1{font-size:calc(40px*var(--hero-title-scale,1))}.hero-editor{padding:16px}.hero-editor-preview h3,.hero-editor-preview p{max-width:90%}.communication-health{grid-template-columns:1fr}}

body.app-page .app-shell .btn.btn-primary{background:var(--gold)!important;color:var(--accent-ink,#000)!important}body.app-page .app-shell .btn.btn-primary:hover:not(:disabled){background:var(--gold2)!important;color:var(--accent-secondary-ink,#000)!important}

.runtime-event-list{display:grid;gap:14px;margin:20px 0}.runtime-event,.startup-report{border:1px solid var(--line);background:var(--card);border-radius:14px;padding:22px}.runtime-event header{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.runtime-event time{margin-left:auto;font-size:11px;color:var(--muted)}.runtime-event p{line-height:1.65;overflow-wrap:anywhere}.runtime-event small,.startup-report p{color:var(--muted);font-size:12px}.runtime-event pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.6}.runtime-event summary{cursor:pointer;font-size:12px;margin-top:16px}.startup-report>div{display:grid;grid-template-columns:80px minmax(140px,1fr) 2fr;align-items:start;gap:16px;padding:16px 0;border-top:1px solid var(--line);font-size:12px;line-height:1.6}.discord-runtime-section{margin-top:36px}.discord-runtime-section>p{color:var(--muted);line-height:1.6}@media(max-width:700px){.startup-report>div{grid-template-columns:70px 1fr}.startup-report>div>span:last-child{grid-column:2}.runtime-event time{width:100%;margin:0}}

/* 6.18.6: an alpha cutout removes the rectangular image seam at every width. */
body.theme-halloween .hw-home-hero{background:radial-gradient(ellipse at 82% 52%,#51315c88,transparent 60%),#261a34!important}
body.theme-halloween .hw-home-hero:before{inset:4px 2% 8px 44%;background:url('/assets/halloween-companions-cutout-v1.png') center/contain no-repeat;mask-image:none;-webkit-mask-image:none;transform:none}
body.theme-halloween .hw-home-hero .hw-hero-art{min-height:430px}
.system-rail-note img{filter:drop-shadow(0 16px 10px #0006);transform:rotate(-5deg);width:112%;max-width:none;margin-left:-6%;padding:8px}
.profile-cover{margin-bottom:20px!important}
.profile-cover .profile-main{gap:24px;align-items:center}
.profile-cover .profile-identity{min-width:0;flex:1}
.profile-cover .profile-name{overflow-wrap:anywhere;line-height:1.15}
.profile-cover .profile-actions{display:flex;flex-direction:column;gap:14px;align-items:flex-end;min-width:140px}
.profile-duty-pill{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:700;padding:8px 12px;border-radius:30px;background:#ffffff16;color:inherit}
.profile-duty-pill i{width:6px;height:6px;border-radius:50%;background:#bbc5bb}
.profile-duty-pill.on-duty i{background:#8fe0b4;box-shadow:0 0 0 4px #8fe0b418}
.profile-achievement-strip{margin:0 0 24px!important;gap:14px;padding:22px!important;border-radius:18px}
.profile-achievement-strip>div{padding:8px 16px!important}
.profile-tabs{gap:8px;padding:8px!important;flex-wrap:wrap;border-radius:14px;margin-bottom:24px!important}
.profile-tabs button{min-height:42px;border-radius:9px!important;padding:10px 18px!important}
.profile-grid{gap:24px!important;align-items:start}
.profile-grid>.card,.profile-grid>div{min-width:0}
.profile-grid .card{margin-bottom:22px!important}
.grau-interest-list{display:grid;gap:16px;margin-top:20px}
.grau-interest-entry{padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.grau-interest-entry header{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}
.grau-interest-entry header small{display:block;color:var(--muted);margin-top:6px}
.grau-interest-entry dt{font-weight:750;font-size:12px;margin:16px 0 6px}
.grau-interest-entry dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:13px}
@media(max-width:700px){body.theme-halloween .hw-home-hero:before{inset:44% 2% 22px;background-position:center bottom}body.theme-halloween .hw-home-hero .hw-hero-art{min-height:310px}.profile-cover .profile-main{flex-wrap:wrap;gap:16px}.profile-cover .profile-actions{width:100%;flex-direction:row;justify-content:space-between;align-items:center}.profile-achievement-strip{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px}.profile-achievement-strip>div{border:0!important;padding:8px!important}.profile-tabs button{flex:1 1 40%;padding:10px!important}.profile-grid{grid-template-columns:1fr!important}}
/* Officer consultations: stable matrix, generous row spacing and legible status. */
.app-page .app-shell .chief-review-layout .chief-review-table{width:100%;min-width:1080px;border-collapse:separate;border-spacing:0;background:var(--card);color:var(--text)}
.app-page .app-shell .chief-review-layout .chief-review-table thead th{position:sticky;top:0;z-index:2;background:var(--card)!important;color:var(--text)!important;font-size:11px!important;letter-spacing:0!important;text-transform:none!important;border-bottom:2px solid var(--line)!important}
.app-page .app-shell .chief-review-layout .chief-review-table tbody :is(td,th){background:var(--card)!important;color:var(--text)!important;border-bottom:1px solid var(--line)!important;font-size:12px;text-align:left;vertical-align:middle}
.app-page .app-shell .chief-review-layout .chief-review-table tbody tr:nth-child(even)>:is(td,th){background:color-mix(in srgb,var(--bg) 55%,var(--card))!important}
.app-page .app-shell .chief-review-layout .chief-review-table tbody tr:hover>:is(td,th){background:color-mix(in srgb,var(--olive) 9%,var(--card))!important;color:var(--text)!important}
.app-page .app-shell .chief-review-layout .chief-review-table .chief-name-link{color:var(--text)!important;font:750 13px/1.5 Inter,Arial;white-space:normal;text-align:left}
.app-page .app-shell .chief-review-layout .chief-review-table :is(td,th) small{color:var(--muted)!important;font-size:11px!important;line-height:1.6}
.app-page .app-shell .chief-review-layout .review-table-view{max-height:72vh;border:1px solid var(--line)}
body.app-page.theme-halloween .app-shell .chief-review-layout .chief-review-table tbody :is(td,th){background:#241c30!important;color:#f9f0e6!important;border-color:#51425f!important}
body.app-page.theme-halloween .app-shell .chief-review-layout .chief-review-table tbody tr:nth-child(even)>:is(td,th){background:#2b2238!important}
body.app-page.theme-halloween .app-shell .chief-review-layout .chief-review-table tbody tr:hover>:is(td,th){background:#3b2c4a!important;color:#fff7ee!important}
body.app-page.theme-halloween .app-shell .chief-review-layout .chief-review-table thead th{background:#36283f!important;color:#f9f0e6!important;border-color:#745887!important}
body.app-page.theme-halloween .app-shell .chief-review-layout .chief-review-table .chief-name-link{color:#fff1e7!important}
body.app-page.theme-halloween .app-shell .chief-review-layout .chief-review-table :is(td,th) small{color:#d3c3dc!important}
.history-toolbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:16px;margin:24px 0}.history-toolbar .field{flex:1;min-width:190px;margin:0}.history-toolbar .btn{min-height:42px}
.officer-history-scroll{overflow:auto;max-height:55vh;border:1px solid var(--line);border-radius:12px;margin:18px 0;overscroll-behavior:contain}.officer-history-table{width:100%;min-width:960px;border-collapse:separate;border-spacing:0;background:var(--card);color:var(--text)}
.officer-history-table :is(td,th){text-align:left;vertical-align:middle;border-bottom:1px solid var(--line);font-size:12px!important;background:var(--card);color:var(--text)}.officer-history-table thead th{position:sticky;top:0;z-index:1;background:var(--bg);font-size:11px!important}.officer-history-table small{display:block;line-height:1.6;color:var(--muted);font-size:11px!important;font-weight:400;margin-top:6px}.officer-history-table select{min-width:240px;max-width:340px}
.officer-note-timeline{display:grid;gap:14px}.officer-note-timeline article{padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--card)}.officer-note-timeline p{white-space:pre-wrap;line-height:1.7}.officer-note-timeline small{color:var(--muted)}
body.theme-halloween .modal :is(.officer-history-table,.officer-history-table td,.officer-history-table th,.officer-note-timeline article){background:#2b2238!important;color:#f9f0e6!important;border-color:#51425f!important}body.theme-halloween .modal .officer-history-table thead th{background:#3b2c4a!important}body.theme-halloween .modal .officer-history-table small{color:#d3c3dc!important}
body.theme-halloween :is(.chief-review-layout,.officer-history,.officer-import) .review-grade{display:inline-flex!important;align-items:center;justify-content:center;font:750 11px/1.5 Inter,Arial!important;border:1px solid transparent;padding:5px 9px!important;border-radius:6px;white-space:nowrap}
body.theme-halloween :is(.chief-review-layout,.officer-history,.officer-import) .review-grade.regular{background:#503b20!important;color:#ffe3a3!important;border-color:#92713a!important}
body.theme-halloween :is(.chief-review-layout,.officer-history,.officer-import) .review-grade.aval{background:#243b65!important;color:#d4e6ff!important;border-color:#587caf!important}
body.theme-halloween :is(.chief-review-layout,.officer-history,.officer-import) .review-grade.novo{background:#473356!important;color:#ecd5ff!important;border-color:#855ca4!important}
.officer-history .review-grade{font-size:11px;white-space:nowrap}
@media(max-width:700px){.history-toolbar{align-items:stretch;flex-direction:column}.history-toolbar .field{min-width:0}.officer-history-scroll{max-height:60vh}.officer-import textarea{min-height:160px}}
@media print{.chief-review-layout .chief-review-table{min-width:0!important;font-size:9px!important}.chief-review-layout .review-table-view{max-height:none!important;overflow:visible!important}.chief-review-layout .chief-review-table thead th{position:static!important}}
.app-page .app-shell .chief-review-layout .chief-review-table .review-grade,.officer-history .review-grade{display:inline-flex;align-items:center;font:750 11px/1.5 Inter,Arial;padding:5px 9px;border-radius:6px;white-space:nowrap}
.officer-history .review-grade.aval{background:#dceafe;color:#1d4678}.officer-history .review-grade.novo{background:#ecdff5;color:#52316e}
/* Put the consultation ahead of decoration during a command meeting. */
.app-page .app-shell .chief-review-hero{min-height:0!important;padding:30px 34px!important;margin-bottom:22px!important}.app-page .app-shell .chief-review-hero h1{font-size:clamp(27px,3vw,38px)!important;line-height:1.2!important;max-width:none!important;margin:12px 0!important}.app-page .app-shell .chief-review-hero p{margin:0!important}
.app-page .app-shell .chief-review-layout .review-week-summary>div{padding:20px 24px!important}.app-page .app-shell .chief-review-layout .review-week-summary b{font-size:29px!important;margin:8px 0!important}.app-page .app-shell .chief-review-layout .review-briefing{padding:20px 24px!important;gap:20px!important}.app-page .app-shell .chief-review-layout .review-briefing h2{font-size:19px!important;margin:6px 0!important}.app-page .app-shell .chief-review-layout .review-briefing p{font-size:12px!important;margin:0!important;max-width:780px}
.app-page .app-shell .chief-review-layout .chief-review-table :is(td,th){border-left:0!important;border-right:0!important}
.app-page .app-shell .chief-review-layout .chief-review-table .review-metric>b{color:var(--text)!important;font-size:17px!important;line-height:1.6;font-variant-numeric:tabular-nums}
body.app-page.theme-halloween .app-shell .chief-review-layout .chief-review-table .review-metric>b{color:#fff4e9!important}
body.theme-halloween .modal .review-detail-metrics b{color:#fff4e9!important}
/* Consent notices and floating buttons must not cover a consultation dialog. */
.modal-bg:has(.officer-history,.officer-import,#review-note){z-index:1400!important}
body:has(.officer-history,.officer-import,#review-note) .toast{z-index:1500!important}
.modal:has(.officer-history,.officer-import){width:min(1320px,96vw)!important;max-width:1320px!important}
/* Explicit consultation colors prevent legacy table and hover rules leaking in. */
.review-discipline{margin-top:12px;max-width:340px;text-align:left;font-size:12px;line-height:1.6;color:var(--text)}
.review-discipline summary{cursor:pointer;font-weight:750;color:var(--text);padding:8px 0}
.review-discipline article{padding:12px 0;border-top:1px solid var(--line)}
.review-discipline article p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0;font-size:12px;line-height:1.7}
.review-discipline-hint{font-size:11px!important;color:var(--muted)!important}
.review-officer>.review-discipline{margin:0 24px 18px;max-width:none}
.history-member-filter{display:flex;align-items:center;gap:10px;margin-bottom:20px;font-size:13px}.history-member-filter input{width:18px;height:18px;accent-color:var(--olive)}
.history-source-status{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;padding:16px 20px;border-radius:12px;background:var(--bg);border:1px solid var(--line);font-size:12px;line-height:1.7}.history-source-status span{flex:1;min-width:200px}.history-source-status a{font-weight:750;text-decoration:underline}.history-source-status.is-stale{border-color:#ad7330}.history-source-status p{flex-basis:100%;margin:0}
.history-evolution{margin:26px 0}.history-evolution h3{font-size:17px}.history-evolution>div{display:flex;gap:16px;overflow:auto;padding-bottom:12px;scroll-snap-type:x proximity}.history-evolution article{flex:0 0 300px;padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--card);scroll-snap-align:start}.history-evolution article>small{display:block;margin-top:8px}.history-evolution dl{display:grid;gap:10px;margin-bottom:0}.history-evolution dl>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.history-evolution dt{font-size:12px}.history-evolution dd{margin:0}
body.app-page .modal .officer-history-table :is(td,th){color:var(--text)!important;background:var(--card)!important}
body.app-page .modal .officer-history-table .chief-name-link{color:var(--text)!important;white-space:normal;text-align:left;font:750 13px/1.6 Inter,Arial}
body.app-page .modal .officer-history-table tbody tr:hover>:is(th,td){background:color-mix(in srgb,var(--bg) 75%,var(--card))!important}
body.app-page.theme-halloween :is(.chief-review-layout,.modal) .review-discipline :is(summary,article b,article p){color:#fff4e9!important}
body.app-page.theme-halloween .modal :is(.history-source-status,.history-evolution article,.officer-history-table td,.officer-history-table th){background:#2b2238!important;color:#fff4e9!important;border-color:#51425f!important}
body.app-page.theme-halloween .modal :is(.history-evolution h3,.history-evolution article>b,.history-evolution dt,.history-source-status b,.history-source-status a,.officer-history-table .chief-name-link){color:#fff4e9!important}
body.app-page.theme-halloween .modal :is(.history-source-status span,.history-evolution small,.history-member-filter){color:#d3c3dc!important}
body.app-page.theme-halloween .modal .officer-history-table tbody tr:hover>:is(th,td){background:#3b2c4a!important}
body.app-page :is(.chief-review-layout,.officer-history,.officer-import,.review-detail-metrics) .review-grade{font:750 11px/1.5 Inter,Arial!important}
body.app-page :is(.chief-review-layout,.officer-history,.officer-import,.review-detail-metrics) .review-grade.ruim{background:#fbe3e4!important;color:#8e202d!important}
body.app-page :is(.chief-review-layout,.officer-history,.officer-import,.review-detail-metrics) .review-grade.regular{background:#fff0c2!important;color:#705000!important}
body.app-page :is(.chief-review-layout,.officer-history,.officer-import,.review-detail-metrics) .review-grade.bom{background:#e0f0e5!important;color:#245e3b!important}
body.app-page :is(.chief-review-layout,.officer-history,.officer-import,.review-detail-metrics) .review-grade.excelente{background:#d5eee9!important;color:#15574b!important}
body.app-page :is(.chief-review-layout,.officer-history,.officer-import,.review-detail-metrics) .review-grade.aval{background:#dceafe!important;color:#1d4678!important}
body.app-page :is(.chief-review-layout,.officer-history,.officer-import,.review-detail-metrics) .review-grade.novo{background:#ecdff5!important;color:#52316e!important}
body.app-page :is(.chief-review-layout,.officer-history,.officer-import,.review-detail-metrics) .review-grade.isento{background:#e5e9ef!important;color:#354454!important}
body.app-page :is(.chief-review-layout,.officer-history,.officer-import,.review-detail-metrics) .review-grade.demitido{background:#f3dee1!important;color:#822c40!important}
body.app-page.theme-halloween :is(.chief-review-layout,.officer-history,.officer-import,.review-detail-metrics) .review-grade.ruim{background:#552b39!important;color:#ffd5de!important}
body.app-page.theme-halloween :is(.chief-review-layout,.officer-history,.officer-import,.review-detail-metrics) .review-grade.regular{background:#503b20!important;color:#ffe3a3!important}
body.app-page.theme-halloween :is(.chief-review-layout,.officer-history,.officer-import,.review-detail-metrics) .review-grade.bom{background:#25473b!important;color:#cff5df!important}
body.app-page.theme-halloween :is(.chief-review-layout,.officer-history,.officer-import,.review-detail-metrics) .review-grade.excelente{background:#1f494a!important;color:#c7f8f0!important}
body.app-page.theme-halloween :is(.chief-review-layout,.officer-history,.officer-import,.review-detail-metrics) .review-grade.aval{background:#243b65!important;color:#d4e6ff!important}
body.app-page.theme-halloween :is(.chief-review-layout,.officer-history,.officer-import,.review-detail-metrics) .review-grade.novo{background:#473356!important;color:#ecd5ff!important}
body.app-page.theme-halloween :is(.chief-review-layout,.officer-history,.officer-import,.review-detail-metrics) .review-grade.isento{background:#39404e!important;color:#e0e8f7!important}
body.app-page.theme-halloween :is(.chief-review-layout,.officer-history,.officer-import,.review-detail-metrics) .review-grade.demitido{background:#552b39!important;color:#ffd5de!important}
.review-evaluation{display:inline-flex;align-items:center;gap:10px;vertical-align:middle}.review-trend{font:800 22px/1 Inter,Arial!important;display:inline-block!important;min-width:18px;text-align:center;cursor:help}
body.app-page:not(.theme-halloween) .app-shell .chief-review-layout .chief-review-table :is(td,th) small,body.app-page:not(.theme-halloween) .modal .officer-history-table small{color:color-mix(in srgb,var(--text) 80%,var(--card))!important}
body.app-page :is(.chief-review-layout,.modal) .review-trend.up{color:#206c39!important}body.app-page :is(.chief-review-layout,.modal) .review-trend.down{color:#a02c3b!important}body.app-page :is(.chief-review-layout,.modal) .review-trend.same{color:#245b9c!important}body.app-page :is(.chief-review-layout,.modal) .review-trend.unavailable{color:#697174!important}
body.app-page.theme-halloween :is(.chief-review-layout,.modal) .review-trend.up{color:#aff0b9!important}body.app-page.theme-halloween :is(.chief-review-layout,.modal) .review-trend.down{color:#ffb7c3!important}body.app-page.theme-halloween :is(.chief-review-layout,.modal) .review-trend.same{color:#a8caff!important}body.app-page.theme-halloween :is(.chief-review-layout,.modal) .review-trend.unavailable{color:#c6b6d2!important}
/* Functional activity history adapts to its actual available column width. */
.activity-page{container:activities / inline-size;padding-top:12px;min-width:0}.activity-page .page-head{gap:20px;flex-wrap:wrap}.activity-page .page-head h1{line-height:1.2;word-break:normal}
body.app-page .app-shell .activity-page .activity-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}.activity-layout>*,.activity-panel{min-width:0}.activity-panel{container:activity-records / inline-size;overflow:hidden;border-radius:16px}
body.app-page .app-shell .activity-page .activity-filters{display:grid;grid-template-columns:minmax(180px,2fr) minmax(135px,1fr) minmax(135px,1fr) auto auto;align-items:end;gap:14px;margin:0;padding:24px;border-bottom:1px solid var(--line)}
.activity-filters .field{min-width:0;margin:0}.activity-filters label{display:block;font-size:12px;font-weight:750;margin:0 0 8px}.activity-filters input{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--text);font:inherit;font-size:13px}.activity-filters .btn{min-height:44px}
.activity-result-count{margin:0;padding:16px 24px;color:var(--text);font-size:12px;line-height:1.6}.activity-pagination{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:20px 24px;border-top:1px solid var(--line);font-size:12px}.activity-pagination>div{display:flex;gap:10px}
body.app-page .app-shell .activity-page .activity-records{max-width:100%;overflow:auto}.activity-page .activity-table{table-layout:fixed;width:100%!important;min-width:960px!important;border-collapse:collapse}
body.app-page .app-shell .activity-page .activity-table :is(td,th){background:var(--card)!important;color:var(--text)!important;word-break:normal!important;overflow-wrap:normal!important;max-width:none!important;padding:20px!important;text-align:left;vertical-align:top;font-size:13px!important;line-height:1.65!important;border:0;border-bottom:1px solid var(--line)}
body.app-page .app-shell .activity-page .activity-table th{font-size:11px!important;background:var(--bg)!important;text-transform:none!important;letter-spacing:0!important;white-space:nowrap!important}.activity-table th:nth-child(1){width:25%}.activity-table th:nth-child(2){width:22%}.activity-table th:nth-child(3){width:39%}.activity-table th:nth-child(4){width:14%}
.activity-person{display:flex;align-items:flex-start;gap:12px;min-width:0}.activity-person>div{min-width:0}.activity-person .avatar{flex:none;width:36px;height:36px;border-radius:10px}.activity-person .chief-name-link{white-space:normal;text-align:left;overflow-wrap:normal;font:750 13px/1.65 Inter,Arial;color:var(--text)!important}
.activity-table small{display:block;font-size:11px;line-height:1.7;color:color-mix(in srgb,var(--text) 80%,var(--card))}.activity-table .activity-date{white-space:nowrap!important;font-variant-numeric:tabular-nums}.activity-table .activity-reason{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;line-height:1.75!important;max-width:none!important;overflow-wrap:anywhere!important;color:var(--text)!important}.activity-read-more{border:0;background:none;padding:8px 0;font:750 12px/1.5 Inter,Arial;text-decoration:underline;cursor:pointer;color:var(--text)!important}.activity-full-reason{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;padding:16px 0}.activity-table .row-cancelled{opacity:1!important}.activity-table .tag{margin-top:8px;display:inline-flex}.activity-empty td{padding:36px!important}
.activity-secondary-table{max-width:100%;overflow:auto!important}.activity-secondary-table>.table{min-width:850px!important}.activity-secondary-table>.table :is(td,th){word-break:normal!important;overflow-wrap:normal!important}.activity-secondary-table>.table td:last-child{min-width:200px}
body.app-page .app-shell .activity-secondary-table .table :is(td,th){background:var(--card)!important;color:var(--text)!important;padding:18px!important;line-height:1.65!important}body.app-page .app-shell .activity-secondary-table .table th{background:var(--bg)!important}
@container activities (min-width:1200px){body.app-page .app-shell .activity-page .activity-layout{grid-template-columns:minmax(0,1fr) 260px}}
/* Keep genuine table semantics and readable columns at every viewport size. */
.activity-scroll-hint{display:none;margin:0;padding:0 24px 14px;font-size:12px;color:var(--text)}
.activity-page .activity-table{display:table!important}.activity-page .activity-table thead{display:table-header-group!important}.activity-page .activity-table tbody{display:table-row-group!important}.activity-page .activity-table tr{display:table-row!important}.activity-page .activity-table td{display:table-cell!important}
@container activity-records (max-width:960px){.activity-scroll-hint{display:block}}
@container activity-records (max-width:850px){body.app-page .app-shell .activity-page .activity-filters{grid-template-columns:1fr 1fr}.activity-filters>.field:first-child{grid-column:1/-1}.activity-filters>.btn{width:100%}}
@container activity-records (max-width:480px){body.app-page .app-shell .activity-page .activity-filters{padding:18px;gap:12px}.activity-result-count,.activity-pagination{padding:16px 18px}.activity-scroll-hint{padding:0 18px 14px}}
body.app-page.theme-halloween .app-shell .activity-page .activity-table :is(td,th){background:#2b2238!important;color:#fff4e9!important;border-color:#51425f!important}body.app-page.theme-halloween .app-shell .activity-page .activity-table th{background:#36283f!important}body.app-page.theme-halloween .app-shell .activity-page :is(.activity-person .chief-name-link,.activity-reason,.activity-read-more,.activity-result-count,.activity-filters label){color:#fff4e9!important}body.app-page.theme-halloween .app-shell .activity-page .activity-table small{color:#d3c3dc!important}
body.app-page.theme-halloween .app-shell .activity-page :is(.activity-panel,.activity-filters,.activity-records,.activity-table,.activity-table tbody,.activity-table tr){background:#2b2238!important}body.app-page.theme-halloween .app-shell .activity-page .activity-table td::before{color:#d3c3dc!important}body.app-page.theme-halloween .app-shell .activity-secondary-table .table :is(td,th){background:#2b2238!important;color:#fff4e9!important}body.app-page.theme-halloween .app-shell .activity-secondary-table .table th{background:#36283f!important}
