/* Shared, readable, keyboard- and phone-friendly UI. */
:root{--hub-text:#171a20;--hub-muted:#4b5563;--hub-line:#d1d5db;--hub-accent:#a61c30;--data-label:#111;--red:#b51f32}
html{font-size:16px;scroll-padding-top:84px}body{line-height:1.55}
.main-shell,.main-content,.panel,.settings-grid,.team-hub,.overview-middle,.averages-grid,.entry-layout{min-width:0}
.main-content{color:var(--hub-text)}
.main-content :is(p,small,.small,.muted,.metric-foot,.period-caption,.info-footer,.table-footer,.team-hub-footnote,.team-hub-panel-note,.hierarchy-status small,.hierarchy-actions>span,.source-fact>span,.access-identity span){font-size:13px;line-height:1.65;color:var(--hub-muted)}
.main-content :is(h2,h3){color:#111;font-size:18px;line-height:1.4;letter-spacing:.025em}
.main-content :is(.field>span,.daily-report-field>span,.team-hub-selector>span,.team-hub-kpi-label,.metric-label,.team-hub-averages dt,.team-hub-rates span,.source-bar,.ratio-label,.hierarchy-status>span){color:#111;font-size:13px;line-height:1.5;letter-spacing:.025em}
.main-content :is(input,select,textarea){font-size:16px;line-height:1.4;min-width:0;max-width:100%;min-height:44px;color:#111;background:#fff;border-color:#9ca3af;border-radius:8px}
input[type=checkbox],input[type=radio]{accent-color:var(--hub-accent);min-height:22px!important;width:22px;height:22px;flex:0 0 22px}
:is(.btn,.text-button,.icon-button,.segmented button,.team-hub-periods button,.nav-item,.profile-button){min-height:44px;font-size:13px;line-height:1.5;white-space:normal}
.btn{padding:10px 16px;border-radius:8px;justify-content:center}.btn.primary{background:var(--hub-accent);color:#fff;border-color:var(--hub-accent)}
.btn.secondary{color:#222;background:#fff;border-color:#a3a9b4}.text-button.red{color:var(--hub-accent)}.icon-button{min-width:44px}
button:disabled{cursor:not-allowed;opacity:.6}
:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #155eef!important;outline-offset:3px!important;box-shadow:0 0 0 2px #fff!important}
.hub-skip{position:fixed;top:8px;left:12px;z-index:2000;transform:translateY(-180%);padding:12px 18px;background:#fff;color:#111;border:2px solid #155eef;border-radius:8px;font-weight:750}.hub-skip:focus{transform:none}
.hub-period-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:22px}
.hub-period-panel{padding:20px;margin-bottom:20px}.hub-period-pair .hub-period-panel{margin-bottom:0}
.hub-period-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:12px}.hub-period-heading h2{margin:0}
.hub-period-presets,.hub-daily-presets{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.hub-daily-presets{padding:0 22px}
.hub-period-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end}.hub-period-form .field{margin:0;min-width:0;display:flex;flex-direction:column;gap:6px}.hub-period-form input{width:100%}
.hub-period-note{margin:12px 0 0!important;font-size:12px!important;color:#374151!important;line-height:1.65!important;overflow-wrap:anywhere}
.hub-period-panel .inline-error,.hub-history-controls .inline-error{padding:12px;background:#fff1f2;border-left:3px solid #a61c30;color:#851327;line-height:1.6;margin-top:12px}
.hub-period-panel .inline-error .btn,.hub-history-controls .inline-error .btn{margin-left:12px}
.hub-history-controls{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center;width:100%;padding:16px 0}.hub-history-toggle{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:14px!important;color:#111!important;font-weight:750;cursor:pointer}.hub-history-controls p{margin:0}.hub-history-controls .hub-period-note{flex-basis:100%}
.hub-history-note{display:flex;flex-direction:column;align-items:flex-start;gap:7px;max-width:310px;margin-top:7px}.hub-history-note small{white-space:normal!important;font-size:12px!important;color:#4b5563!important}.hub-archived-tag{font-size:11px;font-weight:800;padding:3px 8px;border:1px solid #9ca3af;border-radius:5px;color:#374151;background:#f3f4f6}
.team-hub-roster>.hub-history-controls{padding:0 22px 18px}.roster-filter{flex-wrap:wrap;gap:12px}.hub-roster-number{width:32px;height:32px;min-width:32px;font-size:13px;font-weight:800;color:#111;background:#f3f4f6;border:1px solid #b8bec8;border-radius:7px}
.table-scroll,.team-hub-table-wrap,.daily-report-table-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
:is(.agent-table,.team-hub-table,.daily-report-table) :is(th,td){font-size:13px;line-height:1.55;padding:14px 12px}
:is(.agent-table,.team-hub-table,.daily-report-table) th{color:#111}.agent-table td{color:#252b36}.agent-table .agent-link strong{font-size:14px}
.status-pill{font-size:11px!important;white-space:nowrap}.status-pill.posted{color:#14532d;background:#e8f5ec}.status-pill.pending{color:#703516;background:#fff2dd}
.sidebar :is(.nav-item,.profile-button){font-size:13px;color:#e5e7eb}.sidebar .nav-item.active{color:#fff}.sidebar-note span,.profile-button small{color:#c4c9d4;font-size:12px}
.team-hub-kpis{grid-template-columns:repeat(auto-fit,minmax(165px,1fr))}.team-hub-kpi-label{min-height:40px}.team-hub-person{min-width:0}.team-hub-person strong{font-size:14px}.team-hub-members{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.page-heading,.panel-heading,.section-toolbar,.table-controls,.heading-actions,.team-hub-toolbar{flex-wrap:wrap;gap:14px}.segmented{display:flex;flex-wrap:wrap;gap:4px}.chart-wrap svg{max-width:100%;height:auto}.chart-label{font-size:12px;fill:#252b36}
@media(max-width:1200px){.hub-period-pair{grid-template-columns:1fr}.averages-grid.three-periods{grid-template-columns:1fr}.hub-period-form{grid-template-columns:1fr 1fr auto}.metric-number{font-size:clamp(24px,4vw,38px)}}
@media(max-width:760px){
 .main-content{padding:20px 14px!important}.main-shell{margin-left:0!important;width:100%}.topbar{padding:10px 12px!important;min-height:64px;gap:8px}.breadcrumb{min-width:0;flex:1}.breadcrumb>span{display:none}.breadcrumb>strong{font-size:12px;overflow-wrap:anywhere}.topbar-right{gap:2px}.topbar-right .sync-state,.topbar-divider{display:none}
 .page-heading{align-items:stretch;flex-direction:column}.page-heading h1{font-size:28px}.heading-actions{display:flex;flex-wrap:wrap;width:100%}.heading-actions>label{flex:1;min-width:155px}.heading-actions .btn{flex:1;min-width:140px}
 .hub-period-panel{padding:16px}.hub-period-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.hub-period-form .btn{grid-column:1/-1;width:100%}.hub-period-heading .small-tag{font-size:11px}.hub-period-presets .btn{flex:1}
 .overview-middle,.entry-layout,.settings-grid,.ratio-grid,.leaderboard-highlights,.team-hub-insights,.hierarchy-form,.form-grid{grid-template-columns:minmax(0,1fr)!important}
 .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.hero-metric{grid-column:1/-1}.team-hub-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.team-hub-kpi-total{grid-column:1/-1}
 .team-hub-members{grid-template-columns:1fr}.team-hub-toolbar{display:flex;flex-direction:column;align-items:stretch}.team-hub-selector,.team-hub-period-control,.team-hub-search{width:100%}.team-hub-context{flex-wrap:wrap;gap:12px}.team-hub-context>div{flex-wrap:wrap}
 .panel-heading{padding:18px 16px}.table-controls{width:100%}.table-controls .search-box{flex:1;min-width:0}.table-controls>.btn{width:100%}.roster-filter{padding:12px 16px}.roster-filter>span{font-size:12px}.team-hub-section-heading{flex-wrap:wrap}.team-hub-section-heading .team-hub-search{margin-left:0}
 .daily-report-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px}.daily-report-filters>svg{display:none}.daily-report-filters .btn,.daily-report-filters>span{grid-column:1/-1}.daily-report-field{min-width:0}.daily-report-field input{width:100%}
 .modal-overlay{padding:10px!important;align-items:center}.modal{width:100%!important;max-width:100%;max-height:calc(100dvh - 20px);overflow-y:auto}.modal :is(input,select){font-size:16px}.app-footer{flex-wrap:wrap;gap:10px}.main-content small{font-size:12px}
 .sidebar{max-width:min(300px,88vw);padding-bottom:max(16px,env(safe-area-inset-bottom));overflow-y:auto;max-height:100dvh}.sidebar .nav-item{padding:12px 16px}.team-hub-targets,.monthly-target-rollup-values{flex-wrap:wrap;gap:14px}
}
@media(max-width:360px){.hub-period-form{grid-template-columns:1fr}.kpi-grid,.team-hub-kpis{grid-template-columns:1fr!important}.daily-report-filters{grid-template-columns:1fr}.topbar .brand-logo-mobile{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media(forced-colors:active){button,input,select,.hub-roster-number,.hub-archived-tag{border:1px solid ButtonText!important}.hub-history-toggle input{appearance:auto}}
/* Minimum legible secondary text; retain larger metric values. */
.main-content :is(.eyebrow,.small-tag,.count-badge,.team-hub-eyebrow,.team-hub-privacy,.team-hub-basis,.team-hub-period-control>span,.team-hub-period-tag,.team-hub-member-tags,.team-hub-history-note,.team-hub-partial-label,.team-hub-reported,.monthly-target-rollup-values span,.source-fact>span,.approval-step,.access-flow,.entry-note,.progress-labels,.month-stats span,.year-summary-label,.year-label){font-size:12px;line-height:1.6;color:#475467}
.main-content .btn,.main-content .text-button{font-size:13px;min-height:44px}.main-content :is(.team-hub-periods button,.segmented button){font-size:13px;min-height:44px}
.main-content .agent-table .rank,.main-content .team-hub-member-tags span{font-size:12px}
.breadcrumb,.sync-state,.sidebar .workspace-tag,.app-footer{font-size:12px;line-height:1.5}
.roster-table :is(th,td):first-child{position:sticky;left:0;background:#fff;z-index:1;min-width:48px}.roster-table :is(th,td):nth-child(2){position:sticky;left:48px;background:#fff;z-index:1;min-width:170px;max-width:260px}
@media(max-width:760px){
 .team-hub-heading{display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;align-items:start!important;gap:12px!important;padding:18px 16px!important}.team-hub-heading>div{min-width:0!important;width:auto!important;max-width:none!important}.team-hub-heading h2{font-size:20px!important}.team-hub-heading .team-hub-heading-icon{grid-column:1;grid-row:1}.team-hub-heading>div{grid-column:2}.team-hub-heading .team-hub-manage{grid-column:1/-1;width:100%;margin:0}
 .team-hub-heading p{font-size:13px!important;line-height:1.6!important}.team-hub-eyebrow{font-size:11px!important;line-height:1.5!important;letter-spacing:.06em!important}.team-hub-basis{align-items:flex-start}.team-hub-basis>span{font-size:12px!important;line-height:1.5!important}.team-hub-privacy>span{font-size:12px!important}
 .monthly-target-rollup-header{flex-wrap:wrap;gap:12px}.monthly-target-rollup-header>.btn{width:100%}.monthly-target-rollup-values{display:grid!important;grid-template-columns:1fr!important}.team-hub-targets{grid-template-columns:1fr!important}.team-hub-rates{grid-template-columns:1fr 1fr}.team-hub-section-heading>div{min-width:0}
 .roster-table :is(th,td):nth-child(2){min-width:150px;max-width:210px}
}

.hub-period-tabs{margin:0 0 16px;max-width:100%;width:max-content}.hub-period-tabs button{padding:12px 18px}.hub-range-summary{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0 0;border-top:1px solid #e0e4eb;padding-top:14px}.hub-range-summary dt{font-size:12px;color:#475467;line-height:1.5}.hub-range-summary dd{margin:6px 0 0;font-size:22px;font-weight:750;color:#111;font-variant-numeric:tabular-nums;white-space:nowrap}
.main-content :is(.team-hub-context small,.team-hub-kpi-coverage,.team-hub-kpi-coverage small,.team-hub-kpi-coverage span,.team-hub-date-caption,.team-hub-context span,.team-hub-total-caption){font-size:12px;line-height:1.5}
@media(max-width:760px){.team-hub-kpi-total{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:16px!important}.team-hub-kpi-total>div{width:100%!important;min-width:0!important}.team-hub-kpi-total strong{white-space:nowrap!important;font-size:clamp(26px,8vw,38px)!important}.hub-period-tabs{width:100%}.hub-period-tabs button{flex:1;min-width:0;padding:10px 8px;font-size:12px!important}.team-hub-eyebrow{font-size:12px!important}}
@media(max-width:760px){.sidebar:not(.open){visibility:hidden}.sidebar.open{visibility:visible}}
.main-content :is(.team-hub-reporting,.team-hub-reporting span,.team-hub-context .team-hub-date-range,.team-hub-kpi-foot,.team-hub-member-subtitle){font-size:12px!important;line-height:1.5}

body .main-content .hub-text-floor{font-size:12px!important;line-height:1.5!important}
