/* Rendez-vous publics et suivi privé */
.booking-management,
.appointment-list-panel,
.today-appointments {
    margin-bottom: 18px;
}

.schedule-mobile-view-switch {
    display: none;
}

@media (max-width: 760px) {
    .schedule-mobile-view-switch {
        display: grid;
        gap: 10px;
        margin: 12px 0 16px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(3, 12, 24, .68);
    }

    .schedule-mobile-view-switch__choices {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .schedule-mobile-view-switch__choices button,
    .schedule-mobile-week-nav button {
        min-height: 44px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(8, 24, 42, .88);
        color: var(--muted);
        font: inherit;
        font-weight: 900;
        cursor: pointer;
    }

    .schedule-mobile-view-switch__choices button.is-active {
        border-color: var(--teal);
        background: rgba(36, 231, 213, .14);
        color: #fff;
        box-shadow: 0 0 0 1px rgba(36, 231, 213, .18);
    }

    .schedule-mobile-week-nav {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        align-items: center;
        gap: 7px;
    }

    .schedule-mobile-week-nav[hidden] {
        display: none;
    }

    .schedule-mobile-week-nav strong {
        color: #fff;
        font-size: .78rem;
        line-height: 1.3;
        text-align: center;
    }

    .schedule-mobile-week-nav button {
        color: var(--teal-soft);
        font-size: 1.5rem;
    }

    .schedule-calendar.schedule-calendar--week {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .schedule-head h1 {
        max-width: 100%;
        font-size: 2.35rem;
        overflow-wrap: anywhere;
    }

    .schedule-calendar:not(.schedule-calendar--week) {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .schedule-calendar:not(.schedule-calendar--week) .schedule-calendar__weekday--summary {
        display: none;
    }

    .schedule-calendar:not(.schedule-calendar--week) .schedule-week-summary {
        grid-column: 1 / -1;
        min-height: 0;
    }

    .schedule-calendar--week .schedule-calendar__weekday,
    .schedule-calendar--week .schedule-day--week-hidden,
    .schedule-calendar--week .schedule-week-summary--week-hidden {
        display: none;
    }

    .schedule-calendar--week .schedule-day {
        min-height: 112px;
        padding: 12px;
        border-radius: 8px;
    }

    .schedule-calendar--week .schedule-week-summary {
        min-height: 0;
    }

    .schedule-calendar--week .schedule-day--outside {
        opacity: .62;
    }

    .schedule-calendar--week .schedule-day__number small {
        max-width: none;
        overflow: visible;
        font-size: .78rem;
    }

    .schedule-calendar--week .schedule-day__number strong {
        font-size: 1.25rem;
    }

    .schedule-calendar--week .schedule-day__status {
        max-height: none;
        overflow: visible;
        font-size: .72rem;
    }

    .schedule-calendar--week .schedule-day__actual,
    .schedule-calendar--week .schedule-day__exception,
    .schedule-calendar--week .schedule-day__booking {
        display: inline-flex;
    }
}

.booking-management p,
.booking-page-settings p {
    margin: 6px 0 0;
    color: var(--muted);
}

.booking-page-state {
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
}

.booking-page-state--on {
    border-color: rgba(47, 230, 161, .55);
    color: var(--green);
}

.booking-page-state--off {
    border-color: rgba(255, 108, 88, .55);
    color: #ffaaa0;
}

.booking-management__grid {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 22px;
    margin-top: 18px;
}

.booking-management__side {
    display: grid;
    align-content: start;
    gap: 16px;
    min-width: 0;
}

.booking-poster-preview {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(3, 12, 24, .72);
}

.booking-poster-preview > div {
    display: grid;
    gap: 3px;
}

.booking-poster-preview small {
    color: var(--muted);
    line-height: 1.4;
}

.booking-poster-preview iframe {
    width: 100%;
    min-height: 500px;
    border: 0;
    border-radius: 8px;
    background: #e8edf2;
}

.booking-public-link {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(36, 231, 213, .38);
    border-radius: 10px;
    background: rgba(8, 45, 50, .22);
}

.booking-public-link canvas {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
}

.booking-public-link input {
    width: 100%;
    font-size: .78rem;
}

.booking-public-url-field {
    display: grid;
    gap: 5px;
    width: 100%;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
}

.booking-public-link__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.booking-page-settings {
    display: grid;
    align-content: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.booking-page-settings > label:not(.booking-page-toggle) {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 800;
}

.booking-page-settings > label:first-of-type,
.booking-page-toggle,
.booking-confirmation-mode,
.booking-page-settings .legal-note {
    grid-column: 1 / -1;
}

.booking-page-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.booking-page-toggle input {
    width: 21px;
    height: 21px;
    accent-color: var(--teal);
}

.booking-confirmation-mode {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(3, 12, 24, .32);
}

.booking-confirmation-mode legend {
    padding: 0 6px;
    color: #fff;
    font-size: .9rem;
    font-weight: 900;
}

.booking-confirmation-choice {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.booking-confirmation-choice > input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.booking-confirmation-choice__card {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 104px;
    padding: 15px 42px 15px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(4, 12, 24, .82);
    color: #fff;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.booking-confirmation-choice__card::after {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 15px;
    height: 15px;
    border: 2px solid #64748b;
    border-radius: 50%;
    background: transparent;
    box-shadow: inset 0 0 0 3px rgba(4, 12, 24, .9);
}

.booking-confirmation-choice__icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(36, 231, 213, .22);
    border-radius: 12px;
    background: rgba(36, 231, 213, .08);
    font-size: 1.35rem;
}

.booking-confirmation-choice__copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.booking-confirmation-choice__copy strong {
    color: #fff;
    font-size: 1rem;
    line-height: 1.2;
}

.booking-confirmation-choice__copy small {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.45;
}

.booking-confirmation-choice:hover .booking-confirmation-choice__card {
    border-color: rgba(36, 231, 213, .52);
    transform: translateY(-1px);
}

.booking-confirmation-choice > input[type="radio"]:focus-visible + .booking-confirmation-choice__card {
    outline: 3px solid rgba(36, 231, 213, .32);
    outline-offset: 3px;
}

.booking-confirmation-choice > input[type="radio"]:checked + .booking-confirmation-choice__card {
    border-color: var(--teal);
    background: linear-gradient(135deg, rgba(36, 231, 213, .18), rgba(4, 12, 24, .92));
    box-shadow: 0 0 0 2px rgba(36, 231, 213, .1), 0 12px 28px rgba(0, 0, 0, .2);
}

.booking-confirmation-choice > input[type="radio"]:checked + .booking-confirmation-choice__card::after {
    border-color: var(--teal);
    background: var(--teal);
    box-shadow: inset 0 0 0 3px #061426, 0 0 12px rgba(36, 231, 213, .42);
}

.booking-confirmation-choice > input[type="radio"]:checked + .booking-confirmation-choice__card .booking-confirmation-choice__icon {
    border-color: rgba(36, 231, 213, .62);
    background: rgba(36, 231, 213, .18);
}

.booking-page-toggle span {
    display: grid;
}

.booking-page-toggle small {
    color: var(--muted);
}

.schedule-day__appointment {
    padding: 3px 6px;
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 900;
}

.schedule-day__appointment--confirmed {
    background: #b9ffe4;
    color: #063c2a;
}

.schedule-day__appointment--pending {
    background: #ffe3a0;
    color: #563600;
}

.appointment-list {
    display: grid;
    gap: 10px;
}

.appointment-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 13px;
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: 8px;
    background: rgba(3, 12, 24, .68);
}

.appointment-row--confirmed {
    border-left-color: var(--green);
}

.appointment-row--pending_email {
    border-left-color: var(--amber);
}

.appointment-row--pending_owner {
    border-left-color: #58a6ff;
}

.appointment-row__time {
    display: grid;
    color: var(--muted);
}

.appointment-row__time strong {
    color: var(--teal-soft);
    font-size: 1.2rem;
}

.appointment-row > div:nth-child(2) {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.appointment-row a,
.appointment-row small {
    overflow-wrap: anywhere;
}

.appointment-status {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    white-space: nowrap;
}

.appointment-status--confirmed {
    background: rgba(47, 230, 161, .16);
    color: var(--green);
}

.appointment-status--pending_email {
    background: rgba(255, 188, 46, .16);
    color: var(--amber);
}

.appointment-status--pending_owner {
    background: rgba(88, 166, 255, .16);
    color: #8fc4ff;
}

.appointment-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.appointment-row__actions form {
    margin: 0;
}

.appointment-notification-warning {
    grid-column: 1 / -1;
    padding: 8px 10px;
    border: 1px solid rgba(255, 188, 46, .45);
    border-radius: 7px;
    background: rgba(255, 188, 46, .09);
    color: #ffe3a0;
}

.appointments-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    border-bottom: 1px solid var(--line);
}

.appointments-tab {
    display: grid;
    gap: 3px;
    min-width: 150px;
    padding: 13px 16px 12px;
    border: 1px solid transparent;
    border-bottom: 3px solid transparent;
    color: var(--muted);
    text-decoration: none;
}

.appointments-tab strong {
    color: inherit;
}

.appointments-tab small {
    color: var(--muted-2);
}

.appointments-tab:hover,
.appointments-tab.is-active {
    border-color: var(--line);
    border-bottom-color: var(--teal);
    background: rgba(36, 231, 213, .08);
    color: #fff;
}

.appointments-tab.is-active small {
    color: var(--teal-soft);
}

.appointments-public-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(36, 231, 213, .35);
    border-radius: 10px;
    background: rgba(8, 45, 50, .24);
}

.appointments-public-status h2,
.appointments-public-status p {
    margin: 0;
}

.appointments-public-status h2 {
    margin-top: 4px;
}

.appointments-public-status p:not(.eyebrow) {
    max-width: 760px;
    margin-top: 6px;
    color: var(--muted);
}

.appointments-public-status__actions,
.appointment-calendar__navigation,
.appointment-calendar__views {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.appointments-public-status__actions {
    justify-content: flex-end;
}

.appointment-calendar-panel__head {
    align-items: flex-end;
}

.appointment-calendar-panel__head p:not(.eyebrow) {
    margin: 5px 0 0;
    color: var(--muted);
}

.appointment-calendar__views {
    margin: 18px 0;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 12, 24, .66);
}

.appointment-calendar__views a {
    min-width: 86px;
    padding: 9px 13px;
    border-radius: 6px;
    color: var(--muted);
    text-align: center;
    text-decoration: none;
    font-weight: 900;
}

.appointment-calendar__views a:hover,
.appointment-calendar__views a.is-active {
    background: rgba(36, 231, 213, .16);
    color: #fff;
}

.appointment-calendar--week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.appointment-calendar__column {
    min-width: 0;
    min-height: 250px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 12, 24, .58);
    overflow: hidden;
}

.appointment-calendar__column.is-today,
.appointment-calendar__day.is-today {
    border-color: rgba(36, 231, 213, .7);
    box-shadow: inset 0 3px 0 var(--teal);
}

.appointment-calendar__column > header,
.appointment-calendar__day > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 24, 42, .72);
}

