:root {
  --bg: #F5F3FA;
  --surface: #FFFFFF;
  --surface-2: #ECE8F5;
  --ink: #1B1724;
  --muted: #6E6880;
  --line: #E2DDEE;
  --accent: #6C4DE6;
  --accent-ink: #FFFFFF;
  --accent-soft: #E6E0FB;
  --period: #E23D74;
  --period-2: #FF8A4C;
  --accent-2: #D94FA6;
  --fertile-2: #2E9BD6;
  --period-mid: #EC7099;
  --period-light: #F6B6CB;
  --period-soft: #FCE1EA;
  --on-period-light: #4A1026;
  --fertile: #17A67A;
  --fertile-soft: #D3F1E6;
  --ovu: #0B7453;
  --warn: #C06A12;
  --track: #E4DFEF;
  --track-past: #C6BEDA;
  --shadow: 0 1px 2px rgba(27,23,36,.05), 0 8px 24px rgba(27,23,36,.06);
  --radius: 22px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%) no-repeat fixed, var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}
body.no-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

#app {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(110px + env(safe-area-inset-bottom));
}

h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 750; margin-bottom: 10px; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.topbar { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 0 14px; gap: 12px; }
.topbar .date { color: var(--muted); font-size: 14px; white-space: nowrap; }

.card {
  display: block; width: 100%; text-align: left; border: 0;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 12px;
}
.card.flat { box-shadow: none; background: var(--surface-2); }
.entry-card .chev { font-size: 24px; color: var(--muted); line-height: 1; }
.entry-card p { margin: 4px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 13px 22px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700;
  min-height: 50px;
}
.btn.block { width: 100%; }
.btn.secondary { background: var(--accent-soft); color: var(--ink); }
.btn.ghost, .btn.danger { background: transparent; }
.btn.ghost { background: transparent; color: var(--accent); padding: 8px 12px; min-height: 0; }
.btn.danger { background: transparent; color: var(--period); border: 1.5px solid var(--period); }
.btn:disabled { opacity: .5; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- Tabbar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center; align-items: center; gap: 2px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar button[data-view] {
  flex: 1; max-width: 104px; border: 0; background: none; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11.5px; font-weight: 600; padding: 6px 0; border-radius: 14px;
}
.tabbar svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tabbar svg .fill { fill: currentColor; stroke: none; }
.tabbar button.active { color: var(--accent); }
.tabbar .fab {
  flex: none; width: 60px; height: 60px; margin: -22px 6px 0; border: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 0 5px var(--bg);
}
.tabbar .fab svg { width: 28px; height: 28px; stroke-width: 2.6; }
.tabbar .fab:active { transform: scale(.95); }

/* ---------- Today ---------- */
.ring-wrap { position: relative; width: min(320px, 82vw); aspect-ratio: 1; margin: 2px auto 0; }
.ring-wrap svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 20%;
}
.ring-center .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.ring-center .big { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; margin: 2px 0; }
.ring-center .big { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ring-center .big.period { background-image: linear-gradient(120deg, var(--period), var(--period-2)); }
.ring-center .big.late { background-image: linear-gradient(120deg, var(--warn), var(--period-2)); }
.ring-center .sub { font-size: 15px; color: var(--muted); }
.phase-pill {
  display: flex; width: fit-content; margin: 10px auto 0; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 650;
  background: color-mix(in srgb, var(--c) 16%, var(--surface));
}
.phase-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 12px; color: var(--muted); margin: 10px 0 16px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }

