:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #10233f;
    background: #f2f6fb;
    --sandal-navy: #001c4d;
    --sandal-navy-light: #063b82;
    --sandal-blue: #0e6ed6;
    --sandal-blue-bright: #2387ef;
    --sandal-surface: #f2f6fb;
    --sandal-border: #d7e1ed;
    --sandal-muted: #506985;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
}

a { color: var(--sandal-blue); }

body.app-shell {
    color: #10233f;
    background:
        radial-gradient(circle at 85% 0%, rgb(35 135 239 / 10%), transparent 30rem),
        var(--sandal-surface);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem clamp(1rem, 5vw, 4rem);
    border-bottom: 1px solid var(--sandal-border);
    background: #fff;
}

.header-support {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: inherit;
}

.header-support a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.header-support a:hover {
    text-decoration: underline;
}

.header-actions,
.header-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem 1rem;
}

.header-actions { margin-left: auto; }
.header-navigation { font-size: .875rem; font-weight: 650; }
.header-navigation form { display: flex; margin: 0; }
.header-navigation .header-logout {
    min-height: 2.5rem;
    margin: 0;
    padding: .55rem .85rem;
    border: 1px solid currentColor;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
}
.header-navigation .header-logout:hover { background: rgb(128 153 187 / 20%); }
.header-navigation :focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

@media (max-width: 640px) {
    .site-header { flex-wrap: wrap; }
    .header-actions { flex-basis: 100%; justify-content: space-between; }
    .header-navigation { margin-left: auto; gap: .5rem .75rem; }
    .header-support span {
        display: none;
    }
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--sandal-navy);
    font-weight: 750;
    text-decoration: none;
}

.brand-symbol {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    place-items: center;
    border-radius: .6rem;
    color: #fff;
    background: linear-gradient(145deg, var(--sandal-blue-bright), var(--sandal-navy-light));
    font-weight: 850;
}

