/* =============================================================================
   KOTOVA BOOKS · demo.css — the "Book a demo" page (kotova.io/books/demo)
   -----------------------------------------------------------------------------
   Load AFTER /styles.css and /books/books.css. Every class is prefixed bkd-;
   nothing here styles bare elements, body or :root, and the page tokens are
   the site's (--color-*, --spacing-*, --radius-*) and books.css's (--bk-*).
   Dark theme only, like the rest of kotova.io; color-scheme: dark keeps the
   native controls (selects, their pop-ups, the textarea) dark as well.

   Layout
     >1024px  two columns: intro (head + points) left, the booking card right
     <=1024px one column: intro head, the card, then the points and chips
     <=640px  16px side gutters, card padding 20px, the step bar compact
   The card is a size container (bkd-card). Step 2 ("Pick a time") is laid
   out for its OWN width, not the viewport's:
     card content <560px   a sideways-scrolling day strip (only days with
                           free times) above a 3-column grid of times
     card content >=560px  a month-style day grid (Mo–Su) left and the
                           selected day's times in a scrolling column right
   (The two-column desktop page leaves the card ~570px of content width, a
   tablet in portrait ~650px; phones stay on the strip.)
   No horizontal page scroll from 320px: only the day strip scrolls inside
   itself. Inputs use 16px text so iOS does not zoom on focus, and every
   control is at least 44px tall.

   Sections
     1. Page frame and intro
     2. The card, the step bar, alerts and notices
     3. Step 1: fields, contact pair, phone with country code, honeypot
     4. Step 2: zone line, day grid, day strip, times, loading, none
     5. Step 3: summary, contact lines, note, bot check, submit
     6. Done and manage: booking view, actions, copy row, cancel panel
     7. Phones
   ========================================================================== */


/* =============================================================================
   1. PAGE FRAME AND INTRO
   ========================================================================== */

.bkd {
    color-scheme: dark;
}

.bkd-hero {
    padding-bottom: var(--spacing-3xl);
}

.bkd-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "head card"
        "more card";
    gap: var(--spacing-xl) var(--spacing-3xl);
    align-items: start;
}

.bkd-intro-head {
    grid-area: head;
    min-width: 0;
}

.bkd-intro-more {
    grid-area: more;
    min-width: 0;
}

.bkd-card {
    grid-area: card;
    min-width: 0;
}

.bkd-h1 {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.bkd-intro-head .bkd-h1 + .bk-lead {
    margin-top: var(--spacing-lg);
}

/* "with David Kotov" — filled from the API's host name; hidden until then. */
.bkd-host {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    color: var(--bk-ink-2);
    font-weight: 500;
}

.bkd-host .bk-ico {
    width: 18px;
    height: 18px;
    color: var(--color-secondary);
}

.bkd-points {
    display: grid;
    gap: 14px;
    list-style: none;
}

.bkd-points li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--bk-ink-2);
    line-height: 1.55;
}

.bkd-points li > span:first-child {
    display: grid;
    place-items: center;
    flex: none;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--bk-gold-tint-2);
    color: var(--color-secondary);
}

.bkd-points .bk-ico {
    width: 14px;
    height: 14px;
}

.bkd-intro-more .bk-chips {
    margin-top: var(--spacing-xl);
}

.bkd-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1024px) {
    .bkd-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas:
            "head"
            "card"
            "more";
        gap: var(--spacing-xl);
    }

    .bkd-intro-head {
        max-width: 720px;
    }
}


/* =============================================================================
   2. THE CARD, THE STEP BAR, ALERTS AND NOTICES
   ========================================================================== */

.bkd-card {
    container: bkd-card / inline-size;
    position: relative;
    min-height: 560px;
    padding: 32px;
    border: 1px solid var(--bk-line);
    border-radius: var(--radius-xl);
    background: var(--bk-surface);
    box-shadow: var(--shadow-lg);
}

.bkd-step[hidden],
.bkd-card [hidden] {
    display: none !important;
}

/* Book flow vs. reschedule ("move"): demo.js sets .is-move on the card. */
.bkd-card:not(.is-move) .bkd-in-move,
.bkd-card.is-move .bkd-in-book {
    display: none;
}

.bkd-steps {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--spacing-xl);
    list-style: none;
    counter-reset: none;
}

