/* ==========================================================================
   Ton Jansen — booking
   Tokens first, then base, then components. No framework, no gradients.
   ========================================================================== */

@font-face {
    font-family: "Spectral";
    src: url("../fonts/spectral-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Spectral";
    src: url("../fonts/spectral-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Spectral";
    src: url("../fonts/spectral-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Plex";
    src: url("../fonts/plex-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Plex";
    src: url("../fonts/plex-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Plex";
    src: url("../fonts/plex-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #23214F;
    --ink-2: #4A4670;
    --muted: #6F6A8A;
    --paper: #FAF7F1;
    --surface: #FFFFFF;
    --line: #E6DFD2;
    --line-strong: #CFC6B4;
    --fill: #F0992F;
    --fill-hover: #E68C1C;
    --accent: #A94B0C;
    --lilac: #6C5DB7;
    --sage: #2F7D5B;
    --danger: #A32B2B;
    --gold: #E3B34A;

    --font-display: "Spectral", Georgia, "Times New Roman", serif;
    --font-body: "Plex", "Segoe UI", system-ui, -apple-system, sans-serif;

    --wrap: 1080px;
    --radius: 4px;
    --radius-lg: 6px;
    --shadow: 0 1px 2px rgba(35, 33, 79, 0.05), 0 10px 30px rgba(35, 33, 79, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 16px/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--lilac);
    outline-offset: 2px;
    border-radius: 2px;
}

::selection {
    background: #E7DFF7;
    color: var(--ink);
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 10px 16px;
    z-index: 100;
}

.skip:focus {
    left: 12px;
    top: 12px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- banner ------------------------------------------------------------- */

.banner {
    font-size: 13px;
    letter-spacing: 0.01em;
    text-align: center;
    padding: 8px 16px;
}

.banner--test {
    background: #FDF0D8;
    border-bottom: 1px solid #EBD3A2;
    color: #6B4A12;
}

/* --- header ------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    height: 38px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav__link {
    font-size: 14px;
    color: var(--ink-2);
    text-decoration: none;
}

.nav__link:hover {
    color: var(--ink);
}

.lang {
    display: flex;
    gap: 2px;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.lang__item {
    font-size: 11.5px;
    letter-spacing: 0.08em;
    padding: 5px 9px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted);
}

.lang__item:hover {
    color: var(--ink);
}

.lang__item.is-current {
    background: var(--ink);
    color: var(--paper);
}

/* --- type --------------------------------------------------------------- */

.eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--ink);
}

.hero {
    padding: 84px 0 48px;
}

.hero__title {
    margin: 14px 0 18px;
    font-size: clamp(30px, 4.4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.015em;
    max-width: 22ch;
}

.lede {
    margin: 0;
    max-width: 62ch;
    font-size: 18px;
    line-height: 1.6;
    color: var(--ink-2);
}

.h2 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -0.005em;
}

.h3 {
    margin: 0 0 6px;
    font-size: 19px;
    line-height: 1.3;
}

.muted {
    color: var(--muted);
}

.num,
.num-inline {
    font-variant-numeric: tabular-nums;
}

/* --- sections and panels ------------------------------------------------ */

.section {
    padding: 24px 0;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.panel--status {
    border-left: 3px solid var(--fill);
}

.panel p {
    max-width: 70ch;
}

.panel p:last-child {
    margin-bottom: 0;
}

/* --- buttons ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: 500 15px/1 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.btn--primary {
    background: var(--fill);
    border-color: #DE8A22;
    color: var(--ink);
}

.btn--primary:hover {
    background: var(--fill-hover);
    color: var(--ink);
}

.btn--ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn--ghost:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.btn--link {
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.btn--block {
    display: flex;
    width: 100%;
    margin-top: 18px;
}

.btn:disabled {
    background: #F2EEE6;
    border-color: var(--line);
    color: var(--muted);
    cursor: not-allowed;
}

/* --- fields ------------------------------------------------------------- */

.field {
    display: grid;
    gap: 6px;
    max-width: 420px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.row--top {
    align-items: start;
    gap: 24px;
}

.stack {
    display: grid;
    gap: 12px;
    max-width: 620px;
}

.label {
    font-size: 13px;
    font-weight: 500;
}

.input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    font: 400 15px/1.2 var(--font-body);
}

.input:focus {
    outline: 2px solid var(--lilac);
    outline-offset: 1px;
    border-color: var(--lilac);
}

.hint {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
}

.field--error .input {
    border-color: var(--danger);
}

.error-text {
    margin: 0;
    font-size: 12.5px;
    color: var(--danger);
}

/* --- slots -------------------------------------------------------------- */

.slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 8px;
    max-width: 640px;
}

.slot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    height: 56px;
    padding: 0 12px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.12s ease, background-color 0.12s ease;
}

.slot:hover:not(:disabled) {
    border-color: var(--ink);
}

.slot__time {
    font-size: 15px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.slot__meta {
    font-size: 11.5px;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.slot.is-selected {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.slot.is-selected .slot__meta {
    color: #B9B4D6;
}

.slot:disabled {
    background: #F2EEE6;
    border-style: dashed;
    color: var(--muted);
    cursor: not-allowed;
}

.slot:disabled .slot__time {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

/* --- summary ------------------------------------------------------------ */

.summary {
    max-width: 430px;
}

.summary__rows {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
}

.summary__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14.5px;
    color: var(--ink-2);
}

.summary__row dt,
.summary__row dd {
    margin: 0;
}

.summary__row--total {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

/* --- tables ------------------------------------------------------------- */

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

.table th {
    padding: 0 12px 10px;
    border-bottom: 1px solid var(--line-strong);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
    color: var(--muted);
}

.table th.num,
.table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
}

.table td:first-child {
    color: var(--ink);
}

/* --- notices ------------------------------------------------------------ */

.notice {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-left-width: 3px;
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 14.5px;
}

.notice--info {
    border-left-color: var(--lilac);
}

.notice--ok {
    border-left-color: var(--sage);
}

.notice--warn {
    border-left-color: var(--gold);
    background: #FEFAF0;
}

.notice--danger {
    border-left-color: var(--danger);
    background: #FCF4F4;
}

/* --- empty -------------------------------------------------------------- */

.empty {
    max-width: 620px;
    padding: 40px 28px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--muted);
}

.empty__title {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--ink);
}

/* --- contact and footer ------------------------------------------------- */

.contact {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
    padding: 24px 0 56px;
}

.contact__card {
    font-style: normal;
    font-size: 15px;
    line-height: 1.9;
    color: var(--ink-2);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 44px 0 56px;
    font-size: 13.5px;
    color: var(--muted);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 32px;
    align-items: start;
}

.site-footer__name {
    margin: 0;
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--ink);
}

.site-footer__tagline {
    margin: 2px 0 0;
}

.site-footer__address {
    font-style: normal;
    line-height: 1.9;
}

.site-footer__note {
    margin: 0;
    text-align: right;
}

/* --- errors ------------------------------------------------------------- */

.error-page {
    padding: 96px 0 120px;
    max-width: 52ch;
}

.error-page__code {
    margin: 0;
    font-family: var(--font-display);
    font-size: 64px;
    line-height: 1;
    color: var(--line-strong);
}

/* --- styleguide --------------------------------------------------------- */

.sg {
    display: grid;
    gap: 64px;
    padding: 56px 0 96px;
}

.sg__head {
    max-width: 68ch;
}

.sg__block {
    max-width: 100%;
}

.specs,
.sg__note {
    max-width: 760px;
}

.sg__note {
    margin: 0 0 22px;
    max-width: 62ch;
    color: var(--muted);
    font-size: 14.5px;
}

.specs {
    display: grid;
    gap: 16px;
}

.spec {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: baseline;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.spec__label {
    font-size: 11px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
}

.t-display {
    font-family: var(--font-display);
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.t-h1 {
    font-family: var(--font-display);
    font-size: 32px;
    line-height: 1.15;
}

.t-h2 {
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1.25;
}

.t-h3 {
    font-family: var(--font-display);
    font-size: 19px;
    line-height: 1.3;
}

.t-body {
    font-size: 15.5px;
}

.t-small {
    font-size: 13px;
    color: var(--muted);
}

.swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.swatch {
    display: grid;
    gap: 6px;
}

.swatch__chip {
    display: block;
    height: 56px;
    border: 1px solid rgba(35, 33, 79, 0.2);
    border-radius: var(--radius);
}

.swatch__name {
    font-size: 13px;
    font-weight: 500;
}

.swatch__value {
    font-size: 12px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.sw--ink { background: #23214F; }
.sw--ink2 { background: #4A4670; }
.sw--muted { background: #6F6A8A; }
.sw--paper { background: #FAF7F1; }
.sw--surface { background: #FFFFFF; }
.sw--line { background: #E6DFD2; }
.sw--fill { background: #F0992F; }
.sw--accent { background: #A94B0C; }
.sw--lilac { background: #6C5DB7; }
.sw--sage { background: #2F7D5B; }
.sw--danger { background: #A32B2B; }
.sw--gold { background: #E3B34A; }

/* --- catalogue and booking ---------------------------------------------- */

.section-head {
    margin-bottom: 20px;
}

.section-head p {
    margin: 0;
}

.type-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.type-row {
    border-bottom: 1px solid var(--line);
}

.type-row__link {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 24px;
    padding: 18px 4px;
    color: var(--ink);
    text-decoration: none;
}

.type-row__link:hover {
    background: #FFFDF9;
}

.type-row__name {
    grid-column: 1;
    font-family: var(--font-display);
    font-size: 20px;
}

.type-row__meta {
    grid-column: 1;
    font-size: 13.5px;
    color: var(--muted);
}

.type-row__price {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.booking-head {
    padding: 56px 0 8px;
}

.booking-head .eyebrow a {
    color: var(--accent);
    text-decoration: none;
}

.booking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin: 28px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
}

.booking-meta__item dt {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.booking-meta__item dd {
    margin: 4px 0 0;
    font-size: 15px;
}

.day-list {
    display: grid;
    gap: 28px;
}

.day__date {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
}

.slot--static {
    pointer-events: none;
    cursor: default;
}

@media (max-width: 760px) {
    .type-row__link {
        grid-template-columns: 1fr;
    }

    .type-row__price {
        grid-column: 1;
        grid-row: auto;
        align-self: start;
    }

    .booking-meta {
        gap: 20px;
    }
}

/* --- booking flow -------------------------------------------------------- */

.booking-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 32px;
    align-items: start;
    padding: 8px 0 72px;
}

.form {
    display: grid;
    gap: 18px;
}

.form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.field--full {
    max-width: none;
}

.booking-summary {
    position: sticky;
    top: 96px;
}

.summary__when {
    margin: 10px 0 0;
    font-family: var(--font-display);
    font-size: 18px;
}

.summary__time {
    margin: 2px 0 4px;
    font-size: 30px;
    letter-spacing: -0.01em;
}

.slot--link {
    text-decoration: none;
}

.status-page {
    max-width: 56ch;
    padding: 96px 0 120px;
}

.receipt {
    max-width: 640px;
    padding: 64px 0 96px;
}

.receipt__rows {
    display: grid;
    margin: 28px 0 24px;
    border-top: 1px solid var(--line);
}

.receipt__row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.receipt__row dt {
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.receipt__row dd {
    margin: 0;
    text-align: right;
}

.receipt__row--total {
    padding-top: 18px;
    border-bottom: 0;
    font-size: 16px;
    font-weight: 600;
}

.refund-panel {
    margin-top: 28px;
    max-width: 640px;
}

.refund-panel .field {
    margin: 14px 0 12px;
}

.slot--radio {
    position: relative;
}

.slot--radio input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.slot--radio:has(input:checked) {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.slot--radio:has(input:checked) .slot__meta {
    color: #B9B4D6;
}

.slot--radio:has(input:focus-visible) {
    outline: 2px solid var(--lilac);
    outline-offset: 2px;
}

.day--choice {
    margin: 0 0 26px;
    padding: 0;
    border: 0;
}

.day--choice legend {
    padding: 0;
    margin-bottom: 10px;
}

.tz-form {
    max-width: 460px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.tz-form__row {
    display: flex;
    gap: 10px;
    margin: 8px 0;
}

.tz-form .hint {
    margin-top: 8px;
}

.checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 8px;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

@media (max-width: 820px) {
    .booking-layout {
        grid-template-columns: 1fr;
    }

    .booking-summary {
        position: static;
    }
}

/* --- admin --------------------------------------------------------------- */

body.admin {
    background: #F6F2EA;
}

.admin-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 28px;
    height: 64px;
    padding: 0 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.admin-brand {
    display: flex;
    flex-direction: column;
    color: var(--ink);
    text-decoration: none;
}

.admin-brand__name {
    font-family: var(--font-display);
    font-size: 17px;
    line-height: 1.1;
}

.admin-brand__sub {
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.admin-nav {
    display: flex;
    gap: 6px;
    margin-left: 12px;
}

.admin-nav__link {
    padding: 7px 10px;
    border-radius: var(--radius);
    font-size: 13.5px;
    color: var(--ink-2);
    text-decoration: none;
}

.admin-nav__link:hover {
    background: var(--paper);
    color: var(--ink);
}

.admin-nav__link.is-active {
    background: var(--ink);
    color: var(--paper);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    font-size: 13px;
    color: var(--muted);
}

.admin-user form {
    margin: 0;
}

.admin-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 28px 80px;
}

.admin-mobile-note {
    display: none;
}

.totp-qr {
    width: 220px;
    max-width: 60vw;
    margin: 16px 0 6px;
    background: #FFFFFF;
    padding: 10px;
    border: 1px solid var(--line);
}

.totp-qr svg {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 900px) {
    .admin-mobile-note {
        display: block;
        margin: 0 0 20px;
        padding: 12px 14px;
        border-left: 3px solid var(--amber);
        background: var(--paper-2);
        color: var(--ink-2);
        font-size: 14px;
    }
}

.admin-main--auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    max-width: none;
}

.admin-login {
    width: 100%;
    max-width: 400px;
}

.admin-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}

.admin-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 34px;
}

.admin-card {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.admin-card--warn {
    background: #FEFAF0;
    border-color: #E8C79B;
}

.admin-card__label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.admin-card__value {
    font-family: var(--font-display);
    font-size: 30px;
}

.admin-section {
    margin: 0 0 12px;
}

.admin-table {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.admin-table th {
    padding: 10px 12px;
    background: #FBF8F2;
}

.admin-table td {
    vertical-align: middle;
}

.admin-strong {
    font-weight: 500;
    color: var(--ink);
}

.admin-muted {
    font-size: 12.5px;
    color: var(--muted);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.input--small {
    width: 130px;
    height: 32px;
    font-size: 13px;
}

.btn--small {
    height: 32px;
    padding: 0 10px;
    font-size: 12.5px;
}

.pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #F1ECE2;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pill--pending,
.pill--confirmed,
.pill--approved,
.pill--payable,
.pill--settled {
    background: #E9F2EC;
    color: #2F7D5B;
}

.pill--paused,
.pill--needs_attention {
    background: #FDF0D8;
    color: #8A5A12;
}

.pill--declined,
.pill--void,
.pill--cancelled {
    background: #F6E7E7;
    color: #A32B2B;
}

.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.admin-filter {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    color: var(--ink-2);
    text-decoration: none;
}

.admin-filter.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.admin-flash {
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .admin-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- responsive --------------------------------------------------------- */

@media (max-width: 760px) {
    .hero {
        padding: 56px 0 36px;
    }

    .contact {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .site-footer__note {
        text-align: left;
    }

    .spec {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .nav {
        gap: 16px;
    }

    .brand img {
        height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* --- Schedule: language filter, month calendar, day panel --- */
.schedule__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.lang-filter { position: relative; }
.lang-filter > summary {
    cursor: pointer;
    list-style: none;
    padding: 8px 12px;
    border: 1px solid var(--line, #d8d8e0);
    border-radius: 4px;
    background: #fff;
    font-size: 0.95rem;
}
.lang-filter > summary::-webkit-details-marker { display: none; }
.lang-filter > summary::after { content: " ▾"; color: #777; }
.lang-filter[open] > summary { border-color: var(--ink, #23214F); }
.lang-filter form {
    position: absolute;
    z-index: 10;
    top: calc(100% + 6px);
    left: 0;
    min-width: 260px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line, #d8d8e0);
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(20, 20, 40, 0.12);
}
.lang-filter__list { border: 0; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.lang-filter__list legend { font-size: 0.8rem; color: #666; margin-bottom: 6px; }
.month-nav { display: flex; align-items: center; gap: 14px; }
.month-nav__label { font-weight: 600; min-width: 170px; text-align: center; }
.month-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line, #d8d8e0);
    border-radius: 50%;
    text-decoration: none;
    color: var(--ink, #23214F);
}
.month-nav__link.is-disabled { color: #bbb; border-color: #eee; }

table.cal { width: 100%; border-collapse: collapse; table-layout: fixed; margin-bottom: 22px; }
table.cal th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666;
    padding: 6px 4px;
    text-align: center;
}
table.cal td { border-top: 1px solid #ececf2; padding: 4px; vertical-align: top; }
.cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 54px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
}
.cal-day--free { background: #eef4ee; border: 1px solid #cfe0cf; }
.cal-day--free:hover { background: #e2eee2; }
.cal-day--off { color: #aaa; }
.cal-day--muted { color: #ccc; }
.cal-day.is-selected { outline: 2px solid var(--ink, #23214F); background: #fff; }
.cal-day__num { font-size: 0.95rem; }
.cal-day__dot { width: 6px; height: 6px; border-radius: 50%; background: #2f7d32; }
.day-panel { border-top: 1px solid #ececf2; padding-top: 18px; }
.schedule__hint { margin-top: 8px; }

.booking-summary { max-width: 760px; }
.booking-summary__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 24px; margin: 12px 0; }
.booking-summary__list dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #666; }
.booking-summary__list dd { margin: 2px 0 0; font-weight: 600; }

/* --- schedule calendar, refined to the design system --- */
.schedule .section-head { margin-bottom: 22px; }
.schedule__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.lang-filter { position: relative; }
.lang-filter > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius, 4px);
    background: var(--surface);
    cursor: pointer;
    font-size: 14px;
    letter-spacing: .01em;
}
.lang-filter > summary::-webkit-details-marker { display: none; }
.lang-filter > summary::after { content: "▾"; color: var(--muted); font-size: 12px; }
.lang-filter[open] > summary { border-color: var(--ink); }
.lang-filter form {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    width: 280px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg, 8px);
    box-shadow: 0 18px 40px rgba(35, 33, 79, .14);
}
.lang-filter__list { border: 0; margin: 0 0 14px; padding: 0; display: grid; gap: 9px; }
.lang-filter__list legend { padding: 0 0 6px; font-size: 12px; color: var(--muted); }
.lang-filter__list .check { display: flex; gap: 9px; align-items: center; font-size: 14px; }
.lang-filter form .btn { width: 100%; }
.month-nav { display: flex; align-items: center; gap: 10px; }
.month-nav__label {
    min-width: 190px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 19px;
    letter-spacing: -0.01em;
}
.month-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}
.month-nav__link:hover { border-color: var(--ink); background: #fff; }
.month-nav__link.is-disabled { color: #C9C4D6; border-color: var(--line); background: transparent; }

table.cal {
    width: 100%;
    border-collapse: separate;
    border-spacing: 6px;
    table-layout: fixed;
    margin: 0 -6px 26px;
}
table.cal th {
    padding: 6px 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
}
table.cal td { padding: 0; vertical-align: top; }
.cal__cell--outside .cal-day { opacity: .45; }
.cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 62px;
    border-radius: 8px;
    border: 1px solid transparent;
    color: var(--ink);
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}
.cal-day--free {
    background: #EFF3EC;
    border-color: #D9E4D4;
}
.cal-day--free:hover { background: #E4ECDF; border-color: #BFD2B8; }
.cal-day--off { color: #B9B4C7; }
.cal-day--muted { color: #D3CFDD; }
.cal-day.is-selected {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.cal-day.is-selected .cal-day__dot { background: #fff; }
.cal-day__num { font-size: 15px; font-variant-numeric: tabular-nums; }
.cal-day__dot { width: 5px; height: 5px; border-radius: 50%; background: #5B8F57; }
.day-panel {
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
}
.day-panel .day__date { margin-bottom: 14px; }
.schedule__hint { margin-top: 4px; color: var(--muted); }

/* booking summary in the sidebar */
.booking-layout { grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); }
.booking-summary { max-width: none; padding: 26px; }
.booking-summary .eyebrow { margin: 0 0 4px; }
.booking-summary .h3 { margin: 0 0 14px; font-family: var(--font-display); font-size: 22px; }
.booking-summary .summary__when { margin: 0; font-size: 15px; color: var(--ink-2); }
.booking-summary .summary__time { margin: 2px 0 0; font-family: var(--font-display); font-size: 30px; letter-spacing: -.02em; }
.booking-summary .summary__rows { margin: 18px 0 16px; }
.booking-summary .summary__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.booking-summary .summary__row dt { color: var(--muted); }
.booking-summary .summary__row dd { margin: 0; text-align: right; }
.booking-summary .summary__row--muted { color: var(--muted); }
.booking-summary > .hint { margin-top: 6px; }
.booking-summary__list { display: none; }

@media (max-width: 900px) {
    table.cal { border-spacing: 3px; margin-left: -3px; margin-right: -3px; }
    .cal-day { min-height: 52px; }
    .booking-layout { grid-template-columns: 1fr; }
    .booking-summary { position: static; order: -1; }
    .lang-filter form { width: min(280px, calc(100vw - 48px)); }
}

/* slot polish inside the day panel */
.slots .slot {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
    min-width: 92px;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.slots .slot:hover { border-color: var(--ink); background: #fff; box-shadow: 0 6px 16px rgba(35,33,79,.08); }
.slots .slot--link:hover .slot__time { color: var(--ink); }
.slots .slot__time { font-size: 17px; letter-spacing: -.01em; }
.slots .slot__meta { color: var(--muted); }

/* --- responsive corrections: wrap padding was being overridden --- */
.booking-head { padding: 56px 24px 8px; }
.section { padding: 24px; }
@media (max-width: 900px) {
    .booking-head { padding: 36px 18px 6px; }
    .section { padding: 18px; }
    table.cal { margin-left: 0; margin-right: 0; border-spacing: 2px; }
    .slots { max-width: 100%; }
    .summary__time { font-size: 26px; }
}
@media (max-width: 560px) {
    table.cal th { font-size: 10px; letter-spacing: .06em; }
    .cal-day { min-height: 44px; }
    .cal-day__num { font-size: 13px; }
    .month-nav__label { min-width: 0; font-size: 16px; }
    .slots { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

/* --- admin booking detail --- */
.admin-card { color: inherit; text-decoration: none; }
.admin-card__hint { font-size: 12px; color: var(--muted); }
.admin-card:hover { border-color: var(--ink); }
.admin-head--row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.admin-head__actions { display: flex; align-items: center; gap: 10px; }
.admin-subtitle { margin: 4px 0 0; color: var(--muted); }
.admin-subhead { margin: 22px 0 6px; font-size: 15px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.admin-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
    color: var(--ink-2); text-decoration: none; font-size: 14px; background: var(--surface);
}
.admin-tab:hover { border-color: var(--ink); color: var(--ink); }
.admin-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.admin-tab__count { font-size: 12px; opacity: .75; font-variant-numeric: tabular-nums; }
.admin-row--warn td { background: #FFFBF2; }
.admin-attention {
    border: 1px solid #E8C79B; background: #FEFAF0; border-radius: var(--radius-lg);
    padding: 20px 22px; margin: 0 0 22px;
}
.admin-attention__title { margin: 0 0 10px; font-family: var(--font-display); font-size: 20px; color: #7A4E10; }
.admin-attention__list { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 8px; }
.admin-attention__detail { display: block; margin-top: 4px; padding: 6px 8px; background: #fff; border: 1px solid #EADCC2; border-radius: 4px; font-size: 12px; color: #6B4A18; overflow-wrap: anywhere; }
.admin-attention__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.admin-attention__actions .input { min-width: 280px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-grid .panel { padding: 20px; }
.admin-panel--wide { grid-column: 1 / -1; }
.admin-booking__when { margin: 6px 0 0; font-family: var(--font-display); font-size: 22px; }
.admin-booking__time { margin: 2px 0 0; font-size: 17px; }
.admin-booking__amount { margin: 6px 0 10px; font-family: var(--font-display); font-size: 28px; }
.admin-code { font-size: 11px; overflow-wrap: anywhere; }
.admin-missing { color: #8A5A12; }
.admin-list { margin: 6px 0 0; padding-left: 18px; }
.admin-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.admin-timeline li { display: grid; grid-template-columns: 220px 160px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); align-items: baseline; }
.admin-timeline li:first-child { border-top: 0; }
.admin-timeline__action { font-weight: 600; }
.admin-timeline__when { color: var(--muted); font-size: 12px; }
.admin-danger { margin-top: 18px; }
.admin-danger__row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 900px) {
    .admin-grid { grid-template-columns: 1fr; }
    .admin-timeline li { grid-template-columns: 1fr; }
    .admin-head--row { flex-direction: column; }
}

/* --- booking type form --- */
.admin-type-panel { max-width: 860px; }
.mode-fieldset { margin: 0 0 8px; padding: 0; border: 0; }
.mode-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.mode-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    align-items: start;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    cursor: pointer;
}
.mode-card input { margin-top: 3px; }
.mode-card__title { font-weight: 600; }
.mode-card__hint { grid-column: 2; color: var(--muted); font-size: 13px; line-height: 1.45; }
.mode-card.is-selected { border-color: var(--ink); background: #FBF8F2; box-shadow: inset 0 0 0 1px var(--ink); }
.type-form [hidden] { display: none !important; }
@media (max-width: 700px) {
    .mode-switch { grid-template-columns: 1fr; }
}

/* --- type form layout: mode cards decide which rows are relevant --- */
.type-form .tz-form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 14px 18px;
    align-items: start;
}
.type-form .field { min-width: 0; }
.type-form .form__actions { margin-top: 4px; }
/* --- global booking practitioner picker --- */
.practitioner-picker { margin: 0; padding: 0; border: 0; }
.practitioner-picker__options { display: grid; gap: 10px; margin-top: 8px; }
.practitioner-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
}
.practitioner-option:hover { border-color: var(--ink); }
.practitioner-option:has(input:checked) { border-color: var(--ink); background: #FBF8F2; box-shadow: inset 0 0 0 1px var(--ink); }
.practitioner-option__name { flex: 1; font-weight: 600; }
.practitioner-option__price { color: var(--ink); }