.brand-symbol img {
    display: block;
    width: 1.875rem;
    height: 1.875rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.brand-copy {
    display: grid;
    gap: .05rem;
    line-height: 1.1;
}

.brand-copy small {
    color: #61758c;
    font-size: .68rem;
    font-weight: 600;
}

.app-shell .site-header {
    border-color: rgb(255 255 255 / 16%);
    color: #fff;
    background: var(--sandal-navy);
}

.app-shell .site-header .brand,
.app-shell .site-header a { color: #fff; }

.app-shell .site-header .brand-copy small { color: #aac8ed; }

.container {
    width: min(64rem, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(2rem, 8vw, 6rem) 0;
}

.card {
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid var(--sandal-border);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 1rem 3rem rgb(0 28 77 / 9%);
}

.invitation-card {
    width: min(36rem, 100%);
    margin: 0 auto;
}

.narrow {
    width: min(30rem, 100%);
    margin: 0 auto;
}

.hero { max-width: 42rem; }

.eyebrow {
    margin: 0 0 .5rem;
    color: var(--sandal-blue);
    font-size: .8rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 7vw, 3.75rem);
    line-height: 1.05;
}

label {
    display: block;
    margin: 1rem 0 .4rem;
    font-weight: 650;
}

input {
    width: 100%;
    padding: .8rem;
    border: 1px solid #92a9c3;
    border-radius: .55rem;
    font: inherit;
}

select,
textarea {
    width: 100%;
    padding: .8rem;
    border: 1px solid #92a9c3;
    border-radius: .55rem;
    background: #fff;
    font: inherit;
}

input:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 3px solid #51a8ff;
    outline-offset: 3px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-weight: 500;
}

.checkbox input { width: auto; }

button,
.button {
    display: inline-block;
    margin-top: 1rem;
    padding: .8rem 1.1rem;
    border: 0;
    border-radius: .55rem;
    color: #fff;
    background: var(--sandal-blue);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.secondary {
    color: #10233f;
    background: #e7eef7;
}

.error {
    color: #a12323;
    font-weight: 650;
}

.split-heading {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.choice-list {
    display: grid;
    gap: .75rem;
    padding: 0;
    list-style: none;
}

.choice-list a {
    display: block;
    padding: 1rem;
    border: 1px solid #bccde0;
    border-radius: .7rem;
    font-weight: 700;
}

.details div {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) minmax(0, 2fr);
    gap: 1rem;
    padding: .65rem 0;
    border-bottom: 1px solid #e2e9f1;
}

.details dt { font-weight: 700; }

.details dd { margin: 0; }

.details dt,
.details dd,
.data-list li > span { min-width: 0; overflow-wrap: anywhere; }

.notice {
    padding: 1rem;
    border: 1px solid #82abd7;
    border-radius: .7rem;
    background: #edf5ff;
}

.error-summary {
    padding: 1rem;
    border: 1px solid #c66060;
    border-radius: .7rem;
    color: #731b1b;
    background: #fff1f1;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 0 1rem;
}

.calendar-settings {
    margin-top: 2rem;
}

.calendar-settings > h2 {
    margin-bottom: 1.25rem;
}

.settings-group {
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--sandal-border);
    border-radius: 0.75rem;
}

.settings-group-heading {
    padding: 1rem 1.25rem;
    background: #eef3f8;
}

.settings-group-heading strong {
    display: block;
    margin-bottom: 0.25rem;
}

.settings-group-heading small {
    display: block;
    color: #65748a;
    line-height: 1.4;
}

.settings-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;

    min-height: 3.25rem;
    padding: 0.75rem 1.25rem;

    cursor: pointer;
}

.settings-row:nth-of-type(odd) {
    background: #f7f9fb;
}

.settings-row:nth-of-type(even) {
    background: #ffffff;
}

.settings-row + .settings-row {
    border-top: 1px solid var(--sandal-border);
}

.settings-row input[type="checkbox"],
.settings-row input[type="radio"] {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    cursor: pointer;
}

.wide { grid-column: 1 / -1; }

.stack {
    display: grid;
    gap: 2rem;
    min-width: 0;
}

.stack > * { min-width: 0; }

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.admin-actions form { margin: 0; }

.admin-actions form button { margin-top: 0; }

.table-scroll {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.table-actions form {
    margin: 0;
}

.user-dialog {
    width: min(32rem, calc(100% - 2rem));
    padding: 2rem;
    border: 1px solid var(--sandal-border);
    border-radius: 1.25rem;
    background: #fff;
    color: inherit;
    box-shadow: 0 1.5rem 5rem rgb(0 28 77 / 18%);
}

.user-dialog::backdrop {
    background: rgb(15 30 50 / 45%);
    backdrop-filter: blur(2px);
}

.user-dialog h2 {
    margin-top: 0;
}

.dialog-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: .8rem;
    border-bottom: 1px solid #e2e9f1;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--sandal-muted);
    font-size: .8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.reservation-list-page .container { width: min(90rem, calc(100% - 2rem)); }
.reservation-table { table-layout: fixed; }
.reservation-table th,
.reservation-table td { overflow-wrap: anywhere; }
.reservation-table th:nth-child(4) { width: 17%; }
.reservation-table th:nth-child(5) { width: 18%; }
.reservation-table th:nth-child(7) { width: 15%; }
.reservation-cell-label { display: none; }

@media (max-width: 75rem) {
    .reservation-table,
    .reservation-table tbody { display: block; }
    .reservation-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .reservation-table tbody { display: grid; gap: 1rem; }
    .reservation-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: .5rem;
        border: 1px solid var(--sandal-border);
        border-radius: .75rem;
        background: #f8fafd;
    }
    .reservation-table td { min-width: 0; border: 0; }
    .reservation-cell-label {
        display: block;
        margin-bottom: .35rem;
        color: var(--sandal-muted);
        font-size: .8rem;
        font-weight: 700;
    }
}

@media (max-width: 36rem) {
    .reservation-table tbody tr { grid-template-columns: 1fr; }
    .reservation-list-page .card { padding: 1.25rem; }
}

.data-list {
    display: grid;
    gap: .5rem;
    padding: 0;
    list-style: none;
}

.data-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 0;
    border-bottom: 1px solid #e2e9f1;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.status-card {
    padding: 1rem;
    border: 1px solid var(--sandal-border);
    border-radius: .8rem;
    background: #f8fafd;
}

