/* Teburu guest pages — iOS 26 design language.
 *
 * The page is built from the same parts as an iPhone app: a Liquid Glass navigation bar whose
 * title appears once the large title scrolls away, inset grouped lists, an iOS stepper and
 * segmented control, the inline date picker, capsule buttons, a floating glass action bar, system
 * colours and the system font, true dark mode. The venue's own look (Venue → Booking form) maps
 * onto it: its button colour is the tint, its background and text colours are the card and the
 * label, its corners round the groups, its font sets the large titles.
 */

/* ================================================================ tokens */
:root {
    /* the venue's look (set by _head.php) */
    --tb-bg: #ffffff; --tb-text: #1c1c1e; --tb-btn: #0a84ff; --tb-btn-text: #ffffff; --tb-accent: #0a84ff; --tb-line: #d1d1d6;
    --tb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; --tb-size: 16px; --tb-radius: 12px; --tb-border: 1px;

    /* iOS system colours, light */
    --sys-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
    --tint: var(--tb-btn);
    --on-tint: var(--tb-btn-text);
    --label: var(--tb-text);
    --label-2: color-mix(in srgb, var(--tb-text) 60%, transparent);
    --label-3: color-mix(in srgb, var(--tb-text) 30%, transparent);
    --card: var(--tb-bg);
    --page: color-mix(in srgb, var(--tb-bg) 94%, #767680);
    --fill: rgba(120, 120, 128, .12);
    --fill-2: rgba(120, 120, 128, .2);
    --sep: rgba(60, 60, 67, .18);
    --glass: rgba(255, 255, 255, .62);
    --glass-edge: rgba(255, 255, 255, .7);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, .10), 0 1px 2px rgba(0, 0, 0, .06);
    --green: #34c759; --red: #ff3b30; --orange: #ff9500; --indigo: #5856d6;
    --group-radius: calc(var(--tb-radius) + 14px);
    --ease: cubic-bezier(.32, .72, 0, 1); /* the iOS spring, close enough */
}
html[data-theme="dark"] {
    --label: #ffffff;
    --label-2: rgba(235, 235, 245, .62);
    --label-3: rgba(235, 235, 245, .3);
    --card: #1c1c1e;
    --page: #000000;
    --fill: rgba(120, 120, 128, .24);
    --fill-2: rgba(120, 120, 128, .32);
    --sep: rgba(84, 84, 88, .6);
    --glass: rgba(30, 30, 32, .6);
    --glass-edge: rgba(255, 255, 255, .14);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .4);
    --green: #30d158; --red: #ff453a; --orange: #ff9f0a;
}

/* ================================================================ base */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body.tb {
    font-family: var(--sys-font); font-size: 17px; line-height: 1.3; letter-spacing: -.41px; color: var(--label); background: var(--page);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; min-height: 100vh;
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
    zoom: var(--tb-zoom, 1);
}
html.is-embed body.tb { background: var(--page); }
a { color: var(--tint); text-decoration: none; }
button { font: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; } /* a hidden field, group or banner stays hidden whatever its display */
.visually-hidden, .tb-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tb-muted { color: var(--label-2); }
.tb-small { font-size: 13px; letter-spacing: -.08px; }
.tb-center { text-align: center; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--tint) 55%, transparent); outline-offset: 2px; border-radius: 10px; }

/* the Liquid Glass material */
.tb-glass {
    background: var(--glass); -webkit-backdrop-filter: blur(28px) saturate(190%); backdrop-filter: blur(28px) saturate(190%);
    box-shadow: var(--glass-shadow), inset 0 0 0 .5px var(--glass-edge), inset 0 1px 0 var(--glass-edge);
}