.bkd-steps li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.bkd-steps li + li::before {
    content: "";
    flex: none;
    width: 20px;
    height: 1px;
    margin-right: 2px;
    background: var(--bk-line-strong);
}

.bkd-step-n {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--bk-line-strong);
    font-family: var(--bk-figures);
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.bkd-steps li[aria-current="step"] {
    color: var(--color-text-primary);
}

.bkd-steps li[aria-current="step"] .bkd-step-n {
    border-color: transparent;
    background: var(--gradient-primary);
    color: var(--color-background);
}

.bkd-steps li.is-done .bkd-step-n {
    border-color: var(--bk-gold-line);
    color: var(--color-secondary);
}

.bkd-step-head {
    margin-bottom: var(--spacing-lg);
}

.bkd-h {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text-primary);
    text-wrap: balance;
}

.bkd-h:focus {
    outline: none;
}

.bkd-h:focus-visible {
    outline: 2px solid rgba(197, 165, 114, 0.6);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Text button "← Edit details" / "← Choose another time". */
.bkd-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin: -10px 0 4px -6px;
    padding: 0 6px;
    border: 0;
    border-radius: var(--radius-md);
    background: none;
    color: var(--color-secondary);
    font: 600 0.9rem/1.2 var(--font-primary);
    cursor: pointer;
}

.bkd-back .bk-ico {
    width: 16px;
    height: 16px;
}

.bkd-back:hover {
    background: var(--bk-gold-tint);
}

.bkd-back:focus-visible,
.bkd-linkbtn:focus-visible,
.bkd-card .btn:focus-visible {
    outline: 2px solid rgba(197, 165, 114, 0.7);
    outline-offset: 3px;
}

/* A plain text button that looks like a link ("Edit", "Change"). */
.bkd-linkbtn {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 4px;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--color-secondary);
    font: 600 0.875rem/1.2 var(--font-primary);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(197, 165, 114, 0.4);
    text-underline-offset: 3px;
}

.bkd-linkbtn:hover {
    text-decoration-color: currentColor;
}

/* The error line of the card (role=alert). */
.bkd-alert {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin-bottom: var(--spacing-lg);
    padding: 12px 14px;
    border: 1px solid rgba(255, 107, 120, 0.4);
    border-radius: var(--radius-lg);
    background: rgba(255, 107, 120, 0.08);
    color: #FFC2C8;
    font-size: 0.925rem;
    line-height: 1.5;
}

.bkd-alert a {
    color: var(--color-secondary);
    font-weight: 600;
}

/* Booking is off / the service does not answer: a notice above step 1. */
.bkd-notice {
    margin-bottom: var(--spacing-lg);
    padding: 16px;
    border: 1px solid var(--bk-gold-line);
    border-radius: var(--radius-lg);
    background: var(--bk-gold-tint);
}

.bkd-notice p {
    color: var(--bk-ink-2);
    line-height: 1.55;
}

.bkd-notice-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

/* A short status line ("Moved to …", "Copied"). */
.bkd-status {
    margin-bottom: var(--spacing-lg);
    padding: 12px 14px;
    border: 1px solid rgba(34, 211, 173, 0.35);
    border-radius: var(--radius-lg);
    background: rgba(34, 211, 173, 0.08);
    color: #A7F3E2;
    font-size: 0.925rem;
    line-height: 1.5;
}

.bkd-noscript {
    color: var(--bk-ink-2);
    line-height: 1.6;
}

.bkd-noscript a {
    color: var(--color-secondary);
}


/* =============================================================================
   3. STEP 1: FIELDS
   ========================================================================== */

.bkd-form {
    display: grid;
    gap: 20px;
}

.bkd-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.bkd-label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--color-text-primary);
    font-size: 0.925rem;
    font-weight: 600;
    line-height: 1.3;
}

.bkd-opt {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

.bkd-input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--bk-line-strong);
    border-radius: var(--radius-lg);
    background: var(--color-background);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: 16px;              /* < 16px makes iOS zoom in on focus */
    line-height: 1.4;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.bkd-input::placeholder {
    color: var(--color-text-muted);
}

.bkd-input:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(197, 165, 114, 0.18);
}

.bkd-input[aria-invalid="true"] {
    border-color: rgba(255, 107, 120, 0.8);
}