.status-card h2 { margin-top: 0; }

.admin-dashboard-intro {
    max-width: 42rem;
    margin-bottom: 0;
    color: var(--sandal-muted);
}

.admin-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-kpi-grid .status-card {
    display: grid;
    gap: .45rem;
}

.admin-kpi-grid .status-card span {
    color: var(--sandal-muted);
    font-size: .88rem;
}

.admin-kpi-grid .status-card strong {
    color: #10233f;
    font-size: 1.8rem;
}

.admin-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.admin-link-card {
    display: grid;
    min-height: 8rem;
    padding: 1.15rem;
    align-content: center;
    gap: .45rem;
    border: 1px solid #c6d5e5;
    border-radius: .85rem;
    color: #10233f;
    background: #f8fafd;
    text-decoration: none;
}

.admin-link-card:hover {
    border-color: var(--sandal-blue);
    background: #edf5ff;
}

.admin-link-card strong { font-size: 1.05rem; }

.admin-link-card span {
    color: var(--sandal-muted);
    font-size: .9rem;
    line-height: 1.45;
}

.resource-admin-list {
    display: grid;
    gap: 1rem;
    padding: 0;
    list-style: none;
}

.resource-admin-list > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--sandal-border);
    border-radius: .8rem;
    background: #f8fafd;
}

.resource-admin-list > li > div {
    display: grid;
    gap: .25rem;
}

.resource-admin-list > li > div span {
    color: var(--sandal-muted);
    font-size: .9rem;
}

.compact-actions { margin-top: 0; }

.compact-actions .button {
    margin-top: 0;
    padding: .6rem .8rem;
    font-size: .88rem;
}

.auth-shell .container {
    width: min(64rem, calc(100% - 2rem));
    padding-top: clamp(2rem, 8vw, 6rem);
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    width: min(58rem, 100%);
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

.auth-brand-panel {
    display: grid;
    padding: clamp(2rem, 6vw, 4rem);
    align-content: center;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgb(35 135 239 / 55%), transparent 18rem),
        linear-gradient(145deg, var(--sandal-navy), #063b82);
}

.auth-brand-panel .eyebrow { color: #8bc5ff; }

.auth-brand-panel h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.2rem, 5vw, 3.35rem);
}

.auth-brand-panel > p:not(.eyebrow) {
    max-width: 30rem;
    color: #dbeaff;
    line-height: 1.55;
}

.auth-security-note {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgb(255 255 255 / 25%);
    font-size: .88rem;
}

.auth-form-panel {
    padding: clamp(2rem, 6vw, 4rem);
    align-content: center;
}

