:root {
    color-scheme: light;
    --ink: #172033;
    --muted: #5f6c7d;
    --line: #d9e0ea;
    --surface: #ffffff;
    --surface-soft: #f7f8fb;
    --brand: #285f74;
    --brand-dark: #163f51;
    --accent: #c68b2c;
    --danger: #a34040;
    --ok: #3a7d5f;
    --requested: #d49b33;
    --queued: #4674b8;
    --reserved: #a24646;
    --blocked: #68717d;
    --focus: #1d6f8f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #eef3f5;
    color: var(--ink);
}

html.modal-open,
body.modal-open {
    overflow: hidden;
}

body.modal-open {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
}

.modal-open .country-code-menu,
.modal-open .birthdate-popup {
    display: none !important;
}

a {
    color: var(--brand-dark);
    font-weight: 700;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: 100vw;
    padding: 0.8rem clamp(1rem, 3vw, 2rem);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.45rem;
    background: var(--brand);
    color: #ffffff;
    font-weight: 800;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.9rem;
}

.top-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--brand-dark);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.board-header-session {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.55rem;
    padding: 0.25rem 0.45rem;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: var(--surface-soft);
}

.board-session-email {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.board-header-session form {
    display: inline-flex;
    margin: 0;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-height: 2.35rem;
    padding: 0.18rem;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: #ffffff;
}

.language-option {
    display: inline-grid;
    place-items: center;
    width: 2.15rem;
    height: 2rem;
    border: 0;
    border-radius: 0.35rem;
    background: transparent;
    cursor: pointer;
}

.language-option[aria-pressed="true"] {
    background: rgba(40, 95, 116, 0.1);
}

.language-option[aria-pressed="true"] .flag-icon {
    transform: scale(1.18);
}

.flag-icon {
    position: relative;
    display: inline-block;
    width: 1.45rem;
    height: 1rem;
    overflow: hidden;
    border-radius: 0.13rem;
    box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.16);
    transform: scale(0.92);
    transition: transform 150ms ease;
}

.flag-dk {
    background: #c8102e;
}

.flag-dk::before,
.flag-dk::after {
    content: "";
    position: absolute;
    background: #ffffff;
}

.flag-dk::before {
    top: 0;
    bottom: 0;
    left: 34%;
    width: 12%;
}

.flag-dk::after {
    top: 42%;
    left: 0;
    right: 0;
    height: 16%;
}

