/* ==========================================================================
   Home-studio booking — /book, /book/manage/:token, /admin/bookings
   Same ink as style.css: ivory paper, charcoal, bronze; Cormorant + Outfit.
   ========================================================================== */

:root {
    --bk-line: rgba(26, 26, 26, 0.1);
    --bk-line-strong: rgba(26, 26, 26, 0.22);
    --bk-paper: #FFFDF8;
    --bk-card: #FFFFFF;
    --bk-danger: #A93226;
    --bk-ok: #4E6B3A;
    --bk-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Components set display (flex/grid), which would beat the [hidden] attribute. */
.bk-page [hidden], .ab-page [hidden], .ab-sheet [hidden] { display: none !important; }

.bk-page {
    background:
        radial-gradient(120% 60% at 100% 0%, rgba(196, 163, 90, 0.10), transparent 60%),
        radial-gradient(90% 50% at 0% 30%, rgba(243, 236, 224, 0.9), transparent 70%),
        var(--bk-paper);
    min-height: 100vh;
    padding: 104px 0 5rem;
}
.bk-wrap { max-width: 640px; margin: 0 auto; padding: 0 1.25rem; }

/* --- Hero ---------------------------------------------------------------- */
.bk-hero { padding: 1.5rem 0 2.25rem; animation: bk-rise 0.9s var(--bk-ease) both; }
.bk-kicker {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze);
}
.bk-kicker::before { content: ''; width: 32px; height: 1px; background: var(--bronze); }
.bk-hero h1 {
    font-family: var(--font-heading); font-weight: 300; font-size: 2.9rem; line-height: 1.05;
    letter-spacing: -0.02em; margin: 0.9rem 0 0.8rem;
}
.bk-hero h1 em { font-style: italic; color: var(--bronze); }
.bk-hero p { color: var(--charcoal-soft); font-weight: 300; font-size: 1rem; max-width: 30em; }
.bk-area { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1rem; font-size: 0.85rem; color: var(--charcoal-mid); }
.bk-area svg { width: 14px; height: 14px; flex: none; }

/* --- Stepper: numbered steps on a hairline thread ------------------------- */
.bk-steps { position: relative; list-style: none; }
.bk-steps::before {
    content: ''; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 1px;
    background: linear-gradient(var(--bronze-light), var(--bk-line) 70%);
}
.bk-step { position: relative; padding-left: 52px; margin-bottom: 0.5rem; animation: bk-rise 0.8s var(--bk-ease) both; }
.bk-step:nth-child(2) { animation-delay: 0.06s; }
.bk-step:nth-child(3) { animation-delay: 0.12s; }
.bk-num {
    position: absolute; left: 0; top: 0; width: 35px; height: 35px; border-radius: 50%;
    display: grid; place-items: center; background: var(--bk-paper); border: 1px solid var(--bk-line-strong);
    font-family: var(--font-heading); font-style: italic; font-size: 1.15rem; color: var(--charcoal-soft);
    transition: all 0.4s var(--bk-ease);
}
.bk-step.is-open .bk-num { background: var(--charcoal); border-color: var(--charcoal); color: var(--bk-paper); }
.bk-step.is-done .bk-num { border-color: var(--bronze); color: var(--bronze); }
.bk-step-head { display: flex; align-items: baseline; gap: 0.75rem; min-height: 35px; padding-top: 4px; }
.bk-step-head h2 {
    font-family: var(--font-heading); font-weight: 400; font-size: 1.45rem; line-height: 1.2; color: var(--charcoal);
}
.bk-step:not(.is-open):not(.is-done) .bk-step-head h2 { color: var(--charcoal-soft); }
.bk-step-summary { flex: 1; min-width: 0; font-size: 0.85rem; color: var(--charcoal-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-step.is-open .bk-step-summary { display: none; }
.bk-change {
    background: none; border: 0; padding: 0.35rem 0; font: inherit; font-size: 0.72rem; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--bronze); cursor: pointer; flex: none;
}
.bk-step:not(.is-done) .bk-change, .bk-step.is-open .bk-change { display: none; }
.bk-step-body { display: none; padding: 1rem 0 1.75rem; }
.bk-step.is-open .bk-step-body { display: block; animation: bk-fade 0.5s var(--bk-ease) both; }

/* --- Services ------------------------------------------------------------ */
.bk-cat {
    font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--charcoal-soft); margin: 1.25rem 0 0.6rem;
}
.bk-cat:first-child { margin-top: 0; }
.bk-services { display: grid; gap: 0.5rem; }
.bk-service {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.25rem 1rem; width: 100%;
    text-align: left; padding: 0.95rem 1.1rem; background: var(--bk-card); border: 1px solid var(--bk-line);
    font: inherit; color: inherit; cursor: pointer; transition: border-color 0.3s, background 0.3s, transform 0.3s var(--bk-ease);
    -webkit-tap-highlight-color: transparent;
}
.bk-service:hover { border-color: var(--bronze-light); }
.bk-service:active { transform: scale(0.99); }
.bk-service-name { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 500; line-height: 1.2; }
.bk-service-meta { grid-column: 1; font-size: 0.78rem; color: var(--charcoal-soft); letter-spacing: 0.04em; }
.bk-service-price { grid-row: 1 / span 2; grid-column: 2; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 500; }
.bk-service.is-selected { background: var(--charcoal); border-color: var(--charcoal); color: var(--bk-paper); }
.bk-service.is-selected .bk-service-meta { color: rgba(255, 253, 248, 0.6); }
.bk-service.is-selected .bk-service-price { color: var(--bronze-glow); }

