/* StyleKit · liquid-glass · project implementation */
:root {
  --color-paper: #f3f2ed;
  --color-ink: #202929;
  --color-glass-scene: #25414a;
  --color-glass-mist: #e4efeb;
  --color-glass-glint: #ffffff;
  --color-focus: #557b79;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --text-display: 56px;
  --leading-display: 1.05;
  --tracking-display: -0.045em;
  --text-heading-lg: 40px;
  --leading-heading-lg: 1.12;
  --tracking-heading-lg: -0.035em;
  --text-heading: 28px;
  --leading-heading: 1.2;
  --text-subheading: 20px;
  --leading-subheading: 1.35;
  --text-body-lg: 16px;
  --leading-body-lg: 1.55;
  --text-body: 14px;
  --leading-body: 1.5;
  --text-label: 12px;
  --leading-label: 1.35;
  --tracking-label: 0.025em;
  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-48: 48px;
  --spacing-64: 64px;
  --spacing-88: 88px;
  --page-max-width: 1120px;
  --radius-buttons-and-navigation: 999px;
  --radius-search-and-segmented-controls: 999px;
  --radius-cards: 24px;
  --radius-menus-and-sheets: 28px;

  --ink: #202929;
  --muted: #64716f;
  --muted-2: #64716f;
  --mist: #f3f2ed;
  --white: #fcfcfa;
  --line: transparent;
  --blue: #557b79;
  --blue-hover: #3f6462;
  --forest: #25414a;
  --forest-2: #1d343b;
  --green: #3f7770;
  --lime: #dce8e3;
  --lime-2: #edf3f0;
  --cream: #f3f2ed;
  --paper: #fcfcfa;
  --coral: #8b6b62;
  --coral-soft: #f0e6e1;
  --yellow: #efe6cc;
  --yellow-soft: #f7f1e3;
}

*,
*::before,
*::after {
  transition-duration: 180ms !important;
  transition-timing-function: ease-out !important;
}

html,
body {
  color: #202929 !important;
  background-color: #f3f2ed !important;
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  -webkit-text-size-adjust: 100% !important;
}

