/* IslandBook demo (ib-demo.js): a phone running an operator's own booking page, and a browser
   window running the IslandBook dashboard. Each is drawn in its own colours and type, not the
   site's, because that is how the product ships: the booking page wears the operator's brand. */

.demo { overflow: clip; }
.demo > .light { --lit: .34; -webkit-mask: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.demo > :not(.light) { position: relative; z-index: 1; }
.demo__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 110px); align-items: end; }
.demo__head .label { margin-bottom: 26px; }
.demo__facts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.6vw, 44px); padding-top: 22px; border-top: 1px solid var(--line-2); }
.demo__facts p { font-size: 1.06rem; }
.demo__try { display: flex; align-items: baseline; gap: 12px 30px; flex-wrap: wrap; margin-top: clamp(64px, 7vw, 120px); margin-bottom: clamp(30px, 3vw, 50px); padding-top: 22px; border-top: 1px solid var(--line); }
.demo__tryh { font: 700 clamp(1.5rem, 1vw + 1.2rem, 2.1rem)/1 var(--bodoni); letter-spacing: -.012em; color: var(--ink); }
.demo__try p { color: var(--text); }

.demo__stage {
  --pw: clamp(316px, 21.5vw, 376px);
  --ph: calc(var(--pw) * 2.04);
  position: relative;
  display: grid; grid-template-columns: var(--pw) minmax(0, 1fr); gap: clamp(30px, 3.4vw, 64px); align-items: start;
  width: min(100% - 2 * var(--gutter) + 56px, 1640px); margin-inline: auto;
}
.demo__tag { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 500 .6875rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--label); }
.demo__tag::before { content: ""; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }

/* The line between the two screens. It carries a pulse when a booking is made. */
.demo__wire { position: absolute; z-index: 0; left: var(--pw); width: clamp(30px, 3.4vw, 64px); top: calc(var(--ph) * .58 + 30px); height: 1px; background: var(--accent); }
.demo__wire::before, .demo__wire::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.demo__wire::before { left: -4px; }
.demo__wire::after { right: -4px; }
.demo__wire i { position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 4px var(--accent-hi); opacity: 0; }
.is-live .demo__wire i { animation: wire 1s var(--ease) 1; }
@keyframes wire { 0% { left: 0; opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 9px); opacity: 0; } }

/* ---------- The phone ---------- */

.phone {
  position: relative; width: var(--pw); height: var(--ph); padding: 9px; border-radius: 48px;
  background: #06090d;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), 0 0 0 1px #000, 0 0 60px color-mix(in srgb, var(--label) 22%, transparent), 0 44px 90px rgba(0, 0, 0, .66);
}
.phone::before { content: ""; position: absolute; z-index: 3; left: 50%; top: 20px; width: 86px; height: 24px; border-radius: 14px; background: #06090d; transform: translateX(-50%); }

.nh {
  --g-ink: #0e1f1e; --g-teal: #0f5b57; --g-coral: #e2522b; --g-sand: #f4f0e7; --g-line: #e4dfd3; --g-mut: #66706e;
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 39px;
  background: #fff; color: var(--g-ink);
  font: 400 14px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-align: left; -webkit-font-smoothing: antialiased;
}
.nh [hidden] { display: none !important; }
.nh button { font: inherit; color: inherit; cursor: pointer; }
/* The booking page sets its own heading colours; the site's must not leak into it. */
.nh :is(h3, h4) { color: var(--g-ink); margin: 0; }
.nh h3 { font: 700 18px/1.2 inherit; font-family: inherit; letter-spacing: -.02em; outline: none; white-space: nowrap; }
.nh p { margin: 0; max-width: none; }

.nh__bar { display: flex; align-items: center; gap: 9px; padding: 52px 18px 12px; }
.nh__bar svg { width: 26px; height: 26px; flex: none; }
.nh__bar strong { font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; line-height: 1.1; }
.nh__bar strong small { display: block; font-weight: 400; font-size: 11px; letter-spacing: 0; color: var(--g-mut); margin-top: 2px; }

.checkout-steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0 18px 12px; border-bottom: 1px solid var(--g-line); }
.checkout-steps li { flex: 1; }
.checkout-steps button { display: block; width: 100%; padding: 7px 0 0; border: 0; border-top: 3px solid var(--g-line); background: none; text-align: left; font-size: 11.5px; font-weight: 600; color: var(--g-mut); }
.checkout-steps button i { font-style: normal; margin-right: 5px; }
.checkout-steps button:disabled { cursor: default; }
.checkout-steps [aria-current="step"] { border-top-color: var(--g-teal); color: var(--g-ink); }
.checkout-steps .is-done { border-top-color: var(--g-teal); color: var(--g-teal); }

