* {
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  --ink: #183d35;
  --sub: #576a60;
  --teal: #007c61;
  --paper: #fcfcf7;
  --line: #d2d9cb;
  --serif: "Songti TC", "Noto Serif TC", "PingFang TC", serif;
  --ui: "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-family: var(--ui);
  color: var(--ink);
  background: #edf1e7;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button,
select,
input[type="date"] {
  cursor: pointer;
}
button {
  border: 0;
  background: transparent;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #ef8345;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.mast {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
  padding: 0 clamp(22px, 4vw, 72px);
  background: var(--paper);
  border-bottom: 1px solid #bcc7b9;
}
.brand {
  font: 700 29px/1 var(--serif);
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.nav-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--sub);
  font-size: 13px;
}
.demo {
  font-size: 11px;
  letter-spacing: 0.1em;
  border: 1px solid #cad2c4;
  border-radius: 4px;
  padding: 3px 7px;
}
.nav-tools a:hover {
  text-decoration: underline;
}

.ic {
  width: 17px;
  height: 17px;
  display: inline-block;
  vertical-align: middle;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
i[data-icon] {
  display: inline-flex;
}
.stage {
  position: relative;
  height: calc(100vh - 74px);
  height: calc(100dvh - 74px);
  min-height: 365px;
  overflow: hidden;
  isolation: isolate;
  background-color: #edf1e7;
  background-image:
    radial-gradient(#c3cebd 0.8px, transparent 0.95px),
    radial-gradient(ellipse at 49% 52%, #f8f7e9 0, transparent 74%);
  background-size:
    16px 16px,
    100% 100%;
}
.map-surface {
  position: absolute;
  inset: 0;
  touch-action: none;
  overscroll-behavior: contain;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.map-surface:active {
  cursor: grabbing;
}
#floor {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: auto;
  overflow: visible;
  transform: translate3d(-50%, -50%, 0);
  transform-origin: center;
  display: block;
  font-family: var(--ui);
}
.map-table[role="button"] {
  cursor: pointer;
  outline: none;
}
.map-table .picked {
  display: none;
}
.map-table.selected .picked {
  display: block;
}
.map-table.selected .tag-box,
.map-table:focus-visible .tag-box {
  stroke: #f58142;
  stroke-width: 3;
}
.map-table[role="button"]:hover .tag-box {
  stroke-width: 2.6;
}
.intro,
.legend,
.context-wrap,
.zoom-tools,
.field-bar {
  position: absolute;
}
.intro {
  pointer-events: none;
  left: clamp(22px, 4vw, 72px);
  top: clamp(24px, 4vh, 52px);
}
h1,
h2,
h3,
p {
  margin: 0;
}
.intro h1,
.sheet-card h2,
#dialog h2 {
  font-family: var(--serif);
  font-weight: 700;
}
.intro h1 {
  font-size: clamp(32px, 3.25vw, 50px);
  letter-spacing: 0.055em;
  line-height: 1.22;
}
.intro p {
  margin-top: 9px;
  color: var(--sub);
  font-size: 14px;
}
.legend {
  top: clamp(29px, 4.7vh, 58px);
  right: clamp(22px, 4vw, 72px);
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sub);
}
.legend span,
.sync-line,
.context,
.context span {
  display: flex;
  align-items: center;
}
.legend span {
  gap: 7px;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: #a1a49e;
  box-shadow: inset 0 -2px #0002;
}
.dot.free {
  background: #00a77f;
}
.context-wrap {
  left: clamp(22px, 4vw, 72px);
  bottom: 26px;
  pointer-events: none;
}
.context,
.zoom-tools {
  border: 1px solid #c6d0c0;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 3px 8px #3347350d;
}
.context {
  gap: 14px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 650;
}
.context span {
  gap: 7px;
}
.context span + span {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.context .ic {
  color: #557165;
}
.sync-line {
  gap: 7px;
  font-size: 11px;
  color: #566b5c;
  margin-top: 9px;
}
.signal {
  width: 6px;
  height: 6px;
  background: #a08d64;
  border-radius: 50%;
}
.online .signal {
  background: var(--teal);
}
#count {
  padding-left: 9px;
  margin-left: 3px;
  border-left: 1px solid #bac6b6;
}
.zoom-tools {
  bottom: 33px;
  right: clamp(22px, 4vw, 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.zoom-tools button {
  height: 41px;
  min-width: 41px;
  font-size: 21px;
  font-weight: 500;
}
.zoom-tools button:hover,
.close:hover {
  background: #e9eee4;
}
.zoom-tools #zoom {
  font-size: 12px;
  min-width: 48px;
  border-inline: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.field-bar {
  top: 125px;
  left: clamp(22px, 4vw, 72px);
  right: clamp(22px, 4vw, 72px);
  margin: 0 auto;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  min-width: 0;
}
.field select,
.field input,
#reset-code {
  background: #fffef9;
  border: 1px solid #c5cebf;
  border-radius: 6px;
  padding: 9px 11px;
  min-height: 42px;
  width: 100%;
  font-size: 15px;
  font-weight: 500;
  outline-offset: 1px;
}
input[type="date"] {
  min-width: 0;
  text-align: left;
}

#sheet {
  border: 0;
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  overflow: hidden;
}
#sheet::backdrop {
  background: rgb(28 52 39 / 16%);
}
#trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#trail path {
  fill: none;
  stroke: #12644f;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  animation: trace 0.32s ease-out both;
}
#trail circle {
  fill: #fcfff2;
  stroke: #12644f;
  stroke-width: 2.4;
}
.sheet-card {
  position: absolute;
  right: clamp(18px, 3.6vw, 60px);
  top: 50%;
  translate: 0 -50%;
  width: min(355px, 42vw);
  max-height: calc(100% - 28px);
  overflow: auto;
  padding: 28px;
  background: var(--paper);
  border: 1px solid #b5c5b3;
  border-top: 5px solid var(--teal);
  border-radius: 15px;
  color: var(--ink);
  box-shadow: 0 16px 70px #1c382c26;
  transform-origin: left center;
  animation: unfold 0.37s 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes trace {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes unfold {
  from {
    opacity: 0;
    clip-path: inset(48% 97% 48% 0 round 9px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 round 9px);
  }
}
.close {
  position: absolute;
  right: 13px;
  top: 12px;
  border-radius: 50%;
  height: 38px;
  width: 38px;
  display: grid;
  place-items: center;
  color: var(--sub);
}
.sheet-card h2 {
  font-size: 29px;
  letter-spacing: 0.03em;
}
.sheet-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sub);
  margin: 8px 0 20px;
  font-size: 13px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.fields > .field:first-child {
  grid-column: 1/-1;
}
details {
  font-size: 12px;
  margin: 14px 0;
  color: var(--sub);
}
summary {
  cursor: pointer;
  min-height: 25px;
}
details select {
  margin-top: 5px;
}
.message {
  font-size: 14px;
  line-height: 1.6;
  margin: 14px 0;
  color: #165f4d;
}
.message.error {
  color: #944528;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--teal);
  color: white;
  border-radius: 7px;
  font-weight: 650;
  width: 100%;
  padding: 13px;
}
.primary:disabled {
  background: #d6ddd1;
  color: #607264;
}
.primary:enabled:hover {
  background: #006951;
}
#dialog {
  width: min(92vw, 370px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
}
#dialog::backdrop {
  background: #263d3555;
}
#dialog p {
  margin: 15px 0;
  line-height: 1.6;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.actions button {
  flex: 1;
  min-height: 40px;
}
@media (max-width: 640px) {
  .mast {
    height: 85px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr auto;
    padding: 10px 16px 8px;
    gap: 2px 8px;
  }
  .brand {
    font-size: 24px;
    grid-row: 1/3;
  }
  .nav-tools {
    gap: 10px;
    font-size: 11px;
  }
  .demo {
    font-size: 10px;
    padding: 1px 5px;
  }
  .nav-tools a {
    padding-inline: 3px;
  }

  .stage {
    height: calc(100dvh - 85px);
    min-height: 345px;
  }
  .intro {
    top: 25px;
    left: 18px;
  }
  .intro h1 {
    font-size: 33px;
  }
  .intro p {
    font-size: 13px;
    margin-top: 5px;
  }
  .legend {
    top: 108px;
    left: 18px;
    right: auto;
    gap: 16px;
    font-size: 11px;
  }
  .dot {
    width: 10px;
    height: 10px;
  }
  .context-wrap {
    left: 16px;
    bottom: max(18px, env(safe-area-inset-bottom));
  }
  .context {
    gap: 8px;
    padding: 10px;
    font-size: 12px;
  }
  .context span {
    gap: 4px;
  }
  .context span + span {
    padding-left: 8px;
  }
  .context .ic {
    width: 14px;
    height: 14px;
  }
  .zoom-tools {
    bottom: max(77px, calc(env(safe-area-inset-bottom) + 60px));
    right: 14px;
    flex-direction: column;
    border-radius: 10px;
  }
  .zoom-tools button {
    min-width: 40px;
    height: 40px;
  }
  .zoom-tools #zoom {
    min-width: 40px;
    font-size: 10px;
    height: 27px;
    border: 0;
    border-block: 1px solid var(--line);
  }
  .sync-line {
    font-size: 10.5px;
  }

  .field-bar select,
  .field-bar input {
    padding: 6px;
    min-height: 38px;
    font-size: 14px;
  }
  .sheet-card {
    top: auto;
    bottom: 0;
    right: 0;
    width: 100%;
    translate: none;
    max-height: 78dvh;
    border-radius: 20px 20px 0 0;
    padding: 21px 20px max(22px, env(safe-area-inset-bottom));
    transform-origin: top center;
    animation-name: sheetup;
  }
  .sheet-card h2 {
    font-size: 25px;
  }
  .sheet-meta {
    margin: 5px 0 15px;
  }
  .sheet-card input,
  .sheet-card select {
    font-size: 16px;
  }
  @keyframes sheetup {
    from {
      opacity: 0;
      clip-path: inset(0 47% 98% 47% round 15px);
    }
    to {
      opacity: 1;
      clip-path: inset(0 round 0);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}

.availability {
  margin: 13px 0;
  font-size: 13px;
  line-height: 1.6;
  color: #814d35;
}
.availability.ok {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--teal);
}
.done {
  margin-top: 20px;
}
@media (min-width: 641px) {
  #sheet.from-right .sheet-card {
    right: auto;
    left: clamp(18px, 3.6vw, 60px);
    transform-origin: right center;
  }
}
.staff {
  background: #f3f5ed;
}
.staff main {
  max-width: 1390px;
  margin: auto;
  padding: 30px clamp(20px, 4vw, 64px) 50px;
}
.staff .intro {
  position: static;
  margin-bottom: 24px;
}
.staff .intro h1 {
  font-size: 38px;
}
.staff-workspace {
  display: grid;
  grid-template-columns: minmax(270px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.staff .field-bar,
.staff #bookings {
  position: static;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  margin: 0;
}
.staff h2 {
  font: 700 23px/1.4 var(--serif);
  letter-spacing: 0.04em;
}
.staff .field-bar h2 {
  margin-bottom: 18px;
}
.staff-hint {
  margin: 12px 0 16px;
  font-size: 13px;
  color: var(--sub);
}
.staff .stage {
  height: clamp(385px, 47vh, 510px);
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.staff-map-title {
  position: absolute;
  left: 18px;
  top: 13px;
  pointer-events: none;
}
.staff .legend {
  top: 22px;
  left: auto;
  right: 18px;
  font-size: 11px;
}
.staff .context-wrap {
  bottom: 12px;
  left: 17px;
}
.staff .context {
  display: none;
}
.staff .zoom-tools {
  flex-direction: row;
  right: 12px;
  bottom: 10px;
}
.staff .zoom-tools button {
  height: 31px;
  min-width: 31px;
  font-size: 17px;
}
.staff .zoom-tools #zoom {
  font-size: 10px;
  border-block: 0;
  border-inline: 1px solid var(--line);
}
.staff #bookings {
  margin-top: 19px;
}
.book-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.book-head span,
.source,
.empty {
  font-size: 13px;
  color: var(--sub);
}
.book-head button {
  margin-left: auto;
  font-size: 12px;
  text-decoration: underline;
  color: var(--sub);
}
.empty {
  padding: 22px 0;
}
.staff ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
}
.staff li {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.time-range {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.staff li small {
  color: var(--sub);
  font-weight: 400;
  font-size: 12px;
  margin-left: 8px;
}
.staff li button {
  color: #8e523b;
  font-size: 12px;
  background: #f4eee4;
  padding: 8px 12px;
  border-radius: 5px;
}
@media (max-width: 760px) {
  .staff-workspace {
    grid-template-columns: 1fr;
  }
  .staff .stage {
    height: 385px;
  }
  .staff main {
    padding: 22px 16px;
  }
  .staff .field-bar,
  .staff #bookings {
    padding: 17px;
  }
  .staff .mast {
    height: 60px;
    display: flex;
    align-items: center;
  }
  .staff .intro h1 {
    font-size: 31px;
  }
  .staff .intro {
    margin-bottom: 15px;
  }
  .staff li {
    grid-template-columns: 1fr 1fr auto;
  }
  .staff li small {
    display: block;
    margin: 2px 0;
  }
  .staff .source {
    grid-column: 2;
    font-size: 11px;
  }
  .staff li button {
    grid-column: 3;
    grid-row: span 2;
  }
  .book-head {
    flex-wrap: wrap;
    gap: 7px;
  }
  .book-head span {
    font-size: 11px;
  }
}
body:has(#sheet[open]) {
  overflow: hidden;
}
@media (min-width: 641px) {
  #sheet.from-right .sheet-card {
    animation-name: unfold-left;
  }
  @keyframes unfold-left {
    from {
      opacity: 0;
      clip-path: inset(48% 0 48% 97% round 9px);
    }
    to {
      opacity: 1;
      clip-path: inset(0 round 9px);
    }
  }
}
@media (max-width: 760px) {
  .staff li {
    grid-template-areas: "range seat cancel" "range source cancel";
    row-gap: 2px;
  }
  .staff li .time-range {
    grid-area: range;
  }
  .staff li div:nth-child(2) {
    grid-area: seat;
  }
  .staff li .source {
    grid-area: source;
  }
  .staff li button {
    grid-area: cancel;
  }
}