.flag-gb {
    background:
        linear-gradient(32deg, transparent 42%, #ffffff 42%, #ffffff 48%, #c8102e 48%, #c8102e 54%, #ffffff 54%, #ffffff 60%, transparent 60%),
        linear-gradient(148deg, transparent 42%, #ffffff 42%, #ffffff 48%, #c8102e 48%, #c8102e 54%, #ffffff 54%, #ffffff 60%, transparent 60%),
        linear-gradient(90deg, transparent 38%, #ffffff 38%, #ffffff 46%, #c8102e 46%, #c8102e 54%, #ffffff 54%, #ffffff 62%, transparent 62%),
        linear-gradient(0deg, transparent 34%, #ffffff 34%, #ffffff 44%, #c8102e 44%, #c8102e 56%, #ffffff 56%, #ffffff 66%, transparent 66%),
        #012169;
}

.flag-se {
    background:
        linear-gradient(90deg, transparent 28%, #fecc00 28%, #fecc00 40%, transparent 40%),
        linear-gradient(0deg, transparent 42%, #fecc00 42%, #fecc00 58%, transparent 58%),
        #006aa7;
}

.flag-no {
    background:
        linear-gradient(90deg, transparent 30%, #00205b 30%, #00205b 40%, transparent 40%),
        linear-gradient(0deg, transparent 43%, #00205b 43%, #00205b 57%, transparent 57%),
        linear-gradient(90deg, transparent 25%, #ffffff 25%, #ffffff 45%, transparent 45%),
        linear-gradient(0deg, transparent 36%, #ffffff 36%, #ffffff 64%, transparent 64%),
        #ba0c2f;
}

.flag-de {
    background:
        linear-gradient(180deg, #000000 0 33.333%, #dd0000 33.333% 66.666%, #ffce00 66.666% 100%);
}

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

.booking-shell {
    width: min(1180px, calc(100vw - 1.5rem));
    margin: 1rem auto 3rem;
}

.intro-band {
    display: block;
    gap: 1rem;
    align-items: end;
    padding: clamp(1.1rem, 3vw, 2rem) 0;
}

.eyebrow {
    margin: 0 0 0.35rem;
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    line-height: 1.1;
}

h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(2.35rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.15rem, 3vw, 1.45rem);
}

.lead {
    width: 100%;
    max-width: none;
    margin: 0.75rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
    max-width: 24rem;
}

.status-strip > span,
.panel-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 700;
}

.panel-chip.is-selected-chip {
    border-color: rgba(40, 95, 116, 0.42);
    background: rgba(40, 95, 116, 0.1);
    color: var(--brand-dark);
}

.status-chip {
    border-color: rgba(95, 108, 125, 0.28);
    background: rgba(95, 108, 125, 0.1);
    color: var(--muted);
}

.status-chip.is-pending {
    border-color: rgba(212, 155, 51, 0.38);
    background: rgba(212, 155, 51, 0.14);
    color: #7c5318;
}

.status-chip.is-ok {
    border-color: rgba(58, 125, 95, 0.34);
    background: rgba(58, 125, 95, 0.12);
    color: #235b41;
}

.status-chip.is-info {
    border-color: rgba(70, 116, 184, 0.34);
    background: rgba(70, 116, 184, 0.12);
    color: #294d93;
}

.status-chip.is-danger {
    border-color: rgba(163, 64, 64, 0.34);
    background: rgba(163, 64, 64, 0.11);
    color: #7c2828;
}

.flash-panel {
    position: fixed;
    top: calc(4.35rem + env(safe-area-inset-top, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    z-index: 90;
    width: min(24rem, calc(100vw - 2rem));
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 16px 38px rgba(23, 32, 51, 0.2);
    font-weight: 750;
    line-height: 1.45;
    transform: translateY(0);
    transition: opacity 180ms ease, transform 180ms ease;
}

.flash-panel[hidden] {
    display: none;
}

.flash-panel.is-ok {
    color: #235b41;
    background: #eef8f3;
    border-color: rgba(58, 125, 95, 0.34);
}

.flash-panel.is-danger {
    color: #7c2828;
    background: #f8eeee;
    border-color: rgba(163, 64, 64, 0.34);
}

.flash-panel.is-warning {
    color: #7c5318;
    background: #fff7e7;
    border-color: rgba(212, 155, 51, 0.42);
}

.flash-panel.is-info {
    color: #294d93;
    background: #eef4ff;
    border-color: rgba(70, 116, 184, 0.34);
}

.price-warning-banner,
.request-review-banner,
.delivery-warning-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    margin-bottom: 1rem;
}

.price-warning-banner {
    border-color: rgba(163, 64, 64, 0.34);
    background: rgba(163, 64, 64, 0.08);
}

.request-review-banner {
    border-color: rgba(59, 113, 184, 0.34);
    background: rgba(59, 113, 184, 0.08);
}

.delivery-warning-banner {
    border-color: rgba(163, 64, 64, 0.34);
    background: rgba(163, 64, 64, 0.08);
}

.price-warning-banner p,
.request-review-banner p,
.delivery-warning-banner p {
    margin: 0.25rem 0;
    color: var(--ink);
}

.price-warning-banner small {
    color: #7c2828;
    font-weight: 800;
}

.price-warning-icon,
.request-review-icon,
.delivery-warning-icon {
    display: inline-grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.45rem;
}

.delivery-retry-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.delivery-retry-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem;
    border: 1px solid rgba(163, 64, 64, 0.24);
    border-radius: 0.45rem;
    background: #ffffff;
}

.delivery-retry-row > span {
    display: grid;
    gap: 0.15rem;
}

.delivery-retry-row small {
    color: var(--muted);
}

.price-warning-icon {
    border: 1px solid rgba(163, 64, 64, 0.24);
    background: rgba(163, 64, 64, 0.1);
    color: #7c2828;
}

.delivery-warning-icon {
    border: 1px solid rgba(163, 64, 64, 0.24);
    background: rgba(163, 64, 64, 0.1);
    color: #7c2828;
}

.request-review-icon {
    border: 1px solid rgba(59, 113, 184, 0.24);
    background: rgba(59, 113, 184, 0.1);
    color: #285f74;
}

.request-review-reasons {
    display: grid;
    gap: 0.35rem;
    margin: 0.7rem 0 0;
    padding-left: 1.2rem;
}

.request-review-reasons li {
    font-weight: 800;
}

.request-review-reasons small {
    display: block;
    margin-top: 0.12rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.panel-help-button {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.panel-help-button:hover,
.panel-help-button:focus-visible {
    background: var(--surface-soft);
    outline: none;
}

.calendar-status-strip {
    justify-content: flex-start;
    max-width: none;
    margin-bottom: 1rem;
}

.dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: var(--muted);
}

.dot-requested {
    background: var(--requested);
}

.dot-queued {
    background: var(--queued);
}

.dot-reserved {
    background: var(--reserved);
}

.dot-blocked {
    background: var(--blocked);
}

.dot-partial {
    width: 1.1rem;
    border: 1px solid rgba(23, 32, 51, 0.16);
    border-radius: 999px;
    background: linear-gradient(to right, var(--ok) 0 50%, var(--reserved) 50% 100%);
}

.booking-form {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.25fr);
    gap: 1rem;
    align-items: start;
}

.booking-details-stack {
    grid-column: 2;
    display: grid;
    gap: 1rem;
    align-self: start;
}

.panel {
    padding: clamp(1rem, 2.4vw, 1.4rem);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: var(--surface);
    box-shadow: 0 10px 26px rgba(35, 54, 75, 0.07);
}

.calendar-panel {
    position: sticky;
    top: 5rem;
}

.panel-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-indicator {
    margin: 0 0 0.45rem;
}

.step-indicator span[aria-hidden="true"] {
    display: inline-grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border: 1px solid rgba(40, 95, 116, 0.25);
    border-radius: 999px;
    background: rgba(40, 95, 116, 0.1);
    color: var(--brand-dark);
    font-size: 0.85rem;
    font-weight: 900;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.full-span {
    grid-column: 1 / -1;
}

.field {
    display: grid;
    gap: 0.35rem;
    align-content: start;
}

.field-label {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 800;
}

.field-help {
    color: var(--muted);
    font-size: 0.85rem;
}

.calendar-picker-field {
    gap: 0.65rem;
}

.calendar-value-input {
    min-height: 2.7rem;
    background: var(--surface-soft);
    font-weight: 700;
}

.system-field {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.inline-calendar-frame {
    width: 100%;
}

.phone-field,
.birthdate-field {
    min-width: 0;
}

.phone-input-row {
    display: grid;
    grid-template-columns: minmax(5.3rem, auto) minmax(8rem, 1fr);
    gap: 0.45rem;
    align-items: center;
}

.phone-flag {
    width: 1.7rem;
    height: 1.15rem;
    transform: none;
}

.country-code-picker {
    position: relative;
    min-width: 0;
}

.country-code-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    min-height: 2.85rem;
    border: 1px solid #bfc9d6;
    border-radius: 0.4rem;
    padding: 0.58rem 0.68rem;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.country-code-trigger::after {
    content: "";
    width: 0;
    height: 0;
    border-inline: 0.28rem solid transparent;
    border-top: 0.34rem solid var(--muted);
}

.country-code-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.35rem);
    left: 0;
    width: min(18rem, calc(100vw - 2rem));
    max-height: 16rem;
    overflow: auto;
    padding: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(35, 54, 75, 0.18);
}

.country-code-menu button {
    display: grid;
    grid-template-columns: 1.5rem 3.2rem minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 2.55rem;
    border: 0;
    border-radius: 0.35rem;
    padding: 0.45rem 0.55rem;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.country-code-menu button:hover,
.country-code-menu button[aria-selected="true"] {
    background: rgba(40, 95, 116, 0.09);
}

.country-code-menu button span:nth-child(2) {
    font-weight: 800;
}

.phone-input-row input {
    min-width: 0;
}

.birthdate-field {
    position: relative;
}

.date-input-shell {
    position: relative;
    display: grid;
}

.date-input-shell input {
    padding-right: 2.75rem;
}

.date-input-shell > .lucide {
    position: absolute;
    top: 50%;
    right: 0.95rem;
    width: 1.1rem;
    height: 1.1rem;
    color: var(--muted);
    pointer-events: none;
    transform: translateY(-50%);
}

.birthdate-field input[data-birthdate-display] {
    cursor: pointer;
}

.birthdate-popup {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.birthdate-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 32, 51, 0.58);
}

.birthdate-dialog {
    position: relative;
    z-index: 1;
    width: min(39rem, 100%);
    padding: 1.35rem 1.25rem 1rem;
    border-radius: 0.04rem;
    background: #ffffff;
    box-shadow: 0 24px 62px rgba(23, 32, 51, 0.28);
}

.birthdate-dialog h3 {
    margin: 0 0 1.05rem;
    color: #0b0e13;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.1;
}

.date-wheel-dialog {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    box-shadow: 0 22px 60px rgba(35, 54, 75, 0.22);
}

.date-wheel-dialog .modal-header {
    margin-bottom: 0.95rem;
}

.date-wheel-dialog .modal-header h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
}

.birthdate-picker {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.65rem, 4vw, 1.65rem);
    padding: 0 2.1rem;
}

.birthdate-column {
    position: relative;
    display: grid;
    grid-template-rows: 1.35rem 7.2rem 1.35rem;
    gap: 0.25rem;
    min-width: 0;
}

.birthdate-column::before,
.birthdate-column::after {
    content: "";
    position: absolute;
    left: 0.12rem;
    right: 0.12rem;
    height: 1px;
    background: #79cdc7;
    pointer-events: none;
    z-index: 1;
}

.birthdate-column::before {
    top: 4rem;
}

.birthdate-column::after {
    top: 6.4rem;
}

.birthdate-column-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.birthdate-year-column {
    min-width: 0;
}

.birthdate-wheel {
    position: relative;
    display: block;
    height: 7.2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2.4rem 0;
    border: 0;
    background: #ffffff;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.birthdate-wheel::-webkit-scrollbar {
    display: none;
}

.birthdate-wheel-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.4rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #c8c9cc;
    cursor: pointer;
    font: inherit;
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    scroll-snap-align: center;
}

.birthdate-wheel-option:hover {
    background: transparent;
    color: #7c7f85;
    font-weight: 400;
    box-shadow: none;
}

.birthdate-wheel-option[aria-selected="true"] {
    background: transparent;
    color: #0b0e13;
    font-weight: 400;
    box-shadow: none;
    z-index: 2;
}

.stepper-button {
    display: grid;
    place-items: center;
    min-height: 1.35rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #79cdc7;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    line-height: 1;
}

.stepper-button span {
    display: block;
    width: 0.9rem;
    height: 0.9rem;
    border-top: 1px solid currentColor;
    border-left: 1px solid currentColor;
}

.stepper-button-up span {
    transform: translateY(0.2rem) rotate(45deg);
}

.stepper-button-down span {
    transform: translateY(-0.2rem) rotate(225deg);
}

.birthdate-actions {
    display: flex;
    justify-content: flex-end;
    gap: 2.2rem;
    margin-top: 1.05rem;
    padding-right: 0.55rem;
}

.birthdate-dialog-action {
    min-height: 2.3rem;
    border: 0;
    background: transparent;
    color: #009688;
    cursor: pointer;
    font: inherit;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
}

.date-wheel-actions {
    margin-top: 1.1rem;
}

.organization-question {
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: var(--surface-soft);
}

.organization-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(40, 95, 116, 0.22);
    border-radius: 0.45rem;
    background: rgba(40, 95, 116, 0.06);
}

input,
select,
textarea {
    width: 100%;
    min-height: 2.85rem;
    border: 1px solid #bfc9d6;
    border-radius: 0.4rem;
    padding: 0.72rem 0.8rem;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(29, 111, 143, 0.28);
    outline-offset: 2px;
}

.calendar-detail {
    margin: 1rem 0;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: var(--surface-soft);
    color: var(--muted);
    line-height: 1.5;
}

.calendar-detail strong {
    color: var(--ink);
}

.selected-date-list {
    display: grid;
    gap: 0.6rem;
}

.selected-period-item {
    display: grid;
    border: 1px solid var(--line);
    border-left: 0.32rem solid var(--ok);
    border-radius: 0.45rem;
    background: #ffffff;
    overflow: hidden;
}

.selected-period-item.has-queue-risk {
    border-left-color: var(--requested);
}

.selected-period-item.is-removing,
.selected-period-day.is-removing {
    border-color: #c7ced8;
    background: #edf0f4;
    color: var(--muted);
}

.selected-period-item.is-removing {
    border-left-color: var(--blocked);
}

.selected-period-item.is-removing .selected-period-summary {
    background: #edf0f4;
}

.selected-period-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: start;
    gap: 0.6rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.65rem 0.7rem;
    background: #ffffff;
    color: var(--ink);
}

.selected-period-primary {
    display: grid;
    gap: 0.22rem;
    min-width: 0;
}

.selected-period-title {
    min-width: 0;
    font-weight: 900;
    line-height: 1.25;
}

.selected-period-actions {
    display: grid;
    grid-template-columns: minmax(8rem, max-content) 2rem 2rem 2rem;
    align-items: center;
    justify-content: end;
    gap: 0.35rem;
    justify-self: end;
    width: max-content;
    max-width: 100%;
}

.selected-period-actions.is-removal-actions {
    grid-template-columns: minmax(5.5rem, max-content) 2rem 2rem 2rem;
}

.selected-period-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.selected-period-kind,
.selected-period-value,
.selected-period-removal-note,
.queue-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.65rem;
    padding: 0.2rem 0.4rem;
    border: 1px solid var(--line);
    border-radius: 0.32rem;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.selected-period-removal-note {
    border-color: rgba(104, 113, 125, 0.28);
    background: rgba(104, 113, 125, 0.1);
    color: var(--muted);
}

.selected-period-kind {
    min-height: 1.45rem;
    padding: 0.12rem 0.38rem;
    font-size: 0.74rem;
}

.selected-period-value {
    color: var(--ink);
}

.selected-period-kind {
    justify-self: start;
}

.selected-period-mode {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.queue-badge {
    border-color: rgba(70, 116, 184, 0.28);
    background: rgba(70, 116, 184, 0.1);
    color: #315a92;
}

.selected-period-select {
    width: 100%;
    min-width: 0;
    min-height: 2rem;
    padding: 0.28rem 0.5rem;
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
    text-align-last: center;
}

.selected-period-select option {
    text-align: center;
}

.icon-action,
.icon-action-placeholder {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    min-height: 2rem;
    border: 1px solid var(--line);
    border-radius: 0.35rem;
    background: #ffffff;
    color: var(--brand-dark);
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 900;
}

.icon-action-placeholder {
    visibility: hidden;
    border-color: transparent;
    background: transparent;
}

.icon-action:hover,
.icon-action:focus-visible {
    border-color: rgba(40, 95, 116, 0.35);
    background: var(--surface-soft);
    outline: none;
}

.icon-action .lucide {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
}

.icon-action.header-icon-action {
    width: 1.9rem;
    height: 1.9rem;
    min-height: 1.9rem;
    color: var(--brand-dark);
}

.selected-period-details {
    display: grid;
    gap: 0.7rem;
    padding: 0 0.75rem 0.75rem;
}

.selected-period-queue-note,
.selected-period-rule-note {
    margin: 0;
    padding: 0.65rem;
    border-radius: 0.4rem;
    font-weight: 700;
}

.selected-period-queue-note {
    border: 1px solid rgba(70, 116, 184, 0.26);
    background: rgba(70, 116, 184, 0.08);
    color: #315a92;
}

.selected-period-rule-note {
    border: 1px solid rgba(58, 125, 95, 0.26);
    background: rgba(58, 125, 95, 0.08);
    color: #235b41;
}

.selected-period-day-list {
    display: grid;
    gap: 0.5rem;
}

.selected-period-day {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto minmax(8rem, 0.8fr) minmax(2rem, auto);
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 0.42rem;
    background: var(--surface-soft);
}

.selected-period-day-actions {
    display: inline-flex;
    justify-content: flex-end;
    gap: 0.35rem;
}

.selected-period-day div {
    display: grid;
    gap: 0.15rem;
}

.selected-period-day-status {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.selected-date-period-field {
    display: grid;
    gap: 0.3rem;
}

.selected-date-period-field span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.summary-date-code {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.checkbox-row {
    display: flex;
    align-items: start;
    gap: 0.6rem;
    line-height: 1.45;
}

.checkbox-row input {
    width: 1.1rem;
    min-width: 1.1rem;
    height: 1.1rem;
    min-height: 1.1rem;
    margin-top: 0.16rem;
}

.queue-notice {
    margin-top: 1rem;
    padding: 0.9rem;
    border: 1px solid rgba(70, 116, 184, 0.28);
    border-radius: 0.45rem;
    background: rgba(70, 116, 184, 0.09);
}

.queue-notice p {
    margin: 0.35rem 0 0.7rem;
    color: var(--muted);
}

.calendar-help-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 1rem;
    overscroll-behavior: contain;
}

.calendar-help-modal[hidden] {
    display: none;
}

.modal-scrim {
    position: absolute;
    inset: 0;
    background: rgba(21, 32, 43, 0.42);
}

.modal-panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: min(720px, calc(100vh - 2rem));
    overflow: auto;
    overscroll-behavior: contain;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(35, 54, 75, 0.22);
}

.modal-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2rem;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.25;
}

.calendar-help-body {
    display: grid;
    gap: 0.75rem;
    color: var(--muted);
    line-height: 1.55;
}

.calendar-help-body p {
    margin: 0;
}

.calendar-help-examples {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1.2rem;
    color: var(--ink);
    font-weight: 700;
}

.calendar-help-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: -0.25rem;
}

.calendar-help-statuses > span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: #ffffff;
    color: var(--ink);
    font-weight: 800;
}

.consent-panel {
    display: grid;
    gap: 1rem;
}

.human-check {
    max-width: 18rem;
}

.recaptcha-check {
    max-width: 100%;
    align-items: flex-start;
}

.recaptcha-check .g-recaptcha {
    min-height: 4.9rem;
}

.primary-action,
.secondary-action {
    min-height: 2.8rem;
    border: 1px solid transparent;
    border-radius: 0.42rem;
    padding: 0.7rem 1rem;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.primary-action {
    background: var(--brand);
    color: #ffffff;
}

.primary-action:disabled,
.secondary-action:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.primary-action.is-async-loading,
.secondary-action.is-async-loading,
.icon-action.is-async-loading {
    cursor: wait;
}

.async-button-loader {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    margin-left: 0.45rem;
    align-items: center;
    justify-content: center;
}

.icon-action .async-button-loader {
    margin-left: 0;
}

.async-button-loader .lucide {
    width: 1rem;
    height: 1rem;
    animation: borgerhuset-spin 0.85s linear infinite;
}

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

.secondary-action {
    background: #ffffff;
    color: var(--brand-dark);
    border-color: #bfc9d6;
}

.form-error,
.form-success {
    padding: 0.85rem;
    border-radius: 0.45rem;
    line-height: 1.45;
}

.form-error {
    border: 1px solid rgba(163, 64, 64, 0.3);
    background: rgba(163, 64, 64, 0.09);
    color: #7c2828;
}

.form-success {
    border: 1px solid rgba(58, 125, 95, 0.3);
    background: rgba(58, 125, 95, 0.1);
    color: #235b41;
}

.review-shell {
    display: grid;
    gap: 1rem;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.review-grid h2 {
    margin-bottom: 1rem;
}

.review-notice {
    margin: 0;
}

.summary-list,
.flow-list {
    display: grid;
    gap: 0.75rem;
}

.summary-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-left: 0.28rem solid var(--brand);
    border-radius: 0.45rem;
    background: #ffffff;
}

.summary-item.has-queue-risk {
    border-left-color: var(--requested);
}

.summary-item strong,
.summary-item span {
    display: block;
}

.summary-item strong {
    margin-bottom: 0.2rem;
}

.queue-chip {
    margin-top: 0.35rem;
    border-color: rgba(48, 88, 164, 0.28);
    color: #294d93;
}

.definition-grid {
    display: grid;
    grid-template-columns: minmax(7rem, auto) minmax(0, 1fr);
    gap: 0.7rem 1rem;
    margin: 0;
}

.definition-grid dt {
    color: var(--muted);
    font-weight: 800;
}

.definition-grid dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.flow-list {
    margin: 0;
    padding-left: 1.3rem;
    line-height: 1.55;
}

.review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.review-queue-acknowledgement {
    flex: 1 0 100%;
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.refresh-action {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.45rem;
    text-decoration: none;
}

.received-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.status-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.status-overall {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.45rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: #ffffff;
    font-weight: 800;
    white-space: nowrap;
}

.status-panel-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-panel-header .support-note {
    margin-top: 0.45rem;
}

.status-list {
    display: grid;
    gap: 0.75rem;
}

.status-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: var(--surface-soft);
}

.status-row h3 {
    margin: 0;
    font-size: 1rem;
}

.status-row p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.status-detail-list {
    margin: 0.55rem 0 0;
    padding-left: 1.15rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.status-detail-list li + li {
    margin-top: 0.25rem;
}

.status-icon {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
}

.status-icon .lucide {
    width: 1.45rem;
    height: 1.45rem;
    stroke: currentColor;
}

.is-ok .status-icon {
    color: var(--ok);
}

.has-issue .status-icon {
    color: var(--danger);
}

.is-loading .status-icon {
    color: var(--accent);
}

.is-loading .status-icon .lucide {
    animation: status-spin 1s linear infinite;
}

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

.support-note {
    margin: 1rem 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.status-public-note {
    margin: 0;
}

.compact-form {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.secondary-compact-form {
    margin-top: 0.65rem;
}

.masked-email-box {
    display: grid;
    gap: 0.3rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: var(--surface-soft);
}

.masked-email-box strong {
    font-size: 1.08rem;
}

.otp-code-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(2.4rem, 3rem));
    gap: 0.45rem;
    max-width: 21rem;
}

.otp-code-box {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #bfccdc;
    border-radius: 0.45rem;
    background: #ffffff;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 900;
    text-align: center;
}

.otp-code-box:focus {
    border-color: var(--focus);
    outline: 3px solid rgba(29, 111, 143, 0.18);
}

.otp-code-box:disabled {
    background: #eef2f6;
    color: var(--muted);
    cursor: not-allowed;
}

.table-scroll {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 42rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 900;
}

.booking-page-shell {
    gap: 1rem;
    width: min(1680px, calc(100vw - 2rem));
}

.booking-page-intro {
    padding-bottom: 0.65rem;
}

.booking-status-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.booking-status-band strong {
    max-width: 34rem;
    line-height: 1.35;
    text-align: right;
}

.booking-status-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.booking-status-group .lucide,
.board-action-buttons .lucide,
.composer-actions .lucide,
.requester-cancel-open .lucide,
.danger-primary-action .lucide {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
}

.danger-primary-action:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.requester-cancel-open {
    margin-top: 0.9rem;
}

.requester-cancel-form {
    display: grid;
    gap: 0.9rem;
}

.cancellation-terms-card a {
    color: inherit;
    font-weight: 800;
}

.booking-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.42fr);
    gap: 1rem;
    align-items: start;
}

.board-booking-grid {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.45fr);
}

.board-booking-grid > .booking-main-panel {
    grid-column: 1;
}

.board-booking-grid > .booking-action-panel {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.board-booking-grid > .booking-side-panel {
    grid-column: 2;
}

.booking-main-panel {
    min-width: 0;
}

.booking-side-panel,
.booking-action-panel {
    min-width: 0;
}

.booking-action-panel {
    position: static;
}

.board-payment-update-panel {
    scroll-margin-top: 1rem;
}

.board-payment-update-panel.is-revealed {
    box-shadow: 0 0 0 2px rgba(40, 95, 116, 0.08), 0 1rem 2rem rgba(15, 23, 42, 0.08);
}

.board-payment-update-panel:focus {
    outline: 2px solid rgba(40, 95, 116, 0.3);
    outline-offset: 3px;
}

.booking-period-list,
.board-action-form,
.board-action-buttons,
.booking-timeline {
    display: grid;
    gap: 0.75rem;
}

.booking-period-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    min-height: 3.5rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-left: 0.28rem solid var(--requested);
    border-radius: 0.45rem;
    background: var(--surface-soft);
}

.booking-period-row strong,
.booking-period-row span {
    display: block;
}

.booking-period-row span:not(.panel-chip) {
    margin-top: 0.2rem;
    color: var(--muted);
    font-weight: 700;
}

.compact-definition-grid {
    grid-template-columns: minmax(6rem, auto) minmax(0, 1fr);
}

.booking-timeline {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.booking-timeline li {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
}

.timeline-dot {
    width: 0.72rem;
    height: 0.72rem;
    margin-top: 0.28rem;
    border-radius: 999px;
    background: var(--ok);
    box-shadow: 0 0 0 4px rgba(58, 125, 95, 0.1);
}

.booking-timeline strong,
.booking-timeline span {
    display: block;
}

.booking-timeline span {
    margin-top: 0.15rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.board-action-buttons {
    grid-template-columns: 1fr;
}

.board-action-buttons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
}

.danger-action {
    border-color: rgba(163, 64, 64, 0.32);
    color: #7c2828;
}

.danger-action:hover,
.danger-action:focus-visible {
    background: rgba(163, 64, 64, 0.07);
}

.danger-primary-action {
    border-color: #a34040;
    background: #a34040;
    color: #ffffff;
}

.danger-primary-action:hover,
.danger-primary-action:focus-visible {
    background: #8d3434;
}

.compact-panel-header {
    align-items: start;
}

.booking-status-header {
    align-items: flex-start;
}

.booking-status-header-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.55rem;
    min-width: 0;
}

.demo-link-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: flex-start;
}

