/* Agency Console 2.2: readable text without browser zoom or clipped controls. */
:root{--sidebar:250px;--ui-font-xs:14px;--ui-font-sm:15px;--ui-font-md:16px;--ui-font-lg:18px;--pro-muted:#4e6055;--muted:#4e6055;font-size:var(--admin-body)}
body{font-size:var(--admin-body);line-height:1.55}
/* Legacy component rules use !important. This layer deliberately follows them. */
body :is(p,label,li,dt,dd,td,th,input,select,textarea,button,.btn,.plain-link){font-size:var(--admin-body)!important;line-height:1.5!important}
body :is(small,.minor,.secondary,.hint,.form-note,.eyebrow,.pro-eyebrow,.nav-group-title,.side-brand-copy small,.login-note,.agency-status,.language-control,.brand-subtitle,.topbar-subtitle,.page-subtitle){font-size:var(--admin-small)!important;line-height:1.55!important;letter-spacing:normal!important}
body :is(.badge,.smart-tag,.tag,.chip,.mini-chip,.release-badge,.recovery-kind,.launch-stage,.launch-target,.pro-tag,.pro-step span){font-size:var(--admin-small)!important;line-height:1.45!important;padding:5px 9px!important;white-space:normal;max-width:100%}
body :is(h1){font-size:14px!important;line-height:1.25!important}
body :is(h2){font-size:14px!important;line-height:1.3!important}
body :is(h3,.pro-focus h3){font-size:14px!important;line-height:1.35!important}
body :is(h4){font-size:14px!important;line-height:1.4!important}
body :is(.entity-card-title strong,.product-card .plain-link strong,.dash-launch-main .plain-link strong,.subscription-card-title strong){font-size:14px!important;line-height:1.45!important}
body :is(.card-field strong,.dash-launch-detail strong,.health-row strong,.launch-command-metrics strong,.launch-command-blockers strong,.store-asset-missing strong,.timeline-step strong,.capacity-item strong,.timeline-product strong,.smoke-check strong){font-size:var(--admin-body)!important;line-height:1.5!important}
body :is(.card-field small,.launch-quick-select span,.launch-grade small,.launch-grade span,.entity-card-meta,.entity-card-meta span,.launch-checklist-compact summary,.launch-check,.launch-check>small,.dash-launch-detail small,.dash-launch-tags span,.dash-priority-kpi span,.dash-launch-grade small,.dash-launch-grade span,.health-row small,.subscription-field span,.subscription-field small,.timeline-product small,.timeline-step span,.capacity-toolbar span,.capacity-gain span,.drawer label span,.submission-fields span,.launch-task-create-grid label span,.launch-task-grid label span,.liveverify-history-row span,.smoke-history-row span){font-size:var(--admin-small)!important;line-height:1.55!important}
body :is(.kpi strong,.fin-kpi strong,.growth-kpi strong,.health-kpi strong,.subscription-kpi strong,.dash-priority-kpi strong,.launch-summary-card strong){font-size:var(--admin-metric)!important;line-height:1.25!important}
body :is(.launch-grade strong,.dash-launch-grade strong){font-size:var(--admin-metric)!important;line-height:1.25!important}
body :is(.dashboard-tab,.reliability-tab,.subscription-tab,.growth-tab,.folder-tab,.tab-btn,.fin-tabs button,.sidebar button,.sidebar a,.topbar .btn,.card-action-flyout .btn){font-size:var(--admin-body)!important;line-height:1.5!important}
body :is(.dashboard-tab small,.reliability-tab small,.subscription-tab small,.growth-tab small,.pro-suggestion-grid article small,.pro-suggestions summary small){font-size:var(--admin-small)!important;line-height:1.5!important}
body :is(.btn,button,select,input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file])){min-height:44px}
body :is(input,select,textarea){padding:10px 12px;max-width:100%;box-sizing:border-box}
body :is(input[type=checkbox],input[type=radio]){width:20px;height:20px;flex:0 0 20px;accent-color:#314f40}
body :is(.entity-card-grid,.finance-card-grid){grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:20px}
.entity-card{padding:20px;min-width:0}.entity-card-head{gap:16px;align-items:flex-start;flex-wrap:wrap}.entity-card-title{min-width:0;flex:1 1 170px}.entity-card-title strong{overflow-wrap:anywhere}
.entity-card-body{gap:12px}.card-field{padding:12px;min-width:0}.card-field strong{overflow-wrap:anywhere;white-space:normal}
.launch-card-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:end}.launch-grade{grid-column:1/-1;display:flex;gap:14px;align-items:center;justify-content:flex-start;padding:10px 12px}
.launch-quick-select select{width:100%;text-overflow:ellipsis}.launch-checklist-compact summary{padding:12px 8px;cursor:pointer}.launch-check{padding:10px 0;gap:10px;align-items:flex-start}.launch-check input{margin-top:2px}
.card-action-flyout{position:static!important;opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:auto!important;display:flex!important;flex-wrap:wrap;gap:8px;margin-top:16px}
.sidebar{width:var(--sidebar)}.side-brand-copy small{white-space:normal}.nav-group-title{font-weight:650}.agency-shortcuts a{padding:10px 12px}
.topbar{height:auto!important;min-height:90px;gap:16px;flex-wrap:wrap}.top-title{min-width:0;flex:1 1 280px}.top-title p{max-width:none!important}.top-actions{flex:1 1 480px;justify-content:flex-end;min-width:0}.search-wrap{flex:1 1 190px;min-width:0}.search-wrap input{width:100%;min-width:0}
.page-tools,.tool-left,.tool-right{flex-wrap:wrap;gap:12px}.view-controls,.view-control{flex-wrap:wrap;gap:10px}.view-control select{min-width:120px}
.folder-tabs,.dashboard-tabs,.growth-tabs,.reliability-tabs,.subscription-tabs{flex-wrap:wrap;overflow:visible!important}.folder-tab,.dashboard-tab,.growth-tab,.reliability-tab,.subscription-tab{white-space:normal;height:auto;min-height:52px}
.table-wrap,.agency-table{overflow-x:auto;max-width:100%}.data-table th,.data-table td,.agency-table th,.agency-table td{padding:14px 12px!important}.data-table td{overflow-wrap:anywhere}.data-table th{font-weight:650}
.modal-card{width:min(920px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto}.drawer-card{width:min(820px,100vw);max-width:100vw}.form-grid{gap:18px}.form-actions{flex-wrap:wrap;gap:12px}
.smart-context,.context-next{height:auto;align-items:flex-start;gap:12px}.smart-context small,.context-next small{white-space:normal}.pro-focus-head{flex-wrap:wrap}.pro-suggestion-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
.status-toggle{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:8px 12px;background:#fff;border:1px solid #63796b;border-radius:24px;color:#25372f;cursor:pointer;flex:0 0 auto}
.status-toggle-track{position:relative;display:inline-block;width:42px;height:24px;flex:0 0 42px;border-radius:14px;background:#f3df9d}
.status-toggle-thumb{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .15s}
.status-toggle[aria-checked=true] .status-toggle-track{background:#b8d8bc}.status-toggle[aria-checked=true] .status-toggle-thumb{transform:translateX(18px)}
.status-toggle:disabled{cursor:wait;opacity:.7}.status-toggle[aria-busy=true]{border-style:dashed}.status-toggle-label{font-size:var(--admin-body)!important;line-height:1.5!important;font-weight:650}
.status-feedback{min-height:1.55em;font-size:var(--admin-small)!important;line-height:1.55;color:#4e6055}.status-feedback.error{color:#9c2929}.status-toggle:focus-visible{outline:3px solid #a14a30;outline-offset:3px}
@media(max-width:1100px){.entity-card-grid,.finance-card-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr))}.top-actions{flex-basis:100%}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.main{margin-left:0!important}.sidebar{width:min(300px,88vw)}.content{padding:16px!important;overflow-x:visible!important}.entity-card-grid,.finance-card-grid{grid-template-columns:minmax(0,1fr)}.entity-card{padding:16px}.form-grid,.agency-grid,.activation-steps,.pro-center-tools{grid-template-columns:minmax(0,1fr)}.topbar{padding:16px!important}.top-title,.top-actions{flex-basis:auto;width:100%}.top-actions{justify-content:flex-start}.topbar .command-launch{display:none}.language-control select{min-width:116px}.modal-card{width:calc(100vw - 16px)}.agency-page{padding:18px}.pro-focus{padding:18px}.growth-tabs button,.folder-tab{flex:1 1 145px}.form-grid .full{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.status-toggle-thumb{transition:none}}
/* Keep the legacy sliding navigation and its content offset in sync. */
:root{--sidebar-w:250px}
@media(min-width:901px){.sidebar:not(.collapsed)~.main{margin-left:250px!important}}
@media(max-width:900px){.main{margin-left:0!important}}

/* Compact default. Section titles remain 14px at every preference. */
:root{--admin-body:13px;--admin-small:12px;--admin-metric:18px}
:root[data-text-size=s]{--admin-body:12px;--admin-small:11px;--admin-metric:16px}
:root[data-text-size=l]{--admin-body:14px;--admin-small:13px;--admin-metric:20px}
body :is(h1,h2,h3,h4,h5,h6,.entity-card-title strong,.product-card .plain-link strong,.dash-launch-main .plain-link strong,.subscription-card-title strong){font-size:14px!important;line-height:1.45!important}
.entity-card{padding:14px}.entity-card-body{gap:8px}.card-field{padding:8px}.card-action-flyout{margin-top:10px}
body :is(.btn,button,select,input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file])){min-height:36px}
body :is(input,select,textarea){padding:7px 9px}.status-toggle{min-height:36px;padding:5px 9px}.status-feedback:empty{display:none}
.topbar{min-height:70px}.display-settings{position:relative;flex:0 0 auto}.display-settings summary{cursor:pointer;min-height:36px;display:flex;align-items:center;padding:6px 10px;border:1px solid var(--line,#cbd2c6);border-radius:6px;list-style:none;font-size:var(--admin-body)}
.display-settings-panel{position:absolute;right:0;top:calc(100% + 8px);width:230px;max-width:calc(100vw - 32px);padding:16px;background:#fff;color:#25372f;border:1px solid #cbd2c6;border-radius:8px;box-shadow:0 8px 24px #0002;z-index:100}
.display-settings-panel>strong{font-size:14px}.text-size-options{display:flex;gap:8px;margin:12px 0}.text-size-options button{flex:1;background:#faf8f2;border:1px solid #63796b;border-radius:5px;cursor:pointer}.text-size-options button[aria-pressed=true]{background:#315c43;color:white}.display-settings-panel p{margin:0;font-size:var(--admin-small)!important}
body>.display-settings{position:fixed;right:20px;top:16px;z-index:100}
@media(pointer:coarse){.text-size-options button,.display-settings summary,.status-toggle{min-height:44px}}

/* Compact spacing, without shrinking the selected text size. */
.topbar{padding:10px 16px!important;min-height:60px!important;gap:10px;align-items:center}
.top-title{flex:0 1 220px}.top-title h2,.top-title p{margin:0 0 3px}.top-actions{flex:1 1 540px;gap:8px;align-items:center}.search-wrap{flex:1 1 130px;max-width:230px}.display-settings summary{white-space:nowrap;padding:5px 8px}
.agency-shortcuts{gap:6px;padding:4px 10px 10px}.agency-shortcuts a{padding:7px 9px;line-height:1.4;white-space:nowrap}
.content{padding:14px 16px!important}.pro-focus{padding:16px!important;margin-bottom:12px}.pro-focus-head{gap:12px}.pro-focus-head h3{margin:6px 0}.pro-focus-head p{margin:5px 0 10px}
.pro-center-entry,.pro-steps{gap:8px;margin:10px 0}.pro-suggestions summary{padding:6px 0}.pro-suggestion-grid{gap:10px}.pro-suggestion-grid article{padding:12px!important}
.entity-card-grid,.finance-card-grid{gap:12px!important}.entity-card{padding:12px!important}.card-field{padding:7px!important}.entity-card-body{gap:7px}.card-action-flyout{gap:6px;margin-top:8px}
.smart-context,.context-next{padding:8px 10px!important;gap:10px;margin:8px 0!important}.smart-orb,.next-orb{width:30px;height:30px;flex:0 0 30px}.smart-context small,.context-next small{margin-top:3px}
.agency-card{padding:16px;margin:12px 0}.form-grid{gap:12px}.modal-body,.drawer-body{padding:16px!important}.data-table th,.data-table td,.agency-table th,.agency-table td{padding:9px 10px!important}
.page-tools{margin-bottom:10px;gap:8px}.folder-tabs,.dashboard-tabs,.growth-tabs,.reliability-tabs,.subscription-tabs{gap:6px}.folder-tab,.dashboard-tab,.growth-tab,.reliability-tab,.subscription-tab{min-height:38px;padding:7px 10px!important}
@media(min-width:1101px){.topbar{flex-wrap:nowrap}.top-actions{flex-wrap:nowrap}.top-title{flex-basis:190px}.command-launch{white-space:nowrap}.search-wrap{min-width:120px}}
@media(max-width:1100px){.top-title{flex:1 1 170px}.top-actions{flex:1 1 500px;flex-wrap:wrap;justify-content:flex-start}}
@media(max-width:760px){.topbar{padding:10px 12px!important;gap:8px}.content{padding:10px!important}.pro-focus{padding:12px!important}.top-actions{gap:6px}.search-wrap{max-width:none}.agency-shortcuts a{white-space:normal}}

/* Dashboard cards: dense content, upward gradient action tray. */
.pro-suggestion-grid article.dashboard-advice-card{position:relative;min-height:0!important;padding:10px 12px 48px!important;gap:5px!important}
.dashboard-advice-card h4{margin:5px 0!important}.dashboard-advice-card p{margin:4px 0!important;line-height:1.45!important}.dashboard-advice-card small{margin:2px 0!important}
.dash-launch-item{position:relative;min-height:0!important;padding:10px 10px 46px!important;gap:5px 8px}.dash-launch-detail{gap:5px!important}.dash-launch-detail>div{padding:5px 7px}.dash-launch-tags{gap:4px}.dash-launch-tags span{padding:3px 6px!important}
.entity-card:has(>.card-action-flyout){position:relative;padding-bottom:48px!important}
body :is(.dashboard-card-actions,.dash-launch-actions,.card-action-flyout){position:absolute!important;inset:auto 0 0!important;display:flex!important;align-items:flex-end;justify-content:flex-end;flex-wrap:wrap;gap:6px;margin:0!important;padding:18px 10px 8px!important;min-height:44px;box-sizing:border-box;border-radius:0 0 7px 7px;background:linear-gradient(to top,#e6ebe1 0%,#f7f8f2f5 65%,#f7f8f200 100%);opacity:0!important;visibility:visible!important;transform:translateY(6px)!important;pointer-events:none!important;transition:opacity .16s ease,transform .16s ease;z-index:2}
body :is(.dashboard-advice-card,.dash-launch-item,.entity-card):is(:hover,:focus-within)>.dashboard-card-actions,body :is(.dashboard-advice-card,.dash-launch-item,.entity-card):is(:hover,:focus-within)>.dash-launch-actions,body .entity-card:is(:hover,:focus-within)>.card-action-flyout{opacity:1!important;transform:translateY(0)!important;pointer-events:auto!important}
body :is(.dashboard-card-actions,.dash-launch-actions,.card-action-flyout) .btn{min-height:30px;padding:5px 9px!important;background:#ffffffee}
.venture-health-card,.kpi,.dash-priority-kpi{padding:9px 10px!important;min-height:0!important}.venture-health-card strong,.kpi strong{margin:3px 0!important}.health-mini{line-height:1.4}.health-track{margin-top:6px}
.metric-tinted{background:var(--metric-fill)!important;border-color:color-mix(in srgb,var(--metric-ink) 30%,#d6dbd1)!important}.metric-tinted>strong,.metric-tinted>span{color:var(--metric-ink)!important;font-weight:700}.metric-tinted .health-track i{background:var(--metric-ink)!important}.dash-launch-grade.metric-tinted{border-radius:5px;padding:4px 6px!important}
@media(hover:none),(pointer:coarse){body :is(.dashboard-card-actions,.dash-launch-actions,.card-action-flyout){position:static!important;opacity:1!important;transform:none!important;pointer-events:auto!important;padding:10px 4px 3px!important;margin-top:6px!important}body .entity-card:has(>.card-action-flyout),body .dash-launch-item,body .pro-suggestion-grid article.dashboard-advice-card{padding-bottom:10px!important}body :is(.dashboard-card-actions,.dash-launch-actions,.card-action-flyout) .btn{min-height:44px}}
@media(prefers-reduced-motion:reduce){body :is(.dashboard-card-actions,.dash-launch-actions,.card-action-flyout){transition:none!important;transform:none!important}}

/* Small status switch; preserve a larger hit area on touch screens. */
body .status-toggle{min-height:27px!important;padding:3px 7px!important;gap:6px;border-radius:16px}
body .status-toggle-label{font-size:var(--admin-small)!important}.status-toggle-track{width:31px;height:18px;flex-basis:31px}.status-toggle-thumb{width:14px;height:14px;top:2px;left:2px}.status-toggle[aria-checked=true] .status-toggle-thumb{transform:translateX(13px)}
#collapseBtn{display:none!important}
html[data-sidebar-mode=desktop] .sidebar:not(.sidebar-hidden)~.main{margin-left:250px!important;width:auto!important;max-width:none!important}
html[data-sidebar-mode=desktop] .sidebar.sidebar-hidden~.main{margin-left:0!important;width:auto!important;max-width:none!important}
html[data-sidebar-mode=tablet] .main,html[data-sidebar-mode=mobile] .main{margin-left:0!important;width:auto!important;max-width:none!important}
.main .content{max-width:none!important}
body #sidebarHandle{display:grid!important;position:fixed!important;top:45vh!important;left:0!important;width:19px!important;min-height:58px!important;height:58px!important;padding:0!important;border-radius:0 9px 9px 0!important;border:1px solid #c3cbbd!important;border-left:0!important;background:linear-gradient(90deg,#e2e7dc,#faf8f2)!important;color:#415640!important;box-shadow:2px 1px 6px #25372f12;z-index:95!important;font-size:20px!important;cursor:pointer}
html[data-sidebar-mode=desktop] .sidebar:not(.sidebar-hidden)~#sidebarHandle{left:250px!important}
html:not([data-sidebar-mode=desktop]) .sidebar.mobile-open~#sidebarHandle{left:var(--sidebar-w,250px)!important}
.focus-filter{position:relative}.focus-filter>summary{cursor:pointer;padding:7px 10px;border:1px solid #cbd2c6;border-radius:5px;list-style:none;white-space:nowrap}.focus-filter>summary span{background:#e8eee4;border-radius:12px;padding:1px 6px;margin-left:4px}
.focus-filter-panel{position:absolute;top:calc(100% + 6px);right:0;width:620px;max-width:calc(100vw - 48px);max-height:65vh;overflow:auto;padding:14px;background:#fff;border:1px solid #cbd2c6;border-radius:8px;box-shadow:0 8px 26px #25372f22;z-index:60}.focus-filter-panel p{margin:0 0 8px}.focus-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.focus-filter fieldset{min-width:0;border:1px solid #e1e5dc;border-radius:5px;padding:8px}.focus-filter legend{font-weight:650;font-size:14px}.focus-filter fieldset label{display:flex;gap:7px;align-items:center;padding:5px 0}.focus-filter fieldset label span{flex:1;overflow-wrap:anywhere}.focus-filter fieldset input{width:16px!important;height:16px!important;flex-basis:16px!important}.focus-filter fieldset small{color:#62705f}.focus-result{grid-column:1/-1;font-size:var(--admin-small);color:#62705f}
@media(max-width:760px){.focus-filter-panel{position:fixed;left:20px;right:20px;top:20vh;width:auto;max-width:none}.focus-filter-grid{grid-template-columns:1fr}}
@media(pointer:coarse){body .status-toggle{min-height:40px!important}body #sidebarHandle{width:25px!important}}

/* v2.5: one sidebar dimension, compact content, collapsible card groups. */
:root{--nav-panel-width:220px}
@media(min-width:768px) and (max-width:1179px){:root{--nav-panel-width:min(270px,42vw)}}
@media(max-width:767px){:root{--nav-panel-width:min(86vw,300px)}}
body .sidebar{width:var(--nav-panel-width)!important;box-sizing:border-box!important}
html[data-sidebar-mode=desktop] .sidebar:not(.sidebar-hidden)~.main{margin-left:var(--nav-panel-width)!important}
html[data-sidebar-mode=desktop] .sidebar:not(.sidebar-hidden)~#sidebarHandle,html:not([data-sidebar-mode=desktop]) .sidebar.mobile-open~#sidebarHandle{left:var(--nav-panel-width)!important}
body :is(.entity-card-grid,.finance-card-grid,.card-group-grid){align-items:start!important}
body .entity-card:has(>.card-action-flyout){padding-bottom:12px!important;min-height:0!important;height:auto!important;align-self:start}
body .status-feedback:empty{display:none}
.entity-status{display:grid;justify-items:end;gap:3px;flex-shrink:0}
.entity-status>small{font-size:var(--admin-small);color:var(--pro-muted)}
.card-group{grid-column:1/-1;min-width:0}
.card-group>.card-group-label{display:list-item!important;cursor:pointer;margin:0;padding:7px 9px;text-transform:none;letter-spacing:0;user-select:none}
.card-group>.card-group-label:focus-visible{outline:2px solid #315c43;outline-offset:2px}
.card-group-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:12px;margin-top:10px}
.launch-grade.metric-tinted{border-radius:5px}
.card-field.metric-tinted{border-left:3px solid var(--metric-ink)!important}
.card-field.metric-tinted>small{color:var(--metric-ink)!important}
/* Quiet brand mark and barely tinted status surfaces. */
body .brand-mark,body .brand-mark::before{border:0!important;box-shadow:none!important;filter:none!important;background:transparent!important}
body .metric-tinted{border-color:color-mix(in srgb,var(--metric-ink) 8%,white)!important}
body .card-field.metric-tinted{border-left:2px solid color-mix(in srgb,var(--metric-ink) 18%,white)!important}
@media(max-width:760px){.card-group-grid{grid-template-columns:minmax(0,1fr)}}
/* Keep empty column slots so a lone card retains its usual column width. */
body :is(.entity-card-grid,.finance-card-grid,.card-group-grid){grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr))!important}
body .status-toggle{border:0!important;box-shadow:none!important;background:transparent!important}
