/* ─────────────────────────────────────────────────────────────
   Yasemin · Döngü — cream paper, terracotta accent, hairline rules
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #faf9f5;
  --surface: #ffffff;
  --surface-2: #f4f1ea;
  --ink: #262624;
  --muted: #6f6a62;
  --faint: #746d62;
  --line: #e6e0d5;
  --line-strong: #d5ccbd;
  --accent: #c96442;
  --accent-deep: #a34b2e;
  --accent-soft: #f4e2d8;
  --accent-ink: #8c3d23;
  --green: #55705b;
  --green-soft: #e4ebe2;
  --amber: #a9762c;
  --amber-soft: #f3e8d4;
  --danger: #a33a2c;
  --danger-soft: #f6e0dc;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(38, 38, 36, 0.04), 0 12px 32px -24px rgba(38, 38, 36, 0.25);
  --sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

[data-theme="dark"] {
  --bg: #171613;
  --surface: #1e1c19;
  --surface-2: #25221e;
  --ink: #f1ece2;
  --muted: #a8a094;
  --faint: #9a9184;
  --line: #332f29;
  --line-strong: #474138;
  --accent: #e08a63;
  --accent-deep: #f0a988;
  --accent-soft: #38241c;
  --accent-ink: #f2b99f;
  --green: #9db7a0;
  --green-soft: #243027;
  --amber: #d8ab63;
  --amber-soft: #342a1b;
  --danger: #e08376;
  --danger-soft: #3a211e;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 18px 40px -28px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(38, 38, 36, 0.035) 0.6px, transparent 0.6px);
  background-size: 6px 6px;
  opacity: 0.55;
  z-index: 0;
}
[data-theme="dark"] body::before { opacity: 0.18; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent-soft); color: var(--accent-ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ── login ─────────────────────────────────────────────────── */
.login {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
}
.login-card {
  position: relative;
  z-index: 2;
  width: min(400px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  animation: rise 0.5s ease both;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: #fffaf4;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1;
  padding-bottom: 2px;
}
.brand-sub {
  color: var(--faint);
  font-weight: 450;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-left: 10px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
}
.brand-login { margin-bottom: 28px; }
.login h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.login-sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.login label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap .icon {
  position: absolute;
  left: 13px;
  color: var(--faint);
  width: 17px;
  height: 17px;
}
.input-wrap input { padding-left: 40px; }
input[type="password"], input[type="text"], input[type="number"], input[type="date"] {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-error {
  color: var(--danger);
  font-size: 13px;
  margin: 10px 0 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 550;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: #3a3a36; border-color: #3a3a36; }
[data-theme="dark"] .btn-primary { background: var(--accent); border-color: var(--accent); color: #1a1512; }
[data-theme="dark"] .btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-block { width: 100%; margin-top: 18px; }
.btn.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.btn.danger-ghost {
  color: var(--danger);
  border-color: transparent;
  background: transparent;
  margin-right: auto;
}
.btn.danger-ghost:hover { background: var(--danger-soft); }
.login-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}
.login-watermark {
  position: absolute;
  right: -3vw;
  bottom: -18vh;
  font-family: var(--serif);
  font-size: 62vh;
  line-height: 1;
  color: var(--ink);
  opacity: 0.035;
  z-index: 1;
  pointer-events: none;
}

/* ── app shell ─────────────────────────────────────────────── */
.app { position: relative; z-index: 1; animation: fade 0.4s ease both; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon-btn.small { width: 32px; height: 32px; border-color: var(--line); }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 60px;
}

/* ── hero ──────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 495px;
  gap: 40px;
  align-items: center;
  padding: 58px 0 46px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 12ch;
}
.hero-sub {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  max-width: 46ch;
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow);
  animation: rise 0.55s 0.08s ease both;
}
.hero-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.phase-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-date { color: var(--faint); font-size: 12px; }
.big-day {
  display: flex;
  align-items: baseline;
  gap: 0;
  margin: 12px 0 18px;
  font-family: var(--serif);
  letter-spacing: -0.03em;
}
.big-day span:first-child { font-size: 82px; line-height: 0.95; }
.big-day span:first-child::after {
  content: ".";
  font-size: 0.46em;
  margin-left: -0.08em;
  vertical-align: 0.06em;
}
.big-day-unit { font-size: 17px; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.hero-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.hero-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.hero-row span { color: var(--muted); }
.hero-row strong { font-weight: 600; font-size: 13.5px; }
.progress {
  height: 5px;
  border-radius: 99px;
  background: var(--surface-2);
  margin-top: 18px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.progress-legend {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 11px;
  margin-top: 7px;
}

/* ── week strip ────────────────────────────────────────────── */
.week { padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.week-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-title {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.muted { color: var(--faint); font-size: 12px; }
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.day-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 12px 12px 11px;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.day-card.is-today { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.day-card .dow { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.day-card .dnum { font-family: var(--serif); font-size: 23px; line-height: 1; letter-spacing: -0.02em; }
.day-card .dmark {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.day-card.is-ovulation { background: var(--accent); border-color: var(--accent); }
.day-card.is-ovulation .dow, .day-card.is-ovulation .dnum { color: #fffaf4; }
.day-card.is-ovulation .dmark { color: #fffaf4; }
.day-card.is-fertile:not(.is-ovulation) { background: var(--accent-soft); border-color: transparent; }
.day-card.is-period:not(.is-ovulation) { background: var(--surface-2); }

/* ── layout & cards ────────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 495px;
  gap: 20px;
  padding: 30px 0 0;
  align-items: start;
}
.layout > * { min-width: 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.side { display: grid; gap: 20px; }

/* ── calendar ──────────────────────────────────────────────── */
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav span { font-size: 13px; font-weight: 600; min-width: 104px; text-align: center; }
.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 0 2px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.weekdays span {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal {
  position: relative;
  aspect-ratio: 1 / 0.9;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
}
.cal .n { font-size: 13px; font-variant-numeric: tabular-nums; line-height: 1; }
.cal.is-out { opacity: 0.28; }
.cal.is-period { background: var(--accent); color: #fffaf4; }
.cal.is-period .n { font-weight: 600; }
.cal.is-predicted { background: transparent; border-color: var(--line-strong); border-style: dashed; }
.cal.is-fertile:not(.is-period) { background: var(--accent-soft); }
.cal.is-ovulation { box-shadow: inset 0 0 0 1.5px var(--accent-deep); }
.cal.is-today { outline: 2px solid var(--ink); outline-offset: 1px; }
.cal .marks { display: flex; gap: 3px; height: 4px; }
.cal .marks i { width: 4px; height: 4px; border-radius: 99px; display: block; }
.cal .marks .m-period { background: #fffaf4; }
.cal .marks .m-fertile { background: var(--accent); }
.cal .marks .m-ovulation { background: var(--accent-deep); }
.cal .marks .m-predicted { background: var(--line-strong); }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }
.dot.period { background: var(--accent); }
.dot.predicted { border: 1px dashed var(--line-strong); }
.dot.fertile { background: var(--accent-soft); border: 1px solid var(--accent); }
.dot.ovulation { background: var(--accent-deep); }
.dot.today { background: transparent; border: 2px solid var(--ink); }

/* ── forecast ──────────────────────────────────────────────── */
.forecast-list { display: grid; gap: 0; }
.forecast-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.forecast-item:first-child { border-top: 0; padding-top: 0; }
.forecast-item:last-child { padding-bottom: 0; }
.f-index {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 650;
}
.forecast-item.is-next .f-index { background: var(--accent-soft); color: var(--accent-ink); }
.f-title { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.f-meta { color: var(--muted); font-size: 12px; line-height: 1.55; }
.f-meta strong { color: var(--ink); font-weight: 600; }

/* ── stats ─────────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stat { background: var(--surface); padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 3px; }
.stat-value { font-family: var(--serif); font-size: 26px; line-height: 1; letter-spacing: -0.02em; }
.stat-label { color: var(--faint); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ── history ───────────────────────────────────────────────── */
.history-card { margin-top: 20px; }
.bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
  align-items: end;
  height: 150px;
  padding: 10px 2px 0;
  border-bottom: 1px solid var(--line);
}
.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: end; height: 100%; gap: 6px; }
.bar {
  width: 100%;
  max-width: 34px;
  border-radius: 6px 6px 2px 2px;
  background: var(--accent-soft);
  border: 1px solid transparent;
  position: relative;
  min-height: 8px;
  transition: background 0.15s ease;
}
.bar-col:hover .bar { background: var(--accent); }
.bar-val { font-size: 10px; color: var(--faint); font-variant-numeric: tabular-nums; }
.bar-lab { font-size: 9.5px; color: var(--faint); white-space: nowrap; }
.history-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 8px; }
.h-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.h-row span:first-child { color: var(--muted); }
.h-row strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.h-row .h-len { color: var(--ink); min-width: 44px; text-align: right; }
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  color: var(--faint);
  font-size: 11px;
}

/* ── dialog ────────────────────────────────────────────────── */
.dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
}
.dialog::backdrop { background: rgba(24, 22, 19, 0.38); backdrop-filter: blur(3px); }
.dialog-card {
  width: min(460px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.45);
  color: var(--ink);
  animation: rise 0.22s ease both;
}
.dialog-card.narrow { width: min(390px, calc(100vw - 32px)); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dialog-head h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: -0.02em; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.hint { display: block; color: var(--faint); font-size: 11.5px; line-height: 1.45; margin-top: 6px; }
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.switch-row strong { display: block; font-size: 13.5px; font-weight: 600; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: var(--line-strong);
  transition: background 0.18s ease;
}
.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease;
}
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.dialog-note { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 12px 0 18px; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-wrap: wrap; }

/* ── toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: var(--bg);
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 100;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── responsive ────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; }
  .hero h1 { max-width: 16ch; }
  .layout { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 760px) {
  .topbar-inner, .shell { width: calc(100% - 32px); }
  .brand-sub { display: none; }
  .hero { padding: 34px 0 32px; gap: 24px; }
  .hero h1 { font-size: clamp(34px, 9vw, 44px); }
  .hero-sub { font-size: 14.5px; }
  .hero-panel { padding: 20px; }
  .big-day span:first-child { font-size: 64px; }
  .week-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
  .day-card { padding: 9px 7px; min-height: 70px; }
  .day-card .dnum { font-size: 19px; }
  .day-card .dmark { font-size: 9px; }
  .day-card .dow { font-size: 8.5px; }
  .side { grid-template-columns: 1fr; }
  .history-list { grid-template-columns: 1fr; }
  .bars { gap: 5px; height: 120px; }
  .bar-lab { font-size: 8px; }
  .foot { flex-direction: column; gap: 6px; }
  .dialog-actions .btn { flex: 1 1 auto; }
  .dialog-actions .danger-ghost { flex-basis: 100%; margin-right: 0; justify-content: flex-start; }
}
@media (max-width: 480px) {
  .topbar-inner, .shell { width: calc(100% - 24px); }
  .topbar-inner { height: 58px; }
  .hero { padding-top: 26px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .card { padding: 17px; border-radius: 16px; }
  .cal { min-height: 40px; border-radius: 8px; }
  .cal .n { font-size: 12px; }
  .week-grid { grid-template-columns: repeat(4, 1fr); }
  .history-list { gap: 0; }
  .toast { bottom: 16px; width: calc(100% - 24px); text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
