/* Feriados Chile — white, airy, one accent. Red means "holiday" (the red days of a calendar).
   Light by default; dark only when the user picks it ([data-theme="dark"] or "auto"). */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f4f4f5;
  --bg-raised: #ffffff;
  --text: #17171a;
  --text-2: #5c5c64;
  --text-3: #9a9aa2;
  --line: #ececee;
  --red: #d93025;
  --red-soft: #fdecea;
  --ink: #17171a;
  --on-ink: #ffffff;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 10px 30px rgb(0 0 0 / 0.07);
  --r-xl: 32px;
  --r-lg: 22px;
  --r: 16px;
  --gutter: 20px;
  --appbar-h: 60px;
  --tabbar-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121214;
  --bg-soft: #1d1d20;
  --bg-raised: #26262a;
  --text: #f4f4f5;
  --text-2: #b0b0b8;
  --text-3: #6f6f78;
  --line: #29292d;
  --red: #ff6b5e;
  --red-soft: #3b1916;
  --ink: #f4f4f5;
  --on-ink: #121214;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 30px rgb(0 0 0 / 0.35);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    color-scheme: dark;
    --bg: #121214;
    --bg-soft: #1d1d20;
    --bg-raised: #26262a;
    --text: #f4f4f5;
    --text-2: #b0b0b8;
    --text-3: #6f6f78;
    --line: #29292d;
    --red: #ff6b5e;
    --red-soft: #3b1916;
    --ink: #f4f4f5;
    --on-ink: #121214;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 30px rgb(0 0 0 / 0.35);
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
a { color: inherit; }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.i {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 50;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- app bar & navigation ---------- */

.appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: calc(var(--appbar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand img { border-radius: 8px; }
.appbar-actions { display: flex; gap: 2px; }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  color: var(--text-3);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
}
.tabbar a[aria-current="page"] { color: var(--text); }
.tabbar a[aria-current="page"] .i { stroke-width: 2.2; }

/* ---------- layout ---------- */

main, .page {
  display: grid;
  gap: 32px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 12px max(var(--gutter), env(safe-area-inset-right)) 48px max(var(--gutter), env(safe-area-inset-left));
}
main { min-height: 70vh; align-content: start; outline: none; transition: opacity 0.15s; }
main.is-loading { opacity: 0.5; pointer-events: none; }

.page-title { font-size: 32px; font-weight: 750; letter-spacing: -0.03em; }
.muted { color: var(--text-2); }
.section { display: grid; gap: 6px; align-content: start; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.section-head h2 { font-size: 20px; font-weight: 700; }
.section-head a { color: var(--text-2); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-head a:hover { color: var(--text); }
.section-note { color: var(--text-2); font-size: 15px; margin-bottom: 4px; }
.empty { color: var(--text-2); padding: 20px 0; }

.note { padding: 12px 16px; border-radius: var(--r); background: var(--bg-soft); color: var(--text-2); font-size: 15px; }
.notice { display: grid; gap: 12px; justify-items: start; padding: 28px 24px; border-radius: var(--r-lg); background: var(--bg-soft); }
.notice h2 { font-size: 20px; }

.site-footer {
  display: none;
  gap: 6px;
  max-width: 600px;
  margin: 0 auto;
  padding: 8px var(--gutter) 32px;
  color: var(--text-3);
  font-size: 13px;
}
[data-route="inicio"] .site-footer, [data-route="anio"] .site-footer { display: grid; }
.site-footer a { color: var(--text-2); }

/* ---------- buttons & controls ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn .i { width: 20px; height: 20px; }
.btn:hover { filter: brightness(0.97); }
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink:hover { filter: none; opacity: 0.88; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  text-decoration: none;
}
.btn-icon--plain { background: transparent; }
.btn-icon--plain:hover { background: var(--bg-soft); }
.btn-icon.is-disabled { opacity: 0.3; pointer-events: none; }

.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-soft);
}
.seg button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
}
.seg button[aria-pressed="true"] { background: var(--bg-raised); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / 0.08); }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- page stacks (mobile; desktop turns them into columns) ---------- */

.home, .home-side, .split, .split-side { display: grid; gap: 36px; align-content: start; }
.home-main { display: grid; gap: 12px; }
.more { display: grid; gap: 12px; }

/* ---------- inicio: next holiday ---------- */

.next {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 36px 24px 28px;
  border-radius: var(--r-xl);
  background: var(--bg-soft);
  text-align: center;
}
.next-eyebrow { color: var(--text-2); font-size: 15px; font-weight: 600; }

.sheet {
  width: 128px;
  margin: 4px 0 8px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--bg-raised);
  box-shadow: var(--shadow);
  text-align: center;
}
.sheet-month {
  padding: 7px 0 6px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sheet-day { padding-top: 10px; font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.sheet-weekday { padding: 6px 0 14px; color: var(--text-2); font-size: 15px; }

.next-name { max-width: 18ch; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.next-count { color: var(--text-2); font-size: 18px; }
.next-count strong { color: var(--red); font-size: 30px; font-weight: 750; letter-spacing: -0.02em; }
.next-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.next-actions { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.next .btn:not(.btn--ink), .next .btn-icon { background: var(--bg-raised); }

/* ---------- rows ---------- */

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.rows > .row:last-child { border-bottom: 0; }
.row-date { text-align: center; line-height: 1; }
.row-day { display: block; color: var(--red); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.row-month { display: block; margin-top: 5px; color: var(--text-2); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.row-len b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.row-len span { display: block; margin-top: 5px; color: var(--text-2); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.row-title { font-size: 16px; font-weight: 600; line-height: 1.35; }
.row-sub { margin-top: 2px; color: var(--text-2); font-size: 14px; }
.row-end { color: var(--text-2); font-size: 14px; text-align: right; white-space: nowrap; }
.row.is-next .row-end { color: var(--red); font-weight: 600; }
.row.is-past :is(.row-day, .row-title, .row-month, .row-sub, .row-end, b, span) { color: var(--text-3); }

/* ---------- install ---------- */

.install {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 10px 14px 16px;
  border-radius: var(--r-lg);
  background: var(--bg-soft);
}
.install img { border-radius: 12px; }
.install-title { font-weight: 600; }
.install-sub { color: var(--text-2); font-size: 14px; }

/* ---------- calendar ---------- */

.yearnav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.yearnav-title { display: grid; justify-items: center; line-height: 1; }
.yearnav-title span { color: var(--text-2); font-size: 14px; font-weight: 600; }
.yearnav-title b { margin-top: 6px; font-size: 40px; font-weight: 750; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cal-head { display: grid; gap: 14px; }
.cal-head .yearnav { order: -1; }
.summary { color: var(--text-2); text-align: center; font-size: 15px; }

.yearpick { display: flex; align-items: center; gap: 4px; }
.yearpick .btn-icon { width: 36px; height: 36px; }
.yearpick .i { width: 18px; height: 18px; }
.yearpick span { min-width: 3.2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.months-list { display: grid; gap: 28px; }
.month h2 { margin-bottom: 2px; color: var(--text-2); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
.mm h3 { margin: 0 0 8px 4px; font-size: 15px; font-weight: 700; }
.mm-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; text-align: center; font-variant-numeric: tabular-nums; }
.mm-grid b { padding-bottom: 4px; color: var(--text-3); font-size: 10px; font-weight: 600; }
.mm-grid .d {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 12px;
}
.mm-grid .is-weekend { color: var(--text-3); }
.mm-grid .is-long { background: var(--red-soft); color: var(--text); }
.mm-grid .is-holiday { background: var(--red); color: #fff; font-weight: 700; }
.mm-grid .is-today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.mm-grid .is-selected { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--red); }

.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; color: var(--text-2); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 999px; background: var(--bg-soft); }
.legend i.h { background: var(--red); }
.legend i.l { background: var(--red-soft); }
.legend i.t { background: var(--ink); }
.planner .legend i { background: var(--bg-raised); }
.planner .legend i.h { background: var(--red); }
.planner .legend i.t { background: var(--ink); }
.legend i.today { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }

.day-detail {
  position: sticky;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px);
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: var(--bg-raised);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ---------- vacaciones ---------- */

.planner { display: grid; gap: 20px; padding: 28px 20px 20px; border-radius: var(--r-xl); background: var(--bg-soft); }
.planner-q { text-align: center; font-size: 18px; font-weight: 600; }
.budget { display: flex; align-items: center; justify-content: center; gap: 20px; }
.budget button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-raised);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
}
.budget output { min-width: 2ch; font-size: 60px; font-weight: 750; line-height: 1; text-align: center; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.budget-unit { margin-top: -14px; color: var(--text-2); text-align: center; }
.period { display: flex; justify-content: center; }
.period select { width: auto; min-height: 40px; border-radius: 999px; background-color: var(--bg-raised); }

.plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan { display: grid; gap: 8px; padding: 18px; border-radius: var(--r-lg); background: var(--bg-raised); }
.plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan-days { font-size: 17px; font-weight: 600; }
.plan-days b { margin-right: 4px; font-size: 30px; font-weight: 750; letter-spacing: -0.03em; }
.plan-ratio { color: var(--text-2); font-size: 14px; white-space: nowrap; }
.plan-range { color: var(--text-2); font-size: 15px; }
.plan-take { font-size: 15px; }
.plan-take span { color: var(--text-2); }

.strip { display: flex; flex-wrap: wrap; gap: 3px; }
.strip i {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--text-3);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}
.strip i.h { background: var(--red); color: #fff; }
.strip i.t { background: var(--ink); color: var(--on-ink); }

/* ---------- días hábiles ---------- */

.form { display: grid; gap: 18px; padding: 24px 20px; border-radius: var(--r-xl); background: var(--bg-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.label { color: var(--text-2); font-size: 14px; font-weight: 600; }
select, input[type="date"], input[type="number"] {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r);
  background: var(--bg-raised);
  color: var(--text);
  font-size: 16px; /* avoids zoom on iOS */
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}
input[type="date"] { -webkit-appearance: none; appearance: none; display: flex; align-items: center; }
input::-webkit-date-and-time-value { text-align: left; }
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.check input { width: 20px; height: 20px; flex: none; accent-color: var(--ink); }

.result { display: grid; gap: 4px; padding: 8px 4px; }
.result-label { color: var(--text-2); font-size: 15px; }
.result-big { font-size: 72px; font-weight: 750; line-height: 1.05; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.result-big--date { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; }
.result-sub { color: var(--text-2); }
.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 0; }
.stats dt { color: var(--text-2); font-size: 13px; }
.stats dd { margin: 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.result .rows { margin-top: 16px; border-top: 1px solid var(--line); }

/* ---------- más ---------- */

.group { display: grid; gap: 12px; padding: 24px 20px; border-radius: var(--r-xl); background: var(--bg-soft); }
.group h2 { font-size: 18px; font-weight: 700; }
.group p { color: var(--text-2); }
.group .seg { background: var(--bg-raised); }
.group .seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.group .btn:not(.btn--ink) { background: var(--bg-raised); justify-self: start; }
.years { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.years a {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: var(--r);
  background: var(--bg-raised);
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.years a:hover, .years a[aria-current="page"] { background: var(--ink); color: var(--on-ink); }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--text-2); }
.steps strong { color: var(--text); }
.steps .i { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; }
pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: var(--r);
  background: var(--bg-raised);
  font: 13px/1.55 var(--mono);
  white-space: pre-wrap;
  word-break: break-all;
}
.links { color: var(--text-2); font-size: 15px; }

/* ---------- dialog & toast ---------- */

dialog {
  width: min(420px, calc(100% - 32px));
  padding: 24px;
  border: 0;
  border-radius: 28px;
  background: var(--bg-raised);
  color: var(--text);
  box-shadow: var(--shadow);
}
dialog[open] { display: grid; gap: 16px; }
dialog::backdrop { background: rgb(0 0 0 / 0.35); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dialog-head h2 { font-size: 20px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 15px;
  font-weight: 500;
  box-shadow: var(--shadow);
  transform: translate(-50%, 12px);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- skeleton ---------- */

.skeleton { display: grid; gap: 16px; }
.sk { border-radius: var(--r-lg); background: var(--bg-soft); }
.sk-hero { height: 380px; border-radius: var(--r-xl); }
.sk-line { width: 50%; height: 22px; }
.sk-card { height: 64px; }
@media (prefers-reduced-motion: no-preference) {
  .sk { animation: pulse 1.2s ease-in-out infinite alternate; }
  @keyframes pulse { from { opacity: 1; } to { opacity: 0.55; } }
}

/* ---------- static year pages ---------- */

.breadcrumbs { color: var(--text-2); font-size: 14px; }
.breadcrumbs a { color: inherit; }
.lead { color: var(--text-2); font-size: 18px; }
.lead strong { color: var(--text); }
.faq { display: grid; gap: 18px; }
.faq h3 { font-size: 17px; font-weight: 650; }
.faq p { margin-top: 4px; color: var(--text-2); }
.cta { display: grid; gap: 12px; justify-items: start; padding: 28px 24px; border-radius: var(--r-xl); background: var(--bg-soft); }
.cta h2 { font-size: 22px; }
.cta p { color: var(--text-2); }

/* ---------- desktop ---------- */

@media (min-width: 640px) {
  .months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  :root { --gutter: 40px; --appbar-h: 72px; }
  body { padding-bottom: 0; font-size: 17px; }

  .tabbar {
    top: env(safe-area-inset-top);
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    height: var(--appbar-h);
    padding: 0;
    background: transparent;
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .tabbar a { flex-direction: row; gap: 8px; padding: 10px 16px; border-radius: 999px; color: var(--text-2); font-size: 15px; }
  .tabbar a:hover { color: var(--text); background: var(--bg-soft); }
  .tabbar a[aria-current="page"] { color: var(--text); background: var(--bg-soft); }
  .tabbar .i { width: 20px; height: 20px; }

  main { max-width: 1160px; gap: 48px; padding-top: 24px; padding-bottom: 80px; }
  .page { max-width: 760px; padding-top: 24px; padding-bottom: 80px; }
  .site-footer { max-width: 1160px; }
  .page-title { font-size: 44px; }

  .home { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
  .home-main { position: sticky; top: calc(var(--appbar-h) + 16px); display: grid; gap: 16px; }
  .home-side { gap: 44px; }
  .next { padding: 56px 40px 44px; }
  .sheet { width: 168px; border-radius: 28px; }
  .sheet-month { padding: 9px 0 8px; font-size: 14px; }
  .sheet-day { padding-top: 14px; font-size: 88px; }
  .sheet-weekday { padding-bottom: 18px; font-size: 17px; }
  .next-name { font-size: 34px; }
  .next-count { font-size: 20px; }
  .next-count strong { font-size: 38px; }

  .cal-head { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
  .cal-head .yearnav { order: 0; }
  .cal-head .seg { justify-self: end; min-width: 260px; }
  .cal-head .summary { margin: 0; text-align: left; }
  .months-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 56px; align-items: start; }
  .months { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 36px; }
  .mm-grid .d { font-size: 14px; }
  .day-detail { position: static; max-width: 560px; margin: 0 auto; width: 100%; }
  .strip i { width: 24px; height: 24px; border-radius: 8px; }
  .strip { gap: 4px; }

  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
  .split > :first-child { position: sticky; top: calc(var(--appbar-h) + 16px); }
  .split-side { gap: 44px; }
  .planner { padding: 36px 28px 28px; }

  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .more .group--wide { grid-column: 1 / -1; }

  .toast { bottom: 28px; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.appbar [aria-current="page"] { background: var(--bg-soft); }
.actions--start { justify-content: flex-start; }