.chips-summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.tag {
  --c: var(--muted);
  font-size: 13px; font-weight: 550; padding: 5px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 16%, var(--surface)); display: inline-flex; gap: 5px; align-items: center;
}
.next-list { display: grid; gap: 10px; }
.next-item { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.next-item b { font-weight: 650; text-align: right; }
.notice { font-size: 13px; color: var(--muted); padding: 0 4px; }

/* ---------- Calendar ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h2 { margin: 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; font-size: 18px; flex: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.cal-day {
  position: relative; aspect-ratio: 1; border: 0; border-radius: 50%;
  background: transparent; display: grid; place-items: center; font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.cal-day.other { opacity: .35; }
.cal-day.fertile, .wk-day.fertile .num { background: var(--fertile-soft); }
.cal-day.ovu, .wk-day.ovu .num { background: var(--fertile-soft); box-shadow: inset 0 0 0 2px var(--ovu); font-weight: 700; }
.cal-day.pred, .wk-day.pred .num { outline: 2px dashed var(--period); outline-offset: -4px; }
.cal-day.f-light, .wk-day.f-light .num { background: var(--period-light); color: var(--on-period-light); }
.cal-day.f-medium, .wk-day.f-medium .num { background: linear-gradient(135deg, var(--period-mid), var(--period-2)); color: #fff; }
.cal-day.f-heavy, .wk-day.f-heavy .num { background: linear-gradient(135deg, var(--period), var(--period-2)); color: #fff; font-weight: 700; }
.cal-day.f-veryheavy, .wk-day.f-veryheavy .num { background: linear-gradient(135deg, color-mix(in srgb, #000 20%, var(--period)), var(--period)); color: #fff; font-weight: 800; box-shadow: inset 0 0 0 3px color-mix(in srgb, #000 28%, var(--period)); }
.cal-day.f-spotting::after { content: ""; position: absolute; bottom: 10%; left: 50%; margin-left: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--period); }
.cal-day.has-log::before { content: ""; position: absolute; top: 10%; right: 14%; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cal-day.today { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cal-day.future { color: var(--muted); }
.cal-day.f-medium.future, .cal-day.f-heavy.future, .cal-day.f-veryheavy.future { color: #fff; }

/* ---------- Stats ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.tile { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.tile .v { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.tile .v small { font-size: 14px; font-weight: 550; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.tile .k { font-size: 13px; color: var(--muted); }

.cycle-row { display: grid; grid-template-columns: 88px 1fr 36px; align-items: center; gap: 10px; font-size: 13px; margin: 8px 0; }
.cycle-bar { position: relative; height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.cycle-bar .fill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--accent-soft); }
.cycle-bar .per { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: linear-gradient(90deg, var(--period), var(--period-2)); }
.cycle-bar.current .fill { background: repeating-linear-gradient(45deg, var(--accent-soft) 0 6px, transparent 6px 10px); }
.cycle-row .len { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }

.freq-row { display: grid; grid-template-columns: 150px 1fr 28px; gap: 10px; align-items: center; font-size: 14px; margin: 6px 0; }
.freq-bar { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.freq-row .n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 10px; font-family: var(--sans); }

/* ---------- Eintragen (Vollbild) ---------- */
.tracker {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  display: flex; flex-direction: column; animation: up .2s ease-out;
}
.tracker-head { flex: none; padding: calc(8px + env(safe-area-inset-top)) 12px 10px; border-bottom: 1px solid var(--line); }
.tracker-bar { display: flex; align-items: center; justify-content: space-between; max-width: 560px; margin: 0 auto 8px; }
.tracker-bar h2 { margin: 0; font-size: 17px; }
.wk { display: flex; align-items: center; gap: 2px; max-width: 560px; margin: 0 auto; }
.wk-nav { border: 0; background: none; color: var(--muted); font-size: 24px; width: 28px; height: 48px; flex: none; }
.wk-days { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.wk-day { border: 0; background: none; padding: 4px 0 6px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wk-day .dow { font-size: 11px; font-weight: 600; color: var(--muted); }
.wk-day .num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-variant-numeric: tabular-nums; }
.wk-day.sel { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--accent); }
.wk-day.today .num { font-weight: 800; }
.tracker-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 16px 24px; width: 100%; max-width: 560px; margin: 0 auto; }
.tracker-foot { flex: none; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.tracker-foot .btn { max-width: 528px; margin: 0 auto; display: flex; }
.search { border-radius: 16px; background: var(--surface-2); border-color: transparent; }

@keyframes up { from { transform: translateY(30px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.section { margin: 22px 0; --c: var(--accent); }
.section > h3 { margin-bottom: 10px; font-size: 18px; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 0; border-radius: 999px; padding: 9px 15px 9px 11px; font-size: 14.5px; font-weight: 600; min-height: 44px;
  display: inline-flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--c) 15%, var(--surface));
  transition: background .12s, transform .08s;
}
.chip:active { transform: scale(.96); }
.chip .ci { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; gap: 1px; font-size: 15px; color: var(--c); background: color-mix(in srgb, var(--c) 18%, var(--surface)); flex: none; }
.chip[aria-pressed="true"] { background: linear-gradient(120deg, var(--c), color-mix(in oklab, var(--c) 55%, var(--accent-2))); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--c) 35%, transparent); }
.chip[aria-pressed="true"] .ci { background: rgba(255,255,255,.28); color: #fff; }

.field { display: grid; gap: 6px; margin: 12px 0; }
.field label { font-size: 14px; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface);
  padding: 11px 12px; min-height: 48px;
}
textarea.input { min-height: 84px; resize: vertical; }
.input:focus, .chip:focus-visible, .btn:focus-visible, .cal-day:focus-visible, .wk-day:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--surface-2); font-size: 22px; }
.stepper .val { min-width: 56px; text-align: center; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switch-row:last-child { border-bottom: 0; }
.switch-row .t { font-size: 15px; font-weight: 550; }
.switch-row .d { font-size: 13px; color: var(--muted); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 15px; background: var(--track-past); transition: background .15s; }
.switch span::after { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + span { background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.inline-time { width: 130px; min-height: 38px; padding: 6px 10px; }

/* ---------- Onboarding ---------- */
.onb { min-height: calc(100dvh - 140px); display: flex; flex-direction: column; justify-content: center; }
.onb .logo { width: 72px; height: 72px; margin-bottom: 18px; }
.onb h1 { font-size: 34px; margin-bottom: 8px; }
.onb .lead { font-size: 17px; color: var(--muted); margin-bottom: 22px; }
.privacy { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; background: var(--fertile-soft); border-radius: 16px; padding: 12px 14px; margin: 10px 0 20px; }

.toast {
  position: fixed; left: 50%; bottom: calc(104px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: all .2s; z-index: 80; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.sheet-backdrop { position: fixed; inset: 0; background: rgba(10,8,14,.55); display: flex; justify-content: center; animation: fade .18s ease-out; }
.confirm-bd { align-items: center; z-index: 70; padding: 16px; }
.confirm { background: var(--surface); border-radius: 22px; padding: 20px; max-width: 380px; width: 100%; box-shadow: var(--shadow); animation: up .18s ease-out; }
.confirm p { margin-bottom: 16px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (min-width: 600px) { #app { padding-top: 32px; } }

/* ---------- Regler ---------- */
.range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0; background: transparent; --p: 0%;
}
.range::-webkit-slider-runnable-track {
  height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--c) 45%, var(--surface)), var(--c) ) 0 / var(--p) 100% no-repeat, var(--surface-2);
}
.range::-moz-range-track { height: 12px; border-radius: 6px; background: var(--surface-2); }
.range::-moz-range-progress { height: 12px; border-radius: 6px; background: linear-gradient(90deg, color-mix(in oklab, var(--c) 45%, var(--surface)), var(--c)); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; margin-top: -9px;
  background: #fff; border: 4px solid var(--c); box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--c); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.flow-range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--period-light), var(--period), var(--period-2)) 0 / var(--p) 100% no-repeat, var(--surface-2); }
.flow-range::-moz-range-progress { background: linear-gradient(90deg, var(--period-light), var(--period), var(--period-2)); }

.section > h3 .lvl-name { font-size: 14px; font-weight: 650; color: var(--c); margin-left: 8px; }
.flow-icons { position: relative; height: 50px; margin-bottom: 2px; }
.flow-icons button {
  position: absolute; bottom: 0; left: calc(15px + (100% - 30px) * var(--n) / 4); transform: translateX(-50%);
  border: 0; background: none; width: 52px; height: 50px; display: flex; align-items: flex-end; justify-content: center; gap: 1px; padding: 0 0 6px;
  color: var(--period); opacity: .32; transition: transform .12s, opacity .12s; transform-origin: 50% 100%;
}
.flow-icons button.on { opacity: 1; transform: translateX(-50%) scale(1.45); }
.flow-icons .none { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; }
.flow-icons .drop { display: block; }
.range-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 2px; }

.lvls { display: grid; gap: 6px; margin-top: 12px; }
.lvls:empty { display: none; }
.lvl-row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(90px, 1fr) 52px; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--c) 9%, var(--surface)); border-radius: 16px; padding: 6px 12px 6px 8px;
}
.lvl-what { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; min-width: 0; }
.lvl-what .ci { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; background: color-mix(in srgb, var(--c) 18%, var(--surface)); flex: none; }
.lvl-row .lvl-name { font-size: 13px; font-weight: 650; color: var(--c); text-align: right; }
.tag .dots { font-size: 8px; letter-spacing: 1px; color: var(--c); }

