:root {
  --ink: #1d2b3a;
  --ink2: #55616e;
  --ink3: #8a939c;
  --paper: #fffdf8;
  --card: #ffffff;
  --line: #e7e1d6;
  --accent: #f6a11b;
  --accent-ink: #9a5b00;
  --now: #e8463b;
  --mine: #ffd23f;          /* my plan: a yellow gold, apart from the music orange */
  --mine-ink: #7a5600;
  --mine-glow: rgba(255, 200, 30, .75);
  --mine-bg: #fff8dc;
  --sky: #fdf3df;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(29, 43, 58, .14);
  font-family: 'Rubik', system-ui, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--paper); }
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  height: 100dvh;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
#top {
  background: var(--sky);
  transition: background .6s;
  padding: 10px 16px 6px;
  border-bottom: 1px solid var(--line);
  z-index: 5;
  position: relative;
}
.brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
h1 { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -.3px; }
.sub { font-size: 13px; color: var(--ink2); }
.tools { display: flex; gap: 2px; flex: none; }
.iconbtn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.iconbtn:hover, .iconbtn.on { background: rgba(29, 43, 58, .08); }
.iconbtn.on { color: #1a73e8; }
#acctBtn.in { color: #1a73e8; }
#acctBtn img { width: 28px; height: 28px; border-radius: 50%; }
/* people tapped the magnifier and saw nothing happen: the box now opens under the button,
   slides in with a flash, and the button stays dark while it is open */
#searchBtn.on { background: var(--ink); color: #fff; }
#searchRow { margin-top: 8px; animation: qopen .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes qopen { from { opacity: 0; transform: translateY(-10px); } }
.qbox {
  display: flex; align-items: center; gap: 6px; padding: 0 6px 0 0;
  border-radius: 999px; border: 2px solid var(--accent); background: #fff;
  box-shadow: 0 0 0 4px rgba(246, 161, 27, .22); animation: qflash 1.2s ease-out;
}
@keyframes qflash { 0% { box-shadow: 0 0 0 12px rgba(246, 161, 27, .5); } 100% { box-shadow: 0 0 0 4px rgba(246, 161, 27, .22); } }
.qbox > svg { flex: none; color: var(--accent-ink); }
#q {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 9px 4px;
  border: 0; outline: none; background: none; -webkit-appearance: none; appearance: none;
}
#q::-webkit-search-cancel-button { display: none; }
#qClose { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink2); }
#qClose:hover { background: rgba(29, 43, 58, .08); }
#qClose svg { width: 18px; height: 18px; }
#qinfo { margin: 6px 14px 0; font-size: 13.5px; color: var(--ink2); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
#qinfo .more { font-size: 13.5px; padding: 0; }
/* nothing found: the box turns red and the line below says so out loud */
.qbox:has(#q.none) { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .15); animation: none; }
#qinfo.none { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: #fdecea; color: #8e2a1f;
  flex-wrap: nowrap; align-items: center; gap: 10px; font-size: 14px; }
#qinfo.none svg { width: 22px; height: 22px; flex: none; stroke: #c0392b; }
#qinfo.none span { display: flex; flex-direction: column; gap: 2px; }
#qinfo.none b { color: #8e2a1f; font-size: 15px; }
#qinfo.none .more { color: #8e2a1f; flex: none; }
#q.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

#days { display: flex; gap: 6px; margin: 8px 0 4px; }
#days button {
  flex: 1; padding: 6px 4px; border-radius: 10px; font-size: 14px; font-weight: 500;
  background: rgba(255, 255, 255, .6); border: 1px solid var(--line); line-height: 1.15;
}
#days button small { display: block; font-size: 11px; color: var(--ink3); font-weight: 400; }
#days button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
#days button.on small { color: #c9d2db; }
#days button .today { color: var(--now); font-weight: 700; }

/* ---------- the clock ---------- */
.clockhead { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.play {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; flex: none;
}
.play svg { fill: currentColor; stroke: none; width: 18px; height: 18px; }
.readout { flex: 1; min-width: 0; }
.time { white-space: nowrap; }
.tshort { display: none; }
.time { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.count { font-size: 13px; color: var(--ink2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count b { color: var(--now); }
.nowbtn {
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--now); color: var(--now);
  font-weight: 700; font-size: 14px; flex: none;
}
.nowbtn.on { background: var(--now); color: #fff; }
.nowbtn.on::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-inline-end: 6px; vertical-align: middle; animation: blink 1.4s infinite; }

#strip {
  position: relative; height: 54px; margin: 6px 0 2px; touch-action: none; cursor: grab;
  user-select: none; outline: none;
}
#strip:active { cursor: grabbing; }
#stripSvg { width: 100%; height: 100%; display: block; overflow: visible; stroke: none; }
#stripSvg text { stroke: none; font-size: 10px; fill: var(--ink3); font-family: Rubik, sans-serif; }
#playhead {
  position: absolute; top: -4px; bottom: 12px; width: 0; pointer-events: none;
}
#playhead::before {
  content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: -1.5px; width: 3px;
  background: var(--now); border-radius: 2px;
}
#playhead span {
  position: absolute; top: -2px; inset-inline-start: -8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--now); box-shadow: 0 0 0 4px rgba(232, 70, 59, .2);
}
#strip:focus-visible #playhead span { box-shadow: 0 0 0 5px rgba(232, 70, 59, .45); }

