/* The Heft planner builder: what heft.ink's stylesheet (site.css, a pinned copy loaded first) has no part for.
   The tokens are site.css's. The builder's own accent is ink; the four Hefte's colours only mark where a
   section comes from. Every target is at least 44 px; site.css turns off motion for prefers-reduced-motion. */

html.builder { --cover: #191919; --on: #F7F6F2; --accent: #191919; --tint: #EFEEE9; }

/* Without the script the builder cannot work; the notice says so and nothing pretends otherwise. */
html:not(.js) #pages-dialog, html:not(.js) .b-card-actions, html:not(.js) .b-build, html:not(.js) .b-order-wrap { display: none !important; }

/* Header */
.b-brand { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.b-brand-sub { font-family: var(--sans); font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); }
.b-signout { margin: 0; }
/* EN | DE: the interface's language, heft.ink's price switch in look, after the links at the header's right edge (the
   owner's choice of 2026-10-31); links and switch keep together, right-aligned, when the row wraps. */
.b-header-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 28px; margin-left: auto; }
@media (max-width: 700px) { .b-header-end { column-gap: 18px; } }
.b-lang { margin: 0; }
.b-lang .currency-btn { min-width: 44px; min-height: 44px; }
/* Every link in the header and footer is a 44 px target, like the builder's own controls. */
.b-brand { min-height: 44px; align-content: center; }
.site-header .nav a, .footer-nav a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }

/* Hero */
.b-hero { padding-block: 56px 48px; border-bottom: 1px solid var(--line); }
.b-display { margin-top: 14px; font-size: clamp(48px, 6.4vw, 96px); }
.b-lede { margin-top: 24px; max-width: 640px; }
.b-quota { margin-top: 20px; font-size: 15px; color: var(--mid); }
.b-quota:empty { display: none; }
.b-notice { margin-top: 20px; padding: 14px 18px; border-left: 3px solid var(--ink); background: var(--white); font-size: 16px; line-height: 1.5; }
.b-notice a { font-weight: 600; }

/* Chapters */
.b-chapter { padding-block: 88px; }
.b-counter { margin-top: 18px; font-weight: 600; }

/* The calendar every planner has */
.b-calendar { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; margin-top: 48px; padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: var(--tray); }
.b-calendar-text { flex: 1 1 320px; min-width: 0; }
.b-calendar-text .h3 { margin-top: 6px; }
.b-calendar-text .btn-outline { margin-top: 18px; }
.b-calendar-pages { flex: 1 1 360px; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.b-calendar-pages .b-thumb { border-bottom: 1px solid rgba(25, 25, 25, 0.14); }

/* Groups of tab cards */
.b-group { margin-top: 64px; }
.b-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.b-group-note { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--mid); }
.b-group-note .sw { width: 12px; height: 16px; }
.b-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; margin-top: 20px; }
.b-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--white); overflow: hidden; }
.b-card.is-added { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
/* The card's picture is the top of a real page; it opens the tab's pages. */
.b-card-pages { display: block; width: 100%; padding: 18px 18px 0; border: 0; background: var(--tray); cursor: zoom-in; }
.b-card-pages:hover .b-thumb { box-shadow: 0 10px 24px rgba(25, 25, 25, 0.12); }
.b-thumb { display: block; width: 100%; height: auto; aspect-ratio: 1024 / 1366; border: 1px solid rgba(25, 25, 25, 0.14); background: var(--white); }
.b-card-pages .b-thumb { aspect-ratio: 1024 / 860; object-fit: cover; object-position: top; border-bottom: 0; }
.b-thumb-missing { background: linear-gradient(var(--white), var(--white)) padding-box; }
.b-card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 18px 20px 20px; }
.b-card-name { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.1; }
.b-card-line { margin-top: 6px; font-size: 16px; line-height: 1.45; }
.b-card-detail { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--mid); }
.b-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: auto; padding-top: 16px; }
.b-see { min-height: 44px; padding: 0; border: 0; background: none; font-size: 15px; cursor: pointer; }
/* heft.ink draws .link-under on links only; the builder also has buttons that read as links. */
button.link-under { border: 0; background: none; color: var(--ink); cursor: pointer; }