/* --- Day strip ----------------------------------------------------------- */
.bk-month {
    display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.6rem;
    font-family: var(--font-heading); font-size: 1.15rem; font-style: italic;
}
.bk-month small { font-family: var(--font-body); font-style: normal; font-size: 0.75rem; color: var(--charcoal-soft); }
.bk-days {
    display: flex; gap: 0.4rem; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 0.75rem;
    margin: 0 -1.25rem 0 -2px; padding-right: 1.25rem; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.bk-days::-webkit-scrollbar { display: none; }
.bk-day {
    flex: none; width: 56px; padding: 0.55rem 0 0.6rem; scroll-snap-align: start; text-align: center;
    background: var(--bk-card); border: 1px solid var(--bk-line); font: inherit; color: inherit; cursor: pointer;
    transition: all 0.3s var(--bk-ease); -webkit-tap-highlight-color: transparent;
}
.bk-day-wd { display: block; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--charcoal-soft); }
.bk-day-n { display: block; font-family: var(--font-heading); font-size: 1.65rem; line-height: 1.15; font-weight: 500; }
.bk-day-dot { display: block; width: 4px; height: 4px; margin: 0.15rem auto 0; border-radius: 50%; background: var(--bronze-light); }
.bk-day:disabled { cursor: default; background: transparent; border-color: transparent; }
.bk-day:disabled .bk-day-n { color: rgba(26, 26, 26, 0.22); }
.bk-day:disabled .bk-day-dot { visibility: hidden; }
.bk-day.is-selected { background: var(--charcoal); border-color: var(--charcoal); color: var(--bk-paper); }
.bk-day.is-selected .bk-day-wd { color: rgba(255, 253, 248, 0.6); }
.bk-day.is-selected .bk-day-dot { background: var(--bronze-glow); }

/* --- Time chips ---------------------------------------------------------- */
.bk-period { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--charcoal-soft); margin: 1.1rem 0 0.55rem; }
.bk-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
.bk-time {
    padding: 0.8rem 0.25rem; background: var(--bk-card); border: 1px solid var(--bk-line); font: inherit;
    font-size: 0.95rem; font-variant-numeric: tabular-nums; color: inherit; cursor: pointer;
    transition: all 0.25s var(--bk-ease); -webkit-tap-highlight-color: transparent;
}
.bk-time:hover { border-color: var(--bronze-light); }
.bk-time.is-selected { background: var(--charcoal); border-color: var(--charcoal); color: var(--bk-paper); }
.bk-empty { padding: 1.5rem 1.25rem; border: 1px dashed var(--bk-line-strong); color: var(--charcoal-soft); font-size: 0.92rem; text-align: center; }
.bk-empty a { color: var(--bronze); }