/* ================================================================ navigation bar */
.tb-nav {
    position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px; min-height: 52px;
    padding: 6px max(12px, env(safe-area-inset-right)) 6px max(12px, env(safe-area-inset-left));
    transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.tb-nav:not(.is-scrolled) { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.tb-nav-title { flex: 1; text-align: center; font-size: 17px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.tb-nav.is-scrolled .tb-nav-title { opacity: 1; transform: none; }
.tb-nav-btn {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--label); font-size: 17px;
}
.tb-nav-btn.is-tint { color: var(--tint); }
.tb-nav-spacer { width: 38px; flex: 0 0 38px; }
.tb-langs { position: relative; }
.tb-langs summary { list-style: none; }
.tb-langs summary::-webkit-details-marker { display: none; }
.tb-langs-menu { position: absolute; right: 0; top: 46px; min-width: 150px; padding: 6px; border-radius: 20px; display: flex; flex-direction: column; z-index: 60;
    animation: tb-pop .28s var(--ease); }
.tb-langs-menu a { padding: 10px 14px; border-radius: 14px; color: var(--label); font-size: 16px; display: flex; justify-content: space-between; gap: 12px; }
.tb-langs-menu a.is-on { font-weight: 600; }
.tb-langs-menu a.is-on::after { content: "\2713"; color: var(--tint); }
.tb-langs-menu a:active { background: var(--fill); }

/* ================================================================ large title & header */
.tb-main { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.tb-hero { margin: 0 -16px 22px; position: relative; }
.tb-hero-photo { height: 46vh; max-height: 360px; min-height: 220px; background: var(--photo) center / cover no-repeat; border-radius: 0 0 32px 32px; position: relative; overflow: hidden; }
.tb-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55) 100%); }
.tb-hero-in { padding: 8px 16px 0; }
.tb-hero.has-photo .tb-hero-in { position: absolute; left: 0; right: 0; bottom: 18px; color: #fff; padding-top: 0; }
.tb-large { margin: 0; font-family: var(--tb-font); font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: .37px; }
.tb-hero.has-photo .tb-large { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.tb-subtitle { margin: 4px 0 0; font-size: 15px; letter-spacing: -.24px; color: var(--label-2); }
.tb-hero.has-photo .tb-subtitle { color: rgba(255, 255, 255, .88); }
.tb-hero-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tb-hero-actions a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--label); }
.tb-hero.has-photo .tb-hero-actions a { color: #fff; --glass: rgba(255, 255, 255, .22); --glass-edge: rgba(255, 255, 255, .45); }
.tb-hero-actions a:active { transform: scale(.96); }
html.is-embed .tb-hero-photo { display: none; }
html.is-embed .tb-hero.has-photo .tb-hero-in { position: static; color: var(--label); padding-top: 8px; }
html.is-embed .tb-hero.has-photo .tb-subtitle { color: var(--label-2); }
html.is-embed .tb-hero.has-photo .tb-large { text-shadow: none; }
html.is-embed .tb-hero.has-photo .tb-hero-actions a { color: var(--label); --glass: var(--fill); }

/* ================================================================ inset grouped lists */
.tb-section { margin: 0 0 26px; animation: tb-rise .45s var(--ease) both; }
.tb-section[hidden] { display: none; }
.tb-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 4px 8px; }
.tb-section-head h2, .tb-section-head legend { margin: 0; padding: 0; font-size: 20px; line-height: 25px; font-weight: 700; letter-spacing: .38px; }
.tb-section-head span { font-size: 15px; color: var(--label-2); letter-spacing: -.24px; }
.tb-section-foot { margin: 8px 16px 0; font-size: 13px; line-height: 18px; color: var(--label-2); letter-spacing: -.08px; }
.tb-group { background: var(--card); border-radius: var(--group-radius); overflow: hidden; }
.tb-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 11px 16px; color: var(--label); width: 100%; border: 0; background: transparent; text-align: left; }
.tb-row + .tb-row::before, .tb-field + .tb-row::before, .tb-row + .tb-field::before, .tb-row + .tb-collapse::before, .tb-collapse + .tb-row::before { content: ""; position: absolute; top: 0; right: 0; left: 16px; height: .5px; background: var(--sep); }
.tb-row.has-icon + .tb-row::before, .tb-row.has-icon + .tb-row.has-icon::before { left: 58px; }
a.tb-row, button.tb-row, label.tb-row { cursor: pointer; }
a.tb-row:active, button.tb-row:active { background: var(--fill); }
.tb-row-icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 15px; background: var(--c, var(--tint)); }
.tb-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tb-row-main b { font-weight: 400; }
.tb-row-main small { font-size: 15px; color: var(--label-2); letter-spacing: -.24px; margin-top: 1px; }
.tb-row-value { color: var(--label-2); text-align: right; white-space: nowrap; }
.tb-row-value.is-tint { color: var(--tint); }
.tb-chev { color: var(--label-3); font-size: 14px; font-weight: 600; }
.tb-row.is-destructive { color: var(--red); justify-content: center; }
.tb-row.is-tint { color: var(--tint); }

