:root {
  /* ????????? ?????? + ??????; ???????? navy ???? ? UI, ?? ? ???? */
  --bg: #f0a878;
  --bg-2: #e88855;
  --surface: #fff6ec;
  --surface-2: #ffd9b8;
  --ink: #071528;
  --ink-soft: #2a4060;
  --ink-faint: #6b7f9c;
  --primary: #0a2248;
  --primary-d: #061633;
  --primary-soft: #c8daf3;
  --accent: #f0b400;
  --accent-soft: #ffe28a;
  --warn: #e8921f;
  --warn-soft: #ffe0a8;
  --danger: #c24d4d;
  --danger-soft: #f8d6d6;
  --line: #efb892;
  --shadow: 0 22px 56px -18px rgba(7, 21, 40, .30);
  --shadow-sm: 0 10px 26px -12px rgba(7, 21, 40, .22);
  /* 3D-??????: ?????, ????, ??????? ? ????????? ? ?????????? ????? */
  --btn-depth: 3px;
  --btn-depth-sm: 2px;
  --btn-edge-cream: #c98a5c;
  --btn-edge-navy: #030d1c;
  --btn-edge-gold: #b07d00;
  --btn-edge-coral: #c47a6a;
  --btn-edge-soft: #b8c9e0;
  --btn-face-cream: linear-gradient(180deg, #fffdf9 0%, #fff1df 42%, #ffd9b8 100%);
  --btn-face-navy: linear-gradient(180deg, #1c3f72 0%, #0a2248 55%, #061633 100%);
  --btn-face-gold: linear-gradient(180deg, #ffe9a8 0%, #f0b400 52%, #d49200 100%);
  --btn-face-coral: linear-gradient(180deg, #ffd2c4 0%, #f2a9a0 55%, #e8927a 100%);
  --btn-face-soft: linear-gradient(180deg, #f4f8fd 0%, #d9e6f7 55%, #c8daf3 100%);
  --btn-shine: inset 0 1px 0 rgba(255, 255, 255, .62), inset 0 -1px 0 rgba(7, 21, 40, .06);
  --btn-shine-dark: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(0, 0, 0, .22);
  --radius: 22px;
  --radius-sm: 16px;
  --sb-w: 220px;
  --bottom-nav-inner: 54px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bottom-nav-total: calc(var(--bottom-nav-inner) + var(--safe-bottom));
  --content-bottom: calc(var(--bottom-nav-total) + 24px);
  --blob-1: #ff9a5c;
  --blob-2: #ffd24a;
  --blob-3: #ffe8cc;
  --font-body: 'Comfortaa', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-hand: 'Caveat', 'Comfortaa', cursive;
  font-family: var(--font-body);
}

/* ??? ? ???????? navy; ????? ????????? ??? ???????? ????? */
:root[data-theme="dark"] {
  --bg: #0a1628;
  --bg-2: #07101c;
  --surface: #152338;
  --surface-2: #1d2f4a;
  --ink: #f7f0e6;
  --ink-soft: #c9d3e4;
  --ink-faint: #8796ae;
  --primary: #f0c14b;
  --primary-d: #ffd56a;
  --primary-soft: #2a3a55;
  --accent: #f3b48a;
  --accent-soft: #3a2f2a;
  --warn: #e8b45a;
  --warn-soft: #3f3424;
  --danger: #e08a8a;
  --danger-soft: #3f2a2e;
  --line: #2a3d5c;
  --shadow: 0 18px 50px -16px rgba(0, 0, 0, .55);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, .45);
  --btn-edge-cream: #0c182c;
  --btn-edge-navy: #8a6a18;
  --btn-edge-gold: #8a6a18;
  --btn-edge-coral: #6a3a3a;
  --btn-edge-soft: #0c182c;
  --btn-face-cream: linear-gradient(180deg, #243652 0%, #1a2c44 48%, #152338 100%);
  --btn-face-navy: linear-gradient(180deg, #ffe08a 0%, #f0c14b 52%, #d4a020 100%);
  --btn-face-gold: linear-gradient(180deg, #ffe9a8 0%, #f0c14b 52%, #c99620 100%);
  --btn-face-coral: linear-gradient(180deg, #5a3838 0%, #4a2c2c 55%, #3f2a2e 100%);
  --btn-face-soft: linear-gradient(180deg, #2a3a55 0%, #1d2f4a 55%, #152338 100%);
  --btn-shine: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(0, 0, 0, .28);
  --btn-shine-dark: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .2);
  --blob-1: #3a2a22;
  --blob-2: #4a3a28;
  --blob-3: #0a1628;
}

/* Solid ? ????????? ?????? + ???????? navy ? UI */
:root[data-gender="male"],
:root[data-tone="solid"] {
  --bg: #e89860;
  --bg-2: #d87838;
  --surface: #fff3e6;
  --surface-2: #f5c89a;
  --ink: #040e1c;
  --ink-soft: #243954;
  --ink-faint: #5f738f;
  --primary: #061633;
  --primary-d: #030d1c;
  --primary-soft: #b8cce8;
  --accent: #e6a800;
  --accent-soft: #f6d66a;
  --line: #e3a878;
  --shadow: 0 22px 52px -16px rgba(4, 14, 28, .34);
  --shadow-sm: 0 10px 24px -12px rgba(4, 14, 28, .26);
  --blob-1: #ff8f55;
  --blob-2: #f0c020;
  --blob-3: #ffe4c4;
  --radius: 16px;
  --radius-sm: 12px;
}

:root[data-tone="gentle"] {
  --bg: #f0a878;
  --bg-2: #e88855;
  --surface: #fff6ec;
  --surface-2: #ffd9b8;
  --ink: #071528;
  --ink-soft: #2a4060;
  --ink-faint: #6b7f9c;
  --primary: #0a2248;
  --primary-d: #061633;
  --primary-soft: #c8daf3;
  --accent: #f0b400;
  --accent-soft: #ffe28a;
  --line: #efb892;
  --shadow: 0 22px 56px -18px rgba(7, 21, 40, .30);
  --shadow-sm: 0 10px 26px -12px rgba(7, 21, 40, .22);
  --blob-1: #ff9a5c;
  --blob-2: #ffd24a;
  --blob-3: #ffe8cc;
  --radius: 22px;
  --radius-sm: 16px;
}

:root[data-theme="dark"][data-gender="male"],
:root[data-theme="dark"][data-tone="solid"] {
  --bg: #07101c;
  --bg-2: #050c16;
  --surface: #122033;
  --surface-2: #1a2c44;
  --ink: #f6f1e8;
  --ink-soft: #c2cedf;
  --ink-faint: #8090a8;
  --primary: #efc14a;
  --primary-d: #ffd66f;
  --primary-soft: #24344d;
  --accent: #f0a878;
  --accent-soft: #3a2c24;
  --line: #243652;
  --blob-1: #3a281e;
  --blob-2: #4a3824;
  --blob-3: #07101c;
}

:root[data-theme="dark"][data-tone="gentle"] {
  --bg: #0a1628;
  --bg-2: #07101c;
  --surface: #152338;
  --surface-2: #1d2f4a;
  --ink: #f7f0e6;
  --ink-soft: #c9d3e4;
  --ink-faint: #8796ae;
  --primary: #f0c14b;
  --primary-d: #ffd56a;
  --primary-soft: #2a3a55;
  --accent: #f3b48a;
  --accent-soft: #3a2f2a;
  --line: #2a3d5c;
  --blob-1: #3a2a22;
  --blob-2: #4a3a28;
  --blob-3: #0a1628;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  /* ???? ????? ????? ? ??? ??????? ?? ??????? */
  background:
    radial-gradient(920px 540px at 88% -8%, color-mix(in srgb, var(--blob-2) 78%, transparent) 0%, transparent 56%),
    radial-gradient(860px 520px at -10% 108%, color-mix(in srgb, var(--blob-1) 82%, transparent) 0%, transparent 54%),
    radial-gradient(700px 460px at 48% 42%, color-mix(in srgb, var(--blob-3) 90%, transparent) 0%, transparent 68%),
    linear-gradient(168deg, #ffc9a0 0%, var(--bg) 46%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background-color .3s ease, color .3s ease;
}

/* ?????????? ????? ??????? ???? ??? ?????? ?? ????????? ????????? ???????? */
.auth-title, .brand-name, .landing-title {
  font-family: var(--font-hand);
  letter-spacing: .2px;
}
/* ????????? ? ?'???? ???????????? ?????????? ????? */
h1, h2, h3, .page-head h1, .card-title, .section-title,
.modal h2, .crisis-card h3, .lib-card h3, .stat .s-val, .ach-title, .crisis-top h2 {
  font-family: var(--font-body);
  letter-spacing: -.2px;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
a { color: var(--primary); }

/* ---------- Buttons (3D, ????????? ? ?????????? ?????) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.2;
  letter-spacing: -.01em;
  position: relative;
  isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--btn-edge-cream) 55%, transparent);
  color: var(--ink);
  background: var(--btn-face-cream);
  box-shadow:
    var(--btn-shine),
    0 var(--btn-depth) 0 var(--btn-edge-cream),
    0 calc(var(--btn-depth) + 5px) 14px -4px rgba(7, 21, 40, .22);
  transition:
    transform .12s ease,
    box-shadow .16s ease,
    filter .16s ease,
    background .16s ease,
    opacity .2s;
  transform: translateY(0);
}
.btn:hover:not(:disabled) {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow:
    var(--btn-shine),
    0 calc(var(--btn-depth) + 1px) 0 var(--btn-edge-cream),
    0 calc(var(--btn-depth) + 8px) 18px -4px rgba(7, 21, 40, .26);
}
.btn:active:not(:disabled) {
  filter: brightness(.98);
  transform: translateY(var(--btn-depth));
  box-shadow:
    inset 0 2px 5px rgba(7, 21, 40, .14),
    0 0 0 var(--btn-edge-cream),
    0 2px 6px rgba(7, 21, 40, .12);
}
.btn-primary {
  color: #fff8ef;
  border-color: color-mix(in srgb, var(--btn-edge-navy) 70%, transparent);
  background: var(--btn-face-navy);
  box-shadow:
    var(--btn-shine-dark),
    0 var(--btn-depth) 0 var(--btn-edge-navy),
    0 calc(var(--btn-depth) + 6px) 16px -4px rgba(3, 13, 28, .45);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow:
    var(--btn-shine-dark),
    0 calc(var(--btn-depth) + 1px) 0 var(--btn-edge-navy),
    0 calc(var(--btn-depth) + 9px) 20px -4px rgba(3, 13, 28, .5);
}
.btn-primary:active:not(:disabled) {
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, .28),
    0 0 0 var(--btn-edge-navy),
    0 2px 6px rgba(3, 13, 28, .25);
}
.btn-accent {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--btn-edge-gold) 65%, transparent);
  background: var(--btn-face-gold);
  box-shadow:
    var(--btn-shine),
    0 var(--btn-depth) 0 var(--btn-edge-gold),
    0 calc(var(--btn-depth) + 6px) 14px -4px rgba(176, 125, 0, .28);
}
.btn-accent:hover:not(:disabled) {
  filter: brightness(1.04);
  box-shadow:
    var(--btn-shine),
    0 calc(var(--btn-depth) + 1px) 0 var(--btn-edge-gold),
    0 calc(var(--btn-depth) + 8px) 18px -4px rgba(176, 125, 0, .34);
}
.btn-accent:active:not(:disabled) {
  box-shadow:
    inset 0 2px 5px rgba(120, 80, 0, .2),
    0 0 0 var(--btn-edge-gold),
    0 2px 6px rgba(176, 125, 0, .18);
}
.btn-ghost {
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 85%, var(--btn-edge-cream));
  backdrop-filter: blur(6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    0 var(--btn-depth-sm) 0 color-mix(in srgb, var(--btn-edge-cream) 70%, var(--line)),
    0 6px 12px -6px rgba(7, 21, 40, .16);
}
.btn-ghost:hover:not(:disabled) {
  color: var(--primary-d);
  background: var(--surface);
  border-color: var(--primary);
}
.btn-ghost:active:not(:disabled) {
  transform: translateY(var(--btn-depth-sm));
  box-shadow:
    inset 0 2px 4px rgba(7, 21, 40, .1),
    0 0 0 transparent,
    0 1px 4px rgba(7, 21, 40, .1);
}
.btn-danger {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
  background: linear-gradient(180deg, #fff5f5 0%, var(--danger-soft) 100%);
  box-shadow:
    var(--btn-shine),
    0 var(--btn-depth-sm) 0 color-mix(in srgb, var(--danger) 45%, #8a4040),
    0 6px 12px -6px rgba(194, 77, 77, .28);
}
.btn-danger:hover:not(:disabled) {
  filter: brightness(1.02);
  color: color-mix(in srgb, var(--danger) 85%, #400);
}
.btn-block { width: 100%; }
.btn-sm {
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 11px;
  --btn-depth: 2px;
  --btn-depth-sm: 1px;
}
.btn:disabled {
  opacity: .48;
  cursor: not-allowed;
  filter: grayscale(.15);
  transform: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    0 1px 0 color-mix(in srgb, var(--btn-edge-cream) 50%, transparent) !important;
}

/* ---------- Auth / Landing ---------- */
.auth-screen {
  /* Ізольована світла палітра для входу — не залежить від dark-theme користувача */
  --bg: #f0a878;
  --bg-2: #e88855;
  --surface: #fffdf9;
  --surface-2: #fff7ee;
  --ink: #071528;
  --ink-soft: #1a3050;
  --ink-faint: #4a607c;
  --primary: #0a2248;
  --primary-d: #061633;
  --primary-soft: #c8daf3;
  --accent: #f0b400;
  --accent-soft: #ffe28a;
  --line: #d4a07a;
  --shadow: 0 22px 56px -18px rgba(7, 21, 40, .30);
  --shadow-sm: 0 10px 26px -12px rgba(7, 21, 40, .22);
  --btn-edge-cream: #b87a4e;
  --btn-edge-navy: #030d1c;
  --btn-edge-gold: #b07d00;
  --btn-edge-soft: #8a9bb5;
  --btn-face-cream: linear-gradient(180deg, #ffffff 0%, #fff8ef 42%, #ffe8d0 100%);
  --btn-face-navy: linear-gradient(180deg, #1c3f72 0%, #0a2248 55%, #061633 100%);
  --btn-face-soft: linear-gradient(180deg, #f4f8fd 0%, #d9e6f7 55%, #c8daf3 100%);
  --btn-shine: inset 0 1px 0 rgba(255, 255, 255, .72), inset 0 -1px 0 rgba(7, 21, 40, .06);
  --btn-shine-dark: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(0, 0, 0, .22);
  --blob-1: #ff9a5c;
  --blob-2: #ffd24a;
  --blob-3: #ffe8cc;
  color: var(--ink);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px 48px;
  padding-top: max(40px, env(safe-area-inset-top));
  padding-bottom: max(48px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(920px 540px at 90% -8%, color-mix(in srgb, var(--blob-2) 80%, transparent), transparent 56%),
    radial-gradient(860px 520px at -8% 110%, color-mix(in srgb, var(--blob-1) 84%, transparent), transparent 54%),
    radial-gradient(700px 460px at 46% 42%, color-mix(in srgb, var(--blob-3) 90%, transparent), transparent 68%),
    linear-gradient(168deg, #ffc9a0 0%, var(--bg) 46%, var(--bg-2) 100%);
}
.landing {
  width: 100%;
  max-width: 640px;
  display: grid;
  gap: 28px;
  animation: rise .5s cubic-bezier(.2,.8,.2,1);
}
.landing--minimal {
  max-width: 460px;
  gap: 20px;
  align-content: start;
}

/* ????? */
.landing-hero { text-align: center; }
.landing--minimal .landing-hero { margin-bottom: 2px; }
.landing-mark {
  width: 52px; height: 52px; margin: 0 auto;
  display: grid; place-items: center; border-radius: 14px;
  background: var(--primary); color: #fff;
  font-size: 26px; line-height: 1; font-weight: 700;
}
.landing-title {
  font-family: var(--font-hand); font-size: clamp(42px, 11vw, 54px); font-weight: 700;
  margin: 16px 0 10px; line-height: 1; letter-spacing: .2px; color: var(--primary-d);
}
.landing--minimal .landing-title { margin: 14px 0 0; }
.landing--minimal .landing-subtitle {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 340px;
}
.landing-seo {
  margin-top: 28px;
  padding: 18px 4px 8px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.landing-seo h2 {
  margin: 18px 0 8px;
  font-size: 16px;
  color: var(--primary-d);
}
.landing-seo h2:first-child { margin-top: 0; }
.landing-seo p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.landing-seo-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.landing-seo-list li {
  position: relative;
  padding: 8px 10px 8px 28px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.landing-seo-list li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 70%, #6aa88a);
}
.landing-seo-note {
  margin-top: 14px !important;
  font-size: 12.5px !important;
  color: var(--ink-faint) !important;
}
.landing-seo-note a {
  color: var(--primary-d);
  font-weight: 600;
}
.landing-subtitle {
  font-size: clamp(16px, 4.2vw, 19px); font-weight: 600; color: var(--ink);
  margin: 0 auto; line-height: 1.45; max-width: 520px;
}
.landing-desc {
  color: var(--ink-soft); max-width: 520px; margin: 12px auto 0;
  font-size: 15px; line-height: 1.6;
}
.landing-cta {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px;
}
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 14px; }
.auth-screen .btn-primary {
  color: #fff8ef;
  background: var(--btn-face-navy);
  border-color: color-mix(in srgb, var(--btn-edge-navy) 70%, transparent);
  box-shadow:
    var(--btn-shine-dark),
    0 var(--btn-depth) 0 var(--btn-edge-navy),
    0 calc(var(--btn-depth) + 6px) 16px -4px rgba(3, 13, 28, .4);
}
.auth-screen .btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
  background: var(--btn-face-navy);
}
.btn-outline {
  color: var(--primary-d);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 80%, var(--primary));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    0 var(--btn-depth-sm) 0 color-mix(in srgb, var(--btn-edge-cream) 75%, var(--line)),
    0 6px 12px -6px rgba(7, 21, 40, .16);
}
.btn-outline:hover:not(:disabled) {
  background: var(--btn-face-cream);
  border-color: var(--primary);
  color: var(--primary-d);
}
.btn-sos {
  color: #7a3b3b;
  background: var(--btn-face-coral);
  border: 1px solid color-mix(in srgb, var(--btn-edge-coral) 55%, transparent);
  box-shadow:
    var(--btn-shine),
    0 var(--btn-depth) 0 var(--btn-edge-coral),
    0 calc(var(--btn-depth) + 6px) 14px -4px rgba(196, 122, 106, .35);
}
.btn-sos:hover:not(:disabled) {
  filter: brightness(1.03);
  color: #6a3030;
}

.auth-switch {
  margin: 16px 0 0;
  text-align: center;
}
.landing-more {
  text-align: center;
  padding-bottom: 8px;
  display: grid;
  gap: 4px;
  justify-items: center;
}
.landing-about-btn {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 8px 4px;
}
.landing-about-btn:hover { color: var(--primary-d); }

.payment-plans {
  display: grid;
  gap: 12px;
}
.payment-plan {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.payment-plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.payment-plan-top h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.payment-badge {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary-d);
}
.payment-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.payment-price b {
  font-size: 22px;
  color: var(--primary-d);
}
.payment-price span {
  font-size: 13px;
  color: var(--ink-soft);
}
.payment-features {
  margin: 0;
  padding-left: 1.15em;
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 13.5px;
}
.payment-requisites {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.payment-requisites b {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.payment-requisites p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  white-space: pre-line;
}
.payment-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-faint);
}
.payment-page #payment-pay-link,
.payment-modal-body #payment-pay-link {
  margin-top: 14px;
  text-decoration: none;
}

.landing-about-body { text-align: left; }
.landing-about-body > p { margin: 0 0 12px; line-height: 1.55; }
.landing-about-points {
  list-style: none; margin: 0 0 14px; padding: 0;
  display: grid; gap: 8px;
}
.landing-about-points li {
  padding: 10px 12px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.45; color: var(--ink-soft);
}
.landing-about-note {
  margin: 0 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--ink-faint);
}

/* ???????? (???? ? ??????? ???? ?????, ???? ????????????) */
.landing-benefits {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.landing-benefits li {
  padding: 14px 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); text-align: center;
}

/* ????????? */
.landing-note {
  margin: 0; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.55; color: var(--ink-faint); text-align: center;
}

/* ?????? */
.landing-section { display: grid; gap: 0; }

/* ?????????? */
.auth-card {
  width: 100%; max-width: 460px; margin: 0 auto; background: var(--surface); border-radius: 20px;
  padding: 28px 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); text-align: center;
  color: var(--ink);
}
.auth-card-title { font-size: 20px; font-weight: 700; margin: 0 0 4px; color: var(--ink); }
.auth-card-sub { color: var(--ink-soft); margin: 0 0 20px; font-size: 13.5px; line-height: 1.5; }
.auth-fields { display: grid; gap: 12px; margin-bottom: 18px; text-align: left; }
.auth-links {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px;
  margin: -6px 0 14px; text-align: left;
}
.auth-link {
  font-size: 13px; font-weight: 700; color: var(--primary-d);
  padding: 0; text-decoration: underline; text-underline-offset: 3px;
}
.auth-link:hover { color: var(--primary); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); margin: 16px 0; font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google {
  margin-top: 12px;
  color: var(--ink) !important;
  background: #fff !important;
  border: 1.5px solid #c9d3e0 !important;
  box-shadow: 0 2px 0 #b8c4d4, 0 6px 14px -8px rgba(7,21,40,.18);
}
.btn-google:hover { filter: brightness(1.02); }

.auth-screen .field > span {
  font-size: 13.5px;
  font-weight: 700;
  color: #071528;
}
.auth-screen .field input,
.auth-screen .field textarea,
.auth-screen .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #c9a07e;
  background: #ffffff;
  color: #071528;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  caret-color: #0a2248;
  transition: border .2s, box-shadow .2s;
  -webkit-text-fill-color: #071528;
}
.auth-screen .field input::placeholder,
.auth-screen .field textarea::placeholder {
  color: #5a7190;
  opacity: 1;
  -webkit-text-fill-color: #5a7190;
  font-weight: 500;
}
.auth-screen .field input:focus,
.auth-screen .field textarea:focus,
.auth-screen .field select:focus {
  border-color: #0a2248;
  box-shadow: 0 0 0 4px rgba(10, 34, 72, .16);
  background: #fff;
}
.auth-screen .field input:-webkit-autofill,
.auth-screen .field input:-webkit-autofill:hover,
.auth-screen .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #071528;
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-out;
}
.auth-screen .landing-title { color: #061633; }
.auth-screen .landing-subtitle { color: #1a3050; font-weight: 600; }
.auth-screen .landing-about-btn { color: #1a3050; }
.auth-screen .landing-about-btn:hover { color: #061633; }
.auth-screen .gender-opt {
  color: #071528;
  background: #fff;
  border: 1.5px solid #c9a07e;
  font-weight: 700;
}
.auth-screen .gender-opt.sel {
  color: #061633;
  background: #e8f0fb;
  border-color: #0a2248;
}

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 15px; outline: none;
  transition: border .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder {
  color: var(--ink-faint);
  opacity: 1;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); background: var(--surface);
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }

/* ---------- App layout ---------- */
.app { display: grid; grid-template-columns: var(--sb-w) 1fr; min-height: 100vh; align-items: stretch; }
/* Scrim ???? ??? ?????????? ????; ?? ???????? ?? ?????? ??????? ????? */
.scrim { display: none; }
.scrim.show {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 22, 51, .45);
}
.sidebar {
  grid-row: 1 / -1;
  align-self: stretch;
  background:
    linear-gradient(180deg, #0c2752 0%, #081f3d 48%, #061633 100%);
  border-right: 1px solid color-mix(in srgb, #0a2248 70%, #000 30%);
  padding: 22px 16px; display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0;
  min-height: 100vh;
  height: 100%;
  color: #f4efe6;
  box-shadow: none;
}
.sidebar .brand-name { color: #fff8ef; }
.sidebar .nav-item {
  color: color-mix(in srgb, #f4efe6 72%, transparent);
}
.sidebar .nav-item .ico {
  background: rgba(255, 244, 234, .08);
  color: #ffe28a;
}
.sidebar .nav-item:hover {
  background: rgba(255, 244, 234, .08);
  color: #fff8ef;
}
.sidebar .nav-item.active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #fff 12%), color-mix(in srgb, var(--accent) 70%, #f0b992 30%));
  color: #061633;
}
.sidebar .nav-item.active .ico {
  background: rgba(6, 22, 51, .12);
  color: #061633;
}
.sidebar .nav-item.nav-sos { color: #ffb4a0; }
.sidebar .nav-item.nav-sos .ico { color: #ffb4a0; background: rgba(255, 140, 110, .12); }
/* ?????? ?????? ? ???????; ??????? (FAQ/????) ? ??????????, ????? ?????????? */
.sidebar .nav-item:not(.nav-meta):not(.nav-sos) {
  color: color-mix(in srgb, #f4efe6 78%, transparent);
}
.sidebar .nav-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 4px 6px;
  padding: 0 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(186, 210, 230, .55);
  user-select: none;
  pointer-events: none;
}
.sidebar .nav-divider::before,
.sidebar .nav-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(170, 200, 230, .18);
}
.sidebar .nav-item.nav-meta {
  color: rgba(176, 204, 228, .72);
  font-weight: 550;
  font-size: 13.5px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.sidebar .nav-item.nav-meta .ico {
  background: rgba(150, 190, 230, .10);
  color: #9ec0de;
  font-size: 12px;
}
.sidebar .nav-item.nav-meta:hover {
  background: rgba(150, 190, 230, .10);
  color: #d7e8f6;
}
.sidebar .nav-item.nav-meta.active {
  background: color-mix(in srgb, #1a3a5c 70%, #7eb0d4 30%);
  color: #eaf4fc;
}
.sidebar .nav-item.nav-meta.active .ico {
  background: rgba(234, 244, 252, .14);
  color: #d5e8f7;
}
.sidebar .sidebar-foot { border-top: 1px solid rgba(255, 244, 234, .14); }
.sidebar .sidebar-user {
  padding: 0 4px 12px;
  margin: 0 0 8px;
  border-bottom: 1px solid rgba(255, 244, 234, .14);
}
.sidebar .user-chip {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  color: inherit;
}
.sidebar .user-chip:hover { background: rgba(255, 244, 234, .08); }
.sidebar .user-meta b { color: #fff8ef; }
.sidebar .user-meta span { color: rgba(244, 239, 230, .62); }
.sidebar .user-avatar {
  background: linear-gradient(135deg, var(--accent), #ff9f6b);
  color: #061633;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; }
.brand-logo {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(145deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 55%, #1e4a86 45%) 55%, var(--accent) 160%);
  color: #fff; font-size: 18px; font-weight: 700;
  box-shadow: none;
}
.brand-name { font-weight: 700; font-size: 30px; line-height: 1; color: var(--primary-d); }
.nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
  color: var(--ink-soft); font-weight: 600; font-size: 14.5px; text-align: left; width: 100%;
  transition: background .15s, color .15s;
}
.nav-item .ico {
  width: 26px; height: 26px; display: grid; place-items: center; flex: none;
  border-radius: 9px; background: var(--surface-2); color: var(--ink-faint);
  font-size: 13px; font-weight: 700; line-height: 1;
}
.nav-item.active .ico { background: var(--surface); color: var(--primary-d); }
.nav-item.nav-sos .ico { width: 34px; color: #cf8a82; background: #fbeee9; letter-spacing: -.5px; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: var(--primary-soft); color: var(--primary-d); }
.nav-badge { margin-left: auto; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.sidebar-foot { border-top: 1px solid var(--line); padding-top: 12px; }
.sidebar-user { flex: none; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.user-chip:hover { background: var(--surface-2); }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 700; }
.user-meta { line-height: 1.2; overflow: hidden; }
.user-meta b { font-size: 13.5px; display: block; }
.user-meta span { font-size: 11.5px; color: var(--ink-faint); }

.topbar { display: none; }

.content { padding: 30px 38px 80px; max-width: 1080px; width: 100%; margin: 0 auto; }

/* ---------- Topbar (mobile) + bottom nav ---------- */
.topbar-profile {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 18px; flex: none;
}
.topbar-profile:hover { background: var(--primary-soft); }

.bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 8px 4px 0;
  padding-bottom: var(--safe-bottom);
  min-height: var(--bottom-nav-total);
  box-sizing: border-box;
  box-shadow: 0 -4px 24px -8px rgba(72, 55, 98, .15);
}
.bottom-nav-item {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-height: var(--bottom-nav-inner);
  padding: 4px 2px; border-radius: 12px;
  color: var(--ink-faint); font-size: 10px; font-weight: 600; line-height: 1.1;
  transition: color .15s, background .15s;
}
.bottom-nav-item .bn-ico { font-size: 15px; line-height: 1; font-weight: 700; flex: none; }
.bottom-nav-item .bn-lbl {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bottom-nav-item.active { color: var(--primary-d); background: var(--primary-soft); }
.bottom-nav-sos .bn-ico { color: #cf8a82; font-size: 11px; letter-spacing: -.4px; }
.bottom-nav-sos:hover { color: #c47e76; background: #fbeee9; }

/* ---------- Today home ---------- */
.today-page { max-width: 640px; margin: 0 auto; animation: rise .35s ease; }
.today-alert { margin-bottom: 14px; }
.today-head { margin-bottom: 18px; }
.today-head h1 {
  font-size: clamp(24px, 6vw, 30px); font-weight: 700; margin: 0 0 6px; line-height: 1.15;
}
.today-head p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }

.today-actions { display: grid; gap: 10px; margin-bottom: 20px; }
.today-action {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .14s, box-shadow .14s;
}
.today-action:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.today-action .ta-ico {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; flex: none;
  font-size: 13px; font-weight: 800; background: var(--surface-2); color: var(--primary-d);
}
.today-action .ta-title { font-size: 15px; font-weight: 700; line-height: 1.25; }
.today-action-sos {
  background: linear-gradient(135deg, #f2a9a0, #f6c2a6); border: none; color: #7a3b3b;
}
.today-action-sos .ta-ico {
  background: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.4); color: #7a3b3b;
}

.today-blocks {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px;
}
.today-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 14px 12px; box-shadow: var(--shadow-sm); min-width: 0;
}
.today-tile.is-clickable { cursor: pointer; transition: transform .14s, box-shadow .14s; }
.today-tile.is-clickable:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.today-tile-wide { grid-column: 1 / -1; }
.today-tile-label {
  font-size: 11px; font-weight: 700; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px;
}
.today-tile-main { font-size: 14px; font-weight: 600; line-height: 1.35; }
.today-tile-num { font-size: 32px; font-weight: 700; color: var(--primary-d); line-height: 1; }
.today-tile-meta { margin-top: 6px; font-size: 12px; color: var(--ink-soft); line-height: 1.35; }
.today-tile-clamp {
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.today-bar { margin-top: 8px; }
.today-tip {
  margin: 0; font-family: var(--font-hand); font-size: 21px; line-height: 1.3; color: var(--primary-d);
}
.today-continue { margin-top: 4px; }

.week-bars { display: flex; align-items: flex-end; gap: 6px; height: 68px; margin-top: 4px; }
.week-bar-col {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
  height: 100%; justify-content: flex-end;
}
.week-bar-fill {
  display: block; width: 100%; max-width: 28px; border-radius: 6px 6px 4px 4px;
  background: var(--primary); transition: height .2s ease;
}
.week-bar-fill.empty { background: var(--surface-2); opacity: .65; }
.week-bar-fill.low { background: #67b88f; }
.week-bar-fill.mid { background: #d9a85f; }
.week-bar-fill.high { background: #d6818b; }
.week-bar-col span { font-size: 10px; font-weight: 700; color: var(--ink-faint); }

/* support hub */
.support-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px;
}
.support-link {
  display: flex; align-items: flex-start; gap: 12px; text-align: left;
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--btn-edge-cream) 45%, var(--line));
  background: var(--btn-face-cream);
  box-shadow:
    var(--btn-shine),
    0 3px 0 var(--btn-edge-cream),
    0 8px 16px -6px rgba(7, 21, 40, .18);
  transition: transform .14s ease, box-shadow .16s ease, filter .16s ease, border-color .14s ease;
}
.support-link:hover {
  filter: brightness(1.03);
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow:
    var(--btn-shine),
    0 4px 0 var(--btn-edge-cream),
    0 12px 22px -6px rgba(7, 21, 40, .24);
}
.support-link:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 5px rgba(7, 21, 40, .1), 0 1px 0 var(--btn-edge-cream);
}
.support-ico {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary-d); font-size: 14px; font-weight: 700; flex: none;
}
.support-body { min-width: 0; }
.support-body b { display: block; font-size: 14px; margin-bottom: 2px; }
.support-body span { display: block; font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; }

/* ---------- Generic blocks ---------- */
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 26px; font-weight: 700; margin: 0 0 4px; line-height: 1.1; }
.page-head p { color: var(--ink-soft); margin: 0; font-size: 14.5px; }

.card {
  background: var(--surface); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.card + .card { margin-top: 16px; }
.analytics-dashboard > .card,
.analytics-dashboard > .card + .card,
.analytics-dashboard .analytics-metric + .analytics-metric,
.analytics-charts-row > .card,
.analytics-charts-row > .card + .card {
  margin-top: 0;
}
.card-title { font-weight: 700; font-size: 17px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; line-height: 1.25; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack { display: grid; gap: 14px; }
.data-actions { gap: 8px; margin-top: 4px; }

.empty { text-align: center; padding: 40px 20px; color: var(--ink-faint); }
.empty .em-ico { font-size: 40px; margin-bottom: 8px; }

.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat .s-val { font-size: 30px; font-weight: 700; line-height: 1; }
.stat .s-lbl { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.stat .s-ico { font-size: 20px; }

/* analytics ? dashboard-?????? ? ???????? ??????? */
.analytics-page {
  --analytics-gap: 10px;
  display: grid;
  gap: 10px;
}
.analytics-page .page-head { margin-bottom: 0; }
.analytics-page .page-head h1 { margin-bottom: 2px; }
.analytics-page .page-head p { font-size: 13.5px; }

.analytics-dashboard {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--analytics-gap);
  align-items: stretch;
  width: 100%;
}
.analytics-dashboard > * {
  min-width: 0;
  box-sizing: border-box;
}
.analytics-span-3 { grid-column: span 3; }
.analytics-span-4 { grid-column: span 4; }
.analytics-span-6 { grid-column: span 6; }
.analytics-span-12 { grid-column: span 12; }

.analytics-card {
  min-width: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 0 !important;
}
.analytics-card .card-title {
  min-height: 30px;
  display: flex;
  align-items: center;
  margin: 0 0 4px;
  font-size: 14.5px;
  line-height: 1.25;
}

/* ??????? ? ????? ???????? ?????? ????? */
.analytics-metric {
  min-height: 124px;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
}
.analytics-metric .s-ico { font-size: 18px; line-height: 1; }
.analytics-metric .s-val { font-size: 28px; font-weight: 700; line-height: 1; }
.analytics-metric .s-lbl {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.3;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-wrap: balance;
  padding: 0 4px;
}
.analytics-metric .s-hint {
  font-size: 10px;
  color: var(--ink-faint);
  line-height: 1.25;
  margin-top: 2px;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-wrap: balance;
  padding: 0 4px;
}
button.analytics-metric {
  font: inherit;
  color: inherit;
  background: var(--surface);
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  cursor: pointer;
  text-align: center;
  border: 1px solid var(--line);
  transition: transform .14s, box-shadow .14s, border-color .14s;
}
button.analytics-metric:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.analytics-metric-click {
  cursor: pointer;
}
.analytics-week-card { min-height: 0; }
.analytics-week-sub {
  margin: -4px 0 10px;
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.4;
}
.analytics-hint {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.analytics-week-card .week-bars { height: 92px; margin-top: 2px; }
.analytics-week-card .week-bar-fill { max-width: 36px; }

/* ????? ????? ?????? */
.analytics-banner {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 12px 14px;
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 18%, var(--line));
}
.analytics-banner-ico { font-size: 22px; flex: none; line-height: 1; }
.analytics-banner-text { flex: 1; min-width: 0; }
.analytics-banner-text b { display: block; font-size: 14px; margin-bottom: 2px; }
.analytics-banner-text span { display: block; font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; }
.analytics-banner .btn { flex: none; white-space: nowrap; }
.analytics-banner-ok {
  background: color-mix(in srgb, var(--ok, #2fae8e) 12%, var(--card, #fff));
  border-color: color-mix(in srgb, var(--ok, #2fae8e) 22%, var(--line));
}

/* ????? ????? ??????? ???????? ? ????? ??????? */
.shadows-folder {
  margin-top: 28px;
  margin-bottom: 24px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--ink, #233029) 12%, var(--line));
  border-radius: 14px;
  background:
    linear-gradient(165deg, color-mix(in srgb, #2a3340 8%, var(--card, #fff)), var(--card, #fff));
  overflow: hidden;
}
.shadows-folder-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-weight: 600;
  color: color-mix(in srgb, var(--ink) 78%, #5a6470);
  user-select: none;
}
.shadows-folder-summary::-webkit-details-marker { display: none; }
.shadows-folder-summary::after {
  content: "?";
  margin-left: auto;
  opacity: 0.45;
  font-size: 12px;
  transition: transform .2s ease;
}
.shadows-folder[open] .shadows-folder-summary::after { transform: rotate(180deg); }
.shadows-folder-ico { font-size: 18px; line-height: 1; }
.shadows-folder-title {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.shadows-folder-count {
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, #2a3340 10%, transparent);
  color: var(--ink-soft);
}
.shadows-folder-hint {
  margin: 0 16px 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
#shadows-body { padding: 0 12px 14px; }
#shadows-body .item-shadow {
  opacity: 0.88;
  border-style: dashed;
}
.item-actions { flex-wrap: wrap; }

/* ???????????????? */
.privacy-stack { display: grid; gap: 12px; }
.privacy-card { position: relative; padding-left: 52px; }
.privacy-card-num {
  position: absolute;
  left: 14px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: color-mix(in srgb, var(--primary, #2fae8e) 16%, transparent);
  color: var(--primary-ink, #1a6b58);
}
.privacy-card-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}
.privacy-card-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.privacy-footer { margin: 16px 0 0; font-size: 12.5px; line-height: 1.45; }
.privacy-modal-body { max-height: min(60vh, 420px); overflow: auto; }
.privacy-modal-block { margin-bottom: 12px; }
.privacy-modal-block b { display: block; margin-bottom: 4px; }
.privacy-modal-block p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }

/* ????? */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.admin-stat {
  padding: 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary, #2fae8e) 8%, var(--card, #fff));
  border: 1px solid var(--line);
}
.admin-stat b { display: block; font-size: 22px; line-height: 1.1; }
.admin-stat span { font-size: 12px; color: var(--ink-soft); }
.admin-user-list { display: grid; gap: 8px; margin-top: 8px; }
.admin-user-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.admin-user-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
@media (min-width: 720px) {
  .admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ??? 2: ?????? ???????? / ????? */
.analytics-panel { min-height: 124px; }
.analytics-panel-action { margin-top: auto; align-self: flex-start; }

/* ??? 3: ??????? (???? ?????? ? ??????) */
.analytics-charts-row {
  display: contents;
}
.analytics-charts-row .chart-card {
  min-height: 188px;
  display: flex;
  flex-direction: column;
}
.analytics-charts-row .chart-card.analytics-span-12 {
  grid-column: span 12;
  max-width: none;
  justify-self: stretch;
  width: 100%;
}
.analytics-charts-row .chart-card.analytics-span-6 { grid-column: span 6; }

/* ??? 4: ?????? */
.analytics-list { min-height: 118px; }
.analytics-none {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.45;
}

.analytics-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  min-width: 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.analytics-row:first-of-type,
.analytics-card .card-title + .analytics-row {
  border-top: 0;
}
.analytics-row span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.analytics-row b,
.analytics-row span:last-child {
  text-align: right;
  white-space: nowrap;
}

.chart-box {
  position: relative;
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 136px;
  height: 136px;
}
.chart-box canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
  color: var(--ink-soft);
  background: var(--btn-face-cream);
  border: 1px solid color-mix(in srgb, var(--btn-edge-cream) 45%, var(--line));
  box-shadow: var(--btn-shine), 0 2px 0 var(--btn-edge-cream);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  cursor: pointer;
}
.chip:hover { filter: brightness(1.03); transform: translateY(-1px); }
.chip:active { transform: translateY(1px); box-shadow: inset 0 1px 3px rgba(7,21,40,.12), 0 0 0 transparent; }
.chip.sel, .chip.active {
  color: #fff8ef;
  border-color: color-mix(in srgb, var(--btn-edge-navy) 55%, transparent);
  background: var(--btn-face-navy);
  box-shadow: var(--btn-shine-dark), 0 2px 0 var(--btn-edge-navy);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.pill { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.pill-green { background: var(--accent-soft); color: #2a8f7c; }
.pill-warn { background: var(--warn-soft); color: #b5742f; }
.pill-red { background: var(--danger-soft); color: #c0495a; }
.pill-violet { background: var(--primary-soft); color: var(--primary-d); }

/* list items */
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.item + .item { margin-top: 12px; }
.item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.item-date { font-size: 12px; color: var(--ink-faint); }
.item-body { margin-top: 8px; line-height: 1.55; }

/* slider */
.scale { display: flex; gap: 6px; flex-wrap: wrap; }
.scale button {
  width: 40px; height: 40px; border-radius: 11px;
  border: 1px solid color-mix(in srgb, var(--btn-edge-cream) 45%, var(--line));
  background: var(--btn-face-cream); font-weight: 700; color: var(--ink-soft);
  box-shadow: var(--btn-shine), 0 2px 0 var(--btn-edge-cream);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.scale button:hover { border-color: var(--primary); filter: brightness(1.03); transform: translateY(-1px); }
.scale button:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(7,21,40,.12), 0 0 0 transparent; }
.scale button.sel {
  color: #fff8ef;
  border-color: color-mix(in srgb, var(--btn-edge-navy) 55%, transparent);
  background: var(--btn-face-navy);
  box-shadow: var(--btn-shine-dark), 0 2px 0 var(--btn-edge-navy);
  transform: translateY(-1px) scale(1.04);
}
.scale.mood button.sel {
  color: var(--ink);
  background: var(--btn-face-gold);
  border-color: color-mix(in srgb, var(--btn-edge-gold) 55%, transparent);
  box-shadow: var(--btn-shine), 0 2px 0 var(--btn-edge-gold);
}
.scale-legend { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-faint); margin-top: 6px; }

.section-title { font-size: 19px; font-weight: 700; margin: 24px 0 10px; line-height: 1.2; }

/* progress bar */
.bar { height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--accent)); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 22px; right: 22px; display: grid; gap: 10px; z-index: 200; max-width: 340px; }
.toast {
  background: var(--ink); color: #fff; padding: 13px 16px; border-radius: 14px; font-size: 14px;
  box-shadow: var(--shadow); animation: rise .35s ease; display: flex; gap: 10px; align-items: flex-start;
}
.toast.good { background: #2f9e8b; }
.toast.warn { background: var(--warn); }
.toast.celebrate { background: linear-gradient(135deg, #6b5bd2, #38b6a0); }

/* ---------- Modal ---------- */
.modal-root { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 20px; background: rgba(30,24,60,.5); backdrop-filter: blur(4px); }
.modal { background: var(--surface); border-radius: 24px; padding: 26px; width: 100%; max-width: 520px; box-shadow: var(--shadow); animation: rise .35s cubic-bezier(.2,.8,.2,1); max-height: 88vh; overflow-y: auto; }
.modal h2 { margin: 0 0 6px; font-size: 21px; font-weight: 700; line-height: 1.2; }
.modal-x { position: absolute; top: 14px; right: 16px; font-size: 22px; color: var(--ink-faint); }

/* ---------- Crisis overlay ---------- */
.crisis-overlay { position: fixed; inset: 0; z-index: 400; background: linear-gradient(160deg, #1f9579, #2fae8e 55%, #5cc9aa); color: #fff; overflow-y: auto; }
.crisis-wrap { max-width: 640px; margin: 0 auto; padding: 28px 22px 60px; }
.crisis-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.crisis-close { background: rgba(255,255,255,.16); color:#fff; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; }
.crisis-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 22px; padding: 22px; margin-bottom: 16px; backdrop-filter: blur(6px); }
.crisis-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; display: flex; gap: 8px; align-items: center; line-height: 1.25; }
.crisis-card .sub { opacity: .85; font-size: 13.5px; }
.crisis-step { background: rgba(255,255,255,.14); border-radius: 14px; padding: 12px 14px; margin-top: 8px; }

/* breathing */
.breath-stage { display: grid; place-items: center; padding: 16px 0; }
.breath-ball {
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95), rgba(255,255,255,.35));
  display: grid; place-items: center; color: #1f9579; font-weight: 700; font-size: 15px; font-family: var(--font-body); text-align: center; padding: 0 14px;
  box-shadow: 0 0 60px rgba(255,255,255,.5); transition: transform 4s ease-in-out, box-shadow 4s ease-in-out;
}
.breath-ball.in { transform: scale(1.32); }
.breath-ball.hold { transform: scale(1.32); }
.breath-ball.out { transform: scale(.78); }

/* 5-4-3-2-1 */
.g54321 .g-step { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.g54321 .g-num { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 700; flex: none; }
.g54321 .g-step.done { opacity: .55; }
.g54321 .g-step.done .g-num { background: #fff; color: #2f7d8f; }

/* photo */
.treasure-photo { width: 100%; border-radius: 14px; max-height: 280px; object-fit: cover; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.t-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.t-card img { width: 100%; height: 130px; object-fit: cover; display: block; }
.t-card .t-body { padding: 12px 14px; }
.t-type { font-size: 11px; font-weight: 700; color: var(--primary-d); text-transform: uppercase; letter-spacing: .4px; }
.t-content { margin-top: 4px; font-size: 14px; line-height: 1.5; }
.t-del { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.9); border-radius: 8px; width: 28px; height: 28px; font-size: 14px; box-shadow: var(--shadow-sm); }

/* library */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 14px; }
.lib-card { text-align: left; padding: 20px; border-radius: var(--radius); cursor: pointer; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); transition: .15s; }
.lib-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lib-ico {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary-d); font-size: 13px; font-weight: 800;
  letter-spacing: .02em;
}
.lib-card h3 { margin: 8px 0 4px; font-size: 16px; font-weight: 700; line-height: 1.25; }
.lib-card p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.article p { line-height: 1.7; color: var(--ink); }
.article h3 { margin-top: 20px; }
.article ul { line-height: 1.7; }

/* home big actions */
.home-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.big-action {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 22px 20px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--btn-edge-cream) 50%, var(--line));
  background: var(--btn-face-cream); min-height: 150px;
  box-shadow:
    var(--btn-shine),
    0 4px 0 var(--btn-edge-cream),
    0 10px 22px -8px rgba(7, 21, 40, .22);
  transition: transform .14s ease, box-shadow .16s ease, filter .16s ease;
}
.big-action:hover {
  filter: brightness(1.03);
  transform: translateY(-2px);
  box-shadow:
    var(--btn-shine),
    0 5px 0 var(--btn-edge-cream),
    0 14px 28px -8px rgba(7, 21, 40, .28);
}
.big-action:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 6px rgba(7, 21, 40, .12),
    0 1px 0 var(--btn-edge-cream),
    0 4px 10px rgba(7, 21, 40, .12);
}
.big-action .ba-ico {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(180deg, #fff, #ffe8cc);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 0 color-mix(in srgb, var(--btn-edge-cream) 60%, transparent);
  font-size: 14px; font-weight: 700; letter-spacing: .03em;
}
.act-new .ba-ico { background: linear-gradient(180deg, #fff, #ffe8cc); border-color: var(--line); color: var(--primary-d); }
.big-action .ba-title { font-size: 19px; font-weight: 700; line-height: 1.15; margin-top: 4px; }
.big-action .ba-sub { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.act-calm {
  color: #fff8ef;
  background: var(--btn-face-navy);
  border-color: color-mix(in srgb, var(--btn-edge-navy) 60%, transparent);
  box-shadow:
    var(--btn-shine-dark),
    0 4px 0 var(--btn-edge-navy),
    0 10px 22px -8px rgba(3, 13, 28, .4);
}
.act-calm .ba-sub { color: rgba(255,248,239,.88); }
.act-calm .ba-ico {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.act-calm:hover {
  box-shadow:
    var(--btn-shine-dark),
    0 5px 0 var(--btn-edge-navy),
    0 14px 28px -8px rgba(3, 13, 28, .48);
}
.act-quick {
  background: var(--btn-face-soft);
  border-color: color-mix(in srgb, var(--btn-edge-soft) 55%, var(--line));
  box-shadow:
    var(--btn-shine),
    0 4px 0 color-mix(in srgb, var(--btn-edge-soft) 80%, var(--btn-edge-cream)),
    0 10px 22px -8px rgba(7, 21, 40, .18);
}
.act-quick .ba-title { color: var(--primary-d); }
.act-progress { background: var(--btn-face-cream); }
.act-progress .ba-title { color: var(--ink); }
.act-new {
  background: var(--btn-face-cream);
  border: 1px solid color-mix(in srgb, var(--btn-edge-cream) 50%, var(--line));
}
.act-new .ba-title { color: var(--primary-d); }
.home-actions.two { grid-template-columns: repeat(2, 1fr); }
.streak-stat { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.streak-stat .s-val { font-size: 46px; }
.aff-card { display: flex; flex-direction: column; }

/* welcome greeting */
.welcome {
  background: linear-gradient(140deg, #eafaf3, #f3fbf7);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 16px;
}
.welcome h1 { font-family: var(--font-hand); font-size: 40px; margin: 0 0 6px; color: var(--primary-d); }
.welcome p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

/* daily wellbeing */
.wellbeing-card { margin-bottom: 16px; }
.tension-meter {
  max-width: 520px; margin: 18px auto 8px; padding: 6px 12px 0;
}
.meter-arc {
  position: relative; height: 230px; overflow: hidden;
}
.meter-arc::before {
  content: ""; position: absolute; left: 50%; bottom: -190px; transform: translateX(-50%);
  width: 380px; height: 380px; border-radius: 50%;
  background: conic-gradient(from 270deg, #67b88f 0deg 58deg, #d9a85f 58deg 122deg, #d6818b 122deg 180deg, transparent 180deg 360deg);
  box-shadow: inset 0 0 0 34px var(--surface), var(--shadow-sm);
}
.meter-arc::after {
  content: ""; position: absolute; left: 50%; bottom: -155px; transform: translateX(-50%);
  width: 310px; height: 310px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
}
.meter-needle {
  position: absolute; left: 50%; bottom: 34px; z-index: 3;
  width: 5px; height: 145px; border-radius: 999px;
  background: linear-gradient(180deg, var(--ink), var(--primary-d));
  transform-origin: 50% calc(100% - 8px);
  transform: translateX(-50%) rotate(var(--needle-angle));
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
}
.meter-hub {
  position: absolute; left: 50%; bottom: 24px; z-index: 4; transform: translateX(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); border: 6px solid var(--surface); box-shadow: var(--shadow-sm);
}
.meter-value {
  position: absolute; left: 50%; bottom: 58px; z-index: 5; transform: translateX(-50%);
  display: grid; place-items: center; gap: 1px; min-width: 132px;
  padding: 10px 14px; border-radius: 18px;
  background: rgba(255,255,255,.74); border: 1px solid var(--line); backdrop-filter: blur(6px);
}
.meter-value strong { font-size: 42px; line-height: 1; color: var(--primary-d); }
.meter-value span { font-size: 12px; color: var(--ink-soft); font-weight: 700; text-align: center; }
.meter-labels {
  display: flex; justify-content: space-between; margin-top: -14px;
  color: var(--ink-faint); font-size: 12px; font-weight: 700;
}
.tension-meter.meter-empty .meter-needle { opacity: .42; }
.well-scale {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px;
}
.meter-scale { margin-top: 16px; }
.well-btn {
  height: 38px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--btn-edge-cream) 45%, var(--line));
  color: var(--ink-soft); font-weight: 700;
  background: var(--btn-face-cream);
  box-shadow:
    var(--btn-shine),
    0 2px 0 var(--btn-edge-cream),
    0 5px 10px -4px rgba(7, 21, 40, .16);
  transition: transform .12s ease, box-shadow .14s ease, filter .14s ease, color .14s ease;
}
.well-btn:hover {
  color: var(--primary-d);
  filter: brightness(1.03);
  transform: translateY(-1px);
  border-color: var(--primary);
}
.well-btn:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(7, 21, 40, .12), 0 0 0 transparent;
}
.well-btn.sel {
  color: #fff8ef;
  border-color: color-mix(in srgb, var(--btn-edge-navy) 60%, transparent);
  background: var(--btn-face-navy);
  box-shadow:
    var(--btn-shine-dark),
    0 2px 0 var(--btn-edge-navy),
    0 5px 12px -4px rgba(3, 13, 28, .35);
}
.well-result {
  margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line); line-height: 1.55;
}
.well-result p { margin: 5px 0 0; }
.well-result.high { background: var(--danger-soft); border-color: rgba(214,129,139,.28); }
.well-result.calm { background: var(--primary-soft); border-color: rgba(93,149,128,.28); }
.well-result.mid { background: var(--warn-soft); border-color: rgba(210,154,82,.25); }
.song-mini {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.42);
}
.song-mini span { color: var(--ink-faint); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.song-mini b { flex: 1; min-width: 180px; }
.quick-input {
  flex: 1; min-width: 220px; padding: 10px 13px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); outline: none;
}
.quick-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
textarea.quick-input {
  width: 100%; min-width: 0; min-height: 88px; resize: vertical; line-height: 1.45; font: inherit;
  box-sizing: border-box;
}

/* SOS button */
.sos-button {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px 20px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--btn-edge-coral) 50%, transparent);
  cursor: pointer;
  background: var(--btn-face-coral); color: #7a3b3b;
  box-shadow:
    var(--btn-shine),
    0 4px 0 var(--btn-edge-coral),
    0 10px 20px -8px rgba(196, 122, 106, .35);
  transition: transform .14s ease, box-shadow .16s ease, filter .16s ease;
  margin-bottom: 16px;
}
.sos-button:hover {
  filter: brightness(1.03);
  transform: translateY(-2px);
  box-shadow:
    var(--btn-shine),
    0 5px 0 var(--btn-edge-coral),
    0 14px 26px -8px rgba(196, 122, 106, .42);
}
.sos-button:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 5px rgba(100, 40, 40, .15), 0 1px 0 var(--btn-edge-coral);
}
.sos-button .sos-ico {
  width: 48px; height: 38px; display: grid; place-items: center; border-radius: 14px;
  background: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.45);
  font-size: 14px; font-weight: 800; letter-spacing: -.04em;
}
.sos-button .sos-text { display: flex; flex-direction: column; gap: 2px; }
.sos-button .sos-text b { font-size: 19px; }
.sos-button .sos-text span span,
.sos-button .sos-text > span { font-size: 13.5px; opacity: .95; }

/* joys card + more links */
.joys-card { cursor: pointer; transition: .16s; }
.joys-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.more-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.more-link {
  display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 14px;
  color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer;
  background: var(--btn-face-cream);
  border: 1px solid color-mix(in srgb, var(--btn-edge-cream) 45%, var(--line));
  box-shadow: var(--btn-shine), 0 3px 0 var(--btn-edge-cream), 0 7px 14px -6px rgba(7,21,40,.16);
  transition: transform .12s ease, box-shadow .14s ease, filter .14s ease, color .14s ease;
}
.more-link span { font-size: 17px; }
.more-link:hover {
  color: var(--primary-d);
  border-color: var(--primary);
  filter: brightness(1.03);
  transform: translateY(-1px);
}
.more-link:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(7,21,40,.1), 0 0 0 transparent;
}

/* good events calendar */
.good-calendar { display: grid; gap: 12px; }
.cal-legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-weekdays span { text-align: center; font-size: 11px; color: var(--ink-faint); font-weight: 700; text-transform: uppercase; }
.cal-cell {
  min-height: 54px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2);
  display: grid; grid-template-rows: auto 1fr; align-items: center; justify-items: center; position: relative;
  padding: 6px; color: var(--ink-soft);
}
.cal-cell.empty { opacity: 0; pointer-events: none; }
.cal-cell.good { background: var(--primary-soft); border-color: rgba(93,149,128,.35); }
.cal-cell.anxious { background: var(--danger-soft); border-color: rgba(214,129,139,.32); }
.cal-day { justify-self: start; font-size: 11px; font-weight: 700; color: var(--ink-faint); }
.cal-face { font-size: 22px; line-height: 1; }
.cal-count {
  position: absolute; right: 6px; bottom: 5px; min-width: 17px; height: 17px;
  border-radius: 999px; display: grid; place-items: center;
  background: var(--surface); color: var(--primary-d); border: 1px solid var(--line);
  font-size: 10px; font-weight: 800;
}

/* SOS nav item */
.nav-item.nav-sos { color: #cf8a82; font-weight: 700; }
.nav-item.nav-sos:hover { background: #fbeee9; color: #c47e76; }

/* ?????? ??????? (????? ??????) */
.song-bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px; margin: -8px 0 18px; border-radius: 16px;
  background: linear-gradient(135deg, #e9f7f0, #f3eefb);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}
.song-bar .song-ico { font-size: 26px; }
.song-bar .song-main { flex: 1; min-width: 0; }
.song-bar .song-label { font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.song-bar .song-name { font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-bar .song-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.song-btn {
  border: 1px solid color-mix(in srgb, var(--btn-edge-navy) 55%, transparent);
  cursor: pointer; font-weight: 700; font-size: 13px;
  padding: 8px 14px; border-radius: 999px;
  color: #fff8ef;
  background: var(--btn-face-navy);
  box-shadow:
    var(--btn-shine-dark),
    0 3px 0 var(--btn-edge-navy),
    0 7px 14px -5px rgba(3, 13, 28, .4);
  transition: transform .12s ease, box-shadow .14s ease, filter .14s ease;
}
.song-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    var(--btn-shine-dark),
    0 4px 0 var(--btn-edge-navy),
    0 9px 16px -5px rgba(3, 13, 28, .48);
}
.song-btn:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 5px rgba(0,0,0,.28), 0 0 0 var(--btn-edge-navy);
}
.song-btn.ghost {
  color: var(--ink-soft);
  background: var(--btn-face-cream);
  border: 1px solid color-mix(in srgb, var(--btn-edge-cream) 50%, var(--line));
  box-shadow:
    var(--btn-shine),
    0 2px 0 var(--btn-edge-cream),
    0 5px 10px -4px rgba(7, 21, 40, .16);
}
.song-btn.ghost:hover {
  color: var(--primary-d);
  filter: brightness(1.03);
  background: var(--btn-face-cream);
}
.song-btn.song-round { width: 36px; height: 36px; padding: 0; font-size: 20px; line-height: 1; }

/* ????? ????? */
.gender-pick { display: flex; gap: 10px; }
.gender-opt {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 14px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--btn-edge-cream) 45%, var(--line));
  background: var(--btn-face-cream); color: var(--ink-soft); font-weight: 700; font-size: 14px;
  box-shadow: var(--btn-shine), 0 3px 0 var(--btn-edge-cream), 0 7px 14px -6px rgba(7,21,40,.16);
  transition: transform .12s ease, box-shadow .14s ease, filter .14s ease, color .14s ease;
}
.gender-opt:hover { border-color: var(--primary); color: var(--primary-d); filter: brightness(1.03); transform: translateY(-1px); }
.gender-opt:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(7,21,40,.12), 0 0 0 transparent; }
.gender-opt.sel {
  color: var(--primary-d);
  background: var(--btn-face-soft);
  border-color: var(--primary);
  box-shadow: var(--btn-shine), 0 3px 0 color-mix(in srgb, var(--btn-edge-soft) 70%, var(--btn-edge-cream));
}
.gender-symbol {
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid currentColor; font-size: 15px; line-height: 1;
}

/* ??????? ??????? ?????? ????? (??? ??????????) */
.tt-stage { transition: opacity .14s ease; opacity: 1; }

/* ??????? ??????????? ????? */
.test-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }

input[type="range"] {
  -webkit-appearance: none; appearance: none; height: 5px; border-radius: 999px;
  background: var(--line); outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--primary); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: none; border-radius: 50%; background: var(--primary); cursor: pointer; }

/* ?????????? ??? ???? */
.guide-list { display: flex; flex-direction: column; gap: 10px; max-height: 56vh; overflow-y: auto; padding-right: 4px; }
.guide-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.guide-item .guide-ico {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px;
  background: var(--surface); color: var(--primary-d); font-size: 12px; font-weight: 800;
  line-height: 1; flex-shrink: 0;
}
.guide-item b { font-size: 15px; }
.guide-item p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }

/* ????? ?????? ??????? ?? ????? */
.modal.modal--welcome {
  max-width: 720px;
  padding: 24px 22px 20px;
}
.welcome-modal { display: grid; gap: 12px; }
.welcome-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.welcome-lead {
  margin: 0 0 4px;
  line-height: 1.55;
  font-size: 14px;
}
.welcome-groups {
  display: grid;
  gap: 14px;
  max-height: min(58vh, 520px);
  overflow-y: auto;
  padding-right: 4px;
  margin: 0 -2px;
}
.welcome-group-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-d);
  letter-spacing: .01em;
}
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.welcome-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.welcome-ico {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface);
  color: var(--primary-d);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.welcome-card-body { min-width: 0; }
.welcome-card-body b {
  display: block;
  font-size: 13.5px;
  line-height: 1.3;
  margin: 0 0 3px;
}
.welcome-card-body p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.welcome-footer {
  margin: 4px 0 0;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 20px;
  line-height: 1.3;
  color: var(--primary-d);
}
.welcome-actions {
  justify-content: center;
  margin-top: 4px;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 640px) {
  .modal.modal--welcome { max-width: 100%; padding: 20px 16px 16px; }
  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-groups { max-height: 52vh; }

  /* Auth / landing */
  .auth-screen {
    padding: 22px 14px 28px;
    padding-top: max(22px, env(safe-area-inset-top, 0px));
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
  }
  .landing--minimal {
    max-width: 100%;
    gap: 16px;
  }
  .landing--minimal .landing-subtitle {
    max-width: none;
    font-size: 14px;
    line-height: 1.45;
  }
  .auth-card {
    padding: 20px 16px;
    border-radius: 18px;
  }
  .auth-card-title { font-size: 19px; }
  .auth-card-sub { font-size: 13px; }
  .auth-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .auth-screen .gender-opt {
    font-size: 12.5px;
    padding: 12px 8px;
    line-height: 1.25;
  }
  #google-btn-box,
  #google-btn-box > div,
  #google-btn-box iframe {
    width: 100% !important;
    max-width: 100% !important;
  }
  .landing-seo { margin-top: 20px; padding-top: 14px; }
  .landing-seo h2 { font-size: 15px; }
  .landing-seo p,
  .landing-seo-list li { font-size: 13px; }

  /* Inputs: no iOS zoom + clearer hit targets */
  .field input,
  .field textarea,
  .field select,
  .auth-screen .field input,
  .auth-screen .field textarea,
  .auth-screen .field select {
    font-size: 16px;
    min-height: 46px;
  }

  /* Modals / toasts */
  .modal-root {
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
  .modal {
    width: 100%;
    max-width: 100%;
    max-height: min(88vh, calc(100dvh - 24px));
    border-radius: 18px;
    padding: 18px 16px;
  }
  .toasts {
    left: 12px;
    right: 12px;
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    max-width: none;
  }
  .toast { width: 100%; box-sizing: border-box; }

  /* Public pages */
  .public-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .public-brand { font-size: 30px; }
  .public-nav {
    width: 100%;
    gap: 8px 10px;
    font-size: 13px;
  }
  .public-nav-cta { margin-left: auto; }
  .public-main {
    padding: 12px 16px 36px;
  }
  .public-main h1 {
    font-size: clamp(24px, 7.2vw, 32px);
  }
  .public-lead { font-size: 15px; }
  .public-actions {
    flex-direction: column;
  }
  .public-actions .btn { width: 100%; }
  .blog-card { padding: 14px; }
  .domain-move-card {
    width: min(420px, calc(100vw - 28px));
    padding: 18px 16px 14px;
  }
}

/* ???????? ?? ????? (tour) */
.tour-root {
  position: fixed;
  inset: 0;
  z-index: 12000;
  pointer-events: none;
}
.tour-root.hidden { display: none; }
.tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 22, 51, .32);
  pointer-events: auto;
  cursor: pointer;
}
.tour-spotlight {
  position: absolute;
  border-radius: 14px;
  /* ???????? ????? ??? ????????? ? ???????? ? ?????? ????? ?????? ????????? */
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--primary, #2f6f5e) 65%, #fff 35%),
    0 0 0 9999px rgba(6, 22, 51, .40);
  pointer-events: none;
  transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease;
  z-index: 1;
  animation: none;
}
.tour-guide-arrow {
  position: absolute;
  height: 2px;
  transform-origin: 0 50%;
  pointer-events: none;
  z-index: 2;
  margin-top: -1px;
  animation: none;
  opacity: .9;
}
.tour-guide-shaft {
  display: block;
  height: 100%;
  width: calc(100% - 8px);
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary, #2f6f5e) 55%, #8aa89a 45%);
  box-shadow: none;
}
.tour-guide-head {
  position: absolute;
  right: -1px;
  top: 50%;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-left: 10px solid color-mix(in srgb, var(--primary, #2f6f5e) 55%, #8aa89a 45%);
  transform: translateY(-50%);
  filter: none;
}
.tour-card {
  position: absolute;
  width: min(300px, calc(100vw - 24px));
  background: var(--surface, #fffaf4);
  color: var(--ink, #233029);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 18px 40px -18px rgba(6, 22, 51, .55);
  border: 1px solid color-mix(in srgb, var(--line, #e8dfd4) 80%, #061633 20%);
  pointer-events: auto;
  z-index: 3;
  animation: tour-pop .28s ease;
}
@keyframes tour-pop {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.tour-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}
.tour-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft, #5c6b63);
}
.tour-step {
  margin: 0 0 4px !important;
  font-size: 11.5px !important;
  font-weight: 700;
  color: var(--primary-d, #1a6b58) !important;
  letter-spacing: .02em;
}
.tour-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.tour-card-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}
.tour-arrow-left .tour-card-arrow {
  left: -18px;
  top: 28px;
  border-right-color: var(--surface, #fffaf4);
}
.tour-arrow-right .tour-card-arrow {
  right: -18px;
  top: 28px;
  border-left-color: var(--surface, #fffaf4);
}
.tour-arrow-up .tour-card-arrow {
  top: -18px;
  left: 28px;
  border-bottom-color: var(--surface, #fffaf4);
}
.tour-arrow-down .tour-card-arrow {
  bottom: -18px;
  left: 28px;
  border-top-color: var(--surface, #fffaf4);
}
body.tour-active { overflow: hidden; }

@media (max-width: 880px) {
  .tour-spotlight { border-radius: 12px; }
  .tour-guide-arrow { display: none; }
}

/* Connectivity / sync banner ? ???????, ?? ?????? ????? ? layout */
.connectivity-banner {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  max-width: min(520px, calc(100vw - 24px));
  width: max-content;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 10px 28px -12px rgba(7, 21, 40, .28);
  border: 1px solid transparent;
}
.connectivity-banner.hidden { display: none !important; }
.connectivity-banner--offline {
  background: linear-gradient(180deg, #fff4e8, #ffd9b8);
  color: #5a3218;
  border-color: color-mix(in srgb, #c98a5c 55%, transparent);
}
.connectivity-banner--sync {
  background: linear-gradient(180deg, #f0f6fd, #d5e4f7);
  color: #163a68;
  border-color: color-mix(in srgb, #8aabcc 55%, transparent);
}
.connectivity-banner--ok {
  background: linear-gradient(180deg, #eef8f2, #d4efdf);
  color: #1d5c3a;
  border-color: color-mix(in srgb, #6aab7f 55%, transparent);
}
:root[data-theme="dark"] .connectivity-banner--offline {
  background: #3a2a22;
  color: #ffd7b0;
  border-color: #5a4030;
}
:root[data-theme="dark"] .connectivity-banner--sync {
  background: #1a2c44;
  color: #c9d3e4;
  border-color: #2a3d5c;
}
:root[data-theme="dark"] .connectivity-banner--ok {
  background: #1c3a2c;
  color: #b8e0c8;
  border-color: #2a4a38;
}
@media (max-width: 780px) {
  .connectivity-banner {
    top: calc(var(--safe-area-inset-top, 0px) + 58px);
    max-width: calc(100vw - 20px);
    border-radius: 16px;
  }
}

/* ????????? ???? (????? ??????) */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 8px 13px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 13px;
  color: var(--ink-soft);
  background: var(--btn-face-cream);
  border: 1px solid color-mix(in srgb, var(--btn-edge-cream) 50%, var(--line));
  box-shadow: var(--btn-shine), 0 2px 0 var(--btn-edge-cream), 0 5px 10px -4px rgba(7,21,40,.16);
  transition: transform .12s ease, box-shadow .14s ease, filter .14s ease, color .14s ease;
}
.theme-toggle:hover {
  color: var(--primary-d);
  border-color: var(--primary);
  filter: brightness(1.03);
  transform: translateY(-1px);
}
.theme-toggle:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(7,21,40,.12), 0 0 0 transparent;
}
.theme-toggle .tt-ico { font-size: 15px; }

/* ?????? ???????? ??? ?????? */
.card, .sidebar, .song-bar, .item, .big-action, .more-link, .welcome,
.theme-toggle, .stat, .topbar, .lib-card, .banner { transition: background-color .3s ease, border-color .3s ease, color .3s ease; }

/* ????? ????: ???'?????? ???????? ??????? ??????? ?????????? */
:root[data-theme="dark"] .welcome { background: linear-gradient(140deg, var(--surface-2), var(--surface)); }
:root[data-theme="dark"] .welcome h1 { color: var(--primary); }
:root[data-theme="dark"] .song-bar { background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
:root[data-theme="dark"] .meter-value { background: rgba(48,56,76,.84); }
:root[data-theme="dark"] .song-btn.ghost {
  background: var(--btn-face-cream);
  color: var(--ink-soft);
}
:root[data-theme="dark"] .song-btn.ghost:hover {
  background: var(--btn-face-cream);
  filter: brightness(1.1);
}
:root[data-theme="dark"] .act-new,
:root[data-theme="dark"] .act-quick {
  background: var(--btn-face-cream);
  border-color: var(--line);
}
:root[data-theme="dark"] .act-new .ba-title,
:root[data-theme="dark"] .act-quick .ba-title { color: var(--primary); }
:root[data-theme="dark"] .nav-item.nav-sos:hover { background: var(--danger-soft); color: var(--danger); }
:root[data-theme="dark"] .crisis-pill { background: var(--danger-soft); color: var(--danger); }
:root[data-theme="dark"] .sos-button { color: #f7e8e2; }
:root[data-theme="dark"] .btn-google {
  background: var(--btn-face-cream);
  color: var(--ink);
  border: 1px solid var(--line);
}
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .song-btn:not(.ghost),
:root[data-theme="dark"] .recovery-home-care,
:root[data-theme="dark"] .act-calm,
:root[data-theme="dark"] .chip.sel,
:root[data-theme="dark"] .chip.active,
:root[data-theme="dark"] .well-btn.sel,
:root[data-theme="dark"] .scale button.sel {
  color: #1a1208;
}
:root[data-gender="male"] .welcome { background: linear-gradient(140deg, #ffd8b8, #fff4ea); }
:root[data-gender="male"] .welcome h1 { color: var(--primary-d); font-family: var(--font-body); font-size: 32px; letter-spacing: -.4px; }
:root[data-gender="male"] .act-calm,
:root[data-gender="male"] .fin-flow,
:root[data-gender="male"] .crisis-overlay { background: linear-gradient(140deg, #061633, #1a3a68); }
:root[data-gender="male"] .act-new,
:root[data-gender="male"] .act-quick { background: linear-gradient(140deg, #ffe28a, #ffd8b8); }
:root[data-gender="male"] .sos-button { background: linear-gradient(135deg, #ffd8b8, #fff1e2); color: #061633; }
:root[data-gender="male"] .song-bar { background: linear-gradient(135deg, #ffe28a, #fff4ea); }
:root[data-gender="male"] .aff-text,
:root[data-gender="male"] .fin-aff { font-family: var(--font-body); font-size: 20px; line-height: 1.45; color: var(--primary-d); }
:root[data-theme="dark"][data-gender="male"] .welcome,
:root[data-theme="dark"][data-gender="male"] .song-bar { background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
:root[data-theme="dark"][data-gender="male"] .act-new,
:root[data-theme="dark"][data-gender="male"] .act-quick { background: var(--primary-soft); }
:root[data-theme="dark"][data-gender="male"] .meter-value { background: rgba(24,44,68,.82); }
@media (max-width: 880px) {
  .song-bar { top: 57px; flex-wrap: wrap; gap: 8px; }
  .song-bar .song-main { flex: 1 1 100%; order: 2; }
  .song-bar .song-actions { order: 3; flex: 1 1 100%; }
  .song-btn { flex: 1; text-align: center; }
}

@media (max-width: 560px) {
  .landing-benefits { grid-template-columns: 1fr; }
  .landing-cta { flex-direction: column; align-items: stretch; }
  .landing-cta .btn-lg { width: 100%; }
  .auth-screen { padding-left: 16px; padding-right: 16px; }
  .auth-card { padding: 22px 18px; }
}

@media (max-width: 480px) {
  .analytics-dashboard,
  .analytics-charts-row { grid-template-columns: 1fr; }
  .analytics-span-3,
  .analytics-span-4,
  .analytics-span-6,
  .analytics-span-12,
  .analytics-metric.analytics-span-3,
  .analytics-metric.analytics-span-4,
  .analytics-charts-row .chart-card.analytics-span-6,
  .analytics-charts-row .chart-card.analytics-span-12 { grid-column: span 1; }
  .analytics-metric { min-height: 108px; }
  .analytics-panel,
  .analytics-list { min-height: 0; }
  .analytics-card .card-title { min-height: 26px; font-size: 14px; }
  .chart-box { min-height: 100px; height: 100px; }
  .analytics-charts-row .chart-card { min-height: 150px; }
  .analytics-row { align-items: flex-start; grid-template-columns: 1fr; gap: 2px; }
  .analytics-row b,
  .analytics-row span:last-child { text-align: left; white-space: normal; }
  .tension-meter { padding-left: 0; padding-right: 0; }
  .meter-arc { height: 200px; }
  .meter-arc::before { width: 320px; height: 320px; bottom: -160px; box-shadow: inset 0 0 0 30px var(--surface), var(--shadow-sm); }
  .meter-arc::after { width: 260px; height: 260px; bottom: -130px; }
  .meter-needle { height: 122px; bottom: 31px; }
  .meter-hub { bottom: 21px; }
  .meter-value { bottom: 52px; min-width: 116px; }
  .meter-value strong { font-size: 36px; }
}

/* calm guided flow */
.calm-scale { justify-content: center; }
.calm-scale button { color: #fff; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.25); }
.calm-scale button.sel { background: #fff; color: var(--primary-d); border-color: #fff; }
.calm-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.calm-cat {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-radius: 16px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); color: #fff;
  font-size: 16px; font-weight: 600; transition: .14s;
}
.calm-cat:hover { background: rgba(255,255,255,.26); transform: translateY(-2px); }
.calm-q-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.calm-input {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.16); color: #fff; font-size: 15px; outline: none; resize: vertical; font-family: inherit;
}
.calm-input::placeholder { color: rgba(255,255,255,.65); }
.calm-input:focus { border-color: #fff; background: rgba(255,255,255,.24); }
.calm-timer { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.25); color: #fff; }
.calm-timer.sel { background: #fff; color: var(--primary-d); border-color: #fff; }
.calm-joy { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.25); color: #fff; }
.calm-joy.sel { background: #fff; color: var(--primary-d); border-color: #fff; }

/* finance toolkit */
.fin-toolkit { border: 1px solid #bfe9d8; background: linear-gradient(180deg, #f3fcf8, #ffffff); }
.fin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fin-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-sm); transition: .15s;
}
.fin-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary); }
.fin-btn .fin-ico {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px;
  background: var(--primary-soft); color: var(--primary-d); font-size: 12px; font-weight: 800;
}
.fin-flow .fin-ico { background: rgba(255,255,255,.2); color: #fff; }
.fin-btn b { font-size: 14.5px; margin-top: 4px; }
.fin-btn span:last-child { font-size: 12px; color: var(--ink-soft); line-height: 1.35; }
.fin-flow { background: linear-gradient(140deg, #2fae8e, #5cc9aa); border: none; color: #fff; }
.fin-flow b, .fin-flow span:last-child { color: #fff; }
.fin-flow span:last-child { opacity: .9; }

.fin-tip { display: flex; gap: 12px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.fin-tip-ico { font-size: 26px; flex: none; }
.fin-tip b { font-size: 15px; }

.fin-aff {
  font-family: var(--font-hand); font-size: 30px; line-height: 1.25; color: var(--primary-d);
  text-align: center; padding: 18px; background: var(--accent-soft); border-radius: var(--radius-sm); border: 1px solid #c7ebdd;
}

/* types strip (?? ????????) */
.types-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.type-mini {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 104px; padding: 14px 12px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft);
  font-weight: 600; font-size: 13px; text-align: center; transition: .15s;
}
.type-mini:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary-d); box-shadow: var(--shadow-sm); }
.type-mini-ico {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px;
  background: var(--surface); color: var(--primary-d); font-size: 12px; font-weight: 800;
}

/* calming test options */
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 15px 16px; border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--btn-edge-cream) 45%, var(--line));
  background: var(--btn-face-cream); color: var(--ink); font-size: 16px; font-weight: 500;
  box-shadow: var(--btn-shine), 0 3px 0 var(--btn-edge-cream), 0 7px 14px -6px rgba(7,21,40,.14);
  transition: transform .12s ease, box-shadow .14s ease, filter .14s ease, border-color .14s ease;
}
.opt:hover {
  border-color: var(--primary);
  filter: brightness(1.03);
  transform: translateY(-1px);
}
.opt:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(7,21,40,.1), 0 0 0 transparent;
}
.opt.sel {
  border-color: var(--primary);
  background: var(--btn-face-soft);
  color: var(--primary-d);
  font-weight: 600;
  box-shadow: var(--btn-shine), 0 3px 0 color-mix(in srgb, var(--btn-edge-soft) 70%, var(--btn-edge-cream));
}
.opt-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink-faint); flex: none; transition: .15s; }
.opt.sel .opt-dot { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px #fff; }

.advice {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 16px 20px;
  border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid #c7ebdd;
  line-height: 1.4; font-size: 21px; font-family: var(--font-hand); color: #235c47; animation: rise .3s ease;
}
.advice-ico { font-size: 22px; flex: none; font-family: var(--font-body); }

/* affirmation */
.aff-text {
  font-family: var(--font-hand); font-size: 26px; line-height: 1.25; color: var(--primary-d);
  margin: 0 0 14px; min-height: 64px; transition: opacity .22s ease;
}

/* achievements */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 14px; }
.ach { text-align: center; padding: 22px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.ach.locked { opacity: .5; filter: grayscale(.6); }
.ach .ach-ico { font-size: 38px; }
.ach .ach-title { font-weight: 700; margin-top: 8px; font-size: 15px; line-height: 1.2; }
.ach .ach-desc { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }

/* banner / red flag */
.banner { border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.banner-warn { background: var(--warn-soft); border: 1px solid #f0d6b8; }
.banner-red { background: var(--danger-soft); border: 1px solid #f1c4cb; }
.banner-violet { background: var(--primary-soft); border: 1px solid #d8d2f5; }
.banner .b-ico { font-size: 24px; }
.banner b { display: block; margin-bottom: 2px; }
.banner p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 500; overflow: hidden; }
.confetti i { position: absolute; width: 9px; height: 14px; top: -20px; opacity: .9; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  html {
    scroll-padding-bottom: var(--content-bottom);
  }
  .app {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    min-height: 100svh;
  }
  .sidebar,
  .scrim { display: none !important; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    flex: none;
    padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top));
    background: var(--surface); border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 60;
  }
  .topbar-title {
    font-weight: 700; font-size: 16px; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .content {
    flex: 1 1 auto;
    width: 100%;
    padding: 16px 14px var(--content-bottom);
    max-width: none;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .bottom-nav { display: flex; align-items: stretch; justify-content: space-around; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .analytics-page { --analytics-gap: 8px; }
  .analytics-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analytics-span-3,
  .analytics-span-4,
  .analytics-metric.analytics-span-3,
  .analytics-metric.analytics-span-4 { grid-column: span 1; }
  .analytics-span-6,
  .analytics-span-12,
  .analytics-charts-row .chart-card.analytics-span-6,
  .analytics-charts-row .chart-card.analytics-span-12 { grid-column: span 2; max-width: none; }
  .analytics-card { padding: 12px 14px; }
  .analytics-banner { flex-wrap: wrap; }
  .analytics-banner .btn { width: 100%; }
  .chart-box { min-height: 112px; height: 112px; }
  .analytics-charts-row .chart-card { min-height: 164px; }
  .analytics-week-card .week-bars { height: 100px; gap: 4px; }
  .analytics-week-card .week-bar-col span { font-size: 9px; }
  .analytics-metric .s-val { font-size: 24px; }
  .analytics-metric .s-hint { font-size: 9px; }
  .analytics-row { align-items: flex-start; grid-template-columns: 1fr; gap: 4px; }
  .analytics-row b, .analytics-row span:last-child { text-align: left; white-space: normal; }
  .home-actions { grid-template-columns: 1fr; }
  .home-actions.two { grid-template-columns: 1fr; }
  .big-action { min-height: auto; }
  .well-scale { grid-template-columns: repeat(5, 1fr); }
  .cal-cell { min-height: 46px; border-radius: 12px; }
  .cal-face { font-size: 19px; }
  .calm-cats { grid-template-columns: 1fr; }
  .fin-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  :root {
    --bottom-nav-inner: 56px;
    --content-bottom: calc(var(--bottom-nav-total) + 28px);
  }
  .bottom-nav-item { font-size: 9.5px; }
  .bottom-nav-item .bn-ico { font-size: 14px; }
  .page-head h1 { font-size: clamp(22px, 6.5vw, 28px); }
  .card { padding: 14px 12px; border-radius: 16px; }
  .song-bar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .song-bar .song-name { font-size: 14px; }
  .crisis-wrap { padding: 20px 14px 48px; }
  .guide-list { max-height: 48vh; }
}

@media (max-width: 390px) {
  :root {
    --bottom-nav-inner: 58px;
    --content-bottom: calc(var(--bottom-nav-total) + 28px);
  }
  .today-blocks { grid-template-columns: 1fr; }
  .today-tile-wide { grid-column: 1; }
  .today-action { padding: 12px 14px; }
  .today-action .ta-title { font-size: 14px; }
  .bottom-nav-item { font-size: 9px; padding: 4px 1px; }
  .bottom-nav-item .bn-ico { font-size: 14px; }
  .content { padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 375px) {
  :root {
    --content-bottom: calc(var(--bottom-nav-total) + 32px);
  }
}

@media (max-width: 320px) {
  :root {
    --bottom-nav-inner: 60px;
    --content-bottom: calc(var(--bottom-nav-total) + 32px);
  }
  .today-head h1 { font-size: 22px; }
  .today-tip { font-size: 18px; }
  .bottom-nav-item .bn-lbl { font-size: 8.5px; letter-spacing: -.02em; }
  .topbar { padding-left: 10px; padding-right: 10px; }
}

@media (min-width: 881px) {
  .scrim { display: none; }
  .sidebar { padding: 18px 12px; }
  .brand { padding: 4px 8px 14px; }
  .brand-name { font-size: 26px; }
  .nav-item { padding: 9px 10px; font-size: 14px; gap: 10px; }
  .nav-item .ico { width: 24px; height: 24px; font-size: 12px; }
  .content { padding-bottom: 40px; }
}

/* ---------- ??????? ---------- */
.ritual-badge { font-size: 40px; text-align: center; margin-bottom: 8px; }
.ritual-moods { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.ritual-mood {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 72px; padding: 10px 8px; border-radius: 14px;
  background: var(--btn-face-cream);
  border: 1px solid color-mix(in srgb, var(--btn-edge-cream) 45%, var(--line));
  box-shadow: var(--btn-shine), 0 3px 0 var(--btn-edge-cream);
  transition: transform .12s ease, box-shadow .14s ease, filter .14s ease, border-color .14s ease;
}
.ritual-mood span { font-size: 28px; line-height: 1; }
.ritual-mood small { font-size: 10px; color: var(--ink-faint); font-weight: 600; }
.ritual-mood:hover { border-color: var(--primary); filter: brightness(1.03); transform: translateY(-1px); }
.ritual-mood:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(7,21,40,.1), 0 0 0 transparent; }
.ritual-mood.sel {
  border-color: var(--primary);
  background: var(--btn-face-soft);
  box-shadow: var(--btn-shine), 0 3px 0 color-mix(in srgb, var(--btn-edge-soft) 70%, var(--btn-edge-cream));
}
.ritual-stars { display: flex; gap: 6px; justify-content: center; margin: 14px 0; }
.ritual-star { font-size: 26px; opacity: .35; padding: 4px; transition: opacity .15s, transform .12s; }
.ritual-star.sel { opacity: 1; transform: scale(1.08); }
.ritual-home-card { margin-bottom: 14px; }
.ritual-home-list { display: flex; flex-direction: column; gap: 8px; }
.ritual-home-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; padding: 12px 14px; border-radius: 14px; text-align: left;
  background: var(--btn-face-cream);
  border: 1px solid color-mix(in srgb, var(--btn-edge-cream) 45%, var(--line));
  box-shadow: var(--btn-shine), 0 3px 0 var(--btn-edge-cream), 0 7px 14px -6px rgba(7,21,40,.14);
  transition: transform .12s ease, box-shadow .14s ease, filter .14s ease;
}
.ritual-home-btn span { font-size: 12px; color: var(--ink-faint); }
.ritual-home-btn:hover {
  border-color: var(--primary);
  filter: brightness(1.03);
  transform: translateY(-1px);
}
.ritual-home-btn:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(7,21,40,.1), 0 0 0 transparent;
}
.care-banner {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 14px;
  border-radius: var(--radius-sm); background: var(--primary-soft); border: 1px solid var(--line);
}
.care-banner-ico { font-size: 28px; }
.care-banner-text { flex: 1; font-size: 15px; line-height: 1.45; }
.reminder-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.reminder-row {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 14px;
}
.reminder-row select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; }
.rem-push { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
@media (max-width: 520px) {
  .reminder-row { grid-template-columns: 1fr 1fr; }
  .reminder-row select { grid-column: 1 / -1; }
}

/* ---------- ?????? ???????????? ??????????? (?????? ?????) ---------- */
.app--recovery-gate {
  /* ??? ???????? ? ?????? ??????? ????????? ? ??????? --sb-w (220px) */
  grid-template-columns: 1fr;
}
.app--recovery-gate .sidebar,
.app--recovery-gate .bottom-nav,
.app--recovery-gate .topbar-profile,
.app--recovery-gate .song-bar {
  display: none !important;
}
.app--recovery-gate .content {
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .app--recovery-gate .content {
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
}

.recovery-select {
  --rs-milk: #fff6ee;
  --rs-powder: #ffe7d4;
  --rs-sage: #2f5d45;
  --rs-sage-soft: #dcecc8;
  --rs-line: color-mix(in srgb, var(--line) 55%, var(--primary) 45%);
  --rs-glow: rgba(15, 44, 86, .14);
  --rs-card-bg: color-mix(in srgb, var(--surface) 82%, #ffe9d8 18%);
  --rs-radius: 24px;
  --rs-stroke: 1px;
  --rs-art-size: 72px;
}

/* ????? ?????? ? ??????, ??????, ?????? navy */
.recovery-select--gentle {
  --rs-milk: #fff6ee;
  --rs-powder: #ffe3cc;
  --rs-sage: #2f5d45;
  --rs-sage-soft: #dcecc8;
  --rs-glow: rgba(232, 185, 35, .18);
  --rs-card-bg: color-mix(in srgb, var(--surface) 74%, #ffd9be 26%);
  --rs-radius: 26px;
  --rs-stroke: 1px;
}

/* ??????? ?????? ? ???????? navy, ??????? ??????, ??????? */
.recovery-select--solid {
  --rs-milk: #fff1e4;
  --rs-powder: #f3d0b4;
  --rs-sage: #081f3d;
  --rs-sage-soft: #f6e2a0;
  --rs-glow: rgba(8, 31, 61, .12);
  --rs-card-bg: color-mix(in srgb, var(--surface) 86%, #f0c9a8 14%);
  --rs-radius: 18px;
  --rs-stroke: 1.5px;
  --rs-line: color-mix(in srgb, var(--line) 45%, #0f2c56 55%);
}

:root[data-theme="dark"] .recovery-select--gentle {
  --rs-milk: #152338;
  --rs-powder: #1d2f4a;
  --rs-sage: #f0c14b;
  --rs-sage-soft: #2a3a55;
  --rs-glow: rgba(240, 193, 75, .14);
  --rs-card-bg: color-mix(in srgb, var(--surface) 90%, #1a2a42 10%);
}

:root[data-theme="dark"] .recovery-select--solid {
  --rs-milk: #122033;
  --rs-powder: #1a2c44;
  --rs-sage: #efc14a;
  --rs-sage-soft: #24344d;
  --rs-glow: rgba(239, 193, 74, .12);
  --rs-card-bg: color-mix(in srgb, var(--surface) 92%, #0f1c30 8%);
  --rs-line: color-mix(in srgb, var(--line) 70%, #f0c14b 30%);
}

.recovery-select-head {
  text-align: center;
  max-width: 560px;
  margin: 4px auto 28px;
}
.recovery-select-head h1 {
  margin: 0 0 12px;
  font-size: clamp(22px, 4.4vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
}
.recovery-select-head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.recovery-select--gentle .recovery-select-head h1 {
  font-weight: 600;
}
.recovery-select--solid .recovery-select-head h1 {
  letter-spacing: -.03em;
}

.recovery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.recovery-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 22px 18px 16px;
  text-align: left;
  border-radius: var(--rs-radius);
  border: var(--rs-stroke) solid var(--rs-line);
  background:
    radial-gradient(120% 80% at 50% -10%, var(--rs-glow), transparent 55%),
    var(--rs-card-bg);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  cursor: pointer;
  outline: none;
  transform: scale(1);
  opacity: 0;
  animation: recovery-card-in .55s ease forwards;
  animation-delay: calc(var(--rs-i, 0) * 70ms);
  transition:
    transform .28s cubic-bezier(.22, 1, .36, 1),
    border-color .28s ease,
    box-shadow .28s ease,
    background-color .28s ease;
}
.recovery-select--gentle .recovery-card {
  padding: 24px 20px 18px;
  box-shadow: 0 10px 32px -18px rgba(72, 70, 62, .22);
}
.recovery-select--solid .recovery-card {
  background: var(--rs-card-bg);
  box-shadow: 0 8px 24px -16px rgba(31, 43, 40, .28);
}
.recovery-card:hover {
  border-color: color-mix(in srgb, var(--rs-sage) 45%, var(--rs-line));
}
.recovery-card:focus-visible {
  border-color: var(--rs-sage);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rs-sage) 28%, transparent);
}
.recovery-card.is-selected {
  transform: scale(1.02);
  z-index: 2;
  border-color: var(--rs-sage);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--rs-sage) 55%, transparent),
    0 16px 36px -18px rgba(50, 60, 52, .28);
}
.recovery-select--gentle .recovery-card.is-selected {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--rs-sage) 40%, transparent),
    0 18px 40px -16px rgba(90, 100, 85, .22),
    inset 0 1px 0 rgba(255, 255, 255, .55);
}
.recovery-select--solid .recovery-card.is-selected {
  box-shadow:
    0 0 0 1.5px color-mix(in srgb, var(--rs-sage) 70%, transparent),
    0 14px 30px -14px rgba(25, 35, 30, .35);
}

.recovery-card-art {
  width: var(--rs-art-size);
  height: var(--rs-art-size);
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
  color: var(--rs-sage);
  border-radius: 50%;
  background: color-mix(in srgb, var(--rs-sage-soft) 70%, transparent);
}
.recovery-select--gentle .recovery-card-art {
  background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, .55), transparent 55%),
              color-mix(in srgb, var(--rs-sage-soft) 80%, var(--rs-milk));
}
.recovery-select--solid .recovery-card-art {
  border-radius: 20px;
  background: color-mix(in srgb, var(--rs-sage-soft) 55%, var(--surface));
  color: color-mix(in srgb, var(--rs-sage) 85%, var(--ink) 15%);
}
.recovery-card-art svg {
  width: 54px;
  height: 54px;
  display: block;
}

.recovery-card-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}
.recovery-card-meaning {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
  text-align: center;
}
.recovery-card-phrase {
  margin: 2px 0 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--rs-sage);
  text-align: center;
  font-weight: 600;
}
.recovery-select--gentle .recovery-card-phrase {
  font-weight: 500;
  font-family: var(--font-hand);
  font-size: 18px;
  color: color-mix(in srgb, var(--rs-sage) 75%, var(--ink-soft));
}
.recovery-select--solid .recovery-card-phrase {
  font-family: var(--font-body);
  letter-spacing: -.01em;
}

.recovery-card-extra {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin: 0;
  transition: max-height .32s ease, opacity .28s ease, margin .28s ease;
}
.recovery-card.is-selected .recovery-card-extra {
  max-height: 120px;
  opacity: 1;
  margin: 4px 0 2px;
}
.recovery-card-extra p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--rs-sage-soft) 55%, transparent);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
}
.recovery-select--solid .recovery-card-extra p {
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-2) 70%, var(--rs-sage-soft));
}

.recovery-card-pick {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  border: none;
  border-radius: 14px;
  padding: 11px 14px;
  font-weight: 700;
  font-size: 13.5px;
  background: color-mix(in srgb, var(--rs-sage) 88%, #2a3a32);
  color: #f7faf7;
  opacity: .42;
  cursor: not-allowed;
  transition: opacity .25s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.recovery-select--gentle .recovery-card-pick {
  border-radius: 999px;
  background: linear-gradient(135deg, #163a6b, #0f2c56);
  box-shadow: none;
}
.recovery-select--solid .recovery-card-pick {
  border-radius: 10px;
  background: #081f3d;
  letter-spacing: .01em;
}
.recovery-card.is-selected .recovery-card-pick:not(:disabled) {
  opacity: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px -12px rgba(15, 44, 86, .45);
}
.recovery-card.is-selected .recovery-card-pick:not(:disabled):hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--rs-sage) 78%, #1e2c24);
}
.recovery-card-pick:disabled {
  pointer-events: none;
}

@keyframes recovery-card-in {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 880px) {
  .recovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .recovery-select-head { margin-bottom: 20px; }
  .recovery-card { padding: 18px 14px 14px; }
  .recovery-card-art { --rs-art-size: 64px; }
  .recovery-card-art svg { width: 48px; height: 48px; }
}

@media (max-width: 520px) {
  .recovery-grid { grid-template-columns: 1fr; gap: 12px; }
  .recovery-select-head { margin-bottom: 16px; text-align: left; }
  .recovery-select-head p { font-size: 14.5px; }
  .recovery-card.is-selected { transform: scale(1.015); }
}

@media (prefers-reduced-motion: reduce) {
  .recovery-card {
    animation: none;
    opacity: 1;
    transition: border-color .2s ease, box-shadow .2s ease;
  }
  .recovery-card.is-selected { transform: none; }
  .recovery-card-extra {
    transition: none;
  }
  .recovery-card.is-selected .recovery-card-pick:not(:disabled):hover {
    transform: none;
  }
}

/* ---------- ?????? ?? ???????? ---------- */
.recovery-home {
  --rh-sage: #2f5d45;
  --rh-sage-soft: #dcecc8;
  --rh-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  margin: 0 0 18px;
  padding: 22px 18px 18px;
  border-radius: var(--rh-radius);
  border: 1px solid color-mix(in srgb, var(--line) 55%, var(--primary) 45%);
  background:
    radial-gradient(120% 90% at 50% -20%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 58%),
    radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--primary-soft) 55%, transparent), transparent 55%),
    color-mix(in srgb, var(--surface) 78%, #ffdcc4 22%);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.recovery-home--gentle {
  --rh-sage: #2f5d45;
  --rh-sage-soft: #dcecc8;
  --rh-radius: 26px;
}
.recovery-home--solid {
  --rh-sage: #254a38;
  --rh-sage-soft: #d4e6c0;
  --rh-radius: 18px;
  background:
    radial-gradient(110% 80% at 50% -15%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%),
    color-mix(in srgb, var(--surface) 86%, #f0c9a8 14%);
}
:root[data-theme="dark"] .recovery-home--gentle {
  --rh-sage: #f0c14b;
  --rh-sage-soft: #2a3a55;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(240, 193, 75, .14), transparent 58%),
    color-mix(in srgb, var(--surface) 92%, #1a2a42 8%);
}
:root[data-theme="dark"] .recovery-home--solid {
  --rh-sage: #efc14a;
  --rh-sage-soft: #24344d;
  background: color-mix(in srgb, var(--surface) 94%, #0f1c30 6%);
}

.recovery-home-greet {
  margin: 0;
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
  max-width: 100%;
}
.recovery-home--gentle .recovery-home-greet { font-weight: 600; }
.recovery-home-soft {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 36em;
}
.recovery-home-art {
  width: min(148px, 42vw);
  height: min(148px, 42vw);
  margin: 4px 0 8px;
  display: grid;
  place-items: center;
  color: var(--rh-sage);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 255, 255, .5), transparent 55%),
    color-mix(in srgb, var(--rh-sage-soft) 75%, transparent);
}
.recovery-home--solid .recovery-home-art {
  border-radius: 28px;
  background: color-mix(in srgb, var(--rh-sage-soft) 55%, var(--surface));
}
.recovery-home-art svg {
  width: 72%;
  height: 72%;
  display: block;
}
.recovery-home-name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}
.recovery-home-plant {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary-d);
}
.recovery-home-stage {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.recovery-home-stage-desc {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 32em;
}
.practice-today-next {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary-d);
}
.practice-next-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-d);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}
.recovery-home-msg {
  margin: 4px 0 12px;
  font-size: 15.5px;
  line-height: 1.45;
  color: color-mix(in srgb, var(--rh-sage) 70%, var(--ink));
  font-weight: 600;
  max-width: 28em;
}
.recovery-home--gentle .recovery-home-msg {
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 500;
}

.practice-today {
  width: 100%;
  max-width: 360px;
  margin: 0 0 14px;
  padding: 12px 12px 10px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, var(--accent) 30%);
  background: color-mix(in srgb, var(--surface) 82%, var(--accent-soft) 18%);
  text-align: left;
  box-sizing: border-box;
}
.practice-today-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.practice-today-guide {
  border: none;
  background: transparent;
  color: var(--primary-d);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
}
.practice-today-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.practice-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--btn-edge-cream) 45%, var(--line));
  background: var(--btn-face-cream);
  color: var(--ink-soft);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--btn-shine), 0 2px 0 var(--btn-edge-cream);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.practice-chip:hover { filter: brightness(1.03); transform: translateY(-1px); }
.practice-chip:active { transform: translateY(1px); box-shadow: inset 0 1px 3px rgba(7,21,40,.1), 0 0 0 transparent; }
.practice-chip i {
  font-style: normal;
  color: var(--ink-faint);
}
.practice-chip.is-done {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
  background: var(--btn-face-soft);
  color: var(--primary-d);
  box-shadow: var(--btn-shine), 0 2px 0 color-mix(in srgb, var(--btn-edge-soft) 70%, var(--btn-edge-cream));
}
.practice-chip.is-done i { color: var(--primary-d); }
.practice-today-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-faint);
}

.practice-guide-list { display: grid; gap: 10px; }
.practice-guide-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.practice-guide-item.is-done {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
  background: var(--primary-soft);
}
.practice-guide-num {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--primary-d);
}
.practice-guide-item b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.practice-guide-item p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.practice-guide-state {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-faint);
}
.practice-guide-item.is-done .practice-guide-state { color: var(--primary-d); }
.practice-guide-ol {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.55;
  color: var(--ink);
}

.recovery-plant-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
  padding: 8px 8px 24px;
}
.recovery-plant-hero-art {
  width: min(180px, 48vw);
  height: min(180px, 48vw);
  margin: 8px 0;
}
.recovery-plant-hero-note {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34em;
}

.recovery-home-care {
  width: 100%;
  max-width: 320px;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--btn-edge-navy) 60%, transparent);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14.5px;
  color: #fff8ef;
  background: var(--btn-face-navy);
  box-shadow:
    var(--btn-shine-dark),
    0 4px 0 var(--btn-edge-navy),
    0 10px 22px -8px rgba(3, 13, 28, .45);
  transition: transform .12s ease, box-shadow .14s ease, filter .14s ease;
}
.recovery-home--solid .recovery-home-care {
  border-radius: 14px;
}
.recovery-home-care:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    var(--btn-shine-dark),
    0 5px 0 var(--btn-edge-navy),
    0 12px 26px -8px rgba(3, 13, 28, .5);
}
.recovery-home-care:active {
  transform: translateY(3px);
  box-shadow: inset 0 3px 6px rgba(0,0,0,.28), 0 0 0 var(--btn-edge-navy);
}

.recovery-care-list {
  display: grid;
  gap: 8px;
}
.recovery-care-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
.recovery-care-item b {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
}
.recovery-care-item span {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.recovery-care-item:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  background: var(--primary-soft);
}
.recovery-care-item.is-done {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
  background: color-mix(in srgb, var(--primary-soft) 70%, var(--surface));
}

@media (max-width: 520px) {
  .recovery-home {
    padding: 18px 14px 14px;
    margin-bottom: 14px;
  }
  .recovery-home-msg { font-size: 15px; }
  .recovery-home--gentle .recovery-home-msg { font-size: 19px; }
  .recovery-home-care { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .recovery-home-care:hover { filter: none; }
}

/* ---------- Premium-light SVG motion ??? ???????? ---------- */
.recovery-home-art,
.recovery-card-art {
  position: relative;
  transition: transform .2s ease;
  will-change: auto;
}
.recovery-home-art.rs-press,
.recovery-card-art.rs-press {
  transform: scale(.97);
}
.recovery-home-art svg.rs-svg,
.recovery-card-art svg.rs-svg {
  width: 72%;
  height: 72%;
  overflow: visible;
  transform-origin: 50% 78%;
}
.recovery-card-art svg.rs-svg {
  width: 54px;
  height: 54px;
}

.rs-glow-orb {
  opacity: 0;
  pointer-events: none;
}
.rs-svg[data-stage="1"] .rs-glow-orb,
.rs-svg[data-stage="2"] .rs-glow-orb { opacity: .045; }
.rs-svg[data-stage="3"] .rs-glow-orb,
.rs-svg[data-stage="4"] .rs-glow-orb { opacity: .07; }
.rs-svg[data-stage="5"] .rs-glow-orb { opacity: .1; }
.rs-svg[data-stage="6"] .rs-glow-orb { opacity: .13; }

.rs-svg--gentle .rs-solid-only { display: none; }

/* ????? ????? ?? ??????. transform ? ????????? ??? SVG ?? ????????, ??? ?????? translate/scale */
.rs-layer {
  opacity: 0;
  transform: translateY(5px) scale(0.93);
  transform-origin: center bottom;
  transform-box: fill-box;
  transition:
    opacity 1.5s cubic-bezier(.22, 1, .36, 1),
    transform 1.55s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.rs-svg.rs-stage-up .rs-layer {
  transition-duration: 1.65s, 1.7s;
}

.rs-svg[data-stage="1"] .rs-need-1,
.rs-svg[data-stage="2"] .rs-need-1,
.rs-svg[data-stage="2"] .rs-need-2,
.rs-svg[data-stage="3"] .rs-need-1,
.rs-svg[data-stage="3"] .rs-need-2,
.rs-svg[data-stage="3"] .rs-need-3,
.rs-svg[data-stage="4"] .rs-need-1,
.rs-svg[data-stage="4"] .rs-need-2,
.rs-svg[data-stage="4"] .rs-need-3,
.rs-svg[data-stage="4"] .rs-need-4,
.rs-svg[data-stage="5"] .rs-need-1,
.rs-svg[data-stage="5"] .rs-need-2,
.rs-svg[data-stage="5"] .rs-need-3,
.rs-svg[data-stage="5"] .rs-need-4,
.rs-svg[data-stage="5"] .rs-need-5,
.rs-svg[data-stage="6"] .rs-need-1,
.rs-svg[data-stage="6"] .rs-need-2,
.rs-svg[data-stage="6"] .rs-need-3,
.rs-svg[data-stage="6"] .rs-need-4,
.rs-svg[data-stage="6"] .rs-need-5,
.rs-svg[data-stage="6"] .rs-need-6 {
  opacity: 1 !important;
  transform: none;
}

/* ????????? ??? ???? ? .rs-anim (IntersectionObserver / low-power) */
.rs-svg.rs-anim {
  animation: rs-breathe 5.2s ease-in-out infinite;
}
.rs-svg--gentle.rs-anim .rs-sway {
  animation: rs-sway 6.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center bottom;
}
.rs-svg--gentle.rs-anim .rs-sway-slow {
  animation: rs-sway 7.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center bottom;
}
.rs-svg--solid.rs-anim .rs-sway-min {
  animation: rs-sway-min 8.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center bottom;
}
.rs-svg.rs-anim .rs-glow-orb {
  animation: rs-glow 6s ease-in-out infinite;
}
.rs-svg--solid.rs-anim .rs-glow-orb {
  animation: rs-glow-solid 7.2s ease-in-out infinite;
}
.rs-svg.rs-stage-up .rs-petal-pop,
.rs-svg.rs-stage-up .rs-unfold,
.rs-svg.rs-stage-up .rs-branch-new {
  animation: rs-grow-in 1.6s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes rs-breathe {
  0%, 100% { scale: 1; }
  50% { scale: 1.018; }
}
@keyframes rs-sway {
  0%, 100% { rotate: -1.4deg; }
  50% { rotate: 1.6deg; }
}
@keyframes rs-sway-min {
  0%, 100% { rotate: -0.55deg; }
  50% { rotate: 0.65deg; }
}
@keyframes rs-glow {
  0%, 100% { opacity: .05; }
  50% { opacity: .14; }
}
@keyframes rs-glow-solid {
  0%, 100% { opacity: .04; }
  50% { opacity: .11; }
}
@keyframes rs-grow-in {
  from { opacity: 0; translate: 0 6px; scale: .9; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

/* ???????? ???? ????? ???????? */
.rs-particles {
  position: absolute;
  inset: 12% 18% 28%;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}
.rs-particles i {
  position: absolute;
  left: 50%;
  bottom: 20%;
  width: 5px;
  height: 5px;
  margin-left: -2px;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 55%, #fff);
  opacity: 0;
  animation: rs-particle var(--rs-dur, 1s) ease-out var(--rs-delay, 0ms) forwards;
  transform: translateX(var(--rs-px, 0));
}
.recovery-home--solid .rs-particles i {
  border-radius: 2px;
  width: 4px;
  height: 4px;
  background: color-mix(in srgb, currentColor 70%, #c5d0c8);
}
@keyframes rs-particle {
  0% { opacity: 0; transform: translate(var(--rs-px, 0), 8px) scale(.6); }
  18% { opacity: .55; }
  100% { opacity: 0; transform: translate(var(--rs-px, 0), -36px) scale(1); }
}

@media (max-width: 520px) {
  .rs-svg.rs-anim { animation-duration: 6s; }
  .rs-svg--gentle.rs-anim .rs-sway { animation-duration: 7.2s; }
  .rs-particles i { width: 4px; height: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .rs-svg.rs-anim,
  .rs-svg.rs-anim .rs-sway,
  .rs-svg.rs-anim .rs-sway-slow,
  .rs-svg.rs-anim .rs-sway-min,
  .rs-svg.rs-anim .rs-glow-orb,
  .rs-svg.rs-stage-up .rs-petal-pop,
  .rs-svg.rs-stage-up .rs-unfold,
  .rs-svg.rs-stage-up .rs-branch-new {
    animation: none !important;
  }
  .rs-layer {
    transition: none !important;
    transform: none !important;
  }
  .rs-particles { display: none !important; }
  .recovery-home-art.rs-press,
  .recovery-card-art.rs-press { transform: none; }
}


/* ---------- FAQ / ?????? ---------- */
.faq-section-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.faq-rules-list {
  margin: 0;
  padding-left: 1.15em;
  line-height: 1.55;
  color: var(--ink-soft);
}
.faq-rules-list li { margin: 0 0 8px; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.faq-item:first-child { border-top: none; padding-top: 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  color: var(--primary-d);
  font-weight: 700;
}
.faq-item[open] summary::before { content: "?"; }
.faq-item p {
  margin: 8px 0 0 1.1em;
  line-height: 1.55;
  color: var(--ink-soft);
  font-size: 14px;
}
.faq-feedback .field select,
.faq-feedback .field textarea {
  width: 100%;
}
.admin-feedback-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.admin-feedback-row:last-child { border-bottom: none; }
.admin-feedback-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.admin-feedback-msg {
  margin: 0 0 6px;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Domain migration notice (old *.vercel.app hosts) */
.domain-move {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--ink, #0a2248) 48%, transparent);
  backdrop-filter: blur(4px);
}
.domain-move.hidden { display: none !important; }
.domain-move-card {
  width: min(420px, 100%);
  padding: 22px 20px 18px;
  border-radius: 18px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #d9e2ef);
  box-shadow: 0 24px 60px -28px rgba(7, 21, 40, .45);
  text-align: center;
}
.domain-move-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-faint, #7a8aa0);
}
.domain-move-card h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 5vw, 24px);
  line-height: 1.25;
  color: var(--primary-d, #0a2248);
}
.domain-move-text,
.domain-move-note {
  margin: 0;
  color: var(--ink-soft, #4a5d73);
  line-height: 1.5;
  font-size: 14.5px;
}
.domain-move-url {
  margin: 12px 0;
  font-family: var(--font-hand, Caveat, cursive);
  font-size: 34px;
  font-weight: 700;
  color: var(--primary-d, #0a2248);
  line-height: 1;
}
.domain-move-note { margin-top: 8px; font-size: 13px; color: var(--ink-faint, #7a8aa0); }
.domain-move-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.domain-move-actions .btn { width: 100%; justify-content: center; }

/* Public SEO pages (/about, /faq, /privacy) */
.public-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--primary, #2f6fed) 12%, transparent), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, color-mix(in srgb, #6aa88a 14%, transparent), transparent 55%),
    var(--bg, #f4f7fb);
  color: var(--ink, #142033);
  font-family: var(--font, Comfortaa, system-ui, sans-serif);
}
.public-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 18px 8px;
}
.public-brand {
  font-family: var(--font-hand, Caveat, cursive);
  font-size: 34px;
  font-weight: 700;
  color: var(--primary-d, #0a2248);
  text-decoration: none;
}
.public-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
}
.public-nav a {
  color: var(--ink-soft, #4a5d73);
  text-decoration: none;
}
.public-nav a[aria-current="page"] { color: var(--primary-d, #0a2248); }
.public-nav-cta {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary, #2f6fed);
  color: #fff !important;
}
.public-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 18px 40px;
}
.public-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-faint, #7a8aa0);
}
.public-main h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.15;
  color: var(--primary-d, #0a2248);
}
.public-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink, #142033);
  margin: 0 0 12px;
}
.public-main > p,
.public-section p {
  margin: 0 0 12px;
  line-height: 1.6;
  color: var(--ink-soft, #4a5d73);
}
.public-section { margin: 22px 0; }
.public-section h2 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--primary-d, #0a2248);
}
.public-points,
.public-rules {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.public-points li,
.public-rules li {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #d9e2ef);
  line-height: 1.45;
  color: var(--ink-soft, #4a5d73);
  font-size: 14.5px;
}
.public-note {
  margin: 16px 0 !important;
  font-size: 13px !important;
  color: var(--ink-faint, #7a8aa0) !important;
}
.public-faq {
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #d9e2ef);
}
.public-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary-d, #0a2248);
}
.public-faq p { margin: 8px 0 0; }
.public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.public-foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 18px max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 13px;
  color: var(--ink-faint, #7a8aa0);
}
.public-foot a { color: inherit; }

.blog-list {
  list-style: none;
  margin: 20px 0 8px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.blog-card {
  display: grid;
  gap: 6px;
  padding: 16px 16px;
  border-radius: 14px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #d9e2ef);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.blog-card:hover {
  border-color: color-mix(in srgb, var(--primary, #2f6fed) 45%, var(--line, #d9e2ef));
  transform: translateY(-1px);
}
.blog-card-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-faint, #7a8aa0);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.blog-card strong {
  font-size: 17px;
  color: var(--primary-d, #0a2248);
}
.blog-card span:last-child {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft, #4a5d73);
}
.public-article .public-eyebrow a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
