html { background: #09121a; color: #eef7ff; font: 16px/1.55 Arial, "Noto Sans Hebrew", sans-serif; color-scheme: dark; scroll-behavior: smooth; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl { margin: 0; }
a { color: #81e5d2; text-underline-offset: .22em; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .62; }
a:focus, button:focus, input:focus, summary:focus { outline: 2px solid #fbdf82; outline-offset: 4px; }
.shell { width: 92%; max-width: 1160px; margin: 0 auto; }
.top { background: #0b1620; border-bottom: 1px solid #213545; }
.top-inner { min-height: 66px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 8px 0; }
.brand { display: inline-flex; align-items: center; font-size: 20px; color: #eef7ff; text-decoration: none; font-weight: 700; }
.brand-mark { display: inline-block; text-align: center; width: 33px; height: 33px; margin-left: 9px; border: 1px solid #36635f; border-radius: 9px; background: #153032; color: #96f6e0; font-size: 22px; line-height: 30px; }
nav { display: flex; flex-wrap: wrap; align-items: center; margin: 0 -6px; }
nav a { display: block; padding: 8px 9px; color: #bdd0dc; text-decoration: none; }
nav a:hover, #tv-mode[aria-pressed="true"] { color: #96f6e0; }
.fullscreen-toggle { display: inline-flex; align-items: center; border: 1px solid #416479; border-radius: 8px; padding: 5px 10px; margin: 2px 5px; background: #152c3b; color: #eef7ff; }
.fullscreen-toggle span + span { margin-right: 7px; }
.fullscreen-toggle:hover { background: #203f52; }
.fullscreen-status { padding-bottom: 8px; color: #ffe1ac; font-size: 14px; }
.intro { padding: 22px 0 17px; }
h1 { font-size: 50px; line-height: 1.12; letter-spacing: -.04em; }
.intro p { color: #b5c7d6; margin-top: 5px; }
.dashboard, .safety-grid { display: flex; align-items: stretch; margin: 0 -7px; }
.dashboard > *, .safety-grid > * { flex: 1 1 0; min-width: 0; margin: 0 7px; }
.panel { border-radius: 17px; border: 1px solid #263e50; background: #101e2a; padding: 21px 24px; }
.clock { background: radial-gradient(ellipse at 48% 38%, #1b3949, #142533 55%, #101e2a 82%); }
.clock-top, .goal-label, .clock-actions, .stage-next { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
.clock-top h2, .settings h2 { font-size: 22px; }
.status { color: #b5ffeb; border: 1px solid #3b776f; border-radius: 20px; padding: 3px 9px; font-size: 13px; background: #17393c; }
.clock-main { min-height: 111px; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; }
.ring { position: absolute; pointer-events: none; top: 50%; left: 50%; width: 195px; height: 195px; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(140,237,227,.16); box-shadow: inset 0 0 0 20px rgba(140,237,227,.035), 0 0 0 20px rgba(140,237,227,.045), 0 0 0 40px rgba(140,237,227,.02); }
.digits { position: relative; font: 700 64px/1.08 "Courier New", monospace; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.clock-units, .goal-label, .clock-details dt { color: #bacdd9; font-size: 13px; }
.clock-units { position: relative; }
.goal-label { margin: 4px 0 6px; }
#goal-percent { color: #a2f5dc; font-weight: 700; }
progress { display: block; width: 100%; height: 7px; border: 0; appearance: none; -webkit-appearance: none; border-radius: 8px; overflow: hidden; background: #314758; color: #84eed2; }
progress::-webkit-progress-bar { background: #314758; }
progress::-webkit-progress-value { background: #84eed2; }
progress::-moz-progress-bar { background: #84eed2; }
.clock-details { display: flex; flex-wrap: wrap; margin-top: 10px; }
.clock-details > div { flex: 1 1 140px; }
.clock-details dd { margin: 1px 0 0; font-size: 16px; font-weight: 700; }
#remaining { text-align: right; font-family: "Courier New", monospace; }
.clock-actions { justify-content: flex-start; align-items: center; margin-top: 12px; }
.clock-actions > * { margin-left: 8px; }
.primary, .subtle, .quick-controls button { display: inline-block; border: 1px solid #416479; border-radius: 8px; padding: 5px 11px; color: #eef7ff; background: #152c3b; text-decoration: none; }
.primary, #save-button { background: #9bf0d9; border-color: #9bf0d9; color: #092423; font-weight: 700; }
.subtle:hover, .quick-controls button:hover { background: #203f52; }
.live-stage { position: relative; min-height: 263px; display: flex; flex-direction: column; align-items: flex-start; background: linear-gradient(128deg, #132736 15%, #101d31); }
.eyebrow { color: #9bf0d9; font-size: 14px; font-weight: 700; }
.live-stage h2 { font-size: 35px; line-height: 1.1; margin: 7px 0 8px; letter-spacing: -.03em; }
#stage-copy { color: #c8d8e6; font-size: 17px; }
.stage-source { display: inline-block; margin: 10px 0; font-size: 14px; }
.back-current { margin-bottom: 10px; }
.stage-next { margin-top: auto; width: 100%; padding-top: 8px; border-top: 1px solid #30495b; color: #bbcfdd; font-size: 14px; }
.stage-next strong { color: #eef7ff; }
.stage-enter { animation: stage-enter .24s ease-out; }
@keyframes stage-enter { from { opacity: .55; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.journey { margin-top: 14px; }
.section-head h2 { font-size: 27px; line-height: 1.2; }
.section-head p { color: #b5c7d6; margin-top: 4px; font-size: 15px; }
.route { position: relative; margin: 11px 0 10px; }
.route-track { position: absolute; top: 42px; right: 6.25%; left: 6.25%; height: 3px; background: #375064; border-radius: 5px; }
#route-fill { width: 0; height: 100%; border-radius: 5px; background: #8fe9d5; transition: width .65s linear; box-shadow: 0 0 12px rgba(119, 234, 208, .35); }
.stations { margin: 0; padding: 0; position: relative; list-style: none; display: flex; flex-wrap: wrap; }
.stations li { flex: 0 0 12.5%; min-width: 0; }
.station { width: 100%; min-height: 83px; border: 1px solid transparent; background: transparent; border-radius: 10px; padding: 1px 3px 6px; color: #c4d3df; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.station:hover, .station.preview { background: rgba(119,184,206,.13); border-color: #35576e; }
.station-hour { font-weight: 700; font-size: 15px; }
.station-name { line-height: 1.2; font-size: 14px; }
.station-dot { margin: 10px 0 8px; width: 13px; height: 13px; border: 2px solid #7791a3; border-radius: 50%; background: #152737; }
.station.past .station-dot { background: #73c8b6; border-color: #73c8b6; }
.station[aria-current] { color: #ecfffc; background: rgba(109, 233, 197, .13); }
.station[aria-current] .station-dot { border-color: #a9ffea; background: #a9ffea; box-shadow: 0 0 0 5px rgba(129,229,210,.22); animation: active-point 3s ease-in-out infinite; }
@keyframes active-point { 50% { box-shadow: 0 0 0 8px rgba(129,229,210,.1); } }
.timeline-note { display: flex; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid #304556; padding-top: 8px; color: #b5c7d6; font-size: 13px; }
.timeline-note a { padding: 3px 0; }
.settings { margin-top: 19px; }
#fast-form { max-width: 650px; }
.settings h2 { margin-bottom: 10px; }
.settings label { display: block; font-weight: 700; margin-bottom: 4px; }
.settings input { width: 100%; max-width: 460px; min-height: 45px; border: 1px solid #496477; border-radius: 9px; background: #0d1822; color: #eef7ff; padding: 7px 10px; direction: ltr; text-align: right; }
input::placeholder { color: #adc0ce; }
.quick-controls { display: flex; flex-wrap: wrap; margin: 7px 0 0; }
.quick-controls button { margin: 0 0 5px 7px; }
.hint { margin: 4px 0 12px; color: #b5c7d6; font-size: 14px; }
#storage-note { margin-bottom: 0; }
#save-button { border: 1px solid #9bf0d9; border-radius: 9px; padding: 8px 16px; min-height: 43px; }
.form-warning { padding: 7px 11px; background: #3d3023; color: #ffe1ac; margin-bottom: 8px; border-radius: 7px; }
.section { padding-top: 23px; }
.safety-grid { margin-top: 10px; }
.article-mark { display: inline-block; text-align: center; width: 31px; margin-bottom: 7px; color: #a6fae2; background: #213d47; border-radius: 7px; }
.amber { color: #ffe3a8; background: #483934; }
.article h3 { font-size: 21px; }
.article p, .article li, .sources { color: #c0d1de; }
.drinks, .safety-list { padding-right: 20px; margin: 8px 0; }
.drinks li span { margin-right: 7px; }
.article .footnote { margin: 7px 0; font-size: 14px; }
.sources { margin-top: 18px; }
.sources summary { cursor: pointer; color: #eef7ff; font-weight: 700; }
.sources ul { margin-bottom: 0; }
.sources li:target { background: #254152; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; color: #b5c7d6; font-size: 13px; padding: 13px 0 22px; }
.tv .shell { width: 90%; max-width: 1360px; }
.tv .top-inner { min-height: 50px; }
.tv .intro { padding: 12px 0; }
.tv .intro h1 { font-size: 39px; }
.tv .station-name { font-size: 16px; }
.tv .station-hour { font-size: 17px; }
.tv .station, .tv .quick-controls button, .tv .clock-actions > * { min-height: 44px; }
.tv :focus { outline: 3px solid #fbdf82; outline-offset: 2px; }
@media (max-width: 760px) {
  .shell { width: 94%; }
  .panel { padding: 16px; }
  h1 { font-size: 40px; }
  .digits { font-size: 52px; }
  .live-stage h2 { font-size: 28px; }
  .route-track { display: none; }
  .stations li { flex-basis: 25%; display: flex; }
  .station { min-height: 77px; border-color: #2a4354; margin: 2px 0; }
}
@media (max-width: 540px) {
  .dashboard, .safety-grid { display: block; }
  .dashboard > * + *, .safety-grid > * + * { margin-top: 10px; }
  .intro { padding: 14px 0 9px; }
  .live-stage { min-height: 0; }
  .journey { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
