/* Olive & Ember front desk. Light working surface, hearth-green sidebar,
   ember only for the thing to press and for guests who need attention.
   Moves: the drawer slides in, the toast fades. Nothing else. */
:root{
  --canvas:#F4F2EC; --surface:#FFFFFF; --ink:#16201A; --soft:#5A625C; --faint:#8A8F87;
  --line:rgba(22,32,26,.10); --line-2:rgba(22,32,26,.18);
  --hearth:#0E1511; --oak:#16201A; --linen:#F1E9DA; --smoke:#B6AF9F;
  --ember:#E8833A; --ember-hi:#F2954E; --ember-ink:#1A0E06; --ember-text:#9A4C16; --tint:#FBEADB;
  --ok:#3E7B4F; --ok-tint:#E3EFE4; --warn:#B4321F; --warn-tint:#F8E1DC;
  --serif:"Instrument Serif",Georgia,serif; --sans:"Geist",system-ui,-apple-system,sans-serif;
  --r:12px; --r-lg:16px; --ease:cubic-bezier(.22,1,.36,1);
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{background:var(--canvas);color:var(--ink);font-family:var(--sans);font-size:15px;line-height:1.45;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit}
[hidden]{display:none!important}
.num{font-variant-numeric:tabular-nums}

/* layout */
.sys{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100%}
.side{position:sticky;top:0;height:100vh;background:var(--hearth);color:var(--linen);display:flex;flex-direction:column;padding:22px 16px 18px}
.side__logo img{display:block;width:152px;height:auto}
.side__app{margin:6px 0 26px;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--smoke)}
.side__nav{display:flex;flex-direction:column;gap:2px}
.side__nav a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;text-decoration:none;color:var(--smoke);font-weight:500}
.side__nav a:hover{background:rgba(241,233,218,.06);color:var(--linen)}
.side__nav a.on{background:rgba(241,233,218,.1);color:var(--linen)}
.side__nav a.on svg{stroke:var(--ember)}
.side__nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.side__foot{margin-top:auto;font-size:12px;color:var(--smoke);line-height:1.5}
.side__foot p{margin:0 0 10px}
.side__links{display:flex;gap:12px}
.side__links a{color:var(--linen);font-weight:500}
.side__reset{background:none;border:1px solid rgba(241,233,218,.2);color:var(--linen);border-radius:999px;padding:6px 12px;font-size:12px;cursor:pointer}
.side__reset:hover{background:rgba(241,233,218,.08)}
.main{padding:28px clamp(18px,3vw,40px) 60px;min-width:0;outline:none}
.main:focus,.main:focus-visible{outline:none}

/* headings and bars */
.head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.head h1{margin:0;font-family:var(--serif);font-weight:400;font-size:44px;line-height:1;letter-spacing:-.01em}
.head p{margin:6px 0 0;color:var(--soft)}
.head__tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
h2.h2{margin:0;font-family:var(--serif);font-weight:400;font-size:26px;line-height:1.1}
h3.h3{margin:0;font-size:15px;font-weight:600}
.eyebrow{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--soft)}
.soft{color:var(--soft)}
.small{font-size:13px}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:0 15px;border-radius:999px;border:0;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-2);font-weight:500;font-size:14px;cursor:pointer;text-decoration:none;white-space:nowrap}
.btn:hover{background:#FAF8F3}
.btn--ember{background:var(--ember);color:var(--ember-ink);box-shadow:none;font-weight:600}
.btn--ember:hover{background:var(--ember-hi)}
.btn--dark{background:var(--oak);color:var(--linen);box-shadow:none}
.btn--dark:hover{background:#22302A}
.btn--sm{height:32px;padding:0 12px;font-size:13px}
.btn--danger{color:var(--warn)}
.btn:disabled{opacity:.4;cursor:not-allowed}
.btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.icon-btn{width:38px;height:38px;border-radius:50%;border:0;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-2);display:grid;place-items:center;cursor:pointer}
.icon-btn svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.seg{display:inline-flex;padding:3px;border-radius:999px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-2)}
.seg button{height:32px;padding:0 14px;border-radius:999px;border:0;background:none;font-size:13.5px;font-weight:500;color:var(--soft);cursor:pointer}
.seg button[aria-pressed="true"]{background:var(--oak);color:var(--linen)}
.seg button:disabled{opacity:.35;cursor:not-allowed;text-decoration:line-through}

