/* The profile and security screens use the same light surfaces and status colors. */
html[data-theme="light"] {
  color-scheme: light;
  --business-account-canvas: #f8f3ee;
  --business-account-card: #fff;
  --business-account-text: #201a16;
  --business-account-muted: #665b52;
  --business-account-line: #e5d8ce;
  --business-account-accent: #a43d09;
  --business-account-success: #17603b;
  --business-account-error: #9a2722;
  background: var(--business-account-canvas);
}
html[data-theme="light"] body {
  --text: var(--business-account-text);
  --surface: var(--business-account-card);
  --surface2: #fbf7f3;
  --raised: #fbf7f3;
  --line: var(--business-account-line);
  --muted: var(--business-account-muted);
  --muted2: var(--business-account-muted);
  --danger: var(--business-account-error);
  color: var(--text);
  background: var(--business-account-canvas);
}
html[data-theme="light"] :is(.business-profile-shell, .profiles-shell, .security-shell) {
  background: radial-gradient(ellipse at top right, #ffeadb, transparent 25rem),
    var(--business-account-canvas);
  box-shadow: none;
}
html[data-theme="light"] :is(.business-profile-header, .profiles-titlebar, .security-header) {
  background: var(--business-account-canvas);
}
html[data-theme="light"] :is(.business-profile-circle, .profiles-back, .security-header-action) {
  background: var(--surface);
  color: var(--text);
}
html[data-theme="light"] :is(.business-profile-identity, .current-profile, .security-health) {
  background: linear-gradient(135deg, #fff, #fff2e9);
}
html[data-theme="light"] :is(
  .business-profile-menu, .business-card, .setup-business, .business-profile-context select,
  .loading-card, .security-section, .security-shell input, .security-shell .secondary,
  .security-shell .secret-box, .business-profile-bottom-nav
) {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
html[data-theme="light"] :is(
  .health-item, .completion-dot, .detail-strip, .locked-note, .session, .profiles-state, .empty-business
) {
  background: var(--raised);
  color: var(--muted);
  border-color: var(--line);
}
html[data-theme="light"] :is(
  .business-profile-menu > a + a, .security-section-panel, .email-change-form, .security-shell .meta
) { border-color: var(--line); }
html[data-theme="light"] :is(
  .business-profile-identity small, .business-profile-menu small, .business-profile-bottom-nav a,
  .profiles-titlebar span, .profile-copy span, .profiles-shell .section-heading > span,
  .business-main p, .register-row small, .profiles-note, .security-header span, .health-item small,
  .settings-heading > span, .section-copy small, .pending-change p, .pending-change small,
  .security-shell .meta, .security-shell .session span, .payment-settings-link small, .security-footnote
) { color: var(--muted); }
html[data-theme="light"] :is(
  .business-profile-intro > span, .business-profile-section-head > span, .business-profile-identity > div:nth-child(2) > span,
  .business-profile-chevron, .business-profile-support, .business-profile-context > span,
  .business-profile-bottom-nav a.active, .profiles-shell .eyebrow, .profile-copy small,
  .status-chip.setup, .register-row b, .security-shell :is(.eyebrow, .label), .completion-score,
  .completion-dot.done, .section-badge, .section-chevron, .verify-button, .security-shell .secret-box code,
  .payment-settings-link b
) { color: var(--business-account-accent); }
html[data-theme="light"] .profiles-context { color: var(--business-account-accent) !important; }
html[data-theme="light"] :is(.business-profile-chip, .current-badge, .status-chip:not(.setup), .section-badge.ok, .security-shell .success) {
  color: var(--business-account-success);
}
html[data-theme="light"] :is(.business-profile-error, .profiles-error, .security-shell .error) {
  color: var(--business-account-error);
}
html[data-theme="light"] :is(
  .empty-business strong, .register-row, .security-shell .meta strong, .security-shell label, .payment-settings-link
) { color: var(--text); }
html[data-theme="light"] .security-shell .progress { background: #e9d9ca; }
html[data-theme="light"] .security-shell input::placeholder { color: var(--muted); }
html[data-theme="light"] .business-profile-bottom-nav { box-shadow: 0 12px 30px #281b171e; }

@media (min-width: 800px) {
  :is(.business-profile-shell, .profiles-shell, .security-shell) {
    width: min(100%, 64rem);
    padding-inline: clamp(1.75rem, 4vw, 3rem);
  }
  .business-profile-shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    align-items: start;
    column-gap: 1.5rem;
  }
  .business-profile-shell > :not(.business-profile-section) {
    grid-column: 1 / -1;
  }
  .business-profile-bottom-nav {
    width: min(calc(100% - 3rem), 32rem);
  }
  .business-list {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  }
  .security-shell .health-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .security-shell .security-section-panel > form {
    max-inline-size: 36rem;
  }
}
