.ctp-app {
    --ctp-border: #c7c7c7;
    --ctp-text: #202124;
    --ctp-muted: #5f6368;
    --ctp-surface: #ffffff;
    --ctp-surface-muted: #f2f2f2;
    --ctp-primary: #174ea6;
    --ctp-primary-hover: #123d82;
    --ctp-focus: #0b57d0;
    --ctp-error: #b3261e;
    --ctp-error-bg: #fce8e6;
    --ctp-success: #146c2e;
    --ctp-success-bg: #e6f4ea;
    --ctp-warning: #7a4f01;
    --ctp-warning-bg: #fff4ce;
    color: var(--ctp-text);
    font: inherit;
    line-height: 1.5;
    margin: 1rem auto;
    max-width: 72rem;
}

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

.ctp-card {
    background: var(--ctp-surface);
    border: 1px solid var(--ctp-border);
    border-radius: 0.5rem;
    margin: 0 0 1rem;
    padding: clamp(1rem, 3vw, 1.75rem);
}

.ctp-login-card {
    margin-inline: auto;
    max-width: 36rem;
}

.ctp-title,
.ctp-card h3,
.ctp-card h4 {
    line-height: 1.25;
    margin-top: 0;
}

.ctp-dashboard-stack {
    display: grid;
    gap: 1rem;
}

.ctp-dashboard-stack > .ctp-card {
    margin: 0;
}

.ctp-dashboard-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.ctp-dashboard-header .ctp-title {
    margin-bottom: 0.5rem;
}

.ctp-meta {
    color: var(--ctp-muted);
    font-size: 0.95em;
}

.ctp-tabs {
    border-bottom: 1px solid var(--ctp-border);
    display: flex;
    gap: 0.25rem;
    margin: 1.25rem 0;
}

.ctp-tab {
    background: transparent;
    border: 0;
    border-bottom: 0.2rem solid transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 0.65rem 0.85rem;
}

.ctp-tab:hover,
.ctp-tab.is-active {
    border-bottom-color: var(--ctp-primary);
    color: var(--ctp-primary);
}

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

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

.ctp-form--grid > .ctp-field:first-child,
.ctp-form--grid > .ctp-form-actions,
.ctp-form--grid > .ctp-notice {
    grid-column: 1 / -1;
}

.ctp-field {
    display: grid;
    gap: 0.35rem;
}

.ctp-label {
    display: inline-block;
    font-weight: 600;
}

.ctp-input,
.ctp-select,
.ctp-file {
    background: #ffffff;
    border: 1px solid #777777;
    border-radius: 0.25rem;
    color: #111111;
    font: inherit;
    max-width: 100%;
    min-height: 2.75rem;
    padding: 0.55rem 0.65rem;
    width: 100%;
}

.ctp-file {
    padding: 0.45rem;
}

.ctp-password-control {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3rem;
    width: 100%;
}

.ctp-password-control input::-ms-reveal,
.ctp-password-control input::-ms-clear {
    display: none;
}

.ctp-password-control .ctp-input {
    border-radius: 0.25rem 0 0 0.25rem;
    min-width: 0;
}

.ctp-password-toggle {
    align-items: center;
    background: #ffffff;
    border: 1px solid #777777;
    border-left: 0;
    border-radius: 0 0.25rem 0.25rem 0;
    color: var(--ctp-text);
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.4rem;
}

.ctp-password-toggle:hover {
    background: var(--ctp-surface-muted);
    color: var(--ctp-primary-hover);
}

.ctp-password-icon {
    fill: none;
    height: 1.35rem;
    pointer-events: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 1.35rem;
}

.ctp-password-icon--hide,
.ctp-password-toggle.is-revealed .ctp-password-icon--show {
    display: none;
}

.ctp-password-toggle.is-revealed .ctp-password-icon--hide {
    display: block;
}

.ctp-button {
    align-items: center;
    align-self: start;
    background: var(--ctp-primary);
    border: 2px solid var(--ctp-primary);
    border-radius: 0.3rem;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.55rem 1rem;
    text-decoration: none;
    width: fit-content;
}

.ctp-button:hover {
    background: var(--ctp-primary-hover);
    border-color: var(--ctp-primary-hover);
    color: #ffffff;
}

.ctp-button--secondary {
    background: #ffffff;
    color: var(--ctp-primary);
}