#chips { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 4px; scrollbar-width: none; }
#chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; white-space: nowrap;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); display: inline-block; }
.chip.on { background: var(--c, var(--ink)); color: #fff; border-color: transparent; }
.chip.on i { background: #fff; }
.chip.off { opacity: .45; }
.chip.sep { margin-inline-start: 4px; }
.chip.all { font-weight: 600; margin-inline-end: 4px; }

/* ---------- stage ---------- */
/* A place's popup may rise over the header when the map is too short to hold it, so the map
   itself does not clip: its canvas and pictures are clipped one level down instead. */
#stage { position: relative; overflow: visible; }
#map { position: absolute; inset: 0; }
#map.maplibregl-map { overflow: visible; }
#map .maplibregl-canvas-container { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
#map .maplibregl-popup { z-index: 8; }
#map .maplibregl-canvas { transition: filter .5s; }
.maplibregl-ctrl-attrib { font-size: 10px; }

/* venue markers: the event's picture inside a ring of its kind's colour */
#map { direction: ltr; --k: .8; }
.vm { width: 0; height: 0; cursor: pointer; --s: 30px; }
.vm .dot {
  position: absolute; transform: translate(-50%, -50%); border-radius: 50%;
  width: calc(var(--s) * var(--k)); height: calc(var(--s) * var(--k));
  background: var(--c); border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .35);
  transition: width .25s, height .25s, opacity .25s, background .25s, transform .2s, box-shadow .2s;
}
.vm .img {
  position: absolute; inset: max(2px, calc(3.5px * var(--k))); border-radius: 50%;
  background: #e9e3d8 center/cover no-repeat;
}
.vm .lbl:empty { display: none; }
.vm .lbl {
  position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); min-width: 18px; padding: 0 4px;
  height: 16px; line-height: 16px; border-radius: 8px; text-align: center; font-size: 10.5px; font-weight: 700;
  background: var(--c); color: #fff; border: 1.5px solid #fff; white-space: nowrap; font-family: Rubik, sans-serif;
}
.vm.idle { --s: 28px; }
.vm.idle .dot { opacity: .82; }
.vm.idle .img { filter: saturate(.75); }
.vm.done { --s: 11px; }
.vm.done .dot { background: #c2c7cc; opacity: .7; box-shadow: none; border-width: 1.5px; }
.vm.done .img { display: none; }
#map.close .vm.done { --s: 22px; }
#map.close .vm.done .img { display: block; filter: grayscale(1); opacity: .7; }
#map.close .vm .img { inset: clamp(3px, calc(2px * var(--k)), 9px); }
.vm.soon { --s: 38px; z-index: 2; }
.vm.live { --s: 46px; z-index: 3; }
.vm.live.multi { --s: 50px; }
.vm.live .dot { border-width: 2.5px; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); }
.vm.live .dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--c);
  animation: pulse 1.8s ease-out infinite; pointer-events: none;
}
.vm.live.multi .lbl { bottom: auto; top: -6px; left: auto; right: -8px; transform: none; background: var(--ink); }
.vm.sel .dot { outline: 3px solid var(--ink); outline-offset: 2px; }
.vm.hide { display: none; }
/* my plan: a gold halo and a star, on every view of the map */
.vm.plan { z-index: 4; }
.vm.plan .dot {
  border-color: var(--mine);
  box-shadow: 0 0 0 2px #fff, 0 0 14px 5px var(--mine-glow);
  animation: glow 2.2s ease-in-out infinite;
}
.vm.plan .dot::before {
  content: '★'; position: absolute; top: -10px; right: -9px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--mine); color: var(--ink); font-size: 12px; line-height: 19px; text-align: center;
  border: 1.5px solid #fff; z-index: 1; font-family: system-ui, sans-serif;
}
.vm.plan.multi .lbl { right: auto; left: -8px; }
.vm.idle.plan .dot { opacity: 1; }
.vm.idle.plan .img { filter: none; }
.vm.mine { --s: 40px; }
.vm.mine.live { --s: 50px; }
.vm.mine.over .dot { opacity: .55; }
.vm.mine.over .img { filter: grayscale(.8); }
.vm.focus { z-index: 6; --s: 60px; }
.vm.focus .dot {
  opacity: 1; border-width: 3px;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 45%, transparent), 0 0 30px 12px color-mix(in srgb, var(--c) 65%, transparent);
}
.vm.focus .img { filter: none; }
.vm.focus .dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--c);
  animation: pulse 1.4s ease-out infinite; pointer-events: none;
}
.vm.hl { z-index: 7; }
.vm.hl .dot { transform: translate(-50%, -50%) scale(1.35); box-shadow: 0 0 0 3px var(--ink), 0 4px 14px rgba(0, 0, 0, .35); opacity: 1; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
@keyframes glow { 50% { box-shadow: 0 0 0 2px #fff, 0 0 22px 9px var(--mine-glow); } }
/* While the map moves, nothing on it repaints by itself: a breathing shadow repaints every
   frame, and a size transition restarted by every step of a zoom costs a layout per picture. */
#map.moving .vm .dot { transition: none; animation-play-state: paused; }
#map.moving .vm .dot::after { animation: none; }
.medot {
  width: 16px; height: 16px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(26, 115, 232, .25);
}
/* travel time on each leg of the plan's route; a tap switches car and foot */
.hop {
  display: flex; align-items: center; gap: 3px; padding: 2px 8px 2px 6px; border-radius: 999px; direction: rtl;
  background: #fff; color: var(--ink); font: 700 12px Rubik, sans-serif; white-space: nowrap;
  border: 1.5px solid var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.18); pointer-events: auto; cursor: pointer;
}
.hop svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hop.late { color: #c0392b; border-color: #c0392b; }
/* the place's number in the day's plan grows with its picture and sits on its rim, top left */
.planno {
  --d: calc(var(--s) * var(--k)); --b: clamp(22px, calc(var(--d) * .3), 56px);
  width: var(--b); height: var(--b); border-radius: 50%; background: var(--ink); color: #fff; font-size: calc(var(--b) * .55);
  font-weight: 700; display: grid; place-items: center; border: 2px solid #fff;
  transform: translate(calc(-50% - var(--d) * .36), calc(-50% - var(--d) * .36)); position: absolute; z-index: 2;
  pointer-events: none;
}

/* map popup */
.maplibregl-popup-content { border-radius: 12px; padding: 10px 12px; font-family: Rubik, sans-serif; box-shadow: var(--shadow); }
.pop { direction: rtl; text-align: right; }
.pop h4 { margin: 0 0 2px; font-size: 14px; }
.pop .addr { font-size: 12px; color: var(--ink2); margin-bottom: 6px; }
.pop .mini { position: relative; height: 18px; background: #f3efe7; border-radius: 5px; margin: 6px 0 4px; overflow: hidden; }
.pop .mini b { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; background: var(--c); opacity: .85; }
.pop .mini i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--now); }
.pop ul { list-style: none; margin: 0; padding: 0; max-height: 190px; overflow: auto; }
.pop li { display: flex; gap: 8px; padding: 5px 0; border-top: 1px solid #f1ece2; font-size: 13px; cursor: pointer; align-items: baseline; }
.pop li .h { font-variant-numeric: tabular-nums; color: var(--ink2); flex: none; }
.pop li.live .h { color: var(--now); font-weight: 700; }
.pop li.past { opacity: .5; }
.pop li:hover .n { text-decoration: underline; }
.epop { width: 250px; }
.epop .pph { height: 120px; margin: -10px -12px 8px; border-radius: 12px 12px 0 0; background: var(--c) center/cover no-repeat; }
.epop .kind { font-size: 12px; color: var(--c); font-weight: 700; margin-bottom: 2px; }
.epop h4 { font-size: 15px; line-height: 1.3; margin-bottom: 4px; }
.epop .addr { margin-bottom: 3px; }
.epop .tag { font-size: 11px; }
.epop .pact { display: flex; gap: 6px; margin: 8px 0 4px; }
.epop .btn { padding: 6px 12px; font-size: 13px; }
.epop .btn svg { width: 16px; height: 16px; }
.epop .btn.on { color: var(--accent-ink); border-color: var(--accent); }
.epop .btn.on svg { fill: var(--accent); stroke: var(--accent); }
.pop .more { font-size: 12.5px; color: var(--accent-ink); padding: 2px 0; font-weight: 500; }

/* ---------- sheet ---------- */
#sheet {
  position: absolute; inset-inline: 0; bottom: 0; height: 92%; max-height: 92%;
  background: var(--paper); border-radius: 18px 18px 0 0; box-shadow: 0 -6px 30px rgba(29, 43, 58, .18);
  display: flex; flex-direction: column; z-index: 4;
  transition: height .3s cubic-bezier(.2, .8, .2, 1);
}
/* snaps change the height, not a transform, so the list can always scroll to its last item */
#sheet[data-snap="peek"] { height: 128px; }
#sheet[data-snap="mid"] { height: 50%; }
#sheet[data-snap="full"] { height: 92%; }
#sheet.dragging { transition: none; }
.grab { padding: 10px 0 8px; display: grid; place-items: center; cursor: grab; touch-action: none; flex: none; }
.grab span { width: 42px; height: 5px; border-radius: 3px; background: #d5cec2; }
#sheetBody { overflow-y: auto; padding: 0 14px 30px; flex: 1; overscroll-behavior: contain; }

.sec { margin: 12px 0 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.qday { margin: 14px 0 6px; font-size: 14px; color: var(--ink2); }
.sec h3 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.sec h3 .livedot { width: 9px; height: 9px; border-radius: 50%; background: var(--now); animation: blink 1.4s infinite; }
.sec .meta { font-size: 12px; color: var(--ink3); }
.sec button.more { font-size: 13px; color: var(--accent-ink); font-weight: 500; }
@keyframes blink { 50% { opacity: .25; } }
.empty { color: var(--ink2); font-size: 14px; padding: 10px 2px; line-height: 1.5; }

.ev {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center;
  background: var(--card); border-radius: var(--radius); padding: 8px; margin-bottom: 8px;
  border: 1px solid var(--line); cursor: pointer; position: relative; overflow: hidden;
}
.ev:hover { border-color: #cfc6b6; }
.ev .ph { width: 56px; height: 56px; border-radius: 10px; background: var(--c) center/cover no-repeat; position: relative; }
.ev .ph::after { content: ''; position: absolute; inset-inline-start: -8px; top: 6px; bottom: 6px; width: 4px; border-radius: 2px; background: var(--c); }
.ev .body { min-width: 0; }
.ev .nm { font-weight: 700; font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev .where { font-size: 12.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ev .when { font-size: 12.5px; margin-top: 3px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ev .when .hrs { font-variant-numeric: tabular-nums; color: var(--ink2); }
.tag { font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: #f1ece2; color: var(--ink2); white-space: nowrap; }
.tag.live { background: #fde6e4; color: #b62a20; font-weight: 600; }
.tag.soon { background: #fff1d6; color: var(--accent-ink); font-weight: 600; }
.tag.walk { background: #e6effc; color: #1a5bb8; }
.tag.join { background: #2e7d4f; color: #fff; text-decoration: none; font-weight: 500; }
.btn.join { background: #2e7d4f; border-color: #2e7d4f; color: #fff; }
.tag.kid { background: #e3f6ee; color: #1d7a52; }
.ev .prog { position: absolute; bottom: 0; inset-inline-start: 0; height: 3px; background: var(--c); opacity: .8; }
.star { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #c9c0b1; }
.star svg { width: 22px; height: 22px; }
.star.on { color: var(--accent); }
.star.on svg { fill: currentColor; }
.ev.past { opacity: .55; }
.ev.focus { border-color: var(--c); box-shadow: 0 0 0 2px var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); }
.divider { height: 1px; background: var(--line); margin: 18px 0 2px; }

/* plan */
.planday h4 { margin: 14px 0 6px; font-size: 14px; color: var(--ink2); font-weight: 500; }
.gap { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink2); margin: -2px 6px 6px; }
.gap::before { content: ''; width: 2px; height: 22px; background: repeating-linear-gradient(var(--ink3) 0 3px, transparent 3px 6px); margin-inline-start: 26px; }
.gap.bad { color: #b62a20; font-weight: 600; }
.gap.tight { color: var(--accent-ink); }
.planbar { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
/* car or foot for the times between places */
.modesw { display: flex; align-items: center; gap: 4px; margin: -2px 0 10px; font-size: 13px; color: #6b7280; }
.modesw span { margin-inline-end: 4px; }
.modesw button {
  display: flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 600 13px Rubik, sans-serif;
}
.modesw button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.modesw svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 14px; text-decoration: none;
}
.btn svg { width: 18px; height: 18px; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.warm { background: var(--accent); color: #1d2b3a; }
.shared {
  background: #fff7e6; border: 1px solid #f5d79c; border-radius: var(--radius); padding: 10px 12px; margin: 10px 0;
  font-size: 14px; line-height: 1.5;
}

/* ---------- grid (timetable) ---------- */
body.view-grid #sheet { display: none; }
#grid { position: absolute; inset: 0; overflow: auto; background: var(--paper); z-index: 3; overscroll-behavior: contain; }
.gt { position: relative; }
.gt .hours { position: sticky; top: 0; z-index: 3; height: 26px; background: var(--paper); border-bottom: 1px solid var(--line); }
.gt .hours span { position: absolute; top: 6px; font-size: 11px; color: var(--ink3); transform: translateX(50%); font-variant-numeric: tabular-nums; }
.gt .row { position: relative; height: 54px; border-bottom: 1px solid #f0eadf; }
.gt .row:nth-child(even) { background: rgba(240, 234, 223, .35); }
.gt .vname {
  position: sticky; right: 0; z-index: 2; width: 128px; height: 100%; padding: 6px 10px; font-size: 12px; line-height: 1.25;
  background: linear-gradient(to left, var(--paper) 85%, transparent); color: var(--ink2); overflow: hidden;
}
.gt .vname b { display: block; color: var(--ink); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt .bar {
  position: absolute; top: 6px; height: 42px; border-radius: 8px; background: var(--c); color: #fff; padding: 4px 7px;
  font-size: 12px; line-height: 1.2; overflow: hidden; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
  border: 1px solid rgba(255, 255, 255, .6);
}
.gt .bar b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt .bar span { opacity: .85; font-size: 11px; }
.gt .bar.lane1 { top: 28px; height: 22px; }
.gt .bar.lane0.split { height: 21px; }
.gt .bar.split span { display: none; }
.gt .bar.past { opacity: .4; }
.gt .nowline { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--now); z-index: 1; pointer-events: none; }
.gt .grid-hour { position: absolute; top: 26px; bottom: 0; width: 1px; background: #eee6d8; }

/* ---------- views nav ---------- */
#views {
  display: flex; border-top: 1px solid var(--line); background: #fff; padding-bottom: env(safe-area-inset-bottom); z-index: 6;
}
#views button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 8px;
  font-size: 12px; color: var(--ink3); position: relative;
}
#views button.on { color: var(--ink); font-weight: 700; }
#views button.on svg { stroke: var(--accent-ink); }
#views b:not(:empty) {
  position: absolute; top: 3px; left: calc(50% - 22px); background: var(--accent); color: var(--ink);
  font-size: 10.5px; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}

/* ---------- detail card ---------- */
#detail { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
#detail .scrim { position: absolute; inset: 0; background: rgba(15, 22, 30, .45); animation: fade .2s; }
#detail .card {
  position: relative; width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; background: var(--paper);
  border-radius: 20px 20px 0 0; animation: rise .25s cubic-bezier(.2, .8, .2, 1); padding-bottom: 20px;
}
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.card .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--c); height: 220px; }
.card .gallery img { height: 100%; min-width: 100%; object-fit: cover; scroll-snap-align: center; }
.card .x {
  position: absolute; top: 10px; left: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  display: grid; place-items: center; z-index: 2; box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.card .inner { padding: 14px 18px 0; }
.card .kind { font-size: 13px; color: var(--c); font-weight: 700; display: flex; gap: 8px; align-items: center; }
.card .kind i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.card h2 { margin: 4px 0 8px; font-size: 22px; line-height: 1.25; }
.card .facts { display: grid; gap: 6px; font-size: 14px; margin: 10px 0 14px; }
.card .facts div { display: flex; gap: 10px; align-items: flex-start; }
.card .facts svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--ink2); }
.card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.card .note { font-size: 15px; line-height: 1.65; white-space: pre-line; color: #2d3946; }
.card .links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.card .links a { font-size: 13px; color: #1a5bb8; }
.btn.wa { background: #25d366; color: #fff; }
.btn.wa svg { stroke: #fff; }
.wa-inline { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #25d366; vertical-align: -5px; }
.wa-inline svg { width: 14px; height: 14px; stroke: #fff; }
.card .note a[href^="tel:"] { color: #1a5bb8; white-space: nowrap; }
.linkish { color: #1a5bb8; font-size: 13.5px; padding: 4px 0 0; text-decoration: underline; text-underline-offset: 3px; }
/* a moving event's stops in its popup: the one shown is filled, a tap flies to the other */
.legs { display: flex; align-items: center; gap: 4px; margin: 6px 0 2px; font-size: 12.5px; }
.legs > span { color: var(--ink2); }
.legs .leg { flex: 1; display: grid; gap: 1px; text-align: start; padding: 5px 8px; border-radius: 9px; border: 1.5px solid var(--c); color: inherit; line-height: 1.3; }
.legs .leg b { font-size: 13px; }
.legs .leg.on { background: color-mix(in srgb, var(--c) 16%, #fff); }
.pmore { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pmore .more { display: inline-flex; align-items: center; gap: 4px; }
.pmore .more svg { width: 14px; height: 14px; stroke: var(--accent-ink); }
.pmore .more + .more { border-inline-start: 1px solid var(--line); padding-inline-start: 8px; }
/* a place's schedule */
.phead { padding: 18px 18px 4px 56px; background: linear-gradient(#fff7e6, var(--paper)); }
.phead .kind { color: var(--accent-ink); }
.phead .kind svg { width: 16px; height: 16px; stroke: var(--accent-ink); }
.phead .addr { font-size: 13.5px; color: var(--ink2); line-height: 1.5; }
.pday { margin-top: 16px; }
.pday h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; margin: 0 0 6px; }
.pday h3 span { font-size: 12.5px; color: var(--ink3); font-weight: 400; }
.pday .mini { position: relative; height: 14px; background: #f1ece2; border-radius: 5px; margin-bottom: 4px; overflow: hidden; }
.pday .mini b { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; background: var(--c); opacity: .85; }
.pday .mini i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--now); }
.srow {
  display: flex; align-items: center; gap: 10px; padding: 8px 4px 8px 0; border-bottom: 1px solid #f1ece2; cursor: pointer;
  border-inline-start: 4px solid var(--c); padding-inline-start: 8px;
}
.srow:hover { background: #fffaf0; }
.srow .h { flex: none; width: 92px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink2); }
.srow .n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.srow .n b { font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.srow .n small { font-size: 12px; color: var(--ink3); }
.srow .n em { font-style: normal; font-weight: 700; color: var(--now); }
.srow .n em.soon { color: var(--accent-ink); }
.srow.live { background: #fff1ee; }
.srow.live .h { color: var(--now); font-weight: 700; }
.srow.past { opacity: .45; }
.srow .wa-dot svg { width: 18px; height: 18px; stroke: #25d366; }
.srow .star { flex: none; }
.card .same h4 { margin: 18px 0 6px; font-size: 14px; color: var(--ink2); font-weight: 500; }
.card .timeline { position: relative; height: 10px; background: #f1ece2; border-radius: 5px; margin: 6px 0 2px; }
.card .timeline b { position: absolute; top: 0; bottom: 0; background: var(--c); border-radius: 5px; }
.card .timeline i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--now); }

.site-footer {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 0 8px; opacity: .55; transition: opacity .25s;
}
.site-footer:hover { opacity: 1; }
.site-footer a { text-decoration: none; display: flex; align-items: center; }
.site-footer svg { width: auto; height: 22px; }
.footer-credit { color: var(--ink2); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.footer-credit img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.footer-sep { color: var(--ink3); }

#toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 30; box-shadow: var(--shadow); max-width: 90vw; text-align: center;
}

@media (max-width: 899px) {
  .brand { display: none; }
  .planbar .btn { padding: 7px 12px; font-size: 13px; }
  .tday, .tlong { display: none; }
  .tshort { display: inline; }
  .clockhead .tools { margin-inline-start: -4px; }
  .epop { width: 230px; }
  .epop .pph { height: 76px; }
  #top { padding: 8px 12px 4px; }
  h1 { font-size: 19px; }
  .sub { display: none; }
  #days { margin: 6px 0 2px; }
  #days button { padding: 5px 2px; font-size: 13px; }
  #days button small .cnt { display: none; }
  .time { font-size: 22px; }
  .play { width: 36px; height: 36px; }
  #strip { height: 46px; margin-top: 4px; }
  #chips { padding: 4px 0 2px; }
  .chip { padding: 4px 9px; font-size: 12.5px; }
}

/* ---------- wide screens: sheet becomes a side panel ---------- */
@media (min-width: 900px) {
  #top { padding: 12px 20px 6px; }
  #top .inner-wide { display: flex; }
  #sheet, #sheet[data-snap] {
    inset-inline-start: 0; inset-inline-end: auto; top: 0; bottom: 0; height: auto; width: 410px;
    border-radius: 0; transform: none; box-shadow: -4px 0 20px rgba(29, 43, 58, .1); border-inline-end: 1px solid var(--line);
  }
  .grab { display: none; }
  #sheetBody { padding-top: 6px; }
  #map { right: 410px; }
  #grid { inset-inline-start: 0; }
  #views { position: absolute; top: 12px; left: 20px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; overflow: hidden; }
  #views button { flex-direction: row; gap: 6px; white-space: nowrap; padding: 6px 14px; font-size: 13px; border-radius: 999px; }
  #views button.on { background: var(--ink); color: #fff; }
  #views button.on svg { stroke: var(--accent); }
  #views svg { width: 18px; height: 18px; }
  #views b:not(:empty) { position: static; }
  #detail { align-items: center; }
  #detail .card { border-radius: 20px; }
  #toast { bottom: 30px; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  #views { position: static; border-radius: 0; border: 0; border-top: 1px solid var(--line); padding: 0; }
  #views button { border-radius: 0; }
}

/* touch screens zoom with two fingers; the buttons are clutter there */
@media (pointer: coarse) { .maplibregl-ctrl-top-left { display: none; } }

/* the map's looks: aerial photograph and tilt */
.lookctl button { width: 40px; height: 40px; display: grid; place-items: center; font: 800 13px Rubik, sans-serif; color: var(--ink); }
.lookctl button svg { width: 20px; height: 20px; }
.lookctl button.on { background: var(--ink); color: var(--mine); }
.lookctl button.on:hover { background: var(--ink); }
.maplibregl-ctrl-top-right { margin-top: 2px; }

/* ---------- my plan, wherever it shows ---------- */
#views b.bump { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.5); } }
#toast { display: flex; align-items: center; gap: 12px; }
#toast[hidden] { display: none; }
#toast button { color: var(--mine); font-weight: 700; padding: 0 2px; }

/* the strip */
#stripSvg .mineband { fill: var(--mine); stroke: var(--ink); stroke-width: 1.2; filter: drop-shadow(0 0 3px var(--mine-glow)); }

/* day tabs */
.mystars { font-size: 11px; font-weight: 700; color: var(--mine-ink); background: var(--mine); border-radius: 8px; padding: 0 5px; margin-inline-start: 2px; }
#days button.on .mystars { color: var(--ink); }

/* list cards */
.ev.mine {
  border-color: var(--mine); background: linear-gradient(to left, var(--mine-bg), #fff 70%);
  box-shadow: 0 0 0 1.5px var(--mine), 0 0 14px 1px var(--mine-glow);
}
.ev.mine.focus { box-shadow: 0 0 0 2.5px var(--c), 0 0 16px 2px var(--mine-glow); }
.ev.mine.past { opacity: .6; box-shadow: 0 0 0 1.5px var(--mine); }
.ev.mine .star.on { color: #e0a800; filter: drop-shadow(0 0 4px var(--mine-glow)); }
.tag.clash { background: #fde6e4; color: #b62a20; }
.tag.minetag { background: var(--mine); color: var(--ink); font-weight: 700; }

/* the banner: what of mine is on or next */
.mynext {
  display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: center; cursor: pointer;
  margin: 4px 0 10px; padding: 10px; border-radius: 16px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #2a3a4c, var(--ink)); color: #fff;
  box-shadow: 0 0 0 2px var(--mine), 0 4px 18px var(--mine-glow);
}
.mynext .ph { width: 62px; height: 62px; border-radius: 50%; background: var(--c) center/cover no-repeat; border: 3px solid var(--c); box-shadow: 0 0 0 2px var(--mine); }
.mynext .body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mynext small { color: var(--mine); font-weight: 700; font-size: 12.5px; }
.mynext b { font-size: 16px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mynext span { font-size: 12.5px; color: #c9d2db; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mynext em { font-style: normal; font-size: 12.5px; color: #fff; }
.mynext em.go { color: #ffb4ad; font-weight: 700; animation: blink 1.4s infinite; }
.mynext .rest { color: #9fb0c0; font-size: 12px; }
.mynext.live small::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--now); margin-inline-end: 6px; animation: blink 1.4s infinite; }

/* the plan view */
.planday { margin-bottom: 6px; }
.planday h4 { display: flex; justify-content: space-between; align-items: baseline; cursor: pointer; }
.planday h4 span { color: var(--ink); font-weight: 700; font-size: 15px; }
.planday h4 small { font-size: 12px; color: var(--ink3); }
.planday.today h4 span::after { content: ' · מוצג'; color: var(--accent-ink); font-weight: 500; font-size: 12px; }
.pmini { position: relative; height: 30px; background: #f3efe7; border-radius: 8px; margin: 0 0 10px; overflow: hidden; }
.pmini u { position: absolute; bottom: 1px; transform: translateX(50%); font-size: 9.5px; color: var(--ink3); text-decoration: none; font-variant-numeric: tabular-nums; }
.pmini u::before { content: ''; position: absolute; bottom: 12px; left: 50%; height: 30px; width: 1px; background: #e2dacb; }
.pmini b { position: absolute; top: 4px; height: 13px; border-radius: 4px; background: var(--c); box-shadow: 0 0 0 1.5px var(--mine), 0 0 6px var(--mine-glow); cursor: pointer; }
.pmini i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--now); }
.gapfit {
  display: flex; align-items: center; gap: 6px; width: 100%; margin: 0 0 8px; padding: 8px 12px; border-radius: 12px;
  border: 1.5px dashed #d8cdb8; color: var(--accent-ink); font-size: 13.5px; font-weight: 500; text-align: start;
}
.gapfit svg { width: 16px; height: 16px; flex: none; }
.gapfit.on { border-style: solid; border-color: var(--accent); background: #fff8ea; }
.fitlist { padding: 0 0 4px 0; margin: -2px 0 10px; border-inline-start: 3px solid #f3e2bf; padding-inline-start: 8px; }
.planhelp { background: var(--mine-bg); border: 1px solid #f2dc8a; border-radius: var(--radius); padding: 4px 14px; font-size: 14px; line-height: 1.55; }
.planhelp ol { padding-inline-start: 20px; margin: 4px 0 10px; }
.planhelp li { margin-bottom: 4px; }

/* popups and a place's schedule */
.pop li.mine { background: var(--mine-bg); border-radius: 6px; padding-inline: 4px; }
.pop li .ms { color: #e0a800; margin-inline-start: auto; }
.epop.mine .pph { box-shadow: inset 0 0 0 3px var(--mine); }
.myflag { display: inline-block; background: var(--mine); color: var(--ink); font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 1px 8px; margin-bottom: 4px; }
.srow.mine { background: var(--mine-bg); box-shadow: inset 0 0 0 1.5px var(--mine); border-radius: 6px; }
.srow.mine .star.on { color: #e0a800; }
.clashnote { margin: 8px 0 0; font-size: 13.5px; color: #b62a20; background: #fdeceb; border-radius: 10px; padding: 7px 10px; }

/* the timetable */
.gt .bar.planned {
  z-index: 1; border: 2px solid var(--mine);
  box-shadow: 0 0 0 1.5px var(--ink), 0 0 14px 4px var(--mine-glow);
  animation: barglow 2.2s ease-in-out infinite;
}
.gt .bar.planned b::before { content: '★ '; color: var(--mine); }
.gt .bar.planned.past { opacity: .6; animation: none; }
.gt .myrow .bar.planned { animation: none; box-shadow: 0 0 0 1.5px var(--ink), 0 0 8px 2px var(--mine-glow); }
@keyframes barglow { 50% { box-shadow: 0 0 0 1.5px var(--ink), 0 0 22px 8px var(--mine-glow); } }
.gt .row.hasmine .vname b s { text-decoration: none; color: #e0a800; margin-inline-end: 3px; }
.gt .row.myrow {
  position: sticky; top: 26px; z-index: 2; background: var(--mine-bg) !important;
  border-bottom: 2px solid var(--mine); box-shadow: 0 3px 8px rgba(29, 43, 58, .08);
}
.gt .row.myrow .vname { background: linear-gradient(to left, var(--mine-bg) 85%, transparent); color: var(--mine-ink); }
.gt .row.myrow .vname b { color: var(--ink); }
.gt .row.myrow.empty .vname { width: min(92vw, 440px); display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.gt .row.myrow.empty .vname b { flex: none; }
.gt .row.myrow.empty .vname span { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }

/* ---------- how much is on the screen ---------- */
html.nostrip #strip { display: none; }
html.nochips #chips { display: none; }
@media (min-width: 900px) { html.nolist #map, html.clean #map { right: 0; } }
/* the tab on the list's edge, as in דרך קיצור: it hangs into the map, so with the list folded
   away it is still there to bring it back. Wide screens and the map view only: on a phone the
   list is a sheet to drag, and in the plan view the list is the plan. */
#sheetFold { display: none; }
@media (min-width: 900px) {
  body.view-map #sheetFold {
    display: grid; place-items: center; position: absolute; top: 50%; right: 410px; z-index: 5;
    width: 24px; height: 48px; margin-top: -24px; padding: 0; cursor: pointer;
    background: var(--paper); border: 1px solid var(--line); border-right: 0; border-radius: 9px 0 0 9px;
    box-shadow: -3px 2px 8px rgba(29, 43, 58, .14); color: var(--ink2);
  }
  body.view-map #sheetFold:hover { color: var(--ink); background: #fff; }
  #sheetFold svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
  html.nolist body.view-map #sheetFold { right: 0; }
  html.nolist #sheetFold svg { transform: scaleX(-1); }
  html.clean body.view-map #sheetFold { display: none; }
}
html.clean body { grid-template-rows: minmax(0, 1fr); }
html.clean #top, html.clean #views { display: none; }
#cleanbar { display: none; }
html.clean #cleanbar {
  position: fixed; z-index: 7; top: calc(env(safe-area-inset-top) + 10px); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 14px; border-radius: 999px;
  background: rgba(29, 43, 58, .88); color: #fff; box-shadow: var(--shadow); white-space: nowrap; font-size: 13px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
#cleanbar > b { font-size: 15px; font-variant-numeric: tabular-nums; }
#cleanbar span { color: #c9d2db; }
#cleanbar .n { color: #ffb4ad; }
#cleanbar svg { width: 18px; height: 18px; color: var(--mine); }
/* the pill sits at the top centre, so the map's own buttons move down out of its way on a phone */
@media (max-width: 899px) { html.clean .maplibregl-ctrl-top-right { margin-top: calc(env(safe-area-inset-top) + 52px); } }

#showPanel, #sharePanel, #loginPanel, #calPanel {
  position: fixed; z-index: 15; background: var(--paper); box-shadow: var(--shadow); padding: 12px 16px 16px;
  direction: rtl; overflow-y: auto; overscroll-behavior: contain;
  /* a phone gets it from the bottom, where the thumb is */
  inset-inline: 0; bottom: 0; border-radius: 18px 18px 0 0; max-height: 80dvh;
  padding-bottom: calc(16px + env(safe-area-inset-bottom)); animation: rise .25s cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 900px) {
  #showPanel, #sharePanel, #loginPanel, #calPanel { inset: auto; bottom: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 340px; border-radius: 18px; animation: fade .2s; }
  #sharePanel, #calPanel { width: 420px; }
  #calPanel { max-height: 86vh; }
}

/* ---------- to Google Calendar ---------- */
svg.gc { fill: none; }
.btn.gcal { background: #fff; color: #1a56c4; border: 1.5px solid #4285f4; }
.btn.gcal:hover { background: #eef4ff; }
#calPanel .sphead b { display: flex; align-items: center; gap: 8px; }
#calPanel .sphead svg.gc { width: 24px; height: 24px; }
.callist h5 { margin: 14px 0 4px; font-size: 13px; color: var(--ink3); font-weight: 600; }
.calrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1ece2; }
.calrow > span { display: flex; flex-direction: column; min-width: 0; }
.calrow b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calrow small { font-size: 12.5px; color: var(--ink2); }
.calrow .btn { flex: none; padding: 7px 14px; font-size: 14px; }
.calrow.done b { color: var(--ink2); }
.calrow.done .btn { color: #1e7e44; border-color: #cfe8d8; }
.calfile { font-size: 12.5px; color: var(--ink3); margin: 14px 0 0; line-height: 1.6; }
.calfile .more { font-size: 12.5px; padding: 0; }
.sphead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sphead b { font-size: 17px; }
.cleango { width: 100%; justify-content: center; padding: 11px 14px; font-size: 15px; margin-bottom: 6px; }
.cleango svg { stroke: var(--mine); }
.spsec h5 { margin: 12px 0 2px; font-size: 12px; color: var(--ink3); font-weight: 500; }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f1ece2; font-size: 15px; cursor: pointer; }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw i { flex: none; width: 42px; height: 24px; border-radius: 12px; background: #d5cec2; position: relative; transition: background .2s; }
.sw i::after { content: ''; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: right .2s; }
.sw input:checked + i { background: var(--ink); }
.sw input:checked + i::after { right: 21px; }
.sw input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
#showPanel .more { margin-top: 10px; }

/* ---------- the present, and a look ahead ---------- */
/* Red is the colour of now. Looking at another time, the playhead turns ink, nothing on the
   map pulses, and a line under the time tells the real time with a tap back to it. */
.realnow:empty { display: none; }
.realnow button {
  font-size: 12.5px; color: var(--now); margin-top: 4px; padding: 0; white-space: nowrap; max-width: 100%; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(232, 70, 59, .4);
}
html.preview .count b { color: var(--ink); }
html.preview #playhead::before, html.preview #playhead span { background: var(--ink); }
html.preview #playhead span { box-shadow: 0 0 0 4px rgba(29, 43, 58, .18); }
#realTick { position: absolute; top: 2px; bottom: 12px; width: 0; pointer-events: none; }
#realTick::before { content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: -1px; width: 2px; background: var(--now); opacity: .7; }
#realTick::after { content: 'עכשיו'; position: absolute; top: -13px; transform: translateX(-50%); font-size: 9.5px; font-weight: 700; color: var(--now); }
html.preview .vm .dot::after { animation: none; display: none; }
html.preview .sec h3 .livedot { display: none; }
html.preview .gt .nowline { background: var(--ink); }
.tag.at { background: #e8eef4; color: var(--ink); }

/* ---------- sharing what is on screen ---------- */
.shnote { margin: 0 0 8px; font-size: 14px; color: var(--ink2); line-height: 1.5; }
.shlink { display: flex; gap: 8px; margin: 12px 0 10px; }
.shlink input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font: 500 15px Rubik, sans-serif; color: var(--ink); background: #fff; }
.shlink .btn { flex: none; justify-content: center; }
.shbtns { display: flex; gap: 8px; }
.shbtns .btn { flex: 1; justify-content: center; padding: 10px 12px; }
.shbtns svg { width: 18px; height: 18px; }

/* ---------- the plan on every device ---------- */
.syncbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: #f3efe7; font-size: 13.5px; color: var(--ink2); }
.syncbar > span { display: flex; align-items: center; gap: 7px; }
.syncbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.syncbar img { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.syncbar.on { background: #e8f3ec; color: #1d5b3a; }
.syncbar .more { padding: 2px 0; font-size: 13.5px; }
.syncbar.off { padding: 12px; }
.syncbar.off b { color: var(--ink); }
.syncbar .btn.login { margin-top: 0; padding: 9px 14px; font-size: 14.5px; }
.btn.login { width: 100%; justify-content: center; gap: 10px; padding: 12px 14px; font-size: 15.5px; margin-top: 8px; }
.btn.login.google { background: #fff; color: #1f1f1f; border: 1px solid #c7c7c7; }
.btn.login.facebook { background: #1877f2; color: #fff; }
.btn.login svg { width: 20px; height: 20px; }
.loginwarn { background: #fff4e0; border-radius: 10px; padding: 8px 10px; font-size: 13.5px; margin: 6px 0; }
.loginfine { font-size: 12.5px; color: var(--ink3); margin: 12px 0 0; }
.loginfine a { color: inherit; }
.syncact { display: flex; gap: 14px; }
.syncact [data-forget] { color: var(--ink3); }
.planbar .btn.gcal { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.planbar .btn.gcal:hover { background: #1765cc; }
.tag.full { background: #fdecea; color: #b3261e; }
.tag.few { background: #fff4d6; color: #8a5a00; }
.availfull { color: #b3261e; }
.tag.closed { background: #ececec; color: #555; }
