/* Shared public palette. Dialogs outside main keep their own control tokens. */
@media screen {
  html { background: #eeeee5; }
  body:not(.admin) { background: #f8f7f2; }
  body:not(.admin) .site-main {
    --ink: #263b32;
    --ink-800: #263b32;
    --ink-700: #43564c;
    --ink-500: #626b61;
    --ink-400: #747d70;
    --ink-300: #85917e;
    --bg: #fcfbf7;
    --bg-soft: #f1f2e9;
    --bg-cool: #f1f2e9;
    --bg-warm: #f8f7f2;
    --line: #e0e3d8;
    --line-strong: #cfd7c7;
    --accent: #c84704;
    --accent-600: #b63e04;
    --accent-700: #a9400d;
    --accent-soft: #f5ece1;
    --accent-ring: rgb(200 71 4 / 14%);
    color: var(--ink);
    background: #f8f7f2;
  }

  /* Common actions, without changing button sizes or workflow layouts. */
  .site-main .btn--primary:where(:not(:disabled):not([aria-disabled="true"]):not(.pool-purchase-card__button--disabled)) {
    border-color: #c84704;
    border-radius: 11px;
    color: #fff;
    background: var(--home-cta-gradient);
    box-shadow: none;
  }
  .site-main .btn--primary:hover:where(:not(:disabled):not([aria-disabled="true"]):not(.pool-purchase-card__button--disabled)) {
    border-color: #b63e04;
    color: #fff;
    background: var(--home-cta-gradient-hover);
    box-shadow: none;
  }
  .site-main :is(.btn--outline, .btn--ghost):where(:not(:disabled):not([aria-disabled="true"])) {
    border-color: #cfd7c7;
    border-radius: 11px;
    color: #43564c;
    background: transparent;
    box-shadow: none;
  }
  .site-main :is(.btn--outline, .btn--ghost):hover:where(:not(:disabled):not([aria-disabled="true"])) {
    border-color: #aebca3;
    color: #263b32;
    background: #eeeee5;
    box-shadow: none;
  }
  .site-main :is(.page-title, .section__title) { color: #263b32; }
  .site-main .kicker { color: #a34d25; }
  .site-main .page-lead { color: #626b61; }

  /* Standalone access, resend and status forms. */
  .site-main .auth-page { background: #f8f7f2; }
  .site-main .auth-panel { gap: clamp(1.25rem, 3vw, 2.5rem); }
  .site-main .auth-panel__main {
    max-width: none;
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fcfbf7;
  }
  .site-main .auth-panel__aside { background: #f1f2e9; border-color: #e0e3d8; }
  .site-main .auth-panel__main .auth-form { max-width: none; }
  .site-main .auth-panel :is(.page-title, .page-lead, .form-hint, .notice-box) {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .site-main :where(.auth-form__input) {
    min-width: 0;
    min-height: 50px;
    border-color: #cfd7c7;
    border-radius: 10px;
    color: #263b32;
    background: #fffefa;
    font-size: 1rem;
  }
  .site-main :where(.auth-form__input):focus-visible {
    outline: 2px solid #b94005;
    outline-offset: 2px;
  }
  .site-main .auth-form__input[aria-invalid="true"],
  .site-main .field--invalid .auth-form__input { border-color: #b44832; }
  .site-main .auth-form__input[aria-invalid="true"]:focus-visible,
  .site-main .field--invalid .auth-form__input:focus-visible {
    outline-color: #b44832;
    border-color: #b44832;
    box-shadow: 0 0 0 3px rgb(180 72 50 / 14%);
  }

  /* Registration results, email verification and application access. */
  .site-main .registration-received-page,
  .site-main :is(.verification-result-page, .application-status-page) .received-section,
  .site-main .document-upload-page { background: #f8f7f2; }
  .site-main :is(.verification-result-page, .application-status-page) .container.received-shell,
  .site-main .business-document-panel,
  .site-main .account-card { background: #fcfbf7; border-color: #e0e3d8; box-shadow: none; }
  .site-main .status-facts > div { min-width: 0; }
  .site-main .status-facts dd { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .site-main .registration-received-page .received-next:not(.received-next--attention),
  .site-main .application-status-page .received-process { background: #f1f2e9; }
  .site-main .registration-received-page .received-heading__mark:not(.received-heading__mark--attention) {
    color: #526b45;
    background: #e8eddf;
  }
  .site-main :is(.auth-switch, .partner-password-next, .partner-password-support, .received-footer, .received-account-links, .application-access-help) a:not(.btn) {
    color: #a9400d;
    text-underline-offset: 3px;
  }

  /* A calm result page replaces the old dark error illustration. */
  .site-main .error-page { background: #f8f7f2; }
  .site-main .error-page__panel { background: #fcfbf7; box-shadow: none; }
  .site-main .error-page__visual {
    color: #263b32;
    background: #e9eddf;
    border-bottom: 1px solid #cfd7c7;
  }
  .site-main .error-page__code { color: #526b45; text-shadow: none; }
  .site-main .error-page__visual-note { color: #626b61; }
  .site-main .error-page__paths > a { background: #fcfbf7; }
  .site-main .contact-received { background: #f8f7f2; }

  /* Guest conversations use the same surfaces as signed-in messages. */
  .site-main .support-page { background: #f8f7f2; color: #263b32; }
  .site-main :is(.support-inbox, .support-empty, .support-conversation, .support-message) {
    background: #fcfbf7;
    border-color: #e0e3d8;
  }
  .site-main .support-conversation__log { background: #f1f2e9; }
  .site-main .support-message--mine { background: #e8eddf; border-color: #cfd7c7; }
  .site-main .support-page__heading .kicker { color: #a34d25; }

  /* Floating planner notes follow the shared palette. Forms stay clear. */
  .sticky-cta__btn { color: #263b32; background: #fcfbf7; border-color: #cfd7c7; border-radius: 12px; backdrop-filter: none; box-shadow: 0 6px 24px #263b3214; }
  .sticky-cta__btn:hover { color: #263b32; border-color: #aebca3; }
  .sticky-cta__btn small { color: #626b61; }
  .sticky-cta__go { color: #fff; background: var(--home-cta-gradient); }
  .sticky-cta__close { color: #53634f; border-color: #cfd7c7; background: #fcfbf7; }
  body:has(.auth-page, .registration-received-page, .document-upload-page, .request-flow-page, .contact-received, .error-page) .sticky-cta { display: none; }
}

@media screen and (max-width: 768px) {
  .site-main .choice-card__body { overflow-wrap: anywhere; }
}
