:root {
  color-scheme: light;
  --page: #fbf7ff;
  --page-2: #fff4f8;
  --surface: #ffffff;
  --surface-2: #f5f1fb;
  --surface-3: #ece6f6;
  --ink: #1d1530;
  --ink-2: #4d4463;
  --muted: #7e7593;
  --hairline: #ebe4f5;
  --baseline: #cfc6df;
  --ring: rgba(60, 30, 110, 0.08);
  --shadow: 0 1px 2px rgba(40, 20, 80, .05), 0 10px 30px rgba(80, 40, 160, .08);
  --shadow-lift: 0 2px 4px rgba(40, 20, 80, .06), 0 18px 40px rgba(80, 40, 160, .14);

  /* Charts use the validated categorical pair and the fixed status colors. */
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --good: #0ca30c;
  --good-ink: #067a06;
  --good-soft: #e3f7e3;
  --critical: #d03b3b;
  --critical-soft: #fde8e8;
  --warning: #fab219;
  --open: #cfc6df;

  /* One color pair per area; the page reads them through --a1 / --a2. */
  --graphs-1: #7c5cff;  --graphs-2: #c86bff;
  --tasks-1: #3a86ff;   --tasks-2: #2ec4b6;
  --budgets-1: #10b981; --budgets-2: #a3d93b;
  --plans-1: #ff8a00;   --plans-2: #ff4f6d;   --plans-ink: #a34700;
  --journal-1: #ff4f9a; --journal-2: #ffa94d;
  --tarot-1: #5b2bd6;   --tarot-2: #d63fa8;
  --challenges-1: #14b8a6; --challenges-2: #6366f1;
  --events-1: #d946ef;  --events-2: #f97316;

  --radius: 18px;
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #130f1f;
    --page-2: #1a1226;
    --surface: #1f1a2f;
    --surface-2: #2a2340;
    --surface-3: #352c4f;
    --ink: #f4f0ff;
    --ink-2: #cbc2e2;
    --muted: #9a90b5;
    --hairline: #312a47;
    --baseline: #4a4166;
    --ring: rgba(255, 255, 255, 0.07);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
    --shadow-lift: 0 2px 4px rgba(0,0,0,.5), 0 18px 40px rgba(0,0,0,.45);
    --series-1: #3987e5;
    --series-2: #d95926;
    --good-ink: #2fd12f;
    --good-soft: #163a1c;
    --critical-soft: #3e1c25;
    --open: #4a4166;
    --plans-ink: #ffb35c;
  }
}

body[data-area="graphs"]  { --a1: var(--graphs-1);  --a2: var(--graphs-2); }
body[data-area="tasks"]   { --a1: var(--tasks-1);   --a2: var(--tasks-2); }
body[data-area="budgets"] { --a1: var(--budgets-1); --a2: var(--budgets-2); }
body[data-area="plans"]   { --a1: var(--plans-1);   --a2: var(--plans-2); }
body[data-area="journal"] { --a1: var(--journal-1); --a2: var(--journal-2); }
body[data-area="lifestyle"]   { --a1: var(--tarot-1);   --a2: var(--tarot-2); }
body[data-area="events"]  { --a1: var(--events-1);  --a2: var(--events-2); }
body[data-area="settings"]{ --a1: #6b6385;          --a2: #9a90b5; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(1200px 600px at 100% -10%, color-mix(in srgb, var(--a2) 14%, transparent), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, color-mix(in srgb, var(--a1) 10%, transparent), transparent 60%),
    linear-gradient(var(--page), var(--page-2));
  background-attachment: fixed;
  color: var(--ink); font-size: 14px; line-height: 1.5;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 750; }
h3 { font-size: 14px; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--a1) 60%, transparent); outline-offset: 2px; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 264px 1fr; height: 100vh; }
.sidebar {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column; padding: 18px 14px; gap: 14px; overflow-y: auto;
}
main { overflow-y: auto; padding: 26px 34px 72px; outline: none; }
.page { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; padding: 2px 6px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 10px; color: #fff; display: grid; place-items: center; font-size: 16px;
  background: linear-gradient(135deg, var(--graphs-1), var(--journal-1));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--journal-1) 35%, transparent);
}

/* Area tabs: six colorful tiles. */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.area-tab {
  --c1: var(--graphs-1); --c2: var(--graphs-2);
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 7px;
  border-radius: 14px; text-decoration: none; font-size: 12px; font-weight: 700; color: var(--ink-2);
  background: color-mix(in srgb, var(--c1) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c1) 14%, transparent);
  transition: transform .12s ease, box-shadow .12s ease;
}
.area-tab .emoji { font-size: 20px; line-height: 1.1; }
.area-tab:hover { transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--c1) 22%, transparent); }
.area-tab.active { background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; border-color: transparent; box-shadow: 0 6px 18px color-mix(in srgb, var(--c1) 40%, transparent); }
.area-tab[data-area="tasks"]   { --c1: var(--tasks-1);   --c2: var(--tasks-2); }
.area-tab[data-area="budgets"] { --c1: var(--budgets-1); --c2: var(--budgets-2); }
.area-tab[data-area="plans"]   { --c1: var(--plans-1);   --c2: var(--plans-2); }
.area-tab[data-area="journal"] { --c1: var(--journal-1); --c2: var(--journal-2); }
.area-tab[data-area="lifestyle"]   { --c1: var(--tarot-1);   --c2: var(--tarot-2); }
.area-tab[data-area="events"]  { --c1: var(--events-1);  --c2: var(--events-2); }

.search input { width: 100%; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface); }

