@font-face {
  font-family: Inter;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --page: light-dark(#f3f5f6, #161e24);
  --surface: light-dark(#ffffff, #202b33);
  --ink: light-dark(#202a32, #ecf1f3);
  --muted: light-dark(#667780, #a9bac3);
  --rule: light-dark(#e2e7e9, #39474f);
  --teal: light-dark(#284f50, #a6d5cf);
  --pale: light-dark(#edf3f2, #2b3c40);
  --paper: var(--surface);
  --line: var(--rule);
  --panel-radius: 1.25rem;
  --panel-shadow: 0 2px 3px light-dark(#233d4504, #00000014), 0 12px 28px -18px light-dark(#233d4533, #00000066);
  --surface-wash: linear-gradient(180deg, light-dark(#ffffff99, #ffffff05), transparent);
  --floating-shadow: 0 4px 12px light-dark(#152a3012, #00000024), 0 24px 64px -12px light-dark(#152a3033, #00000088);
  font-family: Inter, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: clamp(16px, 1.39vw, 30px);
  line-height: 1.5;
  word-break: keep-all;
  background: var(--page);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse 70rem 30rem at 0 0, light-dark(#e4eeeb80, #22393650), transparent); }
button, input, textarea, select { font: inherit; color: inherit; }
button { appearance: none; cursor: pointer; touch-action: manipulation; border: 1px solid var(--rule); border-radius: .7rem; background: var(--surface); min-height: 44px; padding: .5rem .8rem; font-weight: 600; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:is(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
main { width: min(100%, 76rem); margin: auto; padding: 1.75rem 1.65rem 2rem; }
.board-page { display: grid; gap: 1rem; }
.loading { padding: 2rem; color: var(--muted); }
.sky-card { display: grid; gap: 1.1rem; min-width: 0; }
#mast { position: relative; }
.home-mast { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); align-items: end; gap: 2rem; padding: .2rem 4.2rem .3rem .2rem; min-height: 8.5rem; }
.clock-box p { margin: 0 0 .15rem; color: var(--muted); font-size: 1.13rem; font-weight: 500; letter-spacing: -.025em; }
.clock-box time { display: block; font: 600 6.3rem/1.06 Inter, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.075em; color: light-dark(#263e43, #ecf1f3); }
.next-ticket { display: grid; position: relative; isolation: isolate; overflow: hidden; align-content: center; justify-items: start; gap: .3rem; min-height: 7.8rem; padding: 1.2rem 1.4rem; border: 1px solid light-dark(#3d6764, #496b68); border-radius: 1rem; background: linear-gradient(180deg, #365e5c, #254948); box-shadow: var(--panel-shadow); text-align: start; color: #f5faf6; }
.next-ticket::after { content: ''; position: absolute; z-index: -1; pointer-events: none; width: 7rem; height: 7rem; right: -1.3rem; bottom: -3rem; border: 1px solid #b8d9cd26; border-radius: 50%; box-shadow: 0 0 0 1.2rem #b8d9cd09, 0 0 0 2.4rem #b8d9cd06; }
.next-ticket small { color: #c3d7d1; font-size: .84rem; font-weight: 500; }
.next-ticket small span { margin-left: .45rem; padding: .12em .45em; border-radius: .3em; background: #d4e7de1a; color: #e4f1e7; font-weight: 600; }
.next-ticket strong { font-size: 1.4rem; font-weight: 650; letter-spacing: -.04em; line-height: 1.35; overflow-wrap: anywhere; }
.next-ticket strong time { margin-right: .35rem; font-weight: 500; }
.next-ticket em { font-size: .85rem; font-weight: 400; font-style: normal; color: #c3d7d1; }
.next-ticket.quiet { min-height: 7.8rem; }
.dash-control.settings-trigger { width: max(44px, 2.7rem); height: max(44px, 2.7rem); padding: 0; flex: none; border-radius: .85rem; }
.settings-trigger svg { display: block; width: 1.25rem; height: 1.25rem; pointer-events: none; }
#mast > .settings-trigger { position: absolute; top: .1rem; right: 0; }
#weather { position: relative; border: 1px solid var(--rule); border-radius: var(--panel-radius); background: var(--surface-wash), var(--surface); box-shadow: var(--panel-shadow); }
.weather-empty { display: flex; align-items: center; gap: 1rem; min-height: 7.5rem; padding: 1.2rem; }
.weather-mark { font-size: 2.2rem; color: var(--teal); }
.weather-empty span > small, .weather-empty span > b { display: block; }
.weather-empty small, .weather-now small { color: var(--muted); font-size: .82rem; }
.weather-empty button { margin-left: auto; font-size: .85rem; }
.weather-band { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); align-items: center; gap: 1.3rem; padding: .75rem 1.25rem; }
.weather-now { display: grid; gap: .12rem; padding-right: 1rem; border-right: 1px solid var(--rule); }
.weather-now strong { font-size: 2.1rem; font-weight: 600; line-height: 1.3; letter-spacing: -.05em; }
.weather-now strong span { font-size: .87rem; color: var(--muted); font-weight: 500; letter-spacing: -.02em; }
.weather-hours, .hour-all { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); list-style: none; gap: .25rem; margin: 0; padding: 0; }
.weather-hours li, .hour-all li { display: grid; justify-items: center; gap: .3rem; border-radius: .7rem; padding: .25rem .1rem; font-size: .85rem; font-variant-numeric: tabular-nums; }
.weather-hours time, .hour-all time { font-size: .75rem; color: var(--muted); }
.weather-hours li b, .hour-all li b { font-weight: 600; }
.weather-icon { display: inline-flex; width: 1.6rem; height: 1.6rem; }
.weather-icon svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 1px light-dark(#3658680f, #00000020)); }
.weather-hours .current-hour { background: var(--surface-wash), var(--pale); outline: 1px solid color-mix(in srgb, var(--teal) 14%, transparent); outline-offset: -1px; }
.hour-detail { padding: 0 1.25rem .7rem; }
.hour-detail summary { width: max-content; margin-left: auto; font-size: .75rem; }
.hour-detail summary.dash-control { display: flex; min-height: 44px; padding: .3em .65em; }
.hour-detail summary::-webkit-details-marker { display: none; }
.hour-detail summary::after { content: ''; width: .42em; height: .42em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin-top: -.2em; }
.hour-detail[open] summary::after { transform: rotate(225deg); margin-top: .2em; }
.hour-detail a { display: block; font-size: .75rem; color: var(--muted); margin-top: .5rem; }
.hour-all { row-gap: .75rem; padding-top: 1rem; }
#notice-strip { display: flex; align-items: center; gap: .85rem; min-height: 3.4rem; padding: .65rem 1.1rem; text-align: start; border: 1px solid light-dark(#eedfce, #5a4b3d); border-radius: .85rem; background: var(--surface-wash), light-dark(#faf3e9, #362f28); color: light-dark(#745d43, #e3c7a5); }
#notice-strip > span { display: inline-flex; align-items: center; gap: .5rem; flex: none; font-size: .81rem; font-weight: 650; }
#notice-strip > span::before { content: ''; width: .42rem; height: .42rem; border-radius: 50%; background: #c18b51; }
#notice-strip strong { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .88rem; font-weight: 500; }
#notice-strip small { display: flex; align-items: center; gap: .5rem; margin-left: auto; padding: .2rem .25rem; font-size: .8rem; white-space: nowrap; }
#notice-strip small::after { content: ''; width: .4rem; height: .4rem; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
:is(.next-ticket, #notice-strip):is(:active, [data-pressed]) { filter: brightness(.95); }
#occasions { display: flex; flex-direction: column; justify-content: center; gap: .8rem; padding: 1.1rem 1.25rem; border: 1px solid var(--rule); border-radius: var(--panel-radius); background: var(--surface-wash), var(--surface); box-shadow: var(--panel-shadow); }
#occasions h2 { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 650; letter-spacing: -.035em; }
#occasions > div { display: flex; flex-direction: column; gap: .5rem; }
#occasions button { --control-accent: light-dark(#a2764e, #e2be98); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem .65rem; padding: .6rem .7rem; font-size: .85rem; text-align: start; }
#occasions button strong { overflow-wrap: anywhere; font-weight: 600; }
#occasions button b { grid-row: span 2; align-self: center; border-radius: .55rem; padding: .55em; background: var(--surface-wash), light-dark(#f5e9da, #4d4033); outline: 1px solid light-dark(#d9bc932e, #dabd9320); outline-offset: -1px; font-size: .9rem; }
#occasions time, #occasions p { font-size: .8rem; color: var(--muted); }
#occasions p { margin: 0; }
.settings-folio, .pair-card { color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--panel-radius); padding: 1.4rem; }
.settings-folio { position: fixed; z-index: 80; width: min(26rem, calc(100vw - 16px)); max-height: min(85dvh, 38rem); overflow: auto; box-shadow: var(--floating-shadow); }
.settings-folio header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.settings-folio h2, .pair-card h1 { margin: 0; font-size: 1.4rem; font-weight: 650; letter-spacing: -.04em; }
.settings-folio nav { display: flex; gap: .4rem; margin: 1.1rem 0 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.settings-folio nav button { flex: 1; font-size: .85rem; }
.settings-folio .settings-close { width: 44px; padding: 0; font-size: 1.3rem; }
.settings-content, .settings-content form, .pair-card form, .coords { display: grid; gap: 1rem; }
.settings-content form button { justify-self: start; }
.settings-content p { margin: .15rem 0; overflow-wrap: anywhere; }
.settings-content output { font-weight: 650; color: var(--teal); }
.settings-content [data-error]:empty { display: none; }
.settings-content [data-error] { color: light-dark(#a44a3c, #edb1a5); }
.settings-content label, .pair-card label { display: grid; gap: .4em; min-width: 0; font-size: .88rem; font-weight: 600; }
.settings-content :is(input, textarea, select), .pair-card input { min-width: 0; width: 100%; padding: .7rem .8rem; border: 1px solid var(--rule); border-radius: .7rem; background: var(--page); min-height: 48px; color: var(--ink); font-size: max(16px, 1rem); }
.settings-content small, .pair-card p { color: var(--muted); }
.setting-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.pair-card { max-width: 27rem; margin: 7vh auto; }
.pair-card img { margin-bottom: .6rem; }
.notice-text { white-space: pre-line; }
#toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 1100; max-width: calc(100vw - 2rem); width: max-content; border-radius: .8rem; color: #fff; background: #284f50; padding: .8rem 1.1rem; font-size: .9rem; pointer-events: none; opacity: 0; }
#toast.visible { opacity: 1; }
@media (min-width: 900px) {
  .board-page { grid-template-columns: minmax(0, .95fr) minmax(0, 1.65fr); }
  .board-page > .sky-card, .board-page > #notice-strip, .board-page > #calendar-area, .board-page .fy-children, .board-page .fy-status { grid-column: 1 / -1; }
  .board-page > #family-surface { display: contents; }
  .board-page .fy-status:empty { display: none; }
  .weather-band { padding-right: 8rem; }
  .hour-detail { padding: 0; }
  .hour-detail summary { position: absolute; top: 50%; right: 1rem; transform: translateY(-50%); }
  .hour-detail[open] { padding: 0 1.25rem 1rem; }
  .hour-detail[open] summary { top: 3.6rem; }
}
@media (max-width: 899px) {
  main { padding: 1.25rem 1rem 1.5rem; }
  .home-mast { grid-template-columns: 1fr 1fr; gap: 1.2rem; padding-right: 3.4rem; }
  .clock-box time { font-size: 5rem; }
  .clock-box p { font-size: .95rem; }
  .weather-band { grid-template-columns: 10rem minmax(0, 1fr); gap: .8rem; }
}
@media (max-width: 600px) {
  main { padding: 1rem .8rem 1.5rem; }
  .board-page { gap: .85rem; }
  .sky-card { gap: .85rem; }
  .home-mast { grid-template-columns: 1fr; gap: 1rem; padding: .15rem 0 .2rem; }
  .clock-box { padding-right: 3.4rem; }
  .clock-box time { font-size: clamp(4.5rem, 20vw, 6.5rem); }
  .clock-box p { font-size: .9rem; }
  .next-ticket { min-height: 0; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .15rem .8rem; padding: .8rem 1rem; }
  .next-ticket small { grid-row: span 2; display: grid; gap: .12rem; font-size: .74rem; }
  .next-ticket small span { margin: 0; }
  .next-ticket strong { font-size: 1.05rem; }
  .next-ticket em { grid-column: 2; font-size: .76rem; }
  .weather-band { grid-template-columns: 1fr; padding: .9rem; gap: .8rem; }
  .weather-now { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .7rem; border: 0; padding: 0; }
  .weather-now > small:first-child { font-weight: 600; color: var(--ink); }
  .weather-now strong { font-size: 1.7rem; }
  .weather-now strong span { font-size: .8rem; }
  .weather-now > small:last-child { font-size: .73rem; }
  .weather-hours { gap: .1rem; }
  .weather-hours li { font-size: .8rem; }
  .weather-hours time { font-size: .68rem; }
  .weather-icon { width: 1.4rem; height: 1.4rem; }
  .hour-detail { padding: 0 .8rem .6rem; }
  .hour-detail summary.dash-control { min-height: 44px; font-size: .76rem; }
  .hour-all { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #notice-strip { gap: .6rem; padding: .7rem .8rem; }
  #notice-strip > span { font-size: .73rem; }
  #notice-strip strong { font-size: .8rem; }
  #notice-strip small { font-size: .73rem; }
  #notice-strip > span::before { display: none; }
  #occasions { padding: 1rem; }
  #occasions > div { flex-direction: row; flex-wrap: wrap; }
  .settings-folio { padding: 1.1rem; }
}
@media (min-width: 1550px) and (min-aspect-ratio: 4/3) { :root { font-size: 19px; } main { max-width: 82rem; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
