:root{
  --ink:#16323f; --ink2:#4b6470; --muted:#8a9aa2; --line:#e3e8ea; --bg:#f4f4f1; --card:#fff;
  --teal:#2b6f72; --warn:#c0462f; --ok:#2f8a57; --blue:#0a7aff; --c:#2b6f72;
  --sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --serif:"New York","Iowan Old Style",Georgia,"Times New Roman",serif;
  --top:env(safe-area-inset-top,0px); --bot:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;overflow:hidden;background:var(--bg);color:var(--ink);font:15px/1.35 var(--sans);-webkit-user-select:none;user-select:none}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;padding:0}
input,select{font:inherit}
#app{position:fixed;inset:0;display:flex;flex-direction:column;overflow:hidden;background:var(--bg)}

/* header */
#hd{flex:none;padding:calc(var(--top) + 10px) 16px 8px;background:var(--bg);position:relative;z-index:20}
.row1{display:flex;align-items:center;gap:10px}
.dayring{position:relative;display:grid;place-items:center;flex:none}
.dayring b{position:absolute;font-size:11px;font-weight:800}
.ttl{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;text-align:left}
.ttl .tline{display:flex;align-items:center;gap:6px;max-width:100%}
.ttl h1{margin:0;font-size:25px;font-weight:800;letter-spacing:-.4px;line-height:1.1;white-space:nowrap}
.ttl .chev{color:var(--blue);font-size:15px;transform:translateY(2px)}
.ttl .sub{font-size:13px;color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.iconbtn{font-size:21px;color:var(--blue);padding:4px}
.txtbtn{color:var(--blue);font-weight:600;font-size:16px;padding:4px 2px}
.txtbtn.on{background:var(--blue);color:#fff;border-radius:14px;padding:4px 12px}
.days{display:flex;gap:6px;overflow-x:auto;margin:10px -16px 0;padding:0 16px;scrollbar-width:none}
.days::-webkit-scrollbar{display:none}
.days button{flex:none;border-radius:16px;padding:5px 11px;font-size:12.5px;font-weight:700;background:#fff;color:var(--ink2);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.days button.on{background:var(--ink);color:#fff}
.days button .dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;vertical-align:1px}
.island{display:flex;align-items:center;gap:10px;width:100%;margin-top:10px;background:#111;color:#fff;border-radius:22px;padding:9px 14px;text-align:left}
.island .c{width:22px;height:22px;border-radius:50%;flex:none}
.island .t{flex:1;min-width:0}
.island .t b{display:block;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.island .t span{font-size:11.5px;color:#aaa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.island .n{font-size:20px;font-weight:800;font-variant-numeric:tabular-nums;text-align:right;line-height:1}
.island .n small{display:block;font-size:10px;font-weight:600;color:#aaa}
.island.warn{background:var(--warn)}

/* views */
#main{flex:1;position:relative;min-height:0}
.view{position:absolute;inset:0;display:none;flex-direction:column}
.view.on{display:flex}
.scroll{flex:1;overflow-y:auto;padding:4px 14px calc(var(--bot) + 96px);-webkit-overflow-scrolling:touch}
.scroll.dark{background:#1c1c1e;color:#fff}
.reopt{display:flex;justify-content:space-between;align-items:center;margin:4px 2px 10px;font-size:12.5px;background:#fff7e6;border-radius:12px;padding:7px 10px;color:var(--ink2)}
.reopt button{background:var(--blue);color:#fff;border-radius:8px;padding:4px 9px;font-size:12px;font-weight:600}
.hint{text-align:center;color:var(--muted);font-size:12px;margin:12px 0}

/* stop cards (variant 2 style) */
.cd{background:var(--card);border-radius:22px;padding:12px 14px;margin-bottom:10px;box-shadow:0 2px 12px rgba(0,0,0,.06);display:flex;gap:12px;align-items:flex-start;cursor:pointer;position:relative}
.cd .n{width:30px;height:30px;border-radius:50%;flex:none;background:var(--c);color:#fff;display:grid;place-items:center;font-weight:800;font-size:13px;margin-top:1px}
.cd .bd{flex:1;min-width:0}
.cd .nm{font-weight:700;font-size:16px}
.cd .mt{font-size:12.5px;color:var(--ink2);margin-top:1px}
.cd .mt .warn{color:var(--warn);font-weight:700}
.cd .prow{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}
.cd .acts{display:flex;flex-direction:column;gap:6px;flex:none}
.cd .acts button{background:#eef1f0;border-radius:11px;font-size:13px;padding:6px 9px;font-weight:700;min-width:34px}
.cd .acts button.ok{background:#e3f2ea;color:var(--ok)}
.cd .hdl{font-size:22px;color:#9aa8ad;padding:4px 2px;touch-action:none;cursor:grab;align-self:center}
.cd.fixedc .n{border-radius:9px}
.cd.optc .n{background:#fff;color:var(--c);border:2px dashed var(--c)}
.lifted{box-shadow:0 16px 34px rgba(0,0,0,.28)!important;transform:scale(1.03);z-index:5}
.sorting{touch-action:none}
.nowline{display:flex;align-items:center;gap:8px;margin:6px 4px 12px;font-size:11px;font-weight:800;letter-spacing:1px;color:var(--warn);text-transform:uppercase}
.nowline:after{content:"";flex:1;height:2px;background:var(--warn);opacity:.55;border-radius:1px}
.sec{font-size:11px;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted);margin:16px 4px 8px}
/* done styles (Settings) */
.past.fade{opacity:.45}
.past.strike .nm{text-decoration:line-through;text-decoration-thickness:2px}
.past.compact{padding-top:7px;padding-bottom:7px;box-shadow:none;margin-bottom:6px}
.past.compact .prow,.past.compact .phb{display:none}
.past.compact .nm{font-size:14px}
.past.isdn .n{background:#9fb0b5;border:0;color:#fff;border-radius:50%}
.past.issk .n{background:#fff;color:#aaa;border:1.5px dashed #bbb}
.past .stack,.past .phb{filter:grayscale(.5)}
.empty{text-align:center;padding:40px 20px;color:var(--ink2)}
.empty h3{font-family:var(--serif);font-size:24px;color:var(--ink);margin:4px 0}

/* pictures */
.stack{display:flex;padding-left:12px}
.stack .th{width:40px;height:40px;border-radius:50%;margin-left:-12px;border:2.5px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.stack .th.got{box-shadow:0 0 0 2.5px var(--ok)}
.stack .th.more{background:var(--ink);color:#fff;font-size:11px;font-weight:700}
.th{position:relative;width:40px;height:40px;border-radius:9px;overflow:hidden;background:#e7ebe9;display:grid;place-items:center;flex:none}
.th img{width:100%;height:100%;object-fit:cover;display:block}
.th .ic{font-size:18px}
.th .ok{position:absolute;right:1px;bottom:1px;width:15px;height:15px;border-radius:50%;background:var(--ok);color:#fff;font-size:9px;font-style:normal;display:none;place-items:center;border:1.5px solid #fff}
.th.got .ok{display:grid}
.phb{margin-top:8px}
.phb .phh{height:130px;border-radius:14px;background:#ccc center/cover}
.phb .caps{display:flex;gap:8px;overflow-x:auto;margin-top:8px;scrollbar-width:none}
.phb .cap{width:64px;flex:none;font-size:10.5px;line-height:1.2;color:var(--ink2)}
.phb .cap .th{width:64px;height:64px;border-radius:12px;margin-bottom:3px}
.hring{position:relative;display:inline-grid;place-items:center;flex:none}
.hring b{position:absolute;font-size:10px;font-weight:800;color:var(--ink2)}
.past .hring b{color:var(--ok)}

/* map */
#map{position:absolute;inset:0;background:#f6f4ef}
.mapcard{position:absolute;left:10px;right:10px;bottom:calc(var(--bot) + 84px);z-index:500;background:#fff;border-radius:20px;padding:10px 14px;box-shadow:0 8px 24px rgba(0,0,0,.2);cursor:pointer}
.mapcard .small{font-size:12px;color:var(--ink2)}
.mapcard b{font-size:16px}
.mapcard .stack{margin-top:6px}
.pin{width:26px;height:26px;border-radius:50%;background:var(--c);color:#fff;font:700 12px/1 var(--sans);display:grid;place-items:center;border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.35)}
.pin.fixed{border-radius:7px}.pin.done{background:#9fb0b5}.pin.skip{background:#fff;color:#b0b8bb;border-color:#d4dadc}.pin.next{transform:scale(1.3)}
.ppin{width:44px;height:44px;border-radius:50%;background:#ddd center/cover;border:3px solid var(--c);box-shadow:0 3px 8px rgba(0,0,0,.35);position:relative;display:grid;place-items:center;font-size:18px}
.ppin b,.ipin b{position:absolute;right:-7px;top:-7px;min-width:20px;height:20px;border-radius:10px;background:var(--c);color:#fff;font:700 11px/20px var(--sans);text-align:center;border:2px solid #fff;padding:0 4px}
.ppin.next{width:56px;height:56px}.ppin.done,.ipin.done{filter:grayscale(1);opacity:.6}.ppin.skip,.ipin.skip{opacity:.35}
.ipin{width:36px;height:36px;border-radius:50%;background:#fff;border:3px solid var(--c);box-shadow:0 3px 8px rgba(0,0,0,.3);display:grid;place-items:center;font-size:18px;position:relative}
.ipin.next{width:44px;height:44px;font-size:22px}
.you{width:18px;height:18px;border-radius:50%;background:#2a7cf6;border:3px solid #fff;box-shadow:0 0 0 6px rgba(42,124,246,.22),0 1px 4px rgba(0,0,0,.4)}

/* ask */
.log{flex:1;overflow-y:auto;padding:8px 12px;display:flex;flex-direction:column;gap:8px}
.msg{max-width:86%;padding:9px 13px;border-radius:18px;font-size:14.5px;line-height:1.38;-webkit-user-select:text;user-select:text}
.msg.a{background:#fff;align-self:flex-start;border-bottom-left-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.05)}
.msg.u{background:#2a7cf6;color:#fff;align-self:flex-end;border-bottom-right-radius:6px}
.msg ul{margin:6px 0 0;padding-left:18px}
.msg .lk{color:var(--teal);font-weight:700;cursor:pointer}
.msg .stack{margin-top:6px}
.chips{flex:none;display:flex;gap:6px;overflow-x:auto;padding:6px 12px;scrollbar-width:none}
.chips button{flex:none;border:1px solid #cfd8da;background:#fff;border-radius:18px;padding:7px 12px;font-size:13px;font-weight:600}
.askf{flex:none;display:flex;gap:8px;padding:6px 12px calc(var(--bot) + 84px)}
.askf input{flex:1;border:1px solid #d6dddf;border-radius:20px;padding:10px 14px;background:#fff;-webkit-user-select:text;user-select:text}
.askf button{background:#2a7cf6;color:#fff;border-radius:50%;width:40px;height:40px;font-size:17px}

/* tickets */
.tkh{margin:14px 6px 10px;font-size:26px;font-weight:800}
.wal{position:relative}
.tk{position:relative;border-radius:16px;color:#fff;padding:12px 16px;height:150px;margin-top:-104px;box-shadow:0 -4px 12px rgba(0,0,0,.3);cursor:pointer;transition:margin-top .45s cubic-bezier(.2,.85,.25,1),transform .45s cubic-bezier(.2,.85,.25,1),box-shadow .45s ease;will-change:transform}
.tk:first-child{margin-top:0}
/* Wallet-style: the opened ticket shows in full where it is; the ones after it slide down below it */
.tk.open + .tk{margin-top:14px}
.tk.open{transform:translateY(-8px) scale(1.015);box-shadow:0 -4px 12px rgba(0,0,0,.3),0 16px 30px rgba(0,0,0,.45)}
.tk .r{display:flex;justify-content:space-between;font-size:11px;letter-spacing:1px;text-transform:uppercase;opacity:.85}
.tk h4{margin:4px 0 0;font-size:19px}.tk .when{font-size:13px;opacity:.9;margin-top:2px}
.tk .qr{position:absolute;right:14px;bottom:12px;background:#fff;border-radius:8px;padding:5px;line-height:0}
.tk .ad{position:absolute;left:16px;bottom:12px;font-size:12px;font-weight:700;background:rgba(0,0,0,.25);border-radius:8px;padding:3px 8px}
.tnote{font-size:12px;color:#aaa;margin:14px 6px}

/* dock (variant 2 style) */
#dock{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(var(--bot) + 14px);z-index:1000;display:flex;background:rgba(20,20,22,.92);border-radius:28px;padding:5px;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 8px 24px rgba(0,0,0,.25)}
#dock button{color:#aaa;padding:7px 14px;border-radius:22px;font-size:17px;display:flex;flex-direction:column;align-items:center;line-height:1}
#dock button span{font-size:10.5px;font-weight:700;margin-top:3px}
#dock button.on{background:#fff;color:#111}

/* full-page push (place / highlight) */
.push{position:absolute;inset:0;z-index:1100;background:#fff;overflow-y:auto;transform:translateX(100%);transition:transform .28s ease;-webkit-overflow-scrolling:touch}
.push.on{transform:none}
.pushbar{position:sticky;top:0;z-index:3;padding:calc(var(--top) + 8px) 14px 8px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.back{color:var(--blue);font-weight:600;font-size:16px}
.pl-hero{height:240px;background:#2a3a40 center/cover;position:relative;display:flex;align-items:flex-end}
.pl-hero>.ic{position:absolute;inset:0;display:grid;place-items:center;font-size:76px}
.pl-hero .ov{position:relative;width:100%;padding:44px 18px 14px;background:linear-gradient(transparent,rgba(0,0,0,.72));color:#fff}
.pl-hero h2{font-family:var(--serif);font-size:29px;margin:6px 0 2px;line-height:1.05}
.chip{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;padding:2px 8px;border-radius:20px;background:#eef1f0;color:var(--ink2);white-space:nowrap}
.chip.booked{background:#16323f;color:#fff}.chip.optional{background:#fff;color:var(--ink2);border:1px dashed #a9b6bb}.chip.meal{background:#fbeadf;color:#8a4a23}
.chip.glass{background:rgba(255,255,255,.22);color:#fff}
.pl-facts{display:flex;gap:8px;overflow-x:auto;padding:12px 16px 4px;scrollbar-width:none}
.pl-facts .f{flex:none;background:#f2f4f3;border-radius:12px;padding:7px 10px;font-size:11.5px;color:var(--ink2)}
.pl-facts .f b{display:block;font-size:14px;color:var(--ink)}
.pl-tip{margin:8px 16px 0;font-size:13.5px;background:#f3efe4;border-radius:12px;padding:9px 11px}
.pl-tix{margin:8px 16px 0;font-size:13.5px;background:#16323f;color:#fff;border-radius:12px;padding:9px 11px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.pl-tix button{background:#fff;color:#16323f;border-radius:8px;padding:5px 10px;font-weight:700;font-size:12.5px}
.pl-qr{text-align:center;margin:10px 0;line-height:0}
.pl-h{display:flex;justify-content:space-between;align-items:baseline;margin:18px 16px 4px}
.pl-h h3{margin:0;font-size:18px}
.small{font-size:12px;color:var(--ink2)}
.pl-prog{height:5px;border-radius:3px;background:#e5e9e8;margin:4px 16px 6px;overflow:hidden}.pl-prog i{display:block;height:100%;background:var(--ok)}
.hl{display:flex;gap:12px;padding:10px 16px;border-top:1px solid var(--line);align-items:center;cursor:pointer}
.hl .th{width:56px;height:56px;border-radius:12px}
.hl .bd{flex:1;min-width:0}.hl .bd b{display:block;font-size:15px}.hl .bd span{font-size:12.5px;color:var(--ink2)}
.wh{display:inline-block;font-size:10.5px;font-weight:800;color:var(--teal);background:#e2f0ec;border-radius:6px;padding:0 5px;margin-right:4px}
.hl .ck{flex:none;width:32px;height:32px;border-radius:50%;border:1.8px solid #bfc9cc;background:#fff;color:#fff;font-size:15px}
.hl.on .ck{background:var(--ok);border-color:var(--ok)}
.hl.big{flex-direction:column;align-items:stretch;gap:8px}
.hl.big .im{height:200px;border-radius:14px;background:#222 center/cover;display:grid;place-items:center;font-size:60px}
.hl.big .row{display:flex;gap:10px;align-items:center}
.hl.on.fade{opacity:.5}.hl.on.strike b{text-decoration:line-through}.hl.on.compact{padding-top:6px;padding-bottom:6px}
.wiki{margin:4px 16px 0;font-size:13.5px;line-height:1.5;color:#2f3d43;-webkit-user-select:text;user-select:text}
.wiki a{color:var(--teal)}
.pl-acts{display:flex;gap:8px;padding:16px 16px calc(var(--bot) + 30px);flex-wrap:wrap}
.btn{border-radius:12px;padding:11px 14px;font-weight:700;font-size:14.5px;flex:1}
.btn.pri{background:var(--ink);color:#fff}.btn.alt{background:#e9eeec}.btn.ok{background:#e3f2ea;color:var(--ok)}
.dt-img{background:#1b1f21;display:grid;place-items:center;min-height:260px;max-height:420px;overflow:hidden}
.dt-img img{width:100%;max-height:420px;object-fit:contain;display:block}
.dt-img .ic{font-size:84px}
.dt-b{padding:14px 18px calc(var(--bot) + 30px)}
.dt-b h2{font-family:var(--serif);font-size:26px;line-height:1.1;margin:6px 0 8px}
.dt-note{background:#f3efe4;border-left:3px solid #b5543c;padding:8px 10px;border-radius:0 10px 10px 0;margin:0 0 10px;font-size:14px}
.dt-nav{display:flex;justify-content:space-between;gap:8px;margin-top:14px}
.dt-nav button{background:#eef1f0;border-radius:10px;padding:9px 11px;font-size:12.5px;max-width:48%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* settings sheet */
.sheet{position:absolute;inset:0;z-index:1200;background:rgba(0,0,0,.35);display:none;align-items:flex-end}
.sheet.on{display:flex}
.sp{background:#f2f2f7;width:100%;border-radius:26px 26px 0 0;padding:16px 16px calc(var(--bot) + 24px);max-height:90%;overflow-y:auto}
.sp h3{margin:0 0 10px;font-size:20px;display:flex;justify-content:space-between;align-items:center}
.sp h3 button{color:var(--blue);font-weight:700;font-size:16px}
.gh{font-size:12px;color:#6d6d72;text-transform:uppercase;margin:0 6px}
.grp{background:#fff;border-radius:12px;margin:6px 0 16px;overflow:hidden}
.opt{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;padding:12px;border-top:.5px solid #ddd;font-size:15px;background:#fff;text-align:left}
.opt:first-child{border-top:0}
.opt.on:after{content:"✓";color:var(--blue);font-weight:800}
.opt select,.opt input[type=range]{max-width:58%}
.opt .small{text-align:right}
.danger{color:var(--warn)}

/* toasts */
#toasts{position:absolute;left:10px;right:10px;top:calc(var(--top) + 8px);z-index:1300;pointer-events:none}
.toast{display:flex;gap:10px;align-items:center;padding:10px 12px;margin-bottom:6px;border-radius:18px;background:rgba(250,250,250,.96);box-shadow:0 10px 30px rgba(0,0,0,.22);font-size:13.5px;animation:tin .3s ease-out}
.toast .ap{width:30px;height:30px;flex:none;border-radius:8px;background:var(--ink);color:#fff;display:grid;place-items:center;font-family:var(--serif);font-weight:700}
.toast.out{transition:.4s;opacity:0;transform:translateY(-16px)}
@keyframes tin{from{opacity:0;transform:translateY(-24px)}}

/* map: markers, pulsing "go here next" ring, buttons, full-screen mode */
.mk{cursor:pointer}
.mknext{z-index:5}
.ppin.next::before,.ipin.next::before,.pin.next::before,.ppin.next::after,.ipin.next::after,.pin.next::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:3px solid var(--c);animation:pulse 1.8s ease-out infinite;pointer-events:none}
.ppin.next::after,.ipin.next::after,.pin.next::after{animation-delay:.9s}
.pin.next::before,.pin.next::after{border-radius:inherit}
.ppin.next,.ipin.next{box-shadow:0 0 0 4px #fff,0 0 0 7px var(--c),0 4px 12px rgba(0,0,0,.35)}
@keyframes pulse{0%{transform:scale(1);opacity:.9}100%{transform:scale(1.9);opacity:0}}
/* map buttons: 44-pt tap area, smaller dark-glass face */
.mapbtn{position:absolute;z-index:600;background:none;color:#fff;font-weight:700}
.mapbtn::before{content:"";position:absolute;inset:5px;border-radius:11px;background:rgba(22,50,63,.28);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background .15s}
.mapbtn:active::before{background:rgba(22,50,63,.5)}
.mapbtn svg{position:relative;width:18px;height:18px;fill:none;stroke:#fff;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 1px rgba(0,0,0,.35))}
.mapmax,.mapback{top:12px;right:12px;width:44px;height:44px;display:grid;place-items:center}
.maprecenter{top:64px;right:12px;width:44px;height:44px;display:grid;place-items:center}
.mapback{display:none}
.mapfull #hd,.mapfull #dock,.mapfull .mapcard,.mapfull .mapmax{display:none!important}
.mapfull .mapback{display:grid;top:calc(var(--top) + 8px)}
.mapfull .maprecenter{top:calc(var(--top) + 60px)}
.maplibregl-ctrl-bottom-right{bottom:calc(var(--bot) + 76px)}
.mapfull .maplibregl-ctrl-bottom-right{bottom:var(--bot)}
.maplibregl-ctrl-attrib{font-size:9px}

/* swipe-left actions on stop cards */
.sw{position:relative;margin-bottom:10px;border-radius:22px}
.sw .cd{margin-bottom:0;transition:transform .28s cubic-bezier(.2,.85,.25,1);touch-action:pan-y;z-index:1}
.sw.dragging .cd{transition:none}
.sw .under{position:absolute;inset:1px;display:flex;justify-content:flex-end;border-radius:22px;overflow:hidden;background:#dfe5e3}
.sa{width:84px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;font-size:21px;font-weight:800}
.sa span{font-size:12px;font-weight:700;margin-top:3px}
.sa.done{background:var(--ok)}.sa.skip{background:#d4892c}.sa.undo{background:var(--blue)}
.sw:has(.past.compact){margin-bottom:6px}
.sw.lifted{background:none!important}
.sw.lifted .cd{box-shadow:0 16px 34px rgba(0,0,0,.28)}
.sw .under{visibility:hidden;transition:visibility 0s .3s}
.sw.open .under,.sw.dragging .under{visibility:visible;transition:none}

/* Settings: two switches per row (done | skipped) */
.lookh{display:flex;justify-content:space-between;align-items:baseline}
.lookcols{display:flex;gap:14px;flex:none}
.lookh .lookcols span{width:48px;display:flex;justify-content:center;white-space:nowrap;text-transform:none;font-size:12px}
.opt.look{cursor:default}
.tg{width:48px;height:29px;border-radius:15px;background:#e5e5ea;position:relative;transition:background .2s;flex:none}
.tg::after{content:"";position:absolute;top:2px;left:2px;width:25px;height:25px;border-radius:50%;background:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2);transition:left .2s}
.tg.on{background:#34c759}.tg.on::after{left:21px}

/* ======================= dark mode ======================= */
html.dark{color-scheme:dark;--ink:#e8eef0;--ink2:#a7b6bc;--muted:#7d8b91;--line:#2c3236;--bg:#121517;--card:#1e2326;--teal:#5fb3b0;--blue:#4c9dff}
html.dark .days button{background:#22282b;box-shadow:none}
html.dark .days button.on{background:#e8eef0;color:#121517}
html.dark .island{background:#000;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
html.dark .island.warn{background:var(--warn)}
html.dark .reopt{background:#3a3220}
html.dark .cd{box-shadow:none}
html.dark .cd.optc .n,html.dark .past.issk .n{background:var(--card)}
html.dark .stack .th{border-color:var(--card)}
html.dark .th{background:#2a3034}
html.dark .th .ok{border-color:var(--card)}
html.dark .stack .th.more{background:#3a4449;color:#fff}
html.dark .phb .phh{background-color:#333}
html.dark .dayring circle:first-child,html.dark .hring circle:first-child{stroke:#2f373b}
html.dark #map{background:#1b1e21}
html.dark .mapcard{background:#1e2326;box-shadow:0 8px 24px rgba(0,0,0,.5)}
html.dark .ipin,html.dark .pin.skip{background:#1e2326}
html.dark .ppin.next,html.dark .ipin.next{box-shadow:0 0 0 4px #1e2326,0 0 0 7px var(--c),0 4px 12px rgba(0,0,0,.5)}
html.dark .mapbtn::before{background:rgba(70,80,86,.45);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
html.dark .mapbtn:active::before{background:rgba(0,0,0,.65)}
html.dark .msg.a{background:#1e2326;box-shadow:none}
html.dark .chips button,html.dark .askf input{background:#1e2326;border-color:#343b3f;color:var(--ink)}
html.dark #dock{background:rgba(44,48,52,.92)}
html.dark .push{background:var(--bg)}
html.dark .pushbar{background:rgba(18,21,23,.9)}
html.dark .chip{background:#2a3034}
html.dark .chip.optional{background:transparent;border-color:#4a555a}
html.dark .chip.meal{background:#3b2a20;color:#e8b48f}
html.dark .chip.booked{background:#2b5560}
html.dark .chip.glass{background:rgba(255,255,255,.22);color:#fff}
html.dark .pl-facts .f{background:#22282b}
html.dark .pl-tip,html.dark .dt-note{background:#2e2a22}
html.dark .pl-tix{background:#22414b}
html.dark .pl-prog{background:#2a3034}
html.dark .wh{background:#1f3833;color:#7fcfc4}
html.dark .hl .ck{background:transparent;border-color:#4a555a}
html.dark .hl.on .ck{background:var(--ok);border-color:var(--ok)}
html.dark .wiki{color:#c4cfd3}
html.dark .btn.pri{background:#e8eef0;color:#121517}
html.dark .btn.alt,html.dark .dt-nav button,html.dark .cd .acts button{background:#2a3034}
html.dark .btn.ok{background:#1f3a2a}
html.dark .sp{background:#000}
html.dark .grp,html.dark .opt{background:#1c1c1e}
html.dark .opt{border-top-color:#38383a}
html.dark .gh{color:#8d8d93}
html.dark .tg{background:#39393d}
html.dark .tg.on{background:#30d158}
html.dark .toast{background:rgba(44,48,52,.96);color:var(--ink)}
html.dark .toast .ap{background:#2b5560}
html.dark .sw .under{background:#2a3034}
html.dark .maplibregl-ctrl-attrib{background:rgba(0,0,0,.5);color:#aaa}
html.dark .maplibregl-ctrl-attrib a{color:#ccc}

/* compact header: day menu and ••• menu */
#hd{padding-bottom:6px}
.morebtn{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--card);box-shadow:0 1px 4px rgba(0,0,0,.08);flex:none}
.morebtn svg{width:22px;height:22px;fill:var(--blue)}
.pop{position:absolute;z-index:1150;top:calc(var(--top) + 62px);min-width:250px;background:rgba(250,250,250,.98);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:14px;box-shadow:0 14px 44px rgba(0,0,0,.28);overflow:hidden;animation:popin .16s ease-out}
.pop.left{left:16px;transform-origin:top left}.pop.right{right:14px;transform-origin:top right}
@keyframes popin{from{opacity:0;transform:scale(.95)}}
.pop .mh{font-size:11.5px;color:#8e8e93;padding:9px 14px 3px;text-transform:uppercase}
.pop .mi{display:flex;gap:11px;align-items:center;width:100%;padding:11px 14px;border-top:.5px solid #ddd;font-size:16px;text-align:left}
.pop .mi:first-of-type{border-top:0}
.pop .mi .dot{width:10px;height:10px;border-radius:50%;flex:none}
.pop .mi .grow{flex:1;min-width:0}
.pop .mi small{display:block;color:#8e8e93;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pop .mi.on::after{content:"✓";color:var(--blue);font-weight:800}
.pop .mi svg{width:21px;height:21px;fill:none;stroke:var(--ink);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.pop .sep{height:8px;background:rgba(0,0,0,.06)}
/* compact cards */
.cd.small{padding:8px 12px;align-items:center;gap:10px}
.cd.small .nm{font-size:15px}
.cd.small .cthumb{width:46px;height:46px;border-radius:11px;background-size:cover;background-position:center;flex:none}
.cd.small .hls{display:flex;gap:4px;margin-top:5px;overflow:hidden}
.cd.small .hls .th{width:24px;height:24px;border-radius:6px}
.cd.small .hls .th .ic{font-size:12px}
.cd.small .hls .th .ok{width:10px;height:10px;font-size:6px;border-width:1px}
.cd.small .hring{align-self:center}
.sw:has(.cd.small){margin-bottom:7px}
html.dark .pop{background:rgba(44,48,52,.97)}
html.dark .pop .mi{border-top-color:#3a3f43}
html.dark .pop .mi svg{stroke:var(--ink)}
html.dark .pop .sep{background:rgba(0,0,0,.3)}
html.dark .morebtn{background:#22282b;box-shadow:none}
[hidden]{display:none!important}

/* large card: all photo (A1), optional frosted title panel (A2) */
.cd.photo{display:block;position:relative;padding:0;height:330px;border-radius:22px;overflow:hidden;background-color:#2a3a40;background-size:cover;background-position:center;color:#fff;box-shadow:0 4px 16px rgba(0,0,0,.14)}
.cd.photo.nohl{height:240px}
.cd.photo .pic{position:absolute;inset:0;display:grid;place-items:center;font-size:72px;padding-bottom:60px}
.cd.photo .shade{position:absolute;inset:0;background:linear-gradient(transparent 25%,rgba(0,0,0,.8));pointer-events:none}
.cd.photo>.n{position:absolute;left:12px;top:12px;margin:0;box-shadow:0 0 0 2px #fff}
.cd.photo .pring{position:absolute;right:10px;top:10px}
.cd.photo .hdl{color:#fff;font-size:26px;text-shadow:0 1px 4px rgba(0,0,0,.5)}
.hring.lt b{color:#fff}
.cd.photo .cap{position:absolute;left:14px;right:14px;bottom:86px}
.cd.photo.nohl .cap{bottom:14px}
.cd.photo .ctext{min-width:0;flex:1}
.cd.photo .nm{font-size:22px;font-weight:800;line-height:1.15;color:#fff}
.cd.photo .mt{font-size:13px;color:rgba(255,255,255,.9);margin-top:2px}
.cd.photo .mt .warn{color:#ffb3a3}
.cd.photo .ptiles{position:absolute;left:10px;right:0;bottom:10px;display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding-right:10px}
.cd.photo .ptiles::-webkit-scrollbar{display:none}
.cd.photo .ft{flex:none;padding:3px;border-radius:12px;background:rgba(255,255,255,.28);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.cd.photo .ft .th{width:56px;height:56px;border-radius:9px}
.cd.photo .ft .th .ic{font-size:24px}
.cd.photo.past{filter:saturate(.5)}
.cd.photo.frost .shade{display:none}
.cd.photo.frost .cap{left:10px;right:10px;bottom:84px;display:flex;gap:10px;align-items:center;padding:9px 10px;border-radius:16px;background:rgba(255,255,255,.74);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.cd.photo.frost.nohl .cap{bottom:10px}
.cd.photo.frost .cap .n{position:static;box-shadow:none}
.cd.photo.frost .nm{font-size:17px;color:var(--ink)}
.cd.photo.frost .mt{font-size:12px;color:var(--ink2)}
.cd.photo.frost .mt .warn{color:var(--warn)}
.cd.photo.frost .hdl{color:var(--ink2);text-shadow:none}
html.dark .cd.photo.frost .cap{background:rgba(30,35,38,.72)}

/* compact rows: photo inside the progress ring, chevron; minimal style; booked tint */
.cd.crow{align-items:center;gap:12px;padding:8px 10px 8px 12px;border-radius:16px}
.cd.crow .rp{position:relative;width:56px;height:56px;flex:none}
.cd.crow .rp svg{position:absolute;inset:0}
.rptrack{stroke:#e1e6e4}
.cd.crow .rpimg{position:absolute;inset:6px;border-radius:50%;background:#e7ebe9 center/cover;display:grid;place-items:center;font-size:22px}
.cd.crow .rp .n{position:absolute;left:-4px;top:-4px;width:22px;height:22px;font-size:11px;margin:0;box-shadow:0 0 0 2px var(--card)}
.cd.crow.fixedc .rp .n{border-radius:7px}
.cd.crow .bd{min-width:0}
.cd.crow .nm{font-size:15.5px}
.cd.crow .mt{font-size:12px}
.cd.crow .chev{color:#c4c4c8;font-size:26px;line-height:1;flex:none;font-weight:300}
.cd.crow .hdl{align-self:center}
.cd.crow .hls{display:flex;gap:4px;margin-top:5px;overflow:hidden}
.cd.crow .hls .th{width:24px;height:24px;border-radius:6px}
.cd.crow .hls .th .ic{font-size:12px}
.cd.crow .hls .th .ok{width:10px;height:10px;font-size:6px;border-width:1px}
.cd.crow.past .rpimg{filter:grayscale(.6)}
.sw:has(.cd.crow){margin-bottom:8px}
.cd.crow.booked{background:color-mix(in srgb,var(--c) 14%,var(--card))}
.cd.crow.booked .rp .n{box-shadow:0 0 0 2px color-mix(in srgb,var(--c) 14%,var(--card))}
.cd.crow.minimal{background:var(--bg);box-shadow:none;border-radius:0;padding:9px 4px;border-top:.5px solid rgba(0,0,0,.1)}
.cd.crow.minimal .rp .n{box-shadow:0 0 0 2px var(--bg)}
.cd.crow.minimal .rp::before{content:"";position:absolute;left:27px;top:-16px;bottom:-16px;width:2px;background:var(--c);opacity:.35;z-index:-1}
.cd.crow.minimal.booked{background:color-mix(in srgb,var(--c) 14%,var(--bg));border-radius:14px;border-top-color:transparent}
.cd.crow.minimal.booked .rp .n{box-shadow:0 0 0 2px color-mix(in srgb,var(--c) 14%,var(--bg))}
.sw:has(.cd.crow.minimal){margin-bottom:0}
.sw:has(.cd.crow.minimal) .under{border-radius:0}
html.dark .rptrack{stroke:#2f373b}
html.dark .cd.crow.minimal{border-top-color:rgba(255,255,255,.08)}
html.dark .cd.crow .chev{color:#5a6266}
.segc{display:flex;background:#e3e3e8;border-radius:9px;padding:2px;flex:none}
.segc button{padding:6px 14px;border-radius:7px;font-size:14px;font-weight:600;color:#3c3c43}
.segc button.on{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.15);color:#000}
html.dark .segc{background:#2c2c2e}
html.dark .segc button{color:#c7c7cc}
html.dark .segc button.on{background:#636366;color:#fff}
.sw:not(.sw + .sw) .cd.crow.minimal .rp::before{top:50%}
.sw:not(:has(+ .sw)) .cd.crow.minimal .rp::before{bottom:50%}

/* ••• menu: layout as picture rows with radio buttons, highlights as a switch */
.pop{min-width:300px}
.pop .mi.lay{gap:14px;padding:12px 14px}
.pop .mi.lay.sel{background:#eef4ff}
.pop .mi .wire{width:40px;flex:none;display:grid;gap:3px}
.pop .mi .wire i{display:block;border-radius:5px;background:#cfd6d8}
.pop .mi .wire.large i{height:21px}
.pop .mi .wire.compact i{height:7px;border-radius:3px}
.pop .radio{width:24px;height:24px;border-radius:50%;border:2px solid #c7c7cc;flex:none;position:relative}
.pop .radio.on{border-color:var(--blue)}
.pop .radio.on::after{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--blue)}
.pop .mi .tg{flex:none}
html.dark .pop .mi.lay.sel{background:rgba(76,157,255,.16)}
html.dark .pop .mi .wire i{background:#4a5257}
html.dark .pop .radio{border-color:#5a6266}

/* large card highlights: overlapping circles on the photo, no band behind them */
.cd.photo{height:300px}
.cd.photo .cap{bottom:72px}
.cd.photo.frost .cap{bottom:70px}
.cd.photo .pcirc{position:absolute;left:14px;right:14px;bottom:12px;display:flex;align-items:center;justify-content:space-between}
.cd.photo .pcirc .stk{display:flex;padding-left:10px}
.cd.photo .pcirc .th{width:48px;height:48px;border-radius:50%;margin-left:-10px;box-shadow:0 0 0 2.5px rgba(255,255,255,.92),0 2px 6px rgba(0,0,0,.3)}
.cd.photo .pcirc .th .ic{font-size:20px}
.cd.photo .pcirc .th .ok{right:3px;bottom:3px}
.cd.photo .pcirc .more{background:#16323f;color:#fff;font-weight:800;font-size:14px}
.cd.photo .pcirc .hlink{color:#fff;font-weight:700;font-size:15px;text-shadow:0 1px 5px rgba(0,0,0,.6);white-space:nowrap}

/* large card: 16:9, name bottom-left with the highlight circles beside it */
.cd.photo,.cd.photo.nohl{height:auto;aspect-ratio:16/9}
.cd.photo .cap{left:14px;right:150px;bottom:12px}
.cd.photo.nohl .cap{right:14px}
.cd.photo .nm{font-size:19px}
.cd.photo .mt{font-size:12.5px}
.cd.photo .pcirc{left:auto;right:12px;bottom:12px}
.cd.photo .pcirc .th{width:40px;height:40px;margin-left:-9px}
.cd.photo .pcirc .th .ic{font-size:17px}
.cd.photo .pcirc .th .ok{width:13px;height:13px;font-size:8px;right:2px;bottom:2px}
.cd.photo .pcirc .more{font-size:13px}
.cd.photo .pic{font-size:56px;padding-bottom:30px}
.cd.photo.frost .cap{left:10px;right:146px;bottom:10px;padding:7px 10px 7px 8px;gap:8px}
.cd.photo.frost.nohl .cap{right:10px}
.cd.photo.frost .cap .n{width:26px;height:26px;font-size:12px}
.cd.photo.frost .nm{font-size:15.5px}
.cd.photo.frost .mt{font-size:11.5px}
.cd.photo .pcirc .th{width:36px;height:36px;margin-left:-9px}
.cd.photo .cap{right:132px}
.cd.photo .nm{font-size:18px}
.cd.photo.frost .cap{right:128px}
