:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-synthesis: none;
  color: #242727;
  --ink: #242727;
  --muted: #686d6b;
  --line: rgba(36, 39, 39, 0.1);
  --green: #2f6b52;
  --wash: #edf2eb;
  --sky: #dfeaf0;
  /* Chrome is frosted glass: mostly the map behind it, blurred, under a thin wash. */
  /* Light glass: mostly white, so it stays clean whatever colour the map behind it is. (It was half as
     white with the colours behind it turned up, which went muddy over a dusk-coloured city.) */
  --glass: rgba(255, 255, 255, 0.8);
  --glass-dense: rgba(255, 255, 255, 0.9);
  --glass-solid: rgba(255, 255, 255, 0.97);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 10px 28px -18px rgba(16, 26, 40, 0.34), 0 1px 2px rgba(16, 26, 40, 0.06);
  --frost: blur(18px) saturate(1.08);
  --seg: #fff;                               /* the tile under the chosen day */
  --tag: rgba(255, 255, 255, 0.86);          /* activity tags on the map: no blur, so a little denser */
  --tag-edge: rgba(16, 26, 40, 0.1);
  --chrome-ink: #1b2127;
  --chrome-soft: rgba(27, 33, 39, 0.8);
  --chrome-muted: rgba(27, 33, 39, 0.6);
  --chrome-line: rgba(27, 33, 39, 0.11);
  --chrome-hover: rgba(27, 33, 39, 0.07);
  --chrome-press: rgba(27, 33, 39, 0.82);
  --chrome-inverse: #fff;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}
