/* The sandbox on /try/. Page-only rules, tokens first, mobile first.
 * The look follows the product's calendar: a pale-blue ground, white cards, soft shadows, tall rows, strips tucked
 * in with a gap and round ends, and one colour per source with dark text on it. The channel colours are the only
 * colours typed here. Without script only .try-plain shows. Motion is short and stops under Pause motion and
 * reduced motion (the global rules in motion.css set the transition length to zero). */

/* a short hero and a tight first section, so the board is on the first screen */
.hero.hero--try { padding-block: var(--s-6) var(--s-4); }
.hero--try .hero__copy h1 { max-width: none; }
#sandbox.section { padding-block: var(--s-4) var(--s-7); }
#sandbox .section__head { margin-bottom: var(--s-3); }

.try-plain { display: grid; gap: var(--s-4); max-width: 46rem; }
.try-plain p { margin: 0; color: var(--ink-2); }

.try {
  --lw: 84px;
  --rowh: 56px;
  --barh: 36px;
  --gap: 5px;
  --colmin: 56px;
  --ink-bar: #14233b;
  --c-booking: #5b8def;
  --c-agoda: #f6766f;
  --c-expedia: #f6b24a;
  --c-direct: #56bdb9;
  --c-other: #9d8ef2;
  --bad: #b42318;
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-4);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .try { --bad: #ff9a90; }
}
:root[data-theme="dark"] .try { --bad: #ff9a90; }

/* ---------------------------------------------------------------- the top row */
.try-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); }
.try-place { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0; font-weight: 600; }
.try-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.try-seg { display: inline-flex; overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; }
.try-seg button {
  min-height: 40px;
  padding: 0 14px;
  background: transparent;
  border: 0;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.try-seg button + button { border-left: 1px solid var(--line-strong); }
.try-seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.try-seg button:focus-visible, .try-x:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.try-levy { display: inline-flex; align-items: center; gap: var(--s-2); font-size: 0.9375rem; font-weight: 600; }

.try select, .try input[type="text"] {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-0);
}
.try .try-levy select { width: auto; }
.try select:focus-visible, .try input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }

.try-hint {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 20;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  height: 58px;
  margin: 0;
  padding: 0 14px;
  max-width: none;
  background: var(--accent-soft);
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}
.try-hint span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.3;
}
.try-hint.is-warn { background: color-mix(in srgb, var(--bad) 14%, var(--surface)); }

/* ---------------------------------------------------------------- layout */
.try-layout { display: grid; gap: var(--s-4); align-items: start; }
.try-layout > * { min-width: 0; }
.try-main { display: grid; gap: var(--s-4); }
@media (min-width: 720px) {
  .try { --lw: 108px; --colmin: 64px; }
  .try-hint { height: 48px; }
}
@media (min-width: 1000px) {
  .try-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-5); }
}

/* ---------------------------------------------------------------- the board */
.try-board {
  overflow: auto;
  overscroll-behavior-x: contain;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.try-grid {
  --span: 7;
  position: relative;
  display: grid;
  grid-template-columns: var(--lw) minmax(0, 1fr);
  min-width: calc(var(--lw) + var(--span) * var(--colmin));
}
.try-grid[data-span="14"] { --colmin: 48px; }
.try-corner, .try-days { position: sticky; top: 0; height: var(--rowh); background: var(--surface); border-bottom: 1px solid var(--line); }
.try-corner { left: 0; z-index: 5; border-right: 1px solid var(--line); }
.try-days { z-index: 4; display: grid; grid-template-columns: repeat(var(--span), minmax(0, 1fr)); }
.try-day { display: grid; place-content: center; padding: 0 2px; border-left: 1px solid var(--line); color: var(--muted); font-size: var(--fs--1); line-height: 1.25; text-align: center; }
.try-day:first-child { border-left: 0; }
.try-day b { color: var(--ink); font-weight: 600; }
.try-day.is-today { background: var(--accent-soft); }

.try-rooms { position: sticky; left: 0; z-index: 3; background: var(--surface); border-right: 1px solid var(--line); }
.try-room {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  height: var(--rowh);
  padding: 0 10px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.try-room:first-child { border-top: 0; }
.try-room svg { display: none; flex: none; color: var(--accent); }
.try-room--dock { white-space: normal; line-height: 1.15; overflow: hidden; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); color: var(--ink-2); font-size: var(--fs--1); }
@media (min-width: 720px) {
  .try-room { padding: 0 14px; }
  .try-room svg { display: block; }
}

.try-track {
  position: relative;
  height: calc(13 * var(--rowh));
  overflow: hidden;
  background:
    linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / calc(100% / var(--span)) 100%,
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% var(--rowh);
  cursor: pointer;
}
.try-track::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--rowh);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-bottom: 1px dashed var(--line-strong);
  pointer-events: none;
}
.try-todaycol {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--c) / var(--span) * 100%);
  width: calc(100% / var(--span));
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  pointer-events: none;
}