/* --- Forms --------------------------------------------------------------- */
.bk-field { margin-bottom: 1rem; }
.bk-field label { display: block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--charcoal-mid); margin-bottom: 0.45rem; }
.bk-field label span { text-transform: none; letter-spacing: 0; font-weight: 300; color: var(--charcoal-soft); }
.bk-input, .bk-field input, .bk-field select, .bk-field textarea {
    width: 100%; padding: 0.85rem 0.95rem; font-family: var(--font-body); font-size: 16px; color: var(--charcoal);
    background: var(--bk-card); border: 1px solid var(--bk-line-strong); border-radius: 0; -webkit-appearance: none; appearance: none;
    transition: border-color 0.3s;
}
.bk-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' fill='none' stroke-width='1.4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.95rem center; padding-right: 2.4rem;
}
.bk-field textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.bk-field input:focus, .bk-field select:focus, .bk-field textarea:focus { outline: none; border-color: var(--bronze); }
.bk-code {
    letter-spacing: 0.6em; font-size: 1.5rem !important; text-align: center; font-variant-numeric: tabular-nums;
    padding-left: 1.3rem !important;
}
.bk-row { display: flex; gap: 0.6rem; align-items: flex-end; }
.bk-row > * { flex: 1; min-width: 0; }
.bk-hint { font-size: 0.8rem; color: var(--charcoal-soft); margin-top: 0.4rem; line-height: 1.5; }
.bk-hint button { background: none; border: 0; padding: 0; font: inherit; color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bk-error { color: var(--bk-danger); font-size: 0.88rem; line-height: 1.5; margin: 0.25rem 0 0.75rem; }
.bk-error:empty { display: none; }
.bk-me {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; margin-bottom: 1rem;
    border: 1px solid var(--bk-line); background: var(--bk-card); font-size: 0.92rem;
}
.bk-me strong { font-weight: 500; }
.bk-verified { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--bk-ok); font-size: 0.8rem; }

