:root {
  --bg: #f7eef1;
  --card: #ffffff;
  --text: #2d1f2a;
  --muted: #86717f;
  --line: #eadde3;
  --primary: #d6457a;
  --primary-dark: #b8335f;
  --period: #e2507f;
  --predicted: #f6c4d5;
  --fertile: #a9d9cd;
  --fertile-strong: #2f7f72;
  --ovulation: #1fae5b;
  --cycle: #9b7fd1;
  --log: #f59e0b;
  --danger: #c62f3c;
  --radius: 20px;
  --shadow: 0 2px 10px rgba(80, 30, 55, 0.06);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -0.02em; }
h2 { font-size: 20px; margin: 0; }
h3 { font-size: 17px; margin: 24px 4px 10px; }
p { margin: 0 0 8px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.strong { font-weight: 600; margin: 0; }
.center-text { text-align: center; }
.error { color: var(--danger); font-size: 14px; margin-top: 10px; }

.screen { min-height: 100vh; min-height: 100dvh; }
.center { display: flex; align-items: center; justify-content: center; padding: 24px; }
.page { max-width: 520px; margin: 0 auto; padding: calc(20px + var(--safe-t)) 18px 24px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

/* Κουμπιά */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  border: 0; border-radius: 14px;
  padding: 14px 18px;
  font: inherit; font-weight: 600;
  cursor: pointer;
  transition: transform .08s, background .2s;
}
.btn:active { transform: scale(0.98); }
.btn + .btn { margin-top: 10px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #f6eff2; color: var(--text); }
.btn-danger { background: #fdecee; color: var(--danger); }
.btn-google { background: #fff; color: #333; border: 1px solid var(--line); margin: 22px 0 12px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 0;
  background: var(--card); box-shadow: var(--shadow);
  font-size: 24px; line-height: 1; color: var(--text); cursor: pointer;
}

/* Σύνδεση */
.login-card { max-width: 380px; width: 100%; text-align: center; }
.logo { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 16px; }

/* Φόρμες */
.form label { display: block; font-weight: 600; margin-bottom: 18px; }
.form input[type=date] {
  display: block; width: 100%; margin-top: 8px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  font: inherit; background: #fff; color: var(--text);
  min-height: 48px;
}
.hint { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.stepper { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.stepper input {
  width: 70px; text-align: center; font: inherit; font-size: 20px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 12px; padding: 8px; color: var(--text);
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #f6eff2; font-size: 22px; color: var(--primary); cursor: pointer;
}
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); flex-shrink: 0; }

/* Αρχική */
.top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.hero { text-align: center; padding: 26px 18px 18px; }
.ring { position: relative; width: 210px; height: 210px; margin: 0 auto 14px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #f6e8ee; stroke-width: 10; }
.ring-fg {
  fill: none; stroke: var(--primary); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset .8s ease, stroke .3s;
}
.ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-big { font-size: 46px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.ring-small { font-size: 14px; color: var(--muted); }
.status { font-size: 15px; margin: 0 0 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.grid2 .card { margin: 0; }
.mini { position: relative; padding: 14px 16px; }
.mini .dot { position: absolute; top: 16px; right: 16px; }
.mini p { margin: 0; }
.mini .strong { margin-top: 4px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot.period { background: var(--period); }
.dot.predicted { background: var(--predicted); }
.dot.fertile { background: var(--fertile-strong); }
.dot.ovulation { background: var(--ovulation); }
.dot.cycle { background: var(--log); }

.banner {
  background: #fff6e8; border-radius: 16px; padding: 12px 14px; margin-bottom: 14px;
  font-size: 14px; display: flex; gap: 10px; align-items: center;
}
.banner .btn { width: auto; padding: 8px 12px; font-size: 14px; margin: 0; }
.banner .close { margin-left: auto; background: none; border: 0; font-size: 20px; color: var(--muted); cursor: pointer; }

/* Ημερολόγιο */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h2 { text-transform: capitalize; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-week span { font-size: 12px; color: var(--muted); padding-bottom: 8px; font-weight: 600; }
.cal-grid { gap: 4px 0; }
.day {
  position: relative; aspect-ratio: 1; border: 0; background: none; cursor: pointer;
  padding: 0; min-width: 0; width: 100%;
  font: inherit; font-size: 15px; color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.day span {
  width: 38px; height: 38px; max-width: 92%; max-height: 92%;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.day.out { visibility: hidden; }
.day.period span { background: var(--period); color: #fff; font-weight: 600; }
.day.predicted span { background: transparent; border: 2px dashed var(--period); color: var(--period); }
.day.fertile span { background: var(--fertile); color: #174f46; }
.day.ovulation span { background: var(--ovulation); color: #fff; font-weight: 600; }
.day.today span { box-shadow: 0 0 0 2px var(--text); }
.day.today.period span, .day.today.ovulation span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--text); }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-size: 13px; margin: 4px 0 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot.predicted { background: transparent; border: 2px dashed var(--period); width: 11px; height: 11px; }

.list { padding: 4px 18px; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.row:last-child { border-bottom: 0; }
.row .del { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 4px 8px; }
.empty { padding: 14px 0; color: var(--muted); font-size: 14px; text-align: center; }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; cursor: pointer;
}
.switch-row:last-of-type { border-bottom: 0; }
.switch {
  -webkit-appearance: none; appearance: none; flex-shrink: 0;
  width: 50px; height: 30px; border-radius: 999px; background: #e7dbe1;
  position: relative; cursor: pointer; transition: background .2s; margin: 0;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s;
}
.switch:checked { background: var(--primary); }
.switch:checked::after { transform: translateX(20px); }
#notif-card .btn { margin-top: 12px; }

.danger-zone .strong { color: var(--danger); margin-bottom: 4px; }

/* Μπάρα καρτελών */
main { padding-bottom: calc(84px + var(--safe-b)); }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 8px 8px calc(8px + var(--safe-b));
  z-index: 10;
}
.tabbar button {
  flex: 1; max-width: 140px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 11px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px;
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.active { color: var(--primary); }

/* Φύλλο ενεργειών */
.backdrop { position: fixed; inset: 0; background: rgba(30, 10, 20, 0.35); z-index: 20; animation: fade .2s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 21;
  background: var(--card); border-radius: 24px 24px 0 0;
  padding: 10px 20px calc(22px + var(--safe-b));
  max-width: 560px; margin: 0 auto;
  animation: up .25s ease;
}
.sheet h3 { margin: 10px 0 4px; }
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto; }
.sheet-actions { margin-top: 14px; }
.sheet ol { padding-left: 20px; margin: 8px 0; font-size: 15px; }
.sheet li { margin-bottom: 8px; }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%);
  background: var(--text); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; z-index: 30; animation: fade .2s; max-width: 90%; text-align: center;
}

.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--predicted); border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }

@media (min-width: 700px) {
  .tabbar { left: 50%; right: auto; transform: translateX(-50%); width: 420px; bottom: 16px; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
  .sheet { bottom: 50%; transform: translateY(50%); border-radius: 24px; animation: fade .2s; }
}

/* --- Καταγραφή, στατιστικά, χάπι --- */
.select, .field {
  display: block; width: 100%; margin-top: 8px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  font: inherit; font-weight: 400; background: #fff; color: var(--text); min-height: 48px;
}
textarea.field { resize: vertical; min-height: 80px; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.link-btn { background: none; border: 0; color: var(--primary); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 4px; }
.btn-small { width: auto; padding: 10px 16px; font-size: 14px; margin: 0 !important; flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--text);
  border-radius: 999px; padding: 8px 13px; font: inherit; font-size: 14px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.chip.on { background: #fbe3ec; border-color: var(--primary); color: var(--primary-dark); font-weight: 600; }
.chips.static .chip { cursor: default; padding: 6px 11px; font-size: 13px; }
.log-label { display: block; font-weight: 600; font-size: 14px; margin: 18px 0 8px; }
.log-form .switch-row { margin-top: 10px; border: 0; }
.grid2.tight { gap: 10px; margin: 0; }
.grid2.tight .log-label { margin-bottom: 0; }
.sheet.tall { max-height: 90vh; max-height: 90dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet.tall .sheet-actions { position: sticky; bottom: calc(-22px - var(--safe-b)); background: var(--card); padding: 12px 0 calc(10px + var(--safe-b)); }
#sheet-text { white-space: pre-line; }
.log-dot { position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--log); }
.day.due span { background: var(--cycle); color: #fff; font-weight: 700; }

.chart { margin-top: 10px; }
.svg-chart { width: 100%; height: auto; display: block; overflow: visible; }
.c-val { font-size: 11px; font-weight: 700; fill: var(--text); text-anchor: middle; }
.c-lab { font-size: 10px; fill: var(--muted); text-anchor: middle; }
.c-avg { stroke: var(--muted); stroke-dasharray: 4 4; stroke-width: 1; }
.c-avg-t { font-size: 10px; fill: var(--muted); }
.hbar { display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.hbar-track { height: 8px; background: #f6eff2; border-radius: 99px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 99px; }
.hbar b { font-size: 13px; color: var(--muted); min-width: 18px; text-align: right; }
#tab-stats .card .strong + .tiny { margin-top: 2px; }

/* --- Χαριτωμένο στυλ --- */
.emoji-row { font-size: 22px; letter-spacing: 6px; margin: 2px 0 6px; }
.hero { background: linear-gradient(160deg, #fff 0%, #fff 55%, #fdeef4 100%); }
.ring-small.ring-emoji { font-size: 30px; color: inherit; line-height: 1.1; }
.phase {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; margin-bottom: 10px;
}
.tint-pink { background: #fde7ef; }
.tint-green { background: #e3f4ef; }
.tint-cycle { background: #efe9fb; }
.tint-peach { background: #fff0e3; }
.phase.tint-pink { color: #b8335f; }
.phase.tint-green { color: #1e6e61; }
.phase.tint-cycle { color: #6a4fb3; }
.phase.tint-peach { color: #a35b1d; }
.mini { border: 0; }
.mini-emoji { position: absolute; top: 12px; right: 14px; font-size: 20px; }
.mini.tint-pink, .mini.tint-green, .mini.tint-cycle, .mini.tint-peach { box-shadow: none; }

.faces { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.face {
  border: 0; background: #f8f2f5; border-radius: 16px; padding: 8px 2px 6px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit;
  transition: transform .12s, background .15s;
}
.face span { font-size: 26px; line-height: 1.2; filter: saturate(0.85); }
.face small { font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.face:active { transform: scale(0.92); }
.face.on { background: #fde7ef; box-shadow: inset 0 0 0 2px var(--primary); }
.face.on span { filter: none; transform: scale(1.1); }
.face.on small { color: var(--primary-dark); font-weight: 600; }

.log-emoji { position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%); font-size: 11px; font-style: normal; line-height: 1; }

.tabbar .ti { font-size: 22px; line-height: 1; padding: 3px 14px; border-radius: 999px; filter: grayscale(1); opacity: .55; transition: all .2s; }
.tabbar button.active .ti { filter: none; opacity: 1; background: #fde7ef; }
.tabbar button.active { font-weight: 600; }
.sheet { position: fixed; }
.sheet-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: #f6eff2; color: var(--muted); font-size: 15px; cursor: pointer; z-index: 2;
}
.sheet h3 { padding-right: 40px; }
.sheet.tall .sheet-close { position: sticky; float: right; top: 0; margin: 4px -4px 0 0; }
.faces { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.face small { font-size: 9px; }
.mini .small { padding-right: 26px; }
.face { padding: 10px 2px; }
.face span { font-size: 28px; }
.mood-names { color: var(--primary-dark); font-weight: 600; }
.version-box { text-align: center; margin: 6px 0 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.version-box p { margin: 0; }

/* --- Επιλογή γλώσσας GR / EN --- */
.lang-toggle {
  display: inline-flex; background: #fff; border-radius: 999px; padding: 3px;
  box-shadow: var(--shadow); flex-shrink: 0;
}
.lang-toggle button {
  border: 0; background: none; font: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; color: var(--muted); padding: 5px 10px; border-radius: 999px; cursor: pointer;
}
.lang-toggle button.on { background: var(--primary); color: #fff; }
.lang-float { position: absolute; top: calc(14px + var(--safe-t)); right: 16px; }
#login { position: relative; }
.top .lang-toggle { align-self: flex-start; margin-top: 2px; }

/* --- Κλείδωμα με PIN --- */
.lock {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(20px + var(--safe-t)) 24px calc(20px + var(--safe-b)); text-align: center;
}
.lock h2 { margin: 14px 0 4px; }
.pin-dots { display: flex; gap: 16px; margin: 22px 0 28px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--primary); transition: background .15s; }
.pin-dots i.on { background: var(--primary); }
.pin-dots.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 22px; }
.keypad button {
  width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--card);
  box-shadow: var(--shadow); font: inherit; font-size: 28px; font-weight: 500; color: var(--text); cursor: pointer;
}
.keypad button:active { background: #fbe3ec; }
.keypad .kp-link, .keypad .kp-del { background: none; box-shadow: none; font-size: 14px; color: var(--primary); font-weight: 600; }
.keypad .kp-del { font-size: 24px; color: var(--muted); }
#discreet-row small { font-size: 12px; line-height: 1.3; }

/* --- PMS --- */
.dot.pms { background: #efe9fb; box-shadow: inset 0 0 0 2px #6a4fb3; }
.day.pms span { background: #efe9fb; color: #6a4fb3; }

/* --- Αναφορά για γιατρό (μόνο στην εκτύπωση) --- */
.report { display: none; }
.report-card { background: linear-gradient(160deg, #fff 0%, #fdeef4 100%); }
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff !important; }
  body > *:not(#report) { display: none !important; }
  .report { display: block !important; color: #222; font-size: 11pt; line-height: 1.4; }
  .report h1 { font-size: 20pt; margin: 0 0 2pt; }
  .report h2 { font-size: 12.5pt; margin: 16pt 0 6pt; color: #b8335f; border-bottom: 1px solid #eadde3; padding-bottom: 3pt; }
  .report .r-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12pt; }
  .report .r-head img { width: 44pt; height: 44pt; border-radius: 10pt; }
  .report .r-meta { color: #666; font-size: 10pt; }
  .report table { width: 100%; border-collapse: collapse; font-size: 10pt; }
  .report th, .report td { text-align: left; padding: 4pt 6pt; border-bottom: 1px solid #eee; }
  .report th { background: #fbf2f6; font-weight: 600; }
  .report .r-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6pt 14pt; }
  .report .r-grid div { background: #fbf2f6; border-radius: 6pt; padding: 6pt 8pt; }
  .report .r-grid b { display: block; font-size: 13pt; }
  .report .r-note { color: #777; font-size: 9pt; margin-top: 16pt; }
  .report tr, .report .r-grid div { break-inside: avoid; }
}

/* --- Σκοτεινό θέμα --- */
html.dark {
  --bg: #1b1418; --card: #271d23; --text: #f3e9ee; --muted: #b29fab; --line: #3a2c34;
  --primary: #e8608f; --primary-dark: #f07aa2; --predicted: #6b3348;
  --fertile: #17362f; --fertile-strong: #2a7a6c; --ovulation: #3ddc84; --cycle: #a58ce0; --log: #fbbf24;
  --danger: #ff6b78; --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
html.dark .btn-ghost, html.dark .step, html.dark .face, html.dark .sheet-close, html.dark .hbar-track { background: #33262d; }
html.dark .btn-danger { background: #3a2026; }
html.dark .btn-google { background: var(--card); color: var(--text); }
html.dark .form input[type=date], html.dark .select, html.dark .field, html.dark .stepper input, html.dark .chip { background: var(--card); color: var(--text); border-color: var(--line); }
html.dark .ring-bg { stroke: #3a2c34; }
html.dark .banner { background: #3a2c20; }
html.dark .day.fertile span { color: #a9d9cd; }
html.dark .day.ovulation span { color: #0d2b1a; }
html.dark .day.today.period span, html.dark .day.today.ovulation span { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--text); }
html.dark .switch { background: #4a3a43; }
html.dark .tabbar { background: rgba(39, 29, 35, 0.92); }
html.dark .toast { background: #f3e9ee; color: #1b1418; }
html.dark .chip.on, html.dark .face.on, html.dark .tabbar button.active .ti, html.dark .keypad button:active { background: #4a2233; }
html.dark .chip.on { color: #ffd0e0; }
html.dark .hero { background: linear-gradient(160deg, var(--card) 0%, var(--card) 55%, #3a2430 100%); }
html.dark .report-card { background: linear-gradient(160deg, var(--card) 0%, #3a2430 100%); }
html.dark .tint-pink { background: #3f2230; }
html.dark .tint-green { background: #1d3a35; }
html.dark .tint-cycle { background: #2e2640; }
html.dark .tint-peach { background: #3d2c1f; }
html.dark .phase.tint-pink { color: #ff9fc0; }
html.dark .phase.tint-green { color: #8fe0cf; }
html.dark .phase.tint-cycle { color: #c9b6ef; }
html.dark .phase.tint-peach { color: #f5c08f; }
html.dark .lang-toggle { background: var(--card); }
html.dark .day.pms span { background: #2e2640; color: #c9b6ef; }
html.dark .dot.pms { background: #2e2640; box-shadow: inset 0 0 0 2px #c9b6ef; }
html.dark .logo { box-shadow: none; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #f6eff2; border-radius: 14px; padding: 4px; }
.seg button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 4px; border-radius: 10px; cursor: pointer; }
.seg button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
html.dark .seg { background: #33262d; }
html.dark .seg button.on { background: var(--primary); color: #fff; }
