:root {
  color-scheme: light;
  --ink: #263448;
  --muted: #586779;
  --green: #7040b5;
  --green-dark: #542f91;
  --paper: #f3eee5;
  --white: #f9f6ef;
  --line: #e1d9cc;
  --orange: #e46c4f;
  --peach: #ffc45e;
  --soft-teal: #e3d8f7;
  --coral: #f28c72;
  --lavender: #e6dcf6;
  --brand-ink: #211a35;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.site-header, main, .site-footer {
  width: min(100% - 64px, 1100px);
  margin-inline: auto;
}

.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(38, 52, 72, .1);
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 800 24px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -1.1px;
}

.brand-mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: var(--green);
  filter: drop-shadow(0 6px 10px rgba(84, 47, 145, 0.18));
}
.brand-mark svg, .brand-mark img { display: block; width: 100%; height: 100%; }
.brand-mark img { border-radius: 10px; object-fit: contain; aspect-ratio: 1; }
.brand-mark { aspect-ratio: 1; }
.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: var(--brand-ink);
  letter-spacing: -1.4px;
}
.brand-name span {
  color: #7a4ed1;
  font-weight: inherit;
  letter-spacing: inherit;
}
.brand-name span::after { content: none; }

.hero {
  min-height: 475px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 51px 0 60px;
}