/* --- Buttons ------------------------------------------------------------- */
.bk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%;
    padding: 1rem 1.5rem; font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em;
    text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1px solid var(--charcoal);
    background: var(--charcoal); color: var(--bk-paper); transition: all 0.35s var(--bk-ease); -webkit-tap-highlight-color: transparent;
}
.bk-btn:hover { background: var(--bronze); border-color: var(--bronze); color: var(--bk-paper); }
.bk-btn:disabled { opacity: 0.45; cursor: default; background: var(--charcoal); border-color: var(--charcoal); }
.bk-btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--bk-line-strong); }
.bk-btn-ghost:hover { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.bk-btn-danger { background: transparent; color: var(--bk-danger); border-color: rgba(169, 50, 38, 0.35); }
.bk-btn-danger:hover { background: var(--bk-danger); border-color: var(--bk-danger); color: #fff; }
.bk-btn-sm { width: auto; padding: 0.7rem 1rem; font-size: 0.7rem; }
.bk-btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.bk-btn.is-busy::after {
    content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
    border: 1.5px solid rgba(255, 253, 248, 0.35); border-top-color: var(--bk-paper); animation: bk-spin 0.7s linear infinite;
}
.bk-btn-ghost.is-busy::after { border-color: var(--bk-line-strong); border-top-color: var(--charcoal); }
.bk-actions { display: grid; gap: 0.6rem; margin-top: 1.25rem; }

/* --- Receipt (summary + confirmation) ------------------------------------ */
.bk-receipt {
    position: relative; background: var(--bk-card); border: 1px solid var(--bk-line); padding: 1.25rem 1.25rem 1.1rem; margin: 0.5rem 0 1.25rem;
}
.bk-receipt::before, .bk-receipt::after {
    content: ''; position: absolute; left: -1px; right: -1px; height: 6px;
    background: radial-gradient(circle at 3px 3px, var(--bk-paper) 2.4px, transparent 2.6px) 0 0 / 9px 6px repeat-x;
}
.bk-receipt::before { top: -3px; }
.bk-receipt::after { bottom: -3px; }
.bk-receipt-line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; font-size: 0.92rem; }
.bk-receipt-line + .bk-receipt-line { border-top: 1px dashed var(--bk-line); }
.bk-receipt-line span:first-child { color: var(--charcoal-soft); flex: none; }
.bk-receipt-line span:last-child { text-align: right; font-weight: 400; }
.bk-receipt-total span:last-child { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 500; }
.bk-consent { font-size: 0.75rem; color: var(--charcoal-soft); line-height: 1.55; margin-top: 0.9rem; }
.bk-consent a, .bk-optin a { color: var(--bronze); text-decoration: underline; text-underline-offset: 2px; }
.bk-optin { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0 0 1rem; font-size: 0.8rem; line-height: 1.5; color: var(--charcoal-mid); cursor: pointer; }
.bk-optin strong { font-weight: 500; color: var(--charcoal); }
.bk-optin input { flex: none; width: 20px; height: 20px; margin-top: 0.1rem; accent-color: var(--charcoal); }

.bk-done { animation: bk-rise 0.9s var(--bk-ease) both; }
.bk-done-mark {
    width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--bronze); display: grid; place-items: center;
    color: var(--bronze); margin-bottom: 1.25rem;
}
.bk-done-mark svg { width: 26px; height: 26px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: bk-draw 0.8s 0.3s var(--bk-ease) forwards; }
.bk-done h2 { font-family: var(--font-heading); font-weight: 300; font-size: 2.6rem; line-height: 1.05; letter-spacing: -0.02em; }
.bk-done h2 em { font-style: italic; color: var(--bronze); }
.bk-done-lede { color: var(--charcoal-soft); font-weight: 300; margin: 0.6rem 0 1.5rem; }
.bk-when { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 500; line-height: 1.2; margin-bottom: 0.3rem; }
.bk-address { display: flex; gap: 0.6rem; align-items: flex-start; padding: 1rem 0 0.2rem; margin-top: 0.75rem; border-top: 1px dashed var(--bk-line); }
.bk-address svg { width: 18px; height: 18px; flex: none; margin-top: 0.15rem; color: var(--bronze); }
.bk-address a { color: var(--charcoal); text-decoration: underline; text-decoration-color: var(--bronze-light); text-underline-offset: 3px; }
.bk-note { margin-top: 1rem; padding: 0.9rem 1rem; background: var(--cream); font-size: 0.88rem; line-height: 1.6; white-space: pre-line; }
.bk-status {
    display: inline-block; padding: 0.25rem 0.6rem; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
    border: 1px solid currentColor;
}
.bk-status.is-booked { color: var(--bk-ok); }
.bk-status.is-cancelled { color: var(--bk-danger); }
.bk-status.is-completed, .bk-status.is-no_show { color: var(--charcoal-soft); }
.bk-confirm-box { border: 1px solid rgba(169, 50, 38, 0.3); padding: 1rem; margin-top: 0.75rem; animation: bk-fade 0.3s both; }
.bk-confirm-box p { font-size: 0.92rem; margin-bottom: 0.75rem; }
.bk-confirm-box .bk-actions { grid-template-columns: 1fr 1fr; margin-top: 0; }

.bk-skeleton { height: 64px; margin-bottom: 0.5rem; background: linear-gradient(90deg, rgba(26,26,26,0.04), rgba(26,26,26,0.08), rgba(26,26,26,0.04)) 0 0 / 200% 100%; animation: bk-shimmer 1.4s linear infinite; }

/* ==========================================================================
   Admin: /admin/bookings
   ========================================================================== */
