:root {
  --bg: #07080c;
  --card: #11131a;
  --ink: #f2f3f5;
  --soft: rgba(242, 243, 245, 0.5);
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ffb547;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 12px;
}

.jl { position: relative; width: min(344px, 100%); padding: 14px 14px 13px; border-radius: 24px; background: radial-gradient(110% 60% at 0% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 62%), var(--card); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 50px -30px #000000; }

.jl__top { display: flex; align-items: center; gap: 10px; height: 38px; }
.jl__mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(150deg, #262933, #181a22); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.jl__mark svg { width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; }
.jl__id { flex: 1; min-width: 0; display: grid; gap: 1px; }
.jl__id b { font-size: 15px; line-height: 19px; font-weight: 720; font-stretch: 104%; letter-spacing: -0.005em; white-space: nowrap; }
.jl__id span { font-size: 11.500px; line-height: 15px; color: var(--soft); white-space: nowrap; }

/* the days of the plan: a thumb slides under the chosen one */
.jl__days { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); height: 32px; margin-top: 10px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--line); }
.jl__thumb { position: absolute; left: 3px; top: 3px; width: calc((100% - 6px) / 5); height: 26px; border-radius: 9px; background: #2a2d38; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 10px -6px #000000; }
.jl__days button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 0; background: none; color: var(--soft); font: inherit; font-size: 12px; font-weight: 640; cursor: pointer; outline: none; border-radius: 9px; transition: color 0.25s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.jl__days button svg { width: 11px; height: 11px; fill: none; stroke: var(--accent); stroke-width: 1.400; stroke-linecap: round; stroke-linejoin: round; }
.jl__days button[aria-pressed="true"] { color: var(--ink); }
.jl__days button:focus-visible { box-shadow: 0 0 0 1.500px rgba(255, 255, 255, 0.6); }
@media (hover: hover) { .jl__days button:hover { color: var(--ink); } }

/* the day on two clocks: home above, destination below, the plan in between */
.jl__strip { position: relative; height: 86px; margin-top: 12px; outline: none; cursor: crosshair; touch-action: pan-y; border-radius: 8px; -webkit-tap-highlight-color: transparent; }
.jl__strip:focus-visible { box-shadow: 0 0 0 1.500px rgba(255, 255, 255, 0.5); }
.jl__strip svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: hidden; }
.jl__lane { fill: rgba(255, 255, 255, 0.04); stroke: var(--line); }
.jl__tickmark { stroke: rgba(242, 243, 245, 0.28); stroke-width: 1; }
.jl__hour { fill: var(--ink); font-size: 9.500px; font-weight: 560; text-anchor: middle; font-variant-numeric: tabular-nums; }
.jl__band--sleep { fill: rgba(255, 255, 255, 0.13); stroke: rgba(255, 255, 255, 0.26); }
.jl__band--seek { fill: var(--accent); }
.jl__band--avoid { fill: url(#jl-hatch); stroke: rgba(255, 255, 255, 0.2); stroke-dasharray: 2 3; }
#jl-hatch line { stroke: rgba(255, 255, 255, 0.2); stroke-width: 2; }
.jl__band { transition: opacity 0.25s ease; }
[data-reading] .jl__band { opacity: 0.55; }
[data-reading] .jl__band[data-on] { opacity: 1; }
.jl__icon { fill: none; stroke: var(--ink); stroke-width: 1.300; stroke-linecap: round; stroke-linejoin: round; }
.jl__icon--seek { stroke: #1b1305; }
.jl__icon--avoid { stroke: rgba(242, 243, 245, 0.7); }
.jl__cursor { stroke: rgba(242, 243, 245, 0.7); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.jl__zone { position: absolute; left: 0; font-size: 9.500px; line-height: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none; }
.jl__zone--home { top: 0; }
.jl__zone--away { bottom: 0; }
.jl__tag { position: absolute; left: 0; width: 44px; height: 17px; margin-left: -22px; border-radius: 5px; background: var(--ink); color: #0b0c10; font-size: 9.500px; line-height: 17px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; pointer-events: none; opacity: 0; box-shadow: 0 6px 10px -6px #000000; }
.jl__tag--home { top: -1px; }
.jl__tag--away { bottom: -1px; }

.jl__rows { list-style: none; display: grid; gap: 2px; margin-top: 10px; }
.jl__rows li { display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 8px; border-radius: 8px; font-size: 12px; transition: background-color 0.25s ease; }
.jl__rows li[data-on] { background: rgba(255, 255, 255, 0.07); }
.jl__rows svg { flex: none; width: 14px; height: 14px; fill: none; stroke: var(--soft); stroke-width: 1.300; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.25s ease; }
.jl__rows li[data-row="seek"] svg { stroke: var(--accent); }
.jl__rows li[data-on] svg { stroke: var(--ink); }
.jl__rows li[data-row="seek"][data-on] svg { stroke: var(--accent); }
.jl__rows b { flex: 1; font-weight: 600; white-space: nowrap; }
.jl__time { display: block; height: 16px; overflow: hidden; line-height: 16px; color: var(--soft); font-variant-numeric: tabular-nums; }
.jl__time span { display: block; white-space: nowrap; }

.jl__meter { display: grid; gap: 6px; margin-top: 10px; padding: 0 8px; }
.jl__meterhead { display: flex; align-items: center; justify-content: space-between; height: 15px; font-size: 11.500px; line-height: 15px; }
.jl__meterhead b { font-weight: 640; }
.jl__shift { display: block; height: 15px; overflow: hidden; color: var(--soft); font-variant-numeric: tabular-nums; }
.jl__shift span { display: block; white-space: nowrap; }
.jl__track { position: relative; display: block; height: 5px; border-radius: 2.500px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.jl__track i { position: absolute; inset: 0; border-radius: 2.500px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #f2f3f5; stroke: #0b0c0f; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); z-index: 6; }
