/* Sunny Host Stand v16 — design system: Inter, stroke icons, bright daytime light theme (v35) */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root {
  --bg: #fdf9f0; --bg2: #faf4e7; --panel: #ffffff; --panel2: #fffdf7; --panel3: #f3ecdc;
  --ink: #26221a; --muted: #6e6858; --faint: #a49d8b;
  --line: #e9e1cd; --line2: #d9cfb6;
  --accent: #f5a623; --accent2: #ffb84d; --accent-ink: #1a1205;
  --good: #1e9e63; --bad: #d64533;
  --open: #f4eede; --open-line: #d9cfb6;
  --dirty: #c2410c; --blocked: #c7c0b0; --reserved: #8a6d1a;
  --r-sm: 8px; --r-md: 11px;
  --c1: #3563e9; --c2: #d6389a; --c3: #1d9468; --c4: #d96a1a; --c5: #8a5ce0; --c6: #a3821a;
  --shadow: 0 6px 18px rgba(96,78,40,.14);
}
html, body { height: 100%; }
body {
  font-family: 'Inter', -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 14px; line-height: 1.35; color: var(--ink); background: var(--bg);
  overflow: hidden; touch-action: manipulation; overscroll-behavior: none;
  position: fixed; inset: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
button:active { transform: scale(.97); }
svg.ic { width: 1em; height: 1em; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.12em; }
svg.ic.fill { fill: currentColor; stroke: none; }
.hidden { display: none !important; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--panel3); border-radius: 4px; }
#app, .view { height: 100%; display: flex; flex-direction: column; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 14px; background: var(--panel); border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 15px; letter-spacing: .02em; }
.tools { display: flex; gap: 7px; }
.tool {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--r-sm); background: var(--panel2);
  border: 1px solid var(--line); font-weight: 650; font-size: 13.5px; color: var(--ink);
}
.tool.on { background: #f5a623; color: var(--accent-ink); border-color: transparent; font-weight: 750; }
.tool { max-width: 100%; white-space: nowrap; }
.maptab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  min-width: 44px; min-height: 44px;
  padding: 6px 14px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line);
  font-weight: 650; font-size: 15px; color: var(--ink);
}
.maptab .mtname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.svcard .nm { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svcard .flags { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; }
.tool.danger { background: #fbe9e4; border-color: #e3b7ac; color: #b3341f; }
.backbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-sm); margin-right: 8px; }