/* Add: a checkbox drawn as a pill button */
.b-add { position: relative; display: inline-flex; }
.b-add input, .b-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.b-add input:focus-visible, .b-option input:focus-visible { outline: none; }
.b-add-face { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 104px; min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 999px; background: var(--white); font-size: 15px; font-weight: 600; }
.b-add-face::before { content: "+"; font-size: 19px; font-weight: 400; line-height: 1; }
.b-add:hover .b-add-face { background: var(--tray); }
.b-add input:checked + .b-add-face { background: var(--ink); color: var(--paper); }
.b-add input:checked + .b-add-face::before { content: "✓"; font-size: 15px; }
.b-add-on, .b-add input:checked + .b-add-face .b-add-off { display: none; }
.b-add input:checked + .b-add-face .b-add-on { display: inline; }
/* Eight sections fill a planner: the other Add buttons fade, and say why when pressed. */
.b-card.is-full .b-add-face { opacity: 0.45; }
.b-add input:focus-visible + .b-add-face, .b-option input:focus-visible + .b-option-face { outline: 3px solid var(--ink); outline-offset: 3px; }

/* A companion: two sections whose sheets open each other */
.b-pair { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--tray); font-size: 14px; line-height: 1.45; }
.b-pair-add { display: flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* Without the release's page previews (a development server), there are no pages to show. */
html.no-previews [data-open-tab], html.no-previews [data-open-calendar], html.no-previews .b-calendar-pages { display: none; }

/* II. Order */
.b-empty { margin-top: 32px; color: var(--mid); }
.b-order { margin-top: 32px; border-top: 1px solid var(--ink); }
.b-row { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); background: var(--tray); }
.b-row.is-dragging { position: relative; z-index: 2; border-radius: 12px; background: var(--white); box-shadow: 0 12px 28px rgba(25, 25, 25, 0.18); }
.b-order.is-sorting .b-row:not(.is-dragging) { transition: transform 0.15s ease; }
.b-handle { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; cursor: grab; touch-action: none; }
.b-handle:hover { background: rgba(25, 25, 25, 0.07); }
.b-row.is-dragging .b-handle { cursor: grabbing; }
.b-handle svg { width: 20px; height: 20px; fill: var(--mid); }
.b-pos { flex: none; min-width: 1.6ch; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--mid); font-variant-numeric: tabular-nums; }
.b-row-name { flex: 1 1 auto; min-width: 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
.b-row-from { display: block; font-size: 14px; font-weight: 400; color: var(--mid); }
.b-row-actions { flex: none; display: flex; gap: 6px; }
.b-icon-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; }
.b-icon-btn:hover { border-color: var(--ink); }
.b-icon-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.b-icon-btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.b-icon-btn[aria-disabled="true"]:hover { border-color: var(--line); }
@media (max-width: 520px) {
  .b-row { flex-wrap: wrap; row-gap: 4px; }
  .b-row-actions { flex-basis: 100%; justify-content: flex-end; }
}
.b-order-text { margin-top: 24px; }
.b-order-text:empty { display: none; }
.b-order-k { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); }
/* The footer in miniature: the tabs from left to right, as every page prints them. */
.b-strip { display: flex; flex-wrap: wrap; margin-top: 10px; border: 1px solid var(--ink); background: var(--white); }
.b-strip li { flex: 1 1 0; min-width: max-content; padding: 10px 12px; font-family: var(--serif); font-size: 19px; line-height: 1.2; text-align: center; }
.b-strip li + li { border-left: 1px solid var(--line); }
.b-order-text .note { margin-top: 12px; }