.ab-page { background: var(--bk-paper); min-height: 100vh; padding: 88px 0 6rem; }
.ab-wrap { max-width: 760px; margin: 0 auto; padding: 0 1rem; }
.ab-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ab-top h1 { font-family: var(--font-heading); font-weight: 400; font-size: 1.9rem; letter-spacing: -0.01em; }
.ab-top a { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.ab-tabs {
    position: sticky; top: 72px; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 253, 248, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bk-line); margin: 0 -1rem 1rem; padding: 0 1rem;
}
.ab-tab {
    padding: 0.9rem 0 0.8rem; background: none; border: 0; border-bottom: 2px solid transparent; font: inherit;
    font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--charcoal-soft); cursor: pointer;
}
.ab-tab.is-active { color: var(--charcoal); border-bottom-color: var(--bronze); }
.ab-panel[hidden] { display: none; }
.ab-banner { padding: 0.8rem 1rem; margin-bottom: 1rem; font-size: 0.85rem; line-height: 1.5; background: var(--cream); border-left: 2px solid var(--bronze); }
.ab-banner.is-warn { border-left-color: var(--bk-danger); }

/* Week strip */
.ab-weekbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.ab-weekbar h2 { font-family: var(--font-heading); font-style: italic; font-weight: 400; font-size: 1.35rem; }
.ab-nav { display: flex; gap: 0.25rem; }
.ab-icon {
    width: 38px; height: 38px; display: grid; place-items: center; background: none; border: 1px solid var(--bk-line);
    cursor: pointer; color: var(--charcoal); font: inherit; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.ab-icon.ab-today { width: auto; padding: 0 0.75rem; }
.ab-icon svg { width: 16px; height: 16px; }
.ab-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; margin-bottom: 1.25rem; }
.ab-wd {
    padding: 0.45rem 0 0.5rem; text-align: center; background: var(--bk-card); border: 1px solid var(--bk-line);
    font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ab-wd small { display: block; font-size: 0.58rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--charcoal-soft); }
.ab-wd b { display: block; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 500; line-height: 1.2; }
.ab-wd i { display: flex; justify-content: center; gap: 2px; height: 5px; }
.ab-wd i::before { content: attr(data-dots); font-style: normal; font-size: 0.55rem; line-height: 5px; color: var(--bronze); letter-spacing: 1px; }
.ab-wd.is-today b { color: var(--bronze); }
.ab-wd.is-selected { background: var(--charcoal); border-color: var(--charcoal); color: var(--bk-paper); }
.ab-wd.is-selected small { color: rgba(255,253,248,0.6); }
.ab-wd.is-selected i::before { color: var(--bronze-glow); }
.ab-wd.is-off:not(.is-selected) { background: transparent; border-style: dashed; }
.ab-wd.is-off:not(.is-selected) b { color: rgba(26, 26, 26, 0.3); }
.ab-nowrap { white-space: nowrap; }

.ab-dayhead { margin-bottom: 0.85rem; }
.ab-dayhead h3 { font-family: var(--font-heading); font-weight: 500; font-size: 1.5rem; line-height: 1.2; }
.ab-dayhead span { display: block; font-size: 0.8rem; color: var(--charcoal-soft); margin-top: 0.15rem; }
.ab-quick { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0.4rem; margin-bottom: 1rem; }
.ab-quick .bk-btn { padding: 0.8rem 0.4rem; font-size: 0.64rem; letter-spacing: 0.12em; }