/* text fields inside a list (like Contacts) */
.tb-field { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 4px 16px; position: relative; }
.tb-field + .tb-field::before { content: ""; position: absolute; top: 0; right: 0; left: 52px; height: .5px; background: var(--sep); }
.tb-field > i { width: 24px; text-align: center; color: var(--label-2); font-size: 17px; }
.tb-field input, .tb-field select, .tb-field textarea {
    flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--label); font: inherit; font-size: 17px; letter-spacing: -.41px; padding: 12px 0;
    -webkit-appearance: none; appearance: none;
}
.tb-field textarea { resize: none; min-height: 72px; line-height: 1.35; }
.tb-field select { color: var(--label); cursor: pointer; }
.tb-field select:invalid, .tb-field select.is-empty { color: var(--label-3); }
/* a picker row says it is one: the iOS up-down chevron at its end, in the tint (the phone's own wheel opens on tap) */
.tb-field:has(> select)::after { content: ""; flex: none; width: 10px; height: 16px; background: var(--tint); pointer-events: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M1.5 6 5 2.5 8.5 6M1.5 10 5 13.5 8.5 10' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M1.5 6 5 2.5 8.5 6M1.5 10 5 13.5 8.5 10' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.tb-field input::placeholder, .tb-field textarea::placeholder { color: var(--label-3); }
.tb-field.is-invalid > i, .tb-field.is-invalid input { color: var(--red); }
.tb-field.is-invalid input::placeholder { color: color-mix(in srgb, var(--red) 70%, transparent); }
.tb-field-caption { font-size: 13px; color: var(--label-2); white-space: nowrap; }

/* ================================================================ controls */
/* the iOS stepper */
.tb-stepper { display: inline-flex; align-items: center; height: 34px; border-radius: 10px; background: var(--fill); overflow: hidden; }
.tb-stepper button { width: 46px; height: 34px; border: 0; background: transparent; color: var(--label); font-size: 20px; font-weight: 500; cursor: pointer; display: grid; place-items: center; }
.tb-stepper button + button { box-shadow: inset .5px 0 0 var(--sep); }
.tb-stepper button:active:not(:disabled) { background: var(--fill-2); }
.tb-stepper button:disabled { color: var(--label-3); cursor: default; }
.tb-count { font-size: 17px; color: var(--label-2); font-variant-numeric: tabular-nums; min-width: 28px; text-align: right; }

/* the segmented control */
.tb-seg { position: relative; display: flex; padding: 2px; border-radius: 10px; background: var(--fill); }
.tb-seg label { flex: 1; position: relative; margin: 0; cursor: pointer; }
.tb-seg input { position: absolute; opacity: 0; pointer-events: none; }
.tb-seg span { display: block; text-align: center; padding: 6px 10px; font-size: 14px; font-weight: 500; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: background .25s var(--ease), box-shadow .25s var(--ease); }
.tb-seg input:checked + span { background: var(--card); font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
html[data-theme="dark"] .tb-seg input:checked + span { background: #636366; }
.tb-seg input:focus-visible + span { outline: 2px solid var(--tint); }
.tb-seg-row { padding: 10px 16px 12px; }

/* capsule chips (times, amounts) */
.tb-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; padding: 14px 16px 16px; }
.tb-slot-service { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--label-2); letter-spacing: -.08px; margin-top: 4px; }
.tb-slot-service:first-child { margin-top: 0; }
.tb-slot { height: 40px; border-radius: 999px; border: 0; background: var(--fill); color: var(--label); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
    transition: background .2s var(--ease), color .2s, transform .15s; }
.tb-slot:active:not(:disabled) { transform: scale(.94); }
.tb-slot.is-on { background: var(--tint); color: var(--on-tint); }
.tb-slot:disabled { color: var(--label-3); text-decoration: line-through; cursor: default; background: transparent; box-shadow: inset 0 0 0 1px var(--fill); }
.tb-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 16px; }
.tb-chip { margin: 0; cursor: pointer; }
.tb-chip input { position: absolute; opacity: 0; pointer-events: none; }
.tb-chip span { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--fill); font-weight: 600; transition: background .2s var(--ease), color .2s; }
.tb-chip input:checked + span { background: var(--tint); color: var(--on-tint); }
.tb-chip input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--tint) 55%, transparent); outline-offset: 2px; }