/* a booking, a closed room, and the slot a drag will land in all place themselves with --r (row), --c (first night), --n (nights) */
.try-bk, .try-out {
  position: absolute;
  top: calc(var(--r) * var(--rowh) + (var(--rowh) - var(--barh)) / 2);
  left: calc(var(--c) / var(--span) * 100% + var(--gap));
  width: calc(var(--n) / var(--span) * 100% - 2 * var(--gap));
  height: var(--barh);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  padding: 0 12px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: left;
  white-space: nowrap;
}
.try-bk {
  --ch: var(--c-other);
  container-type: inline-size;
  background: var(--ch);
  color: var(--ink-bar);
  box-shadow: 0 1px 2px rgb(15 32 55 / 14%), 0 4px 10px rgb(15 32 55 / 10%);
  cursor: grab;
  touch-action: none;
  transition: left var(--t-base) var(--ease), top var(--t-base) var(--ease), width var(--t-base) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.try-bk[data-ch="booking"] { --ch: var(--c-booking); }
.try-bk[data-ch="agoda"] { --ch: var(--c-agoda); }
.try-bk[data-ch="expedia"] { --ch: var(--c-expedia); }
.try-bk[data-ch="direct"] { --ch: var(--c-direct); }
.try-bk[data-ch="other"] { --ch: var(--c-other); }
.try-bk__t { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.try-bk__s { display: none; flex: 0 100 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink-bar); font-weight: 500; }
@container (min-width: 150px) { .try-bk__s { display: inline; } }
.try-bk:hover { box-shadow: 0 2px 4px rgb(15 32 55 / 16%), 0 8px 18px rgb(15 32 55 / 16%); }
.try-bk:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.try-bk.is-selected { z-index: 2; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus), 0 8px 18px rgb(15 32 55 / 22%); }
.try-bk.is-cut { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.try-bk--wait {
  background: color-mix(in srgb, var(--ch) 36%, var(--surface));
  border: 2px dashed color-mix(in srgb, var(--ch) 80%, var(--ink));
  color: var(--ink);
}
.try-bk--wait .try-bk__s { color: var(--ink-2); }
.try-bk.is-dragging {
  z-index: 8;
  transition: none;
  transform: scale(1.03);
  cursor: grabbing;
  box-shadow: 0 14px 30px rgb(15 32 55 / 32%);
}
.try-bk.is-target { outline: 3px dashed var(--accent); outline-offset: 2px; cursor: pointer; }
.try-bk.is-refused { animation: try-shake 360ms var(--ease); }
.try-bk.is-landed { animation: try-land 420ms var(--ease); }
.try-bk.is-new { animation: try-pop 380ms var(--ease); }
@keyframes try-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
@keyframes try-land { 0%, 100% { transform: none; } 40% { transform: scale(1.06); } }
@keyframes try-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }

.try-out {
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 10px, var(--line) 10px 20px);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  cursor: not-allowed;
}