.ab-agenda { display: grid; gap: 0.5rem; }
.ab-item {
    display: grid; grid-template-columns: 64px 1fr; gap: 0.9rem; padding: 0.9rem 1rem; width: 100%; text-align: left;
    background: var(--bk-card); border: 1px solid var(--bk-line); border-left: 3px solid var(--bronze);
    font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color 0.2s;
}
.ab-item:hover { border-color: var(--bronze-light); border-left-color: var(--bronze); }
.ab-item-time { font-variant-numeric: tabular-nums; font-size: 0.85rem; line-height: 1.35; }
.ab-item-time small { display: block; color: var(--charcoal-soft); font-size: 0.75rem; }
.ab-item-name { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 500; line-height: 1.2; }
.ab-item-meta { font-size: 0.8rem; color: var(--charcoal-soft); margin-top: 0.15rem; }
.ab-item-notes { font-size: 0.8rem; color: var(--charcoal-mid); margin-top: 0.35rem; font-style: italic; }
.ab-item.is-cancelled { opacity: 0.55; border-left-color: var(--bk-danger); }
.ab-item.is-cancelled .ab-item-name { text-decoration: line-through; }
.ab-item.is-completed, .ab-item.is-no_show { border-left-color: var(--charcoal-soft); }
.ab-item .bk-status { margin-left: 0.4rem; vertical-align: 2px; font-size: 0.58rem; padding: 0.1rem 0.4rem; }
.ab-block {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0.6rem 0.7rem 1rem;
    border: 1px dashed var(--bk-line-strong); font-size: 0.85rem; color: var(--charcoal-mid);
    background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(26,26,26,0.035) 8px 9px);
}
.ab-block.is-open { background: rgba(78, 107, 58, 0.06); border-color: rgba(78, 107, 58, 0.35); color: var(--bk-ok); }
.ab-block button { background: none; border: 0; padding: 0.35rem 0.5rem; cursor: pointer; color: var(--charcoal-soft); font-size: 1.1rem; line-height: 1; }
.ab-free { padding: 1.5rem; text-align: center; color: var(--charcoal-soft); font-size: 0.9rem; border: 1px dashed var(--bk-line); }

/* Hours */
.ab-hours-day { display: grid; grid-template-columns: 56px 1fr; gap: 0.75rem; padding: 0.85rem 0; border-bottom: 1px solid var(--bk-line); align-items: start; }
.ab-hours-day > b { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 500; padding-top: 0.45rem; }
.ab-ranges { display: grid; gap: 0.4rem; }
.ab-range { display: flex; align-items: center; gap: 0.4rem; }
.ab-range input { flex: 1; min-width: 0; padding: 0.55rem 0.5rem; font: inherit; font-size: 16px; border: 1px solid var(--bk-line-strong); background: var(--bk-card); border-radius: 0; }
.ab-range span { color: var(--charcoal-soft); }
.ab-x { background: none; border: 0; width: 34px; height: 34px; font-size: 1.2rem; color: var(--charcoal-soft); cursor: pointer; flex: none; }
.ab-add { background: none; border: 1px dashed var(--bk-line-strong); padding: 0.5rem; font: inherit; font-size: 0.8rem; color: var(--charcoal-soft); cursor: pointer; text-align: left; }
.ab-add:hover { color: var(--bronze); border-color: var(--bronze); }
.ab-closed { font-size: 0.85rem; color: var(--charcoal-soft); padding-top: 0.5rem; font-style: italic; }

/* Services */
.ab-svc-cat { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--charcoal-soft); margin: 1.25rem 0 0.4rem; }
.ab-svc { display: grid; grid-template-columns: 1fr auto auto; gap: 0.5rem; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid var(--bk-line); }
.ab-svc-main { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.ab-svc-main b { display: block; font-weight: 400; font-size: 0.98rem; }
.ab-svc-main small { color: var(--charcoal-soft); font-size: 0.8rem; }
.ab-svc.is-off .ab-svc-main { opacity: 0.45; }
.ab-move { display: flex; flex-direction: column; }
.ab-move button { background: none; border: 0; width: 30px; height: 20px; cursor: pointer; color: var(--charcoal-soft); font-size: 0.7rem; }
.ab-move button:disabled { opacity: 0.2; cursor: default; }

/* Switch */
.ab-switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.ab-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.ab-switch span { position: absolute; inset: 0; background: rgba(26,26,26,0.15); border-radius: 13px; transition: background 0.25s; cursor: pointer; }
.ab-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.25s var(--bk-ease); }
.ab-switch input:checked + span { background: var(--bronze); }
.ab-switch input:checked + span::after { transform: translateX(18px); }
.ab-switch input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
.ab-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--bk-line); font-size: 0.92rem; }
.ab-toggle-row small { display: block; color: var(--charcoal-soft); font-size: 0.78rem; }