body {
  background-image:
    linear-gradient(rgba(37, 65, 74, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 65, 74, 0.035) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
}

h1,
h2,
h3,
.hero h1,
.claim-hero h1,
.profile-heading h1,
.member-heading h1 {
  color: #202929 !important;
  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 #557b79 !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

/* Floating glass navigation */
.global-nav,
.member-nav {
  top: max(8px, env(safe-area-inset-top)) !important;
  right: max(12px, env(safe-area-inset-right)) !important;
  left: max(12px, env(safe-area-inset-left)) !important;
  height: 60px !important;
  overflow: hidden;
  color: #202929 !important;
  border: 1px solid rgba(255, 255, 255, 0.66) !important;
  border-radius: 999px !important;
  background: rgba(239, 245, 242, 0.36) !important;
  box-shadow:
    0 8px 24px rgba(19, 37, 41, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(14px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(125%) !important;
}

.global-nav[data-liquid-glass="webgl"],
.member-nav[data-liquid-glass="webgl"] {
  background: rgba(233, 241, 238, 0.1) !important;
}

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

.brand {
  color: #202929 !important;
  font-size: 17px !important;
  font-weight: 500 !important;
}

.brand-symbol,
.brand-mark {
  width: 36px !important;
  height: 36px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 999px !important;
  color: #fcfcfa !important;
  background: #25414a !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  font-size: 13px !important;
}

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

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

.nav-buy,
.button-primary,
.buy-primary,
.claim-button,
.checkin-button,
.modal-button.primary,
.proof-submit,
.primary-button {
  min-height: 44px !important;
  padding: 10px 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: #25414a !important;
  box-shadow:
    0 8px 24px rgba(19, 37, 41, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  transition:
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 180ms ease-out,
    box-shadow 180ms ease-out !important;
}

.nav-buy:hover,
.button-primary:hover,
.buy-primary:hover,
.claim-button:hover,
.checkin-button:hover,
.modal-button.primary:hover,
.proof-submit:hover,
.primary-button:hover {
  background: #1d343b !important;
  box-shadow:
    0 12px 30px rgba(19, 37, 41, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-2px);
}

.nav-buy:active,
.button-primary:active,
.buy-primary:active,
.claim-button:active,
.checkin-button:active,
.modal-button.primary:active,
.proof-submit:active,
.primary-button:active {
  transform: scale(0.96) !important;
  transition-duration: 110ms !important;
}

.button-secondary,
.secondary-button,
.quiet-button,
.reset-button,
.profile-back,
.proof-cancel,
.member-action,
.modal-button.secondary {
  min-height: 44px !important;
  padding: 10px 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 999px !important;
  color: #202929 !important;
  background: rgba(239, 245, 242, 0.84) !important;
  box-shadow:
    0 8px 24px rgba(19, 37, 41, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.76) !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 {
  background: rgba(228, 239, 235, 0.96) !important;
  transform: translateY(-2px);
}

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

/* Product scene */
.hero {
  min-height: 100svh !important;
  padding: 104px 24px 64px !important;
  color: #202929 !important;
  background:
    radial-gradient(ellipse at 18% 15%, rgba(228, 239, 235, 0.9), transparent 32rem),
    radial-gradient(ellipse at 82% 74%, rgba(37, 65, 74, 0.11), transparent 30rem),
    linear-gradient(rgba(37, 65, 74, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 65, 74, 0.045) 1px, transparent 1px),
    #f3f2ed !important;
  background-size: auto, auto, 52px 52px, 52px 52px, auto !important;
}

.hero::before {
  display: block !important;
  top: 12% !important;
  left: 50% !important;
  width: min(900px, 90vw) !important;
  height: min(520px, 55vw) !important;
  max-height: none !important;
  border: 1px solid rgba(37, 65, 74, 0.09) !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow:
    0 0 0 56px rgba(37, 65, 74, 0.025),
    0 0 0 112px rgba(37, 65, 74, 0.018),
    0 0 0 168px rgba(37, 65, 74, 0.012) !important;
}

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

.hero h1 {
  color: #202929 !important;
  font-size: clamp(42px, 6vw, 56px) !important;
  font-weight: 500 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.045em !important;
}

.hero h1 .pro {
  color: #25414a !important;
}

.hero-subtitle,
.claim-hero > p,
.profile-heading p {
  max-width: 660px !important;
  margin-top: 18px !important;
  color: #5b6b68 !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}

.hero-subtitle strong {
  color: #202929 !important;
  font-weight: 500 !important;
}

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

.hero .button-primary {
  color: #ffffff !important;
  background: #25414a !important;
}

.hero .button-quiet,
.button-quiet {
  min-height: 44px !important;
  padding: 10px 4px !important;
  color: #557b79 !important;
  background: transparent !important;
  font-size: 16px !important;
}

.hero-price-note {
  margin-top: 10px !important;
  color: #6b7875 !important;
  font-size: 12px !important;
}

.product-stage {
  height: 340px !important;
  margin-top: 34px !important;
}

.product-glow {
  width: min(720px, 90vw) !important;
  height: 300px !important;
  background: radial-gradient(ellipse, rgba(37, 65, 74, 0.17), rgba(37, 65, 74, 0) 70%) !important;
  filter: blur(30px) !important;
}

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

.floating-pill {
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 18px !important;
  color: #202929 !important;
  background: rgba(239, 245, 242, 0.82) !important;
  box-shadow:
    0 8px 24px rgba(19, 37, 41, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.74) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

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

.floating-pill small {
  color: #64716f !important;
}

.pill-mark,
.pill-right .pill-mark {
  color: #25414a !important;
  background: rgba(228, 239, 235, 0.92) !important;
}

.hero-scroll {
  color: #64716f !important;
}

.js .reveal {
  transform: translateY(14px) !important;
  transition: opacity 420ms ease-out, transform 420ms ease-out !important;
}

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

/* Stable reading surfaces */
.features,
.specs,
.buy-section,
.site-footer {
  background-color: #f3f2ed !important;
  background-image: none !important;
}

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

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

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

.section-title,
.specs-heading h2,
.feature-copy h2,
.buy-config h2 {
  color: #202929 !important;
  font-size: clamp(30px, 4vw, 40px) !important;
  font-weight: 500 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.035em !important;
}

.section-lede {
  max-width: 680px !important;
  margin-top: 16px !important;
  color: #5b6b68 !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}

.feature-row,
.feature-row.reverse {
  margin-bottom: 88px !important;
  gap: 48px !important;
}

.feature-copy p,
.micro-note,
.spec-key,
.spec-value small,
.spec-aside,
.buy-note,
.footer-bottom {
  color: #64716f !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.feature-visual {
  min-height: 450px !important;
  padding: 24px !important;
  border: 1px solid rgba(37, 65, 74, 0.08) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(rgba(37, 65, 74, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 65, 74, 0.04) 1px, transparent 1px),
    #e4efeb !important;
  background-size: 36px 36px !important;
  box-shadow: none !important;
}

.feature-card,
.ledger-card {
  border: 1px solid rgba(37, 65, 74, 0.08) !important;
  border-radius: 24px !important;
  color: #202929 !important;
  background: #fcfcfa !important;
  box-shadow:
    0 8px 24px rgba(19, 37, 41, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.74) !important;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 180ms ease-out !important;
}

.feature-visual:hover .feature-card,
.feature-visual:hover .ledger-card {
  transform: translateY(-4px) !important;
  box-shadow:
    0 16px 40px rgba(19, 37, 41, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.ledger-visual {
  background:
    linear-gradient(rgba(37, 65, 74, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 65, 74, 0.045) 1px, transparent 1px),
    #e4efeb !important;
  background-size: 36px 36px !important;
}

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

.ledger-status,
.ledger-balance,
.ledger-row {
  color: #64716f !important;
}

.ledger-balance strong small {
  color: #557b79 !important;
}

.ledger-card .manager-avatar,
.ledger-card .manager-avatar:nth-child(2),
.ledger-card .manager-avatar:nth-child(3),
.ledger-card .manager-avatar:nth-child(4) {
  color: #25414a !important;
  border-color: #fcfcfa !important;
  background: #e4efeb !important;
}

.visual-chip,
.reward-badge {
  color: #25414a !important;
  border-radius: 999px !important;
  background: #e4efeb !important;
}

.completion-ring {
  background: conic-gradient(#557b79 0 96%, #e4e8e5 96% 100%) !important;
}

.day-pill {
  border: 1px solid rgba(37, 65, 74, 0.07) !important;
  border-radius: 14px !important;
  background: #fcfcfa !important;
}

.reward-bar,
.reward-bar-group:nth-child(2) .reward-bar,
.reward-bar-group:nth-child(3) .reward-bar {
  border-radius: 14px 14px 4px 4px !important;
  background: #557b79 !important;
}

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

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

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

.spec-list {
  border: 0 !important;
}

.spec-row {
  padding: 20px 0 !important;
  border: 0 !important;
}

.spec-row:nth-child(odd) {
  background: rgba(252, 252, 250, 0.48);
}

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

.spec-columns {
  display: block !important;
}

.spec-aside {
  display: none !important;
}

.spec-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.spec-row,
.spec-row:nth-child(odd) {
  display: flex !important;
  min-height: 122px;
  padding: 20px !important;
  align-items: flex-start !important;
  justify-content: flex-start;
  flex-direction: column;
  gap: 5px !important;
  border: 1px solid rgba(37, 65, 74, 0.07) !important;
  border-radius: 24px !important;
  background: #fcfcfa !important;
  box-shadow:
    0 8px 24px rgba(19, 37, 41, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.74) !important;
}

.spec-key {
  color: #64716f !important;
  font-size: 12px !important;
}

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

.discipline-card {
  box-shadow:
    0 18px 36px rgba(19, 37, 41, 0.16),
    0 4px 12px rgba(19, 37, 41, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.buy-shell {
  border: 1px solid rgba(37, 65, 74, 0.08) !important;
  border-radius: 24px !important;
  background: #fcfcfa !important;
  box-shadow:
    0 8px 24px rgba(19, 37, 41, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.buy-visual {
  background:
    linear-gradient(rgba(37, 65, 74, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 65, 74, 0.045) 1px, transparent 1px),
    #e4efeb !important;
  background-size: 38px 38px !important;
}

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

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

.finish-button {
  width: 46px !important;
  height: 46px !important;
  border-radius: 999px !important;
}

.finish-button[aria-checked="true"] {
  border-color: #557b79 !important;
  box-shadow: 0 0 0 3px rgba(85, 123, 121, 0.17) !important;
}

.finish-dot {
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
}

.finish-dot.graphite {
  background: #343a3b !important;
}

.finish-dot.silver {
  background: #e8e8e4 !important;
}

.finish-dot.blue {
  background: #315d77 !important;
}

.live-state {
  color: #557b79 !important;
  background: #e4efeb !important;
}

.completion-ring {
  background: conic-gradient(#25414a 0 96%, #dfe9e6 96% 100%) !important;
}

.reward-bar-group:first-child .reward-bar {
  background: #aac6c0 !important;
}

.reward-bar-group:first-child .reward-bar strong {
  color: #202929 !important;
}

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

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

.site-footer {
  border: 0 !important;
  background: #f3f2ed !important;
}

/* Keep the established liquid-glass dock; only align its labels to the new palette. */
.liquid-dock .dock-item[aria-current="page"] {
  color: #557b79 !important;
}

/* Dialogs and controls */
.purchase-modal,
.proof-modal,
.import-modal {
  background: rgba(37, 65, 74, 0.3) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

.modal-panel,
.proof-panel,
.import-panel {
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: 28px !important;
  color: #202929 !important;
  background: rgba(239, 245, 242, 0.92) !important;
  box-shadow:
    0 16px 40px rgba(19, 37, 41, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.input,
.select,
.textarea,
.profile-input,
.proof-note {
  border: 1px solid rgba(37, 65, 74, 0.1) !important;
  border-radius: 999px !important;
  color: #202929 !important;
  background: #f7f6f2 !important;
  box-shadow: inset 0 1px 2px rgba(19, 37, 41, 0.04) !important;
  font-size: 16px !important;
  padding: 12px 18px !important;
}

.textarea,
.proof-note {
  border-radius: 20px !important;
}

.input:focus,
.select:focus,
.textarea:focus,
.profile-input:focus,
.proof-note:focus {
  outline: 2px solid #557b79 !important;
  outline-offset: 2px !important;
  background: #fcfcfa !important;
  box-shadow: none !important;
}

/* Member portal */
main {
  color: #202929 !important;
}

.claim-hero h1,
.profile-heading h1,
.member-heading h1 {
  color: #202929 !important;
  font-size: clamp(40px, 6vw, 56px) !important;
  font-weight: 500 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.035em !important;
}

.claim-hero > p,
.profile-heading p {
  margin-left: 0 !important;
  color: #5b6b68 !important;
  font-size: 16px !important;
}

.claim-panel,
.profile-panel {
  width: min(100%, 640px) !important;
  margin-left: 0 !important;
  padding: 24px !important;
  border: 1px solid rgba(37, 65, 74, 0.08) !important;
  border-radius: 24px !important;
  color: #202929 !important;
  background: #fcfcfa !important;
  box-shadow:
    0 8px 24px rgba(19, 37, 41, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

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

.claim-panel > p,
.profile-panel > p,
.avatar-copy p,
.profile-hint,
.privacy-note,
.daily-date,
.daily-card > p,
.hygiene-task p,
.task-title span,
.member-info-card p,
.tier-item p,
.no-task {
  color: #64716f !important;
}

.profile-avatar {
  border: 1px solid rgba(255, 255, 255, 0.74) !important;
  color: #25414a !important;
  background: rgba(228, 239, 235, 0.9) !important;
  box-shadow:
    0 8px 24px rgba(19, 37, 41, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.avatar-copy strong,
.profile-field label,
.daily-head h2,
.daily-card h3,
.task-title strong,
.member-info-card strong,
.tier-item strong {
  color: #202929 !important;
}

.profile-step,
.member-info-card,
.tier-item,
.daily-card,
.hygiene-task {
  border: 1px solid rgba(37, 65, 74, 0.07) !important;
  border-radius: 24px !important;
  color: #202929 !important;
  background: #fcfcfa !important;
  box-shadow:
    0 8px 24px rgba(19, 37, 41, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.daily-hub {
  width: min(100%, 1120px) !important;
  padding: 24px !important;
  border: 1px solid rgba(37, 65, 74, 0.08) !important;
  border-radius: 24px !important;
  color: #202929 !important;
  background: #fcfcfa !important;
  box-shadow:
    0 8px 24px rgba(19, 37, 41, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

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

.daily-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgba(19, 37, 41, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

.daily-head h2 {
  font-size: 28px !important;
  font-weight: 600 !important;
}

.daily-summary span,
.daily-state {
  color: #25414a !important;
  background: rgba(228, 239, 235, 0.9) !important;
}

.daily-state.ok {
  color: #33685e !important;
  background: rgba(222, 240, 233, 0.92) !important;
}

.daily-icon,
.daily-icon.hygiene {
  width: 48px !important;
  height: 48px !important;
  border-radius: 999px !important;
  color: #25414a !important;
  background: rgba(228, 239, 235, 0.92) !important;
}

.checkin-button.done {
  color: #33685e !important;
  border: 1px solid rgba(85, 123, 121, 0.18) !important;
  background: #e4efeb !important;
  box-shadow: inset 0 2px 6px rgba(37, 65, 74, 0.08) !important;
}

.proof-action {
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 999px !important;
  color: #25414a !important;
  background: rgba(228, 239, 235, 0.9) !important;
}

.proof-preview {
  border: 1px dashed rgba(37, 65, 74, 0.2) !important;
  border-radius: 20px !important;
  color: #64716f !important;
  background: #f7f6f2 !important;
}

.page-footer {
  color: #64716f !important;
  border: 0 !important;
  background: #f3f2ed !important;
}

/* Admin: tinted menu + stable work surfaces */
.auth-view,
.app-view,
.main-panel {
  background-color: #f3f2ed !important;
  background-image:
    linear-gradient(rgba(37, 65, 74, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 65, 74, 0.035) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
}

.auth-shell,
.panel-card,
.metric-card,
.sidebar,
.sidebar-user,
.access-code-panel,
.hygiene-import-preview {
  border: 1px solid rgba(37, 65, 74, 0.08) !important;
  border-radius: 24px !important;
  background: #fcfcfa !important;
  box-shadow:
    0 8px 24px rgba(19, 37, 41, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.74) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.auth-shell {
  overflow: hidden;
}

.auth-brand {
  color: #fcfcfa !important;
  border: 0 !important;
  background:
    radial-gradient(ellipse at 84% 12%, rgba(228, 239, 235, 0.15), transparent 20rem),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    #25414a !important;
  background-size: auto, 42px 42px, 42px 42px, auto !important;
}

.auth-brand .brand-lockup,
.auth-hero h1,
.auth-brand h1 {
  color: #fcfcfa !important;
}

.auth-brand .auth-hero h1 {
  color: #fcfcfa !important;
}

.auth-brand .brand-subtitle,
.auth-hero p,
.auth-point {
  color: rgba(252, 252, 250, 0.72) !important;
}

.auth-brand .auth-hero p,
.auth-brand .auth-point {
  color: rgba(252, 252, 250, 0.78) !important;
}

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

.auth-brand .auth-kicker {
  color: #d8e8e3 !important;
}

.auth-point::before {
  color: #25414a !important;
  background: #e4efeb !important;
}

.auth-brand .sidebar-link {
  color: #fcfcfa !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.auth-form-side {
  background: #fcfcfa !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: #202929 !important;
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
  letter-spacing: -0.025em !important;
}

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

.auth-hero p,
.auth-description,
.auth-point,
.panel-head p,
.metric-label,
.form-kicker,
.save-state,
.brand-subtitle,
.sidebar-user-role {
  color: #64716f !important;
}

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

.sidebar {
  color: #202929 !important;
  background: rgba(239, 245, 242, 0.84) !important;
  border-color: rgba(255, 255, 255, 0.74) !important;
  box-shadow:
    0 8px 24px rgba(19, 37, 41, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(14px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(120%) !important;
}

.sidebar[data-liquid-glass="webgl"] {
  background: rgba(228, 239, 235, 0.34) !important;
}

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

.nav-button {
  min-height: 44px !important;
  border-radius: 999px !important;
  color: #64716f !important;
}

.nav-button:hover {
  color: #202929 !important;
  background: rgba(252, 252, 250, 0.68) !important;
}

.nav-button.active {
  color: #202929 !important;
  background: rgba(252, 252, 250, 0.92) !important;
  box-shadow:
    0 8px 20px rgba(19, 37, 41, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

.sidebar-link,
.row-button {
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  border-radius: 999px !important;
  color: #25414a !important;
  background: rgba(252, 252, 250, 0.72) !important;
}

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

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgba(19, 37, 41, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
}

.quick-guide .guide-item,
.checkbox-row,
.calc-preview,
.disclosure-preview,
.notice-banner {
  border: 1px solid rgba(37, 65, 74, 0.06) !important;
  border-radius: 16px !important;
  color: #64716f !important;
  background: #f3f2ed !important;
  box-shadow: none !important;
}

.guide-number {
  color: #25414a !important;
  background: #e4efeb !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: #557b79 !important;
  background: #e4efeb !important;
}

.status-badge.approved,
.review-state.approved {
  color: #33685e !important;
  background: #e1eee8 !important;
}

.status-badge.paid {
  color: #fcfcfa !important;
  background: #25414a !important;
}

.review-state.needs_fix {
  color: #8b5f45 !important;
  background: #f2e7de !important;
}

.data-table th {
  border: 0 !important;
  background: #f3f2ed !important;
}

.data-table td {
  border: 0 !important;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(243, 242, 237, 0.55);
}

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

.toast {
  border-radius: 999px !important;
  background: #25414a !important;
  box-shadow:
    0 8px 24px rgba(19, 37, 41, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

@media (max-width: 900px) {
  .global-nav,
  .member-nav {
    right: max(8px, env(safe-area-inset-right)) !important;
    left: max(8px, env(safe-area-inset-left)) !important;
    height: 56px !important;
  }

  .app-view {
    padding: 0 !important;
  }

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

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

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

  .brand-symbol,
  .brand-mark {
    width: 32px !important;
    height: 32px !important;
  }

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

  .hero {
    padding: 88px 16px 48px !important;
  }

  .hero h1 {
    font-size: 40px !important;
  }

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

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

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

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

  .hero-actions .button-quiet {
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 999px !important;
    background: rgba(239, 245, 242, 0.84) !important;
    box-shadow:
      0 8px 24px rgba(19, 37, 41, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.74) !important;
  }

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

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

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

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

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

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

  body.member-page main {
    padding-top: calc(84px + env(safe-area-inset-top)) !important;
    padding-bottom: calc(48px + env(safe-area-inset-bottom)) !important;
  }

  .claim-hero h1,
  .profile-heading h1,
  .member-heading h1 {
    font-size: 40px !important;
  }

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

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

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

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

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

  .sidebar {
    border-radius: 0 0 28px 28px !important;
  }

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

  .proof-modal,
  .import-modal {
    align-items: center;
    overflow-y: auto;
    padding-top: calc(12px + env(safe-area-inset-top)) !important;
    padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  }

  .proof-panel,
  .import-panel {
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
    overflow-y: auto;
  }
}

@media (max-width: 380px) {
  .spec-list {
    grid-template-columns: 1fr !important;
  }

  .spec-row,
  .spec-row:nth-child(odd) {
    min-height: 0;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .global-nav,
  .member-nav,
  .sidebar,
  .liquid-dock {
    background: #fcfcfa !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .modal-panel,
  .proof-panel,
  .import-panel {
    background: #fcfcfa !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

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

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

  .js .reveal,
  .discipline-card,
  .buy-card,
  .member-card,
  .liquid-dock .dock-indicator {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Clear white canvas refinement */
:root {
  --color-paper: #ffffff;
  --color-slate-mist: #ffffff;
  --color-cloud: #ffffff;
  --mist: #ffffff;
  --cream: #ffffff;
  --paper: #ffffff;
  --white: #ffffff;
}

html,
body {
  background-color: #ffffff !important;
}

body {
  background-image:
    linear-gradient(rgba(37, 65, 74, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 65, 74, 0.022) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
}

.hero {
  background:
    radial-gradient(ellipse at 18% 15%, rgba(228, 239, 235, 0.72), transparent 32rem),
    radial-gradient(ellipse at 82% 74%, rgba(37, 65, 74, 0.07), transparent 30rem),
    linear-gradient(rgba(37, 65, 74, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 65, 74, 0.025) 1px, transparent 1px),
    #ffffff !important;
  background-size: auto, auto, 52px 52px, 52px 52px, auto !important;
}

.features,
.specs,
.buy-section,
.site-footer,
.auth-view,
.app-view,
.main-panel {
  background-color: #ffffff !important;
}

.features,
.specs,
.buy-section,
.site-footer {
  background-image: none !important;
}

.claim-panel,
.profile-panel,
.daily-hub,
.wallet-hub,
.daily-card,
.member-info-card,
.tier-item,
.panel-card,
.metric-card,
.auth-shell,
.sidebar-user,
.access-code-panel,
.feature-card,
.ledger-card,
.spec-row,
.spec-row:nth-child(odd),
.buy-shell,
.buy-config {
  background: #ffffff !important;
}

.input,
.select,
.textarea,
.profile-input,
.proof-note {
  background: #f5f7f6 !important;
}

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