/* III. Version */
.b-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; margin-top: 48px; }
.b-choice { min-width: 0; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
/* The legend floats so it sits inside the card's border, not on it. */
.b-choice-label { float: left; width: 100%; padding: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); }
.b-choice-label + * { clear: both; }
.b-choice-note { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--mid); }
.b-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.b-option { position: relative; display: block; min-width: 0; }
.b-option-face { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.b-option:hover .b-option-face { border-color: var(--mid); }
.b-option-thumb { display: block; width: 100%; height: auto; aspect-ratio: 1024 / 1366; border: 1px solid rgba(25, 25, 25, 0.14); background: var(--white); }
.b-option-label { display: flex; align-items: center; gap: 10px; min-height: 28px; font-size: 15px; font-weight: 600; line-height: 1.25; }
.b-option-label::before { content: ""; flex: none; width: 16px; height: 16px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--white); }
.b-option input:checked + .b-option-face { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.b-option input:checked + .b-option-face .b-option-label::before { box-shadow: inset 0 0 0 3.5px var(--white); background: var(--ink); }
.b-option input:disabled { cursor: not-allowed; }
.b-option input:disabled + .b-option-face { opacity: 0.45; }
.b-option-text .b-option-face { min-height: 52px; justify-content: center; }
/* A development server without page previews shows the choices as words only. */
.b-option .b-thumb-missing { display: none; }
.b-year { font-weight: 600; color: var(--ink); }
/* Starting points: buttons that set many choices; the one the choices match is pressed. */
.b-starts { margin-top: 48px; padding: clamp(20px, 3vw, 28px); border-radius: 24px; background: var(--tray); }
.b-start-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 16px; }
.b-start { display: flex; flex-direction: column; gap: 4px; width: 100%; height: 100%; min-height: 44px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.b-start:hover { border-color: var(--mid); }
.b-start[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.b-start:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.b-start-name { font-size: 16px; font-weight: 600; }
.b-start-note { font-size: 14px; line-height: 1.4; color: var(--mid); }
/* The four groups of choices: Calendar, Pages, Paper and Look. */
.b-vgroup { margin-top: 64px; }
.b-vgroup .b-choices { margin-top: 24px; }
.b-choice[hidden] { display: none; }
/* A choice of more than three takes the group's width, its options in narrower columns. */
.b-choice-wide { grid-column: 1 / -1; }
.b-choice-wide .b-options { grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr)); }
.b-select { display: block; width: 100%; min-height: 48px; margin-top: 16px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; font-size: 16px; }
.b-select:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.b-select:disabled { opacity: 0.45; cursor: not-allowed; }
/* A long list, the holidays, opens as a panel no taller than half the window, scrolled inside; a group's name
   stays at the panel's top while its places pass (builder.js). Above the cards, below the page's bar. */
.b-picker { position: relative; margin-top: 16px; }
.b-picker .b-picker-box { display: flex; align-items: center; gap: 10px; margin-top: 0; cursor: pointer; -webkit-user-select: none; user-select: none; }
.b-picker-box:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.b-picker-box[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.b-picker-value { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-picker-box svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s ease; }
.b-picker.is-open .b-picker-box svg { transform: rotate(180deg); }
.b-picker-panel { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; right: 0; max-height: min(360px, 50vh); max-height: min(360px, 50dvh); padding-bottom: 6px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--ink); border-radius: 12px; background: var(--white); box-shadow: 0 12px 32px rgba(25, 25, 25, 0.16); }
.b-picker-panel[hidden] { display: none; }
.b-picker-head { position: sticky; top: 0; z-index: 1; padding: 12px 14px 6px; background: var(--white); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); }
.b-picker-option { display: flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 16px; line-height: 1.25; cursor: pointer; }
.b-picker-group .b-picker-option { padding-left: 26px; }
.b-picker-option:hover, .b-picker-option.is-active { background: var(--tray); }
.b-picker-option[aria-selected="true"] { font-weight: 600; box-shadow: inset 3px 0 0 var(--ink); }
.b-example { margin: 16px 0 0; }
.b-example .b-option-thumb { max-width: 220px; }
.b-example figcaption { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--mid); }
/* The ink and the type show a close-up of the month page's head, the title, labels and dates large enough to
   tell them apart; their cards are wider than a page's. */
