/* Red is used only for negative states (errors, warnings, cancel, remove). Actions are orange with dark text.
   Paper look: near-white paper, ink text, hairlines, tonal cards, one orange action colour. Calm motion only.
   Layout: sticky top bar, one working view, bottom tab bar on phones. Team week grid on wide screens, day agenda on narrow. */
:root{
  --bg:#f4f6fa;--surface:#ffffff;--surface2:#edf1f7;--line:#dfe5ee;--ink:#1e2733;--muted:#566172;
  --accent:#f0901e;--accent-ink:#20251f;--accent-soft:#f6ecd6;
  --private:#314b3c;--group:#5b4bb0;--custom:#8a5a00;--transfer:#22618c;
  --ok:#1c7439;--warn:#8f6000;--danger:#b3261e;--off:#1f6f8b;--sick:#a8325f;--holiday:#8a6700;
  --font:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans","Noto Sans Georgian","Helvetica Neue",Arial,sans-serif;
  /* Type scale (3.4): eight sizes only, based on Material 3 and Apple guidance. Body 16px; nothing below 11px. */
  --t-micro:11px;--t-cap:12px;--t-sm:14px;--t-body:16px;--t-h3:18px;--t-h2:22px;--t-h1:28px;--t-display:34px;
  --r:16px;--r-s:8px;--r-m:12px;--r-l:16px;--r-xl:28px;--r-pill:999px;--gut:max(16px,env(safe-area-inset-left,0px));--gutr:max(16px,env(safe-area-inset-right,0px));
  /* Motion (3.60): one short ease-out for sheets, tab changes and week changes. Nothing bouncy, nothing that loops (loading spinners excepted). */
  --ease:cubic-bezier(.2,0,0,1);--dur:.18s;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#11161d;--surface:#192029;--surface2:#222b36;--line:#323d4b;--ink:#e8edf4;--muted:#a2adbb;
  --accent:#f5a742;--accent-ink:#241a08;--accent-soft:#33291a;
  --private:#8fc7a4;--group:#ab96f2;--custom:#e2b340;--transfer:#8cc4ea;
  --ok:#5fce85;--warn:#e2b340;--danger:#ff8078;--off:#a8a498;--sick:#f08ab0;--holiday:#e2c355;color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#11161d;--surface:#192029;--surface2:#222b36;--line:#323d4b;--ink:#e8edf4;--muted:#a2adbb;
  --accent:#f5a742;--accent-ink:#241a08;--accent-soft:#33291a;
  --private:#8fc7a4;--group:#ab96f2;--custom:#e2b340;--transfer:#8cc4ea;
  --ok:#5fce85;--warn:#e2b340;--danger:#ff8078;--off:#a8a498;--sick:#f08ab0;--holiday:#e2c355;color-scheme:dark}
*{box-sizing:border-box}
body{background:var(--bg);color:var(--ink);font-family:var(--font);font-size:var(--t-body);line-height:1.5;margin:0;-webkit-text-size-adjust:100%;text-rendering:optimizeLegibility}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
h1,h2,h3{margin:0;text-wrap:balance}
h2{font-size:var(--t-h2);line-height:1.25;letter-spacing:-.01em;font-weight:700}h3{font-size:var(--t-h3);line-height:1.3;font-weight:600}
.muted{color:var(--muted)}.small{font-size:var(--t-sm)}.num{font-variant-numeric:tabular-nums}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:10;background:var(--surface)}
.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:9;background:var(--surface);border-bottom:1px solid var(--line);
  display:flex;align-items:center;gap:12px;padding-block:8px;padding-left:var(--gut);padding-right:var(--gutr)}
.brand{font-weight:700;letter-spacing:.01em;display:flex;align-items:center;gap:8px;white-space:nowrap}
.brand i{width:12px;height:12px;border-radius:50%;background:var(--accent);display:inline-block}
.nav{display:flex;gap:2px;margin-left:8px;flex:1;min-width:0}
.nav button,.tabs button{background:none;border:0;padding:8px 12px;border-radius:var(--r-s);color:var(--muted);font-weight:600}
.nav button[aria-current="page"],.tabs button[aria-current="page"]{color:var(--ink);background:var(--surface2);box-shadow:inset 0 -2px 0 var(--accent)}
.spacer{flex:1}
.iconbtn{background:none;border:1px solid var(--line);border-radius:var(--r-pill);min-width:38px;height:38px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;gap:6px;position:relative}
.badge{background:var(--ink);color:var(--bg);border-radius:var(--r-pill);font-size:var(--t-micro);font-weight:700;min-width:18px;height:18px;padding:0 5px;display:inline-flex;align-items:center;justify-content:center}
.avatar{width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:var(--t-cap);font-weight:700;color:#fff;flex:none}
main{padding-block:16px 96px;padding-left:var(--gut);padding-right:var(--gutr);max-width:1400px;margin:0 auto;display:flex;flex-direction:column;gap:16px}
img.avatar{object-fit:cover}
.avatar.big{width:56px;height:56px;font-size:var(--t-h2)}
.f .four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
a{color:var(--ink)}
.bars{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:4px;align-items:end;height:150px}
.barcol{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;height:100%;min-width:0;overflow:hidden}
.barcol i{display:block;width:70%;min-height:2px;background:var(--private);border-radius:6px 6px 0 0}
.barcol i.peak{background:var(--accent)}.barcol i.low{background:var(--ok)}
.iconbtn[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent)}
a.btn.primary{color:var(--accent-ink)}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.tiles .card{height:100%}
.cbtns{display:inline-flex;flex-wrap:wrap;gap:6px}
.scores{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:4px}
.scores button{border:1px solid var(--line);background:var(--surface);border-radius:var(--r-m);min-height:40px;font-weight:700;padding:0;font-variant-numeric:tabular-nums}
.scores button.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.meter{flex:1;min-width:60px;height:8px;border-radius:var(--r-pill);background:var(--surface2);overflow:hidden;display:block}
.card>.meter{flex:none;width:100%}
.meter i{display:block;height:100%;background:var(--accent);border-radius:var(--r-pill)}
.pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);padding:12px;margin:0;font:inherit;font-size:var(--t-body);max-height:46vh;overflow:auto}
button.barcol{background:none;border:0;padding:0;color:inherit}
button.barcol.sel i{background:var(--ink)}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
.tabs{display:none}
.bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.bar h2{margin-right:4px}
.seg{display:inline-flex;flex-wrap:wrap;border:1px solid var(--line);border-radius:var(--r-pill);overflow:hidden;background:var(--surface)}
.seg button{background:none;border:0;padding:8px 14px;color:var(--muted);font-weight:600;min-height:40px;border-radius:var(--r-pill)}
.seg button[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink)}
.btn{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-pill);padding:8px 16px;font-weight:600;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;color:var(--ink);transition:transform .15s,background .15s}
.btn:active,.iconbtn:active,.chip:active,button.card:active{transform:scale(.97)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.btn.danger{color:var(--danger);border-color:var(--danger)}

.btn:disabled{opacity:.5;cursor:default}
.banner{background:var(--accent-soft);border:1px solid var(--line);border-radius:var(--r-l);padding:10px 14px;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}
.banner select{padding:5px 8px;border-radius:var(--r-s);border:1px solid var(--line);background:var(--surface)}
/* week grid */
.gridwrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r-l);background:var(--surface)}
.wgrid{display:grid;grid-template-columns:150px repeat(7,minmax(120px,1fr));min-width:990px}
.wgrid>div{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:6px;min-width:0}
.wgrid>div:nth-child(8n){border-right:0}
.wgrid .hd{background:var(--surface2);font-weight:700;font-size:var(--t-sm);position:sticky;top:0}
.wgrid .hd.today{box-shadow:inset 0 -3px 0 var(--accent)}
.wgrid .hd .hol.ev{color:var(--group)}
.wgrid .hd .hol{display:block;color:var(--holiday);font-weight:600;font-size:var(--t-cap)}
.wgrid .who{display:flex;gap:8px;align-items:center;font-weight:600;background:var(--surface)}
.wgrid .who span.r{display:block;font-weight:500;font-size:var(--t-cap);color:var(--muted)}
.cell{display:flex;flex-direction:column;gap:4px;min-height:54px;position:relative}
.cell.today{background:color-mix(in srgb,var(--accent) 6%,transparent)}
.cell.isoff{background:repeating-linear-gradient(135deg,transparent 0 7px,color-mix(in srgb,var(--off) 14%,transparent) 7px 9px)}
.cell .add{position:absolute;right:3px;bottom:3px;width:22px;height:22px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--muted);line-height:1;padding:0;opacity:0}
.cell:hover .add,.cell .add:focus-visible{opacity:1}
.chip{display:block;width:100%;text-align:left;border:1px solid color-mix(in srgb,var(--k) 35%,var(--line));background:color-mix(in srgb,var(--k) 11%,var(--surface));border-radius:var(--r-s);padding:4px 6px;font-size:var(--t-sm);line-height:1.25;overflow-wrap:anywhere}

.chip .w{color:var(--danger);font-weight:700}
.t-transfer{--c:var(--transfer)}

.tag{display:inline-flex;align-items:center;gap:4px;border-radius:var(--r-pill);padding:2px 8px;font-size:var(--t-cap);font-weight:700;border:1px solid color-mix(in srgb,var(--c) 40%,var(--line));color:var(--c);background:color-mix(in srgb,var(--c) 10%,var(--surface));white-space:nowrap}
.t-off{--c:var(--off)}.t-sick{--c:var(--sick)}.t-hol{--c:var(--holiday)}.t-ok{--c:var(--ok)}.t-warn{--c:var(--warn)}.t-danger{--c:var(--danger)}.t-private{--c:var(--private)}.t-group{--c:var(--group)}.t-custom{--c:var(--custom)}.t-muted{--c:var(--muted)}
/* agenda (phone) */
.strip{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.strip button{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-s);padding:6px 0;display:flex;flex-direction:column;align-items:center;gap:1px;font-size:var(--t-cap);color:var(--muted);min-width:0}
.strip button b{font-size:var(--t-body);color:var(--ink)}
.strip button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.strip button[aria-pressed="true"] b{color:var(--accent-ink)}
.strip .dot{width:6px;height:6px;border-radius:50%;background:var(--accent)}
.strip button[aria-pressed="true"] .dot{background:var(--accent-ink)}
.strip .dot.none{background:transparent}
.list{display:flex;flex-direction:column;gap:10px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);padding:12px 14px;display:flex;flex-direction:column;gap:8px;min-width:0}
button.card{text-align:left;width:100%}
.card .row{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.card .ttl{font-weight:700;overflow-wrap:anywhere}
.pair{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.pair .p{display:inline-flex;align-items:center;gap:5px;font-size:var(--t-sm);font-weight:600}
.pair .plus{color:var(--muted)}
.warnline{color:var(--danger);font-size:var(--t-sm);font-weight:600}
.warnline.soft{color:var(--warn)}
/* month */
.mgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--line);border-radius:var(--r-l);overflow:hidden;background:var(--surface)}
.mgrid .hd{background:var(--surface2);font-weight:700;font-size:var(--t-sm);padding:6px;text-align:center}
.mgrid button{background:none;border:0;border-top:1px solid var(--line);border-right:1px solid var(--line);min-height:76px;padding:5px;text-align:left;display:flex;flex-direction:column;gap:3px;font-size:var(--t-cap);min-width:0}
.mgrid button.sun{border-right:0}
.mgrid button.out{opacity:.45}
.mgrid button.today b{background:var(--accent);color:var(--accent-ink);border-radius:var(--r-pill);padding:0 6px}
.mgrid .m{color:var(--ink);font-weight:700}.mgrid .o{color:var(--off)}.mgrid .h{color:var(--holiday);font-weight:600;overflow-wrap:anywhere}
/* generic */
.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;align-items:start}
.stats{display:flex;flex-wrap:wrap;gap:10px}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);padding:10px 14px;min-width:120px}
.stat b{display:block;font-size:var(--t-h2);font-variant-numeric:tabular-nums}
.tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r-l);background:var(--surface)}
table{border-collapse:collapse;width:100%;font-size:var(--t-body)}
th,td{padding:8px 10px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}
th{background:var(--surface2);font-size:var(--t-cap);text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
td.n,th.n{text-align:right;font-variant-numeric:tabular-nums}
tr:last-child td{border-bottom:0}
form.f,.f{display:flex;flex-direction:column;gap:12px}
.f label{display:flex;flex-direction:column;gap:4px;font-size:var(--t-sm);font-weight:600;color:var(--muted);min-width:0}
.f input,.f select,.f textarea,.inp{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-s);padding:8px 10px;color:var(--ink);font-weight:400;font-size:var(--t-body);width:100%;min-width:0}
.f textarea{min-height:64px;resize:vertical}
.f .two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.f .three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
.checks{display:flex;flex-wrap:wrap;gap:6px}
.checks label{flex-direction:row;align-items:center;gap:6px;border:1px solid var(--line);border-radius:var(--r-pill);padding:4px 10px;color:var(--ink);background:var(--surface)}
.checks input{width:auto}

.overlay{position:fixed;inset:0;background:rgba(8,14,20,.55);z-index:20;display:flex;align-items:flex-end;justify-content:center;padding-top:env(safe-area-inset-top,0px)}
.sheet{background:var(--bg);width:min(640px,100%);max-height:92%;overflow:auto;border-radius:16px 16px 0 0;padding:18px 18px calc(18px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:14px}
.sheet .hdr{display:flex;align-items:center;gap:10px}
.sheet .hdr h2{flex:1;min-width:0;overflow-wrap:anywhere}
.actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
#toasts{position:fixed;left:0;right:0;bottom:calc(84px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;align-items:center;gap:6px;z-index:30;pointer-events:none;padding:0 16px}
.toast{background:var(--ink);color:var(--bg);border-radius:var(--r-m);padding:10px 16px;font-weight:600;max-width:100%}
.auth{max-width:400px;margin:8vh auto 0;width:100%}
.nlist{display:flex;flex-direction:column;gap:6px}
.nitem{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-s);padding:8px 12px}
.nitem.unread{border-color:var(--accent)}
.empty{border:1px dashed var(--line);border-radius:var(--r-l);padding:18px;text-align:center;color:var(--muted)}
@media (min-width:761px){.overlay{align-items:center}.sheet{border-radius:var(--r-l)}.only-phone{display:none!important}}
@media (max-width:760px){
  .nav{display:none}.only-wide{display:none!important}
  .tabs{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:9;background:var(--surface);border-top:1px solid var(--line);
    padding:6px max(8px,env(safe-area-inset-left,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-right,0px));justify-content:space-around}
  .tabs button{flex:1;padding:8px 2px;font-size:var(--t-cap);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .f .three{grid-template-columns:1fr 1fr}.f .four{grid-template-columns:1fr 1fr}
  .brow{grid-template-columns:minmax(0,1fr) 56px 34px}.brow .x2{display:none}
  .mgrid button{min-height:58px;font-size:var(--t-micro);padding:3px}
}
@media (prefers-reduced-motion:no-preference){.sheet{animation:up var(--dur) var(--ease)}@keyframes up{from{transform:translateY(12px)}to{transform:none}}}
.tabs button[data-v="clients"]{display:none}

/* lighter interface: icon buttons, text links, guest rows, floating add button */
.ib{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:var(--surface);display:inline-flex;align-items:center;justify-content:center;color:var(--ink);padding:0;flex:none;transition:transform .15s}
.ib:active{transform:scale(.94)}
.lnk{display:inline-flex;gap:4px;align-items:center;font-size:var(--t-sm);color:var(--muted);text-decoration:underline;text-underline-offset:3px;background:none;border:0;padding:4px 0}

.glist{border:1px solid var(--line);border-radius:var(--r-l);background:var(--surface);overflow:hidden}
.grow{padding:10px 12px;display:flex;flex-direction:column;gap:6px;border-top:1px solid var(--line)}
.grow:first-child{border-top:0}
.grow .row{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center}
.gname{background:none;border:0;padding:0;font-weight:700;text-align:left;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:4px;overflow-wrap:anywhere}
.gname:disabled{text-decoration:none;color:var(--ink)}
details.more summary{font-size:var(--t-sm);color:var(--muted);cursor:pointer;width:max-content}
details.more[open]{display:flex;flex-direction:column;gap:6px}
.card{padding:10px 12px;gap:6px}
.sheet{gap:12px}
.banner.slim{padding:6px 12px}
.fab{position:fixed;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(76px + env(safe-area-inset-bottom,0px));z-index:8;width:54px;height:54px;border-radius:50%;font-size:var(--t-h1);padding:0;box-shadow:0 2px 10px rgba(0,0,0,.18)}
.row.nw{flex-wrap:nowrap!important;align-items:center}
.grow-l{flex:1;min-width:0;display:flex;flex-wrap:wrap;gap:2px 8px;align-items:center}
.cbtns{flex-wrap:nowrap;flex:none}
.banner.slim{flex-wrap:nowrap}.banner.slim select{flex:1;min-width:0}.banner.slim label{white-space:nowrap}

/* tour emblems: each tour has its own colour and short code */
.emb{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:18px;padding:0 4px;border-radius:var(--r-s);color:#fff;font-size:var(--t-micro);font-weight:700;letter-spacing:.03em;vertical-align:middle;margin-right:4px;flex:none}
.emb.big{min-width:34px;height:28px;font-size:var(--t-sm);border-radius:var(--r-s);margin-right:0}
.chip b{color:var(--ink)}
.hdr .emb{flex:none}

.jump{position:relative;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--ink);overflow:hidden;flex:none}
.jump input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;padding:0}
.att{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.att button{min-height:40px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--surface);font-weight:700;color:var(--ink)}
.att button.on.ok{background:color-mix(in srgb,var(--ok) 16%,var(--surface));border-color:var(--ok);color:var(--ok)}
.att button.on.no{background:color-mix(in srgb,var(--danger) 12%,var(--surface));border-color:var(--danger);color:var(--danger)}
.sheet>*{flex-shrink:0}

.nextrow{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);gap:10px}
.nextrow .card{height:100%;justify-content:flex-start}
@media (max-width:760px){.nextrow{grid-template-columns:1fr}}
@media (max-width:760px){.nextrow{gap:6px}.nextrow .card{padding:8px 12px;gap:3px}.nextrow .offc{flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px 10px}.bar h2{font-size:var(--t-h3)}}

/* familiar agenda layout on phones: week strip, then every day of the week in one list */
.strip button.tdy b{text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:4px;text-decoration-thickness:2px}
.dayhd{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;padding-top:10px;scroll-margin-top:calc(70px + env(safe-area-inset-top,0px));color:var(--muted)}
.dayhd b{font-weight:600;font-size:var(--t-body)}.dayhd b.tdy{color:var(--ink)}
.nothing{padding:2px 0 4px}
.acard{display:flex;flex-direction:column;gap:5px;width:100%;text-align:left;border:1px solid color-mix(in srgb,var(--k) 30%,var(--line));background:color-mix(in srgb,var(--k) 10%,var(--surface));border-radius:var(--r-m);padding:10px 12px;color:var(--ink);transition:transform .15s}
.acard:active{transform:scale(.98)}
.acard .ttl{font-weight:700;overflow-wrap:anywhere}
.acard .row{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center}
.acard .p{display:inline-flex;align-items:center;gap:6px;font-size:var(--t-body)}
.acard .w{color:var(--danger);font-weight:700}

.avatar.ini{background:var(--surface2);color:var(--ink);border:1px solid var(--line)}
.avatar.xl{width:84px;height:84px;font-size:var(--t-h1)}
button.grow{width:100%;text-align:left;background:none;border:0;border-top:1px solid var(--line);color:var(--ink)}
button.grow:first-child{border-top:0}
.grow .gname{text-decoration:none}

.alist{border:1px solid var(--line);border-radius:var(--r-l);background:var(--surface);overflow:hidden;display:flex;flex-direction:column}
.arow{display:flex;gap:12px;align-items:center;padding:13px 14px;border:0;border-top:1px solid var(--line);background:none;color:var(--ink);text-decoration:none;text-align:left;font-size:var(--t-body);width:100%}
.arow:first-child{border-top:0}
.ccard{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.fields{display:grid;grid-template-columns:auto 1fr;gap:10px 18px;margin:0}
.fields dt{color:var(--muted)}.fields dd{margin:0;overflow-wrap:anywhere}
details.sect{border-top:1px solid var(--line)}
details.sect summary{padding:13px 2px;font-weight:600;cursor:pointer;list-style:none;display:flex;justify-content:space-between}
details.sect summary::after{content:"›";color:var(--muted);font-size:var(--t-h2)}
details.sect[open] summary::after{content:"⌄"}
details.sect summary::-webkit-details-marker{display:none}
.tabic{display:none}
@media (max-width:760px){.tabs button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px}.tabic{display:inline-flex}.tabs button[data-v="clients"]{display:none}}

/* tour card essentials: when, where, who to call */
.when{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;font-size:var(--t-h2)}
.meet{display:flex;gap:10px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);padding:10px 12px}
.meet svg{flex:none;color:var(--muted)}
div.grow{border-top:1px solid var(--line)}div.grow:first-child{border-top:0}
.gbtn{display:flex;gap:10px;align-items:center;flex:1;min-width:0;background:none;border:0;padding:0;text-align:left;color:var(--ink)}
.btn svg{flex:none}

/* month: small cells with one dot per tour; the chosen day's tours are listed under the grid */
.mgrid button{min-height:52px;align-items:center;gap:3px;padding:5px 2px;border-radius:0}
.mgrid button b{font-weight:600}
.mgrid button.sel{box-shadow:inset 0 0 0 2px var(--ink)}
.mgrid button.myoff,.sq.myoff{background:repeating-linear-gradient(135deg,transparent 0 6px,color-mix(in srgb,var(--off) 22%,transparent) 6px 8px)}
.mgrid button.hol,.sq.hol{background-color:color-mix(in srgb,var(--holiday) 14%,var(--surface))}
.mgrid .dots{display:flex;flex-wrap:wrap;gap:3px;justify-content:center;align-items:center;min-height:9px;font-size:var(--t-micro);color:var(--muted)}
.mgrid .dots i{width:8px;height:8px;border-radius:50%;display:block}
.mgrid .cnt{font-size:var(--t-micro);color:var(--muted)}.mgrid .o{font-size:var(--t-micro)}
.lg{display:inline-flex;gap:5px;align-items:center}
.dotk{width:8px;height:8px;border-radius:50%;background:var(--private);display:inline-block}
.sq{width:14px;height:14px;border:1px solid var(--line);border-radius:3px;display:inline-block}
@media (min-width:761px){.mgrid button{min-height:74px}}
.row.lgrow{gap:6px 16px;flex-wrap:wrap;margin:8px 2px 4px}
@media (max-width:760px){.mgrid button{min-height:46px}}

