/* StyleKit · corporate-clean · project implementation */
:root {
  --color-corporate-blue: #1e40af;
  --color-slate-mist: #f8fafc;
  --color-action-blue: #3b82f6;
  --color-slate: #64748b;
  --color-confirm-green: #10b981;
  --color-hint-violet: #c559f0;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --text-display: 60px;
  --leading-display: 1.1;
  --tracking-display: -0.02em;
  --text-heading-lg: 36px;
  --leading-heading-lg: 1.2;
  --tracking-heading-lg: -0.01em;
  --text-heading: 30px;
  --leading-heading: 1.25;
  --text-subheading: 20px;
  --leading-subheading: 1.4;
  --text-body-lg: 18px;
  --text-body: 16px;
  --leading-body: 1.65;
  --text-body-sm: 14px;
  --leading-body-sm: 1.6;
  --text-label: 12px;
  --leading-label: 1.4;
  --tracking-label: 0.04em;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-48: 48px;
  --spacing-64: 64px;
  --spacing-96: 96px;
  --spacing-128: 128px;
  --page-max-width: 1120px;
  --radius-cards: 12px;
  --radius-buttons: 8px;
  --radius-inputs: 8px;
  --radius-badges: 999px;
  --shadow-rest: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.08);
  --focus-ring: 0 0 0 2px #f8fafc, 0 0 0 4px #3b82f6;

  --ink: #0f172a;
  --muted: #64748b;
  --muted-2: #64748b;
  --line: #e5e7eb;
  --mist: #f8fafc;
  --white: #ffffff;
  --blue: #1e40af;
  --blue-hover: #1e3a8a;
  --forest: #0f172a;
  --forest-2: #1e293b;
  --green: #1e40af;
  --lime: #dbeafe;
  --lime-2: #eff6ff;
  --cream: #f8fafc;
  --paper: #ffffff;
  --coral: #1e40af;
  --coral-soft: #eff6ff;
  --yellow: #bfdbfe;
  --yellow-soft: #eff6ff;
}

* {
  animation-duration: 160ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 160ms !important;
  transition-timing-function: ease-out !important;
}

html {
  background: var(--color-slate-mist) !important;
}

body {
  color: #0f172a !important;
  background: #f8fafc !important;
  font-family: var(--font-sans) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  letter-spacing: normal !important;
}

h1,
h2,
h3,
h4,
p {
  text-wrap: pretty;
}

a,
button,
input,
select,
textarea {
  font-family: var(--font-sans) !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-action-blue) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

button:active,
.button-primary:active,
.button-quiet:active,
.buy-primary:active,
.finish-button:active,
.dock-item:active,
.claim-button:active,
.checkin-button:active,
.proof-action:active {
  transform: scale(0.98) !important;
}

/* Shared product-page surfaces */
.global-nav,
.member-nav {
  height: 64px !important;
  color: #0f172a !important;
  border-bottom: 1px solid #e5e7eb !important;
  background: #ffffff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.nav-inner {
  width: min(calc(100% - 32px), 1120px) !important;
  gap: 24px !important;
}

.brand {
  color: #0f172a !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
}