.try-drop {
  position: absolute;
  top: calc(var(--r) * var(--rowh));
  left: calc(var(--c) / var(--span) * 100%);
  width: calc(var(--n) / var(--span) * 100%);
  height: var(--rowh);
  z-index: 1;
  display: grid;
  place-items: center;
  border: 2px dashed var(--accent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: var(--fs--1);
  font-weight: 700;
  pointer-events: none;
  overflow: hidden;
}
.try-drop[data-ok="0"] { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }

html.try-dragging, html.try-dragging * { cursor: grabbing; -webkit-user-select: none; user-select: none; }

/* ---------------------------------------------------------------- the key under the board */
.try-key { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 0.9375rem; }
.try-key li { display: inline-flex; align-items: center; gap: var(--s-2); }
.try-dot { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 5px; }
.try-dot--booking { background: var(--c-booking); }
.try-dot--agoda { background: var(--c-agoda); }
.try-dot--expedia { background: var(--c-expedia); }
.try-dot--direct { background: var(--c-direct); }
.try-dot--other { background: var(--c-other); }
.try-dot--out { background: repeating-linear-gradient(135deg, var(--surface-2) 0 3px, var(--line-strong) 3px 6px); border: 1px solid var(--line-strong); }
.try-dot--wait { border: 2px dashed var(--ink-2); }

/* ---------------------------------------------------------------- the day sheet */
.try-sheet { padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.try-sheet h3 { margin: 0 0 var(--s-3); font-size: 1.0625rem; }
.try-sheet__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin: 0; }
.try-sheet__grid div { padding: 10px 12px; background: var(--surface-2); border-radius: 12px; }
.try-sheet dt { color: var(--muted); font-size: var(--fs--1); }
.try-sheet dd { margin: 2px 0 0; color: var(--ink); font-size: var(--fs-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.try-sheet__diff { display: inline-block; margin: var(--s-3) 0 0; padding: 6px 12px; background: var(--live-bg); border-radius: 999px; color: var(--live-fg); font-size: 0.9375rem; font-weight: 600; }
.try-sheet.is-flash .try-sheet__grid div { animation: try-flash 700ms var(--ease); }
@keyframes try-flash { 0% { background: var(--accent-soft); } 100% { background: var(--surface-2); } }
@media (min-width: 720px) {
  .try-sheet { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
  .try-sheet h3 { margin: 0; }
  .try-sheet__grid { flex: 1 1 28rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .try-sheet__diff { margin: 0; }
}

/* ---------------------------------------------------------------- the side panel (a bottom sheet on a phone) */
.try-panel {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  max-height: 70vh;
  overflow-y: auto;
  padding: 10px var(--gutter) calc(var(--s-5) + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -14px 40px rgb(15 32 55 / 24%);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform var(--t-base) var(--ease), visibility 0s linear var(--t-base);
}
.try-panel.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.try-panel__grab { width: 44px; height: 5px; margin: 0 auto 10px; background: var(--line-strong); border-radius: 3px; }
.try.has-sheet { padding-bottom: 70vh; }
.try.has-sheet.has-peek { padding-bottom: 170px; }
.try-panel.is-peek [data-pane="booking"] .try-block { display: none; }
.try-ph__btns { display: flex; flex: none; gap: var(--s-2); }
.try-pane { display: grid; gap: var(--s-3); }
.try-pane h3 { margin: 0; font-size: 1.1875rem; }
.try-pane h3:focus { outline: none; }
.try-pane h3:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.try-pane h4 { margin: 0 0 var(--s-2); font-size: var(--fs-0); }
.try-ph { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.try-ph h3 { margin-bottom: 4px; }
.try-ph .try-note { margin-top: 2px; }
.try-x { flex: none; min-height: 40px; padding: 0 12px; background: transparent; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer; }
.try-x:hover { border-color: var(--accent); background: var(--accent-soft); }
.try-note { max-width: none; margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.try-block { display: grid; gap: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.try-block h4 { margin: 0; }
.try-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px var(--s-3); }
.try-fields label, .try-fields .try-check { display: grid; gap: 3px; color: var(--ink-2); font-size: var(--fs--1); font-weight: 600; }
.try-wide { grid-column: 1 / -1; }
.try-fields .try-check { display: flex; align-items: center; align-self: end; gap: var(--s-2); min-height: 40px; }
.try-check input, .try-pay input { width: 20px; height: 20px; accent-color: var(--accent); }
.try-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.try-msg { min-height: 1.4em; margin: 0; color: var(--bad); font-size: 0.9375rem; font-weight: 600; }
.try-msg:empty { display: none; }

.try-lines { display: grid; margin: 0; padding: 0; list-style: none; }
.try-lines li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.try-lines li:first-child { border-top: 0; }
.try-disc { display: grid; place-items: center; width: 30px; height: 30px; background: var(--accent-soft); border-radius: 50%; color: var(--accent); }
.try-disc svg { width: 16px; height: 16px; }
.try-lines__t { display: grid; font-weight: 600; line-height: 1.25; }
.try-lines__t small { color: var(--muted); font-size: var(--fs--1); font-weight: 500; }
.try-lines__a { font-variant-numeric: tabular-nums; font-weight: 600; }
.try-lines li.try-lines__total { border-top: 2px solid var(--line-strong); }
.try-lines__total .try-disc { background: var(--accent); color: var(--accent-ink); }
.try-lines__total .try-lines__a { font-size: 1.1875rem; }
.try-pay { display: flex; gap: var(--s-5); margin: 0; padding: 0; border: 0; }
.try-pay label { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--target); font-weight: 600; }
.try-settle { justify-self: start; }
.try-settle.is-done { background: var(--live-bg); border-color: var(--live-line); color: var(--live-fg); }

.try-addrow {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin: var(--s-1) 0 calc(-1 * (var(--s-5) + env(safe-area-inset-bottom, 0px)));
  padding: 10px 0 calc(var(--s-5) + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.try-addrow__total { display: grid; margin: 0; color: var(--muted); font-size: var(--fs--1); line-height: 1.2; }
.try-addrow__total strong { color: var(--ink); font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.try-foot { margin: 0; color: var(--muted); font-size: 0.9375rem; max-width: 60ch; }

@media (min-width: 1000px) {
  .try.has-sheet, .try.has-sheet.has-peek { padding-bottom: 0; }
  .try-panel.is-peek [data-pane="booking"] .try-block { display: grid; }
  .try-x--more { display: none; }
  .try-panel {
    position: sticky;
    inset: auto;
    top: calc(var(--header-h) + 16px);
    z-index: auto;
    max-height: calc(100vh - var(--header-h) - 32px);
    padding: var(--s-4) var(--s-4) var(--s-5);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transform: none;
    visibility: visible;
  }
  .try-panel__grab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .try-panel { transition: none; }
}

/* ---------------------------------------------------------------- price ideas: seven nights, a few with an idea */
.try-ideas { min-width: 0; padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.try-ideas__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.try-ideas__head h3 { margin: 0; font-size: 1.0625rem; }
.try-ideas__lead { max-width: none; margin: var(--s-2) 0 0; color: var(--ink-2); font-size: 0.9375rem; }
.try-ideas__rule { max-width: none; margin: 2px 0 var(--s-3); color: var(--ink); font-size: 0.9375rem; font-weight: 600; }
.try-nights {
  --up: #b4412f;
  --down: #8a6410;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(138px, 1fr);
  gap: var(--s-2);
  margin: 0;
  padding: 0 0 var(--s-2);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .try-nights { --up: #ffb4a5; --down: #f0cd7c; }
}
:root[data-theme="dark"] .try-nights { --up: #ffb4a5; --down: #f0cd7c; }
.try-night {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  padding: 10px 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  scroll-snap-align: start;
  text-align: center;
}
.try-night.is-today { border-color: var(--accent); }
.try-night--up { background: color-mix(in srgb, var(--up) 10%, var(--surface)); border-color: color-mix(in srgb, var(--up) 45%, var(--line)); }
.try-night--down { background: color-mix(in srgb, var(--down) 10%, var(--surface)); border-color: color-mix(in srgb, var(--down) 45%, var(--line)); }
.try-night__d { color: var(--ink); font-weight: 600; }
.try-night__s { color: var(--muted); font-size: var(--fs--1); }
.try-night__p { margin-top: 4px; color: var(--ink); font-size: 1.375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.try-night.is-accepted .try-night__p { color: var(--accent); }
.try-night__flag { display: flex; align-items: flex-start; justify-content: center; gap: 4px; max-width: none; margin: 6px 0 0; color: var(--ink-2); font-size: var(--fs--1); font-weight: 600; line-height: 1.25; }
.try-night--up .try-night__flag:has(svg) { color: var(--up); font-weight: 700; }
.try-night--down .try-night__flag:has(svg) { color: var(--down); font-weight: 700; }
.try-night__flag svg { flex: none; margin-top: 1px; }
.try-night__why { display: grid; gap: 2px; margin: 4px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: var(--fs--1); }
.try-night__btns { display: grid; gap: 6px; margin-top: 8px; }
.try-night__btns .btn { min-height: 40px; padding-inline: 8px; }
@media (min-width: 1000px) {
  .try-nights { grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; }
}

/* ---------------------------------------------------------------- two more demos: a staff tablet and a guest phone */
#more-demos .section__head { margin-bottom: var(--s-4); }
.demos { display: grid; gap: var(--s-5); }
.demos__plain { max-width: 46rem; margin: 0; color: var(--ink-2); }
.demo { display: grid; align-content: start; gap: var(--s-3); min-width: 0; padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.demo[hidden], .demos__plain[hidden] { display: none; }
.demo__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.demo__head h3 { margin: 0; font-size: 1.1875rem; }
.demo__sub { margin: var(--s-1) 0 0; font-size: var(--fs-0); }
@media (min-width: 860px) { .demos { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } }

.tablet { padding: var(--s-4); background: #1c2533; border: 6px solid #2f3b4f; border-radius: 22px; color: #eef2f8; text-align: center; }
.tablet__brand { margin: 0; font-size: 1.0625rem; font-weight: 700; }
.tablet__ask { max-width: none; margin: 2px 0 var(--s-3); color: #c4cedd; font-size: 0.9375rem; }
.tablet__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
@media (min-width: 420px) { .tablet__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { display: grid; gap: 1px; width: 100%; min-height: 76px; padding: 8px; background: #2a3649; border: 2px solid #45536b; border-radius: 14px; color: #eef2f8; font: inherit; line-height: 1.2; cursor: pointer; }
.tile b { font-size: 0.9375rem; }
.tile span, .tile small { color: #c4cedd; font-size: 0.8125rem; }
.tile:hover { border-color: #8fb4ff; }
.tile:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tile.is-in { background: #1f5c46; border-color: #5fd1a1; }
.tile.is-in small { color: #d7ffe9; font-weight: 600; }
.onshift { display: grid; margin: 0; padding: 0; list-style: none; }
.onshift li { display: flex; justify-content: space-between; gap: var(--s-3); padding: 8px 0; border-top: 1px solid var(--line); font-weight: 600; }
.onshift li:first-child { border-top: 0; }
.onshift time { color: var(--ink-2); font-weight: 500; }
.onshift__none { color: var(--muted); font-weight: 500; }

.phone { width: min(100%, 300px); margin-inline: auto; display: grid; gap: var(--s-2); padding: 14px 14px 16px; background: var(--surface-2); border: 7px solid #2a3140; border-radius: 34px; }
.phone__dots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 4px 14px 2px; padding: 0; list-style: none; font-size: 0; }
.phone__dots li { height: 5px; background: var(--line-strong); border-radius: 3px; }
.phone__dots .is-now, .phone__dots .is-past { background: var(--accent); }
.phone__screen { min-height: 190px; }
.phone__step { display: grid; align-content: start; gap: var(--s-2); }
.phone__step[hidden] { display: none; }
.phone__step h4 { margin: 0; font-size: 1.1875rem; }
.phone__step h4:focus { outline: none; }
.phone__step h4:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.phone__step label { display: grid; gap: 3px; color: var(--ink-2); font-size: var(--fs--1); font-weight: 600; }
.phone__step input { min-height: 40px; padding: 0 10px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); font: inherit; font-size: var(--fs-0); }
.phone__photo { display: grid; place-items: center; min-height: 96px; background: var(--surface); border: 2px dashed var(--line-strong); border-radius: 12px; color: var(--muted); font-size: 0.9375rem; }
.phone__photo.is-set { background: var(--live-bg); border: 2px solid var(--live-line); color: var(--live-fg); font-weight: 600; }
.phone__times { display: grid; gap: 6px; }
.phone__time { min-height: 42px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.phone__time[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.phone__time:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.phone__step--done { justify-items: center; padding-top: var(--s-3); text-align: center; }
.phone__step--done h4 { color: var(--live-fg); font-size: 1.375rem; }
.phone__room { margin: 0; color: var(--ink); font-size: 2rem; font-weight: 700; }
.phone .try-msg { text-align: center; }
.phone__nav { display: flex; justify-content: space-between; gap: var(--s-2); }
.phone__nav .btn { flex: 1; }

/* A hostel sells the bed, so its rows are beds inside a dorm. The dorm is named on its first bed and
   tinted down the rest: one label row per bookable row always, because the booking track places bars
   by index times row height and a heading row here would slide every label out of line. */
.try-room--bed { border-left: 3px solid var(--accent-soft); }
.try-bed { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.try-bed__dorm { font-size: 0.8125rem; color: var(--muted); }
.try-bed__dorm--quiet { opacity: 0.45; }
.try-bed__n { font-weight: 600; }

/* ------------------------------------------------------------------ "Play it for me"

   js/pages/try-film.js adds a button to the toolbar and one caption line above the board, then
   presses the sandbox's own controls on a timer. The caption is the only thing on the page that
   has to be legible in a screen recording, so it takes the page's own tokens and sits still: the
   movement in a recording should all be the product's. */

.try-film {
  margin: 0 0 var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-1);
  background: var(--ink);
  color: var(--surface);
  font-size: var(--t-1);
  line-height: 1.35;
  text-wrap: balance;
}

.try-film__go {
  margin-inline-start: auto;
}

/* While it is playing, the board is being driven rather than used. The pointer is turned off so a
   stray click cannot fight the script mid-take; the toolbar keeps working, so the Stop button and
   the keyboard are always there. */
.try[data-try-app].is-playing .try-track,
.try[data-try-app].is-playing .try-panel {
  pointer-events: none;
}