textarea.bkd-input {
    min-height: 96px;
    resize: vertical;
}

.bkd-err {
    color: #FF9AA4;
    font-size: 0.85rem;
    line-height: 1.4;
}

.bkd-hint {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    line-height: 1.45;
}

/* E-mail "or" Telegram: one group with a divider. */
.bkd-pair {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--bk-line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.015);
}

.bkd-or {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bkd-or::before,
.bkd-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--bk-line);
}

/* "@" in front of the Telegram name. */
.bkd-adorn {
    position: relative;
}

.bkd-adorn > span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 14px;
    display: flex;
    align-items: center;
    color: var(--color-text-secondary);
    font-size: 16px;
    pointer-events: none;
}

.bkd-adorn .bkd-input {
    padding-left: 32px;
}

/* Phone: the country chip ("🇩🇪 +49 ▾", a transparent native select over it)
   and the number. */
.bkd-phone {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 8px;
}

.bkd-cc {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 48px;
    padding: 0 10px 0 12px;
    border: 1px solid var(--bk-line-strong);
    border-radius: var(--radius-lg);
    background: var(--color-background);
    color: var(--color-text-primary);
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.bkd-cc:focus-within {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(197, 165, 114, 0.18);
}

.bkd-cc-face {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    font-variant-numeric: tabular-nums;
}

.bkd-cc-flag {
    font-size: 18px;
    line-height: 1;
}

.bkd-cc-iso {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
}

.bkd-cc .bk-ico {
    width: 16px;
    height: 16px;
    color: var(--color-text-secondary);
}

.bkd-cc select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    font-size: 16px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.bkd-card select option {
    background: var(--color-background);
    color: var(--color-text-primary);
}

/* Honeypot: off-screen (not display:none, which some bots skip). */
.bkd-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.bkd-submit {
    width: 100%;
    min-height: 52px;
}

.bkd-privacy {
    color: var(--color-text-secondary);
    font-size: 0.825rem;
    line-height: 1.5;
}

.bkd-privacy a {
    color: var(--color-secondary);
}

/* Busy buttons: the label pair swaps, a spinner shows. */
.bkd-busy-label,
.bkd-spin {
    display: none;
}

[aria-busy="true"] > .bkd-idle-label {
    display: none;
}

[aria-busy="true"] > .bkd-busy-label {
    display: inline;
}

[aria-busy="true"] > .bkd-spin {
    display: inline-block;
}

.bkd-spin {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: bkd-spin 0.8s linear infinite;
}

@keyframes bkd-spin {
    to { transform: rotate(360deg); }
}

.bkd-card .btn[disabled],
.bkd-card .btn[aria-busy="true"] {
    cursor: progress;
    opacity: 0.75;
    transform: none;
    box-shadow: none;
}


/* =============================================================================
   4. STEP 2: TIME
   ========================================================================== */

.bkd-zone {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 6px;
    margin-top: 8px;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.bkd-zone b {
    color: var(--bk-ink-2);
    font-weight: 600;
}

/* "Change": a transparent zone select over the link text. */
.bkd-zone-change {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 4px;
    border-radius: var(--radius-sm);
    color: var(--color-secondary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(197, 165, 114, 0.4);
    text-underline-offset: 3px;
}

.bkd-zone-change:focus-within {
    outline: 2px solid rgba(197, 165, 114, 0.7);
    outline-offset: 2px;
}

.bkd-zone-change select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    font-size: 16px;
    cursor: pointer;
}

/* Default (narrow card): strip on top, times in three columns. */
.bkd-picker {
    display: grid;
    gap: var(--spacing-lg);
    min-width: 0;
}

.bkd-cal {
    display: none;
}

.bkd-strip {
    display: flex;
    gap: 8px;
    margin: 0 -4px;
    padding: 4px 4px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.bkd-chip {
    flex: none;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    width: 64px;
    height: 64px;
    border: 1px solid var(--bk-line-strong);
    border-radius: var(--radius-lg);
    background: var(--bk-surface-2);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    line-height: 1.1;
    cursor: pointer;
    scroll-snap-align: start;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.bkd-chip-wd {
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bkd-chip-d {
    font-family: var(--bk-figures);
    font-size: 1.3rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}


.bkd-chip[aria-pressed="true"] {
    border-color: transparent;
    background: var(--gradient-primary);
    color: var(--color-background);
}

.bkd-chip[aria-pressed="true"] .bkd-chip-wd {
    color: rgba(10, 15, 28, 0.75);
}

.bkd-times {
    min-width: 0;
}

.bkd-day-h {
    margin-bottom: 12px;
    color: var(--color-text-primary);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}

.bkd-slots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.bkd-slot {
    min-height: 44px;
    padding: 0 8px;
    border: 1px solid var(--bk-line-strong);
    border-radius: var(--radius-md);
    background: var(--bk-surface-2);
    color: var(--color-text-primary);
    font-family: var(--bk-figures);
    font-size: 1rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}


.bkd-slot[aria-pressed="true"] {
    border-color: transparent;
    background: var(--gradient-primary);
    color: var(--color-background);
}

.bkd-chip:focus-visible,
.bkd-day:focus-visible,
.bkd-slot:focus-visible {
    outline: 2px solid rgba(197, 165, 114, 0.8);
    outline-offset: 2px;
}

/* The month-style grid (wide card only). */
.bkd-cal-h {
    margin-bottom: 10px;
    color: var(--color-text-primary);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

.bkd-cal-wd,
.bkd-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 40px);
    gap: 6px;
}

.bkd-cal-wd {
    margin-bottom: 6px;
}

.bkd-cal-wd span {
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.bkd-day {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--bk-line-strong);
    border-radius: 10px;
    background: var(--bk-surface-2);
    color: var(--color-text-primary);
    font-family: var(--bk-figures);
    font-size: 0.95rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}


.bkd-day[disabled] {
    border-color: transparent;
    background: transparent;
    color: var(--color-text-muted);
    font-weight: 500;
    cursor: default;
}

.bkd-day.is-today {
    box-shadow: inset 0 0 0 1px var(--color-secondary);
}

.bkd-day[aria-pressed="true"] {
    border-color: transparent;
    background: var(--gradient-primary);
    color: var(--color-background);
    box-shadow: none;
}

.bkd-day-gap {
    width: 40px;
    height: 40px;
}

/* Loading skeleton. */
.bkd-skel {
    display: grid;
    gap: 10px;
}

.bkd-skel i {
    display: block;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, var(--bk-surface-2) 0%, var(--bk-surface-3) 50%, var(--bk-surface-2) 100%);
    background-size: 200% 100%;
    animation: bkd-shimmer 1.2s ease-in-out infinite;
}

.bkd-skel i:first-child {
    height: 64px;
}

@keyframes bkd-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.bkd-none {
    padding: 20px;
    border: 1px dashed var(--bk-line-strong);
    border-radius: var(--radius-lg);
    color: var(--bk-ink-2);
    line-height: 1.55;
}

.bkd-none a {
    display: inline-block;
    margin-top: 10px;
    color: var(--color-secondary);
    font-weight: 600;
}

/* Hover only where there is a pointer: on touch screens a tapped chip or
   time would otherwise keep its hover border after the tap. */
@media (hover: hover) {
    .bkd-chip:hover,
    .bkd-day:hover:not([disabled]) {
        border-color: var(--bk-gold-line);
    }

    .bkd-slot:hover:not([aria-pressed="true"]) {
        border-color: var(--color-secondary);
        color: var(--color-secondary);
    }
}

@container bkd-card (min-width: 560px) {
    .bkd-picker {
        grid-template-columns: auto minmax(0, 1fr);
        gap: var(--spacing-xl);
        align-items: start;
    }

    .bkd-cal {
        display: block;
    }

    .bkd-strip {
        display: none;
    }

    .bkd-times .bkd-slots {
        grid-template-columns: minmax(0, 1fr);
        /* 7½ rows (pitch 44 + 8 px): the 8th time peeks out, so a day's afternoon is visibly there to scroll to —
           at 360 px the list ended exactly on a button edge (10:00–13:00) and an overlay scrollbar showed nothing. */
        max-height: 386px;
        overflow-y: auto;
        padding-right: 4px;
        scrollbar-width: thin;
        overscroll-behavior: contain;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bkd-skel i,
    .bkd-spin {
        animation: none;
    }
}


/* =============================================================================
   5. STEP 3: CONFIRM
   ========================================================================== */

.bkd-summary {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--bk-gold-line);
    border-radius: var(--radius-lg);
    background: var(--bk-gold-tint);
}

.bkd-when {
    color: var(--color-text-primary);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
}

.bkd-zone-line,
.bkd-meta {
    color: var(--bk-ink-2);
    font-size: 0.9rem;
    line-height: 1.45;
}

.bkd-lines {
    display: grid;
    margin-top: var(--spacing-lg);
    list-style: none;
    border-top: 1px solid var(--bk-line);
}

.bkd-lines li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 6px 0;
    border-bottom: 1px solid var(--bk-line);
    color: var(--bk-ink-2);
}

.bkd-lines li > .bk-ico {
    width: 18px;
    height: 18px;
    color: var(--color-text-secondary);
}

.bkd-lines li > span {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.bkd-confirm-form {
    display: grid;
    gap: 20px;
    margin-top: var(--spacing-lg);
}

.bkd-bot {
    min-height: 65px;
}


/* =============================================================================
   6. DONE AND MANAGE
   ========================================================================== */

.bkd-done-ico {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: var(--spacing-md);
    border-radius: 50%;
    background: rgba(34, 211, 173, 0.14);
    color: var(--bk-pos);
}

.bkd-done-ico .bk-ico {
    width: 26px;
    height: 26px;
}

.bkd-view .bkd-summary {
    margin-top: var(--spacing-lg);
}

.bkd-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--spacing-lg);
}

.bkd-acts .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
}