.demo-link-strip a {
    text-decoration: none;
}

.board-decision-buttons {
    grid-template-columns: minmax(0, 1fr);
}

.board-action-button {
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.board-action-button.is-highlighted {
    min-height: 3.2rem;
    font-size: 1.02rem;
    box-shadow: 0 10px 24px rgba(35, 54, 75, 0.12);
}

.board-action-button:not(.is-highlighted) {
    min-height: 2.5rem;
    font-size: 0.92rem;
}

.board-action-hint {
    margin: 0;
}

.board-action-hint.is-ready {
    color: var(--ok);
}

.checkbox-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: var(--surface-soft);
    cursor: pointer;
}

.checkbox-card input {
    width: 1rem;
    min-width: 1rem;
    height: 1rem;
    min-height: 1rem;
    margin-top: 0.15rem;
}

.checkbox-card strong,
.checkbox-card small {
    display: block;
}

.checkbox-card small {
    margin-top: 0.18rem;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
}

.board-date-field {
    position: relative;
}

.board-date-popup .birthdate-dialog {
    width: min(32rem, 100%);
}

.board-date-popup .birthdate-backdrop {
    background: rgba(21, 32, 43, 0.42);
}

.board-date-dialog {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    box-shadow: 0 22px 60px rgba(35, 54, 75, 0.22);
}