/* the inline date picker */
.tb-collapse { position: relative; }
.tb-collapse[hidden] { display: none; }
.tb-cal { padding: 4px 12px 14px; user-select: none; }
.tb-cal-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 10px; }
.tb-cal-head b { font-size: 17px; font-weight: 600; text-transform: capitalize; }
.tb-cal-nav { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--tint); cursor: pointer; font-size: 22px; font-weight: 600; line-height: 1; }
.tb-cal-nav:active:not(:disabled) { background: var(--fill); }
.tb-cal-nav:disabled { color: var(--label-3); cursor: default; }
/* seven columns always fit: a day is a 44px circle when there is room, smaller on a narrow phone */
.tb-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; }
.tb-cal-wd { text-align: center; font-size: 13px; overflow: hidden; text-overflow: clip; font-weight: 600; color: var(--label-3); padding: 2px 0 6px; text-transform: uppercase; letter-spacing: -.08px; }
.tb-day { justify-self: center; width: min(44px, 100%); height: auto; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--label); font-size: 20px; font-weight: 400;
    cursor: pointer; position: relative; font-variant-numeric: tabular-nums; transition: background .2s var(--ease), color .2s; }
.tb-day.is-today { color: var(--tint); font-weight: 600; }
.tb-day.is-on { background: color-mix(in srgb, var(--tint) 16%, transparent); color: var(--tint); font-weight: 600; }
.tb-day:disabled { color: var(--label-3); cursor: default; }
.tb-day.is-full:not(:disabled) { color: var(--label-3); }
.tb-day.is-full:not(:disabled)::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--orange); }
.tb-day:active:not(:disabled) { transform: scale(.92); }
@media (max-width: 380px) { .tb-day { width: 38px; height: 38px; font-size: 18px; } }

/* ================================================================ buttons & the action bar */
.tb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--tint); color: var(--on-tint); font-size: 17px; font-weight: 600; letter-spacing: -.41px; text-decoration: none;
    transition: transform .15s var(--ease), opacity .2s, filter .2s;
}
.tb-btn:active:not(:disabled) { transform: scale(.97); filter: brightness(.95); }
.tb-btn:disabled { opacity: .45; cursor: default; }
.tb-btn-ghost { background: var(--fill); color: var(--tint); }
.tb-btn-danger { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.tb-btn + .tb-btn, form + form .tb-btn, .tb-btn + form { margin-top: 10px; }
.tb-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.tb-actions form { margin: 0; }
.tb-actions .tb-btn { margin: 0; }

.tb-dock {
    position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40;
    width: min(608px, calc(100% - 24px)); padding: 8px 8px 8px 20px; border-radius: 30px; display: flex; align-items: center; gap: 14px;
    animation: tb-dock-in .5s var(--ease) both;
}
.tb-dock-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tb-dock-text b { font-size: 15px; font-weight: 600; letter-spacing: -.24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-dock-text small { font-size: 13px; line-height: 16px; color: var(--label-2); letter-spacing: -.08px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; } /* up to two lines: a guarantee amount must not be cut */
.tb-dock .tb-btn { width: auto; min-height: 48px; flex: 0 0 auto; }

/* ================================================================ messages */
.tb-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--group-radius); background: var(--card); margin: 0 0 22px; font-size: 15px; letter-spacing: -.24px; }
.tb-banner > i { color: var(--tint); font-size: 18px; margin-top: 1px; }
.tb-banner.is-warn > i { color: var(--orange); }
.tb-banner.is-event > i { color: var(--indigo); }
.tb-error { margin: 12px 4px 0; color: var(--red); font-size: 15px; font-weight: 500; letter-spacing: -.24px; }
.tb-ok { color: var(--green); font-weight: 600; }
.tb-alert { margin: 0; padding: 14px 16px; font-size: 15px; color: var(--label-2); letter-spacing: -.24px; }
.tb-error[hidden], .tb-alert[hidden], .tb-banner[hidden] { display: none; }
.tb-wait { padding: 16px; border-top: .5px solid var(--sep); }
.tb-wait[hidden] { display: none; }
.tb-wait p { margin: 0 0 12px; font-size: 15px; letter-spacing: -.24px; }
.tb-wait-times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.tb-wait-times label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--label-2); font-weight: 500; }
.tb-wait-times select { height: 40px; border-radius: 10px; border: 0; background: var(--fill); color: var(--label); font: inherit; font-size: 16px; padding: 0 10px; -webkit-appearance: none; appearance: none; }

