/* Booking the flights of a trip to one place (public/booking.js): a sheet over the page, in the page's own colours. */

/* The way in, on an open trip: the one filled button of the card. */
.book-flights {
  display: flex; align-items: center; gap: 0.5rem; width: 100%; min-height: 3rem; margin-top: 0.75rem;
  padding: 0.5rem 1rem; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: transform 160ms var(--ease-out), filter 160ms var(--ease-out);
}
@media (hover: hover) { .book-flights:hover { filter: brightness(1.06); } }
.book-flights:active { transform: scale(0.98); }
.book-flights svg { flex: none; width: 1.25rem; height: 1.25rem; fill: currentColor; }
.book-flights span { flex: 1; text-align: left; }
.book-flights b { font-weight: 800; font-variant-numeric: tabular-nums; }

/* The airline's logo before its name on a boarding pass. */
.leg-logo { width: 1.125rem; height: 1.125rem; margin-right: 0.3125rem; vertical-align: -0.25rem; border-radius: 4px; object-fit: contain; background: #fff; }

.bk {
  position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto auto 1fr auto;
  background: var(--ground); color: var(--ink);
  transform: translateY(100%); transition: transform 260ms var(--ease-out);
}
.bk.is-in { transform: none; }
/* Each part keeps its row, the clock's too when it is hidden: otherwise the foot would take the body's place. */
.bk-top { grid-row: 1; }
.bk-timer { grid-row: 2; }
.bk-body { grid-row: 3; min-height: 0; }
.bk-foot { grid-row: 4; }
@media (prefers-reduced-motion: reduce) { .bk { transition: none; } }
@media (min-width: 560px) {
  .bk { inset: 0 max(0px, calc(50% - 15rem)); box-shadow: 0 0 0 100vmax rgb(34 48 60 / 0.35); }
}

.bk-sign { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* The top: back, the four steps as dots on a line, close. */
.bk-top { display: grid; grid-template-columns: 2.75rem 1fr 2.75rem; align-items: center; gap: 0.25rem; padding: max(0.5rem, env(safe-area-inset-top)) 0.5rem 0.5rem; background: var(--surface); border-bottom: 1px solid var(--rule); }
.bk-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; }
@media (hover: hover) { .bk-icon:hover { background: var(--tint); } }
.bk-steps { display: flex; justify-content: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.bk-steps li { position: relative; display: grid; justify-items: center; gap: 0.25rem; flex: 1; max-width: 5.5rem; font-size: 0.6875rem; font-weight: 600; color: var(--ink-2); }
.bk-steps li::before { content: ""; position: absolute; top: 0.3125rem; left: -50%; width: 100%; height: 2px; background: var(--rule); z-index: 0; }
.bk-steps li:first-child::before { display: none; }
.bk-steps li.is-done::before, .bk-steps li.is-now::before { background: var(--accent); }
.bk-steps i { position: relative; z-index: 1; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--rule); transition: background 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.bk-steps li.is-done i { background: var(--accent); box-shadow: none; }
.bk-steps li.is-now i { background: var(--surface); box-shadow: inset 0 0 0 3px var(--accent); }
.bk-steps li.is-now { color: var(--ink); }

/* How long the price is held. */
.bk-timer { justify-self: end; display: flex; align-items: center; gap: 0.25rem; margin: 0.5rem 1rem 0; padding: 0.1875rem 0.5rem; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-timer .bk-sign { width: 1rem; height: 1rem; }
.bk-timer.is-low { background: var(--bad-ground); color: var(--bad); }

.bk-body { overflow-y: auto; overscroll-behavior: contain; padding: 0.75rem 1rem 1.5rem; outline: none; display: grid; align-content: start; gap: 0.875rem; }
.bk-head h2 { margin: 0; font-size: 1.75rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
.bk-head p { margin: 0.25rem 0 0; color: var(--ink-2); font-size: 0.9375rem; }
.bk-passes { display: grid; gap: 0.625rem; }
.bk-card { padding: 0.875rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; }
.bk-card h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 0.375rem; margin: 0 0 0.75rem; font-size: 1rem; font-weight: 750; }
.bk-card h3 .bk-sign { color: var(--accent); }
.bk-card h3 small { font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }
.bk-chip { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.125rem 0.5rem; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 0.75rem; font-weight: 700; }
.bk-chip.is-warn { background: #fff3dc; color: #8a5a00; }
.bk-chip.is-good { background: color-mix(in oklab, var(--good) 14%, var(--surface)); color: var(--good); }
.bk-chip .bk-sign { width: 1rem; height: 1rem; }
.bk-note { margin: 0; padding: 0.625rem 0.75rem; border-radius: 12px; background: var(--tint); font-size: 0.875rem; }
.bk-note.is-warn { background: #fff3dc; }
.bk-quiet { margin: 0; color: var(--ink-2); font-size: 0.875rem; }

/* What the fare holds: a badge each, a tick or a cross on its corner. */
.bk-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.bk-badge { display: grid; justify-items: center; gap: 0.125rem; padding: 0.5rem 0.25rem; text-align: center; border-radius: 12px; background: var(--ground); }
.bk-badge b { font-size: 0.75rem; font-weight: 700; line-height: 1.2; }
.bk-badge > span:last-child:not(.bk-badge-art) { font-size: 0.6875rem; color: var(--ink-2); }
.bk-badge-art { position: relative; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--rule); color: var(--ink); }
.bk-badge-art > .bk-sign { width: 1.375rem; height: 1.375rem; }
.bk-badge-art i { position: absolute; right: -0.125rem; bottom: -0.125rem; display: grid; place-items: center; width: 1.125rem; height: 1.125rem; border-radius: 50%; color: #fff; }
.bk-badge-art i .bk-sign { width: 0.75rem; height: 0.75rem; stroke-width: 2.6; }
/* An included thing, or a chosen one, is painted: its sky behind, its shape filled, an accent ring (as a visited city's badge). */
.bk-badge.is-yes .bk-badge-art, .bk-option.is-on .bk-badge-art { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 1px var(--accent); background: var(--sky, var(--tint)); color: var(--line, var(--ink)); }
.bk-badge.is-yes .bk-badge-art > .bk-sign .f, .bk-option.is-on .bk-badge-art > .bk-sign .f { fill: var(--a, none); }
.bk-badge.is-yes .bk-badge-art i { background: var(--good); }
.bk-badge.is-no { opacity: 0.72; }
.bk-badge.is-no .bk-badge-art i { background: var(--control-border); }

/* The travellers. */
.bk-seg { display: flex; gap: 0.25rem; padding: 0.1875rem; margin-bottom: 0.625rem; border-radius: 999px; background: var(--ground); }
.bk-seg button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.375rem; min-height: 2.5rem; padding: 0 0.75rem; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: inherit; font-size: 0.9375rem; font-weight: 650; cursor: pointer; }
.bk-seg button[aria-checked="true"], .bk-seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(34 48 60 / 0.16); }
.bk-seg img { border-radius: 4px; background: #fff; }
.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.bk-row + .bk-row, .bk-row + .bk-field, .bk-field + .bk-row { margin-top: 0.5rem; }
.bk-phone { grid-template-columns: 7.5rem 1fr; }
.bk-field { position: relative; display: grid; gap: 0.1875rem; min-width: 0; }
.bk-field > .bk-sign { position: absolute; right: 0.625rem; bottom: 0.75rem; color: var(--ink-2); pointer-events: none; }
.bk-label { font-size: 0.75rem; font-weight: 650; color: var(--ink-2); }
.bk-field input, .bk-field select {
  width: 100%; min-width: 0; min-height: 2.875rem; padding: 0.5rem 0.625rem; border: 1px solid var(--control-border); border-radius: 10px;
  background: var(--control); color: var(--ink); font: inherit; font-size: 1rem;
}
.bk-field input:focus, .bk-field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.bk-more { margin-top: 0.625rem; }
.bk-more summary { display: flex; align-items: center; gap: 0.4375rem; min-height: 2.5rem; cursor: pointer; list-style: none; font-size: 0.9375rem; font-weight: 650; color: var(--accent); }
.bk-more summary::-webkit-details-marker { display: none; }
.bk-more summary small { color: var(--ink-2); font-weight: 500; font-size: 0.8125rem; }
.bk-more[open] summary { margin-bottom: 0.25rem; }

/* The seats: a plan of the cabin, a column of row numbers down the aisle. */
.bk-tabs { margin-bottom: 0.5rem; }
.bk-who { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 0.5rem; }
.bk-who button { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 2.25rem; padding: 0 0.75rem 0 0.5rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 0.875rem; font-weight: 650; cursor: pointer; }
.bk-who button[aria-pressed="true"] { border-color: var(--accent); background: var(--tint); color: var(--accent); }
.bk-plan { display: grid; justify-content: center; gap: 0.3125rem; max-height: 24rem; overflow-y: auto; padding: 0 0.5rem 0.75rem; border-radius: 5rem 5rem 14px 14px / 3.25rem 3.25rem 14px 14px; background: var(--ground); box-shadow: inset 0 0 0 1.5px var(--rule); }
/* The nose of the cabin: the flight deck's windows. */
.bk-nose { display: grid; place-items: end center; height: 2.75rem; }
.bk-nose svg { width: 7.5rem; height: 2.125rem; }
.bk-nose .glass { fill: color-mix(in oklab, var(--accent) 16%, var(--surface)); stroke: color-mix(in oklab, var(--accent) 45%, var(--surface)); stroke-width: 1.2; stroke-linejoin: round; }
.bk-plan-row { display: grid; grid-template-columns: repeat(var(--cols), 2.125rem); gap: 0.3125rem; justify-items: center; }
.bk-plan-row.is-head { position: sticky; top: 0; z-index: 1; padding: 0.25rem 0; background: var(--ground); }
.bk-plan-gap { height: 0.5rem; margin: 0.125rem 1rem; border-bottom: 2px dotted var(--control-border); opacity: 0.6; }
.bk-col, .bk-aisle { display: grid; place-items: center; width: 2.125rem; height: 1.25rem; font-size: 0.6875rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bk-plan-row:not(.is-head) .bk-aisle { height: 2.125rem; }
/* A seat seen from above: a rounded back, and its cushion as a darker edge at the foot. */
.bk-seat { position: relative; width: 2.125rem; height: 2.125rem; padding: 0; border: 0; border-radius: 10px 10px 6px 6px; font: inherit; font-size: 0.8125rem; font-weight: 800; cursor: pointer; transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out); --seat: var(--surface); --edge: var(--accent); background: var(--seat); box-shadow: inset 0 0 0 1.5px var(--edge), inset 0 -0.3125rem 0 color-mix(in oklab, var(--edge) 22%, transparent); }
.bk-seat:active:not(:disabled) { transform: scale(0.9); }
.bk-seat.is-none { visibility: hidden; }
.bk-seat.is-free { --seat: var(--surface); --edge: var(--accent); }
/* Paid seats, the dearer the deeper. */
.bk-seat.is-band-0 { --seat: #e2f0ee; --edge: #8fc4bc; }
.bk-seat.is-band-1 { --seat: #b9dcd6; --edge: #5fa89d; }
.bk-seat.is-band-2 { --seat: #86c1b8; --edge: #2f8a7d; }
.bk-seat.is-taken { --seat: var(--rule); --edge: var(--rule); cursor: default; box-shadow: none; opacity: 0.75; }
.bk-seat.is-mine { --seat: var(--accent); --edge: var(--accent); color: var(--on-accent); box-shadow: inset 0 -0.3125rem 0 rgb(0 0 0 / 0.16), 0 0 0 2px var(--surface), 0 0 0 3.5px var(--accent); animation: bk-seat-in 220ms var(--ease-out); }
@keyframes bk-seat-in { from { transform: scale(0.8); } }
/* More room for the legs: a bar ahead of the seat. */
.bk-seat.is-roomy::before { content: ""; position: absolute; left: 22%; right: 22%; top: -0.25rem; height: 2px; border-radius: 1px; background: #e0a73a; }
.bk-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem 0.875rem; margin: 0.75rem 0 0; font-size: 0.75rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bk-legend span { display: inline-flex; align-items: center; gap: 0.3125rem; }
.bk-legend .bk-seat { width: 1rem; height: 1rem; border-radius: 5px 5px 3px 3px; cursor: default; animation: none; box-shadow: inset 0 0 0 1.5px var(--edge), inset 0 -0.1875rem 0 color-mix(in oklab, var(--edge) 22%, transparent); }
.bk-legend .bk-seat.is-taken { box-shadow: none; }
.bk-legend .bk-seat.is-roomy::before { top: -0.1875rem; }
/* The seat chosen, as a small ticket. */
.bk-picked { display: flex; align-items: center; gap: 0.625rem; min-height: 3rem; margin: 0.75rem 0 0; padding: 0.375rem 0.75rem; border-radius: 12px; background: var(--ground); font-size: 0.875rem; }
.bk-picked.is-chosen { background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--accent); }
.bk-picked-seat { display: grid; place-items: center; min-width: 2.75rem; height: 2.125rem; padding: 0 0.375rem; border-radius: 10px 10px 6px 6px; background: var(--accent); color: var(--on-accent); font-stretch: 80%; font-size: 1.0625rem; font-weight: 800; }
.bk-picked-where { flex: 1; font-weight: 600; color: var(--ink-2); }
.bk-picked.is-chosen .bk-picked-where { color: var(--ink); }
.bk-picked-price { font-weight: 800; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .bk-seat.is-mine { animation: none; } }

/* Bags for sale. */
.bk-bags { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.bk-bag { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem; border-radius: 12px; background: var(--ground); }
.bk-bag.is-on { background: var(--tint); }
.bk-bag-words { flex: 1; display: grid; min-width: 0; }
.bk-bag-words b { font-size: 0.9375rem; }
.bk-bag-words span { font-size: 0.75rem; color: var(--ink-2); }
.bk-stepper { display: flex; align-items: center; gap: 0.25rem; }
.bk-stepper button { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 1px solid var(--control-border); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.bk-stepper button:disabled { opacity: 0.35; cursor: default; }
.bk-stepper output { min-width: 1.25rem; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

/* What it costs, and who flies. */
.bk-sum { display: grid; gap: 0.5rem; }
.bk-sum-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; }
.bk-sum-row .bk-sign { color: var(--accent); }
.bk-sum-row span { flex: 1; }
.bk-sum-row b { font-variant-numeric: tabular-nums; }
.bk-sum-row.is-total { margin-top: 0.25rem; padding-top: 0.625rem; border-top: 1px solid var(--rule); font-size: 1.0625rem; font-weight: 800; }
.bk-who-sum, .bk-pay { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 0.625rem; }
.bk-who-sum > .bk-sign, .bk-pay > .bk-sign { grid-row: span 2; width: 1.75rem; height: 1.75rem; color: var(--accent); }
.bk-who-sum span, .bk-pay b { font-weight: 700; }
.bk-who-sum small, .bk-pay span { color: var(--ink-2); font-size: 0.8125rem; }

/* Booked. */
.bk-booked { display: grid; justify-items: center; gap: 0.375rem; padding: 0.75rem 0 0.25rem; text-align: center; }
.bk-booked h2 { margin: 0.25rem 0 0; font-size: 1.75rem; font-weight: 800; }
.bk-tick { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--good); color: #fff; animation: bk-pop 420ms var(--ease-out) both; }
.bk-tick .bk-sign { width: 2.25rem; height: 2.25rem; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: bk-draw 380ms 180ms var(--ease-out) forwards; }
@keyframes bk-pop { from { transform: scale(0.4); opacity: 0; } }
@keyframes bk-draw { to { stroke-dashoffset: 0; } }
.bk-ref { display: grid; margin: 0.25rem 0; }
.bk-ref span { font-size: 0.75rem; font-weight: 650; color: var(--ink-2); }
.bk-ref b { font-size: 1.375rem; font-weight: 800; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; user-select: all; }
.bk-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; margin: 0; padding: 0; list-style: none; }

/* Waiting for LiteAPI: the plane crossing, as on the results. */
.bk-loading { display: grid; justify-items: center; gap: 0.75rem; padding: 3rem 0; color: var(--ink-2); }
.bk-loading p { margin: 0; font-weight: 600; }
.bk-plane { display: block; width: 8rem; height: 1.5rem; position: relative; overflow: hidden; border-bottom: 2px dotted var(--rule); }
.bk-plane svg { position: absolute; top: 0.125rem; width: 1.25rem; height: 1.25rem; fill: var(--accent); animation: bk-fly 1.4s var(--ease-out) infinite; }
@keyframes bk-fly { from { left: -1.5rem; } to { left: 8.25rem; } }
@media (prefers-reduced-motion: reduce) { .bk-plane svg { animation: none; left: 3.4rem; } .bk-tick, .bk-tick .bk-sign { animation: none; stroke-dashoffset: 0; } }

/* The bottom: what it costs now, and the one thing to do next. */
.bk-foot { padding: 0.625rem 1rem max(0.75rem, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--rule); box-shadow: 0 -6px 18px -14px rgb(34 48 60 / 0.4); }
.bk-error { margin: 0 0 0.5rem; padding: 0.5rem 0.75rem; border-radius: 10px; background: var(--bad-ground); color: var(--bad); font-size: 0.875rem; font-weight: 600; }
.bk-bar { display: flex; align-items: center; gap: 0.75rem; }
.bk-total { flex: 1; display: grid; min-width: 0; }
.bk-total b { font-size: 1.375rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; transition: opacity 160ms; }
.bk-total span { font-size: 0.75rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk.is-pricing .bk-total b { opacity: 0.4; }
.bk-go { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; min-width: 9rem; padding: 0 1.25rem; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: inherit; font-size: 1rem; font-weight: 750; cursor: pointer; }
.bk-go:disabled { opacity: 0.55; cursor: default; }
.bk-spin { width: 1rem; height: 1rem; border: 2px solid rgb(255 255 255 / 0.4); border-top-color: #fff; border-radius: 50%; animation: bk-turn 0.8s linear infinite; }
@keyframes bk-turn { to { transform: rotate(1turn); } }
/* The boarding passes on the sheet's ground stand on white, as cards. */
.bk-passes .leg { background: var(--surface); border: 1px solid var(--rule); }

/* Which flight and whose turn, at the top of the extras, for everything under it. */
.bk-pick { position: sticky; top: -0.75rem; z-index: 2; display: grid; gap: 0.5rem; margin: -0.75rem -1rem 0; padding: 0.75rem 1rem 0.5rem; background: var(--ground); }
.bk-pick .bk-tabs { margin: 0; }
.bk-pick .bk-who { margin: 0; }

/* Choices drawn as badges: a bag by its weight, a special item by its sign. */
.bk-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr)); gap: 0.5rem; }
.bk-option { display: grid; justify-items: center; gap: 0.125rem; padding: 0.5rem 0.25rem; border: 1.5px solid transparent; border-radius: 12px; background: var(--ground); color: var(--ink); font: inherit; cursor: pointer; transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out); }
.bk-option b { font-size: 0.8125rem; font-weight: 750; line-height: 1.2; }
.bk-option > span:last-child { font-size: 0.75rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bk-option.is-on { border-color: var(--accent); background: var(--tint); }
.bk-option:active { transform: scale(0.97); }

.bk-special { padding: 0; }
.bk-special summary { display: flex; align-items: center; gap: 0.4375rem; min-height: 3rem; padding: 0 0.875rem; cursor: pointer; list-style: none; font-weight: 750; }
.bk-special summary::-webkit-details-marker { display: none; }
.bk-special summary .bk-sign { color: var(--accent); }
.bk-special summary::after { content: ""; margin-left: auto; width: 0.5rem; height: 0.5rem; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translateY(-2px); transition: transform 160ms var(--ease-out); }
.bk-special[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.bk-special .bk-options { padding: 0 0.875rem 0.875rem; }

/* A date: a button that opens the square calendar. */
.bk-row.is-one { grid-template-columns: 1fr; }
.bk-date { margin-top: 0.5rem; }
.bk-date-button { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; width: 100%; min-height: 2.875rem; padding: 0.5rem 0.625rem; border: 1px solid var(--control-border); border-radius: 10px; background: var(--control); color: var(--ink); font: inherit; font-size: 1rem; text-align: left; cursor: pointer; }
.bk-date-button.is-empty span { color: var(--ink-2); }
.bk-date-button .bk-sign { color: var(--accent); }

/* The square calendar: years, then months, then days, on a card over the sheet. */
.bk-cal { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 1rem; background: rgb(34 48 60 / 0.35); animation: enter 200ms var(--ease-out) both; }
.bk-cal-panel { width: min(100%, 22rem); padding: 0.75rem; border-radius: 20px; background: var(--surface); box-shadow: 0 18px 40px -12px rgb(34 48 60 / 0.45); }
.bk-cal-head { display: grid; grid-template-columns: 2.75rem 1fr 2.75rem 2.75rem; align-items: center; margin-bottom: 0.5rem; }
.bk-cal-head .bk-icon:disabled { opacity: 0.25; cursor: default; }
.bk-cal-title { min-height: 2.75rem; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 1.0625rem; font-weight: 800; cursor: pointer; }
.bk-cal-title:not(:disabled) { color: var(--accent); }
.bk-cal-title:disabled { cursor: default; }
.bk-cal-grid { display: grid; gap: 0.375rem; }
.bk-cal-grid.is-years, .bk-cal-grid.is-months { grid-template-columns: repeat(3, 1fr); }
.bk-cal-grid.is-days { grid-template-columns: repeat(7, 1fr); gap: 0.25rem; }
.bk-cal-cell { display: grid; place-items: center; min-height: 2.75rem; padding: 0; border: 0; border-radius: 10px; background: var(--ground); color: var(--ink); font: inherit; font-size: 1rem; font-weight: 650; font-variant-numeric: tabular-nums; cursor: pointer; }
.bk-cal-grid.is-days .bk-cal-cell { aspect-ratio: 1; min-height: 0; border-radius: 50%; background: none; }
.bk-cal-cell.is-on { background: var(--accent); color: var(--on-accent); }
.bk-cal-cell:active { background: var(--tint); }
.bk-cal-week { display: grid; place-items: center; height: 1.5rem; font-size: 0.75rem; font-weight: 700; color: var(--ink-2); }

/* Typing on a phone: the foot steps aside so the keyboard leaves room for the fields. */
@media (pointer: coarse) { .bk.is-typing .bk-foot { display: none; } }
/* A passport number is written in capitals, as in the passport. */
.bk-person .bk-more input { text-transform: uppercase; }