.card{background:var(--surface);border-radius:var(--r-lg);box-shadow:0 0 0 1px var(--line);padding:18px 20px}
.card + .card{margin-top:14px}
.card__head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}

/* tiles */
.tiles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:18px}
.tile{background:var(--surface);border-radius:var(--r-lg);box-shadow:0 0 0 1px var(--line);padding:14px 16px;display:flex;flex-direction:column;gap:4px;min-width:0;text-decoration:none}
.tile b{font-family:var(--serif);font-weight:400;font-size:38px;line-height:1}
.tile span{font-size:13px;color:var(--soft)}
.tile small{font-size:12px;color:var(--faint)}
.tile--flag b{color:var(--ember-text)}
a.tile:hover{box-shadow:0 0 0 1px var(--line-2)}

.grid2{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;align-items:start}

/* rows */
.rows{list-style:none;margin:0;padding:0}
.rows li{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line)}
.rows li:first-child{border-top:0}
.rows .t{width:52px;flex:none;font-weight:600;font-variant-numeric:tabular-nums}
.rows .who{flex:1;min-width:0}
.rows .who b{font-weight:500}
.rows .who small{display:block;color:var(--soft);font-size:12.5px}
.rows .act{flex:none;display:flex;gap:6px}
.rowlink{all:unset;cursor:pointer;display:block;width:100%}
.rowlink:hover b{text-decoration:underline;text-underline-offset:3px}
.rowlink:focus-visible{outline:2px solid var(--ember);outline-offset:2px;border-radius:6px}
.empty{color:var(--soft);font-size:14px;margin:0}