.map-table:not(.free) .tag-box { stroke-dasharray: 4 2; }
.assigned-tag, .staff .map-table.selected .picked { display: none; }
.staff .map-table.selected .assigned-tag { display: block; }

.guest {
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --ink: #202428;
  --sub: #565e66;
  --line: #d7dce0;
  --active: #007c66;
  --mast-height: calc(58px + env(safe-area-inset-top));
  --hairline: 1px solid rgb(46 57 65 / 12%);
  --glass-shadow: 0 4px 20px rgb(39 56 67 / 6%), inset 0 1px rgb(255 255 255 / 90%);
  color: var(--ink);
  background: #f8f9fa;
  font-family: var(--ui);
}
.guest .mast {
  position: absolute;
  inset: 0 0 auto;
  height: var(--mast-height);
  padding: env(safe-area-inset-top) max(20px, 4vw, env(safe-area-inset-right)) 0 max(20px, 4vw, env(safe-area-inset-left));
  display: flex;
  background: #f8f9fa;
  border-bottom: var(--hairline);
  box-shadow: 0 1px 6px #28343e04;
}
.guest .brand { font: 550 22px/1.2 var(--ui); letter-spacing: .025em; }
.guest .nav-tools { gap: 16px; font-size: 12px; }
.guest .demo { padding: 0; border: 0; font-size: 11px; letter-spacing: .03em; }
.guest .nav-tools a {
  border-left: 1px solid var(--line);
  padding: 3px 0 3px 16px;
  color: var(--ink);
}
.guest .stage {
  display: grid;
  grid-template-rows: var(--mast-height) minmax(0, 1fr) auto;
  justify-items: center;
  height: 100vh;
  height: 100dvh;
  background: radial-gradient(ellipse at 47% 46%, #fff 12%, #f8f9fa 72%, #f1f3f5);
}
/* Fit the plan between controls. Panning can carry it behind either glass surface. */
.guest .map-surface, .guest .legend { grid-area: 2 / 1; }
.guest .map-surface { position: relative; width: 100%; overflow: visible; }
.guest .legend {
  position: relative;
  inset: auto;
  align-self: end;
  justify-self: end;
  margin: 0 max(18px, 4vw) 13px 0;
  padding: 4px 8px;
  gap: 12px;
  color: var(--sub);
  background: rgb(249 250 251 / 85%);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  pointer-events: none;
}
.guest .dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: none; background: #797f84; }
.guest .dot.free { background: var(--active); }
.guest .context-wrap {
  grid-area: 3 / 1;
  position: relative;
  inset: auto;
  width: min(780px, calc(100% - 48px));
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}
.guest .context { display: none; }
#guest-dock, .guest .sheet-card {
  background: #fafbfc;
  border: var(--hairline);
  box-shadow: var(--glass-shadow);
}
#guest-dock { pointer-events: auto; border-radius: 20px; padding: 18px 28px 10px; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .guest .mast, #guest-dock, .guest .sheet-card {
    background: rgb(252 253 254 / 74%);
    -webkit-backdrop-filter: saturate(125%) blur(14px);
    backdrop-filter: saturate(125%) blur(14px);
  }
  .guest .sheet-card { background: rgb(250 252 253 / 70%); }
}
.timeline-head, .party-control { display: flex; align-items: center; }
.timeline-head { justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.timeline-readout { display: grid; gap: 3px; }
.timeline-label, .party-control { color: var(--sub); font-size: 12px; white-space: nowrap; }
#slot-day { margin-left: 6px; color: var(--ink); }
#slot-label {
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.timeline-readout:has(#slot-day:empty) #slot-label { font-size: 16px; }
.party-control { gap: 10px; }
.party-control select, .guest .field :is(input, select) {
  color: var(--ink);
  background-color: rgb(255 255 255 / 80%);
  border: 1px solid #c8ced3;
  border-radius: 10px;
  font-weight: 450;
}
.party-control select { min-height: 44px; padding: 0 9px; font-size: 16px; }
#scrubber {
  position: relative;
  height: 62px;
  touch-action: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#scrubber:focus-visible, .guest :is(button, a, select, input):focus-visible {
  outline: 2px solid var(--active);
  outline-offset: 3px;
}
#timeline-scale, #playhead { pointer-events: none; }
#timeline-scale > span, #playhead { position: absolute; }
.scale-meal, .scale-break, .scale-open { top: 31px; height: 3px; }
.scale-meal { background: #d4d9dd; }
.scale-open { background: #78848c; min-width: 2px; }
.scale-break {
  top: 29px;
  height: 7px;
  background: repeating-linear-gradient(120deg, transparent 0 2px, #a0a8af 2px 3px, transparent 3px 5px);
}
.scale-progress { inset: 0; clip-path: inset(0 var(--remaining, 100%) 0 0); }
.scale-progress .scale-open { position: absolute; background: var(--active); }
.scale-time, .scale-day { white-space: nowrap; font-variant-numeric: tabular-nums; }
.scale-time { top: 42px; color: var(--sub); font-size: 11px; }
.scale-day { top: 1px; font-size: 12px; font-weight: 550; }
.scale-day::after { content: ""; position: absolute; left: 0; top: 21px; height: 8px; border-left: 1px solid #9aa3ab; }
.scale-tick { top: 29px; height: 7px; border-left: 1px solid #77848c; }
.scale-tick.full { border-color: #b0b6ba; z-index: 1; }
#playhead {
  z-index: 2; top: 25px; left: -7.5px; width: 15px; height: 15px;
  border: 2px solid white; border-radius: 50%;
  background: var(--active); box-shadow: 0 0 0 1px #006958;
  will-change: transform;
}
#scrubber:active #playhead { box-shadow: 0 0 0 5px #007c6626; }
.guest .sync-line { justify-content: center; margin-top: 9px; color: var(--sub); }
.guest #count, #break-key { border-color: var(--line); }
#break-key { padding-right: 10px; margin-right: 3px; border-right: 1px solid var(--line); }
.guest #sheet::backdrop { background: rgb(46 56 65 / 12%); }
.guest:has(#sheet[open]) :is(.context-wrap, .legend) { visibility: hidden; }
.guest #trail path, .guest #trail circle { stroke: #42595d; stroke-width: 1.8; }
.guest #trail circle { fill: white; }
.guest .sheet-card { border-radius: 21px; padding: 28px; width: min(380px, 43vw); }
.guest .sheet-card h2 { font: 550 28px/1.22 var(--ui); letter-spacing: -.015em; }
.guest .sheet-meta { margin: 6px 0 20px; }
.guest .close { background: rgb(216 222 226 / 50%); width: 34px; height: 34px; }
.guest .close:hover { background: #dbe0e4; }
.guest .field { color: var(--sub); font-weight: 500; }
.guest .field :is(input, select) { min-height: 44px; font-size: 16px; }
.guest .availability.ok { color: var(--active); }
.guest .primary { background: #262b2e; border-radius: 24px; font-weight: 550; }
.guest .primary:enabled:hover { background: #42494d; }
.guest .primary:disabled { background: #d9dde0; color: #5b6267; }
.contact-fields { display: grid; gap: 12px; margin: 15px 0; }
@media (max-width: 640px) {
  .guest { --mast-height: calc(54px + env(safe-area-inset-top)); }
  .guest .brand { font-size: 20px; }
  .guest .nav-tools { gap: 10px; }
  .guest .nav-tools a { padding-left: 10px; }
  .guest .context-wrap { width: calc(100% - 24px); padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  #guest-dock { padding: 14px 16px 5px; }
  .timeline-label, .party-control { font-size: 11px; }
  .party-control { gap: 5px; }
  .party-control select { padding: 0 4px; }
  .scale-time { font-size: 10px; }
  .guest .sheet-card {
    right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); width: calc(100% - 16px);
    padding: 22px 18px 18px; max-height: 80dvh;
  }
  .contact-fields { grid-template-columns: .9fr 1.1fr; gap: 10px; }
}
.map-table {
  --top: url(#smoke);
  --edge: #7b7c7b;
  --frame-light: #a6a7a5;
  --frame-shadow: #646664;
  --cushion: #c3c5c3;
  --tag: #5f6568;
  --outline: #e1e4e8;
}
.map-table.free {
  --top: url(#wood-top);
  --edge: #4c2f1e;
  --frame-light: #a8764c;
  --frame-shadow: #4a2e1c;
  --cushion: #008a6e;
  --tag: #00735c;
  --outline: #fff;
}
.guest .map-table:is(.selected, :focus-visible) .tag-box { stroke: #293b41; }

@media (hover: hover) {
  .map-table[role="button"]:hover .tag-box { stroke: #fff; }
}

/* Timeline: no card, a thin rail that swells under the finger, like a video scrubber. */
.guest #guest-dock {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 8px 4px 0;
}
.scale-meal, .scale-open { top: 31px; height: 3px; transition: transform .15s ease-out; }
.scale-meal { background: #d3d7da; }
.scale-open { background: #a9b1b7; }
.scale-break, .scale-tick { opacity: 0; }
.scale-tick.full { opacity: 1; top: 31px; height: 3px; border-left: 2px solid #f8f9fa; }
.scale-day::after { display: none; }
#playhead {
  top: 25px; left: -7.5px; border: 0; background: none; box-shadow: none;
}
#playhead::before {
  content: ""; position: absolute; inset: 1px; border-radius: 50%;
  background: var(--active); transition: transform .15s ease-out, box-shadow .15s ease-out;
}
#playhead::after {
  content: attr(data-label);
  position: absolute; left: 50%; bottom: 44px;
  padding: 5px 10px; border-radius: 6px;
  background: rgb(20 24 27 / 88%); color: #fff;
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
  opacity: 0; transform: translate(calc(-50% + var(--shift, 0px)), 6px);
  transition: opacity .12s, transform .12s ease-out;
}
#scrubber.scrubbing :is(.scale-meal, .scale-open), #scrubber:focus-visible :is(.scale-meal, .scale-open) { transform: scaleY(2.4); }
#scrubber.scrubbing .scale-tick.full { transform: scaleY(2.4); }
#scrubber.scrubbing #playhead { box-shadow: none; }
#scrubber.scrubbing #playhead::before { transform: scale(1.65); box-shadow: 0 0 0 6px rgb(0 124 102 / 18%); }
#scrubber.scrubbing #playhead::after { opacity: 1; transform: translate(calc(-50% + var(--shift, 0px)), 0); }
@media (hover: hover) {
  #scrubber:hover :is(.scale-meal, .scale-open) { transform: scaleY(1.8); }
  #scrubber:hover #playhead::before { transform: scale(1.3); }
}
@media (prefers-reduced-motion: reduce) {
  .scale-meal, .scale-open, #playhead::before, #playhead::after { transition: none; }
}
/* The footer only mentions syncing when live updates are unavailable. */
.guest.online :is(.signal, #sync) { display: none; }
.guest.online #count { border: 0; padding: 0; margin: 0; }

/* Staff page shares the guest page's neutral type, surfaces and controls. */
.staff {
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --ink: #202428;
  --sub: #565e66;
  --line: #d7dce0;
  --teal: #007c66;
  --paper: #fff;
  color: var(--ink);
  background: #f8f9fa;
  font-family: var(--ui);
}
.staff .mast { background: #f8f9fa; border-bottom: 1px solid rgb(46 57 65 / 12%); }
.staff .brand { font: 550 22px/1.2 var(--ui); letter-spacing: .025em; }
.staff .demo { padding: 0; border: 0; }
.staff .intro h1 { font: 550 32px/1.22 var(--ui); letter-spacing: -.015em; }
.staff h2 { font: 550 20px/1.4 var(--ui); letter-spacing: -.01em; }
.staff .field-bar, .staff #bookings, .staff .stage {
  border: 1px solid rgb(46 57 65 / 12%);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgb(39 56 67 / 6%);
}
.staff .stage { background: radial-gradient(ellipse at 47% 46%, #fff 12%, #f8f9fa 72%, #f1f3f5); }
.staff .field { color: var(--sub); font-weight: 500; }
.staff .field :is(input, select) {
  min-height: 44px; font-size: 16px; color: var(--ink);
  background-color: #fff; border: 1px solid #c8ced3; border-radius: 10px;
}
.staff .primary { background: #262b2e; border-radius: 24px; font-weight: 550; }
.staff .primary:enabled:hover { background: #42494d; }
.staff .primary:disabled { background: #d9dde0; color: #5b6267; }
.staff :is(button, a, select, input, summary):focus-visible { outline: 2px solid var(--teal); }
.staff .dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: none; background: #797f84; }
.staff .dot.free { background: var(--teal); }
.staff .zoom-tools { border-color: var(--line); box-shadow: none; }
.staff .zoom-tools button:hover { background: #eef0f2; }
.staff li button { border-radius: 16px; }
.staff .map-table.idle {
  --top: url(#wood-top);
  --edge: #4c2f1e;
  --frame-light: #a8764c;
  --frame-shadow: #4a2e1c;
  --cushion: #b9a893;
  --tag: #4a5258;
  --outline: #fff;
}
.staff .map-table.idle .tag-box { stroke-dasharray: none; }
:root:has(.staff) { background: #f8f9fa; }