nav#nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-section { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 8px 4px; display: flex; align-items: center; justify-content: space-between; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; text-decoration: none; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; color: var(--ink-2); font-weight: 550; }
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.active { background: color-mix(in srgb, var(--a1) 13%, var(--surface)); color: var(--ink); font-weight: 700; }
.nav-icon { width: 20px; text-align: center; flex: none; }
.nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav-count.bad { color: #fff; background: var(--critical); border-radius: 999px; padding: 0 7px; font-weight: 700; }
.nav-hint { color: var(--muted); font-size: 13px; padding: 4px 10px; }
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.sidebar-foot { border-top: 1px solid var(--hairline); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.icon-btn { border: 0; background: none; cursor: pointer; color: var(--muted); border-radius: 8px; padding: 2px 8px; font-size: 16px; line-height: 1.2; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.add-btn { background: color-mix(in srgb, var(--a1) 16%, var(--surface)); color: var(--ink); font-weight: 800; width: 26px; height: 26px; padding: 0; border-radius: 8px; display: grid; place-items: center; }
.add-btn:hover { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; }

/* ---------- hero banner at the top of each page ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 24px 28px; color: #fff;
  background: linear-gradient(120deg, var(--a1), var(--a2));
  box-shadow: 0 14px 36px color-mix(in srgb, var(--a1) 30%, transparent);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.14); pointer-events: none; }
.hero::before { width: 220px; height: 220px; right: -60px; top: -90px; }
.hero::after { width: 140px; height: 140px; right: 140px; bottom: -80px; background: rgba(255,255,255,.09); }
.hero > * { position: relative; }
.hero .hero-emoji { font-size: 40px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,.15)); }
.hero .hero-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.hero .sub { opacity: .92; margin-top: 4px; max-width: 640px; white-space: pre-wrap; }
.hero .chips { margin-top: 10px; }
.hero .chip { background: rgba(255,255,255,.2); color: #fff; }
/* Banner buttons sit on a bright gradient in both themes, so their ink is fixed dark. */
.hero .btn { background: #fff; color: #1d1530; border-color: transparent; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.hero .btn.ghost { background: rgba(255,255,255,.18); color: #fff; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- buttons and inputs ---------- */
.btn { border: 1px solid var(--hairline); background: var(--surface); padding: 8px 15px; border-radius: 12px; cursor: pointer; font-weight: 700; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: transform .1s ease, box-shadow .1s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: none; }
.btn.primary { background: linear-gradient(135deg, var(--a1), var(--a2)); border-color: transparent; color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--a1) 32%, transparent); }
.btn.danger { color: var(--critical); }
.btn.good { background: var(--good); color: #fff; border-color: transparent; }
.btn.small { padding: 4px 11px; font-size: 13px; border-radius: 10px; }

.seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 9px; cursor: pointer; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 0 0 1px var(--ring); }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea, .input { padding: 9px 11px; border-radius: 11px; border: 1px solid var(--hairline); background: var(--surface); width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 500; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--a1); }

/* ---------- cards ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head .meta, .meta { color: var(--muted); font-size: 12px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; }
.grid-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.tile { --t: var(--a1); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; position: relative; overflow: hidden; }
.tile::after { content: ""; position: absolute; inset: auto -20px -30px auto; width: 80px; height: 80px; border-radius: 50%; background: color-mix(in srgb, var(--t) 12%, transparent); }
.tile .label { font-size: 12px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.tile .value { font-size: 30px; font-weight: 800; margin-top: 2px; letter-spacing: -.01em; }
.tile.bad { --t: var(--critical); } .tile.bad .value { color: var(--critical); }
.tile.good { --t: var(--good); } .tile.good .value { color: var(--good-ink); }
.t1 { --t: #3a86ff; } .t2 { --t: #ff9f1c; } .t3 { --t: #2ec4b6; } .t4 { --t: #c86bff; }

.chip { font-size: 12px; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; padding: 2px 9px; display: inline-flex; align-items: center; gap: 5px; font-weight: 600; white-space: nowrap; }
.chip.bad { color: var(--critical); background: var(--critical-soft); }
.chip.good { color: var(--good-ink); background: var(--good-soft); }
.chip.today { color: #fff; background: linear-gradient(135deg, var(--tasks-1), var(--tasks-2)); }
.chip.money { color: #0b7a55; background: #dff7ee; }
.chip .dot { width: 8px; height: 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.empty .big { font-size: 34px; display: block; margin-bottom: 6px; }
.empty strong { display: block; color: var(--ink-2); margin-bottom: 4px; font-size: 15px; }
.banner { border-radius: var(--radius); padding: 14px 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--good-soft); color: var(--good-ink); font-weight: 600; }
.banner .spacer { flex: 1; }

/* ---------- charts ---------- */
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--hairline); stroke-width: 1; }
.chart .axis { stroke: var(--baseline); stroke-width: 1; }
.chart text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: var(--surface-2); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.statusbar { display: flex; gap: 2px; height: 16px; border-radius: 6px; overflow: hidden; background: var(--surface-2); margin: 6px 0 14px; }
.statusbar div { min-width: 3px; }
.status-legend { display: flex; flex-direction: column; gap: 8px; }
.status-legend div { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.status-legend b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.status-icon { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; font-weight: 800; flex: none; }
.empty-chart { color: var(--muted); font-size: 13px; padding: 30px 0; text-align: center; }
#tooltip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: var(--surface); padding: 8px 11px; border-radius: 10px; font-size: 12px; box-shadow: var(--shadow-lift); min-width: 130px; }
#tooltip b { display: block; margin-bottom: 4px; }
#tooltip .tt-row { display: flex; align-items: center; gap: 6px; }
#tooltip .tt-row span:last-child { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }

.progress { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; display: flex; gap: 2px; }
.progress div { height: 100%; border-radius: 6px; }

/* ---------- goals ---------- */
.goal { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--hairline); text-decoration: none; }
.goal:first-child { border-top: 0; padding-top: 0; }
.goal-top { display: flex; align-items: center; gap: 8px; }
.goal-top .name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goal-text { color: var(--ink-2); font-size: 13px; }
.goal-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); gap: 8px; }
.countdown { text-align: right; }
.countdown .num { font-size: 30px; font-weight: 800; display: block; line-height: 1.1; }
.countdown .unit { opacity: .85; font-size: 12px; }

/* ---------- items ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.toolbar input[type=search], .toolbar input[type=date] { padding: 7px 11px; border-radius: 11px; border: 1px solid var(--hairline); background: var(--surface); }
.toolbar input[type=search] { min-width: 200px; }
.quick-add { display: flex; gap: 8px; align-items: center; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; flex-wrap: wrap; border: 2px solid color-mix(in srgb, var(--a1) 18%, transparent); }
.quick-add input[type=text] { flex: 1; min-width: 200px; border: 0; background: none; padding: 7px 6px; outline: none; font-size: 15px; }
.quick-add input[type=date], .quick-add input[type=number] { border: 1px solid var(--hairline); background: var(--surface); border-radius: 10px; padding: 6px 8px; color: var(--ink-2); }
.quick-add input[type=number] { width: 110px; }

.list { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list.flat { box-shadow: none; border-radius: 0; background: none; }
.item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--hairline); cursor: pointer; }
.list.flat .item { padding: 10px 2px; }
.item:first-child { border-top: 0; }
.item:hover { background: color-mix(in srgb, var(--a1) 5%, var(--surface)); }
.item .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--baseline); background: none; flex: none; cursor: pointer; display: grid; place-items: center; padding: 0; color: transparent; font-size: 12px; font-weight: 800; transition: transform .1s ease; }
.item .tick:hover { border-color: var(--good); color: var(--good); transform: scale(1.1); }
.item.done .tick { background: var(--good); border-color: var(--good); color: #fff; }
.item.done .item-title { color: var(--muted); text-decoration: line-through; }
.kind-icon { width: 22px; height: 22px; flex: none; display: grid; place-items: center; font-size: 16px; }
.item-main { flex: 1; min-width: 0; }
.item-title { font-weight: 650; overflow-wrap: anywhere; }
.item-body { color: var(--ink-2); font-size: 13px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.item .chips { margin-top: 6px; }

/* ---------- budgets ---------- */
.budget-card { display: flex; flex-direction: column; gap: 10px; border-top: 5px solid var(--c, var(--a1)); text-decoration: none; }
.budget-top { display: flex; align-items: center; gap: 8px; }
.budget-top .name { font-weight: 750; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.money-big { font-size: 24px; font-weight: 800; }
.money-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); gap: 8px; flex-wrap: wrap; }
.money-row b { color: var(--ink); }