/* ---------- Weißes Glas-Design ---------- */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: rgba(122, 104, 176, .10);
  --line: rgba(122, 104, 176, .16);
  --track: rgba(122, 104, 176, .13);
  --track-past: rgba(122, 104, 176, .34);
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-edge: rgba(255, 255, 255, .95);
  --glass-shadow: 0 10px 34px rgba(84, 62, 150, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
  --blur: blur(22px) saturate(1.7);
}
body { background: #fff; }
body::before, .tracker::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 30% at 12% 6%, rgba(156, 133, 255, .38), transparent 72%),
    radial-gradient(48% 30% at 96% 20%, rgba(255, 128, 164, .30), transparent 72%),
    radial-gradient(55% 34% at 22% 72%, rgba(84, 214, 186, .28), transparent 72%),
    radial-gradient(50% 30% at 100% 96%, rgba(255, 186, 110, .28), transparent 72%),
    #fff;
}
.tracker { background: #fff; isolation: isolate; }
.tracker::before { position: absolute; }

.card, .tile, .confirm {
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.card.flat { background: rgba(255, 255, 255, .34); box-shadow: none; }
.confirm { background: var(--glass-strong); }

.tabbar {
  left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: 536px; margin: 0 auto;
  padding: 7px 8px; border-radius: 30px; border: 1px solid var(--glass-edge);
  background: var(--glass-strong); box-shadow: 0 12px 36px rgba(84, 62, 150, .18), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.tabbar .fab { margin-top: -26px; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 0 4px rgba(255, 255, 255, .85); }
#app { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.toast { bottom: calc(112px + env(safe-area-inset-bottom)); }

.tracker-head, .tracker-foot {
  background: var(--glass); border-color: var(--glass-edge);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.tracker-head { box-shadow: 0 6px 24px rgba(84, 62, 150, .08); z-index: 2; }
.tracker-foot { box-shadow: 0 -6px 24px rgba(84, 62, 150, .08); }

.chip {
  background: color-mix(in srgb, var(--c) 11%, rgba(255, 255, 255, .72));
  border: 1px solid var(--glass-edge); box-shadow: 0 2px 10px rgba(84, 62, 150, .07), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.chip .ci, .lvl-what .ci { background: color-mix(in srgb, var(--c) 16%, #fff); }
.chip[aria-pressed="true"] { border-color: transparent; }
.lvl-row { background: color-mix(in srgb, var(--c) 8%, rgba(255, 255, 255, .7)); border: 1px solid var(--glass-edge); }
.tag, .phase-pill { background: color-mix(in srgb, var(--c) 13%, rgba(255, 255, 255, .75)); border: 1px solid var(--glass-edge); }
.icon-btn, .stepper button { background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: 0 2px 10px rgba(84, 62, 150, .08); }
.input, select.input, textarea.input, .search { background: rgba(255, 255, 255, .7); border: 1px solid rgba(122, 104, 176, .2); }
.btn.secondary { background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: 0 2px 10px rgba(84, 62, 150, .08); }
.wk-day.sel { background: rgba(255, 255, 255, .8); }
.privacy { background: color-mix(in srgb, var(--fertile) 12%, rgba(255, 255, 255, .7)); border: 1px solid var(--glass-edge); }
.range::-webkit-slider-runnable-track { box-shadow: inset 0 1px 2px rgba(84, 62, 150, .12); }