.bkd-acts .btn-primary {
    flex: 1 1 100%;
}

.bkd-pending {
    flex: 1 1 100%;
    color: var(--bk-ink-2);
    font-size: 0.925rem;
    line-height: 1.5;
}

.bkd-say {
    margin-top: var(--spacing-lg);
    color: var(--bk-ink-2);
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: normal;
}

.bkd-keep {
    display: grid;
    gap: 8px;
    margin-top: var(--spacing-lg);
}

.bkd-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.bkd-copy .bkd-input {
    font-size: 0.9rem;
    color: var(--bk-ink-2);
}

.bkd-copy .btn {
    padding: 0 18px;
    min-height: 48px;
    font-size: 0.9rem;
}

.bkd-if-done {
    display: none;
}

.is-copied > .bkd-if-idle {
    display: none;
}

.is-copied > .bkd-if-done {
    display: inline;
}

.bkd-cancel-panel {
    display: grid;
    gap: 14px;
    margin-top: var(--spacing-lg);
    padding: 18px;
    border: 1px solid rgba(255, 107, 120, 0.35);
    border-radius: var(--radius-lg);
    background: rgba(255, 107, 120, 0.05);
}

.bkd-cancel-q {
    color: var(--color-text-primary);
    font-weight: 600;
    line-height: 1.45;
}