.auth-form-panel h2 {
    margin: 0 0 .5rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.admin-entry-hero {
    border-top: .3rem solid var(--sandal-blue);
}

.business-choice-list a {
    display: grid;
    gap: .25rem;
    text-decoration: none;
}

.business-choice-list a span {
    color: var(--sandal-muted);
    font-size: .88rem;
    font-weight: 500;
}

.platform-entry-card {
    display: grid;
    min-height: 10rem;
    padding: clamp(1.5rem, 5vw, 3rem);
    align-content: center;
    gap: .55rem;
    border-radius: 1.25rem;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgb(35 135 239 / 70%), transparent 18rem),
        linear-gradient(120deg, var(--sandal-navy), #063b82);
    box-shadow: 0 1rem 3rem rgb(0 28 77 / 18%);
    text-decoration: none;
}

.platform-entry-card .eyebrow { color: #8bc5ff; }
.platform-entry-card strong { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.platform-entry-card > span:last-child { color: #dbeaff; }

.platform-shell {
    background:
        linear-gradient(180deg, #eaf2fb 0, var(--sandal-surface) 24rem),
        var(--sandal-surface);
}

.platform-hero {
    border: 0;
    color: #fff;
    background:
        radial-gradient(circle at 92% 0%, rgb(35 135 239 / 65%), transparent 22rem),
        linear-gradient(135deg, var(--sandal-navy), #063b82);
    box-shadow: 0 1.25rem 3.5rem rgb(0 28 77 / 20%);
}

.platform-hero h1,
.platform-hero h2,
.platform-hero .status-card strong { color: #fff; }

.platform-hero .eyebrow { color: #8bc5ff; }
.platform-intro { max-width: 42rem; color: #dbeaff; }

.platform-hero .secondary {
    color: #fff;
    background: rgb(255 255 255 / 14%);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 28%);
}

.platform-boundary-notice {
    padding: 1rem;
    border: 1px solid rgb(139 197 255 / 55%);
    border-radius: .7rem;
    color: #eaf4ff;
    background: rgb(0 20 60 / 30%);
}

.platform-hero .status-card {
    border-color: rgb(255 255 255 / 18%);
    color: #dbeaff;
    background: rgb(255 255 255 / 9%);
}

.platform-hero .status-card h2 {
    color: #dbeaff;
    font-size: .9rem;
    font-weight: 650;
}

.platform-form-card { border-top: .3rem solid var(--sandal-blue); }

.status-pill {
    display: inline-flex;
    padding: .3rem .55rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 750;
}

.status-pill.is-active {
    color: #07513a;
    background: #dff6ec;
}

.status-pill.is-inactive {
    color: #704b00;
    background: #fff1c7;
}

.status-pill.is-pending {
    color: #064a98;
    background: #e1efff;
}

.status-pill.is-failed {
    color: #8a1f2f;
    background: #ffe5e9;
}

.compact-button {
    margin: 0;
    padding: .45rem .65rem;
    font-size: .82rem;
}

.link-button {
    margin: 0;
    padding: 0;
    color: #8b2525;
    background: transparent;
    text-decoration: underline;
}

.booking-shell { display: grid; }

.booking-frame {
    overflow: hidden;
    border: 1px solid #dce7f2;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1.25rem 4rem rgb(22 52 86 / 10%);
}

.booking-business-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem clamp(1rem, 4vw, 2rem);
    color: #fff;
    background: linear-gradient(120deg, #075fc8, #087cf0);
}

.booking-business-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    color: inherit;
    text-decoration: none;
}

.booking-business-brand strong,
.booking-business-brand small { display: block; }

.booking-business-brand small {
    margin-top: .15rem;
    opacity: .9;
}

.booking-default-logo {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.booking-business-logo {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .55rem;
    object-fit: contain;
    background: #fff;
}

.admin-logo-preview {
    display: block;
    width: min(16rem, 100%);
    max-height: 8rem;
    padding: .5rem;
    border: 1px solid #d8e2de;
    border-radius: .7rem;
    object-fit: contain;
}

.section-divider {
    margin: 2.5rem 0;
    border: 0;
    border-top: 1px solid #d8e2de;
}

.booking-login {
    padding: .55rem .8rem;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: .45rem;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.booking-frame-body {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    padding: clamp(1.25rem, 5vw, 3.25rem);
}

.booking-form-width > :not(.booking-progress) {
    width: min(42rem, 100%);
    margin-inline: auto;
}

.booking-heading {
    text-align: center;
}

.booking-heading h1 {
    margin-bottom: .55rem;
    color: #0d223d;
    font-size: clamp(1.8rem, 5vw, 2.75rem);
}

.booking-heading p:last-child {
    margin: 0;
    color: #4e6074;
}

.booking-frame button:not(.secondary):not(.duration-card) {
    background: linear-gradient(120deg, #0878ec, #0b66d7);
}

.booking-frame button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.booking-progress {
    display: grid;
    grid-template-columns: repeat(var(--booking-steps, 5), 1fr);
    gap: .5rem;
    padding: 0;
    list-style: none;
    font-size: .8rem;
}

.booking-progress li {
    display: grid;
    gap: .35rem;
    color: #577168;
}

.booking-progress > li > span:first-child {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid #9fb5ad;
    border-radius: 50%;
}

.booking-progress [aria-current="step"] {
    color: #086bd8;
    font-weight: 750;
}

.booking-progress [aria-current="step"] > span:first-child {
    color: #fff;
    border-color: #086bd8;
    background: #086bd8;
}

.booking-progress .is-complete > span:first-child {
    color: #fff;
    border-color: #247e62;
    background: #247e62;
}

.duration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 1rem;
}

.duration-card {
    display: grid;
    width: 100%;
    min-height: 14rem;
    text-decoration: none;
    margin: 0;
    padding: 1.25rem;
    gap: .8rem;
    place-content: center;
    border: 1px solid #dce6f0;
    color: #102540;
    background: #fff;
    box-shadow: 0 .55rem 1.5rem rgb(22 52 86 / 8%);
    text-align: center;
}

.duration-card:hover {
    border-color: #2585ed;
    transform: translateY(-2px);
}

.duration-card strong { font-size: 1.35rem; }

.duration-icon {
    width: 2.5rem;
    margin: 0 auto;
    fill: none;
    stroke: #0876e8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.duration-action {
    margin-top: .4rem;
    padding: .65rem 1rem;
    border-radius: .4rem;
    color: #fff;
    background: linear-gradient(120deg, #0878ec, #0b66d7);
}

.booking-trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e7edf3;
}

.booking-trust-row p {
    display: grid;
    gap: .2rem;
    margin: 0;
    color: #102540;
}

.booking-trust-row span {
    color: #607083;
    font-size: .9rem;
}

.date-time-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 5vw, 3rem);
}

.date-time-picker h2,
.customer-summary h2 {
    color: #102540;
    font-size: 1.05rem;
}

.date-form {
    padding: 1rem;
    border: 1px solid #d6e1ec;
    border-radius: .75rem;
    background: #f9fbfd;
}

.availability-note {
    display: flex;
    gap: .5rem;
    align-items: start;
    color: #557067;
    font-size: .88rem;
}

.availability-note > span {
    flex: 0 0 auto;
    width: .55rem;
    height: .55rem;
    margin-top: .25rem;
    border-radius: 50%;
    background: #24a668;
}

.slot-list {
    display: grid;
    max-height: 22rem;
    margin: 0;
    padding: 0 .35rem 0 0;
    gap: .55rem;
    overflow-y: auto;
    border: 0;
}

.slot-choice { margin: 0; }

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

.slot-choice span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem;
    border: 1px solid #cfdae6;
    border-radius: .45rem;
    color: #102540;
    background: #fff;
    cursor: pointer;
}

.slot-choice small { color: #607083; }

.slot-choice input:checked + span {
    border-color: #0878ec;
    color: #fff;
    background: #0878ec;
}

.slot-choice input:checked + span small { color: #eaf5ff; }

.slot-choice input:focus-visible + span {
    outline: 3px solid #e7ad2b;
    outline-offset: 2px;
}

.empty-state {
    padding: 1.25rem;
    border: 1px dashed #b8c8d8;
    border-radius: .65rem;
    color: #607083;
    background: #f9fbfd;
}

.booking-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.booking-actions .button,
.booking-actions button { margin-top: 0; }

.booking-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border: 1px solid #dce6f0;
    border-radius: .75rem;
}

.booking-summary div {
    padding: .9rem 1rem;
    border-bottom: 1px solid #e8eef4;
}

.booking-summary dt {
    color: #607083;
    font-size: .85rem;
}

.booking-summary dd {
    margin: .2rem 0 0;
    color: #102540;
}

.customer-summary {
    padding: 1rem;
    border-radius: .75rem;
    background: #f5f8fb;
}

.customer-summary p { margin: .35rem 0; }

.terms-check {
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid #d6e1ec;
    border-radius: .65rem;
}

.payment-amount {
    display: grid;
    gap: .4rem;
    padding: 1.5rem;
    border-radius: .75rem;
    color: #fff;
    background: linear-gradient(120deg, #0d6fe8, #075fc8);
}

.payment-amount strong { font-size: 2rem; }

.payment-options {
    display: grid;
    gap: 1rem;
}

.payment-options-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.payment-options-heading h2 {
    margin: 0;
    color: #102540;
    font-size: 1.15rem;
}

.secure-payment-note {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #247e62;
    font-size: .86rem;
    font-weight: 700;
}

.secure-payment-note > span {
    display: grid;
    width: 1.35rem;
    height: 1.35rem;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #247e62;
}

.payment-option-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.payment-option-list-single { grid-template-columns: 1fr; }

.payment-option-list form { margin: 0; }

.booking-frame .payment-provider-button {
    display: flex;
    width: 100%;
    min-height: 5.5rem;
    margin: 0;
    padding: 1rem 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .3rem;
    border: 1px solid transparent;
    border-radius: .75rem;
    box-shadow: 0 .45rem 1.25rem rgb(18 48 82 / 10%);
    text-align: left;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.booking-frame .payment-provider-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 .7rem 1.6rem rgb(18 48 82 / 14%);
}

.payment-provider-name { font-size: 1.05rem; }

.payment-provider-button small {
    color: inherit;
    font-weight: 500;
    opacity: .82;
}

.booking-frame button.payment-provider-vipps:not(.secondary) {
    color: #fff;
    background: #ff5b24;
}

.booking-frame .payment-provider-card {
    border-color: #c9d8e5;
    color: #102540;
    background: #fff;
}

.booking-frame .payment-provider-button:disabled {
    border-color: #dce5e2;
    color: #607083;
    background: #eef3f1;
    box-shadow: none;
}

.booking-frame .payment-change-button { margin: 0; }

.payment-navigation { margin-top: .25rem; }

.payment-navigation .muted {
    margin: 0;
    text-align: right;
}

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

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

@media (max-width: 48rem) {
    .auth-card { grid-template-columns: 1fr; }

    .auth-brand-panel,
    .auth-form-panel { padding: 2rem; }

    .auth-brand-panel h1 { font-size: 2.35rem; }

    .auth-security-note { display: none; }
}

@media (max-width: 42rem) {
    .details div { grid-template-columns: 1fr; gap: .3rem; }

    .data-list li { flex-direction: column; gap: .3rem; }

    .admin-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .resource-admin-list > li {
        align-items: stretch;
        flex-direction: column;
    }

    .brand-copy small { display: none; }

    .admin-shell .split-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .platform-hero h1 {
        font-size: clamp(1.45rem, 6.4vw, 1.6rem);
        letter-spacing: -.025em;
    }

    .booking-progress {
        grid-template-columns: 1fr;
    }

    .booking-progress li {
        grid-template-columns: 2rem 1fr;
        align-items: center;
    }

    .date-time-picker,
    .booking-summary,
    .booking-trust-row,
    .payment-option-list {
        grid-template-columns: 1fr;
    }

    .payment-options-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .booking-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .booking-actions .button,
    .booking-actions button { text-align: center; }

    .payment-navigation .muted { text-align: left; }

    .booking-business-header { align-items: flex-start; }
}
.company-fields {
    border: 1px solid var(--sandal-border);
    border-radius: 0.75rem;
    margin: 0;
    padding: 1rem;
}

@supports selector(form:has(input:checked)) {
    form:not(:has(input[name="business_purchase"]:checked)) .company-fields {
        display: none;
    }
}

/* Tenant onboarding uses the existing admin components. */
.setup-checklist { list-style: none; padding: 0; display: grid; gap: .7rem; }
.setup-checklist li { display: flex; align-items: baseline; gap: .65rem; }
.check-passed { color: #14634b; }
.check-missing { color: #815512; }
.capability-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: .8rem; }
.capability-grid .checkbox-label { display: flex; align-items: center; gap: .6rem; }
.capability-grid input[type=checkbox] { width: auto; flex-shrink: 0; }
#configuration fieldset { min-width: 0; margin: 0; padding: 1rem; border: 1px solid #dce3e8; border-radius: 10px; }
#configuration legend { font-weight: 700; padding: 0 .35rem; }
#configuration .booking-url { overflow-wrap: anywhere; }
.activation-action { margin-top: 1.5rem; }
.support-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
button:disabled { opacity: .5; cursor: not-allowed; }

/* Tenant access actions stay compact within their row. */
.table-action-form { margin: 0; }
button.danger, .button.danger { background: #b42332; color: #fff; }
button.danger:hover, .button.danger:hover { background: #8e1926; }
button.success { background: #16734c; color: #fff; }
.danger-notice { padding: 1rem; border: 1px solid #d66c77; border-radius: .65rem; background: #fff1f2; color: #7d1825; }
.danger-notice p:first-child { margin-top: 0; }
.danger-notice p:last-child { margin-bottom: 0; }

.administrator-removal h1, .danger-notice { overflow-wrap: anywhere; }

/* Shared palette for staff settings and calendar events. */
.staff-color-0 { --staff-accent: #2469c1; --staff-bg: #e3efff; }
.staff-color-1 { --staff-accent: #28806c; --staff-bg: #e1f2eb; }
.staff-color-2 { --staff-accent: #976513; --staff-bg: #fff0cf; }
.staff-color-3 { --staff-accent: #8057b2; --staff-bg: #eee5fa; }
.staff-color-4 { --staff-accent: #b5536b; --staff-bg: #fae5ec; }
.staff-color-5 { --staff-accent: #237d8b; --staff-bg: #dcf3f5; }
.staff-color-6 { --staff-accent: #a75f35; --staff-bg: #ffebdd; }
.staff-color-7 { --staff-accent: #64783e; --staff-bg: #edf2db; }
.staff-color-swatch { display: inline-block; width: 1.15rem; height: 1.15rem; flex: 0 0 1.15rem; border: 1px solid #fff; border-radius: 50%; background: var(--staff-accent); box-shadow: 0 0 0 1px var(--staff-accent); }
.staff-color-fieldset { min-width: 0; padding: 1rem; border: 1px solid #cbd9eb; border-radius: .7rem; }
.staff-color-fieldset legend { padding: 0 .35rem; font-weight: 700; }
.staff-color-fieldset .help-text { margin: 0 0 1rem; }
.staff-color-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .65rem; }
.staff-color-option { display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; margin: 0; padding: .6rem .7rem; border: 2px solid #e1e7ef; border-radius: .5rem; cursor: pointer; font-weight: 500; }
.staff-color-option input { width: 1rem; height: 1rem; margin: 0; padding: 0; accent-color: var(--staff-accent); flex: 0 0 1rem; }
.staff-color-option:has(input:checked) { border-color: var(--staff-accent); background: var(--staff-bg); }
.staff-color-option:focus-within { outline: 2px solid #10233f; outline-offset: 2px; }

/* Tenant appearance stays inside the business surface; the SANDAL header and status colors remain distinct. */
.tenant-theme { --sandal-blue: var(--profile-link, #0e6ed6); }
.tenant-theme button:not(.secondary):not(.duration-card):not(.payment-provider-button):not(.danger):not(.success):not(.link-button),
.tenant-theme .button:not(.secondary):not(.danger):not(.success),
.tenant-theme .duration-action { background: var(--profile-color, #0e6ed6); color: var(--profile-text, #fff); }
.tenant-theme button, .tenant-theme .button, .tenant-theme .duration-action { border-radius: var(--profile-radius, .55rem); }
.tenant-theme .booking-business-header { background: var(--profile-color, #0e6ed6); color: var(--profile-text, #fff); }
.tenant-theme .booking-login { color: inherit; border-color: currentColor; }
.tenant-theme .booking-progress [aria-current="step"] { color: var(--profile-link); }
.tenant-theme .booking-progress [aria-current="step"] > span:first-child { color: var(--profile-text); background: var(--profile-color); border-color: var(--profile-color); }
.tenant-theme .duration-icon { stroke: var(--profile-link); }
.tenant-theme .duration-card:hover { border-color: var(--profile-link); }
.tenant-theme input[type="checkbox"], .tenant-theme input[type="radio"] { accent-color: var(--profile-link); }
.tenant-theme .staff-color-option input { accent-color: var(--staff-accent); }
.tenant-theme .is-today .calendar-column-heading { background: var(--profile-soft); color: var(--profile-link); }
.tenant-theme .calendar-slot:hover, .tenant-theme .calendar-slot:focus-visible, .tenant-theme .calendar-month-day.is-today { background: var(--profile-soft); }
.calendar-business-brand { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.calendar-business-brand > div { min-width: 0; }
.calendar-business-brand > .booking-business-logo, .calendar-business-brand > .booking-default-logo { width: 3.5rem; height: 3.5rem; flex: 0 0 3.5rem; }
.calendar-business-brand > .booking-default-logo { color: var(--profile-link, #0e6ed6); }
.business-settings-form label { display: grid; gap: .5rem; }
.business-settings-card h1 { overflow-wrap: anywhere; }
@media (max-width: 600px) { .business-settings-card h1 { font-size: clamp(1.4rem, 6vw, 1.75rem); } }
.profile-settings { min-width: 0; padding: 1.25rem; border: 1px solid var(--sandal-border); border-radius: .75rem; margin: 1.5rem 0; }
.profile-settings legend { font-weight: 700; padding: 0 .4rem; }
.profile-settings label { display: grid; gap: .5rem; align-content: start; }
.profile-settings input[type="color"] { height: 3rem; min-height: 3rem; padding: .3rem; background: #fff; cursor: pointer; }
.profile-settings input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.profile-settings input[type="color"]::-webkit-color-swatch { border: 0; border-radius: .3rem; }
.profile-settings input[type="color"]::-moz-color-swatch { border: 0; border-radius: .3rem; }
.profile-preview { margin-top: 1.25rem; border: 1px solid var(--sandal-border); border-radius: .75rem; overflow: hidden; }
.profile-preview-heading { display: flex; align-items: center; gap: .8rem; padding: 1rem; background: var(--profile-color, #0e6ed6); color: var(--profile-text, #fff); }
.profile-preview-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; background: #fff; color: #10233f; }
.profile-preview-button { display: inline-block; padding: .7rem 1rem; background: var(--profile-color, #0e6ed6); color: var(--profile-text, #fff); border-radius: var(--profile-radius, .55rem); font-weight: 700; }
.registry-status { padding: 1rem; border-radius: .65rem; background: #f5f8fc; }
.registry-status .help-text { margin-top: 0; }
.registry-status small { display: block; margin-top: .5rem; }
.settings-logo-preview { color: var(--profile-link, #0e6ed6); }
.settings-logo-preview .booking-business-logo { width: min(16rem, 100%); height: 8rem; border: 1px solid var(--sandal-border); padding: .5rem; }
.settings-logo-preview .booking-default-logo { width: 4rem; height: 4rem; }
.tenant-theme .slot-choice input:checked + span { background: var(--profile-color); border-color: var(--profile-color); color: var(--profile-text); }
.tenant-theme .slot-choice input:checked + span small { color: inherit; }
.invitation-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.invitation-actions form { margin: 0; }
.invitation-actions button { white-space: nowrap; }

.invitation-cell-label { display:none; }
.invitation-table td { overflow-wrap:anywhere; }
@media (max-width: 48rem) {
    .invitation-table, .invitation-table tbody { display:block; }
    .invitation-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
    .invitation-table tbody { display:grid; gap:1rem; }
    .invitation-table tr { display:grid; grid-template-columns:minmax(0, 1fr); border:1px solid var(--sandal-border); border-radius:.6rem; padding:.5rem; }
    .invitation-table td { min-width:0; border:0; padding:.5rem; }
    .invitation-cell-label { display:block; color:var(--sandal-muted); font-size:.8rem; font-weight:700; margin-bottom:.3rem; }
}

.shared-calendar-hours { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--sandal-border); }
.shared-calendar-hours label { display: grid; gap: .5rem; }