/* ================================================================ status pages (confirmation, pay, waitlist, voucher) */
.tb-status { text-align: center; padding: 18px 8px 24px; }
.tb-status-ico { width: 84px; height: 84px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 40px; color: #fff; background: var(--green);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--green) 40%, transparent); animation: tb-pop .6s var(--ease) both; }
.tb-status.is-cancelled .tb-status-ico, .tb-status.is-no_show .tb-status-ico { background: var(--red); box-shadow: 0 12px 30px color-mix(in srgb, var(--red) 35%, transparent); }
.tb-status.is-requested .tb-status-ico, .tb-status.is-pending_payment .tb-status-ico { background: var(--orange); box-shadow: 0 12px 30px color-mix(in srgb, var(--orange) 35%, transparent); }
.tb-status.is-tint .tb-status-ico { background: var(--tint); box-shadow: 0 12px 30px color-mix(in srgb, var(--tint) 35%, transparent); }
.tb-status h1 { margin: 18px 0 6px; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: .36px; font-family: var(--tb-font); }
.tb-status p { margin: 0 auto; max-width: 420px; color: var(--label-2); font-size: 17px; }
.tb-status p.tb-amount, .tb-amount { color: var(--label); font-size: 48px; font-weight: 700; letter-spacing: -.5px; margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.tb-pass { margin: 0 0 26px; padding: 22px 22px 20px; border-radius: 28px; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(140deg, var(--tint), color-mix(in srgb, var(--tint) 55%, #000)); box-shadow: 0 18px 40px color-mix(in srgb, var(--tint) 35%, transparent); }
.tb-pass::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.tb-pass small { display: block; font-size: 13px; opacity: .8; text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
.tb-pass b { display: block; font-size: 22px; margin-top: 2px; }
.tb-code { margin: 18px 0 4px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 28px; font-weight: 700; letter-spacing: 4px; }
.tb-pass-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; position: relative; z-index: 1; }

/* the collapsible manage rows (change, cancel) */
.tb-manage { margin: 0 0 26px; }
.tb-manage summary { list-style: none; }
.tb-manage summary::-webkit-details-marker { display: none; }
.tb-manage[open] .tb-chev { transform: rotate(90deg); }
.tb-chev { transition: transform .25s var(--ease); }
.tb-manage-body { padding: 0 0 16px; border-top: .5px solid var(--sep); }
.tb-manage-body .tb-btn { width: calc(100% - 32px); margin: 0 16px; }
.tb-manage-body .tb-error { margin: 12px 16px 0; }

/* events list (like Calendar) */
.tb-cal-badge { width: 44px; flex: 0 0 44px; height: 46px; border-radius: 10px; background: var(--fill); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.tb-cal-badge em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .3px; }
.tb-cal-badge b { font-size: 21px; font-weight: 600; margin-top: 3px; }

/* footer note */
.tb-foot { max-width: 640px; margin: 10px auto 0; padding: 0 20px 20px; text-align: center; font-size: 13px; color: var(--label-2); letter-spacing: -.08px; line-height: 18px; }
.tb-foot a { color: inherit; }
.tb-powered { display: block; margin-top: 6px; opacity: .7; }
html.is-embed .tb-foot { display: none; }

/* ================================================================ motion */
@keyframes tb-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tb-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes tb-dock-in { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (min-width: 700px) {
    .tb-hero { margin: 0 0 22px; }
    .tb-hero-photo { border-radius: 32px; margin-top: 4px; }
}
@media print {
    .tb-nav, .tb-dock, .tb-foot, .tb-btn { display: none !important; }
    body.tb { background: #fff; padding: 0; }
}

/* Apple's title tracking (+.37 / +.38 / +.36) is set for SF Pro, whose own spacing is tight. Every other
   system font (Roboto, Segoe, Arial…) then reads loose, so titles track slightly in elsewhere and keep
   Apple's values only where the Apple system font is there. */
.tb-large, .tb-status h1, .tb-section-head h2, .tb-section-head legend { letter-spacing: -.3px; }
@supports (font: -apple-system-body) {
    .tb-large { letter-spacing: .37px; }
    .tb-section-head h2, .tb-section-head legend { letter-spacing: .38px; }
    .tb-status h1 { letter-spacing: .36px; }
}
.tb-total .tb-row-value { color: var(--label); font-weight: 600; font-variant-numeric: tabular-nums; }