/* v1.0: screen updates in place; new items fade in, week and month slide */
@media (prefers-reduced-motion:no-preference){
  .fresh{animation:fresh .22s ease-out}
  @keyframes fresh{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
  .sl-n{animation:sln var(--dur) var(--ease)}.sl-p{animation:slp var(--dur) var(--ease)}
  @keyframes sln{from{opacity:.3;transform:translateX(18px)}to{opacity:1;transform:none}}
  @keyframes slp{from{opacity:.3;transform:translateX(-18px)}to{opacity:1;transform:none}}
  .overlay{animation:ovl var(--dur) var(--ease)}@keyframes ovl{from{background:rgba(8,14,20,0)}}
  .spin svg{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
  .btn:active,.acard:active,.iconbtn:active,.card[data-act]:active{transform:scale(.98)}
  .acard,.card,.mgrid button,.strip button,.tabs button,.seg button{transition:background-color .15s,border-color .15s,box-shadow .15s,transform .12s}
}
.acard.cancelled{--k:var(--muted);opacity:.72;border-style:dashed}
.acard.cancelled .tname{text-decoration:line-through}
.brand.big{font-size:var(--t-h2)}
.auth .brand+p{margin:-6px 0 4px}
.pwrow{display:flex;gap:8px;align-items:center}.pwrow input{flex:1;min-width:0}
.btn.big{min-height:48px;font-size:var(--t-body)}
.auth .lnk{color:var(--ink);font-size:var(--t-body);cursor:pointer}
.prow .row.nw{align-items:center}.prow .bar{margin-top:8px}
.checks.col{flex-direction:column;align-items:flex-start;gap:8px}
.offm{display:inline-flex;align-items:center;gap:2px;font-size:var(--t-micro);color:var(--muted);line-height:1}
.offm svg{width:11px;height:11px}
.offm.me{color:var(--ink);font-weight:600}
.strip button.myoff{background-image:repeating-linear-gradient(135deg,transparent 0 6px,color-mix(in srgb,var(--off) 22%,transparent) 6px 8px)}
.strip button.hol{background-color:color-mix(in srgb,var(--holiday) 14%,var(--surface))}
.tag.t-free{background:var(--ink);color:#fff;border-color:var(--ink)}
.qr{width:min(260px,70vw);height:auto;border:1px solid var(--line);border-radius:var(--r-m);background:#fff}
.avatar.role svg{width:15px;height:15px}
.glist.crew{background:var(--surface2);border-color:transparent}
.glist.crew .grow{border-left:4px solid var(--k);background:color-mix(in srgb,var(--k) 9%,var(--surface))}
.glist.crew .grow+.grow{border-top:2px solid var(--bg)}

/* batch 2: form fit on phones, pinned week strip, weekday hours, guest address */
input[type=checkbox],input[type=radio]{accent-color:var(--ink)}
.f label,.f .two>*,.f .three>*,.f .four>*{min-width:0}
.f .two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.f .three{grid-template-columns:repeat(3,minmax(0,1fr))}
input[type=date],input[type=time],input[type=month]{-webkit-appearance:none;appearance:none;display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;min-height:42px;text-align:left}
input::-webkit-date-and-time-value{text-align:left}
@media (max-width:760px){.f .three{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .strip{position:sticky;top:calc(var(--toph,57px) + var(--vabar-h,0px) + env(safe-area-inset-top,0px));z-index:6;background:var(--bg);padding:6px 0;margin:-6px 0}
  .dayhd{scroll-margin-top:calc(var(--toph,57px) + 96px)}}
.endtxt{display:flex;flex-direction:column;gap:6px;justify-content:flex-end;padding-bottom:9px}.endtxt b{font-size:var(--t-h3)}
.wweek{display:flex;flex-direction:column;gap:6px}
.wrow{display:grid;grid-template-columns:78px minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center}
.wrow .wday{flex-direction:row;align-items:center;gap:8px;color:var(--ink);font-weight:600}.wrow .wday input{width:20px;height:20px}
.wrow:has(.wday input:not(:checked)) input[type=time]{opacity:.35}
.gaddr{display:flex;gap:6px;align-items:flex-start;font-size:var(--t-sm)}.gaddr svg{flex:none;margin-top:3px;color:var(--muted)}.gaddr>span{flex:1;min-width:0;overflow-wrap:anywhere}

/* badges: round medals with a progress ring */
.lvl .lvn{font-size:var(--t-h3)}
.medals{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:14px 8px}
.mdl{background:none;border:0;padding:0;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;color:var(--ink);min-width:0}
.mdl .ring{width:64px;height:64px;border-radius:50%;background:conic-gradient(var(--accent) calc(var(--p)*1%),var(--line) 0);display:grid;place-items:center;flex:none}
.mdl .in{width:54px;height:54px;border-radius:50%;background:var(--surface);display:grid;place-items:center;color:var(--muted)}
.mdl .in svg{width:24px;height:24px}
.mdl .mt{font-size:var(--t-sm);font-weight:600;line-height:1.2;overflow-wrap:anywhere}
.mdl:not(.done) .mt{color:var(--muted)}
.mdl.done .ring{background:var(--accent)}.mdl.done .in{background:var(--accent);color:var(--accent-ink)}
.mdl.done[data-t=driver] .in,.mdl.done[data-t=driver] .ring,.mdl.done[data-t=delica] .in,.mdl.done[data-t=delica] .ring,.mdl.done[data-t=own] .in,.mdl.done[data-t=own] .ring{background:var(--private);color:#fff}
.mdl.done[data-t=geo] .in,.mdl.done[data-t=geo] .ring{background:var(--ok);color:#fff}
.mdl.done[data-t=fun] .in,.mdl.done[data-t=fun] .ring{background:var(--ink);color:#fff}
.mdl.big .ring{width:112px;height:112px}.mdl.big .in{width:96px;height:96px}.mdl.big .in svg{width:44px;height:44px}
.crow{text-align:left}
.mdl.secret .ring{background:repeating-conic-gradient(var(--line) 0 8%,transparent 0 16%)}.mdl.secret .in{font-size:var(--t-h1);font-weight:700;color:var(--muted)}
.mdl.big.secret .in{font-size:2.6rem}
.mdl.done[data-t=titles] .in,.mdl.done[data-t=titles] .ring{background:var(--ink);color:var(--accent)}
.mdl.done[data-t=titles] .ring{box-shadow:0 0 0 3px var(--accent)}
.mdl[data-t=master]:not(.done) .ring{background:conic-gradient(var(--accent) calc(var(--p)*1%),var(--line) 0)}
.wrow{grid-template-columns:64px minmax(0,1fr) auto minmax(0,1fr);gap:6px}.wrow input[type=time]{padding-left:8px;padding-right:4px}
.seg.wrap{flex-wrap:wrap;border-radius:var(--r-l)}
.advice .row svg{flex:none;margin-top:3px;color:var(--muted)}.advice .row{align-items:flex-start}
.wx{display:flex;flex-wrap:wrap;gap:3px 8px;align-items:center;font-size:var(--t-sm);color:var(--muted)}.wx svg{width:15px;height:15px;flex:none}.wx b{color:var(--ink)}.wx.rough{color:var(--warn)}.wx.rough b{color:var(--warn)}
.tag.t-vip{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);font-weight:700}

/* full-screen moment for a new badge */
.sheet:has(.celebrate){width:100%;max-width:none;height:100%;max-height:100%;border-radius:0;justify-content:center;overflow:hidden;position:relative}
.celebrate{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;padding:24px 12px;position:relative}
.celebrate h2{font-size:var(--t-display);margin:0}.celebrate p{max-width:320px;margin:0}
.celebrate .actions{justify-content:center;margin-top:10px}
.celebrate .mdl.big .ring{width:168px;height:168px}.celebrate .mdl.big .in{width:146px;height:146px}.celebrate .mdl.big .in svg{width:68px;height:68px}
.confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden}
.confetti i{position:absolute;top:-16px;width:9px;height:14px;border-radius:2px;opacity:0}
@media (prefers-reduced-motion:no-preference){
  .confetti i{animation:fall 2.6s linear both}
  @keyframes fall{0%{transform:translateY(-10vh) rotate(0);opacity:1}100%{transform:translateY(110vh) rotate(540deg);opacity:.9}}
  .celebrate .pop{animation:pop .3s var(--ease) both}
  @keyframes pop{0%{transform:scale(.2);opacity:0}100%{transform:scale(1);opacity:1}}
  .celebrate h2,.celebrate p,.celebrate .actions{animation:fresh .5s ease-out .25s both}
}
.wkcard{border-color:var(--accent)}.wkcard .arow{padding:6px 0;gap:8px}.wkcard .list{gap:0}

/* guide and driver home: day by day, one clear card per tour */
.list.home{gap:8px}
.homebar h2{font-size:var(--t-h2)}
.dayhd.my{margin-top:14px;border:0;padding:0}.dayhd.my b{font-weight:600;color:var(--muted);font-size:var(--t-body)}.dayhd.my.tdy b{color:var(--ink)}
.acard.mycard{display:flex;flex-direction:column;gap:3px;width:100%;text-align:left;border:0;border-left:5px solid var(--k);background:color-mix(in srgb,var(--k) 12%,var(--surface));border-radius:8px 12px 12px 8px;padding:10px 12px;color:var(--ink);transition:transform .12s}
.mycard .tm{font-size:var(--t-body)}.mycard .cnt{font-weight:600}
.acard.mycard.off{border-style:solid;background:color-mix(in srgb,var(--private) 10%,var(--surface))}
.mycard.cancelled{opacity:.7}.mycard.cancelled .tname{text-decoration:line-through}
.nothing2{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:2px 2px 4px}
.nowcard{border:2px solid var(--ok);gap:10px}.nowcard .ttl{font-size:var(--t-h3)}
.homelinks{justify-content:center;gap:18px;margin-top:18px}
@media (min-width:761px){.list.home{max-width:640px}.list.home .strip{position:static}}
.tgcode{font-size:var(--t-h3);letter-spacing:.04em}
.acard .st{font-weight:700;margin-right:4px}.acard .cnt{font-weight:600}

/* v2.0: guests who stay at the destination, share list, move and drag-and-drop */
.t-stay{--c:var(--group)}

.shgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.shgrid .btn{justify-content:center}
[data-drag]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
@media (hover:hover){[data-drag]{cursor:grab}}
.dragghost{position:fixed;z-index:90;pointer-events:none;opacity:.92;box-shadow:0 8px 24px rgba(0,0,0,.22);transform:rotate(1.5deg);margin:0}
.dragsrc{opacity:.35}
.dragging,.dragging *{cursor:grabbing!important}
.dropon{outline:2px dashed var(--accent);outline-offset:-2px;border-radius:var(--r-s);background:color-mix(in srgb,var(--accent) 10%,transparent)}

/* v2.1: status line (fresh / offline / sending) and the test-version notice */
.syncrow{display:flex;align-items:center;gap:8px;width:100%;background:none;border:0;padding:0 2px;font-size:var(--t-sm);color:var(--muted);text-align:left;min-height:24px}
.syncrow i{width:8px;height:8px;border-radius:50%;background:var(--ok);flex:none}
.syncrow.s-old i,.syncrow.s-send i{background:var(--warn)}.syncrow.s-off i{background:var(--muted)}
.syncrow.s-off,.syncrow.s-old{color:var(--ink)}.syncrow.s-send i{animation:pulse 1s 3}
.syncrow .lnk{margin-left:auto}
@keyframes pulse{50%{opacity:.3}}
@media (prefers-reduced-motion:reduce){.syncrow.s-send i{animation:none}}
.banner.test{padding:8px 12px;flex-wrap:nowrap;align-items:flex-start}.banner.test>span{flex:1}
.banner.test .iconbtn{width:28px;height:28px;flex:none}
@media (max-width:760px){.banner.test{flex-wrap:wrap}.banner.test>span{flex-basis:calc(100% - 40px)}}

/* v2.2: status and test chip live in the pinned header, so they stay in view */
.top{flex-wrap:wrap}.subtop{flex-basis:100%;display:flex;align-items:center;gap:10px;min-width:0}
.subtop .syncrow{flex:1;min-width:0;width:auto}.subtop .syncrow span.num{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.subtop .syncrow .lnk{margin-left:8px;white-space:nowrap}
.testchip{flex:none;border:1px solid var(--line);background:var(--accent-soft);color:var(--ink);border-radius:var(--r-pill);padding:2px 10px;font-size:var(--t-cap);font-weight:600;white-space:nowrap}
.tbsteps{margin:0;padding-left:18px;display:grid;gap:4px}
@media (max-width:760px){.top .brand{flex:1 1 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top>.iconbtn{flex:none}.top>.spacer{display:none}}

/* v2.5: problem log, gentle badge note */
.pre{white-space:pre-wrap;word-break:break-word;background:var(--surface2);border-radius:var(--r-s);padding:8px;margin:0;max-height:220px;overflow:auto}
details.card>summary{cursor:pointer;list-style:none}details.card>summary::-webkit-details-marker{display:none}
.bnote{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:80;display:flex;align-items:center;gap:10px;width:min(440px,calc(100% - 32px));padding:10px 12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);box-shadow:0 8px 28px rgba(0,0,0,.18);transform:translate(-50%,30px);opacity:0;transition:transform .35s cubic-bezier(.2,.8,.2,1),opacity .35s}
.bnote.in{transform:translate(-50%,0);opacity:1}
.bnote .grow-l{flex-direction:column;align-items:flex-start;gap:0;min-width:0}.bnote .small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.bnote .mdl{transform:scale(.7);margin:-8px}
@media (prefers-reduced-motion:reduce){.bnote{transition:none}}

/* v2.6: guest card in the tour editor */
.gcard{display:flex;flex-direction:column;gap:10px}
.gsug:empty{display:none}.gsug>div{display:flex;flex-direction:column;gap:6px;padding:8px;border-radius:var(--r-m);background:var(--surface2)}
.gsug .inbase{background:color-mix(in srgb,var(--ok) 12%,var(--surface))}
.sgrow{display:flex;align-items:center;gap:8px;width:100%;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-m);padding:8px 10px;color:var(--ink);font:inherit}
.sgrow .grow-l{flex-direction:column;align-items:flex-start;gap:0;min-width:0}.sgrow .muted{overflow:hidden;text-overflow:ellipsis;max-width:100%}
.pflag{font-weight:400;color:var(--muted)}
.checks.opts{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:4px 12px}
.checks.opts label{display:flex;align-items:center;gap:8px;min-height:36px;padding:2px 0}
.hist{margin:0;padding-left:18px;display:grid;gap:6px}.hist li{display:flex;flex-direction:column}

/* v2.7: display settings, clearer days off, Setmore-like month on wide screens */
html[data-fs="s"]{zoom:.9}html[data-fs="l"]{zoom:1.15}
:root{--dayoff:#1f6f8b}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--dayoff:#7cc4e0;--off:#7cc4e0}}
:root[data-theme="dark"]{--dayoff:#7cc4e0;--off:#7cc4e0}
.offm{background:color-mix(in srgb,var(--dayoff) 14%,var(--surface));color:var(--dayoff);padding:2px 6px;border-radius:var(--r-pill);font-weight:600;font-size:var(--t-micro)}
.offm.me{background:var(--dayoff);color:#fff}
:root[data-theme="dark"] .offm.me{color:#0d1d24}
.acard.off{--k:var(--dayoff);border-style:solid;background:color-mix(in srgb,var(--dayoff) 9%,var(--surface))}
.acard.off .ttl{color:var(--dayoff)}
.mgrid button.myoff,.sq.myoff,.strip button.myoff{background:color-mix(in srgb,var(--dayoff) 16%,var(--surface));background-image:none}
.mgrid button.hol,.strip button.hol,.sq.hol{box-shadow:inset 0 3px 0 var(--holiday)}
.mrows{display:none}
@media (min-width:900px){
  .mgrid button{min-height:118px;align-items:stretch;padding:6px}
  .mgrid button>b{align-self:flex-start}
  .mgrid .dots{display:none}
  .mrows{display:flex;flex-direction:column;gap:2px;min-width:0}
  .mrow{display:flex;align-items:center;gap:5px;font-size:var(--t-cap);line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:var(--r-s);padding:1px 3px;cursor:pointer}
  .mrow:hover{background:var(--surface2)}
  .mrow i{width:8px;height:8px;border-radius:50%;flex:none}
  .mrow.cx{text-decoration:line-through;color:var(--muted)}
  .mrow.more{color:var(--muted);cursor:inherit}
}
.lvhelp summary{list-style:none;cursor:pointer;display:inline}.lvhelp summary::-webkit-details-marker{display:none}
.lvhelp ul{margin:4px 0;padding-left:18px}

/* v2.9 */
.status-screen{max-width:460px;margin:12vh auto 0;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:0 16px}
.big-ico svg{width:44px;height:44px;color:var(--accent)}
.warnbn{border-color:var(--warn);background:color-mix(in srgb,var(--warn) 10%,var(--surface))}
.t-pub{--c:var(--muted)}
.mgrid button.pub,.sq.pub{box-shadow:inset 0 -3px 0 color-mix(in srgb,var(--muted) 55%,transparent)}
.mgrid button.hol.pub{box-shadow:inset 0 3px 0 var(--holiday),inset 0 -3px 0 color-mix(in srgb,var(--muted) 55%,transparent)}
.bars.two .barcol .pair{display:flex;align-items:flex-end;gap:2px;height:120px;width:100%;justify-content:center}
.bars.two .pair i{display:block;width:40%;background:var(--accent);border-radius:4px 4px 0 0;min-height:1px}
.bars.two .pair i.prev{background:var(--line)}
td.up{color:var(--ok)}td.down{color:var(--warn)}
.thsort{font-weight:600;color:inherit;text-decoration:none}.thsort.on{text-decoration:underline}
.warnt{color:var(--warn)}
#fitbox:empty{display:none}

/* v3.0 week figures */
.wstats{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-m);padding:8px 12px;margin:0 0 10px}
.wstats summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;cursor:pointer;list-style:none}.wstats summary::-webkit-details-marker{display:none}
.wstats .neg{color:var(--danger)}
.wstats dl{margin:8px 0 4px}
@media (min-width:761px){.four.five{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* v3.1 options drop-down, notification card */
.msel{position:relative}
.msel>summary{list-style:none;display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 36px 8px 12px;border:1px solid var(--line);border-radius:var(--r-m);background:var(--surface);cursor:pointer;position:relative}
.msel>summary::-webkit-details-marker{display:none}
.msel>summary::after{content:'';position:absolute;right:14px;top:50%;border:6px solid transparent;border-top-color:var(--ink);transform:translateY(-25%)}
.msel[open]>summary{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 30%,transparent)}
.msel .mstxt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msel .mscount:not(:empty){background:var(--accent);color:var(--accent-ink);border-radius:var(--r-pill);font-size:var(--t-cap);font-weight:700;min-width:20px;text-align:center;padding:1px 6px}
.mspanel{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 6px);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);box-shadow:0 10px 30px rgba(0,0,0,.18);padding:8px;display:flex;flex-direction:column;gap:6px}
.mslist{max-height:260px;overflow:auto;display:flex;flex-direction:column}
.mslist label{display:flex;align-items:center;gap:10px;min-height:42px;padding:4px 8px;border-radius:var(--r-m);cursor:pointer}
.mslist label:hover{background:var(--surface2)}
.mslist input{width:20px;height:20px;accent-color:var(--accent);flex:none}
.mslist label:has(input:checked){background:color-mix(in srgb,var(--accent) 12%,var(--surface));font-weight:600}
.nfcard{gap:8px}

/* v3.3: bigger text and strong contrast, per person */
html[data-fs="xl"]{zoom:1.3}
.iconbtn.aa{font-weight:700;font-size:var(--t-body);letter-spacing:-.02em}
.seg.wrap{flex-wrap:wrap}
:root[data-contrast="high"]{--bg:#ffffff;--surface:#ffffff;--surface2:#f2f2f2;--line:#8c8c8c;--ink:#000000;--muted:#262626;--accent-soft:#ffe2b8;--warn:#6b4700;--ok:#0d5a27;--off:#0b4f66;--dayoff:#0b4f66}
:root[data-contrast="high"] body{font-weight:500}
:root[data-contrast="high"] b,:root[data-contrast="high"] h2,:root[data-contrast="high"] h3,:root[data-contrast="high"] .ttl{font-weight:700}
:root[data-contrast="high"] .card,:root[data-contrast="high"] .acard,:root[data-contrast="high"] .inp,:root[data-contrast="high"] input,:root[data-contrast="high"] select,:root[data-contrast="high"] textarea{border-color:#5c5c5c}
:root[data-contrast="high"][data-theme="dark"]{--bg:#000;--surface:#0d0d0d;--surface2:#1a1a1a;--line:#8c8c8c;--ink:#fff;--muted:#e6e6e6;--accent-soft:#3a2a10}
@media (prefers-color-scheme:dark){:root[data-contrast="high"]:not([data-theme="light"]){--bg:#000;--surface:#0d0d0d;--surface2:#1a1a1a;--line:#8c8c8c;--ink:#fff;--muted:#e6e6e6;--accent-soft:#3a2a10}}
/* 3.4 Type hierarchy: titles step up, labels step down, every size comes from the scale at the top */
.small{line-height:1.4}
.stat b{font-size:var(--t-h1);line-height:1.1;letter-spacing:-.01em;font-weight:700}
.ttl{line-height:1.3}
.mycard .ttl{font-size:var(--t-h3);font-weight:700}
.bar h2{font-size:var(--t-h2)}
.sheet h2,.modal h2{font-size:var(--t-h2)}
details.sect summary{font-size:var(--t-h3)}
.tag,.badge,th,.testchip{letter-spacing:.02em}
.f label{font-size:var(--t-sm)}
@media (max-width:760px){.bar h2,.sheet h2,.modal h2,h2{font-size:20px}.celebrate h2{font-size:var(--t-h1)}}
.acard .ttl{font-size:var(--t-h3);line-height:1.3}
.acard .wx,.acard .row .muted{font-size:var(--t-sm)}
.agenda h3,.dayhd{letter-spacing:-.005em}
/* 3.5 Options tick list: tick box on the left, text next to it (the form label rule made them a centred column) */
.msel .mslist label{flex-direction:row;justify-content:flex-start;align-items:center;text-align:left;color:var(--ink);font-size:var(--t-body);font-weight:500;min-height:48px;gap:12px}
.msel .mslist input{width:22px;height:22px;margin:0}
.msel .mspanel .inp{min-height:44px}
/* 3.5 Easier for everyone, also 50+: 44px touch targets, 16px for what a guide must read, fewer colours per card */
.ib{width:44px;height:44px}
.btn.sm{min-height:44px;font-size:var(--t-body);padding:6px 16px}
.iconbtn{min-width:44px;height:44px}
.lnk{min-height:44px;font-size:var(--t-body)}
.att button{min-height:48px;font-size:var(--t-body)}
.seg button{min-height:44px}
.tag{font-size:var(--t-cap);padding:3px 10px}
.warnline{font-size:var(--t-body)}
.grow{padding:12px 0;gap:6px}
.grow .gtxt{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.grow .gname{font-size:var(--t-body);font-weight:700}
.gsum{font-size:var(--t-body);color:var(--ink);overflow-wrap:anywhere}
.due{color:var(--warn);font-weight:700}
.grow .gaddr{font-size:var(--t-body);color:var(--muted)}
.grow .gaddr>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tsum{background:var(--surface2);border-radius:var(--r-m);padding:12px 16px;display:flex;flex-direction:column;gap:4px;font-size:var(--t-body)}
.acard .wx:not(.rough){display:none}
.acard .chk,.chip .chk{display:inline-flex;align-items:center;border:1px solid var(--warn);color:var(--warn);border-radius:var(--r-pill);padding:1px 10px;font-size:var(--t-sm);font-weight:700;vertical-align:middle}
.acard .p{font-size:var(--t-body)}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr))}
.stat{min-width:0}
.gcard+.gcard{margin-top:16px}
.wgrid .chip{font-size:var(--t-body);padding:6px 8px}
@media (max-width:760px){.tiles{grid-template-columns:1fr 1fr;gap:8px}.tiles .card{padding:12px}}
/* the month chart is "bars two": the form rule ".f .two" made it 2 columns on every screen */
.card.f .bars.two{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:2px}
.card .stats{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
@media (max-width:760px){.wkmost{display:none}}
/* Join tour names */
.tncard{gap:0;padding:4px 16px 12px}
.tnrow{display:flex;align-items:center;gap:12px;min-height:48px;border-bottom:1px solid var(--line);cursor:pointer}
.tnrow input{width:22px;height:22px;flex:none;accent-color:var(--accent)}
.tnrow span:first-of-type{flex:1;min-width:0;overflow-wrap:anywhere}
.tnrow:has(input:checked){font-weight:600}
.tnsticky{position:sticky;bottom:0;background:var(--surface);padding-top:10px}
/* 3.6 Tour pictures, avatar pictures, and cards that look different by type */
.msi{width:1.15em;height:1.15em;flex:none;vertical-align:-.2em}
.emb.ic{min-width:22px;padding:0 3px}.emb.ic .msi{width:14px;height:14px;vertical-align:middle}
.emb.big.ic{width:36px;height:36px;min-width:36px;border-radius:var(--r-m);display:inline-flex;align-items:center;justify-content:center}.emb.big.ic .msi{width:22px;height:22px}
.acard .ttl{display:flex;gap:10px;align-items:flex-start}
.acard .ttl .emb.big.ic{margin-top:-2px}
.acard .kindrow{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;font-size:var(--t-body);color:var(--muted)}
.acard .kind{display:inline-flex;align-items:center;gap:4px;font-weight:600}
.acard .kind .msi{width:18px;height:18px}
.acard .kind.k-group{color:var(--group)}.acard .kind.k-private{color:var(--private)}.acard .kind.k-transfer{color:var(--transfer)}.acard .kind.k-custom{color:var(--custom)}
/* day off and sick day: no tour colour, dashed outline, beach / sick icon */
.acard.off{background:transparent;border:2px dashed color-mix(in srgb,var(--dayoff) 55%,var(--line));box-shadow:none}
.acard.off .ttl{color:var(--dayoff);align-items:center;font-size:var(--t-body)}
.acard.off .ttl .msi{width:22px;height:22px}
.dayhd .tag .msi{width:14px;height:14px;margin-right:2px}
.dayhd .t-hol,.dayhd .t-pub{font-size:var(--t-sm);padding:4px 10px}
.avlib{display:inline-flex;align-items:center;justify-content:center;color:#fff}.avlib .msi{width:62%;height:62%}
.avpick summary{font-size:var(--t-body)}
.avcols{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0}
.avcol{width:36px;height:36px;border-radius:50%;border:3px solid transparent;padding:0}
.avcol[aria-pressed="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 2px var(--surface)}
.avgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:10px;margin-bottom:8px}
.avopt{aspect-ratio:1;border-radius:50%;border:3px solid transparent;color:#fff;display:flex;align-items:center;justify-content:center;padding:0}
.avopt .msi{width:60%;height:60%}
.avopt[aria-pressed="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 2px var(--surface)}
/* the week strip covers what scrolls under it, also on iPhones where the top bar height is not a whole pixel */
/* 3.60 X2: the page-colour block above the stuck strip (.strip::before) is gone: it covered the Today row. The strip has its own top padding instead. */
/* Work balance */
tr.bl-over td{background:color-mix(in srgb,var(--warn) 10%,var(--surface))}
tr.bl-under td{background:color-mix(in srgb,var(--ok) 8%,var(--surface))}
.blnote{font-weight:600;color:var(--warn)}tr.bl-under .blnote{color:var(--ok)}
/* month chart: room for the numbers, no clipping, 3-letter months */
.card.f .bars.two{height:auto;align-items:end}
.bars.two .barcol{height:auto;overflow:visible;gap:4px}
.bars.two .bv{font-size:var(--t-micro);line-height:1;min-height:12px;white-space:nowrap;color:var(--muted)}
.bars.two .bm{font-size:var(--t-cap);white-space:nowrap}
td.wrapcell{white-space:normal;min-width:180px;max-width:260px}
/* Year highlights */
.yh{display:flex;flex-direction:column}
.yhrow{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:var(--t-body)}
.yhrow:last-child{border-bottom:0}
.yhrow b{text-align:right}
/* day headings stop just under the sticky week strip, whatever its height (text size, weather pills) */
@media (max-width:760px){.dayhd{scroll-margin-top:calc(var(--toph,57px) + var(--vabar-h,0px) + var(--striph,96px) + env(safe-area-inset-top,0px) + 4px)}}
/* tour window header: picture at the top of a 2-line title, not floating in the middle */
.sheet .hdr{align-items:flex-start}
.sheet .hdr h2{flex:1;min-width:0;padding-top:4px}
.sheet .hdr .emb.big{margin-top:2px}
input[type=file]{font-size:var(--t-body);color:var(--muted)}
input[type=file]::file-selector-button{min-height:44px;margin-right:12px;padding:6px 18px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--surface);color:var(--ink);font:inherit;font-weight:600;cursor:pointer}
/* Sick days look different from days off: rose colour, solid outline, cross icon; half days a lighter dashed outline */
.acard.off.sick{--k:var(--sick);border:2px solid color-mix(in srgb,var(--sick) 45%,var(--line));background:color-mix(in srgb,var(--sick) 7%,var(--surface))}
.acard.off.sick .ttl{color:var(--sick)}
.acard.off.half{border-style:dotted}
.mgrid button.myoff.mysick,.sq.myoff.mysick,.strip button.myoff.mysick{background:color-mix(in srgb,var(--sick) 14%,var(--surface))}
.sq.mysick{background:color-mix(in srgb,var(--sick) 30%,var(--surface))}
/* Getting started */
.setupban{display:flex;width:100%;justify-content:space-between;align-items:center;gap:12px;min-height:48px;text-align:left;border:1px solid color-mix(in srgb,var(--accent) 40%,var(--line));background:var(--accent-soft);color:var(--ink);font-size:var(--t-body);margin-bottom:12px}
.mslist.mt{max-height:none}
.mslist.mt label{display:flex;align-items:center;gap:12px;min-height:48px;flex-direction:row;color:var(--ink);font-size:var(--t-body);font-weight:500}
.mslist.mt input{width:22px;height:22px;flex:none;accent-color:var(--accent)}
/* Day-off plan: one row per person, one column per week; what is already asked or approved shows in its week */
.suglist{display:flex;flex-direction:column}
.sugrow{display:grid;grid-template-columns:minmax(120px,1.2fr) repeat(4,minmax(0,1fr));gap:8px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.sughd{border-top:0;padding-bottom:4px}
.sugwho b{font-weight:600}
.sugcell{display:flex;flex-direction:column;gap:6px}
.sugc{display:flex;flex-direction:column;align-items:flex-start;gap:0;min-height:52px;justify-content:center;padding:6px 10px;border-radius:var(--r-m);border:1px solid var(--line);background:var(--surface);font-weight:600;text-align:left;font-size:var(--t-body);color:var(--ink)}
button.sugc{cursor:pointer}button.sugc:hover{border-color:var(--accent)}
.sugc.ok{background:color-mix(in srgb,var(--dayoff) 14%,var(--surface));border-color:color-mix(in srgb,var(--dayoff) 40%,var(--line));color:var(--dayoff)}
.sugc.wait{border-style:dashed;border-color:var(--dayoff);color:var(--dayoff)}
.sugc.none{border:0;background:none;color:var(--muted);font-weight:400;min-height:0}
@media (max-width:760px){.sughd{display:none}.sugrow{grid-template-columns:1fr 1fr}.sugwho{grid-column:1/-1}}
/* Native feel: thin moving bar at the very top while saving or sending; a pressed button shows a spinner */
html.busy body::after,html.syncing body::after{content:"";position:fixed;z-index:60;left:0;right:0;top:env(safe-area-inset-top,0px);height:3px;background:linear-gradient(90deg,transparent,var(--accent) 40%,var(--accent) 60%,transparent);background-size:40% 100%;background-repeat:no-repeat;animation:fsbar 1.1s ease-in-out infinite}
@keyframes fsbar{from{background-position:-40% 0}to{background-position:140% 0}}
button[aria-busy="true"]{position:relative;color:transparent!important}
button[aria-busy="true"]::after{content:"";position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border:2px solid var(--line);border-top-color:var(--ink);border-radius:50%;animation:fsspin .7s linear infinite}
@keyframes fsspin{to{transform:rotate(360deg)}}
/* sheets slide up, screens fade in; nothing moves with reduced motion */
.overlay .sheet{animation:fsup var(--dur) var(--ease)}
@keyframes fsup{from{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}
button,a{-webkit-tap-highlight-color:transparent}
@media (prefers-reduced-motion:reduce){html.busy body::after,html.syncing body::after,overlay-x,.overlay .sheet,button[aria-busy="true"]::after{animation:none}}
/* Personal colour of buttons (Me > Settings). Dark text stays readable on every one (6:1 or better). */
html[data-accent="sky"]{--accent:#5aa9e6;--accent-soft:#e1eef9}
html[data-accent="mint"]{--accent:#45b88a;--accent-soft:#dcf1e7}
html[data-accent="lilac"]{--accent:#b39ddb;--accent-soft:#ece6f6}
html[data-accent="rose"]{--accent:#f28fad;--accent-soft:#fbe4eb}
html[data-accent="sun"]{--accent:#f2c94c;--accent-soft:#fbf1d2}
@media (prefers-color-scheme:dark){html:not([data-theme="light"])[data-accent]{--accent-soft:color-mix(in srgb,var(--accent) 22%,#192029)}}
html[data-theme="dark"][data-accent]{--accent-soft:color-mix(in srgb,var(--accent) 22%,#192029)}
.accents{display:flex;flex-wrap:wrap;gap:12px}
.acc{width:44px;height:44px;border-radius:50%;border:3px solid transparent;padding:0;box-shadow:inset 0 0 0 2px var(--surface)}
.acc[aria-pressed="true"]{border-color:var(--ink)}
/* Add to Home Screen */
.instcard{border-color:color-mix(in srgb,var(--accent) 45%,var(--line))}
.insteps{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:6px;font-size:var(--t-body)}
/* Phone conventions: iPhone sheets get the grab handle; Android buttons darken when pressed (Material) */
html[data-os="ios"] .overlay .sheet::before{content:"";display:block;width:40px;height:5px;border-radius:3px;background:var(--line);margin:-4px auto 10px}
html[data-os="android"] .btn:active,html[data-os="android"] .iconbtn:active,html[data-os="android"] .tabs button:active{background:color-mix(in srgb,var(--ink) 10%,var(--surface))}
/* Small and older phones (320–360 px wide) */
@media (max-width:360px){
  :root{--gut:max(10px,env(safe-area-inset-left,0px));--gutr:max(10px,env(safe-area-inset-right,0px))}
  /* 3.60: the 10px bottom-bar label rule is gone; see task 21 at the end of the file */
  .strip{gap:2px}.strip button{padding:4px 0}
  .brand{font-size:var(--t-body)}
  .sugrow{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr 1fr}
  h2,.bar h2,.sheet h2{font-size:var(--t-h3)}
}
/* Browsers without color-mix (phones older than about 2023): keep borders and cards visible */
@supports not (color:color-mix(in srgb,red 50%,blue)){
  .acard,.card,.tag,.chip,.sugc,.tsum{border:1px solid var(--line)}
  .acard{background:var(--surface)}
  .tag{background:var(--surface);color:var(--ink)}
}
/* Who can work next week */
.avt td.avc{text-align:center;font-size:var(--t-sm);white-space:nowrap}
.avt td.avc.on{background:color-mix(in srgb,var(--ok) 10%,var(--surface));color:var(--ink)}
.avt td.avc.no{color:var(--muted)}
.avt td.avc.usual{background:var(--surface2);color:var(--muted)}
.avt td.avc.off{color:var(--dayoff);font-weight:600}
.wkcard form{border-top:1px solid var(--line);padding-top:12px}
/* Tour exchange */
.xrow{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:6px 0}
.xrow .arow{border:0;background:none;padding:6px 0;min-height:48px;text-align:left;display:flex;gap:10px;align-items:center;font-size:var(--t-body);color:var(--ink)}
.xasked{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
/* Personal expenses */
.explist{display:flex;flex-direction:column}
.exrow{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line);font-size:var(--t-body)}
.exrow .msi{width:22px;height:22px;color:var(--muted)}
.kinds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.kinds .kind{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px;border:1px solid var(--line);border-radius:var(--r-l);background:var(--surface);color:var(--ink);font-weight:600;cursor:pointer;min-height:72px;justify-content:center;text-align:center}
.kinds .kind input{position:absolute;opacity:0;pointer-events:none}
.kinds .kind .msi{width:26px;height:26px}
.kinds .kind:has(input:checked){border:2px solid var(--accent);background:var(--accent-soft)}
.exptour{align-self:flex-start}
/* Look-as bar */
.vabar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px var(--gutr) 8px var(--gut);background:var(--ink);color:var(--bg);font-weight:600;font-size:var(--t-body)}
.vabar .btn{background:var(--bg);color:var(--ink)}
/* Aligned list rows: picture | name and label | date on the right, the same in every row */
.card.lrow{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:6px 12px;padding:12px 16px}
.card.lrow.nohead{grid-template-columns:minmax(0,1fr) auto}
.card.lrow>.muted{grid-column:1/-1}
.lrow .lmain{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-width:0}
.lrow .ldate{text-align:right;white-space:nowrap;font-size:var(--t-body)}
.stats .stat{display:flex;flex-direction:column;gap:2px;line-height:1.25}
.xrow .arow{flex-direction:row!important;align-items:center}
.xrow .arow .emb{flex:none}
/* Guest list check */
.gck{display:inline-flex;align-items:center;gap:10px;flex-direction:row!important;color:var(--ink)!important;font-size:var(--t-body)!important}
.gck input{width:22px;height:22px}
.gcl{margin:6px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:4px}

/* 3.11 unslop pass on Me (unslop by @heydamir, CC BY 4.0): 4px grid, quiet Save, one row of tabs, aligned contacts, bigger taps */
.vh{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0 0 0 0)}
.filebtn{position:relative;cursor:pointer;font-size:var(--t-body);color:var(--ink)}
.filebtn .msi{width:20px;height:20px;color:var(--muted)}
.filebtn:focus-within{outline:2px solid var(--ink);outline-offset:2px}
.card{padding:12px;gap:8px}
.f input,.f select,.f textarea,.inp{padding:8px 12px}
input[type=checkbox],input[type=radio]{margin:0}
.card.f > b:first-child,form.f > b:first-child,.card.f > .f > b:first-child,.bar h2{font-weight:600}
details.sect.avpick summary{font-size:var(--t-body);font-weight:500;color:var(--muted);padding:12px 0}
.seg{flex-wrap:nowrap;max-width:100%;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.seg::-webkit-scrollbar{display:none}
.seg button{flex:none;white-space:nowrap;padding:8px 16px}
.seg.wrap{flex-wrap:wrap;overflow:visible}
.btn.qsave:not(.primary){color:var(--ink)}
.wrow{gap:8px}
.wrow .wday{min-height:44px;cursor:pointer}
.wrow .wday input,#pd-yearly,.f .checks input[type=checkbox]{width:24px;height:24px}
.wrow .hm{max-width:none;text-align:center;letter-spacing:.02em}
.wrow:has(.wday input:not(:checked)) .hm{opacity:.35}
.avcol{width:40px;height:40px}
.banner.slim{gap:12px}.banner.slim select{min-height:40px}
.subtop{gap:8px}
.badge{padding:0 4px}
.ctlist .row.nw{gap:12px;min-height:48px}
.ctlist .grow-l{flex-wrap:nowrap;flex-direction:column;align-items:flex-start;gap:0}
.ctlist .grow-l > span:first-child{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ctlist .cbtns{display:grid;grid-template-columns:repeat(4,40px);gap:4px;justify-content:end}
.ctlist .ib{width:40px;height:40px}
.ctlist .k-wa{grid-column:1}.ctlist .k-call{grid-column:2}.ctlist .k-tg{grid-column:3}.ctlist .k-copy{grid-column:4}
@media (max-width:760px){.tabs button{font-size:var(--t-cap)}}
@media (max-width:360px){.tabs button{font-size:var(--t-micro);padding:6px 0;letter-spacing:0}.ctlist .cbtns{grid-template-columns:repeat(4,36px)}.ctlist .ib{width:36px;height:36px}}
.list{gap:12px}
.tag{padding:4px 8px}
.testchip{padding:2px 8px}
.iconbtn{padding:0 12px}
.cols > .list{min-width:0}
.f label.filebtn{flex-direction:row;font-size:var(--t-body);color:var(--ink);font-weight:600}
.f label.pdy{flex-direction:row;align-items:center;gap:8px;color:var(--ink);min-height:44px;cursor:pointer}
.wrow .hm::placeholder{color:var(--line)}
.ctlist .grow-l > span:first-child{white-space:normal;overflow-wrap:anywhere}

/* 3.13 speed and motion: screens slide like a native app, scrolling never waits, long lists draw only what is on screen */
/* .top and .tabs are no longer separate view-transition layers: on iPhone the fixed bars could be left drawn mid-page (17 Nov) */
::view-transition-group(root){animation-duration:var(--dur);animation-timing-function:var(--ease)}
::view-transition-old(root){animation:fs-out .12s cubic-bezier(.4,0,1,1) both}
::view-transition-new(root){animation:fs-in var(--dur) var(--ease) both}
html[data-dir="back"]::view-transition-old(root){animation-name:fs-out-b}
html[data-dir="back"]::view-transition-new(root){animation-name:fs-in-b}
@keyframes fs-out{to{opacity:0;transform:translateX(-24px)}}
@keyframes fs-in{from{opacity:0;transform:translateX(24px)}}
@keyframes fs-out-b{to{opacity:0;transform:translateX(24px)}}
@keyframes fs-in-b{from{opacity:0;transform:translateX(-24px)}}
@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}
.overlay,.sheet,.mslist{overscroll-behavior:contain}
button,a,summary,label,select{touch-action:manipulation}
.glist .grow,.nlist .nitem{content-visibility:auto;contain-intrinsic-size:auto 56px}
.qrwait{width:min(260px,70vw);aspect-ratio:1;border:1px solid var(--line);border-radius:var(--r-m);background:var(--surface2)}
.authlang{display:flex;align-items:center;justify-content:flex-end;gap:8px;color:var(--muted)}
.authlang .msi{width:24px;height:24px}
.authlang .seg button{min-width:48px;padding:8px 12px}

/* 3.15 login page: brand on top, form on one tonal card, account links and language together under it.
   Patterns rebuilt in our own CSS (ideas: Uiverse pill button press, React Bits fade-up entrance; MIT). */
.auth{margin-top:6vh;gap:16px}
.authhead{display:flex;flex-direction:column;gap:4px;padding:0 4px}
.auth .authhead .brand.big{font-size:var(--t-h1);letter-spacing:-.01em}
.auth .authhead .brand i{width:14px;height:14px}
.auth .authhead p{margin:0}
.authcard{background:var(--surface2);border:1px solid var(--line);border-radius:var(--r-xl);padding:20px;gap:12px}
.authcard h2{margin:0 0 4px}
.authcard .btn.big{margin-top:4px;transition:transform .15s cubic-bezier(.2,0,0,1),background-color .15s}
.authcard .btn.big:active{transform:scale(.97)}
.authcard input:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
.authfoot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding:0 4px}
.authfoot .bar{margin:0;gap:16px}
.authlang{justify-content:flex-start}
.authlang .msi{width:20px;height:20px}
.authlang .seg button{min-width:44px;min-height:40px;padding:4px 12px;font-size:var(--t-cap)}
@media (prefers-reduced-motion:no-preference){
  .authhead,.authcard,.authfoot{animation:auth-up .32s cubic-bezier(.2,0,0,1) both}
  .authcard{animation-delay:.05s}.authfoot{animation-delay:.1s}
}
@keyframes auth-up{from{opacity:0;transform:translateY(12px)}}

/* 3.16 answers on a notice, delete tour link, "unsaved changes" question */
.tcbar{margin:8px 0 4px;gap:8px;flex-wrap:wrap}
.tcbar .btn{min-height:40px}
.askbox{position:fixed;inset:0;z-index:60;background:rgba(8,14,20,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.askcard{background:var(--bg);border-radius:var(--r-xl);padding:20px;max-width:400px;width:100%;display:flex;flex-direction:column;gap:16px;font-size:var(--t-h3)}
.askcard .actions{flex-wrap:wrap}

/* 3.18 plus menu, tour card buttons in one design, period summary at the bottom */

.fab{transition:transform .2s cubic-bezier(.2,0,0,1)}
.fab.open{transform:rotate(45deg)}
.fabmenu{position:fixed;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(144px + env(safe-area-inset-bottom,0px));z-index:8;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.fabitem{min-height:48px;padding:0 20px 0 16px;gap:12px;background:var(--surface);font-size:var(--t-body);font-weight:600;box-shadow:0 0 0 1px var(--line)}
.fabitem .msi{width:24px;height:24px;color:var(--muted)}
@media (prefers-reduced-motion:no-preference){.fabitem{animation:auth-up .18s cubic-bezier(.2,0,0,1) both}.fabitem:nth-child(2){animation-delay:.03s}.fabitem:nth-child(3){animation-delay:.06s}}
.tacts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tacts .btn{min-height:48px;padding:4px 8px;gap:8px;justify-content:center;font-size:var(--t-sm);white-space:normal;line-height:1.2}
.tacts .btn .msi{width:20px;height:20px;flex:none}
@media (max-width:420px){.tacts{grid-template-columns:repeat(2,minmax(0,1fr))}.tacts .btn.primary{grid-column:1 / -1}}
.wstats{margin-top:16px}
.tabic{position:relative}
.tabn{position:absolute;top:-6px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 4px;border-radius:var(--r-s);background:var(--accent);color:var(--ink);font:700 11px/18px inherit;font-style:normal;text-align:center}
html[data-os="ios"] input,html[data-os="ios"] select,html[data-os="ios"] textarea{font-size:max(16px,1em)}
.xrow .tag{flex:none}

/* 3.19 Tasks in two sections, labelled add button, special dates with suggestions and a date picker */
.thead{margin-bottom:0}
.tsec{display:inline-flex;width:fit-content;max-width:100%;margin:4px 0 8px}
.tsec button{justify-content:center;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 16px}
.segn{min-width:20px;height:20px;padding:0 6px;border-radius:var(--r-m);background:var(--surface2);color:var(--ink);font:700 12px/20px inherit;text-align:center}
.seg button[aria-pressed="true"] .segn{background:rgba(255,255,255,.55)}
.tfilt{gap:8px;flex-wrap:wrap}
.tfilt .seg button{padding:8px 11px;min-height:38px}
.fab.xfab{width:auto;height:56px;border-radius:var(--r-xl);padding:0 20px 0 16px;gap:8px;font-size:var(--t-body);font-weight:700}
.fab.xfab .msi{width:24px;height:24px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip2{min-height:40px;padding:0 16px;border-radius:var(--r-s);border:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:var(--t-sm);font-weight:600;cursor:pointer}
.chip2:active{transform:scale(.97)}
.pdform{gap:12px;border-top:1px solid var(--line);padding-top:12px;margin-top:4px}
.pdform input[type=date]{min-height:48px;width:100%;-webkit-appearance:none;appearance:none;text-align:left}

/* 3.20 open-tour rows: icon beside the text, language tag; tour card: people and guests line up */
.xrow .arow{flex-wrap:nowrap;flex:1;min-width:0;align-items:flex-start}
.xrow .arow > span:last-child{min-width:0;line-height:1.35}
.xrow .arow .emb{margin-top:2px}
.ltag{display:inline-flex;align-items:center;gap:4px;vertical-align:middle;white-space:nowrap}
.ltag .msi{width:14px;height:14px}
.sheet .glist .avatar{width:40px;height:40px;flex:none}
.sheet .glist .gbtn{gap:12px}
.sheet .glist.crew .grow .row{gap:12px}
.sheet .glist.crew .grow .muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}

/* 3.21 phone calendar in the Setmore layout the team knows: month title that opens the month, light day strip,
   tinted cards with a colour bar, result bar above the menu, add sheet */
.calhd{display:flex;align-items:center;gap:8px;margin:4px 0 8px}
.calttl{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:8px 4px 8px 0;font-family:inherit;font-size:var(--t-h1);color:var(--ink);min-height:48px;cursor:pointer;letter-spacing:-.01em}
.calttl b{font-weight:600}.calttl .yr{color:var(--muted);font-weight:500}.calttl .msi{width:24px;height:24px;color:var(--muted)}
.calhd .iconbtn{width:40px;height:40px;font-size:var(--t-h2);padding:0}
.calnow{min-height:40px}
.whochip{width:44px;height:44px;border-radius:50%;border:0;background:var(--surface2);color:var(--ink);font:700 var(--t-cap)/1 inherit;display:grid;place-items:center;padding:0;cursor:pointer;flex:none}
.whochip .avatar{width:44px;height:44px}
.incbar{position:fixed;left:0;right:0;bottom:calc(var(--tabs-h,62px) + env(safe-area-inset-bottom,0px));z-index:7;display:flex;align-items:center;gap:12px;min-height:48px;padding:0 16px;background:var(--surface);border:0;border-top:1px solid var(--line);color:var(--ink);font-size:var(--t-sm);text-align:left;cursor:pointer}
.incbar .msi{width:20px;height:20px;color:var(--muted);flex:none}
.incbar .grow-l{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.incbar b{font-size:var(--t-body);text-decoration:underline;text-underline-offset:4px;flex:none}
.fabmenu{display:flex;flex-direction:column}
.fabmenu .arow{gap:16px;min-height:56px;padding:0 4px;border:0;font-size:var(--t-h3);background:none;cursor:pointer}
.fabmenu .arow .msi{width:24px;height:24px;color:var(--ink);flex:none}
.fabmenu hr{border:0;border-top:1px solid var(--line);margin:8px 0;width:100%}
@media (max-width:760px){
  main:has(.incbar){padding-bottom:calc(140px + env(safe-area-inset-bottom,0px))}
  main:has(.incbar) .fab{bottom:calc(128px + env(safe-area-inset-bottom,0px))}
  .strip{gap:0;border-bottom:1px solid var(--line);padding-bottom:8px;margin:0 -4px}
  .strip button{background:none;border:0;border-radius:0;padding:4px 0;gap:6px;font-size:var(--t-cap);text-transform:uppercase;letter-spacing:.04em}
  .strip button b{display:grid;place-items:center;width:40px;height:40px;border-radius:var(--r-m);font-size:var(--t-h3);font-weight:500}
  .strip button[aria-pressed="true"]{background:none;color:var(--muted)}
  .strip button[aria-pressed="true"] b{background:var(--ink);color:var(--bg)}
  .strip button[aria-pressed="true"] .dot{background:var(--accent)}
  .strip button.tdy b{text-decoration:none;box-shadow:inset 0 0 0 2px var(--accent)}
  .strip button.tdy[aria-pressed="true"] b{box-shadow:none}
  .mgrid{border:0;border-radius:0;background:none}
  .mgrid .hd{background:none;color:var(--muted);font-weight:500;font-size:var(--t-cap);text-transform:uppercase}
  .mgrid button{border:0;align-items:center;min-height:56px;padding:4px 0}
  .mgrid button > b:first-child,.mgrid button .dn{font-size:var(--t-body);font-weight:500}
  .mgrid button.sel{outline:0}
  .acard{border:0;border-left:4px solid var(--k);border-radius:var(--r-s);background:color-mix(in srgb,var(--k) 13%,var(--bg));padding:12px 12px 12px 12px;gap:6px}
  .acard.off{border-left-color:var(--off,#6f8fbf)}
  .dayhd{margin-top:8px}
  .dayhd > b{font-weight:500;color:var(--muted);font-size:var(--t-h3)}
  .dayhd > b.tdy{color:var(--ink);font-weight:700}
}
.calhd{min-width:0;gap:4px}
.calttl{font-size:var(--t-h2);min-width:0;flex:0 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calhd .spacer{flex:1 1 0;min-width:0}
.calhd .iconbtn,.calhd .whochip,.calnow{flex:none}
.calnow{padding:0 12px}
.fabmenu{position:static;right:auto;bottom:auto;z-index:auto;align-items:stretch;gap:0}
.fabmenu .fabitem{box-shadow:none;animation:none;border-radius:var(--r-s);font-weight:500;justify-content:flex-start;width:100%}
@media (max-width:760px){.strip{margin:0}}
.calhd .jump{flex:none}
.calhd:has(.calnow) .jump{display:none}
@media (max-width:420px){.calhd .iconbtn{width:36px}.calnow{padding:0 10px}}

/* 3.22 special dates: open list with icons, add/edit in a sheet, rolling date wheels */
.pdlist{display:flex;flex-direction:column}
.pdrow{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 0;border-top:1px solid var(--line)}
.pdrow:first-child{border-top:0}
.pdic{width:40px;height:40px;border-radius:var(--r-m);background:var(--surface2);display:grid;place-items:center;flex:none;color:var(--ink)}
.pdic .msi{width:22px;height:22px}
.pdtx{flex:1;min-width:0;flex-direction:column;align-items:flex-start;gap:0;flex-wrap:nowrap}
.pdtx b{font-weight:600;overflow-wrap:anywhere}
.pdrow .iconbtn{width:40px;height:40px;flex:none;padding:0}.pdrow .iconbtn .msi{width:20px;height:20px}
.pdform{border-top:0;padding-top:0;margin-top:0}
.chip2{display:inline-flex;align-items:center;gap:8px}.chip2 .msi{width:18px;height:18px;color:var(--muted)}
.chip2.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}.chip2.on .msi{color:var(--bg)}
.lbl{font-size:var(--t-sm);color:var(--muted)}.lbl b{color:var(--ink)}
.wheel{position:relative;display:grid;grid-template-columns:1fr 1.6fr 1.2fr;height:220px;border-radius:var(--r-l);background:var(--surface2);overflow:hidden;user-select:none}
.wband{position:absolute;left:8px;right:8px;top:88px;height:44px;border-radius:var(--r-m);background:var(--surface);box-shadow:0 0 0 1px var(--line);pointer-events:none}
.wcol{position:relative;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;outline:0;
  -webkit-mask-image:linear-gradient(transparent,#000 35%,#000 65%,transparent);mask-image:linear-gradient(transparent,#000 35%,#000 65%,transparent)}
.wcol::-webkit-scrollbar{display:none}
.wcol > i{display:block;height:88px}
.wit{display:block;width:100%;height:44px;border:0;background:none;scroll-snap-align:center;font:500 var(--t-h3)/44px inherit;color:var(--muted);font-variant-numeric:tabular-nums;padding:0;cursor:pointer}
.wit.on{color:var(--ink);font-weight:700;font-size:var(--t-h2)}
.wit[hidden]{display:none}

/* 3.24 medals as flat vector art (bronze, silver, gold; grey with a progress arc until earned) */
.mdl .art{display:block;width:76px;flex:none}
.mdl .art svg{display:block;width:100%;height:auto;overflow:visible}
.mdl.big .art{width:150px}
.celebrate .mdl.big .art{width:200px}
.bnote .mdl .art{width:44px}
.mdl:not(.done) .art{opacity:.95}
.mdl .shine{transform-box:view-box;transform:translateX(-10px) rotate(20deg);opacity:0}
@media (prefers-reduced-motion:no-preference){
  .mdl.big.done .shine,.mdl.pop .shine{animation:mshine 1.1s cubic-bezier(.2,0,0,1) .35s 1 both}
  .mdl.done:active .art{transform:scale(.96)}
  .mdl .art{transition:transform .15s}
}
@keyframes mshine{0%{opacity:0;transform:translateX(-10px)}15%{opacity:.6}100%{opacity:0;transform:translateX(120px)}}

/* 3.25 gift box for a new badge, quicker press feedback, login picture */
.gboxbtn{background:none;border:0;padding:0;width:200px;cursor:pointer;display:block}
.gbox{display:block;width:100%;height:auto;overflow:visible}
.gstage{position:relative;width:220px;height:230px;display:grid;place-items:center}
.gstage .mdl{position:relative;z-index:2}
.gstage .gboxbtn.gone{position:absolute;left:10px;bottom:-6px;z-index:1;pointer-events:none}
.grays{position:absolute;inset:-30px;border-radius:50%;z-index:0;background:repeating-conic-gradient(color-mix(in srgb,var(--accent) 22%,transparent) 0 8deg,transparent 8deg 24deg);opacity:0}
.celebrate.opened .glid{transform-box:fill-box;transform-origin:50% 100%}
@media (prefers-reduced-motion:no-preference){
  .gboxbtn.shake .gbox{animation:gshake 1.6s ease-in-out .5s 2}
  .gboxbtn.shake:active .gbox{transform:scale(.96)}
  .celebrate.opened .glid{animation:glid .7s cubic-bezier(.2,.7,.2,1) both}
  .celebrate.opened .gbase{animation:gbase .6s ease-in .25s both}
  .celebrate.opened .gstage .mdl{animation:grise .3s var(--ease) .15s both}
  .celebrate.opened .grays{animation:fresh .6s ease-out .5s both;opacity:1}
  .celebrate.opened .mdl .shine{animation:mshine 1.1s cubic-bezier(.2,0,0,1) .9s 2 both}
}
@media (prefers-reduced-motion:reduce){.gstage .gboxbtn.gone{display:none}.grays{display:none}}
@keyframes gshake{0%,70%,100%{transform:rotate(0)}76%{transform:rotate(-4deg)}82%{transform:rotate(4deg)}88%{transform:rotate(-3deg)}94%{transform:rotate(2deg)}}
@keyframes glid{to{transform:translate(70px,-150px) rotate(38deg);opacity:0}}
@keyframes gbase{to{transform:translateY(40px);opacity:0}}
@keyframes grise{from{transform:translateY(70px) scale(.3);opacity:0}}
@keyframes grays{to{transform:rotate(360deg)}}
/* every tappable thing answers the finger at once */
.tabs button,.seg button,.arow,.chip2,.pdrow .iconbtn,.xrow .arow,.mgrid button,.strip button,.whochip,.calttl,.incbar{transition:transform .12s cubic-bezier(.2,0,0,1),background-color .12s}
.tabs button:active,.seg button:active,.strip button:active b,.whochip:active,.calttl:active{transform:scale(.94)}
.arow:active,.incbar:active,.mgrid button:active{background:color-mix(in srgb,var(--ink) 6%,transparent)}
.btn.primary:active{filter:brightness(.94)}
.authart{display:block;width:100%;height:auto;border-radius:var(--r-xl)}
.empty .authart{max-width:260px;margin:0 auto 8px;border-radius:var(--r-l)}

/* 3.26 Painted avatar pictures in the picker */
.avgrid.art{grid-template-columns:repeat(auto-fill,minmax(60px,1fr));margin-top:6px}
.avopt.pic{overflow:hidden;background:var(--surface2)}
.avopt.pic img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.avpick b.small{display:block;margin-top:8px}

/* 3.28 Deeper colour schemes (white text on the colour) and readable task notes */
html[data-accent="forest"]{--accent:#314b3c;--accent-ink:#ffffff;--accent-soft:#e3ebe2}
html[data-accent="sea"]{--accent:#1f5f7a;--accent-ink:#ffffff;--accent-soft:#dfecf2}
html[data-accent="plum"]{--accent:#5b3f7a;--accent-ink:#ffffff;--accent-soft:#ebe4f1}
html[data-accent="terra"]{--accent:#b8441c;--accent-ink:#ffffff;--accent-soft:#f6e3d9}
@media (prefers-color-scheme:dark){html:not([data-theme="light"])[data-accent="forest"]{--accent:#8fc7a4;--accent-ink:#10231a}html:not([data-theme="light"])[data-accent="sea"]{--accent:#8cc4ea;--accent-ink:#0c2230}html:not([data-theme="light"])[data-accent="plum"]{--accent:#c9b3ee;--accent-ink:#231533}html:not([data-theme="light"])[data-accent="terra"]{--accent:#f0a07f;--accent-ink:#30140a}}
html[data-theme="dark"][data-accent="forest"]{--accent:#8fc7a4;--accent-ink:#10231a}html[data-theme="dark"][data-accent="sea"]{--accent:#8cc4ea;--accent-ink:#0c2230}html[data-theme="dark"][data-accent="plum"]{--accent:#c9b3ee;--accent-ink:#231533}html[data-theme="dark"][data-accent="terra"]{--accent:#f0a07f;--accent-ink:#30140a}
.tnote{white-space:pre-line;line-height:1.5}

/* 3.29 Default look = the Friendly.ge brand book: green for structure, one orange for action, sand for soft bands.
   --action is the colour of the main button; other schemes use their own colour for both. */
:root{--action:var(--accent);--action-ink:var(--accent-ink)}
html:not([data-accent]){--accent:#2563c9;--accent-ink:#ffffff;--accent-soft:#e3edfb;--action:#2563c9;--action-ink:#ffffff}
@media (prefers-color-scheme:dark){html:not([data-theme="light"]):not([data-accent]){--accent:#8db8f5;--accent-ink:#0b1d38;--accent-soft:#1f2c40;--action:#8db8f5;--action-ink:#0b1d38}}
html[data-theme="dark"]:not([data-accent]){--accent:#8db8f5;--accent-ink:#0b1d38;--accent-soft:#1f2c40;--action:#8db8f5;--action-ink:#0b1d38}
html[data-accent="amber"]{--accent:#f0901e;--accent-ink:#20251f;--accent-soft:#f6ecd6}
.btn.primary,a.btn.primary,.fab{background:var(--action);border-color:var(--action);color:var(--action-ink)}
.brand i{background:var(--action)}

/* 3.31 One-line header: the dot before the name is the connection status; a status line appears only when something is wrong */
.brand i.sdot{width:10px;height:10px;background:var(--ok)}
.brand i.sdot.s-old,.brand i.sdot.s-send{background:var(--warn)}.brand i.sdot.s-off{background:var(--muted)}
.brand i.sdot.s-send{animation:pulse 1s 3}
@media (prefers-reduced-motion:reduce){.brand i.sdot.s-send{animation:none}}
.subtop .syncrow i{display:none}
/* the weekly bar touches the bottom menu: no strip of the list showing between them */
.incbar{bottom:var(--tabs-full,calc(var(--tabs-h,62px) + env(safe-area-inset-bottom,0px)))}
/* tour cards: the crew sits on the same line as the kind and guest count, pushed to the right; it wraps under on narrow cards */
.acard .kindrow .crew{gap:4px 10px;color:var(--ink);font-size:var(--t-sm)}
.acard .kindrow .crew .p{display:inline-flex;align-items:center;gap:6px}
/* next tour: how soon, on the right, where the card was empty */
.card.nxt{position:relative;padding-right:112px}
.card.nxt .nxwhen{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:var(--accent-soft);color:var(--ink);border-radius:var(--r-pill);padding:6px 12px;font-weight:700;font-size:var(--t-sm);white-space:nowrap}

/* 3.32 Work and rest card */
.wrcard{gap:10px}
.wrline{display:flex;gap:10px;align-items:flex-start;line-height:1.45}
.wrline .msi{width:20px;height:20px;flex:none;color:var(--muted);margin-top:2px}
.wrearn{width:100%;text-align:left;justify-content:space-between;flex-wrap:nowrap;color:var(--ink)}
.wrearn b{white-space:nowrap}

/* 3.33 Work and rest: the person's wishes and the note */
.wrq{border-top:0;padding:0}.wrq summary{font-weight:600}.wrq .bar{gap:6px;margin:4px 0 8px}
.wrchip{min-width:44px}.wrchip[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.wrnote{border-top:1px solid var(--line);padding-top:8px}

/* 3.34 Badges page: three even columns on phones, a little air between the stars and the name */
@media (max-width:520px){.medals{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 8px}}
.mdl .mt{margin-top:2px}

/* 3.35 new-version line sits under the header on every page */
.nvban{margin:8px var(--gut) 0;width:calc(100% - var(--gut) - var(--gutr))}

/* 3.35 My road counters */
.roadc{gap:0}.roadrow{display:flex;justify-content:space-between;gap:12px;align-items:baseline;padding:8px 0;border-bottom:1px solid var(--line)}.roadrow b{font-size:var(--t-h3);white-space:nowrap}.roadc>.muted{padding-top:8px}

/* 3.36 Photo of the day, thanks, team goal, challenge of the week */
.phstrip{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);color:var(--ink);text-align:left}
.phstrip>.msi{width:24px;height:24px;flex:none;color:var(--muted)}.phstrip .grow-l{flex-direction:column;align-items:flex-start;gap:0;min-width:0}
.phs-th{display:flex;gap:4px;flex:none}.phs-i{width:40px;height:40px;border-radius:var(--r-m);object-fit:cover;background:var(--surface2);display:block}
.wait{background:var(--surface2)}
.phgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.phcard{display:flex;flex-direction:column;gap:6px;min-width:0}
.phpic{position:relative;padding:0;border:0;background:none;border-radius:var(--r-l);overflow:hidden;display:block;width:100%}
.phpic-i{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--r-l);display:block}
.phbest{position:absolute;left:8px;top:8px}
.phlike{gap:6px;min-width:64px}.phlike .msi{width:18px;height:18px}
.phlike[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent)}.phlike[aria-pressed="true"] .msi{color:var(--sick)}
.phbig{margin:8px 0}.phbig-i{width:100%;max-height:70vh;object-fit:contain;border-radius:var(--r-l);display:block;min-height:200px}
.pharch{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:8px;margin-top:8px}
.pharch-b{display:flex;flex-direction:column;align-items:center;gap:2px;padding:0;border:0;background:none;color:var(--muted)}
.pharch-i{width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--r-m);display:block}
.goalc .meter,.weekc .meter{width:100%}.weekc.done{border-color:var(--ok)}

/* 3.36 greeting on a birthday or holiday */
.greet{flex-direction:row;align-items:center;gap:12px;background:var(--accent-soft)}.greet svg{width:48px;height:48px;flex:none}.greet .grow-l{flex-direction:column;align-items:flex-start;gap:2px}

/* 3.37 Photo of the day: words as a paper label on the photo, a badge as a sticker, taller pictures */
.phgrid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.phpic-i{aspect-ratio:4/5}
.phpic,.phbig{position:relative}
.phcap{position:absolute;left:10px;right:10px;bottom:10px;background:rgba(255,255,255,.93);color:#20251f;border-radius:var(--r-m);padding:8px 12px;font-weight:600;font-size:var(--t-sm);line-height:1.3;text-align:left;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.phbig .phcap{font-size:var(--t-body);left:14px;right:14px;bottom:14px}
.phstick{position:absolute;right:8px;top:8px;width:56px;transform:rotate(8deg);filter:drop-shadow(0 1px 2px rgba(0,0,0,.25))}
.phstick.lg{width:84px;right:12px;top:12px}.phstick svg{display:block;width:100%;height:auto}
.phbest{left:8px;top:8px}
.phstk{display:flex;gap:8px;overflow-x:auto;padding:4px 0 8px;scrollbar-width:none}.phstk::-webkit-scrollbar{display:none}
.phstk-b{flex:none;width:56px;padding:2px;border:2px solid transparent;border-radius:var(--r-l);background:none}.phstk-b svg{display:block;width:100%;height:auto}
.phstk-b[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft)}

/* 3.39 Guide's own tour rows: the time and the guest count never break in the middle; the long name wraps instead */
.acard .ttl .st,.acard .ttl .cnt,.acard .ttl .num{white-space:nowrap}
.acard.mycard .ttl{display:block}
.acard.mycard .ttl .tname{overflow-wrap:anywhere}

/* 3.40 Photo of the day: one big place to tap, then a preview with one Post button */
.phdrop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:150px;padding:20px;border:2px dashed var(--line);border-radius:var(--r-l);background:var(--surface);color:var(--ink);text-align:center;cursor:pointer}
.phdrop .msi{width:36px;height:36px;color:var(--action)}.phdrop b{font-size:var(--t-h3)}
.phdrop:active{background:var(--surface2)}
.phprev{margin:8px 0}.phprev-i{display:block;width:100%;max-height:46vh;object-fit:cover;border-radius:var(--r-l);background:var(--surface2);min-height:160px}
.phsteps{margin-top:2px}
.bpmore{margin-top:8px}.bpmore>summary{font-weight:700;font-size:var(--t-h3)}.bpmore .medals,.bpmore .stats{margin-top:10px}

.banner.warn{background:color-mix(in srgb,var(--warn) 14%,var(--surface));border-color:var(--warn)}

/* 3.41 Week strip: two plain marks under each date. A dot with a number = tours; an umbrella with a number = people off. */
.smk{display:inline-flex;align-items:center;justify-content:center;gap:3px;height:18px;min-width:26px;padding:0 5px;border-radius:var(--r-pill);font-size:var(--t-cap);font-weight:600;line-height:1;color:var(--ink);text-transform:none;letter-spacing:0}
.smk.none{visibility:hidden}
.smk.tr i{width:8px;height:8px;border-radius:50%;background:var(--accent);flex:none}
.smk.tr.need{background:color-mix(in srgb,var(--warn) 22%,var(--surface))}.smk.tr.need i{background:var(--warn)}
.smk.off{color:var(--dayoff);background:color-mix(in srgb,var(--dayoff) 14%,var(--surface))}
.smk.off .msi{width:13px;height:13px}
.smk.off.me{background:var(--dayoff);color:#fff}
:root[data-theme="dark"] .smk.off.me{color:#0d1d24}
.strip button{gap:3px}
.striplg{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;padding:6px 2px 0}
.striplg span{display:inline-flex;align-items:center;gap:5px}.striplg .msi{width:14px;height:14px;color:var(--dayoff)}
.lgd{width:8px;height:8px;border-radius:50%;background:var(--accent);display:inline-block}.lgd.need{background:var(--warn)}
.offm .msi{width:12px;height:12px}
.tabic .msi{width:22px;height:22px}
.smk.gone{display:none}

/* 3.41 a photo that is still loading shows a quiet camera, not an empty square */
.wait{display:grid;place-items:center;color:var(--muted)}.wait .msi{width:40%;max-width:28px;height:auto;opacity:.5}

/* 3.42 bottom bar: every icon is the same line drawing in the same 20px box, so the four labels sit on one line */
@media (max-width:760px){.tabic{width:20px;height:20px;align-items:center;justify-content:center}.tabic>svg{width:20px;height:20px}.tabs button{justify-content:center}.tabs button>span:last-child{line-height:1.2}}

/* 3.43 the "All" chip grows with its word (Georgian is longer) instead of spilling over the edge; a date in a list row stays on one line */
.whochip.txt{width:auto;min-width:44px;padding:0 12px;border-radius:var(--r-pill);white-space:nowrap}
.lrow .lmain .nw{white-space:nowrap}

/* 3.44 month view: the month name between two clear arrows that name the month they lead to */
.mnav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin:4px 0 10px}
.mnav b{font-size:var(--t-h2);text-align:center;white-space:nowrap}
.mnav button{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--surface);color:var(--ink);font-weight:600;justify-self:start;max-width:100%;min-width:0}
.mnav button:last-child{justify-self:end}.mnav button>span[aria-hidden]{font-size:1.4rem;line-height:1}.mnav button .small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
@media (max-width:360px){.mnav button .small{display:none}}

/* 3.45 month arrows: round buttons with the arrow only */
.mnav button{width:44px;height:44px;padding:0;border-radius:50%;justify-content:center}

/* 3.46 month arrows row on phones: back, Today, forward (the month name stays in the header only) */
.mnav{grid-template-columns:44px 1fr 44px}.mnav .mtoday{width:auto;height:44px;border-radius:var(--r-pill);justify-self:center;padding:0 22px}
/* Team ready: a plain four-week calendar, every date shown */
.tcal{padding:12px}.tcgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.tcgrid .hd{text-align:center;font-size:var(--t-micro);color:var(--muted);text-transform:uppercase;padding:2px 0 4px}
.tcd{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:52px;padding:4px 0;border:1px solid var(--line);border-radius:var(--r-m);background:var(--surface);color:var(--ink)}
.tcd b{font-size:var(--t-body)}.tcd .pc{font-size:var(--t-micro);color:var(--muted)}
.tcd.past{opacity:.38;border-style:dashed}.tcd.tdy{border-color:var(--ink);border-width:2px}
.tcd.no{background:color-mix(in srgb,#b7791f 14%,var(--surface));border-color:color-mix(in srgb,#b7791f 45%,var(--line))}
.tcd.mine{background:var(--accent-soft)}.tcd .msi{position:absolute;top:3px;right:3px;width:12px;height:12px;color:var(--accent)}
.nomk{font-style:normal;font-weight:700;display:inline-grid;place-items:center;width:14px;height:14px;border-radius:50%;background:#8a5a12;color:#fff;font-size:10px;line-height:1}
.tcd .nomk{position:absolute;top:3px;right:3px}.tcd .hold{position:absolute;left:4px;top:4px;width:6px;height:6px;border-radius:50%;background:#8a6d1f}
.tcal .striplg{margin-top:10px;display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}.tcal .striplg .msi{width:14px;height:14px;vertical-align:-2px}
/* Work and rest: the animal of the week and three numbers first, the long text folded */
.wrtotem{display:flex;align-items:center;gap:14px;padding:12px;border-radius:var(--r-l);background:var(--accent-soft)}.wrtotem svg{width:64px;height:64px;flex:none}
.wrtotem .grow-l{flex-direction:column;align-items:flex-start;gap:2px;min-width:0}.wrtotem b{font-size:var(--t-h3)}.wrtotem b::first-letter{text-transform:uppercase}
.wrstats{grid-template-columns:repeat(3,minmax(0,1fr))}.wrstats .stat{display:flex;flex-direction:column;gap:2px;font-size:var(--t-cap)}.wrstats .stat b{font-size:var(--t-h3)}
/* folded sections look like something to open: a card row with the count by the title and Show / Hide on the right */
details.bpmore>summary{align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--r-l);background:var(--surface)}
details.bpmore>summary>span:first-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
details.bpmore>summary::after{content:attr(data-s);font-size:var(--t-cap);font-weight:600;color:var(--accent)}details.bpmore[open]>summary::after{content:attr(data-h)}
details.bpmore[open]>summary{border-radius:14px 14px 0 0}
/* badge names: a long word breaks with a hyphen at a syllable, never in the middle of nowhere */
.mdl b,.mdl .nm,.medals .mdl>span{hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word;word-break:normal}
.mdl .mt{hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word;word-break:normal;max-width:100%}

/* 3.47 agenda: one long list by date, like a printed schedule */
.agenda{padding:4px 16px}.agday{display:grid;grid-template-columns:150px minmax(0,1fr);gap:8px 16px;padding:12px 0;border-top:1px solid var(--line)}.agday:first-child{border-top:0}
.agd{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;color:var(--ink-soft,var(--ink))}.agd b{display:inline-grid;place-items:center;min-width:28px;height:28px;border-radius:var(--r-s);font-size:var(--t-body)}.agday.tdy .agd b{background:var(--ink);color:var(--surface)}
.agl{display:flex;flex-direction:column;gap:2px;min-width:0}
.agr{display:grid;grid-template-columns:110px 12px minmax(0,1fr) minmax(120px,auto);align-items:center;gap:10px;padding:6px 8px;border:0;border-radius:var(--r-s);background:none;color:var(--ink);text-align:left;font:inherit;width:100%}
button.agr{cursor:pointer}button.agr:hover{background:var(--surface2)}
.agt{text-align:right;color:var(--muted);white-space:nowrap}.agdot{width:12px;height:12px;border-radius:50%}.agb{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.agb .msi{width:16px;height:16px;vertical-align:-3px}
.agw{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;justify-content:flex-start}.agw .avatar{width:24px;height:24px;font-size:10px}.agr.cx{opacity:.6}
.whosel{width:auto;max-width:220px;min-height:40px}.vseg button{min-width:64px}
@media print{header.top,.tabs,.nav,.fab,.bar,.calhd,.banner,.subtop,#toasts,.demo,.vabar,.phstrip,.incbar,.homelinks,button.add{display:none!important}body{background:#fff}main{padding:0;max-width:none}.card,.agenda{border:0;box-shadow:none}.agr{break-inside:avoid}.only-wide{display:block!important}}

/* 3.48 guest marks: one small button each (the coloured tag is the button) */
.tagbtn{cursor:pointer;min-height:36px;padding:6px 14px;font:inherit;font-weight:600;font-size:var(--t-sm)}.tagbtn:active{transform:scale(.96)}
/* tour card buttons: smaller, in one tidy row */
.tacts{display:flex;flex-wrap:wrap;gap:8px}.tacts .btn{min-height:40px;padding:6px 14px;font-size:var(--t-sm);white-space:nowrap;flex:0 1 auto}.tacts .btn .msi{width:18px;height:18px}
@media (max-width:420px){.tacts .btn{flex:1 1 calc(50% - 8px)}.tacts .btn.primary{flex-basis:100%}}
/* Back to the card this one was opened from */
.backbtn{flex:none}.hdr.backrow{margin-bottom:-4px}
/* guest card: everything starts at the same left edge; refs are text to copy */
.sheet dl.fields{padding:0 2px;margin-left:0}.sheet details.sect>summary{padding-left:2px;padding-right:2px}
.refs{display:flex;flex-direction:column;gap:4px}.refrow{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
code.ref{font:inherit;font-variant-numeric:tabular-nums;letter-spacing:.02em;user-select:all;-webkit-user-select:all;cursor:text;background:var(--surface2);padding:2px 8px;border-radius:var(--r-s)}
.vipwhy{max-width:46ch;margin:6px auto 0;color:var(--ink);text-align:center;line-height:1.45}
/* month view: one frame on the chosen day; day-off mark in the top right corner, on the line of the date */
.mgrid button.sel,.mgrid button.sel:focus,.mgrid button.sel:focus-visible{outline:0}
@media (min-width:761px){.mgrid button{position:relative}.mgrid button>.offm{position:absolute;top:6px;right:6px;margin:0;width:auto}.mrow[data-drag]{cursor:grab}}

/* 3.49 guest card: the phone and a flag on one line */
.pflag{font-size:1.15em;margin-left:6px;vertical-align:-1px}

/* 3.51 guide and driver home on a computer: the same switches at the top as the office, one centred column, full-width week strip */
@media (min-width:761px){.ghome .list.home{max-width:none}.ghome .homelinks{display:none}.ghome .strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}}
/* a chosen day that is also a day off or a sick day keeps dark text (it was white on pink) */
.strip button.myoff[aria-pressed="true"]{color:var(--ink);border-color:var(--ink)}.strip button.myoff[aria-pressed="true"] b,.strip button.myoff[aria-pressed="true"] span{color:var(--ink)}
@media (min-width:761px){.ghome{display:flex;flex-direction:column;gap:12px}.ghome>.bar{margin:0}}

/* 3.52 tour card: one line of facts (kind, seats taken and free, languages, what guests paid) */
.tfacts{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}.tag.t-lang{background:var(--surface2);color:var(--ink);border-color:var(--line);font-weight:700;letter-spacing:.03em}
/* on a computer the tour card is a small window next to the tour that was clicked */
@media (min-width:761px){.overlay.popov{background:rgba(8,14,20,.18);display:block}.sheet.pop{position:fixed;width:460px;max-width:calc(100vw - 24px);border:1px solid var(--line);border-radius:var(--r-l);box-shadow:0 12px 40px rgba(8,14,20,.22);padding:16px;gap:10px;animation:none}
  .sheet.pop .hdr h2{font-size:var(--t-h3)}.sheet.pop .when{font-size:var(--t-body)}.sheet.pop .tacts .btn{min-height:36px;padding:4px 12px}}

/* guest card marks: marks first, the note, then the anonymous like and dislike on one quiet line */
.ratebox .likerow{flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);padding-top:10px;margin-top:2px}.ratebox .likerow .grow-l{min-width:140px}

/* tour card buttons on a phone: one compact row, icon above a short label */
/* 3.60: the five small icon-over-label buttons are gone; see "task 8" at the end of the file */

/* 3.55 Team ready calendar: pages of four weeks; own days off, sick days and waiting requests are on it */
.tcnav{display:flex;align-items:center;gap:8px;margin-bottom:8px}.tcnav b{flex:1;text-align:center;font-size:var(--t-sm)}.tcnav .iconbtn{width:40px;height:40px}
.tcd.mine{background:color-mix(in srgb,var(--dayoff) 18%,var(--surface));border-color:var(--dayoff)}.tcd.mine.sickd{background:color-mix(in srgb,var(--sick) 16%,var(--surface));border-color:var(--sick)}.tcd.mine.sickd .msi{color:var(--sick)}
.tcd.mine.pend{border-style:dashed;background:var(--surface)}.tcd.past.mine{opacity:.7}
.pendmk{display:inline-block;width:14px;height:14px;border:1.500px dashed var(--dayoff);border-radius:4px;vertical-align:-2px}
.tcd.past.mine:not(.pend){border-style:solid}

/* 3.56 best weeks for a rest */
.vcrow{width:100%;text-align:left;font:inherit;color:var(--ink);cursor:pointer;background:var(--surface)}.vcrow .lmain{flex-direction:column;align-items:flex-start;gap:2px}.vclist{gap:6px}

/* 3.57 one quick question at the top of the home page (how the tour went, or how you feel): five faces with a word */
.moods{display:grid;grid-template-columns:repeat(auto-fit,minmax(58px,1fr));gap:6px}
.moodb{display:flex;flex-direction:column;align-items:center;gap:3px;min-height:56px;padding:6px 2px;border:1px solid var(--line);border-radius:var(--r-m);background:var(--surface);color:var(--ink);font:inherit;font-size:var(--t-cap);line-height:1.15;text-align:center;cursor:pointer}
.moodb svg{width:26px;height:26px}.moodb:active{transform:scale(.96)}.moodcard,.ratecard{gap:8px}
.moodline svg{flex:none;margin-top:1px}.moodrow{display:inline-flex;gap:2px}.moodrow svg{width:18px;height:18px}
/* totem window: the numbers appear one by one, then the animal */
.ttsteps{display:flex;flex-direction:column;gap:6px}.ttstep{display:flex;justify-content:space-between;gap:12px;padding:8px 12px;border-radius:var(--r-m);background:var(--surface);border:1px solid var(--line)}
.ttres{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;padding:14px;border-radius:var(--r-l);background:var(--accent-soft)}.ttres svg{width:96px;height:96px}.ttres b{font-size:var(--t-h2)}.ttres b::first-letter{text-transform:uppercase}
@media (prefers-reduced-motion:no-preference){.ttstep,.ttres,.ttnote{opacity:0;animation:ttin .35s ease-out forwards;animation-delay:calc(var(--i) * .32s)}.ttres{animation-name:ttpop;animation-duration:.5s}
  @keyframes ttin{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes ttpop{0%{opacity:0;transform:scale(.6)}100%{opacity:1;transform:none}}}

.askoff{align-self:flex-start;color:var(--muted)}

/* 3.58 welcome guide */
.wlprog{display:flex;align-items:center;gap:10px}.wlprog .meter{flex:1}.wllist{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:4px}
.wlstep{gap:10px}.wlstep>b{font-size:var(--t-h3)}.wlacts{flex-wrap:wrap;align-items:center}.wlacts .lnk{margin-left:auto}
.wlflash{outline:3px solid var(--accent);outline-offset:4px;border-radius:var(--r-l);transition:outline-color .3s}

/* 3.58 time-off blocks can be opened and dragged */
[data-act=offopen]{cursor:pointer}[data-dragoff]{touch-action:manipulation;-webkit-user-select:none;user-select:none}
button.agr.off{width:100%;text-align:inherit;font:inherit;color:inherit;background:none;border:0}

/* 3.59 leaving a screen: the title row with the close button stays in view while a sheet scrolls; sheets pull down to close on phones */
.sheet{overscroll-behavior:contain}
.sheet>.hdr{position:sticky;top:-18px;z-index:4;background:var(--bg);margin:-10px -18px 0;padding:18px 18px 8px}
.sheet.pop>.hdr{top:-16px;margin:-10px -16px 0;padding:16px 16px 6px}
.sheet>.hdr .iconbtn[data-act=close],.sheet>.hdr .iconbtn[data-act=wllater]{min-width:44px;min-height:44px}
.celex{position:absolute;top:calc(10px + env(safe-area-inset-top,0px));right:12px;z-index:3}
.backbar{position:sticky;top:calc(var(--toph,57px) + var(--vabar-h,0px) + env(safe-area-inset-top,0px));z-index:6;background:var(--bg);padding:6px 0}
@media (max-width:760px){.backbar h2{font-size:var(--t-h3)}}
/* ===== 3.60 (12 Nov 2026): polish round. One-line "looking as" bar, pinned under the header ===== */
.vabar{position:sticky;top:calc(var(--toph,57px) + env(safe-area-inset-top,0px));z-index:8;padding:4px var(--gutr) 4px var(--gut);gap:12px;font-size:var(--t-sm)}
.vabar .vatxt{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vabar .btn{flex:none;white-space:nowrap;min-height:44px}
/* 3.60 task 4: quiet link to the "What I see" switches */
.seerow{display:flex}.seerow.c{justify-content:center}.seelnk{min-height:44px;color:var(--muted)}
/* 3.60 task 5: people off = one compact row per day (no card), one chip per person */
.offline{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:44px;padding:4px 0}
.offline>.msi{width:20px;height:20px;flex:none;color:var(--dayoff)}.offline.sick>.msi{color:var(--sick)}
.offline .offlbl{font-size:var(--t-sm);font-weight:600;color:var(--ink)}
.offchip{min-height:40px;padding:0 12px;font-size:var(--t-sm);font-weight:600;display:inline-flex;align-items:center;--c:var(--dayoff)}
.offline.sick .offchip{--c:var(--sick)}
.offchip.pend{border-style:dashed}
/* 3.60 task 6: week strip marks in one row, no numbers; the numbers are in the day header */
.smrow{display:flex;align-items:center;justify-content:center;gap:4px;height:18px}
.smrow .smk{min-width:0;padding:0;height:18px}.smrow .smk.none{display:none}
.smrow .smk.tr.need{background:none}
.smrow .smk.off{background:none}.smrow .smk.off .msi{width:14px;height:14px}
.smrow .smk.off.me{background:var(--dayoff);padding:0 8px}
.daycnt{white-space:nowrap}
/* 3.60 X2: Today row fully visible above the week strip; no shadow under the stuck strip (it has a hairline) */
@media (max-width:760px){.strip{padding-top:8px;margin:0}.homebar{margin-bottom:8px}}
/* 3.60 task 7: a warning is an amber icon and plain ink text; no "!" and no red text (red is for cancel and delete) */
.warnline{display:flex;gap:8px;align-items:flex-start;color:var(--ink);font-weight:600}
.warnline.soft{color:var(--ink);font-weight:400}
.warnline>.msi{width:20px;height:20px;flex:none;color:var(--warn);margin-top:2px}
.warnline>span{min-width:0}
.tcd .msi.nomk2,.striplg .msi.nomk2{color:var(--warn)}
/* 3.60 task 16: Team ready calendar. The number shows only below 100; the empty line keeps every cell the same height */
.tcd .pc{min-height:14px;line-height:14px}
.tcfull{margin-top:8px}
/* 3.60 task 8: tour card actions = one filled button (Edit) + quiet Move, Copy + More. Cancel and Delete (red) only inside More */
.tacts{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:8px}
.tacts .btn,.tacts .btn.primary{flex:none;flex-direction:row;min-width:0;min-height:44px;padding:4px 12px;gap:8px;font-size:var(--t-sm);line-height:1.2;white-space:nowrap;text-align:center;border-radius:var(--r-pill)}
.tacts .btn .msi{width:20px;height:20px;flex:none}
.tacts .tmore .msi{transition:transform var(--dur) var(--ease)}.tacts .tmore[aria-expanded="true"] .msi{transform:rotate(180deg)}
.tacts .tmorebody{grid-column:1 / -1;display:grid;gap:8px}
@media (max-width:420px){.tacts{grid-template-columns:repeat(3,minmax(0,1fr))}.tacts .btn.primary{grid-column:1 / -1}.tacts .btn{padding:4px 8px;gap:4px}}
/* 3.60 task 9: guest rows on one grid: avatar, name + count on one baseline, attendance, then a fixed place for message and call */
.grow.gst{padding:8px 0;gap:4px;min-height:56px;justify-content:center}
.gst .grid{display:grid;grid-template-columns:minmax(0,1fr) auto 96px;column-gap:12px;align-items:center}
.gst .gbtn{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:12px;align-items:center;min-height:44px}
.gst .gbtn .avatar{width:36px;height:36px}
.gst .gtxt{display:flex;flex-direction:column;align-items:stretch;gap:2px;min-width:0}
.gst .gline{display:flex;align-items:baseline;gap:8px;min-width:0}
.gst .gname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}
.gst .gcnt{flex:none;font-size:var(--t-sm);color:var(--muted);white-space:nowrap}
.gst .gsum{font-size:var(--t-sm);color:var(--muted)}.gst .gsum .due{font-size:var(--t-body)}
.gst .cbtns{display:flex;width:96px;gap:8px;justify-content:flex-end;flex:none}
@media (max-width:420px){.tacts{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr)}}
@media (max-width:360px){.tacts .btn:not(.primary):not(.danger):not(.tmore) .msi{display:none}}
@media (max-width:760px){.strip button{padding-top:0;gap:4px}}
@media (max-width:360px){.gst .gline{flex-wrap:wrap;gap:0 8px}.gst .gname{flex:1 1 auto}.gst .gcnt{max-width:100%;overflow:hidden;text-overflow:ellipsis}}
@media (max-width:760px){.strip button>span:first-child{line-height:16px}}
/* 3.60 tasks 10-15: Time off for guides and drivers. Requests and numbers first, the rest folded */
.tofolds{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.tofolds .bpmore{margin-top:0}.tofolds .bpmore>.card,.tofolds .bpmore>.list{margin-top:8px}
.tofolds .wrqsum{font-weight:400}
.wrq.card{border-top:1px solid var(--line);padding:16px}
/* task 13: every request row has the same shape: type and status left, dates and day count right, both on two lines */
.card.lrow.reqrow{padding:8px 16px;min-height:64px}
.reqrow .lmain{flex-direction:column;align-items:flex-start;gap:4px}
.reqrow .reqtags{display:flex;flex-wrap:wrap;gap:4px 8px}
.reqrow .ldate{display:flex;flex-direction:column;align-items:flex-end;line-height:1.3}
.reqrow .full,.reqrow .reqnote{grid-column:1 / -1}
.reqrow .reqnote{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.reqrow .reqnote>.muted{min-width:0;overflow-wrap:anywhere}.reqrow .reqnote .btn{flex:none;margin-left:auto}
.reqrow .actions.full:empty{display:none}
/* task 14: three number tiles of one height, one short label each */
.stats.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch}
.stats.three .stat{padding:12px;min-width:0}
.stats.three .stat b{font-size:var(--t-h2);font-weight:700;line-height:1.2}
.stats.three .lbl{font-size:var(--t-sm);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:360px){.stats.three .stat{padding:12px 8px}.stats.three .lbl{font-size:var(--t-cap)}}
/* task 15: Work and rest tiles: one number, one label */
.wrstats .stat{font-size:var(--t-sm);padding:12px;justify-content:flex-start}
.wrstats .stat b{font-size:var(--t-h2);font-weight:700;line-height:1.2}
.wrstats .lbl{font-size:var(--t-sm);line-height:1.3;overflow-wrap:anywhere}
@media (max-width:360px){.wrstats .stat{padding:12px 8px}.wrstats .stat b{font-size:var(--t-h3)}}
/* task 11: best weeks for a rest: the reason once above, each row only the dates and Ask */
.vcrow{min-height:48px;padding-block:4px}.vcrow .lmain{flex-direction:row}.vclist{gap:8px}
.vccard .wrnote{border-top:1px solid var(--line);padding-top:8px}
.tofolds .sect{border-top:0;padding-top:0}
.lrow .lmain>b{min-width:0;overflow-wrap:anywhere}
.stats.three .stat{padding:12px 8px 12px 12px}
@media (max-width:360px){.stats.three .stat{padding:12px 4px 12px 8px}.stats.three .lbl{font-size:var(--t-micro)}}
.wrstats{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:360px){.wrstats .lbl{font-size:var(--t-cap)}}
.wrstats{align-items:stretch}.wrstats .stat{align-self:stretch}
.vcrow .lnk{min-height:0;padding:0}.card.lrow.vcrow{padding-block:12px}
@media (max-width:420px){.stats.three .lbl{font-size:var(--t-cap)}}
/* task 22 row 13: calendar day cells 44px wide at 375 */
@media (max-width:760px){.tcgrid{gap:2px}}
@media (max-width:360px){.stats.three .lbl{font-size:var(--t-micro)}}
.card .stats.wrstats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
@media (max-width:420px){.wrstats .stat{padding:12px 8px}}
@media (max-width:420px){.wrstats .lbl{font-size:var(--t-cap)}}
/* 3.60 task 18: Me tabs. Shorter words, the chosen tab always in view; when the row is longer than the screen it runs off the right edge so the cut word shows there is more */
.seg.metabs{position:relative}.seg.metabs button{padding:8px 12px}
@media (max-width:760px){.seg.metabs{display:flex}.seg.metabs.more{margin-right:calc(-1 * var(--gutr));border-right:0;border-radius:var(--r-pill) 0 0 var(--r-pill)}}
/* 3.60 task 19: Telegram bot help: three numbered lines, one button */
.tgsteps{margin:0;padding-left:24px;display:flex;flex-direction:column;gap:8px;font-size:var(--t-body)}
.tgline{gap:8px}.tgline .tgcode{flex:1;min-width:0;overflow-wrap:anywhere}
#me-tgbot .bar{align-items:center;gap:8px 16px}
@media (max-width:420px){.seg.metabs button{padding:8px}}
/* 3.60 X4: one minimum height for buttons on phones */
@media (max-width:760px){.btn{min-height:44px}}
/* ===== 3.60 task 22: same things, same size (row numbers are from the design notes) ===== */
/* 5: month letters under the statistics bars fit their column; 21: bar corners on the scale */
.barcol .bm{font-size:var(--t-micro);line-height:1.2;color:var(--muted)}.barcol i{border-radius:var(--r-s) var(--r-s) 0 0}
/* 7: the bell keeps its 44px circle; the count is a small mark on its corner */
.top .iconbtn[data-act=bell]{width:44px;min-width:44px;padding:0}.top .iconbtn[data-act=bell] .badge{position:absolute;top:-4px;right:-4px}
/* 8: demo line (demo only) */
.banner.slim select{min-height:44px;padding:8px 12px;border-radius:var(--r-m)}
/* 11: fields 44px tall on phones */
@media (max-width:760px){.f input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),.f select,.inp,input[type=date],input[type=time],input[type=month]{min-height:44px}}
/* 14, 15: arrows are 44 x 44 */
.tcnav .iconbtn{width:44px;height:44px}
.seg button[data-act=nav],.seg button[data-act=year]{min-width:44px}
/* 16: score buttons 44px tall, still one row of eleven */
.scores button{min-height:44px}
/* 17: "How levels work" has a full-size tap area */
.lvhelp summary{display:inline-flex;align-items:center;min-height:44px}
/* 18: team contact buttons stay 40px, 8px apart (not on the narrowest phones) */
@media (min-width:361px){.ctlist .cbtns{gap:8px}}
/* 20: waiting mark corner on the scale */
.pendmk{border-radius:var(--r-s)}
/* 22: gaps on the 4px grid */
.strip button{gap:4px}.acard.mycard{gap:4px}.moodb{gap:4px}.smk{gap:4px}.pair .p{gap:4px}.tcd{gap:2px}details.sect summary{padding-top:12px;padding-bottom:12px}
/* 23: weekday names at the tiny size; no letter spacing on the date number */
@media (max-width:760px){.strip button{font-size:var(--t-micro)}.strip button b{letter-spacing:0}}
/* 24: on the tour card the date and time line is the loud one; the title is a card title */
@media (max-width:760px){.sheet>.hdr.thdr h2{font-size:var(--t-h3);font-weight:600;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}}
/* 25: Tasks: the Open / Done / All filter is quieter than the Tasks / Tours switch above it */
.tfilt .seg button[aria-pressed="true"]{background:var(--surface2);color:var(--ink)}
/* task 21: bottom bar labels: one size on phones (12px; 11px on the narrowest), one line, never cut with "…" */
@media (max-width:760px){.tabs button{font-size:var(--t-cap);text-overflow:clip}.tabs button>span:last-child{white-space:nowrap;max-width:100%}}
@media (max-width:360px){.tabs button{font-size:var(--t-micro);padding:6px 0;letter-spacing:0}}
/* on small phones each tab is as wide as its word needs (plus an equal share of the free space), so long Georgian and Russian words are never cut */
@media (max-width:420px){.tabs button{flex:1 1 auto}}
@media (max-width:760px){.seg.metabs.more{max-width:none;padding-right:var(--gutr)}}
/* a long choice (for example the Georgian "Strong contrast" text) wraps inside its button and never widens the page */
.seg.wrap button{white-space:normal;max-width:100%;text-align:center}
/* ===== 3.60 extra items from the Android recording ===== */
/* P1: a long press on something tappable must not select its text (Android showed "Copy / Select all"). Text worth copying stays selectable. */
[data-act]:not(input):not(select):not(textarea):not(form),button,summary,a.btn,a.ib,label.btn,.tag,.tabs button,.nav button{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
code.ref{-webkit-user-select:all;user-select:all;-webkit-touch-callout:default}
input,textarea,[contenteditable],.tgcode,.gaddr,.tnote,.reqnote .muted,.meet,dl.fields dd,a[href^="tel:"]:not(.ib),a[href^="mailto:"]:not(.ib){-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
/* P3: the "New badge" notice: an X, and it sits above the bottom menu */
.bnote{bottom:calc(var(--tabs-full,64px) + 12px)}
.bnote .bnx{flex:none;width:44px;min-width:44px;height:44px;padding:0;border:0}
/* P4: room under the last item on pages with a floating round button, so it can always be scrolled clear */
@media (max-width:760px){main.hasfab{padding-bottom:calc(160px + env(safe-area-inset-bottom,0px))}}
/* P5: text size "Very big" (the page is zoomed 1.3): bottom labels at the tiny size so five tabs fit; the looking-as bar stays one line */
html[data-fs="xl"] .tabs button{font-size:var(--t-micro);padding-left:0;padding-right:0;flex:1 1 auto}
html[data-fs="xl"] .vabar{gap:8px}html[data-fs="xl"] .vabar .btn{padding-left:12px;padding-right:12px}
@media (max-width:760px){main.hasfab.hasinc{padding-bottom:calc(212px + env(safe-area-inset-bottom,0px))}}
/* when room is short (Very big text, narrow phones) the bar shows the name alone; the full sentence is in the title */
html[data-fs="xl"] .vabar .vapre,html[data-fs="l"] .vabar .vapre{display:none}
@media (max-width:360px){.vabar .vapre{display:none}}

/* 3.60 tour card: the last action is named for what is inside it, and takes its own row */
@media (min-width:421px){.tacts{grid-template-columns:1.4fr 1fr 1fr auto}}
@media (max-width:420px){.tacts{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.tacts .tmore{grid-column:1 / -1;white-space:normal}}

/* 3.62 tour exchange: lock box on the tour card and the person form */
.xlock{display:flex;align-items:flex-start;gap:12px;padding:12px;border:1px solid var(--line);border-radius:var(--r-m);cursor:pointer}
.xlock input{flex:none;width:24px;height:24px;margin:0}.xlock>span{display:flex;flex-direction:column;gap:4px;min-width:0}

/* 3.63: how-to above the open tours */
.xhow{margin:0;padding-left:20px;display:grid;gap:4px;font-size:var(--t-body-s,14px)}
.xhow li{padding-left:2px}

/* 3.64: fixes from the iPhone screenshots of 12 Nov */
/* the selected day in the week strip: dark number on a dark fill was invisible when that day is a day off */
@media (max-width:760px){.strip button.myoff[aria-pressed="true"] b{background:var(--ink);color:var(--bg)}}
/* time-off rows: type and status side by side (one line), dates on the right */
@media (min-width:390px){.reqrow.nohead .lmain{flex-direction:row;flex-wrap:nowrap;align-items:center;gap:4px 8px}.reqrow.nohead .lmain .tag{white-space:nowrap}}
.card.lrow.reqrow{min-height:56px}
/* Month and Day summary: two real buttons, a clear space above them and above the photo card */
.homelinks{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}
.homelinks .btn{min-height:44px}
.phstrip{margin-top:16px}

/* 3.64: open tours, requests, notices, free-tour guests */
.xrow{flex-wrap:wrap}
.xrow .xbusy{flex:1 1 100%;margin:0 0 4px 0}
.xrow .xbusy{display:flex;gap:6px;align-items:flex-start}
.xrow.xreq .xbtns{display:flex;gap:8px;flex:none}
.xwho{display:flex;flex-wrap:wrap;gap:4px 8px;margin-top:4px}
.xwho .xw{display:inline-flex;align-items:center;gap:6px;font-size:var(--t-sm);color:var(--muted)}
.xwho .avatar,.xreq .avatar{width:28px;height:28px;flex:none}
.xreq .arow>.avatar{margin-top:2px}
.nitem .nacts{margin-top:8px;gap:8px;flex-wrap:wrap}
.nitem .small{margin-top:6px}
.gst.free{box-shadow:inset 4px 0 0 var(--warn);padding-left:8px}
.avatar.ini.free{background:color-mix(in srgb,var(--warn) 24%,var(--surface));border-color:var(--warn);box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--warn)}
.tsum .tag.t-free{margin-left:2px}

/* 3.64: same button style for request actions; icon + word */
.btn.sm .msi{width:20px;height:20px;flex:none;margin-right:6px}
.xrow .btn.sm{min-width:9.5rem;justify-content:center}
.dpbtn{display:flex;width:fit-content;min-width:0;margin-top:8px}
.nacts .btn.sm{min-width:0}
.btn.sm.dpbtn{white-space:nowrap;font-size:var(--t-sm);padding:4px 12px 4px 10px;min-height:40px}
.btn.sm.dpbtn .msi{width:18px;height:18px;margin-right:4px}

/* 3.64: phone month closer to the iPhone and Android calendar: one-letter weekdays, week numbers, big day numbers, a bar of tour colours under each day */
.mgrid .wk,.mgrid .wkh{display:none}
@media (max-width:760px){
  .mgrid{grid-template-columns:22px repeat(7,minmax(0,1fr))}
  .mgrid .hd{text-transform:none;font-weight:600;color:var(--ink);font-size:var(--t-cap);padding:4px 0 6px}
  .mgrid .wk,.mgrid .wkh{display:block}
  .mgrid .wk{align-self:start;padding-top:6px;font-size:var(--t-micro);font-weight:700;color:var(--muted);border-top:1px solid var(--line);text-align:left}
  .mgrid button{min-height:62px;border-top:1px solid var(--line);justify-content:flex-start;gap:6px;padding:6px 0 4px;border-radius:0}
  .mgrid button > b:first-child{font-size:1.3rem;font-weight:600;line-height:1;display:grid;place-items:center;min-width:34px;height:34px;padding:0;border-radius:50%}
  .mgrid button.we > b:first-child{color:var(--muted)}
  .mgrid button.today > b:first-child{background:var(--accent);color:var(--accent-ink);padding:0}
  .mgrid button.sel{box-shadow:none}
  .mgrid button.sel > b:first-child{box-shadow:0 0 0 2px var(--ink)}
  .mgrid button.today.sel > b:first-child{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--ink)}
  .mgrid .dots{flex-wrap:nowrap;gap:0;width:72%;max-width:56px;height:6px;min-height:6px;border-radius:3px;overflow:hidden;justify-content:stretch}
  .mgrid .dots i{flex:1 1 0;width:auto;height:6px;border-radius:0}
  .mgrid .dots span{display:none}
  .mgrid button:has(.dots i:only-child) .dots{max-width:24px}
}
.lgrow{flex-wrap:wrap;gap:6px 16px}

/* 3.64: one-tap notification banner */
.pushban{display:flex;flex-direction:column;align-items:stretch;gap:10px;text-align:left}
.pushban .pnacts{display:flex;flex-wrap:wrap;gap:8px}

/* 3.65: client search with suggestions */
.csrch{position:relative;flex:1 1 240px;max-width:360px}
.csrch .inp{width:100%}
.csug{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 4px);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-m);box-shadow:0 8px 24px rgba(0,0,0,.12);overflow:hidden}
.csug[hidden]{display:none}
.csi{display:grid;grid-template-columns:1fr auto;grid-template-areas:'n c' 'm c';gap:2px 10px;width:100%;min-height:52px;padding:8px 12px;text-align:left;background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;cursor:pointer}
.csi:first-child{border-top:0}
.csi:hover,.csi:focus-visible{background:var(--surface2);outline:none}
.csi:focus-visible{box-shadow:inset 0 0 0 2px var(--ink)}
.csn{grid-area:n;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.csm{grid-area:m;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.csc{grid-area:c;align-self:center;color:var(--muted)}

/* 3.65: tour did not happen (guest no-show) */
.nhbox{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:10px 0;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-m);background:var(--surface2)}
.nhbox span{display:flex;align-items:center;gap:8px;font-weight:600}
.qreasons{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 10px}

/* 3.65: phone links in notes, tasks on the calendar */
.sel,.sel *{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
a.phl{color:var(--accent);font-weight:600;text-decoration:underline;white-space:nowrap}
.tkline{display:flex;align-items:flex-start;gap:10px;margin:8px 0;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-m);background:var(--surface2)}
.tkline>input{width:20px;height:20px;flex:none;margin-top:2px}
.tkline .tkb{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.tkline label b{display:flex;align-items:center;gap:6px}
.tkline.late{border-color:var(--danger)}
.agr.tk .agb{font-weight:600}

/* 3.65: agenda people column, one booking code per chip */
.agr{grid-template-columns:110px 12px minmax(0,1fr) 250px}
.agw{flex-wrap:nowrap;justify-content:flex-start;gap:4px 14px}
.agp{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.refrow code.ref{margin-right:6px}
@media (max-width:760px){.agr{grid-template-columns:70px 12px minmax(0,1fr)}.agw{grid-column:3;flex-wrap:wrap}}
.agp>span:last-child{max-width:105px;overflow:hidden;text-overflow:ellipsis}
.agw{min-width:0;overflow:hidden}
.agr{grid-template-columns:110px 12px minmax(0,1fr) 290px}.agp>span:last-child{max-width:120px}

.gridwrap.gone{display:none!important}

/* one calendar frame for Day, Week, Month and Agenda (guides and office) */
.calframe{display:flex;flex-direction:column;gap:16px;width:100%}
@media (min-width:761px){.calframe{max-width:980px;margin:0 auto}.calframe.calwide{max-width:none}}

/* 3.69 calendar polish: agenda time under the tour name, wider gaps; day cards show guide and driver top right; month arrows around the title */
.agr{grid-template-columns:12px minmax(0,1fr) 350px;gap:10px 28px;padding:8px 10px}
.agb{white-space:normal;overflow:visible}
.agtt{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agt{display:block;text-align:left;font-size:var(--t-sm);margin-top:1px}
@media (max-width:760px){.agr{grid-template-columns:12px minmax(0,1fr)}.agw{grid-column:2}}
.ttlbar{flex-wrap:nowrap;gap:10px}.ttlbar h2{margin:0 4px}.ttlbar .spacer{flex:1}
.ttlbar .jump{width:44px;height:44px}
@media (min-width:761px){
  .acard:not(.mycard):not(.off){position:relative}
  .acard:not(.mycard):not(.off) .ttl{padding-right:200px}
  .acard:not(.mycard):not(.off) .kindrow .crew{position:absolute;top:10px;right:14px;flex-direction:column;align-items:flex-end;flex-wrap:nowrap;gap:2px}
}
/* 3.69 usage insight bars, badge like, bank check card */
.hrbars{display:flex;align-items:flex-end;gap:3px;height:84px;margin:6px 0 18px}
.hrbars span{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:2px}
.hrbars i{display:block;width:100%;min-height:2px;background:var(--accent);border-radius:3px 3px 0 0}
.hrbars em{font-style:normal;font-size:11px;color:var(--muted);height:14px;line-height:14px}
.blike .msi{width:20px;height:20px}
.blike[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent)}
.blike[aria-pressed="true"] .msi{color:var(--accent)}
.bkcheck{border-color:var(--accent)}
/* Time off on a computer: team off soon on the left, my requests on the right (phones keep my requests first) */
@media (min-width:761px){.tocols>.list:first-child{order:2}}

/* Timeline (3.70): one day, a column per guide or driver. Grey = not working, black line = now, seat counter on group tours. */
.tlwrap{overflow:auto;border:1px solid var(--line);border-radius:var(--r-m);background:var(--surface);max-height:78vh}
.tlhead,.tlbody{display:grid;min-width:fit-content}
.tlhead{position:sticky;top:0;z-index:3;background:var(--surface2);border-bottom:1px solid var(--line)}
.tlh{display:flex;align-items:center;gap:8px;padding:8px;border-left:1px solid var(--line);font-size:var(--t-sm);min-width:0}
.tlh .avatar{width:36px;height:36px;flex:none}
.tlh .r{display:block;color:var(--muted);font-size:var(--t-cap)}
.tlbody{position:relative}
.tlhours{position:relative;font-size:var(--t-cap);color:var(--muted)}
.tlhours span{position:absolute;right:6px;transform:translateY(-50%);background:var(--surface)}
.tlhours span:first-child{transform:none}
.tlcol{position:relative;border-left:1px solid var(--line);background-image:linear-gradient(var(--line) 1px,transparent 1px);background-size:100% 52px}
.tloff{position:absolute;left:0;right:0;background:rgba(120,120,120,.2);background-image:repeating-linear-gradient(135deg,rgba(120,120,120,.18) 0 6px,transparent 6px 12px);pointer-events:none;display:flex;align-items:flex-start;justify-content:center;padding-top:6px;font-size:var(--t-cap);color:var(--muted);font-weight:700}
.tlb{position:absolute;z-index:1;display:flex;flex-direction:column;gap:2px;text-align:left;overflow:hidden;padding:4px 6px;border:1px solid color-mix(in srgb,var(--k) 55%,var(--line));border-left:5px solid var(--k);border-radius:var(--r-s);background:color-mix(in srgb,var(--k) 14%,var(--surface));font-size:var(--t-sm);line-height:1.2;box-shadow:0 0 0 1px var(--surface)}
.tlb .tlt{overflow-wrap:anywhere}
.seat{align-self:flex-start;border-radius:var(--r-pill);background:var(--ink);color:var(--bg);padding:0 8px;font-size:var(--t-cap);font-weight:700;font-variant-numeric:tabular-nums}
.seat.full{background:var(--ok);color:var(--bg)}
.seat.over{background:var(--warn);color:var(--bg)}
.tlnow{position:absolute;left:0;right:0;z-index:2;height:0;border-top:2px solid var(--ink);pointer-events:none}
.tlnow span{position:absolute;left:4px;top:-11px;background:var(--ink);color:var(--bg);border-radius:var(--r-pill);padding:0 8px;font-size:var(--t-cap);font-weight:700;font-variant-numeric:tabular-nums}
[data-theme="dark"] .tloff{background-color:rgba(255,255,255,.08)}
.rpbar{flex-wrap:wrap;align-items:flex-end;gap:8px}
.rpf{display:flex;flex-direction:column;gap:2px;font-size:var(--t-cap);color:var(--muted)}
.rpbar .inp{min-height:44px}

/* tour card: type, guests and small facts sit under the tour name, in line with its text (emblem 34px + gap 10px) */
.acard:not(.mycard) .kindrow,.acard:not(.mycard) .metarow{padding-left:44px}
.acard .metarow{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center}
.acard .mchip{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink-soft,var(--ink));font-size:var(--t-sm);font-weight:600;white-space:nowrap}
.acard .mchip .msi{width:16px;height:16px;color:var(--muted)}
.acard .mchip.ok{border-color:color-mix(in srgb,var(--ok) 45%,var(--line))}.acard .mchip.warn{border-color:color-mix(in srgb,var(--warn) 55%,var(--line))}
.acard .mchip.pay{background:var(--accent-soft)}

/* Team tab */
.teamblk .tmday{display:flex;flex-direction:column;gap:6px;padding:6px 0;border-top:1px solid var(--line)}.teamblk .tmday:first-of-type{border-top:0}
.tmstat{text-align:left;cursor:pointer;border:1px solid var(--line);background:var(--surface)}.tmstat.hot{border-color:var(--warn);background:color-mix(in srgb,var(--warn) 10%,var(--surface))}

.bheart{display:inline-flex;align-items:center;gap:6px;margin-top:-4px}

@media print{body:has(.overlay) main,body:has(.overlay) header.top,body:has(.overlay) .nav{display:none!important}.overlay{position:static!important;background:none!important;display:block!important;padding:0!important}.sheet{width:100%!important;max-height:none!important;overflow:visible!important;border-radius:0!important;padding:0!important}.sheet .actions,.sheet .iconbtn{display:none!important}.sheet .pre{white-space:pre-wrap}}

.gicard{scroll-margin-top:72px}.jumpbar{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}

.busylist{display:grid;gap:6px}.busyrow{display:grid;grid-template-columns:58px minmax(0,1fr);gap:0 8px;align-items:center}.busyrow i{display:block;height:12px;border-radius:6px;min-width:2px}.busyrow .num{grid-column:2;white-space:normal}
.lv-ok{background:linear-gradient(90deg,#2f6b48,#6fbf8a)}.lv-mid{background:linear-gradient(90deg,#c98a1b,#f0b03f)}.lv-hi{background:linear-gradient(90deg,#c42d49,#ef6f6c)}.lv-none{background:var(--line)}
.busykey{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:6px}.busykey span{display:inline-flex;align-items:center;gap:6px}.busykey i{display:inline-block;width:14px;height:8px;border-radius:4px}
.wkchart{display:grid;gap:4px;margin-top:10px}.wkbars{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;height:120px;align-items:end}
.wkcol{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;height:100%;min-width:0}.wkcol i{display:block;width:70%;min-height:2px;border-radius:6px 6px 0 0}.wkcol .small{font-size:10px;white-space:nowrap}
.wkcol i.ok{background:linear-gradient(0deg,#2f6b48,#6fbf8a)}.wkcol i.mid{background:linear-gradient(0deg,#c98a1b,#f0b03f)}.wkcol i.hi{background:linear-gradient(0deg,#c42d49,#ef6f6c)}

.daysbars .dcol{min-width:0}.dstack{display:flex;flex-direction:column;width:70%;border-radius:6px 6px 0 0;overflow:hidden;min-height:2px}.dstack i{display:block;min-height:0}
.dtour{background:linear-gradient(0deg,#2f6b48,#6fbf8a)}.dfree{background:var(--line)}
.cmp .up{color:#2f6b48}.cmp .down{color:#a05a1a}

.dstack i{width:100%;border-radius:0;min-height:0}.dstack i.dtour{background:linear-gradient(0deg,#2f6b48,#6fbf8a)}.dstack i.dfree{background:var(--line)}
.busykey i.dtour,.busykey i.dfree{display:inline-block;width:12px;height:12px;border-radius:4px;margin-right:4px;vertical-align:-1px}

.hllist{display:flex;flex-direction:column;gap:2px;margin-top:6px}.hlrow{display:flex;gap:10px;align-items:baseline;padding:8px 0;border-bottom:1px solid var(--line);font-size:1.05rem}.hlrow:last-child{border:0}.hlrow .up{color:#2f6b48;font-size:.8em}

.thsort{background:none;border:0;padding:4px 0;font:inherit;color:inherit;cursor:pointer;font-weight:inherit;text-align:inherit}.thsort:hover{text-decoration:underline}
.gimon{height:170px}.gimon .barcol{gap:3px}.gimon .barcol .num{font-size:.7rem}.mover{padding:4px 0}

.tcd.hol:not(.mine){background:var(--tertiary-bg,#efe6f2)}.striplg .hold{display:inline-block;width:8px;height:8px;border-radius:50%;background:#8a6a1f;margin-right:4px}

.sheet .hdr .ttlwrap{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}.sheet .hdr .ttlwrap h2{margin:0;min-width:0;flex:1 1 140px}.sheet .hdr .hedit{flex:none;white-space:nowrap}

/* Computer view of the admin calendar: team panel on the left (Setmore-like) */
@media (min-width:900px){.calsplit .whosel{display:none}}

.offm{white-space:nowrap;max-width:100%}

/* The week list of a guide or driver: one card per day, so days do not run together */
.daycard{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);padding:10px 12px 12px;margin:0 0 12px;display:flex;flex-direction:column;gap:8px}
.daycard .dayhd{margin:0;padding:0}
.daycard.tdy{box-shadow:inset 0 0 0 2px var(--ink)}
.daycard.quiet{background:transparent;border-style:dashed;padding:8px 12px}
.daycard.quiet .nothing2{padding:0;margin:0}
.wssum{display:block;margin:2px 0 4px}.wsedit>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--accent,var(--ink));text-decoration:underline}hr.sep{border:0;border-top:1px solid var(--line);margin:8px 0;width:100%}
.xrow>.tag{flex:none;white-space:nowrap;font-size:var(--t-sm)}

.hnh{display:block;margin-top:18px}.hlrow .hn{color:var(--muted,#70766d)}

.tag.t-chg{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);font-weight:700;display:inline-flex;align-items:center;gap:4px}.tag.t-chg .msi{width:14px;height:14px}
.syncrow .sage{font-size:var(--t-sm)}

/* Back office on a computer: a flat left panel with every section, the chosen section on the right (phones keep the tiles) */
.admwrap{display:block}.admnav,.admhint{display:none}
@media (min-width:900px){
  .admwrap{display:grid;grid-template-columns:232px minmax(0,1fr);gap:28px;align-items:start}
  .admnav{display:flex;flex-direction:column;gap:2px;position:sticky;top:72px;max-height:calc(100vh - 88px);overflow:auto;padding:4px 0 24px}
  .admgrp{font-size:var(--t-cap);font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);padding:14px 12px 6px}
  .admitem{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;padding:8px 12px;border:2px solid transparent;border-radius:var(--r-m);background:none;color:var(--ink);font:inherit;font-size:var(--t-body);text-align:left;cursor:pointer}
  .admitem:hover{background:var(--surface2)}
  .admitem[aria-current="page"]{background:var(--surface2);border-color:var(--ink);font-weight:700}
  .admmain{min-width:0;display:flex;flex-direction:column;gap:16px}
  .admmain>h3,.admmain>.tiles{display:none}.admmain .backbar>.btn[data-act=admintab]{display:none}.admhint{display:block}
}

/* Admin calendar: a team panel that slides in from the left (like Setmore). Computer: pushes the calendar aside. Phone: slides over it. */
.sidebar-top{display:flex;align-items:center;gap:10px;min-height:44px;margin-bottom:6px}.sidettl{font-size:var(--t-h3);font-weight:600;color:var(--muted)}
.sidetoggle{flex:none}.sidetoggle .msi{width:24px;height:24px}
.sph{display:block;padding:14px 12px 6px;font-size:var(--t-sm);font-weight:700}
.cpp{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:6px 12px;border:0;border-radius:var(--r-m);background:none;color:var(--ink);text-align:left;cursor:pointer;font:inherit}
.cpp[hidden]{display:none}.cpp:hover{background:var(--surface2)}.cpp.on{background:var(--surface2);font-weight:700}.cpp .av,.cpp .avatar{flex:none}
.spsearch{display:flex;align-items:center;gap:8px;min-height:44px;margin:2px 4px 6px;padding:0 12px;border:1px solid var(--line);border-radius:var(--r-m);background:var(--surface);color:var(--muted)}
.spsearch input{flex:1;min-width:0;border:0;outline:0;background:none;font:inherit;color:var(--ink)}.spsearch:focus-within{border-color:var(--ink)}.spsearch .msi{width:20px;height:20px;flex:none}
.cxsw{margin-top:10px;border-top:1px solid var(--line);border-radius:0;padding-top:12px}.cxsw input{width:20px;height:20px}
.sideback{display:none}
@media (min-width:900px){
  .calsplit{display:grid;grid-template-columns:264px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:16px;transition:grid-template-columns .28s cubic-bezier(.2,0,0,1)}
  .calsplit.shut{grid-template-columns:0 minmax(0,1fr);column-gap:0}
  .sidebar-top{grid-column:1 / -1}
  .sidepanel{grid-column:1;grid-row:2;min-width:0;overflow:hidden;align-self:start;position:sticky;top:calc(var(--toph,0px) + 12px);max-height:calc(100vh - var(--toph,0px) - 24px)}
  .sidepanel .spin{width:264px;max-height:calc(100vh - var(--toph,0px) - 24px);overflow:auto;padding-bottom:16px;transition:opacity .2s}
  .calsplit.shut .sidepanel .spin{opacity:0}
  .calmain{grid-column:2;grid-row:2;min-width:0}
  .calsplit .whosel{display:none}
}
@media (max-width:899px){
  .calsplit{display:block}
  .sidepanel{position:static;max-height:0;overflow:hidden;margin:0;border:0 solid var(--line);border-radius:var(--r-m);background:var(--surface);transition:max-height .28s cubic-bezier(.2,0,0,1),margin .28s}
  .calsplit.open .sidepanel{max-height:min(70vh,560px);overflow:auto;border-width:1px;margin:0 0 10px}
  .sideback{display:none}
}
@media (prefers-reduced-motion:reduce){.calsplit,.sidepanel,.sidepanel .spin,.sideback{transition:none!important}}

.tnotebox{display:flex;flex-direction:column;gap:2px;margin:8px 0;padding:12px 14px;border-radius:var(--r-m);background:var(--surface2);border-left:4px solid var(--ink);font-size:var(--t-body,15px);line-height:1.4;white-space:pre-wrap}.tnotebox b{font-size:var(--t-sm);text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}

.gcx{opacity:.85}.gcx b{text-decoration:line-through;text-decoration-thickness:1px}.gcxform{margin:10px 0}

/* Several-day tours: one bar across the days of the week (computer month view) */
@media (min-width:900px){
  .mgrid button{position:relative}
  .mrow.lane{height:20px;flex:none;padding:0;overflow:visible;cursor:default}.mrow.lane:hover{background:none}
  .mbar{position:absolute;left:6px;z-index:2;height:20px;display:flex;align-items:center;gap:6px;padding:0 8px;box-sizing:border-box;border-radius:var(--r-s);border-left:4px solid var(--k);background:color-mix(in srgb,var(--k) 20%,var(--surface));font-size:var(--t-cap);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
  .mbar:hover{background:color-mix(in srgb,var(--k) 32%,var(--surface))}.mbar.cx{text-decoration:line-through;color:var(--muted)}
}

/* Settings fine tuning: languages as ticks, segmented buttons only as wide as their buttons */
.langpick{border:0;padding:0;margin:0;min-width:0;display:flex;flex-direction:column;gap:8px}.langpick legend{padding:0;margin-bottom:6px;color:var(--muted);font-weight:600;font-size:var(--t-sm)}
.langpick .checks label{min-height:40px}.langpick .checks input{width:20px;height:20px;flex:none}.langpick .checks label:has(input:checked){background:var(--surface2);border-color:var(--ink)}
.langpick .lother{max-width:360px}
.f .seg.wrap,.card .seg.wrap{align-self:flex-start;max-width:100%}
/* Choice buttons that can wrap (text size, colours, contrast, pay currency): separate pills, so a second line never looks cut off */
.seg.wrap{border:0;background:none;gap:6px;overflow:visible;border-radius:0}
.seg.wrap button{border:1px solid var(--line);background:var(--surface);min-height:40px;padding:8px 16px;border-radius:var(--r-pill)}
.seg.wrap button[aria-pressed="true"]{border-color:var(--accent);background:var(--accent);color:var(--accent-ink)}

/* Languages: an open list with ticks (like a select that allows several) */
.langpick{border:1px solid var(--line);border-radius:var(--r-m);background:var(--surface);padding:0}
.langpick>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 14px}.langpick>summary::-webkit-details-marker{display:none}
.langpick .lt{font-weight:600;color:var(--muted);flex:none}.langpick .lsum{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}
.langpick>summary .msi{width:24px;height:24px;color:var(--muted);flex:none;transition:transform .2s}.langpick[open]>summary .msi{transform:rotate(180deg)}
.langpick .lbody{border-top:1px solid var(--line);padding:10px 14px 14px;display:flex;flex-direction:column;gap:10px}
.langpick .checks{gap:2px}.langpick .checks label{border:0;border-radius:var(--r-s);padding:6px 4px;min-height:40px;background:none}.langpick .checks label:has(input:checked){background:var(--surface2);border:0}
.langpick .checks input{width:22px;height:22px;flex:none}

.verchip{margin:0 4px 0 auto;flex:none;padding:2px 9px;border-radius:var(--r-pill);background:var(--accent-soft,var(--surface2));border:1px solid var(--line);color:var(--ink);font-size:var(--t-sm);font-weight:700;letter-spacing:.01em;white-space:nowrap;vertical-align:middle}

/* 3.83: the week/month money bar and the bottom tabs are one block: same colour, no line between them */
body:has(.incbar) .tabs{border-top-color:transparent}

/* 3.83: a cancelled tour card is red-tinted (not blue-grey), so it stands out from live tours */
.acard.cancelled{--k:var(--danger);background:color-mix(in srgb,var(--danger) 8%,var(--surface));border-color:color-mix(in srgb,var(--danger) 40%,var(--line))}
.mycard.cancelled{background:color-mix(in srgb,var(--danger) 8%,var(--surface))}

/* 3.85: hover card on a name in the calendar side panel */
.pcard{position:fixed;z-index:60;width:290px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-m);box-shadow:0 10px 30px rgba(20,30,50,.16);padding:12px 14px;font-size:var(--t-sm);display:flex;flex-direction:column;gap:8px}
.pcard .pchead{display:flex;align-items:center;gap:10px}.pcard .pcrow{display:flex;gap:8px;align-items:flex-start;line-height:1.35}.pcard .pcrow .msi{width:18px;height:18px;flex:none;color:var(--muted);margin-top:1px}

/* 3.86: on a computer the screens use the whole window width (like Setmore), no empty blocks left and right */
@media (min-width:900px){
  :root{--gut:max(24px,env(safe-area-inset-left,0px));--gutr:max(24px,env(safe-area-inset-right,0px))}
  main{max-width:none}
}
@media (min-width:900px){.calframe{max-width:none}.list.home{max-width:none}}

.pcard .pcrow .cbtns{margin-left:auto;display:inline-flex;gap:4px}.pcard .pcrow>span:first-of-type{min-width:0;overflow-wrap:anywhere}.pcard .pcrow svg.ico,.pcard .pcrow>svg{flex:none}
.pcard .pccar{width:100%;max-height:150px;object-fit:cover;border-radius:var(--r-m);border:1px solid var(--line)}
.carphoto{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.carphoto img{width:120px;height:80px;object-fit:cover;border-radius:var(--r-m);border:1px solid var(--line)}

/* 3.87 timeline: many people fit better, the hour column stays in view while scrolling sideways, the scrollbar stays on screen */
.tlwrap{max-height:calc(100vh - 150px);min-height:420px}
.tlcorner{position:sticky;left:0;z-index:4;background:var(--surface2)}
.tlhours{position:sticky;left:0;z-index:3;background:var(--surface);border-right:1px solid var(--line)}
.tlhead.tight .tlh{flex-direction:column;align-items:flex-start;gap:4px;padding:6px}.tlhead.tight .tlh>div{min-width:0;max-width:100%}.tlhead.tight .tlh b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tlhead.tight .tlh .avatar{width:28px;height:28px}
.pccars{display:flex;gap:6px}.pccars .pccar{flex:1;min-width:0;max-height:120px}.carbox{border:1px solid var(--line)}.carnoph{display:flex;align-items:center;justify-content:center;width:120px;height:80px;border-radius:var(--r-m);background:var(--surface2);color:var(--muted)}.carnoph .msi{width:32px;height:32px}
.placelist{max-height:260px;overflow:auto;margin-top:8px}.placepick .lbody{display:flex;flex-direction:column}
.swatches{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.sw{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:4px 12px 4px 8px;border:2px solid var(--line);border-radius:var(--r-pill);background:var(--surface);cursor:pointer;font-size:var(--t-sm)}.sw input{position:absolute;opacity:0;pointer-events:none}.sw i{width:22px;height:22px;border-radius:50%;border:1px solid var(--line);flex:none}.sw:has(input:checked){border-color:var(--ink);background:var(--surface2);font-weight:700}.sw:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.f .sw,.carbox .sw{flex-direction:row;align-items:center;font-weight:600}.carbox .sw:has(input:checked){font-weight:700}

/* car form extension (3.90) */
.carbox .two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.carbox select{width:100%;min-height:44px;font-size:16px}
.carbox .sect{border-top:1px solid var(--line,#ddd);padding-top:10px;margin-top:6px}
.carbox .sect summary{font-weight:700;font-size:17px;min-height:44px;display:flex;align-items:center;cursor:pointer}
.carbox .swrow,.card .swrow{display:flex;align-items:center;gap:10px;min-height:44px;font-size:16px}
.carbox .fine{margin:8px 0}
.carbox .tag{margin-left:6px}

/* 3.91 tour card: no scrollbar, icon-only kind chip, clear guest count, equal bottom buttons, draggable top bar */
.sheet.tview{scrollbar-width:none;-ms-overflow-style:none}
.sheet.tview::-webkit-scrollbar{display:none;width:0;height:0}
.sheet .hdr .tag.kindic{width:40px;height:40px;min-height:40px;padding:0;justify-content:center;border-radius:var(--r-pill)}
.sheet .hdr .tag.kindic .msi{width:22px;height:22px;margin:0}
.sheet .hdr .hedit{min-height:40px}
.sheet.pop>.hdr.thdr{cursor:grab;touch-action:none;user-select:none}
.sheet.pop>.hdr.thdr:active{cursor:grabbing}
.sheet.pop>.hdr.thdr button,.sheet.pop>.hdr.thdr a{cursor:pointer}
.sheet h3.gh{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.sheet h3.gh .gtot{font-size:var(--t-sm);font-weight:600;color:var(--muted)}
.sheet .tacts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.sheet .tacts .btn,.sheet .tacts .btn.tmore{flex-direction:column;justify-content:center;gap:4px;min-height:60px;padding:8px 6px;white-space:normal;text-align:center;line-height:1.15;border-radius:var(--r-m,16px);font-size:var(--t-sm)}
.sheet .tacts .btn .msi{width:22px;height:22px;margin:0}
.sheet .tacts .tmore{grid-column:auto}
.sheet .tacts .tmorebody{grid-column:1 / -1;display:grid;gap:8px}
.sheet .tacts .tmorebody .btn{flex-direction:row;min-height:44px}
@media (max-width:420px){.sheet .tacts{grid-template-columns:repeat(3,minmax(0,1fr))}.sheet .tacts .tmore{grid-column:auto}}
/* 3.91 tour card: guide, driver, guest avatars and the tour icon all 40px, with the same gap from the frame (the tour icon stays a rounded square, people stay round) */
.sheet .glist .grow,.sheet .glist.crew .grow{padding-left:12px;padding-right:12px}
.sheet .glist .avatar,.sheet .gst .gbtn .avatar,.sheet .glist.crew .avatar{width:40px;height:40px;min-width:40px}
.sheet .gst .gbtn{grid-template-columns:40px minmax(0,1fr)}
.sheet .hdr .emb.big,.sheet .hdr .emb.big.ic{width:40px;height:40px;min-width:40px;border-radius:12px;margin-top:0;display:inline-flex;align-items:center;justify-content:center}
.sheet .hdr .emb.big.ic .msi{width:24px;height:24px}
@media (max-width:420px){.sheet .glist .grow,.sheet .glist.crew .grow{padding-left:8px;padding-right:8px}.sheet .gst .grid{column-gap:8px}.sheet .gst .gbtn{column-gap:10px}.sheet .tacts .btn,.sheet .tacts .btn.tmore{padding:6px 4px;font-size:var(--t-cap)}}
/* 3.91 switches: text on the left, a real on/off switch on the right (I have a car, child seat, fines) */
.carbox .swrow,.card .swrow,.swrow{display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;text-align:left;font-size:16px;font-weight:600;color:var(--ink);cursor:pointer}
.swrow input[type=checkbox]{-webkit-appearance:none;appearance:none;flex:none;position:relative;width:48px;height:28px;margin:0;border-radius:var(--r-pill);border:2px solid var(--line);background:var(--surface2);cursor:pointer;transition:background .2s,border-color .2s}
.swrow input[type=checkbox]::after{content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:var(--muted);transition:transform .2s,background .2s}
.swrow input[type=checkbox]:checked{background:var(--accent);border-color:var(--accent)}
.swrow input[type=checkbox]:checked::after{transform:translateX(20px);background:#fff}
.swrow input[type=checkbox]:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 45%,transparent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.swrow input[type=checkbox],.swrow input[type=checkbox]::after{transition:none}}

/* pay statement: dashboard, one line per tour, corrections */
.paydash .stats{margin:0}
.paydash .stat b{overflow-wrap:anywhere}
.plist{display:flex;flex-direction:column}
.prow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}
.prow .pt{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0}
.prow .ptitle{overflow-wrap:anywhere}
.prow .pm{grid-column:1;display:flex;flex-wrap:wrap;gap:6px}
.prow .pv{grid-column:2;grid-row:1 / span 2;display:flex;align-items:center;justify-content:flex-end}
.prow .pa{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.prow .pinp{width:96px;text-align:right;min-height:40px}
.prow .pinp[readonly]{background:transparent;border-color:transparent;font-weight:700}
@media (max-width:480px){
  .prow{grid-template-columns:minmax(0,1fr)}
  .prow .pm{grid-column:1}
  .prow .pv{grid-column:1;grid-row:auto}
  .prow .pa{justify-content:flex-start}
  .prow .pv{justify-content:flex-start}
}
@media (max-width:480px){
  .paydash .stats{display:flex;flex-direction:column;gap:6px}
  .paydash .stat{display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;text-align:left}
  .paydash .stat b{font-size:20px}
}
.prow .pt>.num{flex-basis:100%}
.gmoney{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.gmoney:empty{display:none}
.gmoney .gm{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;min-width:0;overflow-wrap:anywhere}
@media (max-width:420px){.gmoney{grid-template-columns:1fr}.gmoney .gm{flex-direction:row;justify-content:space-between;align-items:center}}
.ctab{display:flex;flex-direction:column}
.crow{display:grid;grid-template-columns:minmax(0,1fr) 110px auto;gap:8px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
.crow .cpct{display:flex;align-items:center;gap:6px}
.crow .cpct .inp{width:100%;min-height:40px}
.crow .btn{justify-self:end}
@media (max-width:420px){.crow{grid-template-columns:minmax(0,1fr) 84px auto;gap:6px}.crow .btn{padding:0 12px}}
.nextrow .earnc{text-align:left;align-items:flex-start}
@media (max-width:1000px) and (min-width:761px){.nextrow{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.nextrow .nxt{grid-column:1 / -1}}
@media (max-width:760px){.nextrow .earnc{flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px 10px}}
.mrow .mpay{display:none;margin-left:auto;font-size:11px;color:var(--muted);align-items:center;gap:2px}
.mrow .mpay .msi{width:14px;height:14px}
@media (min-width:700px){.mrow .mpay{display:inline-flex}}
.prow .pcur{min-width:30px}
.prow .pinp{background:var(--surface);border-color:var(--line)}
.prow .pinp[readonly]{background:var(--surface)}
.earnhero{align-items:flex-start;gap:2px}
.bignum{font-size:44px;line-height:1.1;font-weight:800;letter-spacing:-.5px;overflow-wrap:anywhere}
.bignum .bigcur{font-size:20px;font-weight:600;color:var(--muted)}
.nextrow .earnc .bignum{font-size:34px}
@media (max-width:760px){.nextrow .earnc .bignum{font-size:28px}}
.xguides .xg{display:grid;grid-template-columns:minmax(0,1fr) 96px auto 44px;gap:8px;align-items:center}
.xguides .xg .inp{width:100%;min-width:0}
@media (max-width:420px){.xguides .xg{grid-template-columns:minmax(0,1fr) 84px auto 44px;gap:6px}}

/* pay statement, simple version: tick and cross buttons, one cash field, correction rows as date | reason | amount */
.okbtn[disabled]{opacity:.35}
.okbtn:not([disabled]){background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.iconbtn.okbtn,.iconbtn.xbtn{min-width:44px;height:44px;padding:0}
.prow .pa{flex-wrap:nowrap}
.paydash .cashbox{display:flex;flex-direction:column;gap:2px}
.paydash .cashin{width:100%;min-width:0;font-size:var(--t-h1);font-weight:700;line-height:1.1;padding:2px 8px;margin:0 0 2px -8px;max-width:calc(100% + 8px)}
.adjrow{display:grid;grid-template-columns:150px minmax(0,1fr) 110px 34px 44px 44px;gap:8px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.adjrow .adjn{overflow-wrap:anywhere;min-width:0}
.adjrow .adja{width:100%;min-width:0;text-align:right}
.adjrow .adjd{min-width:0;width:100%}
.adjrow.ro{grid-template-columns:auto minmax(0,1fr) auto;gap:4px 12px}
.adjrow.ro .adja{width:auto;white-space:nowrap}
@media (max-width:560px){
  .adjrow:not(.ro) .adjd{grid-column:1;grid-row:1}
  .adjrow:not(.ro) .adjn{grid-column:2 / -1;grid-row:1}
  .adjrow:not(.ro) .adja{grid-column:1;grid-row:2;text-align:left}
  .adjrow:not(.ro) .adjc{grid-column:2;grid-row:2}
  .adjrow:not(.ro) .okbtn{grid-column:3;grid-row:2}
  .adjrow:not(.ro) .xbtn{grid-column:4;grid-row:2}
}
@media (max-width:480px){.paydash .cashbox{flex-direction:row-reverse;align-items:center}.paydash .cashin{width:130px;font-size:20px;text-align:right;margin:0;padding:6px 10px}}
/* add a correction: date | reason | amount | button on one line; on a phone date and amount, then reason, then the button */
.adjform{display:grid;grid-template-columns:150px minmax(0,1fr) 120px auto;gap:8px;align-items:end}
.adjform .adjl{display:flex;flex-direction:column;gap:4px;font-size:var(--t-small,13px);color:var(--muted);min-width:0}
.adjform .adjl .inp{width:100%;min-height:44px}
@media (max-width:560px){
  .adjform{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .adjform .adjl.am{order:2}.adjform .adjl.rs{order:3;grid-column:1 / -1}.adjform .btn{order:4;grid-column:1 / -1}
  .adjrow:not(.ro){grid-template-columns:150px minmax(0,1fr) 44px 44px}
}

/* pay statement: no frame inside a frame; the cash number is a plain number with a dashed underline */
.card.paydash{background:none;border:0;box-shadow:none;padding:0}
.paydash .cashin{border:0;border-bottom:2px dashed var(--muted);border-radius:0;background:transparent;padding:0 0 2px;margin:0;max-width:100%}
.paydash .cashin:focus{border-bottom-style:solid}
/* guide's own pay statement: one tidy column, corrections right under the totals, "Pay not right?" as a small link on the chips line */
.stmt{max-width:720px;display:flex;flex-direction:column;gap:12px}
.stmt .plist{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:0 14px}
.stmt .prow:first-child{border-top:0}
.prow .dplnk{display:inline-flex;align-items:center;gap:4px;margin-left:auto;min-height:32px;padding:0 4px;white-space:nowrap}
.prow .dplnk .msi{width:18px;height:18px}
/* guide's Pay page on a computer: the period switch (Month, Last month, This year...) sits in a left panel, the statement is one column on the right */
@media (min-width:900px){
  .paysplit{display:grid;grid-template-columns:230px minmax(0,720px);gap:24px;align-items:start}
  .payside{position:sticky;top:12px}
  .payside .seg{display:flex;flex-direction:column;align-items:stretch;gap:4px;border-radius:16px;padding:6px;height:auto}
  .payside .seg button{text-align:left;justify-content:flex-start;border-radius:12px}
  .payside .bar,.payside .f{margin-top:10px}
  .paymain .stmt{max-width:none}
}
/* Needs review card (office calendar) and one-tap staff suggestions (Tasks) */
.nrcard{margin-bottom:12px}
.nrblock{display:flex;flex-direction:column;gap:4px;padding:8px 0;border-top:1px solid var(--line)}
.nrlist{display:flex;flex-wrap:wrap;gap:4px 12px}
.nrt{min-height:36px;text-align:left}
.qfits{display:flex;flex-direction:column;gap:6px;margin:-2px 0 10px}
.qfit{width:100%;text-align:left}

/* 3.97 result of a pasted e-mail */
.card.pbres.ok{border-color:var(--ok)}.card.pbres.warn{border-color:var(--warn,#b8441c)}.card.pbres .msi{vertical-align:-4px}

/* 3.98 "We get" box on the guest card: typed amount, placeholder shows the fixed-% value */
.gmoney .gmin{cursor:text}.gmoney .gmin .row{gap:6px;align-items:center}.gmoney .gmin input{flex:1;min-width:0;min-height:40px;font-weight:700;font-size:var(--t-body)}.gmoney .gmin input::placeholder{color:var(--muted);font-weight:500}
@media (max-width:420px){.gmoney .gmin{flex-direction:column;align-items:stretch}}

/* 3.98 "Not your language" tag in Open tours: may wrap, never pushes into the tour name */
.xrow .tag.xlang{flex:0 1 auto;max-width:44%;white-space:normal;line-height:1.25;text-align:left}

/* 3.98 The day row you swipe through (owner's video): 7 days fill the width, swipe for earlier/later weeks; weekend names red;
   a small upright month label where a month starts. Same look as the old 7-day strip otherwise. */
.strip.sroll,.ghome .strip.sroll{display:flex;grid-template-columns:none;gap:4px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scroll-padding-left:0;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.strip.sroll>button{flex:0 0 calc((100% - 24px) / 7);scroll-snap-align:start;min-height:52px}
.strip.sroll>button.we>span:first-child{color:var(--danger)}
.strip.sroll>button.we[aria-pressed="true"]>span:first-child{color:inherit}
.strip.sroll .smon{flex:0 0 16px;align-self:center;writing-mode:vertical-rl;transform:rotate(180deg);font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);line-height:16px;text-align:center;user-select:none}
@media (max-width:760px){
  .strip.sroll,.ghome .strip.sroll{gap:0;scrollbar-width:none}
  .strip.sroll::-webkit-scrollbar{display:none}
  .strip.sroll>button{flex-basis:calc(100% / 7)}
}
@media (max-width:360px){.strip.sroll,.ghome .strip.sroll{gap:0}.strip.sroll>button{flex-basis:calc(100% / 7)}}
@media (prefers-reduced-motion:reduce){.strip.sroll{scroll-behavior:auto}}

/* 3.98 pay typed in another currency: a small currency picker next to the amount, the conversion on its own line under the row */
.prow .pa{flex-wrap:wrap}
.prow .pcursel{width:auto;min-width:72px;min-height:40px;padding-right:28px}
.prow .pconv{flex-basis:100%;text-align:right}.prow .pconv:empty{display:none}
@media (max-width:760px){.prow .pconv{text-align:left}}

/* 3.99 (owner's iPhone screenshots, 16 Nov): the page must never be wider than the phone. On iPhone Safari something ~36px wider than the
   screen made the whole app zoom out a little (uneven margins, top bar not reaching the right edge). Rows meant to swipe (day row, tables,
   tabs) keep their own scrolling; only the page itself is held to the screen width. On the root element this applies to the window, so the
   sticky top bar and day row keep working. */
/* 3.102: no overflow on html/body any more: on iPhone Safari it made the fixed bottom bar drift up the page and the sticky day row shake
   during scrolling (owner's videos, 17 Nov). The width guard now sits on the content only. */
@supports (overflow:clip){main,#modal,.overlay .sheet{overflow-x:clip}}
@supports not (overflow:clip){main{overflow-x:hidden}}
body{max-width:100%}

/* 3.99 Nothing may make the page wider than the phone: Safari would zoom the whole app out (owner's screenshot, 17 Nov).
   clip (not hidden) keeps sticky headers working. */
html,body{max-width:100%}
html.fs-noclip main,html.fs-noclip #modal{overflow-x:visible}   /* tests only (tests/demo-config.js) */

/* 3.99 Micro animations (owner, 17 Nov). Short, transform/opacity only (cheap on old phones). The global
   prefers-reduced-motion rule at the top switches all of them off; the JS skips its waits then too. */
@media (prefers-reduced-motion:no-preference){
  /* 1 messages slide up and fade out */
  .toast{animation:fx-toast .22s cubic-bezier(.2,0,0,1) both}
  .toast.fx-out{animation:fx-toast-out .2s ease-in both}
  @keyframes fx-toast{from{opacity:0;transform:translateY(10px) scale(.98)}}
  @keyframes fx-toast-out{to{opacity:0;transform:translateY(6px)}}
  /* 2 a saved row glows green once */
  .fx-saved{animation:fx-saved .9s ease-out}
  @keyframes fx-saved{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--ok) 55%,transparent);background-color:color-mix(in srgb,var(--ok) 14%,transparent)}100%{box-shadow:0 0 0 10px transparent;background-color:transparent}}
  /* 3 a count that changed pops once */
  .fx-bump{animation:fx-bump .36s cubic-bezier(.3,1.6,.5,1)}
  @keyframes fx-bump{0%{transform:scale(1)}40%{transform:scale(1.35)}100%{transform:scale(1)}}
  /* 4 an assigned tour / suggestion slides away */
  .fx-leave{animation:fx-leave .22s ease-in forwards;pointer-events:none}
  @keyframes fx-leave{to{opacity:0;transform:translateX(24px)}}
  /* 5 a task ticked done: the tick pops, the row dims */
  .fx-done{transition:opacity .25s ease;opacity:.5}
  .fx-done input[type=checkbox]{animation:fx-bump .3s cubic-bezier(.3,1.6,.5,1)}
  /* 6 the selected day changes colour smoothly; result cards and new rows fade in */
  .strip>button,.strip>button b,.strip>button span{transition:background-color .16s ease,color .16s ease,border-color .16s ease}
  .card.pbres{animation:fresh .24s ease-out}
}
/* 3.99 guest names on the calendar card */
.acard .gnames{display:flex;align-items:center;gap:4px;min-width:0;margin-top:2px}.acard .gnames>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.acard .gnames .msi{font-size:16px}
/* 3.100 Back office > Tour names: one row per schedule name; the Save bar stays in view */
.tllist .tlrow select{width:100%;min-height:44px}.tllist .tlrow.done{opacity:.8}
.stickbar{position:sticky;bottom:0;z-index:5;background:var(--bg);padding:10px 0;border-top:1px solid var(--line);gap:10px;flex-wrap:wrap}
@media (max-width:760px){.stickbar{bottom:var(--tabs-full,calc(var(--tabs-h,62px) + env(safe-area-inset-bottom,0px)))}}   /* above the bottom menu on phones */
/* ---------- Money module (money.js): tiles, bars, bank card, activity list ---------- */
.mn .mn-top{flex-wrap:wrap;gap:8px}
.mn .seg button .msi{margin-right:4px}
.mn-top>.seg:first-child{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;border-radius:16px}
.mn-top>.seg:first-child button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 2px;border-radius:14px;font-size:.9rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative}
.mn-top>.seg:first-child button .badge{position:absolute;top:2px;right:4px}
.mn-top>.seg:first-child button .msi{margin:0;width:22px;height:22px}
.mn-hero{display:flex;flex-direction:column;gap:4px}
.mn-hero .bignum{font-size:2.4rem;line-height:1.1}
.mn-hero.loss .bignum{color:var(--danger)}
.mn-gap{align-self:flex-start;color:var(--warn);font-weight:600;display:inline-flex;gap:6px;align-items:center;text-align:left}
.mn-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
@media (min-width:760px){.mn-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
.mn-tile{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:14px;border:1px solid var(--line);border-radius:var(--r-l,14px);background:var(--surface);color:inherit;min-height:110px;font:inherit;cursor:pointer}
.mn-tile b{font-size:1.25rem;line-height:1.2;word-break:break-word}
.mn-tile.warn{border-color:var(--warn)}
.mn-tile .mn-tl{font-weight:600;color:var(--muted)}
.mn-wf{display:grid;grid-template-columns:minmax(96px,34%) 1fr auto;gap:8px;align-items:center;padding:6px 0;font-size:1rem}
.mn-wb{height:12px;border-radius:6px;background:var(--line);overflow:hidden;display:block}
.mn-wb i{display:block;height:100%;background:var(--accent);border-radius:6px}
.mn-wf.out .mn-wb i{background:var(--muted)}
.mn-wf.res,.mn-wf.neg{border-top:1px solid var(--line);margin-top:4px;padding-top:10px;font-weight:700}
.mn-wf.neg .mn-wb i,.mn-wf.neg b{background:var(--danger)}
.mn-wf.neg b{background:none;color:var(--danger)}
.mn-trend{display:flex;gap:4px;align-items:flex-end;overflow-x:auto;padding:4px 0 6px}
.mn-tc{flex:1 0 44px;display:flex;flex-direction:column;align-items:center;gap:3px;background:none;border:0;border-radius:10px;padding:4px 2px;color:inherit;font:inherit;cursor:pointer}
.mn-tc.on{background:var(--accent-soft,rgba(0,0,0,.06))}
.mn-tv{font-size:.8rem;font-weight:700}
.mn-tp{display:flex;gap:2px;align-items:flex-end;height:110px}
.mn-tp i{display:block;width:12px;min-height:2px;border-radius:4px 4px 0 0}
.mn-tp i.g,.mn-key.g{background:var(--line)}
.mn-tp i.p,.mn-key.p{background:var(--accent)}
.mn-tp i.p.neg{background:var(--danger)}
.mn-key{display:inline-block;width:12px;height:12px;border-radius:3px;vertical-align:-1px;margin:0 4px 0 10px}
.mn tr.neg td{color:var(--danger)}
.mn .neg,.mn-mine .neg{color:var(--danger)}
.mn-loss .exrow{width:100%;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);padding:10px 0;color:inherit;font:inherit;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.mn-pr{display:grid;grid-template-columns:minmax(120px,38%) 1fr auto;gap:8px;align-items:center;padding:5px 0}
.mn-ad,.mn-adr{gap:8px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line)}
.mn-adr{display:flex;flex-wrap:wrap}
.mn-adr .inp{width:auto;max-width:120px}
.mn-person{gap:8px}
.mn-ph{display:flex;gap:10px;align-items:center;width:100%;background:none;border:0;padding:0;color:inherit;font:inherit;text-align:left;cursor:pointer;min-height:48px}
.mn-ph>.row{flex:1;min-width:0}
.mn-ph .grow-l{display:flex;flex-direction:column;align-items:flex-start;text-align:left}
.mn-pb{display:flex;flex-direction:column;align-items:flex-end;text-align:right}
.mn-pb b{font-size:1.15rem}
.mn-payf{border-top:1px solid var(--line);padding-top:10px}
/* the bank card */
.mn-bank{display:flex;flex-direction:column;gap:6px;padding:18px;border-radius:18px;color:#fff;background:linear-gradient(135deg,#1f5f8b,#2d8a6e);box-shadow:0 6px 18px rgba(0,0,0,.12);margin:4px 0 12px}
.mn-bank.owe{background:linear-gradient(135deg,#7a3b2e,#b4553a)}
.mn-bt,.mn-bs{opacity:.92;font-size:1rem}
.mn-bn{font-size:2.6rem;line-height:1.05;font-weight:800;letter-spacing:-.01em}
.mn-bn small{font-size:1.1rem;font-weight:600;opacity:.9}
.mn-accs{display:flex;gap:8px;flex-wrap:wrap}
.mn-acc{display:flex;flex-direction:column;padding:6px 12px;border-radius:12px;background:rgba(255,255,255,.16);min-width:84px}
.mn-acc small,.mn-chips small{opacity:.85;font-size:.8rem}
.mn-acc b{font-size:1.15rem}
.mn-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:6px;padding-top:10px;border-top:1px solid rgba(255,255,255,.25)}
.mn-chips span{display:flex;flex-direction:column}
.mn-chips b{font-size:1rem}
.mn-qa{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.mn-qa .btn{flex:1 1 140px;min-height:48px;justify-content:center}
.mn-feed{display:flex;flex-direction:column}
.mn-day{font-weight:700;color:var(--muted);font-size:.9rem;padding:12px 0 4px;text-transform:capitalize}
.mn-tx{display:flex;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line);min-height:52px}
.mn-tx .grow-l{display:flex;flex-direction:column;min-width:0;flex:1;text-align:left;align-items:flex-start}
.mn-tx .grow-l b{overflow:hidden;text-overflow:ellipsis}
.mn-ti .msi{width:22px;height:22px}
.mn-ti{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--line);flex:0 0 40px}
.mn-tx.k-earn .mn-ti,.mn-tx.k-gave .mn-ti{background:color-mix(in srgb,var(--ok) 16%,var(--surface));color:var(--ok)}
.mn-tx.k-paid .mn-ti{background:color-mix(in srgb,var(--off) 16%,var(--surface));color:var(--off)}
.mn-tx.k-cash .mn-ti{background:color-mix(in srgb,var(--warn) 16%,var(--surface));color:var(--warn)}
.mn-tx.k-exp .mn-ti{background:color-mix(in srgb,var(--sick) 14%,var(--surface));color:var(--sick)}
.mn-tx b.in{color:var(--ok);white-space:nowrap}
.mn-tx b.out{white-space:nowrap}
.mn-fix{display:flex;flex-direction:column}
.mn-fr{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.mn-fr .grow-l{flex:1 1 100%}
.mn-fr .mn-fp{max-width:110px}.mn-fr .mn-fc{max-width:90px}.mn-fr .mn-fy{max-width:150px}
@media (max-width:420px){.mn-wf{grid-template-columns:1fr auto}.mn-wf .mn-wb{grid-column:1/-1;order:3}.mn-pr{grid-template-columns:1fr auto}.mn-pr .mn-wb{display:none}.mn-bn{font-size:2.2rem}}

.approx{color:var(--muted);font-weight:600}
.mchip.cash{background:color-mix(in srgb,var(--warn) 18%,var(--surface));color:var(--ink);font-weight:600}
/* Holiday availability */
.holcard,.holadm{gap:8px}.holcard>b,.holadm>b{display:flex;gap:8px;align-items:center}
.holper{display:flex;flex-direction:column;gap:4px;padding:8px 0;border-top:1px solid var(--line)}
.holday{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;min-height:48px}
.holday .seg button{min-height:44px;min-width:96px}
.holcard.done{gap:4px}
/* People · next 14 days (Team page, 18 Nov) */
.d14f{flex-wrap:wrap}
.d14key{display:flex;gap:14px;flex-wrap:wrap;color:var(--muted)}.d14key span{display:inline-flex;gap:6px;align-items:center}
.d14key .d14c{display:inline-block;width:14px}.d14key .d14c i{height:12px}
.d14list{display:flex;flex-direction:column}
.d14row{display:flex;flex-direction:column;gap:6px;padding:12px 0;border-top:1px solid var(--line)}
.d14who{display:flex;gap:10px;align-items:center;background:none;border:0;padding:0;color:inherit;font:inherit;text-align:left;min-height:44px;cursor:pointer}
.d14who:disabled{cursor:default;opacity:1}.d14who .grow-l{display:flex;flex-direction:column;flex:1;min-width:0}
.d14bar{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:3px}
.d14c{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.d14c i{display:block;width:100%;height:18px;border-radius:4px;background:var(--line)}
.d14c.free i{background:var(--ok)}.d14c.busy i{background:var(--warn)}.d14c.off i{background:color-mix(in srgb,var(--muted) 30%,var(--surface))}
.d14c small{font-size:.72rem;color:var(--muted)}.d14c small.td{color:var(--ink);font-weight:700}
@media (min-width:900px){.d14row{display:grid;grid-template-columns:minmax(200px,28%) 1fr auto;align-items:center;gap:14px}}
/* Person editor in 3 steps (18 Nov) */
.psteps{display:flex;gap:8px;flex-wrap:wrap;padding:4px 0 10px;border-bottom:1px solid var(--line);margin-bottom:10px}
.psteps button{border:0;border-radius:999px;padding:10px 16px;min-height:44px;font:inherit;font-weight:600;background:color-mix(in srgb,var(--accent) 10%,var(--surface));color:var(--accent);cursor:pointer}
.psteps button[aria-selected=true]{background:var(--accent);color:#fff}
.pform .pstep{display:none;flex-direction:column;gap:10px}
.pform.step-1 .pstep[data-s="1"],.pform.step-2 .pstep[data-s="2"],.pform.step-3 .pstep[data-s="3"]{display:flex}
.pacts{position:sticky;bottom:0;background:var(--surface);padding-top:10px;border-top:1px solid var(--line)}
.sklist{display:flex;flex-direction:column;gap:6px}
.skrow{display:flex;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:12px;min-height:48px;cursor:pointer}
.skrow.on{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 7%,var(--surface))}
.skrow input{width:22px;height:22px;flex:none}
/* Tour window: seats bar, money footer, big + Booking (18 Nov) */
.seatbar{display:flex;align-items:center;gap:10px;flex:1 1 100%;padding:10px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.seatbar b{font-size:1.25rem}.sbtrack{flex:1;height:10px;border-radius:5px;background:var(--line);overflow:hidden;min-width:60px}
.sbtrack i{display:block;height:100%;background:var(--accent);border-radius:5px}
.seatbar.full .sbtrack i{background:var(--warn)}.seatbar.over .sbtrack i{background:var(--danger)}
.mfoot{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid var(--line);border-radius:14px;margin:10px 0;overflow:hidden}
.mfoot>div{display:flex;gap:10px;align-items:center;padding:12px 14px}.mfoot>div+div{border-left:1px solid var(--line)}
.mfoot span>span{display:flex;flex-direction:column}.mfoot b{font-size:1.2rem}
.mfi{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none;background:var(--line)}
.mfi.due{background:color-mix(in srgb,var(--warn) 18%,var(--surface));color:var(--warn)}.mfi.ok{background:color-mix(in srgb,var(--ok) 16%,var(--surface));color:var(--ok)}
.mfoot b.okc{color:var(--ok)}
.addbk{position:sticky;bottom:0;padding:10px 0 4px;background:linear-gradient(to top,var(--surface) 70%,transparent);z-index:2}
.addbk .btn.big{width:100%;min-height:54px;font-size:1.15rem;border-radius:16px}
@media (max-width:420px){.mfoot{grid-template-columns:1fr}.mfoot>div+div{border-left:0;border-top:1px solid var(--line)}}
/* Day reports (18 Nov) */
.drcard{gap:10px}.drcard>.row b{display:flex;gap:8px;align-items:center}
.drdays{flex-wrap:wrap}.drdays button{min-height:44px}
.drsec{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid var(--line);border-radius:12px}
.drrow{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.drrow .grow-l{flex:1;min-width:0}
.drtwo{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.drres{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 14px;border-radius:12px;background:color-mix(in srgb,var(--warn) 14%,var(--surface));font-weight:700}
.drres b{font-size:1.25rem}.drres.neg{background:color-mix(in srgb,var(--danger) 12%,var(--surface))}
.drli{border-top:1px solid var(--line)}.drhead{display:flex;gap:10px;align-items:center;flex-wrap:wrap;width:100%;padding:10px 0;background:none;border:0;color:inherit;font:inherit;text-align:left;cursor:pointer;min-height:56px}
.drhead .grow-l{display:flex;flex-direction:column;flex:1;min-width:150px}
.drbody{display:flex;flex-direction:column;gap:8px;padding:0 0 12px}
@media (max-width:420px){.drtwo{grid-template-columns:1fr}}
/* 18 Nov phone check: tick box left of the tour name (the .f label rule made a centred column); names in the 14-day list start at the left; day-report tour name on its own line */
.f label.skrow{flex-direction:row;align-items:center;font-weight:400;color:var(--ink);font-size:var(--t-md,1rem)}
.d14who .grow-l{align-items:flex-start;text-align:left}
.drrow .grow-l{flex:1 1 100%;font-weight:600}.drrow .small{flex:1}
/* ===== Setmore-style look (18 Nov, owner: "colours like in Setmore, not the demo") =====
   White cards on a cool light grey, navy text, one clear blue, soft pastel tints with a darker edge, round icon circles. */
:root{--p-blue:#e8f0fd;--p-blue-e:#2f6fdf;--p-mint:#e5f5ec;--p-mint-e:#2f8a57;--p-peach:#fdefe1;--p-peach-e:#b8661e;--p-rose:#fde8ec;--p-rose-e:#c23d55;--p-grey:#eceff3}
:root:not([data-contrast="high"]):not([data-theme="dark"]){--bg:#f5f8fa;--line:#e2e7ee;--surface2:#eef2f6;--ink:#142640;--muted:#526075}
@media (prefers-color-scheme:dark){:root:not([data-contrast="high"]):not([data-theme="light"]){--bg:#11161d;--line:#323d4b;--surface2:#222b36;--ink:#e8edf4;--muted:#a2adbb;
  --p-blue:#1c2a42;--p-blue-e:#8db8f5;--p-mint:#163027;--p-mint-e:#6fcf97;--p-peach:#29233d;--p-peach-e:#b9a4f5;--p-rose:#3a1f26;--p-rose-e:#f08a9a;--p-grey:#252e39}}
:root[data-theme="dark"]{--p-blue:#1c2a42;--p-blue-e:#8db8f5;--p-mint:#163027;--p-mint-e:#6fcf97;--p-peach:#29233d;--p-peach-e:#b9a4f5;--p-rose:#3a1f26;--p-rose-e:#f08a9a;--p-grey:#252e39}
html:not([data-accent]){--accent:#2f6fdf;--action:#2f6fdf;--accent-soft:#e8f0fd}
@media (prefers-color-scheme:dark){html:not([data-theme="light"]):not([data-accent]){--accent:#8db8f5;--action:#8db8f5;--accent-soft:#1f2c40}}
html[data-theme="dark"]:not([data-accent]){--accent:#8db8f5;--action:#8db8f5;--accent-soft:#1f2c40}

/* Team › next 14 days: weekday letter, the date inside the square; busy = blue, free = white, not working = soft stripes; today ringed */
.d14bar{gap:4px}
button.d14c{border:0;background:none;padding:0;margin:0;color:inherit;font:inherit;cursor:pointer;gap:3px;min-height:46px}
.d14c small{font-size:.7rem;color:var(--muted);line-height:1}
.d14c i{display:flex;align-items:center;justify-content:center;height:30px;border-radius:9px;font-style:normal;font-size:.82rem;font-weight:600}
.d14c.free i{background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--line);color:var(--ink)}
.d14c.busy i{background:var(--accent);color:var(--accent-ink,#fff)}
.d14c.off i{background:repeating-linear-gradient(135deg,var(--p-grey) 0 4px,var(--surface) 4px 8px);box-shadow:inset 0 0 0 1px var(--line);color:var(--muted)}
.d14c.td i{outline:2.5px solid var(--accent);outline-offset:2px}
.d14c.td small{color:var(--accent);font-weight:700}
.d14key .d14c{display:inline-flex;width:16px}.d14key .d14c i{width:16px;height:16px;border-radius:5px}
.d14row{padding:14px 0}

/* Day report: date switcher, sections with round pastel icons and totals on the right, result card, big Send */
.drstep{display:flex;align-items:center;gap:8px;padding:4px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.drarr{width:52px;height:52px;flex:none;border:0;border-radius:12px;background:var(--surface2);color:var(--ink);font-size:1.8rem;line-height:1;cursor:pointer}
.drarr:disabled{opacity:.3;cursor:default}
.drdate{flex:1;display:flex;gap:8px;align-items:center;justify-content:center;font-size:1.05rem}.drdate .msi{color:var(--accent)}
.drsec{background:var(--surface);border-radius:16px;padding:10px 14px;gap:6px}
.drh{display:flex;align-items:center;gap:12px;min-height:44px}.drh b.num{font-size:1.15rem;white-space:nowrap}
.dri{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none}
.dri .msi{width:22px;height:22px}
.k-tours .dri{background:var(--p-blue);color:var(--p-blue-e)}.k-cash .dri{background:var(--p-mint);color:var(--p-mint-e)}.k-exp .dri{background:var(--p-peach);color:var(--p-peach-e)}
.drsec .drrow{padding-left:54px}
.drres{background:var(--p-blue);border-radius:16px;padding:12px 14px;gap:12px;font-weight:600}
.drres .dri{background:var(--surface);color:var(--p-blue-e)}.drres b{font-size:1.4rem;color:var(--p-blue-e)}
.drres.neg{background:var(--p-peach)}.drres.neg .dri,.drres.neg b{color:var(--p-peach-e)}
.drsend{width:100%;min-height:56px;font-size:1.1rem;border-radius:16px;margin-top:6px}
@media (max-width:420px){.drsec .drrow{padding-left:0}}

/* Tour window money footer and seats: the same pastel circles */
.mfi.ok{background:var(--p-mint);color:var(--p-mint-e)}.mfi.due{background:var(--p-peach);color:var(--p-peach-e)}
.mfoot b.okc{color:var(--p-mint-e)}
.sbtrack{background:var(--p-grey)}
/* Calendar in the Setmore style: lighter pastel tour cards with the coloured edge, selected day in a blue circle */
.acard{background:color-mix(in srgb,var(--k) 7%,var(--surface));border-color:color-mix(in srgb,var(--k) 22%,var(--line))}
.acard.mycard{background:color-mix(in srgb,var(--k) 8%,var(--surface))}
@media (max-width:760px){
  .strip button b{border-radius:50%}
  .strip button[aria-pressed="true"] b{background:var(--accent);color:var(--accent-ink,#fff)}
}
.d14c.td i{outline-width:2px;outline-offset:1px}
.pflag{font-size:var(--t-cap);font-weight:700;letter-spacing:.04em;color:var(--muted);background:var(--surface2);border-radius:6px;padding:1px 6px;margin-left:6px;vertical-align:1px}

/* ===== Look 2 (18 Nov morning, owner: "no orange, no emoji, lighter borders and frames, micro animations, ideas from the accounting look") ===== */
:root:not([data-contrast="high"]):not([data-theme="dark"]){--line:#e5eaf1;--surface2:#f0f3f7}
:root{--warn:#7a6a00;--custom:#a23e74;--holiday:#7a6a00;
  --p-peach:#f0ecfb;--p-peach-e:#6b4fbf;      /* "peach" slot is now lilac: no orange tints */
  --p-yellow:#fbf5d3;--p-yellow-e:#7a6a00;
  --shadow-s:0 1px 2px rgba(20,38,64,.04),0 1px 1px rgba(20,38,64,.03);--shadow-m:0 6px 20px rgba(20,38,64,.08)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--warn:#e8d35a;--custom:#e58bb8;--holiday:#e8d35a;--p-peach:#29233d;--p-peach-e:#b9a4f5;--p-yellow:#302b12;--p-yellow-e:#e8d35a;--shadow-s:none;--shadow-m:0 6px 20px rgba(0,0,0,.35)}}
:root[data-theme="dark"]{--warn:#e8d35a;--custom:#e58bb8;--holiday:#e8d35a;--p-peach:#29233d;--p-peach-e:#b9a4f5;--p-yellow:#302b12;--p-yellow-e:#e8d35a;--shadow-s:none;--shadow-m:0 6px 20px rgba(0,0,0,.35)}
/* Light frames: every card is white with a hairline and a whisper of shadow */
.card,.drsec,.drstep,.mfoot,.seatbar,.gcard,.bkcard,.stile,.actcard,.setcard{border:1px solid var(--line);box-shadow:var(--shadow-s)}
/* Money owed is rose, spending is lilac (no orange) */
.mfi.due{background:var(--p-rose);color:var(--p-rose-e)}
.drres.neg{background:var(--p-rose)}.drres.neg .dri,.drres.neg b{color:var(--p-rose-e)}
.k-exp .dri{background:var(--p-peach);color:var(--p-peach-e)}

/* Micro animations: short, calm, never looping; off when the phone asks for less motion */
@media (prefers-reduced-motion:no-preference){
  .btn,.iconbtn,.acard,.card[data-act],.gcard,.bkcard,.stile,.actcard,.chipf,.d14c,.drarr,.tagbtn{transition:transform .12s var(--ease),background-color .15s,border-color .15s,box-shadow .15s}
  .btn:active,.iconbtn:active,.card[data-act]:active,.gcard:active,.bkcard:active,.stile:active,.actcard:active,.chipf:active,.d14c:active,.drarr:active,.tagbtn:active{transform:scale(.97)}
  .gcard,.bkcard,.stile,.actcard,.dayrow,.grow-g{animation:fsrise .26s var(--ease) both}
  .gcard:nth-child(2),.bkcard:nth-child(2),.stile:nth-child(2),.actcard:nth-child(2){animation-delay:.03s}
  .gcard:nth-child(3),.bkcard:nth-child(3),.stile:nth-child(3),.actcard:nth-child(3){animation-delay:.06s}
  .gcard:nth-child(n+4),.bkcard:nth-child(n+4),.stile:nth-child(4),.actcard:nth-child(n+4){animation-delay:.09s}
  @keyframes fsrise{from{opacity:0;transform:translateY(6px)}}
  .sbfill,.pbar i,.d14c.busy i,.mnbar i{transform-origin:left center;animation:fsgrow .5s var(--ease) both}
  @keyframes fsgrow{from{transform:scaleX(0)}}
  .pick.on .msi,.att button.on .msi{animation:fspop .28s var(--ease)}
  @keyframes fspop{0%{transform:scale(.4)}70%{transform:scale(1.15)}100%{transform:scale(1)}}
}

/* Tour window guest cards (18 Nov, owner's screenshots): each guest is its own white card with a thin frame */
.glist:has(.gcard){border:0;background:none;display:flex;flex-direction:column;gap:10px;overflow:visible}
.glist .grow.gcard,.sheet .glist .grow.gcard{border:1px solid var(--line);border-left:4px solid var(--line);border-radius:16px;background:var(--surface);padding:12px 14px;gap:10px}
.gcard.st-arrived{border-left-color:var(--p-mint-e)}.gcard.st-noshow{border-left-color:var(--p-rose-e)}
.gcard.free{border-style:dashed}
.gst.gcard .grid{grid-template-columns:minmax(0,1fr) auto}
.gcard .avatar.ini{border-radius:12px;background:var(--p-blue);color:var(--p-blue-e);font-weight:700}
.gcard .gline{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.gcard .gname{font-size:1.05rem;color:var(--ink)}
.gcard .gcnt{display:inline-flex;gap:6px;align-items:center;color:var(--muted);font-size:var(--t-sm)}.gcard .gcnt svg{width:14px;height:14px}
.gcard .gsum{font-size:var(--t-sm);color:var(--muted)}
.gpill{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:999px;font-size:var(--t-sm);font-weight:600;white-space:nowrap;align-self:start}
.gpill svg{width:14px;height:14px}
.gpill.ok{background:var(--p-mint);color:var(--p-mint-e)}.gpill.due{background:var(--p-rose);color:var(--p-rose-e)}.gpill.free{background:var(--p-grey);color:var(--muted)}
.gcard .gaddr{display:flex;gap:6px;align-items:center;font-size:var(--t-sm)}
.gfoot{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.gfoot:empty{display:none}
.gcard .cbtns .ib{width:auto;height:36px;border-radius:999px;padding:0 12px;gap:6px;border:1px solid var(--line);background:var(--surface)}
.gcard .cbtns .ib.k-wa{background:var(--p-mint);border-color:transparent;color:var(--p-mint-e)}
.picks{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pick{min-height:48px;border-radius:12px;border:1px solid var(--line);background:var(--surface);font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--ink)}
.pick svg{width:18px;height:18px}
.pick.ok{background:var(--p-mint-e);border-color:var(--p-mint-e);color:#fff}
.pick.no{color:var(--p-rose-e)}
.pick.ok.on{box-shadow:0 0 0 3px var(--p-mint)}
.pick.no.on{background:var(--p-rose);border-color:var(--p-rose-e)}
.gcard.st-arrived .pick.ok:not(.on),.gcard.st-noshow .pick.ok{background:var(--surface);color:var(--p-mint-e);border-color:var(--line)}
/* Crew rows: white with the person's colour only on the edge */
.glist.crew{background:none;border:0;display:flex;flex-direction:column;gap:8px}
.glist.crew .grow{border:1px solid var(--line);border-left:4px solid var(--k);border-radius:14px;background:var(--surface)}
.glist.crew .grow+.grow{border-top:1px solid var(--line)}
/* Collected | Left to pay stay side by side, also on small phones */
@media (max-width:420px){.mfoot{grid-template-columns:1fr 1fr}.mfoot>div+div{border-left:1px solid var(--line);border-top:0}.mfoot>div{padding:10px;gap:8px}.mfoot .mfi{width:34px;height:34px}.mfoot b{font-size:1.05rem}}

/* Guest window (18 Nov): contact card, check-in buttons, action grid, lasting note, trips */
.eyebrow{display:block;font-size:var(--t-cap);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.ghdr{align-items:flex-start}.ghdr .avatar.ini{border-radius:16px;background:var(--p-blue);color:var(--p-blue-e)}
.ghname{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.ghname h2{overflow-wrap:anywhere}
.refchip{border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:999px;padding:2px 10px;font-size:var(--t-sm);font-variant-numeric:tabular-nums;font-weight:600}
.gfacts{margin:2px 0 4px}
.ccard{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow-s);overflow:hidden}
.ccrow{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 12px;color:var(--ink);text-decoration:none}
.ccrow+.ccrow{border-top:1px solid var(--line)}
.cnum{display:inline-flex;gap:8px;align-items:center;font-weight:700;font-size:1.05rem;color:var(--ink);text-decoration:none;flex:1;min-width:0}
.cchip{display:inline-flex;gap:6px;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-weight:600;font-size:var(--t-sm);color:var(--ink);text-decoration:none;max-width:100%}
.cchip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cchip.wa{background:var(--p-mint);border-color:transparent;color:var(--p-mint-e)}
.caddr{font-size:var(--t-sm);color:var(--muted)}.caddr span{flex:1}
.agrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.actcard{display:flex;gap:10px;align-items:center;text-align:left;padding:12px;border-radius:16px;background:var(--surface);color:var(--ink);text-decoration:none;min-height:64px;font:inherit}
.actcard .act-t{display:flex;flex-direction:column;min-width:0}.actcard b{font-size:var(--t-body);line-height:1.25}
.actcard .muted{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.aci{width:40px;height:40px;flex:none;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--p-blue);color:var(--p-blue-e)}
.agrid .actcard:nth-child(2) .aci{background:var(--p-peach);color:var(--p-peach-e)}
.agrid .actcard:nth-child(3) .aci{background:var(--p-grey);color:var(--ink)}
.agrid .actcard:nth-child(4) .aci{background:var(--p-mint);color:var(--p-mint-e)}
.lnote textarea{min-height:64px}.lnote .btn{align-self:flex-end}
.trips{display:flex;flex-direction:column}
.trow{display:flex;gap:12px;align-items:center;padding:10px 4px;border:0;border-bottom:1px solid var(--line);background:none;text-align:left;color:var(--ink);font:inherit}
.trow .num{min-width:56px}
.tpill{font-size:var(--t-cap);font-weight:700;border-radius:999px;padding:2px 10px}
.tpill.past{background:var(--p-grey);color:var(--muted)}.tpill.next{background:var(--p-blue);color:var(--p-blue-e)}
@media (max-width:360px){.agrid{grid-template-columns:1fr}}
.ccrow .cnum{flex:1 1 100%}

/* Bookings (18 Nov): totals tiles, search and order, filter chips with counts, cards grouped by day */
.bkpage{display:flex;flex-direction:column;gap:12px}
.stiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.stile{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px;border-radius:16px;background:var(--surface);text-align:left;color:var(--ink);font:inherit;cursor:pointer}
.stile[aria-pressed="true"]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.stile b{font-size:1.6rem;line-height:1.15}
.sti{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:6px;font-weight:700}
.sti svg{width:16px;height:16px}
.st-all .sti{background:var(--p-blue);color:var(--p-blue-e)}.st-paid .sti{background:var(--p-mint);color:var(--p-mint-e)}
.st-debt .sti{background:var(--p-yellow);color:var(--p-yellow-e)}.st-cx .sti{background:var(--p-rose);color:var(--p-rose-e)}
@media (max-width:480px){.stiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
.bkbar{display:flex;gap:8px;flex-wrap:wrap}.bkbar input[type=search]{flex:1 1 220px}.bksort select{min-width:0}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.bkchips{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.bkchips .seg{flex-wrap:wrap}
.cnum2{display:inline-block;min-width:22px;padding:0 6px;border-radius:999px;background:var(--surface2);font-size:var(--t-cap);font-weight:700}
.seg button[aria-pressed="true"] .cnum2{background:rgba(255,255,255,.25)}
.chipf{display:inline-flex;gap:6px;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-weight:600;color:var(--ink)}
.chipf svg{width:16px;height:16px}
.chipf.warn{border-color:color-mix(in srgb,var(--p-rose-e) 40%,var(--line));color:var(--p-rose-e)}
.chipf.warn[aria-pressed="true"]{background:var(--p-rose)}
.bklist{display:flex;flex-direction:column;gap:10px}
.bkday{display:flex;gap:8px;align-items:center;margin-top:8px;font-size:1.1rem}.bkday svg{width:18px;height:18px;color:var(--muted)}
.bkcard{display:flex;gap:12px;align-items:flex-start;width:100%;text-align:left;padding:12px 14px;border-radius:16px;background:var(--surface);color:var(--ink);font:inherit;cursor:pointer}
.bkcard .emb.big{flex:none}
.bkcard.st-cx{opacity:.7}.bkcard.st-cx .bkt{text-decoration:line-through}
.bkbody{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.bktop{display:flex;gap:8px;align-items:flex-start;justify-content:space-between}
.bkt{font-size:1.02rem;line-height:1.3;overflow-wrap:anywhere}
.bkbody .small svg{width:13px;height:13px;vertical-align:-2px;margin-right:2px}
.bkmeta{display:flex;gap:6px 12px;flex-wrap:wrap;align-items:center;font-size:var(--t-sm);color:var(--muted)}
.bkmeta svg{width:13px;height:13px;vertical-align:-2px;margin-right:4px}
.bksrc{display:inline-flex;gap:6px;align-items:center}.bksrc i{width:8px;height:8px;border-radius:50%;background:var(--accent)}
.gpill.cx{background:var(--p-grey);color:var(--muted)}
.stile{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center;padding:10px 12px}
.stile .sti{grid-row:span 2;margin:0;width:36px;height:36px}
.stile b{font-size:1.35rem;line-height:1.1}
.bkchips:empty{display:none}

/* By-day list (agenda) rows, 18 Nov */
.agsum{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:var(--t-sm);color:var(--muted);padding:2px 0 6px}
.agtd{color:var(--accent)}.agdue{color:var(--p-rose-e);font-weight:700}
.agday.tdy .agsum{background:var(--p-blue);border-radius:10px;padding:6px 10px;margin-bottom:6px}
.agr.agt2{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:100%;text-align:left;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--k);border-radius:12px;padding:10px 12px;margin-bottom:8px;color:var(--ink);font:inherit;box-shadow:var(--shadow-s)}
.ag1{display:flex;gap:10px;align-items:baseline}.ag1 .agt{font-weight:700;color:var(--ink);min-width:44px}
.agtitle{font-weight:700;overflow-wrap:anywhere}
.ag2{display:flex;gap:8px 12px;flex-wrap:wrap;align-items:center;padding-left:54px}
.agp{display:inline-flex;gap:6px;align-items:center;font-size:var(--t-sm);font-weight:600}.agp .avatar{width:24px;height:24px;font-size:11px}
.agseat{display:inline-flex;gap:8px;align-items:center;font-size:var(--t-sm)}
.pbar{display:inline-block;width:72px;height:6px;border-radius:999px;background:var(--p-grey);overflow:hidden}
.pbar i{display:block;height:100%;border-radius:999px;background:var(--accent)}
.agseat.full .pbar i{background:var(--p-rose-e)}.agseat.full b{color:var(--p-rose-e)}
@media (max-width:420px){.ag2{padding-left:0}}
.dayhd .agdue{font-weight:700}
.acard .agseat .pbar{width:64px}
.dayhd b.tdy{color:var(--accent)}
.d14nog{display:flex;flex-direction:column;gap:8px;background:var(--p-rose);border-radius:14px;padding:12px;margin-bottom:8px}.d14nog .d14who{display:flex;gap:10px;align-items:center;background:none;border:0;padding:0}
.nogi{width:36px;height:36px;border-radius:50%;border:2px dashed var(--p-rose-e);color:var(--p-rose-e);display:flex;align-items:center;justify-content:center;font-weight:700;flex:none}
.nogl{display:flex;gap:6px;flex-wrap:wrap}.nogl .chipf{min-height:36px;background:var(--surface)}
/* Month view: number of tours in the corner of each day (18 Nov) */
.mgrid button{position:relative}
.mcnt{position:absolute;top:4px;right:4px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--p-blue);color:var(--p-blue-e);font-size:11px;font-weight:700;line-height:18px;text-align:center}
.mgrid button.out .mcnt{opacity:.5}
.mcnt{position:static;display:inline-block;margin:2px auto 0;align-self:center}

/* Settings › Connections (18 Nov) */
.cncard{display:flex;flex-direction:column;gap:0;padding:14px 16px}
.cnrow{display:flex;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}
.cncard .eyebrow+.cnrow{border-top:0}
.cnrow .grow-l{flex-direction:column;align-items:flex-start;gap:2px}
.cni{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;flex:none}
.cni svg{width:22px;height:22px}
.cni.tg{background:var(--p-blue);color:var(--p-blue-e)}.cni.nf{background:var(--p-yellow);color:var(--p-yellow-e)}.cni.ap{background:var(--p-mint);color:var(--p-mint-e)}.cni.pw{background:var(--p-peach);color:var(--p-peach-e)}
.cnst{display:inline-flex;gap:4px;align-items:center;font-size:var(--t-sm);color:var(--muted)}.cnst.ok{color:var(--p-mint-e);font-weight:600}.cnst svg{width:14px;height:14px}
.cnpw .inp{margin-top:6px;width:100%}
.flash{animation:fsflash 1.2s var(--ease)}
@keyframes fsflash{0%,40%{box-shadow:0 0 0 3px var(--accent)}100%{box-shadow:0 0 0 0 transparent}}
.gcard .gname{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;display:block}
.gcard .gline{flex-wrap:nowrap;min-width:0;max-width:100%}
.gcard .cbtns .ib{width:44px;height:44px;padding:0;border-radius:50%;justify-content:center}
@media (prefers-color-scheme:dark){:root:not([data-contrast="high"]):not([data-theme="light"]){--p-peach:#29233d;--p-peach-e:#b9a4f5}}
/* Orange button colours were removed from the choice (18 Nov); a phone that still has one gets the standard blue */
html[data-accent="terra"],html[data-accent="amber"]{--accent:#2f6fdf;--action:#2f6fdf;--accent-soft:#e8f0fd;--accent-ink:#fff}
@media (prefers-color-scheme:dark){html:not([data-theme="light"])[data-accent="terra"],html:not([data-theme="light"])[data-accent="amber"]{--accent:#8db8f5;--action:#8db8f5;--accent-ink:#0f1a2b;--accent-soft:#1f2c40}}
html[data-theme="dark"][data-accent="terra"],html[data-theme="dark"][data-accent="amber"]{--accent:#8db8f5;--action:#8db8f5;--accent-ink:#0f1a2b;--accent-soft:#1f2c40}
/* Check-in on guest cards: two small pills at the right of the WhatsApp / Call row (owner 18 Nov 08:15: big buttons were too big).
   Neither is filled until tapped: Arrived turns green, No-show turns rose. */
.gfoot{justify-content:space-between}
.picks.sm{display:inline-flex;gap:6px;margin-left:auto}
.picks.sm .pick{min-height:40px;padding:0 12px;border-radius:999px;font-size:var(--t-sm);background:var(--surface);color:var(--muted);border:1px solid var(--line);box-shadow:none}
.picks.sm .pick svg{width:15px;height:15px}
.picks.sm .pick.ok.on{background:var(--p-mint-e);border-color:var(--p-mint-e);color:#fff;box-shadow:none}
.picks.sm .pick.no.on{background:var(--p-rose);border-color:var(--p-rose-e);color:var(--p-rose-e)}
.gcard.st-arrived .picks.sm .pick.ok:not(.on),.gcard.st-noshow .picks.sm .pick.ok{background:var(--surface);color:var(--muted);border-color:var(--line)}

/* tasks on the calendar: how-to text behind Details, grouped office line (19 Nov) */
.tkmore summary{cursor:pointer;color:var(--action,#2f6fdf);font-size:var(--t-small,14px);padding:4px 0;list-style:none}
.tkmore summary::-webkit-details-marker{display:none}
.tkmore[open] summary{margin-bottom:4px}
.tkgrp .tkb{gap:4px}

/* add sheet and tour list: Setmore-like bottom sheet (19 Nov) */
.tplist{display:flex;flex-direction:column;margin:0 -4px}
.tprow{display:flex;align-items:center;gap:14px;min-height:60px;padding:8px 4px;border:0;border-bottom:1px solid var(--line);background:none;text-align:left;cursor:pointer;width:100%}
.tprow[hidden]{display:none}
.tprow .tpt{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.tprow .tpt b{font-weight:600;overflow:hidden;text-overflow:ellipsis}
.tprow .msi{color:var(--muted);flex:none}
.tpdot{width:14px;height:14px;border-radius:50%;flex:none}
.tpdot.blank{background:none;border:2px dashed var(--line)}
@media (max-width:760px){.overlay .sheet.actsheet{width:100%;max-height:88%}}
@media (prefers-reduced-motion:no-preference){
  .overlay:has(.actsheet){animation:asdim .24s ease-out}
  .overlay .sheet.actsheet{animation:asup .3s cubic-bezier(.2,.8,.2,1)}
  .overlay.closing{animation:asdimout .19s ease-in forwards}
  .overlay.closing .sheet.actsheet{animation:asdown .19s ease-in forwards}
  @keyframes asdim{from{background-color:transparent}}
  @keyframes asdimout{to{background-color:transparent}}
  @keyframes asup{from{transform:translateY(100%)}to{transform:none}}
  @keyframes asdown{to{transform:translateY(100%)}}
}
/* phone day header like Setmore: the date on its own line, the counts in one quiet line under it (19 Nov) */
@media (max-width:760px){.dayhd>b:first-child{flex-basis:100%}.dayhd{row-gap:2px}}
