/* Shared page rhythm. Loaded after page-specific layouts, including the older
   inline styles, so tools, account pages and editorial pages share one shell. */
html body { color: var(--os-text); background-image: none; }
body :is(.main-content, .tool-page) { padding-top: 44px; padding-bottom: 64px; }
body .main-content { width: 100%; max-width: var(--os-max); padding-inline: var(--os-gutter); min-height: 0; margin-inline: auto; }
body :is(.page-header, .tool-head) { text-align: left; margin-bottom: 28px; }
body :is(.page-title, .tool-head h1, .tool-heading h1, .classic-header h1, .checkout-title, .profile-title) { font-family: var(--font-body); font-size: clamp(28px, 3.3vw, 38px); font-weight: 600; line-height: 1.2; letter-spacing: -.045em; color: var(--os-text); margin-bottom: 10px; }
body :is(.page-subtitle, .tool-head p, .tool-heading p) { font-size: 14px; line-height: 1.75; color: var(--os-text-muted); max-width: 660px; margin-bottom: 0; }
body :is(.tool-head .os-eyebrow, .tool-kicker) { font-size: 10px; color: var(--os-text-faint); letter-spacing: .1em; font-weight: 500; }
body .os-eyebrow { font-size: 10px; font-weight: 500; letter-spacing: .13em; }
body .os-dot { width: 5px; height: 5px; }
body .tool-head h1 { margin-top: 10px; }
body :is(.tool-shell, .classic-shell) { max-width: var(--os-max); padding-top: 44px; padding-bottom: 64px; }
body :is(.os-seg, .os-seg button, .position-btn, .sport-toggle, .sport-toggle-btn, .scoring-buttons, .scoring-btn, .provider, .os-footer-discord) { border-radius: 5px; }
body .os-seg button { min-height: 32px; }
body .os-pos { border-radius: 3px; font-family: var(--font-body); font-size: 10px; font-weight: 600; }
body .os-pos.QB { color: #eab0bd; background: #3b2830; }
body .os-pos.RB { color: #a4d9be; background: #233b31; }
body .os-pos.WR { color: #aecbe6; background: #253749; }
body .os-pos.TE { color: #e5c5a0; background: #3a3126; }
body .os-pos.FLEX, body .os-pos.SFLEX { color: var(--os-text-muted); background: var(--os-surface-raised); }
body :is(.side-title, .connect h2, .card-head strong) { font-weight: 500; }
body .side-total .os-num { font-size: 26px; font-weight: 500; }
body .side-empty { background: transparent; border-color: var(--os-border); border-style: solid; padding: 26px 14px; font-size: 13px; }
body .trade-side { padding: 22px; }
body .league-bar { padding: 18px 20px; margin-bottom: 24px; }
body .lbl { font-size: 10px; font-weight: 500; color: var(--os-text-muted); letter-spacing: .06em; }
body :is(.method, .tv-foot, .form-hint) { color: var(--os-text-faint); line-height: 1.7; }
body .method { margin-top: 28px; }
body .search-results { background: var(--os-surface); }
body :is(.provider-tabs, .stats-filters, .position-nav) { justify-content: flex-start; }
body .sport-toggle { margin-left: 0; }
body .position-nav { gap: 6px; margin-bottom: 20px; }
body .position-btn { min-height: 38px; font-size: 13px; font-weight: 500; padding: 8px 16px; }
body .rankings-table { background: var(--os-surface); }
body .rankings-cta { padding: 14px 0; background: transparent; border: 0; border-top: 1px solid var(--os-border); border-radius: 0; font-size: 12px; }
body :is(.rankings-cta b, .table-row .rank) { font-weight: 500; }
body :is(.tool-panel, .result-panel, .checkout-panel, .apply-container, .profile-card) { background: var(--os-surface); border-color: var(--os-border); box-shadow: none; }
body .checkout-panel { padding: 32px; }
body :is(.tool-link, .tool-reset, .cta-primary, .checkout-button) { font-weight: 600; box-shadow: none; }
body .tool-heading { align-items: center; }
body .empty-state-panel { box-shadow: none; background: var(--os-surface); border-color: var(--os-border); padding: 32px; margin-block: 32px; }
body .empty-state-panel h2 { font-size: 22px; font-weight: 500; }
body .os-footer-discord { background: transparent; border-color: var(--os-border); color: var(--os-text-muted); }
body .os-footer-brand p { font-size: 13px; max-width: 260px; }
body .os-footer-col a { font-size: 12px; padding-block: 6px; }
body .os-footer-col h4 { font-size: 10px; font-weight: 500; }
body .os-footer-bottom { font-size: 11px; }
body .os-menu-item { font-size: 13px; }
body .os-menu-item:has(small) { display: block; }
body .os-brand-word { font-weight: 600; letter-spacing: -.04em; }
body .os-brand-mark { width: 28px; height: 28px; }
body .os-menu-label { font-size: 10px; font-weight: 500; }
body .os-nav-link.active { background: transparent; color: var(--os-accent); }
/* Policy text is kept intact and presented as a readable document. */
.legal-container { max-width: 760px; margin: 0 auto; }
.effective-date { color: var(--os-text-faint); font-size: 12px; line-height: 1.8; margin: 16px 0 32px; padding-bottom: 24px; border-bottom: 1px solid var(--os-border); }
.legal-content { font-size: 14px; line-height: 1.9; color: var(--os-text-muted); }
.legal-content h2 { font-size: 18px; color: var(--os-text); font-weight: 500; margin: 30px 0 12px; }
.legal-content p { margin-bottom: 16px; }
.legal-content ul { padding-left: 22px; margin-bottom: 16px; }
.legal-content li { padding-left: 4px; margin-bottom: 6px; }
.legal-content a { color: var(--os-accent); overflow-wrap: anywhere; }
/* About */
.about-page { max-width: 900px; margin-inline: auto; padding: 64px var(--os-gutter); }
.about-intro { max-width: 660px; padding-bottom: 40px; }
.about-intro h1 { font-size: clamp(34px, 4.2vw, 48px); line-height: 1.15; font-weight: 500; letter-spacing: -.045em; margin: 18px 0 24px; }
.about-intro p { color: var(--os-text-muted); font-size: 16px; line-height: 1.8; }
.about-sections { border-top: 1px solid var(--os-border); }
.about-section { display: grid; grid-template-columns: 180px 1fr; gap: 36px; padding: 30px 0; border-bottom: 1px solid var(--os-border); }
.about-section h2 { font-size: 16px; font-weight: 500; line-height: 1.6; }
.about-section p { color: var(--os-text-muted); font-size: 14px; line-height: 1.8; }
.about-section a { color: var(--os-accent); text-underline-offset: 4px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* Creator application */
.creator-page .hero-section { text-align: left; padding: 0 0 32px; margin: 0; }
.creator-page .commission-badge { padding: 0; border: 0; background: transparent; color: var(--os-text-faint); margin-bottom: 16px; font-size: 10px; letter-spacing: .1em; }
.creator-page .hero-subtitle { max-width: 620px; font-size: 15px; line-height: 1.7; margin: 0 0 24px; color: var(--os-text-muted); }
.creator-page .features-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.creator-page .feature-card { padding: 24px 0; background: transparent; border: 0; border-top: 1px solid var(--os-border); border-radius: 0; box-shadow: none; text-align: left; }
.creator-page .feature-card:hover { transform: none; }
.creator-page .feature-title { font-size: 17px; font-weight: 500; }
.creator-page .feature-desc { font-size: 13px; line-height: 1.8; color: var(--os-text-muted); }
.creator-page .section-title { font-size: 24px; font-weight: 500; text-align: left; margin: 0 0 16px; }
.creator-page .apply-container { max-width: 760px; margin: 0; }
.creator-page .cta-primary { font-size: 13px; padding: 12px 18px; border-radius: 6px; }
@media (max-width: 1080px) and (min-width: 861px) {
    body .os-header-inner { gap: 14px; }
    body .os-nav-link { padding-inline: 7px; font-size: 12px; }
    body .os-header .os-brand-tag { display: none; }
}
@media (max-width: 760px) {
    body :is(.main-content, .tool-page, .tool-shell, .classic-shell) { padding-top: 28px; padding-bottom: 40px; }
    body :is(.page-title, .tool-head h1, .tool-heading h1, .classic-header h1) { font-size: 28px; }
    body :is(.page-header, .tool-head) { margin-bottom: 22px; }
    body .trade-side { padding: 16px; }
    body .league-bar { padding: 16px; }
    body .scoring-buttons { margin-left: 0; }
    body .checkout-panel { padding: 24px; }
    body .os-footer-inner { padding-top: 36px; }
    body .os-footer-grid { gap: 28px; }
    .about-page { padding-block: 36px; }
    .about-section { grid-template-columns: 1fr; gap: 10px; padding-block: 24px; }
    .creator-page .features-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 370px) { body .os-header .os-brand-tag { display: none; } }

/* Secondary tools and account surfaces use the same quiet panels. */
.creator-page .hero-section { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
body.creator-page .page-title { -webkit-text-fill-color: var(--os-text); background: none; }
.creator-page .feature-title { color: var(--os-text); }
.creator-page :is(.apply-input, .apply-textarea) { background: var(--os-bg-deep); border-color: var(--os-border-strong); color: var(--os-text); font-family: var(--font-body); }
.creator-page .apply-container { padding: 28px; }
.creator-page .apply-label { font-size: 12px; font-weight: 500; }
.creator-page .apply-actions { text-align: left; }
.creator-page .apply-alt { margin-top: 22px; text-align: left; font-size: 12px; }
body .platform-nav { justify-content: flex-start; gap: 6px; display: inline-flex; margin: 0 18px 24px 0; }
body .platform-btn { border-radius: 5px; padding: 9px 14px; font-size: 13px; }
.dfs-builder-link { margin-top: 14px; font-size: 12px; color: var(--os-accent); }
.dfs-builder-link a { text-decoration: none; }
.dfs-builder-link a:hover { text-decoration: underline; }
body .upgrade-banner { background: var(--os-surface); border: 1px solid var(--os-border); box-shadow: none; padding: 14px 18px; border-radius: var(--os-r-md); }
body .upgrade-banner-text { font-size: 13px; color: var(--os-text-muted); }
body .lock-icon-banner { width: 16px; height: 16px; stroke: var(--os-text-muted); }
body .upgrade-banner-btn { font-size: 12px; padding: 9px 12px; background: var(--os-accent); color: var(--os-accent-ink); box-shadow: none; }
body .upgrade-banner-btn:hover { background: var(--os-accent-strong); transform: none; box-shadow: none; }
body .upgrade-banner-btn .btn-icon { display: none; }
body .tool-actions .tool-link { background: transparent; color: var(--os-text-muted); border-color: var(--os-border-strong); font-size: 12px; }
body :is(.tool-reset, .tool-actions .tool-link):hover { background: var(--os-surface-hover); color: var(--os-text); }
body .tool-panel :is(input, select), body .tool-reset { background: var(--os-bg-deep); color: var(--os-text); border-color: var(--os-border-strong); }
body .growth-capture { background: transparent; border: 0; border-top: 1px solid var(--os-border); padding: 24px 0; border-radius: 0; }
body .growth-capture h2 { font-size: 17px; font-weight: 500; }
body .growth-capture p { font-size: 12px; }
body .growth-capture-discord { background: transparent; border: 1px solid var(--os-border-strong); color: var(--os-text-muted); }
body .result-capture { border-color: var(--os-border-strong); background: transparent; }
body .result-capture-head { font-size: 13px; font-weight: 500; }
.tool-crosslinks { margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--os-border); }
.tool-crosslinks-title { font-family: var(--font-body); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--os-text-faint); margin-bottom: 12px; }
.tool-crosslinks-grid { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.tool-crosslink { padding: 8px 0; text-decoration: none; font-size: 12px; color: var(--os-text-muted); }
.tool-crosslink:hover { color: var(--os-text); text-decoration: underline; }
body .classic { width: 100%; max-width: var(--os-max); padding: 44px var(--os-gutter) 64px; color: var(--os-text); }
body .classic h1 { font-size: clamp(28px, 3.3vw, 38px); font-weight: 600; }
body .classic .work-panel { background: var(--os-surface); border-color: var(--os-border); }
body .classic :is(input, select, textarea, .snapshot-info, .lineup-card, .metric) { background: var(--os-bg-deep); border-color: var(--os-border-strong); }
body .classic .build-controls { top: calc(var(--os-header-h) + 16px); }
body .classic .pool-table thead { background: var(--os-surface); }
body .notfound-code { background: none; color: var(--os-text-faint); -webkit-text-fill-color: var(--os-text-faint); font-size: 64px; font-weight: 500; }
body.email-preferences { display: grid; place-items: center; padding: 24px; }
.email-preferences main { max-width: 480px; padding: 32px; background: var(--os-surface); border: 1px solid var(--os-border); border-radius: var(--os-r-lg); }
.email-preferences .email-brand { display: block; margin-bottom: 32px; text-decoration: none; font-size: 16px; font-weight: 600; }
.email-brand span { color: var(--os-text-faint); font-size: 11px; margin-left: 6px; font-weight: 400; }
.email-preferences h1 { font-size: 26px; font-weight: 500; margin-bottom: 16px; }
.email-preferences p { font-size: 14px; line-height: 1.8; color: var(--os-text-muted); margin-bottom: 24px; }
.email-preferences :is(button, main > a:last-child) { display: inline-flex; background: var(--os-accent); color: var(--os-accent-ink); border: 0; border-radius: 6px; padding: 12px 16px; font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; }
.os-sheet-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 18px; color: var(--os-text-faint); font-size: 12px; }
.os-sheet-dismiss { background: transparent; border: 1px solid var(--os-border-strong); border-radius: 6px; padding: 10px 12px; font: inherit; color: var(--os-text); cursor: pointer; }
.os-sheet-dismiss span { padding-left: 6px; }
@media (max-width: 760px) {
    body .os-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 12px; }
    body .os-footer-brand p { max-width: 340px; margin-block: 12px; }
    body .os-footer-col a { font-size: 11px; line-height: 1.5; }
    body .os-footer-discord { border: 0; padding: 0; font-size: 12px; }
    body .os-footer-bottom { margin-top: 28px; }
    body .classic { padding: 28px var(--os-gutter) 40px; }
    body .classic .build-controls { position: static; }
    .creator-page .apply-container { padding: 20px; }
}
body :is(.upgrade-banner-content, .upgrade-banner-subtext) { color: var(--os-text-muted); }
body .upgrade-banner-subtext { font-size: 12px; opacity: 1; }
.ev-page .table-header { background: var(--os-surface-raised); color: var(--os-text-muted); border-bottom: 1px solid var(--os-border); }
.ev-page .table-header .table-cell { font-size: 12px; font-weight: 500; }
.ev-page .platform-btn:not(.active) { background: var(--os-surface-raised); color: var(--os-text-muted); }
.ev-page .board-note { background: transparent; border: 0; font-size: 12px; line-height: 1.7; color: var(--os-text-muted); padding: 16px 0; }
body .classic .work-panel > p { margin-bottom: 18px; font-size: 14px; line-height: 1.7; color: var(--os-text-muted); }
body.profile-page .main-content { max-width: 840px; }
.profile-page .profile-header { text-align: left; margin-bottom: 28px; }
.profile-page .profile-avatar-large { width: 56px; height: 56px; border: 1px solid var(--os-border); background: var(--os-surface); margin-bottom: 16px; }
.profile-page .profile-subtitle { color: var(--os-text-muted); font-size: 14px; }
.profile-page .settings-card { background: var(--os-surface); border: 1px solid var(--os-border); box-shadow: none; }
.profile-page .settings-section-title { color: var(--os-text); font-size: 18px; font-weight: 500; }
.profile-page .billing-summary { background: var(--os-bg-deep); border-color: var(--os-border); }
.profile-page .setting-item { gap: 20px; }
.profile-page .setting-description { color: var(--os-text-muted); font-size: 13px; line-height: 1.7; }
.profile-page .toggle-switch { flex-shrink: 0; }
.profile-page .save-button { font-size: 13px; box-shadow: none; }
body .stats-gate { background: var(--os-surface); border-color: var(--os-border); border-radius: var(--os-r-md); }
body .stats-gate-title { font-size: 18px; font-weight: 500; }
body .stats-gate-copy { font-size: 13px; color: var(--os-text-muted); }
body .stats-gate-btn { background: var(--os-accent); font-size: 13px; font-weight: 600; }
body .verdict::before { display: none; }
.profile-page .save-button { background: var(--os-accent); }

/* Date the projection beside its matchup, with an explicit week choice. */
.rankings-week { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 20px 0 14px; }
.rankings-week label { font-size: 13px; font-weight: 600; }
.rankings-week select { padding: 9px 30px 9px 12px; border: 1px solid var(--os-border); border-radius: 6px; background: var(--os-surface); color: var(--os-text); font: inherit; font-size: 13px; }
.rankings-week span { color: var(--os-text-muted); font-size: 12px; }
.rankings-table .game-date { display: block; font-size: 11px; color: var(--os-text-muted); margin-top: 5px; font-weight: 400; }
@media (max-width: 600px) { .rankings-week span { flex-basis: 100%; line-height: 1.6; } }