.board-date-dialog .modal-header {
    margin-bottom: 0.95rem;
}

.board-date-dialog h3 {
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
}

.board-date-picker {
    padding-inline: 1.4rem;
}

.board-date-actions {
    margin-top: 1.1rem;
}

.board-status-dialog {
    width: min(32rem, calc(100vw - 2rem));
}

.compact-board-status-form {
    margin-top: 0.85rem;
}

.board-modal-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
}

.board-modal-actions button,
.board-modal-icon-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.board-modal-icon-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.primary-icon-action {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
}

.primary-icon-action:hover,
.primary-icon-action:focus-visible {
    background: var(--brand-dark);
    color: #ffffff;
}

.booking-period-table,
.booking-sheet-table {
    min-width: 54rem;
}

.table-subtext {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
}

.board-overview-panel {
    display: grid;
    gap: 0.85rem;
}

.board-overview-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.board-status-shortcut {
    color: var(--brand-dark);
    text-decoration: none;
}

.board-overview-note {
    margin: 0;
}

.board-overview-table {
    min-width: 58rem;
}

.board-overview-table tbody tr.is-clickable-row {
    cursor: pointer;
}

.board-overview-table tbody tr.is-clickable-row:hover td,
.board-overview-table tbody tr.is-clickable-row:focus-within td {
    background: rgba(40, 95, 116, 0.08);
}

