/* One navigation shell for every authenticated page. */
body[class] .portal-header{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:28px;min-height:76px;padding:12px 28px;background:#fff;border-bottom:1px solid var(--line);flex-shrink:0}
body[class] .portal-brand{display:flex;align-items:center;flex:none;padding:0 8px 0 0}
body[class] .portal-brand img{display:block;width:108px;height:40px;object-fit:contain;filter:brightness(0) opacity(.86)}
body[class] .portal-nav{display:flex;gap:6px;align-items:center;min-width:0}
body[class] .portal-nav a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 15px;border-radius:10px;white-space:nowrap;color:#526371;font-size:15px;font-weight:600;text-decoration:none;border:1px solid transparent;transition:background .15s,color .15s}
body[class] .portal-nav a:hover{color:#176f68;background:#f0f5f4}
body[class] .portal-nav a[aria-current=page]{background:#e7f2ef;color:#125f59;border-color:#c6ded7;box-shadow:inset 0 -2px #176f68}
body[class] .portal-tools{display:flex;align-items:center;gap:8px;margin-left:auto;flex:none}
body[class] .portal-tools button{font-size:13px;min-height:38px;padding:7px 12px;border-radius:9px;border-color:#d7e0e5;background:#fff}
body[class] .portal-role{font-size:12px;color:var(--muted);margin-right:4px}
body[class] .portal-tools [data-appearance]{background:#f6f8f9}
body[class] #app:has(>.portal-header){min-height:100dvh}
body[class] .portal-header~.business-shell{padding:28px 32px}
body[class] #app:has(>.portal-explore){height:100dvh;display:flex;flex-direction:column}
body[class] .portal-explore{flex:1;min-height:0;height:auto;max-width:none;width:100%;margin:0;padding:26px 32px;overflow:auto;display:block}
body[class] .explore-heading{display:flex;gap:24px;align-items:center;justify-content:space-between;margin-bottom:22px}
body[class] .explore-heading .overline{font-size:11px;letter-spacing:.12em;color:var(--accent)}
body[class] .explore-heading h1{margin:8px 0 0;font-size:30px}
body[class] .explore-mode-switch{display:flex;gap:5px;background:#e6ecef;border:1px solid #dae2e6;border-radius:13px;padding:5px;flex:none}
body[class] .explore-mode-switch button{border:0;background:transparent;color:#526371;box-shadow:none;border-radius:9px;font-size:14px;padding:10px 18px;min-height:44px}
body[class] .explore-mode-switch button[aria-pressed=true]{background:#fff;color:#176f68;box-shadow:0 2px 5px #243c4812}
body[class] .portal-explore .explore-filters{max-height:none;overflow:visible;background:transparent;border:0;margin:0;padding:0}
body[class] .portal-explore .explore-filters>summary{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 16px;margin-bottom:16px;border:1px solid #d4e1df;border-radius:10px;background:#eaf2f0;cursor:pointer;color:#1c5f59;font-weight:600;list-style:none}
body[class] .explore-filters>summary::-webkit-details-marker{display:none}
body[class] .explore-filters>summary>span::before{content:'+';margin-right:10px;font-size:18px}
body[class] .explore-filters[open]>summary>span::before{content:'−'}
body[class] .explore-filters>summary small{font-size:13px;font-weight:400;color:#536b66}
body[class] .compare-builder{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}
body[class] .compare-card{min-width:0;padding:22px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 4px 16px #253b4806}
body[class] .compare-card>header{display:flex;align-items:center;gap:12px;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #e7edef}
body[class] .compare-letter{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#e3f1eb;color:#176f68;font-size:20px;font-weight:700;flex:none}
body[class] .compare-b .compare-letter{background:#eef0fa;color:#59659b}
body[class] .compare-card>header h2{margin:0 0 4px;font-size:21px}
body[class] .compare-card>header p{margin:0;font-size:13px;color:var(--muted)}
body[class] .compare-card>header button{margin-left:auto;min-height:36px;padding:6px 12px;font-size:13px;color:#176f68;background:#f5f9f7;border-color:#d2e1dc;white-space:nowrap}
body[class] .compare-dates{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:12px;margin-bottom:24px}
body[class] .compare-card label{display:grid;gap:7px;font-size:13px;color:var(--muted);min-width:0}
body[class] .compare-card :is(input:not([type=checkbox]),select){width:100%;min-width:0;max-width:none;background:#fafcfc;border:1px solid #d2dde3;border-radius:9px;padding:10px 12px;min-height:44px;font-size:14px;color:var(--ink)}
body[class] .compare-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
body[class] .compare-label-row h3{margin:0;font-size:17px}
body[class] .compare-label-row>span{color:#176f68;font-size:12px;font-weight:650;background:#eaf4f0;padding:4px 9px;border-radius:16px}
body[class] .group-select{margin-bottom:12px}
body[class] .people-pick-toolbar{display:flex;gap:8px;margin-bottom:12px;align-items:center}
body[class] .people-pick-toolbar input{flex:1;min-width:90px}
body[class] .people-pick-toolbar button{font-size:12px;min-height:36px;padding:6px 9px;border:0;box-shadow:none;background:transparent;color:#176f68;white-space:nowrap}
body[class] .compare-people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:228px;overflow:auto;padding:2px;scrollbar-gutter:stable}
body[class] .compare-people>label{display:flex;align-items:center;gap:8px;padding:9px;border:1px solid #dce4e8;border-radius:10px;min-height:58px;color:#435766;cursor:pointer;background:#fff;line-height:1.25;position:relative}
body[class] .compare-people>label:has(input:checked){background:#edf6f2;border-color:#b7d8cc;color:#1c5147}
body[class] .compare-people>label:has(input:focus-visible){outline:2px solid #176f68;outline-offset:1px}
body[class] .compare-people>label[hidden]{display:none}
body[class] .compare-people input{width:16px;height:16px;min-height:16px;flex:none;margin:0;accent-color:#176f68}
body[class] .compare-people label>span:last-child{font-size:13px;font-weight:600;overflow-wrap:anywhere}
body[class] .compare-people small{display:block;font-size:11px;font-weight:400;margin-top:3px;color:var(--muted)}
body[class] .pick-avatar{display:block;flex:none;width:42px;height:42px}
body[class] .pick-avatar .portrait{position:relative;display:block;width:42px;height:42px;min-height:0;border-radius:50%;overflow:hidden;border:2px solid #fff;box-shadow:0 1px 4px #183e331a}
body[class] .pick-avatar .portrait:not(.has-photo)>:not(span){display:none}
body[class] .pick-avatar .portrait:not(.has-photo)>span{position:absolute;inset:0;display:grid;place-items:center;font-size:12px;font-weight:700}
@media(max-width:760px){body[class] .pick-avatar,body[class] .pick-avatar .portrait{width:34px;height:34px}body[class] .compare-people>label{gap:6px;padding:8px}}
body[class] .group-save{margin-top:16px;border-top:1px solid #e6ecef;padding-top:4px}
body[class] .group-save summary{padding:12px 0 4px;font-size:13px;font-weight:600;color:#526371}
body[class] .group-save-fields{display:flex;align-items:flex-end;gap:8px;margin-top:12px}
body[class] .group-save-fields label{flex:1}
body[class] .group-save-fields button{min-height:44px;padding:8px 12px;font-size:13px}
body[class] .compare-submit{display:flex;align-items:center;gap:18px;padding:18px 2px;margin-bottom:8px}
body[class] .compare-submit>p{font-size:12px;color:var(--muted);margin:0;white-space:nowrap}
body[class] .compare-submit .explore-message{padding:0;font-size:13px;flex:1}
body[class] .compare-submit>button{margin-left:auto;padding:12px 24px;min-height:48px;background:#176f68;border-color:#176f68;color:#fff;border-radius:10px;font-size:15px;flex:none;box-shadow:0 4px 10px #176f6820}
body[class] .future-builder{grid-template-columns:minmax(280px,.65fr) minmax(0,1fr)}
body[class] .future-horizon .compare-dates{grid-template-columns:1fr 1fr}
body[class] .future-shortcuts{display:flex;gap:8px;margin-bottom:18px}
body[class] .future-shortcuts button{min-height:36px;border-radius:20px;padding:6px 16px;font-size:13px}
body[class] .future-caption{margin-top:30px;padding:22px;background:linear-gradient(130deg,#edf6f0,#f4f6f9);border-radius:12px}
body[class] .future-caption>span{font-size:12px;color:#176f68;text-transform:uppercase;letter-spacing:.08em}
body[class] .future-caption h3{font-size:22px;margin:10px 0}
body[class] .future-caption p{font-size:14px;line-height:1.5;color:var(--muted);margin:0}
body[class] .portal-explore #explore-results{display:block;min-height:0}
body[class] .portal-explore #explore-results>.section-tabs{display:block;overflow:visible}
body[class] .portal-explore .section-content{max-height:none;overflow:visible}
@media(min-width:2200px){body[class] .portal-explore{padding:30px 40px}.compare-builder{gap:28px}body[class] .compare-card{padding:26px}body[class] .compare-people{grid-template-columns:repeat(3,minmax(0,1fr))}body[class] .compare-people>label{min-height:64px}body[class] .compare-people label>span:last-child{font-size:15px}}
@media(max-width:1350px){body[class] .portal-header{gap:14px;padding:12px 20px}body[class] .portal-nav a{padding:9px 10px;font-size:14px}body[class] .portal-role{display:none}body[class] .compare-people{grid-template-columns:repeat(2,minmax(0,1fr))}body[class] .pick-initials{display:none}body[class] .people-pick-toolbar{flex-wrap:wrap}body[class] .people-pick-toolbar input{flex-basis:100%}}
@media(max-width:1100px){body[class] .portal-header{flex-wrap:wrap;gap:10px;padding:10px 16px}body[class] .portal-nav{order:3;width:100%;overflow-x:auto;scrollbar-width:thin}body[class] .portal-tools{margin-left:auto}body[class] .portal-nav a{flex:none;min-height:40px}body[class] .explore-heading{align-items:flex-start;flex-direction:column;gap:16px}body[class] .portal-explore{padding:22px}body[class] .compare-dates{grid-template-columns:1fr 1fr}body[class] .compare-preset{grid-column:1/-1}body[class] .compare-card{padding:18px}}
@media(max-width:760px){body[class] #app:has(>.portal-explore){height:auto}body:has(.portal-explore){overflow:auto!important}body[class] .portal-explore{overflow:visible;padding:20px 16px}body[class] .portal-header~.business-shell{padding:20px 16px}body[class] .portal-tools{gap:5px}body[class] .portal-tools button{font-size:12px;padding:6px 8px;min-height:36px}body[class] .portal-brand img{width:90px;height:34px}body[class] .portal-header{gap:8px;padding:10px 12px}body[class] .portal-brand{padding:0}body[class] .compare-builder,body[class] .future-builder{grid-template-columns:1fr;gap:16px}body[class] .explore-heading h1{font-size:26px}body[class] .explore-mode-switch{width:100%}body[class] .explore-mode-switch button{flex:1;padding:8px 10px;font-size:13px}body[class] .compare-submit{flex-wrap:wrap;gap:10px}body[class] .compare-submit>button{width:100%;margin:0}body[class] .compare-submit .explore-message{flex-basis:100%}body[class] .explore-filters>summary small{display:none}body[class] .compare-card>header h2{font-size:19px}body[class] .compare-card>header button{font-size:12px;padding:6px 8px}body[class] .compare-people{max-height:240px}body[class] .group-save-fields{flex-wrap:wrap}body[class] .group-save-fields label{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){body[class] .portal-nav a{transition:none}}

/* Consistent page rhythm and horizontal section navigation across the portal. */
:root{--page-space:28px;--block-space:24px;--control-space:12px}
body[class]:not(.auth-body){overflow:auto!important}
body[class] #app{height:auto!important;min-height:100dvh;display:block!important}
body[class] .portal-page{min-height:100dvh}
body[class] .portal-page[hidden]{display:none!important}
body[class] .portal-page>.portal-header{position:sticky;top:0}
body[class] :is(.portal-explore,.portal-header~.business-shell,.design-main){padding:var(--page-space);margin:0;width:100%;max-width:none;height:auto;overflow:visible;display:block}
body[class] .design-shell{display:block!important;height:auto!important;margin:0;min-height:0}
body[class] :is(.sidebar,.compact-navigation){display:none!important}
body[class] .section-navigation{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 24px;padding:0 0 20px;border-bottom:1px solid var(--line)}
body[class] .section-navigation button{min-height:44px;padding:10px 18px}
body[class] :is(.business-title,.explore-heading){margin:0 0 24px}
body[class] :is(.business-title,.explore-heading) h1{margin:8px 0 0}
body[class] .report-context{margin:0 0 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;line-height:1.5}
body[class] .business-shell>p[role=status]{margin:0 0 20px}
body[class] .business-shell>p[role=status]:empty{display:none}
body[class] :is(#business-results,#explore-results,#manager-panel){display:block;height:auto;overflow:visible}
body[class] :is(.design-main,#business-results,#explore-results,#manager-panel)>.section-tabs{display:block;height:auto;overflow:visible}
body[class] .section-tabs>nav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 24px;padding:0}
body[class] .section-tabs>.section-content{display:block;height:auto;max-height:none;overflow:visible;padding:0;scrollbar-gutter:auto}
body[class] .section-content>:is(.panel,.profile-columns,.business-kpis,.data-grid,.season-mode)+:is(.panel,.profile-columns,.business-kpis,.data-grid,.season-mode){margin-top:24px}
body[class] :is(.profile-columns,.business-kpis){gap:20px;margin-bottom:24px}
body[class] .panel>h2,body[class] .panel>h3{margin:0 0 18px}
body[class] .panel>p{margin:14px 0}
body[class] .panel>p:last-child{margin-bottom:0}
body[class] .route-loading{padding:32px;color:var(--muted)}
@media(min-width:2200px){:root{--page-space:36px}}
@media(max-width:760px){:root{--page-space:16px;--block-space:20px}body[class] .section-tabs>nav,body[class] .section-navigation{flex-wrap:nowrap;overflow-x:auto;padding:3px 3px 8px;gap:8px;margin-bottom:20px}body[class] .section-navigation button,body[class] .section-tabs>nav>button{flex:none;white-space:nowrap}body[class] .report-context{align-items:flex-start;flex-direction:column;gap:6px}body[class] :is(.profile-columns,.business-kpis){gap:12px}}

/* Employee directory: independent list and editor, no scroll animation on selection. */
body[class] .admin-dialog{height:min(900px,94dvh);max-height:94dvh;display:flex;flex-direction:column}
body[class] .admin-dialog:not([open]){display:none}
body[class] .admin-head,body[class] .admin-nav{flex:none}
body[class] .admin-content{flex:1;min-height:0;max-height:none!important;padding:24px;overflow:auto;scroll-behavior:auto}
body[class] .admin-content:has(.personnel-section:not([hidden]) [data-panel=staff]:not([hidden])){overflow:hidden}
body[class] .personnel-section:has([data-panel=staff]:not([hidden])){height:100%;display:flex;flex-direction:column}
body[class] .personnel-tabs{margin:4px 0 20px;display:flex;gap:8px;flex:none}
body[class] .staff-workspace{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(380px,1.3fr);gap:24px;flex:1;min-height:0}
body[class] .staff-directory{display:flex;flex-direction:column;min-height:0;min-width:0}
body[class] .staff-directory .admin-fields{grid-template-columns:1fr;gap:12px}
body[class] [data-staff-count]{margin:10px 0;font-size:13px;color:var(--muted)}
body[class] .admin-content .personnel-list{display:grid;grid-template-columns:1fr;gap:8px;overflow:auto;max-height:none;min-height:0;margin:0;padding:3px 8px 3px 3px;align-content:start;overscroll-behavior:contain;scroll-behavior:auto}
body[class] .admin-content .personnel-list>button{min-height:90px;gap:5px;padding:14px 16px;background:#fff;box-shadow:none;border-color:var(--line);content-visibility:auto;contain-intrinsic-size:auto 90px}
body[class] .admin-content .personnel-list>button[aria-pressed=true]{background:#e3f2eb;border:2px solid #176f68;padding:13px 15px;box-shadow:inset 4px 0 #176f68;color:#125c54}
body[class] .admin-content .personnel-list>button[aria-pressed=true] b::after{content:' ✓';color:#176f68}
body[class] .admin-content #employee-form{margin:0;overflow:auto;min-height:0;padding:24px;background:#f6f8f9;border:1px solid var(--line);overscroll-behavior:contain}
body[class] .admin-fields .reporting-toggle{display:flex;flex-direction:row;align-items:center;gap:10px;background:#eaf3ef;padding:12px;border-radius:8px;align-self:end;min-height:44px}
body[class] .admin-fields input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:none;margin:0}
body[class] .employee-photo{display:flex;align-items:center;gap:18px;margin:20px 0 24px}
body[class] .employee-photo .portrait{width:80px;height:80px;min-height:0;flex:none;overflow:hidden;border-radius:50%}
body[class] .employee-photo .portrait:not(.has-photo)>:not(span){display:none}
body[class] .employee-photo .portrait:not(.has-photo)>span{inset:0;display:grid;place-items:center}
body[class] .employee-photo h4{margin:0 0 8px}
body[class] .photo-file-button{position:relative;display:inline-flex;align-items:center;padding:8px 14px;background:#fff;border:1px solid #b7cbd0;border-radius:8px;cursor:pointer;color:#176f68;font-weight:600;overflow:hidden}
body[class] .photo-file-button input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
body[class] .photo-file-button:focus-within{outline:2px solid #176f68;outline-offset:2px}
body[class] .employee-photo small{display:block;margin-top:8px;font-size:12px;color:var(--muted)}
body[class] .photo-editor{display:flex;gap:20px;margin:16px 0 24px;align-items:center;flex-wrap:wrap;padding:16px;background:#fff;border:1px solid var(--line);border-radius:12px}
body[class] .photo-editor canvas{width:160px;height:160px;border-radius:50%;flex:none}
body[class] .photo-adjust{flex:1;min-width:180px;display:grid;gap:10px}
body[class] .photo-adjust label{display:grid;gap:4px;font-size:13px}
body[class] .photo-adjust input[type=range]{padding:0;width:100%;min-height:24px;accent-color:#176f68}
body[class] .photo-adjust>div{display:flex;gap:8px;flex-wrap:wrap}
body[class] [data-photo-message]:empty{display:none}
body[class] .personnel-message:empty{display:none}
@media(max-width:900px){body[class] .staff-workspace{display:block}body[class] .admin-content:has(.personnel-section:not([hidden]) [data-panel=staff]:not([hidden])){overflow:auto}body[class] .personnel-section:has([data-panel=staff]:not([hidden])){height:auto;display:block}body[class] .admin-content .personnel-list{max-height:290px;margin-bottom:20px}body[class] .admin-content #employee-form{overflow:visible;padding:16px}body[class] .employee-photo{gap:12px}body[class] .employee-photo .portrait{width:64px;height:64px}}

body[class] .admin-dialog::backdrop{backdrop-filter:none;background:#172e3b66}
@media(max-width:760px){body[class] .admin-nav{flex-wrap:nowrap;overflow-x:auto;padding:10px;gap:8px}body[class] .admin-nav button{flex:none;white-space:nowrap}}
/* Company and contact workspaces share the same report controls and rhythm. */
body[class] .entity-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
body[class] .entity-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px;background:#e8f2ee;border:1px solid #cbded7;border-radius:14px;margin-bottom:24px}
body[class] .entity-hero h2{font-size:30px;margin:8px 0 10px;overflow-wrap:anywhere}
body[class] .entity-hero p{margin:0;color:var(--muted)}
body[class] .entity-hero>div:last-child{display:grid;gap:8px;text-align:right;flex:none}
body[class] .entity-hero strong{font-size:30px;color:#176f68}
body[class] .entity-hero small,body[class] .entity-hero>div:last-child>span{font-size:13px;color:var(--muted)}
body[class] button.entity-link{padding:2px 0;min-height:32px;background:transparent;border:0;box-shadow:none;justify-content:flex-start;text-align:left;color:#176f68;font-size:15px;white-space:normal}
body[class] button.entity-link:hover{text-decoration:underline;background:transparent}
body.clients-page .table-box td small,body[class] .table-box td>small{display:block;margin-top:5px;color:var(--muted);font-size:12px}
body[class] #clients-results>.section-tabs{display:block}
@media(max-width:1450px){body[class] .portal-header{flex-wrap:wrap}body[class] .portal-nav{order:3;flex-basis:100%;overflow:auto}body[class] .portal-tools{margin-left:auto}}
@media(max-width:760px){body[class] .entity-heading{align-items:stretch;flex-direction:column}body[class] .entity-hero{align-items:flex-start;flex-direction:column;padding:20px}body[class] .entity-hero>div:last-child{text-align:left;flex:auto}body[class] .entity-hero h2{font-size:25px}body.clients-page .business-filters>button{flex:1 1 100%}}

/* Historical company seasonality has its own all-time controls. */
.company-history-active .business-filters,.company-history-active #clients-results>.report-context,.company-history-active .entity-hero>div:last-child{display:none!important}
body[class] .season-history-head{margin:6px 0 20px}
body[class] .season-history-head h2{margin:8px 0 12px;font-size:24px}
body[class] .season-history-head p{color:var(--muted);margin:0}
body[class] .season-history-controls{display:flex;align-items:end;gap:24px;flex-wrap:wrap;margin:0 0 20px}
body[class] .season-history-controls label{display:grid;gap:8px;min-width:200px}
body[class] .season-mode{display:flex;gap:8px;flex-wrap:wrap}
body[class] .season-mode button[aria-pressed=true]{background:#176f68;color:white;border-color:#176f68}
body[class] .season-matrix-title{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}
body[class] .season-matrix-title h3{margin:0}
body[class] .season-matrix-title>span{color:var(--muted);font-size:14px}
body[class] .season-matrix-scroll{overflow:auto;max-width:100%}
body[class] .season-matrix{width:100%;min-width:1020px;border-collapse:separate;border-spacing:4px;table-layout:fixed}
body[class] .season-matrix th,body[class] .season-matrix td{text-align:center;padding:4px;border:0;background:transparent}
body[class] .season-matrix th{font-size:14px;white-space:nowrap}
body[class] .season-matrix small{display:block;font-size:11px;line-height:1.3;margin-top:6px;white-space:normal}
body[class] .season-matrix td:last-child small{color:var(--muted)}
body[class] .season-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:68px;padding:8px 4px;border:1px solid transparent;box-shadow:none}
body[class] .season-cell b{font-size:18px}
body[class] .season-cell.level-0{background:#f1f4f6;color:#6b7d84}
body[class] .season-cell.level-1{background:#e1f0ec;color:#175c56}
body[class] .season-cell.level-2{background:#b4d9cf;color:#174d47}
body[class] .season-cell.level-3{background:#5ba798;color:#102f2b}
body[class] .season-cell.level-4{background:#176f68;color:#fff}
body[class] .season-cell:hover,body[class] .season-cell[aria-pressed=true]{border-color:#173a37;outline:2px solid #176f68;outline-offset:1px}
body[class] .season-future{color:#99a7ac}
body[class] .season-insight{display:grid;gap:6px;padding:16px 0;border-bottom:1px solid var(--line)}
body[class] .season-insight strong{font-size:20px;color:#176f68}
body[class] .season-insight small{color:var(--muted)}
body[class] .season-quality{margin-top:20px}
body[class] .season-quality summary{cursor:pointer;font-weight:600;min-height:40px;padding:8px 0}
@media(max-width:760px){body[class] .season-history-head h2{font-size:21px}body[class] .season-history-controls{display:grid;gap:14px}body[class] .season-mode{display:grid;grid-template-columns:1fr}body[class] .season-matrix-title{align-items:flex-start;flex-direction:column}}

body[class] .company-history-active .business-title{display:none}
body[class] .company-history-active .entity-hero{padding:18px 24px;margin-bottom:14px}
body[class] .company-history-active .entity-hero h2{font-size:25px;margin:4px 0 8px}
body[class] .company-history-active .entity-heading{margin-bottom:14px}
body[class] .company-history-active .season-history-head{margin-bottom:16px}
body[class] .company-history-active .season-history-head h2{font-size:23px;margin:6px 0 10px}

body[class] .season-coverage{display:grid;gap:8px;padding:16px 20px;margin:16px 0 20px;background:#fff6df;border:1px solid #ead5a0;border-radius:12px;color:#675020}body[class] .season-scope{display:grid;gap:8px;max-width:520px;margin-bottom:12px}

body[class] .outreach-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}
body[class] .outreach-tabs button[aria-pressed=true]{background:#176f68;color:#fff}
body[class] .outreach-tabs button span{margin-left:8px;opacity:.8}
body[class] .outreach-list-controls{display:flex;align-items:end;gap:18px;flex-wrap:wrap;margin-bottom:20px}
body[class] .outreach-list-controls label{display:grid;gap:8px;min-width:230px;flex:1}
body[class] .outreach-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
body[class] .outreach-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:18px;min-width:0}
body[class] .outreach-card-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
body[class] .outreach-card h2{font-size:21px;margin:8px 0 0;overflow-wrap:anywhere}
body[class] .outreach-status{padding:6px 10px;border-radius:12px;background:#e5f2ec;color:#176f68;white-space:nowrap;font-size:12px}
body[class] .outreach-reasons{display:grid;gap:10px}
body[class] .outreach-reasons>div{background:#f3f7f6;padding:14px;border-radius:10px;display:grid;gap:6px}
body[class] .outreach-reasons p{margin:0;font-size:14px;color:var(--muted)}
body[class] .outreach-reasons a{font-size:12px}
body[class] .outreach-facts{display:grid;grid-template-columns:1fr 1fr;gap:16px}
body[class] .outreach-facts>div{display:grid;gap:6px}
body[class] .outreach-facts strong{font-size:20px}
body[class] .outreach-facts span{font-size:13px;color:var(--muted)}
body[class] .outreach-card dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;margin:0;font-size:13px}
body[class] .outreach-card dd{margin:0;text-align:right}
body[class] .outreach-actions{display:flex;gap:10px;margin-top:auto;flex-wrap:wrap}
body[class] .outreach-date-form{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin:24px 0;padding:20px;background:#f3f7f6;border-radius:12px}
body[class] .outreach-date-form label{display:grid;gap:8px;max-width:100%;min-width:180px}
body[class] .outreach-date-form select{max-width:440px;width:100%}
@media(max-width:1500px){body[class] .outreach-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){body[class] .outreach-cards{grid-template-columns:1fr}body[class] .outreach-card{padding:18px}body[class] .outreach-tabs{flex-wrap:nowrap;overflow:auto}body[class] .outreach-tabs button{flex:none}body[class] .outreach-date-form{padding:14px}body[class] .outreach-date-form label{min-width:0;width:100%}}

.company-history-active #clients-results>p.business-note{display:none}

/* Shared navigation and evidence views. */
.navigation-history{display:flex;align-items:center;gap:2px;flex-shrink:0}.navigation-history button{white-space:nowrap}.history-menu,.manual-tools{position:relative}.history-menu summary,.manual-tools summary{cursor:pointer;list-style:none;border:1px solid var(--border,#c7d5de);border-radius:10px;padding:10px 13px;white-space:nowrap;background:var(--panel,#fff)}.history-menu nav,.manual-tools nav{position:absolute;z-index:100;top:calc(100% + 8px);left:0;min-width:250px;max-width:calc(100vw - 32px);padding:8px;background:var(--panel,#fff);border:1px solid var(--border,#c7d5de);border-radius:12px;box-shadow:0 12px 40px #162f4426;display:flex;flex-direction:column;gap:5px}.history-menu nav button,.manual-tools nav a{text-align:left;padding:11px 14px;border-radius:7px;color:var(--ink,#203846);white-space:normal}.manual-tools nav a:hover,.history-menu nav button:hover{background:#e5f2ef}.tools-members{display:grid;gap:10px;min-width:170px}.tools-members small{display:inline-block}.insights-stack{display:grid;gap:20px}.insights-select{display:grid;gap:8px;max-width:420px;margin:18px 0}.hours-chart{display:grid;grid-template-columns:repeat(24,minmax(32px,1fr));gap:8px;overflow-x:auto;margin:24px 0}.hours-chart>div{display:flex;flex-direction:column;gap:8px;align-items:center}.hours-chart progress{width:100%;height:10px;accent-color:#18766e}.registry-progress{display:grid;gap:8px;padding:18px 20px;background:#edf6f3;border:1px solid #c7dfd7;border-radius:12px;margin:16px 0}.registry-progress progress{width:100%;height:12px;accent-color:#18766e}.registry-progress span,.registry-progress small{color:#4a6574}.portal-tools{flex-wrap:wrap}.portal-header{gap:12px}.portal-nav{flex-wrap:wrap}.business-kpis{margin:20px 0}.panel>details{margin-top:20px}.panel h2{margin-bottom:16px}
@media(max-width:1100px){.portal-header{flex-wrap:wrap}.portal-nav{order:3;flex-basis:100%;overflow-x:auto;flex-wrap:nowrap}.portal-tools{margin-left:auto}.manual-tools nav{left:auto;right:0}.hours-chart{grid-template-columns:repeat(24,40px)}}
@media(max-width:600px){.navigation-history button span{display:none}.portal-tools{width:100%;justify-content:flex-start}.manual-tools nav{left:0;right:auto}.portal-role{display:none}.portal-header{padding:10px 12px}.registry-progress{padding:14px}.tools-members{min-width:150px}}
@media(prefers-reduced-motion:reduce){progress{animation:none}}

.company-logo{width:42px;height:42px;object-fit:contain;flex-shrink:0;border-radius:8px;background:#fff;padding:4px;border:1px solid #dce5e9;vertical-align:middle}.company-monogram{display:inline-grid;place-items:center;background:#eaf3f1;color:#1a7068;font-size:15px;font-weight:700}.company-heading,.entity-link{display:flex;align-items:center;gap:12px}.company-heading .company-logo{width:52px;height:52px}.entity-link{text-align:left}
.history-menu nav{width:390px;max-height:min(70vh,620px);overflow-y:auto}.history-menu nav button{line-height:1.5;overflow-wrap:anywhere;text-align:left!important;justify-content:flex-start}
/* Focused, keyboard-accessible evidence dialogs on every screen size. */
.insights-detail{width:min(1400px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:88dvh;padding:0;border:1px solid var(--border,#cbdadf);border-radius:20px;background:var(--surface,#fff);color:var(--text,#263746);box-shadow:0 24px 80px #142e3440}
.insights-detail::backdrop{background:#142e3466;backdrop-filter:blur(3px)}
.insights-detail>header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 24px;border-bottom:1px solid #d4e1e5;position:sticky;top:0;background:inherit;z-index:2}
.insights-detail>header h2{margin:0;font-size:24px}
.insights-detail-body{padding:24px;display:grid;gap:20px;min-width:0}
.insights-detail-body p,.insights-detail-body h3{margin:0}
.insights-detail .business-kpis{grid-template-columns:repeat(3,minmax(0,1fr));margin:0}
.insights-detail .table-box{max-height:42dvh}
.calendar-row-open,.response-evidence-open{border:0!important;background:transparent!important;text-align:left!important;justify-content:flex-start!important;box-shadow:none!important;color:var(--accent,#16746e)!important;font:inherit!important;padding:6px 0!important;min-height:32px!important;cursor:pointer}
.calendar-row-open{width:100%;font-weight:650!important;gap:16px}
.data-grid tr:has(.calendar-row-open){cursor:pointer}
.data-grid tr:has(.calendar-row-open):hover td{background:#edf6f4}
.data-grid tr:has(.calendar-row-open):focus-within{outline:2px solid #16746e;outline-offset:-2px}
.pulse-views{margin-block:4px 20px}
@media(max-width:650px){.insights-detail>header,.insights-detail-body{padding:16px}.insights-detail>header h2{font-size:20px}.insights-detail .business-kpis{grid-template-columns:1fr}.insights-detail{max-height:94dvh}.insights-detail .table-box{max-height:44dvh}}

body[class] .insights-detail .business-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
body[class] .business-kpis:has(> :nth-child(5):last-child){grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1000px){body[class] .business-kpis:has(> :nth-child(5):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){body[class] .insights-detail .business-kpis{grid-template-columns:1fr}}

body[class] .pulse-summary:has(> :nth-child(6):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
@media(min-width:1600px){body[class] .pulse-summary:has(> :nth-child(6):last-child){grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:760px){body[class] .pulse-summary:has(> :nth-child(6):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}

.response-review{display:block;color:#9c4928;font-weight:600;margin-top:8px;line-height:1.5}
/* A failed poll must not leave a silent, apparently live report on screen. */
.source-health-banner{margin:12px 20px 0;padding:12px 16px;border:1px solid #d7b86c;border-radius:10px;background:#fff8e8;color:#604714;font-size:14px;line-height:1.5}
.source-health-banner[hidden]{display:none}