/* ---------- plans ---------- */
.plan-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; border-top: 5px solid var(--plans-1); }
.plan-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.plan-card .leader, .challenge-card .leader { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.score { --h: 60; display: inline-grid; place-items: center; min-width: 38px; height: 28px; padding: 0 8px; border-radius: 9px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: hsl(var(--h) 80% 88%); color: hsl(var(--h) 85% 24%); }
.score.none { background: var(--surface-2); color: var(--muted); }
.score.big { min-width: 64px; height: 44px; font-size: 20px; border-radius: 13px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .score { background: hsl(var(--h) 45% 24%); color: hsl(var(--h) 85% 78%); }
}

.ratings { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rating-chip { display: inline-flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--plans-1) 12%, var(--surface)); border-radius: 999px; padding: 4px 6px 4px 12px; font-weight: 700; font-size: 13px; }
.rating-chip .weight { font-size: 11px; color: var(--muted); font-weight: 600; }
.rating-add { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rating-add input, .rating-add select { padding: 6px 10px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--surface); }

.compare { width: 100%; border-collapse: separate; border-spacing: 6px; }
.compare-wrap { overflow-x: auto; }
.compare th, .compare td { text-align: center; padding: 6px 8px; }
.compare th { font-size: 13px; font-weight: 800; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.compare td.cell { border-radius: 10px; }
.compare select { border: 0; background: transparent; font-weight: 800; font-size: 15px; cursor: pointer; color: inherit; text-align: center; padding: 3px; }
.compare tr.total td { padding-top: 12px; }
.compare th.option-col { border-top: 5px solid var(--c); border-radius: 10px 10px 0 0; background: color-mix(in srgb, var(--c) 10%, transparent); }

.option-card { display: flex; flex-direction: column; gap: 14px; border-top: 6px solid var(--c, var(--plans-1)); }
.option-card.chosen { box-shadow: 0 0 0 3px var(--good), var(--shadow-lift); }
.option-head { display: flex; align-items: center; gap: 10px; }
.option-head h2 { flex: 1; font-size: 18px; cursor: pointer; }
.option-section h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.mini-list { display: flex; flex-direction: column; gap: 4px; }
.mini-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.mini-item:hover { background: var(--surface-3); }
.mini-item .t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mini-item .x { opacity: .5; }
.mini-item .x:hover { opacity: 1; }
.point { display: flex; align-items: flex-start; gap: 8px; padding: 5px 8px; border-radius: 10px; }
.point.pro { background: var(--good-soft); }
.point.con { background: var(--critical-soft); }
.point .sign { font-weight: 900; width: 14px; flex: none; }
.point.pro .sign { color: var(--good-ink); }
.point.con .sign { color: var(--critical); }
.point .t { flex: 1; }
.inline-add { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.inline-add.item-adder input:not([type=number]) { flex: 1 1 100%; }
.inline-add.item-adder select { flex: 0 0 auto; }
.inline-add.item-adder input[type=number] { flex: 1 1 80px; }
.inline-add input { flex: 1; min-width: 0; padding: 6px 10px; border-radius: 10px; border: 1px dashed var(--baseline); background: transparent; }
.inline-add input[type=number] { flex: 0 0 90px; }
.inline-add select { padding: 6px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--surface); }
.option-card textarea { width: 100%; min-height: 70px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--surface); resize: vertical; }
.add-option { border: 2px dashed color-mix(in srgb, var(--plans-1) 40%, transparent); background: color-mix(in srgb, var(--plans-1) 5%, transparent); display: grid; place-items: center; min-height: 220px; cursor: pointer; color: var(--plans-ink); font-weight: 800; font-size: 16px; border-radius: var(--radius); }
.add-option:hover { background: color-mix(in srgb, var(--plans-1) 10%, transparent); }