.overview-status-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.overview-warning-icon {
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    color: #7c2828;
}

.overview-warning-icon .lucide {
    width: 1.05rem;
    height: 1.05rem;
}

.board-overview-table tr.has-price-warning td {
    border-top-color: rgba(163, 64, 64, 0.22);
    border-bottom-color: rgba(163, 64, 64, 0.22);
}

.board-overview-table tr.has-email-warning td {
    border-top-color: rgba(212, 155, 51, 0.28);
    border-bottom-color: rgba(212, 155, 51, 0.28);
}

.overview-warning-icon.is-email-warning {
    color: #a46d1f;
}

.board-overview-table tr.has-review-warning td {
    border-top-color: rgba(64, 111, 176, 0.28);
    border-bottom-color: rgba(64, 111, 176, 0.28);
}

.overview-warning-icon.is-review-warning {
    color: #406fb0;
}

.board-overview-table tr.has-delivery-warning td {
    border-top-color: rgba(163, 64, 64, 0.28);
    border-bottom-color: rgba(163, 64, 64, 0.28);
}

.overview-warning-icon.is-delivery-warning {
    color: #a34040;
}

.overview-delivery-retry {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.45rem;
}

.overview-delivery-retry-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
    max-width: 20rem;
}

.overview-delivery-summary {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.overview-delivery-summary strong,
.overview-delivery-summary small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-delivery-summary small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.overview-delivery-retry-button {
    width: 2.15rem;
    height: 2.15rem;
}

.overview-delivery-requeued {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.overview-delivery-requeued .lucide {
    width: 1rem;
    height: 1rem;
}

.board-overview-table tr.is-current-row td {
    background: rgba(58, 125, 95, 0.07);
}

.board-overview-table tr.is-current-row:hover td,
.board-overview-table tr.is-current-row:focus-within td {
    background: rgba(58, 125, 95, 0.14);
}

.board-overview-table tr.is-unsettled-row td {
    background: rgba(212, 155, 51, 0.1);
}

.board-overview-table tr.is-unsettled-row:hover td,
.board-overview-table tr.is-unsettled-row:focus-within td {
    background: rgba(212, 155, 51, 0.18);
}

.year-select-form {
    display: grid;
    grid-template-columns: auto minmax(7rem, auto) auto;
    gap: 0.45rem;
    align-items: center;
}

.year-select-form label {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 800;
}

.year-select-form select,
.year-select-form button {
    min-height: 2.35rem;
    padding-block: 0.42rem;
}

.booking-workbench-grid {
    display: grid;
    grid-template-columns: minmax(22rem, 0.92fr) minmax(0, 1.08fr);
    gap: 1rem;
    align-items: start;
}

.requester-workbench-grid {
    grid-template-columns: minmax(22rem, 0.85fr) minmax(0, 1.15fr);
}

.communication-panel,
.booking-management-column {
    min-width: 0;
}

.booking-management-column {
    display: grid;
    gap: 1rem;
}

.locked-composer,
.review-lock-note {
    border: 1px solid rgba(59, 113, 184, 0.22);
    border-radius: 0.45rem;
    background: rgba(59, 113, 184, 0.08);
}

.locked-composer {
    padding: 0.85rem;
}

.locked-composer p,
.review-lock-note {
    margin: 0;
    color: #285f74;
    font-weight: 800;
}

.review-lock-note {
    padding: 0.65rem 0.8rem;
}

.is-review-locked {
    opacity: 0.78;
}

.stacked-status-group {
    justify-content: flex-start;
    margin-top: 0.9rem;
}

.booking-status-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
    margin-top: 0;
}

.booking-status-details > span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.15rem;
    padding: 0.42rem 0.6rem;
    border: 1px solid rgba(40, 95, 116, 0.18);
    border-radius: 0.45rem;
    background: var(--surface-soft);
}