.brand-symbol,
.brand-mark {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  background: #1e40af !important;
  box-shadow: none !important;
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.nav-links {
  gap: 24px !important;
}

.nav-links a {
  color: #64748b !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.nav-links a:hover {
  color: #0f172a !important;
  transform: translateY(-1px);
}

.nav-links a::after {
  display: none !important;
}

.nav-buy,
.button-primary,
.buy-primary,
.claim-button,
.checkin-button,
.modal-button.primary,
.proof-submit {
  min-height: 40px !important;
  padding: 8px 16px !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  background: #1e40af !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
}

.nav-buy:hover,
.button-primary:hover,
.buy-primary:hover,
.claim-button:hover,
.checkin-button:hover,
.modal-button.primary:hover,
.proof-submit:hover {
  transform: translateY(-2px);
  background: #1e3a8a !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.button-secondary,
.secondary-button,
.quiet-button,
.reset-button,
.profile-back,
.proof-cancel,
.member-action,
.modal-button.secondary {
  min-height: 40px !important;
  padding: 8px 14px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.button-secondary:hover,
.secondary-button:hover,
.quiet-button:hover,
.reset-button:hover,
.profile-back:hover,
.proof-cancel:hover,
.member-action:hover,
.modal-button.secondary:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.button-quiet,
.footer-links a,
.admin-link {
  color: #1e40af !important;
}

/* Product landing page */
.hero {
  min-height: calc(100svh - 64px) !important;
  padding: 72px 20px 48px !important;
  color: #0f172a !important;
  background: #f8fafc !important;
}

.hero::before {
  display: none !important;
}

.hero-copy {
  width: min(100%, 1120px) !important;
}

.hero-kicker,
.section-kicker,
.feature-index,
.buy-kicker,
.eyebrow {
  margin-bottom: 12px !important;
  color: #1e40af !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
}

.hero h1,
.claim-hero h1,
.profile-heading h1,
.member-heading h1 {
  margin-top: 0 !important;
  color: #0f172a !important;
  font-family: var(--font-sans) !important;
  font-size: clamp(42px, 7vw, 60px) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
}

.hero h1 .pro {
  display: inline !important;
  margin: 0 !important;
  color: #1e40af !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
}

.hero-subtitle,
.claim-hero > p,
.profile-heading p {
  max-width: 680px !important;
  margin: 20px auto 0 !important;
  color: #64748b !important;
  font-size: 18px !important;
  line-height: 1.65 !important;
  letter-spacing: normal !important;
}

.hero-subtitle strong {
  color: #0f172a !important;
  font-weight: 600 !important;
}

.hero-actions {
  margin-top: 24px !important;
  gap: 16px !important;
}

.hero .button-primary {
  color: #ffffff !important;
  background: #1e40af !important;
}

.hero .button-primary:hover {
  background: #1e3a8a !important;
}

.hero .button-quiet,
.button-quiet {
  min-height: 40px !important;
  padding: 8px 4px !important;
  color: #1e40af !important;
  background: transparent !important;
  font-size: 14px !important;
}

.hero-price-note {
  margin-top: 12px !important;
  color: #64748b !important;
  font-size: 12px !important;
}

.product-stage {
  height: 340px !important;
  margin-top: 36px !important;
  animation: none !important;
}

.product-glow {
  display: none !important;
}

.card-float {
  width: min(460px, 78vw) !important;
  animation: none !important;
}

html[data-finish="graphite"],
html[data-finish="silver"],
html[data-finish="blue"] {
  --card-bg: #0f172a;
  --card-text: #ffffff;
  --card-muted: rgba(255, 255, 255, 0.66);
  --card-border: rgba(255, 255, 255, 0.16);
  --card-accent: #bfdbfe;
  --card-chip: #cbd5e1;
}

html[data-finish="silver"] {
  --card-bg: #e2e8f0;
  --card-text: #0f172a;
  --card-muted: #64748b;
  --card-border: #cbd5e1;
  --card-accent: #1e40af;
  --card-chip: #94a3b8;
}

html[data-finish="blue"] {
  --card-bg: #1e40af;
  --card-text: #ffffff;
  --card-muted: rgba(255, 255, 255, 0.7);
  --card-border: rgba(255, 255, 255, 0.18);
  --card-accent: #ffffff;
  --card-chip: #93c5fd;
}

.discipline-card,
.buy-card,
.member-card {
  border-radius: 16px !important;
  color: var(--card-text) !important;
  background: var(--card-bg) !important;
  border-color: var(--card-border) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
  transform: none !important;
  transition: box-shadow 160ms ease-out, transform 160ms ease-out !important;
}

.discipline-card::before,
.discipline-card::after,
.buy-card::before,
.member-card::before,
.member-card::after {
  display: none !important;
}

.discipline-card:hover,
.buy-card:hover,
.member-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1) !important;
}

.card-chip {
  background: var(--card-chip) !important;
}

.floating-pill {
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: none !important;
}

.floating-pill strong {
  color: #0f172a !important;
}

.floating-pill small {
  color: #64748b !important;
}

.pill-mark,
.pill-right .pill-mark {
  color: #1e40af !important;
  background: #dbeafe !important;
}

.hero-scroll {
  color: #64748b !important;
}

/* Reveals are short and restrained. */
.js .reveal {
  opacity: 0;
  transform: translateY(12px) !important;
  transition: opacity 160ms ease-out, transform 160ms ease-out !important;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0) !important;
}

.features,
.buy-section,
.site-footer {
  background: #ffffff !important;
}

.features,
.specs,
.buy-section {
  padding: 96px 0 !important;
}

.section-inner {
  width: min(calc(100% - 32px), 1120px) !important;
}

.section-intro {
  margin-bottom: 96px !important;
  text-align: left !important;
}