.b-option-zoom { display: block; width: 100%; height: auto; border: 1px solid rgba(25, 25, 25, 0.14); background: var(--white); }
.b-choice-zoom .b-options { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
/* The cover's colours, inside the cover's choice: each a swatch and its name. The swatches are the compiler's
   tints (tests/test_pages.py compares them); the planner's follows the colour, the ink's the chosen ink. */
.b-swatches { min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
.b-swatch-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.b-swatch { position: relative; display: block; }
.b-swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.b-swatch input:focus-visible { outline: none; }
.b-swatch-face { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.b-swatch:hover .b-swatch-face { border-color: var(--mid); }
.b-swatch input:checked + .b-swatch-face { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.b-swatch input:focus-visible + .b-swatch-face { outline: 3px solid var(--ink); outline-offset: 3px; }
.b-swatch .b-option-label { min-height: 0; }
.b-swatch .b-option-label::before { display: none; }
.b-chip { flex: none; width: 22px; height: 22px; border: 1px solid rgba(25, 25, 25, 0.22); border-radius: 50%; background: #24343D; }
[data-ink="black"] .b-chip-ink, [data-ink="black"][data-planner-colour="ink"] .b-chip-planner { background: #1A1A1A; }
[data-ink="contrast"] .b-chip-ink, [data-ink="contrast"][data-planner-colour="ink"] .b-chip-planner { background: #111111; }
[data-ink="dark"] .b-chip-ink, [data-ink="dark"][data-planner-colour="ink"] .b-chip-planner { background: #FFFFFF; box-shadow: inset 0 0 0 6px #171717; }
.b-chip-seasons, [data-planner-colour="seasons"] .b-chip-planner { background: conic-gradient(#6A9FDA 0 25%, #58AD74 0 50%, #F8684F 0 75%, #F29B38 0); }
.b-chip-winter { background: #6A9FDA; }
.b-chip-spring { background: #58AD74; }
.b-chip-summer { background: #F8684F; }
.b-chip-autumn { background: #F29B38; }
.b-chip-blue { background: #7697C6; }
.b-chip-forest { background: #6FA086; }
.b-chip-terracotta { background: #D1826F; }
.b-chip-plum { background: #AA8BB5; }
.b-chip-ochre { background: #B79144; }
.b-chip-teal { background: #5EA2A2; }
.b-chip-rose { background: #C98098; }
.b-chip-olive { background: #889E47; }
/* Part by part: each part's papers as cards showing the part's page, the part named over them, as wide as the
   paper's own cards; on a phone narrower, two to a row even at 320 px. */
.b-parts { display: grid; gap: 24px; margin-top: 16px; }
.b-part { min-width: 0; margin: 0; padding: 0; border: 0; }
.b-part-label { float: left; width: 100%; padding: 0; font-size: 15px; font-weight: 600; }
.b-part-label + * { clear: both; }
.b-part .b-options { margin-top: 10px; }
@media (max-width: 520px) {
  .b-part .b-options { grid-template-columns: repeat(auto-fill, minmax(min(100%, 104px), 1fr)); }
}
/* A choice another leaves nothing to do says so; its controls are disabled, so they fade. */
.b-choice-off { margin-top: 8px; font-size: 14px; font-weight: 600; }

/* IV. Build */
.b-build { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; margin-top: 48px; }
.b-summary, .b-progress, .b-result { flex: 1 1 520px; min-width: 0; padding: clamp(22px, 3vw, 36px); border-radius: 24px; background: var(--white); }
.b-facts { border-top: 1px solid var(--ink); }
.b-facts div { display: flex; flex-wrap: wrap; gap: 2px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.b-facts dt { flex: 0 0 110px; color: var(--mid); }
.b-facts dd { flex: 1 1 260px; min-width: 0; margin: 0; }
.b-pages-n { font-family: var(--serif); font-size: 30px; line-height: 1; }
.b-issues li { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--ink); background: var(--tray); font-size: 15px; line-height: 1.5; }
.b-issues li.is-warning { border-left-color: var(--line); }
/* The box above the Build button, and once the first download delivered the planner, what that means (HB-027). */
.b-consent { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--ink); }
.b-consent-box { display: flex; align-items: flex-start; gap: 12px; }
.b-consent-box input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.b-consent-box label { font-size: 16px; line-height: 1.5; cursor: pointer; }
.b-consent-box input:disabled + label { cursor: default; }
.b-consent-note { margin-top: 6px; padding-left: 32px; font-size: 14px; line-height: 1.5; color: var(--mid); }
.b-consent-terms { padding-left: 32px; }
.b-consent-state { margin-bottom: 14px; padding: 12px 16px; border-left: 3px solid var(--ink); background: var(--tray); font-size: 15px; line-height: 1.5; }
.b-consent-state:last-child { margin-bottom: 0; }
.b-build-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; filter: none; }
.b-progress-title { font-family: var(--serif); font-size: 30px; line-height: 1.15; }
.b-progress progress { display: block; width: 100%; height: 10px; margin-top: 18px; border: 0; border-radius: 999px; background: var(--tray); overflow: hidden; -webkit-appearance: none; appearance: none; }
.b-progress progress::-webkit-progress-bar { background: var(--tray); }
.b-progress progress::-webkit-progress-value { border-radius: 999px; background: var(--ink); }
.b-progress progress::-moz-progress-bar { border-radius: 999px; background: var(--ink); }
.b-progress-detail { margin-top: 12px; font-size: 16px; font-variant-numeric: tabular-nums; }
.b-progress .note { margin-top: 14px; }
.b-progress .btn-outline { margin-top: 20px; }
/* The script moves the focus to these panels; they are not controls, so they draw no ring. */
.b-progress:focus, .b-result:focus { outline: none; }
.b-result-meta { margin-top: 8px; color: var(--mid); }
.b-result-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; margin-top: 24px; }
.b-result-pages button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.b-result-pages img { display: block; width: 100%; height: auto; aspect-ratio: 1024 / 1366; border: 1px solid var(--line); background: var(--white); }
.b-result-pages span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--mid); }
.b-history { margin-top: 64px; }
.b-history .note { margin-top: 6px; }
.b-history-list { margin-top: 18px; border-top: 1px solid var(--ink); }
.b-history-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.b-history-what { flex: 1 1 320px; min-width: 0; }
.b-history-what strong { display: block; }
.b-history-what span { font-size: 14px; color: var(--mid); }
.b-history-state { font-size: 14px; color: var(--mid); }

/* Start page */
.b-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 56px; }
.b-steps li { padding: 24px 26px; border-radius: 18px; background: var(--white); }
.b-steps li p + p { margin-top: 6px; color: var(--mid); }

/* Sign in */
.b-signin { padding-block: 72px 120px; }
.b-signin-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 80px; }
.b-signin-text { flex: 1 1 340px; min-width: 0; }
.b-signin-text .h2 { margin-top: 12px; }
.b-signin-text .lede { margin-top: 20px; }
.b-form { flex: 1 1 380px; min-width: 0; max-width: 540px; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.b-form .b-notice { margin: 0 0 22px; }
.b-field + .b-field { margin-top: 22px; }
.b-field label { display: block; font-size: 16px; font-weight: 600; }
.b-field input { display: block; width: 100%; min-height: 52px; margin-top: 8px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; font-size: 17px; }
.b-key { display: flex; align-items: flex-end; gap: 8px; }
.b-key input { flex: 1 1 auto; min-width: 0; }
.b-show { flex: none; min-height: 52px; }
.b-help { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--mid); }
.b-form .btn-block { margin-top: 28px; }
.b-form .btn-block + .b-help { margin-top: 16px; }

/* The withdrawal button (HB-030): § 13a FAGG wants its link highlighted, so it is the only underlined link in every
   footer, in their weight (not bold since the owner's review of 2026-10-31); the form and what arrived wear the
   sign-in's layout. */
.footer-nav .b-withdraw-link { text-decoration: underline; text-underline-offset: 3px; }
.b-field textarea { display: block; width: 100%; min-height: 96px; margin-top: 8px; padding: 12px 16px; border: 1px solid var(--ink); border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; font-size: 17px; line-height: 1.45; resize: vertical; }
.b-contract { min-width: 0; margin: 0; padding: 0; border: 0; }
.b-contract legend { padding: 0; font-size: 16px; font-weight: 600; }
.b-contract .b-radio { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; font-weight: 400; line-height: 1.4; cursor: pointer; }
.b-contract .b-radio:hover { border-color: var(--mid); }
.b-contract .b-radio:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.b-contract .b-radio input { flex: none; width: 18px; height: 18px; min-height: 0; margin: 1px 0 0; padding: 0; border: 0; accent-color: var(--ink); }
.b-receipt-title { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); }
.b-receipt .b-facts { margin-top: 10px; }
.b-receipt .b-facts dt { flex-basis: 150px; }
.b-receipt .b-facts dd { white-space: pre-line; overflow-wrap: anywhere; }
.b-receipt .b-help { margin-top: 18px; }