.booking-status-details .lucide {
    width: 1rem;
    height: 1rem;
    color: var(--brand);
}

.booking-status-details strong {
    font-size: 0.9rem;
    white-space: nowrap;
}

.editable-status-chip {
    padding-right: 0.25rem;
}

.inline-chip-action {
    display: inline-grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    min-height: 1.45rem;
    margin-left: 0.1rem;
    border: 1px solid rgba(40, 95, 116, 0.18);
    border-radius: 0.32rem;
    background: rgba(255, 255, 255, 0.7);
    color: currentColor;
    cursor: pointer;
}

.inline-chip-action:hover,
.inline-chip-action:focus-visible {
    background: #ffffff;
}

.inline-chip-action .lucide {
    width: 0.82rem;
    height: 0.82rem;
}

.icon-definition-grid {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.65rem 0.8rem;
}

.icon-definition-grid dt {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    background: var(--surface-soft);
    color: var(--brand-dark);
}

.icon-definition-grid .lucide {
    width: 1rem;
    height: 1rem;
}

.icon-definition-grid dd {
    align-self: center;
}

.contact-details-layout {
    display: grid;
    gap: 1rem 1.6rem;
    align-items: start;
}

.contact-details-layout.has-organization {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.95fr);
}

.organization-detail-group {
    display: grid;
    gap: 0.7rem;
}

.requester-organization-detail-group {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(40, 95, 116, 0.14);
}

.organization-detail-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    color: var(--brand-dark);
    font-size: 1rem;
    line-height: 1.25;
}

.organization-detail-title .lucide {
    width: 1rem;
    height: 1rem;
}

.contact-email-row,
.contact-type-chips,
.total-value-with-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
}

.contact-type-chips {
    justify-content: flex-end;
}

.total-value-with-status {
    justify-content: flex-end;
}

.contact-email-row .status-chip,
.total-value-with-status .status-chip {
    flex: 0 0 auto;
}

.message-composer {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.85rem;
    border: 1px solid rgba(40, 95, 116, 0.18);
    border-radius: 0.5rem;
    background: var(--surface-soft);
}

.composer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.composer-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.requester-message-composer .composer-actions {
    grid-template-columns: minmax(0, 1fr);
}

.composer-draft-status {
    margin: -0.2rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.composer-draft-status.is-restored {
    color: var(--brand-dark);
}

.composer-draft-status.is-saved {
    color: var(--ok);
}

.communication-timeline {
    position: relative;
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0 0 0 1.35rem;
    list-style: none;
}

.communication-timeline::before {
    content: "";
    position: absolute;
    top: 0.8rem;
    bottom: 0.8rem;
    left: 0.38rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--queued), var(--ok));
}

.communication-event {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.communication-event.is-history-loading .communication-marker {
    background: var(--queued);
    box-shadow: 0 0 0 2px rgba(70, 116, 184, 0.16);
}

.history-loading-card {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
}

.history-loading-card .async-button-loader {
    margin-left: 0;
    color: var(--brand);
}

.history-loading-card strong {
    font-size: 0.9rem;
}

.communication-marker {
    position: absolute;
    top: 0.9rem;
    left: -1.35rem;
    z-index: 1;
    width: 0.85rem;
    height: 0.85rem;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: var(--ok);
    box-shadow: 0 0 0 2px rgba(58, 125, 95, 0.16);
}

.tone-board .communication-marker,
.tone-requester .communication-marker {
    background: var(--queued);
    box-shadow: 0 0 0 2px rgba(70, 116, 184, 0.16);
}

.tone-system .communication-marker {
    background: var(--requested);
    box-shadow: 0 0 0 2px rgba(212, 155, 51, 0.16);
}

.communication-card {
    display: grid;
    gap: 0.5rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: #ffffff;
}

.tone-board .communication-card {
    border-color: rgba(70, 116, 184, 0.22);
    background: rgba(70, 116, 184, 0.07);
}

.communication-card.is-own-message .communication-meta {
    text-align: right;
}

.tone-requester .communication-card {
    border-color: rgba(40, 95, 116, 0.22);
    background: rgba(40, 95, 116, 0.06);
}

.communication-meta {
    display: grid;
    gap: 0.15rem;
}

.communication-meta strong,
.communication-meta span {
    display: block;
}

.communication-meta span {
    color: var(--muted);
    font-size: 0.86rem;
    font-style: italic;
    line-height: 1.35;
}

.communication-card p {
    margin: 0;
    color: var(--ink);
    line-height: 1.5;
}

.communication-system-action {
    display: grid;
    gap: 0.35rem;
    padding: 0.25rem 0 0.25rem 0.1rem;
}

.communication-system-action .communication-meta span {
    font-size: 0.82rem;
}

.communication-system-action p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.booking-date-editor-list {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.period-batch-form {
    display: grid;
    gap: 0;
}

.board-price-rule-note {
    margin: 0.75rem 0 0;
}

.booking-date-editor {
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-left: 0.28rem solid var(--requested);
    border-radius: 0.5rem;
    background: #ffffff;
}

.booking-date-editor.has-local-changes {
    border-color: rgba(198, 139, 44, 0.62);
    box-shadow: 0 0 0 3px rgba(198, 139, 44, 0.09);
}

.booking-date-editor-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: start;
}

.booking-date-editor-main {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.booking-date-editor-title {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.booking-date-editor-title strong {
    min-width: 0;
}

.booking-date-editor-title .icon-action {
    flex: 0 0 auto;
}

.booking-date-editor-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: flex-end;
}

.booking-date-editor-actions .icon-action {
    flex: 0 0 auto;
    text-decoration: none;
}

.booking-date-editor-main span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
}

.booking-date-editor-controls {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) minmax(6.5rem, 0.65fr) minmax(8.5rem, auto);
    gap: 0.55rem;
    align-items: end;
}

.period-type-field,
.period-price-field {
    display: grid;
    gap: 0.2rem;
}

.period-price-field {
    grid-template-columns: minmax(0, 1fr) auto;
}

.period-price-field > span:first-child,
.period-price-field .currency-input {
    grid-column: 1;
}

.period-type-field span,
.period-price-field span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.period-price-field em {
    margin-left: 0.2rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
    text-transform: none;
}