.nh__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 0 18px 22px; }
.nh__scroll::-webkit-scrollbar { display: none; }
.checkout-step:not([hidden]) { animation: step-in .3s ease; }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } }

.nh__trip { position: relative; margin: 16px 0 18px; border-radius: 14px; overflow: hidden; }
.nh__trip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.nh__trip figcaption { position: absolute; inset: auto 0 0 0; padding: 34px 14px 12px; background: linear-gradient(transparent, rgba(5, 20, 22, .82)); color: #fff; }
.nh__trip b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.nh__trip span { font-size: 12px; opacity: .88; }

.step-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.month-nav { display: flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; }
.month-nav span { min-width: 98px; text-align: center; white-space: nowrap; }
.month-nav button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0 0 2px; border: 1px solid var(--g-line); border-radius: 50%; background: #fff; font-size: 17px; line-height: 1; }
.month-nav button:disabled { opacity: .3; cursor: default; }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-week span { padding-bottom: 6px; text-align: center; font-size: 10.5px; font-weight: 600; color: var(--g-mut); }
.cal-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 41px; padding: 0; border: 0; border-radius: 10px; background: var(--g-sand); font-size: 13.5px; font-weight: 600; transition: background .15s, color .15s; }
.cal-day b { display: flex; gap: 3px; height: 4px; }
.cal-day b i { width: 4px; height: 4px; border-radius: 50%; background: #c9c3b5; }
.cal-day b i.on { background: var(--g-teal); }
.cal-day:disabled { cursor: default; }
.cal-day.is-closed { background: none; color: #c4c8c6; font-weight: 400; }
.cal-day.is-full { background: none; color: #a9afad; }
.cal-day.is-full span { text-decoration: line-through; }
.cal-day[aria-pressed="true"] { background: var(--g-teal); color: #fff; }
.cal-day[aria-pressed="true"] b i { background: rgba(255, 255, 255, .35); }
.cal-day[aria-pressed="true"] b i.on { background: #fff; }
.cal-key { display: flex; gap: 16px; margin: 10px 0 20px; font-size: 11px; color: var(--g-mut); }
.cal-key i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #c9c3b5; }
.cal-key i.on { background: var(--g-teal); }

.step-label { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 9px; font-size: 12.5px; font-weight: 700; }
.step-label span { font-weight: 400; color: var(--g-mut); }
.slots { display: grid; gap: 8px; margin-bottom: 20px; }
.slot { display: grid; grid-template-areas: "name price" "time price"; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 11px 14px; border: 1.5px solid var(--g-line); border-radius: 12px; background: #fff; text-align: left; transition: border-color .15s, background .15s; }
.slot-name { grid-area: name; font-size: 11.5px; color: var(--g-mut); }
.slot strong { grid-area: time; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.slot small { grid-area: time; justify-self: end; align-self: end; margin-bottom: 2px; font-size: 11.5px; color: var(--g-mut); }
.slot em { grid-area: price; font-style: normal; font-size: 14px; font-weight: 700; }
.slot[aria-pressed="true"] { border-color: var(--g-teal); background: #f0f7f6; }
.slot:disabled { border-style: dashed; color: #a9afad; cursor: default; }
.slot:disabled strong { text-decoration: line-through; }
.slot:disabled em { font-size: 11.5px; font-weight: 600; }
.guest-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; border-top: 1px solid var(--g-line); }
.guest-row .step-label { margin-bottom: 2px; }
.guest-row p { font-size: 12px; color: var(--g-mut); }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--g-line); border-radius: 999px; }
.stepper button { width: 38px; height: 38px; border: 0; background: none; font-size: 18px; }
.stepper button:disabled { color: #c9cdcb; cursor: default; }
.stepper output { min-width: 22px; text-align: center; font-weight: 700; }

.step-details h3, .step-payment h3 { margin: 18px 0 12px; }
.extras { display: grid; gap: 8px; margin-bottom: 22px; }
.extra { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--g-line); border-radius: 12px; cursor: pointer; }
.extra:has(input:checked) { border-color: var(--g-teal); background: #f0f7f6; }
.extra input { width: 18px; height: 18px; margin: 0; accent-color: var(--g-teal); }
.extra strong { display: block; font-size: 13.5px; }
.extra small { display: block; font-size: 11.5px; color: var(--g-mut); line-height: 1.3; }
.extra em { font-style: normal; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.guest-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guest-field { display: block; font-size: 11.5px; font-weight: 600; color: var(--g-mut); }
.guest-field-wide { grid-column: 1 / -1; }
.guest-field input, .guest-field textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1.5px solid var(--g-line); border-radius: 10px; background: #fff; color: var(--g-ink); font: 400 14px/1.3 inherit; font-family: inherit; }
.guest-field textarea { resize: none; }
.guest-field input:focus, .guest-field textarea:focus { outline: 0; border-color: var(--g-teal); }
.guest-field input[aria-invalid="true"] { border-color: var(--g-coral); }
.guest-field-error { display: block; min-height: 0; font-size: 11px; font-weight: 400; color: var(--g-coral); }

.pay-when { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--g-sand); font-size: 12.5px; }
.pay-when div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.pay-when dt { color: var(--g-mut); }
.pay-when dd { margin: 0; font-weight: 600; text-align: right; }
.summary-lines { list-style: none; margin: 0 0 18px; padding: 0; font-size: 13px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--g-line); }
.card-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card-field { position: relative; padding: 9px 12px; border: 1.5px solid var(--g-line); border-radius: 10px; }
.card-number, .card-holder { grid-column: 1 / -1; }
.card-field span { display: block; font-size: 10.5px; color: var(--g-mut); }
.card-field b { font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.card-field em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 11px; font-weight: 800; color: #1a3fa8; letter-spacing: .04em; }
.card-secure { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 11.5px; color: var(--g-mut); }
.card-secure svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.3; }

.step-done { padding-top: 26px; text-align: center; }
.done-seal { width: 56px; height: 56px; margin: 0 auto 14px; fill: none; stroke: var(--g-teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.done-seal circle { fill: #e6f1ef; stroke: none; }
.done-kicker { font-size: 11.5px; font-weight: 700; color: var(--g-teal); }
.step-done h3 { margin: 6px 0 4px; font-size: 22px; }
.done-ref { font-size: 13px; color: var(--g-mut); }
.done-facts { margin: 18px 0; padding: 4px 14px; border-radius: 12px; background: var(--g-sand); text-align: left; font-size: 12.5px; }
.done-facts div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--g-line); }
.done-facts div:last-child { border-bottom: 0; }
.done-facts dt { color: var(--g-mut); }
.done-facts dd { margin: 0; font-weight: 600; }
.done-actions { display: grid; gap: 8px; }
.done-open { height: 46px; border: 0; border-radius: 999px; background: var(--g-ink); color: #fff !important; font-weight: 700 !important; font-size: 14px; }
.done-again { height: 40px; border: 0; background: none; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

.nh__pay { display: flex; align-items: center; gap: 10px; padding: 12px 16px 22px; border-top: 1px solid var(--g-line); background: #fff; }
.nh__total { flex: 1; min-width: 0; line-height: 1.2; }
.nh__total span { font-size: 11px; color: var(--g-mut); }
.nh__total strong { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.nh__total small { display: block; font-size: 10.5px; color: var(--g-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checkout-back { height: 46px; padding: 0 12px; border: 0; background: none; font-size: 13px; font-weight: 600; }
.checkout-next { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--g-coral); color: #fff !important; font-size: 14px; font-weight: 700 !important; white-space: nowrap; transition: filter .2s; }
.checkout-next:hover { filter: brightness(1.07); }
.checkout-next i { font-style: normal; }
.checkout-next.is-busy { opacity: .75; cursor: progress; }
.nh[data-step="done"] .nh__total small { display: none; }

/* ---------- The browser window and the dashboard in it ---------- */

.win { position: relative; z-index: 1; min-width: 0; }
.win__frame {
  height: var(--ph); display: flex; flex-direction: column; overflow: hidden; border-radius: 10px;
  background: var(--ground-2); outline: 1px solid var(--line-3);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .8), 0 0 60px color-mix(in srgb, var(--label) 22%, transparent), 0 44px 90px rgba(0, 0, 0, .66);
}
.win__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; flex: none; }
.win__bar i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-2); }
.win__bar span { margin-left: 12px; font: 400 .6875rem/1 var(--mono); letter-spacing: .14em; color: var(--mute); }

.adm {
  --a-line: #e7e5e4; --a-ink: #1c1917; --a-mut: #6b6560; --a-soft: #f5f5f4; --a-side: #fafaf9; --a-brand: #0f5b57;
  --a-blue: #1d4ed8; --a-amber: #b45309; --a-green: #15803d;
  flex: 1; min-height: 0; display: grid; grid-template-columns: 196px minmax(0, 1fr);
  background: #fff; color: var(--a-ink); text-align: left;
  font: 400 13.5px/1.45 "IBM Plex Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.adm [hidden] { display: none !important; }
.adm button, .adm input { font: inherit; color: inherit; }
.adm button { cursor: pointer; }
.adm p { margin: 0; max-width: none; }
.adm h3, .adm h4 { font: 600 inherit; font-family: inherit; color: var(--a-ink); margin: 0; letter-spacing: 0; }

.adm__side { display: flex; flex-direction: column; gap: 2px; padding: 16px 8px 12px; background: var(--a-side); border-right: 1px solid var(--a-line); }
.adm__brand { padding: 2px 10px 18px; font-size: 16px; font-weight: 700; color: var(--a-brand); letter-spacing: -.01em; }
.adm__group { padding: 0 10px 6px; font-size: 12px; color: var(--a-mut); }
.adm__nav { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 7px; background: none; text-align: left; }
.adm__nav svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.adm__nav:hover { background: #f0efed; }
.adm__nav[aria-pressed="true"] { background: #f0efed; font-weight: 600; }
.adm__nav[aria-pressed="true"]::before { content: ""; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--a-brand); }
.adm .adm__foot { margin-top: auto; padding: 12px 10px 2px; border-top: 1px solid var(--a-line); font-size: 11.5px; color: var(--a-mut); }
.adm__foot b { color: var(--a-ink); font-weight: 600; }

.adm__main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; container-type: inline-size; }
.adm__top { display: flex; align-items: center; gap: 16px; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--a-line); flex: none; }
.adm__search { flex: 0 1 340px; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 11px; border: 1px solid #c9c5c1; border-radius: 7px; }
.adm__search svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--a-mut); stroke-width: 1.5; stroke-linecap: round; }
.adm__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; }
.adm__search input::placeholder { color: var(--a-mut); }
.adm__search:focus-within { border-color: var(--a-ink); box-shadow: 0 0 0 2px rgba(28, 25, 23, .12); }
.adm__online { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--a-mut); }
.adm__online i { width: 7px; height: 7px; border-radius: 50%; background: var(--a-green); }
.adm__user { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.adm__user b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--a-soft); font-size: 10.5px; font-weight: 600; }

.adm__views { position: relative; flex: 1; min-height: 0; overflow: hidden; }
/* The view scrolls inside its frame; a fade at the foot says there is more below. */
.adm__view { height: 100%; overflow-y: auto; padding: 20px 22px 64px; scrollbar-width: thin; scrollbar-color: #d6d3d1 transparent; -webkit-mask: linear-gradient(#000 calc(100% - 54px), transparent); mask: linear-gradient(#000 calc(100% - 54px), transparent); }
.adm__title { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.adm__title small { display: block; font-size: 12.5px; color: var(--a-mut); }
.adm__title h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.adm-btn { height: 34px; padding: 0 13px; border: 1px solid #c9c5c1; border-radius: 7px; background: #fff; font-weight: 600; white-space: nowrap; }
.adm-btn:hover { background: var(--a-soft); }
.adm-btn.dark { border-color: var(--a-ink); background: var(--a-ink); color: #fff !important; }
.adm-btn.dark:hover { background: #33302c; }
.adm-btn:disabled { opacity: .35; cursor: default; }

.card { border: 1px solid var(--a-line); border-radius: 9px; padding: 16px 18px; }
.card + .card, .card-row, .card-row--after { margin-top: 14px; }
.card h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.card h4 span { margin-left: 6px; font-weight: 400; color: var(--a-mut); }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card-row .card + .card { margin-top: 0; }
@container (max-width: 780px) { .card-row { grid-template-columns: 1fr; } }

.attention { list-style: none; margin: 0; padding: 0; }
.attention li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--a-line); }
.attention li:last-child { border-bottom: 0; padding-bottom: 0; }
.attention p { flex: 1; }
.attention i { flex: none; width: 15px; height: 14px; background: var(--a-amber); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.attention i.note { background: #a8a29e; clip-path: circle(42%); }
.attention button { border: 0; background: none; padding: 4px 6px; font-weight: 600; border-radius: 6px; }
.attention button:hover { background: var(--a-soft); }

.runs { list-style: none; margin: 0; padding: 0; }
.runs li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--a-line); }
.runs li:last-child { border-bottom: 0; padding-bottom: 0; }
.runs li.none { display: block; color: var(--a-mut); }
.runs time { font-weight: 700; white-space: nowrap; }
.runs small { display: block; font-size: 12px; font-weight: 400; color: var(--a-mut); }
.runs span { color: var(--a-mut); font-size: 12.5px; }
.row-open { border: 0; background: none; padding: 0; font-weight: 600 !important; text-align: left; white-space: nowrap; }
.row-open:hover { text-decoration: underline; text-underline-offset: 3px; }

.state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--a-green); white-space: nowrap; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state.pending { color: var(--a-amber); }
.state.checked-in { color: var(--a-blue); }

.filters { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.seg { display: inline-flex; border: 1px solid #c9c5c1; border-radius: 7px; overflow: hidden; }
.seg button { height: 32px; padding: 0 12px; border: 0; border-left: 1px solid #c9c5c1; background: #fff; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--a-soft); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--a-ink); border-radius: 6px; }
.week { font-size: 12.5px; color: var(--a-mut); }
.week b { color: var(--a-ink); font-weight: 600; }

.booking-table { width: 100%; border-collapse: collapse; }
.booking-table th { padding: 12px 10px 9px; border-bottom: 1px solid var(--a-line); font-size: 12px; font-weight: 400; color: var(--a-mut); text-align: left; white-space: nowrap; }
.booking-table td { padding: 11px 10px; border-bottom: 1px solid var(--a-line); white-space: nowrap; }
.booking-table th:last-child, .booking-table td:last-child { text-align: right; padding-right: 2px; }
.booking-table th:first-child, .booking-table td:first-child { padding-left: 2px; }
.booking-table td:nth-child(6) { color: var(--a-mut); }
.booking-table tbody tr { cursor: pointer; }
.booking-table tbody tr:hover { background: var(--a-side); }
.booking-table .ref { margin-right: 8px; font: 400 12.5px var(--mono); color: var(--a-mut); }
.booking-table .no-rows { padding: 28px 0; text-align: center !important; color: var(--a-mut); }
.new-tag { margin-left: 8px; padding: 2px 6px; border-radius: 4px; background: var(--a-brand); color: #fff; font-size: 10.5px; font-weight: 700; }
tr.is-new { animation: row-new 3.2s ease 1; }
@keyframes row-new { 0%, 40% { background: #e3f1ef; } }

.booking-drawer {
  position: absolute; z-index: 4; inset: 0 0 0 auto; width: min(340px, 100%); overflow-y: auto; padding: 18px 20px 22px;
  background: #fff; border-left: 1px solid var(--a-line); box-shadow: -18px 0 40px rgba(28, 25, 23, .12);
  animation: drawer-in .28s var(--ease);
}
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 8px; }
.drawer-head p { font-size: 12px; color: var(--a-mut); }
.drawer-head h4 { font-size: 18px; font-weight: 700; outline: none; }
.drawer-close { width: 30px; height: 30px; border: 1px solid var(--a-line); border-radius: 7px; background: #fff; font-size: 17px; line-height: 1; }
.drawer-facts { margin: 14px 0; }
.drawer-facts div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--a-line); }
.drawer-facts dt { color: var(--a-mut); }
.drawer-facts dd { margin: 0; font-weight: 600; }
.drawer-lines { list-style: none; margin: 0 0 16px; padding: 0; }
.drawer-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.drawer-total { margin-top: 6px; padding-top: 10px !important; border-top: 1px solid var(--a-ink); font-weight: 700; }
.drawer-action { width: 100%; height: 38px; }

.adm__toast {
  position: absolute; z-index: 6; right: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 11px 14px 12px; border-radius: 9px;
  background: var(--a-ink); color: #fff; font-size: 12.5px; box-shadow: 0 14px 34px rgba(28, 25, 23, .34);
  animation: toast-in .4s var(--ease);
}
.adm__toast b { display: block; font-weight: 700; font-size: 13.5px; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

.load { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.load div { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--a-mut); }
.load i { position: relative; height: 54px; border-radius: 5px; background: var(--a-soft); overflow: hidden; }
.load i::after { content: ""; position: absolute; inset: auto 0 0 0; height: calc(var(--v) * 100%); background: var(--a-brand); opacity: .82; }
.load b { font-weight: 600; color: var(--a-ink); }

/* Schedule */
.fleet { display: grid; grid-template-columns: 132px repeat(10, minmax(64px, 1fr)); min-width: 780px; border: 1px solid var(--a-line); border-bottom: 0; border-radius: 9px; overflow: hidden; }
.fleet > * { min-width: 0; border-bottom: 1px solid var(--a-line); }
.fleet-corner, .fleet-day { padding: 9px 10px 4px; font-size: 12px; color: var(--a-mut); border-bottom: 0; }
.fleet-day { grid-column: span 2; border-left: 1px solid var(--a-line); font-weight: 600; color: var(--a-ink); }
.fleet-day.is-today { color: var(--a-brand); }
.fleet-slot { padding: 0 10px 8px; font-size: 11px; color: var(--a-mut); }
.fleet-slot.day-start, .fleet-cell.day-start { border-left: 1px solid var(--a-line); }
.fleet-boat { padding: 12px 10px; line-height: 1.25; }
.fleet-boat strong { display: block; font-weight: 600; }
.fleet-boat small { font-size: 11.5px; color: var(--a-mut); }
.fleet-cell { padding: 5px 3px; min-height: 60px; }
.fleet-block { display: block; width: 100%; height: 100%; padding: 6px 8px; border: 0; border-left: 3px solid var(--a-green); border-radius: 5px; background: #ecf5ee; text-align: left; line-height: 1.25; overflow: hidden; }
.fleet-block strong { display: block; font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fleet-block small { font-size: 11px; color: var(--a-mut); white-space: nowrap; }
.fleet-block.pending { border-left-color: var(--a-amber); background: #fdf3e3; }
.fleet-block.checked-in { border-left-color: var(--a-blue); background: #e8eefc; }
.fleet-block.is-new { box-shadow: 0 0 0 2px var(--a-brand); }
.fleet-service { display: grid; place-items: center; height: 100%; border-radius: 5px; font-size: 11.5px; color: var(--a-mut); background: repeating-linear-gradient(135deg, #f5f5f4 0 6px, #ebe9e7 6px 12px); }
.fleet-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 12px; color: var(--a-mut); }
.fleet-key i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 2px; background: var(--a-green); }
.fleet-key .k-pending { background: var(--a-amber); }
.fleet-key .k-in { background: var(--a-blue); }
.fleet-key .k-service { background: repeating-linear-gradient(135deg, #d6d3d1 0 3px, #f5f5f4 3px 6px); }
.fleet-nav { display: flex; align-items: center; gap: 8px; }
.fleet-nav span { min-width: 128px; text-align: center; font-weight: 600; }
.fleet-nav .adm-btn { width: 34px; padding: 0; }
.fleet-scroll { overflow-x: auto; }

@media (max-width: 1240px) {
  .demo__stage { grid-template-columns: 1fr; gap: 54px; width: min(100% - 2 * var(--gutter), 760px); --pw: min(376px, 100%); }
  .demo__wire { display: none; }
  .phone { margin-inline: auto; }
  .demo__stage > div:first-child .demo__tag { justify-content: center; }
  .win__frame { height: 640px; }
}
@media (max-width: 860px) {
  .demo__head, .demo__facts { grid-template-columns: 1fr; }
  .adm { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .adm__side { flex-direction: row; align-items: center; gap: 4px; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--a-line); overflow-x: auto; }
  .adm__brand { padding: 0 10px 0 4px; font-size: 14.5px; white-space: nowrap; }
  .adm__group, .adm__foot { display: none; }
  .adm__nav { width: auto; padding: 0 12px; }
  .adm__nav[aria-pressed="true"]::before { display: none; }
  .adm__online, .adm__user { display: none; }
  .adm__search { flex: 1; }
  .adm__view { padding: 16px 14px 22px; }
  .card-row { grid-template-columns: 1fr; }
  .card-row .card + .card { margin-top: 0; }
  .runs li { grid-template-columns: 92px minmax(0, 1fr); }
  .runs li > :last-child:not(div) { grid-column: 2; justify-self: start; }
  .adm__nav svg { display: none; }
  .adm__brand { font-size: 13.5px; padding-right: 6px; }
  .table-scroll { overflow-x: auto; }
  .booking-table th:nth-child(6), .booking-table td:nth-child(6) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-step:not([hidden]), tr.is-new, .booking-drawer, .adm__toast, .is-live .demo__wire i { animation: none; }
}

/* ---------- Fragments: pieces of the two screens, shown on their own ---------- */
.nh--frag, .adm--frag { display: flex; height: auto; border-radius: 14px; }
.nh--frag .cal-key { margin-bottom: 0; }
.nh--frag .cal-day { pointer-events: none; }
.nh--frag .month-nav span { min-width: 0; }
.frag-pay { display: grid; place-items: center; height: 44px; margin-top: 14px; border-radius: 999px; background: var(--g-coral); color: #fff; font-weight: 700; font-size: 14px; }
.frag-mail__from { display: flex; flex-direction: column; font-size: 12px; color: var(--g-mut); }
.frag-mail__from b { font-size: 13.5px; color: var(--g-ink); }
.frag-mail__subj { margin: 12px 0 12px !important; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; color: var(--g-ink); }
.frag-mail .pay-when { margin: 0; }
.adm--frag { grid-template-columns: none; }
.adm--frag h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.adm--frag h4 span { margin-left: 6px; font-weight: 400; color: var(--a-mut); }
.adm--frag .runs li { grid-template-columns: 92px minmax(0, 1fr); row-gap: 6px; }
.adm--frag .runs li > :last-child:not(div) { grid-column: 2; justify-self: start; }
.adm--frag .adm-btn { display: inline-grid; place-items: center; height: 30px; }