.appointment-calendar__column > header span {
    color: var(--muted);
    font-size: .78rem;
    text-transform: uppercase;
}

.appointment-calendar__column > header strong,
.appointment-calendar__day > header strong {
    color: #fff;
    font-size: 1.2rem;
}

.appointment-calendar__column-events,
.appointment-calendar__day-events {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.appointment-calendar__empty {
    margin: 18px 0;
    color: var(--muted-2);
    font-size: .82rem;
    text-align: center;
}

.appointment-calendar-event {
    display: grid;
    gap: 2px;
    padding: 9px;
    border-left: 3px solid var(--teal);
    border-radius: 6px;
    background: rgba(36, 231, 213, .1);
    color: #fff;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.appointment-calendar-event:hover {
    background: rgba(36, 231, 213, .18);
}

.appointment-calendar-event strong {
    color: var(--teal-soft);
    font-size: .82rem;
}

.appointment-calendar-event span,
.appointment-calendar-event small {
    color: var(--muted);
}

.appointment-calendar-event--pending_owner {
    border-left-color: #58a6ff;
    background: rgba(88, 166, 255, .12);
}

.appointment-calendar-event--pending_email {
    border-left-color: var(--amber);
    background: rgba(255, 188, 46, .12);
}

.appointment-calendar--month {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.appointment-calendar__weekday {
    padding: 10px 8px;
    background: rgba(8, 24, 42, .9);
    color: var(--muted);
    font-size: .76rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.appointment-calendar__day {
    min-height: 120px;
    background: rgba(3, 12, 24, .7);
}

.appointment-calendar__day.is-outside {
    opacity: .5;
}

.appointment-calendar__day > header {
    padding: 8px 10px;
}

.appointment-calendar__day > header span {
    display: inline-grid;
    min-width: 20px;
    min-height: 20px;
    place-items: center;
    border-radius: 999px;
    background: rgba(36, 231, 213, .18);
    color: var(--teal-soft);
    font-size: .72rem;
}

.appointment-calendar__day-events {
    padding: 7px;
    gap: 5px;
}

.appointment-calendar--month .appointment-calendar-event {
    display: block;
    padding: 5px 6px;
    font-size: .72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.appointment-calendar--month .appointment-calendar-event strong {
    font-size: .7rem;
}

.appointment-calendar__day-events > small {
    color: var(--muted-2);
    font-size: .72rem;
}

.appointment-day-heading {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 4px 0 14px;
}

.appointment-day-heading span,
.appointment-day-heading small {
    color: var(--muted);
}

.appointment-day-heading strong {
    color: #fff;
    font-size: 2rem;
}

.appointment-timeline {
    display: grid;
    gap: 10px;
}

.appointment-timeline__item {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 15px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--teal);
    border-radius: 8px;
    background: rgba(3, 12, 24, .68);
}

.appointment-timeline__item--pending_owner {
    border-left-color: #58a6ff;
}

.appointment-timeline__item--pending_email {
    border-left-color: var(--amber);
}

.appointment-timeline__item > div:nth-child(2) {
    display: grid;
    gap: 3px;
}

.appointment-timeline__item > div:nth-child(2) span,
.appointment-timeline__item > div:nth-child(2) small {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.appointment-availability-panel {
    margin-bottom: 18px;
}

.appointment-availability-month {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.appointment-availability-week-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
}

.appointment-availability-heading > div {
    width: 100%;
}

.appointment-availability-week-navigation strong {
    min-width: 240px;
    color: var(--text);
    font-size: .92rem;
    text-align: center;
}

.appointment-availability-editor {
    display: grid;
    grid-template-columns: 1fr;
    align-items: end;
    gap: 12px;
    margin: 18px 0;
    padding: 15px;
    border: 1px solid rgba(36, 231, 213, .3);
    border-radius: 8px;
    background: rgba(8, 45, 50, .18);
}

.appointment-availability-editor__toggle,
.appointment-availability-row__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.appointment-availability-editor__toggle span {
    display: grid;
    gap: 3px;
}

.appointment-availability-editor__toggle small {
    color: var(--muted);
}

.appointment-availability-list {
    display: grid;
    gap: 8px;
}

.appointment-availability-row {
    display: grid;
    grid-template-columns: 150px minmax(260px, 1fr) minmax(260px, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 12, 24, .62);
}

.appointment-availability-row.is-disabled {
    opacity: .65;
}

.appointment-availability-row__period {
    color: var(--teal-soft);
    font-size: .8rem;
    font-weight: 900;
}

.appointment-availability-row__date {
    display: grid;
    gap: 5px;
    align-content: center;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
    text-align: center;
}

.appointment-availability-row__date strong {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.1;
}

.appointment-availability-row__date input {
    text-align: center;
}

.appointment-availability-row__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.appointment-availability-row.is-saving {
    opacity: .65;
    pointer-events: none;
}

.appointment-availability-row__actions > button {
    flex: 0 1 auto;
}

.appointment-availability-row__status {
    flex: 1 0 100%;
    min-width: 0;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.appointment-availability-row__status:empty {
    display: none;
}

.appointment-availability-row__status.is-success {
    color: var(--teal-soft);
}

.appointment-availability-row__status.is-error {
    color: #ff9b8e;
}

.appointment-availability-period {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    align-items: end;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(8, 24, 42, .56);
}

.appointment-availability-period legend {
    grid-column: 1 / -1;
    padding: 0 4px;
    color: #fff;
    font-weight: 900;
}

.appointment-availability-period label {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 900;
}

.appointment-availability-period__toggle {
    display: flex !important;
    align-items: center;
    min-height: 40px;
    color: var(--teal-soft) !important;
}

.appointment-availability-period--morning {
    border-color: rgba(88, 166, 255, .35);
}

.appointment-availability-period--afternoon {
    border-color: rgba(255, 188, 46, .35);
}

.appointment-availability-row__toggle span {
    color: var(--teal-soft);
    font-size: .8rem;
    font-weight: 900;
}

@media (max-width: 760px) {
    .appointments-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .appointments-tab {
        min-width: 0;
    }

    .appointments-public-status,
    .appointment-calendar-panel__head {
        align-items: stretch;
        flex-direction: column;
    }

    .appointments-public-status__actions,
    .appointment-calendar__navigation {
        justify-content: flex-start;
    }

    .appointment-calendar--week {
        grid-template-columns: 1fr;
    }

    .appointment-calendar__column {
        min-height: 0;
    }

    .appointment-calendar__column-events {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .appointment-calendar--month {
        min-width: 620px;
    }

    .appointment-calendar-panel {
        overflow-x: auto;
    }

    .appointment-timeline__item {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .appointment-timeline__item .appointment-status {
        grid-column: 1 / -1;
        width: fit-content;
    }

    .appointment-availability-month,
    .appointment-availability-week-navigation,
    .appointment-availability-editor {
        align-items: center;
        grid-template-columns: 1fr;
    }

    .appointment-availability-week-navigation strong {
        min-width: 0;
        flex: 1;
    }

    .appointment-availability-editor__toggle,
    .appointment-availability-editor > button {
        grid-column: 1 / -1;
    }

    .appointment-availability-row {
        grid-template-columns: 1fr;
    }

    .appointment-availability-period {
        grid-template-columns: auto 1fr 1fr;
    }

    .appointment-availability-row__actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .appointment-availability-row__actions > button {
        flex: 1 1 auto;
        width: auto;
    }
}

.booking-public-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(36, 231, 213, .14), transparent 36%),
        var(--bg);
}

.booking-public-shell {
    width: min(820px, calc(100% - 28px));
    margin: 0 auto;
    padding: 38px 0;
}

.booking-public-card {
    padding: clamp(20px, 5vw, 42px);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.booking-public-head {
    text-align: center;
}

.booking-public-head img {
    width: min(320px, 90%);
    height: auto;
    margin-bottom: 20px;
}

.booking-public-head h1 {
    margin: 5px 0 12px;
    font-size: clamp(2rem, 7vw, 3.5rem);
    line-height: 1.04;
}

.booking-public-head p:not(.eyebrow) {
    max-width: 650px;
    margin: 0 auto;
    color: var(--muted);
}

.booking-public-feedback,
.booking-public-empty {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-align: center;
}

.booking-public-feedback p,
.booking-public-empty p {
    margin: 5px 0 0;
    color: var(--muted);
}

.booking-public-feedback--success {
    border-color: rgba(47, 230, 161, .58);
    background: rgba(47, 230, 161, .09);
}

.booking-public-feedback--error,
.booking-verification--error {
    border-color: rgba(255, 108, 88, .58);
}

.booking-public-form {
    display: grid;
    gap: 22px;
    margin-top: 26px;
}

.booking-slot-groups {
    display: grid;
    gap: 13px;
    max-height: 460px;
    padding-right: 4px;
    overflow-y: auto;
}

.booking-slot-group {
    margin: 0;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.booking-slot-group legend {
    padding: 0 6px;
    font-weight: 900;
}

.booking-slot-group > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.booking-slot {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.booking-slot input {
    position: absolute;
    opacity: 0;
}

.booking-slot span {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}

.booking-slot input:checked + span,
.booking-slot input:focus-visible + span {
    border-color: var(--teal);
    background: rgba(36, 231, 213, .15);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(36, 231, 213, .15);
}

.booking-slot:hover span {
    border-color: var(--teal);
    color: #fff;
}

.booking-slot--taken {
    cursor: not-allowed;
}

.booking-slot--taken span {
    border-color: rgba(255, 92, 84, .72);
    background: rgba(255, 92, 84, .14);
    color: #ffaaa2;
}

.booking-slot--taken small {
    display: block;
    margin-top: 2px;
    color: #ff6d62;
    font-size: .66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.booking-reserved-slot {
    display: grid;
    gap: 5px;
    margin-top: 24px;
    padding: 18px;
    border: 2px solid rgba(255, 92, 84, .82);
    border-radius: 10px;
    background: rgba(255, 92, 84, .13);
    color: #ffd9d4;
    text-align: center;
}

.booking-reserved-slot > span {
    color: #ff7168;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.booking-reserved-slot strong {
    color: #fff;
    font-size: 1.25rem;
}

.booking-reserved-slot small {
    color: #ffb4ad;
}

.booking-dialog {
    width: min(620px, calc(100% - 24px));
    max-height: min(760px, calc(100vh - 24px));
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--text);
    background: var(--surface-strong);
    box-shadow: 0 24px 90px rgba(0, 0, 0, .65);
}

.booking-dialog::backdrop {
    background: rgba(0, 4, 12, .78);
}

.booking-dialog__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
}

.booking-dialog__head h2 {
    margin: 4px 0 0;
}

.booking-dialog__close {
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.booking-dialog__close:hover {
    border-color: var(--teal);
    color: var(--text);
}

.booking-dialog__selected {
    display: grid;
    gap: 4px;
    margin: 18px 22px;
    padding: 13px;
    border: 1px solid rgba(36, 231, 213, .38);
    border-radius: 8px;
    background: rgba(36, 231, 213, .08);
}

.booking-dialog__selected span {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.booking-dialog__selected strong {
    color: var(--teal);
}

.booking-dialog .booking-contact-fields {
    padding: 0 22px;
}

.booking-dialog .booking-submit {
    width: calc(100% - 44px);
    margin: 20px 22px 0;
}

.booking-dialog .booking-privacy {
    padding: 0 22px 20px;
}

.booking-contact-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.booking-contact-fields label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 800;
}

.booking-contact-fields label:last-of-type,
.booking-contact-fields textarea {
    grid-column: 1 / -1;
}

.booking-contact-fields small,
.booking-privacy {
    color: var(--muted-2);
    font-size: .76rem;
}

.booking-honeypot {
    position: absolute !important;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.booking-submit {
    min-height: 54px;
}

.booking-privacy {
    margin: -10px 0 0;
    text-align: center;
}

.booking-verification {
    margin-top: 8vh;
}

.booking-verification--success {
    border-color: rgba(47, 230, 161, .65);
}

@media (max-width: 760px) {
    .booking-management__grid,
    .booking-page-settings,
    .booking-contact-fields {
        grid-template-columns: 1fr;
    }

    .booking-page-settings > *,
    .booking-contact-fields > * {
        grid-column: 1 !important;
    }

    .appointment-row {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .appointment-status {
        grid-column: 1 / -1;
        width: fit-content;
    }

    .appointment-row__actions {
        grid-column: 1 / -1;
    }

    .booking-public-shell {
        width: min(100% - 18px, 820px);
        padding: 10px 0;
    }

    .booking-public-card {
        padding: 20px 14px;
    }

    .booking-slot-group > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


.schedule-head {
    align-items: flex-end;
}

.schedule-head p:not(.eyebrow),
.schedule-rhythm p,
.schedule-dialog__hint {
    margin: 6px 0 0;
    color: var(--muted);
}

.schedule-month-nav {
    display: grid;
    grid-template-columns: 54px 54px minmax(260px, 1fr) 54px 54px;
    align-items: center;
    gap: 10px;
    min-width: 550px;
}

.schedule-panel > .schedule-month-nav {
    width: min(100%, 720px);
    margin: 0 auto 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.schedule-month-nav__picker {
    display: grid;
    gap: 7px;
    justify-items: center;
}

.schedule-month-nav__picker > strong {
    text-align: center;
    text-transform: capitalize;
}

.schedule-month-nav__picker form {
    display: grid;
    gap: 5px;
    width: 100%;
}

.schedule-month-nav__picker label {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 800;
    text-align: center;
}

.schedule-month-nav__picker form > div {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto;
    gap: 7px;
}

.schedule-month-nav__picker input {
    min-width: 0;
}

.schedule-month-nav__today {
    color: var(--teal-soft);
    font-size: .8rem;
    font-weight: 800;
}

.schedule-time-arrow {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0;
    min-height: 54px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(3, 12, 24, .7);
    color: var(--teal-soft);
    text-decoration: none;
}

.schedule-time-arrow:hover,
.schedule-time-arrow:focus-visible {
    border-color: var(--teal);
    background: rgba(36, 231, 213, .12);
}

.schedule-time-arrow span {
    font-size: 1.65rem;
    font-weight: 900;
    line-height: .9;
}

.schedule-time-arrow small {
    color: var(--muted);
    font-size: .62rem;
    font-weight: 800;
    white-space: nowrap;
}

.schedule-feedback {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.schedule-feedback--success {
    border-color: rgba(47, 230, 161, .5);
    background: rgba(47, 230, 161, .09);
}

.schedule-feedback--error {
    border-color: rgba(255, 108, 88, .62);
    background: rgba(255, 108, 88, .1);
}

.schedule-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.schedule-summary article {
    display: grid;
    gap: 4px;
    min-height: 96px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
}

.schedule-summary span {
    color: var(--muted);
    font-size: .84rem;
}

.schedule-summary strong {
    color: var(--teal-soft);
    font-size: 1.75rem;
}

.schedule-summary .has-mismatch {
    border-color: rgba(255, 108, 88, .72);
    box-shadow: 0 0 0 1px rgba(255, 108, 88, .24);
}

.schedule-summary .has-mismatch strong {
    color: #ffb0a5;
}

.schedule-summary .has-paid-holiday {
    border-color: rgba(247, 215, 116, .58);
    background: rgba(247, 215, 116, .08);
}

.schedule-summary .has-paid-holiday strong {
    color: #ffeaa0;
}

.schedule-summary .has-paid-holiday small {
    color: var(--muted);
}

.schedule-rhythm,
.schedule-favorites,
.schedule-panel {
    margin-bottom: 18px;
}

.schedule-favorites p {
    margin: 6px 0 0;
    color: var(--muted);
}

.schedule-favorites-form {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.schedule-favorite-ranges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.schedule-favorite-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(3, 12, 24, .62);
}

.schedule-favorite-range--full {
    border-color: rgba(47, 230, 161, .48);
    background: linear-gradient(145deg, rgba(25, 119, 83, .2), rgba(3, 12, 24, .74));
}

.schedule-favorite-range--morning {
    border-color: rgba(255, 203, 82, .56);
    background: linear-gradient(145deg, rgba(151, 101, 12, .24), rgba(3, 12, 24, .74));
}

.schedule-favorite-range--afternoon {
    border-color: rgba(255, 150, 46, .58);
    background: linear-gradient(145deg, rgba(160, 73, 12, .26), rgba(3, 12, 24, .74));
}

.schedule-favorite-range legend {
    grid-column: 1 / -1;
    padding: 0 5px;
    color: #fff;
    font-weight: 900;
}

.schedule-favorite-range label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}

.schedule-favorite-range__meal {
    grid-column: 1 / -1;
}

.schedule-planned-time {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(88, 166, 255, .38);
    border-radius: 9px;
    background: rgba(17, 48, 85, .2);
}

.schedule-planned-time > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.schedule-planned-time label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
}

.schedule-planned-time > small {
    color: var(--muted-2);
}

.schedule-meal-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
}

.schedule-day__planned {
    color: rgba(255, 255, 255, .86);
    font-size: .66rem;
    line-height: 1.2;
}

.target-period-setting {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.target-period-setting legend {
    padding: 0 6px;
    font-weight: 900;
}

.target-period-choices {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.target-period-choices label {
    cursor: pointer;
}

.target-period-choices input {
    position: absolute;
    opacity: 0;
}

.target-period-choices span {
    display: grid;
    place-items: center;
    min-height: 48px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-weight: 900;
}

.target-period-choices input:checked + span {
    border-color: var(--teal);
    background: rgba(36, 231, 213, .14);
    color: #fff;
}

.target-period-setting > label {
    display: grid;
    gap: 5px;
}

.target-period-setting > small {
    grid-column: 1 / -1;
}

.workplace-profile-setting {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.workplace-profile-setting legend {
    padding: 0 6px;
    font-weight: 900;
}

.workplace-profile-setting > p,
.workplace-profile-setting > small {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
}

.workplace-profile-setting > label {
    display: grid;
    gap: 6px;
}

.workplace-profile-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 8px;
}

.workplace-profile-input input[type="color"] {
    width: 52px;
    min-height: 44px;
    padding: 3px;
    cursor: pointer;
}

.schedule-color-setting {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.schedule-color-setting legend {
    padding: 0 6px;
    font-weight: 900;
}

.schedule-color-setting > p,
.schedule-color-setting > small {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
}

.schedule-color-setting label {
    display: grid;
    gap: 6px;
    align-content: start;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 12, 24, .58);
    font-size: .78rem;
    text-align: center;
}

.schedule-color-setting input[type="color"] {
    width: 100%;
    min-height: 42px;
    padding: 3px;
    cursor: pointer;
}

.exact-duration-input {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.exact-duration-input > span {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
}

.exact-duration-input small {
    color: var(--muted);
    font-weight: 700;
}

.monthly-time-setting {
    display: grid;
    grid-column: 1 / -1;
    gap: 10px;
}

.monthly-time-setting > strong {
    color: var(--muted);
}

.monthly-time-setting > label {
    display: grid;
    gap: 5px;
}

.monthly-time-mode {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.monthly-time-mode label {
    cursor: pointer;
}

.monthly-time-mode input {
    position: absolute;
    opacity: 0;
}

.monthly-time-mode span {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 900;
    text-align: center;
}

.monthly-time-mode input:checked + span,
.monthly-time-mode input:focus-visible + span {
    border-color: var(--teal);
    background: rgba(36, 231, 213, .13);
    color: #fff;
}

.monthly-decimal-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
}

.time-balance {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
}

.time-balance > div {
    display: grid;
    gap: 3px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(3, 12, 24, .55);
}

.time-balance span,
.time-balance small {
    color: var(--muted);
}

.time-balance strong {
    font-size: 1.45rem;
}

.time-balance__result {
    border: 1px solid var(--line);
}

.time-balance--positive .time-balance__result {
    border-color: rgba(47, 230, 161, .65);
    background: rgba(47, 230, 161, .09);
}

.time-balance--positive .time-balance__result strong {
    color: var(--green);
}

.time-balance--negative .time-balance__result {
    border-color: rgba(255, 108, 88, .65);
    background: rgba(255, 108, 88, .09);
}

.time-balance--negative .time-balance__result strong {
    color: #ff9d91;
}

.time-balance--neutral .time-balance__result strong {
    color: var(--teal-soft);
}

.planned-meal-note {
    margin: -8px 0 18px;
    padding: 10px 12px;
    border-left: 3px solid var(--blue);
    border-radius: 6px;
    background: rgba(88, 166, 255, .09);
    color: var(--muted);
    font-size: .84rem;
}

.paid-holiday-credit-note {
    margin: -8px 0 18px;
    padding: 10px 12px;
    border-left: 3px solid #f7d774;
    border-radius: 6px;
    background: rgba(247, 215, 116, .10);
    color: var(--muted);
    font-size: .84rem;
}

.paid-holiday-credit-note strong {
    color: #ffeaa0;
}

.planned-meal-note strong,
.delta--positive {
    color: var(--green);
}

.delta--negative {
    color: var(--coral);
}

.delta--neutral {
    color: var(--teal-soft);
}

.schedule-favorites-form > .button {
    width: fit-content;
}

.schedule-week-form {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
}

.schedule-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(72px, 1fr));
    gap: 8px;
    flex: 1;
}

.schedule-weekday {
    cursor: pointer;
}

.schedule-weekday input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.schedule-weekday span {
    display: grid;
    place-items: center;
    min-height: 48px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 12, 24, .72);
    color: var(--muted);
    font-size: .87rem;
    font-weight: 800;
}

.schedule-weekday input:checked + span {
    border-color: rgba(47, 230, 161, .62);
    background: rgba(47, 230, 161, .15);
    color: #d9fff0;
}

.schedule-weekday input:focus-visible + span {
    outline: 3px solid rgba(36, 231, 213, .36);
    outline-offset: 2px;
}

.schedule-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: .84rem;
}

.schedule-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.schedule-legend strong {
    color: var(--ink);
}

.schedule-swatch {
    width: 18px;
    height: 18px;
    border: 1px solid transparent;
    border-radius: 5px;
}

.schedule-swatch--holiday {
    display: grid;
    place-items: center;
    background: #f7d774;
    color: #3a2900;
    font-size: .72rem;
    font-style: normal;
    font-weight: 900;
}

.schedule-swatch--work {
    background: rgba(47, 230, 161, .52);
}

.schedule-swatch--rest {
    background: rgba(148, 163, 184, .42);
}

.schedule-swatch--absence {
    background: rgba(88, 166, 255, .52);
}

.schedule-swatch--sick-leave {
    background: rgba(212, 107, 255, .6);
}

.schedule-swatch--half-day {
    background: rgba(255, 188, 46, .58);
}

.schedule-swatch--mismatch {
    border: 3px solid var(--coral);
    background: transparent;
}

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

.schedule-calendar__weekday {
    padding: 4px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.schedule-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-height: 128px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: transform .16s ease, border-color .16s ease, filter .16s ease;
}

.schedule-day:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
}

.schedule-day:focus-visible {
    outline: 3px solid rgba(36, 231, 213, .5);
    outline-offset: 2px;
}

.schedule-day--work {
    border-color: rgba(47, 230, 161, .5);
    background: linear-gradient(145deg, rgba(25, 119, 83, .92), rgba(9, 55, 47, .95));
}

.schedule-day--rest {
    border-color: rgba(148, 163, 184, .44);
    background: linear-gradient(145deg, rgba(73, 83, 101, .9), rgba(35, 43, 58, .96));
}

.schedule-day--absence {
    border-color: rgba(88, 166, 255, .58);
    background: linear-gradient(145deg, rgba(35, 100, 168, .94), rgba(15, 48, 89, .97));
}

.schedule-day--sick-leave {
    border-color: rgba(212, 107, 255, .68);
}

.schedule-day--half-day {
    border-color: rgba(255, 188, 46, .65);
    background: linear-gradient(145deg, rgba(157, 103, 9, .96), rgba(80, 55, 11, .97));
}

.schedule-day {
    border-color: color-mix(in srgb, var(--day-color) 68%, #ffffff 8%);
    background: var(--day-color);
    background: linear-gradient(145deg,
        color-mix(in srgb, var(--day-color) 72%, #071426),
        color-mix(in srgb, var(--day-color) 35%, #03101f));
}

.schedule-day--outside {
    opacity: .35;
}

.schedule-day--today::after {
    content: "Aujourd’hui";
    position: absolute;
    top: 10px;
    right: 9px;
    color: #fff;
    font-size: .64rem;
    font-weight: 900;
    text-transform: uppercase;
}

.schedule-day--mismatch {
    border: 3px solid var(--mismatch-color, var(--coral));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--mismatch-color, var(--coral)) 35%, transparent);
}

.schedule-day--workplace::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10px;
    right: 10px;
    height: 5px;
    border-radius: 0 0 5px 5px;
    background: var(--workplace-color, var(--teal));
}

.schedule-day__workplace {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(2, 7, 19, .62);
    font-size: .64rem;
    font-weight: 900;
}

.schedule-day__holiday,
.schedule-day__paid-holiday,
.schedule-day__absence-reason {
    max-width: 100%;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(2, 7, 19, .62);
    font-size: .62rem;
    font-weight: 900;
    line-height: 1.2;
}

.schedule-day__holiday {
    color: #ffeaa0;
}

.schedule-day__paid-holiday {
    color: #fff3bd;
    border: 1px solid rgba(247, 215, 116, .36);
}

.schedule-day__sick-leave {
    color: #f4d9ff;
    border: 1px solid rgba(212, 107, 255, .52);
}

.schedule-day__absence-reason {
    color: #dcecff;
    overflow-wrap: anywhere;
}

.schedule-day__workplace i,
.schedule-workplace-choice i {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.schedule-day__number {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    max-width: 100%;
    font-weight: 950;
}

.schedule-day__number small {
    font-size: .72rem;
    font-weight: 900;
}

.schedule-day__number strong {
    font-size: 1.35rem;
}

.schedule-day__status {
    max-width: 100%;
    font-size: .75rem;
    font-weight: 900;
    line-height: 1.2;
}

.schedule-day__actual,
.schedule-day__exception,
.schedule-day__booking,
.schedule-day__warning {
    font-size: .68rem;
    line-height: 1.2;
}

.schedule-day__actual {
    margin-top: auto;
    color: rgba(255, 255, 255, .82);
}

.schedule-day__exception,
.schedule-day__booking,
.schedule-day__warning {
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(2, 7, 19, .5);
    font-weight: 900;
}

.schedule-day__warning {
    background: var(--coral);
    color: #190503;
}

.schedule-day__booking {
    background: rgba(2, 7, 19, .72);
    color: var(--teal-soft);
}

.schedule-dialog {
    width: min(560px, calc(100% - 28px));
    max-width: calc(100vw - 28px);
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #071526;
    color: var(--ink);
    box-shadow: var(--shadow);
    overflow-x: hidden;
}

.schedule-dialog::backdrop {
    background: rgba(0, 4, 12, .78);
    backdrop-filter: blur(5px);
}

.schedule-dialog form {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 22px;
}

.schedule-dialog form.is-saving {
    opacity: .6;
    pointer-events: none;
}

.schedule-dialog__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.schedule-dialog__head h2 {
    margin: 2px 0 0;
}

.schedule-day-choices {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    border: 0;
}

.schedule-day-choices legend {
    margin-bottom: 10px;
    color: var(--muted);
}

.schedule-day-choice {
    cursor: pointer;
}

.schedule-day-choice input {
    position: absolute;
    opacity: 0;
}

.schedule-day-choice span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 12, 24, .72);
    font-weight: 850;
}

.schedule-day-choice span::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: var(--muted);
}

.schedule-day-choice--work span::before { background: var(--green); }
.schedule-day-choice--rest span::before { background: #94a3b8; }
.schedule-day-choice--absence span::before { background: var(--blue); }
.schedule-day-choice--sick-leave span::before { background: #d46bff; }
.schedule-day-choice--half-day span::before { background: var(--amber); }

.schedule-day-choice span::before {
    background: var(--choice-color, var(--muted));
}

.schedule-day-choice input:checked + span,
.schedule-day-choice input:focus-visible + span {
    border-color: var(--teal);
    box-shadow: 0 0 0 2px rgba(36, 231, 213, .18);
}

.schedule-paid-holiday-help {
    margin: 0;
    padding: 11px 13px;
    border: 1px solid rgba(247, 215, 116, .38);
    border-radius: 8px;
    background: rgba(247, 215, 116, .08);
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.45;
}

.schedule-paid-holiday-help strong {
    color: #ffeaa0;
}

.schedule-workplace-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(168, 85, 247, .38);
    border-radius: 9px;
    background: rgba(43, 18, 68, .18);
}

.schedule-workplace-choice legend {
    padding: 0 6px;
    color: #fff;
    font-weight: 900;
}

.schedule-workplace-choice label {
    cursor: pointer;
}

.schedule-workplace-choice input {
    position: absolute;
    opacity: 0;
}

.schedule-workplace-choice label > span {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 5px 8px;
    min-height: 58px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 12, 24, .72);
}

.schedule-workplace-choice label small {
    grid-column: 2;
    color: var(--muted);
}

.schedule-workplace-choice input:checked + span,
.schedule-workplace-choice input:focus-visible + span {
    border-color: var(--teal);
    box-shadow: 0 0 0 2px rgba(36, 231, 213, .16);
}

.schedule-absence-reason {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--blue) 48%, transparent);
    border-radius: 9px;
    background: rgba(35, 100, 168, .12);
    color: #fff;
    font-weight: 900;
}

.schedule-absence-reason small {
    color: var(--muted);
    font-weight: 500;
}

.schedule-apply-days {
    display: grid;
    gap: 9px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.schedule-apply-days legend {
    color: #fff;
    font-weight: 900;
}

.schedule-apply-days > p {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
}

.schedule-apply-days__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
}

.schedule-apply-day {
    min-width: 0;
    cursor: pointer;
}

.schedule-apply-day input {
    position: absolute;
    opacity: 0;
}

.schedule-apply-day span {
    display: grid;
    place-items: center;
    gap: 2px;
    min-width: 0;
    min-height: 54px;
    padding: 6px 2px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(3, 12, 24, .72);
    color: var(--muted);
    text-align: center;
}

.schedule-apply-day strong {
    font-size: .75rem;
}

.schedule-apply-day small {
    font-size: .65rem;
}

.schedule-apply-day input:checked + span {
    border-color: var(--teal);
    background: rgba(36, 231, 213, .17);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(36, 231, 213, .22);
}

.schedule-apply-day input:focus-visible + span {
    outline: 3px solid rgba(36, 231, 213, .36);
    outline-offset: 2px;
}

.schedule-booking-fields {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(36, 231, 213, .32);
    border-radius: 9px;
    background: rgba(8, 45, 50, .22);
}

.schedule-booking-toggle {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
}

.schedule-booking-toggle input {
    width: 21px;
    height: 21px;
    margin: 2px 0 0;
    accent-color: var(--teal);
}

.schedule-booking-toggle span {
    display: grid;
    gap: 2px;
}

.schedule-booking-toggle small {
    color: var(--muted);
}

.schedule-booking-times {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.schedule-booking-times label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 800;
}

.schedule-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 900px) {
    .schedule-color-setting {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .schedule-weekdays {
        grid-template-columns: repeat(4, minmax(72px, 1fr));
        flex-basis: 100%;
    }

    .schedule-favorite-ranges {
        grid-template-columns: 1fr;
    }

    .schedule-day {
        min-height: 112px;
        padding: 9px;
    }

    .schedule-day__status {
        font-size: .68rem;
    }
}

@media (max-width: 760px) {
    .schedule-head {
        align-items: stretch;
    }

    .schedule-month-nav {
        grid-template-columns: 46px 46px minmax(0, 1fr) 46px 46px;
        gap: 5px;
        width: 100%;
        min-width: 0;
    }

    .schedule-month-nav__picker form > div {
        grid-template-columns: 1fr;
    }

    .schedule-month-nav__picker .button {
        width: 100%;
    }

    .schedule-time-arrow {
        min-height: 50px;
    }

    .schedule-time-arrow small {
        display: none;
    }

    .schedule-summary {
        gap: 8px;
    }

    .schedule-summary article {
        min-height: 82px;
        padding: 12px;
    }

    .schedule-summary strong {
        font-size: 1.45rem;
    }

    .schedule-week-form .button {
        width: 100%;
    }

    .schedule-planned-time > div,
    .target-period-setting,
    .target-period-choices,
    .workplace-profile-setting,
    .schedule-color-setting,
    .schedule-workplace-choice,
    .time-balance {
        grid-template-columns: 1fr;
    }

    .target-period-setting > *,
    .target-period-choices {
        grid-column: 1 !important;
    }

    .schedule-favorites-form > .button {
        width: 100%;
    }

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

    .schedule-legend {
        display: grid;
    }

    .schedule-calendar {
        gap: 4px;
    }

    .schedule-calendar__weekday {
        font-size: .62rem;
    }

    .schedule-day {
        min-height: 78px;
        gap: 2px;
        padding: 6px;
        border-radius: 7px;
    }

    .schedule-day--mismatch {
        border-width: 2px;
    }

    .schedule-day__number {
        gap: 3px;
    }

    .schedule-day__number small {
        max-width: 34px;
        overflow: hidden;
        font-size: .52rem;
        text-overflow: clip;
    }

    .schedule-day__number strong {
        font-size: 1rem;
    }

    .schedule-day__status {
        display: block;
        max-height: 2.2em;
        overflow: hidden;
        font-size: .57rem;
    }

    .schedule-day__actual,
    .schedule-day__exception,
    .schedule-day__booking {
        display: none;
    }

    .schedule-day__warning {
        margin-top: auto;
        padding: 2px 4px;
        font-size: .52rem;
    }

    .schedule-day--today::after {
        content: "•";
        top: 5px;
        right: 6px;
        color: var(--teal-soft);
        font-size: 1rem;
    }

    .schedule-dialog {
        width: 100%;
        max-width: none;
        margin: auto 0 0;
        border-radius: 16px 16px 0 0;
    }

    .schedule-dialog form {
        padding: 18px 16px max(18px, env(safe-area-inset-bottom));
    }

    .schedule-apply-days__grid {
        gap: 4px;
    }

    .schedule-apply-day span {
        min-height: 49px;
        padding-inline: 1px;
    }

    .schedule-apply-day strong {
        font-size: .68rem;
    }

    .schedule-apply-day small {
        font-size: .58rem;
    }

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

    .schedule-dialog__actions,
    .schedule-dialog__actions .button {
        width: 100%;
    }
}
/* Entrepreneur time planning: simulations, manual actual time and weekly projections. */
.schedule-subnav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 9px;
    margin: 0 0 18px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(3, 12, 24, .76);
}

.schedule-subnav__link {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
}

.schedule-subnav__link strong {
    color: #fff;
}

.schedule-subnav__link small {
    overflow: hidden;
    font-size: .75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-subnav__link:hover,
.schedule-subnav__link:focus-visible,
.schedule-subnav__link.is-active {
    border-color: rgba(36, 231, 213, .48);
    background: rgba(36, 231, 213, .11);
    color: var(--teal-soft);
}

.schedule-day__accounted {
    display: grid;
    gap: 1px;
    width: 100%;
    margin-top: auto;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 7px;
    background: rgba(2, 7, 19, .58);
    line-height: 1.15;
}

.schedule-day__accounted small {
    color: rgba(255, 255, 255, .72);
    font-size: .58rem;
    font-weight: 800;
}

.schedule-day__accounted strong {
    color: #fff;
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
}

.schedule-day__simulation {
    color: #a8d4ff;
    font-size: .68rem;
    font-weight: 800;
}

@media (max-width: 760px) {
    .schedule-subnav {
        grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
        gap: 5px;
        padding: 6px;
    }

    .schedule-subnav__link {
        place-content: center;
        min-height: 48px;
        padding: 7px 5px;
        font-size: .72rem;
        text-align: center;
    }

    .schedule-subnav__link small {
        display: none;
    }

    .booking-poster-preview iframe {
        min-height: 430px;
    }

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

    .booking-confirmation-choice__card {
        min-height: 92px;
    }
}

.schedule-week-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
    min-width: 0;
    min-height: 128px;
    padding: 12px;
    border: 1px solid rgba(36, 231, 213, .42);
    border-radius: 8px;
    background: rgba(4, 17, 31, .96);
    box-shadow: inset 3px 0 0 rgba(36, 231, 213, .52);
}

.schedule-week-summary--positive {
    border-color: rgba(47, 230, 161, .72);
    box-shadow: inset 3px 0 0 var(--green);
}

.schedule-week-summary--negative,
.schedule-week-summary--mismatch {
    border-color: rgba(255, 108, 88, .78);
    box-shadow: inset 3px 0 0 var(--coral);
}

.schedule-week-summary__title,
.schedule-week-summary__balance,
.schedule-week-summary__expected {
    grid-column: 1 / -1;
}

.schedule-week-summary__title {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--teal-soft);
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.schedule-week-summary__title b {
    color: #fff;
    font-size: .92rem;
}

.schedule-week-summary__metric,
.schedule-week-summary__balance {
    display: grid;
    gap: 2px;
}

.schedule-week-summary__metric small,
.schedule-week-summary__balance small,
.schedule-week-summary__expected {
    color: var(--muted);
    font-size: .64rem;
}

.schedule-week-summary__metric strong,
.schedule-week-summary__balance strong {
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.schedule-week-summary__balance {
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.schedule-future-simulation,
.schedule-actual-time {
    display: grid;
    gap: 11px;
    padding: 14px;
    border: 1px solid rgba(88, 166, 255, .48);
    border-radius: 8px;
    background: rgba(17, 48, 85, .24);
}

.schedule-actual-time {
    border-color: rgba(47, 230, 161, .42);
    background: rgba(47, 230, 161, .06);
}

.schedule-future-simulation[hidden],
.schedule-future-simulation [hidden],
.schedule-actual-time[hidden],
.schedule-actual-time [hidden] {
    display: none;
}

.schedule-simulation-toggle,
.schedule-actual-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.schedule-simulation-toggle input,
.schedule-actual-toggle input {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: var(--teal);
}

.schedule-simulation-toggle span,
.schedule-actual-toggle span {
    display: grid;
    gap: 2px;
}

.schedule-simulation-toggle small,
.schedule-actual-toggle small {
    color: var(--muted);
}

.schedule-simulation-fields,
.schedule-actual-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.schedule-simulation-fields label,
.schedule-actual-fields label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}

.schedule-simulation-actions,
.schedule-actual-notes {
    grid-column: 1 / -1;
}

.schedule-simulation-actions,
.schedule-actual-existing {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.schedule-actual-existing {
    justify-content: space-between;
}

.schedule-confirm-planned__button {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(36, 231, 213, .48);
    border-radius: 8px;
    background: rgba(36, 231, 213, .1);
    color: #fff;
    cursor: pointer;
    text-align: left;
}

.schedule-confirm-planned__button strong,
.schedule-confirm-planned__button small {
    display: block;
}

.schedule-confirm-planned__button small {
    margin-top: 3px;
    color: var(--muted);
}

@media (max-width: 620px) {
    .schedule-subnav {
        grid-template-columns: 1fr;
    }

    .schedule-simulation-fields,
    .schedule-actual-fields {
        grid-template-columns: 1fr;
    }

    .schedule-simulation-actions,
    .schedule-actual-notes {
        grid-column: 1;
    }
}