.period-type-field select,
.period-price-field input {
    min-height: 2.15rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.85rem;
    font-weight: 800;
}

.currency-input {
    position: relative;
    display: block;
}

.currency-input input {
    width: 100%;
    padding-right: 3.7rem;
}

.currency-input > span {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    pointer-events: none;
}

.period-price-field.is-price-changed .currency-input input {
    border-color: rgba(198, 139, 44, 0.78);
    background: rgba(198, 139, 44, 0.12);
}

.period-price-reset {
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
    width: 2.15rem;
    height: 2.15rem;
}

.period-cleaning-field {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.15rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: 0.35rem;
    background: var(--surface-soft);
    font-size: 0.82rem;
    font-weight: 800;
}

.period-cleaning-field input {
    width: 1rem;
    min-width: 1rem;
    height: 1rem;
    min-height: 1rem;
}

.period-force-price-field {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.6rem;
    border: 1px solid rgba(163, 64, 64, 0.24);
    border-radius: 0.35rem;
    background: rgba(163, 64, 64, 0.08);
    color: #7c2828;
    font-size: 0.82rem;
    font-weight: 800;
}

.period-force-price-field[hidden] {
    display: none;
}

.period-force-price-field input {
    width: 1rem;
    min-width: 1rem;
    height: 1rem;
    min-height: 1rem;
}

.inline-confirm-form {
    display: inline-flex;
    margin: 0;
}

.price-confirm-action,
.price-confirm-button {
    border-color: #235b41;
    background: #235b41;
    color: #ffffff;
}

.price-confirm-action:hover,
.price-confirm-action:focus-visible,
.price-confirm-button:hover,
.price-confirm-button:focus-visible {
    border-color: #18452f;
    background: #18452f;
    color: #ffffff;
}

.period-total-row,
.order-total-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(40, 95, 116, 0.2);
    border-radius: 0.45rem;
    background: rgba(40, 95, 116, 0.07);
}

.period-total-row {
    margin-top: 0.9rem;
}

.period-total-row .total-label,
.order-total-box .total-label {
    color: var(--muted);
    font-weight: 800;
}

.period-total-row strong,
.order-total-box strong {
    font-size: 1.1rem;
}

.recalculated-total {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--ok);
    font-weight: 900;
}

.period-batch-save-action {
    min-height: 2.25rem;
    padding: 0.4rem 0.65rem;
}

.compact-modal-field {
    margin-top: 0.8rem;
}

.standard-price-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.standard-price-card {
    display: grid;
    gap: 0.35rem;
    min-height: 4.6rem;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.standard-price-card strong {
    color: var(--ink);
    font-size: 0.8rem;
}

.standard-price-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.45rem;
}

.standard-price-line span {
    color: var(--muted);
    font-size: 0.74rem;
}

.standard-price-line b {
    color: var(--ink);
    font-size: 0.78rem;
    text-align: right;
}

.danger-icon-action {
    color: #7c2828;
}

.calendar-row-link {
    justify-self: start;
    font-size: 0.9rem;
}