/* Settings */
.ab-section { margin-bottom: 2rem; }
.ab-section h3 { font-family: var(--font-heading); font-weight: 500; font-size: 1.35rem; margin-bottom: 0.75rem; }
.ab-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.75rem; }
.ab-feed { display: flex; gap: 0.4rem; margin-top: 0.6rem; }
.ab-feed input { flex: 1; min-width: 0; padding: 0.6rem; font-size: 0.75rem; font-family: ui-monospace, Menlo, monospace; border: 1px solid var(--bk-line); background: var(--cream); }
.ab-savebar {
    position: sticky; bottom: 0; z-index: 15; padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom));
    background: linear-gradient(transparent, var(--bk-paper) 30%); display: flex; gap: 0.75rem; align-items: center;
}
.ab-savebar .bk-btn { flex: 1; }
.ab-saved { font-size: 0.8rem; color: var(--bk-ok); flex: none; }

/* Bottom sheet */
.ab-sheet-backdrop {
    position: fixed; inset: 0; z-index: 1100; background: rgba(26, 26, 26, 0.38); display: flex; align-items: flex-end; justify-content: center;
    animation: bk-fade 0.25s both;
}
.ab-sheet-backdrop[hidden] { display: none; }
.ab-sheet {
    width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    background: var(--bk-paper); padding: 0.6rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
    animation: ab-up 0.4s var(--bk-ease) both;
}
.ab-sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--bk-line-strong); margin: 0 auto 0.9rem; }
.ab-sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.ab-sheet-head h3 { font-family: var(--font-heading); font-weight: 500; font-size: 1.5rem; }
.ab-suggest { border: 1px solid var(--bk-line); border-top: 0; background: var(--bk-card); margin-top: -1px; }
.ab-suggest button { display: flex; justify-content: space-between; width: 100%; padding: 0.65rem 0.95rem; background: none; border: 0; border-top: 1px solid var(--bk-line); font: inherit; font-size: 0.9rem; text-align: left; cursor: pointer; }
.ab-suggest button small { color: var(--charcoal-soft); }
.ab-check { display: flex; gap: 0.6rem; align-items: center; font-size: 0.9rem; margin: 0.25rem 0 0.75rem; cursor: pointer; }
.ab-check input { width: 18px; height: 18px; accent-color: var(--bronze); }
.ab-link-row { display: flex; gap: 0.75rem; flex-wrap: wrap; font-size: 0.82rem; margin: 0.25rem 0 0.75rem; }
.ab-link-row a, .ab-link-row button { background: none; border: 0; padding: 0; font: inherit; color: var(--bronze); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.ab-toast {
    position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 1200; transform: translateX(-50%);
    background: var(--charcoal); color: var(--bk-paper); padding: 0.75rem 1.1rem; font-size: 0.85rem; max-width: calc(100% - 2rem);
    animation: ab-up 0.35s var(--bk-ease) both;
}
.ab-toast[hidden] { display: none; }

/* --- Motion -------------------------------------------------------------- */
@keyframes bk-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bk-spin { to { transform: rotate(360deg); } }
@keyframes bk-draw { to { stroke-dashoffset: 0; } }
@keyframes bk-shimmer { to { background-position: -200% 0; } }
@keyframes ab-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .bk-page *, .ab-page *, .ab-sheet, .ab-sheet-backdrop { animation: none !important; transition: none !important; }
    .bk-done-mark svg { stroke-dashoffset: 0; }
}

/* --- Larger screens ------------------------------------------------------ */
@media (min-width: 640px) {
    .bk-page { padding-top: 120px; }
    .bk-hero h1 { font-size: 3.6rem; }
    .bk-times { grid-template-columns: repeat(4, 1fr); }
    .bk-actions.is-pair { grid-template-columns: 1fr 1fr; }
    .ab-quick .bk-btn { font-size: 0.7rem; }
    .ab-sheet-backdrop { align-items: center; }
}
@media (max-width: 380px) {
    .bk-hero h1 { font-size: 2.5rem; }
    .bk-step { padding-left: 46px; }
    .ab-quick { grid-template-columns: 1fr 1fr; }
    .ab-quick .bk-btn:first-child { grid-column: 1 / -1; }
}