/* flags */
.flags{display:inline-flex;gap:4px;vertical-align:middle;margin-left:6px}
.flag{display:inline-flex;align-items:center;gap:3px;height:20px;padding:0 7px;border-radius:999px;font-size:11px;font-weight:600;white-space:nowrap}
.flag--allergy{background:var(--warn-tint);color:var(--warn)}
.flag--regular{background:var(--ok-tint);color:var(--ok)}
.flag--late{background:var(--tint);color:var(--ember-text)}
.flag--new{background:#ECEDEA;color:var(--soft)}
.flag--occ{background:#F0E8F5;color:#6B3E86}
.flag--noshow{background:#ECEDEA;color:var(--warn)}
.status{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;background:#ECEDEA;color:var(--soft)}
.status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.status.st-arrived{background:var(--ok-tint);color:var(--ok)}
.status.st-booked{background:var(--tint);color:var(--ember-text)}
.status.st-no-show,.status.st-cancelled{background:var(--warn-tint);color:var(--warn)}

/* chase list */
.chase li{align-items:flex-start}
.chase .dot{width:8px;height:8px;border-radius:50%;background:var(--ember);margin-top:7px;flex:none}
.chase .dot.calm{background:var(--smoke)}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border-radius:999px;background:var(--canvas);box-shadow:inset 0 0 0 1px var(--line);font-size:13px;font-weight:500;font-variant-numeric:tabular-nums}
.chip small{color:var(--soft);font-weight:400}

/* floor plan */
.floor{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}
.plan{background:var(--surface);border-radius:var(--r-lg);box-shadow:0 0 0 1px var(--line);padding:14px}
.plan svg{display:block;width:100%;height:auto}
.plan .tb{cursor:pointer}
.plan .tb:focus{outline:none}
.plan .tb:focus-visible .shape{stroke:var(--ember);stroke-width:3}
.plan .tb.sel .shape{stroke:var(--ink);stroke-width:2.5}
.scrub{display:flex;align-items:center;gap:12px;margin:0 0 14px;flex-wrap:wrap}
.scrub input[type=range]{flex:1;min-width:180px;accent-color:var(--ember)}
.scrub output{font-weight:600;font-variant-numeric:tabular-nums;min-width:86px}
.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--soft);margin-top:10px}
.legend i{display:inline-block;width:12px;height:12px;border-radius:3px;vertical-align:-2px;margin-right:5px;box-shadow:inset 0 0 0 1.5px var(--line-2)}
.panel .card{padding:16px}
.covers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.covers div{background:var(--surface);border-radius:var(--r);box-shadow:0 0 0 1px var(--line);padding:10px 12px}
.covers b{display:block;font-family:var(--serif);font-weight:400;font-size:28px;line-height:1}
.covers span{font-size:12px;color:var(--soft)}
.covers .on{box-shadow:0 0 0 1.5px var(--ink)}

/* bookings day */
.daystrip{display:flex;gap:6px;overflow-x:auto;padding:2px 2px 6px;margin-bottom:16px;scrollbar-width:thin}
.daystrip button{flex:none;width:64px;padding:8px 0;border-radius:var(--r);border:0;background:var(--surface);box-shadow:0 0 0 1px var(--line);cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:1px}
.daystrip .dw{font-size:11.5px;color:var(--soft);font-weight:500}
.daystrip .dn{font-family:var(--serif);font-size:24px;line-height:1}
.daystrip .dc{font-size:11px;color:var(--soft)}
.daystrip button[aria-pressed="true"]{background:var(--oak);color:var(--linen);box-shadow:none}
.daystrip button[aria-pressed="true"] .dw,.daystrip button[aria-pressed="true"] .dc{color:var(--smoke)}
.daystrip button.closed{opacity:.5}
.sitting{background:var(--surface);border-radius:var(--r-lg);box-shadow:0 0 0 1px var(--line);margin-bottom:16px;overflow:hidden}
.sitting__head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line)}
.slot{display:grid;grid-template-columns:56px 120px minmax(0,1fr);gap:12px;align-items:center;padding:9px 18px;border-top:1px solid var(--line)}
.slot:first-of-type{border-top:0}
.slot .t{font-weight:600;font-variant-numeric:tabular-nums}
.meter{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--soft)}
.meter span{display:block;width:56px;height:6px;border-radius:3px;background:#E7E6E0;overflow:hidden}
.meter span i{display:block;height:100%;background:var(--oak)}
.meter.full span i{background:var(--ember)}
.slot .bks{display:flex;flex-wrap:wrap;gap:6px}
.bk{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 6px 0 10px;border-radius:8px;border:0;background:#F2F1EC;cursor:pointer;font-size:13px;font-weight:500}
.bk:hover{background:#E9E7E0}
.bk .n{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:5px;background:var(--surface);font-size:12px;font-weight:600;box-shadow:inset 0 0 0 1px var(--line)}
.bk .ic{width:8px;height:8px;border-radius:50%}
.bk .ic.a{background:var(--warn)}
.bk .ic.r{background:var(--ok)}
.bk .ic.l{background:var(--ember)}
.bk.st-arrived{background:var(--ok-tint)}
.bk.st-no-show{background:var(--warn-tint);text-decoration:line-through}
.bk.is-test{box-shadow:inset 0 0 0 1.5px var(--ember)}
.blocked{display:inline-flex;align-items:center;height:30px;padding:0 10px;border-radius:8px;border:1px dashed var(--line-2);background:repeating-linear-gradient(135deg,#F7F6F2 0 6px,#EFEEE8 6px 12px);font-size:12.5px;color:var(--soft);cursor:pointer}
.closed-card{padding:22px}

/* week */
.week{width:100%;border-collapse:collapse;background:var(--surface);border-radius:var(--r-lg);overflow:hidden;box-shadow:0 0 0 1px var(--line)}
.week th,.week td{padding:12px 14px;border-top:1px solid var(--line);text-align:left;font-size:14px}
.week th{font-size:12px;color:var(--soft);font-weight:600;border-top:0;background:#FAF9F5}
.week td button{all:unset;cursor:pointer;font-weight:500}
.week td button:hover{text-decoration:underline}
.week .closed{color:var(--faint)}

/* guests */
.search{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.search input{height:40px;border-radius:999px;border:0;box-shadow:inset 0 0 0 1px var(--line-2);background:var(--surface);padding:0 16px;min-width:240px;flex:1;max-width:360px}
.search input:focus{outline:none;box-shadow:inset 0 0 0 1.5px var(--ember)}
.filters{display:flex;gap:6px;flex-wrap:wrap}
.filters button{height:32px;padding:0 12px;border-radius:999px;border:0;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-2);font-size:13px;font-weight:500;cursor:pointer;color:var(--soft)}
.filters button[aria-pressed="true"]{background:var(--oak);color:var(--linen);box-shadow:none}
.gtable{width:100%;border-collapse:collapse;background:var(--surface);border-radius:var(--r-lg);overflow:hidden;box-shadow:0 0 0 1px var(--line)}
.gtable th,.gtable td{padding:11px 14px;border-top:1px solid var(--line);text-align:left;font-size:14px;vertical-align:middle}
.gtable th{font-size:12px;color:var(--soft);font-weight:600;border-top:0;background:#FAF9F5;white-space:nowrap}
.gtable td.r,.gtable th.r{text-align:right}
.gtable tbody tr{cursor:pointer}
.gtable tbody tr:hover{background:#FAF9F5}
.gtable a{text-decoration:none;font-weight:500}
.count{margin:0 0 10px;font-size:13px;color:var(--soft)}
.profile{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.stats div{background:var(--surface);border-radius:var(--r);box-shadow:0 0 0 1px var(--line);padding:12px 14px}
.stats b{display:block;font-family:var(--serif);font-weight:400;font-size:30px;line-height:1}
.stats span{font-size:12px;color:var(--soft)}
.dl{display:grid;grid-template-columns:auto 1fr;margin:0;font-size:14px}
.dl dt,.dl dd{margin:0;padding:9px 0;border-top:1px solid var(--line)}
.dl dt{color:var(--soft);padding-right:16px}
.dl dd{text-align:right}
.dl dt:first-of-type,.dl dt:first-of-type+dd{border-top:0}
.switch{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-top:1px solid var(--line);font-size:14px;cursor:pointer}
.switch small{display:block;color:var(--soft);font-size:12.5px}
.switch input{position:absolute;opacity:0;width:1px;height:1px}
.switch .ui{flex:none;width:40px;height:24px;border-radius:999px;background:#D9D8D2;position:relative;transition:background-color .2s var(--ease)}
.switch .ui::after{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .2s var(--ease)}
.switch input:checked+.ui{background:var(--ok)}
.switch input:checked+.ui::after{transform:translateX(16px)}
.switch input:focus-visible+.ui{outline:2px solid var(--ember);outline-offset:2px}
textarea.note{width:100%;min-height:84px;border:0;border-radius:var(--r);box-shadow:inset 0 0 0 1px var(--line-2);padding:10px 12px;resize:vertical;background:var(--canvas)}
textarea.note:focus{outline:none;box-shadow:inset 0 0 0 1.5px var(--ember)}
.back{display:inline-flex;align-items:center;gap:6px;color:var(--soft);text-decoration:none;font-size:14px;margin-bottom:10px}
.back:hover{color:var(--ink)}

/* settings */
.set{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.kv{width:100%;border-collapse:collapse;font-size:14px}
.kv td{padding:9px 0;border-top:1px solid var(--line)}
.kv tr:first-child td{border-top:0}
.kv td+td{text-align:right}

/* drawer */
.scrim{position:fixed;inset:0;background:rgba(14,21,17,.32);z-index:40;opacity:0;transition:opacity .25s var(--ease)}
.scrim.on{opacity:1}
.scrim:not(.on),.drawer:not(.on){pointer-events:none}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(440px,100%);background:var(--surface);z-index:41;box-shadow:-20px 0 50px rgba(14,21,17,.18);transform:translateX(100%);transition:transform .35s var(--ease);display:flex;flex-direction:column}
.drawer.on{transform:none}
.drawer__x{position:absolute;right:16px;top:16px;width:34px;height:34px;border-radius:50%;border:0;background:#F0EFEA;display:grid;place-items:center;cursor:pointer;z-index:2}
.drawer__x svg{width:12px;height:12px;stroke:var(--ink);stroke-width:1.8;stroke-linecap:round}
.drawer__body{overflow-y:auto;padding:24px 24px 30px}
.drawer h2{margin:4px 48px 0 0;font-family:var(--serif);font-weight:400;font-size:34px;line-height:1.05}
.drawer h2:focus{outline:none}
.drawer .sub{margin:6px 0 0;color:var(--soft)}
.drawer .acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.drawer .msg{margin:14px 0 0;padding:10px 12px;border-radius:var(--r);background:var(--ok-tint);color:var(--ok);font-size:14px;font-weight:500}
.drawer .warnmsg{margin:14px 0 0;padding:10px 12px;border-radius:var(--r);background:var(--tint);color:var(--ember-text);font-size:14px}
.drawer .lbl{display:block;margin:18px 0 8px;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--soft)}
.pick{display:flex;flex-wrap:wrap;gap:6px}
.pick button{min-width:44px;height:36px;padding:0 10px;border-radius:9px;border:0;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-2);font-size:13.5px;font-weight:500;cursor:pointer;font-variant-numeric:tabular-nums}
.pick button[aria-pressed="true"]{background:var(--oak);color:var(--linen);box-shadow:none}
.pick button:disabled{color:#B8BAB4;background:#F4F3EF;box-shadow:none;text-decoration:line-through;cursor:not-allowed}
.pick.days button{display:flex;flex-direction:column;height:auto;padding:6px 0;width:52px;line-height:1.2}
.pick.days button small{font-size:10.5px;color:inherit;opacity:.7}
.field{display:flex;flex-direction:column;gap:5px;margin-top:12px;font-size:13px;font-weight:500;color:var(--soft)}
.field input,.field textarea,.field select{height:40px;border:0;border-radius:9px;box-shadow:inset 0 0 0 1px var(--line-2);background:var(--surface);padding:0 12px;font-size:15px;color:var(--ink);font-weight:400}
.field textarea{height:auto;min-height:70px;padding:10px 12px;resize:vertical}
.field input:focus,.field textarea:focus,.field select:focus{outline:none;box-shadow:inset 0 0 0 1.5px var(--ember)}
.field .err{display:none;color:var(--warn);font-weight:500}
.field.bad .err{display:block}
.suggest{list-style:none;margin:6px 0 0;padding:0;border-radius:9px;box-shadow:0 0 0 1px var(--line-2);overflow:hidden}
.suggest button{all:unset;display:flex;justify-content:space-between;width:100%;box-sizing:border-box;padding:8px 12px;font-size:14px;cursor:pointer;border-top:1px solid var(--line)}
.suggest li:first-child button{border-top:0}
.suggest button:hover,.suggest button:focus-visible{background:var(--canvas)}
.suggest small{color:var(--soft)}
.hint{margin:10px 0 0;font-size:13px;color:var(--soft)}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--oak);color:var(--linen);padding:10px 16px;border-radius:999px;font-size:14px;font-weight:500;z-index:60;opacity:0;pointer-events:none;transition:opacity .25s var(--ease);margin:0}
.toast.on{opacity:1}

:focus-visible{outline:2px solid var(--ember);outline-offset:2px}

@media (max-width:1180px){
  .tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  .floor,.profile{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:900px){
  .grid2,.set{grid-template-columns:minmax(0,1fr)}
  .stats{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:760px){
  .sys{grid-template-columns:minmax(0,1fr)}
  .side{position:fixed;top:auto;bottom:0;left:0;right:0;height:auto;z-index:30;padding:0 0 env(safe-area-inset-bottom);flex-direction:row;box-shadow:0 -1px 0 rgba(241,233,218,.1)}
  .side__logo,.side__app,.side__foot{display:none}
  .side__nav{flex-direction:row;flex:1;gap:0}
  .side__nav a{flex:1;flex-direction:column;gap:3px;padding:9px 0 8px;font-size:10.5px;border-radius:0;justify-content:center}
  .side__nav a.on{background:none}
  .main{padding:18px 16px 96px}
  .head h1{font-size:36px}
  .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tile b{font-size:32px}
  .slot{grid-template-columns:48px minmax(0,1fr);gap:6px 10px}
  .slot .bks{grid-column:1/-1}
  .gtable .hide-m{display:none}
  .drawer{top:auto;width:100%;max-height:92%;border-radius:20px 20px 0 0;transform:translateY(100%)}
  .mobile-only{display:block}
  .gtable th,.gtable td{padding:10px}
}
.mobile-only{display:none}
.scrollx{overflow-x:auto;border-radius:var(--r-lg)}
.scrollx .week{min-width:560px}
@media (max-width:760px){.plan{overflow-x:auto}.plan svg{min-width:640px}}
@media (max-width:760px){.mobile-only{display:block}}
@media (prefers-reduced-motion:reduce){.drawer,.scrim,.toast,.switch .ui,.switch .ui::after{transition:none}}