.section-title,
.specs-heading h2,
.feature-copy h2,
.buy-config h2 {
  color: #0f172a !important;
  font-family: var(--font-sans) !important;
  font-size: clamp(30px, 4vw, 36px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
}

.section-lede {
  max-width: 680px !important;
  margin: 16px 0 0 !important;
  color: #64748b !important;
  font-size: 18px !important;
  line-height: 1.65 !important;
}

.feature-row,
.feature-row.reverse {
  min-height: 0 !important;
  margin-bottom: 96px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 64px !important;
}

.feature-copy {
  max-width: 480px !important;
}

.feature-copy p,
.micro-note {
  color: #64748b !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
}

.feature-copy .micro-note {
  font-size: 14px !important;
}

.feature-visual {
  min-height: 450px !important;
  padding: 32px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
}

.feature-visual::before {
  display: none !important;
}

.feature-card,
.ledger-card {
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.feature-visual:hover .feature-card {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.ledger-visual {
  background: #f8fafc !important;
}

.ledger-brand,
.ledger-balance,
.ledger-balance strong,
.ledger-balance strong small,
.manager-copy,
.manager-copy strong,
.ledger-row,
.ledger-row strong {
  color: #0f172a !important;
}

.ledger-status,
.ledger-balance,
.ledger-row {
  color: #64748b !important;
}

.ledger-balance strong small {
  color: #1e40af !important;
}

.ledger-card .manager-avatar {
  color: #1e40af !important;
  border-color: #ffffff !important;
  background: #dbeafe !important;
}

.ledger-card .manager-avatar:nth-child(2),
.ledger-card .manager-avatar:nth-child(3),
.ledger-card .manager-avatar:nth-child(4) {
  background: #e2e8f0 !important;
}

.ledger-rows,
.ledger-row {
  border-color: #e5e7eb !important;
}

.visual-chip,
.reward-badge {
  color: #1e40af !important;
  border-radius: 999px !important;
  background: #dbeafe !important;
}

.completion-ring {
  background: conic-gradient(#1e40af 0 96%, #e2e8f0 96% 100%) !important;
}

.day-pill {
  border-color: #e5e7eb !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
}

.reward-bar,
.reward-bar-group:nth-child(2) .reward-bar,
.reward-bar-group:nth-child(3) .reward-bar {
  border-radius: 8px 8px 0 0 !important;
  background: #1e40af !important;
}

.reward-bar-group:nth-child(2) .reward-bar {
  background: #3b82f6 !important;
}

.reward-bar-group:nth-child(3) .reward-bar {
  background: #0f172a !important;
}

.specs {
  background: #f8fafc !important;
}

.specs-heading {
  margin-bottom: 64px !important;
}

.spec-list {
  border-top: 1px solid #e5e7eb !important;
}

.spec-row {
  border-bottom: 1px solid #e5e7eb !important;
  padding: 20px 0 !important;
}

.spec-key,
.spec-value small,
.spec-aside {
  color: #64748b !important;
  font-size: 14px !important;
}

.spec-value {
  color: #0f172a !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

.buy-shell {
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

.buy-visual {
  min-height: 500px !important;
  background: #f8fafc !important;
}

.buy-visual::after {
  display: none !important;
}

.buy-config {
  background: #ffffff !important;
}

.buy-price strong {
  color: #0f172a !important;
}

.finish-button {
  width: 44px !important;
  height: 44px !important;
}

.finish-button[aria-checked="true"] {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #3b82f6 !important;
}

.finish-dot {
  width: 32px !important;
  height: 32px !important;
}

.finish-dot.graphite {
  background: #0f172a !important;
}

.finish-dot.silver {
  border-color: #cbd5e1 !important;
  background: #e2e8f0 !important;
}

.finish-dot.blue {
  background: #1e40af !important;
}

.buy-note,
.live-card,
.footer-bottom {
  color: #64748b !important;
}

.live-state {
  color: #1e40af !important;
  background: #dbeafe !important;
}

.site-footer {
  border-top: 1px solid #e5e7eb !important;
}

.footer-product {
  color: #0f172a !important;
}

.footer-links a {
  color: #64748b !important;
  font-size: 14px !important;
}

/* Corporate-clean mobile dock replaces WebGL glass. */
.liquid-dock {
  display: none;
  width: calc(100% - 16px) !important;
  max-width: 560px;
  height: 60px !important;
  bottom: max(8px, calc(env(safe-area-inset-bottom) + 6px)) !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.liquid-dock-effect,
.liquid-dock-tint,
.liquid-dock-shine,
.liquid-dock::before,
.liquid-dock::after {
  display: none !important;
}

.liquid-dock .dock-indicator {
  top: 6px !important;
  bottom: 6px !important;
  left: 6px !important;
  width: calc((100% - 12px) / 4) !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 8px !important;
  background: #eff6ff !important;
  box-shadow: none !important;
}

.liquid-dock .dock-content {
  padding: 6px !important;
}

.liquid-dock .dock-item {
  border-radius: 8px !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

.liquid-dock .dock-item[aria-current="page"] {
  color: #1e40af !important;
}

.liquid-dock .dock-item svg {
  width: 20px !important;
  height: 20px !important;
}

/* Purchase modal and generic dialogs */
.purchase-modal,
.proof-modal,
.import-modal {
  background: rgba(15, 23, 42, 0.36) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

.modal-panel,
.proof-panel,
.import-panel {
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Member portal */
html,
body[data-page],
body {
  color-scheme: light;
}

body {
  background: #f8fafc !important;
}

.member-nav {
  background: #ffffff !important;
}

.member-nav .brand,
.member-nav .nav-back {
  color: #0f172a !important;
}

.member-nav .nav-back {
  color: #64748b !important;
  font-size: 14px !important;
}

.claim-hero,
.profile-heading,
.member-heading {
  text-align: left !important;
}

.claim-hero {
  padding-top: 24px;
}

.claim-hero h1,
.profile-heading h1,
.member-heading h1 {
  color: #0f172a !important;
  font-size: clamp(36px, 6vw, 60px) !important;
}

.claim-hero > p,
.profile-heading p {
  max-width: 680px !important;
  margin-left: 0 !important;
  color: #64748b !important;
  font-size: 18px !important;
}

.claim-panel,
.profile-panel {
  width: min(100%, 640px) !important;
  margin-left: 0 !important;
  padding: 24px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.claim-panel h2,
.profile-panel h2 {
  color: #0f172a !important;
  text-align: left !important;
}

.claim-panel > p,
.profile-panel > p,
.avatar-copy p,
.profile-hint,
.privacy-note {
  color: #64748b !important;
}

.profile-avatar {
  border: 1px solid #e5e7eb !important;
  color: #1e40af !important;
  background: #eff6ff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

.avatar-copy strong,
.profile-field label {
  color: #0f172a !important;
}

.profile-input,
.code-input,
.proof-note {
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: none !important;
  font-size: 16px !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-align: left !important;
}

.code-input {
  font-family: var(--font-sans) !important;
}

.code-input::placeholder,
.proof-note::placeholder {
  color: #94a3b8 !important;
}

.profile-input:focus,
.code-input:focus,
.proof-note:focus {
  border-color: #1e40af !important;
  box-shadow: 0 0 0 2px #f8fafc, 0 0 0 4px #3b82f6 !important;
}

.profile-step,
.member-info-card,
.tier-item,
.daily-card,
.hygiene-task {
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.member-lower,
.daily-hub {
  width: min(100%, 1120px) !important;
}

.daily-hub {
  padding: 24px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: none !important;
}

.daily-head h2,
.daily-card h3,
.task-title strong,
.member-info-card strong,
.tier-item strong {
  color: #0f172a !important;
}

.daily-date,
.daily-card > p,
.hygiene-task p,
.task-title span,
.member-info-card p,
.tier-item p,
.no-task {
  color: #64748b !important;
}

.daily-summary span,
.daily-state,
.participant-months {
  color: #1e40af !important;
  background: #eff6ff !important;
}

.daily-icon,
.daily-icon.hygiene {
  color: #1e40af !important;
  background: #dbeafe !important;
}

.checkin-button.done {
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
  background: #ecfdf5 !important;
}

.proof-action {
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  color: #1e40af !important;
  background: #ffffff !important;
}

.proof-preview {
  border-color: #d1d5db !important;
  border-radius: 8px !important;
  color: #64748b !important;
  background: #f8fafc !important;
}

.member-actions {
  justify-content: flex-start !important;
}

.page-footer {
  color: #64748b !important;
  border-top: 1px solid #e5e7eb !important;
  background: #ffffff !important;
}

/* Backend: consistent corporate shell */
.auth-view,
.app-view,
.main-panel {
  background: #f8fafc !important;
}

.auth-shell,
.panel-card,
.metric-card,
.sidebar,
.sidebar-user,
.access-code-panel,
.hygiene-import-preview {
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.auth-brand {
  color: #0f172a !important;
  border-right: 1px solid #e5e7eb !important;
  background: #eff6ff !important;
}

.auth-brand::after {
  display: none !important;
}

.auth-form-side {
  background: #ffffff !important;
}

.auth-hero h1,
.auth-form-wrap h2,
.topbar h1,
.panel-head h2,
.daily-toolbar h2,
.metric-value,
.metric-card:first-child .metric-value,
.import-head h2 {
  color: #0f172a !important;
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

.auth-hero h1,
.auth-form-wrap h2 {
  font-size: 30px !important;
  line-height: 1.25 !important;
}

.auth-hero p,
.auth-description,
.auth-point,
.panel-head p,
.metric-label,
.form-kicker,
.save-state {
  color: #64748b !important;
}

.auth-kicker,
.form-kicker,
.topbar-kicker,
.panel-chip,
.mapping-chip {
  color: #1e40af !important;
}

.panel-chip,
.mapping-chip {
  background: #eff6ff !important;
}

.auth-point::before {
  color: #ffffff !important;
  background: #1e40af !important;
}

.sidebar {
  color: #0f172a !important;
  background: #ffffff !important;
  border-width: 0 1px 0 0 !important;
  box-shadow: none !important;
}

.sidebar .brand-lockup,
.sidebar-user-name {
  color: #0f172a !important;
}

.brand-subtitle,
.sidebar-user-role {
  color: #64748b !important;
}

.nav-button {
  border-radius: 8px !important;
  color: #64748b !important;
}

.nav-button:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

.nav-button.active {
  color: #ffffff !important;
  background: #1e40af !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

.sidebar-link {
  border-radius: 8px !important;
  color: #64748b !important;
  border-color: #e5e7eb !important;
  background: #ffffff !important;
}

.metric-card {
  padding: 24px !important;
}

.panel-card {
  padding: 24px !important;
}

.quick-guide .guide-item,
.checkbox-row,
.calc-preview,
.disclosure-preview,
.notice-banner {
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  color: #64748b !important;
  background: #f8fafc !important;
}

.guide-number {
  color: #1e40af !important;
  background: #dbeafe !important;
}

.input,
.select,
.textarea {
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  color: #0f172a !important;
  background: #ffffff !important;
  font-size: 16px !important;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: #1e40af !important;
  box-shadow: 0 0 0 2px #f8fafc, 0 0 0 4px #3b82f6 !important;
}

.primary-button {
  color: #ffffff !important;
  background: #1e40af !important;
}

.primary-button:hover {
  background: #1e3a8a !important;
}

.secondary-button {
  color: #1e40af !important;
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}

.quiet-button,
.row-button {
  color: #0f172a !important;
  background: #ffffff !important;
}

.row-button {
  border-radius: 6px !important;
}

.status-badge,
.review-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px !important;
}

.status-badge::before,
.review-state::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-badge.pending,
.review-state.submitted {
  color: #1e40af !important;
  background: #eff6ff !important;
}

.status-badge.approved,
.review-state.approved {
  color: #047857 !important;
  background: #ecfdf5 !important;
}

.status-badge.paid {
  color: #ffffff !important;
  background: #1e40af !important;
}

.review-state.needs_fix {
  color: #b91c1c !important;
  background: #fef2f2 !important;
}

.import-modal,
.modal-panel,
.proof-panel {
  border-radius: 12px !important;
}

.data-table th {
  background: #f8fafc !important;
}

.daily-toolbar,
.panel-card {
  border-radius: 12px !important;
}

.daily-layout {
  gap: 24px !important;
}

.toast {
  border-radius: 8px !important;
  background: #0f172a !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

@media (max-width: 900px) {
  .liquid-dock {
    display: block !important;
  }

  .site-footer {
    padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 800px) {
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    margin-bottom: 72px !important;
  }

  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-visual {
    order: initial !important;
  }

  .feature-row.reverse .feature-copy {
    order: 1 !important;
  }

  .feature-row.reverse .feature-visual {
    order: 2 !important;
  }
}

@media (max-width: 640px) {
  .global-nav,
  .member-nav {
    height: 56px !important;
  }

  .nav-inner {
    width: calc(100% - 24px) !important;
  }

  .brand {
    font-size: 16px !important;
  }

  .brand-symbol,
  .brand-mark {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
  }

  .nav-buy {
    min-height: 36px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
  }

  .hero {
    min-height: 0 !important;
    padding: 48px 16px 40px !important;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 52px) !important;
  }

  .hero h1 .pro {
    display: block !important;
  }

  .hero-subtitle {
    margin-top: 16px !important;
    font-size: 16px !important;
  }

  .hero-actions {
    display: flex !important;
    margin-top: 24px !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .hero-actions .button-primary,
  .hero-actions .button-quiet {
    width: 100% !important;
  }

  .hero-actions .button-quiet {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background: #ffffff !important;
  }

  .product-stage {
    height: 235px !important;
    margin-top: 32px !important;
  }

  .card-float {
    width: min(330px, 92vw) !important;
  }

  .discipline-card {
    padding: 18px !important;
  }

  .floating-pill {
    display: none !important;
  }

  .hero-scroll {
    display: none !important;
  }

  .features,
  .specs,
  .buy-section {
    padding: 64px 0 !important;
  }

  .section-inner {
    width: calc(100% - 32px) !important;
  }

  .section-intro {
    margin-bottom: 56px !important;
  }

  .section-title,
  .specs-heading h2,
  .feature-copy h2,
  .buy-config h2 {
    font-size: 30px !important;
  }

  .section-lede {
    font-size: 16px !important;
  }

  .feature-visual {
    min-height: 380px !important;
    padding: 16px !important;
  }

  .feature-card,
  .ledger-card {
    padding: 18px !important;
  }

  .specs-heading {
    margin-bottom: 40px !important;
  }

  .spec-row {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }

  .buy-shell {
    border-radius: 12px !important;
  }

  .buy-visual {
    min-height: 300px !important;
    padding: 18px !important;
  }

  .buy-card {
    width: min(100%, 320px) !important;
    padding: 18px !important;
  }

  .buy-config {
    padding: 24px 18px !important;
  }

  .footer-top,
  .footer-bottom {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .footer-links {
    justify-content: flex-start !important;
    gap: 12px 20px !important;
  }

  .claim-shell,
  .claim-hero,
  .profile-heading,
  .member-heading {
    text-align: left !important;
  }

  main {
    padding: 84px 16px 48px !important;
  }

  .claim-panel,
  .profile-panel {
    width: 100% !important;
    padding: 20px !important;
  }

  .card-stage {
    min-height: 235px !important;
  }

  .member-card {
    width: 100% !important;
    padding: 20px !important;
  }

  .member-lower,
  .tier-guide,
  .daily-grid {
    grid-template-columns: 1fr !important;
  }

  .daily-hub {
    padding: 18px !important;
  }

  .proof-modal {
    padding: 12px !important;
  }

  .proof-panel {
    padding: 20px !important;
  }

  .member-actions {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .member-action {
    width: 100% !important;
  }

  .liquid-dock {
    height: 58px !important;
  }
}

/* Backend tablet/mobile shell */
@media (max-width: 900px) {
  .auth-view {
    padding: 16px !important;
  }

  .auth-shell {
    grid-template-columns: 1fr !important;
  }

  .auth-brand {
    min-height: 230px !important;
    padding: 28px !important;
    border-right: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
  }

  .app-view {
    display: block !important;
  }

  .sidebar {
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    padding: 10px 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
  }

  .sidebar .brand-lockup {
    margin-bottom: 8px !important;
  }

  .sidebar-nav {
    display: flex !important;
    margin: 0 !important;
    gap: 4px !important;
    overflow-x: auto !important;
  }

  .nav-button {
    width: auto !important;
    min-width: max-content !important;
    min-height: 38px !important;
  }

  .sidebar-spacer,
  .sidebar-user {
    display: none !important;
  }

  .main-panel {
    padding: 24px 16px 48px !important;
  }

  .content-grid,
  .payout-layout,
  .users-layout,
  .daily-layout {
    grid-template-columns: 1fr !important;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .panel-head {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .panel-actions {
    width: 100% !important;
    justify-content: flex-start !important;
  }
}

@media (max-width: 480px) {
  .main-panel {
    padding: 20px 12px 40px !important;
  }

  .topbar {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .metric-card,
  .panel-card {
    padding: 16px !important;
  }

  .two-fields,
  .three-fields {
    grid-template-columns: 1fr !important;
  }

  .daily-toolbar {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .daily-toolbar-actions {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .daily-toolbar-actions .input {
    width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
