:root { font-family: "Segoe UI", system-ui, sans-serif; color: #193b44; background: #eef3f5; font-synthesis: none; line-height: 1.5; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, summary, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 3px solid #a45117; }
button { min-height: 48px; padding: .7rem 1.3rem; border: 1px solid #a3b8bd; border-radius: 10px; background: #fff; color: #193b44; cursor: pointer; font-weight: 600; }
button:hover { background-color: #eaf1f3; }
button:disabled { opacity: .6; cursor: default; }
.primary { background: #164e55; color: white; border-color: #164e55; min-width: 150px; }
.primary:hover { background: #103e44; }
.quiet { background: transparent; }
.site-header { max-width: 1040px; margin: auto; padding: 1.4rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: block; width: clamp(140px, 20vw, 180px); }
.wordmark img { display: block; width: 100%; height: auto; }
.module-label { font-size: .9rem; border-left: 1px solid #b6c8ce; padding-left: 1rem; }
main { max-width: 1040px; margin: 0 auto; padding: 0 2rem; }
.activity { background: white; border: 1px solid #d8e3e7; border-radius: 20px; padding: 2rem 2.5rem; box-shadow: 0 8px 32px #193b4405; }
.activity-heading { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.eyebrow { font-size: .75rem; letter-spacing: .13em; font-weight: 650; margin: 0 0 .35rem; color: #47636c; }
h1 { font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1.2; letter-spacing: -.03em; margin: 0; }
h2 { font-size: 1.1rem; margin: 0 0 .8rem; }
p { margin: .6rem 0; }
.practice-label { font-size: .9rem; font-weight: 650; border-left: 3px solid #819ca6; padding-left: .8rem; }
.practice-label span { font-size: .875rem; font-weight: 400; }
.learning-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: center; }
.clock-panel { text-align: center; padding: .5rem; }
#clock { display: block; width: min(100%, 240px); margin: auto; }
.digital-time { font-size: clamp(1.7rem, 4vw, 2.6rem); font-variant-numeric: tabular-nums; line-height: 1.2; font-weight: 650; letter-spacing: .02em; margin: .6rem 0 0; }
.small-label { font-size: .875rem; color: #4d6770; }
.event-panel { align-self: stretch; background: #edf3f5; border-radius: 14px; padding: 1.4rem; display: flex; flex-direction: column; justify-content: space-between; text-align: center; }
.arrival-label { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.arrival-label strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.scene { margin: .8rem 0 0; }
.scene-wait { font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.road { height: 150px; position: relative; border-bottom: 3px solid #819ca6; }
.road #bus-art { position: absolute; width: 30%; height: auto; bottom: 0; left: 0; transform: scaleX(-1); }
.stop-label { position: absolute; right: 30%; top: .5rem; border-right: 3px solid #47636c; padding: .25rem .4rem 2rem 0; font-size: .875rem; }
.marvin { position: absolute; bottom: 0; left: 67%; width: 46px; text-align: center; }
.marvin span { position: absolute; bottom: 58px; left: -8px; font-size: .75rem; background: #edf3f5; }
.marvin img { display: block; width: 46px; height: 56px; object-fit: contain; }
.onboard { position: absolute; bottom: 65px; width: 30%; font-size: .75rem; }
.activity-setup { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-items: end; }
.activity-setup label { margin: 0; }
#setup-message { margin-bottom: 1.5rem; }
.route-labels { display: flex; justify-content: space-between; font-size: .875rem; color: #4d6770; margin-top: .4rem; }
#bus-status { font-weight: 600; }
.interval-panel { border-top: 1px solid #e1e9ec; padding-top: 1.2rem; margin-top: 1.4rem; }
.interval-counts { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; }
.segments { display: flex; flex-wrap: wrap; gap: .35rem; min-height: 34px; align-items: center; margin-top: .3rem; }
.segment { width: 118px; height: 32px; background: linear-gradient(to right, #9ac5c9 var(--fill, 0%), #fff var(--fill, 0%)); border: 2px solid #617d86; border-radius: 5px; display: grid; place-items: center; font-size: .875rem; font-variant-numeric: tabular-nums; }
.segment.done { background: #176776; border-color: #176776; color: white; }
.caption { font-size: 1.2rem; min-height: 3.6rem; padding-top: 1rem; margin-bottom: .7rem; }
.controls { display: flex; gap: .7rem; flex-wrap: wrap; position: sticky; bottom: 0; background: white; padding: .6rem 0; }
.support { margin: 1.2rem 0; }
details { border-bottom: 1px solid #c8d7dd; }
summary { cursor: pointer; padding: 1rem .2rem; min-height: 48px; font-weight: 600; }
.details-body { background: #fff; padding: 1.5rem; border-radius: 12px; margin: .2rem 0 1rem; }
.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1rem 0; }
.day { font-weight: 400; text-align: left; }
.day strong { display: block; font-size: 1.15rem; }
.day.today { border: 2px solid #164e55; background: #eaf2f3; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.3rem 0; }
label { display: block; margin: .7rem 0; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; min-height: 48px; padding: .65rem; color: #193b44; background: white; border: 1px solid #93adb6; border-radius: 7px; margin-top: .4rem; }
textarea { resize: vertical; }
.check { display: flex; gap: .7rem; align-items: center; min-height: 44px; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: #164e55; flex: 0 0 auto; }
.zone-input { display: flex; gap: .5rem; align-items: baseline; }
.zone-input input { min-width: 0; }
hr { border: 0; border-top: 1px solid #dce5e8; margin: 1.5rem 0; }
.adult-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
footer { text-align: center; padding: 1rem 1rem 2rem; font-size: .875rem; color: #4d6770; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  main { padding: 0 .8rem; }
  .site-header { padding: 1rem 1.2rem; }
  .activity { padding: 1.2rem; border-radius: 14px; }
  .activity-heading { display: block; margin-bottom: 1rem; }
  .practice-label { display: block; margin-top: .9rem; }
  .learning-grid { gap: 1rem; grid-template-columns: 1fr; }
  .clock-panel { padding: 0; }
  .event-panel { padding: .7rem; }
  .arrival-label { display: block; font-size: .875rem; }
  .arrival-label strong { display: block; font-size: 1.3rem; }
  .road { height: 110px; }
  .digital-time { font-size: 2rem; }
  .caption { font-size: 1.1rem; }
  .primary { min-width: 115px; }
  button { padding: .65rem .85rem; }
  .controls { gap: .4rem; }
  .settings-grid, .days { grid-template-columns: 1fr; gap: .4rem; }
  .activity-setup { grid-template-columns: 1fr; gap: .5rem; }
  .details-body { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

#road-progress { display: block; width: 70%; height: 12px; margin-top: 5px; accent-color: #248b98; }
.hour-mode #elapsed-arc, .hour-mode #second-lap { stroke: #b85c19; }
.hour-mode #road-progress { accent-color: #b85c19; }
.hour-mode .segment { background: linear-gradient(to right, #f2c69e var(--fill, 0%), #fff var(--fill, 0%)); }
.hour-mode .segment.done { background: #b85c19; border-color: #b85c19; }

.road-scale { position: relative; width: 70%; height: 1.5rem; margin-top: .25rem; font-size: .7rem; color: #4d6770; }
.road-scale span { position: absolute; top: 0; transform: translateX(-50%); border-left: 1px solid #819ca6; min-height: 6px; padding-top: .2rem; white-space: nowrap; }
.road-scale span:first-child { transform: none; }
.road-scale span:last-child { transform: translateX(-100%); }

.scale-unit { width: 70%; font-size: .75rem; margin: 0 0 .8rem; color: #4d6770; }

input[aria-invalid="true"] { border: 2px solid #a45117; }


#duration-message:not(:empty) { color: #8c4014; font-weight: 600; }

#setup-message:empty { display: none; }

.clock-panel, .scene, .interval-panel { contain: paint; }
.scene-wait { min-height: 3em; }
#bus-status { min-height: 3em; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 0; }
