/* Shared application frame. Marketing pages keep their own presentation. */
html:has(.app-page){height:100%;overflow:hidden}
.app-page{--site-header-height:64px;--bg:#f4f6fa;--surface:#fff;--chrome:#fff;--outline:#e3e8ef;--text:#192b42;--muted:#65748a;display:flex;flex-direction:column;height:100dvh;min-height:0;overflow:hidden;background:var(--bg);color:var(--text)}
[data-theme=dark] .app-page{--bg:#1c1c1c;--surface:#252525;--chrome:#252525;--section-band:#2b2b2b;--outline:#3d3d3d;--text:#f1f1f1;--muted:#b6b6b6}
.app-page>.site-header,.app-page>.site-footer{height:var(--site-header-height);min-height:var(--site-header-height);flex:none;position:static;display:flex;align-items:center;padding:0 40px;background:var(--surface);border-color:var(--outline)}
.workspace-header-inner,.workspace-footer-inner{width:100%;max-width:1280px;margin-inline:auto;display:flex;align-items:center;gap:24px}
.app-page .site-header .brand{gap:10px;flex-shrink:0}
.app-page .site-header .brand>img:first-child{width:37px;height:37px}
.app-page .site-header .brand .wordmark-art{width:151px;height:auto}
.app-page header nav{margin-left:auto;gap:16px;display:flex;align-items:center}
.app-page .site-header .icon-button{border:1px solid var(--outline);border-radius:9px;color:var(--muted);width:36px;height:36px}
.app-page .site-header .text-button{font-size:13px;color:var(--muted);text-decoration:none}
.app-page .footer-brand-icon{display:flex;align-items:center;gap:8px;text-decoration:none}
.app-page .footer-brand-icon img:first-child{width:28px;height:28px}
.app-page .footer-brand-icon .wordmark-art{width:116px;height:auto}
.app-page .footer-links{margin-left:auto;display:flex;align-items:center;gap:28px;color:var(--muted)}
.app-page .footer-links a{font-size:12px;color:var(--muted);text-decoration:none}
.app-page .footer-links small{font:12px Arial,sans-serif}
.app-page>main{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--outline) transparent}
.app-page .terms-scroll{width:100%;padding:0 40px}
.app-page .terms-content{width:100%;max-width:900px;margin-inline:auto;padding:36px 0 48px;min-height:0;font-size:14px}
.app-page .terms-content h1{font-size:24px;margin-bottom:24px}
.app-page .terms-content section{margin-top:24px;padding-top:20px}
.app-page .terms-content section h2{font-size:16px;margin-bottom:10px}
.app-page .research-layout{margin-inline:auto}
.app-page .estimate-section{top:16px;border-radius:0;border:0;background:transparent;box-shadow:none}
.app-page .estimate-header{border-radius:0;background:transparent}
.app-page .result-nav{top:16px;max-height:calc(100dvh - 2 * var(--site-header-height) - 40px)}
@media(max-width:900px){.app-page>.site-header,.app-page>.site-footer,.app-page .terms-scroll{padding-inline:24px}}
@media(max-width:720px){.app-page .research-layout{padding-bottom:24px}.app-page .estimate-section{position:static;width:auto;inset:auto;margin-top:24px;border:0;border-radius:0;box-shadow:none}}
@media(max-width:560px){.app-page{--site-header-height:60px}.app-page>.site-header,.app-page>.site-footer{padding-inline:18px}.workspace-header-inner,.workspace-footer-inner{gap:12px}.app-page .site-header .brand>img:first-child{width:30px;height:30px}.app-page .site-header .brand .wordmark-art{width:120px}.app-page header nav{gap:12px}.app-page .site-header .text-button{font-size:12px}.app-page .footer-brand-icon .wordmark-art{width:102px}.app-page .footer-links{gap:18px}.app-page .terms-scroll{padding-inline:20px}.app-page .terms-content{padding-block:24px 32px}}
@media(max-height:700px){.app-page{--site-header-height:56px}}
/* Light surfaces use the same readable neutral palette across the app. */
[data-theme=light] .app-page{--bg:#fff;--surface:#f3f4f6;--chrome:#f3f4f6;--section-band:#e9edf2;--outline:#c5cbd3;--text:#20242b;--muted:#4b5563}
[data-theme=light] .app-page .site-header .icon-button{border-color:#9ba5b2;color:#374151;background:#fff}
[data-theme=light] .app-page .footer-links a,[data-theme=light] .app-page .site-header .text-button{color:#374151}
.screening-count-controls{grid-column:1 / -1;display:grid;gap:10px;border-block:1px solid var(--outline);padding:14px 0;margin-top:4px}
.screening-count-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:13px}
.screening-count-row strong{font-size:14px;white-space:nowrap;font-weight:500;font-variant-numeric:tabular-nums}
.screening-count-note{font-size:12px;line-height:1.7;color:var(--muted)}
.screening-count-total{padding-top:2px}
#screening-additional-size[aria-invalid=true]{outline:2px solid #a61b20;outline-offset:2px}
:root[data-theme=dark] #screening-additional-size[aria-invalid=true]{outline-color:#ff8c92}
.filter-options{margin:28px 0 32px;padding:24px 0;border-block:1px solid var(--outline)}
.filter-options .section-heading{margin-bottom:14px}
.filter-option+.filter-option{border-top:1px solid var(--outline)}
.filter-toggle{display:flex;align-items:center;gap:12px;min-height:58px;cursor:pointer;font-size:15px;font-weight:500}
.filter-toggle input{width:18px;height:18px;margin:0;accent-color:var(--primary)}
.filter-price{margin-left:auto;font-size:13px;font-weight:400;color:var(--muted);white-space:nowrap}
.filter-fields{margin:0 0 20px;padding:12px 0 4px 30px;min-width:0;border:0}
.filter-fields .audience-buttons{display:flex;gap:8px;flex-wrap:wrap}
.filter-fields .audience-buttons button,.filter-fields .audience-all{border:1px solid var(--outline);border-radius:6px;background:var(--bg);padding:8px 14px;font-size:14px}
.filter-fields button[aria-pressed=true]{color:var(--primary);border-color:var(--primary);background:var(--tint)}
.filter-fields .audience-region{margin-top:16px}.filter-fields .audience-region h3{font-size:13px;margin-bottom:9px}
.filter-options .screen-actions{margin:18px 0 0}
.app-page .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:560px){.filter-fields{padding-left:0}.filter-toggle{min-height:54px}.filter-options{margin-block:22px;padding-block:18px}}

/* Keep each count and its unit on the same line. */
.estimate-counts .sample-field{display:flex;align-items:center;justify-content:space-between;gap:10px;white-space:nowrap;font-size:12px}
.estimate-counts .sample-field .input-unit{flex:0 0 auto;gap:7px}
.estimate-counts .sample-field input{width:86px}
.population-disclosure{margin-top:24px;border-top:1px solid var(--outline);padding-top:18px}
.population-disclosure>summary{cursor:pointer;font-size:15px;font-weight:500;line-height:1.8}
.population-disclosure>summary>span{display:block;margin:5px 0 0 18px;font-weight:400}
.population-disclosure .section-content{padding:20px 0 0}
.image-maintenance:disabled{opacity:.45;cursor:not-allowed}
