/* The delay stays editable. The planner is always visible and optional. */
.delay-panel { padding: 1.25rem; background: #f5f9f8; border-color: #bacfce; }
.delay-panel .delay-intro { margin: .25rem 0 1.15rem; }
.delay-panel .delay-fields { grid-template-columns: minmax(0,1fr) 7.25rem; }
.delay-panel .delay-fields input { font-size: 1.5rem; font-weight: 600; }
.delay-panel .delay-fields input,.delay-panel .delay-fields select { height: 3.6rem; }
.delay-panel .delay-equivalent { margin: .55rem 0 0; min-height: 1.4em; font-size: .88rem; color: #274f59; font-weight: 600; }
.delay-panel #delay-rules { font-size: .78rem; margin-top: .3rem; line-height: 1.5; }
.delay-helper { margin-top: 1.35rem; padding: 1.15rem; background: #fff; border: 1px solid #c7d9d7; border-radius: .8rem; box-shadow: 0 4px 18px #163b4606; }
.delay-helper [hidden] { display: none !important; }
.delay-helper-heading { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.2rem; }
.delay-helper-icon { width: 2.35rem; height: 2.35rem; flex: none; display: grid; place-items: center; background: #e8f1f1; color: #23515c; border-radius: .65rem; }
.delay-helper-icon svg { width: 1.45rem; height: 1.45rem; }
.delay-helper-heading > div { min-width: 0; flex: 1; }
.delay-helper-heading h2 { font: 650 1.12rem/1.3 var(--font-sans); letter-spacing: -.025em; text-transform: none; margin: 0; }
.delay-helper-heading p { font-size: .76rem; line-height: 1.4; margin: .2rem 0 0; }
.helper-optional { font: 600 .63rem/1 var(--font-sans); color: #577079; background: #edf3f3; border-radius: 1rem; padding: .4rem .5rem; align-self: start; }
.helper-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.delay-helper label,.helper-preference > span { font-size: .77rem; letter-spacing: 0; font-weight: 600; }
.delay-helper input,.delay-helper select { min-width: 0; width: 100%; min-height: 2.9rem; padding: .65rem .6rem; font-size: .88rem; border-radius: .45rem; color-scheme: light; }
.delay-helper input[type=date],.delay-helper input[type=time] { appearance: none; -webkit-appearance: none; }
.delay-helper .helper-note { font-size: .71rem; line-height: 1.45; color: #536d74; margin: .4rem 0 .7rem; }
.helper-location-button { border: 0; background: none; color: #9b4322; font: 600 .76rem/1.3 var(--font-sans); padding: .6rem 0 .15rem; text-decoration: underline; text-underline-offset: .2rem; }
.helper-location-button:disabled { opacity: .6; }
.helper-coordinates { margin: .7rem 0; }
.helper-timezone { margin: 1rem 0; }
.helper-timezone summary { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; color: #526d74; font: 400 .71rem/1.5 var(--font-sans); cursor: pointer; list-style: none; }
.helper-timezone summary::-webkit-details-marker { display: none; }
.helper-zone-change { color: #9b4322; margin-left: auto; text-decoration: underline; text-underline-offset: .2rem; font-weight: 600; }
.helper-timezone label { margin-top: .6rem; }
.helper-result { padding: 1rem; border-radius: .55rem; background: #eef5f5; border: 1px solid #d6e4e2; }
.delay-helper .helper-result p { font-size: .78rem; line-height: 1.5; margin: 0; }
.helper-result-label { display: block; font-size: .68rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: #3e656d; }
.helper-result strong { display: block; font: 650 clamp(1.7rem,3vw,2.1rem)/1.25 var(--font-sans); letter-spacing: -.04em; margin: .25rem 0 .1rem; color: #103d49; }
.helper-result .helper-result-equivalent { font-size: .75rem; color: #4b6a72; margin-bottom: .75rem; }
.helper-result-timeline { border-top: 1px solid #cbdedb; padding-top: .65rem; margin-top: .65rem; display: grid; gap: .35rem; }
.helper-result-timeline > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .5rem; font-size: .75rem; }
.helper-result-timeline span { color: #526d74; }
.helper-result-timeline b { font-weight: 600; color: #163f4b; }
.helper-result .helper-sun-note { font-size: .7rem; color: #536d74; margin-top: .65rem; }
.delay-helper .helper-apply { width: 100%; min-height: 2.9rem; margin-top: .75rem; padding: .75rem; font-size: .86rem; justify-content: space-between; }
.helper-apply:disabled { background: #dce7e6; border-color: #dce7e6; color: #657d80; cursor: default; box-shadow: none; }
.delay-helper .helper-fixed-note { margin: .75rem 0 0; font-size: .7rem; }
.delay-panel .delay-pack-note { font-size: .78rem; line-height: 1.55; margin-top: 1rem; }
@media(max-width:1000px) and (min-width:701px) { .delay-helper { padding: .85rem; }.helper-grid { grid-template-columns: 1fr; }.helper-modes { grid-template-columns: 1fr; }.helper-modes button { justify-content: flex-start; padding-inline: .7rem; } }
@media(max-width:400px) { .delay-panel { padding: .85rem; }.delay-helper { padding: .85rem; }.delay-helper-heading { gap: .45rem; }.delay-helper-icon { width: 2rem; height: 2rem; }.helper-optional { padding: .35rem; }.helper-grid { gap: .45rem; }.helper-modes { gap: .25rem; }.helper-modes button { font-size: .65rem; }.helper-modes svg { width: .85rem; }.helper-close-row { align-items: start; }.delay-helper input,.delay-helper select { padding-inline: .4rem; } }
@media(max-width:360px) { .delay-helper-icon { display: none; }.helper-grid { grid-template-columns: minmax(0,1fr); }.helper-modes { grid-template-columns: minmax(0,1fr); }.helper-modes button { justify-content: flex-start; padding-inline: .7rem; font-size: .8rem; }.helper-modes svg { width: 1rem; } }
@media(prefers-reduced-motion:no-preference) { .helper-apply { transition: background .15s,border-color .15s; } }
/* Repeatable routines and an optional seasonal check. */
.helper-routine-fields { row-gap: .85rem; }
/* One visual opening-time control, with a 24-hour guide. */
.helper-open-day-row { display: flex; align-items: end; gap: 1rem; margin-top: .85rem; }
.helper-open-day-row label { flex: 1; min-width: 0; }
.helper-open-day-row > span { color: #45656e; font-size: .76rem; padding-bottom: .9rem; white-space: nowrap; }
.opening-slider { --ink: #f2f5f4; --muted: #d0e0e5; --accent: #f6cf99; margin-top: 1rem; padding: 1rem; border-radius: .65rem; color: var(--ink); background: linear-gradient(145deg,#0c293e,#1b4e5d); }
.opening-slider[data-phase=twilight] { --ink: #fff9f0; --muted: #fff0df; --accent: #ffdeb0; background: linear-gradient(135deg,#6b4658,#9c4d31 65%,#985632); }
.opening-slider[data-phase=day] { --ink: #513e2a; --muted: #695039; --accent: #87501f; background: linear-gradient(135deg,#f8d8a0,#fff0d4); }
.opening-slider-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.delay-helper .opening-slider-heading label { font-size: .86rem; font-weight: 600; }
.opening-slider-heading output { font: 600 2rem/1.15 var(--font-sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.opening-scene { height: 66px; overflow: hidden; margin: .45rem 0 -.2rem; }
.opening-scene svg { width: 100%; height: 100%; display: block; }
.opening-stars { color: #e4ecf2; opacity: .8; }
.opening-moon { color: #f7ddb0; }
.opening-sun { color: #ffd590; opacity: 0; transform-origin: 200px 27px; }
.opening-horizon { color: var(--muted); opacity: .35; }
.opening-slider[data-phase=day] .opening-stars,.opening-slider[data-phase=day] .opening-moon,.opening-slider[data-phase=twilight] .opening-moon { opacity: 0; }
.opening-slider[data-phase=day] .opening-sun { opacity: 1; color: #ae642b; }
.opening-slider[data-phase=twilight] .opening-stars { opacity: .35; }
.opening-slider[data-phase=twilight] .opening-sun { opacity: 1; transform: translateY(16px); }
.delay-helper .opening-range { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 44px; min-height: 44px; margin: .15rem 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; color-scheme: normal; cursor: pointer; touch-action: pan-y; }
.opening-range::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg,#7995bd 0%,#7995bd 16%,#edb590 27%,#f8df9e 52%,#edb590 78%,#7995bd 96%); }
.opening-range::-moz-range-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg,#7995bd 0%,#7995bd 16%,#edb590 27%,#f8df9e 52%,#edb590 78%,#7995bd 96%); }
.opening-range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; background: #fff; border: 4px solid var(--accent); border-radius: 50%; box-shadow: 0 1px 6px #091b343b; }
.opening-range::-moz-range-thumb { width: 20px; height: 20px; background: #fff; border: 4px solid var(--accent); border-radius: 50%; box-shadow: 0 1px 6px #091b343b; }
.delay-helper .opening-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: .3rem; }
.opening-scale { display: flex; justify-content: space-between; gap: .3rem; margin-top: -.2rem; color: var(--muted); font: 500 .62rem/1.4 var(--font-sans); font-variant-numeric: tabular-nums; }
.opening-guidance { border-top: 1px solid #ffffff30; margin-top: .9rem; padding-top: .8rem; }
.opening-slider[data-phase=day] .opening-guidance { border-color: #513e2a24; }
.opening-tag { display: block; margin-bottom: .3rem; font: 650 .6rem/1.4 var(--font-sans); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.opening-guidance strong { display: block; font: 600 1.05rem/1.35 var(--font-sans); letter-spacing: -.015em; }
.delay-helper .opening-guidance p { color: var(--muted); font-size: .76rem; line-height: 1.55; margin: .4rem 0 0; }
.delay-helper .opening-guide-note { font-size: .66rem; margin: .5rem 0 .8rem; }
.helper-extra { margin: .5rem 0 .85rem; }
.helper-extra summary { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .3rem 0; font-size: .74rem; color: #476771; list-style: none; cursor: pointer; }
.helper-extra summary::-webkit-details-marker { display: none; }
.helper-extra[open] summary > span { transform: rotate(45deg); }
.helper-extra label { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; }
.helper-extra select { width: 9rem; }
.helper-extra summary:focus-visible { outline: 3px solid #da6739; outline-offset: 3px; }
@media(max-width:400px) { .opening-slider { padding: .85rem; }.opening-slider-heading output { font-size: 1.8rem; }.opening-scale { font-size: .57rem; }.helper-open-day-row { gap: .7rem; } }
@media(prefers-reduced-motion:no-preference) { .opening-slider { transition: background .16s,color .16s; }.opening-scene g,.opening-moon { transition: opacity .16s,transform .16s; } }
.helper-sunset { margin-top: 1.05rem; border-top: 1px solid #d9e5e2; padding-top: .85rem; }
.helper-sunset > summary { display: flex; align-items: center; gap: .45rem; color: #9b4322; font: 600 .83rem/1.4 var(--font-sans); cursor: pointer; list-style: none; }
.helper-sunset > summary::-webkit-details-marker { display: none; }
.helper-sunset > summary svg { width: 1.1rem; height: 1.1rem; flex: none; }
.helper-sunset-chevron { margin-left: auto; font-size: 1.3rem; }
.helper-sunset[open] .helper-sunset-chevron { transform: rotate(45deg); }
.helper-sunset > summary:focus-visible { outline: 3px solid #da6739; outline-offset: 4px; }
.helper-season-label { margin: .85rem 0; }
.helper-months { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: .35rem; margin: .75rem 0; }
.helper-months label { position: relative; display: block; cursor: pointer; }
.helper-months input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: pointer; margin: 0; }
.helper-months span { display: block; text-align: center; padding: .55rem .15rem; border: 1px solid #c5d7d4; border-radius: .35rem; color: #41616b; font-size: .73rem; }
.helper-months input:checked + span { color: #873b1c; background: #fff0e7; border-color: #bc5027; }
.helper-months input:focus-visible + span { outline: 3px solid #da6739; outline-offset: 2px; }
.helper-season-result { border: 1px solid #d1dfdd; border-radius: .55rem; padding: .9rem; background: #f3f7f6; }
.helper-season-result strong { display: block; font: 650 .95rem/1.4 var(--font-sans); margin: .4rem 0; }
.delay-helper .helper-season-result p { margin: 0; font-size: .76rem; line-height: 1.5; }
.helper-season-result[data-state=ok] { color: #1d5744; border-color: #b2d4c7; background: #eaf5ee; }
.helper-season-result[data-state=attention] { color: #743b21; border-color: #e9c9ad; background: #fff4e9; }
.helper-season-result[data-state=ok] .helper-result-label { color: #2c6851; }
.helper-season-result[data-state=attention] .helper-result-label { color: #8a4a2d; }
@media(max-width:400px) { .helper-months { grid-template-columns: repeat(4,minmax(0,1fr)); }.helper-weeks { align-items: flex-start; }.helper-weeks label { max-width: 8rem; } }
@media(max-width:360px) { .helper-weeks { flex-wrap: wrap; }.helper-weeks > span { white-space: nowrap; } }