/* ---------- journal ---------- */
.journal-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar .dow { font-size: 11px; font-weight: 800; color: var(--muted); text-align: center; padding-bottom: 2px; }
.calendar button { aspect-ratio: 1; border: 0; border-radius: 10px; background: var(--surface-2); cursor: pointer; position: relative; font-size: 12px; font-weight: 650; color: var(--ink-2); padding: 0; }
.calendar button:hover { background: var(--surface-3); }
.calendar button.has { background: color-mix(in srgb, var(--journal-1) 20%, var(--surface)); color: var(--ink); }
.calendar button.today { box-shadow: inset 0 0 0 2px var(--journal-1); }
.calendar button.selected { background: linear-gradient(135deg, var(--journal-1), var(--journal-2)); color: #fff; }
.calendar button .marks { position: absolute; bottom: 1px; left: 0; right: 0; font-size: 9px; line-height: 1; }
.calendar .blank { visibility: hidden; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.moods { display: flex; gap: 4px; flex-wrap: wrap; }
.mood-btn { border: 2px solid transparent; background: var(--surface-2); border-radius: 12px; font-size: 20px; padding: 4px 7px; cursor: pointer; line-height: 1.2; }
.mood-btn[aria-pressed="true"] { border-color: var(--journal-1); background: color-mix(in srgb, var(--journal-1) 14%, var(--surface)); }
.tag-cloud { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { border: 0; cursor: pointer; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--journal-2) 18%, var(--surface)); color: var(--ink-2); }
.tag[aria-pressed="true"] { background: linear-gradient(135deg, var(--journal-1), var(--journal-2)); color: #fff; }
.day-group { display: flex; flex-direction: column; gap: 10px; }
.day-head { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink-2); margin-top: 6px; }
.day-head::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--journal-1) 35%, transparent), transparent); }
.entry { border-left: 5px solid var(--journal-1); cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: transform .1s ease; }
.entry:hover { transform: translateX(2px); }
.entry-top { display: flex; align-items: center; gap: 10px; }
.entry-top .mood { font-size: 22px; }
.entry-top h3 { font-size: 16px; flex: 1; }
.entry-body { white-space: pre-wrap; color: var(--ink-2); overflow-wrap: anywhere; }
.entry.collapsed .entry-body { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tarot-mini { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px 3px 4px; border-radius: 999px; background: linear-gradient(135deg, var(--tarot-1), var(--tarot-2)); color: #fff; text-decoration: none; }
.tarot-mini span { background: rgba(255,255,255,.22); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; }

/* ---------- tarot ---------- */
body[data-area="lifestyle"] .hero { background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.25) 0 1px, transparent 2px) 0 0/38px 38px, radial-gradient(circle at 70% 60%, rgba(255,255,255,.2) 0 1px, transparent 2px) 0 0/53px 53px, linear-gradient(120deg, #2a1065, var(--tarot-1) 50%, var(--tarot-2)); }
.tarot-stage { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; }
.tcard {
  --s1: #5b2bd6; --s2: #d63fa8;
  width: 220px; aspect-ratio: 7 / 12; border-radius: 18px; padding: 10px; flex: none;
  background: linear-gradient(160deg, var(--s1), var(--s2)); color: #fff; position: relative;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--s1) 45%, transparent), inset 0 0 0 1px rgba(255,255,255,.25);
}
.tcard .inner { height: 100%; border: 2px solid rgba(255, 230, 160, .7); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 12px 8px; text-align: center; }
.tcard .num { font-weight: 800; letter-spacing: .1em; font-size: 14px; color: #ffe7a3; }
.tcard .sym { font-size: 76px; line-height: 1; filter: drop-shadow(0 6px 12px rgba(0,0,0,.25)); }
.tcard .nm { font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: #fff7dd; }
.tcard .stars { position: absolute; inset: 0; border-radius: 18px; pointer-events: none; background: radial-gradient(circle at 15% 25%, rgba(255,255,255,.5) 0 1px, transparent 2px) 0 0/28px 28px; opacity: .5; }
.tcard.reversed .inner { transform: rotate(180deg); }
.tcard.wands { --s1: #ff6a00; --s2: #c2185b; }
.tcard.cups { --s1: #1e88e5; --s2: #26c6da; }
.tcard.swords { --s1: #455a8f; --s2: #8aa4d6; }
.tcard.pentacles { --s1: #2e7d32; --s2: #c9a227; }
.tcard.small { width: 92px; border-radius: 12px; padding: 5px; }
.tcard.small .inner { border-width: 1px; border-radius: 8px; padding: 6px 3px; }
.tcard.small .sym { font-size: 30px; }
.tcard.small .nm { font-size: 9px; letter-spacing: .02em; }
.tcard.small .num { font-size: 9px; }
.tcard.back { --s1: #2a1065; --s2: #5b2bd6; cursor: pointer; }
.tcard.back .inner { justify-content: center; gap: 12px; background: repeating-linear-gradient(45deg, rgba(255,231,163,.12) 0 2px, transparent 2px 14px), repeating-linear-gradient(-45deg, rgba(255,231,163,.12) 0 2px, transparent 2px 14px); }
.tcard.back .sym { font-size: 56px; }
.tcard.back:hover { transform: translateY(-4px) rotate(-1deg); }
.tcard { transition: transform .2s ease; }
.flip { animation: flip .7s ease-out backwards; }
@keyframes flip { 0% { transform: rotateY(90deg) scale(.9); } 100% { transform: rotateY(0) scale(1); } }

/* writing prompts and readings */
.prompt-box { border-radius: 16px; padding: 12px 16px; background: color-mix(in srgb, var(--tarot-2) 9%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--tarot-2) 40%, transparent); }
.prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 800; font-size: 13px; color: var(--tarot-2); }
.prompt-text { font-size: 17px; font-weight: 600; margin: 8px 0 2px; line-height: 1.45; }
.spread-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.spread-card { text-align: left; display: flex; flex-direction: column; gap: 6px; cursor: pointer; border: 0; font: inherit; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.spread-card:hover, .spread-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--tarot-1) 60%, transparent); }
.spread-emoji { font-size: 30px; }
.spread-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.spread-slot { display: flex; flex-direction: column; gap: 12px; }
.slot-head { display: flex; gap: 10px; align-items: center; }
.slot-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--tarot-1), var(--tarot-2)); flex: none; }
.slot-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.slot-body .orientation { font-weight: 800; color: var(--tarot-2); font-size: 13px; }
.slot-body p { margin: 6px 0 0; }
.summary-list { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.reading-row { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; flex-wrap: wrap; }
.reading-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-cards { display: flex; align-items: center; }
.mini-cards .tcard.small { width: 38px; padding: 2px; border-radius: 6px; margin-right: -10px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.mini-cards .tcard.small .inner { padding: 2px 1px; border-radius: 4px; }
.mini-cards .tcard.small .sym { font-size: 14px; }
.mini-cards .tcard.small .nm, .mini-cards .tcard.small .num { display: none; }
.mini-cards .chip { margin-left: 16px; }

/* yoga */
.yoga-why { margin-top: 10px; }
.yoga-tip { margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--theme) 12%, var(--surface)); font-weight: 600; }
.yoga-strip { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 5px; margin: 10px 0; }
.yoga-dot { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface-2); }
.yoga-dot.done { color: #fff; }
.yoga-dot.today { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--theme); }
.theme-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.yoga-theme { border: 2px solid color-mix(in srgb, var(--c) 35%, transparent); background: color-mix(in srgb, var(--c) 8%, var(--surface)); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.yoga-theme:hover { border-color: var(--c); }
.yoga-theme.on { background: var(--c); border-color: var(--c); color: #fff; cursor: default; }
.pose-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-top: 10px; }
.pose { border: 1px solid var(--hairline); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: color-mix(in srgb, var(--theme) 4%, var(--surface)); }
.pose-head { display: flex; gap: 10px; align-items: center; }
.pose-head h3 { margin: 0; font-size: 17px; }
.pose-emoji { font-size: 30px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--theme) 16%, var(--surface)); flex: none; }
.pose-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; }
.pose-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.pose-why, .pose-easier { margin: 0; font-size: 14px; }
.yoga-end { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.btn.big { font-size: 18px; padding: 14px 28px; }
.hero .play-btn { background: #fff; color: var(--theme, var(--a1)); font-weight: 800; }
.play-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: linear-gradient(120deg, color-mix(in srgb, var(--theme) 14%, var(--surface)), var(--surface)); }
.play-card > div { flex: 1 1 320px; }
.yoga-opening { font-style: italic; font-size: 17px; color: var(--ink); }
.pose-list.gentle .pose-easier { background: color-mix(in srgb, var(--theme) 14%, var(--surface)); border-radius: 12px; padding: 8px 10px; order: -1; }
.pose-list.gentle .pose-head { order: -2; }

/* music ideas */
.music-idea { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.music-idea p { margin: 0; }
.music-search { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.music-phrases { display: contents; }
.music-phrase { border: 1px solid var(--hairline); background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.music-phrase.on { border-color: var(--theme); background: color-mix(in srgb, var(--theme) 16%, var(--surface)); font-weight: 700; }
.music-apps a { color: var(--theme); font-weight: 700; }

/* the yoga player */
body.playing { overflow: hidden; }
.yoga-player { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; color: #fff;
  background: radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--theme) 60%, transparent) 0, transparent 55%), linear-gradient(150deg, color-mix(in srgb, var(--theme) 85%, #000), #1a0f3d); }
.yp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; flex-wrap: wrap; }
.yp-where { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; font-size: 15px; }
.yp-where span { opacity: .8; }
.yp-tools { display: flex; gap: 8px; align-items: center; }
.yp-toggle { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; opacity: .6; }
.yp-toggle[aria-pressed="true"] { opacity: 1; background: rgba(255,255,255,.24); }
.yp-close { background: rgba(255,255,255,.15); border: 0; color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.yp-bar { height: 5px; background: rgba(255,255,255,.18); margin: 0 24px; border-radius: 3px; overflow: hidden; }
.yp-bar-fill { display: block; height: 100%; width: 0; background: #fff; transition: width .25s linear; }
.yp-body { flex: 1; overflow: auto; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 32px; padding: 28px 48px 32px; align-items: center; max-width: 1200px; width: 100%; margin: 0 auto; }
.yp-pose { display: flex; flex-direction: column; gap: 10px; }
.yp-emoji { font-size: 72px; line-height: 1; }
.yp-phase { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: 14px; opacity: .85; }
.yp-pose h2 { font-size: clamp(32px, 5vw, 52px); margin: 0; line-height: 1.05; }
.yp-sub { display: flex; gap: 12px; flex-wrap: wrap; opacity: .85; font-size: 16px; }
.yp-hold { background: rgba(255,255,255,.18); border-radius: 999px; padding: 2px 10px; font-weight: 700; }
.yp-steps { margin: 6px 0 0; padding-left: 26px; display: flex; flex-direction: column; gap: 8px; font-size: clamp(17px, 2vw, 21px); line-height: 1.4; }
.yp-easier { opacity: .85; margin: 4px 0 0; font-size: 16px; }
.yp-easier.lead { opacity: 1; font-size: clamp(18px, 2.2vw, 22px); background: rgba(255,255,255,.14); border-radius: 14px; padding: 10px 14px; }
.yp-quote { font-style: italic; font-size: clamp(17px, 2vw, 21px); opacity: .95; margin: 2px 0 6px; }
.yoga-player.readying .yp-steps, .yoga-player.readying .yp-easier { opacity: .9; }
.yp-side { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.yp-timer { position: relative; width: min(260px, 60vw); aspect-ratio: 1; }
.yp-timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.yp-track { stroke: rgba(255,255,255,.18); }
.yp-ring { stroke: #fff; transition: stroke-dashoffset .25s linear; }
.yoga-player.readying .yp-ring { stroke: rgba(255,255,255,.6); }
.yp-clock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.yp-clock b { font-size: clamp(48px, 7vw, 72px); font-variant-numeric: tabular-nums; line-height: 1; }
.yp-clock span { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; opacity: .8; margin-top: 4px; }
.yp-controls { display: flex; gap: 14px; align-items: center; }
.yp-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 22px; cursor: pointer; }
.yp-btn.big { width: 76px; height: 76px; background: #fff; color: color-mix(in srgb, var(--theme) 80%, #000); font-size: 30px; }
.yp-btn:disabled { opacity: .35; cursor: default; }
.yp-next { font-weight: 700; opacity: .9; }
.yp-keys { font-size: 12px; opacity: .6; margin: 0; }
.yp-finish { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.yp-finish .btn:not(.primary) { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.3); }
/* On a phone the pose fills the screen and the timer and buttons sit in a
   bar along the bottom, so nothing needs scrolling mid-pose. */
@media (max-width: 760px) {
  .yp-body { display: flex; flex-direction: column; align-items: stretch; padding: 14px 16px 0; gap: 14px; }
  .yp-pose { flex: 1; gap: 8px; }
  .yp-emoji { font-size: 44px; }
  .yp-pose h2 { font-size: 30px; }
  .yp-steps { font-size: 17px; gap: 6px; }
  .yp-side { position: sticky; bottom: 0; flex-direction: row; justify-content: center; gap: 12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    margin: 0 -16px; background: rgba(10, 6, 30, .45); backdrop-filter: blur(10px); }
  .yp-timer { width: 92px; flex: none; }
  .yp-clock b { font-size: 28px; }
  .yp-clock span { font-size: 9px; letter-spacing: .08em; }
  .yp-controls { gap: 10px; }
  .yp-btn { width: 46px; height: 46px; font-size: 18px; }
  .yp-btn.big { width: 60px; height: 60px; font-size: 24px; }
  .yp-next, .yp-keys { display: none; }
  .yp-top { padding: 10px 16px; gap: 8px; }
  .yp-toggle { font-size: 12px; padding: 5px 9px; }
  .yp-bar { margin: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .yp-ring, .yp-bar-fill { transition: none; } }
.safety { max-width: 640px; }
.reading h2 { font-size: 26px; font-weight: 800; }
.reading .orientation { font-weight: 800; color: var(--tarot-2); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.reading .meaning { font-size: 17px; line-height: 1.6; margin: 12px 0; }
.reading .other { color: var(--muted); font-size: 13px; }
.kw { display: flex; gap: 6px; flex-wrap: wrap; }
.kw span { background: color-mix(in srgb, var(--tarot-1) 12%, var(--surface)); color: var(--ink); padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 650; }
.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; justify-items: center; }
.deck-grid .tcard { cursor: pointer; }
.deck-grid .tcard:hover { transform: translateY(-3px); }
.history { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; }
.history figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); font-weight: 700; cursor: pointer; }

/* ---------- dialogs ---------- */
dialog { border: 0; border-radius: 22px; padding: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lift), 0 0 0 1px var(--ring); width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 40px); }
dialog::backdrop { background: rgba(30, 10, 60, .35); backdrop-filter: blur(3px); }
dialog form { display: flex; flex-direction: column; gap: 14px; padding: 24px 26px; }
dialog h2 { font-size: 20px; }
dialog[open] { animation: rise .16s ease-out; }
@keyframes rise { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.dialog-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; flex-wrap: wrap; }
.dialog-foot .left { margin-right: auto; display: flex; gap: 8px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches label { cursor: pointer; position: relative; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { width: 28px; height: 28px; border-radius: 50%; display: block; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px transparent; }
.swatches input:checked + span { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.swatches input:focus-visible + span { outline: 3px solid var(--a1); outline-offset: 4px; }
.error-text { color: var(--critical); font-size: 13px; min-height: 1em; font-weight: 600; }
.subcard { display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); border-radius: 16px; padding: 14px 16px; }

/* ---------- settings ---------- */
.settings { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.settings .card { display: flex; flex-direction: column; gap: 14px; }
.settings p { color: var(--ink-2); }

/* ---------- toasts ---------- */
#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--ink); color: var(--surface); border-radius: 14px; padding: 11px 15px; box-shadow: var(--shadow-lift); max-width: 380px; animation: pop .2s ease-out; }
.toast b { display: block; }
.toast.error { background: var(--critical); color: #fff; }
@keyframes pop { from { transform: translateY(10px) scale(.96); opacity: 0; } }

@media (max-width: 1060px) {
  .grid-2, .grid-even, .grid-3, .journal-layout, .tarot-stage { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .areas { grid-template-columns: repeat(6, 1fr); }
  main { padding: 18px 16px 48px; }
  .hero { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- moon ---------- */
.moon-today { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; }
.moon-sky { width: 230px; height: 230px; border-radius: 24px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.35) 0 1px, transparent 2px) 0 0/31px 31px,
              radial-gradient(circle at 70% 70%, rgba(255,255,255,.25) 0 1px, transparent 2px) 0 0/47px 47px,
              linear-gradient(160deg, #1b1240, #3b1f74); }
.moon-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.moon-stat { background: color-mix(in srgb, var(--tarot-1) 10%, var(--surface)); border-radius: 14px; padding: 8px 14px; display: flex; flex-direction: column; }
.moon-stat b { font-size: 18px; }
.moon-stat span { font-size: 12px; color: var(--muted); font-weight: 600; }
.moon-chip { background: linear-gradient(135deg, #2a1065, var(--tarot-1)); color: #fff; }
.cycle-track { position: relative; height: 14px; border-radius: 8px; background: var(--surface-2); margin: 18px 10px 6px; }
.cycle-fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, #2b2545, #f3dfa2 50%, #2b2545); opacity: .85; }
.cycle-marker { position: absolute; top: 50%; transform: translate(-50%, -50%); font-size: 26px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.cycle-marks { display: flex; justify-content: space-between; padding: 0 2px; font-size: 16px; }
.moon-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.moon-cal .dow { font-size: 11px; font-weight: 800; color: var(--muted); text-align: center; }
.moon-cal .blank { visibility: hidden; }
.moon-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px 6px; border-radius: 12px; background: var(--surface-2); min-height: 66px; }
.moon-day .n { font-size: 11px; font-weight: 700; color: var(--muted); }
.moon-day .ev { font-size: 10px; font-weight: 800; color: var(--tarot-1); }
.moon-day.event { background: color-mix(in srgb, var(--tarot-1) 14%, var(--surface)); }
.moon-day.today { box-shadow: inset 0 0 0 2px var(--tarot-2); }
.moon-list { display: flex; flex-direction: column; }
.moon-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--hairline); }
.moon-row:first-child { border-top: 0; }
.moon-row .big { font-size: 26px; }
.moon-line { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; color: var(--ink-2); }
@media (max-width: 1060px) { .moon-today { grid-template-columns: 1fr; justify-items: center; } }

/* ---------- challenges ---------- */
body[data-area="challenges"] { --a1: var(--challenges-1); --a2: var(--challenges-2); }
.area-tab[data-area="challenges"] { --c1: var(--challenges-1); --c2: var(--challenges-2); }
/* Seven areas: the last tab spans the row. */
.area-tab:last-child { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 8px; padding: 7px; }
.area-tab:last-child .emoji { font-size: 17px; }

.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: var(--pc); color: #fff; font-weight: 800; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.avatar.ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--pc); }
.avatar-stack { display: flex; padding-left: 8px; }
.avatar-stack > * { margin-left: -8px; }
.avatar-stack.big { justify-content: center; gap: 18px; padding: 0; }
.avatar-stack.big > * { margin: 0; }

.photo-picker { display: flex; align-items: center; gap: 14px; }
.photo-picker img, .photo-empty { width: 120px; height: 80px; border-radius: 12px; object-fit: cover; flex: none; }
.photo-picker img.round, .photo-empty.round { width: 80px; height: 80px; border-radius: 50%; }
.photo-empty { display: grid; place-items: center; font-size: 26px; background: var(--surface-2); border: 2px dashed var(--baseline); }
.photo-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.person-card { display: flex; flex-direction: column; align-items: center; gap: 10px; border: 0; cursor: pointer; border-top: 5px solid var(--pc); font: inherit; color: inherit; }
.person-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.challenge-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; padding-top: 0; overflow: hidden; transition: transform .12s ease, box-shadow .12s ease; }
.challenge-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.challenge-band { position: relative; height: 92px; margin: 0 -20px 4px; background: var(--pattern), linear-gradient(120deg, var(--a1), var(--a2)); display: flex; align-items: flex-start; gap: 6px; padding: 12px 14px; }
.challenge-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; mix-blend-mode: luminosity; }
.theme-chip { position: relative; background: rgba(255,255,255,.9); color: #1d1530; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.theme-chip.done { background: rgba(20,20,30,.6); color: #fff; }

.hero.themed { background: var(--pattern), linear-gradient(120deg, var(--a1), var(--a2)); }
.hero-photo { width: 92px; height: 92px; border-radius: 20px; object-fit: cover; box-shadow: 0 0 0 4px rgba(255,255,255,.5); }

.winner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--a1) 14%, var(--surface)), color-mix(in srgb, var(--a2) 14%, var(--surface))); }
.winner h2 { font-size: 24px; }
.winner .prize { font-size: 17px; font-weight: 700; }
.confetti { font-size: 22px; letter-spacing: 8px; animation: pop .5s ease-out; }

.day-nav { display: flex; align-items: center; gap: 6px; }
.day-nav input { padding: 6px 10px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--surface); }
.day-nav .icon-btn:disabled { opacity: .3; cursor: default; }
.log-people { display: flex; gap: 14px; flex-wrap: wrap; }
.log-person { --pc: #999; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 14px 12px; width: 196px; border-radius: 18px; color: var(--ink);
  border: 2px dashed color-mix(in srgb, var(--pc) 45%, transparent); background: var(--surface); }
.log-avatar { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; transition: transform .12s ease; }
.log-avatar:hover { transform: scale(1.06); }
.log-person .avatar { filter: grayscale(.6); opacity: .75; }
.log-person.on { border-style: solid; border-color: var(--pc); background: color-mix(in srgb, var(--pc) 16%, var(--surface)); box-shadow: 0 6px 18px color-mix(in srgb, var(--pc) 30%, transparent); }
.log-person.on .avatar { filter: none; opacity: 1; box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--pc); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--pc) 60%, transparent); background: var(--surface); color: var(--ink); font-size: 18px; font-weight: 800; line-height: 1; cursor: pointer; padding: 0; }
.stepper button:hover:not(:disabled) { background: var(--pc); color: #fff; border-color: var(--pc); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper .count { min-width: 76px; text-align: center; font-weight: 800; font-size: 14px; }
.log-person:not(.on) .stepper .count { color: var(--muted); font-weight: 600; }
.log-note { width: 100%; resize: vertical; min-height: 44px; font-size: 13px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); }
.note-mark { position: absolute; right: 2px; bottom: 0; font-size: 10px; }
.notes-list { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; }
.note-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 4px; border: 0; border-top: 1px solid var(--hairline); background: none; text-align: left; cursor: pointer; font: inherit; color: var(--ink); white-space: pre-wrap; }
.note-row:first-child { border-top: 0; }
.note-row:hover { background: var(--surface-2); }
.note-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.chart-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.chart-filters select { padding: 6px 10px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); font-weight: 600; }
.person-toggles { display: flex; gap: 6px; flex-wrap: wrap; }
.person-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; border: 2px solid var(--hairline); background: var(--surface); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); }
.person-toggle[aria-pressed="true"] { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, var(--surface)); color: var(--ink); }
.total-bars { display: flex; flex-direction: column; gap: 10px; }
.total-bar { display: grid; grid-template-columns: 110px 1fr 70px; gap: 10px; align-items: center; font-weight: 700; }
.total-bar .who { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.total-bar .num { text-align: right; font-variant-numeric: tabular-nums; }
.board { display: flex; flex-direction: column; gap: 12px; }
.board-row { display: flex; align-items: center; gap: 12px; }
.board-row .rank { width: 28px; text-align: center; font-size: 20px; font-weight: 800; color: var(--muted); }
.board-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.board-top { display: flex; justify-content: space-between; gap: 8px; }

.ccal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.ccal .dow { font-size: 11px; font-weight: 800; color: var(--muted); text-align: center; }
.ccal .blank { visibility: hidden; }
.cday { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.cday .stripes { position: absolute; inset: 0; display: flex; }
.cday .stripes i { flex: 1; }
.cday .stripes i + i { border-left: 2px solid var(--surface); }
.cday .n { position: absolute; top: 3px; left: 5px; font-size: 11px; font-weight: 800; color: var(--ink-2); background: color-mix(in srgb, var(--surface) 80%, transparent); border-radius: 6px; padding: 0 4px; }
.cday.future { opacity: .45; cursor: default; }
.cday.today { box-shadow: inset 0 0 0 2px var(--a1); }
.cday.selected { outline: 3px solid var(--a1); outline-offset: 1px; }
.chart .end-label { fill: var(--ink-2); font-size: 12px; font-weight: 700; }

.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.theme-tile { border: 0; border-radius: 14px; padding: 10px 6px; color: #fff; font-weight: 800; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px;
  background: var(--pattern), linear-gradient(135deg, var(--a1), var(--a2)); opacity: .55; transition: opacity .12s ease, transform .12s ease; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.theme-tile .emoji { font-size: 22px; }
.theme-tile:hover { opacity: .85; }
.theme-tile.on { opacity: 1; transform: scale(1.04); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.people-pick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pick { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 2px solid var(--hairline); background: var(--surface); cursor: pointer; font: inherit; font-weight: 700; color: var(--ink-2); }
.pick.on { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 16%, var(--surface)); color: var(--ink); }
.quick-person { display: inline-flex; gap: 6px; }
.quick-person input { padding: 6px 10px; border-radius: 999px; border: 1px dashed var(--baseline); background: transparent; width: 160px; }
@media (max-width: 760px) { .theme-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- online: sign-in, circles, costs ---------- */
body[data-area="costs"] { --a1: #0ea5e9; --a2: #22c55e; }
.area-tab[data-area="costs"] { --c1: #0ea5e9; --c2: #22c55e; }
/* Seven or more areas: two columns of wide tabs. They shrink (rather than
   spill out) when the sidebar shows a scroll bar. */
.areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.area-tab { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sidebar { overflow-x: hidden; }
.area-tab, .area-tab:last-child { flex-direction: row; justify-content: flex-start; gap: 8px; padding: 8px 10px; font-size: 13px; grid-column: auto; }
.area-tab .emoji, .area-tab:last-child .emoji { font-size: 18px; }
.area-tab:last-child:nth-child(odd) { grid-column: 1 / -1; justify-content: center; }

body[data-auth="out"] .sidebar { display: none; }
body[data-auth="out"] .app { grid-template-columns: 1fr; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(440px, 100%); background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lift); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.auth-card h1 { font-size: 24px; }
.auth-card p { color: var(--ink-2); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form .btn { justify-content: center; }

.who { display: flex; flex-direction: column; gap: 8px; }
.who:empty { display: none; }
.me-chip { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; padding: 4px 8px; border-radius: 12px; }
.me-chip:hover { background: var(--surface-2); }
.switcher { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.switcher select { padding: 7px 10px; border-radius: 11px; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.circle-chip { background: color-mix(in srgb, var(--a1) 14%, var(--surface)); color: var(--ink); }
.hero .circle-chip.light { background: rgba(255,255,255,.22); color: #fff; }

.circle-list { display: flex; flex-direction: column; gap: 14px; }
.circle-row { border: 1px solid var(--hairline); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.circle-head, .member { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.circle-head .spacer, .member .spacer { flex: 1; }
.member-list { display: flex; flex-direction: column; gap: 6px; }
.member-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.account-row { border: 1px solid var(--hairline); border-radius: 16px; padding: 10px 14px; }
.account-row.off { opacity: .6; }
.account-who { display: flex; flex-direction: column; line-height: 1.25; }
.account-who small { color: var(--muted); }
input.one-time { font: 600 1.5rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-align: center; padding: 14px; margin: 8px 0; }
dialog input[readonly] { width: 100%; padding: 9px 11px; border-radius: 11px; border: 1px solid var(--hairline); background: var(--surface-2); font-family: ui-monospace, monospace; font-size: 12px; }

.scorers { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.scorers .chip { gap: 4px; }
.compare .others { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; font-size: 11px; font-weight: 700; opacity: .8; margin-top: 2px; }
.log-person.locked { opacity: .85; border-style: dotted; }
.log-person.locked .count { font-weight: 800; }
.log-note.readonly { font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-radius: 10px; padding: 6px 8px; white-space: pre-wrap; width: 100%; }

.cost-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; border-top: 5px solid #0ea5e9; transition: transform .12s ease, box-shadow .12s ease; }
.cost-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.balance { font-weight: 800; }
.balance.plus { color: var(--good-ink); }
.balance.minus { color: var(--critical); }
.transfers { display: flex; flex-direction: column; gap: 10px; }
.transfer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.transfer .arrow { font-weight: 900; color: var(--muted); }
.transfer-text { flex: 1; min-width: 160px; }
.transfer .amount { color: var(--ink); }
.expense { align-items: center; }
.expense-amount { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 16px; }
.receipt { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
details.deleted summary { cursor: pointer; color: var(--muted); font-weight: 700; margin-top: 12px; }
.split-people { display: flex; flex-direction: column; gap: 6px; }
.split-row { display: flex; align-items: center; gap: 8px; }
.split-row.off { opacity: .55; }
.split-row input[type=number] { width: 110px; padding: 6px 8px; border-radius: 9px; border: 1px solid var(--hairline); background: var(--surface); margin-left: auto; }
.split-row input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--a1); }
.split-preview { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* picking people, and tasks for someone */
.who-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-chip { border: 2px solid color-mix(in srgb, var(--pc) 35%, transparent); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 12px; font: inherit; font-weight: 650; font-size: 14px; display: inline-flex; gap: 7px; align-items: center; cursor: pointer; }
.pick-chip .dot { width: 10px; height: 10px; border-radius: 50%; }
.pick-chip.on { background: color-mix(in srgb, var(--pc) 18%, var(--surface)); border-color: var(--pc); }
.pick-chip.on::after { content: "✓"; font-weight: 800; color: var(--pc); }
.chip.for-chip.mine { background: color-mix(in srgb, var(--a1, #7c5cff) 16%, var(--surface)); color: var(--ink); font-weight: 750; }

/* challenge stakes */
.stake { gap: 10px; }
.stake-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.stake-kind { border: 2px solid var(--hairline); background: var(--surface); color: var(--ink); border-radius: 14px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.stake-kind.on { border-color: var(--a1, #7c5cff); background: color-mix(in srgb, var(--a1, #7c5cff) 12%, var(--surface)); }
.stake-kind:disabled { cursor: default; opacity: .7; }
.stake-body { display: flex; flex-direction: column; gap: 12px; border-left: 3px solid color-mix(in srgb, var(--a1, #7c5cff) 35%, transparent); padding-left: 14px; }
.stake-cost { display: flex; flex-direction: column; gap: 8px; }
.stake-result { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--hairline); }

/* IOUs */
.iou { align-items: center; }
.iou-people { display: flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 800; flex: none; }
.iou-swap { flex: none; align-self: end; }
.stake-banner { background: color-mix(in srgb, #ff8a00 14%, var(--surface)); color: var(--ink); }

/* events */
.event-list { display: flex; flex-direction: column; gap: 12px; }
.event-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.event-card.today { box-shadow: inset 0 0 0 2px var(--a1, #7c5cff), var(--shadow, none); }
.event-card.past { opacity: .7; }
.date-tile { width: 64px; border-radius: 16px; overflow: hidden; text-align: center; display: flex; flex-direction: column; background: var(--surface-2); flex: none; }
.date-tile span:first-child { background: linear-gradient(135deg, var(--a1, #7c5cff), var(--a2, #ff4f9a)); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; padding: 3px 0; }
.date-tile b { font-size: 26px; line-height: 1.15; padding-top: 4px; }
.date-tile span:last-child { font-size: 12px; color: var(--muted); padding-bottom: 6px; font-weight: 700; }
.event-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.event-head { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.event-head h3 { margin: 0; font-size: 18px; margin-right: 4px; }
.event-when { font-weight: 700; }
.event-where a { font-weight: 700; }
.event-notes { margin: 0; color: var(--ink-2); white-space: pre-wrap; }
.event-guests { display: flex; flex-direction: column; gap: 6px; }
.guest-row { display: flex; flex-wrap: wrap; gap: 6px; }
.guest { position: relative; display: inline-flex; }
.guest.no .avatar { opacity: .4; }
.guest-badge { position: absolute; right: -4px; bottom: -4px; width: 17px; height: 17px; border-radius: 50%; font-size: 10px; font-weight: 900; display: grid; place-items: center; color: #fff; background: #9a90b5; border: 2px solid var(--surface); }
.guest.going .guest-badge { background: #10b981; }
.guest.maybe .guest-badge { background: #ff8a00; }
.guest.no .guest-badge { background: #ff595e; }
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.event-actions .spacer { flex: 1; }
.rsvp { display: flex; gap: 6px; flex-wrap: wrap; }
.rsvp-btn { border: 2px solid var(--hairline); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.rsvp-btn.going.on { background: #10b981; border-color: #10b981; color: #fff; }
.rsvp-btn.maybe.on { background: #ff8a00; border-color: #ff8a00; color: #fff; }
.rsvp-btn.no.on { background: #ff595e; border-color: #ff595e; color: #fff; }
@media (max-width: 560px) { .event-card { grid-template-columns: 1fr; } .date-tile { flex-direction: row; width: auto; gap: 8px; align-items: center; } .date-tile span, .date-tile b { padding: 4px 8px !important; font-size: 14px; } }

/* yoga: any time, sessions and the builder */
.anytime { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.anytime-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.anytime-col p { margin: 0; }
.quick-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.quick-lengths { display: flex; flex-wrap: wrap; gap: 6px; }
.yp-photo { width: 160px; height: 160px; object-fit: cover; border-radius: 24px; border: 3px solid rgba(255,255,255,.5); }
.session-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.session-card { display: flex; flex-direction: column; gap: 8px; padding-top: 0; overflow: hidden; }
.session-card h3 { margin: 4px 0 0; font-size: 19px; }
.session-card p { margin: 0; }
.session-band { margin: 0 -20px 6px; height: 74px; background: linear-gradient(120deg, var(--theme), color-mix(in srgb, var(--theme) 55%, #2a1065)); display: flex; align-items: flex-end; padding: 0 20px; }
.session-emoji { font-size: 40px; transform: translateY(18px); background: var(--surface); border-radius: 18px; width: 60px; height: 60px; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.session-card .session-band + h3 { margin-top: 18px; }
.builder .card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.builder .card-head .spacer, .builder-foot .spacer { flex: 1; }
.part-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--theme); flex: none; }
.part-name { font: inherit; font-weight: 800; font-size: 18px; border: 0; border-bottom: 2px dashed var(--hairline); background: none; color: var(--ink); padding: 2px 4px; min-width: 0; width: 220px; }
.build-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.build-row, .pick-pose { display: flex; align-items: center; gap: 12px; border: 1px solid var(--hairline); border-radius: 16px; padding: 8px 12px; flex-wrap: wrap; background: color-mix(in srgb, var(--theme) 4%, var(--surface)); }
.build-name { display: flex; flex-direction: column; flex: 1 1 180px; min-width: 0; }
.build-name .meta { font-size: 13px; }
.pose-emoji.small { width: 40px; height: 40px; font-size: 24px; border-radius: 12px; overflow: hidden; }
.pose-emoji.small img { width: 100%; height: 100%; object-fit: cover; }
.time-ctl { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--hairline); border-radius: 999px; padding: 2px; }
.pose-time { font-variant-numeric: tabular-nums; font-weight: 800; min-width: 46px; text-align: center; }
.build-row .hold { min-width: 150px; }
.row-tools { display: inline-flex; gap: 2px; }
.check.small { font-size: 14px; }
input.emoji-input { width: 84px; max-width: 84px; font-size: 22px; text-align: center; }
.tag.on { outline: 2px solid var(--theme); }
.pick-list { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; overflow: auto; padding-right: 4px; }
.builder-foot { align-items: center; }
.pose-list.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.my-pose { display: flex; flex-direction: column; gap: 8px; }
.my-pose h3 { margin: 0; }
.pose-emoji img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
