:root{
  --serif:"Fraunces",Georgia,"Times New Roman",serif;--sans:"Figtree",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --bg:#f3eee4;--panel:#fbf8f1;--panel2:#f1ebdf;--ink:#1d2427;--muted:#5f685f;--line:#e1d9c8;--line2:#cfc5b0;
  --accent:#1f7a8c;--accent-ink:#fff;--accent-soft:rgba(31,122,140,.14);--sun:#e0a526;
  --t0:#2c7a54;--t0bg:#d3ecdd;--t1:#8a5d06;--t1bg:#f8e5b0;--t2:#ad4137;--t2bg:#f3cdc7;--t3:#e6e9f4;--t3bg:#283050;
  --shadow:0 1px 2px rgba(30,25,10,.08),0 10px 34px rgba(20,25,20,.14);
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#12161a;--panel:#1b2126;--panel2:#222a30;--ink:#f0eadf;--muted:#a29a89;--line:#2c353b;--line2:#3b464d;
  --accent:#5fc0d3;--accent-ink:#0f1a1e;--accent-soft:rgba(95,192,211,.18);--sun:#e8b94a;
  --t0:#6cc389;--t0bg:#1c4a35;--t1:#e8b94a;--t1bg:#4f3f16;--t2:#f08d84;--t2bg:#562d2d;--t3:#9aa1ba;--t3bg:#0a0d1a;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 10px 34px rgba(0,0,0,.4);color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#12161a;--panel:#1b2126;--panel2:#222a30;--ink:#f0eadf;--muted:#a29a89;--line:#2c353b;--line2:#3b464d;
  --accent:#5fc0d3;--accent-ink:#0f1a1e;--accent-soft:rgba(95,192,211,.18);--sun:#e8b94a;
  --t0:#6cc389;--t0bg:#1c4a35;--t1:#e8b94a;--t1bg:#4f3f16;--t2:#f08d84;--t2bg:#562d2d;--t3:#9aa1ba;--t3bg:#0a0d1a;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 10px 34px rgba(0,0,0,.4);color-scheme:dark}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 var(--sans);padding-inline:max(16px,env(safe-area-inset-left,0px)) max(16px,env(safe-area-inset-right,0px));padding-block:0 40px}
main,.top,.foot{max-width:1100px;margin-inline:auto}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
h1,h2{font-family:var(--serif);margin:0;line-height:1.1}
h1{font-size:clamp(34px,6vw,58px);font-weight:500;letter-spacing:-.025em}
h1 em{font-style:italic;font-weight:400;color:var(--accent)}
h2{font-size:22px;font-weight:600;margin-bottom:10px}
.lead{margin:10px 0 0;color:var(--muted);font-size:clamp(16px,2.2vw,19px)}
.fine{font-size:13px;color:var(--muted);margin:8px 0 0}
a{color:var(--accent)}
.top{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding-block:8px}
.top .controls{flex:1;margin:0;justify-content:flex-end;gap:8px 12px;font-size:13px}
.top .controls select,.top .controls input{padding:5px 8px;font-size:13px}
.top .controls button{padding:6px 11px;font-size:13px}
.brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--ink);font:600 19px var(--serif)}
.brand img{width:28px;height:28px}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
.ghost{background:none;border:1px solid var(--line2);border-radius:10px;padding:6px 10px;color:var(--muted)}
.primary{background:var(--accent);color:var(--accent-ink);border:0;border-radius:12px;padding:9px 16px;font-weight:700}
:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.intro{padding:18px 0 14px}
.combo{position:relative}
#q{width:100%;font:500 clamp(18px,3vw,24px) var(--serif);padding:16px 18px;border-radius:16px;border:1px solid var(--line2);background:var(--panel);box-shadow:var(--shadow)}
#q::placeholder{color:var(--muted);font-weight:400}
#results{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 6px);margin:0;padding:6px;list-style:none;background:var(--panel);border:1px solid var(--line2);border-radius:16px;box-shadow:var(--shadow);max-height:min(60vh,420px);overflow:auto}
#results li{padding:10px 12px;border-radius:10px;cursor:pointer;display:grid;gap:2px}
#results li[aria-selected="true"],#results li:hover{background:var(--accent-soft)}
#results .nm{font:600 17px var(--serif)}
#results .sub{font-size:13px;color:var(--muted)}
#results .empty{cursor:default;color:var(--muted)}
.controls{display:flex;flex-wrap:wrap;gap:12px 18px;align-items:center;margin:16px 0}
.controls label{display:flex;gap:8px;align-items:center;font-weight:600;font-size:14px}
.controls input,.controls select{background:var(--panel);border:1px solid var(--line2);border-radius:10px;padding:7px 10px}
.legend{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;font-size:12.5px;color:var(--muted);margin-bottom:8px}
.sw{display:inline-block;width:14px;height:14px;border-radius:4px;margin-right:-8px;border:1px solid var(--line2)}
.sw.t0{background:var(--t0bg)}.sw.t1{background:var(--t1bg)}.sw.t2{background:var(--t2bg)}.sw.t3{background:var(--t3bg)}
.scroller{overflow-x:auto;border-radius:16px;background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow)}
.board{display:flex;min-width:760px;padding:34px 12px 12px 0}
.names{flex:0 0 190px;position:sticky;left:0;z-index:4;background:var(--panel);padding-left:12px;display:grid;grid-auto-rows:auto;row-gap:8px;margin-top:0}
.names>.who,.tracks>.track{height:var(--rh)}
.who{display:grid;align-content:center;gap:1px;min-width:0;position:relative;padding-right:22px}
.who .nm{font-weight:700;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.who .nm small{font-weight:500;color:var(--muted);margin-left:5px}
.who .lt{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.who .lt b{font:600 15px var(--serif);color:var(--ink);font-variant-numeric:tabular-nums;margin-right:6px}
.who .rm{position:absolute;right:0;top:50%;transform:translateY(-50%);border:0;background:none;color:var(--muted);font-size:18px;line-height:1;padding:4px 6px;border-radius:8px}
.who .rm:hover{background:var(--panel2);color:var(--ink)}
.tracks{flex:1;position:relative;display:grid;grid-auto-rows:auto;row-gap:8px;cursor:pointer;touch-action:pan-y;--rh:50px}
.names{--rh:50px}
.track{display:grid;grid-template-columns:repeat(48,minmax(0,1fr));border-radius:10px;overflow:hidden;background:var(--panel2);position:relative}
.cell{position:relative;display:grid;place-items:center;font-size:11px;font-variant-numeric:tabular-nums;border-left:1px solid rgba(120,110,90,.12)}
.cell>span{position:absolute;white-space:nowrap}
.cell.t0{background:var(--t0bg);color:var(--t0);font-weight:700}
.cell.t1{background:var(--t1bg);color:var(--t1);font-weight:600}
.cell.t2{background:var(--t2bg);color:var(--t2);background-image:repeating-linear-gradient(135deg,transparent 0 5px,rgba(173,65,55,.14) 5px 6px)}
.cell.t3{background:var(--t3bg);color:var(--t3)}
.cell.day{border-left:2px solid var(--ink)}
.cell.day>em{position:absolute;left:3px;top:2px;font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;font-style:normal;white-space:nowrap}
.axis{position:absolute;left:0;right:0;top:-24px;height:20px;display:grid;grid-template-columns:repeat(48,minmax(0,1fr));font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;pointer-events:none}
.axis span{grid-column:span 4;border-left:1px solid var(--line2);padding-left:4px;white-space:nowrap;overflow:hidden}
.meet{position:absolute;top:-5px;bottom:-5px;border:3px solid var(--accent);background:var(--accent-soft);border-radius:14px;cursor:grab;z-index:3;touch-action:none;box-shadow:0 0 0 4px var(--accent-soft),0 6px 22px rgba(20,60,80,.28)}
.meet:active{cursor:grabbing}
.meet .lbl{position:absolute;left:50%;top:-25px;transform:translateX(-50%);background:var(--accent);color:var(--accent-ink);font-size:12px;font-weight:800;border-radius:999px;padding:1px 10px;white-space:nowrap;pointer-events:none}
.now{position:absolute;top:-6px;bottom:-6px;width:2px;background:var(--sun);z-index:2;pointer-events:none}
.empty-board{padding:28px 18px;color:var(--muted)}
.summary{margin-top:26px}.best{margin:2px 0 12px}.best h2{font-size:17px}
.stage{margin-top:0}
.when{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.when li{display:grid;gap:4px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:10px 14px}
.when .line1{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:baseline}
.when .pl{font-weight:700;min-width:150px}
.when .tm{font:600 17px var(--serif);font-variant-numeric:tabular-nums}
.when .what{display:flex;flex-wrap:wrap;gap:2px 14px;font-size:13px;color:var(--muted)}
.when .what .utc{font-variant-numeric:tabular-nums;color:var(--ink);font-weight:600}
.say{margin-top:16px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px 14px}
.say-head{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin-bottom:8px}
.say-head h3{margin:0;font:600 18px var(--serif);flex:1}
.msg{margin:0;white-space:pre-wrap;word-break:break-word;font:14px/1.55 var(--sans);color:var(--ink);background:var(--panel2);border-radius:10px;padding:10px 12px}
.howto{margin-top:6px}
.howto p{margin:10px 0 0;max-width:70ch}
.badge{font-size:12px;font-weight:700;border-radius:999px;padding:1px 9px}
.badge.t0{background:var(--t0bg);color:var(--t0)}.badge.t1{background:var(--t1bg);color:var(--t1)}.badge.t2{background:var(--t2bg);color:var(--t2)}.badge.t3{background:var(--t3bg);color:var(--t3)}
.pills{display:grid;grid-template-columns:1fr 1fr;gap:2px 8px}
.pill{display:flex;align-items:center;gap:4px;border-radius:999px;padding:1px 0;font-size:11.5px;font-weight:700;min-width:0;justify-content:flex-start}
.pill .pn{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:600;color:var(--ink)}
.pill .pt{font-variant-numeric:tabular-nums;white-space:nowrap}
.pill.t0{color:var(--t0)}.pill.t1{color:var(--t1)}.pill.t2{color:var(--t2)}.pill.t3{color:var(--muted)}
.ic{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
h2 small{font:500 13px var(--sans);color:var(--muted);margin-left:8px}
.note{margin:12px 0 0;padding:10px 14px;border-radius:12px;background:var(--t1bg);color:var(--t1);font-weight:600}
.foot{margin-top:34px;padding-top:14px;border-top:1px solid var(--line)}
@media (max-width:560px){.names{flex-basis:132px}.who .lt{font-size:11.5px}}

/* Phase 1: modes, routines */
.modenote{margin:0 0 8px}
.chip{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:2px 10px 2px 7px;font-size:12.5px;font-weight:700;background:var(--panel2);border:1px solid var(--line2)}
.chip .ic{width:15px;height:15px}

[hidden]{display:none!important}

/* Phase 2: saved groups */
.groups h2 small{font:500 13px var(--sans);color:var(--muted);margin-left:8px}
.groups{margin-top:28px}
.groupform{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;margin-bottom:12px}
.groupform input{flex:1 1 240px;background:var(--panel);border:1px solid var(--line2);border-radius:12px;padding:9px 12px}
.grouplist{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px}
.group{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:grid;gap:8px;align-content:start}
.ghead{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.ghead b{font:600 17px var(--serif)}.gmeta{font-size:12.5px;color:var(--muted)}
.gpl{display:flex;flex-wrap:wrap;gap:5px}
.gact{display:flex;gap:8px}

/* the story of each place */
.scard{background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:11px 12px;display:grid;gap:8px;align-content:start;min-width:0}
.shead{display:flex;gap:12px;align-items:center}
.sflag{width:56px;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:4px;box-shadow:0 0 0 1px var(--line2)}
.stitle{min-width:0}.stitle h3{margin:0;font:600 17px var(--serif)}
.ssum{margin:0}
.slabel{margin:4px 0 0;font:600 12px var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.rulers{list-style:none;margin:0;padding:0 0 0 12px;border-left:2px solid var(--line2);display:grid;gap:6px}
.rulers li{display:grid;gap:0}.rulers li.cur .rpol{font-weight:700}
.ryrs{font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.rpol{overflow-wrap:anywhere}
.flags{list-style:none;margin:0;padding:0;display:grid;gap:5px}
.flagera{display:flex;gap:8px;align-items:center;font-size:12.5px;line-height:1.25;min-width:0}
.flagera.cur b{color:var(--accent)}
.fimg{flex:0 0 34px;width:34px;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px var(--line2);background:var(--panel)}
.ftx{min-width:0}.ftx b{font-weight:600}
.fdates{color:var(--muted);font-size:11.5px;white-space:nowrap}
.slink{font-size:13.5px}.sfoot{margin-top:10px}

/* ---------- the map stage (Record Atlas look: satellite, glass panels, round buttons) ---------- */
.stage{position:relative;margin:4px 0 14px}
.glass{background:color-mix(in srgb,var(--panel) 90%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid var(--line2);box-shadow:var(--shadow)}
/* without a map (Leaflet did not load, or the browser is offline) the search box is just a box above the controls */
.stage .finder{border-radius:18px;padding:8px}
.stage .finder #q{box-shadow:none;border-color:transparent;background:transparent;padding:12px 14px;font-size:clamp(17px,2.6vw,22px)}
.stage .finder #q:focus-visible{outline-offset:0;border-radius:12px}
.stage .finder .fine{margin:2px 8px 4px;min-height:0}
.stage .finder .fine:empty{display:none}
.stage.hasmap .map{display:block;height:clamp(340px,60vh,580px);border-radius:24px;background:#16222b;box-shadow:var(--shadow);border:1px solid var(--line2);overflow:hidden}
.stage.hasmap .finder{position:absolute;z-index:1200;left:14px;top:14px;width:min(640px,calc(100% - 84px))}
.stage.hasmap .rail{position:absolute;z-index:1200;right:14px;top:14px;display:flex;flex-direction:column;gap:8px}
.rb{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;padding:0;background:color-mix(in srgb,var(--panel) 92%,transparent);color:var(--ink);border:1px solid var(--line2);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.rb:hover{border-color:var(--accent)}
.rb[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.rb .ic{width:20px;height:20px}
.chip{position:absolute;z-index:1200;left:14px;bottom:30px;max-width:calc(100% - 28px);border-radius:16px;padding:9px 14px;display:grid;gap:1px;cursor:pointer}
.chip b{font:600 clamp(16px,2.4vw,20px)/1.2 var(--serif);font-variant-numeric:tabular-nums}
.chip span{font-size:13px;font-weight:600;color:var(--muted)}
.chip.w0 span{color:var(--t0)}.chip.w1 span{color:var(--t1)}.chip.w2 span,.chip.w3 span{color:var(--t2)}
.stage.hasmap .leaflet-control-attribution{font-size:10px;background:color-mix(in srgb,var(--panel) 75%,transparent);color:var(--muted)}
.stage.hasmap .leaflet-control-attribution a{color:var(--muted)}
.leaflet-container{font-family:var(--sans)}
/* pins: a ringed dot on the place, a glass label beside it */
.pin{position:absolute;left:0;top:0;transform:translate(-10px,-50%);display:flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap;--pc:var(--t0)}
.pin:hover .lab,.pin:focus-visible .lab{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent),0 2px 8px rgba(0,0,0,.35)}
.pin:focus-visible{outline:none}
.pin.t1{--pc:var(--t1)}.pin.t2{--pc:var(--t2)}.pin.t3{--pc:var(--t3bg)}
.pin .dot{flex:none;width:20px;height:20px;border-radius:50%;background:var(--pc);border:3px solid #fff;box-shadow:0 0 0 2px rgba(0,0,0,.28),0 3px 10px rgba(0,0,0,.45)}
.pin.approx .dot{border-style:dashed}
.pin.flip{flex-direction:row-reverse;transform:translate(calc(-100% + 10px),-50%)}
.pin .lab{display:flex;align-items:baseline;gap:6px;padding:3px 10px 3px 9px;border-radius:999px;background:color-mix(in srgb,var(--panel) 92%,transparent);color:var(--ink);border:1px solid var(--line2);box-shadow:0 2px 8px rgba(0,0,0,.35);font-size:13px}
.pin .mood{display:inline-flex;align-self:center}.pin .mood .ic{width:28px;height:28px;margin:-3px -2px -3px -5px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.35))}
.pin .pn{font-weight:700;max-width:14ch;overflow:hidden;text-overflow:ellipsis}
.pin .pt{font:600 15px var(--serif);font-variant-numeric:tabular-nums}
.pin .pd{font-style:normal;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.pin .pd:empty{display:none}
@media (max-width:640px){
  .stage.hasmap .finder{right:14px;width:auto}
  .stage.hasmap .map{height:clamp(360px,62vh,520px)}
  #zin,#zout{display:none}                              /* pinch to zoom on a phone; the two that remain are fit and day/night */
  .stage.hasmap .rail{top:auto;right:12px;bottom:34px;flex-direction:row}
  .rb{width:40px;height:40px}
  .chip{left:12px;bottom:34px;max-width:calc(100% - 118px)}
  .pin .pn{max-width:9ch}
}
@media (prefers-reduced-motion:reduce){.rb,.pin{transition:none}}
.stage.hasmap .leaflet-bottom.leaflet-right{margin:0 12px 6px 0}
.stage.hasmap .leaflet-control-attribution{border-radius:8px;padding:1px 6px}

/* ---------- clickable place names and the place sheet ---------- */
.who .nm[role="button"]{cursor:pointer;width:max-content;max-width:100%;border-radius:6px}
.who .nm[role="button"]:hover{text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:3px}
dialog.sheet{border:0;padding:0;background:transparent;color:var(--ink);width:min(560px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);margin:auto}
dialog.sheet::backdrop{background:rgba(10,14,22,.6)}
.sheet-card{background:var(--panel);border:1px solid var(--line2);border-radius:22px;box-shadow:var(--shadow);padding:16px 18px 18px;max-height:calc(100dvh - 24px);overflow:auto}
.sheet-head{display:flex;gap:14px;align-items:center}
.sheet-flag{width:72px;height:48px;object-fit:contain;border-radius:6px;box-shadow:0 0 0 1px var(--line2);background:var(--panel2);flex:none}
.sheet-id{flex:1;min-width:0}
.sheet-id h2{margin:0;font-size:26px;overflow-wrap:anywhere}
.sheet-country{margin:2px 0 0;color:var(--muted);font-weight:600}
.sheet-id .fine{display:inline-block;margin-top:2px}
.sheet-head .ghost{align-self:flex-start;font-size:20px;line-height:1;padding:4px 10px}
#sheet-body h3{font:600 15px var(--sans);letter-spacing:.01em;margin:18px 0 8px;color:var(--muted)}
.swhen{display:grid;gap:2px;margin-top:14px;padding:12px 14px;border-radius:14px;background:var(--panel2)}
.swhen b{font:600 clamp(20px,4vw,26px)/1.2 var(--serif);font-variant-numeric:tabular-nums}
.swhen span{font-size:13px;color:var(--muted)}
.swhen .samb{color:var(--t1);font-weight:600}
.ssay{margin-top:4px}.ssay h3{margin-top:16px}
.ssay .msg{font-size:13.5px}
.srow{display:flex;gap:10px;align-items:center;margin-top:8px}
.zlist{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.zr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:baseline;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.zl{display:flex;gap:8px;align-items:baseline;min-width:0}
.zl b{font:700 15px var(--sans);min-width:3.2em}
.zl span{color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zt{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.zt .tm{font:600 16px var(--serif)}
.zt .dd{font-style:normal;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;margin-left:8px;color:var(--t1)}
.zu{grid-column:1/-1;font-size:12px;color:var(--muted);margin-top:1px}
@media (max-width:480px){.zr{grid-template-columns:1fr}.zt{text-align:left}.sheet-id h2{font-size:22px}}

/* ---------- right now ---------- */
.pin .pz{font-size:11px;font-weight:700;letter-spacing:.03em;color:var(--muted);white-space:nowrap}
.nowbtn{display:inline-flex;align-items:center;gap:7px}
.nowbtn.on::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--t0);animation:livepulse 2s ease-in-out infinite}
.nowbtn.on{border-color:var(--t0);color:var(--ink)}
.chip.live #chipwhen{font-variant-numeric:tabular-nums}
@keyframes livepulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--t0) 55%,transparent)}50%{box-shadow:0 0 0 6px transparent}}
@media (prefers-reduced-motion:reduce){.nowbtn.on::before{animation:none}}

/* ---------- the place sheet: a few small cards ---------- */
dialog.sheet{width:min(720px,calc(100vw - 24px))}
.sheet-card{padding:12px 14px 14px;border-radius:18px}
.sheet-head{gap:10px}.sheet-flag{width:56px;height:38px;border-radius:5px}
.sheet-id h2{font-size:22px;line-height:1.1}.sheet-country{margin:0;font-size:13px}.sheet-id .fine{display:inline;margin:0 0 0 8px;font-size:12px}
.sheet-head .ghost{font-size:18px;padding:2px 9px}
.hero{margin-top:10px;padding:10px 12px 8px;border-radius:14px;background:var(--panel2);border:1px solid var(--line)}
.hero.w0{background:var(--t0bg)}.hero.w1{background:var(--t1bg)}.hero.w2{background:var(--t2bg)}.hero.w3{background:var(--t3bg);color:var(--t3)}
.htop{display:flex;gap:8px 12px;justify-content:space-between;align-items:center;flex-wrap:wrap}
.hbig b{display:block;font:600 clamp(21px,4.5vw,26px)/1.1 var(--serif);font-variant-numeric:tabular-nums}
.hbig span{display:block;margin-top:2px;font-size:12px;opacity:.85}
.hero .badge{display:inline-flex;align-items:center;gap:5px;font-size:12px;padding:3px 9px;background:color-mix(in srgb,var(--panel) 72%,transparent)}
.hero .badge .ic{width:24px;height:24px;margin:-4px 0 -4px -6px}
.rstrip{position:relative;display:flex;height:12px;border-radius:6px;background:var(--panel2);margin-top:8px}
.rstrip i{flex:1;border-right:1px solid color-mix(in srgb,var(--panel) 55%,transparent)}.rstrip i:first-child{border-radius:6px 0 0 6px}.rstrip i:last-of-type{border-radius:0 6px 6px 0;border-right:0}
.rstrip i.t0{background:var(--t0bg)}.rstrip i.t1{background:var(--t1bg)}.rstrip i.t2{background:var(--t2bg)}.rstrip i.t3{background:var(--t3bg)}
.hero .rstrip i.t0{background:#8fd0a8}.hero .rstrip i.t1{background:#f0cd6e}.hero .rstrip i.t2{background:#e9a198}.hero .rstrip i.t3{background:#3a4478}
.rmeet{position:absolute;top:-3px;bottom:-3px;min-width:5px;border:2px solid var(--ink);border-radius:4px;background:color-mix(in srgb,var(--ink) 16%,transparent);box-sizing:border-box}
.sunmk{position:absolute;top:0;bottom:0;width:0;border-left:2px dotted var(--ink);opacity:.55}
.hfoot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:5px;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}
.hticks{opacity:.6;letter-spacing:.04em}.hsun{display:inline-flex;align-items:center;gap:3px;font-size:12px}.hsun .ic{width:15px;height:15px}
.hamb{margin:6px 0 0;font-size:12px;font-weight:600}
.ssay{display:flex;gap:8px;align-items:center;margin-top:8px}.ssay .msg{flex:1;margin:0;font-size:12.5px;line-height:1.4;padding:7px 10px;max-height:4.3em;overflow:auto}
.ssay .srow{margin:0;flex-direction:column;align-items:flex-start;gap:2px}.ssay .primary{padding:6px 14px}
.tiles{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:6px}
.tile{padding:7px 9px 8px;border:1px solid var(--line);border-radius:10px;background:var(--panel);display:grid;gap:3px;min-width:0}
.tile.who2{background:var(--panel2);border-color:var(--line2)}
.tt{display:flex;gap:5px;align-items:baseline;min-width:0;font-size:12px}.tt b{font:700 13px var(--sans)}.tt i{font-style:normal;color:var(--muted);font-variant-numeric:tabular-nums}
.tt span{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.tm2{display:flex;align-items:center;gap:5px;font:600 14px var(--serif);font-variant-numeric:tabular-nums;white-space:nowrap}
.tm2 .dd{font-style:normal;font-size:10px;font-weight:800;letter-spacing:.03em;color:var(--t1)}
.tile .rstrip{height:6px;margin-top:2px;border-radius:3px}.tile .rstrip i:first-child{border-radius:3px 0 0 3px}.tile .rstrip i:last-of-type{border-radius:0 3px 3px 0}
.tile .rmeet{border:0;background:var(--ink);opacity:.8;top:-1px;bottom:-1px;border-radius:2px;min-width:3px}
.rkey{display:flex;flex-wrap:wrap;gap:4px 12px;margin:8px 0 0;font-size:11.5px;width:100%;max-width:none}.rki{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;width:auto;height:auto}.rkd{width:11px;height:11px;border-radius:3px;display:inline-block;position:static}.rkd.t0{background:var(--t0bg)}.rkd.t1{background:var(--t1bg)}.rkd.t2{background:var(--t2bg)}.rkd.t3{background:var(--t3bg)}
@media (max-width:480px){.tiles{grid-template-columns:1fr 1fr}.ssay{flex-direction:column;align-items:stretch}.ssay .srow{flex-direction:row;align-items:center}}
.tdot{display:inline-flex;flex:none;width:auto;height:auto;border-radius:0;box-shadow:none;background:none}.tdot .ic{width:24px;height:24px}
.tdot.t0{color:var(--t0)}.tdot.t1{color:var(--t1)}.tdot.t2{color:var(--t2)}.tdot.t3{color:var(--muted)}

/* ---------- type a time in any row ---------- */
.who .lt{display:flex;flex-direction:column;align-items:flex-start;gap:0;line-height:1.25}
.who .lt .lti{font:600 15px var(--serif);color:var(--ink);font-variant-numeric:tabular-nums;background:transparent;border:1px solid transparent;border-radius:6px;padding:0 2px;width:7.4em;max-width:100%;min-width:0;cursor:text;white-space:nowrap}
.who .lt .lti:hover{border-color:var(--line2)}.who .lt .lti:focus{outline:2px solid var(--accent);outline-offset:1px;background:var(--panel)}
.who .lt .lti::-webkit-calendar-picker-indicator{display:none}
.who .lt .ltx{overflow:hidden;text-overflow:ellipsis}
.stepper{display:inline-flex;gap:4px}.stepper .ghost{padding:6px 10px}

.ic.face{fill:initial;stroke:initial;stroke-width:initial}

/* place card: headlines */
.news{margin:12px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel2)}
.news h3{margin:0 0 6px;font:600 12px var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.nlist{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.nlist a{color:var(--ink);font:600 14.5px/1.35 var(--serif);text-decoration:none;display:block}
.nlist a:hover{text-decoration:underline}
.nsrc{display:block;font-size:12px;color:var(--muted);margin-top:1px}
.news .fine{margin:8px 0 0;font-size:11.5px}

/* this week */

/* holidays */
.hol{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;font:600 11px var(--sans);background:var(--accent-soft);color:var(--ink);border:1px solid var(--line2)}
.hol.m,.hol.r{background:none;color:var(--muted);font-weight:500}
.hnote{font-size:12.5px;margin:6px 0 0;color:var(--muted)}.hnote b{color:var(--ink)}

/* pins as mini cards: face on the left, name and zone on the first line, the meeting's from-to on the second */
.pin{gap:4px}
.pin .lab{display:grid;grid-template-columns:auto auto auto;grid-template-areas:"mood nm zn" "mood tm dd";align-items:baseline;column-gap:5px;row-gap:0;padding:3px 8px 3px 5px;border-radius:11px;line-height:1.15}
.pin .mood{grid-area:mood;align-self:center}.pin .mood .ic{width:26px;height:26px;margin:0}
.pin .pn{grid-area:nm;font-size:12.5px;max-width:12ch}
.pin .pz{grid-area:zn;font-size:10px;justify-self:end;margin-left:6px}
.pin .pt{grid-area:tm;font:600 13.5px var(--serif);letter-spacing:-.01em}
.pin .pd{grid-area:dd;font-size:10px;justify-self:end}
.pin .dot{width:16px;height:16px;border-width:2.5px}
.pin{transform:translate(-8px,-50%)}.pin.flip{transform:translate(calc(-100% + 8px),-50%)}
@media (max-width:640px){.pin .pn{max-width:9ch}.pin .pz{display:none}}

.linkbtn{background:none;border:0;padding:0;margin-left:4px;color:var(--accent);font:inherit;text-decoration:underline;cursor:pointer}
#results li .sub{white-space:normal}

/* yesterday / tomorrow, said in words wherever a time falls on another day than your first place's */
.dw{display:inline-block;padding:0 6px;border-radius:999px;font:600 10.5px/1.5 var(--sans);letter-spacing:.01em;text-transform:none;white-space:nowrap;color:var(--ink);vertical-align:1px}
.dw.sp{background:color-mix(in srgb,var(--t1) 70%,transparent)}
.dw.sm{background:color-mix(in srgb,var(--accent) 24%,transparent)}
.pin .pd{font:600 10px/1.5 var(--sans);letter-spacing:.01em;text-transform:none;border-radius:999px;padding:0 6px;color:var(--ink)}
.pin .pd[data-s="1"]{background:color-mix(in srgb,var(--t1) 85%,transparent)}
.pin .pd[data-s="-1"]{background:color-mix(in srgb,var(--accent) 30%,#fff)}
/* pin: the "yesterday" / "tomorrow" chip sits under the time */
.pin .lab{grid-template-areas:"mood nm zn" "mood tm tm" "mood dd dd"}
.pin .pd{justify-self:start;margin-top:2px}
.pin .pd:empty{display:none}
.pin .lab{grid-template-columns:auto max-content auto}
.pin .pn{max-width:16ch}
.pin .pz{align-self:baseline}

/* the small news icon: a corner badge on the pin card, an inline mark on the row name, a heading icon in the place card */
.pin .lab{position:relative}
.pin .nw{position:absolute;top:-8px;right:-7px;display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:var(--accent);color:#fff;border:2px solid var(--panel);box-shadow:0 1px 4px rgba(0,0,0,.4)}
.pin .nw[hidden]{display:none}
.pin .nw .ic{width:11px;height:11px;stroke:#fff}
.who .nm .nw{display:inline-grid;place-items:center;margin-left:6px;width:16px;height:16px;border-radius:50%;background:var(--accent);vertical-align:2px}
.who .nm .nw .ic{width:10px;height:10px;stroke:#fff}
.news h3 .ic{width:14px;height:14px;vertical-align:-2px;margin-right:2px}

/* the Everyone row: a heat strip of how kind each start is to the worst-placed person, best starts starred */
.who.every,.track.every{--rh:58px}
.who.every .nm{font-family:var(--serif);font-size:15px}.who.every{gap:3px}
.who.every .lt{display:flex;flex-wrap:wrap;gap:4px;align-items:center;overflow:visible;white-space:normal}
.tbtn{font:700 12px var(--sans);font-variant-numeric:tabular-nums;border:1px solid var(--line);background:var(--panel2);color:var(--ink);border-radius:999px;padding:1px 8px;cursor:pointer}
.tbtn:hover{border-color:var(--accent)}.tbtn.top{background:var(--sun);border-color:var(--sun);color:#2a1d05}
.who.every .nope{color:var(--t2);font-weight:600;font-size:12px}
.track.every{border:1px solid var(--line)}
.track.every .cell{border-left-color:transparent}
.track.every .cell.t2{background-image:none}
.track.every .cell.pick{overflow:visible}
.track.every .bst{color:#fff;font-size:18px;line-height:1;text-shadow:0 0 3px rgba(0,0,0,.65),0 1px 2px rgba(0,0,0,.5)}
.track.every .alt{color:#fff;font-size:9px;opacity:.9;text-shadow:0 0 2px rgba(0,0,0,.6)}
.track.every .cell>span{position:static}

/* "me": a bright blue dot that pulses, and a cross to take me out of the plan */
.pin.me .dot{background:#1e90ff;border-color:#fff;position:relative;box-shadow:0 0 0 2px rgba(30,144,255,.55),0 3px 10px rgba(0,0,0,.45)}
.pin.me .dot::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid #1e90ff;animation:mepulse 1.8s ease-out infinite;pointer-events:none}
@keyframes mepulse{0%{transform:scale(.7);opacity:.95}100%{transform:scale(2.6);opacity:0}}
@media (prefers-reduced-motion:reduce){.pin.me .dot::after{animation:none;opacity:.5;transform:scale(1.5)}}
.pin.me .pn::after{content:" \00b7  me";font-weight:700;color:#1e90ff}
.pin .pmrm{position:absolute;top:-8px;left:-7px;width:19px;height:19px;border-radius:50%;border:2px solid var(--panel);background:var(--ink);color:var(--panel);font:700 13px/1 var(--sans);padding:0;display:grid;place-items:center;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.pin .pmrm[hidden]{display:none}
.pin .pmrm:hover{background:#c0392b;color:#fff}
.who .nm small.me{color:#1e90ff;font-weight:700}
.addme{margin-top:6px}

/* burger menu */
.menuwrap{position:relative}
#burger{padding:6px 9px;line-height:0}#burger .ic{width:20px;height:20px}
.menu{position:absolute;right:0;top:calc(100% + 6px);z-index:30;min-width:260px;max-width:min(340px,calc(100vw - 32px));background:var(--panel);border:1px solid var(--line2);border-radius:14px;box-shadow:var(--shadow);padding:6px;display:grid;gap:2px}
.menu[hidden]{display:none}
.menu button{text-align:left;background:none;border:0;border-radius:10px;padding:10px 12px;color:var(--ink);font:600 14px var(--sans);cursor:pointer}
.menu button:hover,.menu button:focus-visible{background:var(--panel2)}

/* the story icon on a map card: opens that place's story */
.pin .sty{position:absolute;bottom:-8px;right:-7px;display:grid;place-items:center;width:19px;height:19px;padding:0;border-radius:50%;background:var(--panel);color:var(--ink);border:2px solid var(--line2);box-shadow:0 1px 4px rgba(0,0,0,.4);cursor:pointer}
.pin .sty .ic{width:11px;height:11px}
.pin .sty:hover,.pin .sty:focus-visible{background:var(--accent);color:#fff;border-color:var(--panel)}
#storydlg .scard{border:0;padding:6px 0 0;background:none}

/* a holiday badge on the map card: a whole-country one is solid, a regional one is outlined */
.pin .hd{position:absolute;bottom:-8px;left:-7px;display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#e0a21a;color:#2a1d05;border:2px solid var(--panel);box-shadow:0 1px 4px rgba(0,0,0,.4)}
.pin .hd[hidden]{display:none}
.pin .hd .ic{width:11px;height:11px}
.pin .hd[data-l="r"]{background:var(--panel);color:#b07d10;border-color:#e0a21a}

/* a school-break badge: to the right of the holiday one, the same way (solid when the whole country, outlined when only some regions) */
.pin .sc{position:absolute;bottom:-8px;left:14px;display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#2f8f6b;color:#fff;border:2px solid var(--panel);box-shadow:0 1px 4px rgba(0,0,0,.4)}
.pin .sc[hidden]{display:none}
.pin .sc .ic{width:11px;height:11px}
.pin .sc[data-l="r"]{background:var(--panel);color:#2f8f6b;border-color:#2f8f6b}
.who .nm .sch{display:inline-block;margin-left:6px;padding:0 7px;border-radius:999px;font:700 10.5px/1.6 var(--sans);background:color-mix(in srgb,#2f8f6b 22%,transparent);color:var(--ink);vertical-align:1px}
.who .nm .sch[data-l="r"]{background:none;box-shadow:inset 0 0 0 1px #2f8f6b}

/* the Save button in the header, and the saved-groups popup */
.savebtn{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;font-size:13px}.savebtn .ic{width:16px;height:16px}
.sheet-card.groups{display:grid;gap:12px;align-content:start}
.sheet-card.groups .gh{margin:4px 0 0;font:600 15px var(--serif)}

/* the Copy popup */
#copydlg .msg{margin:12px 0}
.copyrow{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center}

/* the board's name column, tidied: the holiday, school and news marks are small round icons after the name, never words that wrap */
.names{flex-basis:200px}
.who .nm .hol,.who .nm .sch,.who .nm .nw{display:inline-grid;place-items:center;width:17px;height:17px;padding:0;margin-left:5px;border-radius:50%;vertical-align:-3px;border:0}
.who .nm .hol{background:#e0a21a;color:#2a1d05}.who .nm .hol.m,.who .nm .hol.r{background:none;color:#b07d10;box-shadow:inset 0 0 0 1.5px #e0a21a;font-weight:inherit}
.who .nm .sch{background:#2f8f6b;color:#fff}.who .nm .sch[data-l="r"]{background:none;color:#2f8f6b;box-shadow:inset 0 0 0 1.5px #2f8f6b}
.who .nm .hol .ic,.who .nm .sch .ic{width:11px;height:11px}
.who .lt .ltx{overflow:visible;text-overflow:clip}
.who.every{align-content:center;justify-items:start}
.who.every .lt{flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:6px;white-space:nowrap}
.who.every .nope{font-size:11.5px;font-weight:600;color:var(--t2)}
@media (max-width:560px){.names{flex-basis:150px}}

/* the Everyone row, simplified: numbered best starts, a plain verdict, one button to step through them */
.who.every,.track.every{--rh:70px}
.who.every{gap:2px}
.who.every .ev{font-size:11.5px;font-weight:600;color:var(--t0);line-height:1.2}
.who.every .ev.w1{color:var(--t1)}.who.every .ev.w2,.who.every .ev.w3{color:var(--t2)}
.who.every .tbtn{margin-top:3px;white-space:nowrap}
.track.every .rk{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff;color:#1b2442;font:800 12px var(--sans);box-shadow:0 0 0 2px rgba(0,0,0,.35),0 2px 6px rgba(0,0,0,.4)}
.track.every .rk.top{background:var(--sun);color:#2a1d05;width:26px;height:26px;font-size:13px}
.rkkey{display:inline-flex;align-items:center;gap:5px;margin-left:8px}
.rkkey b{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;background:var(--sun);color:#2a1d05;font:800 10.5px var(--sans)}

/* the numbered best starts may be wider than their half-hour cell: the strip no longer clips them, its corners are rounded on the end cells */
.track.every{overflow:visible}
.track.every .cell:first-child{border-radius:10px 0 0 10px}
.track.every .cell:last-child{border-radius:0 10px 10px 0}
.track.every .cell.pick{overflow:visible;z-index:2}
.track.every .cell.pick .rk{position:relative;flex:none}
.track.every .rk{width:20px;height:20px;font-size:11.5px}
.track.every .rk.top{width:24px;height:24px;font-size:12.5px}