/* ---------- server cards: full color, big ---------- */
.serverbar { display: flex; gap: 8px; padding: 8px 12px; flex: 0 0 auto; background: var(--panel); border-bottom: 1px solid var(--line); }
.svcard {
  flex: 1 1 0; min-width: 0; min-height: 92px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 4px;
  padding: 10px 12px; border-radius: var(--r-md);
  background: var(--sc, var(--panel3)); border: 1.5px solid rgba(16,18,22,.28);
  box-shadow: 0 2px 6px rgba(96,78,40,.22);
  text-align: left; color: #101216; text-shadow: none;
  user-select: none; -webkit-user-select: none; touch-action: none;  /* v28: swipe surface */
}
.svcard .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.svcard .nm { font-weight: 800; font-size: 17px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* skips: our own controls, no native widgets. Zero = the plus alone; positive = minus, the
   big count (display only) and plus. Sized for staff taps and to fit four equal cards. */
.svcard .skipctl { display: flex; align-items: center; gap: 6px; justify-content: space-between; min-height: 44px; }
.svcard .skipctl.zero { justify-content: flex-end; }
.svcard .skipbtn {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(16,18,22,.24); border-radius: 12px;
  background: rgba(255,255,255,.36); color: #101216;
}
.svcard .skipbtn svg { width: 20px; height: 20px; stroke-width: 2.6; }
.svcard .skipbtn:active { background: rgba(255,255,255,.58); transform: scale(.97); }
.svcard .skipbtn:disabled { opacity: .45; }
.svcard .skipbtn:focus-visible { outline: 2px solid #101216; outline-offset: 2px; }
.svcard .skipcount {
  flex: 0 0 auto; min-width: 30px; text-align: center;
  font-size: 26px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: #101216;
}
.svcard .prio { width: 22px; height: 22px; color: #101216; filter: none; }
.svcard.priority { border-color: rgba(16,18,22,.28); box-shadow: 0 5px 12px rgba(96,78,40,.28); }
.svcard .roleflag {
  padding: 4px 8px; border-radius: 999px; background: #101216; color: #fff;
  font-size: 12px; font-weight: 850; letter-spacing: .08em; flex: 0 0 auto; align-self: center;
}
.banner {
  flex: 0 0 auto; padding: 8px 14px; font-weight: 650; font-size: 13px;
  background: #eef3fc; color: #2b4a8a; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.banner button { font-weight: 700; color: #2b4a8a; flex: 0 0 auto; }

/* ---------- main row ---------- */
.mainrow { flex: 1 1 auto; display: flex; min-height: 0; }
.waitpanel { flex: 0 0 248px; display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--line); min-height: 0; }
.panelhead { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.panelhead h2 { font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.addbtn {
  width: 44px; height: 44px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: #f5a623; color: var(--accent-ink);
}
.addbtn svg { width: 16px; height: 16px; }
.waitlist { flex: 1 1 auto; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 7px; }
.empty { color: var(--faint); font-size: 12.5px; text-align: center; padding: 18px 8px; border: 1px dashed var(--line2); border-radius: var(--r-md); margin: 4px; }
/* v67: no left indicator strip; bigger text, tighter cards */
.wcard { position: relative; border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; background: var(--panel2); user-select: none; -webkit-user-select: none; touch-action: pan-y; }   /* v33.1: swipe scrolls; press-and-hold drags */
.wcard .l1 { font-weight: 800; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.wcard .l2 { font-size: 13px; color: var(--muted); margin-top: 2px; }
.wcard .webic { color: #0e8a6d; flex: none; vertical-align: -3px; }   /* v34: little globe = joined from website */
#offlinebar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  padding: 12px 16px; text-align: center; font-size: 15px; font-weight: 700;
  color: #26221a; background: #f5a623;
}   /* v34.2: the server was unreachable — never sit silently empty */
#offlinebar button {
  margin-left: 8px; padding: 6px 14px; font-size: 14px; font-weight: 800;
  border: 0; border-radius: 8px; background: #26221a; color: #f5a623; cursor: pointer;
}
.wcard .acts { display: flex; gap: 6px; margin-top: 8px; }
.wcard .acts button {
  display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 700;
  min-height: 46px; padding: 8px 14px; border-radius: 8px; background: var(--panel3); color: var(--ink); border: 1px solid var(--line2);
}
.wcard .acts .primary { background: #f5a623; color: var(--accent-ink); font-weight: 800; flex: 1 1 0; min-width: 0; justify-content: center; border-color: transparent; }
.wcard .acts .primary .badge {   /* v67: big party-size badge on the Seat button */
  background: #26221a; color: #ffd75e; border-radius: 999px; min-width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800;
  padding: 0 8px; margin-left: 6px;
}
/* v68: Text ready = equal 50/50 split with Seat */
.wcard .acts .readyb { flex: 1 1 0; min-width: 0; justify-content: center; color: #0e6e8c; font-weight: 800; }
/* v68: remove = small X pinned in the card's upper right corner */
.wcard .xbtn {
  position: absolute; top: 6px; right: 6px; min-height: 0; padding: 4px; border-radius: 50%;
  width: 26px; height: 26px; justify-content: center; background: transparent;
  border: none; color: var(--muted);
}
.wcard .l1 { padding-right: 34px; }
.wcard .acts button:disabled { opacity: .35; }

/* ---------- floor ---------- */
.floorwrap { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.floor { flex: 1 1 auto; position: relative; overflow: auto; background: radial-gradient(1200px 700px at 30% 0%, #fbf3df 0%, var(--bg) 60%); }
.canvas { position: relative; transform-origin: 0 0; }
.zone { position: absolute; color: #8d8471; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; pointer-events: none; white-space: nowrap; }
/* v29: section-name labels shown on the floor while sections are being handed out */
.secdiv { position: absolute; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--secc); opacity: .75; pointer-events: none; text-align: center; text-shadow: 0 1px 2px rgba(255,255,255,.65); }
.tablebox {
  position: absolute; border-radius: 9px; border: 1.5px solid var(--open-line); background: var(--open);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-weight: 700; font-size: 13px; color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 1px 2px rgba(96,78,40,.22);
  transition: opacity .25s, box-shadow .15s; user-select: none; -webkit-user-select: none;
  font-variant-numeric: tabular-nums;
}
.tablebox .seats { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
/* v29: big table number on the map (floor + editor) */
.tablebox .tnum { font-size: 24px; font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; }
.floornote { padding: 32px 20px; text-align: center; color: var(--muted); font-size: 17px; }
.tablebox .party { font-size: 13px; font-weight: 700; color: var(--ink); }
/* v68: seated = 50% darker still, greyed into its own color, NO border, text untouched */
.tablebox.status-seated { background: #6e7683; border-color: transparent; }
.tablebox.status-dirty { background: #f7e3d3; border-color: var(--dirty); }
.tablebox.status-blocked { background: #eee9dc; border-color: #d9cfb6; color: #8b8574; }
.tablebox.status-reserved { background: #f4ead0; border-color: var(--reserved); }
/* v33 wait buckets in the add-to-wait-list sheet — v66: rows of 2, bigger buttons */
.waitgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 4px 0 2px; }
.waitgrid .big { min-height: 58px; padding: 10px 4px; font-size: 18px; }
/* v62: subtle dropdown-style More/Fewer row under the six range buttons — same clean
   text-with-chevron look as the Bigger party toggle */
.waitgrid .morebtn { grid-column: 1 / -1; background: none; border: none; color: var(--muted);
  font-size: 15px; font-weight: 600; padding: 4px 0 0; cursor: pointer; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 5px; }
.waitgrid .morebtn .ic { width: 14px; height: 14px; transition: transform .15s; }
.waitgrid .morebtn.on { color: var(--ink); }
.waitgrid .morebtn.on .ic { transform: rotate(180deg); }
.waitgrid .big.rec {
  background: repeating-linear-gradient(45deg, #eee7d2 0 5px, #f5efe0 5px 10px);
  border-color: #c9bfa6;
}
.sheet .waitgrid .big.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sheet .danger { width: 100%; padding: 14px; min-height: 48px; border-radius: 11px; background: #fdeceb; border: 1px solid #e5a49e; color: #b3341f; font-weight: 700; margin-top: 8px; font-size: 17px; }

/* v62: party size = 2 clean rows of 4, smaller buttons; bigger parties via a text chevron */
.sizegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 6px; }
.sizegrid .big { min-height: 44px; padding: 8px 0; font-size: 16px; }
.bigtoggle {
  width: 100%; background: none; border: none; color: var(--muted); font-size: 15px; font-weight: 600;
  padding: 4px 0 8px; display: flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.bigtoggle .ic { width: 14px; height: 14px; transition: transform .15s; }
.bigtoggle.on { color: var(--ink); }
.bigtoggle.on .ic { transform: rotate(180deg); }

/* v73: chosen party — its Seat button greys out (tap again to cancel); up/down row goes BELOW */
.wcard .acts .primary.chosen { opacity: .35; }
.wcard.choosing { border-color: var(--accent); }
.wcard .acts.reorderacts { margin-top: 6px; }
.wcard .acts.reorderacts button { flex: 1 1 0; min-width: 0; justify-content: center; min-height: 42px; }

/* v72: Reorder toggle — up/down buttons expand on each card's bottom row */
.reordertoggle {
  display: block; width: calc(100% - 16px); margin: 4px 8px 8px; padding: 10px;
  border-radius: 9px; border: 1px solid var(--line2); background: var(--panel2);
  color: var(--muted); font-size: 15px; font-weight: 700; cursor: pointer;
}
.reordertoggle.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
/* v71 float styles removed in v72 — ghost drag restored */

.joinline {
  position: absolute; height: 6px; margin-top: -3px; border-radius: 3px;
  background: var(--accent); opacity: .8; transform-origin: 0 50%;
  pointer-events: none; z-index: 0;
}
.tablebox { z-index: 1; }
.tablebox.sv-1 { background: color-mix(in srgb, var(--c1) 78%, #ffffff); border-color: var(--c1); }
.tablebox.sv-2 { background: color-mix(in srgb, var(--c2) 78%, #ffffff); border-color: var(--c2); }
.tablebox.sv-3 { background: color-mix(in srgb, var(--c3) 78%, #ffffff); border-color: var(--c3); }
.tablebox.sv-4 { background: color-mix(in srgb, var(--c4) 78%, #ffffff); border-color: var(--c4); }
.tablebox.sv-5 { background: color-mix(in srgb, var(--c5) 78%, #ffffff); border-color: var(--c5); }
.tablebox.sv-6 { background: color-mix(in srgb, var(--c6) 78%, #ffffff); border-color: var(--c6); }
.tablebox.status-seated.sv-1, .tablebox.status-seated.sv-2, .tablebox.status-seated.sv-3,
.tablebox.status-seated.sv-4, .tablebox.status-seated.sv-5, .tablebox.status-seated.sv-6 {
  background: color-mix(in srgb, var(--sc) 30%, #6e7683); border-color: transparent;
}
.tablebox .party { text-shadow: none; }
.tablebox.dim { opacity: .16; }
.tablebox.focus { box-shadow: 0 0 0 2px rgba(245,166,35,.85), 0 0 14px rgba(245,166,35,.25); }
.tablebox.drop-ok { box-shadow: 0 0 0 2px rgba(76,195,138,.9), 0 0 14px rgba(76,195,138,.3); }
.tablebox.editing { cursor: grab; }
.tablebox .delbtn {
  position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%;
  background: #d9534f; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}

/* ---------- charts / maps ---------- */
.maptabs { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; flex: 0 0 auto; background: var(--panel); border-bottom: 1px solid var(--line); }
.mapname {
  flex: 1 1 auto; text-align: center; font-weight: 750; font-size: 14px;
  color: var(--muted); letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.maptab.on { background: #f5a623; color: var(--accent-ink); border-color: transparent; font-weight: 750; }
/* solid dark badge, light text — readable on the orange selected tab and on grey tabs */
.maptab .mk {
  flex: 0 0 auto; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px;
  background: #ffffff; border: 1px solid var(--line2); color: var(--ink); align-self: center;
}
.maptab .mk.on { background: #26221a; border-color: #26221a; color: #ffffff; }
.editor { margin: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); }
.hint { padding: 8px 14px; color: var(--muted); font-size: 14px; flex: 0 0 auto; }

/* ---------- admin ---------- */
.admin-ui { flex: 1 1 auto; overflow-y: auto; padding: 4px 14px 30px; }
.admin-ui h3 { margin: 18px 0 8px; font-size: 15.5px; font-weight: 750; color: var(--ink); text-transform: none; letter-spacing: 0; display: flex; align-items: center; gap: 6px; }
.admrow { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 9px 12px; margin-bottom: 7px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admrow .nm { font-weight: 700; font-size: 13.5px; min-width: 80px; }
.admrow .stat { color: var(--muted); font-size: 12px; flex: 1 1 auto; font-variant-numeric: tabular-nums; }
.admrow .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.admrow .acts button { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 650; padding: 11px 14px; border-radius: 9px; background: var(--panel3); color: var(--ink); min-height: 44px; }
.admrow .acts .danger { background: transparent; border: 1px solid #e0b3aa; color: var(--bad); }
.addrow { margin: 6px 0; display: flex; gap: 8px; }
.addrow .tool { font-size: 12.5px; }
.chip.off { background: var(--panel3); color: var(--muted); font-size: 10.5px; padding: 1px 7px; border-radius: 999px; font-weight: 650; }
.chip.on { background: #dff0e6; color: var(--good); font-size: 10.5px; padding: 1px 7px; border-radius: 999px; font-weight: 650; }
.smslog { max-height: 40vh; overflow-y: auto; margin-bottom: 10px; }
.smsrow { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.smsrow .stat { display: inline-block; min-width: 104px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(70,58,34,.4); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal.kb { align-items: flex-start; padding-top: 12px; }   /* v74: keyboard up — anchor the sheet to the top of the visible area */
.sheet { position: relative; background: var(--panel); width: 100%; max-width: 500px; border-radius: 18px; padding: 18px 16px; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow); }
.sheet .row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.sheet .big {
  border-radius: 12px; background: var(--panel2); border: 1.5px solid var(--line);
  color: var(--ink); font-weight: 750; font-size: 18px; font-variant-numeric: tabular-nums;
}
.sheet .big.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sheet .row .big { flex: 1 1 140px; padding: 16px 0; font-size: 18px; }
.sheet .stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sheet .stepper > span { font-size: 17px; font-weight: 700; color: var(--muted); min-width: 52px; }
.sheet .stepbtn {
  flex: 1 1 0; height: 56px; border-radius: 12px; background: var(--panel3);
  color: #fff; font-size: 30px; font-weight: 700; line-height: 1;
}
.sheet .stepbtn:active { background: var(--panel2); }
.sheet .stepbtn:disabled { opacity: .4; }
.sheet .stepval {
  flex: 0 0 84px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: var(--accent); border: 1.5px solid var(--accent); border-radius: 12px;
  color: var(--accent2); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.sheet .shapebtn.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.sheet h3 { font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.sheet input[type=text], .sheet input[type=tel], .sheet input[type=number], .sheet input[type=password], .sheet select {
  width: 100%; padding: 14px; font-size: 17px; border: 1px solid var(--line2); border-radius: 11px; margin-bottom: 10px;
  background: var(--panel2); color: var(--ink); min-height: 50px;
}
.sheet input::placeholder { color: var(--faint); }
.sheet .primary { width: 100%; padding: 16px; min-height: 48px; border-radius: 12px; background: #f5a623; color: var(--accent-ink); font-size: 17px; font-weight: 800; letter-spacing: .01em; }
.sheet .secondary { width: 100%; padding: 14px; min-height: 48px; border-radius: 11px; background: var(--panel2); border: 1px solid var(--line); font-weight: 700; margin-top: 8px; color: var(--ink); font-size: 17px; }
.sheet .note { font-size: 17px; line-height: 1.4; color: var(--muted); margin: 6px 0 10px; }
.smsopt { display: flex; gap: 9px; align-items: center; font-size: 14.5px; line-height: 1.35; color: var(--muted); margin: 2px 0 4px; cursor: pointer; }
.smsopt input[type="checkbox"] { width: 19px; height: 19px; flex: 0 0 auto; accent-color: #f5a623; }
.svrowpick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 10px; }
.svrowpick .big { flex: 1 1 auto; white-space: nowrap; min-height: 56px; padding: 12px 20px; font-size: 17px; }
.svrowpick .big.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.secchips { display: flex; gap: 6px; overflow-x: auto; flex: 0 1 auto; align-items: center; }
.secchip {
  flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center;
  padding: 10px 15px; border-radius: 999px; color: var(--ink);
  background: color-mix(in srgb, var(--secc, #3d6bd8) 30%, #ffffff);
  border: 1.5px solid var(--secc, #3d6bd8);
  font-weight: 750; font-size: 13.5px; white-space: nowrap;
}
.secchip.on { background: var(--secc, #3d6bd8); color: var(--accent-ink); font-weight: 800; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(96,78,40,.25); }
.roster-prompt {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: #8a5c00; font-weight: 650; font-size: 13.5px;
}

.tablebox.sec { background: color-mix(in srgb, var(--secc, #3d6bd8) 68%, #ffffff); border-color: var(--secc, #3d6bd8); color: #101216; }
.tablebox.sec.status-seated { background: color-mix(in srgb, var(--secc, #3d6bd8) 30%, #6e7683); border-color: transparent; color: var(--ink); }
.tablebox.sec .seats { color: rgba(16,18,22,.78); }
.tablebox.sec-selected { border: 3px solid #101216; box-shadow: 0 5px 12px rgba(96,78,40,.28); }
/* charts tool row: chips scroll INSIDE their strip; mode buttons stay pinned on-screen.
   The strip gets real block space (min-height + padding) so the selected chip's lift
   and shadow are never clipped vertically. */
#toolrow { overflow: hidden; align-items: center; }
#toolrow .secchips {
  display: flex; gap: 6px; align-items: center; flex: 1 1 auto; min-width: 0;
  overflow-x: auto; overflow-y: visible; padding: 12px 2px 14px; min-height: 68px;
}
#toolrow .secrow2 { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
#toolrow .tool { flex: 0 0 auto; }
.maptab.new { border-style: dashed; color: var(--muted); background: transparent; }
.modespring { flex: 0 0 8px; }
/* while picking a section, every non-selected chip goes fully grey */
.secchip.dim { background: #efe9da; border-color: #d9cfb6; color: #a49d8b; }
.tool.done {
  flex: 0 0 auto; background: var(--good);
  color: #ffffff; border-color: transparent; font-weight: 800; font-size: 15px;
}
.editor.building { outline: 2px solid rgba(245,166,35,.55); outline-offset: -2px; border-radius: var(--r-md); }
.tablebox.build-dim { opacity: .62; }
.tablebox.sec-selected {
  border: 3px solid #101216;
  box-shadow: 0 5px 12px rgba(96,78,40,.28);
}
/* mode cue: tables become visibly actionable while a floor mode is active */
.floor.mode-seat .tablebox.status-open,
.floor.mode-server .tablebox.status-open,
.floor.mode-assign .tablebox.sec {
  cursor: pointer; transform: translateY(-1px); box-shadow: 0 4px 9px rgba(96,78,40,.25);
}
.maptabs .tool[disabled] { opacity: .45; }

/* ---------- v29: charts/map mode switch; exclusion = dimming only (membership rule) ---------- */
.chartmode { display: flex; gap: 6px; padding: 8px 12px 0; flex: 0 0 auto; background: var(--panel); }
.tablebox.excl-dim { opacity: .45; border-style: dashed; }
/* v33: joined pair — same dashed amber outline on both halves */
.tablebox.joined { border-style: dashed; border-color: #f5a623; }

/* ---------- v23 draft save/cancel box ----------
   Small floating box by the lower edge of the charts view. No backdrop, and the
   container passes pointer events through so it never blocks the map; only the
   buttons themselves are interactive. Visible only while dirty / saving / error. */
#view-charts { position: relative; }
.svcard { position: relative; }   /* v61: anchors the section-clear X */
.secclear {
  position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.28); color: #fff; display: flex; align-items: center; justify-content: center;
  padding: 0; cursor: pointer;
}
.secclear .ic { width: 13px; height: 13px; }
.svcard.picking .secclear, .svcard.up_next .secclear { display: none; }
.draftbox {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--panel2); border: 1px solid var(--line2); border-radius: 14px;
  padding: 10px 12px; box-shadow: var(--shadow); pointer-events: none;
}
.draftbox .dbrow { display: flex; align-items: center; gap: 10px; pointer-events: auto; }
.draftbox .dbtitle { font-weight: 750; font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.draftbox .tool { padding: 10px 14px; min-height: 44px; }   /* staff-sized taps */
.draftbox .tool:disabled { opacity: .5; }
.draftbox.dirty { border-color: var(--accent); box-shadow: 0 6px 18px rgba(96,78,40,.3); }
.draftbox.dirty .dbtitle { color: var(--dirty); }
.draftbox .dberr { max-width: 340px; text-align: center; font-size: 12.5px; color: var(--bad); font-weight: 650; pointer-events: auto; }

.anno { position: absolute; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.anno .rz {
  position: absolute; right: -9px; bottom: -9px; width: 22px; height: 22px;
  border-radius: 6px; background: #ffffff; border: 2px solid #6e6858;
  box-shadow: 0 1px 4px rgba(96,78,40,.35); cursor: nwse-resize; touch-action: none;
}
.anno .anno-x {
  position: absolute; left: -9px; top: -9px; width: 22px; height: 22px;
  border-radius: 50%; background: #b3442f; color: #fff; border: 2px solid #6e6858;
  font-size: 14px; font-weight: 800; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.anno.shape { background: #6e6858; border: 1.5px solid #57513f; opacity: .5; }
.tablebox.round { border-radius: 50%; }   /* v54: round tables are true circles (bar seats, 41) */
.rbadge {   /* v60: little R marker on a reserved tile's seat-count line */
  display: inline-block; width: 17px; height: 17px; line-height: 17px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800;
  text-align: center; margin-right: 5px; vertical-align: -2px;
}
.anno.shape.round { border-radius: 50%; }
.anno.text { color: #8d8471; font-weight: 750; display: flex; align-items: center; justify-content: center; text-transform: uppercase; letter-spacing: .09em; white-space: nowrap; overflow: visible; background: none; border: none; }
/* floor-level error strip: only used when a skip or a section assignment could not be saved */
.floorerr {
  display: flex; align-items: center; padding: 9px 14px;
  background: #fbe9e4; border-bottom: 1px solid #e3b7ac;
  color: #b3341f; font-weight: 650; font-size: 13.5px; flex: 0 0 auto;
}
.svcard.picking { box-shadow: 0 0 0 3px #ffffff, 0 6px 14px rgba(96,78,40,.3); transform: translateY(-2px); }
.svcard.picking .nm { color: #101216; }
.tool { min-height: 44px; }

/* ---------- v24 Settings page (#/admin): Today / Manage tabs ----------
   Light flat surfaces, 44px targets, no rings or gradients. Rows wrap instead of
   overflowing, so nothing is clipped at 768px or 1024px. */
.tabs { display: flex; gap: 6px; padding: 8px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.tab {
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  background: var(--panel2); border: 1px solid var(--line);
  color: var(--ink); font-weight: 700; font-size: 14px;
}
.tab.on { background: #f5a623; border-color: transparent; color: var(--accent-ink); font-weight: 800; }
.seterr {
  background: #fbe9e4; border: 1px solid #e3b7ac; color: #b3341f;
  border-radius: var(--r-md); padding: 10px 12px; margin: 10px 0; font-weight: 650; font-size: 13px;
}
.sechead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sechead .tool { font-size: 12.5px; }
.admin-ui .admrow .nm { min-width: 120px; }
.admin-ui button[disabled] { opacity: .45; }
.endday { margin: 22px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.subdetails { margin: 16px 0 4px; }
.subdetails > summary {
  list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 7px;
  font-size: 15.5px; font-weight: 700; color: var(--ink); text-transform: none; letter-spacing: 0;
}
.subdetails > summary::-webkit-details-marker { display: none; }
.subdetails > summary .ic { width: 13px; height: 13px; color: var(--faint); }
.subdetails[open] > summary .ic { transform: rotate(180deg); }
.sheet .primary.danger { background: #a03a2b; color: #fff; }
.sheet .primary:disabled, .sheet .secondary:disabled { opacity: .6; }

/* ---------- drag ghost ---------- */
.dragghost {
  position: fixed; z-index: 99; pointer-events: none; padding: 8px 14px; border-radius: 10px;
  background: var(--good); color: #ffffff; font-weight: 800; font-size: 13px; box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}