.ctp-button--secondary:hover {
    background: var(--ctp-surface-muted);
    color: var(--ctp-primary-hover);
}

.ctp-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.ctp-button:focus-visible,
.ctp-password-toggle:focus-visible,
.ctp-tab:focus-visible,
.ctp-input:focus-visible,
.ctp-select:focus-visible,
.ctp-file:focus-visible {
    outline: 0.2rem solid var(--ctp-focus);
    outline-offset: 0.15rem;
}

.ctp-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ctp-notice {
    border-left: 0.3rem solid var(--ctp-primary);
    background: var(--ctp-surface-muted);
    margin: 0.5rem 0;
    padding: 0.75rem 0.9rem;
}

.ctp-notice[hidden] {
    display: none;
}

.ctp-notice--error {
    background: var(--ctp-error-bg);
    border-left-color: var(--ctp-error);
    color: #5f1712;
}

.ctp-notice--success {
    background: var(--ctp-success-bg);
    border-left-color: var(--ctp-success);
    color: #0d4a20;
}

.ctp-notice--warning {
    background: var(--ctp-warning-bg);
    border-left-color: var(--ctp-warning);
    color: #5a3a00;
}

.ctp-loading {
    background: var(--ctp-surface-muted);
    border: 1px solid var(--ctp-border);
    padding: 1rem;
}

