/* release 371 (new design): package P4, Pricing, Account, My bets, Sign in / Create account, the email unsubscribe page and a
   shared coaching plan, in the designer's look (white, Nunito, indigo #5663F0, 8px corners, white cards with a soft shadow,
   indigo title bands). Built on sx_brand.css (tokens and b-* blocks). Selectors start with html body.p4.p4.p4 so they win over
   the older light theme (static/css/scoutics_light.css, html.sx-cream[data-sx-page=..] ...) without !important. */

html body.p4.p4.p4 { background: #fff; color: var(--b-ink); font-family: var(--b-font); }
html body.p4.p4.p4 .p4-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ================================================================ Pricing */
html body.p4.p4.p4 .p4-hero { padding-top: 96px; padding-bottom: 56px; }
html body.p4.p4.p4 .p4-title { font-size: 64px; }
html body.p4.p4.p4 .p4-lead { max-width: 640px; margin: 16px auto 0; font-size: 18px; color: var(--b-text); }
html body.p4.p4.p4 .p4-billing { display: flex; justify-content: center; margin: 32px 0 0; scroll-margin-top: 88px; }
html body.p4.p4.p4 .p4-toggle { border: 0; background: var(--b-soft); }
html body.p4.p4.p4 .p4-toggle button { min-height: 44px; gap: 8px; padding: 8px 20px; color: var(--b-ink); background: transparent; border-radius: var(--b-radius); font: 700 16px/1.2 var(--b-font); }
html body.p4.p4.p4 .p4-toggle button.active { background: var(--b-primary); color: #fff; }
html body.p4.p4.p4 .save-badge { padding: 2px 8px; border-radius: 999px; background: var(--b-success-50); color: var(--b-success); font-size: 13px; font-weight: 800; }
html body.p4.p4.p4 .p4-toggle button.active .save-badge { background: #fff; color: var(--b-primary-700); }
html body.p4.p4.p4 .pricing-usd { margin: 16px auto 0; max-width: 560px; color: var(--b-muted); }
html body.p4.p4.p4 .pricing-usd[hidden] { display: none; }
html body.p4.p4.p4 .pricing-message { display: none; max-width: 640px; margin: 20px auto 0; padding: 14px 18px; border: 1px solid #F3B4B4; border-radius: var(--b-radius); background: var(--b-error-50); color: #8A1C1C; font-size: 16px; text-align: center; }
html body.p4.p4.p4 .pricing-message.show { display: block; }
html body.p4.p4.p4 .pricing-message.info { border-color: #C9CDFB; background: var(--b-primary-50); color: var(--b-ink); }
html body.p4.p4.p4 .pricing-continue { margin: 8px 0 0 6px; min-height: 44px; padding: 0 18px; }

html body.p4.p4.p4 .pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: stretch; }
html body.p4.p4.p4 .pricing-plan { position: relative; display: flex; flex-direction: column; padding: 40px 36px; border: 1px solid var(--b-primary); border-radius: var(--b-radius); background: #fff; box-shadow: none; scroll-margin-top: 88px; transition: box-shadow .25s var(--b-ease), transform .25s var(--b-ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { html body.p4.p4.p4 .pricing-plan:hover { box-shadow: var(--b-shadow); } }
html body.p4.p4.p4 .pricing-plan.featured { border-width: 2px; padding: 39px 35px; background: #fff; box-shadow: var(--b-shadow); }
html body.p4.p4.p4 .pricing-plan.is-current { box-shadow: 0 0 0 3px var(--b-primary-50), var(--b-shadow); }
html body.p4.p4.p4 .pricing-plan.chosen { outline: 3px solid var(--b-primary); outline-offset: 4px; }
html body.p4.p4.p4 .popular-badge { position: absolute; top: -14px; left: 36px; padding: 4px 12px; background: var(--b-primary); color: #fff; font-size: 13px; white-space: nowrap; }
html body.p4.p4.p4 .plan-name { margin: 0 0 8px; color: var(--b-muted); font: 800 20px/1.3 var(--b-font); letter-spacing: 0; }
html body.p4.p4.p4 .price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
html body.p4.p4.p4 .price { color: var(--b-ink); font: 800 52px/1.1 var(--b-font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
html body.p4.p4.p4 .period { color: var(--b-muted); font-size: 15px; }
html body.p4.p4.p4 .price-note { min-height: 20px; margin: 4px 0 16px; color: var(--b-muted); font-size: 14px; }
html body.p4.p4.p4 .plan-desc { margin: 0 0 16px; color: var(--b-muted); font-size: 16px; line-height: 1.55; }
html body.p4.p4.p4 .plan-current { margin: 0 0 12px; color: var(--b-primary-700); font-size: 15px; font-weight: 800; }
html body.p4.p4.p4 .plan-current:empty { margin: 0; }
html body.p4.p4.p4 .p4-inc { margin: 0 0 14px; color: var(--b-ink); font-weight: 700; }
html body.p4.p4.p4 .plan-features { gap: 10px; margin: 0 0 28px; }
html body.p4.p4.p4 .plan-features li { font-size: 15px; color: var(--b-text); display: block; }
html body.p4.p4.p4 .plan-features li::before { top: 0; }
html body.p4.p4.p4 .plan-features li.no { color: var(--b-muted); }
html body.p4.p4.p4 .plan-features li.no::before { background: var(--b-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23646867' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 8l8 8M16 8l-8 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
html body.p4.p4.p4 .p4-cta { width: 100%; align-self: end; }
html body.p4.p4.p4 .p4-cta-inline { margin-top: 8px; }

html body.p4.p4.p4 .p4-pair { align-items: start; }
html body.p4.p4.p4 .pricing-credits { color: var(--b-text); }
html body.p4.p4.p4 .pricing-credits .b-text + .b-text { margin-top: 12px; }
html body.p4.p4.p4 .pricing-credits .b-h3 { margin-bottom: 14px; }
html body.p4.p4.p4 .credit-rules { margin: 0; padding-left: 20px; color: var(--b-muted); font-size: 15px; line-height: 1.55; }
html body.p4.p4.p4 .credit-rules li { margin: 0 0 8px; }
html body.p4.p4.p4 .credit-rules strong { color: var(--b-ink); }
html body.p4.p4.p4 .p4-gaps { margin-top: 32px; scroll-margin-top: 88px; }
html body.p4.p4.p4 .p4-gaps .b-h2 { margin-bottom: 20px; }
html body.p4.p4.p4 .p4-gaps-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
html body.p4.p4.p4 .p4-gaps-cols .b-h3 { margin-bottom: 12px; }
html body.p4.p4.p4 .pricing-footnote { margin: 40px auto 0; max-width: 900px; text-align: center; }

@media (max-width: 1100px) { html body.p4.p4.p4 .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991px) { html body.p4.p4.p4 .p4-gaps-cols { grid-template-columns: 1fr; gap: 24px; } html body.p4.p4.p4 .p4-title { font-size: 52px; } }
@media (max-width: 767px) {
  html body.p4.p4.p4 .p4-hero { padding-top: 48px; padding-bottom: 32px; }
  html body.p4.p4.p4 .p4-title { font-size: 36px; }
  html body.p4.p4.p4 .p4-lead { font-size: 16px; }
  html body.p4.p4.p4 .pricing-grid { grid-template-columns: 1fr; gap: 24px; }
  html body.p4.p4.p4 .pricing-plan { padding: 28px 24px; }
  html body.p4.p4.p4 .pricing-plan.featured { padding: 27px 23px; }
  html body.p4.p4.p4 .popular-badge { left: 24px; }
  html body.p4.p4.p4 .price { font-size: 40px; }
  html body.p4.p4.p4 .p4-toggle button { padding: 8px 14px; }
}

/* the older light theme sets every h1-h3 to weight 500 with !important; the designer's headings are 800 (titles) and 700/800 (cards) */
html.sx-cream body.p4.p4.p4 :is(h1, .b-h1, .b-h2) { font-weight: 800 !important; }
html.sx-cream body.p4.p4.p4 :is(h2, h3, .b-h3) { font-weight: 800 !important; }
html.sx-cream body.p4.p4.p4 .plan-name { font-weight: 800 !important; }
html.sx-cream body.p4.p4.p4 :is(h1, h2, h3) { color: var(--b-ink); }
html.sx-cream body.p4.p4.p4 .plan-name { color: var(--b-muted); }
html.sx-cream body.p4.p4.p4 :is(.b-subhero, .b-band, .b-cta-plain) :is(h1, h2, h3) { color: #fff; }

/* ================================================================ Account (/account): indigo band, then the settings in white cards */
html body.p4.p4.p4.p4-account { --line: var(--b-line); }
html body.p4.p4.p4 .p4-subhero { padding: 72px 0; }
html body.p4.p4.p4 .p4-subhero h1 { font-size: 56px; }
html body.p4.p4.p4 .st { width: 100%; max-width: var(--b-container); box-sizing: border-box; margin: 0 auto; padding: 56px var(--b-gutter) 96px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; font-size: 16px; line-height: 1.5; color: var(--b-text); }
html body.p4.p4.p4 .st-nav { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; padding: 16px; border-radius: var(--b-radius); background: #fff; box-shadow: var(--b-shadow); }
html body.p4.p4.p4 .st-nav .st-group { margin: 14px 0 4px 12px; color: var(--b-muted); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
html body.p4.p4.p4 .st-nav .st-group:first-child { margin-top: 0; }
html body.p4.p4.p4 .st-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: var(--b-radius); color: var(--b-ink); text-decoration: none; font-weight: 600; font-size: 16px; }
html body.p4.p4.p4 .st-nav a i { font-size: 20px; color: var(--b-primary); }
html body.p4.p4.p4 .st-nav a:hover { background: var(--b-primary-tint); }
html body.p4.p4.p4 .st-nav a[aria-current="page"] { background: var(--b-primary); color: #fff; font-weight: 700; }
html body.p4.p4.p4 .st-nav a[aria-current="page"] i { color: #fff; }
html body.p4.p4.p4 .st-body { min-width: 0; }
html body.p4.p4.p4 .st-pane[hidden] { display: none; }
html body.p4.p4.p4 .st-pane > h2.st-h { margin: 0 0 20px; color: var(--b-ink); font-size: 32px; line-height: 1.2; }
html body.p4.p4.p4 .st-h small { margin-left: 10px; padding: 2px 10px; border-radius: 999px; background: var(--b-primary-50); color: var(--b-primary-700); font-size: 14px; font-weight: 800; vertical-align: middle; }
html body.p4.p4.p4 .st .card { margin: 0 0 24px; padding: 32px; border: 0; border-radius: var(--b-radius); background: #fff; box-shadow: var(--b-shadow); color: var(--b-text); }
html body.p4.p4.p4 .st .card h2 { margin: 0; color: var(--b-ink); font-size: 22px; line-height: 1.3; }
html body.p4.p4.p4 #ask-usage { margin: 0 0 24px; padding: 32px; border-radius: var(--b-radius); background: #fff; box-shadow: var(--b-shadow); }
html body.p4.p4.p4 #ask-usage > .card, html body.p4.p4.p4 #ask-usage .card { padding: 0; box-shadow: none; margin: 0; }
html body.p4.p4.p4 .planline { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0 8px; }
html body.p4.p4.p4 .plan { color: var(--b-ink); font-size: 32px; font-weight: 800; letter-spacing: -.01em; }
html body.p4.p4.p4 .st .badge { display: inline-block; padding: 3px 10px; border: 0; border-radius: 999px; background: var(--b-primary-50); color: var(--b-primary-700); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
html body.p4.p4.p4 .st .badge.cancel { background: #FFF4CC; color: #7A5300; }
html body.p4.p4.p4 .st .meta { color: var(--b-text); }
html body.p4.p4.p4 .usage { display: grid; gap: 12px; margin-top: 20px; }
html body.p4.p4.p4 .usage-row { padding: 16px; border: 1px solid var(--b-line); border-radius: var(--b-radius); background: #fff; }
html body.p4.p4.p4 .usage-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; color: var(--b-ink); font-weight: 700; }
html body.p4.p4.p4 .usage-title span:last-child { color: var(--b-text); font-weight: 600; }
html body.p4.p4.p4 .meter { height: 8px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: var(--b-soft); }
html body.p4.p4.p4 .meter > span { display: block; height: 100%; border-radius: inherit; background: var(--b-primary); }
html body.p4.p4.p4 .st .unlimited { color: var(--b-success); }
html body.p4.p4.p4 .reset { margin: 16px 0 0; color: var(--b-muted); font-size: 14px; }
html body.p4.p4.p4 .reset strong { color: var(--b-ink); }
html body.p4.p4.p4 .profile { display: flex; gap: 16px; align-items: center; margin-top: 20px; }
html body.p4.p4.p4 .avatar { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--b-primary); color: #fff; font-weight: 800; overflow: hidden; }
html body.p4.p4.p4 .avatar img { width: 100%; height: 100%; object-fit: cover; }
html body.p4.p4.p4 .name { color: var(--b-ink); font-weight: 800; }
html body.p4.p4.p4 .email { color: var(--b-muted); font-size: 14px; }
html body.p4.p4.p4 .st .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
html body.p4.p4.p4 .st .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--b-primary); border-radius: var(--b-radius); background: #fff; color: var(--b-ink); text-decoration: none; cursor: pointer; font: 700 16px/1.25 var(--b-font); }
html body.p4.p4.p4 .st .button:hover { background: var(--b-primary-50); }
html body.p4.p4.p4 .st .button.danger { border-color: #E8A3A3; background: #fff; color: var(--b-error); }
html body.p4.p4.p4 .st .button.danger:hover { background: var(--b-error-50); }
html body.p4.p4.p4 .st .notice { margin: 14px 0 0; color: var(--b-muted); font-size: 15px; }
html body.p4.p4.p4 .st .notice strong { color: var(--b-ink); }
html body.p4.p4.p4 .st .empty { margin: 18px 0 0; padding: 20px; border: 1px dashed #C9CDFB; border-radius: var(--b-radius); background: var(--b-primary-50); color: var(--b-text); }
html body.p4.p4.p4 .st .empty strong { color: var(--b-ink); }
html body.p4.p4.p4 .st .message { display: none; margin: 0 0 20px; padding: 12px 16px; border-radius: var(--b-radius); }
html body.p4.p4.p4 .st .message.show { display: block; }
html body.p4.p4.p4 .st .message.error { border: 1px solid #F3B4B4; background: var(--b-error-50); color: #8A1C1C; }
html body.p4.p4.p4 .st .message.ok { border: 1px solid #A8D5AA; background: var(--b-success-50); color: #1F5A22; }
html body.p4.p4.p4 .st .legal { margin-top: 24px; color: var(--b-muted); font-size: 14px; max-width: 800px; }
html body.p4.p4.p4 .st [data-continue] { margin: 0 0 24px; padding: 20px 24px; border-radius: var(--b-radius); background: var(--b-primary-50); }
html body.p4.p4.p4 .st .credit-rules { margin-top: 14px; }
html body.p4.p4.p4 .p4-radio { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 10px 14px; border: 1px solid var(--b-line); border-radius: var(--b-radius); cursor: pointer; color: var(--b-ink); }
html body.p4.p4.p4 .p4-radio:has(input:checked) { border-color: var(--b-primary); background: var(--b-primary-50); }
html body.p4.p4.p4 .p4-radio input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--b-primary); flex: none; }
html body.p4.p4.p4 .p4-radio small { color: var(--b-muted); font-size: 14px; }
html body.p4.p4.p4 .p4-saved { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 14px 16px; border: 1px solid var(--b-line); border-radius: var(--b-radius); }
html body.p4.p4.p4 .p4-saved .notice { margin: 0; }
html body.p4.p4.p4 .p4-saved-title { color: var(--b-ink); font-weight: 800; text-decoration: none; }
html body.p4.p4.p4 .p4-saved-title:hover { color: var(--b-primary-600); text-decoration: underline; }
/* the Ask Scoutics usage rows written by static/js/assistant_usage.js */
html body.p4.p4.p4 .st-rows { display: grid; gap: 0; }
html body.p4.p4.p4 .st-row { display: grid; grid-template-columns: minmax(150px, 240px) minmax(0, 1fr) 110px; align-items: center; gap: 18px; padding: 16px 0; border-top: 1px solid var(--b-line); }
html body.p4.p4.p4 .st-row:first-child { border-top: 0; }
html body.p4.p4.p4 .st-row b { display: block; color: var(--b-ink); font-weight: 700; }
html body.p4.p4.p4 .st-row small { color: var(--b-muted); font-size: 14px; }
html body.p4.p4.p4 .st-row .st-pct { text-align: right; color: var(--b-muted); font-size: 14px; white-space: nowrap; }
html body.p4.p4.p4 .st-row .st-pct.is-unl { color: var(--b-success); font-weight: 700; }
html body.p4.p4.p4 .st-bar { height: 8px; border-radius: 99px; background: var(--b-soft); overflow: hidden; }
html body.p4.p4.p4 .st-bar span { display: block; height: 100%; border-radius: inherit; background: var(--b-primary); }
html body.p4.p4.p4 .st-bar span.is-high { background: var(--b-error); }
html body.p4.p4.p4 .st-say { margin: 0 0 6px; color: var(--b-ink); font-size: 18px; font-weight: 700; }
html body.p4.p4.p4 .st-sec { margin: 28px 0 10px; color: var(--b-ink); font-size: 18px; font-weight: 800; }
html body.p4.p4.p4 .st-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
html body.p4.p4.p4 .st-table th { text-align: right; font-weight: 700; color: var(--b-muted); padding: 8px 0; border-bottom: 1px solid var(--b-line); background: #fff; }
html body.p4.p4.p4 .st-table :is(th, td):first-child { text-align: left; }
html body.p4.p4.p4 .st-table td { text-align: right; padding: 12px 0; border-bottom: 1px solid var(--b-line); color: var(--b-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  html body.p4.p4.p4 .st { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  html body.p4.p4.p4 .st-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  html body.p4.p4.p4 .st-nav .st-group { display: none; }
  html body.p4.p4.p4 .st-nav a { white-space: nowrap; font-size: 15px; padding: 8px 12px; }
  html body.p4.p4.p4 .st-row { grid-template-columns: 1fr auto; }
  html body.p4.p4.p4 .st-row .st-bar { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 767px) {
  html body.p4.p4.p4 .p4-subhero { padding: 40px 0; }
  html body.p4.p4.p4 .p4-subhero h1 { font-size: 36px; }
  html body.p4.p4.p4 .st .card, html body.p4.p4.p4 #ask-usage { padding: 20px; }
  html body.p4.p4.p4 .st-pane > h2.st-h { font-size: 26px; }
}

/* ================================================================ My bets (/account/bets): band, then the tool as designer cards */
html body.p4.p4.p4 .p4-band-eyebrow { margin: 0 0 8px; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
html body.p4.p4.p4.p4-bets { background: #fff; }
html body.p4.p4.p4.p4-bets .site-shell { max-width: none; padding: 0; margin: 0; background: #fff; }
html body.p4.p4.p4.p4-bets .bt.mb { max-width: var(--b-container); margin: 0 auto; padding-top: 48px; padding-bottom: 96px; font-family: var(--b-font); }

/* ================================================================ Sign in / Create account (/login, /signup) */
html body.p4.p4.p4.p4-auth { display: block; min-height: 0; padding: 0; background: #fff; align-items: initial; }
html body.p4.p4.p4 .p4-auth-wrap { padding: 96px 0; }
html body.p4.p4.p4 .auth-card { max-width: 560px; margin: 0 auto; padding: 48px 40px; border: 0; border-radius: var(--b-radius); background: #fff; box-shadow: var(--b-shadow); text-align: left; color: var(--b-text); }
html body.p4.p4.p4 .auth-heading { margin: 0 0 10px; color: var(--b-ink); font-size: 34px; line-height: 1.15; letter-spacing: -.01em; }
html body.p4.p4.p4 .auth-subheading { margin: 0 0 24px; color: var(--b-text); font-size: 16px; font-weight: 600; line-height: 1.5; }
html body.p4.p4.p4 .auth-context { margin: 0 0 20px; padding: 12px 14px; border: 1px solid #C9CDFB; border-radius: var(--b-radius); background: var(--b-primary-50); color: var(--b-ink); font-size: 15px; line-height: 1.5; }
html body.p4.p4.p4 .auth-flash { margin: 0 0 16px; padding: 12px 14px; border: 1px solid #F3B4B4; border-radius: var(--b-radius); background: var(--b-error-50); color: #8A1C1C; font-size: 15px; }
html body.p4.p4.p4 .btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 10px 18px; border: 1px solid var(--b-primary); border-radius: var(--b-radius); background: #fff; color: var(--b-primary-600); font: 700 18px/1.2 var(--b-font); text-decoration: none; box-shadow: none; transition: background-color .2s, transform .2s var(--b-ease); }
html body.p4.p4.p4 .btn-google:hover { background: var(--b-primary-50); box-shadow: none; transform: none; }
html body.p4.p4.p4 .btn-google-icon { width: 22px; height: 22px; }
html body.p4.p4.p4 .auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--b-muted); font-size: 14px; }
html body.p4.p4.p4 .auth-divider::before, html body.p4.p4.p4 .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--b-line); }
html body.p4.p4.p4 .email-form label { display: block; margin: 4px 0 6px; color: var(--b-ink); font-size: 15px; font-weight: 700; }
html body.p4.p4.p4 .local-form input:not([type=hidden]) { box-sizing: border-box; width: 100%; min-height: 48px; margin: 0 0 14px; padding: 10px 14px; border: 1px solid #B9BCBC; border-radius: var(--b-radius); background: #fff; color: var(--b-ink); font: 400 16px/1.4 var(--b-font); }
html body.p4.p4.p4 .local-form input:not([type=hidden])::placeholder { color: var(--b-muted); }
html body.p4.p4.p4 .local-form input:not([type=hidden]):focus { border-color: var(--b-primary); }
html body.p4.p4.p4 .local-form button { width: 100%; min-height: 48px; text-transform: none; letter-spacing: 0; }
html body.p4.p4.p4 .password-hint { margin: -6px 0 14px; color: var(--b-muted); font-size: 14px; }
html body.p4.p4.p4 .auth-forgot { margin: 12px 0 0; font-size: 15px; text-align: center; }
html body.p4.p4.p4 .auth-forgot a, html body.p4.p4.p4 .auth-toggle a { display: inline-flex; align-items: center; min-height: 44px; }
html body.p4.p4.p4 .beta-note { margin: 16px 0 0; color: var(--b-muted); font-size: 15px; }
html body.p4.p4.p4 .access-disclosure { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--b-line); text-align: center; }
html body.p4.p4.p4 .access-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--b-muted); font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
html body.p4.p4.p4 .access-toggle::-webkit-details-marker { display: none; }
html body.p4.p4.p4 .access-toggle::after { content: " \25BE"; }
html body.p4.p4.p4 details[open] .access-toggle::after { content: " \25B4"; }
html body.p4.p4.p4 .access-hint { margin: 8px 0 12px; color: var(--b-muted); font-size: 14px; text-align: left; }
html body.p4.p4.p4 .auth-toggle { margin: 20px 0 0; color: var(--b-text); font-size: 16px; text-align: center; }
html body.p4.p4.p4 .auth-terms { margin: 12px 0 0; color: var(--b-muted); font-size: 14px; text-align: center; }
html body.p4.p4.p4 .auth-terms a { color: var(--b-text); text-decoration: underline; }
@media (max-width: 767px) {
  html body.p4.p4.p4 .p4-auth-wrap { padding: 32px 0 56px; }
  html body.p4.p4.p4 .auth-card { padding: 28px 20px; }
  html body.p4.p4.p4 .auth-heading { font-size: 28px; }
}

/* the older cream/light theme paints body and the email-form buttons with !important; the designer's pages are white with indigo */
html.sx-cream.sx-cream body.p4.p4.p4 { background: #fff !important; }
html.sx-cream.sx-cream:not(.sx-x):not(.sx-y) body.p4.p4.p4 :is(.local-form, .email-form) button.b-btn { background: var(--b-primary) !important; color: #fff !important; border: 1px solid var(--b-primary) !important; }
html.sx-cream.sx-cream:not(.sx-x):not(.sx-y) body.p4.p4.p4 :is(.local-form, .email-form) button.b-btn:hover { background: var(--b-primary-600) !important; }
html.sx-cream.sx-cream:not(.sx-x):not(.sx-y) body.p4.p4.p4 .local-form button.b-btn-secondary { background: #fff !important; color: var(--b-ink) !important; border: 1px solid var(--b-primary) !important; }
html body.p4.p4.p4 .btn-google { box-sizing: border-box; }

/* ================================================================ Shared coaching plan (/p/<id>) */
html body.p4.p4.p4.p4-shared { font-family: var(--b-font); }
html body.p4.p4.p4 .p4-sp-band .sp-kicker { color: #fff; opacity: .92; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
html body.p4.p4.p4 .p4-sp-band h1 { margin: 10px 0 0; font-size: 44px; line-height: 1.1; }
html body.p4.p4.p4 .p4-sp-band .sp-meta { color: #fff; max-width: 820px; margin: 14px 0 0; font-size: 16px; opacity: .95; }
html body.p4.p4.p4 .p4-sp-band .sp-chip { margin-top: 14px; border: 0; background: #fff; color: var(--b-primary-700); font-size: 14px; font-weight: 700; }
html body.p4.p4.p4 .p4-shared .sp-main { max-width: var(--b-container); padding: 48px var(--b-gutter) 96px; box-sizing: border-box; }
html body.p4.p4.p4.p4-shared :is(.sp-head, .sp-plan, .sp-card, .sp-actions, .sp-how) { border: 0; border-radius: var(--b-radius); background: #fff; box-shadow: var(--b-shadow); }
html body.p4.p4.p4.p4-shared .sp-head { margin-top: 0; font-size: 20px; font-weight: 700; color: var(--b-ink); }
html body.p4.p4.p4.p4-shared .sp-head.is-moved { box-shadow: inset 4px 0 0 var(--b-primary), var(--b-shadow); }
html body.p4.p4.p4.p4-shared .sp-plans, html body.p4.p4.p4.p4-shared :is(.sp-card, .sp-actions, .sp-how) { margin-top: 24px; }
html body.p4.p4.p4.p4-shared .sp-plans { gap: 24px; }
html body.p4.p4.p4.p4-shared .sp-plan { padding: 24px; }
html body.p4.p4.p4.p4-shared .sp-card { padding: 28px; }
html body.p4.p4.p4.p4-shared .sp-actions { padding: 28px; }
html body.p4.p4.p4.p4-shared .sp-table th { color: var(--b-ink); background: #fff; }
html body.p4.p4.p4.p4-shared .sp-table thead th { color: var(--b-muted); font-weight: 700; }
html body.p4.p4.p4.p4-shared .sp-btn { min-height: 44px; border-color: var(--b-primary); color: var(--b-ink); font: 700 16px/1.2 var(--b-font); background: #fff; }
html body.p4.p4.p4.p4-shared .sp-btn.primary { background: var(--b-primary); color: #fff; }
html body.p4.p4.p4.p4-shared .sp-how summary { min-height: 44px; display: flex; align-items: center; color: var(--b-ink); font-weight: 800; }
html body.p4.p4.p4.p4-shared .sp-empty { margin-top: 0; border-color: #C9CDFB; background: var(--b-primary-50); color: var(--b-text); }
@media (max-width: 767px) { html body.p4.p4.p4 .p4-sp-band h1 { font-size: 30px; } html body.p4.p4.p4 .p4-shared .sp-main { padding: 24px var(--b-gutter) 64px; } }

/* ================================================================ Email unsubscribe (/email/unsubscribe) */
html body.p4.p4.p4 .p4-unsub-card { max-width: 860px; }
html body.p4.p4.p4 .p4-unsub-card .b-h2 { font-size: 32px; }
@media (max-width: 767px) { html body.p4.p4.p4 .p4-unsub-card .b-h2 { font-size: 26px; } }

/* release 371 (owner): the sign-up photo beside the sign-in card on wide screens; phones keep the card alone */
html body.p4.p4.p4 .p4-auth-photo { display: none; }
@media (min-width: 992px) {
  html body.p4.p4.p4 .p4-auth-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 72px; align-items: center; }
  html body.p4.p4.p4 .p4-auth-grid .auth-card { margin: 0; }
  html body.p4.p4.p4 .p4-auth-photo { display: block; }
}

/* release 373 (design review) ---------------------------------------------------------------------------------------------- */
/* Account: the band holds the title on the left and the owner's photo on the right (wide screens only; phones keep the short band) */
html body.p4.p4.p4 .p4-acct-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
html body.p4.p4.p4 .p4-acct-photo { display: none; }
html body.p4.p4.p4 .p4-acct-photo img { display: block; width: 340px; height: auto; border-radius: var(--b-radius); box-shadow: 0 18px 40px rgba(20, 24, 80, .28); }
@media (min-width: 992px) { html body.p4.p4.p4 .p4-acct-photo { display: block; } html body.p4.p4.p4 .p4-subhero:has(.p4-acct-band) { padding: 48px 0; } }
/* Account: Ask Scoutics' usage links (assistant_usage.css) used the old bright blue #3030ff; the designer's indigo instead */
html body.p4.p4.p4 .sau { --sau-accent: var(--b-primary-600); }
html body.p4.p4.p4 #ask-usage a:not(.b-btn) { color: var(--b-primary-600); }
/* My Bets: the three tabs (Saved, Open, Settled) wrapped onto two rows on phones; one row of three */
html body.p4.p4.p4.p4-bets .mb .bt-views { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* age_gate.js focuses the page's main area (tabindex -1) after "21 or older"; that drew a dark ring around the whole page */
html body.p4.p4.p4 :is(main, #main)[tabindex="-1"]:focus { outline: none; }
/* Pricing: the photo above the method column of the price-gap card */
html body.p4.p4.p4 .p4-gaps-photo { margin: 24px 24px 40px 0; }
html body.p4.p4.p4 .p4-gaps-photo img { aspect-ratio: 3 / 2; }
/* Email unsubscribe: card and parcel photo side by side, the photo under the card on phones */
html body.p4.p4.p4 .p4-unsub-split { align-items: center; }
html body.p4.p4.p4 .p4-unsub-photo { max-width: 480px; justify-self: center; width: 100%; }
@media (max-width: 991px) { html body.p4.p4.p4 .p4-unsub-photo { max-width: 420px; margin: 24px auto 0; } }