.bkd-danger {
    background: #E5484D;
    color: #FFFFFF;
}

.bkd-danger:hover {
    background: #F2555A;
    transform: translateY(-1px);
}

.bkd-new {
    margin-top: var(--spacing-lg);
}


/* =============================================================================
   7. PHONES
   ========================================================================== */

@media (max-width: 640px) {
    .bkd .container {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }

    .bkd-card {
        min-height: 0;
        padding: 20px;
    }

    .bkd-steps {
        margin-bottom: var(--spacing-lg);
    }

    /* Compact step bar: every number, only the current step's label. */
    .bkd-steps li:not([aria-current="step"]) .bkd-step-label {
        display: none;
    }

    .bkd-steps li + li::before {
        width: 14px;
    }

    .bkd-h {
        font-size: 1.3rem;
    }

    .bkd-pair {
        padding: 14px;
    }

    .bkd-phone {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .bkd-acts .btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 360px) {
    .bkd-card {
        padding: 16px;
    }

    .bkd-pair {
        padding: 12px;
    }

    /* 112 px and tighter insides: at 100 px the chip cut its own dial code („🇩🇪 +4“) on a 320 px phone. */
    .bkd-phone {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .bkd-cc {
        gap: 4px;
        padding: 0 8px 0 10px;
    }

    .bkd-cc-face {
        gap: 5px;
    }

    .bkd-slots {
        gap: 6px;
    }

    .bkd-copy {
        grid-template-columns: minmax(0, 1fr);
    }
}