.hero-copy { padding-left: 5px; }
.eyebrow { margin: 0 0 15px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 1.55px; text-transform: uppercase; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

h1 {
  max-width: 460px;
  margin-bottom: 18px;
  font-size: clamp(47px, 5.5vw, 67px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -4px;
}

h1 span { color: var(--green); }
.hero-description { max-width: 395px; margin-bottom: 25px; color: #586779; font-size: 15px; line-height: 1.8; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.button:hover { transform: translateY(-1px); }
.button:focus-visible, .icon-button:focus-visible, .text-button:focus-visible { outline: 3px solid #bca1e2; outline-offset: 3px; }
.button-primary { color: var(--white); background: var(--green); box-shadow: 0 6px 16px rgba(112, 64, 181, .23); }
.button-primary:hover { background: var(--green-dark); }
.plus-icon { font-size: 19px; font-weight: 400; line-height: 1; }
.privacy-note { display: flex; align-items: center; gap: 8px; width: fit-content; margin: 15px 0 0; padding: 8px 11px; border: 1px solid #d9c9ef; border-radius: 7px; color: #49336b; background: #f0e9fa; font-size: 11px; font-weight: 600; }
.privacy-note svg { width: 15px; height: 15px; flex: 0 0 auto; color: #7040b5; }

.hero-art {
  position: relative;
  min-height: 325px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #ddd3eb 0%, #d9e1ec 55%, #f2d8b8 100%);
}

.art-sun {
  position: absolute;
  top: -60px;
  right: -21px;
  width: 212px;
  height: 212px;
  border-radius: 50%;
  background: var(--peach);
  opacity: .86;
}

.art-orbit { position: absolute; width: 315px; height: 315px; border: 1px solid rgba(112, 64, 181, .2); border-radius: 50%; }
.orbit-two { width: 385px; height: 385px; }

.art-card {
  position: relative;
  z-index: 1;
  width: min(78%, 325px);
  padding: 21px 23px 18px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 12px;
  background: rgba(255, 253, 250, .96);
  box-shadow: 0 18px 42px rgba(38, 52, 72, .19);
  transform: rotate(-3deg);
}

.art-card-top, .art-card-bottom { display: flex; align-items: center; justify-content: space-between; }
.art-pill { color: #586779; font-size: 7px; font-weight: 700; letter-spacing: 1px; }
.art-sparkle { color: var(--orange); font-size: 19px; }
.art-date { display: flex; align-items: baseline; gap: 8px; margin: 13px 0 12px; color: var(--green); font: 700 12px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 1px; }
.art-date strong { color: var(--ink); font-size: 57px; line-height: 1; letter-spacing: -4px; }
.art-divider { height: 1px; background: var(--line); }
.art-card-bottom { margin-top: 12px; color: #59675f; font-size: 10px; font-weight: 600; }
.art-days { color: var(--green); font-size: 9px; font-weight: 700; }
.art-star { position: absolute; color: #7040b5; }
.star-one { top: 51px; left: 19%; font-size: 20px; }
.star-two { right: 15%; bottom: 53px; color: var(--orange); font-size: 18px; }
.art-caption { position: absolute; right: 22px; bottom: 18px; color: #586779; font-size: 9px; font-style: italic; }

.countdowns { padding: 38px 0 50px; border-top: 1px solid rgba(38, 52, 72, .1); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading .eyebrow { margin-bottom: 9px; }
h2 { margin-bottom: 0; font-size: 25px; font-weight: 700; letter-spacing: -.9px; }
.count-badge { display: inline-grid; min-width: 22px; height: 22px; place-items: center; margin-left: 5px; padding: 0 6px; border-radius: 20px; color: var(--green); background: #dcebe7; font: 700 10px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; vertical-align: 4px; letter-spacing: 0; }
.button-secondary { color: #36475e; border-color: #d8d4c9; background: transparent; }
.button-secondary:hover { border-color: #aac7be; background: #f0f4ef; }
.button-secondary > span { font-size: 17px; font-weight: 400; }
.status-message { min-height: 0; margin: 0; color: #a04b42; font-size: 12px; }
.status-message:not(:empty) { margin-top: 14px; }

.event-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 25px; }
.event-card { position: relative; min-height: 164px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.event-card::before { position: absolute; top: -1px; left: 17px; width: 34px; height: 4px; border-radius: 0 0 4px 4px; background: var(--green); content: ""; }
.event-card:nth-child(3n + 2)::before { background: var(--orange); }
.event-card:nth-child(3n)::before { background: #7186ce; }
.event-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.event-date { color: #849087; font-size: 10px; font-weight: 600; }
.event-repeat { display: inline-flex; align-items: center; gap: 4px; color: #8b978f; font-size: 9px; }
.event-title { margin: 17px 0 2px; overflow: hidden; font: 700 14px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.event-countdown { display: flex; align-items: baseline; gap: 5px; color: var(--green); font: 700 23px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.7px; }
.event-countdown span { color: #8b958e; font: 500 10px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; }
.event-timer { margin: 3px 0 0; color: #586779; font-size: 11px; line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; }
.event-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.event-actions button { padding: 4px; border: 0; color: #596779; background: transparent; font-size: 10px; font-weight: 600; }
.event-actions button:hover { color: var(--green); }
.event-actions .event-delete:hover { color: #a04b42; }
.event-actions .countdown-lock,
.card-actions .countdown-lock { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: var(--green); }
.countdown-lock svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.countdown-lock.is-locked { color: #a04b42; }
.event-card-locked,
.stream-card-locked { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.event-actions .countdown-lock:focus-visible,
.card-actions .countdown-lock:focus-visible { outline: 3px solid #cdb9e8; outline-offset: 2px; }
.event-actions button:disabled, .holiday-share-button:disabled { cursor: wait; opacity: .65; }

.empty-state { padding: 24px 20px 7px; text-align: center; }
.empty-illustration { position: relative; width: 178px; height: 105px; margin: 0 auto 13px; overflow: hidden; }
.empty-sun { position: absolute; top: 4px; left: 72px; width: 36px; height: 36px; border-radius: 50%; background: var(--peach); box-shadow: 0 0 0 7px rgba(255, 196, 94, .18); }
.empty-hill { position: absolute; bottom: -34px; width: 175px; height: 90px; border-radius: 50% 50% 0 0; }
.hill-back { left: -54px; background: #dfd1f3; transform: rotate(-11deg); }
.hill-front { right: -52px; bottom: -47px; background: #c6afe8; transform: rotate(11deg); }
.empty-flower { position: absolute; top: 35px; right: 39px; color: #7040b5; font-size: 15px; }
.empty-state h3 { margin-bottom: 5px; font-size: 17px; letter-spacing: -.4px; }
.empty-state p { margin-bottom: 13px; color: var(--muted); font-size: 12px; }
.text-button { padding: 4px; border: 0; color: var(--green); background: transparent; font-size: 11px; font-weight: 700; }
.text-button span { padding-left: 3px; }

.holiday-hub { padding: 36px 0 42px; border-top: 1px solid rgba(38, 52, 72, .1); }
.holiday-hub .section-heading { align-items: center; }
.holiday-hub .holiday-tiles-toggle { width: 30px; height: 30px; margin-left: auto; }
.holiday-hub .holiday-tiles-toggle span { font-size: 18px; }
.holiday-preferences { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) auto; align-items: start; gap: 10px; margin: 18px 0 20px; padding: 14px; border: 1px solid #e7dfd2; border-radius: 9px; background: rgba(255,253,250,.8); }
.preference-field { display: grid; align-content: start; gap: 5px; }
.preference-field label { color: #46586b; font-size: 9px; font-weight: 700; }
.preference-help { color: #586779; font-size: 9px; font-weight: 400; line-height: 1.45; }
.holiday-preferences select { width: 100%; height: 36px; padding: 0 9px; border: 1px solid #d8d4c9; border-radius: 6px; color: var(--ink); background: var(--white); font-size: 10px; }
.holiday-preferences select:focus { outline: 2px solid #bca1e2; outline-offset: 1px; }
.preference-actions { display: flex; align-self: end; gap: 7px; }
.preference-actions .button { min-height: 36px; padding: 0 10px; font-size: 9px; white-space: nowrap; }
#preferences-status { grid-column: 1 / -1; min-height: 0; margin: 0; color: #46586b; font-size: 9px; }
#preferences-status:not(:empty) { margin-top: 2px; }
.holiday-intro { margin: 8px 0 18px; color: var(--muted); font-size: 12px; }
.holiday-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.holiday-link { position: relative; isolation: isolate; min-height: 110px; display: grid; grid-template-columns: 25px 1fr; grid-template-rows: auto auto auto; align-content: center; column-gap: 8px; overflow: hidden; padding: 14px; border: 1px solid color-mix(in srgb, var(--holiday-color, var(--green)) 22%, white); border-radius: 9px; background-color: color-mix(in srgb, var(--holiday-color, var(--green)) 9%, var(--white)); background-image: var(--holiday-background, none); transition: transform .18s ease, box-shadow .18s ease; }
.holiday-link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px color-mix(in srgb, var(--holiday-color, var(--green)) 18%, transparent); }
.holiday-link:focus-visible { outline: 3px solid var(--holiday-color, var(--green)); outline-offset: 3px; }
.holiday-link > span:first-child { position: relative; z-index: 1; grid-row: 1 / 4; align-self: center; color: var(--holiday-color, var(--green)); font-size: 20px; text-align: center; }
.holiday-link strong, .holiday-link small { position: relative; z-index: 1; }
.holiday-link .holiday-arrow { z-index: 1; }
.holiday-link strong { align-self: end; font: 700 12px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.holiday-link small { margin-top: 4px; color: #586779; font-size: 9px; }
.holiday-link .holiday-tile-timer { color: #36475e; font-size: 12px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
.holiday-arrow { position: absolute; top: 10px; right: 11px; color: #586779; font-size: 12px; }
.more-dates { margin-top: 16px; }
.more-dates summary { width: fit-content; padding: 8px 0; color: var(--green-dark); cursor: pointer; font-size: 11px; font-weight: 700; }
.more-dates summary:focus-visible { outline: 3px solid #bca1e2; outline-offset: 3px; border-radius: 3px; }
.more-date-guidance { margin: 3px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.more-holiday-grid { margin-top: 8px; }
.holiday-christmas { --holiday-color: #bd393e; }
.holiday-halloween, .holiday-bonfire-night { --holiday-color: #c54c17; }
.holiday-new-year { --holiday-color: #5755a5; }
.holiday-easter, .holiday-mothers-day { --holiday-color: #91447e; }
.holiday-valentines-day { --holiday-color: #bd3150; }
.holiday-fathers-day { --holiday-color: #176d91; }
.holiday-st-patricks-day { --holiday-color: #147341; }
.holiday-thanksgiving { --holiday-color: #a84c1b; }
.holiday-national-day { --holiday-color: #3e649b; }
.holiday-china-lunar-new-year,
.holiday-china-mid-autumn,
.holiday-japan-coming-of-age,
.holiday-japan-constitution-day,
.holiday-japan-sports-day,
.holiday-japan-labour-thanksgiving,
.holiday-germany-reformation-day,
.holiday-spain-three-kings,
.holiday-italy-epiphany { --holiday-color: #bd393e; }
.holiday-china-qingming,
.holiday-china-labour-day,
.holiday-japan-childrens-day,
.holiday-japan-greenery-day,
.holiday-japan-mountain-day,
.holiday-ireland-st-brigids-day,
.holiday-france-may-day,
.holiday-italy-republic-day { --holiday-color: #147341; }
.holiday-china-dragon-boat,
.holiday-japan-marine-day,
.holiday-ireland-june-bank-holiday,
.holiday-australia-anzac-day,
.holiday-spain-national-day { --holiday-color: #176d91; }
.holiday-japan-showa-day,
.holiday-japan-culture-day,
.holiday-japan-respect-aged-day,
.holiday-ireland-october-bank-holiday,
.holiday-france-music-day,
.holiday-spain-san-juan,
.holiday-italy-ferragosto { --holiday-color: #91447e; }
.holiday-ireland-june-bank-holiday,
.holiday-ireland-october-bank-holiday,
.holiday-france-bastille-day,
.holiday-germany-unity-day { --holiday-color: #5755a5; }
.holiday-germany-nikolaus { --holiday-color: #c54c17; }
.holiday-uk-may-bank-holiday,
.holiday-uk-summer-bank-holiday,
.holiday-australia-anzac-day,
.holiday-australia-kings-birthday { --holiday-color: #3e649b; }

.holiday-new-year {
  --holiday-background: radial-gradient(ellipse at 82% 18%, rgba(255, 196, 94, .32), transparent 34%), radial-gradient(ellipse at 18% 92%, rgba(87, 85, 165, .16), transparent 48%), linear-gradient(125deg, rgba(255, 255, 255, .65), transparent 72%);
}
.holiday-valentines-day {
  --holiday-background: radial-gradient(ellipse at 88% 16%, rgba(189, 49, 80, .18), transparent 36%), radial-gradient(ellipse at 76% 100%, rgba(255, 196, 214, .5), transparent 52%), linear-gradient(135deg, rgba(255, 255, 255, .58), transparent);
}
.holiday-mothers-day, .holiday-ireland-st-brigids-day {
  --holiday-background: radial-gradient(ellipse at 90% 14%, rgba(145, 68, 126, .16), transparent 36%), radial-gradient(ellipse at 74% 100%, rgba(247, 200, 223, .48), transparent 52%), linear-gradient(135deg, rgba(255, 255, 255, .58), transparent);
}
.holiday-fathers-day {
  --holiday-background: radial-gradient(ellipse at 88% 18%, rgba(23, 109, 145, .2), transparent 37%), radial-gradient(ellipse at 72% 100%, rgba(165, 212, 227, .46), transparent 54%), linear-gradient(135deg, rgba(255, 255, 255, .6), transparent);
}
.holiday-easter {
  --holiday-background: radial-gradient(ellipse at 84% 20%, rgba(247, 200, 104, .29), transparent 34%), radial-gradient(ellipse at 76% 100%, rgba(190, 224, 190, .48), transparent 54%), linear-gradient(135deg, rgba(255, 255, 255, .65), transparent);
}
.holiday-st-patricks-day, .holiday-china-qingming, .holiday-japan-greenery-day {
  --holiday-background: radial-gradient(ellipse at 86% 14%, rgba(20, 115, 65, .19), transparent 37%), radial-gradient(ellipse at 75% 100%, rgba(186, 224, 184, .45), transparent 54%), linear-gradient(135deg, rgba(255, 255, 255, .6), transparent);
}
.holiday-thanksgiving, .holiday-germany-nikolaus, .holiday-italy-ferragosto {
  --holiday-background: radial-gradient(ellipse at 88% 15%, rgba(228, 108, 79, .22), transparent 37%), radial-gradient(ellipse at 75% 100%, rgba(255, 196, 94, .38), transparent 55%), linear-gradient(135deg, rgba(255, 255, 255, .58), transparent);
}
.holiday-halloween, .holiday-bonfire-night, .holiday-spain-san-juan {
  --holiday-background: radial-gradient(ellipse at 88% 16%, rgba(255, 165, 71, .31), transparent 36%), radial-gradient(ellipse at 76% 100%, rgba(83, 52, 119, .18), transparent 53%), linear-gradient(135deg, rgba(255, 255, 255, .57), transparent);
}
.holiday-christmas, .holiday-japan-coming-of-age, .holiday-japan-constitution-day,
.holiday-japan-culture-day, .holiday-japan-sports-day, .holiday-japan-labour-thanksgiving, .holiday-germany-reformation-day,
.holiday-spain-three-kings, .holiday-italy-epiphany {
  --holiday-background: radial-gradient(ellipse at 88% 15%, rgba(189, 57, 62, .17), transparent 37%), radial-gradient(ellipse at 72% 100%, rgba(166, 205, 169, .38), transparent 54%), linear-gradient(135deg, rgba(255, 255, 255, .58), transparent);
}
.holiday-christmas::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    radial-gradient(circle at 7% 9%, rgba(255, 255, 255, .9) 1.3px, transparent 2px),
    radial-gradient(circle at 22% 67%, rgba(255, 255, 255, .8) 1px, transparent 1.8px),
    radial-gradient(circle at 39% 28%, rgba(255, 255, 255, .86) 1.2px, transparent 2px),
    radial-gradient(circle at 54% 84%, rgba(255, 255, 255, .74) 1px, transparent 1.8px),
    radial-gradient(circle at 72% 46%, rgba(255, 255, 255, .9) 1.4px, transparent 2.2px),
    radial-gradient(circle at 91% 17%, rgba(255, 255, 255, .78) 1px, transparent 1.8px),
    radial-gradient(circle at 16% 42%, rgba(255, 255, 255, .86) 1.2px, transparent 2px),
    radial-gradient(circle at 63% 6%, rgba(255, 255, 255, .78) 1px, transparent 1.8px),
    radial-gradient(circle at 83% 93%, rgba(255, 255, 255, .88) 1.3px, transparent 2.1px);
  background-size: 100% 340px;
  content: "";
  opacity: .55;
  pointer-events: none;
  animation: holiday-snowfall 18s linear infinite;
}
.holiday-christmas::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    radial-gradient(circle at 14% 38%, rgba(255, 255, 255, .72) 1px, transparent 1.8px),
    radial-gradient(circle at 31% 12%, rgba(255, 255, 255, .88) 1.1px, transparent 2px),
    radial-gradient(circle at 48% 58%, rgba(255, 255, 255, .76) 1.3px, transparent 2px),
    radial-gradient(circle at 67% 23%, rgba(255, 255, 255, .84) 1px, transparent 1.8px),
    radial-gradient(circle at 84% 76%, rgba(255, 255, 255, .72) 1.2px, transparent 2px),
    radial-gradient(circle at 97% 51%, rgba(255, 255, 255, .9) 1px, transparent 1.8px),
    radial-gradient(circle at 9% 86%, rgba(255, 255, 255, .82) 1.1px, transparent 1.9px),
    radial-gradient(circle at 58% 39%, rgba(255, 255, 255, .88) 1.2px, transparent 2px),
    radial-gradient(circle at 76% 5%, rgba(255, 255, 255, .78) 1px, transparent 1.8px);
  background-size: 100% 480px;
  content: "";
  opacity: .45;
  pointer-events: none;
  animation: holiday-snowfall-slow 26s linear infinite;
}
@keyframes holiday-snowfall {
  from { background-position: 0 0; }
  to { background-position: 0 340px; }
}
@keyframes holiday-snowfall-slow {
  from { background-position: 0 0; }
  to { background-position: 0 480px; }
}
.holiday-uk-may-bank-holiday, .holiday-uk-spring-bank-holiday, .holiday-uk-summer-bank-holiday,
.holiday-ireland-june-bank-holiday, .holiday-ireland-october-bank-holiday,
.holiday-france-may-day, .holiday-italy-republic-day {
  --holiday-background: radial-gradient(ellipse at 88% 16%, rgba(20, 115, 65, .17), transparent 36%), radial-gradient(ellipse at 73% 100%, rgba(240, 221, 160, .43), transparent 53%), linear-gradient(135deg, rgba(255, 255, 255, .59), transparent);
}
.holiday-us-memorial-day, .holiday-us-labor-day, .holiday-canada-victoria-day,
.holiday-canada-labour-day, .holiday-australia-anzac-day, .holiday-australia-kings-birthday,
.holiday-china-dragon-boat, .holiday-japan-marine-day, .holiday-japan-mountain-day,
.holiday-spain-national-day, .holiday-france-bastille-day, .holiday-germany-unity-day {
  --holiday-background: radial-gradient(ellipse at 88% 16%, rgba(23, 109, 145, .2), transparent 37%), radial-gradient(ellipse at 72% 100%, rgba(168, 207, 231, .43), transparent 53%), linear-gradient(135deg, rgba(255, 255, 255, .59), transparent);
}
.holiday-china-lunar-new-year, .holiday-china-mid-autumn,
.holiday-japan-showa-day, .holiday-japan-respect-aged-day,
.holiday-france-music-day, .holiday-germany-reformation-day,
.holiday-italy-epiphany, .holiday-italy-ferragosto {
  --holiday-background: radial-gradient(ellipse at 88% 16%, rgba(145, 68, 126, .18), transparent 37%), radial-gradient(ellipse at 72% 100%, rgba(213, 195, 235, .46), transparent 54%), linear-gradient(135deg, rgba(255, 255, 255, .58), transparent);
}
.holiday-china-labour-day, .holiday-japan-childrens-day,
.holiday-france-may-day, .holiday-ireland-st-brigids-day {
  --holiday-background: radial-gradient(ellipse at 88% 16%, rgba(20, 115, 65, .18), transparent 37%), radial-gradient(ellipse at 72% 100%, rgba(220, 221, 155, .4), transparent 53%), linear-gradient(135deg, rgba(255, 255, 255, .58), transparent);
}
.holiday-spain-three-kings, .holiday-spain-national-day, .holiday-spain-san-juan {
  --holiday-background: radial-gradient(ellipse at 88% 15%, rgba(228, 108, 79, .22), transparent 37%), radial-gradient(ellipse at 72% 100%, rgba(255, 196, 94, .38), transparent 54%), linear-gradient(135deg, rgba(255, 255, 255, .58), transparent);
}
.holiday-national-day.holiday-region-us { --holiday-background: radial-gradient(ellipse at 90% 12%, rgba(189, 57, 62, .19), transparent 37%), radial-gradient(ellipse at 73% 100%, rgba(62, 100, 155, .19), transparent 54%), linear-gradient(135deg, rgba(255, 255, 255, .58), transparent); }
.holiday-national-day.holiday-region-canada { --holiday-background: radial-gradient(ellipse at 87% 14%, rgba(189, 57, 62, .22), transparent 39%), radial-gradient(ellipse at 72% 100%, rgba(255, 255, 255, .85), transparent 58%), linear-gradient(135deg, rgba(255, 255, 255, .6), transparent); }
.holiday-national-day.holiday-region-australia { --holiday-background: radial-gradient(ellipse at 87% 14%, rgba(255, 196, 94, .3), transparent 38%), radial-gradient(ellipse at 74% 100%, rgba(62, 100, 155, .18), transparent 55%), linear-gradient(135deg, rgba(255, 255, 255, .58), transparent); }
.holiday-national-day.holiday-region-china { --holiday-background: radial-gradient(ellipse at 88% 14%, rgba(189, 57, 62, .2), transparent 38%), radial-gradient(ellipse at 74% 100%, rgba(255, 196, 94, .28), transparent 54%), linear-gradient(135deg, rgba(255, 255, 255, .58), transparent); }
.holiday-national-day.holiday-region-japan { --holiday-background: radial-gradient(ellipse at 88% 14%, rgba(189, 49, 80, .16), transparent 38%), radial-gradient(ellipse at 74% 100%, rgba(255, 255, 255, .75), transparent 54%), linear-gradient(135deg, rgba(255, 255, 255, .58), transparent); }
.holiday-uk-spring-bank-holiday,
.holiday-canada-victoria-day { --holiday-color: #91447e; }
.holiday-us-memorial-day,
.holiday-us-labor-day,
.holiday-canada-labour-day { --holiday-color: #5755a5; }

.holiday-back-link { display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px; border-radius: 18px; color: #46586b; font-size: 11px; font-weight: 600; white-space: nowrap; }
.holiday-back-link:hover, .breadcrumb:hover { color: var(--green); }
.holiday-page-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 4px; }
.holiday-page-nav .holiday-back-link { font-size: 13px; }
.holiday-page-nav .holiday-back-link:hover { background: var(--lavender); }
.holiday-page-nav .holiday-back-link[aria-current="page"] { color: var(--green); font-weight: 700; text-shadow: none; filter: none; }
.menu-toggle { display: none; min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--white); font-size: 13px; font-weight: 700; }
.menu-toggle:hover { border-color: #bca1e2; }
.menu-toggle:focus-visible { outline: 3px solid #bca1e2; outline-offset: 3px; }
.holiday-detail { padding-top: 25px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; color: #586779; font-size: 10px; }
.holiday-detail-hero { min-height: 405px; display: grid; grid-template-columns: 1fr minmax(270px, .7fr); align-items: center; gap: 60px; padding: 48px 4%; }
.holiday-detail-hero.has-decor { position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; background: radial-gradient(ellipse at 90% 12%, color-mix(in srgb, var(--decor-a) 20%, transparent), transparent 42%), radial-gradient(ellipse at 10% 100%, color-mix(in srgb, var(--decor-b) 26%, transparent), transparent 52%); }
.holiday-detail-hero.has-decor::before { position: absolute; z-index: 1; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--decor-a), var(--decor-b)); content: ""; }
.holiday-decor { position: absolute; z-index: -1; inset: 0; overflow: hidden; container-type: size; pointer-events: none; }
.decor-mark { position: absolute; right: 6%; top: 50%; translate: 0 -50%; rotate: -10deg; font-size: clamp(150px, 24vw, 280px); line-height: 1; opacity: .09; filter: saturate(.8); }
.decor-bit { position: absolute; left: var(--x); font-size: var(--s); line-height: 1; opacity: var(--o); }
.decor-fall .decor-bit { top: -12%; animation: decor-fall var(--d) linear var(--delay) infinite; }
.decor-rise .decor-bit { bottom: -12%; animation: decor-rise var(--d) ease-in var(--delay) infinite; }
.decor-float .decor-bit { top: var(--y); animation: decor-bob var(--d) ease-in-out var(--delay) infinite alternate; }
@keyframes decor-fall { to { translate: var(--drift) 118cqh; rotate: var(--spin); } }
@keyframes decor-rise { 70% { opacity: var(--o); } to { translate: var(--drift) -118cqh; rotate: var(--spin); opacity: 0; } }
@keyframes decor-bob { from { translate: 0 -10px; rotate: calc(var(--spin) / -6); } to { translate: var(--drift) 12px; rotate: calc(var(--spin) / 6); } }
@media (prefers-reduced-motion: reduce) {
  .decor-bit { animation: none !important; }
  .decor-fall .decor-bit, .decor-rise .decor-bit { top: var(--y); bottom: auto; }
}
@media (max-width: 760px) {
  .decor-bit:nth-child(n+11) { display: none; }
  .holiday-detail-hero.has-decor { padding-inline: 20px; }
}
.holiday-detail-copy .eyebrow { margin-bottom: 16px; }
.holiday-detail-copy h1 { max-width: 520px; font-size: clamp(43px, 5vw, 61px); }
.holiday-detail-copy h1 span { color: var(--holiday-accent, var(--green)); }
.holiday-detail-description { max-width: 420px; margin-bottom: 20px; color: #586779; font-size: 14px; line-height: 1.8; }
.holiday-date-line { display: flex; align-items: center; gap: 8px; margin: 0; color: #36475e; font-size: 12px; font-weight: 600; }
.holiday-date-line > span:first-child { color: var(--holiday-accent, var(--green)); font-size: 17px; }
.holiday-count-card { display: grid; justify-items: center; padding: 32px 22px 20px; border: 1px solid color-mix(in srgb, var(--holiday-accent, var(--green)) 20%, white); border-radius: 15px; background: linear-gradient(145deg, color-mix(in srgb, var(--holiday-accent, var(--green)) 10%, white), var(--white) 72%); box-shadow: 0 15px 42px rgba(38, 52, 72, .1); text-align: center; }
.holiday-count-caption { color: #586779; font-size: 8px; font-weight: 700; letter-spacing: 1.5px; }
.holiday-count-number { margin-top: 12px; color: var(--holiday-accent, var(--green)); font: 800 clamp(72px, 9vw, 100px)/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -7px; }
.holiday-count-label { margin-top: 6px; color: #46586b; font: 600 13px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.holiday-count-timer { margin: 8px 0 0; color: #46586b; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.holiday-save-button { margin-top: 24px; font-size: 11px; }
.holiday-save-button > span { font-size: 15px; }
.holiday-save-button:disabled { cursor: default; opacity: .77; transform: none; }
.holiday-share-button { margin-top: 9px; font-size: 11px; }
.holiday-save-status { min-height: 12px; margin: 10px 0 0; color: #46586b; font-size: 9px; }
.holiday-note { display: flex; align-items: flex-start; gap: 16px; max-width: 710px; margin: 32px auto 40px; padding: 22px 24px; border: 1px solid color-mix(in srgb, var(--holiday-accent, var(--green)) 20%, white); border-radius: 10px; background: color-mix(in srgb, var(--holiday-accent, var(--green)) 7%, var(--white)); }
.holiday-note-icon { flex: 0 0 34px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--holiday-accent, var(--green)); background: color-mix(in srgb, var(--holiday-accent, var(--green)) 15%, white); font-size: 19px; }
.holiday-note h2 { margin-bottom: 6px; font-size: 14px; letter-spacing: -.2px; }
.holiday-note p { margin-bottom: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.holiday-notes { max-width: 710px; margin: 0 auto 40px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.holiday-notes h2 { margin: 0 0 6px; font-size: 14px; letter-spacing: -.2px; }
.holiday-notes-help { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.holiday-notes textarea { display: block; width: 100%; min-height: 110px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper); font: 500 13px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; resize: vertical; }
.holiday-notes textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--holiday-accent, var(--green)) 45%, transparent); outline-offset: 2px; }
.holiday-notes-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-top: 10px; }
.holiday-notes-footer span { color: var(--muted); font-size: 11px; }
.holiday-notes-footer .button { min-height: 34px; padding-inline: 12px; font-size: 12px; }
.holiday-notes-footer .button[hidden] { display: none; }
.related-holidays { margin: 0 0 42px; }
.related-holidays .eyebrow { margin-bottom: 7px; }
.related-holidays h2 { margin-bottom: 14px; font-size: 20px; }
.related-holiday-list { display: flex; flex-wrap: wrap; gap: 8px; }
.related-holiday-link { padding: 8px 12px; border: 1px solid var(--line); border-radius: 20px; color: #49336b; background: var(--white); font-size: 11px; font-weight: 600; }
.related-holiday-link:hover, .related-holiday-link:focus-visible { border-color: #bca1e2; background: #f0e9fa; }

.season-page { padding-top: 25px; }
.season-hero { padding: 48px 4% 35px; }
.season-hero h1 { max-width: 740px; font-size: clamp(43px, 5vw, 61px); }
.season-hero h1 span { color: var(--green); }
.season-intro { max-width: 700px; margin: 14px 0 0; color: #586779; font-size: 14px; line-height: 1.8; }
.season-preferences { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(190px, 1fr) minmax(110px, .45fr) auto; align-items: end; gap: 12px; margin: 8px 0 22px; padding: 16px; border: 1px solid #e7dfd2; border-radius: 10px; background: rgba(255,253,250,.8); }
.season-preferences label { display: grid; gap: 6px; color: #46586b; font-size: 10px; font-weight: 700; }
.season-preferences select { width: 100%; height: 38px; padding: 0 9px; border: 1px solid #d8d4c9; border-radius: 6px; color: var(--ink); background: var(--white); font-size: 11px; }
.season-preferences select:focus { outline: 2px solid #bca1e2; outline-offset: 1px; }
.season-preferences .button { min-height: 38px; padding-inline: 14px; font-size: 10px; }
.season-status { grid-column: 1 / -1; min-height: 0; margin: 0; color: #46586b; font-size: 10px; }
.season-status:not(:empty) { margin-top: -4px; }
.season-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; }
.season-card { display: grid; gap: 15px; padding: 18px; border: 1px solid color-mix(in srgb, var(--season-accent) 25%, white); border-radius: 12px; background: linear-gradient(145deg, color-mix(in srgb, var(--season-accent) 12%, white), var(--white) 78%); }
.season-card h2 { margin: 0; color: var(--season-accent); font-size: 17px; }
.season-date { display: grid; gap: 5px; padding-top: 12px; border-top: 1px solid var(--line); }
.season-date-label { color: #586779; font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.season-date-value { color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.6; }
.season-note { margin: 0 0 44px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.season-note p { margin: 0; color: #586779; font-size: 11px; line-height: 1.8; }
.season-note p + p { margin-top: 9px; }
.season-note a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.shared-countdown { width: min(100% - 64px, 700px); min-height: 65vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 58px 0; text-align: center; }
.shared-countdown > .eyebrow { margin-bottom: 12px; }
.shared-countdown h1 { max-width: 650px; margin-bottom: 12px; font-size: clamp(42px, 7vw, 64px); }
.shared-intro { max-width: 480px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.shared-card { width: min(100%, 390px); display: grid; justify-items: center; margin-top: 19px; padding: 30px 20px 18px; border: 1px solid color-mix(in srgb, var(--holiday-accent, var(--green)) 20%, white); border-radius: 15px; background: linear-gradient(145deg, color-mix(in srgb, var(--holiday-accent, var(--green)) 10%, white), var(--white) 72%); box-shadow: 0 15px 42px rgba(38, 52, 72, .1); }
.shared-date { margin: 10px 0 0; color: #46586b; font-size: 12px; font-weight: 600; }
.shared-card .holiday-count-timer { margin-top: 9px; }
.shared-card .button { margin-top: 19px; font-size: 11px; }
.shared-footer-note { margin-top: 28px; color: var(--muted); font-size: 10px; }
.shared-footer-note a { color: var(--green); font-weight: 700; }
.share-page .site-footer { width: min(100% - 64px, 1100px); }

.site-footer { min-height: 79px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 18px; padding-block: 12px; border-top: 1px solid rgba(38, 52, 72, .1); }
.brand-footer { gap: 7px; font-size: 17px; }
.brand-footer .brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
.site-footer .brand-footer { grid-column: 1; grid-row: 1; justify-self: start; }
.site-footer p { grid-column: 1; grid-row: 2; margin: 2px 0 0; color: #586779; font-size: 10px; }
.footer-year { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; color: #586779; font-size: 10px; }
.footer-policy-link { grid-column: 2; grid-row: 1; align-self: end; }
.footer-policy-link + .footer-year { grid-row: 2; align-self: start; }

.storage-notice {
  position: fixed;
  z-index: 10;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(100% - 40px, 440px);
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 10px 34px rgba(38, 52, 72, .18);
}
.storage-notice-copy { flex: 1; }
.storage-notice-copy strong { font: 700 12px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.storage-notice-copy p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.storage-notice-copy a, .footer-policy-link { color: var(--green); font-size: 10px; font-weight: 700; }
.storage-notice-copy a { display: inline-block; margin-top: 5px; }
.footer-policy-link { flex: 0 0 auto; }
.footer-links { grid-column: 2; grid-row: 1; align-self: end; display: flex; gap: 14px; }
.footer-links .footer-policy-link { grid-column: auto; grid-row: auto; align-self: auto; }
.footer-links + .footer-year { grid-row: 2; align-self: start; }

.contact-intro { max-width: 640px; margin-bottom: 26px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.contact-card { padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.contact-card h2 { margin-bottom: 14px; font-size: 18px; }
.contact-card form, .contact-card #contact-fallback { display: grid; gap: 14px; }
.contact-card label { display: grid; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 700; }
.contact-card input[type="text"], .contact-card input[type="email"], .contact-card select, .contact-card textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--paper); font: inherit; font-size: 13px; font-weight: 400; }
.contact-card textarea { resize: vertical; line-height: 1.6; }
.contact-optional, .contact-count { color: var(--muted); font-weight: 400; }
.contact-count { justify-self: end; font-size: 11px; }
.contact-card label.contact-check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.contact-actions, .contact-card #contact-fallback .button { justify-self: start; }
.contact-card .shift-status { margin-top: 12px; color: var(--muted); }
.contact-card #contact-fallback { margin-top: 14px; }
.contact-card [hidden] { display: none !important; }
.contact-direct { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.contact-direct a { color: var(--green); font-weight: 700; }
[data-theme="dark"] .contact-card { background: #231f2b; }
[data-theme="dark"] .contact-card input, [data-theme="dark"] .contact-card select, [data-theme="dark"] .contact-card textarea { background: #18161e; border-color: #554d60; }
[data-theme="dark"] .contact-intro, [data-theme="dark"] .contact-direct { color: #c9c2d6; }
@media (max-width: 560px) { .contact-card { padding: 18px; } }

.privacy-page { max-width: 760px; min-height: 65vh; padding-block: 54px 70px; }
.privacy-page h1 { margin-bottom: 12px; font-size: clamp(42px, 6vw, 60px); }
.privacy-page h1 span { color: var(--green); }
.privacy-updated { margin-bottom: 34px; color: var(--muted); font-size: 12px; }
.privacy-section { margin-top: 26px; }
.privacy-section h2 { margin-bottom: 9px; font-size: 18px; }
.privacy-section p { max-width: 700px; margin-bottom: 11px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.storage-notice-dismiss { flex: 0 0 auto; min-height: 36px; padding: 0 13px; border: 0; border-radius: 7px; color: var(--white); background: var(--green); font-size: 11px; font-weight: 700; }
.storage-notice-dismiss:hover { background: var(--green-dark); }
.storage-notice-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.storage-notice-decline { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.storage-notice-decline:hover { background: var(--paper); }
.cookie-settings-button { padding: 0; border: 0; color: var(--green); background: none; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.storage-notice-dismiss:focus-visible { outline: 3px solid #bca1e2; outline-offset: 3px; }

.event-dialog { width: min(100% - 32px, 440px); max-width: none; padding: 26px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--paper); box-shadow: 0 20px 65px rgba(38, 52, 72, .22); }
.event-dialog::backdrop { background: rgba(38, 52, 72, .4); backdrop-filter: blur(3px); }
.event-dialog form { display: grid; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.dialog-heading .eyebrow { margin-bottom: 8px; }
.dialog-heading h2 { font-size: 23px; }
.icon-button { width: 31px; height: 31px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: #46586b; background: var(--white); font-size: 22px; line-height: 1; }
.event-dialog label:not(.check-row),
.event-date-label { margin: 0 0 7px; color: #36475e; font-size: 11px; font-weight: 700; }
.event-dialog input[type="text"] { width: 100%; height: 43px; margin-bottom: 17px; padding: 0 12px; border: 1px solid #d8d4c9; border-radius: 7px; outline: 0; color: var(--ink); background: var(--white); font-size: 12px; }
.event-dialog input:focus { border-color: #398b7e; box-shadow: 0 0 0 3px rgba(57, 139, 126, .17); }
.event-date-trigger { margin-bottom: 17px; }
.event-date-trigger[aria-invalid="true"] { border-color: #a33043; }
.event-date-picker { z-index: 1; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 1px 0 0; cursor: pointer; }
.check-row input { width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--green); }
.check-copy { display: grid; gap: 3px; }
.check-copy strong { font-size: 11px; }
.check-copy span { color: var(--muted); font-size: 10px; }
.form-error { min-height: 0; margin: 0; color: #a13e36; font-size: 11px; }
.form-error:not(:empty) { margin-top: 13px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.dialog-actions .button { min-height: 40px; font-size: 11px; }

@media (max-width: 760px) {
  .site-header, main, .site-footer { width: min(100% - 40px, 560px); }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 33px; padding: 48px 0 44px; }
  .hero-copy { padding-left: 0; }
  h1 { font-size: clamp(49px, 11vw, 66px); }
  .hero-art { min-height: 270px; }
  .art-card { width: min(77%, 325px); }
  .holiday-detail-hero { min-height: 0; grid-template-columns: 1fr; gap: 28px; padding: 43px 0 35px; }
  .holiday-detail-copy h1 { font-size: clamp(47px, 10vw, 62px); }
  .season-hero { padding: 43px 0 25px; }
  .season-hero h1 { font-size: clamp(47px, 10vw, 62px); }
  .season-preferences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season-preferences .button { grid-column: 1 / -1; }
  .holiday-count-card { width: min(100%, 400px); justify-self: center; }
  .holiday-note { margin-top: 24px; margin-bottom: 30px; }
  .countdowns { padding-top: 32px; }
  .event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .holiday-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .holiday-preferences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preference-actions { grid-column: 1 / -1; }
}

@media (min-width: 761px) {
  .preference-actions { align-self: start; padding-top: 17px; }
}

@media (max-width: 480px) {
  .storage-notice { right: 12px; bottom: 12px; width: calc(100% - 24px); gap: 12px; padding: 14px; }
  .site-header, main, .site-footer { width: calc(100% - 36px); }
  .site-header { height: auto; min-height: 70px; }
  .holiday-back-link { font-size: 10px; }
  .brand { gap: 7px; font-size: 21px; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .brand-footer { font-size: 16px; }
  .brand-footer .brand-mark { width: 28px; height: 28px; flex-basis: 28px; }
  .hero { padding-top: 40px; }
  .hero-description { font-size: 14px; }
  .hero-art { min-height: 235px; }
  .holiday-detail { padding-top: 20px; }
  .holiday-detail-hero { padding-top: 34px; }
  .holiday-detail-copy h1 { font-size: 47px; letter-spacing: -2.8px; }
  .season-page { padding-top: 20px; }
  .season-preferences { grid-template-columns: 1fr; }
  .season-preferences .button { grid-column: auto; }
  .season-grid { grid-template-columns: 1fr; gap: 9px; }
  .season-card { gap: 12px; padding: 15px; }
  .holiday-count-number { font-size: 76px; }
  .holiday-note { gap: 11px; padding: 17px 14px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 21px; }
  .section-heading > .button { min-height: 38px; padding-inline: 10px; font-size: 10px; }
  .holiday-hub .section-heading { align-items: center; }
  .holiday-preferences { grid-template-columns: 1fr; gap: 9px; }
  .preference-actions { grid-column: auto; }
  .preference-actions .button { flex: 1; }
  .holiday-grid { gap: 8px; }
  .holiday-link { min-height: 86px; padding: 11px 9px; grid-template-columns: 22px 1fr; column-gap: 6px; }
  .holiday-link strong { font-size: 10px; }
  .holiday-link small { font-size: 8px; }
  .holiday-link .holiday-tile-timer { font-size: 10px; }
  .event-list { grid-template-columns: 1fr; gap: 9px; margin-top: 19px; }
  .event-card { min-height: 142px; }
  .site-footer { min-height: 74px; row-gap: 2px; padding: 13px 0; }
  .footer-year { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.stream-page [hidden] { display: none !important; }
.stream-page main { min-height: 65vh; }
.stream-page .stream-hero {
  min-height: 0;
  display: block;
  padding: 51px 0 30px;
}
.stream-page .stream-hero-copy { max-width: 700px; }
.stream-page .stream-hero h1 { max-width: 680px; margin-bottom: 13px; }
.stream-page .intro { max-width: 650px; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.stream-create-panel {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(38, 52, 72, .05);
}
.stream-create-panel .section-heading { align-items: center; }
.stream-create-panel .section-heading .eyebrow,
.stream-section .section-heading .eyebrow { margin-bottom: 5px; }
.stream-create-panel h2,
.stream-section h2 { font-size: 22px; letter-spacing: -.6px; }
.stream-create-panel .privacy-note { margin: 0; }
#stream-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 15px;
  margin-top: 21px;
}
.stream-field { display: grid; align-content: start; gap: 6px; color: #45405e; font-size: 11px; font-weight: 700; }
.stream-field-wide { grid-column: 1 / -1; }
.stream-field input,
.stream-field select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  border: 1px solid #d9d3e4;
  border-radius: 7px;
  color: var(--ink);
  background: var(--white);
  font: 400 12px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.stream-field input:focus,
.stream-field select:focus { outline: 3px solid #d6c5ee; outline-offset: 1px; border-color: var(--green); }
.date-time-trigger { width: 100%; min-width: 0; height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 11px; border: 1px solid #d9d3e4; border-radius: 7px; color: var(--ink); background: var(--white); font: 400 12px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-align: left; }
.date-time-trigger:hover { border-color: var(--green); }
.date-time-trigger:focus-visible { outline: 3px solid #d6c5ee; outline-offset: 1px; border-color: var(--green); }
.date-time-trigger[aria-invalid="true"] { border-color: #a33043; }
.date-time-trigger-icon { color: var(--green); font-size: 17px; }
.date-time-dialog { width: min(100% - 32px, 430px); max-width: none; padding: 22px; border: 1px solid #d9d3e4; border-radius: 15px; color: var(--ink); background: var(--white); box-shadow: 0 20px 65px rgba(38, 52, 72, .22); }
.date-time-dialog::backdrop { background: rgba(30, 25, 40, .55); backdrop-filter: blur(3px); }
.date-time-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.date-time-dialog-heading .eyebrow { margin-bottom: 5px; }
.date-time-dialog-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.5px; }
.date-time-dialog .icon-button { flex: 0 0 auto; }
.calendar-heading { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 8px; margin: 20px 0 12px; }
.calendar-heading h3 { margin: 0; font-size: 14px; text-align: center; }
.calendar-nav-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; color: var(--green); background: transparent; font-size: 17px; }
.calendar-nav-button:hover:not(:disabled) { border-color: var(--green); background: #f0e9fa; }
.calendar-nav-button:disabled { cursor: default; opacity: .4; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.calendar-weekdays { margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 700; text-align: center; }
.calendar-weekdays span { padding-block: 5px; }
.calendar-day { width: 100%; aspect-ratio: 1; border: 1px solid transparent; border-radius: 9px; color: var(--ink); background: transparent; font: 500 12px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.calendar-day:hover:not(:disabled) { border-color: #cdb9e8; background: #f0e9fa; }
.calendar-day:focus-visible, .calendar-nav-button:focus-visible { outline: 3px solid #cdb9e8; outline-offset: 2px; }
.calendar-day[aria-pressed="true"] { border-color: var(--green); color: #fff; background: var(--green); font-weight: 700; }
.calendar-day[data-today="true"]:not([aria-pressed="true"]) { border-color: var(--green); color: var(--green); font-weight: 700; }
.calendar-day:disabled { cursor: default; opacity: .35; }
.picker-time-row { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-top: 19px; padding-top: 15px; border-top: 1px solid var(--line); }
.picker-time-row > label { display: grid; gap: 7px; color: #46586b; font-size: 10px; font-weight: 700; }
.event-picker-time-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.event-time-toggle { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; cursor: pointer; }
.event-time-toggle input { width: 15px; height: 15px; margin: 0; accent-color: var(--green); }
.event-picker-time-row > p { grid-column: 1 / -1; justify-self: start; margin: 0; text-align: left; }
.picker-time-selects { display: flex; align-items: center; gap: 6px; }
.picker-time-selects select { width: 68px; height: 38px; padding: 0 8px; border: 1px solid #d9d3e4; border-radius: 7px; color: var(--ink); background: var(--white); font: 500 13px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.picker-time-selects select:focus { outline: 3px solid #d6c5ee; outline-offset: 1px; border-color: var(--green); }
.picker-time-row > p { margin: 0 0 10px; color: var(--muted); font-size: 10px; text-align: right; }
.picker-error { min-height: 0; margin: 0; color: #a33043; font-size: 11px; line-height: 1.5; }
.picker-error:not(:empty) { margin-top: 13px; }
.date-time-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.date-time-dialog-actions .button { min-height: 38px; padding-inline: 16px; font-size: 11px; }
.stream-optional { color: var(--muted); font-size: 10px; font-weight: 400; }
.stream-field-help { grid-column: 1 / -1; margin: -5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.stream-form-error { grid-column: 1 / -1; color: #a33043; }
.stream-form-error:not(:empty) { margin-top: -5px; }
.stream-submit { justify-self: start; }
.stream-cancel-edit { justify-self: start; }
.stream-cancel-edit[hidden] { display: none; }
.stream-section { padding: 40px 0; }
.stream-section .section-heading { align-items: center; }
.stream-section .count-badge { color: var(--green); background: #e6dcf6; }
.stream-status { color: var(--muted); font-size: 11px; }
.stream-status:not(:empty) { margin-top: 10px; }
.stream-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 17px; }
.stream-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(135deg, color-mix(in srgb, var(--green) 8%, var(--white)), var(--white) 62%, color-mix(in srgb, var(--peach) 12%, var(--white))); }
.stream-card h3 { overflow-wrap: anywhere; margin: 0 0 7px; font-size: 16px; }
.stream-date { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.stream-page .timer { margin: 13px 0 5px; color: var(--green); font-size: clamp(18px, 3vw, 24px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.6px; }
.timer-state { margin: 0; color: var(--muted); font-size: 9px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.card-actions a,
.card-actions button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #d9d3e4;
  border-radius: 6px;
  color: #49445f;
  background: transparent;
  font: 700 10px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}
.card-actions a:hover,
.card-actions button:hover { border-color: var(--green); color: var(--green); }
.card-actions .countdown-lock { border-color: transparent; }
.card-actions .countdown-lock:hover { border-color: transparent; color: var(--green); }
.card-actions .delete-button { margin-left: auto; color: #8d4752; }
.card-actions .stream-link { color: var(--green); }
.stream-page .shared-card { max-width: 640px; margin: 44px auto; padding: 30px; }
.stream-page .shared-card .timer { font-size: clamp(24px, 6vw, 40px); }
.stream-page .shared-card .button { margin-top: 17px; }
.stream-empty-state { padding: 32px 16px; }
.stream-empty-play {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 14px;
  color: var(--green);
  background: #e6dcf6;
}
.stream-empty-state h3 { margin-bottom: 5px; font-size: 16px; }
.stream-empty-state p { margin-bottom: 0; color: var(--muted); font-size: 11px; }

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2eef8;
  --muted: #bcb4c9;
  --green: #b99be9;
  --green-dark: #c9b3f0;
  --paper: #18161e;
  --white: #25222d;
  --line: #403a4a;
  --soft-teal: #332a40;
  --lavender: #342a43;
}

[data-theme="dark"] body { color: var(--ink); background: var(--paper); }
[data-theme="dark"] .site-header,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .countdowns { border-color: #393441; }
[data-theme="dark"] .event-countdown,
[data-theme="dark"] .holiday-count-number,
[data-theme="dark"] .hero-description,
[data-theme="dark"] .holiday-detail-description,
[data-theme="dark"] .holiday-date-line,
[data-theme="dark"] .shared-date { color: #d0c9d9; }
[data-theme="dark"] .brand-name {
  color: #f5f0e5;
}
[data-theme="dark"] .brand-name span {
  color: #ae85f5;
}
[data-theme="dark"] .privacy-note { border-color: #514166; color: #e0d0f7; background: #30273d; }
[data-theme="dark"] .hero-art { background: linear-gradient(135deg, #302542 0%, #293044 55%, #443126 100%); }
[data-theme="dark"] .art-orbit { border-color: rgba(205, 182, 244, .24); }
[data-theme="dark"] .art-card { border-color: rgba(255, 255, 255, .12); background: rgba(37, 34, 45, .97); }
[data-theme="dark"] .art-pill,
[data-theme="dark"] .art-caption,
[data-theme="dark"] .art-card-bottom { color: #c7bfd0; }
[data-theme="dark"] .count-badge,
[data-theme="dark"] .stream-section .count-badge { color: #dfcef9; background: #3b304a; }
[data-theme="dark"] .button-secondary { color: #e0d9eb; border-color: #554d60; }
[data-theme="dark"] .button-secondary:hover { border-color: #8973aa; background: #302a39; }
[data-theme="dark"] .status-message { color: #f0a39b; }
[data-theme="dark"] .event-date,
[data-theme="dark"] .event-repeat,
[data-theme="dark"] .event-countdown span { color: #b9b1c3; }
[data-theme="dark"] .event-timer { color: #cbc3d4; }
[data-theme="dark"] .event-actions button { color: #c5bdcf; }
[data-theme="dark"] .event-actions .countdown-lock,
[data-theme="dark"] .card-actions .countdown-lock { color: #c9b3f0; }
[data-theme="dark"] .countdown-lock.is-locked { color: #f0aaa4; }
[data-theme="dark"] .holiday-back-link,
[data-theme="dark"] .breadcrumb { color: #d0c8d9; border-color: #554d60; }
[data-theme="dark"] .holiday-preferences { border-color: var(--line); background: #211e28; }
[data-theme="dark"] .preference-field label,
[data-theme="dark"] .holiday-date-line,
[data-theme="dark"] .holiday-count-label,
[data-theme="dark"] .holiday-count-timer { color: #ddd6e7; }
[data-theme="dark"] .holiday-preferences select,
[data-theme="dark"] .stream-field input,
[data-theme="dark"] .stream-field select,
[data-theme="dark"] .event-dialog input[type="text"] { color: var(--ink); border-color: #554d60; background: #211e28; }
[data-theme="dark"] .event-date-trigger { color: var(--ink); border-color: #554d60; background: #211e28; }
[data-theme="dark"] .preference-help,
[data-theme="dark"] .holiday-intro { color: #bcb4c9; }
[data-theme="dark"] .holiday-link { background-color: color-mix(in srgb, var(--holiday-color, var(--green)) 20%, var(--white)); background-blend-mode: soft-light; }
[data-theme="dark"] .holiday-link small,
[data-theme="dark"] .holiday-link .holiday-tile-timer,
[data-theme="dark"] .holiday-arrow { color: #d1c9dc; }
[data-theme="dark"] .holiday-count-card,
[data-theme="dark"] .shared-card { border-color: color-mix(in srgb, var(--holiday-accent, var(--green)) 38%, #403a4a); background: linear-gradient(145deg, color-mix(in srgb, var(--holiday-accent, var(--green)) 20%, #25222d), var(--white) 72%); }
[data-theme="dark"] .holiday-count-caption,
[data-theme="dark"] .holiday-count-label,
[data-theme="dark"] .holiday-count-timer,
[data-theme="dark"] .holiday-save-status { color: #ddd6e7; }
[data-theme="dark"] .holiday-note { border-color: color-mix(in srgb, var(--holiday-accent, var(--green)) 38%, #403a4a); background: color-mix(in srgb, var(--holiday-accent, var(--green)) 14%, #25222d); }
[data-theme="dark"] .holiday-note p { color: #d0c9d9; }
[data-theme="dark"] .season-intro,
[data-theme="dark"] .season-note p { color: #d0c9d9; }
[data-theme="dark"] .season-status { color: #d0c9d9; }
[data-theme="dark"] .season-preferences { border-color: var(--line); background: #211e28; }
[data-theme="dark"] .season-preferences label,
[data-theme="dark"] .season-date-label { color: #bcb4c9; }
[data-theme="dark"] .season-preferences select { color: var(--ink); border-color: #554d60; background: #211e28; }
[data-theme="dark"] .season-card { border-color: color-mix(in srgb, var(--season-accent) 38%, #403a4a); background: linear-gradient(145deg, color-mix(in srgb, var(--season-accent) 19%, #25222d), var(--white) 78%); }
[data-theme="dark"] .season-date-value { color: #e0d9eb; }
[data-theme="dark"] .season-note { border-color: var(--line); background: #211e28; }
[data-theme="dark"] .related-holiday-link { color: #e0d0f7; border-color: #554d60; background: #25222d; }
[data-theme="dark"] .related-holiday-link:hover,
[data-theme="dark"] .related-holiday-link:focus-visible { border-color: #8973aa; background: #302a39; }
[data-theme="dark"] .site-footer p,
[data-theme="dark"] .footer-year { color: #bcb4c9; }
[data-theme="dark"] .storage-notice { border-color: #554d60; background: #25222d; }
[data-theme="dark"] .privacy-section p,
[data-theme="dark"] .privacy-updated { color: #c5bdcf; }
[data-theme="dark"] .event-dialog { border-color: var(--line); color: var(--ink); background: var(--paper); }
[data-theme="dark"] .event-dialog::backdrop { background: rgba(8, 7, 12, .72); }
[data-theme="dark"] .event-dialog label:not(.check-row),
[data-theme="dark"] .event-date-label { color: #ded7e8; }
[data-theme="dark"] .check-copy span { color: #bcb4c9; }
[data-theme="dark"] .icon-button { color: #ded7e8; border-color: var(--line); background: var(--white); }
[data-theme="dark"] .stream-create-panel { border-color: var(--line); background: var(--white); }
[data-theme="dark"] .stream-card { border-color: #554d60; background: linear-gradient(135deg, color-mix(in srgb, var(--green) 15%, #25222d), #25222d 62%, color-mix(in srgb, var(--peach) 9%, #25222d)); }
[data-theme="dark"] .stream-field { color: #ded7e8; }
[data-theme="dark"] .date-time-trigger { color: var(--ink); border-color: #554d60; background: #211e28; }
[data-theme="dark"] .date-time-dialog { color: var(--ink); border-color: var(--line); background: var(--paper); }
[data-theme="dark"] .calendar-nav-button { color: #d5c2f4; border-color: var(--line); }
[data-theme="dark"] .calendar-nav-button:hover:not(:disabled),
[data-theme="dark"] .calendar-day:hover:not(:disabled) { background: #302a39; }
[data-theme="dark"] .calendar-day { color: #e0d9eb; }
[data-theme="dark"] .calendar-day[aria-pressed="true"] { color: #fff; background: var(--green); }
[data-theme="dark"] .calendar-day[data-today="true"]:not([aria-pressed="true"]) { color: #d5c2f4; }
[data-theme="dark"] .picker-time-row > label { color: #ded7e8; }
[data-theme="dark"] .picker-time-selects select { color: var(--ink); border-color: #554d60; background: #211e28; }
[data-theme="dark"] .stream-form-error { color: #f0a39b; }
[data-theme="dark"] .card-actions a,
[data-theme="dark"] .card-actions button { color: #e0d9eb; border-color: #554d60; }
[data-theme="dark"] .card-actions .countdown-lock { border-color: transparent; color: #c9b3f0; }
[data-theme="dark"] .card-actions .countdown-lock.is-locked { color: #f0aaa4; }
[data-theme="dark"] .card-actions a:hover,
[data-theme="dark"] .card-actions button:hover { border-color: #8973aa; color: #d5c2f4; }
[data-theme="dark"] .card-actions .delete-button { color: #f0aaa4; }
[data-theme="dark"] .timer-state,
[data-theme="dark"] .stream-date,
[data-theme="dark"] .stream-status { color: #c5bdcf; }
[data-theme="dark"] .stream-empty-play { color: #e0d0f7; background: #3b304a; }
[data-theme="dark"] .holiday-page-nav .holiday-back-link:hover,
[data-theme="dark"] .breadcrumb:hover { color: #d5c2f4; }
[data-theme="dark"] .holiday-page-nav .holiday-back-link[aria-current="page"] { color: #bca9d8; text-shadow: none; filter: none; }

.theme-toggle {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #d8d4c9;
  border-radius: 18px;
  color: #36475e;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
}
.theme-toggle:hover { border-color: #bca1e2; background: #f0e9fa; }
.theme-toggle:focus-visible { outline: 3px solid #bca1e2; outline-offset: 3px; }
[data-theme="dark"] .theme-toggle { color: #e0d9eb; border-color: #554d60; }
[data-theme="dark"] .theme-toggle:hover { border-color: #8973aa; background: #302a39; }
[data-theme="dark"] .menu-toggle { color: #e0d9eb; border-color: #554d60; background: #211e28; }
[data-theme="dark"] .menu-toggle:hover { border-color: #8973aa; }

@media (max-width: 760px) {
  .site-header { height: auto; min-height: 70px; flex-wrap: wrap; gap: 8px; padding-block: 10px; }
  .header-actions { width: 100%; justify-content: space-between; gap: 8px; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .holiday-page-nav { position: absolute; z-index: 10; top: calc(100% + 8px); left: 0; min-width: 190px; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 12px 30px rgba(38, 52, 72, .14); }
  .holiday-page-nav[hidden] { display: none !important; }
  .holiday-page-nav .holiday-back-link { justify-content: flex-start; padding-inline: 10px; font-size: 14px; }
  [data-theme="dark"] .holiday-page-nav { background: #211e28; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
  .theme-toggle { padding-inline: 8px; font-size: 9px; }
}

@media (max-width: 620px) {
  .stream-page main { width: min(100% - 36px, 560px); }
  .stream-page .stream-hero { padding: 39px 0 27px; }
  .stream-create-panel { padding: 17px; }
  .date-time-dialog { padding: 18px 15px; }
  .picker-time-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .picker-time-row > p { margin: 0; text-align: left; }
  #stream-form { grid-template-columns: 1fr; }
  .stream-field-wide,
  .stream-field-help,
  .stream-form-error { grid-column: auto; }
  .stream-list { grid-template-columns: 1fr; }
  .stream-page .shared-card { padding: 23px 16px; }
}

@media (max-width: 480px) {
  .stream-page .brand { gap: 7px; font-size: 21px; }
  .stream-page .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
}

.shift-page main { min-height: 65vh; }
.shift-page .shift-hero { min-height: 250px; grid-template-columns: 1fr; padding-block: 45px 35px; }
.shift-page .shift-hero-copy { max-width: 760px; }
.shift-page .shift-hero h1 { max-width: 700px; margin-bottom: 14px; }
.shift-page .intro { max-width: 650px; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.shift-setup, .shift-calendar-section { margin-bottom: 35px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.shift-setup .section-heading { margin-bottom: 24px; padding-inline: 20px; align-items: center; }
.shift-setup .section-heading > .section-collapse-button { width: 30px; height: 30px; }
.shift-setup .section-heading > .section-collapse-button span { font-size: 18px; }
.section-collapse-button { width: 30px; height: 30px; flex: 0 0 auto; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 4px; color: var(--green); background: transparent; }
.section-collapse-button:hover { color: var(--green-dark); background: transparent; }
.section-collapse-button:focus-visible { outline: 3px solid #cdb9e8; outline-offset: 2px; }
.section-collapse-button span { display: block; font-size: 22px; line-height: 1; transform: rotate(0); transition: transform .18s ease; }
.section-collapse-button[aria-expanded="false"] span { transform: rotate(-90deg); }
.shift-section-heading-row { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shift-section-heading-row h3 { margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; }
.shift-section-heading-row .section-collapse-button { width: 30px; height: 30px; }
.shift-section-heading-row .section-collapse-button span { font-size: 18px; }
.shift-start-field { display: grid; gap: 7px; max-width: 390px; color: var(--muted); font-size: 12px; font-weight: 650; }
.shift-start-field small { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.5; }
.shift-start-field .date-time-trigger { width: 100%; }
.cycle-fieldset, .shift-times-fieldset { min-width: 0; margin: 25px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; }
.cycle-fieldset legend, .shift-times-fieldset legend { padding-inline: 7px; color: var(--ink); font-size: 14px; font-weight: 700; }
.shift-help { max-width: 700px; margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.cycle-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 0 0 16px; padding: 0; list-style: none; }
.cycle-day-row { display: flex; align-items: end; gap: 6px; min-width: 0; }
.cycle-day-row label { display: grid; flex: 1; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 650; }
.cycle-day-row select, .shift-time-row input { width: 100%; min-width: 0; min-height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--paper); font: 500 11px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.cycle-remove { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid transparent; border-radius: 7px; color: #a04b42; background: transparent; font-size: 19px; }
.cycle-remove:hover:not(:disabled) { border-color: #e5c8c2; background: #fff2ef; }
.cycle-remove:disabled { cursor: default; opacity: .35; }
.cycle-day-row select:focus-visible, .shift-time-row input:focus-visible, .cycle-remove:focus-visible { outline: 3px solid #cdb9e8; outline-offset: 2px; }
.cycle-fieldset > .button { min-height: 39px; }
.shift-times-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.shift-time-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 11px; border: 1px solid var(--line); border-left: 4px solid var(--shift-accent); border-radius: 8px; background: var(--paper); }
.shift-time-name { color: var(--ink); font-size: 11px; font-weight: 700; }
.shift-time-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.shift-time-picker-label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 650; }
.shift-time-picker-label .picker-time-selects { gap: 4px; }
.shift-time-picker-label .picker-time-selects select { width: 58px; height: 34px; padding-inline: 5px; font-size: 11px; }
.shift-time-separator { color: var(--muted); font-size: 11px; }
.overtime-editor { margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; }
.overtime-editor-heading { display: block; }
.overtime-editor-heading .shift-help { margin-bottom: 0; }
.overtime-type-field { display: grid; flex: 0 0 190px; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 650; }
.overtime-type-field select { width: 100%; min-height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--paper); font: 500 11px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.overtime-type-field select:focus-visible { outline: 3px solid #cdb9e8; outline-offset: 2px; }
#overtime-content > #open-overtime-picker { margin-top: 20px; }
.overtime-date-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 15px 0 0; padding: 0; list-style: none; }
.overtime-date-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 7px 8px 7px 11px; border: 1px solid color-mix(in srgb, var(--shift-accent) 34%, var(--line)); border-left: 4px solid var(--shift-accent); border-radius: 8px; color: var(--ink); background: color-mix(in srgb, var(--shift-accent) 10%, var(--white)); font-size: 11px; font-weight: 600; }
.overtime-date-item .cycle-remove { flex: 0 0 30px; }
.overtime-empty { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.shift-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.shift-form-actions .shift-storage-note { margin: 0 0 0 auto; }
.reset-pattern-help { margin-top: 9px; margin-bottom: 0; }
.shift-status { min-height: 0; margin: 0; color: #a04b42; font-size: 12px; }
.shift-status:not(:empty) { margin-top: 13px; }
.shift-calendar-heading { align-items: center; margin-bottom: 18px; }
.shift-calendar-controls { display: flex; align-items: center; gap: 9px; }
.shift-calendar-controls .calendar-nav-button { width: 40px; height: 40px; }
.shift-calendar-controls .button { min-height: 40px; }
.shift-calendar { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.shift-calendar > h3 { margin: 0 0 13px; text-align: center; font-size: 18px; }
.shift-weekdays, .shift-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.shift-weekdays { margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 700; text-align: center; }
.shift-weekdays span { padding-block: 6px; }
.shift-day { min-width: 0; min-height: 92px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px; border: 1px solid color-mix(in srgb, var(--shift-accent) 32%, var(--line)); border-radius: 8px; background: color-mix(in srgb, var(--shift-accent) 11%, var(--white)); }
.shift-day.is-neutral { border-color: var(--line); background: var(--white); }
.shift-day.is-today { outline: 2px solid var(--green); outline-offset: 1px; }
.shift-day-number { color: var(--muted); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.shift-day-label { max-width: 100%; overflow: hidden; color: var(--shift-ink); font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.shift-day-time { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.shift-day-spacer { min-height: 92px; }
.shift-legend { display: flex; flex-wrap: wrap; gap: 9px 16px; margin-top: 18px; }
.shift-legend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 600; }
.shift-swatch { width: 10px; height: 10px; border: 1px solid color-mix(in srgb, var(--shift-accent) 60%, transparent); border-radius: 3px; background: var(--shift-accent); }
.shift-color-coral { --shift-accent: #dc805b; --shift-ink: #773b26; }
.shift-color-amber { --shift-accent: #e8b84e; --shift-ink: #755318; }
.shift-color-teal { --shift-accent: #63a69a; --shift-ink: #20584f; }
.shift-color-blue { --shift-accent: #7c95cf; --shift-ink: #324c82; }
.shift-color-purple { --shift-accent: #a77ac3; --shift-ink: #5b3672; }
.shift-color-indigo { --shift-accent: #626c9e; --shift-ink: #343b6b; }
.shift-color-slate { --shift-accent: #a7b0b6; --shift-ink: #58636a; }
.shift-color-green { --shift-accent: #82a87a; --shift-ink: #3d6338; }
.shift-color-rose { --shift-accent: #d97879; --shift-ink: #7c3339; }
.shift-color-sky { --shift-accent: #4fa3c7; --shift-ink: #1f5670; }
.shift-color-lime { --shift-accent: #8fae3c; --shift-ink: #4b5e16; }
.shift-color-pink { --shift-accent: #d96fa5; --shift-ink: #7c2f57; }
.shift-color-brown { --shift-accent: #a07352; --shift-ink: #5c3d25; }
.shift-types-fieldset { margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; }
.shift-type-list { display: grid; gap: 9px; margin: 0 0 14px; padding: 0; list-style: none; }
.shift-type-row { display: grid; grid-template-columns: minmax(130px, 190px) 1fr auto; align-items: center; gap: 12px; padding: 10px 11px; border: 1px solid var(--line); border-left: 4px solid var(--shift-accent); border-radius: 8px; background: var(--paper); }
.shift-type-name { width: 100%; min-width: 0; min-height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--white); font: 600 12px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.shift-type-name:focus-visible, .shift-swatch-option:focus-visible { outline: 3px solid #cdb9e8; outline-offset: 2px; }
.shift-swatch-group { display: flex; flex-wrap: wrap; gap: 6px; }
.shift-swatch-option { width: 24px; height: 24px; padding: 0; border: 2px solid transparent; border-radius: 50%; background: var(--shift-accent); box-shadow: inset 0 0 0 2px var(--white); }
.shift-swatch-option[aria-checked="true"] { border-color: var(--ink); }
.shift-type-remove { min-height: 30px; padding-inline: 10px; font-size: 11px; }
.removed-shifts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.removed-shifts[hidden] { display: none; }
.removed-shifts-label { font-size: 13px; font-weight: 700; }
.removed-shift-add { min-height: 32px; padding-inline: 12px; font-size: 13px; }
.overlay-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pattern-mode-field { display: grid; gap: 5px; max-width: 420px; margin: 0 0 20px; color: var(--muted); font-size: 11px; font-weight: 650; }
.pattern-mode-field select { min-height: 40px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--paper); font: 500 12px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.cycle-fieldset[hidden], .shift-start-field[hidden] { display: none; }
.shift-day { cursor: pointer; }
.shift-day:hover { filter: brightness(1.05); }
.shift-day:focus-visible { outline: 3px solid #cdb9e8; outline-offset: 2px; }
.day-menu-options { display: grid; gap: 8px; margin-top: 12px; }
.day-menu-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--shift-accent) 45%, var(--line)); border-radius: 9px; color: var(--ink); background: color-mix(in srgb, var(--shift-accent) 12%, var(--white)); font: 650 14px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-align: left; cursor: pointer; }
.day-menu-option:hover, .day-menu-option.is-selected { background: color-mix(in srgb, var(--shift-accent) 28%, var(--white)); }
.day-menu-option:focus-visible { outline: 3px solid #cdb9e8; outline-offset: 2px; }
.day-menu-option .shift-swatch { flex: 0 0 auto; }
.day-menu-option.is-selected::after { content: "✓"; margin-left: auto; font-weight: 800; }
#day-menu-remove[hidden] { display: none; }
.childcare-intro { margin-bottom: 20px; }
.shift-about { max-width: 760px; margin: 40px auto 0; line-height: 1.6; }
.shift-about h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.5px; }
.shift-about h3 { margin: 18px 0 6px; font-size: 16px; }
.shift-about p { margin: 0; color: var(--muted, inherit); }
.overlay-weekdays { margin: 0 0 16px; padding: 0; border: 0; }
.overlay-weekdays legend { margin-bottom: 8px; padding: 0; color: var(--muted); font-size: 11px; font-weight: 650; }
.overlay-weekday-options { display: flex; flex-wrap: wrap; gap: 8px; }
.overlay-weekday { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 650; cursor: pointer; }
.overlay-weekday:has(input:checked) { border-color: var(--purple, #7040b5); background: color-mix(in srgb, var(--purple, #7040b5) 16%, transparent); }
.overlay-weekdays[hidden], [data-overlay-cycle-only][hidden] { display: none; }
.overlay-heading-controls { display: flex; align-items: center; gap: 16px; }
.overlay-heading-controls .overlay-check { margin: 0; }
.overlay-remove { min-height: 34px; padding-inline: 12px; font-size: 12px; }
.overlay-check { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; font-weight: 650; }
.overlay-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 16px; }
.overlay-fields label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 650; }
.overlay-fields input, .overlay-fields select { min-height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--paper); font: 500 12px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.overlay-cycle { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.shift-overlay-strip { max-width: 100%; margin-top: auto; overflow: hidden; padding: 1px 5px; border-radius: 4px; color: var(--ink); background: color-mix(in srgb, var(--ink) 14%, transparent); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.shift-overlay-strip.overlay-tone-1, .overlay-legend-item.overlay-tone-1 { background: color-mix(in srgb, #2a7f8e 30%, transparent); }
.shift-overlay-strip.overlay-tone-2, .overlay-legend-item.overlay-tone-2 { background: color-mix(in srgb, #c47a1a 32%, transparent); }
.shift-overlay-strip.overlay-tone-3, .overlay-legend-item.overlay-tone-3 { background: color-mix(in srgb, #3f8f4f 30%, transparent); }
.shift-overlay-strip.overlay-tone-4, .overlay-legend-item.overlay-tone-4 { background: color-mix(in srgb, #c2477a 28%, transparent); }
.shift-overlay-strip.overlay-tone-5, .overlay-legend-item.overlay-tone-5 { background: color-mix(in srgb, #4a6fd0 30%, transparent); }
.add-overlay { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.settings-bar { display: flex; justify-content: flex-end; margin: 0 0 16px; }
#settings-area[hidden] { display: none; }
.add-overlay .shift-status { margin: 0; }
.shift-overlay-strip.is-conflict, .overlay-legend-item.is-conflict { color: #fff; background: #b3261e; }
.shift-day.has-conflict { outline: 2px dashed #b3261e; outline-offset: -2px; }
.overlay-legend-item { padding: 1px 7px; border-radius: 4px; color: var(--ink); background: color-mix(in srgb, var(--ink) 14%, transparent); }
.overlay-legend-item.is-conflict { color: #fff; }
.cover-needed { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.overlay-rule { display: inline-grid; gap: 5px; margin: 0 0 10px; color: var(--muted); font-size: 11px; font-weight: 650; }
.overlay-rule[hidden] { display: none; }
.overlay-rule select { min-height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--paper); font: 500 12px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.cover-needed h3 { margin: 0 0 6px; font-size: 16px; }
.cover-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.overlay-section[data-overlay-panel] .section-heading { margin-bottom: 18px; }
.overlay-section { margin-bottom: 20px; }
.cover-item { padding: 5px 10px; border: 1px solid #b3261e; border-radius: 999px; font-size: 12px; font-weight: 650; }
.shift-time-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shift-time-header .shift-type-remove { min-height: 26px; padding-inline: 8px; font-size: 10px; }
.shift-type-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.shift-type-actions .button { min-height: 39px; }
@media (max-width: 760px) {
  .shift-type-row { grid-template-columns: 1fr auto; }
  .shift-type-row .shift-swatch-group { grid-column: 1 / -1; grid-row: 2; }
}
[data-theme="dark"] .shift-setup, [data-theme="dark"] .shift-calendar-section { border-color: var(--line); background: var(--white); }
[data-theme="dark"] .shift-start-field, [data-theme="dark"] .cycle-day-row label, [data-theme="dark"] .cycle-fieldset legend { color: #ded7e8; }
[data-theme="dark"] .shift-section-heading-row h3 { color: #ded7e8; }
[data-theme="dark"] .shift-start-field small, [data-theme="dark"] .shift-help, [data-theme="dark"] .shift-status { color: #c5bdcf; }
[data-theme="dark"] .cycle-fieldset, [data-theme="dark"] .shift-times-fieldset { border-color: var(--line); }
[data-theme="dark"] .section-collapse-button { color: #c9b3f0; }
[data-theme="dark"] .section-collapse-button:hover { color: #e0d0f7; background: transparent; }
[data-theme="dark"] .overtime-editor { border-color: var(--line); }
[data-theme="dark"] .overtime-type-field { color: #ded7e8; }
[data-theme="dark"] .overtime-type-field select { color: var(--ink); border-color: #554d60; background: #211e28; }
[data-theme="dark"] .overtime-date-item { color: var(--ink); border-color: color-mix(in srgb, var(--shift-accent) 45%, var(--line)); border-left-color: var(--shift-accent); background: color-mix(in srgb, var(--shift-accent) 18%, #25222d); }
[data-theme="dark"] .cycle-day-row select, [data-theme="dark"] .shift-time-row input { color: var(--ink); border-color: #554d60; background: #211e28; }
[data-theme="dark"] .shift-time-row { border-color: var(--line); border-left-color: var(--shift-accent); background: #211e28; }
[data-theme="dark"] .shift-day-label { color: #f0eaf8; }
[data-theme="dark"] .shift-calendar { border-color: var(--line); background: #211e28; }
[data-theme="dark"] .shift-day { border-color: color-mix(in srgb, var(--shift-accent) 45%, var(--line)); background: color-mix(in srgb, var(--shift-accent) 20%, #25222d); }
[data-theme="dark"] .shift-day.is-neutral { border-color: var(--line); background: #25222d; }
[data-theme="dark"] .shift-day-number, [data-theme="dark"] .shift-day-time, [data-theme="dark"] .shift-legend-item { color: #c5bdcf; }
[data-theme="dark"] .shift-color-coral { --shift-ink: #f1b199; }
[data-theme="dark"] .shift-color-amber { --shift-ink: #f0d28c; }
[data-theme="dark"] .shift-color-teal { --shift-ink: #9bd0c5; }
[data-theme="dark"] .shift-color-blue { --shift-ink: #b7c8f1; }
[data-theme="dark"] .shift-color-purple { --shift-ink: #d4b0e6; }
[data-theme="dark"] .shift-color-indigo { --shift-ink: #b9c0f0; }
[data-theme="dark"] .shift-color-slate { --shift-ink: #d1d8dc; }
[data-theme="dark"] .shift-color-green { --shift-ink: #b3d1ab; }
[data-theme="dark"] .shift-color-rose { --shift-ink: #f0a8aa; }
[data-theme="dark"] .shift-color-sky { --shift-ink: #9fd0e6; }
[data-theme="dark"] .shift-color-lime { --shift-ink: #c4da8a; }
[data-theme="dark"] .shift-color-pink { --shift-ink: #f0a9cc; }
[data-theme="dark"] .shift-color-brown { --shift-ink: #d9b497; }
[data-theme="dark"] .shift-types-fieldset, [data-theme="dark"] .shift-type-row { border-color: var(--line); }
[data-theme="dark"] .shift-type-row { border-left-color: var(--shift-accent); background: #211e28; }
[data-theme="dark"] .shift-type-name { color: var(--ink); border-color: #554d60; background: #25222d; }

@media (max-width: 760px) {
  .shift-page .site-header { gap: 10px; }
  .shift-page .holiday-page-nav { gap: 1px; }
  .shift-setup, .shift-calendar-section { padding: 20px; }
  .cycle-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shift-times-grid { grid-template-columns: 1fr; }
  .shift-day { min-height: 75px; padding: 6px 5px; }
  .shift-day-spacer { min-height: 75px; }
}
@media (max-width: 560px) {
  .shift-page .site-header { height: auto; min-height: 70px; flex-wrap: wrap; padding-block: 10px; }
  .shift-page .holiday-page-nav { flex-wrap: wrap; justify-content: flex-start; }
  .shift-page .holiday-back-link { padding-inline: 7px; font-size: 12px; }
  .shift-setup, .shift-calendar-section { padding: 16px 12px; }
  .shift-setup .section-heading { align-items: center; padding-inline: 10px; }
  .shift-setup .section-heading > .section-collapse-button { margin-left: auto; }
  .shift-form-actions .shift-storage-note { margin-left: 0; }
  .cycle-fieldset, .shift-times-fieldset { padding: 14px 10px; }
  .overtime-editor { padding: 14px 10px; }
  .overtime-editor-heading { display: block; }
  .overtime-type-field { width: 100%; flex-basis: auto; }
  .overtime-date-list { grid-template-columns: 1fr; }
  .cycle-days { grid-template-columns: 1fr; }
  .shift-calendar { padding: 12px 7px; }
  .shift-weekdays, .shift-days { gap: 3px; }
  .shift-day { min-height: 58px; gap: 2px; padding: 4px 3px; border-radius: 5px; }
  .shift-day-spacer { min-height: 58px; }
  .shift-day-number { font-size: 9px; }
  .shift-day-label { font-size: 9px; }
  .shift-day-time { font-size: 9px; }
  .shift-calendar-heading { align-items: flex-start; }
  .shift-calendar-controls { gap: 4px; }
  .shift-calendar-controls .calendar-nav-button { width: 34px; height: 38px; }
  .shift-calendar-controls .button { min-height: 38px; padding-inline: 10px; }
}

.holiday-about, .seo-article { max-width: 710px; margin: 0 auto 40px; }
.seo-article { margin-top: 40px; }
.holiday-about h2, .seo-article h2 { margin: 30px 0 9px; font-size: 21px; letter-spacing: -.4px; }
.holiday-about h2:first-child, .seo-article h2:first-child { margin-top: 0; }
.holiday-about h3, .seo-article h3 { margin: 18px 0 5px; font-size: 15px; }
.holiday-about p, .seo-article p, .seo-article li { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.seo-article ol, .seo-article ul { margin: 0 0 14px; padding-left: 22px; }
.holiday-about a, .seo-article a { color: var(--green); font-weight: 600; }
.holiday-dates-table { width: 100%; margin: 6px 0 16px; border-collapse: collapse; font-size: 13px; }
.holiday-dates-table caption { padding-bottom: 6px; color: var(--muted); font-size: 12px; text-align: left; }
.holiday-dates-table th, .holiday-dates-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.holiday-dates-table thead th { color: var(--ink); font-size: 12px; }
.holiday-dates-table tbody th { font-weight: 700; color: var(--ink); }
.holiday-about-links, .seo-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.holiday-about-links a, .seo-links a { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; text-decoration: none; }
.holiday-about-links a:hover, .seo-links a:hover { border-color: var(--green); }
.seo-region-group h3 { margin-top: 16px; }
.seo-article .seo-links { margin-bottom: 14px; }
@media (max-width: 560px) {
  .holiday-dates-table { font-size: 12px; }
  .holiday-dates-table th, .holiday-dates-table td { padding: 8px 6px; }
}

.shift-share, .shift-import { margin-bottom: 35px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.shift-import { border-color: var(--green); }
.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.share-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.share-card h3 { margin: 0; }
.share-card p { margin: 0; }
.share-field { display: grid; gap: 6px; font-weight: 700; }
.share-check { display: flex; align-items: center; gap: 8px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media print {
  .site-header, .site-footer, footer, .shift-hero, .settings-bar, #settings-area, .shift-share, .shift-import, .shift-about, .seo-article, .shift-calendar-controls, .cover-needed, .storage-notice { display: none !important; }
  .shift-calendar-section { border: 0; padding: 0; }
  body.printing-range .shift-calendar-section, body.printing-range main { display: none !important; }
  #print-sheet .print-month { break-inside: avoid; page-break-inside: avoid; margin-bottom: 18px; }
  #print-sheet { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
#print-sheet { display: none; }
@media print { #print-sheet { display: block; } }
.school-page { max-width: 900px; padding-block: 54px 70px; }
.school-page h1 { margin-bottom: 12px; font-size: clamp(42px, 6vw, 60px); }
.school-page h1 span { color: var(--green); }
.school-card { margin-bottom: 26px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.school-card h2 { margin: 0 0 14px; font-size: 20px; }
.school-card h3 { margin: 22px 0 8px; font-size: 16px; }
.school-find, .school-row-pair { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin-bottom: 12px; }
.school-field { display: grid; gap: 6px; flex: 1 1 220px; color: var(--ink); font-size: 12px; font-weight: 700; }
.school-card input[type="text"], .school-card input[type="date"], .school-card select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--paper); font: inherit; font-size: 13px; font-weight: 400; }
.school-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.school-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: transparent; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.school-tab[aria-selected="true"] { border-color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.school-dot { width: 12px; height: 12px; border-radius: 50%; }
.school-actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.school-term-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) 1fr 1fr auto; align-items: end; gap: 10px; margin-bottom: 10px; }
.school-mini { display: grid; gap: 4px; color: var(--muted); font-size: 11px; }
.school-small { padding: 8px 12px; font-size: 12px; }
.school-inset-add { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.school-inset-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.school-remove-child { margin-top: 14px; }
.school-summary { margin-bottom: 18px; padding: 18px 20px; border: 1px solid var(--line); border-left: 6px solid var(--green); border-radius: 10px; }
.school-summary h3 { margin: 0 0 6px; }
.school-big { margin: 0 0 4px; font-size: clamp(22px, 4vw, 30px); font-weight: 800; color: var(--green); }
.school-sub { margin: 0 0 6px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.school-timeline { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; }
.school-timeline li { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); }
.school-break { background: color-mix(in srgb, var(--green) 8%, transparent); }
.school-timeline .is-now { border-color: var(--green); font-weight: 700; }
.school-timeline .is-done { opacity: .6; }
@media (max-width: 640px) {
  .school-card { padding: 18px 14px; }
  .school-term-row { grid-template-columns: 1fr 1fr; }
  .school-term-row > input[type="text"] { grid-column: 1 / -1; }
}
.school-link-section .overlay-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
@media print {
  .school-page .school-card:not(:has(#school-result)), .school-page .seo-article, .school-page .contact-intro { display: none !important; }
  .school-summary { break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
