/* zerosettle.io/talk (and /book, which lands there): two cards, Ryan on the left and the calendar on the right.
   Rides the site's own nav, fonts, buttons and background. Quiet text stays darker than ink-3 in light mode.
   Hover only where a pointer hovers; the pressed look matches css/pressed.css, which loads last and owns .btn. */
.tk [hidden] { display: none !important; }
.tk { --bk-row: 46px; --bk-gap: 8px; --tk-quiet: #6b665c; --tk-line: var(--hairline-2, rgba(23,20,13,.18)); --tk-soft: rgba(23,20,13,.08); --tk-accent: var(--green, #3266D8); --tk-accent-deep: var(--green-deep, #244FAE); --tk-pick: color-mix(in srgb, var(--green, #3266D8) 15%, transparent); --tk-err: #b3261e; --tk-tint: rgba(0,0,0,.06); --tk-btn: #24262c; --tk-btn-hover: #0f1014; --tk-btn-ink: #fff; --tk-shadow: 0 30px 70px -30px rgba(23,20,13,.22), 0 3px 10px rgba(23,20,13,.04); }
[data-theme="dark"] .tk { --tk-quiet: var(--ink-3); --tk-soft: rgba(255,255,255,.1); --tk-pick: color-mix(in srgb, #a8c9ff 20%, transparent); --tk-err: #ff9a92; --tk-tint: rgba(255,255,255,.10); --tk-btn: #edf0f6; --tk-btn-hover: #ffffff; --tk-btn-ink: #20242d; --tk-shadow: 0 30px 70px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tk { --tk-quiet: var(--ink-3); --tk-soft: rgba(255,255,255,.1); --tk-pick: color-mix(in srgb, #a8c9ff 20%, transparent); --tk-err: #ff9a92; --tk-tint: rgba(255,255,255,.10); --tk-btn: #edf0f6; --tk-btn-hover: #ffffff; --tk-btn-ink: #20242d; --tk-shadow: 0 30px 70px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03); } }

/* One heading style for every heading of about 19px and up on this page (and the small ones that head a block: the selected day, the
   picked time): the site's display face, weight 500, tight tracking, balanced lines. Each rule below sets only its own size and spacing.
   The face itself comes from css/fonts.css (--font-display); the weight and tracking are this file's. */
.tk :is(.bk-title, .bk-month, .bk-times .bk-day-label, .bk-who .bk-name, .bk-picked .bk-picked-day, .bk-busy .bk-busy-title, .bk-done h2) { font-family: var(--font-display); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; text-wrap: balance; }
.tk .bk-sub { display: block; color: var(--tk-quiet); }   /* the lighter second line of a two-part heading: same size and weight, the page's quiet ink, on its own line */
.bk-title { margin: 0; padding: clamp(96px, 8vw, 112px) 16px 0; text-align: center; font-size: clamp(28px, 3.4vw, 38px); color: var(--ink); }

/* ---- two cards ---- */
.bk-layout { max-width: 980px; width: calc(100% - 32px); margin: clamp(24px, 4vw, 40px) auto 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.bk-left, .bk-book { border: 1px solid var(--tk-soft); border-radius: 28px; background: var(--surface); box-shadow: var(--tk-shadow); min-width: 0; }
.bk-left { display: flex; flex-direction: column; padding: 12px; align-self: start; }
.bk-book { display: grid; padding: 28px; }

.bk-photo-wrap picture { display: contents; }
/* two versions of the sidebar, chosen before first paint by the head script (html.bk-personal): Ryan's own link shows his portrait, the default shows both founders */
html:not(.bk-personal) .bk-who-personal, html.bk-personal .bk-who-team { display: none; }
.bk-us, .bk-g { display: none; }
html:not(.bk-personal):not(.bk-ryan):not(.bk-gabe) .bk-us { display: inline; }
html:not(.bk-personal):not(.bk-ryan) .bk-me { display: none; }
html.bk-gabe .bk-g { display: inline; }
.bk-who-team { padding: 28px 12px 8px; }
.bk-who-team .bk-who-text { padding: 18px 0 6px; }
.bk-swap { display: flow-root; position: relative; }   /* a block formatting context, so the first and last child's margins sit inside the measured height and the card never jumps when the height animation ends */
.bk-swap-ryan, .bk-swap-gabe { display: none; }
html.bk-ryan .bk-swap-team, html.bk-gabe .bk-swap-team { display: none; }
html.bk-ryan .bk-swap-ryan, html.bk-gabe .bk-swap-gabe { display: block; }
.bk-swap-ryan .bk-photo-wrap, .bk-swap-gabe .bk-photo-wrap { margin-top: 18px; }
.bk-swap-ryan .bk-who-text, .bk-swap-gabe .bk-who-text { padding-bottom: 6px; }
.bk-layout[data-swapped] .bk-swap-pane { animation: bk-swap-in 220ms cubic-bezier(.4,0,.2,1) both; }
/* the pane being left stays on screen, over the box, while the height eases, and fades out as the other fades in */
.bk-layout .bk-swap .bk-swap-pane.bk-out { display: block; position: absolute; top: 0; left: 0; right: 0; pointer-events: none; animation: bk-swap-out 160ms ease-out both; }
@keyframes bk-swap-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes bk-swap-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bk-faces { position: relative; z-index: 2; display: flex; align-items: center; padding-left: 4px; }
.bk-faces picture { display: block; flex: none; }
.bk-faces img { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-sizing: content-box; border: 3px solid var(--surface); margin: -3px; }
.bk-face { display: block; flex: none; padding: 0; border: 0; background: none; border-radius: 50%; line-height: 0; }
.bk-face picture { display: block; }
.bk-face + .bk-face { margin-left: -14px; }
.bk-face-gabe { position: relative; z-index: 1; }
.bk-face-ryan { position: relative; }
.bk-face-ryan, .bk-face-gabe { cursor: pointer; transition: transform 160ms cubic-bezier(.2,.8,.2,1); -webkit-tap-highlight-color: transparent; }
.bk-face-ryan:focus-visible, .bk-face-gabe:focus-visible { outline: 2px solid var(--tk-accent); outline-offset: 3px; }
.bk-face img { transition: border-color 160ms ease, opacity 160ms ease; }
.bk-face-ryan[aria-pressed="true"], .bk-face-gabe[aria-pressed="true"] { transform: scale(1.06); z-index: 2; }
.bk-face-ryan[aria-pressed="true"] img, .bk-face-gabe[aria-pressed="true"] img { border-color: var(--tk-accent); }
html.bk-ryan .bk-face-gabe img, html.bk-gabe .bk-face-ryan img { opacity: .4; }
@media (hover: hover) { .bk-face[aria-pressed="false"]:hover { transform: translateY(-2px); } .bk-face[aria-pressed="true"]:hover { transform: scale(1.06) translateY(-1px); } }
.bk-face-ryan:active, .bk-face-gabe:active { transform: scale(.96); }
/* the note on Gabe's face: a small bubble under the faces, its arrow on his face; opacity and scale only */
.bk-pop { --ax: 36px; position: absolute; z-index: 3; left: 0; top: calc(100% + 12px); width: min(250px, calc(100vw - 64px)); box-sizing: border-box; padding: 11px 14px; border: 1px solid var(--tk-soft); border-radius: 14px; background: var(--surface); box-shadow: 0 14px 34px -12px rgba(23,20,13,.28), 0 2px 6px rgba(23,20,13,.06); font-size: 14px; line-height: 1.4; color: var(--ink); opacity: 0; visibility: hidden; transform: scale(.94); transform-origin: var(--ax) 0; pointer-events: none; transition: opacity 160ms ease, transform 160ms cubic-bezier(.2,.8,.2,1), visibility 0s 160ms; }
.bk-pop::before { content: ""; position: absolute; top: -6px; left: calc(var(--ax) - 6px); width: 10px; height: 10px; border: 1px solid var(--tk-soft); border-right: 0; border-bottom: 0; background: var(--surface); transform: rotate(45deg); }
.bk-pop.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* Gabe's name is a button set as text: a subtle underline on hover */
.bk-who .bk-role-gabe { display: block; appearance: none; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--tk-quiet); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 160ms ease; }
@media (hover: hover) { .bk-who .bk-role-gabe:hover { text-decoration-color: currentColor; } }
.bk-role-gabe:focus-visible { outline: 2px solid var(--tk-accent); outline-offset: 3px; border-radius: 4px; }
/* the bubble lets pointer events through to what is under it (so a second tap on the trigger still closes it); only its link takes them, with a roomy hit area */
.bk-pop .tk-link { display: inline-block; pointer-events: auto; font-size: 14px; font-weight: 600; padding: 10px 3px; margin: -10px -3px; }
/* the note on today's date: the same bubble, placed under the cell by talk.js (--ax is its arrow), content on one or two lines */
.bk-pop-today { width: max-content; max-width: min(260px, 100%); left: 0; top: 0; pointer-events: none; }
.bk-pop-today .tk-link { margin-left: 4px; }
.bk-grid { position: relative; }
/* today: not bookable, so no bookable look; a small muted dot under the number says it is something else */
.bk-d.is-today { opacity: 1; cursor: help; color: var(--tk-quiet); position: relative; }
.bk-d.is-today::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--tk-quiet); opacity: .8; }
.bk-d.is-today:focus-visible { outline: 2px solid var(--tk-accent); outline-offset: 2px; }
@media (hover: hover) { .bk-d.is-today:hover { background: var(--surface-2); } }
[data-theme="dark"] .bk-pop { box-shadow: 0 14px 34px -12px rgba(0,0,0,.7); }
.bk-photo-wrap { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #e9edf6 0%, #dfe4ef 45%, #ece6f2 100%); }
[data-theme="dark"] .bk-photo-wrap { background: linear-gradient(160deg, #2a2f3b 0%, #22262f 50%, #2c2836 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bk-photo-wrap { background: linear-gradient(160deg, #2a2f3b 0%, #22262f 50%, #2c2836 100%); } }
.bk-photo { display: block; width: 100%; height: 100%; object-fit: cover; color: transparent; }
.bk-who-text { padding: 20px 12px 6px; }
.bk-who .bk-name, .bk-who .bk-role { margin: 0; }
.bk-who .bk-name { font-size: 20px; color: var(--ink); }
.bk-who .bk-role { margin-top: 2px; font-size: 15px; color: var(--tk-quiet); }
/* credentials: a small quiet "Previously" over the logos alone (one muted ink, optical heights matched), then YC W26 as its own badge */
.bk-creds { margin: 14px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: var(--tk-quiet); }
.bk-creds[data-creds] { min-height: 74px; }   /* the row is filled in by talk.js; this keeps the card from growing when it arrives */
.bk-prev { display: flex; flex-direction: column; gap: 7px; }
.bk-prev-label { font-size: 12px; line-height: 1; color: var(--tk-quiet); }
.bk-prev-logos { display: flex; align-items: center; gap: 20px; height: 20px; }
.bk-prev-logos svg { display: block; width: auto; fill: currentColor; }
.bk-prev-logos .logo-apple { height: 18px; margin-top: -2px; }
.bk-prev-logos .logo-microsoft { height: 15px; }
.bk-prev-logos .logo-tesla { height: 9px; }
.bk-yc { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-2); }
.bk-yc .yc-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: #ff6600; color: #fff; font-style: normal; font-size: 12px; font-weight: 700; line-height: 1; }

.bk-alt { margin-top: auto; padding: 18px 12px 14px; }
.bk-who ~ .bk-alt { margin-top: 12px; border-top: 1px solid var(--tk-soft); }
.bk-alt.is-gone { display: none; }
.bk-alt .bk-alt-q { margin: 0 0 10px; font-size: 15px; font-weight: 500; color: var(--ink); }
.bk-alt-row { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.tk .btn.bk-text { height: 44px; padding: 0 20px; font-size: 15px; justify-content: center; }
.bk-alt-num { font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 10px 0; }
@media (hover: hover) { .bk-alt-num:hover { color: var(--tk-accent-deep); text-decoration: underline; text-underline-offset: 4px; } }
.bk-alt .bk-alt-mail { margin: 6px 0 0; font-size: 14px; color: var(--tk-quiet); }
.bk-alt-mail .tk-link { font-size: 14px; }
/* the contact row follows the same state as the card: the team's address and "Text us" by default, Ryan's and "Text me" on his links or once his face is picked */
.bk-mail-ryan, .bk-mail-gabe { display: none; }
html:not(.bk-personal):not(.bk-ryan) .bk-num-ryan { display: none; }
html.bk-personal .bk-num-team, html.bk-ryan .bk-num-team { display: none; }
html.bk-personal .bk-mail-ryan, html.bk-ryan .bk-mail-ryan { display: inline; }
html.bk-personal .bk-mail-team, html.bk-ryan .bk-mail-team, html.bk-gabe .bk-mail-team { display: none; }
html.bk-gabe .bk-mail-gabe { display: inline; }
/* Gabe selected: the calendar card's panel is the call to action, so the sidebar keeps one quiet line, his email, under his credentials */
.bk-em { display: none; }
html.bk-gabe .bk-em { display: inline; }
html.bk-gabe .bk-or, html.bk-gabe .bk-alt .bk-alt-q, html.bk-gabe .bk-alt-row { display: none; }
html.bk-gabe .bk-who ~ .bk-alt { margin-top: 0; padding-top: 0; border-top: 0; }
html.bk-gabe .bk-alt .bk-alt-mail { margin-top: 0; }
.bk-layout[data-swapped] :is(.bk-mail, .bk-text span) { animation: bk-swap-in 220ms cubic-bezier(.2,.8,.2,1) both; }

/* ---- the three panes share one cell, so the card never changes height between steps ---- */
.bk-pane { grid-area: 1 / 1; min-width: 0; }
.bk-pane.is-off { opacity: 0; visibility: hidden; pointer-events: none; }   /* the outgoing pane goes on the click's own frame */
.bk-layout[data-moved] .bk-pane.is-on { animation: bk-in 180ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes bk-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

#pane-pick { display: flex; flex-direction: column; position: relative; }
/* Gabe selected: the calendar and times stay in the layout, hidden, so the card keeps its height, and a calm panel sits over them */
.bk-busy { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 12px 24px; text-align: center; }
html.bk-gabe .bk-busy { display: flex; }
html.bk-gabe #pane-pick > :is(.bk-cal, .bk-times, .bk-line) { visibility: hidden; }
.bk-layout[data-swapped] .bk-busy { animation: bk-swap-in 220ms cubic-bezier(.4,0,.2,1) both; }
.tk .bk-busy .bk-busy-title { margin: 0 0 6px; max-width: 18ch; font-size: clamp(24px, 3vw, 30px); color: var(--ink); }
.bk-busy .bk-primary { width: auto; min-width: 260px; }
.tk .bk-busy .bk-busy-num { margin: 0; font-size: 15px; color: var(--tk-quiet); }
.tk .btn.bk-ghost { height: 44px; padding: 0 20px; font-size: 15px; margin-top: 6px; }   /* the site's quiet button (.btn-ghost), set to the page's small size */
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; height: 44px; margin-bottom: 6px; }
.bk-month { margin: 0; font-size: 19px; color: var(--ink); }
.bk-icon { appearance: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; transition: background-color 160ms ease, transform 120ms ease, opacity 160ms ease; -webkit-tap-highlight-color: transparent; }
.bk-icon:disabled { opacity: .3; cursor: not-allowed; }
.bk-icon:focus-visible, .bk-d:focus-visible, .bk-t:focus-visible, .bk-zone:focus-within, .bk-primary:focus-visible { outline: 2px solid var(--tk-accent); outline-offset: 2px; }
.bk-dow, .bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.bk-dow span { text-align: center; font-size: 13px; color: var(--tk-quiet); padding: 6px 0 8px; }
.bk-grid { grid-auto-rows: 46px; min-height: calc(3 * 46px + 2 * 2px); align-content: start; justify-items: center; }   /* a 14-day window is three weeks from any weekday, so three rows is the usual height */
.bk-d { appearance: none; position: relative; width: 46px; height: 46px; border: 0; border-radius: 50%; background: transparent; color: var(--tk-quiet); font: inherit; font-size: 15px; cursor: default; opacity: .55; transition: background-color 160ms ease, transform 120ms ease; -webkit-tap-highlight-color: transparent; }
.bk-mtag { position: absolute; top: 3px; left: 0; right: 0; font-size: 10px; line-height: 1; font-weight: 400; color: var(--tk-quiet); pointer-events: none; }
.bk-d.is-open[aria-pressed="true"] .bk-mtag { color: inherit; opacity: .75; }
.bk-d.is-open { color: var(--ink); font-weight: 700; opacity: 1; cursor: pointer; }
.bk-d.is-open[aria-pressed="true"] { background: var(--tk-pick); color: var(--tk-accent-deep); }
[data-theme="dark"] .bk-d.is-open[aria-pressed="true"] { color: #a8c9ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bk-d.is-open[aria-pressed="true"] { color: #a8c9ff; } }
.bk-layout[data-cal="loading"] .bk-grid { opacity: .5; }

/* ---- the day's times, under the grid ---- */
.bk-times { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--tk-soft); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bk-times-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.bk-times .bk-day-label { margin: 0; font-size: 16px; color: var(--ink); }
.bk-zone { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 0 0 12px; border: 1px solid var(--tk-line); border-radius: 999px; color: var(--tk-quiet); position: relative; transition: border-color 160ms ease; flex: none; max-width: 60%; }
.bk-zone select { appearance: none; -webkit-appearance: none; min-width: 0; height: 100%; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; padding: 0 30px 0 0; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.bk-zone select option { color: #17140d; background: #fff; }
@media (hover: hover) { .bk-zone:hover { border-color: var(--ink-3); } }
/* The list scrolls inside a box cut halfway through a row (3.5 rows with their gaps), so a cut row says there is more. The fades are a mask, so
   they work on any background, and show only on the side that has more (the classes come from talk.js; none when the list fits). */
@property --fade-t { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fade-b { syntax: "<length>"; inherits: false; initial-value: 0px; }
.bk-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--bk-gap); max-height: calc(3.5 * var(--bk-row) + 3 * var(--bk-gap) + 2px); overflow-y: auto; padding: 2px 4px 2px 2px; margin: -2px -4px -2px -2px; scrollbar-width: thin; scrollbar-color: var(--tk-line) transparent; overscroll-behavior: contain; align-content: start;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-t), #000 calc(100% - var(--fade-b)), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-t), #000 calc(100% - var(--fade-b)), transparent 100%); transition: --fade-t 160ms ease, --fade-b 160ms ease; }
.bk-slots.fade-b { --fade-b: 28px; }
.bk-slots.fade-t { --fade-t: 28px; }
.bk-t { appearance: none; min-height: var(--bk-row); border: 1px solid var(--tk-line); border-radius: 14px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease, transform 120ms ease; -webkit-tap-highlight-color: transparent; }
.bk-t[aria-pressed="true"] { border-color: var(--tk-accent); box-shadow: inset 0 0 0 1px var(--tk-accent); }
.bk-t.is-held { cursor: not-allowed; color: var(--tk-quiet); font-weight: 400; opacity: .5; text-decoration: line-through; text-decoration-thickness: 1px; border-style: dashed; }
.bk-times .bk-empty { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.bk-line { margin: auto 0 0; padding-top: 14px; font-size: 14px; color: var(--tk-quiet); }

/* a calendar that is down or full: the message fills the card */
.bk-layout[data-cal="none"] .bk-cal, .bk-layout[data-cal="none"] .bk-zone, .bk-layout[data-cal="none"] .bk-day-label, .bk-layout[data-cal="none"] .bk-line { display: none; }
.bk-layout[data-cal="none"] .bk-times { margin-top: 0; padding-top: 0; border-top: 0; }
.bk-layout[data-cal="loading"] .bk-times-head, .bk-layout[data-cal="loading"] .bk-slots { visibility: hidden; }

@media (hover: hover) {
  .bk-icon:not(:disabled):hover { background: var(--surface-2); }
  .bk-d.is-open[aria-pressed="false"]:hover { background: var(--surface-2); }
  .bk-t:not(:disabled):hover { border-color: var(--ink); background: var(--surface-2); }
  .bk-t[aria-pressed="true"]:hover { border-color: var(--tk-accent-deep); }
  .bk-primary:not(:disabled):hover { background: var(--tk-btn-hover); }
  .bk-primary:not(:disabled):hover .bk-arrow svg { transform: translateX(3px); }
}
.bk-icon:not(:disabled):active, .bk-d.is-open:active, .bk-t:not(:disabled):active, .bk-primary:not(:disabled):active { transform: scale(.97); background-image: linear-gradient(var(--tk-tint), var(--tk-tint)); }

/* ---- the primary button: a dark pill with an arrow in a circle (inverted in dark mode) ---- */
.bk-primary { appearance: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; height: 56px; padding: 0 10px 0 28px; border: 0; border-radius: 999px; background: var(--tk-btn); color: var(--tk-btn-ink); font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); transition: background-color 160ms ease, transform 120ms ease, opacity 160ms ease; -webkit-tap-highlight-color: transparent; }
.tk a.bk-primary, .tk a.bk-primary:visited { color: var(--tk-btn-ink); }
.bk-arrow { width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--tk-btn-ink) 18%, transparent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bk-arrow svg { transition: transform 200ms cubic-bezier(.2,.8,.2,1); }
.bk-primary:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

/* ---- details ---- */
#pane-details { display: flex; flex-direction: column; gap: 20px; }
.bk-back-row { display: flex; align-items: center; gap: 12px; margin-left: -10px; }
.bk-picked .bk-picked-day { margin: 0; font-size: 18px; color: var(--ink); }
.bk-picked .bk-picked-time { margin: 2px 0 0; font-size: 15px; color: var(--tk-quiet); }
.bk-submit { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.bk-submit .bk-err { margin: 0; font-size: 15px; line-height: 1.45; color: var(--tk-err); text-align: center; }

.tk-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.tk-field { display: flex; flex-direction: column; gap: 8px; }
.tk-label { font-size: 14px; font-weight: 500; color: var(--ink); }
.tk-label small { font-size: inherit; font-weight: 400; color: var(--tk-quiet); }
.tk-input { height: 52px; width: 100%; box-sizing: border-box; border: 1px solid var(--tk-line); border-radius: 14px; background: transparent; color: var(--ink); font: inherit; font-size: 16px; padding: 0 16px; transition: border-color 160ms ease, box-shadow 160ms ease; }
@media (hover: hover) { .tk-input:hover { border-color: var(--ink-3); } }
.tk-area { height: auto; min-height: 76px; padding: 13px 16px; line-height: 1.4; resize: none; font-family: inherit; display: block; }
.tk-sub { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }
.tk-link { appearance: none; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 15px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--tk-line); text-underline-offset: 4px; cursor: pointer; transition: text-decoration-color 160ms ease, color 160ms ease; }
@media (hover: hover) { .tk-link:hover { text-decoration-color: currentColor; color: var(--tk-accent-deep); } }
@media (hover: hover) { [data-theme="dark"] .tk-link:hover { color: var(--tk-accent); } }
.tk-link:focus-visible { outline: 2px solid var(--tk-accent); outline-offset: 3px; border-radius: 4px; }

/* ---- booked ---- */
.bk-done { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px 8px; }
.bk-done:focus { outline: none; }
.bk-done > * { max-width: 420px; }
.tk .bk-done h2 { margin: 6px 0 0; font-size: clamp(28px, 4vw, 34px); }
.bk-check { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--tk-pick); color: var(--tk-accent-deep); }
[data-theme="dark"] .bk-check { color: #a8c9ff; }
.bk-done .bk-when { margin: 0; font-size: clamp(19px, 3vw, 22px); line-height: 1.3; color: var(--ink); }
.bk-done .tk-sub { margin: 0; }
.bk-done .bk-primary { margin-top: 14px; width: auto; min-width: 280px; }
.bk-layout[data-step="done"] .bk-alt { display: none; }

.tk-end { height: clamp(64px, 9vw, 110px); }

/* ---- under 900: Ryan becomes a header, the calendar card follows, the text row last ---- */
@media (max-width: 899px) {
  .bk-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .bk-left { display: contents; }
  .bk-who { grid-row: 1; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--tk-soft); border-radius: 24px; background: var(--surface); box-shadow: var(--tk-shadow); }
  .bk-photo-wrap { aspect-ratio: 1; border-radius: 18px; }
  .bk-who-team { grid-template-columns: 96px minmax(0, 1fr); padding: 14px; }
  .bk-who-team .bk-who-text { padding: 0; }
  .bk-who-team { align-items: start; }
  .bk-swap-ryan .bk-photo-wrap, .bk-swap-gabe .bk-photo-wrap { display: none; }
  /* stacked: there is no card height to hold, so the calendar leaves the flow and the panel takes its place */
  html.bk-gabe #pane-pick > :is(.bk-cal, .bk-times, .bk-line) { display: none; }
  .bk-busy { position: static; padding: 28px 4px 12px; }
  .bk-busy .bk-primary { width: 100%; min-width: 0; }
  .bk-faces { padding-left: 0; }
  .bk-faces img { width: 44px; height: 44px; }
  .bk-who-team .bk-role-gabe { font-size: 15px; }
  .bk-face + .bk-face { margin-left: -12px; }
  .bk-who-text { padding: 0; }
  .bk-who .bk-name { font-size: 18px; }
  .bk-creds { margin-top: 10px; gap: 8px; }
  .bk-creds[data-creds] { min-height: 0; }
  .bk-book { grid-row: 2; padding: 20px 16px; border-radius: 24px; }
  .bk-alt { grid-row: 3; margin: 0; padding: 14px 18px; border: 1px solid var(--tk-soft); border-radius: 24px; background: var(--surface); box-shadow: var(--tk-shadow); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; }
  .bk-who ~ .bk-alt { margin-top: 0; }
  .bk-alt .bk-alt-q { margin: 0; }
  .bk-alt-row { grid-column: 2; grid-row: 1 / 3; }
  .bk-alt-num { display: none; }
  .bk-alt .bk-alt-mail { margin: 0; }
  html.bk-gabe .bk-alt { display: block; border: 0; background: none; box-shadow: none; padding: 0 20px; }
  #pane-pick.is-off, #pane-details.is-off, .bk-pane.is-off { display: none; }
  .bk-pane { grid-area: auto; }
  .bk-slots { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .bk-slots:empty { min-height: 96px; }
  .bk-times-head { flex-wrap: wrap; }
  .bk-zone { max-width: 100%; }
  .bk-zone select, .tk-input { font-size: 16px; }
  .bk-layout[data-cal="none"] .bk-times { padding: 4px 0; }
  .tk-pair { grid-template-columns: 1fr; gap: 20px; }
  .bk-done { padding: 40px 8px; }
  .bk-done .bk-primary { min-width: 0; width: 100%; }
}
@media (max-width: 899px) { .bk-layout[data-moved] .bk-pane.is-on { animation-name: bk-up-m; } }
@keyframes bk-up-m { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .bk-face-ryan, .bk-face img { transition: none; }
  .bk-layout *, .bk-layout { transition: none !important; animation: none !important; }
  .bk-icon:not(:disabled):active, .bk-d.is-open:active, .bk-t:not(:disabled):active, .bk-primary:not(:disabled):active { transform: none; }
}