/* After dark the glass turns smoky and its lettering light. */
.night {
  --glass: rgba(22, 28, 46, 0.62);
  --glass-dense: rgba(20, 26, 42, 0.8);
  --glass-solid: rgba(24, 30, 48, 0.95);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --glass-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --seg: rgba(255, 255, 255, 0.16);
  --tag: rgba(22, 28, 46, 0.84);
  --tag-edge: rgba(255, 255, 255, 0.18);
  --chrome-ink: #f3f5f8;
  --chrome-soft: rgba(243, 245, 248, 0.82);
  --chrome-muted: rgba(243, 245, 248, 0.62);
  --chrome-line: rgba(255, 255, 255, 0.14);
  --chrome-hover: rgba(255, 255, 255, 0.1);
  --chrome-press: rgba(243, 245, 248, 0.9);
  --chrome-inverse: #161c2c;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--sky);
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

button, input, select { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, canvas:focus-visible {
  outline: 2px solid #4f8a6e;
  outline-offset: 2px;
}
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

#map {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  outline-offset: -3px;
}
#map.is-dragging { cursor: grabbing; }
#map.is-orbiting { cursor: move; }

/* Miniature look: soften the far and near edges of the view. */
.tilt {
  position: fixed;
  left: 0;
  right: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(2.6px);
  backdrop-filter: blur(2.6px);
  transition: opacity 0.7s;
}
.tilt-top { top: 0; height: 24%; -webkit-mask-image: linear-gradient(#000 10%, transparent); mask-image: linear-gradient(#000 10%, transparent); }
.tilt-bottom { bottom: 0; height: 15%; -webkit-mask-image: linear-gradient(transparent, #000 90%); mask-image: linear-gradient(transparent, #000 90%); }
.no-tilt .tilt, .flat .tilt { display: none; }
/* The Model look (js/looks.js) is drawn crisp to its edges, like the model it takes after, and its
   panels are plain white cards over the clouds rather than glass. After dark they are the usual smoky glass. */
[data-look='model'] .tilt { display: none; }
[data-look='model'] body:not(.night) {
  --glass: #fff;
  --glass-dense: #fff;
  --glass-solid: #fff;
  --glass-edge: rgba(16, 26, 40, 0.07);
  --glass-shadow: 0 10px 26px -16px rgba(16, 26, 40, 0.36), 0 1px 2px rgba(16, 26, 40, 0.08);
}
/* At eye level (first person) the city is no miniature: the edges are left sharp. */
.eye .tilt { opacity: 0; }

/* ---- map labels ---------------------------------------------------------- */
.labels { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.lbl {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  text-align: center;
  opacity: 0;
  visibility: hidden;                 /* hidden labels must not take keyboard focus */
  transition: opacity 0.2s, visibility 0s 0.2s;
  will-change: transform, opacity;
  color: #3a403d;
  paint-order: stroke fill;
  -webkit-text-stroke: 2.4px rgba(255, 255, 255, 0.82);
  user-select: none;
}
.lbl.on { opacity: 1; visibility: visible; transition: opacity 0.2s; }

/* Landmarks are plain map lettering, not buttons: the model is the marker. */
.lbl-landmark {
  pointer-events: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: #1f2523;
  -webkit-text-stroke: 2.8px rgba(255, 255, 255, 0.9);
  cursor: pointer;
}
.lbl-landmark.on { pointer-events: auto; }
.lbl-landmark:hover { color: var(--green); }
.lbl-landmark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(100% + 1px);
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #1f2523;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.92);
}

/* Things happening: the one kind of label that is a small tag, in the same glass as the controls. */
.lbl-activity {
  pointer-events: none;
  -webkit-text-stroke: 0;
  background: var(--tag);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--chrome-ink);
  box-shadow: 0 0 0 0.5px var(--tag-edge), 0 6px 14px -8px rgba(16, 26, 40, 0.5);
  cursor: pointer;
}
.lbl-activity.on { pointer-events: auto; }
.lbl-activity:hover { background: var(--glass-solid); }
.lbl-lead { color: var(--chrome-muted); }
/* Under the tag, a dot in the colour of the crowd it belongs to. */
.lbl-activity::after {
  content: '';
  position: absolute;
  left: calc(50% + var(--dot, 0px));
  top: calc(100% + 3px);
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--accent, #2f6b52);
  box-shadow: 0 0 0 1.5px var(--tag);
}
/* Where something happens: a small light, there at every zoom. Filled while it is on, a ring while it
   is still to come, and a number when several share the spot at this zoom. */
.lbl-light {
  pointer-events: none;
  -webkit-text-stroke: 0;
  border-radius: 50%;
  /* A lit lantern more than a pin: bright in the middle, its own colour round the edge, a soft glow. */
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent, #2f6b52) 55%, #fff5dc), var(--accent, #2f6b52) 72%);
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
  text-shadow: 0 0 3px color-mix(in srgb, var(--accent) 70%, #000);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.92), 0 0 12px 4px color-mix(in srgb, var(--accent) 42%, transparent);
  cursor: pointer;
  transition: opacity 0.2s, visibility 0s 0.2s, box-shadow 0.25s;
}
.lbl-light.on { pointer-events: auto; transition: opacity 0.2s, box-shadow 0.25s; }
.lbl-light.is-later {
  background: #fffaf0;
  color: var(--accent);
  text-shadow: none;
  box-shadow: inset 0 0 0 2.5px var(--accent), 0 0 0 1.5px rgba(255, 255, 255, 0.9), 0 0 8px 2px color-mix(in srgb, var(--accent) 26%, transparent);
}
.lbl-light.is-later:not(:empty) { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 1.5px rgba(255, 255, 255, 0.9), 0 0 8px 2px color-mix(in srgb, var(--accent) 26%, transparent); }
/* A slow ring going out from whatever is on now. */
.lbl-light.is-on::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: ping 3.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
  pointer-events: none;
}
.lbl-light.is-on:nth-child(3n)::before { animation-delay: -0.9s; }
.lbl-light.is-on:nth-child(3n + 1)::before { animation-delay: -1.8s; }
@keyframes ping {
  0% { transform: scale(1); opacity: 0.6; }
  75%, 100% { transform: scale(2.6); opacity: 0; }
}
.lbl-light.is-hot, .lbl-light.is-picked, .lbl-light:hover {
  box-shadow: 0 0 0 2px #fff, 0 0 0 9px color-mix(in srgb, var(--accent) 40%, transparent), 0 0 16px 6px color-mix(in srgb, var(--accent) 50%, transparent);
}
.lbl-activity.is-hot, .lbl-activity.is-picked { background: var(--glass-solid); box-shadow: 0 0 0 1.5px var(--accent, #2f6b52), 0 6px 14px -8px rgba(16, 26, 40, 0.5); }
.night .lbl-light { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.92), 0 0 14px 5px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 28px 10px color-mix(in srgb, var(--accent) 28%, transparent); }
.night .lbl-light.is-later { box-shadow: inset 0 0 0 2.5px var(--accent), 0 0 10px 3px color-mix(in srgb, var(--accent) 50%, transparent); }
.lbl-borough { font-size: 12.5px; font-weight: 450; letter-spacing: 2.4px; text-transform: uppercase; color: #5b6360; }
.lbl-place { font-size: 11.5px; font-weight: 450; letter-spacing: 1.3px; text-transform: uppercase; color: #4a514e; }
.lbl-hood { font-size: 10.5px; font-weight: 430; letter-spacing: 1px; text-transform: uppercase; color: #68706c; }
.lbl-park { font-size: 11.5px; font-weight: 400; font-style: italic; color: #3f6b48; }
.lbl-water { font-size: 11.5px; font-weight: 400; font-style: italic; color: #2f6f93; }
.lbl-station { font-size: 10.5px; font-weight: 430; color: #454b49; }
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-radius: 50%;
  border: 2px solid #5a605e;
  background: #fff;
  vertical-align: -0.5px;
}
.dot-tube { border-color: #d9372a; }
.dot-rail { border-color: #4d5560; }
.dot-overground { border-color: #e8792b; }
.dot-dlr { border-color: #1fa9a2; }
.dot-elizabeth { border-color: #7a4fb0; }
.dot-tram { border-color: #5aa83c; }

/* ---- chrome: one slim glass bar, three small glass buttons -------------------- */
.bar {
  position: fixed;
  top: calc(12px + var(--safe-t));
  left: calc(12px + var(--safe-l));
  max-width: calc(100% - 24px - var(--safe-l) - var(--safe-r));
  display: flex;
  align-items: center;
  gap: 2px;
  height: 46px;
  padding: 0 5px 0 15px;                 /* the name starts where the list's and the card's lines start */
  border-radius: 23px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
  color: var(--chrome-ink);
  font-size: 13px;
  transition: background-color 0.5s, border-color 0.5s, color 0.5s;
  z-index: 3;
}
.mark {
  padding-right: 12px;
  font-size: 14px;
  font-weight: 460;
  letter-spacing: -0.25px;
  white-space: nowrap;
}
/* The bar reads in two short lines: a quiet word over the value (Today over 28, Evening over the scrubber). */
.cap, .day-name, .parts button {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 12px;
  color: var(--chrome-muted);
}

/* The day: a strip of dates to tap, or to swipe along for the weeks ahead. The chosen one sits on a soft tile. */
.days {
  flex: 0 1 290px;
  min-width: 124px;
  align-self: stretch;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--chrome-line);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  --before: 0px;
  --after: 0px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--before), #000 calc(100% - var(--after)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--before), #000 calc(100% - var(--after)), transparent);
}
.days::-webkit-scrollbar { display: none; }
.days.more-before { --before: 22px; }
.days.more-after { --after: 22px; }
.days-row { position: relative; flex: none; display: flex; padding: 0 5px; }
.days-on {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 100%;
  border-radius: 11px;
  background: var(--seg);
  box-shadow: 0 1px 3px rgba(16, 26, 40, 0.14), 0 0 0 0.5px rgba(16, 26, 40, 0.05);
  opacity: 0;
  pointer-events: none;
}
.days-on.is-shown { opacity: 1; }
.days-on.is-placed { transition: transform 0.32s cubic-bezier(0.3, 0.75, 0.2, 1), width 0.32s; }
.day {
  position: relative;
  flex: none;
  width: 40px;
  height: 36px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1px;
  border-radius: 11px;
  color: var(--chrome-soft);
  transition: color 0.2s;
}
.day-name { transition: color 0.2s; }
.day-num { font-size: 14px; font-weight: 400; line-height: 17px; letter-spacing: -0.2px; font-variant-numeric: tabular-nums; }
.day:hover, .day[aria-checked='true'] { color: var(--chrome-ink); }
.day[aria-checked='true'] .day-name { color: var(--chrome-soft); }
.day.is-empty .day-num { opacity: 0.42; }
.day:focus-visible { outline-offset: -2px; }

/* The time: the three parts of the day named over a hairline that shows the day's light, and a small knob. */
.time {
  flex: none;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px 0 10px;
  border-left: 1px solid var(--chrome-line);
}
.scrub { position: relative; flex: none; width: 212px; height: 36px; }
.parts { position: absolute; left: 8px; right: 8px; top: 0; height: 18px; }
.parts button {
  position: absolute;
  top: 0;
  padding: 3px 4px 4px;
  transform: translateX(-50%);
  border-radius: 6px;
  transition: color 0.25s;
}
/* Each name sits over the middle of its hours on the scrubber (06:00 to 02:00). */
.parts button[data-part='day'] { left: 27.5%; }
.parts button[data-part='evening'] { left: 65%; }
.parts button[data-part='night'] { left: 87.5%; }
.parts button:hover { color: var(--chrome-soft); }
.parts button.is-on { color: var(--chrome-ink); }
.scrub input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 100%;
  height: 22px;
  margin: 0;
  padding: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  /* The day's light as a faint wash along a hairline: pale sky through the day, a little warmth for the evening, dusk blue at night. */
  --light: linear-gradient(90deg, #a9b1cf 0%, #f2e2d3 4%, #cfe3f1 10%, #cfe3f1 50%, #f3e1cf 57%, #efd5c8 70%, #aab2d0 78%, #8690b4 100%);
}
.scrub input[type='range']::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: var(--light); box-shadow: inset 0 0 0 0.5px rgba(16, 26, 40, 0.1); }
.scrub input[type='range']::-moz-range-track { height: 3px; border-radius: 2px; background: var(--light); box-shadow: inset 0 0 0 0.5px rgba(16, 26, 40, 0.1); }
.scrub input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 26, 40, 0.38), 0 0 0 0.5px rgba(16, 26, 40, 0.14);
  transition: transform 0.15s;
}
.scrub input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 26, 40, 0.38), 0 0 0 0.5px rgba(16, 26, 40, 0.14);
}
.scrub input[type='range']:hover::-webkit-slider-thumb { transform: scale(1.12); }
.scrub input[type='range']:active::-webkit-slider-thumb { transform: scale(1.24); }
/* The clock is the value of the whole group: set like the date, on the bar's middle line with the name
   at the other end and the search button beside it (it used to hang at the scrubber's height, 6px lower
   than the button, which read as broken). */
.time output { min-width: 40px; font-size: 14px; font-weight: 400; line-height: 17px; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -0.2px; }

.search { position: static; flex: none; align-self: stretch; display: flex; align-items: center; min-width: 0; padding-left: 4px; border-left: 1px solid var(--chrome-line); }   /* flex none: when room is short the dates give way, not the button */
.search input {
  display: none;
  width: 250px;
  min-width: 0;
  height: 32px;
  padding: 0 4px 0 10px;
  border: 0;
  border-left: 1px solid var(--chrome-line);
  background: transparent;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}
.search input:focus-visible { outline: none; }
.search input::placeholder { color: var(--chrome-muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.bar.is-searching .days, .bar.is-searching .time { display: none; }
.bar.is-searching .search { flex: 1; padding-left: 0; border-left: 0; }
.bar.is-searching .search input { display: block; flex: 1; }
.bar-btn {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--chrome-soft);
  transition: background-color 0.15s;
}
.bar-btn:hover { background: var(--chrome-hover); color: var(--chrome-ink); }
.bar-btn svg { width: 16px; height: 16px; stroke-width: 1.8; }
.results {
  position: absolute;
  top: 54px;
  left: 0;
  width: max(100%, 280px);
  max-width: calc(100vw - 24px);
  margin: 0;
  padding: 5px;
  list-style: none;
  border-radius: 18px;
  border: 1px solid var(--glass-edge);
  background: var(--glass-solid);          /* inside the bar, a second blur cannot see the map, so this one is nearly solid */
  box-shadow: var(--glass-shadow);
  max-height: min(60vh, 400px);
  overflow: auto;
}
.results li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 10px 11px;
  border-radius: 13px;
  font-size: 14px;
  cursor: pointer;
}
.results li[aria-selected='true'], .results li:hover { background: var(--chrome-hover); }
.results small { color: var(--chrome-muted); font-size: 11px; white-space: nowrap; }
.results .empty { color: var(--chrome-muted); cursor: default; }
.results .empty:hover { background: none; }

.controls {
  position: fixed;
  right: calc(12px + var(--safe-r));
  bottom: calc(32px + var(--safe-b));
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ctl {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
  color: var(--chrome-soft);
  transition: background-color 0.2s, color 0.2s, border-color 0.5s, transform 0.15s;
}
.ctl:hover { background: var(--glass-dense); color: var(--chrome-ink); }
.ctl:active { transform: scale(0.94); }
.ctl svg { width: 17px; height: 17px; stroke-width: 1.6; }
.ctl span { font-size: 11px; font-weight: 470; letter-spacing: 0.3px; }
.ctl[aria-pressed='true'] { background: var(--chrome-press); border-color: transparent; color: var(--chrome-inverse); }
#compass-needle { transition: transform 0.08s linear; }
.needle-n { fill: #d2493a; stroke: none; }
.needle-s { fill: currentColor; stroke: none; opacity: 0.4; }

/* ---- beside the map: the list of what is on, and under it the card of whatever you picked ---- */
.side {
  position: fixed;
  left: calc(12px + var(--safe-l));
  top: calc(68px + var(--safe-t));
  bottom: calc(32px + var(--safe-b));
  width: min(320px, calc(100% - 72px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  z-index: 2;
}
.list, .card {
  pointer-events: auto;
  border: 1px solid var(--glass-edge);
  background: var(--glass-dense);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
  color: var(--chrome-ink);
  transition: background-color 0.5s, border-color 0.5s, color 0.5s;
}
.list {
  flex: 0 1 auto;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
}
.list-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 38px;
  padding: 0 9px 0 15px;
  text-align: left;
  font-size: 12.5px;
  color: var(--chrome-muted);
  white-space: nowrap;
}
.list-head:focus-visible { outline-offset: -3px; border-radius: 16px; }
.list-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.list-title b { font-weight: 460; color: var(--chrome-ink); letter-spacing: -0.1px; }
.list-chev { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; color: var(--chrome-muted); transform: rotate(180deg); transition: transform 0.32s cubic-bezier(0.3, 0.75, 0.2, 1), background-color 0.15s; }
.list-head:hover .list-chev { background: var(--chrome-hover); color: var(--chrome-ink); }
.list.is-shut .list-chev { transform: none; }
/* Folding: the row the body sits in goes from its full height to none. */
.list-fold { flex: 0 1 auto; min-height: 0; display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.34s cubic-bezier(0.3, 0.75, 0.2, 1); }
.list.is-shut .list-fold { grid-template-rows: 0fr; }
.list-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 5px;
  border-top: 1px solid var(--chrome-line);
  scrollbar-width: thin;
  scrollbar-color: var(--chrome-line) transparent;
  transition: opacity 0.25s;
  /* Where the lines run on below the panel they fade out, rather than being cut through the middle of a word. */
  -webkit-mask-image: linear-gradient(#000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 18px), transparent);
}
.list-body > :last-child { margin-bottom: 14px; }   /* room for the last line to clear that fade */
.list.is-shut .list-body { opacity: 0; border-top-color: transparent; }
.list-h {
  margin: 0;
  padding: 12px 10px 3px;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 14px;
  color: var(--chrome-muted);
}
.list-note { margin: 0; padding: 11px 10px 6px; font-size: 12.5px; line-height: 1.45; color: var(--chrome-muted); }
.list-next { margin: 2px 6px 4px; height: 30px; padding: 0 13px; border-radius: 15px; background: var(--chrome-hover); font-size: 12.5px; font-weight: 400; transition: background-color 0.15s; }
.list-next:hover { background: var(--chrome-line); }
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 5px 10px;
  border-radius: 10px;
  text-align: left;
  transition: background-color 0.15s;
}
.row:hover, .row:focus-visible { background: var(--chrome-hover); }
.row.is-picked { background: var(--chrome-hover); }
.row:focus-visible { outline-offset: -2px; }
/* Rows are words only: the colours belong to the map. What is still to come reads a little quieter than what is on. */
.row:not(.is-on) .row-title { color: var(--chrome-soft); }
.row-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.row-title { font-size: 13px; font-weight: 400; line-height: 1.3; letter-spacing: -0.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { font-size: 11.5px; line-height: 1.3; color: var(--chrome-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-far { flex: none; font-size: 11px; color: var(--chrome-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-far:empty { display: none; }

.card {
  flex: none;
  position: relative;
  margin-top: auto;
  padding: 16px 44px 16px 15px;          /* 15px: the same text column as the list above it */
  border-radius: 16px;
}
.card-kind { margin: 0 0 4px; font-size: 11.5px; font-weight: 400; color: var(--chrome-muted); }
.card-title {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 460;
  letter-spacing: -0.35px;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta { margin: 0 0 7px; font-size: 13px; line-height: 1.45; font-weight: 400; white-space: pre-line; }
.card-about {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--chrome-soft);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px -26px 0 0; }      /* the row runs on under the close button, so both fit side by side */
.card-actions:not(:has(> :not([hidden]))) { display: none; }
.card-share { min-height: 36px; padding: 0 15px; border-radius: 18px; background: var(--chrome-hover); font-size: 13px; font-weight: 400; transition: background-color 0.15s; }
.card-share:hover { background: var(--chrome-line); }
.card-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  background: var(--chrome-press);
  color: var(--chrome-inverse);
  font-size: 13px;
  font-weight: 450;
  text-decoration: none;
  transition: opacity 0.15s;
}
.card-link:hover { opacity: 0.86; }
.card-credit { margin: 10px 0 0; font-size: 10.5px; line-height: 1.45; color: var(--chrome-muted); }
/* The cross sits under the list's arrow, in one column down the right. */
.card-close { position: absolute; top: 7px; right: 3px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--chrome-muted); transition: background-color 0.15s; }
.card-close:hover { background: var(--chrome-hover); color: var(--chrome-ink); }
.card-close svg { width: 15px; height: 15px; }

/* A short message: in the middle of what the open list leaves free (--cover, set by main.js), never under it. */
.status {
  position: fixed;
  left: calc(50% + var(--cover, 0px) / 2);
  top: calc(70px + var(--safe-t));
  transform: translateX(-50%);
  max-width: calc(100% - var(--cover, 0px) - 32px);
  padding: 7px 14px;
  border-radius: 16px;
  background: rgba(24, 30, 40, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
  color: #fff;
  font-size: 12.5px;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s;
  pointer-events: none;
}
.status.is-hidden { opacity: 0; }

/* What is on where you point: a small card that follows the mouse over the map (area-hint.js). */
.hint {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 4;
  width: max-content;
  min-width: 132px;
  max-width: 252px;
  padding: 9px 11px 10px;
  border-radius: 12px;
  background: var(--glass-dense);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
  color: var(--chrome-ink);
  font-size: 12px;
  line-height: 1.3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.14s;
  will-change: transform;
}
.hint.is-on { opacity: 1; }
.hint p { margin: 0; }
.hint [hidden] { display: none; }
.hint-bar { display: flex; gap: 2px; height: 3px; margin: 0 0 7px; }
.hint-bar i { flex: 1; max-width: 34px; border-radius: 2px; background: var(--accent); opacity: 0.36; }
.hint-bar i.is-on { opacity: 1; }
.hint-place { font-size: 11px; font-weight: 400; color: var(--chrome-muted); margin-bottom: 1px; }
.hint-sum { font-size: 12.5px; font-weight: 450; letter-spacing: -0.1px; }
.hint-sum.is-quiet { font-weight: 400; color: var(--chrome-soft); }
.hint-kinds { margin-top: 3px; font-size: 11px; line-height: 1.4; color: var(--chrome-muted); }
.hint-rows { list-style: none; display: grid; gap: 4px; margin: 7px 0 0; padding: 7px 0 0; border-top: 1px solid var(--chrome-line); }
.hint-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.hint-rows.is-nearest::before { content: 'Nearest'; font-size: 11px; font-weight: 400; color: var(--chrome-muted); }
.hint-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hint-when { font-size: 11px; color: var(--chrome-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hint-more { margin-top: 5px; font-size: 11px; color: var(--chrome-muted); }

/* The map's right-click menu (map-menu.js). */
.menu {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 5;
  min-width: 190px;
  padding: 5px;
  border-radius: 14px;
  background: var(--glass-solid);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow), 0 18px 40px -18px rgba(16, 26, 40, 0.5);
  color: var(--chrome-ink);
}
.menu-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px 8px 8px; border-radius: 10px; font-size: 13px; font-weight: 400; text-align: left; white-space: nowrap; }
.menu-item:hover, .menu-item:focus-visible { background: var(--chrome-hover); outline: none; }
.menu-tick { flex: none; width: 14px; height: 14px; }
.menu-item[aria-checked='true'] .menu-tick { background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l3 3 6-6.6' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l3 3 6-6.6' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* The row of candidate looks (?looks): there to choose between them, not part of the map's own chrome. */
.looks {
  position: fixed;
  left: 50%;
  bottom: calc(30px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
}
.looks button { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 440; color: var(--chrome-soft); transition: background-color 0.2s, color 0.2s; }
.looks button:hover { background: var(--chrome-hover); color: var(--chrome-ink); }
.looks button[aria-pressed='true'] { background: var(--chrome-press); color: var(--chrome-inverse); }

.credit {
  position: fixed;
  right: calc(12px + var(--safe-r));     /* ends where the round buttons end */
  bottom: calc(5px + var(--safe-b));
  max-width: calc(100% - 24px - var(--safe-l) - var(--safe-r));
  padding: 2px 8px;
  border-radius: 9px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 10px;
  color: var(--chrome-soft);
  text-align: right;
}
.credit a { color: inherit; }
.credit span + span::before { content: ' · '; }

.debug {
  position: fixed;
  right: calc(12px + var(--safe-r));
  top: calc(64px + var(--safe-t));
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(20, 28, 24, 0.78);
  color: #d9f2df;
  font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  pointer-events: none;
}
.noscript { position: fixed; inset: 0; display: grid; place-items: center; margin: 0; }

.night .lbl { color: #eef2f0; -webkit-text-stroke-color: rgba(20, 28, 44, 0.8); }
.night .lbl-landmark { color: #fff; -webkit-text-stroke-color: rgba(16, 22, 40, 0.86); }
.night .lbl-landmark::after { background: #fff; box-shadow: 0 0 0 1.5px rgba(16, 22, 40, 0.86); }
.night .lbl-park { color: #a9d9b0; }
.night .lbl-water { color: #a6d4ee; }

/* Phones: the name and search on one short row, day and time on a second so the scrubber has room. */
/* Below 660px the bar goes to three rows. (It was 600px while the name was two words; with three
   the one-row bar needs about 640px.) js/event-list.js and js/labels.js use the same width. */
@media (max-width: 660px) {
  .bar {
    right: calc(12px + var(--safe-r));
    height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: 'mark search' 'days days' 'time time';
    padding: 4px 5px 6px 15px;
    border-radius: 22px;
  }
  .mark { grid-area: mark; }
  .search { grid-area: search; justify-self: end; align-self: center; padding-left: 0; border-left: 0; }
  .days { grid-area: days; flex: none; margin: 0 0 0 -10px; padding-top: 5px; border-left: 0; border-top: 1px solid var(--chrome-line); }
  .time { grid-area: time; margin-left: -6px; padding: 3px 8px 0 4px; border-left: 0; }
  .time output { padding-top: 12px; }
  .scrub { flex: 1; width: auto; }
  .day { width: 44px; }                                  /* a little more to aim at with a thumb */
  .parts button { padding: 4px 9px 6px; }
  .bar.is-searching .mark { display: none; }
  .bar.is-searching .search { grid-column: 1 / -1; justify-self: stretch; }
  .bar.is-searching .search input { border-left: 0; padding-left: 2px; }
  .results { top: calc(100% + 8px); }
  /* The list sits at the bottom as one line and opens upwards; the card of what you picked goes above it. */
  .side { top: calc(150px + var(--safe-t)); bottom: calc(40px + var(--safe-b)); width: auto; right: calc(60px + var(--safe-r)); justify-content: flex-end; gap: 8px; }
  .list { order: 2; max-height: min(52vh, 100%); }
  .list-head { height: 40px; }
  .list-chev { transform: none; }
  .list.is-shut .list-chev { transform: rotate(180deg); }
  .list-fold { order: -1; }
  .list-body { border-top: 0; border-bottom: 1px solid var(--chrome-line); -webkit-mask-image: none; mask-image: none; }
  .list-body > :last-child { margin-bottom: 6px; }
  .list.is-shut .list-body { border-bottom-color: transparent; }
  .card { margin-top: 0; padding: 14px 42px 14px 15px; }
  .card-title { font-size: 17px; }
  .card-about { -webkit-line-clamp: 3; }
  .status { top: calc(150px + var(--safe-t)); }
  /* The credit line keeps its full width here: any narrower and it runs to a third line, over the list's heading. */
  .credit { right: calc(8px + var(--safe-r)); max-width: calc(100% - 16px - var(--safe-l) - var(--safe-r)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- trims (js/looks.js, TRIMS): how markers, name tags and panels are dressed ---------------------
   Options to choose between; ?options shows a row of them. Each tones the activities' own colours
   down towards a warm grey (--tone), by as much as suits it. */
.trims { bottom: calc(30px + var(--safe-b)); }
.looks:not(.trims) ~ .trims, .trims ~ .looks:not(.trims) { bottom: calc(70px + var(--safe-b)); }
[data-ui='lantern'] { --tone-mix: 68%; }
[data-ui='ink'] { --tone-mix: 56%; }
[data-ui='glow'] { --tone-mix: 84%; }
[data-ui] .lbl-light, [data-ui] .lbl-activity { --tone: color-mix(in srgb, var(--accent, #2f6b52) var(--tone-mix, 100%), #857a6c); }

/* Lantern: paper. Pale discs with a ring of quiet colour and an ink number; a single activity has a
   heart of its colour. Panels are warm paper with a hairline, their corners less round. */
[data-ui='lantern'] body:not(.night) {
  --glass: #fbf6ec;
  --glass-dense: #fbf6ec;
  --glass-solid: #fdf9f1;
  --glass-edge: rgba(70, 52, 34, 0.17);
  --glass-shadow: 0 6px 18px -14px rgba(60, 40, 20, 0.55);
  --seg: #fffdf8;
  --tag: #fdf8ee;
  --tag-edge: rgba(70, 52, 34, 0.24);
  --chrome-ink: #2b2520;
  --chrome-soft: rgba(43, 37, 32, 0.82);
  --chrome-muted: rgba(43, 37, 32, 0.58);
  --chrome-line: rgba(70, 52, 34, 0.13);
  --chrome-hover: rgba(70, 52, 34, 0.07);
  --chrome-press: #3a322b;
  --chrome-inverse: #fbf6ec;
}
[data-ui='lantern'] .bar { border-radius: 15px; }
[data-ui='lantern'] .days-on, [data-ui='lantern'] .day { border-radius: 9px; }
[data-ui='lantern'] .list, [data-ui='lantern'] .card { border-radius: 14px; }
[data-ui='lantern'] .ctl, [data-ui='lantern'] .menu { border-radius: 12px; }
[data-ui='lantern'] .menu-item { border-radius: 8px; }
[data-ui='lantern'] .credit { border-radius: 7px; }
[data-ui='lantern'] .lbl-activity { border-radius: 7px; box-shadow: 0 0 0 0.5px var(--tag-edge), 0 4px 10px -8px rgba(60, 40, 20, 0.55); }
[data-ui='lantern'] .lbl-activity::after { background: var(--tone); }
[data-ui='lantern'] .lbl-activity.is-hot, [data-ui='lantern'] .lbl-activity.is-picked { box-shadow: 0 0 0 1.5px var(--tone), 0 4px 10px -8px rgba(60, 40, 20, 0.55); }
[data-ui='lantern'] .lbl-light {
  background: #fffaf0;
  color: #2b2520;
  text-shadow: none;
  font-weight: 450;
  box-shadow: inset 0 0 0 2px var(--tone), 0 0 0 0.5px rgba(70, 52, 34, 0.42), 0 2px 7px -2px rgba(60, 40, 20, 0.5);
}
[data-ui='lantern'] .lbl-light:empty { background: radial-gradient(circle, var(--tone) 0 36%, #fffaf0 42%); }
[data-ui='lantern'] .lbl-light.is-later, [data-ui='lantern'] .lbl-light.is-later:not(:empty) {
  background: #fffaf0;
  color: var(--tone);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tone) 60%, transparent), 0 0 0 0.5px rgba(70, 52, 34, 0.3);
}
[data-ui='lantern'] .lbl-light.is-on::before { border-color: var(--tone); border-width: 1px; }
[data-ui='lantern'] .lbl-light.is-hot, [data-ui='lantern'] .lbl-light.is-picked, [data-ui='lantern'] .lbl-light:hover {
  box-shadow: inset 0 0 0 2px var(--tone), 0 0 0 4px color-mix(in srgb, var(--tone) 30%, transparent), 0 2px 7px -2px rgba(60, 40, 20, 0.5);
}
[data-ui='lantern'] .night .lbl-light { background: #f6ecd6; box-shadow: inset 0 0 0 2px var(--tone), 0 0 12px 3px color-mix(in srgb, var(--tone) 55%, transparent); }
[data-ui='lantern'] .night .lbl-light:empty { background: radial-gradient(circle, var(--tone) 0 36%, #f6ecd6 42%); }
[data-ui='lantern'] .night .lbl-light.is-later { background: #e9dfca; box-shadow: inset 0 0 0 1.5px var(--tone); }

/* Ink: map symbols. Flat discs in toned-down colour with a fine dark outline and a white number.
   Panels are the colour of the map's own land, with a dark hairline, no shadow and nearly square corners. */
[data-ui='ink'] body:not(.night) {
  --glass: rgba(240, 233, 220, 0.9);
  --glass-dense: rgba(240, 233, 220, 0.96);
  --glass-solid: #f1eadd;
  --glass-edge: rgba(60, 48, 36, 0.32);
  --glass-shadow: none;
  --seg: rgba(255, 255, 255, 0.6);
  --tag: rgba(240, 233, 220, 0.94);
  --tag-edge: rgba(60, 48, 36, 0.42);
  --chrome-ink: #2a2622;
  --chrome-soft: rgba(42, 38, 34, 0.84);
  --chrome-muted: rgba(42, 38, 34, 0.6);
  --chrome-line: rgba(60, 48, 36, 0.2);
  --chrome-hover: rgba(60, 48, 36, 0.08);
  --chrome-press: #2f2a25;
  --chrome-inverse: #f1eadd;
}
[data-ui='ink'] .bar { border-radius: 8px; }
[data-ui='ink'] .days-on, [data-ui='ink'] .day { border-radius: 5px; }
[data-ui='ink'] .days-on { box-shadow: 0 0 0 0.5px rgba(60, 48, 36, 0.35); }
[data-ui='ink'] .list, [data-ui='ink'] .card, [data-ui='ink'] .ctl, [data-ui='ink'] .menu { border-radius: 8px; }
[data-ui='ink'] .menu { box-shadow: 0 12px 28px -18px rgba(40, 30, 20, 0.6); }
[data-ui='ink'] .menu-item { border-radius: 5px; }
[data-ui='ink'] .credit { border-radius: 5px; }
[data-ui='ink'] .lbl-activity { border-radius: 4px; box-shadow: 0 0 0 0.5px var(--tag-edge); }
[data-ui='ink'] .lbl-activity::after { background: var(--tone); box-shadow: 0 0 0 1px rgba(40, 32, 26, 0.55); }
[data-ui='ink'] .lbl-activity.is-hot, [data-ui='ink'] .lbl-activity.is-picked { box-shadow: 0 0 0 1.5px rgba(40, 32, 26, 0.75); }
[data-ui='ink'] .lbl-light {
  background: var(--tone);
  color: #fff;
  text-shadow: none;
  font-weight: 460;
  box-shadow: 0 0 0 1px rgba(40, 32, 26, 0.62);
}
[data-ui='ink'] .lbl-light.is-later, [data-ui='ink'] .lbl-light.is-later:not(:empty) {
  background: #f1eadd;
  color: var(--tone);
  box-shadow: inset 0 0 0 1.5px var(--tone), 0 0 0 0.5px rgba(40, 32, 26, 0.4);
}
[data-ui='ink'] .lbl-light.is-on::before { border-color: rgba(40, 32, 26, 0.5); border-width: 1px; }
[data-ui='ink'] .lbl-light.is-hot, [data-ui='ink'] .lbl-light.is-picked, [data-ui='ink'] .lbl-light:hover {
  box-shadow: 0 0 0 1px rgba(40, 32, 26, 0.75), 0 0 0 4.5px color-mix(in srgb, var(--tone) 35%, transparent);
}
[data-ui='ink'] .night .lbl-light { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.78), 0 0 8px 2px color-mix(in srgb, var(--tone) 50%, transparent); }
[data-ui='ink'] .night .lbl-light.is-later { background: rgba(22, 28, 46, 0.9); box-shadow: inset 0 0 0 1.5px var(--tone), 0 0 0 0.5px rgba(255, 255, 255, 0.4); }

/* Glow: lights. Each activity is a soft point of light with no ring round it, its number dark on
   the bright middle; names stand straight on the map with no tag. Panels are clear glass. */
[data-ui='glow'] body:not(.night) {
  --glass: rgba(255, 255, 255, 0.56);
  --glass-dense: rgba(255, 255, 255, 0.74);
  --glass-solid: rgba(255, 255, 255, 0.92);
  --glass-edge: rgba(255, 255, 255, 0.62);
  --glass-shadow: 0 8px 26px -18px rgba(16, 26, 40, 0.4);
  --frost: blur(22px) saturate(1.15);
}
[data-ui='glow'] .lbl-light {
  background: radial-gradient(circle, #fffef8 0 30%, var(--tone) 70%);
  color: #2b2520;
  text-shadow: none;
  font-weight: 460;
  box-shadow: 0 0 10px 4px color-mix(in srgb, var(--tone) 55%, transparent);
}
[data-ui='glow'] .lbl-light.is-later, [data-ui='glow'] .lbl-light.is-later:not(:empty) {
  background: radial-gradient(circle, #fffef8 0 30%, color-mix(in srgb, var(--tone) 32%, #fffef8) 72%);
  color: var(--tone);
  box-shadow: 0 0 6px 2px color-mix(in srgb, var(--tone) 24%, transparent);
}
[data-ui='glow'] .lbl-light.is-hot, [data-ui='glow'] .lbl-light.is-picked, [data-ui='glow'] .lbl-light:hover {
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--tone) 28%, transparent), 0 0 16px 7px color-mix(in srgb, var(--tone) 60%, transparent);
}
[data-ui='glow'] .night .lbl-light { box-shadow: 0 0 14px 6px color-mix(in srgb, var(--tone) 70%, transparent), 0 0 30px 12px color-mix(in srgb, var(--tone) 26%, transparent); }
[data-ui='glow'] .lbl-activity, [data-ui='glow'] .lbl-activity:hover {
  background: none;
  box-shadow: none;
  border-radius: 0;
  font-weight: 450;
  -webkit-text-stroke: 2.6px rgba(255, 255, 255, 0.86);
}
[data-ui='glow'] .lbl-activity::after { background: var(--tone); box-shadow: none; }
[data-ui='glow'] .lbl-activity.is-hot, [data-ui='glow'] .lbl-activity.is-picked { background: none; box-shadow: none; color: var(--tone); }
[data-ui='glow'] .night .lbl-activity { color: #fff; -webkit-text-stroke-color: rgba(16, 22, 40, 0.86); }

/* Frost: Glow made lighter. The user liked Glow but found it "too heavy in general"; a version with
   no panels at all was "too hidden". This is in between: panels stay, as thin frosted glass with
   hardly any white in it, a hairline edge and almost no shadow, and a little slimmer. By day the
   activities' colours are quietened (bright, they looked cheap on the pale city); after dark they
   are left in full, which is when they are at their best. js/looks.js does the same for the crowds
   and the pools of colour. */
[data-ui='frost'] body:not(.night) {
  --tone-mix: 58%;
  --glass: rgba(255, 255, 255, 0.34);
  --glass-dense: rgba(255, 255, 255, 0.58);
  --glass-solid: rgba(255, 255, 255, 0.8);
  --glass-edge: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 6px 22px -18px rgba(16, 26, 40, 0.38);
  --frost: blur(22px) saturate(1.08) brightness(1.08);
  --seg: rgba(255, 255, 255, 0.55);
  --chrome-ink: #1b1f24;
  --chrome-soft: rgba(27, 31, 36, 0.86);
  --chrome-muted: rgba(27, 31, 36, 0.66);
}
[data-ui='frost'] body.night {
  --tone-mix: 100%;
  --glass: rgba(18, 24, 42, 0.36);
  --glass-dense: rgba(18, 24, 42, 0.58);
  --glass-solid: rgba(18, 24, 42, 0.84);
  --glass-edge: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 26px -18px rgba(0, 0, 0, 0.6);
  --frost: blur(20px) saturate(1.2) brightness(0.92);
  --seg: rgba(255, 255, 255, 0.14);
}
[data-ui='frost'] .bar { border-width: 0.5px; }
/* Slimmer on a wide window only: at phone width the bar is three rows and sets its own height. */
@media (min-width: 661px) { [data-ui='frost'] .bar { height: 42px; border-radius: 21px; } }
[data-ui='frost'] .day { height: 34px; border-radius: 10px; }
[data-ui='frost'] .days-on { border-radius: 10px; box-shadow: 0 0 0 0.5px rgba(16, 26, 40, 0.08); }
[data-ui='frost'] .list, [data-ui='frost'] .card { border-width: 0.5px; border-radius: 14px; }
[data-ui='frost'] .ctl { width: 34px; height: 34px; border-width: 0.5px; }
[data-ui='frost'] .menu, [data-ui='frost'] .results, [data-ui='frost'] .hint { border-width: 0.5px; -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); }
[data-ui='frost'] .credit { -webkit-backdrop-filter: blur(12px) brightness(1.05); backdrop-filter: blur(12px) brightness(1.05); }
[data-ui='frost'] .night .credit { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
/* Markers are lights, as in Glow: quiet by day, in full after dark. */
[data-ui='frost'] .lbl-light {
  background: radial-gradient(circle, #fffef8 0 30%, var(--tone) 70%);
  color: #2b2520;
  text-shadow: none;
  font-weight: 460;
  box-shadow: 0 0 6px 2px color-mix(in srgb, var(--tone) 36%, transparent);
}
[data-ui='frost'] .lbl-light.is-later, [data-ui='frost'] .lbl-light.is-later:not(:empty) {
  background: radial-gradient(circle, #fffef8 0 30%, color-mix(in srgb, var(--tone) 30%, #fffef8) 72%);
  color: var(--tone);
  box-shadow: 0 0 5px 1px color-mix(in srgb, var(--tone) 20%, transparent);
}
[data-ui='frost'] .lbl-light.is-on::before { border-color: var(--tone); border-width: 1px; }
[data-ui='frost'] .lbl-light.is-hot, [data-ui='frost'] .lbl-light.is-picked, [data-ui='frost'] .lbl-light:hover {
  box-shadow: 0 0 0 4.5px color-mix(in srgb, var(--tone) 26%, transparent), 0 0 14px 6px color-mix(in srgb, var(--tone) 55%, transparent);
}
[data-ui='frost'] .night .lbl-light { box-shadow: 0 0 14px 6px color-mix(in srgb, var(--tone) 70%, transparent), 0 0 30px 12px color-mix(in srgb, var(--tone) 26%, transparent); }
[data-ui='frost'] .lbl-activity, [data-ui='frost'] .lbl-activity:hover {
  background: none;
  box-shadow: none;
  border-radius: 0;
  font-weight: 450;
  -webkit-text-stroke: 2.6px rgba(255, 255, 255, 0.86);
}
[data-ui='frost'] .lbl-activity::after { background: var(--tone); box-shadow: none; }
[data-ui='frost'] .lbl-activity.is-hot, [data-ui='frost'] .lbl-activity.is-picked { background: none; box-shadow: none; color: var(--tone); }
[data-ui='frost'] .night .lbl-activity { color: #fff; -webkit-text-stroke-color: rgba(16, 22, 40, 0.86); }