.sheet-sync-panel {
    background: linear-gradient(180deg, #ffffff, var(--surface-soft));
}

.sync-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.sync-summary-grid > span {
    display: grid;
    gap: 0.15rem;
    min-height: 3.15rem;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: #ffffff;
}

.sync-summary-grid strong {
    font-size: 0.9rem;
}

.sync-summary-grid small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.booking-sheet-table {
    min-width: 50rem;
}

.is-cancelled-row td {
    color: var(--muted);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.is-cancelled-row a {
    color: var(--muted);
}

.flatpickr-calendar {
    border-radius: 0.5rem;
    box-shadow: 0 16px 42px rgba(35, 54, 75, 0.16);
}

.inline-calendar-frame .flatpickr-calendar.inline {
    top: 0;
    width: 100%;
    max-width: none;
    border: 1px solid var(--line);
    box-shadow: none;
}

.inline-calendar-frame .flatpickr-rContainer,
.inline-calendar-frame .flatpickr-days,
.inline-calendar-frame .dayContainer {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.inline-calendar-frame .flatpickr-months {
    position: relative;
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr) 2.2rem;
    align-items: center;
    min-height: 3.55rem;
    padding: 0.55rem 0.45rem 0.35rem;
}

.inline-calendar-frame .flatpickr-months .flatpickr-prev-month,
.inline-calendar-frame .flatpickr-months .flatpickr-next-month {
    position: static;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    color: var(--ink);
}

.inline-calendar-frame .flatpickr-months .flatpickr-prev-month {
    grid-column: 1;
}

.inline-calendar-frame .flatpickr-months .flatpickr-next-month {
    grid-column: 3;
}

.inline-calendar-frame .flatpickr-months .flatpickr-prev-month svg,
.inline-calendar-frame .flatpickr-months .flatpickr-next-month svg {
    width: 0.8rem;
    height: 0.8rem;
}

.inline-calendar-frame .flatpickr-months .flatpickr-month {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 2.55rem;
    overflow: visible;
}

.inline-calendar-frame .flatpickr-current-month {
    position: static;
    display: inline-grid;
    grid-template-columns: minmax(4.8rem, auto) 4.25rem;
    align-items: center;
    justify-content: center;
    column-gap: 0.25rem;
    width: auto;
    max-width: min(16rem, 100%);
    height: 2.3rem;
    margin: 0 auto;
    left: auto;
    padding: 0;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    transform: none;
}

.inline-calendar-frame .flatpickr-current-month .cur-month {
    margin: 0;
    padding: 0 0.15rem;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 2rem;
}

.inline-calendar-frame .flatpickr-current-month .flatpickr-monthDropdown-months {
    display: block;
    align-self: center;
    width: auto;
    min-width: 4.8rem;
    max-width: 6.4rem;
    height: 2rem;
    min-height: 2rem;
    margin: 0;
    padding: 0 1.2rem 0 0.2rem;
    border: 0;
    border-radius: 0.35rem;
    background-color: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 2rem;
    text-align: center;
    text-align-last: center;
    vertical-align: top;
}

.inline-calendar-frame .flatpickr-current-month .numInputWrapper {
    display: inline-flex;
    align-items: center;
    align-self: center;
    justify-content: flex-start;
    width: 4.25rem;
    height: 2rem;
    margin: 0;
    vertical-align: top;
}

.inline-calendar-frame .flatpickr-current-month input.cur-year {
    display: block;
    width: 100%;
    height: 2rem;
    min-height: 2rem;
    margin: 0;
    padding: 0 0.15rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 2rem;
    text-align: left;
    vertical-align: top;
}

.inline-calendar-frame .flatpickr-current-month .numInputWrapper span.arrowUp,
.inline-calendar-frame .flatpickr-current-month .numInputWrapper span.arrowDown {
    display: none;
}

.inline-calendar-frame .flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.inline-calendar-frame .flatpickr-current-month .numInputWrapper:hover {
    background: var(--surface-soft);
}

.inline-calendar-frame .flatpickr-weekdays {
    width: 100%;
    margin-top: 0.15rem;
}

.inline-calendar-frame .flatpickr-weekdaycontainer {
    width: 100%;
}

.flatpickr-day {
    position: relative;
    max-width: none;
    flex-basis: calc(100% / 7);
    height: 2.4rem;
    line-height: 2.4rem;
    border-radius: 0.4rem;
}

.flatpickr-day.has-status::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.16rem;
    width: 1.15rem;
    height: 0.34rem;
    overflow: hidden;
    border: 1px solid rgba(23, 32, 51, 0.18);
    border-radius: 999px;
    transform: translateX(-50%);
    background: var(--ok);
}

.flatpickr-day.has-queue-marker::after {
    content: "";
    position: absolute;
    left: calc(50% + 0.83rem);
    bottom: 0.2rem;
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 999px;
    transform: translateX(-50%);
    background: var(--queued);
    box-shadow: 0 0 0 1px #ffffff;
}

.flatpickr-day.status-requested::before {
    background: var(--requested);
}

.flatpickr-day.status-queued::before {
    background: var(--queued);
}

.flatpickr-day.status-reserved::before {
    background: var(--reserved);
}

.flatpickr-day.status-blocked::before {
    background: var(--blocked);
}

.flatpickr-day.status-partial::before {
    background: linear-gradient(to right, var(--ok) 0 50%, var(--ok) 50% 100%);
}

.flatpickr-day.status-partial.partial-booked-first.partial-status-requested::before {
    background: linear-gradient(to right, var(--requested) 0 50%, var(--ok) 50% 100%);
}

.flatpickr-day.status-partial.partial-booked-first.partial-status-queued::before {
    background: linear-gradient(to right, var(--queued) 0 50%, var(--ok) 50% 100%);
}

.flatpickr-day.status-partial.partial-booked-first.partial-status-reserved::before {
    background: linear-gradient(to right, var(--reserved) 0 50%, var(--ok) 50% 100%);
}

.flatpickr-day.status-partial.partial-booked-first.partial-status-blocked::before {
    background: linear-gradient(to right, var(--blocked) 0 50%, var(--ok) 50% 100%);
}

.flatpickr-day.status-partial.partial-booked-second.partial-status-requested::before {
    background: linear-gradient(to right, var(--ok) 0 50%, var(--requested) 50% 100%);
}

.flatpickr-day.status-partial.partial-booked-second.partial-status-queued::before {
    background: linear-gradient(to right, var(--ok) 0 50%, var(--queued) 50% 100%);
}

.flatpickr-day.status-partial.partial-booked-second.partial-status-reserved::before {
    background: linear-gradient(to right, var(--ok) 0 50%, var(--reserved) 50% 100%);
}

.flatpickr-day.status-partial.partial-booked-second.partial-status-blocked::before {
    background: linear-gradient(to right, var(--ok) 0 50%, var(--blocked) 50% 100%);
}

.flatpickr-day.has-segment-statuses::before {
    background: linear-gradient(
        to right,
        var(--calendar-first-part-color, var(--ok)) 0 50%,
        var(--calendar-second-part-color, var(--ok)) 50% 100%
    );
}

.flatpickr-day.status-reserved,
.flatpickr-day.status-blocked {
    color: #222b36;
    background: rgba(104, 113, 125, 0.08);
}

.legal-page {
    width: min(860px, calc(100vw - 1.5rem));
    margin: 2rem auto 4rem;
}

.legal-document {
    padding: clamp(1.2rem, 4vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(35, 54, 75, 0.07);
}

.legal-document h1 {
    max-width: 18ch;
}

.legal-document h2 {
    margin-top: 1.6rem;
}

.legal-document p {
    color: var(--muted);
    line-height: 1.65;
}

.privacy-consent {
    position: fixed;
    inset: auto 1rem 1rem;
    z-index: 30;
    display: flex;
    justify-content: center;
}

.privacy-consent-panel {
    width: min(680px, 100%);
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(35, 54, 75, 0.18);
}

.privacy-consent-panel h2 {
    font-size: 1.1rem;
}

.privacy-consent-panel p {
    color: var(--muted);
    line-height: 1.5;
}

.privacy-storage-list {
    display: grid;
    gap: 0.35rem;
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 1.45;
}

.privacy-storage-list li::marker {
    color: var(--brand);
}

.privacy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.75rem 0;
}

[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .board-header-session {
        justify-content: flex-start;
    }

    .top-links {
        justify-content: flex-start;
    }

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

    .review-grid {
        grid-template-columns: 1fr;
    }

    .status-strip {
        justify-content: flex-start;
        max-width: none;
    }

    .status-intro,
    .status-panel-header,
    .booking-status-band {
        align-items: stretch;
        flex-direction: column;
    }

    .booking-status-band strong {
        max-width: none;
        text-align: left;
    }

    .booking-page-grid,
    .board-booking-grid,
    .booking-workbench-grid,
    .requester-workbench-grid {
        grid-template-columns: 1fr;
    }

    .board-booking-grid > .booking-main-panel,
    .board-booking-grid > .booking-action-panel,
    .board-booking-grid > .booking-side-panel {
        grid-column: auto;
        grid-row: auto;
    }

    .booking-action-panel {
        position: static;
    }

    .communication-panel {
        position: static;
        max-height: none;
    }

    .status-overall {
        align-self: flex-start;
        white-space: normal;
    }

    .calendar-panel,
    .details-panel,
    .consent-panel,
    .booking-details-stack {
        position: static;
        grid-column: auto;
    }
}

@media (max-width: 1180px) {
    .booking-page-shell {
        width: min(100vw - 1.25rem, 1180px);
    }

    .booking-workbench-grid,
    .requester-workbench-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .booking-shell {
        width: min(100vw - 0.8rem, 1180px);
        margin-top: 0.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 1rem;
    }

    .panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .summary-item,
    .definition-grid,
    .contact-details-layout.has-organization,
    .booking-period-row {
        grid-template-columns: 1fr;
    }

    .received-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-strip > span {
        flex: 1 1 7.8rem;
    }

    .organization-fields,
    .selected-period-day {
        grid-template-columns: 1fr;
    }

    .selected-period-summary {
        grid-template-columns: 1fr;
    }

    .selected-period-actions {
        grid-template-columns: minmax(4.4rem, 1fr) 2rem 2rem 2rem;
        width: 100%;
    }

    .selected-period-kind,
    .selected-period-value,
    .selected-period-removal-note,
    .queue-badge {
        justify-self: start;
    }

    .phone-input-row {
        grid-template-columns: minmax(5rem, auto) minmax(0, 1fr);
    }

    .birthdate-dialog {
        padding: 1.1rem 0.9rem 0.8rem;
    }

    .birthdate-picker {
        gap: 0.55rem;
        padding: 0;
    }

    .birthdate-wheel-option {
        font-size: 1.35rem;
    }

    .birthdate-actions {
        gap: 1.2rem;
        padding-right: 0;
    }

    .privacy-consent {
        inset: auto 0.5rem 0.5rem;
    }

    .composer-actions,
    .booking-date-editor-controls,
    .standard-price-strip,
    .sync-summary-grid,
    .year-select-form {
        grid-template-columns: 1fr;
    }

    .booking-status-header-actions {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .booking-status-details {
        justify-content: flex-start;
    }

    .booking-date-editor-header {
        grid-template-columns: 1fr;
    }

    .booking-date-editor-actions {
        justify-content: flex-start;
    }
}