.ctp-preview-box {
    border-top: 1px solid var(--ctp-border);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.ctp-summary {
    display: grid;
    gap: 0.3rem 1rem;
    grid-template-columns: minmax(9rem, auto) 1fr;
    margin: 1rem 0;
}

.ctp-summary dt {
    font-weight: 700;
}

.ctp-summary dd {
    margin: 0;
}

.ctp-table {
    border-collapse: collapse;
    display: block;
    margin: 1rem 0;
    max-height: 28rem;
    overflow: auto;
    width: 100%;
}

.ctp-table th,
.ctp-table td {
    border: 1px solid var(--ctp-border);
    padding: 0.5rem 0.65rem;
    text-align: left;
    vertical-align: top;
}

.ctp-table th {
    background: var(--ctp-surface-muted);
    position: sticky;
    top: 0;
}

.ctp-name-list {
    columns: 2 18rem;
    padding-left: 1.5rem;
}

.ctp-name-list li {
    break-inside: avoid;
    margin-bottom: 0.35rem;
}

@media (max-width: 42rem) {
    .ctp-form--grid {
        grid-template-columns: 1fr;
    }

    .ctp-form--grid > .ctp-field:first-child,
    .ctp-form--grid > .ctp-form-actions,
    .ctp-form--grid > .ctp-notice {
        grid-column: auto;
    }

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

    .ctp-dashboard-header .ctp-button {
        width: 100%;
    }

    .ctp-tabs {
        flex-direction: column;
    }

    .ctp-tab {
        border-bottom-width: 0;
        border-left: 0.2rem solid transparent;
        text-align: left;
    }

    .ctp-tab:hover,
    .ctp-tab.is-active {
        border-left-color: var(--ctp-primary);
    }

    .ctp-button {
        width: 100%;
    }

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

    .ctp-summary dd {
        margin-bottom: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ctp-app * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

.ctp-table-scroll {
    margin: 1rem 0;
    max-height: 30rem;
    overflow: auto;
    width: 100%;
}

.ctp-table-scroll .ctp-table {
    display: table;
    margin: 0;
    max-height: none;
    min-width: 46rem;
    overflow: visible;
}

.ctp-error-list,
.ctp-warning-list {
    margin: 0.5rem 0 1rem;
    padding-left: 1.4rem;
}

.ctp-error-list li,
.ctp-warning-list li {
    margin-bottom: 0.35rem;
}

.ctp-error-list {
    color: #5f1712;
}

.ctp-warning-list {
    color: #5a3a00;
}

.ctp-person-summary {
    border-left: 0.25rem solid var(--ctp-primary);
    margin: 1rem 0;
    padding: 0.25rem 0 0.25rem 0.9rem;
}

.ctp-person-summary p {
    margin: 0.15rem 0;
}

.ctp-button--small {
    font-size: 0.9em;
    min-height: 2.25rem;
    padding: 0.35rem 0.65rem;
}

.ctp-access-legend {
    align-items: center;
    background: #fafafa;
    border: 1px solid var(--ctp-border);
    border-radius: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.25rem;
    margin: 0.75rem 0 1rem;
    padding: 0.65rem 0.75rem;
}

.ctp-access-legend__item {
    align-items: center;
    display: inline-flex;
    font-size: 0.9em;
    gap: 0.5rem;
    line-height: 1.3;
}

.ctp-access-indicator {
    align-items: center;
    display: inline-flex;
    flex: 0 0 2rem;
    height: 2rem;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
    width: 2rem;
}

.ctp-access-indicator svg {
    display: block;
    height: 1.7rem;
    overflow: visible;
    width: 1.7rem;
}

.ctp-access-indicator--ready {
    color: #15803d;
}

.ctp-access-icon__check {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3.4;
}

.ctp-access-indicator--warning {
    color: #f9ab00;
}

.ctp-access-indicator--incomplete {
    color: #b3261e;
}

.ctp-access-icon__shape {
    fill: currentColor;
    stroke: #7a4f01;
    stroke-linejoin: round;
    stroke-width: 1.25;
}

.ctp-access-icon__mark {
    fill: none;
    stroke: #202124;
    stroke-linecap: round;
    stroke-width: 2.3;
}

.ctp-access-icon__mark-dot {
    fill: #202124;
}

.ctp-access-indicator--incomplete .ctp-access-icon__shape {
    stroke: #7f1d1d;
}

.ctp-access-indicator--incomplete .ctp-access-icon__mark {
    stroke: #ffffff;
}

.ctp-access-indicator--incomplete .ctp-access-icon__mark-dot {
    fill: #ffffff;
}

.ctp-access-legend .ctp-access-indicator {
    flex-basis: 1.55rem;
    height: 1.55rem;
    width: 1.55rem;
}

.ctp-access-legend .ctp-access-indicator svg {
    height: 1.4rem;
    width: 1.4rem;
}

.ctp-reset-panel {
    background: var(--ctp-surface-muted);
    border: 1px solid var(--ctp-border);
    border-radius: 0.35rem;
    margin-top: 0.65rem;
    min-width: min(28rem, 80vw);
    padding: 0.8rem;
}

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

.ctp-reset-title {
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.ctp-participant-table th:nth-child(4),
.ctp-participant-table td:nth-child(4),
.ctp-participant-access-cell {
    min-width: 6rem;
    text-align: center;
    vertical-align: middle;
}

.ctp-participant-table td:last-child {
    min-width: 17rem;
}

.ctp-reset-form .ctp-notice {
    margin-bottom: 0;
}

@media (max-width: 42rem) {
    .ctp-reset-panel {
        min-width: 0;
        width: 100%;
    }

    .ctp-participant-table td:last-child {
        min-width: 14rem;
    }
}

/* Calendar and booking interface, introduced in 0.2.0. */
.ctp-app {
    --ctp-slot-free: #eeeeee;
    --ctp-slot-booked: #b3261e;
    --ctp-slot-booked-text: #ffffff;
    --ctp-slot-selected: #174ea6;
    --ctp-slot-blocked: #4b4b4b;
    --ctp-slot-past: #f7f7f7;
    --ctp-danger: #b3261e;
    --ctp-danger-hover: #8c1d18;
    --ctp-calendar-closed: #d93025;
    --ctp-calendar-free: #34a853;
    --ctp-calendar-partial: #f9ab00;
    --ctp-calendar-full: #c5221f;
}

.ctp-button--danger {
    background: var(--ctp-danger);
    border-color: var(--ctp-danger);
    color: #ffffff;
}

.ctp-button--danger:hover {
    background: var(--ctp-danger-hover);
    border-color: var(--ctp-danger-hover);
    color: #ffffff;
}

.ctp-planner-card {
    overflow: hidden;
}

.ctp-admin-subsection,
.ctp-own-bookings,
.ctp-booking-instructions,
.ctp-selection-summary {
    border-top: 1px solid var(--ctp-border);
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.ctp-admin-subsection:first-of-type,
.ctp-own-bookings:first-of-type {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.ctp-booking-card-list {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.ctp-booking-card {
    background: var(--ctp-surface-muted);
    border: 1px solid var(--ctp-border);
    border-radius: 0.4rem;
    padding: 0.85rem;
}

.ctp-booking-card p {
    margin: 0.2rem 0;
}

.ctp-booking-card__date {
    font-weight: 700;
}

.ctp-day-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.ctp-day-card {
    border: 1px solid var(--ctp-border);
    border-radius: 0.4rem;
    overflow: clip;
}

.ctp-day-card.is-past {
    opacity: 0.72;
}

.ctp-day-card__summary {
    align-items: center;
    background: var(--ctp-surface-muted);
    cursor: pointer;
    display: flex;
    gap: 0.5rem 1rem;
    justify-content: space-between;
    padding: 0.8rem 0.9rem;
}

.ctp-day-card__summary:hover {
    background: #e8e8e8;
}

.ctp-day-card__heading {
    align-items: center;
    display: inline-flex;
    gap: 0.65rem;
    min-width: 0;
}

.ctp-day-card__date {
    font-weight: 700;
}

.ctp-day-card__meta {
    color: var(--ctp-muted);
    font-size: 0.92em;
    text-align: right;
}

.ctp-slot-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    padding: 0.9rem;
}

.ctp-slot {
    background: var(--ctp-slot-free);
    border: 2px solid #a0a0a0;
    border-radius: 0.35rem;
    color: #202124;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    min-height: 3.2rem;
    padding: 0.5rem 0.6rem;
    text-align: left;
}

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

.ctp-slot--free {
    background: var(--ctp-slot-free);
    border-color: #a0a0a0;
    color: #202124;
}

.ctp-slot--booked,
.ctp-slot--own {
    background: var(--ctp-slot-booked);
    border-color: var(--ctp-slot-booked);
    color: var(--ctp-slot-booked-text);
}

.ctp-slot--blocked,
.ctp-slot--closed {
    background: var(--ctp-slot-blocked);
    border-color: var(--ctp-slot-blocked);
    color: #ffffff;
}

.ctp-slot--past {
    background: var(--ctp-slot-past);
    border-color: #d6d6d6;
    color: #777777;
}

.ctp-slot.is-selected {
    background: var(--ctp-slot-selected);
    border-color: var(--ctp-slot-selected);
    color: #ffffff;
    box-shadow: 0 0 0 0.18rem #ffffff, 0 0 0 0.38rem var(--ctp-focus);
}

.ctp-slot:disabled {
    cursor: not-allowed;
    opacity: 0.88;
}

.ctp-slot:focus-visible,
.ctp-calendar-day:focus-visible {
    outline: 0.2rem solid var(--ctp-focus);
    outline-offset: 0.15rem;
}

.ctp-selection-summary {
    background: #f8fbff;
    border: 1px solid #b8cff2;
    border-radius: 0.4rem;
    margin-top: 1.25rem;
    padding: 1rem;
}

.ctp-selection-summary h4 {
    margin-top: 0;
}

.ctp-selection-list {
    margin: 0 0 1rem;
    padding-left: 1.4rem;
}

.ctp-selection-list li {
    margin-bottom: 0.35rem;
}

.ctp-stat-grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    margin: 1rem 0;
}

.ctp-stat {
    background: var(--ctp-surface-muted);
    border: 1px solid var(--ctp-border);
    border-radius: 0.4rem;
    display: grid;
    gap: 0.15rem;
    padding: 0.7rem;
}

.ctp-stat__value {
    font-size: 1.35em;
}

.ctp-stat__label {
    color: var(--ctp-muted);
    font-size: 0.9em;
}

.ctp-weekday-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ctp-check-option {
    background: var(--ctp-surface-muted);
    border: 1px solid var(--ctp-border);
    border-radius: 0.35rem;
    cursor: pointer;
    padding: 0.45rem 0.65rem;
}

.ctp-check-option:focus-within {
    outline: 0.2rem solid var(--ctp-focus);
    outline-offset: 0.1rem;
}

.ctp-view-tabs {
    border-bottom: 1px solid var(--ctp-border);
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.8rem;
}

.ctp-calendar-legend {
    align-items: center;
    background: #fafafa;
    border: 1px solid var(--ctp-border);
    border-radius: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
}

.ctp-calendar-legend__item {
    align-items: center;
    display: inline-flex;
    font-size: 0.9em;
    gap: 0.45rem;
    line-height: 1.25;
}

.ctp-calendar-status-dot {
    border: 2px solid rgba(0, 0, 0, 0.24);
    border-radius: 50%;
    box-shadow: 0 0 0 2px #ffffff;
    display: inline-block;
    flex: 0 0 1.1rem;
    height: 1.1rem;
    width: 1.1rem;
}

.ctp-calendar-status-dot--free {
    background: var(--ctp-calendar-free);
    border-color: #1f7a38;
}

.ctp-calendar-status-icon {
    color: var(--ctp-calendar-closed);
    display: inline-block;
    flex: 0 0 1.25rem;
    height: 1.25rem;
    overflow: visible;
    width: 1.25rem;
}

.ctp-calendar-status-icon circle {
    fill: #ffffff;
    stroke: currentColor;
    stroke-width: 2.8;
}

.ctp-calendar-status-icon path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2.8;
}

.ctp-calendar-status-dot--partial {
    background: var(--ctp-calendar-partial);
    border-color: #8a5a00;
}

.ctp-calendar-status-dot--full {
    background: var(--ctp-calendar-full);
}

.ctp-calendar-selection-sample {
    background: #ffffff;
    border: 1px solid var(--ctp-border);
    border-radius: 0.2rem;
    box-shadow: 0 0 0 0.18rem var(--ctp-focus);
    display: inline-block;
    flex: 0 0 1rem;
    height: 1rem;
    margin-inline: 0.1rem;
    width: 1rem;
}

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

.ctp-month {
    border: 1px solid var(--ctp-border);
    border-radius: 0.4rem;
    padding: 0.75rem;
}

.ctp-month h5 {
    margin: 0 0 0.65rem;
}

.ctp-month-grid {
    display: grid;
    gap: 0.3rem;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ctp-month-grid__weekday {
    color: var(--ctp-muted);
    font-size: 0.82em;
    font-weight: 700;
    padding: 0.2rem;
    text-align: center;
}

.ctp-calendar-empty {
    min-height: 3.6rem;
}

.ctp-calendar-day {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--ctp-border);
    border-radius: 0.35rem;
    color: inherit;
    cursor: pointer;
    display: grid;
    gap: 0.35rem;
    justify-items: center;
    min-height: 3.6rem;
    padding: 0.35rem 0.2rem;
    text-align: center;
    transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.ctp-calendar-day:hover {
    background: #f8fbff;
    border-color: #8eadd8;
}

.ctp-calendar-day.is-open {
    background: #ffffff;
    border-color: var(--ctp-border);
}

.ctp-calendar-day.is-closed,
.ctp-calendar-day--closed {
    background: #f3f4f4;
    color: #4d5156;
}

.ctp-calendar-day.has-booking {
    box-shadow: none;
}

.ctp-calendar-day.is-selected {
    outline: 0.2rem solid var(--ctp-focus);
    outline-offset: 0.1rem;
}

.ctp-calendar-day.is-past {
    opacity: 0.62;
}

.ctp-calendar-day__number {
    font-size: 1.05em;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.ctp-calendar-day__weekday {
    color: var(--ctp-muted);
    font-size: 0.8em;
    font-weight: 700;
    line-height: 1;
}

.ctp-calendar-day .ctp-calendar-status-dot {
    height: 1.1rem;
    width: 1.1rem;
}

.ctp-calendar-day .ctp-calendar-status-icon {
    height: 1.25rem;
    width: 1.25rem;
}

.ctp-week-view {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ctp-week-view .ctp-admin-day-editor {
    grid-column: 1 / -1;
}

.ctp-calendar-day.is-compact {
    min-height: 5.25rem;
    padding-block: 0.45rem;
}

.ctp-admin-day-editor,
.ctp-edit-panel {
    background: #fafafa;
    border: 1px solid var(--ctp-border);
    border-radius: 0.4rem;
    margin-top: 1rem;
    padding: 1rem;
}

.ctp-admin-day-editor h5,
.ctp-edit-panel h5 {
    margin-top: 0;
}

.ctp-admin-slot-list {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.9rem;
}

.ctp-admin-slot-row {
    align-items: center;
    border: 1px solid var(--ctp-border);
    border-radius: 0.35rem;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 7rem minmax(0, 1fr) auto;
    padding: 0.55rem;
}

.ctp-slot-row--booked,
.ctp-slot-row--own {
    border-left: 0.35rem solid var(--ctp-slot-booked);
}

.ctp-slot-row--blocked {
    border-left: 0.35rem solid var(--ctp-slot-blocked);
}

.ctp-admin-slot-time {
    font-weight: 700;
}

.ctp-form--booking {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ctp-form--booking > .ctp-form-actions,
.ctp-form--booking > .ctp-notice {
    grid-column: 1 / -1;
}

@media (max-width: 48rem) {
    .ctp-day-card__summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .ctp-day-card__meta {
        text-align: left;
    }

    .ctp-slot-grid {
        grid-template-columns: 1fr;
    }

    .ctp-week-view {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ctp-week-view .ctp-admin-day-editor {
        grid-column: 1 / -1;
    }

    .ctp-admin-slot-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

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

    .ctp-form--booking > .ctp-form-actions,
    .ctp-form--booking > .ctp-notice {
        grid-column: auto;
    }
}

@media (max-width: 30rem) {
    .ctp-month-grid {
        gap: 0.2rem;
    }

    .ctp-calendar-day {
        min-height: 3rem;
        padding: 0.15rem;
    }


    .ctp-week-view {
        grid-template-columns: 1fr;
    }
}

/* Responsive layout refinement, introduced in 0.2.3 and adjusted in 0.2.4. */
.ctp-app {
    box-sizing: border-box;
    container-name: ctp-app;
    container-type: inline-size;
    max-width: 1100px;
    min-width: 0;
    text-size-adjust: 100%;
    width: 100%;
}

.ctp-app > *,
.ctp-dashboard-stack,
.ctp-dashboard-stack > *,
.ctp-card,
.ctp-dashboard,
.ctp-planner-card,
.ctp-admin-subsection,
.ctp-form,
.ctp-field,
.ctp-table-scroll,
.ctp-month-view,
.ctp-month-list,
.ctp-week-view,
.ctp-day-list,
.ctp-slot-grid {
    max-width: 100%;
    min-width: 0;
}

.ctp-card,
.ctp-card p,
.ctp-card li,
.ctp-card dd,
.ctp-card td,
.ctp-card th,
.ctp-notice,
.ctp-meta {
    overflow-wrap: anywhere;
    word-break: normal;
}

.ctp-title {
    font-size: clamp(1.7rem, 3.2vw, 2.25rem);
    margin-bottom: 0.5rem;
    overflow-wrap: anywhere;
}

.ctp-card h3 {
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}

.ctp-card h4 {
    font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.ctp-dashboard-heading {
    min-width: 0;
}

.ctp-dashboard-header > .ctp-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ctp-dashboard-course-title {
    color: var(--ctp-muted);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 650;
    line-height: 1.3;
    margin: -0.15rem 0 0.4rem;
    overflow-wrap: anywhere;
}

.ctp-timezone-line__compact {
    display: none;
}

.ctp-course-schedule {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 1rem;
}

.ctp-course-schedule > span + span::before {
    content: "· ";
}

.ctp-access-status-text {
    display: none;
}

.ctp-participant-access-status {
    align-items: center;
    display: inline-flex;
    gap: 0.5rem;
    justify-content: center;
    max-width: 100%;
}

.ctp-participant-email-cell {
    overflow-wrap: anywhere;
}

.ctp-month-pager {
    display: none;
}

.ctp-month-pager__button {
    align-items: center;
    background: #ffffff;
    border: 2px solid var(--ctp-primary);
    border-radius: 0.35rem;
    color: var(--ctp-primary);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 1.8rem;
    font-weight: 700;
    height: 2.75rem;
    justify-content: center;
    line-height: 1;
    min-width: 2.75rem;
    padding: 0;
}

.ctp-month-pager__button:hover:not(:disabled) {
    background: var(--ctp-surface-muted);
    color: var(--ctp-primary-hover);
}

.ctp-month-pager__button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.ctp-month-pager__button:focus-visible {
    outline: 0.2rem solid var(--ctp-focus);
    outline-offset: 0.15rem;
}

.ctp-month-pager__label {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: center;
}

/* Container queries respond to the actual Beaver Builder content width. */
@container ctp-app (max-width: 50rem) {
    .ctp-month-pager {
        align-items: center;
        background: #fafafa;
        border: 1px solid var(--ctp-border);
        border-radius: 0.4rem;
        display: grid;
        gap: 0.75rem;
        grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
        margin: 0 0 0.75rem;
        padding: 0.55rem;
    }

    .ctp-month-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .ctp-month-list .ctp-month {
        display: none;
    }

    .ctp-month-list .ctp-month.is-mobile-current {
        display: block;
    }

    .ctp-month-list .ctp-month.is-mobile-current > h5 {
        display: none;
    }
}

@container ctp-app (max-width: 42rem) {
    .ctp-timezone-line__full {
        display: none;
    }

    .ctp-timezone-line__compact {
        display: inline;
    }

    .ctp-course-schedule {
        display: grid;
        gap: 0.15rem;
    }

    .ctp-course-schedule > span + span::before {
        content: none;
    }

    .ctp-view-tabs {
        flex-direction: row;
        overflow-x: auto;
    }

    .ctp-view-tabs .ctp-tab {
        border-bottom: 0.2rem solid transparent;
        border-left: 0;
        flex: 0 0 auto;
        text-align: center;
    }

    .ctp-view-tabs .ctp-tab:hover,
    .ctp-view-tabs .ctp-tab.is-active {
        border-bottom-color: var(--ctp-primary);
        border-left-color: transparent;
    }

    .ctp-table-scroll--participants {
        max-height: none;
        overflow: visible;
    }

    .ctp-table-scroll--participants .ctp-participant-table {
        border-collapse: separate;
        border-spacing: 0;
        display: block;
        min-width: 0;
        width: 100%;
    }

    .ctp-participant-table thead {
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    }

    .ctp-participant-table tbody {
        display: grid;
        gap: 0.85rem;
        width: 100%;
    }

    .ctp-participant-table tr {
        background: #ffffff;
        border: 1px solid var(--ctp-border);
        border-radius: 0.5rem;
        display: block;
        min-width: 0;
        overflow: hidden;
        padding: 0.75rem;
        width: 100%;
    }

    .ctp-participant-table td,
    .ctp-participant-table td:last-child,
    .ctp-participant-table td:nth-child(4),
    .ctp-participant-access-cell {
        align-items: start;
        border: 0;
        display: grid;
        gap: 0.35rem 0.75rem;
        grid-template-columns: minmax(7.75rem, 0.8fr) minmax(0, 1.2fr);
        min-width: 0;
        padding: 0.45rem 0;
        text-align: left;
        width: 100%;
    }

    .ctp-participant-table td::before {
        color: var(--ctp-muted);
        content: attr(data-label);
        font-weight: 700;
        line-height: 1.35;
    }

    .ctp-participant-table .ctp-participant-name-cell {
        border-bottom: 1px solid var(--ctp-border);
        display: block;
        font-size: 1.08rem;
        font-weight: 750;
        margin-bottom: 0.25rem;
        padding: 0 0 0.65rem;
    }

    .ctp-participant-table .ctp-participant-name-cell::before {
        content: none;
    }

    .ctp-participant-access-status {
        justify-content: flex-start;
    }

    .ctp-access-status-text {
        display: inline;
        line-height: 1.35;
    }

    .ctp-participant-action-cell {
        display: block !important;
        padding-top: 0.65rem !important;
    }

    .ctp-participant-action-cell::before {
        display: block;
        margin-bottom: 0.4rem;
    }

    .ctp-participant-action-cell > .ctp-button {
        width: 100%;
    }

    .ctp-reset-panel {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }
}

/* Viewport fallbacks for browsers without container-query support. */
@media (max-width: 50rem) {
    .ctp-month-pager {
        align-items: center;
        background: #fafafa;
        border: 1px solid var(--ctp-border);
        border-radius: 0.4rem;
        display: grid;
        gap: 0.75rem;
        grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
        margin: 0 0 0.75rem;
        padding: 0.55rem;
    }

    .ctp-month-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .ctp-month-list .ctp-month {
        display: none;
    }

    .ctp-month-list .ctp-month.is-mobile-current {
        display: block;
    }

    .ctp-month-list .ctp-month.is-mobile-current > h5 {
        display: none;
    }
}

@media (max-width: 42rem) {
    .ctp-app {
        margin-block: 0.5rem;
    }

    .ctp-card {
        padding: clamp(0.85rem, 4vw, 1.15rem);
    }

    .ctp-title {
        font-size: clamp(1.65rem, 7vw, 2rem);
    }

    .ctp-dashboard-course-title {
        font-size: 1.1rem;
    }

    .ctp-timezone-line__full {
        display: none;
    }

    .ctp-timezone-line__compact {
        display: inline;
    }

    .ctp-course-schedule {
        display: grid;
        gap: 0.15rem;
    }

    .ctp-course-schedule > span + span::before {
        content: none;
    }

    .ctp-view-tabs {
        flex-direction: row;
        overflow-x: auto;
    }

    .ctp-view-tabs .ctp-tab {
        border-bottom: 0.2rem solid transparent;
        border-left: 0;
        flex: 0 0 auto;
        text-align: center;
    }

    .ctp-view-tabs .ctp-tab:hover,
    .ctp-view-tabs .ctp-tab.is-active {
        border-bottom-color: var(--ctp-primary);
        border-left-color: transparent;
    }

    .ctp-table-scroll--participants {
        max-height: none;
        overflow: visible;
    }

    .ctp-table-scroll--participants .ctp-participant-table {
        border-collapse: separate;
        border-spacing: 0;
        display: block;
        min-width: 0;
        width: 100%;
    }

    .ctp-participant-table thead {
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    }

    .ctp-participant-table tbody {
        display: grid;
        gap: 0.85rem;
        width: 100%;
    }

    .ctp-participant-table tr {
        background: #ffffff;
        border: 1px solid var(--ctp-border);
        border-radius: 0.5rem;
        display: block;
        min-width: 0;
        overflow: hidden;
        padding: 0.75rem;
        width: 100%;
    }

    .ctp-participant-table td,
    .ctp-participant-table td:last-child,
    .ctp-participant-table td:nth-child(4),
    .ctp-participant-access-cell {
        align-items: start;
        border: 0;
        display: grid;
        gap: 0.35rem 0.75rem;
        grid-template-columns: minmax(7.75rem, 0.8fr) minmax(0, 1.2fr);
        min-width: 0;
        padding: 0.45rem 0;
        text-align: left;
        width: 100%;
    }

    .ctp-participant-table td::before {
        color: var(--ctp-muted);
        content: attr(data-label);
        font-weight: 700;
        line-height: 1.35;
    }

    .ctp-participant-table .ctp-participant-name-cell {
        border-bottom: 1px solid var(--ctp-border);
        display: block;
        font-size: 1.08rem;
        font-weight: 750;
        margin-bottom: 0.25rem;
        padding: 0 0 0.65rem;
    }

    .ctp-participant-table .ctp-participant-name-cell::before {
        content: none;
    }

    .ctp-participant-access-status {
        justify-content: flex-start;
    }

    .ctp-access-status-text {
        display: inline;
        line-height: 1.35;
    }

    .ctp-participant-action-cell {
        display: block !important;
        padding-top: 0.65rem !important;
    }

    .ctp-participant-action-cell::before {
        display: block;
        margin-bottom: 0.4rem;
    }

    .ctp-participant-action-cell > .ctp-button {
        width: 100%;
    }

    .ctp-reset-panel {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }
}

@container ctp-app (max-width: 24rem) {
    .ctp-participant-table td,
    .ctp-participant-table td:last-child,
    .ctp-participant-table td:nth-child(4),
    .ctp-participant-access-cell {
        grid-template-columns: minmax(0, 1fr);
    }

    .ctp-participant-table td::before {
        margin-bottom: 0.1rem;
    }
}

@media (max-width: 24rem) {
    .ctp-participant-table td,
    .ctp-participant-table td:last-child,
    .ctp-participant-table td:nth-child(4),
    .ctp-participant-access-cell {
        grid-template-columns: minmax(0, 1fr);
    }

    .ctp-participant-table td::before {
        margin-bottom: 0.1rem;
    }
}



/* Manual links in the protected frontend administration. */
.ctp-manual-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.25rem 0 1rem;
}

@container ctp-app (max-width: 42rem) {
    .ctp-manual-actions > .ctp-button {
        width: 100%;
    }
}

@media (max-width: 42rem) {
    .ctp-manual-actions > .ctp-button {
        width: 100%;
    }
}
