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

:root {
    --bp-accent: oklch(76% 0.098 194);
    --bp-accent-strong: oklch(43% 0.079 200);
    --bp-danger: oklch(57% 0.23 27);
    --bp-danger-strong: oklch(43% 0.18 27);
    --bp-ink: oklch(19% 0.032 255);
    --bp-text: oklch(29% 0.032 242);
    --bp-muted: oklch(49% 0.023 238);
    --bp-soft: oklch(97% 0.009 205);
    --bp-surface: oklch(99% 0.006 205);
    --bp-surface-soft: oklch(98% 0.011 205);
    --bp-border: oklch(89% 0.018 205);
    --bp-border-strong: oklch(80% 0.031 205);
    --bp-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

html, body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bp-soft);
    color: var(--bp-text);
}

body {
    margin: 0;
}

html:has(.workshops-sheet-page),
body:has(.workshops-sheet-page) {
    height: 100%;
    overflow: hidden;
}

h1, h2, h3, .navbar-brand {
    font-family: inherit;
}

a, .btn-link {
    color: var(--bp-accent-strong);
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(99, 199, 202, 0.55);
}

.backoffice-icon {
    display: block;
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.nav-shell .view-foldout-toggle {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 1.68rem;
    padding: 0.18rem 0.32rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #344250;
    font: inherit;
    text-align: left;
    text-decoration: none;
}

.nav-shell .view-foldout-toggle:hover,
.nav-shell .view-foldout-toggle.active {
    border-color: rgba(99, 199, 202, 0.42);
    background: rgba(99, 199, 202, 0.14);
    color: #101726;
}

.nav-shell .view-foldout-toggle:focus-visible {
    outline: none;
    border-color: rgba(99, 199, 202, 0.72);
    box-shadow: 0 0 0 0.12rem rgba(99, 199, 202, 0.18);
}

.nav-shell .view-foldout-toggle strong {
    display: block;
    color: #182333;
    font-size: 0.82rem;
    line-height: 1.12;
}

.nav-shell .view-foldout-toggle.active .nav-symbol {
    background: #63c7ca;
    color: #101726;
}

.nav-shell .nav-foldout-chevron {
    display: inline-grid;
    place-items: center;
    flex: 0 0 0.9rem;
    width: 0.9rem;
    height: 0.9rem;
    margin-left: auto;
    color: #71808d;
    transition: transform 160ms ease;
}

.nav-shell .nav-foldout-chevron.is-open {
    transform: rotate(180deg);
}

.nav-shell .nav-submenu {
    margin-left: 2.45rem;
}

.loading-shell {
    min-height: 100vh;
    display: grid;
    place-content: center;
    gap: 0.8rem;
    padding: 2rem;
    background:
        radial-gradient(circle at top left, rgba(234, 180, 69, 0.15), transparent 28rem),
        linear-gradient(180deg, #f8f3e9 0%, #f4efe6 100%);
    text-align: center;
}

.loading-shell h1,
.loading-shell p {
    margin: 0;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.dashboard,
.page-stack {
    display: grid;
    gap: 1.4rem;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    min-width: 0;
}

.bookings-page {
    display: grid;
    gap: 1.4rem;
    width: 100%;
    min-width: 0;
}

.teachers-page {
    display: grid;
    gap: 1.4rem;
    width: 100%;
    min-width: 0;
}

.workshops-page {
    display: grid;
    gap: 1.4rem;
    width: 100%;
    min-width: 0;
}

.directory-page {
    display: grid;
    gap: 1.4rem;
    width: 100%;
    min-width: 0;
}

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

.bookings-page .page-stack,
.page-stack-wide {
    max-width: none;
    width: 100%;
    min-width: 0;
}

.page:has(.workshops-sheet-page) {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.page:has(.workshops-sheet-page) .sidebar {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.page:has(.workshops-sheet-page) .nav-scrollable {
    height: calc(100vh - 8.3rem) !important;
    overflow-y: auto !important;
    overflow-x: hidden;
}

main:has(.workshops-sheet-page) {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

main:has(.workshops-sheet-page) .top-row {
    flex: 0 0 auto;
}

main:has(.workshops-sheet-page) .content-shell {
    flex: 1 1 auto;
    min-height: 0;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.workshops-sheet-page {
    height: 100%;
    gap: 0.35rem;
    grid-template-rows: auto minmax(0, 1fr);
    overflow-x: hidden;
    overflow-y: hidden;
    padding-bottom: 0;
}

.workshops-sheet-page:has(.workshops-view-host),
.workshops-sheet-page:has(.workshops-sheet-host) {
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.workshops-top-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    width: 100%;
    min-width: 0;
}

.workshops-top-row .page-header-card {
    border-radius: 0;
    box-shadow: none;
}

.workshops-sheet-host {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.workshops-view-host {
    display: grid;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.workshops-view-host-calendar {
    align-content: stretch;
    overflow: hidden;
}

.workshops-view-host > .workshop-overview-layout,
.workshops-view-host > .planning-calendar-panel,
.workshops-view-host > .planning-tree-panel,
.workshops-view-host > .planning-capacity-panel,
.workshops-view-host > .planning-map-panel,
.workshops-view-host > .workshops-sheet-host {
    min-width: 0;
    min-height: 0;
    height: 100%;
    margin: 0;
}

.workshops-sheet-host {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.workshops-view-host-calendar > .planning-calendar-panel {
    height: 100%;
    min-height: 0;
}

.workshops-sheet-host .sheet-panel,
.workshops-sheet-host .readonly-sheet-panel {
    flex: 1 1 auto;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    min-height: 0;
}

.workshops-sheet-host .sheet-shell,
.workshops-sheet-host .readonly-sheet-shell {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    border-left: none;
    border-bottom: none;
    border-right: none;
}

.workshops-sheet-host .readonly-sheet-toolbar {
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
}

.workshop-sheet-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 0.45rem;
    align-items: end;
    padding: 0.55rem 0.65rem;
    border-top: 1px solid rgba(36, 74, 90, 0.12);
    border-bottom: 1px solid rgba(36, 74, 90, 0.12);
    background: rgba(255, 255, 255, 0.82);
}

.workshop-sheet-filters .teacher-field {
    margin: 0;
}

.workshop-sheet-filters .teacher-field span,
.workshop-sheet-selectable-filter legend {
    font-size: 0.58rem;
}

.workshop-sheet-selectable-filter {
    position: relative;
    padding: 0;
    border: 0;
}

.workshop-sheet-selectable-filter legend {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6f675d;
}

.workshop-sheet-selectable-search {
    min-height: 1.9rem;
    padding: 0.28rem 0.45rem;
    font-size: 0.78rem;
}

.workshop-sheet-selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.22rem;
    min-width: 0;
}

.workshop-sheet-selected-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 1.2rem;
    padding: 0.1rem 0.34rem;
    border: 1px solid rgba(36, 74, 90, 0.16);
    border-radius: 999px;
    background: #e7eef2;
    color: #1f3f4d;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.1;
}

.workshop-sheet-selected-tag span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0;
    text-transform: none;
    color: inherit;
}

.workshop-sheet-selectable-options {
    position: absolute;
    top: calc(100% + 0.24rem);
    left: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.36rem;
    width: min(42rem, calc(100vw - 2rem));
    max-height: 20rem;
    overflow: auto;
    padding: 0.55rem;
    border: 1px solid rgba(36, 74, 90, 0.22);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(31, 48, 57, 0.22);
}

.workshop-sheet-selectable-option {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-width: 0;
    min-height: 1.8rem;
    max-width: 100%;
    padding: 0.28rem 0.5rem;
    border: 1px solid rgba(36, 74, 90, 0.14);
    border-radius: 7px;
    background: #f8fbfc;
    color: #344652;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.1;
}

.workshop-sheet-selectable-option input {
    flex: 0 0 auto;
    width: 0.78rem;
    height: 0.78rem;
    margin: 0;
    accent-color: #244a5a;
}

.workshop-sheet-selectable-option span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0;
    text-transform: none;
    color: inherit;
}

.workshop-sheet-selectable-option-selected {
    border-color: rgba(36, 74, 90, 0.42);
    background: #e7eef2;
    color: #1f3f4d;
}

.workshop-sheet-selectable-empty {
    display: inline-flex;
    grid-column: 1 / -1;
    align-items: center;
    min-height: 1.9rem;
    padding: 0.28rem 0.45rem;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    color: #7b8792;
    font-size: 0.72rem;
    font-weight: 700;
}

.workshop-sheet-filters .teacher-input {
    min-height: 1.9rem;
    padding: 0.28rem 0.45rem;
    font-size: 0.78rem;
}

.workshop-sheet-filters .toolbar-button {
    min-height: 1.9rem;
    justify-content: center;
}

.workshops-sheet-host .readonly-sheet-toolbar + .readonly-sheet-panel {
    margin-top: 0;
}

.workshops-header-actions {
    align-items: flex-start;
}

.workshop-view-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 2.6rem;
    padding: 0.25rem;
    border: 1px solid rgba(36, 74, 90, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.workshop-view-tab {
    min-height: 2.05rem;
    padding: 0.45rem 0.7rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #344652;
    font-size: 0.82rem;
    font-weight: 800;
}

.workshop-view-tab-active {
    background: #244a5a;
    color: #fff;
}

.workshop-overview-stats {
    margin: 0;
    padding: 0 1rem;
}

.workshop-overview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
    gap: 1rem;
    padding: 0;
    min-width: 0;
    overflow: hidden;
}

.workshop-stage-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(14rem, 1fr));
    gap: 0.75rem;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    padding: 0.75rem;
}

.workshop-stage-column,
.workshop-rollup-panel,
.workshop-timeline-panel {
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 28px rgba(77, 64, 42, 0.06);
}

.workshop-stage-column {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
    gap: 0.75rem;
    min-width: 14rem;
    min-height: 0;
    padding: 0.8rem;
    border-top-width: 4px;
}

.workshop-stage-placement {
    border-top-color: #c17c2c;
}

.workshop-stage-docent {
    border-top-color: #476da8;
}

.workshop-stage-school {
    border-top-color: #8f5a96;
}

.workshop-stage-ready {
    border-top-color: #16835d;
}

.workshop-stage-unknown {
    border-top-color: #8a5b16;
}

.workshop-stage-closed {
    border-top-color: #7b8792;
}

.workshop-stage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
}

.workshop-stage-head h2 {
    margin: 0;
    font-size: 1rem;
    color: #1c2733;
}

.workshop-stage-head strong {
    display: inline-grid;
    place-items: center;
    min-width: 2rem;
    min-height: 2rem;
    border-radius: 8px;
    background: rgba(36, 74, 90, 0.08);
    color: #1c2733;
}

.workshop-stage-list,
.workshop-rollup-list {
    display: grid;
    gap: 0.55rem;
}

.workshop-planning-card,
.workshop-timeline-item {
    display: grid;
    gap: 0.25rem;
    width: 100%;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    color: #243241;
    text-align: left;
}

.workshop-planning-card {
    min-height: 8.2rem;
    padding: 0.7rem;
}

.planning-workshop-item-main {
    display: grid;
    gap: inherit;
    min-width: 0;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

.planning-workshop-item-main:hover strong,
.planning-workshop-item-main:focus-visible strong {
    text-decoration: underline;
}

.planning-workshop-item-main:focus-visible {
    outline: 2px solid rgba(36, 74, 90, 0.34);
    outline-offset: 2px;
}

.planning-workshop-title-link {
    color: #1c2733;
    font-weight: 900;
    text-decoration: none;
}

.planning-workshop-title-link:hover,
.planning-workshop-title-link:focus-visible {
    color: #244a5a;
    outline: none;
    text-decoration: underline;
}

.workshop-booking-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-height: 1.85rem;
    margin-top: 0.12rem;
    padding: 0.26rem 0.52rem;
    border-radius: 6px;
    background: rgba(36, 74, 90, 0.08);
    color: #1f5f7a;
    font-size: 0.76rem;
    font-weight: 900;
    text-decoration: none;
}

.workshop-booking-link:hover,
.workshop-booking-link:focus-visible {
    background: rgba(36, 74, 90, 0.14);
    color: #153f52;
    outline: none;
    text-decoration: underline;
}

.workshop-planning-card-selected {
    border-color: rgba(15, 107, 114, 0.58);
    box-shadow: inset 0 0 0 1px rgba(15, 107, 114, 0.28);
}

.workshop-planning-card strong,
.workshop-timeline-item strong,
.workshop-rollup-row strong {
    color: #1c2733;
    overflow-wrap: anywhere;
}

.workshop-planning-card span,
.workshop-planning-card small,
.workshop-timeline-item span,
.workshop-rollup-row span,
.workshop-rollup-row small {
    color: #52606a;
    overflow-wrap: anywhere;
}

.workshop-stage-more {
    margin: 0;
    color: #52606a;
    font-size: 0.82rem;
    font-weight: 800;
}

.workshop-lifecycle-chip {
    width: fit-content;
    border-radius: 6px;
    padding: 0.18rem 0.42rem;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.workshop-lifecycle-placement {
    background: #fff1da;
    color: #74470d;
}

.workshop-lifecycle-docent {
    background: #e7eefb;
    color: #284d86;
}

.workshop-lifecycle-school {
    background: #f0e6f4;
    color: #653a70;
}

.workshop-lifecycle-ready {
    background: #dff3ea;
    color: #0f6848;
}

.workshop-lifecycle-unknown {
    background: #f7ead9;
    color: #7a4a10;
}

.workshop-lifecycle-muted {
    background: #eef1f3;
    color: #66727c;
}

.workshop-rollup-panel,
.workshop-timeline-panel {
    display: grid;
    gap: 0.8rem;
    align-content: start;
    padding: 1rem;
    min-width: 0;
    min-height: 0;
    overflow: auto;
}

.workshop-stage-list,
.workshop-rollup-list {
    min-height: 0;
    overflow: auto;
}

.workshop-rollup-row {
    display: grid;
    gap: 0.45rem;
    padding: 0.7rem;
    border: 1px solid rgba(36, 74, 90, 0.1);
    border-radius: 8px;
    background: rgba(36, 74, 90, 0.035);
}

.workshop-rollup-row div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.7rem;
}

.workshop-rollup-meter {
    height: 0.45rem;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(36, 74, 90, 0.1);
}

.workshop-rollup-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #16835d;
}

.workshop-timeline-panel {
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
    overflow: hidden;
}

.workshop-timeline-grid {
    display: grid;
    grid-template-columns: minmax(12rem, 16rem) repeat(var(--timeline-month-count), minmax(11rem, 1fr));
    min-width: min(100%, calc(12rem + var(--timeline-month-count) * 11rem));
    min-height: 0;
    height: 100%;
    overflow: auto;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
}

.workshop-timeline-lane-header,
.workshop-timeline-month-header,
.workshop-timeline-lane-label,
.workshop-timeline-cell {
    min-width: 0;
    border-right: 1px solid rgba(36, 74, 90, 0.1);
    border-bottom: 1px solid rgba(36, 74, 90, 0.1);
    padding: 0.65rem;
}

.workshop-timeline-lane-header,
.workshop-timeline-month-header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #edf5f6;
    color: #344652;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.workshop-timeline-lane-header,
.workshop-timeline-lane-label {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #f8fbfc;
}

.workshop-timeline-lane-label {
    display: grid;
    gap: 0.2rem;
}

.workshop-timeline-lane-label span {
    color: #52606a;
    font-size: 0.8rem;
}

.workshop-timeline-cell {
    display: grid;
    align-content: start;
    gap: 0.45rem;
    min-height: 6.5rem;
    background: rgba(255, 255, 255, 0.68);
}

.workshop-timeline-item {
    min-height: 3.7rem;
    padding: 0.5rem;
}

.workshop-timeline-item-muted {
    opacity: 0.62;
    background: #f1f3f4;
}

.planning-calendar-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 1rem;
    min-width: 0;
    min-height: 0;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 28px rgba(77, 64, 42, 0.06);
}

.planning-calendar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.planning-calendar-head h2 {
    margin: 0;
    color: #1c2733;
}

.planning-calendar-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 0.65rem;
    min-width: min(100%, 42rem);
}

.planning-calendar-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.planning-calendar-view-tabs {
    min-height: 2.35rem;
}

.planning-calendar-filter {
    min-width: 9rem;
}

.planning-calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 23rem);
    gap: 1rem;
    align-items: stretch;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.planning-calendar-main {
    min-width: 0;
    min-height: 0;
    overflow: auto;
}

.planning-year-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(13.5rem, 1fr));
    gap: 0.75rem;
    min-width: 0;
}

.planning-calendar-mini-month {
    min-height: 12.5rem;
}

.planning-calendar-mini-grid {
    grid-template-columns: 1.7rem repeat(7, minmax(1.35rem, 1fr));
}

.planning-calendar-date {
    display: grid;
    place-items: center;
    gap: 0.08rem;
    position: relative;
    padding: 0.1rem;
}

.planning-calendar-date small {
    color: #8a3e16;
    font-size: 0.55rem;
    line-height: 1;
}

.planning-calendar-date-teacher {
    border-color: rgba(71, 109, 168, 0.48);
    background: #e7eefb;
}

.planning-month-grid {
    display: grid;
    grid-template-columns: minmax(2.7rem, 3rem) repeat(7, minmax(8.5rem, 1fr));
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    overflow: hidden;
    min-width: 65rem;
    min-height: 100%;
}

.planning-month-week-header,
.planning-month-day-header {
    min-height: 2.4rem;
    padding: 0.65rem;
    border-right: 1px solid rgba(36, 74, 90, 0.1);
    border-bottom: 1px solid rgba(36, 74, 90, 0.1);
    background: #edf5f6;
    color: #344652;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.planning-month-week-header {
    display: grid;
    place-items: center;
    padding-inline: 0.25rem;
    text-align: center;
}

.planning-month-week-number {
    display: grid;
    place-items: start center;
    min-width: 0;
    min-height: 8.75rem;
    padding: 0.65rem 0.25rem;
    border: 0;
    border-right: 1px solid rgba(36, 74, 90, 0.1);
    border-bottom: 1px solid rgba(36, 74, 90, 0.1);
    background: #f2f8f9;
    color: #244a5a;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 900;
    cursor: pointer;
}

.planning-month-week-number:hover,
.planning-month-week-number:focus-visible {
    background: #dfeff2;
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(29, 93, 114, 0.28);
}

.planning-month-date {
    display: grid;
    align-content: start;
    gap: 0.36rem;
    min-height: 8.75rem;
    min-width: 0;
    padding: 0.55rem;
    border: 0;
    border-right: 1px solid rgba(36, 74, 90, 0.1);
    border-bottom: 1px solid rgba(36, 74, 90, 0.1);
    background: rgba(255, 255, 255, 0.74);
    color: #243241;
    text-align: left;
}

.planning-month-date-select {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

.planning-month-date-outside {
    background: rgba(241, 243, 244, 0.76);
    color: #7b8792;
}

.planning-month-date-today {
    box-shadow: inset 0 0 0 2px rgba(180, 132, 22, 0.42);
}

.planning-month-date-selected {
    box-shadow: inset 0 0 0 2px rgba(29, 93, 114, 0.48);
}

.planning-month-date-planned {
    background: #fbfdfd;
}

.planning-calendar-date-number {
    display: inline-grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: rgba(36, 74, 90, 0.08);
    color: #1c2733;
    font-weight: 900;
}

.planning-calendar-date-summary {
    color: #52606a;
    font-size: 0.72rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.planning-calendar-event-pill {
    display: block;
    min-width: 0;
    width: 100%;
    padding: 0.28rem 0.4rem;
    border: 0;
    border-radius: 6px;
    color: #253642;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    cursor: pointer;
}

.planning-calendar-event-pill-week,
.planning-calendar-event-pill-detailed {
    display: grid;
    gap: 0.12rem;
    min-height: 3.7rem;
    line-height: 1.2;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.planning-calendar-event-time,
.planning-calendar-event-text {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.planning-calendar-event-time {
    color: #1f3340;
    font-weight: 900;
    white-space: nowrap;
}

.planning-calendar-event-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: #344652;
    font-weight: 800;
    white-space: normal;
}

.planning-calendar-event-pill-detailed .planning-calendar-event-text {
    display: block;
    overflow: visible;
    text-overflow: clip;
    -webkit-line-clamp: unset;
}

.planning-calendar-event-selected {
    box-shadow: inset 0 0 0 2px rgba(15, 107, 114, 0.48);
}

.planning-calendar-docent-columns {
    display: grid;
    grid-template-columns: repeat(var(--planning-calendar-docent-count), minmax(0, 1fr));
    align-items: start;
    gap: 0.35rem;
    min-width: 0;
}

.planning-calendar-docent-column {
    display: grid;
    align-content: start;
    gap: 0.28rem;
    min-width: 0;
}

.planning-calendar-docent-head {
    display: block;
    min-width: 0;
    color: #344652;
    font-size: 0.68rem;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.planning-calendar-docent-columns-month {
    grid-template-columns: repeat(var(--planning-calendar-docent-count), minmax(0, 1fr));
}

.planning-calendar-docent-columns-week {
    grid-template-columns: repeat(var(--planning-calendar-docent-count), minmax(4.5rem, 1fr));
}

.planning-calendar-docent-columns-day {
    grid-template-columns: repeat(var(--planning-calendar-docent-count), minmax(8rem, 1fr));
}

.planning-calendar-event-placement {
    background: #fff1da;
}

.planning-calendar-event-docent {
    background: #e7eefb;
}

.planning-calendar-event-school {
    background: #f0e6f4;
}

.planning-calendar-event-ready {
    background: #dff3ea;
}

.planning-calendar-event-muted {
    background: #eef1f3;
    color: #66727c;
}

.planning-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(11rem, 1fr));
    gap: 0.65rem;
    min-width: 78rem;
    min-height: 100%;
}

.planning-week-day {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 28rem;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    overflow: hidden;
}

.planning-week-day-selected {
    box-shadow: inset 0 0 0 2px rgba(29, 93, 114, 0.4);
}

.planning-week-day-today .planning-week-day-head {
    background: #fff7df;
}

.planning-week-day-head {
    display: grid;
    gap: 0.12rem;
    min-height: 4.7rem;
    padding: 0.7rem;
    border: 0;
    border-bottom: 1px solid rgba(36, 74, 90, 0.1);
    background: #edf5f6;
    text-align: left;
}

.planning-week-day-head span,
.planning-week-day-head small {
    color: #52606a;
    font-size: 0.74rem;
    font-weight: 800;
}

.planning-week-day-head strong {
    color: #1c2733;
    font-size: 1.35rem;
}

.planning-week-event-list,
.planning-day-agenda,
.planning-calendar-context-list {
    display: grid;
    align-content: start;
    gap: 0.5rem;
    min-height: 0;
    overflow: auto;
}

.planning-week-event-list {
    padding: 0.55rem;
}

.planning-week-event-list p {
    margin: 0;
    color: #697379;
    font-size: 0.82rem;
    font-weight: 700;
}

.planning-day-view {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.75rem;
    min-height: 100%;
    padding: 1rem;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
}

.planning-day-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.planning-day-head h3 {
    margin: 0;
    color: #1c2733;
}

.planning-day-head strong {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 0.6rem;
    border-radius: 8px;
    background: rgba(36, 74, 90, 0.08);
    color: #244a5a;
}

.planning-calendar-agenda-item,
.planning-calendar-context-item {
    display: grid;
    gap: 0.18rem;
    width: 100%;
    min-width: 0;
    padding: 0.58rem 0.65rem;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-left-width: 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    color: #243241;
    text-align: left;
}

.planning-calendar-agenda-item strong,
.planning-calendar-context-item strong {
    color: #1c2733;
    overflow-wrap: anywhere;
}

.planning-calendar-agenda-item span,
.planning-calendar-context-item span {
    color: #244a5a;
    font-size: 0.78rem;
    font-weight: 900;
}

.planning-calendar-agenda-item small,
.planning-calendar-context-item small,
.planning-calendar-agenda-item em {
    color: #52606a;
    font-size: 0.78rem;
    font-style: normal;
    overflow-wrap: anywhere;
}

.planning-calendar-context-item-placement,
.planning-calendar-agenda-item-placement {
    border-left-color: #c17c2c;
}

.planning-calendar-context-item-docent,
.planning-calendar-agenda-item-docent {
    border-left-color: #476da8;
}

.planning-calendar-context-item-school,
.planning-calendar-agenda-item-school {
    border-left-color: #8f5a96;
}

.planning-calendar-context-item-ready,
.planning-calendar-agenda-item-ready {
    border-left-color: #16835d;
}

.planning-calendar-context-item-muted,
.planning-calendar-agenda-item-muted {
    border-left-color: #7b8792;
    opacity: 0.68;
}

.planning-calendar-context-item-selected,
.planning-calendar-agenda-item-selected {
    border-color: rgba(15, 107, 114, 0.58);
    border-left-color: #0f6b72;
    box-shadow: inset 0 0 0 1px rgba(15, 107, 114, 0.28);
}

.planning-calendar-side {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-height: none;
    overflow: auto;
}

.planning-calendar-context-card {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
}

.planning-calendar-selected-card {
    border-color: rgba(15, 107, 114, 0.34);
    background: rgba(237, 245, 246, 0.72);
}

.planning-calendar-context-card h3,
.planning-calendar-context-card p {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.planning-calendar-context-card h3 {
    color: #1c2733;
    font-size: 1rem;
}

.planning-calendar-context-card p {
    color: #52606a;
    font-size: 0.85rem;
}

.planning-calendar-context-card dl {
    display: grid;
    gap: 0.42rem;
    margin: 0;
}

.planning-calendar-context-card dl div {
    display: grid;
    gap: 0.08rem;
}

.planning-calendar-context-card dt {
    color: #746d61;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.planning-calendar-context-card dd {
    margin: 0;
    color: #253642;
    overflow-wrap: anywhere;
}

.planning-calendar-edit-panel,
.planning-tree-panel,
.planning-capacity-panel,
.planning-map-panel {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 28px rgba(77, 64, 42, 0.06);
}

.planning-calendar-edit-panel {
    grid-template-rows: auto minmax(0, 1fr);
    margin: 0;
    background: rgba(248, 251, 252, 0.86);
}

.planning-tree-panel,
.planning-map-panel {
    grid-template-rows: auto minmax(0, 1fr);
}

.planning-capacity-panel {
    grid-template-rows: auto minmax(0, 1fr);
}

.planning-calendar-edit-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.planning-calendar-edit-head h3 {
    margin: 0;
    color: #1c2733;
}

.planning-calendar-edit-tabs {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.planning-calendar-edit-sheet {
    display: grid;
    gap: 0.65rem;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.planning-calendar-edit-sheet .formula-bar-panel,
.planning-calendar-edit-sheet .sheet-panel {
    border-radius: 8px;
    box-shadow: none;
}

.planning-calendar-edit-sheet .sheet-shell {
    max-height: none;
    border-radius: 8px;
}

.planning-tree-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    align-content: flex-start;
}

.planning-tree-group {
    display: grid;
    gap: 0;
    flex: 0 0 auto;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.planning-tree-group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    width: 100%;
    padding: 0.78rem 0.9rem;
    border: 0;
    border-bottom: 1px solid rgba(36, 74, 90, 0.1);
    background: #edf5f6;
    color: #243241;
    text-align: left;
}

.planning-tree-group-head h3 {
    margin: 0;
    color: #1c2733;
    overflow-wrap: anywhere;
}

.planning-tree-group-head span {
    color: #52606a;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.planning-tree-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
    min-width: 8rem;
}

.planning-tree-metrics strong,
.planning-tree-metrics span {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.18rem 0.45rem;
    border-radius: 6px;
    background: rgba(36, 74, 90, 0.08);
    color: #244a5a;
    font-size: 0.76rem;
    font-weight: 900;
}

.planning-tree-children {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0.5rem;
    padding: 0.7rem;
}

.planning-tree-item {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
    min-height: 5.1rem;
    padding: 0.55rem 0.62rem;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-left-width: 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #253642;
    text-align: left;
}

.planning-tree-item span {
    color: #244a5a;
    font-size: 0.76rem;
    font-weight: 900;
}

.planning-tree-item strong,
.planning-tree-item small {
    overflow-wrap: anywhere;
}

.planning-tree-item strong {
    color: #1c2733;
}

.planning-tree-item small {
    color: #52606a;
    font-size: 0.78rem;
}

.planning-tree-item-placement {
    border-left-color: #c17c2c;
}

.planning-tree-item-docent {
    border-left-color: #476da8;
}

.planning-tree-item-school {
    border-left-color: #8f5a96;
}

.planning-tree-item-ready {
    border-left-color: #16835d;
}

.planning-tree-item-muted {
    border-left-color: #7b8792;
    opacity: 0.68;
}

.planning-tree-item-selected {
    border-color: rgba(15, 107, 114, 0.58);
    border-left-color: #0f6b72;
    box-shadow: inset 0 0 0 1px rgba(15, 107, 114, 0.28);
}

.planning-tree-more {
    margin: 0;
    align-self: center;
    color: #52606a;
    font-size: 0.82rem;
    font-weight: 800;
}

.planning-capacity-scroll {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: scroll auto;
    scrollbar-gutter: stable both-edges;
    scrollbar-color: #8fb4bd #edf5f6;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    background: #f8fbfc;
}

.planning-capacity-scroll::-webkit-scrollbar {
    width: 0.8rem;
    height: 0.8rem;
}

.planning-capacity-scroll::-webkit-scrollbar-track {
    background: #edf5f6;
}

.planning-capacity-scroll::-webkit-scrollbar-thumb {
    border: 2px solid #edf5f6;
    border-radius: 999px;
    background: #8fb4bd;
}

.planning-capacity-grid {
    display: grid;
    grid-template-columns: minmax(12rem, 16rem) repeat(var(--planning-capacity-week-count), minmax(4.25rem, 1fr));
    min-width: calc(12rem + var(--planning-capacity-week-count) * 4.25rem);
    min-height: 100%;
}

.planning-capacity-corner,
.planning-capacity-week-head,
.planning-capacity-lane-head,
.planning-capacity-bucket {
    min-width: 0;
    min-height: 4rem;
    border: 0;
    border-right: 1px solid rgba(36, 74, 90, 0.1);
    border-bottom: 1px solid rgba(36, 74, 90, 0.1);
}

.planning-capacity-corner,
.planning-capacity-week-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #edf5f6;
}

.planning-capacity-corner,
.planning-capacity-lane-head {
    position: sticky;
    left: 0;
    z-index: 3;
}

.planning-capacity-corner {
    display: grid;
    align-items: center;
    padding: 0.65rem;
    color: #344652;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.planning-capacity-week-head {
    display: grid;
    align-content: center;
    gap: 0.12rem;
    padding: 0.45rem;
    color: #344652;
    text-align: center;
}

.planning-capacity-week-head strong,
.planning-capacity-lane-head strong,
.planning-capacity-bucket strong {
    color: #1c2733;
}

.planning-capacity-week-head span,
.planning-capacity-lane-head span,
.planning-capacity-bucket span {
    color: #52606a;
    font-size: 0.68rem;
    font-weight: 800;
}

.planning-capacity-lane-head {
    display: grid;
    align-content: center;
    gap: 0.18rem;
    padding: 0.55rem 0.65rem;
    background: #f8fbfc;
    text-align: left;
}

.planning-capacity-bucket {
    display: grid;
    place-items: center;
    gap: 0.1rem;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.78);
    color: #243241;
}

.planning-capacity-bucket strong {
    font-size: 1.05rem;
}

.planning-capacity-bucket-empty {
    background: #f4f7f8;
}

.planning-capacity-bucket-balanced {
    background: #dff3ea;
}

.planning-capacity-bucket-heavy {
    background: #fff1da;
}

.planning-capacity-bucket-overload {
    background: #fde5e1;
}

.planning-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
    gap: 1rem;
    min-width: 0;
    min-height: 0;
    height: 100%;
    align-items: stretch;
    overflow: hidden;
}

.planning-map-canvas {
    position: relative;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(36, 74, 90, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(36, 74, 90, 0.06) 1px, transparent 1px),
        #edf5f6;
    background-size: 10% 10%;
}

.planning-map-tiles {
    position: absolute;
    inset: 0;
    z-index: 0;
    min-height: 0;
    height: 100%;
}

.planning-map-canvas-ready .planning-map-point-fallback {
    display: none;
}

.planning-map-canvas .leaflet-container,
.planning-map-tiles.leaflet-container {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #edf5f6;
    color: #253642;
    font: inherit;
}

.planning-map-leaflet-point {
    --planning-map-marker-color: #244a5a;
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--planning-map-marker-color);
    color: #fff;
    box-shadow: 0 6px 18px rgba(24, 43, 54, 0.22);
}

.planning-map-leaflet-point span {
    font-size: 0.8rem;
    font-weight: 900;
}

.planning-map-leaflet-point-selected {
    background: #c17c2c;
    box-shadow: 0 0 0 4px rgba(193, 124, 44, 0.22), 0 6px 18px rgba(24, 43, 54, 0.22);
}

.leaflet-marker-icon:focus .planning-map-leaflet-point {
    box-shadow: 0 0 0 4px rgba(15, 107, 114, 0.24), 0 6px 18px rgba(24, 43, 54, 0.22);
}

.planning-map-point {
    --planning-map-token: #244a5a;
    position: absolute;
    z-index: 2;
    left: var(--map-x);
    top: var(--map-y);
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--planning-map-token);
    color: #fff;
    box-shadow: 0 6px 18px rgba(24, 43, 54, 0.22);
}

.planning-map-point span {
    font-size: 0.8rem;
    font-weight: 900;
}

.planning-map-point-selected {
    background: #c17c2c;
    box-shadow: 0 0 0 4px rgba(193, 124, 44, 0.22), 0 6px 18px rgba(24, 43, 54, 0.22);
}

.planning-map-empty {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 0.2rem;
    padding: 1rem;
    color: #52606a;
    text-align: center;
}

.planning-map-empty strong {
    color: #1c2733;
}

.planning-map-list {
    display: grid;
    align-content: start;
    gap: 0.55rem;
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-height: none;
    overflow: auto;
}

.planning-map-detail-panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    align-content: start;
    gap: 0.75rem;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 0.85rem;
    overflow: hidden;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
}

.planning-map-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.planning-map-detail-head div {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
}

.planning-map-detail-head h3,
.planning-map-detail-head span,
.planning-map-detail-empty h3,
.planning-map-detail-empty p {
    margin: 0;
    overflow-wrap: anywhere;
}

.planning-map-detail-head h3,
.planning-map-detail-empty h3 {
    color: #1c2733;
    font-size: 1rem;
}

.planning-map-detail-head span,
.planning-map-detail-empty p {
    color: #52606a;
    font-size: 0.82rem;
}

.planning-map-detail-head a {
    flex: 0 0 auto;
    color: #1f5f7a;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.planning-map-detail-head a:hover {
    text-decoration: underline;
}

.planning-map-detail-meta {
    display: grid;
    gap: 0.42rem;
    margin: 0;
    min-width: 0;
}

.planning-map-detail-meta div {
    display: grid;
    gap: 0.08rem;
}

.planning-map-detail-meta dt {
    color: #746d61;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.planning-map-detail-meta dd {
    margin: 0;
    color: #253642;
    overflow-wrap: anywhere;
}

.planning-map-detail-workshops {
    display: grid;
    align-content: start;
    gap: 0.45rem;
    min-width: 0;
    min-height: 0;
    overflow: auto;
}

.planning-map-detail-empty {
    display: grid;
    align-content: start;
    gap: 0.45rem;
    min-width: 0;
}

.planning-map-location {
    --planning-map-token: #244a5a;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid color-mix(in srgb, var(--planning-map-token) 34%, rgba(36, 74, 90, 0.12));
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
}

.planning-map-location button {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #253642;
    text-align: left;
}

.planning-map-location strong,
.planning-map-location span,
.planning-map-location small {
    overflow-wrap: anywhere;
}

.planning-map-location span,
.planning-map-location small {
    color: #52606a;
    font-size: 0.78rem;
}

.planning-map-location a {
    color: #1f5f7a;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.planning-map-location a:hover {
    text-decoration: underline;
}

.planning-map-location-unmatched {
    border-left-color: #7b8792;
    background: #f4f7f8;
}

.planning-map-location-selected {
    border-color: rgba(15, 107, 114, 0.58);
    border-left-color: #0f6b72;
    box-shadow: inset 0 0 0 1px rgba(15, 107, 114, 0.28);
}

.planning-map-point-green,
.planning-map-location-green {
    --planning-map-token: #16835d;
}

.planning-map-point-yellow,
.planning-map-location-yellow {
    --planning-map-token: #d08a1e;
}

.planning-map-point-orange,
.planning-map-location-orange {
    --planning-map-token: #c45b1d;
}

.planning-map-point-blue,
.planning-map-location-blue {
    --planning-map-token: #476da8;
}

.planning-map-point-cyan,
.planning-map-location-cyan {
    --planning-map-token: #0f8b95;
}

.planning-map-point-teal,
.planning-map-location-teal {
    --planning-map-token: #0f8a70;
}

.planning-map-point-purple,
.planning-map-location-purple {
    --planning-map-token: #8f5a96;
}

.planning-map-point-pink,
.planning-map-location-pink {
    --planning-map-token: #bd4f76;
}

.planning-map-point-red,
.planning-map-location-red {
    --planning-map-token: #c8372d;
}

.planning-map-point-slate,
.planning-map-location-slate,
.planning-map-point-gray,
.planning-map-location-gray {
    --planning-map-token: #60717b;
}

@media (max-width: 1200px) {
    .workshop-overview-layout {
        grid-template-columns: 1fr;
    }

    .workshop-stage-board {
        grid-template-columns: repeat(5, minmax(13rem, 18rem));
    }

    .planning-calendar-layout {
        grid-template-columns: 1fr;
    }

    .planning-calendar-side {
        position: static;
        max-height: none;
    }

    .planning-year-grid {
        grid-template-columns: repeat(2, minmax(13.5rem, 1fr));
    }

    .planning-map-layout {
        grid-template-columns: 1fr;
    }

    .planning-map-list,
    .planning-map-detail-panel {
        max-height: none;
    }
}

@media (max-width: 780px) {
    .workshops-top-row {
        grid-template-columns: 1fr;
    }

    .workshop-view-tabs {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .workshop-view-tab {
        flex: 0 0 auto;
    }

    .workshop-overview-stats,
    .workshop-overview-layout,
    .workshop-timeline-panel,
    .planning-calendar-panel,
    .planning-tree-panel,
    .planning-capacity-panel,
    .planning-map-panel {
        margin: 0;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .planning-calendar-head {
        flex-direction: column;
    }

    .planning-calendar-controls,
    .planning-calendar-view-tabs,
    .planning-calendar-edit-tabs,
    .planning-calendar-filter {
        width: 100%;
    }

    .planning-calendar-edit-head,
    .planning-tree-group-head {
        flex-direction: column;
    }

    .planning-year-grid {
        grid-template-columns: 1fr;
    }

    .planning-month-grid,
    .planning-week-grid {
        overflow-x: auto;
    }
}

@media (max-width: 1024px) {
    html:has(.workshops-sheet-page),
    body:has(.workshops-sheet-page) {
        height: auto;
        overflow: auto;
    }

    .page:has(.workshops-sheet-page),
    .page:has(.workshops-sheet-page) .sidebar,
    main:has(.workshops-sheet-page) {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    main:has(.workshops-sheet-page) {
        display: block;
    }

    main:has(.workshops-sheet-page) .content-shell {
        overflow: visible;
    }

    .workshops-sheet-page {
        height: auto;
        overflow: visible;
    }

    .workshops-sheet-page:has(.workshops-sheet-host) {
        grid-template-rows: auto minmax(30rem, 78vh);
    }
}

.teachers-workspace {
    display: grid;
    grid-template-columns: minmax(16rem, 21rem) minmax(0, 1fr);
    gap: 1.2rem;
    width: 100%;
    min-width: 0;
}

.teachers-workspace-single {
    grid-template-columns: minmax(0, 1fr);
}

.directory-workspace {
    display: grid;
    grid-template-columns: minmax(17rem, 23rem) minmax(0, 1fr);
    gap: 1.2rem;
    width: 100%;
    min-width: 0;
}

.workshops-workspace {
    display: grid;
    grid-template-columns: minmax(17rem, 23rem) minmax(0, 1fr);
    gap: 1.2rem;
    width: 100%;
    min-width: 0;
}

.teacher-list-panel,
.teacher-detail-panel,
.directory-list-panel,
.directory-detail-panel,
.directory-table-panel,
.workshop-list-panel,
.workshop-detail-panel {
    border-radius: 28px;
    background: rgba(255, 251, 245, 0.84);
    border: 1px solid rgba(54, 66, 72, 0.1);
    box-shadow: 0 24px 50px rgba(77, 64, 42, 0.08);
    padding: 1.3rem;
    min-width: 0;
}

.teacher-list-head,
.teacher-detail-head,
.directory-list-head,
.workshop-list-head,
.workshop-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.teacher-list-head h2,
.teacher-detail-head h2,
.teacher-empty-state h2,
.directory-list-head h2,
.workshop-list-head h2,
.workshop-detail-head h2 {
    margin: 0;
    color: #1d2733;
}

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

.workshop-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
    max-height: 72vh;
    overflow: auto;
    padding-right: 0.2rem;
}

.directory-list {
    display: grid;
    gap: 0.75rem;
    align-content: start;
    margin-top: 1rem;
    max-height: 64vh;
    overflow: auto;
    padding-right: 0.2rem;
}

.teacher-list-item {
    display: grid;
    gap: 0.18rem;
    width: 100%;
    padding: 0.9rem 0.95rem;
    text-align: left;
    border-radius: 18px;
    border: 1px solid rgba(36, 74, 90, 0.12);
    background: rgba(255, 255, 255, 0.76);
    color: #244a5a;
}

.directory-list-item {
    display: grid;
    gap: 0.18rem;
    width: 100%;
    padding: 0.9rem 0.95rem;
    text-align: left;
    border-radius: 18px;
    border: 1px solid rgba(36, 74, 90, 0.12);
    background: rgba(255, 255, 255, 0.76);
    color: #244a5a;
}

.workshop-list-item {
    display: grid;
    gap: 0.18rem;
    width: 100%;
    padding: 0.9rem 0.95rem;
    text-align: left;
    border-radius: 18px;
    border: 1px solid rgba(36, 74, 90, 0.12);
    background: rgba(255, 255, 255, 0.76);
    color: #244a5a;
}

.workshop-list-item-archived {
    border-color: rgba(105, 115, 121, 0.14);
    background: rgba(232, 234, 235, 0.68);
    color: #697379;
    opacity: 0.72;
}

.teacher-list-item-inactive,
.directory-list-item-disabled {
    border-color: rgba(105, 115, 121, 0.14);
    background: rgba(232, 234, 235, 0.68);
    color: #697379;
    filter: grayscale(1);
    opacity: 0.72;
}

.workshop-list-item-archived strong,
.workshop-list-item-archived span,
.workshop-list-item-archived small,
.teacher-list-item-inactive strong,
.teacher-list-item-inactive span,
.teacher-list-item-inactive small,
.directory-list-item-disabled strong,
.directory-list-item-disabled span,
.directory-list-item-disabled small {
    color: #697379;
}

.workshop-list-item-active.workshop-list-item-archived {
    background: linear-gradient(180deg, rgba(226, 232, 235, 0.96), rgba(243, 245, 246, 0.98));
    border-color: rgba(105, 115, 121, 0.28);
    opacity: 0.92;
}

.teacher-list-item-active.teacher-list-item-inactive,
.directory-list-item-active.directory-list-item-disabled {
    background: linear-gradient(180deg, rgba(226, 232, 235, 0.96), rgba(243, 245, 246, 0.98));
    border-color: rgba(105, 115, 121, 0.28);
    opacity: 0.92;
}

.teacher-list-item strong,
.teacher-list-item span,
.teacher-list-item small,
.directory-list-item strong,
.directory-list-item span,
.directory-list-item small,
.workshop-list-item strong,
.workshop-list-item span,
.workshop-list-item small {
    display: block;
    overflow-wrap: anywhere;
}

.teacher-list-item span,
.teacher-list-item small,
.directory-list-item span,
.directory-list-item small,
.workshop-list-item span,
.workshop-list-item small {
    color: #5d6470;
}

.teacher-list-item-active,
.directory-list-item-active,
.workshop-list-item-active {
    background: linear-gradient(180deg, rgba(223, 237, 246, 0.96), rgba(243, 250, 252, 0.98));
    border-color: rgba(36, 74, 90, 0.22);
    box-shadow: inset 0 0 0 1px rgba(36, 74, 90, 0.08);
}

.teacher-list-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.teacher-employment-pill {
    flex: 0 0 auto;
    width: auto;
    padding: 0.14rem 0.42rem;
    border-radius: 999px;
    background: rgba(36, 74, 90, 0.12);
    color: #244a5a;
    font-size: 0.68rem;
    font-weight: 800;
}

.workshop-list-item-archived,
.workshop-list-item-archived strong,
.workshop-list-item-archived span,
.workshop-list-item-archived small,
.teacher-list-item-inactive,
.teacher-list-item-inactive strong,
.teacher-list-item-inactive span,
.teacher-list-item-inactive small {
    color: #697379;
}

.workshop-list-item-active.workshop-list-item-archived {
    background: linear-gradient(180deg, rgba(226, 232, 235, 0.96), rgba(243, 245, 246, 0.98));
    border-color: rgba(105, 115, 121, 0.28);
    opacity: 0.92;
}

.teacher-list-item-active.teacher-list-item-inactive {
    background: linear-gradient(180deg, rgba(226, 232, 235, 0.96), rgba(243, 245, 246, 0.98));
    border-color: rgba(105, 115, 121, 0.28);
    opacity: 0.92;
}

.workshop-detail-panel {
    display: grid;
    align-content: start;
    gap: 1.25rem;
}

.workshop-promise {
    margin: 0.65rem 0 0;
    max-width: 70ch;
    font-size: 1.08rem;
    line-height: 1.55;
    color: #3f4b57;
}

.site-cms-area-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 1rem 0;
}

.site-cms-area-filter button {
    border: 1px solid rgba(36, 74, 90, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #244a5a;
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.site-cms-area-filter .site-cms-area-active {
    background: #244a5a;
    color: white;
}

.site-cms-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.75fr);
    gap: 1.25rem;
    align-items: start;
}

.site-cms-body-input {
    min-height: 18rem;
}

.site-cms-preview {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 0.8rem;
    min-width: 0;
}

.site-cms-preview-card {
    display: grid;
    gap: 0.7rem;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 240, 242, 0.92));
    box-shadow: 0 18px 36px rgba(77, 64, 42, 0.08);
    padding: 1.3rem;
    overflow-wrap: anywhere;
}

.site-cms-preview-card h3,
.site-cms-preview-card p {
    margin: 0;
}

.site-cms-preview-card a {
    width: fit-content;
    border-radius: 999px;
    background: #244a5a;
    color: white;
    padding: 0.55rem 0.8rem;
    text-decoration: none;
    font-weight: 800;
}

.site-cms-preview-icon {
    font-size: 2rem;
}

.site-cms-preview-draft {
    filter: grayscale(1);
    opacity: 0.68;
}

.site-cms-wysiwyg-shell {
    display: grid;
    grid-template-columns: minmax(18rem, 21rem) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.site-cms-command-panel,
.site-cms-canvas-panel {
    min-width: 0;
}

.site-cms-command-panel {
    position: sticky;
    top: 1rem;
    display: grid;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    gap: 0.9rem;
}

.site-cms-panel-section,
.site-cms-canvas-panel {
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 18px;
    background: rgba(255, 251, 245, 0.88);
    box-shadow: 0 20px 42px rgba(77, 64, 42, 0.08);
}

.site-cms-panel-section {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.site-cms-page-tabs,
.site-cms-category-pills,
.site-cms-inspector-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.site-cms-page-tabs button,
.site-cms-category-pills button {
    min-height: 2.35rem;
    border: 1px solid rgba(36, 74, 90, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    color: #244a5a;
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 800;
}

.site-cms-page-tabs .site-cms-tab-active,
.site-cms-category-pills .site-cms-area-active {
    background: #244a5a;
    color: white;
}

.site-cms-list-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.site-cms-list-head h2 {
    margin: 0.25rem 0 0;
    color: #233642;
    font-size: 1rem;
    line-height: 1.2;
}

.site-cms-list-head > span,
.site-cms-change-pill {
    border-radius: 999px;
    background: rgba(36, 74, 90, 0.08);
    color: #244a5a;
    padding: 0.32rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
}

.site-cms-visible-block-list {
    display: grid;
    gap: 0.9rem;
}

.site-cms-visible-block-group {
    display: grid;
    gap: 0.5rem;
    min-width: 0;
    border-top: 1px solid rgba(36, 74, 90, 0.1);
    padding-top: 0.75rem;
}

.site-cms-visible-block-group:first-child {
    border-top: 0;
    padding-top: 0;
}

.site-cms-visible-block-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.site-cms-visible-block-group-head .section-kicker {
    margin: 0;
}

.site-cms-visible-block-group-head span {
    border-radius: 999px;
    background: rgba(36, 74, 90, 0.08);
    color: #244a5a;
    padding: 0.22rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 900;
    white-space: nowrap;
}

.site-cms-list-item-dirty {
    border-color: rgba(180, 82, 32, 0.42);
    box-shadow: inset 4px 0 0 rgba(180, 82, 32, 0.7);
}

.site-cms-inspector-card {
    display: grid;
    gap: 0.8rem;
}

.site-cms-inspector-actions .toolbar-button,
.site-cms-inspector-actions .toolbar-button-secondary,
.site-cms-inspector-actions .toolbar-button-danger {
    flex: 1 1 8rem;
}

.site-cms-canvas-panel {
    overflow: hidden;
}

.site-cms-browser-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    border-bottom: 1px solid rgba(36, 74, 90, 0.12);
    background: #eef3f0;
    padding: 0.7rem 0.85rem;
}

.site-cms-window-dots {
    display: flex;
    gap: 0.35rem;
}

.site-cms-window-dots span {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    background: #d65d55;
}

.site-cms-window-dots span:nth-child(2) {
    background: #e3b74e;
}

.site-cms-window-dots span:nth-child(3) {
    background: #5da772;
}

.site-cms-url {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #4a5963;
    padding: 0.42rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-cms-preview-frame {
    max-height: min(82vh, 58rem);
    overflow: auto;
    background: #cfd8dc;
}

.site-cms-live-site {
    min-height: 100%;
}

.site-cms-live-site .studio-header {
    position: static;
}

.site-cms-editable-block {
    position: relative;
    cursor: default;
    transition: box-shadow 0.16s ease, outline-color 0.16s ease;
}

.site-cms-editable-block::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 2px solid transparent;
    border-radius: 10px;
    pointer-events: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.site-cms-editable-block:hover::after {
    border-color: rgba(36, 74, 90, 0.26);
}

.site-cms-editable-block-active::after {
    border-color: rgba(36, 74, 90, 0.72);
    box-shadow: 0 0 0 4px rgba(36, 74, 90, 0.12);
}

.site-cms-editable-block-dirty::after {
    border-color: rgba(180, 82, 32, 0.82);
    box-shadow: 0 0 0 4px rgba(180, 82, 32, 0.13);
}

.site-cms-inline-edit {
    min-width: 0.8em;
    border-radius: 4px;
    outline: 0;
    cursor: text;
    text-decoration: underline;
    text-decoration-color: rgba(36, 74, 90, 0.24);
    text-decoration-thickness: 0.12em;
    text-underline-offset: 0.14em;
}

.site-cms-inline-edit:hover {
    background: rgba(255, 255, 255, 0.42);
    text-decoration-color: rgba(36, 74, 90, 0.46);
}

.site-cms-inline-edit:focus {
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 0 0 3px rgba(36, 74, 90, 0.18);
    text-decoration-color: transparent;
}

.site-cms-inline-edit:empty::before {
    content: attr(data-placeholder);
    color: rgba(51, 65, 85, 0.48);
}

.site-cms-inline-edit-body {
    display: block;
    min-height: 1.6rem;
    text-decoration: none;
}

.site-cms-inline-edit-body p:last-child {
    margin-bottom: 0;
}

.site-cms-inline-icon {
    display: inline-block;
    min-width: 1.2em;
    margin-right: 0.25rem;
    text-align: center;
}

.workshop-sheet-label {
    flex: 0 0 auto;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    background: rgba(36, 74, 90, 0.1);
    color: #244a5a;
    font-size: 0.78rem;
    font-weight: 700;
}

.workshop-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.workshop-meta-item {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.85rem;
    border-radius: 18px;
    background: rgba(36, 74, 90, 0.06);
}

.workshop-meta-item span,
.workshop-definition-list dt {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #746d61;
}

.workshop-meta-item strong {
    color: #1d2733;
    overflow-wrap: anywhere;
}

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

.workshop-content-section {
    min-width: 0;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(36, 74, 90, 0.08);
}

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

.workshop-copy {
    margin: 0;
    color: #3f4b57;
    line-height: 1.62;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.workshop-definition-list {
    display: grid;
    gap: 0.8rem;
    margin: 0;
}

.workshop-definition-list div {
    display: grid;
    gap: 0.25rem;
}

.workshop-definition-list dd {
    margin: 0;
    color: #3f4b57;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.workshop-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.workshop-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 2rem;
    padding: 0.38rem 0.6rem;
    border-radius: 999px;
    background: rgba(36, 74, 90, 0.1);
    color: #244a5a;
    font-weight: 700;
    overflow-wrap: anywhere;
}

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

.teacher-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.booking-editor-layout {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.75rem;
    min-width: 0;
}

.booking-editor-row {
    display: grid;
    align-items: end;
    gap: 0.55rem;
    min-width: 0;
}

.booking-editor-row-primary {
    grid-template-columns: minmax(10rem, 0.9fr) minmax(14rem, 1.2fr) minmax(14rem, 1.2fr);
}

.booking-editor-title-field {
    grid-column: 1;
    grid-row: 1;
}

.booking-editor-school-field {
    grid-column: 2;
    grid-row: 1;
}

.booking-editor-contact-field {
    grid-column: 2;
    grid-row: 2;
}

.booking-editor-organisation-field {
    grid-column: 3;
    grid-row: 1;
}

.booking-editor-orderer-field {
    grid-column: 3;
    grid-row: 2;
}

.booking-editor-row-allowed {
    grid-template-columns: repeat(4, minmax(7.5rem, 0.75fr)) minmax(18rem, 1.6fr);
}

.booking-editor-weekdays .planning-weekday-list {
    gap: 0.3rem;
    align-items: center;
}

.booking-editor-weekdays .planning-weekday-toggle {
    min-height: 1.9rem;
    padding: 0.2rem 0.42rem;
}

.booking-editor-notes {
    min-width: 0;
}

@media (max-width: 1180px) {
    .booking-editor-row-allowed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-editor-weekdays {
        grid-column: span 2;
    }
}

.teacher-field {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.teacher-field span {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6f675d;
}

.teacher-field-span-2 {
    grid-column: span 2;
}

.teacher-toggle-field {
    align-content: start;
}

.teacher-toggle-control {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.9rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(36, 74, 90, 0.16);
    background: rgba(255, 255, 255, 0.88);
    color: #233642;
    font-weight: 700;
}

.teacher-toggle-control span {
    font-size: 0.95rem;
    letter-spacing: 0;
    text-transform: none;
    color: #233642;
}

.teacher-input {
    width: 100%;
    min-height: 2.9rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(36, 74, 90, 0.16);
    background: rgba(255, 255, 255, 0.88);
    color: #233642;
}

.teacher-input-coordinate-custom {
    border-color: rgba(180, 132, 22, 0.45);
    background: #fff4bf;
}

.toolbar-button-active {
    border-color: rgba(29, 93, 114, 0.45);
    background: #d5edf1;
    color: #173f4d;
}

.field-inline-link {
    width: fit-content;
    color: #244a5a;
    font-weight: 800;
    text-decoration: none;
}

.field-inline-link:hover {
    text-decoration: underline;
}

.field-label-link {
    width: fit-content;
    color: #244a5a;
    font-weight: 800;
    text-decoration: underline;
}

.field-label-link:hover {
    color: #173f4d;
}

.external-location-address-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(12rem, 1.5fr) minmax(7rem, 0.7fr) minmax(9rem, 1fr) repeat(2, minmax(7rem, 0.8fr));
    min-width: 0;
}

.directory-search {
    width: 100%;
    min-height: 2.7rem;
    margin-top: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(36, 74, 90, 0.16);
    background: rgba(255, 255, 255, 0.88);
    color: #233642;
}

.directory-textarea {
    min-height: 7rem;
    resize: vertical;
}

.directory-related {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem;
    border-radius: 18px;
    background: rgba(36, 74, 90, 0.06);
}

.directory-related-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.directory-related span,
.directory-related-head span {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6f675d;
}

.directory-related p {
    margin: 0;
    color: #3f4b57;
    overflow-wrap: anywhere;
}

.route-cache-card {
    gap: 0.75rem;
}

.route-cache-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.route-cache-grid > span {
    min-width: 0;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    background: rgba(36, 74, 90, 0.045);
    color: #52606a;
    padding: 0.55rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.route-cache-grid .route-cache-status {
    background: rgba(154, 108, 36, 0.13);
    color: #7b5318;
}

.route-cache-grid .route-cache-status-ok {
    background: rgba(24, 105, 74, 0.13);
    color: #18694a;
}

.route-cache-grid .route-cache-status-warning {
    background: rgba(125, 47, 47, 0.13);
    color: #7d2f2f;
}

.route-attention-list {
    display: grid;
    gap: 0.45rem;
    max-height: 20rem;
    overflow: auto;
}

.route-attention-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(9rem, 14rem);
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(125, 47, 47, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: #244a5a;
    text-decoration: none;
}

.route-attention-row:hover,
.route-attention-row:focus {
    border-color: rgba(125, 47, 47, 0.34);
    background: rgba(255, 248, 244, 0.9);
}

.route-attention-main,
.route-attention-meta {
    min-width: 0;
}

.route-attention-main strong,
.route-attention-main small,
.route-attention-meta strong,
.route-attention-meta small {
    display: block;
    overflow-wrap: anywhere;
}

.route-attention-main strong {
    color: #233642;
    font-size: 0.88rem;
}

.route-attention-main small,
.route-attention-meta small {
    margin-top: 0.12rem;
    color: #697379;
    font-size: 0.74rem;
    font-weight: 700;
}

.route-attention-meta {
    text-align: right;
}

.route-attention-meta strong {
    color: #7d2f2f;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.docent-overview-panel {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(36, 74, 90, 0.1);
    background: rgba(36, 74, 90, 0.05);
}

.docent-overview-controls {
    display: grid;
    grid-template-columns: minmax(10rem, 13rem) repeat(2, minmax(8rem, 11rem)) auto;
    align-items: end;
    gap: 0.75rem;
}

.docent-overview-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.docent-overview-summary .metric-card {
    min-height: 0;
    padding: 0.9rem;
}

.docent-overview-warnings {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0.8rem 0.9rem 0.8rem 1.8rem;
    border-radius: 16px;
    border: 1px solid rgba(185, 28, 28, 0.18);
    background: rgba(254, 226, 226, 0.72);
    color: #7f1d1d;
}

@media (max-width: 760px) {
    .docent-overview-panel .directory-related-head {
        align-items: stretch;
        flex-direction: column;
    }

    .docent-overview-controls {
        width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    }

    .docent-overview-controls .toolbar-button {
        width: 100%;
    }
}

.docent-overview-day-list {
    display: grid;
    gap: 1rem;
}

.docent-overview-day {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(36, 74, 90, 0.12);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 30px rgba(77, 64, 42, 0.06);
}

.docent-overview-day header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.docent-overview-day h3 {
    margin: 0;
    color: #1d2733;
}

.docent-overview-day-totals,
.docent-overview-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.docent-overview-day-totals span,
.docent-overview-breakdown span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.36rem 0.6rem;
    border-radius: 999px;
    background: rgba(36, 74, 90, 0.09);
    color: #244a5a;
    font-size: 0.84rem;
    font-weight: 700;
}

.docent-overview-table-wrap {
    overflow-x: auto;
}

.docent-overview-table {
    min-width: 48rem;
}

.teacher-cancellation-panel {
    background: rgba(255, 255, 255, 0.7);
}

.teacher-cancellation-controls {
    display: grid;
    grid-template-columns: minmax(16rem, 1.3fr) minmax(9rem, 0.55fr) minmax(13rem, 1fr) auto;
    align-items: end;
    gap: 0.75rem;
}

.teacher-cancellation-workshop-field,
.teacher-cancellation-notes-field {
    min-width: 0;
}

.teacher-sick-audit-controls {
    grid-template-columns: repeat(2, minmax(8rem, 12rem)) auto;
}

.teacher-sick-audit-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    font-size: 0.9rem;
}

.teacher-sick-audit-ok {
    border: 1px solid rgba(21, 128, 61, 0.2);
    background: rgba(220, 252, 231, 0.7);
    color: #166534;
}

.teacher-sick-audit-missing {
    border: 1px solid rgba(185, 28, 28, 0.2);
    background: rgba(254, 226, 226, 0.72);
    color: #7f1d1d;
}

.teacher-cancellation-table {
    min-width: 62rem;
}

.sick-audit-status-ok,
.sick-audit-status-missing {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.sick-audit-status-ok {
    background: rgba(21, 128, 61, 0.12);
    color: #166534;
}

.sick-audit-status-missing {
    background: rgba(185, 28, 28, 0.12);
    color: #7f1d1d;
}

.relationship-picker {
    display: grid;
    gap: 0.65rem;
    min-width: 0;
}

.relationship-results {
    display: grid;
    gap: 0.45rem;
    max-height: 16rem;
    overflow: auto;
}

.relationship-result {
    display: grid;
    gap: 0.15rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(36, 74, 90, 0.12);
    background: rgba(255, 255, 255, 0.74);
    color: #233642;
    text-align: left;
}

.relationship-result strong,
.relationship-result span {
    overflow-wrap: anywhere;
}

.relationship-result span {
    font-size: 0.82rem;
    color: #6f675d;
}

.relationship-chip-list {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.relationship-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    gap: 0.45rem;
    padding: 0.42rem 0.45rem 0.42rem 0.65rem;
    border-radius: 999px;
    background: rgba(36, 74, 90, 0.12);
    color: #244a5a;
    overflow-wrap: anywhere;
}

.relationship-chip a {
    color: inherit;
    text-decoration: none;
}

.relationship-chip a:hover,
.relationship-linked-list a:hover {
    text-decoration: underline;
}

.relationship-chip button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border: 0;
    border-radius: 999px;
    background: rgba(36, 74, 90, 0.14);
    color: #244a5a;
    font-weight: 800;
}

.linked-to-this-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.35rem;
}

.linked-to-this-item {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 2rem;
    padding: 0.32rem 0.48rem;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    color: #244a5a;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.18;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.linked-to-this-item:hover,
.linked-to-this-item:focus-visible {
    border-color: rgba(29, 93, 114, 0.34);
    background: #eef7f8;
    text-decoration: underline;
}

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

.teacher-workshop-box {
    display: grid;
    gap: 0.3rem;
    align-content: start;
    max-height: 18rem;
    min-width: 0;
    overflow: auto;
    padding: 0.45rem;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.64);
}

.teacher-workshop-box header {
    position: sticky;
    top: -0.45rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.2rem 0 0.3rem;
    background: #f5fbfb;
}

.teacher-workshop-box header strong {
    color: #244a5a;
    font-size: 0.82rem;
}

.teacher-workshop-option {
    display: grid;
    gap: 0.05rem;
    width: 100%;
    min-height: 2.2rem;
    padding: 0.34rem 0.45rem;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    color: #233642;
    text-align: left;
    cursor: pointer;
}

.teacher-workshop-option:hover,
.teacher-workshop-option:focus-visible {
    border-color: rgba(29, 93, 114, 0.34);
    background: #eef7f8;
}

.teacher-workshop-option span {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    color: #233642;
    overflow-wrap: anywhere;
}

.teacher-workshop-option small {
    color: #697379;
    font-size: 0.68rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.teacher-workshop-option-on {
    border-color: rgba(21, 128, 61, 0.24);
    background: #e8f7eb;
}

.relationship-linked-list {
    display: grid;
    gap: 0.35rem;
}

.relationship-linked-list a {
    width: fit-content;
    color: #244a5a;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.workshop-history-panel {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.workshop-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 24rem;
    overflow: auto;
    padding-right: 0.1rem;
}

.workshop-history-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    width: 100%;
    min-width: 0;
    padding: 0.42rem 0.52rem;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    color: #233642;
    text-decoration: none;
}

.workshop-history-card:hover,
.workshop-history-card:focus-visible {
    border-color: rgba(29, 93, 114, 0.34);
    background: #eef7f8;
}

.workshop-history-main {
    display: flex;
    align-items: baseline;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 0.18rem 0.5rem;
    min-width: 0;
}

.workshop-history-main strong {
    color: #233642;
    font-size: 0.84rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.workshop-history-main small {
    color: #697379;
    font-size: 0.72rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.workshop-history-meta {
    display: flex;
    flex: 0 0 auto;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.workshop-history-meta span {
    padding: 0.12rem 0.32rem;
    border-radius: 999px;
    background: rgba(36, 74, 90, 0.08);
    color: #52606a;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

@media (max-width: 760px) {
    .workshop-history-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.28rem;
    }

    .workshop-history-meta {
        justify-content: flex-start;
        width: 100%;
    }
}

.planning-weekday-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.planning-weekday-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(36, 74, 90, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
}

.planning-weekday-toggle span {
    font-size: 0.78rem;
    font-weight: 800;
    color: #244a5a;
}

.availability-editor {
    gap: 0.75rem;
}

.availability-mode-panel {
    display: grid;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid rgba(36, 74, 90, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.58);
}

.availability-mode-tabs {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(4.5rem, 1fr));
    width: fit-content;
    overflow: hidden;
    border: 1px solid rgba(36, 74, 90, 0.16);
    border-radius: 8px;
}

.availability-mode-tab {
    min-height: 2rem;
    padding: 0.28rem 0.65rem;
    border: 0;
    border-right: 1px solid rgba(36, 74, 90, 0.16);
    background: rgba(255, 255, 255, 0.86);
    color: #244a5a;
    font-size: 0.78rem;
    font-weight: 900;
}

.availability-mode-tab:last-child {
    border-right: 0;
}

.availability-mode-tab-active {
    background: #d5edf1;
    color: #173f4d;
}

.availability-row-list {
    display: grid;
    gap: 0.55rem;
}

.availability-row {
    display: grid;
    grid-template-columns: minmax(4.5rem, 0.55fr) minmax(6rem, 0.8fr) minmax(6rem, 0.8fr) minmax(8rem, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
}

.availability-exception-row {
    grid-template-columns: minmax(8rem, 1fr) minmax(8rem, 1fr) minmax(6rem, 0.8fr) minmax(6rem, 0.8fr) minmax(8rem, 1fr) minmax(8rem, 1fr) minmax(10rem, 1.2fr) auto;
}

.availability-year-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}

.availability-year-arrow,
.availability-year-value,
.availability-year-menu button {
    border: 1px solid rgba(36, 74, 90, 0.16);
    background: rgba(255, 255, 255, 0.88);
    color: #233642;
    font-weight: 800;
}

.availability-year-arrow {
    width: 2rem;
    min-height: 2rem;
    border-radius: 999px;
}

.availability-year-arrow:disabled {
    opacity: 0.38;
}

.availability-year-dropdown {
    position: relative;
}

.availability-year-value {
    min-width: 4.25rem;
    min-height: 2.15rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}

.availability-year-menu {
    position: absolute;
    z-index: 5;
    top: calc(100% + 0.35rem);
    left: 50%;
    display: grid;
    min-width: 5.2rem;
    overflow: hidden;
    border: 1px solid rgba(36, 74, 90, 0.16);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(36, 74, 90, 0.14);
    transform: translateX(-50%);
}

.availability-year-menu button {
    min-height: 2rem;
    border-width: 0 0 1px;
    border-radius: 0;
}

.availability-year-menu button:last-child {
    border-bottom: 0;
}

.availability-year-menu-active {
    background: #d5edf1 !important;
}

.availability-calendar-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    align-items: start;
}

.availability-calendar-column {
    min-width: 0;
}

.availability-calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(11.5rem, 1fr));
    gap: 0.45rem;
}

.availability-side-panel {
    display: grid;
    gap: 0.5rem;
    min-width: 0;
}

.availability-month {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
    padding: 0.4rem;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
}

.availability-month header strong {
    color: #1d2733;
    font-size: 0.82rem;
}

.availability-month-grid {
    display: grid;
    grid-template-columns: 1.45rem repeat(7, minmax(1.15rem, 1fr));
    gap: 0.12rem;
    align-items: stretch;
}

.availability-week-spacer,
.availability-date-empty {
    min-height: 1.45rem;
}

.availability-day-header,
.availability-week-number,
.availability-date {
    min-width: 0;
    min-height: 1.45rem;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.8);
    color: #244a5a;
    font-size: 0.66rem;
    font-weight: 800;
    text-align: center;
    line-height: 1;
}

.availability-day-header,
.availability-week-number {
    background: rgba(36, 74, 90, 0.08);
    text-transform: uppercase;
}

.availability-date-selected {
    border-color: rgba(21, 128, 61, 0.34);
    background: #d9f5df;
    color: #14532d;
}

.availability-date-available {
    border-color: rgba(21, 128, 61, 0.34);
    background: #d9f5df;
    color: #14532d;
}

.availability-date-exception {
    border-color: rgba(180, 132, 22, 0.42);
    background: #fef3c7;
    color: #78350f;
}

.availability-date-focused {
    box-shadow: inset 0 0 0 2px rgba(29, 93, 114, 0.36);
}

.availability-date-timed {
    outline: 2px dotted rgba(180, 132, 22, 0.9);
    outline-offset: -3px;
}

.availability-date-time-selected {
    border-color: rgba(37, 99, 235, 0.62);
    background: #dbeafe;
    color: #1e3a8a;
    outline: 2px solid rgba(37, 99, 235, 0.82);
    outline-offset: -2px;
}

.availability-date-today {
    border-color: rgba(180, 132, 22, 0.45);
}

.availability-date-national-holiday {
    border-color: rgba(100, 116, 139, 0.32);
    background: #e5e7eb;
    color: #64748b;
}

.availability-date-school-vacation {
    border-color: rgba(100, 116, 139, 0.5);
    box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.38);
}

.availability-date-school-vacation-all-regions {
    border-color: rgba(100, 116, 139, 0.42);
    background: #e5e7eb;
    color: #64748b;
}

.availability-date-planned {
    border-color: rgba(21, 128, 61, 0.42);
    background: #d9f5df;
    color: #14532d;
}

.availability-date-planned::after {
    content: "";
    display: block;
    width: 0.25rem;
    height: 0.25rem;
    margin: 0.06rem auto 0;
    border-radius: 999px;
    background: #15803d;
}

.availability-date-planned.availability-date-exception {
    border-color: rgba(180, 132, 22, 0.52);
    background: #fef3c7;
    color: #78350f;
}

.availability-selected-day,
.availability-time-dialog {
    display: grid;
    gap: 0.45rem;
    padding: 0.55rem;
    border-radius: 10px;
    background: rgba(36, 74, 90, 0.07);
}

.availability-selected-day span,
.availability-time-dialog span {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6f675d;
}

.availability-selected-day strong {
    display: block;
    color: #1d2733;
}

.availability-time-dialog {
    align-items: end;
}

.availability-time-panel {
    grid-template-columns: minmax(11rem, 1fr) minmax(6.5rem, 8rem) minmax(6.5rem, 8rem) auto;
}

.availability-time-panel-heading {
    display: grid;
    gap: 0.05rem;
    min-width: 0;
}

.availability-time-panel-heading strong,
.availability-time-panel-heading small {
    overflow-wrap: anywhere;
}

.availability-time-panel-heading strong {
    color: #1d2733;
    font-size: 0.92rem;
}

.availability-time-panel-heading small {
    color: #697379;
    font-size: 0.72rem;
    font-weight: 800;
}

.availability-time-panel .teacher-field {
    gap: 0.2rem;
}

.availability-time-panel .teacher-input {
    min-height: 2.1rem;
    padding: 0.3rem 0.45rem;
    border-radius: 8px;
}

.availability-time-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

@media (max-width: 1250px) {
    .availability-calendar-grid {
        grid-template-columns: repeat(3, minmax(11.5rem, 1fr));
    }
}

@media (max-width: 980px) {
    .availability-calendar-grid,
    .teacher-workshop-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .availability-time-panel {
        grid-template-columns: 1fr 1fr;
    }

    .availability-time-panel-heading,
    .availability-time-actions {
        grid-column: span 2;
    }
}

@media (max-width: 700px) {
    .availability-calendar-grid,
    .teacher-workshop-picker,
    .availability-time-panel {
        grid-template-columns: 1fr;
    }

    .availability-time-panel-heading,
    .availability-time-actions {
        grid-column: auto;
    }
}

.pay-model-settings-list {
    display: grid;
    gap: 0.85rem;
}

.pay-model-settings-row {
    display: grid;
    grid-template-columns: minmax(14rem, 1.4fr) repeat(4, minmax(7rem, 0.65fr)) minmax(12rem, 1fr) auto;
    gap: 0.65rem;
    align-items: end;
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(36, 74, 90, 0.06);
}

.pay-model-notes-field {
    min-width: 0;
}

.directory-table-panel {
    min-width: 0;
}

.directory-table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.directory-table th,
.directory-table td {
    max-width: 24rem;
    padding: 0.65rem 0.75rem;
    border-right: 1px solid rgba(36, 74, 90, 0.08);
    border-bottom: 1px solid rgba(36, 74, 90, 0.08);
    background: rgba(255, 255, 255, 0.8);
    overflow-wrap: anywhere;
    vertical-align: top;
}

.directory-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f5efe4;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #746d61;
    white-space: nowrap;
}

.teacher-empty-state {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.bookings-page .grid-toolbar,
.bookings-page .formula-bar-panel,
.bookings-page .sheet-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

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

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

.database-import-label {
    position: relative;
    overflow: hidden;
}

.database-import-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.open-workshops-page {
    min-width: 0;
}

.open-workshops-header {
    align-items: flex-start;
}

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

.open-workshop-card {
    display: grid;
    gap: 0.85rem;
    align-content: start;
    min-width: 0;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(30, 46, 58, 0.12);
    background: #fffdfa;
    box-shadow: 0 14px 32px rgba(41, 57, 69, 0.08);
}

.open-workshop-card-head,
.open-workshop-card-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.open-workshop-card-head h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.open-workshop-status {
    flex: 0 0 auto;
    padding: 0.32rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(38, 94, 125, 0.2);
    background: rgba(38, 94, 125, 0.08);
    color: #254b62;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.open-workshop-status-covered {
    border-color: rgba(43, 119, 86, 0.24);
    background: rgba(43, 119, 86, 0.1);
    color: #215c42;
}

.open-workshop-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.open-workshop-metrics div {
    min-width: 0;
    padding: 0.65rem;
    border-radius: 8px;
    background: rgba(238, 243, 239, 0.82);
}

.open-workshop-metrics span,
.open-workshop-metrics small {
    display: block;
}

.open-workshop-metrics span {
    color: #243845;
    font-size: 1.05rem;
    font-weight: 800;
}

.open-workshop-metrics small {
    color: #66717a;
    font-size: 0.76rem;
}

.open-workshop-timeline {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.open-workshop-timeline li {
    display: grid;
    grid-template-columns: 5.6rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-top: 1px solid rgba(30, 46, 58, 0.1);
}

.open-workshop-timeline time {
    color: #315a73;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.open-workshop-timeline strong,
.open-workshop-timeline span,
.open-workshop-timeline small {
    display: block;
    overflow-wrap: anywhere;
}

.open-workshop-timeline strong {
    color: #243845;
    font-size: 0.94rem;
}

.open-workshop-timeline span,
.open-workshop-timeline small {
    color: #66717a;
    font-size: 0.82rem;
}

.open-workshop-material-block {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.open-workshop-material-heading {
    margin: 0;
    color: #5f6d76;
    font-size: 0.76rem;
    font-weight: 800;
}

.open-workshop-materials,
.open-workshop-admin-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-width: 0;
}

.open-workshop-materials span,
.open-workshop-admin-list span {
    max-width: 100%;
    padding: 0.32rem 0.5rem;
    border-radius: 8px;
    overflow-wrap: anywhere;
    font-size: 0.78rem;
}

.open-workshop-materials span {
    background: rgba(228, 235, 242, 0.78);
    color: #2b465a;
}

.open-workshop-admin-list span {
    background: rgba(239, 229, 211, 0.8);
    color: #634c2a;
}

.open-workshop-error {
    margin: 0;
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
    background: rgba(174, 52, 52, 0.08);
    color: #8d2c2c;
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.open-workshop-interest-button {
    min-width: 12rem;
    justify-content: center;
}

@media (max-width: 700px) {
    .open-workshop-grid {
        grid-template-columns: 1fr;
    }

    .open-workshop-card-head,
    .open-workshop-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .open-workshop-status,
    .open-workshop-interest-button {
        width: 100%;
    }

    .open-workshop-timeline li {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

.hero-panel,
.surface-panel,
.stat-panel,
.page-header-card,
.table-panel,
.attention-card,
.booking-card,
.booking-row-card {
    border-radius: 28px;
    background: rgba(255, 251, 245, 0.84);
    border: 1px solid rgba(54, 66, 72, 0.1);
    box-shadow: 0 24px 50px rgba(77, 64, 42, 0.08);
}

.hero-panel {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.25rem;
    padding: 1.6rem;
}

.section-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9a6c24;
}

.hero-panel h1,
.page-header-card h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 0.98;
    color: #1c2733;
}

.hero-text,
.page-intro {
    margin: 1rem 0 0;
    max-width: 60ch;
    font-size: 1.03rem;
    line-height: 1.65;
    color: #4f5968;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.25rem;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.primary-action {
    background: #244a5a;
    color: #fffaf1;
}

.secondary-action {
    background: rgba(36, 74, 90, 0.08);
    color: #244a5a;
    border: 1px solid rgba(36, 74, 90, 0.12);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.metric-card {
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(44, 60, 68, 0.08);
}

.metric-card span,
.stat-label,
.metric-title,
.panel-note {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7c7468;
}

.metric-card strong,
.stat-row strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 2rem;
    line-height: 1;
    color: #14202b;
}

.metric-card small,
.stat-footnote,
.timeline-content small,
.booking-summary,
.table-header p {
    display: block;
    margin-top: 0.45rem;
    color: #5d6470;
    line-height: 1.5;
}

.metric-card-warm {
    background: linear-gradient(180deg, rgba(255, 233, 194, 0.88), rgba(255, 248, 237, 0.95));
}

.metric-card-alert {
    background: linear-gradient(180deg, rgba(255, 219, 210, 0.88), rgba(255, 248, 245, 0.95));
}

.stats-grid,
.content-grid,
.attention-grid {
    display: grid;
    gap: 1.2rem;
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-grid {
    grid-template-columns: 0.9fr 1.1fr;
}

.stat-panel,
.surface-panel,
.page-header-card,
.table-panel {
    padding: 1.3rem;
}

.stat-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.stat-row span {
    color: #5d6470;
}

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

.panel-header h2,
.table-header h2,
.attention-card h2,
.booking-card h3,
.booking-row-card h3 {
    margin: 0;
    color: #1d2733;
}

.stage-list,
.timeline-list,
.booking-cards,
.booking-table {
    display: grid;
    gap: 0.9rem;
}

.stage-row,
.timeline-item {
    display: grid;
    gap: 0.8rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(42, 53, 60, 0.08);
}

.stage-row {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.stage-row p {
    margin: 0.25rem 0 0;
    color: #5d6470;
}

.stage-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.7rem;
    border-radius: 999px;
    background: rgba(36, 74, 90, 0.08);
    font-weight: 700;
}

.timeline-item {
    grid-template-columns: 110px 1fr auto;
    align-items: center;
}

.timeline-date strong,
.timeline-content strong {
    display: block;
}

.timeline-date small,
.timeline-content p {
    margin: 0.22rem 0 0;
    color: #5d6470;
}

.status-chip,
.stage-chip,
.severity-chip,
.legend-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.status-confirmed,
.stage-live {
    background: rgba(34, 139, 112, 0.14);
    color: #176851;
}

.status-completed,
.stage-stable {
    background: rgba(45, 103, 171, 0.14);
    color: #214f86;
}

.status-tentative,
.stage-waiting,
.severity-medium {
    background: rgba(234, 180, 69, 0.18);
    color: #8b5d0a;
}

.stage-risk,
.severity-high {
    background: rgba(183, 68, 47, 0.15);
    color: #8f2e1b;
}

.severity-critical {
    background: #7a1020;
    color: #fff;
}

.severity-low {
    background: rgba(36, 74, 90, 0.08);
    color: #244a5a;
}

.booking-strip {
    display: grid;
    gap: 0.9rem;
}

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

.booking-card,
.attention-card,
.booking-row-card {
    padding: 1.15rem;
}

.booking-card-top,
.attention-card-head,
.booking-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.booking-card small,
.attention-card small,
.booking-reference {
    color: #7a7269;
    font-weight: 700;
}

.booking-offering {
    margin: 0.35rem 0 0;
    color: #49606d;
    font-weight: 700;
}

.booking-summary {
    min-height: 4.6rem;
}

.booking-meta,
.booking-labels,
.attention-meta,
.table-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.booking-meta span,
.booking-labels span,
.attention-meta span,
.legend-pill {
    padding: 0.38rem 0.6rem;
    border-radius: 999px;
    background: rgba(36, 74, 90, 0.07);
    color: #35505d;
    font-size: 0.82rem;
}

.attention-marker-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.4rem 0 0.75rem;
}

.gtd-marker-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    max-width: 100%;
    padding: 0.24rem 0.58rem;
    border-radius: 999px;
    border: 1px solid rgba(36, 74, 90, 0.12);
    background: rgba(36, 74, 90, 0.06);
    color: #35505d;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.gtd-state-next-action,
.gtd-state-delegated,
.gtd-delegated-chip,
.gtd-step-chip {
    border-color: rgba(99, 199, 202, 0.38);
    background: rgba(99, 199, 202, 0.12);
    color: var(--bp-accent-strong);
}

.gtd-state-waiting-for,
.gtd-owner-chip,
.gtd-followup-chip {
    border-color: rgba(217, 143, 0, 0.26);
    background: rgba(217, 143, 0, 0.1);
    color: #775200;
}

.gtd-state-blocked {
    border-color: rgba(230, 0, 18, 0.26);
    background: rgba(230, 0, 18, 0.08);
    color: var(--bp-danger-strong);
}

.gtd-state-review {
    border-color: rgba(100, 112, 125, 0.24);
    background: rgba(100, 112, 125, 0.1);
    color: #3f4a56;
}

.text-link {
    align-self: center;
    text-decoration: none;
    font-weight: 700;
}

.page-header-card {
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.92), rgba(251, 245, 235, 0.92));
}

.attention-header {
    border-color: rgba(183, 68, 47, 0.18);
}

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

.attention-status,
.attention-empty {
    margin: 0;
    color: #55606c;
    line-height: 1.55;
}

.attention-empty h2 {
    margin: 0;
    color: #1d2733;
}

.attention-summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1rem;
}

.attention-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: end;
}

.attention-toolbar .attention-active-filters {
    display: grid;
    gap: 0.38rem;
    align-content: start;
    width: 100%;
}

.attention-active-filters-label {
    margin: 0;
    color: var(--bp-accent-strong);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.attention-active-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.attention-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.18rem 0.58rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 199, 202, 0.32);
    background: rgba(99, 199, 202, 0.08);
    color: var(--bp-accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.attention-toolbar-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.75rem;
    align-items: end;
}

.attention-toolbar-controls .directory-search {
    width: 100%;
}

.attention-rules {
    display: grid;
    gap: 1rem;
}

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

.attention-rules-header h2 {
    margin-bottom: 0;
}

.attention-rules-toggle {
    flex: 0 0 auto;
}

.attention-rules-chevron {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

.attention-rules-chevron.is-open {
    transform: rotate(225deg);
}

.attention-rule-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.attention-rule-list li {
    display: grid;
    grid-template-columns: minmax(5.5rem, 0.22fr) minmax(8.75rem, 0.32fr) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.65rem 0;
    border-top: 1px solid rgba(52, 73, 82, 0.12);
}

.attention-rule-list span {
    color: #8a5a00;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.attention-rule-list strong {
    color: #153440;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.attention-rule-list p {
    margin: 0;
    color: #55606c;
    line-height: 1.45;
}

.attention-card p,
.booking-row-context p {
    color: #55606c;
    line-height: 1.6;
}

.attention-issue-list {
    display: grid;
    gap: 0.45rem;
    margin: 0.35rem 0 0;
    padding-left: 1.15rem;
    color: #55606c;
    line-height: 1.55;
}

.attention-issue-list li {
    display: grid;
    gap: 0.18rem;
    overflow-wrap: anywhere;
}

.attention-issue-list li > strong {
    color: #153440;
}

.attention-issue-affected {
    display: block;
    color: #6a7280;
    font-size: 0.86rem;
}

.attention-issue-affected strong {
    color: #153440;
}

.attention-issue-fix {
    color: #35505d;
    font-size: 0.9rem;
}

.attention-issue-fix strong {
    color: #153440;
}

.attention-issue-action {
    width: max-content;
    margin-top: 0.08rem;
}

.attention-action {
    margin-bottom: 0;
}

.attention-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.attention-empty {
    border-color: rgba(24, 105, 74, 0.16);
}

.todo-shell {
    display: grid;
    grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.todo-sidebar,
.todo-quick-add,
.todo-board-column,
.todo-task-row {
    border-radius: 8px;
    background: rgba(255, 251, 245, 0.9);
    border: 1px solid rgba(54, 66, 72, 0.1);
    box-shadow: 0 16px 34px rgba(77, 64, 42, 0.07);
}

.todo-sidebar {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.todo-sidebar-section {
    display: grid;
    gap: 0.5rem;
}

.todo-view-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2.35rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(36, 74, 90, 0.1);
    background: rgba(36, 74, 90, 0.04);
    color: #244a5a;
    font-weight: 800;
}

.todo-view-button-active {
    background: #244a5a;
    color: #fffaf1;
}

.todo-main,
.todo-list {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
}

.todo-quick-add {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.todo-quick-title,
.todo-quick-fields,
.todo-task-controls,
.todo-task-title-line,
.todo-board-column-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.todo-quick-title .teacher-input {
    flex: 1 1 18rem;
}

.todo-quick-fields {
    flex-wrap: wrap;
}

.todo-quick-fields .teacher-input {
    flex: 1 1 10rem;
}

.todo-toolbar {
    border-radius: 8px;
}

.todo-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(15rem, 1fr));
    gap: 0.9rem;
    align-items: start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.todo-board-column {
    display: grid;
    gap: 0.75rem;
    min-width: 15rem;
    padding: 0.75rem;
}

.todo-board-column-head {
    justify-content: space-between;
    color: #1c2733;
    font-weight: 800;
}

.todo-board-column-head span {
    display: inline-grid;
    place-items: center;
    min-width: 1.8rem;
    min-height: 1.8rem;
    border-radius: 999px;
    background: rgba(36, 74, 90, 0.08);
    color: #244a5a;
}

.todo-task-row {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.9rem;
}

.todo-task-done {
    opacity: 0.72;
}

.todo-task-done h3 {
    text-decoration: line-through;
}

.todo-complete-button {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 2px solid rgba(36, 74, 90, 0.28);
    background: rgba(255, 255, 255, 0.72);
    color: transparent;
}

.todo-task-done .todo-complete-button,
.todo-complete-button:hover {
    background: #244a5a;
    color: #fffaf1;
}

.todo-task-content {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.todo-task-title-line {
    justify-content: space-between;
    align-items: flex-start;
}

.todo-task-title-line h3 {
    margin: 0;
    color: #1c2733;
    font-size: 1rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.todo-task-row p {
    margin: 0;
    color: #55606c;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.todo-task-controls {
    flex-wrap: wrap;
    margin-top: 0.3rem;
}

.todo-task-controls .teacher-input {
    flex: 1 1 8rem;
    min-height: 2.25rem;
}

.todo-priority {
    flex: 0 0 auto;
    min-width: 2.3rem;
    padding: 0.22rem 0.48rem;
    border-radius: 999px;
    background: rgba(36, 74, 90, 0.08);
    color: #244a5a;
    font-size: 0.74rem;
    font-weight: 900;
    text-align: center;
}

.todo-priority-high {
    background: rgba(183, 68, 47, 0.12);
    color: #7d2f2f;
}

.todo-priority-critical {
    background: #7a1020;
    color: #fff;
}

.todo-priority-medium {
    background: rgba(217, 143, 0, 0.13);
    color: #775200;
}

@media (max-width: 900px) {
    .todo-shell {
        grid-template-columns: 1fr;
    }

    .todo-sidebar {
        position: static;
    }

    .todo-board {
        grid-template-columns: repeat(1, minmax(15rem, 1fr));
    }
}

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

.flow-home-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 1rem;
}

.flow-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1rem;
    align-items: start;
}

.flow-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
}

.flow-index-card {
    display: grid;
    gap: 0.5rem;
    min-height: 10rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 251, 245, 0.84);
    border: 1px solid rgba(54, 66, 72, 0.1);
    box-shadow: 0 24px 50px rgba(77, 64, 42, 0.08);
    color: #244a5a;
    text-decoration: none;
}

.flow-index-card:hover {
    border-color: rgba(36, 74, 90, 0.28);
}

.flow-index-card span {
    color: #9a6c24;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.flow-index-card strong {
    color: #1d2733;
    line-height: 1.35;
}

.flow-index-card small {
    color: #5d6470;
}

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

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

.flow-link-card,
.flow-attention-row {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(36, 74, 90, 0.1);
    background: rgba(255, 255, 255, 0.68);
    color: #244a5a;
    text-decoration: none;
}

.flow-link-card:hover,
.flow-attention-row:hover {
    border-color: rgba(36, 74, 90, 0.28);
    background: rgba(255, 255, 255, 0.86);
}

.flow-link-card strong,
.flow-attention-row strong {
    color: #1d2733;
}

.flow-link-card span {
    color: #5d6470;
    line-height: 1.45;
}

.flow-attention-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 0.65rem;
    row-gap: 0.35rem;
}

.flow-attention-content {
    display: grid;
    gap: 0.38rem;
    min-width: 0;
}

.flow-attention-title-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
    align-items: center;
    min-width: 0;
}

.flow-attention-title-line strong {
    overflow-wrap: anywhere;
}

.flow-attention-area {
    padding: 0.18rem 0.48rem;
    border-radius: 999px;
    background: rgba(36, 74, 90, 0.08);
    color: #35505d;
    font-size: 0.76rem;
    font-weight: 800;
}

.flow-attention-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.flow-attention-facts span {
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: rgba(154, 108, 36, 0.1);
    color: #6f5120;
    font-size: 0.76rem;
    font-weight: 700;
}

.flow-attention-detail {
    color: #5d6470;
    font-size: 0.9rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.booking-table {
    margin-top: 1rem;
}

.booking-row-card {
    display: grid;
    grid-template-columns: 1.3fr 0.55fr 1fr;
    gap: 1rem;
}

.booking-row-metrics {
    display: grid;
    gap: 0.7rem;
    align-content: start;
}

.booking-row-metrics > div {
    padding: 0.85rem;
    border-radius: 18px;
    background: rgba(36, 74, 90, 0.05);
}

.booking-management-workspace {
    align-items: start;
}

.booking-detail-workspace {
    align-items: start;
}

.booking-workshop-sheet {
    min-width: 0;
}

.booking-embedded-sheet {
    display: grid;
    gap: 0.6rem;
    min-width: 0;
    margin-top: 0.6rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(42, 53, 60, 0.08);
}

.booking-embedded-sheet h3 {
    margin: 0;
}

.booking-embedded-sheet .sheet-shell {
    max-height: 40vh;
}

.booking-product-stack {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.booking-product-lane {
    display: grid;
    gap: 0.38rem;
    min-width: 0;
}

.booking-product-block {
    --booking-product-status-color: transparent;
    position: relative;
    z-index: 0;
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.55rem 0.65rem;
    border: 1px solid color-mix(in srgb, var(--booking-product-status-color) 36%, rgba(42, 53, 60, 0.12));
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.booking-product-lane .booking-product-block {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    padding: 0.38rem 0.5rem;
}

.booking-product-lane-button {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) minmax(14rem, auto);
    gap: 0.6rem;
    align-items: center;
    min-width: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.booking-product-lane-button:focus-visible {
    outline: 2px solid rgba(15, 143, 148, 0.45);
    outline-offset: 3px;
    border-radius: 6px;
}

.booking-product-lane-button[aria-expanded="True"],
.booking-product-lane-button[aria-expanded="true"] {
    color: #0d5960;
}

.booking-product-lane-main,
.booking-product-lane-meta {
    display: flex;
    min-width: 0;
}

.booking-product-lane-main {
    flex-direction: column;
    gap: 0.14rem;
}

.booking-product-lane-main strong {
    overflow: hidden;
    color: #1d2733;
    font-size: 0.92rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-product-lane-main small {
    overflow: hidden;
    color: #5d6470;
    font-size: 0.76rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-product-lane-meta {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem;
}

.booking-product-lane-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 1.4rem;
    padding: 0.12rem 0.38rem;
    border: 1px solid rgba(42, 53, 60, 0.1);
    border-radius: 999px;
    background: rgba(245, 248, 250, 0.9);
    color: #53606d;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.booking-product-lane-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    white-space: nowrap;
}

.booking-product-composer {
    display: grid;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.7rem;
    border: 1px solid rgba(42, 53, 60, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.booking-product-composer {
    box-shadow: 0 10px 24px rgba(27, 60, 67, 0.08);
}

.booking-product-composer-head {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    gap: 0.5rem 0.8rem;
}

.booking-product-composer-head h4,
.booking-product-bulk-head h3 {
    margin: 0;
    color: #1d2733;
    font-size: 1.2rem;
    line-height: 1.2;
}

.booking-product-composer-head small {
    color: #5d6470;
    font-size: 0.78rem;
    font-weight: 750;
}

.booking-product-composer-product {
    flex-wrap: wrap;
    max-width: none;
}

.booking-composer-section {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.55rem;
    border: 1px solid rgba(42, 53, 60, 0.1);
    border-radius: 8px;
}

.booking-composer-section-commercial {
    background: #f7fbfb;
}

.booking-composer-section-workshop {
    background: #fffdfa;
}

.booking-composer-section-planning {
    background: #f4f9f5;
}

.booking-composer-section-notes {
    background: #f8fbfc;
}

.booking-composer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.75rem, 1fr));
    gap: 0.45rem;
    align-items: end;
}

.booking-composer-grid .teacher-field {
    min-width: 0;
}

.booking-composer-notes {
    grid-column: 1 / -1;
}

.booking-composer-section-locked {
    border-color: rgba(100, 112, 125, 0.24);
    background: #f1f4f5;
}

.booking-composer-lock-note {
    margin: 0;
    color: #5f6b75;
    font-size: 0.78rem;
    font-weight: 800;
}

.teacher-field-disabled span {
    color: #7c8791;
}

.teacher-field-disabled .teacher-input,
.teacher-field-disabled .teacher-input:disabled {
    border-color: rgba(100, 112, 125, 0.18);
    background: #eef2f3;
    color: #64707d;
    cursor: not-allowed;
    opacity: 1;
}

.booking-composer-save-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.15rem;
}

.booking-composer-save-row span {
    color: #64707d;
    font-size: 0.78rem;
    font-weight: 800;
}

.booking-maatwerk-agenda {
    display: grid;
    gap: 0.32rem;
}

.booking-agenda-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.35rem 0.45rem;
    border: 1px solid rgba(42, 53, 60, 0.11);
    border-radius: 7px;
    background: rgba(245, 248, 250, 0.72);
    color: #243241;
    text-align: left;
    cursor: pointer;
}

.booking-agenda-row strong {
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-agenda-row span {
    color: #64707d;
    font-size: 0.74rem;
    font-weight: 800;
}

.booking-agenda-row-active {
    border-color: rgba(15, 143, 148, 0.36);
    background: #eaf8f8;
}

.booking-agenda-row:focus-visible {
    outline: 2px solid rgba(15, 143, 148, 0.45);
    outline-offset: 2px;
}

.booking-product-bulk-overlay {
    position: fixed;
    inset: 0;
    z-index: 420;
    display: grid;
    padding: 1rem;
    background: rgba(7, 18, 37, 0.42);
}

.booking-product-bulk-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.75rem;
    min-width: 0;
    min-height: 0;
    padding: 0.85rem;
    border: 1px solid rgba(42, 53, 60, 0.16);
    border-radius: 8px;
    background: #f8fbfc;
    box-shadow: 0 24px 60px rgba(7, 18, 37, 0.26);
}

.booking-product-bulk-head {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    gap: 0.75rem;
}

.booking-product-bulk-head small {
    color: #64707d;
    font-size: 0.82rem;
    font-weight: 800;
}

.booking-product-bulk-panel .spreadsheet-workbench {
    min-width: 0;
    min-height: 0;
}

.booking-product-bulk-panel .sheet-shell {
    max-height: calc(100vh - 13rem);
}

@media (max-width: 980px) {
    .booking-product-lane .booking-product-block {
        grid-template-columns: minmax(0, 1fr);
    }

    .booking-product-lane-button {
        grid-template-columns: minmax(0, 1fr);
    }

    .booking-product-lane-meta {
        justify-content: flex-start;
    }

    .booking-product-lane-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        white-space: normal;
    }

    .booking-product-composer-head .booking-workshop-sheet-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .booking-product-lane-main strong,
    .booking-product-lane-main small,
    .booking-agenda-row strong {
        white-space: normal;
    }

    .booking-product-lane-meta span {
        min-height: 1.25rem;
        font-size: 0.68rem;
    }

    .booking-agenda-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

.booking-product-block:has(.sheet-cell-editing),
.booking-product-block:has(.sheet-dropdown-menu) {
    z-index: 90;
}

.booking-product-status-line {
    background: color-mix(in srgb, var(--booking-product-status-color) 7%, #ffffff);
}

.booking-product-status-chip {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    min-height: 1.25rem;
    padding: 0.08rem 0.38rem;
    border: 1px solid color-mix(in srgb, var(--booking-product-status-color) 42%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--booking-product-status-color) 13%, #ffffff);
    color: color-mix(in srgb, var(--booking-product-status-color) 76%, #1d2733);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.1;
}

.booking-product-status-offer {
    --booking-product-status-color: #b38a1f;
}

.booking-product-status-invoice {
    --booking-product-status-color: #6b5db3;
}

.booking-product-status-paid {
    --booking-product-status-color: #16835d;
}

.booking-product-status-offer-draft,
.booking-product-status-invoice-draft {
    --booking-product-status-color: #7b8792;
}

.booking-product-status-unknown {
    --booking-product-status-color: #8a5b16;
}

.booking-product-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.45rem 0.75rem;
    align-items: center;
}

.booking-product-head-inline {
    align-items: end;
}

.booking-product-title {
    flex: 0 1 auto;
    min-width: 9rem;
}

.booking-product-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.28rem 0.4rem;
}

.booking-product-inline-controls {
    display: flex;
    flex: 1 1 50rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: end;
    gap: 0.45rem;
    min-width: 0;
}

.booking-product-inline-controls .booking-workshop-sheet-actions {
    flex: 0 0 auto;
}

.booking-product-head h4,
.booking-product-workshops h4 {
    margin: 0;
    color: #1d2733;
}

.booking-product-head small {
    color: #5d6470;
    font-size: 0.78rem;
    font-weight: 700;
}

.booking-product-head h4 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.booking-selection-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.booking-selection-checkbox {
    flex: 0 0 auto;
    width: 0.95rem;
    height: 0.95rem;
    accent-color: #0f8f94;
}

.booking-product-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    align-items: end;
    justify-content: flex-start;
    margin: 0;
    max-width: 52rem;
}

.booking-product-form .teacher-field {
    flex: 0 0 auto;
    gap: 0.2rem;
}

.booking-product-field-product {
    width: 9.75rem;
}

.booking-product-field-money {
    width: 6.35rem;
}

.booking-product-field-billing {
    width: 7.75rem;
}

.booking-product-title-action {
    display: grid;
    flex: 0 1 18rem;
    gap: 0.2rem;
    min-width: 13rem;
}

.booking-product-title-action .teacher-input {
    min-height: 2rem;
    width: 100%;
    padding-top: 0.38rem;
    padding-bottom: 0.38rem;
}

.booking-product-form .teacher-input {
    min-height: 2rem;
    padding-top: 0.38rem;
    padding-bottom: 0.38rem;
}

.booking-money-input {
    position: relative;
    display: block;
}

.booking-money-input .teacher-input {
    padding-left: 1.45rem;
}

.booking-product-price-overridden {
    border-color: #f2c94c;
    box-shadow: 0 0 0 2px rgba(242, 201, 76, 0.22);
}

.booking-money-prefix {
    position: absolute;
    left: 0.48rem;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    color: #536872;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    pointer-events: none;
}

.booking-product-workshops {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(42, 53, 60, 0.08);
}

.booking-embedded-sheet-status {
    margin: 0;
}

.booking-workshop-sheet .sheet-shell {
    max-height: 58vh;
}

.booking-workshop-sheet-actions {
    justify-content: flex-end;
}

.booking-product-head .booking-workshop-sheet-actions {
    gap: 0.35rem;
}

.booking-product-head .toolbar-button {
    min-height: 1.85rem;
    padding: 0.32rem 0.5rem;
    border-radius: 6px;
    font-size: 0.72rem;
}

.booking-product-workshops .sheet-panel-compact {
    padding: 0.45rem;
    border-radius: 8px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.72);
}

.booking-product-workshops .sheet-panel-compact .sheet-shell {
    max-height: 8rem;
    border-radius: 6px;
}

.booking-product-workshops .sheet-panel-compact .sheet-row-add {
    min-height: 1.4rem;
    padding-top: 0.25rem;
}

.sheet-compact-status {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 1.5rem;
    align-items: center;
    padding: 0.16rem 0.45rem;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 999px;
    background: rgba(14, 130, 138, 0.08);
    color: #244a5a;
    font-size: 0.72rem;
    font-weight: 800;
}

.set-discount-editor {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(42, 53, 60, 0.08);
}

.set-discount-editor .toolbar-button {
    justify-self: start;
}

.booking-cancel-panel {
    display: grid;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid rgba(125, 47, 47, 0.18);
    border-radius: 8px;
    background: #fff8f3;
}

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

.booking-cancel-panel h3 {
    margin: 0.15rem 0 0;
    font-size: 1rem;
}

.booking-cancel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    align-items: end;
}

.booking-cancel-actions {
    display: flex;
    justify-content: flex-end;
    align-self: end;
}

.booking-workshop-history {
    margin-top: 1rem;
}

.route-planner-page {
    max-width: none;
}

.route-planner-panel {
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 20px;
    background: rgba(255, 251, 245, 0.88);
    border: 1px solid rgba(54, 66, 72, 0.1);
    box-shadow: 0 24px 50px rgba(77, 64, 42, 0.08);
}

.route-planner-head,
.route-review-head,
.route-day-head,
.route-stop-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.route-planner-head h2,
.route-review-head h3,
.route-day-head h4 {
    margin: 0;
    color: #1c2733;
}

.route-planner-score-strip,
.route-review-metrics,
.route-day-meta {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.route-planner-score-strip div,
.route-review-metrics span,
.route-day-meta span {
    min-width: 6.7rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: rgba(36, 74, 90, 0.08);
    border: 1px solid rgba(36, 74, 90, 0.12);
}

.route-planner-score-strip span,
.route-day-meta span,
.route-review-metrics span {
    font-size: 0.78rem;
    color: rgba(28, 39, 51, 0.72);
}

.route-planner-score-strip strong {
    display: block;
    color: #1c2733;
    font-size: 1.2rem;
}

.route-planner-controls {
    display: grid;
    grid-template-columns: repeat(5, minmax(9rem, 1fr));
    gap: 0.8rem;
}

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

.planner-field span,
.route-stop-head small {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(91, 69, 33, 0.82);
}

.route-planner-weekdays {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.route-planner-alert {
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: rgba(183, 68, 47, 0.1);
    color: #71322b;
    border: 1px solid rgba(183, 68, 47, 0.18);
}

.route-planner-ledger {
    display: grid;
    gap: 0.85rem;
    padding: 0.95rem;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 14px;
    background: rgba(245, 249, 247, 0.66);
}

.route-planner-ledger h3,
.route-exception-panel h4 {
    margin: 0;
    color: #1c2733;
}

.route-ledger-grid,
.route-objective-grid,
.route-exception-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.route-ledger-card,
.route-objective-card,
.route-exception-grid div {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(36, 74, 90, 0.12);
}

.route-ledger-card-hard {
    border-color: color-mix(in srgb, #244a5a 40%, rgba(36, 74, 90, 0.12));
    background: color-mix(in srgb, #244a5a 5%, rgba(255, 255, 255, 0.62));
}

.route-ledger-card-soft {
    border-color: color-mix(in srgb, #b89032 45%, rgba(36, 74, 90, 0.12));
    background: color-mix(in srgb, #b89032 7%, rgba(255, 255, 255, 0.62));
}

.route-ledger-card span,
.route-objective-card span,
.route-exception-grid span {
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(91, 69, 33, 0.82);
}

.route-ledger-card strong,
.route-objective-card strong,
.route-exception-grid strong {
    color: #1c2733;
}

.route-ledger-card small,
.route-objective-card small,
.route-exception-grid small {
    color: rgba(28, 39, 51, 0.66);
    line-height: 1.35;
}

.planner-mode-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.planner-mode-card {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem;
    text-align: left;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(36, 74, 90, 0.14);
    color: #1c2733;
}

.planner-mode-card-active {
    background: rgba(36, 74, 90, 0.1);
    border-color: rgba(36, 74, 90, 0.34);
    box-shadow: inset 0 0 0 1px rgba(36, 74, 90, 0.18);
}

.planner-mode-card span {
    font-weight: 800;
}

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

.planner-mode-card small {
    color: rgba(28, 39, 51, 0.68);
}

.route-review-panel,
.route-day-grid,
.route-stop-list,
.route-plan-items {
    display: grid;
    gap: 0.9rem;
}

.route-exception-panel {
    display: grid;
    gap: 0.8rem;
    padding: 0.95rem;
    border-radius: 14px;
    background: rgba(183, 68, 47, 0.08);
    border: 1px solid rgba(183, 68, 47, 0.16);
}

.route-material-summary {
    display: grid;
    gap: 0.35rem;
    padding: 0.42rem 0.5rem;
    border-radius: 8px;
    background: #f8fbfc;
    border: 1px solid rgba(36, 74, 90, 0.14);
}

.route-material-summary-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.55rem;
    align-items: baseline;
    min-width: 0;
}

.route-material-summary-head .section-kicker,
.route-material-summary-head h4 {
    margin: 0;
}

.route-material-summary-head h4 {
    color: #1c2733;
    font-size: 0.95rem;
    line-height: 1.12;
}

.route-material-summary-head span {
    color: rgba(28, 39, 51, 0.62);
    font-size: 0.76rem;
    font-weight: 800;
}

.route-material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0.35rem;
}

.route-material-grid div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.08rem 0.45rem;
    align-items: baseline;
    min-width: 0;
    padding: 0.28rem 0.38rem;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid rgba(36, 74, 90, 0.1);
}

.route-material-grid span {
    color: rgba(91, 69, 33, 0.82);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.route-material-grid strong {
    min-width: 0;
    color: #1c2733;
    font-size: 0.78rem;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-material-grid small {
    grid-column: 1 / -1;
    min-width: 0;
    color: rgba(28, 39, 51, 0.62);
    font-size: 0.7rem;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-unscheduled-list {
    display: grid;
    gap: 0.7rem;
}

.calendar-unscheduled-card {
    display: grid;
    gap: 0.55rem;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(183, 68, 47, 0.18);
    background: rgba(255, 255, 255, 0.62);
}

.calendar-unscheduled-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.calendar-unscheduled-head h5,
.calendar-unscheduled-summary,
.calendar-unscheduled-details {
    margin: 0;
}

.calendar-unscheduled-head h5 {
    color: #1c2733;
    font-size: 1.02rem;
}

.calendar-unscheduled-summary {
    color: #89372b;
    font-weight: 800;
}

.calendar-unscheduled-details {
    display: grid;
    gap: 0.25rem;
    padding-left: 1rem;
    color: rgba(28, 39, 51, 0.78);
}

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

.route-day-card,
.route-stop {
    border-radius: 16px;
    border: 1px solid rgba(36, 74, 90, 0.12);
    background: rgba(255, 255, 255, 0.46);
}

.route-day-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.route-day-card-exception {
    border-color: rgba(183, 68, 47, 0.22);
    background: rgba(255, 246, 242, 0.68);
}

.route-stop {
    padding: 0.85rem;
}

.route-stop-head strong {
    display: block;
    color: #1c2733;
}

.route-stop-head span {
    display: block;
    color: rgba(28, 39, 51, 0.66);
    font-size: 0.9rem;
}

.route-plan-item {
    display: grid;
    grid-template-columns: 5.4rem minmax(0, 1fr);
    column-gap: 0.8rem;
    row-gap: 0.15rem;
    padding: 0.65rem 0;
    border-top: 1px solid rgba(36, 74, 90, 0.09);
}

.route-plan-item time {
    grid-row: span 2;
    color: #244a5a;
    font-weight: 800;
    white-space: nowrap;
}

.route-plan-item span {
    font-weight: 800;
    color: #1c2733;
}

.route-plan-item small {
    color: rgba(28, 39, 51, 0.66);
}

.route-locked-panel {
    display: grid;
    gap: 0.45rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(92, 111, 130, 0.18);
    background: rgba(232, 237, 242, 0.42);
}

.route-locked-head {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    min-width: 0;
}

.route-locked-head strong {
    color: #304152;
    font-size: 0.84rem;
    line-height: 1.1;
}

.route-locked-head small {
    color: rgba(48, 65, 82, 0.68);
    font-size: 0.74rem;
    font-weight: 800;
}

.route-plan-item-locked {
    border-top-color: rgba(92, 111, 130, 0.16);
}

.route-plan-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    margin-right: 0.32rem;
    border-radius: 999px;
    background: #e8edf2;
    color: #304152;
    font-size: 0.66rem;
    line-height: 1;
    vertical-align: 0.06rem;
}

.route-warning-list {
    margin: 0;
    padding: 0.75rem 0.95rem 0.75rem 1.35rem;
    border-radius: 12px;
    background: rgba(191, 142, 53, 0.12);
    color: #694c16;
}

.route-warning-list-compact {
    font-size: 0.9rem;
}

.workshop-flow-page {
    display: grid;
    gap: 1rem;
}

.workshop-flow-stats {
    margin: 0;
}

.workshop-flow-toolbar {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.booking-planning-notes-panel {
    display: grid;
    gap: 0.55rem;
    padding: 0.75rem;
    border: 1px solid rgba(150, 92, 0, 0.28);
    border-radius: 8px;
    background: #fff8ea;
    color: #3d3120;
}

.booking-planning-notes-panel-compact {
    padding: 0.65rem;
}

.booking-planning-note-card {
    display: grid;
    gap: 0.28rem;
}

.booking-planning-note-card span {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #785113;
}

.booking-planning-note-card a {
    color: #5d430f;
}

.booking-planning-note-card strong {
    white-space: pre-wrap;
    font-size: 0.96rem;
    line-height: 1.42;
}

.workshop-flow-bulk-toolbar {
    position: sticky;
    top: 0.75rem;
    z-index: 2;
    flex-wrap: wrap;
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
}

.workshop-flow-bulk-toolbar .bulk-toolbar-actions {
    gap: 0.45rem;
}

.workshop-flow-results-bulk-toolbar {
    display: grid;
    grid-template-columns: 1.9rem minmax(24rem, 1fr) minmax(7.4rem, auto) max-content max-content;
    align-items: center;
}

.workshop-flow-results-bulk-toolbar .bulk-toolbar-copy {
    grid-column: 2 / 3;
    min-width: 0;
}

.workshop-flow-results-bulk-toolbar .workshop-flow-bulk-selection-tools {
    grid-column: 3 / 4;
}

.workshop-flow-results-bulk-toolbar .bulk-toolbar-actions {
    grid-column: 4 / 5;
}

.workshop-flow-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.45rem;
}

.workshop-flow-quick-stats span {
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 999px;
    background: rgba(36, 74, 90, 0.055);
    color: #244a5a;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.25rem 0.5rem;
}

.workshop-cluster-panel {
    border-radius: 8px;
}

.workshop-cluster-controls {
    grid-template-columns: repeat(3, minmax(9rem, 1fr));
}

.workshop-cluster-grid,
.workshop-flow-list {
    display: grid;
    gap: 0.6rem;
}

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

.workshop-cluster-card,
.workshop-flow-list-panel,
.workshop-flow-card {
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.workshop-cluster-card,
.workshop-flow-list-panel {
    padding: 1rem;
}

.workshop-flow-card {
    display: grid;
    gap: 0.6rem;
    padding: 0.7rem;
}

.workshop-flow-card-selectable {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
}

.workshop-flow-card-selected {
    border-color: rgba(21, 94, 117, 0.85);
    background: #d9f0f2;
    box-shadow: inset 0 0 0 1px rgba(21, 94, 117, 0.35);
}

.workshop-flow-card-check {
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    margin-top: 0.1rem;
}

.workshop-flow-card-check input {
    width: 1rem;
    height: 1rem;
    accent-color: #155e75;
}

.workshop-flow-note-inline {
    display: grid;
    gap: 0.15rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(21, 94, 117, 0.2);
    border-radius: 6px;
    background: rgba(245, 250, 250, 0.9);
}

.workshop-flow-note-inline span {
    color: var(--bp-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.workshop-flow-note-inline strong {
    color: var(--bp-text);
    font-size: 0.86rem;
    line-height: 1.35;
}

.workshop-flow-card-body {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.workshop-flow-card-main,
.workshop-flow-card-links,
.workshop-flow-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.workshop-flow-card-main {
    align-items: flex-start;
}

.workshop-flow-card-title {
    display: grid;
    gap: 0.2rem;
    min-width: min(100%, 16rem);
    flex: 1 1 18rem;
}

.workshop-flow-card h3,
.workshop-cluster-card h3 {
    margin: 0;
    color: #1c2733;
}

.workshop-flow-card h3 {
    font-size: 1rem;
    line-height: 1.2;
}

.workshop-flow-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.55rem;
    margin: 0;
    color: #5d6470;
    font-size: 0.88rem;
    line-height: 1.35;
}

.workshop-flow-meta,
.workshop-flow-contact-grid {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.workshop-flow-meta span,
.workshop-flow-contact-grid div {
    min-width: 6.8rem;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    background: rgba(36, 74, 90, 0.045);
    padding: 0.38rem 0.5rem;
    font-size: 0.86rem;
}

.workshop-flow-contact-grid div {
    display: grid;
    gap: 0.2rem;
}

.workshop-flow-contact-grid span {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    color: rgba(91, 69, 33, 0.82);
}

.workshop-flow-contact-grid strong,
.workshop-flow-meta span {
    color: #1c2733;
}

.workshop-flow-contact-grid strong {
    font-size: 0.88rem;
    line-height: 1.25;
}

.workshop-flow-actions {
    gap: 0.45rem;
    justify-content: flex-start;
}

.workshop-flow-actions .teacher-input {
    min-width: min(100%, 15rem);
    min-height: 2.25rem;
    padding: 0.42rem 0.6rem;
    flex: 1 1 14rem;
}

.workshop-flow-actions .toolbar-button {
    min-height: 2.25rem;
    padding: 0.38rem 0.65rem;
}

.workshop-flow-card-links {
    justify-content: flex-start;
    gap: 0.5rem;
    font-size: 0.86rem;
}

.result-mail-template-panel {
    display: grid;
    gap: 0.55rem;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    padding: 0.65rem 0.75rem;
}

.result-mail-template-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    justify-content: space-between;
}

.result-mail-template-head > :first-child {
    min-width: 12rem;
}

.result-mail-template-head h2,
.result-mail-template-head p {
    margin: 0;
}

.result-mail-template-head h2 {
    color: #1c2733;
    font-size: 0.98rem;
}

.result-mail-template-head p:not(.section-kicker) {
    color: #5d6470;
    font-size: 0.82rem;
}

.result-mail-template-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    justify-content: flex-end;
}

.result-mail-template-meta-inline {
    display: grid;
    grid-template-columns: minmax(12rem, 1.05fr) minmax(9rem, 0.95fr);
    gap: 0.45rem;
    flex: 1 1 26rem;
    min-width: min(100%, 22rem);
    max-width: 34rem;
}

.result-mail-template-meta-inline .teacher-field {
    min-width: 0;
}

.result-mail-copy-grid {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) minmax(12rem, 1fr);
    gap: 0.45rem;
}

.result-mail-copy-grid label {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.result-mail-copy-grid span {
    color: #5d6470;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.result-mail-copy-grid .teacher-input {
    min-height: 2rem;
    user-select: all;
}

.result-mail-source-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2rem;
    padding: 0.2rem 0.35rem;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 8px;
    background: rgba(36, 74, 90, 0.06);
    color: #244a5a;
    font-size: 0.76rem;
    font-weight: 850;
}

.result-mail-source-switch input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
}

.result-mail-source-track {
    position: relative;
    display: inline-block;
    width: 2.35rem;
    height: 1.22rem;
    border-radius: 999px;
    border: 1px solid rgba(36, 74, 90, 0.2);
    background: #fff;
}

.result-mail-source-track::after {
    content: "";
    position: absolute;
    top: 0.15rem;
    left: 0.16rem;
    width: 0.82rem;
    height: 0.82rem;
    border-radius: 999px;
    background: #244a5a;
    transition: transform 0.16s ease;
}

.result-mail-source-switch input:checked + .result-mail-source-track::after {
    transform: translateX(1.1rem);
}

.result-mail-source-switch:focus-within {
    border-color: rgba(29, 93, 114, 0.42);
    box-shadow: 0 0 0 3px rgba(99, 199, 202, 0.16);
}

.result-mail-template-textarea {
    width: 100%;
    min-height: 9.25rem;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.82rem;
    line-height: 1.45;
}

.result-mail-template-body {
    position: relative;
}

.result-mail-template-body > .result-mail-template-textarea,
.result-mail-template-body > .communication-rich-preview {
    padding-top: 2.1rem;
}

.result-mail-template-copy-button {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 2;
    min-height: 1.55rem;
    padding: 0.18rem 0.45rem;
    border: 1px solid rgba(36, 74, 90, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    color: #244a5a;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0;
    box-shadow: 0 6px 18px rgba(18, 38, 48, 0.12);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-0.1rem);
    transition: opacity 0.14s ease, transform 0.14s ease, background 0.14s ease;
}

.result-mail-template-body:hover .result-mail-template-copy-button,
.result-mail-template-body:focus-within .result-mail-template-copy-button,
.result-mail-template-copy-button:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.result-mail-template-copy-button:hover,
.result-mail-template-copy-button:focus-visible {
    background: #ffffff;
    border-color: rgba(29, 93, 114, 0.32);
}

.result-mail-template-copy-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

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

.communication-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.communication-panel {
    align-content: start;
}

.communication-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: flex-end;
}

.communication-period-input,
.communication-date-input {
    width: auto;
    min-width: 9rem;
}

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

.communication-draft-card {
    background: rgba(255, 255, 255, 0.9);
}

.communication-draft-card .teacher-field {
    display: grid;
    gap: 0.25rem;
}

.communication-warning {
    align-self: center;
    color: #7d2f2f;
    font-size: 0.78rem;
    font-weight: 800;
}

.communication-rich-preview {
    overflow-x: auto;
    border: 1px solid rgba(36, 74, 90, 0.14);
    border-radius: 8px;
    background: #fff;
    padding: 0.75rem;
}

.communication-rich-editor {
    min-height: 12rem;
    outline: none;
}

.communication-rich-editor:focus {
    border-color: rgba(29, 93, 114, 0.44);
    box-shadow: 0 0 0 3px rgba(99, 199, 202, 0.16);
}

.communication-rich-preview p {
    margin-block-start: 0;
}

.communication-rich-preview table {
    max-width: 100%;
}

.workshop-flow-card-results {
    --result-card-accent: rgba(36, 74, 90, 0.28);
    --result-card-bg: rgba(255, 255, 255, 0.82);
    gap: 0;
    padding: 0.32rem 0.48rem;
    border-color: color-mix(in srgb, var(--result-card-accent) 46%, rgba(36, 74, 90, 0.12));
    background: var(--result-card-bg);
}

.workshop-flow-result-card-ready {
    --result-card-accent: #15803d;
    --result-card-bg: #eef8f0;
}

.workshop-flow-result-card-empty,
.workshop-flow-result-card-checking {
    --result-card-accent: #b7791f;
    --result-card-bg: #fff8e7;
}

.workshop-flow-result-card-missing,
.workshop-flow-result-card-unavailable,
.workshop-flow-result-card-none {
    --result-card-accent: #b91c1c;
    --result-card-bg: #fff1f0;
}

.workshop-flow-result-card-sent {
    --result-card-accent: #2563eb;
    --result-card-bg: #eff6ff;
}

.workshop-flow-card-results.workshop-flow-card-selected {
    border-color: rgba(21, 94, 117, 0.9);
    box-shadow: inset 0 0 0 1px rgba(21, 94, 117, 0.45);
}

.workshop-flow-result-school-list {
    gap: 0.78rem;
}

.workshop-flow-result-school-section {
    display: grid;
    gap: 0.38rem;
    border: 1px solid rgba(36, 74, 90, 0.14);
    border-radius: 8px;
    background: rgba(245, 250, 250, 0.72);
    padding: 0.48rem;
}

.workshop-flow-result-school-heading {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    justify-content: space-between;
    min-height: 2.4rem;
    padding: 0.18rem 0.18rem 0.34rem;
    border-bottom: 1px solid rgba(36, 74, 90, 0.12);
}

.workshop-flow-result-school-heading h3,
.workshop-flow-result-school-heading p {
    margin: 0;
}

.workshop-flow-result-school-heading h3 {
    color: #1c2733;
    font-size: 0.98rem;
    line-height: 1.18;
}

.workshop-flow-result-school-heading span {
    flex: 0 0 auto;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #56616b;
    font-size: 0.76rem;
    font-weight: 850;
    padding: 0.22rem 0.48rem;
}

.workshop-flow-result-school-items {
    display: grid;
    gap: 0.36rem;
}

.workshop-flow-result-card-body {
    display: grid;
    grid-template-columns: minmax(24rem, 1fr) minmax(7.4rem, auto) max-content max-content;
    gap: 0.4rem 0.55rem;
    align-items: center;
}

.workshop-flow-result-title,
.workshop-flow-result-main,
.workshop-flow-result-contact,
.workshop-flow-result-status {
    min-width: 0;
}

.workshop-flow-result-main {
    display: grid;
    gap: 0.08rem;
}

.workshop-flow-result-title {
    display: grid;
    gap: 0.08rem;
}

.workshop-flow-title-link {
    color: #1c2733;
    text-decoration: none;
}

.workshop-flow-title-link:hover,
.workshop-flow-title-link:focus-visible {
    color: #244a5a;
    text-decoration: underline;
}

.workshop-flow-result-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.18rem 0.5rem;
    color: #56616b;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.2;
}

.workshop-flow-result-contact span,
.workshop-flow-result-contact a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workshop-flow-result-contact .text-link {
    font-size: 0.8rem;
}

.workshop-flow-result-status {
    justify-self: stretch;
    border: 1px solid color-mix(in srgb, var(--result-card-accent), transparent 66%);
    border-radius: 6px;
    background: color-mix(in srgb, var(--result-card-accent), white 90%);
    padding: 0.28rem 0.42rem;
    color: #1c2733;
}

.workshop-flow-result-status span {
    display: block;
    color: #65717a;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.workshop-flow-result-status strong {
    display: block;
    margin-top: 0.12rem;
    color: #1c2733;
    font-size: 0.82rem;
    line-height: 1.15;
}

.workshop-flow-result-action-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.28rem;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.workshop-flow-result-action-group .toolbar-button {
    min-height: 1.8rem;
    padding: 0.24rem 0.44rem;
    white-space: nowrap;
}

.workshop-flow-result-link-muted {
    color: #8a605d;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

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

    .communication-filter-row {
        justify-content: flex-start;
    }

    .workshop-flow-result-card-body {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .workshop-flow-results-bulk-toolbar,
    .page .workshop-flow-results-bulk-toolbar {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .workshop-flow-results-bulk-toolbar .bulk-toolbar-copy,
    .workshop-flow-results-bulk-toolbar .workshop-flow-bulk-selection-tools,
    .workshop-flow-results-bulk-toolbar .bulk-toolbar-actions,
    .page .workshop-flow-results-bulk-toolbar .bulk-toolbar-copy,
    .page .workshop-flow-results-bulk-toolbar .workshop-flow-bulk-selection-tools,
    .page .workshop-flow-results-bulk-toolbar .bulk-toolbar-actions {
        grid-column: 1 / -1;
    }

    .result-mail-copy-grid {
        grid-template-columns: 1fr;
    }

    .workshop-flow-result-contact span,
    .workshop-flow-result-contact a {
        white-space: normal;
    }

    .workshop-flow-result-status {
        justify-self: start;
    }

    .result-mail-template-actions {
        justify-content: flex-start;
    }
}

.workshop-flow-mini-list {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.6rem;
}

.workshop-flow-mini-list a {
    color: #244a5a;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 1280px) {
    .route-planner-controls,
    .planner-mode-grid,
    .workshop-cluster-grid,
    .route-day-grid,
    .route-ledger-grid,
    .route-objective-grid,
    .route-exception-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .route-planner-head,
    .route-review-head,
    .route-day-head,
    .route-stop-head {
        flex-direction: column;
    }

    .route-planner-controls,
    .planner-mode-grid,
    .workshop-cluster-controls,
    .workshop-cluster-grid,
    .workshop-flow-toolbar,
    .route-day-grid,
    .route-ledger-grid,
    .route-objective-grid,
    .route-exception-grid {
        grid-template-columns: 1fr;
    }

    .route-planner-score-strip,
    .route-review-metrics,
    .route-day-meta {
        justify-content: flex-start;
        width: 100%;
    }

    .route-plan-item {
        grid-template-columns: 1fr;
    }

    .route-plan-item time {
        grid-row: auto;
    }
}

.booking-detail-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.8rem;
}

.booking-side-form {
    display: grid;
    gap: 0.8rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(42, 53, 60, 0.08);
}

.booking-row-card .teacher-detail-actions {
    align-content: start;
    align-items: start;
    justify-content: end;
    flex-wrap: wrap;
}

.grid-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 22px;
    background: rgba(255, 244, 223, 0.8);
    border: 1px solid rgba(154, 108, 36, 0.16);
}

.bulk-toolbar-copy {
    display: grid;
    gap: 0.25rem;
}

.bulk-toolbar-copy strong {
    color: #583d08;
}

.bulk-toolbar-copy span {
    color: #6e634f;
}

.bulk-toolbar-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.grid-toolbar-copy h2 {
    margin: 0;
    color: #1d2733;
    overflow-wrap: anywhere;
}

.grid-toolbar-copy p {
    margin: 0.35rem 0 0;
    color: #5d6470;
    overflow-wrap: anywhere;
}

.grid-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1 1 26rem;
    min-width: 0;
}

.sheet-toolbar,
.sheet-formula-bar {
    border-radius: 8px;
}

.sheet-toolbar {
    padding: 0.95rem 1rem;
    background: rgba(255, 251, 245, 0.84);
    border: 1px solid rgba(54, 66, 72, 0.1);
}

.sheet-toolbar + .sheet-formula-bar,
.sheet-formula-bar + .sheet-panel {
    margin-top: 0.75rem;
}

.sheet-toolbar-actions {
    gap: 0.45rem;
}

.sheet-tool-button {
    display: inline-grid;
    place-items: center;
    flex: 0 0 2.7rem;
    width: 2.7rem;
    min-width: 2.7rem;
    padding: 0;
    font-size: 1.05rem;
    line-height: 1;
}

.sheet-tool-button-wide {
    flex-basis: auto;
    width: auto;
    min-width: 4.5rem;
    padding: 0 0.85rem;
    font-size: 0.9rem;
}

.grid-search {
    min-width: 0;
    width: min(100%, 20rem);
    min-height: 2.8rem;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(36, 74, 90, 0.16);
    background: rgba(255, 255, 255, 0.78);
}

.toolbar-button,
.toolbar-button-secondary,
.row-reset-button {
    min-height: 2.7rem;
    padding: 0.65rem 0.95rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 700;
}

.toolbar-button {
    background: #244a5a;
    color: #fffaf1;
}

.toolbar-button-secondary,
.row-reset-button {
    background: rgba(36, 74, 90, 0.08);
    color: #244a5a;
    border-color: rgba(36, 74, 90, 0.12);
}

.toolbar-button-danger {
    background: #7d2f2f;
    color: #fffaf1;
}

.toolbar-button-compact {
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
}

.floating-save-button {
    position: sticky;
    top: var(--floating-save-top, 0.35rem);
    z-index: 70;
    box-shadow: 0 8px 18px rgba(36, 74, 90, 0.18);
}

.page-header-card:has(.floating-save-button),
.teacher-detail-head:has(.floating-save-button),
.directory-detail-header:has(.floating-save-button),
.workshop-detail-head:has(.floating-save-button),
.grid-toolbar:has(.floating-save-button),
.formula-bar-panel:has(.floating-save-button),
.finance-settings-panel:has(.floating-save-button),
.teacher-detail-actions:has(.floating-save-button),
.grid-toolbar-actions:has(.floating-save-button),
.formula-bar-main:has(.floating-save-button) {
    position: sticky;
    top: var(--floating-save-top, 0.35rem);
    z-index: 65;
    border-color: rgba(36, 74, 90, 0.18);
    background: rgba(255, 251, 245, 0.96);
    box-shadow: 0 10px 22px rgba(36, 74, 90, 0.12);
    backdrop-filter: blur(10px);
}

.teacher-detail-actions:has(.floating-save-button),
.grid-toolbar-actions:has(.floating-save-button),
.formula-bar-main:has(.floating-save-button) {
    padding: 0.24rem;
    border-radius: 8px;
}

.toolbar-button:disabled,
.row-reset-button:disabled {
    opacity: 0.5;
}

.grid-panel {
    border-radius: 28px;
    background: rgba(255, 251, 245, 0.84);
    border: 1px solid rgba(54, 66, 72, 0.1);
    box-shadow: 0 24px 50px rgba(77, 64, 42, 0.08);
    padding: 1.3rem;
}

.grid-shell {
    overflow: auto;
    margin-top: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(36, 74, 90, 0.1);
    background: rgba(255, 255, 255, 0.62);
}

.booking-grid {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.booking-grid th,
.booking-grid td {
    border-right: 1px solid rgba(36, 74, 90, 0.08);
    border-bottom: 1px solid rgba(36, 74, 90, 0.08);
    padding: 0.45rem;
    vertical-align: top;
    background: rgba(255, 255, 255, 0.8);
}

.booking-grid th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f5efe4;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #746d61;
    white-space: nowrap;
}

.grid-row-dirty td {
    background: rgba(255, 248, 226, 0.92);
}

.grid-row-selected td {
    background: rgba(221, 238, 247, 0.9);
}

.grid-row-selected.grid-row-dirty td {
    background: linear-gradient(180deg, rgba(244, 241, 205, 0.95), rgba(222, 237, 247, 0.96));
}

.grid-input,
.grid-select {
    width: 100%;
    min-height: 2.2rem;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    border: 1px solid rgba(36, 74, 90, 0.1);
    background: rgba(255, 255, 255, 0.9);
    color: #233642;
}

.grid-input-id {
    min-width: 10rem;
}

.grid-input-date,
.grid-input-time,
.grid-input-count {
    min-width: 6rem;
}

.grid-input-school {
    min-width: 14rem;
}

.grid-input-location,
.grid-input-notes {
    min-width: 18rem;
}

.grid-toggle-cell {
    text-align: center;
    vertical-align: middle !important;
}

.grid-select-cell {
    min-width: 4.8rem;
    text-align: center;
    vertical-align: middle !important;
    cursor: crosshair;
}

.grid-select-cell input {
    width: 1rem;
    height: 1rem;
}

.dirty-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    background: rgba(36, 74, 90, 0.08);
    color: #5f6c77;
}

.dirty-pill-active {
    background: rgba(234, 180, 69, 0.2);
    color: #8b5d0a;
}

.grid-status-strip {
    align-items: center;
}

.formula-bar-panel,
.sheet-panel {
    border-radius: 28px;
    background: rgba(255, 251, 245, 0.84);
    border: 1px solid rgba(54, 66, 72, 0.1);
    box-shadow: 0 24px 50px rgba(77, 64, 42, 0.08);
    padding: 1.3rem;
    min-width: 0;
}

.formula-bar-panel {
    display: grid;
    gap: 0.9rem;
}

.formula-bar-meta,
.formula-bar-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
}

.formula-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #5b5f69;
}

.formula-input {
    flex: 1 1 18rem;
    min-width: 0;
    min-height: 2.8rem;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(36, 74, 90, 0.16);
    background: rgba(255, 255, 255, 0.85);
}

.formula-help {
    margin: 0;
    color: #5d6470;
}

.sheet-shell {
    position: relative;
    overflow-x: auto;
    overflow-y: auto;
    max-width: 100%;
    max-height: 72vh;
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(36, 74, 90, 0.1);
    background: rgba(255, 255, 255, 0.62);
    outline: none;
    scrollbar-gutter: stable both-edges;
    scroll-padding-top: 43.2px;
    scroll-padding-left: 3rem;
}

.sheet-canvas-layer {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.sheet-grid {
    position: relative;
    z-index: 1;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    user-select: none;
}

.sheet-row-index-column {
    width: 3rem;
    min-width: 3rem;
    max-width: 3rem;
}

.sheet-data-column {
    width: 8.25rem;
    min-width: 8.25rem;
    max-width: 8.25rem;
}

.sheet-grid th,
.sheet-grid td {
    box-sizing: border-box;
    border-right: 1px solid rgba(36, 74, 90, 0.08);
    border-bottom: 1px solid rgba(36, 74, 90, 0.08);
    overflow: hidden;
}

.sheet-data-row {
    height: 42.2px;
}

.sheet-corner,
.sheet-column-header,
.sheet-row-header {
    position: sticky;
    background: #f5efe4;
    color: #746d61;
    z-index: 8;
}

.sheet-column-header {
    top: 0;
    z-index: 14;
    height: 42.2px;
    width: 8.25rem;
    min-width: 8.25rem;
    max-width: 8.25rem;
    padding: 0 15.2px 0 11.2px;
    font-size: 0.72rem;
    line-height: 42.2px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-panel-no-virtual .sheet-corner,
.sheet-panel-no-virtual .sheet-column-header,
.sheet-panel-no-virtual .sheet-row-header {
    position: static;
}

.sheet-column-header-selected {
    background: #dcecf6;
}

.sheet-column-header-active {
    box-shadow: inset 0 0 0 2px #244a5a;
}

.sheet-column-title {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sheet-column-resizer {
    position: absolute;
    top: 0;
    right: -0.25rem;
    bottom: 0;
    z-index: 10;
    width: 0.55rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: col-resize;
}

.sheet-column-resizer span {
    display: block;
    width: 1px;
    height: 100%;
    margin: 0 auto;
    background: transparent;
}

.sheet-column-resizer:hover span,
.sheet-column-resizer:focus-visible span,
.sheet-column-resizing .sheet-column-resizer span {
    background: #244a5a;
}

.sheet-column-resizing,
.sheet-column-resizing * {
    cursor: col-resize !important;
    user-select: none !important;
}

.sheet-row-header {
    left: 0;
    z-index: 13;
    width: 3rem;
    min-width: 3rem;
    max-width: 3rem;
    height: 42.2px;
    padding: 0 9.6px;
    line-height: 42.2px;
    text-align: right;
    pointer-events: auto;
}

.sheet-row-select-label {
    display: inline-flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.sheet-row-select {
    width: 0.95rem;
    height: 0.95rem;
    margin: 0;
    accent-color: #0f8f94;
}

.sheet-corner {
    top: 0;
    left: 0;
    z-index: 16;
    width: 3rem;
    min-width: 3rem;
    max-width: 3rem;
}

.sheet-grid-cell {
    width: auto;
    min-width: 0;
    max-width: none;
    height: 42.2px;
    padding: 0;
    background: #ffffff;
    cursor: cell;
    position: relative;
}

.sheet-cell-value,
.sheet-editor {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 0 9.6px;
    font-size: 0.9rem;
    line-height: 1.2;
    color: #253642;
}

.sheet-cell-value {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    overflow: hidden;
    white-space: nowrap;
}

.sheet-cell-fallback {
    position: relative;
    opacity: 1;
    pointer-events: none;
    background: inherit;
}

.sheet-cell-template {
    pointer-events: auto;
}

.sheet-cell-link {
    display: inline-block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    color: #1f5f7a;
    font-weight: 800;
    text-decoration: none;
}

.sheet-cell-link:hover {
    color: #153f52;
    text-decoration: underline;
}

.sheet-cell-muted {
    display: inline-block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #6f7d84;
}

.sheet-show-fallback .sheet-cell-fallback {
    opacity: 1;
}

.sheet-cell-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sheet-cell-fallback .sheet-cell-text {
    padding-right: 1.65rem;
}

.sheet-checkbox-fallback {
    position: relative;
    display: block;
    width: 13px;
    height: 13px;
    margin: 0 auto;
    border: 1.4px solid #5c7480;
    box-sizing: border-box;
}

.sheet-checkbox-fallback-checked::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 1px;
    width: 6px;
    height: 9px;
    border: solid #244a5a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sheet-cell-value-dropdown {
    position: relative;
    padding-right: 0.3rem;
}

.sheet-cell-fallback .sheet-cell-dropdown-toggle {
    position: absolute;
    top: 50%;
    right: 0.15rem;
    transform: translateY(-50%);
}

.sheet-cell-dropdown-toggle,
.sheet-dropdown-toggle {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.45rem;
    height: 1.45rem;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #5c7480;
    cursor: pointer;
}

.sheet-cell-dropdown-toggle:hover,
.sheet-dropdown-toggle:hover {
    background: rgba(36, 74, 90, 0.08);
    color: #244a5a;
}

.sheet-dropdown-triangle {
    width: 0;
    height: 0;
    border-left: 0.28rem solid transparent;
    border-right: 0.28rem solid transparent;
    border-top: 0.36rem solid currentColor;
}

.sheet-editor {
    border: none;
    outline: 2px solid #244a5a;
    background: #fffdf8;
}

.sheet-dropdown-editor {
    position: relative;
    width: 100%;
    height: 100%;
}

.sheet-dropdown-input {
    padding-right: 1.9rem;
}

.sheet-dropdown-toggle {
    position: absolute;
    top: 50%;
    right: 0.24rem;
    transform: translateY(-50%);
    z-index: 2;
}

.sheet-dropdown-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20000;
    width: max(100%, 13rem);
    max-height: 15rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.25rem;
    border: 1px solid rgba(36, 74, 90, 0.18);
    border-radius: 8px;
    background: #fffdf8;
    box-shadow: 0 16px 36px rgba(54, 66, 72, 0.18);
    opacity: 1;
}

.sheet-row-add {
    display: flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0.45rem 0 0 3.25rem;
}

.sheet-row-add-button {
    display: inline-grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    padding: 0;
    border: 1px solid rgba(36, 74, 90, 0.18);
    border-radius: 50%;
    background: #fffdf8;
    color: #244a5a;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.sheet-row-add-button:hover,
.sheet-row-add-button:focus-visible {
    background: #dcecf6;
    outline: none;
}

.sheet-dropdown-option {
    display: block;
    width: 100%;
    min-height: 2rem;
    padding: 0.45rem 0.55rem;
    border: none;
    border-radius: 6px;
    background: #fffdf8;
    color: #253642;
    font-size: 0.88rem;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.sheet-dropdown-option:hover,
.sheet-dropdown-option-active {
    background: #dcecf6;
}

.sheet-token {
    --sheet-token-bg: #eef3f6;
    --sheet-token-border: #7b8792;
    --sheet-token-text: #253642;
}

.sheet-grid-cell.sheet-token {
    background: var(--sheet-token-bg);
}

.sheet-grid-cell.sheet-token .sheet-cell-value,
.sheet-dropdown-input.sheet-token {
    color: var(--sheet-token-text);
    font-weight: 800;
}

.sheet-grid-cell.sheet-token .sheet-cell-value {
    box-shadow: inset 3px 0 0 var(--sheet-token-border);
}

.sheet-dropdown-input.sheet-token {
    background: var(--sheet-token-bg);
    box-shadow: inset 3px 0 0 var(--sheet-token-border), inset 0 0 0 2px #244a5a;
}

.sheet-dropdown-option.sheet-token {
    border-color: var(--sheet-token-border);
    background: var(--sheet-token-bg);
    color: var(--sheet-token-text);
    font-weight: 800;
}

.sheet-dropdown-option.sheet-token:hover,
.sheet-dropdown-option.sheet-token.sheet-dropdown-option-active {
    filter: saturate(1.05) contrast(1.02);
    background: color-mix(in srgb, var(--sheet-token-bg) 74%, #ffffff) !important;
    color: var(--sheet-token-text);
}

.sheet-token-green {
    --sheet-token-bg: #dff3ea;
    --sheet-token-border: #16835d;
    --sheet-token-text: #0f6848;
}

.sheet-token-yellow {
    --sheet-token-bg: #fff1da;
    --sheet-token-border: #d08a1e;
    --sheet-token-text: #74470d;
}

.sheet-token-orange {
    --sheet-token-bg: #ffe7d6;
    --sheet-token-border: #c45b1d;
    --sheet-token-text: #7a3511;
}

.sheet-token-red {
    --sheet-token-bg: #fde5e1;
    --sheet-token-border: #c8372d;
    --sheet-token-text: #82211c;
}

.sheet-token-blue {
    --sheet-token-bg: #e7eefb;
    --sheet-token-border: #476da8;
    --sheet-token-text: #284d86;
}

.sheet-token-cyan {
    --sheet-token-bg: #ddf4f6;
    --sheet-token-border: #0f8b95;
    --sheet-token-text: #0b6670;
}

.sheet-token-teal {
    --sheet-token-bg: #dff4ee;
    --sheet-token-border: #0f8a70;
    --sheet-token-text: #0d6654;
}

.sheet-token-purple {
    --sheet-token-bg: #f0e6f4;
    --sheet-token-border: #8f5a96;
    --sheet-token-text: #653a70;
}

.sheet-token-violet {
    --sheet-token-bg: #ebe7fb;
    --sheet-token-border: #6b5db3;
    --sheet-token-text: #463b88;
}

.sheet-token-pink {
    --sheet-token-bg: #fde7ef;
    --sheet-token-border: #bd4f76;
    --sheet-token-text: #7e2f4d;
}

.sheet-token-indigo {
    --sheet-token-bg: #e8ecfb;
    --sheet-token-border: #4f65b9;
    --sheet-token-text: #35437f;
}

.sheet-token-slate {
    --sheet-token-bg: #e8eef1;
    --sheet-token-border: #60717b;
    --sheet-token-text: #344652;
}

.sheet-token-gray {
    --sheet-token-bg: #eef1f3;
    --sheet-token-border: #7b8792;
    --sheet-token-text: #4d5961;
}

.sheet-date-editor {
    position: relative;
    width: 100%;
    height: 100%;
}

.sheet-date-picker {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    z-index: 12;
    width: 18rem;
    padding: 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(36, 74, 90, 0.18);
    background: #fffdf8;
    box-shadow: 0 18px 40px rgba(54, 66, 72, 0.18);
}

.sheet-date-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    color: #253642;
}

.sheet-date-picker-head button,
.sheet-date-picker-day {
    border: 1px solid transparent;
    background: transparent;
    color: #253642;
}

.sheet-date-picker-head button {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
}

.sheet-date-picker-weekdays,
.sheet-date-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
}

.sheet-date-picker-weekdays {
    margin-bottom: 0.3rem;
    color: #746d61;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

.sheet-date-picker-day {
    min-height: 2rem;
    border-radius: 8px;
    font-size: 0.86rem;
}

.sheet-date-picker-day-muted {
    color: #9aa2aa;
}

.sheet-date-picker-day-highlighted {
    background: rgba(234, 180, 69, 0.24);
    border-color: rgba(139, 93, 10, 0.24);
}

.sheet-date-picker-day-selected {
    background: #244a5a;
    color: #fff;
}

.sheet-cell-warning {
    box-shadow: inset 0 0 0 2px #c62828;
}

.sheet-cell-selected {
    background: #dcecf6;
}

.sheet-row-header-selected {
    background: #dcecf6;
}

.sheet-row-header-active {
    box-shadow: inset 0 0 0 2px #244a5a;
    z-index: 14;
}

.sheet-cell-active {
    position: relative;
    box-shadow: inset 0 0 0 2px #244a5a;
    z-index: 1;
}

.sheet-grid td.sheet-cell-editing {
    z-index: 30;
    overflow: visible;
}

.sheet-row-dirty {
    background: linear-gradient(180deg, #fff7db, #fffdf6);
}

.sheet-cell-custom {
    box-shadow: inset 3px 0 0 #c62828;
}

.sheet-cell-readonly {
    color: #4f5d68;
    cursor: default;
    background: #e7ebef;
}

.sheet-cell-readonly .sheet-cell-value {
    background: #e2e7eb;
    color: #4f5d68;
    box-shadow: inset 0 0 0 1px rgba(85, 101, 113, 0.18);
}

.sheet-grid-cell.sheet-cell-readonly.sheet-token,
.sheet-grid-cell.sheet-cell-readonly.sheet-token .sheet-cell-value {
    background: #e2e7eb;
    color: #4f5d68;
}

.sheet-grid-cell.sheet-cell-readonly.sheet-token .sheet-cell-value {
    box-shadow: inset 0 0 0 1px rgba(85, 101, 113, 0.2), inset 3px 0 0 #8a96a1;
}

.sheet-lock-cell .sheet-cell-value {
    justify-content: center;
    padding: 0 0.35rem;
}

.sheet-grid-cell.sheet-cell-lock .sheet-cell-value,
.readonly-sheet-cell.sheet-cell-lock .sheet-cell-value,
.workshop-flow-page-planning .workshop-flow-backlog-cell.sheet-cell-lock .workshop-flow-backlog-input {
    padding-right: 1.55rem;
}

.sheet-grid-cell.sheet-cell-lock .sheet-cell-link,
.readonly-sheet-cell.sheet-cell-lock .sheet-cell-link {
    max-width: calc(100% - 1.2rem);
}

.sheet-grid-cell.sheet-cell-lock::after,
.readonly-sheet-cell.sheet-cell-lock::after,
.workshop-flow-page-planning .workshop-flow-backlog-cell.sheet-cell-lock::after {
    content: "🔒";
    position: absolute;
    top: 50%;
    right: 0.32rem;
    display: inline-grid;
    place-items: center;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    font-size: 0.7rem;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

.sheet-grid-cell.sheet-cell-lock-booking::after,
.readonly-sheet-cell.sheet-cell-lock-booking::after,
.workshop-flow-page-planning .workshop-flow-backlog-cell.sheet-cell-lock-booking::after {
    color: #195743;
}

.sheet-grid-cell.sheet-cell-lock-manual::after,
.readonly-sheet-cell.sheet-cell-lock-manual::after,
.workshop-flow-page-planning .workshop-flow-backlog-cell.sheet-cell-lock-manual::after {
    color: #74520f;
}

.sheet-grid-cell.sheet-cell-lock-system::after,
.readonly-sheet-cell.sheet-cell-lock-system::after,
.workshop-flow-page-planning .workshop-flow-backlog-cell.sheet-cell-lock-system::after {
    color: #304152;
}

.workshop-lock-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.8rem;
    max-width: 100%;
    min-height: 1.45rem;
    padding: 0.14rem 0.42rem;
    border: 1px solid #a8b3bd;
    border-radius: 999px;
    background: #f4f6f8;
    color: #596773;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workshop-lock-chip-booking {
    border-color: #2e7d64;
    background: #e4f3ee;
    color: #195743;
}

.workshop-lock-chip-manual {
    border-color: #b9851d;
    background: #fff2d4;
    color: #74520f;
}

.workshop-lock-chip-system {
    border-color: #5c6f82;
    background: #e8edf2;
    color: #304152;
}

.workshop-lock-chip-unlocked {
    border-style: dashed;
}

.readonly-sheet-toolbar,
.readonly-sheet-panel {
    border-radius: 8px;
    background: rgba(255, 251, 245, 0.84);
    border: 1px solid rgba(54, 66, 72, 0.1);
    box-shadow: 0 12px 28px rgba(77, 64, 42, 0.06);
    min-width: 0;
}

.readonly-sheet-toolbar {
    padding: 0.9rem 1rem;
}

.readonly-sheet-toolbar h2,
.readonly-sheet-toolbar p {
    margin: 0;
}

.readonly-sheet-toolbar h2 {
    color: #1c2733;
    font-size: 1rem;
}

.readonly-sheet-toolbar p {
    color: #52606a;
    font-size: 0.86rem;
    font-weight: 800;
}

.readonly-sheet-toolbar + .readonly-sheet-panel {
    margin-top: 0.75rem;
}

.readonly-sheet-panel {
    padding: 0.8rem;
}

.readonly-sheet-shell {
    position: relative;
    overflow: auto;
    max-width: 100%;
    max-height: 72vh;
    border: 1px solid rgba(36, 74, 90, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    scrollbar-gutter: stable both-edges;
}

.readonly-sheet-grid {
    width: max-content;
    min-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.readonly-sheet-grid-fast {
    position: relative;
    display: block;
    width: var(--readonly-sheet-total-width);
    min-width: 100%;
    height: var(--readonly-sheet-total-height);
    table-layout: auto;
}

.readonly-sheet-header-row,
.readonly-sheet-visible-row {
    display: grid;
    grid-template-columns: 3rem minmax(var(--readonly-sheet-summary-width, 42rem), 1fr);
    width: var(--readonly-sheet-total-width);
    min-width: 100%;
}

.readonly-sheet-header-row {
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--readonly-sheet-header-height);
}

.readonly-sheet-body-spacer {
    height: calc(var(--readonly-sheet-total-height) - var(--readonly-sheet-header-height));
    pointer-events: none;
}

.readonly-sheet-visible-rows {
    position: absolute;
    top: var(--readonly-sheet-header-height);
    right: 0;
    left: 0;
    height: 0;
}

.readonly-sheet-visible-row {
    position: absolute;
    top: 0;
    left: 0;
    height: var(--readonly-sheet-row-height);
    will-change: transform;
}

.readonly-sheet-row-index-column {
    width: 3rem;
    min-width: 3rem;
    max-width: 3rem;
}

.readonly-sheet-data-column {
    width: 9.25rem;
    min-width: 9.25rem;
    max-width: 9.25rem;
}

.readonly-sheet-grid th,
.readonly-sheet-grid td,
.readonly-sheet-grid-cell {
    box-sizing: border-box;
    border-right: 1px solid rgba(36, 74, 90, 0.08);
    border-bottom: 1px solid rgba(36, 74, 90, 0.08);
    overflow: hidden;
}

.readonly-sheet-corner,
.readonly-sheet-column-header,
.readonly-sheet-row-header {
    position: sticky;
    background: #f5efe4;
    color: #746d61;
    z-index: 8;
}

.readonly-sheet-column-header {
    top: 0;
    z-index: 14;
    height: var(--readonly-sheet-header-height, 42.2px);
    padding: 0 0.7rem;
    color: #746d61;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: var(--readonly-sheet-header-height, 42.2px);
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.readonly-sheet-summary-header {
    width: var(--readonly-sheet-summary-width, 42rem);
    min-width: var(--readonly-sheet-summary-width, 42rem);
    max-width: var(--readonly-sheet-summary-width, 42rem);
}

.readonly-sheet-column-header span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.readonly-sheet-row-header {
    left: 0;
    z-index: 13;
    width: 3rem;
    min-width: 3rem;
    max-width: 3rem;
    height: var(--readonly-sheet-row-height, 42.2px);
    padding: 0 0.6rem;
    line-height: var(--readonly-sheet-row-height, 42.2px);
    text-align: right;
}

.readonly-sheet-corner {
    top: 0;
    left: 0;
    z-index: 16;
    height: var(--readonly-sheet-header-height, 42.2px);
}

.readonly-sheet-row {
    height: var(--readonly-sheet-row-height, 42.2px);
}

.readonly-sheet-row:hover .readonly-sheet-cell {
    background: rgba(237, 245, 246, 0.78);
}

.readonly-sheet-cell {
    position: relative;
    height: var(--readonly-sheet-row-height, 42.2px);
    padding: 0;
    background: #fff;
    cursor: default;
}

.readonly-sheet-cell.sheet-cell-readonly .readonly-sheet-value {
    background: transparent;
}

.readonly-sheet-summary-cell {
    position: relative;
    height: var(--readonly-sheet-row-height, 42.2px);
    padding: 0;
    background: #fff;
    cursor: default;
}

.readonly-sheet-value {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    height: 100%;
    padding: 0 0.6rem;
    overflow: hidden;
    color: #253642;
    font-size: 0.88rem;
    white-space: nowrap;
}

.readonly-sheet-summary-value {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: var(--readonly-sheet-fact-columns, repeat(var(--readonly-sheet-fact-column-count, 1), minmax(8.6rem, 1fr)));
    grid-auto-columns: minmax(8.6rem, 1fr);
    grid-template-rows: repeat(var(--readonly-sheet-fact-rows, 3), minmax(0, 1fr));
    align-items: stretch;
    gap: 0.04rem 0.28rem;
    height: 100%;
    padding: 0.18rem 0.38rem;
    overflow: hidden;
}

.readonly-sheet-fact {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 0;
    height: 100%;
    gap: 0.24rem;
    padding: 0 0.18rem;
    border-left: 2px solid transparent;
    color: #253642;
    font-size: 0.68rem;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
}

.readonly-sheet-fact-label {
    flex: 0 0 clamp(1.85rem, 44%, 5.8rem);
    max-width: clamp(1.85rem, 44%, 5.8rem);
    overflow: hidden;
    color: #70808a;
    font-size: 0.56rem;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.readonly-sheet-fact-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.readonly-sheet-fact .sheet-cell-link {
    display: inline-block;
    font-size: inherit;
    line-height: 1;
}

.readonly-sheet-fact-span-3 {
    grid-row: span 3;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.16rem;
    padding-top: 0.08rem;
    padding-bottom: 0.08rem;
    line-height: 1.15;
    white-space: normal;
}

.readonly-sheet-fact-span-3 .readonly-sheet-fact-label {
    flex: 0 0 auto;
    max-width: 100%;
}

.readonly-sheet-fact-event-description .readonly-sheet-fact-value {
    display: -webkit-box;
    max-height: calc(var(--readonly-sheet-row-height, 42.2px) - 0.55rem);
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.readonly-sheet-fact-date .readonly-sheet-fact-label {
    flex-basis: 2.35rem;
    max-width: 2.35rem;
}

.readonly-sheet-fact-instruction .readonly-sheet-fact-label {
    flex-basis: 6.8rem;
    max-width: 6.8rem;
}

.readonly-sheet-fact-instruction .readonly-sheet-fact-value {
    white-space: nowrap;
}

.readonly-sheet-fact-checkbox-value {
    display: inline-flex;
    align-items: center;
}

.readonly-sheet-fact .sheet-checkbox-fallback {
    width: 10px;
    height: 10px;
}

.readonly-sheet-fact .sheet-checkbox-fallback-checked::after {
    left: 1px;
    top: 0;
    width: 5px;
    height: 7px;
}

.readonly-sheet-fact.sheet-token {
    border-left-color: var(--sheet-token-border);
    background: color-mix(in srgb, var(--sheet-token-bg) 72%, #ffffff);
    color: var(--sheet-token-text);
    font-weight: 800;
}

.readonly-sheet-fact.sheet-token .readonly-sheet-fact-label {
    color: color-mix(in srgb, var(--sheet-token-text) 68%, #64717d);
}

.readonly-sheet-checkbox-cell .readonly-sheet-value {
    justify-content: center;
}

.readonly-sheet-cell.sheet-token .readonly-sheet-value {
    color: var(--sheet-token-text);
    font-weight: 800;
    box-shadow: inset 3px 0 0 var(--sheet-token-border);
}

.readonly-sheet-cell .sheet-cell-link,
.readonly-sheet-cell .workshop-booking-link {
    pointer-events: auto;
}

.sheet-grid-cell.sheet-cell-selected {
    background: #dcecf6 !important;
}

.sheet-grid-cell.sheet-row-dirty.sheet-cell-selected {
    background: linear-gradient(180deg, #d6eaf7, #c3e0f3) !important;
}

.sheet-grid-cell.sheet-cell-active.sheet-cell-selected {
    box-shadow: inset 0 0 0 2px #244a5a;
}

.sheet-grid-cell.sheet-cell-custom.sheet-cell-active,
.sheet-grid-cell.sheet-cell-custom.sheet-cell-active.sheet-cell-selected {
    box-shadow: inset 3px 0 0 #c62828, inset 0 0 0 2px #244a5a;
}

.finance-page {
    max-width: none;
}

.finance-header-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.finance-year-select {
    min-height: 2rem;
    max-width: 13rem;
    padding: 0.35rem 0.55rem;
    border-radius: 10px;
    border: 1px solid rgba(36, 74, 90, 0.18);
    background: rgba(255, 255, 255, 0.78);
    color: #244a5a;
    font-size: 0.82rem;
    font-weight: 800;
}

.planning-schoolyear-select {
    max-width: 15rem;
}

.finance-workbook-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 0.8rem;
}

.finance-workbook-tab,
.finance-sheet-tab {
    min-width: 0;
    border: 1px solid rgba(36, 74, 90, 0.14);
    background: rgba(255, 251, 245, 0.84);
    color: #253642;
    text-align: left;
    cursor: pointer;
}

.finance-workbook-tab {
    display: grid;
    gap: 0.25rem;
    min-height: 4.6rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(77, 64, 42, 0.07);
}

.finance-workbook-tab strong,
.finance-sheet-tab strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finance-workbook-tab span,
.finance-sheet-tab span {
    color: #6f7d84;
    font-size: 0.82rem;
    line-height: 1.35;
}

.finance-workbook-tab-active,
.finance-sheet-tab-active {
    border-color: rgba(36, 74, 90, 0.48);
    box-shadow: inset 0 0 0 2px rgba(36, 74, 90, 0.22), 0 16px 34px rgba(77, 64, 42, 0.07);
}

.finance-metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.finance-metric-card .stat-row strong {
    font-size: clamp(1.45rem, 2vw, 2.1rem);
}

.finance-metric-warning {
    border-color: rgba(125, 47, 47, 0.24);
}

.finance-metric-warning .stat-row strong {
    color: #7d2f2f;
}

.finance-workbook-panel,
.finance-admin-panel {
    display: grid;
    gap: 1rem;
    min-width: 0;
    padding: 1.1rem;
    border-radius: 28px;
    background: rgba(255, 251, 245, 0.84);
    border: 1px solid rgba(54, 66, 72, 0.1);
    box-shadow: 0 24px 50px rgba(77, 64, 42, 0.08);
}

.finance-selection-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2.8rem;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(36, 74, 90, 0.12);
    background: rgba(255, 255, 255, 0.68);
    color: #253642;
}

.finance-selection-strip span {
    color: #5d6470;
}

.finance-custom-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.finance-custom-lines-table {
    min-width: 50rem;
}

.finance-custom-lines-table .teacher-input {
    min-height: 2.35rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
}

.finance-custom-description-cell {
    min-width: 18rem;
}

.finance-custom-number-input,
.finance-custom-unit-input {
    max-width: 7rem;
}

.finance-custom-money-input {
    max-width: 8rem;
}

.finance-collapsible-body {
    display: grid;
    gap: 1rem;
}

.finance-section-toggle {
    flex: 0 0 auto;
}

.finance-section-toggle-chevron {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

.finance-section-toggle-chevron.is-open {
    transform: rotate(225deg);
}

@media (max-width: 900px) {
    .finance-custom-grid {
        grid-template-columns: 1fr;
    }
}

.finance-table-shell {
    overflow: auto;
    border-radius: 14px;
    border: 1px solid rgba(36, 74, 90, 0.1);
    background: rgba(255, 255, 255, 0.72);
}

.finance-domain-table {
    width: 100%;
    min-width: 58rem;
    border-collapse: collapse;
}

.finance-domain-table th,
.finance-domain-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(36, 74, 90, 0.08);
    text-align: left;
    vertical-align: top;
}

.finance-domain-table th {
    background: #f5efe4;
    color: #746d61;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.finance-domain-table td {
    color: #253642;
}

.finance-domain-table td > strong,
.finance-domain-table td > span {
    display: block;
}

.finance-domain-table td > span {
    margin-top: 0.12rem;
    color: #6f7d84;
    font-size: 0.83rem;
}

.finance-booking-group-row td {
    padding: 0;
    background: rgba(238, 243, 244, 0.82);
}

.finance-booking-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3rem;
    padding: 0.55rem 0.75rem;
    color: #244a5a;
}

.finance-booking-group-header strong,
.finance-booking-group-header span {
    display: block;
}

.finance-booking-group-header span {
    margin-top: 0.1rem;
    color: #5d6470;
    font-size: 0.84rem;
}

.booking-billing-note {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.45rem;
    padding: 0.58rem 0.68rem;
    border: 1px solid rgba(11, 93, 82, 0.24);
    border-radius: 8px;
    background: #edf8f5;
    color: #173f3a;
}

.booking-billing-note span {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #276158;
}

.booking-billing-note strong {
    white-space: pre-wrap;
    font-size: 0.92rem;
    line-height: 1.4;
}

.finance-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 12rem;
}

.finance-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.75rem;
}

.finance-admin-grid article {
    min-width: 0;
    padding: 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(36, 74, 90, 0.1);
    background: rgba(255, 255, 255, 0.68);
}

.finance-admin-grid strong {
    display: block;
    margin-top: 0.25rem;
    color: #244a5a;
    font-size: 1.2rem;
}

.finance-admin-grid span {
    display: block;
    margin-top: 0.3rem;
    color: #6f7d84;
    font-size: 0.84rem;
    line-height: 1.35;
}

.finance-security-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 0.55rem;
}

.finance-security-list span {
    min-width: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(36, 74, 90, 0.1);
    background: rgba(255, 255, 255, 0.68);
    color: #5d6470;
    line-height: 1.35;
}

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

.finance-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.8rem;
    align-items: end;
}

.finance-tax-note {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(154, 108, 36, 0.16);
    background: rgba(255, 244, 223, 0.8);
    color: #6e634f;
}

.finance-tax-note strong,
.finance-tax-note span {
    display: block;
}

.finance-tax-note span {
    margin-top: 0.2rem;
    line-height: 1.35;
}

.finance-kor-warning {
    border-color: rgba(125, 47, 47, 0.18);
}

.finance-row-warning td {
    background: rgba(255, 244, 223, 0.78);
}

.finance-calculation-table {
    min-width: 46rem;
}

.finance-tax-result-row td {
    background: rgba(238, 243, 244, 0.82);
    color: #244a5a;
    font-weight: 800;
}

.finance-rule-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 0.55rem;
}

.finance-rule-list a {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(36, 74, 90, 0.1);
    background: rgba(255, 255, 255, 0.68);
    color: #244a5a;
    text-decoration: none;
}

.finance-rule-list a:hover {
    text-decoration: underline;
}

.finance-rule-list span {
    color: #6f7d84;
    font-size: 0.84rem;
}

.finance-audit-details {
    display: grid;
    gap: 1rem;
}

.finance-audit-details > summary {
    cursor: pointer;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(36, 74, 90, 0.12);
    background: rgba(36, 74, 90, 0.08);
    color: #244a5a;
    font-weight: 800;
}

.finance-audit-details[open] > summary {
    margin-bottom: 1rem;
}

.finance-toolbar {
    margin: 0;
}

.finance-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(36, 74, 90, 0.14);
    background: rgba(255, 255, 255, 0.68);
    color: #244a5a;
    font-weight: 700;
}

.finance-sheet-tabs {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
}

.finance-sheet-tab {
    display: grid;
    flex: 0 0 auto;
    gap: 0.18rem;
    width: min(16rem, 72vw);
    min-height: 3.7rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
}

.finance-sheet-tab-hidden {
    background: rgba(237, 240, 241, 0.9);
}

.finance-status-strip,
.finance-sheet-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    color: #5d6470;
}

.finance-status-strip {
    min-height: 2.7rem;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(36, 74, 90, 0.1);
    background: rgba(255, 255, 255, 0.62);
}

.finance-sheet-meta span {
    min-height: 2rem;
    padding: 0.38rem 0.55rem;
    border-radius: 999px;
    background: rgba(36, 74, 90, 0.08);
    color: #244a5a;
    font-size: 0.82rem;
    font-weight: 700;
}

.finance-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
    gap: 1rem;
    min-width: 0;
    align-items: start;
}

.finance-grid-shell {
    overflow: auto;
    min-width: 0;
    max-height: 72vh;
    border-radius: 16px;
    border: 1px solid rgba(36, 74, 90, 0.1);
    background: rgba(255, 255, 255, 0.62);
    scrollbar-gutter: stable both-edges;
}

.finance-grid {
    width: max-content;
    min-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.finance-row-index-column {
    width: 3.2rem;
    min-width: 3.2rem;
    max-width: 3.2rem;
}

.finance-grid th,
.finance-grid td {
    box-sizing: border-box;
    height: 2.45rem;
    border-right: 1px solid rgba(36, 74, 90, 0.08);
    border-bottom: 1px solid rgba(36, 74, 90, 0.08);
    overflow: hidden;
}

.finance-corner,
.finance-column-header,
.finance-row-header {
    position: sticky;
    background: #f5efe4;
    color: #746d61;
    z-index: 8;
}

.finance-corner {
    top: 0;
    left: 0;
    z-index: 16;
}

.finance-column-header {
    top: 0;
    z-index: 14;
    padding: 0.55rem 0.65rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.finance-row-header {
    left: 0;
    z-index: 13;
    width: 3.2rem;
    min-width: 3.2rem;
    max-width: 3.2rem;
    padding: 0.55rem 0.55rem;
    text-align: right;
    font-size: 0.78rem;
}

.finance-grid-cell {
    max-width: none;
    padding: 0.45rem 0.55rem;
    background: #fff;
    color: #253642;
    font-size: 0.88rem;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: cell;
}

.finance-grid-cell-empty {
    background: rgba(255, 255, 255, 0.72);
    cursor: default;
}

.finance-grid-cell-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.finance-grid-cell-formula {
    box-shadow: inset 0 -2px 0 rgba(36, 74, 90, 0.14);
}

.finance-grid-cell-link a {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1f5f7a;
    font-weight: 800;
    text-decoration: none;
}

.finance-grid-cell-link a:hover {
    text-decoration: underline;
}

.finance-grid-cell-selected {
    position: relative;
    box-shadow: inset 0 0 0 2px #244a5a;
    z-index: 1;
}

.finance-cell-panel {
    display: grid;
    gap: 0.8rem;
    position: sticky;
    top: 1rem;
    min-width: 0;
    max-height: 72vh;
    overflow: auto;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(36, 74, 90, 0.1);
    background: rgba(255, 255, 255, 0.74);
}

.finance-cell-panel h3 {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.finance-cell-panel dl {
    display: grid;
    gap: 0.6rem;
    margin: 0;
}

.finance-cell-panel dl div {
    display: grid;
    gap: 0.15rem;
}

.finance-cell-panel dt,
.finance-formula-box span {
    color: #746d61;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.finance-cell-panel dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    color: #253642;
}

.finance-formula-box {
    display: grid;
    gap: 0.45rem;
}

.finance-formula-box code {
    display: block;
    max-height: 16rem;
    overflow: auto;
    padding: 0.65rem;
    border-radius: 10px;
    background: #253642;
    color: #fffaf1;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 1400px) {
    .dashboard,
    .page-stack {
        width: 100%;
    }

    .hero-panel h1,
    .page-header-card h1 {
        font-size: clamp(1.9rem, 3vw, 3rem);
    }
}

@media (max-width: 1280px) {
    .dashboard,
    .page-stack {
        max-width: 960px;
    }
}

@media (max-width: 1100px) {
    .hero-panel,
    .content-grid,
    .booking-row-card,
    .teachers-workspace,
    .directory-workspace,
    .workshops-workspace,
    .flow-home-grid,
    .site-cms-wysiwyg-shell,
    .site-cms-editor-grid,
    .workshop-section-grid {
        grid-template-columns: 1fr;
    }

    .site-cms-command-panel {
        position: static;
        max-height: none;
    }

    .stats-grid,
    .booking-cards,
    .booking-detail-summary,
    .attention-rule-list,
    .attention-summary-strip,
    .flow-home-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .attention-toolbar,
    .attention-toolbar-controls {
        grid-template-columns: 1fr;
    }

    .page-header-card,
    .surface-panel,
    .stat-panel,
    .table-panel,
    .formula-bar-panel,
    .sheet-panel {
        padding: 1rem;
    }

    .status-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .teacher-detail-head,
    .teacher-list-head,
    .directory-header,
    .directory-list-head,
    .workshop-detail-head,
    .workshop-list-head {
        flex-direction: column;
    }

    .grid-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .grid-toolbar-actions {
        justify-content: flex-start;
    }

    .formula-bar-main {
        align-items: stretch;
        flex-direction: column;
    }

    .formula-input {
        min-width: 0;
        width: 100%;
    }

    .finance-workspace {
        grid-template-columns: 1fr;
    }

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

    .availability-calendar-layout {
        grid-template-columns: 1fr;
    }

    .availability-side-panel {
        position: static;
    }
}

@media (max-width: 700px) {
    .hero-metrics,
    .stats-grid,
    .booking-cards,
    .booking-detail-summary,
    .attention-grid,
    .attention-rule-list,
    .attention-summary-strip,
    .flow-home-stats {
        grid-template-columns: 1fr;
    }

    .attention-rule-list li {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .flow-home-header {
        flex-direction: column;
    }

    .grid-search {
        min-width: 0;
        width: 100%;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hero-panel h1,
    .page-header-card h1 {
        font-size: 2rem;
    }

    .grid-toolbar-copy h2 {
        font-size: 1.5rem;
    }

    .status-card-actions,
    .top-actions {
        width: 100%;
    }

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

    .external-location-address-row {
        grid-template-columns: 1fr;
    }

    .booking-editor-row-primary,
    .booking-editor-row-allowed {
        grid-template-columns: 1fr;
    }

    .booking-editor-title-field,
    .booking-editor-school-field,
    .booking-editor-contact-field,
    .booking-editor-organisation-field,
    .booking-editor-orderer-field {
        grid-column: auto;
        grid-row: auto;
    }

    .booking-editor-weekdays {
        grid-column: auto;
    }

    .availability-row,
    .availability-exception-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .workshop-meta-grid {
        grid-template-columns: 1fr;
    }

    .teacher-field-span-2 {
        grid-column: span 1;
    }
}

/* Backoffice UI refresh */
.page--backoffice,
.page--auth-gate {
    --bp-page-shell-radius: 14px;
    --bp-page-panel-shadow: 0 12px 32px rgba(13, 38, 58, 0.07);
    color: var(--bp-text);
    font-family: "Manrope", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dashboard,
.page-stack {
    gap: 1rem;
    max-width: 1160px;
}

.page--backoffice .dashboard,
.page--backoffice .page-stack {
    max-width: min(1360px, calc(100vw - 2.4rem));
}

.page--backoffice .content-shell {
    max-width: min(1360px, 100%);
    padding-top: 1.1rem;
    padding-bottom: 1.5rem;
}

.bookings-page,
.teachers-page,
.workshops-page,
.directory-page {
    gap: 1rem;
}

.page--backoffice .page-header-card,
.page--backoffice .formula-bar-panel,
.page--backoffice .grid-panel,
.page--backoffice .sheet-panel,
.page--backoffice .route-planner-panel {
    border-color: color-mix(in srgb, var(--bp-accent) 18%, var(--bp-border));
    box-shadow: var(--bp-page-panel-shadow);
}

.page--backoffice .page-header-card {
    border-radius: var(--bp-page-shell-radius);
    border-top: 5px solid var(--bp-accent);
    padding: 1.15rem;
}

.page--backoffice .formula-bar-panel,
.page--backoffice .grid-panel,
.page--backoffice .sheet-panel,
.page--backoffice .route-planner-panel {
    border-radius: calc(var(--bp-page-shell-radius) + 2px);
    padding: 1.15rem;
}

.page--backoffice .hero-panel,
.page--backoffice .surface-panel,
.page--backoffice .stat-panel,
.page--backoffice .table-panel,
.page--backoffice .attention-card,
.page--backoffice .booking-card,
.page--backoffice .booking-row-card,
.page--backoffice .teacher-list-panel,
.page--backoffice .teacher-detail-panel,
.page--backoffice .directory-list-panel,
.page--backoffice .directory-detail-panel,
.page--backoffice .directory-table-panel,
.page--backoffice .workshop-list-panel,
.page--backoffice .workshop-detail-panel,
.page--backoffice .finance-workbook-panel,
.page--backoffice .finance-admin-panel,
.page--backoffice .finance-cell-panel,
.page--backoffice .site-cms-panel-section,
.page--backoffice .site-cms-canvas-panel,
.page--backoffice .site-cms-preview-card {
    border-radius: calc(var(--bp-page-shell-radius) + 2px);
}

.page-stack-wide,
.bookings-page .page-stack {
    max-width: none;
}

.page--backoffice .teacher-field span {
    color: color-mix(in srgb, var(--bp-text) 70%, #fff);
}

.page--backoffice .teacher-input,
.page--backoffice .grid-input,
.page--backoffice .formula-input,
.page--backoffice .grid-select,
.page--backoffice .grid-search,
.page--backoffice .directory-search,
.page--backoffice .formula-bar-panel textarea,
.page--backoffice .formula-bar-panel input {
    border-radius: 11px;
    border-color: color-mix(in srgb, var(--bp-accent) 28%, var(--bp-border));
}

.page--backoffice .toolbar-button,
.page--backoffice .toolbar-button-secondary,
.page--backoffice .toolbar-button-danger,
.page--backoffice .row-reset-button {
    border-radius: 11px;
    min-height: 2.15rem;
}

.page--backoffice .toolbar-button {
    border-color: color-mix(in srgb, #ffffff 30%, var(--bp-accent));
}

.page--backoffice .toolbar-button:hover {
    filter: brightness(1.04);
}

.page--backoffice .section-kicker {
    letter-spacing: 0.09em;
}

.page--backoffice .page-header-card h1 {
    font-size: clamp(1.65rem, 2vw + 1rem, 2.05rem);
    letter-spacing: -0.01em;
}

.page--backoffice .page-header-card .section-kicker {
    margin-bottom: 0.2rem;
}

.page--backoffice .page-intro {
    max-width: 75ch;
}

.page--backoffice .formula-bar-meta {
    column-gap: 0.75rem;
}

.page--backoffice .page .page-header-card > div > .page-intro,
.page--backoffice .page .flow-home-header .page-intro,
.page--backoffice .page .directory-header .page-intro {
    display: block;
}

.page--auth-gate .page-stack,
.page--auth-gate .dashboard {
    width: min(100%, 58rem);
    max-width: 58rem;
    margin-inline: auto;
}

.page--auth-gate .page-header-card,
.page--auth-gate .formula-bar-panel {
    padding: 1rem;
}

.hero-panel,
.surface-panel,
.stat-panel,
.page-header-card,
.table-panel,
.attention-card,
.booking-card,
.booking-row-card,
.teacher-list-panel,
.teacher-detail-panel,
.directory-list-panel,
.directory-detail-panel,
.directory-table-panel,
.workshop-list-panel,
.workshop-detail-panel,
.grid-panel,
.formula-bar-panel,
.sheet-panel,
.route-planner-panel,
    .finance-workbook-panel,
    .finance-admin-panel,
.finance-cell-panel,
.site-cms-panel-section,
.site-cms-canvas-panel,
.site-cms-preview-card {
    border: 1px solid var(--bp-border);
    border-radius: 8px;
    background: var(--bp-surface);
    box-shadow: var(--bp-shadow);
    color: var(--bp-text);
}

.page-header-card,
.surface-panel,
.stat-panel,
.table-panel,
.teacher-list-panel,
.teacher-detail-panel,
.directory-list-panel,
.directory-detail-panel,
.directory-table-panel,
.workshop-list-panel,
.workshop-detail-panel,
.grid-panel,
.formula-bar-panel,
.sheet-panel {
    padding: 1rem;
}

.page-header-card {
    border-top: 4px solid var(--bp-accent);
    background: var(--bp-surface);
}

.attention-header {
    border-top-color: var(--bp-danger);
}

.hero-panel {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.75fr);
    padding: 1rem;
}

.section-kicker,
.stat-label,
.metric-title,
.panel-note,
.teacher-field span,
.workshop-meta-item span,
.workshop-definition-list dt,
.directory-related span,
.directory-related-head span,
.planner-field span,
.route-stop-head small,
.route-ledger-card span,
.route-objective-card span,
.route-exception-grid span,
.finance-cell-panel dt,
.finance-formula-box span,
.finance-domain-table th,
.directory-table th,
.booking-grid th,
.sheet-column-header,
.finance-column-header {
    color: var(--bp-muted);
    font-weight: 800;
    letter-spacing: 0;
}

.section-kicker {
    color: var(--bp-accent-strong);
}

.hero-panel h1,
.page-header-card h1 {
    color: var(--bp-ink);
    font-size: 2rem;
    line-height: 1.08;
}

.panel-header h2,
.table-header h2,
.attention-card h2,
.booking-card h3,
.booking-row-card h3,
.teacher-list-head h2,
.teacher-detail-head h2,
.teacher-empty-state h2,
.directory-list-head h2,
.workshop-list-head h2,
.workshop-detail-head h2,
.grid-toolbar-copy h2,
.route-planner-head h2,
.route-review-head h3,
.route-day-head h4,
.finance-cell-panel h3 {
    color: var(--bp-ink);
}

.hero-text,
.page-intro,
.grid-toolbar-copy p,
.metric-card small,
.stat-footnote,
.timeline-content small,
.booking-summary,
.table-header p,
.flow-link-card span,
.flow-attention-detail,
.workshop-promise,
.workshop-copy,
.workshop-definition-list dd {
    color: var(--bp-muted);
}

.primary-action,
.toolbar-button,
.studio-site .toolbar-button {
    border: 1px solid var(--bp-accent);
    border-radius: 8px;
    background: var(--bp-accent);
    color: var(--bp-ink);
    font-weight: 800;
    text-decoration: none;
}

.primary-action:hover,
.toolbar-button:hover {
    border-color: #49adb1;
    background: #49adb1;
    color: var(--bp-ink);
}

.secondary-action,
.toolbar-button-secondary,
.row-reset-button {
    border: 1px solid var(--bp-border);
    border-radius: 8px;
    background: var(--bp-surface-soft);
    color: var(--bp-text);
    font-weight: 800;
    text-decoration: none;
}

.secondary-action:hover,
.toolbar-button-secondary:hover,
.row-reset-button:hover {
    border-color: rgba(99, 199, 202, 0.58);
    background: rgba(99, 199, 202, 0.12);
    color: var(--bp-ink);
}

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

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

.toolbar-button,
.toolbar-button-secondary,
.row-reset-button,
.teacher-input,
.directory-search,
.grid-search,
.grid-input,
.grid-select,
.formula-input,
.relationship-result,
.planning-weekday-toggle,
.finance-toggle {
    border-radius: 8px;
}

.grid-toolbar-actions {
    flex: 0 1 auto;
}

.teacher-input,
.directory-search,
.grid-search,
.grid-input,
.grid-select,
.formula-input {
    border: 1px solid var(--bp-border-strong);
    background: #ffffff;
    color: var(--bp-text);
}

.teacher-input:focus,
.directory-search:focus,
.grid-search:focus,
.grid-input:focus,
.grid-select:focus,
.formula-input:focus,
.sheet-shell:focus {
    border-color: var(--bp-accent);
    box-shadow: 0 0 0 3px rgba(99, 199, 202, 0.22);
    outline: none;
}

.metric-card,
.workshop-meta-item,
.workshop-content-section,
.directory-related,
.booking-row-metrics > div,
.route-planner-score-strip div,
.route-review-metrics span,
.route-day-meta span,
.route-ledger-card,
.route-objective-card,
.route-exception-grid div,
.workshop-cluster-card,
.workshop-flow-list-panel,
.workshop-flow-card,
.workshop-flow-meta span,
.workshop-flow-contact-grid div,
.finance-admin-grid article,
.finance-status-strip,
.finance-selection-strip {
    border: 1px solid var(--bp-border);
    border-radius: 8px;
    background: var(--bp-surface-soft);
}

.metric-card-warm,
.bulk-toolbar,
.finance-tax-note,
.finance-row-warning td,
.route-warning-list,
.sheet-row-dirty,
.dirty-pill-active {
    border-color: rgba(217, 143, 0, 0.22);
    background: #fff8e6;
    color: #775200;
}

.metric-card-alert,
.route-planner-alert,
.route-exception-panel,
.teacher-sick-audit-missing,
.docent-overview-warnings {
    border-color: rgba(230, 0, 18, 0.2);
    background: rgba(230, 0, 18, 0.07);
    color: #7f1d1d;
}

.metric-card strong,
.stat-row strong,
.finance-metric-card .stat-row strong {
    color: var(--bp-ink);
    font-size: 1.85rem;
}

.teacher-list,
.directory-list,
.workshop-list,
.flow-link-list,
.flow-attention-list,
.stage-list,
.timeline-list,
.booking-table {
    gap: 0.55rem;
}

.teacher-list-item,
.directory-list-item,
.workshop-list-item,
.flow-index-card,
.flow-link-card,
.flow-attention-row,
.route-attention-row,
.finance-rule-list a,
.finance-workbook-tab,
.finance-sheet-tab {
    border: 1px solid var(--bp-border);
    border-radius: 8px;
    background: var(--bp-surface);
    color: var(--bp-text);
    box-shadow: none;
}

.teacher-list-item:hover,
.directory-list-item:hover,
.workshop-list-item:hover,
.flow-index-card:hover,
.flow-link-card:hover,
.flow-attention-row:hover,
.route-attention-row:hover,
.finance-rule-list a:hover,
.finance-workbook-tab:hover,
.finance-sheet-tab:hover {
    border-color: rgba(99, 199, 202, 0.62);
    background: rgba(99, 199, 202, 0.08);
    text-decoration: none;
}

.teacher-list-item-active,
.directory-list-item-active,
.workshop-list-item-active,
.finance-workbook-tab-active,
.finance-sheet-tab-active,
.planner-mode-card-active {
    border-color: rgba(99, 199, 202, 0.72);
    background: rgba(99, 199, 202, 0.14);
    box-shadow: inset 3px 0 0 var(--bp-accent);
}

.workshop-list-item-archived,
.teacher-list-item-inactive,
.directory-list-item-disabled,
.finance-sheet-tab-hidden {
    background: #eef3f5;
    color: #71808d;
    filter: grayscale(1);
    opacity: 0.78;
}

.backoffice-list-item-sortable {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    cursor: grab;
}

.backoffice-list-item-sortable:active {
    cursor: grabbing;
}

.backoffice-list-item-body {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.backoffice-list-drag-handle {
    display: inline-grid;
    place-items: center;
    width: 1.45rem;
    min-height: 1.45rem;
    border: 1px solid var(--bp-border);
    border-radius: 6px;
    background: var(--bp-surface-soft);
    color: var(--bp-muted);
    font-weight: 900;
    line-height: 1;
    user-select: none;
}

.backoffice-list-item-dragging {
    opacity: 0.52;
}

.backoffice-list-item-drop-target {
    border-color: rgba(99, 199, 202, 0.72);
    box-shadow: inset 3px 0 0 var(--bp-accent), inset 0 0 0 1px rgba(99, 199, 202, 0.18);
}

.teacher-employment-pill,
.workshop-sheet-label,
.workshop-chip,
.relationship-chip,
.docent-overview-day-totals span,
.docent-overview-breakdown span,
.finance-sheet-meta span,
.booking-meta span,
.booking-labels span,
.attention-meta span,
.legend-pill,
.flow-attention-area,
.flow-attention-facts span {
    border: 1px solid rgba(99, 199, 202, 0.32);
    border-radius: 999px;
    background: rgba(99, 199, 202, 0.12);
    color: var(--bp-accent-strong);
}

.status-chip,
.stage-chip,
.severity-chip {
    border-radius: 999px;
    font-weight: 800;
}

.status-confirmed,
.stage-live,
.status-completed,
.stage-stable,
.severity-low,
.teacher-sick-audit-ok,
.sick-audit-status-ok {
    border: 1px solid rgba(15, 138, 112, 0.22);
    background: rgba(15, 138, 112, 0.1);
    color: #0f6b56;
}

.status-tentative,
.stage-waiting,
.severity-medium {
    border: 1px solid rgba(217, 143, 0, 0.24);
    background: #fff8e6;
    color: #775200;
}

.stage-risk,
.severity-high,
.sick-audit-status-missing {
    border: 1px solid rgba(230, 0, 18, 0.22);
    background: rgba(230, 0, 18, 0.08);
    color: #a6000d;
}

.severity-critical {
    border: 1px solid #7a1020;
    background: #7a1020;
    color: #fff;
}

.directory-table,
.booking-grid,
.finance-domain-table,
.finance-grid,
.sheet-grid {
    color: var(--bp-text);
}

.directory-table th,
.booking-grid th,
.finance-domain-table th,
.finance-column-header,
.finance-row-header,
.finance-corner,
.sheet-corner,
.sheet-column-header,
.sheet-row-header {
    background: #f3f7f8;
    color: #526170;
}

.directory-table td,
.booking-grid td,
.finance-domain-table td,
.finance-grid-cell,
.sheet-grid-cell {
    background: #ffffff;
}

.directory-table th,
.directory-table td,
.booking-grid th,
.booking-grid td,
.finance-domain-table th,
.finance-domain-table td,
.finance-grid th,
.finance-grid td,
.sheet-grid th,
.sheet-grid td {
    border-color: var(--bp-border);
}

.grid-row-selected td,
.sheet-cell-selected,
.sheet-row-header-selected,
.sheet-column-header-selected,
.sheet-grid-cell.sheet-cell-selected,
.finance-grid-cell-selected {
    background: #dff4f5 !important;
}

.sheet-column-header-active,
.sheet-row-header-active,
.sheet-cell-active,
.sheet-grid-cell.sheet-cell-active.sheet-cell-selected,
.finance-grid-cell-selected,
.sheet-editor {
    box-shadow: inset 0 0 0 2px var(--bp-accent-strong);
    outline-color: var(--bp-accent-strong);
}

.sheet-cell-warning {
    box-shadow: inset 0 0 0 2px var(--bp-danger);
}

.sheet-cell-custom {
    box-shadow: inset 3px 0 0 var(--bp-danger);
}

.sheet-grid-cell.sheet-cell-custom.sheet-cell-active,
.sheet-grid-cell.sheet-cell-custom.sheet-cell-active.sheet-cell-selected {
    box-shadow: inset 3px 0 0 var(--bp-danger), inset 0 0 0 2px var(--bp-accent-strong);
}

.sheet-shell,
.grid-shell,
.finance-grid-shell,
.finance-table-shell,
.site-cms-preview-frame {
    border-color: var(--bp-border);
    border-radius: 8px;
    background: #ffffff;
}

.sheet-toolbar,
.sheet-formula-bar {
    border-radius: 8px;
    border-color: var(--bp-border);
    background: var(--bp-surface);
}

.sheet-tool-button {
    font-size: 1rem;
}

.sheet-column-resizer:hover span,
.sheet-column-resizer:focus-visible span,
.sheet-column-resizing .sheet-column-resizer span,
.sheet-checkbox-fallback-checked::after {
    border-color: var(--bp-accent-strong);
    background: var(--bp-accent-strong);
}

.sheet-dropdown-menu,
.sheet-date-picker,
.availability-year-menu {
    border: 1px solid var(--bp-border-strong);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.sheet-dropdown-option:hover,
.sheet-dropdown-option-active,
.sheet-date-picker-day-selected,
.sheet-row-add-button:hover,
.sheet-row-add-button:focus-visible,
.availability-year-menu-active,
.toolbar-button-active {
    background: rgba(99, 199, 202, 0.18) !important;
    color: var(--bp-ink);
}

.sheet-date-picker-day-selected {
    border-color: var(--bp-accent);
}

.relationship-chip button,
.sheet-row-add-button,
.sheet-cell-dropdown-toggle,
.sheet-dropdown-toggle,
.availability-year-arrow,
.availability-year-value,
.availability-year-menu button {
    border-radius: 8px;
}

.site-cms-area-filter button,
.site-cms-page-tabs button,
.site-cms-category-pills button,
.planning-weekday-toggle,
.finance-toggle {
    border-color: var(--bp-border);
    background: var(--bp-surface);
    color: var(--bp-text);
    font-weight: 800;
}

.site-cms-area-filter .site-cms-area-active,
.site-cms-page-tabs .site-cms-tab-active,
.site-cms-category-pills .site-cms-area-active {
    border-color: var(--bp-accent);
    background: var(--bp-accent);
    color: var(--bp-ink);
}

.site-cms-browser-bar {
    background: #f3f7f8;
}

.site-cms-window-dots span {
    background: var(--bp-danger);
}

.site-cms-window-dots span:nth-child(2) {
    background: #d98f00;
}

.site-cms-window-dots span:nth-child(3) {
    background: #0f8a70;
}

.finance-metric-warning .stat-row strong,
.finance-metric-warning strong,
.finance-row-actions .toolbar-button-danger,
.route-attention-meta strong {
    color: var(--bp-danger-strong);
}

.workshops-top-row .page-header-card,
.workshops-sheet-host .sheet-panel,
.workshops-sheet-host .sheet-shell {
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 1100px) {
    .hero-panel,
    .content-grid,
    .booking-row-card,
    .teachers-workspace,
    .directory-workspace,
    .workshops-workspace,
    .flow-home-grid,
    .site-cms-wysiwyg-shell,
    .site-cms-editor-grid,
    .workshop-section-grid {
        grid-template-columns: 1fr;
    }

    .page-header-card,
    .surface-panel,
    .stat-panel,
    .table-panel,
    .formula-bar-panel,
    .sheet-panel {
        padding: 0.9rem;
    }
}

@media (max-width: 700px) {
    .hero-panel h1,
    .page-header-card h1 {
        font-size: 1.7rem;
    }
}

/* Backoffice high-density pass */
.page {
    --bp-density-gap: 0.55rem;
    --bp-density-radius: 6px;
    --bp-density-pad-x: 0.6rem;
    --bp-density-pad-y: 0.42rem;
}

.page .content-shell {
    padding: 0.42rem 0.5rem 0.8rem;
}

.page .dashboard,
.page .page-stack {
    width: 100%;
    max-width: none;
}

.page .dashboard,
.page .page-stack,
.page .bookings-page,
.page .teachers-page,
.page .workshops-page,
.page .directory-page,
.page .route-planner-page,
.page .finance-page,
.page .workshop-flow-page,
.page .feedback-page {
    gap: var(--bp-density-gap);
}

.page .page-header-card,
.page .surface-panel,
.page .stat-panel,
.page .table-panel,
.page .attention-card,
.page .booking-card,
.page .booking-row-card,
.page .teacher-list-panel,
.page .teacher-detail-panel,
.page .directory-list-panel,
.page .directory-detail-panel,
.page .directory-table-panel,
.page .workshop-list-panel,
.page .workshop-detail-panel,
.page .grid-panel,
.page .formula-bar-panel,
.page .sheet-panel,
.page .route-planner-panel,
.page .finance-workbook-panel,
.page .finance-admin-panel,
.page .finance-cell-panel,
.page .calendar-status-panel,
.page .planning-calendar-edit-panel,
.page .planning-calendar-context-card,
.page .planning-tree-panel,
.page .planning-capacity-panel,
.page .planning-map-panel,
.page .feedback-card {
    border-radius: 6px;
    box-shadow: none;
    padding: 0.42rem 0.52rem;
}

.page .page-header-card {
    border-top-width: 2px;
}

.page .page-header-card > div > .page-intro,
.page .flow-home-header .page-intro,
.page .directory-header .page-intro {
    display: none;
}

.page .directory-header,
.page .teacher-detail-head,
.page .teacher-list-head,
.page .directory-list-head,
.page .workshop-list-head,
.page .workshop-detail-head,
.page .panel-header,
.page .table-header,
.page .route-planner-head,
.page .route-review-head,
.page .route-day-head,
.page .booking-card-top,
.page .booking-row-head,
.page .attention-card-head,
.page .planning-calendar-head {
    gap: 0.55rem;
}

.page .section-kicker {
    margin-bottom: 0.12rem;
    font-size: 0.64rem;
    line-height: 1.1;
}

.page .page-header-card h1 {
    font-size: 1.22rem;
    line-height: 1.08;
}

.page .hero-panel h1 {
    font-size: 1.65rem;
}

.page .panel-header h2,
.page .table-header h2,
.page .attention-card h2,
.page .booking-card h3,
.page .booking-row-card h3,
.page .teacher-list-head h2,
.page .teacher-detail-head h2,
.page .directory-list-head h2,
.page .workshop-list-head h2,
.page .workshop-detail-head h2,
.page .grid-toolbar-copy h2,
.page .route-planner-head h2,
.page .route-review-head h3,
.page .route-day-head h4,
.page .calendar-status-panel h2,
.page .planning-calendar-head h2 {
    font-size: 1rem;
    line-height: 1.15;
}

.page .page-intro,
.page .hero-text,
.page .grid-toolbar-copy p,
.page .booking-summary,
.page .table-header p,
.page .attention-card p,
.page .workshop-copy,
.page .workshop-promise,
.page .calendar-status-panel p,
.page .planning-calendar-context-card p,
.page .feedback-card header p {
    margin-top: 0.22rem;
    max-width: 90ch;
    font-size: 0.82rem;
    line-height: 1.32;
}

.page .attention-issue-list {
    gap: 0.25rem;
    margin-top: 0.22rem;
    font-size: 0.82rem;
    line-height: 1.32;
}

.page .stats-grid,
.page .flow-home-stats,
.page .attention-summary-strip,
.page .calendar-status-strip,
.page .booking-detail-summary,
.page .finance-metrics-grid,
.page .settings-schoolyear-grid {
    gap: 0.35rem;
}

.page .stat-panel,
.page .metric-card,
.page .finance-metric-card {
    min-height: 0;
}

.page .metric-card strong,
.page .stat-row strong,
.page .finance-metric-card .stat-row strong,
.page .calendar-status-panel h2 {
    margin-top: 0.08rem;
    font-size: 1.05rem;
}

.page .metric-card small,
.page .stat-footnote,
.page .booking-summary,
.page .timeline-content small {
    margin-top: 0.18rem;
}

.page .toolbar-button,
.page .toolbar-button-secondary,
.page .row-reset-button,
.page .primary-action,
.page .secondary-action {
    min-height: 1.72rem;
    padding: 0.24rem 0.42rem;
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.15;
}

.page .toolbar-button-compact {
    min-height: 1.45rem;
    padding: 0.16rem 0.34rem;
}

.page .teacher-input,
.page .directory-search,
.page .grid-search,
.page .grid-input,
.page .grid-select,
.page .formula-input,
.page .finance-toggle,
.page .planning-weekday-toggle {
    min-height: 1.74rem;
    padding: 0.24rem 0.4rem;
    border-radius: 6px;
    font-size: 0.84rem;
}

.page .directory-search,
.page .grid-search {
    margin-top: 0.25rem;
}

.page .teacher-field,
.page .planner-field {
    gap: 0.22rem;
}

.page .teacher-field span,
.page .planner-field span,
.page .metric-card span,
.page .stat-label,
.page .panel-note,
.page .workshop-meta-item span,
.page .finance-cell-panel dt {
    font-size: 0.66rem;
}

.page .booking-embedded-sheet .booking-product-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.45rem;
    max-width: 34rem;
    margin: 0;
}

.page .booking-embedded-sheet .booking-product-head-inline {
    align-items: end;
}

.page .booking-embedded-sheet .booking-product-title {
    flex: 0 1 auto;
    min-width: 9rem;
}

.page .booking-embedded-sheet .booking-product-inline-controls {
    display: flex;
    flex: 1 1 50rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: end;
    gap: 0.45rem;
    min-width: 0;
}

.page .booking-embedded-sheet .booking-product-inline-controls .booking-workshop-sheet-actions {
    flex: 0 0 auto;
}

.page .booking-embedded-sheet .booking-product-title-action {
    display: grid;
    flex: 0 1 18rem;
    gap: 0.2rem;
    min-width: 13rem;
}

.page .booking-embedded-sheet .booking-product-field {
    display: grid;
    flex: 0 0 auto;
    gap: 0.2rem;
    min-width: 0;
}

.page .booking-embedded-sheet .booking-product-field-product {
    flex-basis: 9.75rem;
    width: 9.75rem;
}

.page .booking-embedded-sheet .booking-product-field-money {
    flex-basis: 6.35rem;
    width: 6.35rem;
}

.page .booking-embedded-sheet .booking-product-field-billing {
    flex-basis: 7.75rem;
    width: 7.75rem;
}

.page .booking-embedded-sheet .booking-money-input {
    position: relative;
    display: block;
    width: 100%;
}

.page .booking-embedded-sheet .booking-money-input .teacher-input {
    width: 100%;
    padding-left: 1.45rem;
}

.page .booking-embedded-sheet .booking-product-price-overridden {
    border-color: #f2c94c;
    box-shadow: 0 0 0 2px rgba(242, 201, 76, 0.22);
}

.page .booking-embedded-sheet .booking-money-prefix {
    position: absolute;
    left: 0.48rem;
    top: 50%;
    z-index: 1;
    display: inline-block;
    transform: translateY(-50%);
    color: #536872;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    pointer-events: none;
}

.page .directory-workspace,
.page .workshops-workspace {
    grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
    gap: 0.65rem;
}

.page .teacher-list,
.page .directory-list,
.page .workshop-list,
.page .flow-link-list,
.page .flow-attention-list,
.page .stage-list,
.page .timeline-list,
.page .booking-cards,
.page .booking-table,
.page .calendar-row-list,
.page .calendar-log-list,
.page .calendar-audit-list,
.page .feedback-list {
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.page .directory-list,
.page .workshop-list {
    align-content: start;
    max-height: calc(100vh - 8.4rem);
}

.page .teacher-list-item,
.page .directory-list-item,
.page .workshop-list-item,
.page .flow-index-card,
.page .flow-link-card,
.page .flow-attention-row,
.page .route-attention-row,
.page .booking-card,
.page .attention-card,
.page .booking-row-card,
.page .workshop-planning-card,
.page .workshop-timeline-item,
.page .calendar-row,
.page .calendar-audit-row,
.page .calendar-log-row,
.page .workshop-material-row,
.page .workshop-material-add {
    gap: 0.18rem;
    border-radius: 6px;
    padding: 0.42rem 0.55rem;
}

.page .teacher-list-item strong,
.page .directory-list-item strong,
.page .workshop-list-item strong,
.page .booking-card h3,
.page .booking-row-card h3,
.page .attention-card h2 {
    font-size: 0.9rem;
}

.page .teacher-list-item span,
.page .teacher-list-item small,
.page .directory-list-item span,
.page .directory-list-item small,
.page .workshop-list-item span,
.page .workshop-list-item small,
.page .booking-card small,
.page .attention-card small,
.page .booking-reference,
.page .calendar-row-main p,
.page .calendar-row-main small,
.page .calendar-row-meta small {
    font-size: 0.76rem;
    line-height: 1.22;
}

.page .booking-meta,
.page .booking-labels,
.page .attention-meta,
.page .workshop-chip-group,
.page .route-planner-score-strip,
.page .route-review-metrics,
.page .route-day-meta,
.page .finance-sheet-meta,
.page .finance-status-strip,
.page .workshop-flow-meta,
.page .workshop-flow-contact-grid {
    gap: 0.28rem;
}

.page .teacher-employment-pill,
.page .workshop-sheet-label,
.page .workshop-chip,
.page .relationship-chip,
.page .booking-meta span,
.page .booking-labels span,
.page .attention-meta span,
.page .legend-pill,
.page .flow-attention-area,
.page .flow-attention-facts span,
.page .calendar-state-pill,
.page .finance-sheet-meta span,
.page .finance-status-strip span,
.page .docent-overview-day-totals span,
.page .docent-overview-breakdown span {
    min-height: 1.35rem;
    padding: 0.14rem 0.38rem;
    font-size: 0.68rem;
    line-height: 1.15;
}

.page .directory-table,
.page .booking-grid,
.page .finance-domain-table,
.page .materials-table,
.page .docent-overview-table,
.page .analytics-table {
    font-size: 0.78rem;
    line-height: 1.22;
}

.page .directory-table th,
.page .directory-table td,
.page .booking-grid th,
.page .booking-grid td,
.page .finance-domain-table th,
.page .finance-domain-table td,
.page .materials-table th,
.page .materials-table td {
    max-width: 18rem;
    padding: 0.22rem 0.34rem;
}

.page .directory-table tbody tr:nth-child(even) td,
.page .booking-grid tbody tr:nth-child(even) td,
.page .finance-domain-table tbody tr:nth-child(even) td,
.page .materials-table tbody tr:nth-child(even) td {
    background: #f8fbfc;
}

.page .docent-overview-table .docent-overview-travel-row td {
    padding: 0.42rem 0.52rem;
    border-top: 2px solid #b9d8cf;
    border-bottom: 2px solid #b9d8cf;
    background: #eef8f4;
}

.docent-overview-travel-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.38rem 0.7rem;
    color: #244a5a;
}

.docent-overview-travel-label {
    padding: 0.12rem 0.42rem;
    border: 1px solid #98c9bc;
    border-radius: 999px;
    background: #ffffff;
    color: #0f5d55;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.docent-overview-travel-line strong {
    color: #13202a;
    font-size: 0.86rem;
}

.docent-overview-travel-route {
    color: #536976;
    overflow-wrap: anywhere;
}

.page .grid-toolbar,
.page .bulk-toolbar,
.page .attention-toolbar,
.page .finance-toolbar,
.page .calendar-audit-controls,
.page .settings-schoolyear-panel,
.page .settings-schoolyear-controls,
.page .route-planner-controls,
.page .route-planner-ledger,
.page .route-ledger-grid,
.page .route-objective-grid,
.page .route-exception-grid,
.page .workshop-flow-toolbar,
.page .workshop-flow-bulk-toolbar,
.page .planning-calendar-controls {
    gap: 0.45rem;
}

.page .grid-toolbar,
.page .bulk-toolbar,
.page .attention-toolbar,
.page .calendar-audit-controls {
    padding: 0.34rem 0.44rem;
    border-radius: 6px;
}

.page .attention-active-filters {
    gap: 0.25rem;
}

.page .attention-filter-chip {
    min-height: 1.35rem;
    padding: 0.12rem 0.42rem;
    font-size: 0.68rem;
}

.page .workshop-flow-bulk-toolbar {
    display: grid;
    grid-template-columns: 2.25rem minmax(14rem, 1.45fr) minmax(12rem, 1.05fr) minmax(10rem, 0.9fr) minmax(11rem, 1fr) minmax(11.5rem, auto) minmax(7rem, 0.65fr);
    align-items: center;
    column-gap: 0.38rem;
    overflow-x: auto;
}

.page .workshop-flow-bulk-toolbar .bulk-toolbar-copy {
    grid-column: 1 / 5;
    min-width: 0;
}

.page .workshop-flow-bulk-selection-tools {
    grid-column: 5 / 6;
    display: inline-flex;
    gap: 0.25rem;
    justify-content: flex-end;
    min-width: 0;
    white-space: nowrap;
}

.page .workshop-flow-bulk-toolbar .bulk-toolbar-actions {
    grid-column: 6 / 7;
    display: inline-flex;
    justify-content: flex-start;
    min-width: 11.5rem;
    white-space: nowrap;
}

.page .workshop-flow-results-bulk-toolbar {
    grid-template-columns: 1.9rem minmax(24rem, 1fr) minmax(7.4rem, auto) max-content max-content;
    column-gap: 0.55rem;
}

.page .workshop-flow-results-bulk-toolbar .bulk-toolbar-copy {
    grid-column: 2 / 3;
}

.page .workshop-flow-results-bulk-toolbar .workshop-flow-bulk-selection-tools {
    grid-column: 3 / 4;
}

.page .workshop-flow-results-bulk-toolbar .bulk-toolbar-actions {
    grid-column: 4 / 5;
    min-width: 0;
}

@media (max-width: 820px) {
    .page .workshop-flow-results-bulk-toolbar {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .page .workshop-flow-results-bulk-toolbar .bulk-toolbar-copy,
    .page .workshop-flow-results-bulk-toolbar .workshop-flow-bulk-selection-tools,
    .page .workshop-flow-results-bulk-toolbar .bulk-toolbar-actions {
        grid-column: 1 / -1;
    }
}

.page .route-planner-score-strip div,
.page .route-review-metrics span,
.page .route-day-meta span,
.page .route-ledger-card,
.page .route-objective-card,
.page .route-exception-grid div,
.page .workshop-flow-contact-grid div,
.page .workshop-flow-meta span,
.page .booking-row-metrics > div,
.page .finance-selection-strip,
.page .finance-status-strip {
    min-width: 0;
    padding: 0.28rem 0.4rem;
    border-radius: 6px;
    font-size: 0.76rem;
}

.page .route-day-grid,
.page .route-stop-list,
.page .route-plan-items,
.page .workshop-cluster-grid,
.page .workshop-flow-list {
    gap: 0.45rem;
}

.page .route-day-card,
.page .route-stop,
.page .workshop-cluster-card,
.page .workshop-flow-card {
    padding: 0.38rem;
    border-radius: 6px;
}

.workshop-flow-page-planning {
    gap: 0.65rem;
}

.workshop-flow-page-planning .page-header-card,
.workshop-flow-page-planning .route-planner-panel {
    padding: 0.65rem 0.75rem;
}

.workshop-flow-page-planning .flow-home-stats {
    gap: 0.45rem;
}

.workshop-flow-page-planning .workshop-flow-toolbar {
    gap: 0.5rem;
}

.workshop-flow-page-planning .route-planner-panel,
.workshop-flow-page-planning .route-day-grid,
.workshop-flow-page-planning .route-stop-list,
.workshop-flow-page-planning .route-plan-items,
.workshop-flow-page-planning .workshop-flow-list {
    gap: 0.45rem;
}

.workshop-flow-page-planning .route-planner-head {
    gap: 0.65rem;
}

.workshop-flow-page-planning .route-planner-score-strip {
    gap: 0.4rem;
}

.workshop-flow-page-planning .route-planner-score-strip div {
    min-width: 5.4rem;
    padding: 0.32rem 0.45rem;
}

.workshop-flow-page-planning .route-planner-score-strip strong {
    font-size: 1rem;
}

.solver-progress {
    display: grid;
    gap: 0.35rem;
    color: #334155;
    font-size: 0.88rem;
}

.solver-progress-track {
    position: relative;
    overflow: hidden;
    height: 0.42rem;
    border-radius: 999px;
    background: #d7dee8;
}

.solver-progress-bar {
    position: absolute;
    inset-block: 0;
    left: -35%;
    width: 35%;
    border-radius: inherit;
    background: #0f766e;
    animation: solver-progress-sweep 1.35s ease-in-out infinite;
}

@keyframes solver-progress-sweep {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(390%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .solver-progress-bar {
        animation: none;
        left: 0;
        width: 100%;
    }
}

.workshop-flow-page-planning .route-objective-grid,
.workshop-flow-page-planning .route-day-grid {
    grid-template-columns: minmax(0, 1fr);
}

.workshop-flow-page-planning .route-day-card,
.workshop-flow-page-planning .route-stop {
    padding: 0.5rem 0.55rem;
    border-radius: 8px;
}

.workshop-flow-page-planning .route-day-card {
    gap: 0.45rem;
}

.workshop-flow-page-planning .route-day-head,
.workshop-flow-page-planning .route-stop-head {
    gap: 0.55rem;
}

.workshop-flow-page-planning .route-day-meta {
    gap: 0.3rem;
}

.workshop-flow-page-planning .route-day-meta span {
    padding: 0.24rem 0.38rem;
    min-width: 0;
}

.workshop-flow-page-planning .route-plan-item,
.page .workshop-flow-page-planning .route-plan-item {
    grid-template-columns: 7rem minmax(0, 1fr);
    column-gap: 0.65rem;
    padding: 0.38rem 0;
}

@media (max-width: 760px) {
    .workshop-flow-page-planning .route-plan-item,
    .page .workshop-flow-page-planning .route-plan-item {
        grid-template-columns: 1fr;
    }

    .workshop-flow-page-planning .route-plan-item time,
    .page .workshop-flow-page-planning .route-plan-item time {
        grid-row: auto;
    }
}

.workshop-flow-page-planning .workshop-flow-list {
    gap: 0;
}

.workshop-flow-page-planning .workshop-flow-card {
    min-height: 0;
    padding: 0;
}

.workshop-flow-page-planning .workshop-flow-card-body {
    display: block;
    gap: 0;
}

.workshop-flow-page-planning .workshop-flow-planning-row {
    color: #253642;
}

.workshop-flow-page-planning .workshop-flow-sheet-list {
    display: block;
    overflow-x: auto;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 6px;
    background: #fff;
}

.workshop-flow-page-planning .workshop-flow-sheet-list .workshop-flow-card {
    border: 0;
    border-radius: 0;
    background: #fff;
}

.workshop-flow-page-planning .workshop-flow-sheet-list .workshop-flow-card + .workshop-flow-card .workshop-flow-sheet-cell {
    border-top: 1px solid rgba(36, 74, 90, 0.08);
}

.workshop-flow-page-planning .workshop-flow-sheet-row {
    display: grid;
    grid-template-columns:
        4.7rem 3.2rem minmax(7.2rem, 1.05fr) minmax(9rem, 1.1fr) 4rem 2.8rem
        minmax(8rem, 1fr) minmax(7rem, 0.9fr) minmax(5.9rem, 0.75fr) minmax(5.9rem, 0.75fr)
        minmax(5rem, 0.65fr) 8.3rem;
    min-width: 0;
    width: max(100%, 80rem);
}

.workshop-flow-page-planning .workshop-flow-sheet-head {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f5efe4;
}

.workshop-flow-page-planning .workshop-flow-sheet-cell {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 1.45rem;
    padding: 0 0.38rem;
    border-right: 1px solid rgba(36, 74, 90, 0.08);
    overflow: hidden;
    color: inherit;
    font-size: 0.72rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workshop-flow-page-planning .workshop-flow-sheet-head .workshop-flow-sheet-cell {
    min-height: 1.5rem;
    color: #746d61;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.workshop-flow-page-planning .workshop-flow-sheet-row:hover .workshop-flow-sheet-cell {
    background: rgba(237, 245, 246, 0.78);
}

.workshop-flow-page-planning .workshop-flow-planning-id {
    color: var(--bp-accent-strong);
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.workshop-flow-page-planning .workshop-flow-planning-title {
    color: #1c2733;
    font-size: 0.76rem;
    font-weight: 900;
}

.workshop-flow-page-planning .workshop-flow-sheet-links {
    gap: 0.35rem;
}

.workshop-flow-page-planning .workshop-flow-sheet-links a {
    overflow: hidden;
    text-overflow: ellipsis;
}

.workshop-flow-page-planning .workshop-flow-backlog-grid-host {
    overflow: auto;
    border: 1px solid rgba(36, 74, 90, 0.14);
    border-radius: 6px;
    background: #fff;
}

.workshop-flow-page-planning .workshop-flow-backlog-grid {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.workshop-flow-page-planning .workshop-flow-backlog-col-status {
    width: 4.4rem;
}

.workshop-flow-page-planning .workshop-flow-backlog-col-title {
    width: 8.6rem;
}

.workshop-flow-page-planning .workshop-flow-backlog-col-school {
    width: 9.6rem;
}

.workshop-flow-page-planning .workshop-flow-backlog-col-type {
    width: 3.4rem;
}

.workshop-flow-page-planning .workshop-flow-backlog-col-category {
    width: 5.6rem;
}

.workshop-flow-page-planning .workshop-flow-backlog-col-subject {
    width: 8.4rem;
}

.workshop-flow-page-planning .workshop-flow-backlog-col-audience {
    width: 5.2rem;
}

.workshop-flow-page-planning .workshop-flow-backlog-col-class {
    width: 3.7rem;
}

.workshop-flow-page-planning .workshop-flow-backlog-col-students {
    width: 2.6rem;
}

.workshop-flow-page-planning .workshop-flow-backlog-col-docent {
    width: 7.6rem;
}

.workshop-flow-page-planning .workshop-flow-backlog-col-day {
    width: 2.6rem;
}

.workshop-flow-page-planning .workshop-flow-backlog-col-date {
    width: 7.1rem;
}

.workshop-flow-page-planning .workshop-flow-backlog-col-time {
    width: 4.2rem;
}

.workshop-flow-page-planning .workshop-flow-backlog-col-duration {
    width: 4.4rem;
}

.workshop-flow-page-planning .workshop-flow-backlog-grid th,
.workshop-flow-page-planning .workshop-flow-backlog-grid td {
    min-width: 0;
    border-right: 1px solid rgba(36, 74, 90, 0.08);
    border-bottom: 1px solid rgba(36, 74, 90, 0.08);
}

.workshop-flow-page-planning .workshop-flow-backlog-grid th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.34rem 0.42rem;
    background: #f5efe4;
    color: #746d61;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.workshop-flow-page-planning .workshop-flow-backlog-grid td {
    position: relative;
    height: 2rem;
    padding: 0;
    background: #fff;
}

.workshop-flow-page-planning .workshop-flow-backlog-grid tr:hover td {
    background: rgba(237, 245, 246, 0.78);
}

.workshop-flow-page-planning .workshop-flow-backlog-grid tr:hover .workshop-flow-backlog-cell-readonly,
.workshop-flow-page-planning .workshop-flow-backlog-grid tr:hover .workshop-flow-backlog-cell-readonly-edit,
.workshop-flow-page-planning .workshop-flow-backlog-grid tr:hover .workshop-flow-backlog-cell-readonly-edit .workshop-flow-backlog-input,
.workshop-flow-page-planning .workshop-flow-backlog-grid tr:hover .workshop-flow-backlog-input:disabled {
    background: #dfe5ea;
}

.workshop-flow-page-planning .workshop-flow-backlog-row-fixed td,
.workshop-flow-page-planning .workshop-flow-backlog-row-fixed:hover td {
    background: #e7f6ea;
}

.workshop-flow-page-planning .workshop-flow-backlog-cell-readonly {
    padding: 0.42rem;
    background: #e2e7eb;
    color: #253642;
    font-size: 0.72rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workshop-flow-page-planning .workshop-flow-backlog-title-link {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workshop-flow-page-planning .workshop-flow-backlog-title-link:hover,
.workshop-flow-page-planning .workshop-flow-backlog-title-link:focus-visible {
    color: #244a5a;
    text-decoration: underline;
}

.workshop-flow-page-planning .workshop-flow-backlog-input {
    width: 100%;
    height: 100%;
    min-height: 2rem;
    border: 0;
    border-radius: 0;
    padding: 0 0.42rem;
    background: transparent;
    color: #1c2733;
    font: inherit;
    font-size: 0.72rem;
    outline: none;
}

.workshop-flow-page-planning select.workshop-flow-backlog-input {
    padding-right: 1rem;
}

.workshop-flow-page-planning .workshop-flow-backlog-input:disabled {
    background: #e2e7eb;
    color: #4f5d68;
    cursor: default;
}

.workshop-flow-page-planning .workshop-flow-backlog-input-readonly {
    cursor: default;
}

.workshop-flow-page-planning input[type="date"].workshop-flow-backlog-date-empty:not(:focus) {
    color: transparent;
}

.workshop-flow-page-planning input[type="date"].workshop-flow-backlog-date-empty:not(:focus)::-webkit-datetime-edit,
.workshop-flow-page-planning input[type="date"].workshop-flow-backlog-date-empty:not(:focus)::-webkit-datetime-edit-fields-wrapper,
.workshop-flow-page-planning input[type="date"].workshop-flow-backlog-date-empty:not(:focus)::-webkit-datetime-edit-text,
.workshop-flow-page-planning input[type="date"].workshop-flow-backlog-date-empty:not(:focus)::-webkit-datetime-edit-day-field,
.workshop-flow-page-planning input[type="date"].workshop-flow-backlog-date-empty:not(:focus)::-webkit-datetime-edit-month-field,
.workshop-flow-page-planning input[type="date"].workshop-flow-backlog-date-empty:not(:focus)::-webkit-datetime-edit-year-field {
    color: transparent;
}

.workshop-flow-page-planning input[type="date"].workshop-flow-backlog-date-empty::-webkit-calendar-picker-indicator {
    opacity: 1;
}

.workshop-flow-page-planning .workshop-flow-backlog-row-fixed .workshop-flow-backlog-cell-readonly,
.workshop-flow-page-planning .workshop-flow-backlog-row-fixed .workshop-flow-backlog-input:disabled {
    background: #e7f6ea;
    color: #215a36;
    font-weight: 800;
}

.workshop-flow-page-planning .workshop-flow-backlog-cell-fixed {
    box-shadow: inset 0 0 0 999px rgba(34, 126, 66, 0.04);
}

.workshop-flow-page-planning .workshop-flow-backlog-cell-locked {
    background: #f3f4f6;
}

.workshop-flow-page-planning .workshop-flow-backlog-cell-readonly-edit {
    background: #dfe5ea;
}

.workshop-flow-page-planning .workshop-flow-backlog-cell-readonly-edit .workshop-flow-backlog-input {
    background: #dfe5ea;
    color: #4f5d68;
}

.workshop-flow-page-planning .workshop-flow-backlog-cell-manual {
    box-shadow: inset 0 0 0 2px #f4c542;
}

.workshop-flow-page-planning .workshop-flow-backlog-cell-proposed {
    box-shadow: inset 0 0 0 2px #7c3aed;
}

.workshop-flow-page-planning .workshop-flow-backlog-cell-forbidden {
    outline: 2px solid #dc2626;
    outline-offset: -2px;
}

.workshop-flow-page-planning .workshop-flow-backlog-cell-forbidden .workshop-flow-backlog-input {
    color: #991b1b;
}

.workshop-flow-page-planning .workshop-flow-card-main {
    gap: 0.35rem;
    align-items: flex-start;
}

.workshop-flow-page-planning .workshop-flow-card-title {
    min-width: 0;
    flex: 1 1 auto;
    gap: 0.04rem;
}

.workshop-flow-page-planning .workshop-flow-card h3 {
    font-size: 0.88rem;
    line-height: 1.08;
}

.workshop-flow-page-planning .workshop-flow-summary {
    gap: 0.1rem 0.38rem;
    font-size: 0.75rem;
    line-height: 1.08;
}

.workshop-flow-page-planning .workshop-flow-meta,
.workshop-flow-page-planning .workshop-flow-contact-grid,
.workshop-flow-page-planning .workshop-flow-actions,
.workshop-flow-page-planning .workshop-flow-card-links {
    gap: 0.22rem;
}

.workshop-flow-page-planning .workshop-flow-meta-planning {
    justify-content: flex-end;
    align-self: start;
    max-width: 30rem;
}

.workshop-flow-page-planning .workshop-flow-meta span,
.workshop-flow-page-planning .workshop-flow-contact-grid div {
    min-width: 0;
    padding: 0.2rem 0.32rem;
    border-radius: 6px;
    font-size: 0.72rem;
}

.workshop-flow-page-planning .workshop-flow-contact-grid div {
    gap: 0.08rem;
}

.workshop-flow-page-planning .workshop-flow-contact-grid span {
    font-size: 0.64rem;
    line-height: 1.05;
}

.workshop-flow-page-planning .workshop-flow-contact-grid strong {
    font-size: 0.79rem;
    line-height: 1.15;
}

.workshop-flow-page-planning .workshop-flow-actions .teacher-input {
    min-height: 1.95rem;
    padding: 0.32rem 0.5rem;
}

.workshop-flow-page-planning .workshop-flow-actions .toolbar-button {
    min-height: 1.95rem;
    padding: 0.28rem 0.5rem;
}

.workshop-flow-page-planning .workshop-flow-card-links {
    font-size: 0.73rem;
}

.workshop-flow-page-planning .section-kicker {
    margin-bottom: 0.05rem;
}

.page .workshop-flow-list-panel {
    padding: 0.42rem 0.52rem;
}

.page .workshop-flow-list-panel .teacher-detail-head {
    margin-bottom: 0.28rem;
}

.page .workshop-flow-list-panel .teacher-detail-head h2 {
    font-size: 0.94rem;
}

.page .workshop-flow-table-wrap {
    overflow-x: auto;
    border: 1px solid #d7e5e9;
    border-radius: 6px;
    background: #ffffff;
}

.page .workshop-flow-table {
    width: 100%;
    min-width: 58rem;
    border-collapse: collapse;
    font-size: 0.76rem;
    line-height: 1.2;
}

.page .workshop-flow-select-col {
    width: 2.25rem;
}

.page .workshop-flow-workshop-col {
    width: 25%;
}

.page .workshop-flow-planning-col {
    width: 19%;
}

.page .workshop-flow-contact-col {
    width: 18%;
}

.page .workshop-flow-note-col {
    width: 20%;
}

.page .workshop-flow-actions-col {
    width: 16%;
}

.page .workshop-flow-table th,
.page .workshop-flow-table td {
    padding: 0.3rem 0.38rem;
    border-bottom: 1px solid #e4edf0;
    text-align: left;
    vertical-align: top;
}

.page .workshop-flow-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f4fafb;
    color: #566574;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.page .workshop-flow-table tbody tr:nth-child(even) td {
    background: #f8fbfc;
}

.page .workshop-flow-table tbody tr {
    cursor: pointer;
    user-select: none;
}

.page .workshop-flow-table tbody tr:hover td,
.page .workshop-flow-row-selected td {
    background: rgba(99, 199, 202, 0.14);
}

.page .workshop-flow-section-row td {
    border-top: 1px solid #d7e5e9;
    background: #eef7f8;
    cursor: default;
}

.page .workshop-flow-section-empty td {
    background: #fbfdfd;
    color: #60717b;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: default;
}

.page .workshop-flow-section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.28rem 0.65rem;
}

.page .workshop-flow-section-heading strong {
    color: #1d2733;
    font-size: 0.84rem;
}

.page .workshop-flow-section-heading span,
.page .workshop-flow-section-heading small {
    color: #60717b;
    font-size: 0.72rem;
    font-weight: 800;
}

.page .workshop-flow-subsection-row td {
    border-bottom-color: #dbe8eb;
    background: #f7fbfb;
    cursor: default;
}

.page .workshop-flow-subsection-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
}

.page .workshop-flow-subsection-heading strong {
    color: #244a5a;
    font-size: 0.75rem;
}

.page .workshop-flow-subsection-heading span {
    display: inline-flex;
    width: fit-content;
    border: 1px solid rgba(36, 74, 90, 0.12);
    border-radius: 999px;
    background: rgba(36, 74, 90, 0.055);
    color: #60717b;
    padding: 0.08rem 0.36rem;
    font-size: 0.66rem;
    font-weight: 900;
}

.page .workshop-flow-table td strong,
.page .workshop-flow-table td span,
.page .workshop-flow-table td small {
    display: block;
}

.page .workshop-flow-table td strong {
    color: #0f172a;
    font-size: 0.78rem;
}

.page .workshop-flow-table-title-link {
    color: inherit;
    text-decoration: none;
}

.page .workshop-flow-table-title-link:hover,
.page .workshop-flow-table-title-link:focus-visible {
    color: #244a5a;
    text-decoration: underline;
}

.page .workshop-flow-table td span,
.page .workshop-flow-table td small {
    color: #566574;
    font-size: 0.7rem;
}

.page .workshop-flow-select-cell {
    width: 2rem;
    text-align: center;
}

.page .workshop-flow-select-cell,
.page .workshop-flow-note-cell,
.page .workshop-flow-confirmation-actions,
.page .workshop-flow-links-cell {
    cursor: default;
}

.page .workshop-flow-workshop-cell {
    min-width: 14rem;
}

.page .workshop-flow-note-cell {
    min-width: 11rem;
}

.page .workshop-flow-note-cell .teacher-input {
    width: 100%;
    min-height: 1.55rem;
    user-select: text;
}

.page .workshop-flow-contact-markers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.22rem;
    margin-top: 0.3rem;
}

.page .workshop-flow-table .workshop-flow-contact-markers span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 1.3rem;
    border: 1px solid rgba(196, 91, 29, 0.22);
    border-radius: 999px;
    background: rgba(196, 91, 29, 0.08);
    color: #8d431d;
    padding: 0.12rem 0.42rem;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.1;
}

.page .workshop-flow-confirmation-actions {
    min-width: 11.5rem;
    white-space: nowrap;
}

.page .workshop-flow-confirmation-actions .toolbar-button {
    margin-right: 0.2rem;
}

.page .workshop-flow-links-cell {
    min-width: 7rem;
}

.page .workshop-flow-links-cell .text-link {
    display: inline-block;
    margin-right: 0.28rem;
    font-size: 0.72rem;
    font-weight: 800;
}

.page .workshops-sheet-page {
    grid-auto-rows: initial;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
    gap: 0.35rem;
    overflow: hidden;
    padding: 0.35rem 0.45rem 0;
}

.page .workshops-view-host {
    min-height: 0;
    overflow: hidden;
}

.page .workshops-view-host-calendar {
    overflow: hidden;
}

.page .workshops-top-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0.35rem;
}

.page .workshops-top-row .page-header-card {
    align-self: start;
    min-height: 0;
    border-radius: 6px;
}

.page .workshops-header-actions {
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.page .workshop-view-tabs {
    gap: 0.12rem;
    min-height: 1.7rem;
    padding: 0.12rem;
    border-radius: 6px;
}

.page .workshop-view-tab {
    min-height: 1.42rem;
    padding: 0.18rem 0.38rem;
    border-radius: 5px;
    font-size: 0.72rem;
    line-height: 1;
}

.page .status-card h2,
.page .page-header-card.status-card h2,
.page .workshops-sheet-page .page-header-card.status-card h2,
.page .workshops-sheet-page .page-header-card h2 {
    margin: 0 !important;
    font-size: 0.96rem !important;
    line-height: 1.12 !important;
}

.page .status-card-actions {
    gap: 0.3rem;
}

.page .route-plan-item {
    grid-template-columns: 4.8rem minmax(0, 1fr);
    gap: 0.4rem;
    padding: 0.34rem 0.42rem;
}

.page .calendar-status-strip,
.page .calendar-audit-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page .calendar-row {
    grid-template-columns: auto minmax(0, 1fr) minmax(9rem, 14rem);
    gap: 0.55rem;
}

.page .calendar-row-check {
    min-height: 1.7rem;
}

.page .calendar-audit-row {
    gap: 0.45rem;
}

.page .calendar-audit-row-grid {
    gap: 0.45rem;
}

.page .calendar-audit-row-grid > div {
    gap: 0.2rem;
    padding: 0.45rem;
    border-radius: 6px;
}

.page .calendar-log-row {
    grid-template-columns: minmax(4rem, 6rem) minmax(0, 1fr) minmax(0, 1.7fr);
}

.page .planning-calendar-panel,
.page .planning-calendar-edit-panel,
.page .planning-tree-panel,
.page .planning-capacity-panel,
.page .planning-map-panel {
    gap: 0.5rem;
    margin: 0;
    padding: 0.52rem;
    border-radius: 6px;
    box-shadow: none;
}

.page .planning-calendar-edit-head,
.page .planning-map-layout,
.page .planning-tree-list {
    gap: 0.45rem;
}

.page .planning-calendar-layout {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem);
    gap: 0.55rem;
    min-height: 0;
    overflow: hidden;
}

.page .planning-calendar-side {
    gap: 0.45rem;
    max-height: none;
}

.page .planning-year-grid {
    grid-template-columns: repeat(4, minmax(11rem, 1fr));
    gap: 0.45rem;
}

.page .planning-calendar-mini-month {
    min-height: 9.2rem;
}

.page .planning-calendar-mini-grid {
    grid-template-columns: 1.35rem repeat(7, minmax(1.05rem, 1fr));
}

.page .planning-month-grid {
    min-width: 55rem;
}

.page .planning-month-week-header,
.page .planning-month-day-header {
    min-height: 1.75rem;
    padding: 0.38rem 0.42rem;
    font-size: 0.66rem;
}

.page .planning-month-week-number {
    min-height: 5.8rem;
    padding: 0.42rem 0.18rem;
    font-size: 0.66rem;
}

.page .planning-month-date {
    gap: 0.22rem;
    min-height: 5.8rem;
    padding: 0.34rem;
}

.page .planning-calendar-date-number {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.74rem;
}

.page .planning-calendar-date-summary {
    font-size: 0.66rem;
}

.page .planning-calendar-event-pill {
    padding: 0.16rem 0.28rem;
    border-radius: 4px;
    font-size: 0.64rem;
}

.page .planning-calendar-event-pill-week,
.page .planning-calendar-event-pill-detailed {
    min-height: 3.5rem;
    gap: 0.08rem;
}

.page .planning-week-grid {
    min-width: 66rem;
    gap: 0.45rem;
}

.page .planning-week-day {
    min-height: 21rem;
    border-radius: 6px;
}

.page .planning-week-day-head {
    min-height: 3.2rem;
    padding: 0.42rem;
}

.page .planning-week-day-head strong {
    font-size: 1rem;
}

.page .planning-week-event-list,
.page .planning-day-agenda,
.page .planning-calendar-context-list {
    gap: 0.28rem;
}

.page .planning-week-event-list {
    padding: 0.35rem;
}

.page .planning-day-view {
    gap: 0.45rem;
    min-height: 100%;
    padding: 0.55rem;
    border-radius: 6px;
}

.page .planning-calendar-agenda-item,
.page .planning-calendar-context-item {
    gap: 0.1rem;
    padding: 0.34rem 0.42rem;
    border-radius: 6px;
}

.page .planning-calendar-context-card dl {
    gap: 0.28rem;
}

.page .planning-calendar-edit-sheet .sheet-shell {
    max-height: none;
}

.page .planning-tree-children {
    gap: 0.35rem;
    padding: 0.45rem;
}

.page .planning-tree-group-head,
.page .planning-tree-item,
.page .planning-map-location {
    border-radius: 6px;
}

.page .planning-tree-item,
.page .planning-map-location {
    padding: 0.38rem 0.48rem;
}

.page .planning-capacity-grid {
    grid-template-columns: minmax(10.5rem, 14rem) repeat(var(--planning-capacity-week-count), minmax(3.9rem, 1fr));
    min-width: calc(10.5rem + var(--planning-capacity-week-count) * 3.9rem);
}

.page .planning-map-canvas {
    min-height: 0;
    height: 100%;
}

.page .planning-map-list,
.page .planning-map-detail-panel {
    max-height: none;
}

.page .availability-calendar-layout {
    gap: 0.55rem;
}

.page .availability-calendar-grid,
.page .availability-month-grid {
    gap: 0.16rem;
}

.page .availability-day-header,
.page .availability-week-number,
.page .availability-date {
    min-height: 1.45rem;
    padding: 0.06rem;
}

.page .finance-workbook-tabs,
.page .finance-sheet-tabs {
    gap: 0.35rem;
}

.page .finance-workbook-tab,
.page .finance-sheet-tab {
    padding: 0.36rem 0.5rem;
    border-radius: 6px;
}

.page .finance-grid th,
.page .finance-grid td,
.page .sheet-grid th,
.page .sheet-grid td {
    font-size: 0.76rem;
}

.page .finance-cell-panel {
    max-height: calc(100vh - 6rem);
}

@media (max-width: 1100px) {
    .page .directory-workspace,
    .page .workshops-workspace,
    .page .planning-calendar-layout,
    .page .planning-map-layout,
    .page .calendar-status-strip,
    .page .calendar-audit-summary {
        grid-template-columns: 1fr;
    }

    .page .planning-calendar-side,
    .page .planning-map-list,
    .page .planning-map-detail-panel {
        max-height: none;
    }
}

@media (max-width: 700px) {
    .page .content-shell {
        padding: 0.55rem;
    }

    .page .page-header-card h1 {
        font-size: 1.25rem;
    }
}

/* Studio Z public website */
.studio-site {
    --studio-blue: #63c7ca;
    --studio-navy: #111827;
    --studio-red: #e60012;
    min-height: 100vh;
    background: var(--studio-blue);
    color: #071225;
    font-family: Arial, Helvetica, sans-serif;
}

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

.studio-site a {
    color: inherit;
}

.studio-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 10;
    height: 3.5rem;
    background: var(--studio-navy);
}

.studio-header-inner,
.studio-container {
    width: min(100% - 3rem, 64rem);
    margin: 0 auto;
}

.studio-header-inner {
    height: 100%;
    display: flex;
    align-items: center;
}

.studio-site .studio-logo {
    color: white;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.36em;
    text-decoration: none;
}

.studio-site .studio-logo strong {
    color: var(--studio-red);
}

.studio-home-hero,
.studio-value,
.studio-category-hero,
.studio-offer-section,
.studio-info-section,
.studio-about,
.studio-legal-hero,
.studio-terms,
.studio-contact {
    background: var(--studio-blue);
}

.studio-home-hero {
    padding: 5rem 0 5rem;
}

.studio-home-grid {
    min-height: 39.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(26rem, 33rem);
    align-items: start;
    gap: 4rem;
    padding-top: 4rem;
}

.studio-home-title {
    position: relative;
    isolation: isolate;
    color: white;
    font-weight: 900;
    line-height: 1.08;
    padding-top: 4rem;
    text-shadow: 5px 0 0 #000, -5px 0 0 #000, 0 5px 0 #000, 0 -5px 0 #000;
}

.studio-home-title::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: min(176rem, 488%);
    aspect-ratio: 1366 / 768;
    background: url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20width='1366'%20height='768'%20viewBox='0%200%201366%20768'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20none;%20stroke:%20%23000;%20stroke-miterlimit:%2010;%20stroke-width:%205px;%20}%20%3c/style%3e%3c/defs%3e%3cpath%20class='cls-1'%20d='M643.72,428.96c.98,2.46,9.64,3.17,12.22,3.45,30.69,3.33,58.41,4.96,87.99,15.47,9.22,3.28,32.76,13.54,38.39,20.72,4.41,5.61,10.05,45.45,5.06,50.43-11.42,7.25-19.38-5.87-29.06-11.63-52.76-31.39-119.01-13.24-170.02-33.22-22.82-8.94-10.36-9.88-11.52-23.57-.45-5.27-4.68-8.86-5.81-12.4-.67-2.1.7-4.7-.07-7.42-2.2-7.74-7.99-6.32-.09-18.4,8.19-12.53,54.54-32.79,70.39-40.47,26.28-12.73,54.1-23.08,80.08-36.32,2.13-1.08,5.11-1.73,5.57-4.58-12.53,1.85-25.29,4.17-37.89,5.51-37.37,3.98-119.05,14.84-148.76-8.25-6.64-5.16-21.07-23.74-21.74-31.88-.31-3.79,1.58-7.07,1.08-11.97-.66-6.54-12.37-30.87-8.75-34.62,18.98-7.1,17.37,10.88,26.83,21.92,2.93,3.42,4.34,4.39,8.11,6.67,52.87,32,193.98-6.61,257.82-10.2,9.81-.55,27.83-1.31,37.03-.11,9.98,1.31,10.37,11.33,11.7,19.71.94,5.94,2.7,23.58,1.06,28.34-3.68,10.67-17.79,19.28-27.3,24.42l-182.31,88.38Z'/%3e%3c/svg%3e") center / contain no-repeat;
    opacity: 0.28;
    transform: translate(-50%, -48%) rotate(-4deg);
    pointer-events: none;
}

.studio-home-title p {
    position: relative;
    margin: 0 0 0.35rem;
    font-size: clamp(4.6rem, 5vw, 6rem);
}

.studio-letter-panel,
.studio-panel,
.studio-contact-card,
.studio-offer-card,
.studio-legal-card,
.studio-terms-card {
    background: linear-gradient(135deg, #f3f7fb 0%, #f8fafc 64%, rgba(17, 24, 39, 0.12) 100%);
    box-shadow: 0 18px 28px rgba(27, 60, 67, 0.14);
}

.studio-letter-panel {
    min-height: 32rem;
    padding: 2rem;
    border-radius: 0.75rem;
    color: #111827;
    font-style: italic;
    line-height: 1.5;
}

.studio-letter-panel p {
    margin: 0 0 1.1rem;
}

.studio-letter-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.6rem;
}

.studio-letter-footer p {
    margin: 0;
    font-size: 0.9rem;
}

.studio-letter-footer a,
.studio-category-cta-row a,
.studio-offer-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.25rem;
    background: var(--studio-red);
    color: white;
    padding: 0.75rem 1rem;
    text-decoration: none;
    font-weight: 800;
}

.studio-value {
    padding: 1rem 0 1.3rem;
}

.studio-value-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.studio-value-grid li {
    min-height: 11.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f8fafc 58%, rgba(17, 24, 39, 0.28) 100%);
    box-shadow: 0 18px 28px rgba(27, 60, 67, 0.18);
    padding: 1.5rem;
    text-align: center;
}

.studio-value-grid span {
    font-size: 2rem;
}

.studio-value-grid strong {
    margin-top: 0.7rem;
    font-size: 1rem;
}

.studio-value-grid p {
    margin: 0.35rem 0 0;
    color: #374151;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.45;
}

.studio-tile-section {
    background: white;
}

.studio-tile-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.studio-home-tile {
    position: relative;
    min-height: 23rem;
    height: 40vh;
    flex: 1 0 45%;
    overflow: hidden;
    background: var(--studio-blue);
    text-decoration: none;
}

.studio-home-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(15, 23, 42, 0);
    transition: background 0.2s ease;
}

.studio-home-tile:hover::before {
    background: rgba(15, 23, 42, 0.38);
}

.studio-home-tile:nth-child(2),
.studio-home-tile:nth-child(3),
.studio-home-tile:nth-child(6) {
    flex-basis: 55%;
}

.studio-home-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.studio-home-tile:hover img {
    transform: scale(1.04);
}

.studio-home-tile span {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    display: block;
    border-radius: 0.75rem;
    background: rgba(248, 250, 252, 0.18);
    padding: 1rem;
    color: #111827;
    backdrop-filter: blur(5px);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.studio-home-tile:hover span {
    background: rgba(248, 250, 252, 0.38);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

.studio-home-tile strong,
.studio-home-tile small {
    display: block;
}

.studio-category-hero {
    padding: 5rem 0 4.9rem;
}

.studio-category-stack {
    display: grid;
    gap: 1.5rem;
}

.studio-category-stack h1 {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 900;
    color: #0b1730;
}

.studio-category-image {
    width: 100%;
    height: 24rem;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 1px 8px rgba(17, 24, 39, 0.12);
}

.studio-category-intro,
.studio-category-cta-row p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.studio-category-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.studio-category-cta-row a {
    flex: 0 0 auto;
    border-radius: 0.75rem;
    background: #4f46e5;
    padding: 0.85rem 1.35rem;
}

.studio-shortcuts {
    border-top: 1px solid rgba(125, 211, 252, 0.55);
    border-bottom: 1px solid rgba(125, 211, 252, 0.55);
    background: var(--studio-blue);
    padding: 1.55rem 0;
}

.studio-shortcut-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.studio-shortcut-row a {
    display: inline-flex;
    border: 1px solid #7dd3fc;
    border-radius: 0.75rem;
    background: white;
    padding: 0.65rem 1rem;
    box-shadow: 0 3px 0 rgba(14, 116, 144, 0.22);
    text-decoration: none;
    font-weight: 800;
}

.studio-offer-section,
.studio-info-section {
    border-top: 1px solid rgba(125, 211, 252, 0.55);
    padding: 4rem 0;
}

.studio-offer-section header {
    margin-bottom: 1.6rem;
}

.studio-offer-section h2,
.studio-info-section h2,
.studio-contact h2,
.studio-about h2 {
    margin: 0 0 0.5rem;
    color: #111827;
    font-size: 1.9rem;
}

.studio-offer-section header p {
    margin: 0;
    color: #475569;
}

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

.studio-empty-note {
    margin: 0;
    color: #475569;
}

.studio-offer-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: white;
}

.studio-offer-card img {
    width: 100%;
    height: 14rem;
    object-fit: cover;
}

.studio-offer-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.5rem;
}

.studio-offer-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.5rem;
}

.studio-offer-card h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #111827;
}

.studio-offer-meta {
    flex: 0 0 auto;
    color: #334155;
    font-size: 0.86rem;
    text-align: right;
}

.studio-offer-meta span {
    display: block;
}

.studio-offer-card p {
    margin: 1rem 0 2rem;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.55;
}

.studio-offer-card a {
    margin-top: auto;
    border-radius: 0.75rem;
    background: #4f46e5;
    font-size: 0.9rem;
}

.studio-panel {
    border-radius: 0.75rem;
    padding: 2rem;
}

.studio-panel p,
.studio-about p {
    margin: 0.7rem 0 0;
    color: #374151;
    line-height: 1.65;
}

.studio-about {
    padding: 5rem 0 4rem;
}

.studio-about-grid {
    display: grid;
    gap: 2rem;
}

.studio-legal-hero {
    min-height: 100vh;
    padding: 5rem 0 2rem;
}

.studio-legal-card {
    border-radius: 0.5rem;
    padding: 2rem;
}

.studio-legal-card h1 {
    margin: 0 0 1rem;
    font-size: 2.25rem;
}

.studio-legal-card img {
    width: 100%;
    max-height: 18rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

.studio-legal-card p {
    margin: 1.5rem 0 0;
    line-height: 1.7;
}

.studio-terms {
    padding: 5rem 0 3rem;
}

.studio-terms-card {
    border-radius: 0.5rem;
    background: white;
    padding: 2.5rem;
    color: #111827;
    line-height: 1.65;
}

.studio-terms-card header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
}

.studio-terms-card h1,
.studio-terms-card h2,
.studio-terms-card p {
    margin-top: 0;
}

.studio-terms-card h2 {
    margin: 1.8rem 0 0.5rem;
    font-size: 1.35rem;
}

.studio-terms-card ul {
    margin: 0;
    padding-left: 1.3rem;
}

.studio-terms-card li + li {
    margin-top: 0.4rem;
}

.studio-terms-card footer {
    margin-top: 2.5rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    color: #6b7280;
}

.studio-contact {
    padding: 4rem 0;
}

.studio-contact-stack {
    display: grid;
    gap: 3rem;
}

.studio-contact-intro {
    text-align: center;
}

.studio-contact-grid,
.studio-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.studio-contact-card {
    display: block;
    min-height: 13rem;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
}

.studio-contact-card span {
    font-size: 2rem;
}

.studio-contact-card h3 {
    margin: 0.8rem 0 0.4rem;
}

.studio-contact-card p {
    margin: 0;
    color: #374151;
}

.studio-footer {
    background: var(--studio-navy);
    color: #9ca3af;
    padding: 2rem 0;
}

.studio-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.studio-footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.studio-footer a {
    color: #9ca3af;
    text-decoration: none;
}

.studio-footer a:hover {
    color: white;
}

@media (max-width: 1100px) {
    .studio-home-grid {
        grid-template-columns: 1fr;
    }

    .studio-home-title {
        padding-top: 1rem;
    }

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

@media (max-width: 760px) {
    .studio-header-inner,
    .studio-container {
        width: min(100% - 2rem, 64rem);
    }

    .studio-home-title p {
        font-size: 3.4rem;
    }

    .studio-letter-footer,
    .studio-category-cta-row,
    .studio-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .studio-value-grid,
    .studio-offer-grid,
    .studio-contact-grid {
        grid-template-columns: 1fr;
    }

    .studio-home-tile,
    .studio-home-tile:nth-child(2),
    .studio-home-tile:nth-child(3),
    .studio-home-tile:nth-child(6) {
        flex-basis: 100%;
    }

    .studio-category-image {
        height: 16rem;
    }
}

/* Studio Z public catalog redesign */
.studio-site {
    --studio-blue: #63c7ca;
    --studio-red: #e60012;
    --studio-navy: #111827;
    --studio-ink: #071225;
    --studio-paper: #fffaf2;
    --studio-mist: #eef7f7;
    --studio-border: rgba(7, 18, 37, 0.12);
    background: var(--studio-mist);
    color: var(--studio-ink);
}

.studio-site a:focus-visible,
.studio-site button:focus-visible {
    outline: 3px solid var(--studio-red);
    outline-offset: 3px;
}

.studio-header {
    position: sticky;
    top: 0;
    height: auto;
    min-height: 3.5rem;
}

.studio-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 3.5rem;
    padding: 0.55rem 0;
}

.studio-main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-left: auto;
}

.studio-main-nav a {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.studio-main-nav a:hover {
    color: white;
}

.studio-header-cta,
.studio-button-primary,
.studio-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.studio-header-cta,
.studio-button-primary {
    border: 1px solid var(--studio-red);
    background: var(--studio-red);
    color: white;
}

.studio-site .studio-header-cta,
.studio-site .studio-button-primary {
    color: white;
}

.studio-header-cta:hover,
.studio-button-primary:hover {
    background: #b8000e;
    border-color: #b8000e;
    color: white;
}

.studio-button-secondary {
    border: 1px solid var(--studio-navy);
    background: transparent;
    color: var(--studio-navy);
}

.studio-button-secondary:hover {
    background: var(--studio-navy);
    color: white;
}

.studio-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.studio-home-hero,
.studio-value {
    background: var(--studio-blue);
}

.studio-category-hero {
    background:
        linear-gradient(90deg, rgba(99, 199, 202, 0.94), rgba(99, 199, 202, 0.78)),
        var(--studio-blue);
    padding: 4.5rem 0 3rem;
}

.studio-category-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 28rem);
    align-items: center;
    gap: 3rem;
}

.studio-category-copy {
    display: grid;
    gap: 1.1rem;
}

.studio-kicker {
    width: fit-content;
    margin: 0;
    border-radius: 999px;
    background: rgba(255, 250, 242, 0.82);
    padding: 0.45rem 0.7rem;
    color: var(--studio-navy);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.studio-category-copy h1 {
    max-width: 12ch;
    margin: 0;
    color: var(--studio-navy);
    font-size: clamp(2.4rem, 5vw, 4.9rem);
    line-height: 0.98;
}

.studio-category-intro {
    max-width: 42rem;
    color: var(--studio-ink);
    font-size: 1.12rem;
    line-height: 1.55;
}

.studio-category-image {
    height: 21rem;
    border: 1px solid rgba(7, 18, 37, 0.16);
    border-radius: 8px;
    background: rgba(255, 250, 242, 0.35);
    box-shadow: 0 18px 42px rgba(7, 18, 37, 0.12);
    object-fit: contain;
    padding: 1.5rem;
}

.studio-quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.25rem 0 0;
    padding: 0;
    list-style: none;
}

.studio-quick-facts li,
.studio-offer-chip-list li {
    border: 1px solid rgba(7, 18, 37, 0.14);
    border-radius: 999px;
    background: rgba(255, 250, 242, 0.76);
    color: var(--studio-navy);
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 800;
}

.studio-offer-section {
    border-top: none;
    background: var(--studio-mist);
    padding: 3.5rem 0;
}

.studio-offer-section header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.studio-offer-section h2,
.studio-practical-section h2,
.studio-contact h2,
.studio-about h2 {
    color: var(--studio-navy);
}

.studio-offer-grid {
    gap: 1.2rem;
}

.studio-offer-card {
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: var(--studio-paper);
    box-shadow: 0 10px 24px rgba(7, 18, 37, 0.08);
}

.studio-offer-card-featured {
    border-top: 5px solid var(--studio-blue);
}

.studio-offer-media {
    display: grid;
    place-items: center;
    min-height: 11rem;
    background: rgba(99, 199, 202, 0.18);
    border-bottom: 1px solid var(--studio-border);
}

.studio-offer-card img {
    width: 100%;
    height: 11rem;
    object-fit: contain;
    padding: 1rem;
}

.studio-offer-card-body {
    padding: 1.15rem;
}

.studio-offer-card-head {
    min-height: 0;
}

.studio-offer-kind {
    width: fit-content;
    margin: 0 0 0.55rem;
    border-radius: 999px;
    background: rgba(230, 0, 18, 0.09);
    color: var(--studio-red);
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.studio-offer-card h3 {
    color: var(--studio-navy);
    font-size: 1.25rem;
}

.studio-offer-age,
.studio-offer-description {
    color: #334155;
}

.studio-offer-age {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    font-weight: 800;
}

.studio-offer-description {
    margin: 0.9rem 0 1rem;
    line-height: 1.55;
}

.studio-offer-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1.1rem;
    padding: 0;
    list-style: none;
}

.studio-offer-chip-list li {
    background: white;
}

.studio-offer-action {
    width: fit-content;
    margin-top: auto;
}

.studio-practical-section {
    background: white;
    padding: 3.25rem 0;
}

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

.studio-panel,
.studio-legal-card,
.studio-terms-card {
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: var(--studio-paper);
    box-shadow: 0 10px 24px rgba(7, 18, 37, 0.08);
}

.studio-practical-card {
    padding: 1.5rem;
}

.studio-contact {
    background: var(--studio-blue);
    padding: 3.25rem 0;
}

.studio-contact-stack {
    gap: 1.25rem;
}

.studio-contact-intro {
    max-width: 48rem;
    margin: 0 auto;
}

.studio-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 18rem));
    justify-content: center;
    gap: 1rem;
}

.studio-contact-card {
    min-height: 0;
    border: 1px solid rgba(7, 18, 37, 0.12);
    border-radius: 8px;
    background: var(--studio-paper);
    box-shadow: 0 10px 24px rgba(7, 18, 37, 0.1);
    padding: 1rem;
    text-align: left;
}

.studio-contact-card:hover {
    transform: translateY(-1px);
}

.studio-contact-card span {
    color: var(--studio-red);
    font-size: 1.35rem;
}

.studio-contact-card h3 {
    margin: 0.4rem 0 0.2rem;
    color: var(--studio-navy);
}

.studio-footer {
    background: var(--studio-navy);
}

.studio-about,
.studio-legal-hero,
.studio-terms {
    background: var(--studio-mist);
}

@media (max-width: 900px) {
    .studio-category-hero-grid,
    .studio-practical-grid {
        grid-template-columns: 1fr;
    }

    .studio-category-copy h1 {
        max-width: 14ch;
    }

    .studio-category-image {
        height: 14rem;
    }
}

@media (max-width: 760px) {
    .studio-header-inner {
        flex-wrap: wrap;
        row-gap: 0.55rem;
    }

    .studio-site .studio-logo {
        flex: 1 0 auto;
    }

    .studio-main-nav {
        display: none;
    }

    .studio-header-cta {
        min-height: 2.35rem;
        padding: 0.55rem 0.75rem;
        font-size: 0.86rem;
    }

    .studio-category-hero {
        padding: 1.6rem 0 1.5rem;
    }

    .studio-category-copy h1 {
        font-size: 2.25rem;
    }

    .studio-category-image {
        height: 12rem;
    }

    .studio-quick-facts {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }

    .studio-quick-facts li {
        flex: 0 0 auto;
    }

    .studio-button-row {
        align-items: stretch;
        flex-direction: column;
    }

    .studio-button-primary,
    .studio-button-secondary {
        width: 100%;
    }

    .studio-offer-section,
    .studio-practical-section,
    .studio-contact {
        padding: 1.8rem 0;
    }

    .studio-offer-section header {
        align-items: flex-start;
        flex-direction: column;
    }

    .studio-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Studio Z pricing and home refinements */
.studio-hero-inclusion-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.studio-hero-inclusion-list li {
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: white;
    color: var(--studio-navy);
    padding: 0.72rem;
    font-size: 0.95rem;
    font-weight: 900;
}

.studio-pricing-hero,
.studio-home-redesign-hero {
    background: linear-gradient(180deg, #74d0cf 0%, #dff1ed 100%);
}

.studio-pricing-hero {
    padding: 5rem 0 4rem;
}

.studio-pricing-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.75fr);
    align-items: center;
    gap: 2rem;
}

.studio-pricing-principle {
    border: 1px solid rgba(7, 18, 37, 0.16);
    border-radius: 8px;
    background: var(--studio-paper);
    box-shadow: 0 18px 42px rgba(7, 18, 37, 0.14);
    padding: 1.35rem;
}

.studio-pricing-principle h2 {
    margin: 0.7rem 0 0;
    color: var(--studio-navy);
    font-size: 1.65rem;
    line-height: 1.15;
}

.studio-pricing-principle p:last-child {
    margin: 0.8rem 0 0;
    color: #334155;
    line-height: 1.6;
}

.studio-pricing-section {
    background: var(--studio-surface);
    padding: 4rem 0;
}

#pakketten,
#voorwaarden {
    scroll-margin-top: 5rem;
}

.studio-pricing-card-grid,
.studio-extra-fee-grid,
.studio-pricing-note-grid {
    display: grid;
    gap: 1rem;
}

.studio-pricing-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.studio-pricing-card,
.studio-extra-fee-card {
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: var(--studio-paper);
    box-shadow: 0 12px 28px rgba(7, 18, 37, 0.08);
    padding: 1.25rem;
}

.studio-pricing-card-featured {
    border-top: 6px solid var(--studio-red);
}

.studio-pricing-card p:first-child {
    width: fit-content;
    margin: 0 0 1rem;
    border: 1px solid rgba(7, 18, 37, 0.12);
    border-radius: 999px;
    background: white;
    padding: 0.35rem 0.55rem;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.studio-pricing-card h3,
.studio-extra-fee-card h3 {
    margin: 0;
    color: var(--studio-navy);
    font-size: 1.3rem;
}

.studio-pricing-card > strong {
    display: block;
    margin: 0.75rem 0 0;
    color: var(--studio-red);
    font-size: 2.5rem;
    line-height: 1;
}

.studio-pricing-card > span {
    display: block;
    margin-top: 0.35rem;
    color: #475569;
    font-weight: 900;
}

.studio-pricing-card p:last-child,
.studio-extra-fee-card p {
    margin: 0.9rem 0 0;
    color: #334155;
    line-height: 1.58;
}

.studio-pricing-included-band {
    background: white;
}

.studio-pricing-two-column {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 1.5rem;
    align-items: start;
}

.studio-pricing-two-column h2 {
    margin: 0.6rem 0 0;
    color: var(--studio-navy);
    font-size: 2.1rem;
    line-height: 1.1;
}

.studio-pricing-two-column p {
    margin: 0.75rem 0 0;
    color: #334155;
    line-height: 1.62;
}

.studio-included-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.studio-included-grid li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3rem;
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: var(--studio-paper);
    padding: 0.7rem;
    color: var(--studio-navy);
    font-weight: 900;
}

.studio-included-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--studio-blue);
    color: var(--studio-navy);
    font-size: 0.9rem;
}

.studio-extra-fee-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.studio-extra-fee-card > strong {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--studio-red);
    font-size: 1.35rem;
}

.studio-pricing-notes {
    background: white;
}

.studio-pricing-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studio-home-redesign-hero {
    position: relative;
    overflow: hidden;
    padding: 5.4rem 0 5rem;
}

.studio-home-redesign-hero::after {
    content: "";
    position: absolute;
    right: max(1.5rem, calc((100vw - 76rem) / 2));
    bottom: 1.5rem;
    width: min(38vw, 26rem);
    aspect-ratio: 1.7;
    background: url("/assets/animatie.svg") center / contain no-repeat;
    opacity: 0.38;
    pointer-events: none;
}

.studio-home-redesign-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    max-width: 49rem;
}

.studio-home-redesign-inner h1 {
    max-width: 12ch;
    margin: 0;
    color: var(--studio-navy);
    font-size: 4.8rem;
    line-height: 0.98;
    letter-spacing: 0;
}

.studio-home-redesign-inner > p:not(.studio-breadcrumb):not(.studio-kicker) {
    max-width: 43rem;
    margin: 0;
    color: var(--studio-ink);
    font-size: 1.16rem;
    line-height: 1.6;
}

.studio-home-proof,
.studio-home-offer-section,
.studio-home-workflow {
    background: var(--studio-surface);
    padding: 3.5rem 0;
}

.studio-home-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.studio-home-proof-grid li {
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: var(--studio-paper);
    box-shadow: 0 12px 28px rgba(7, 18, 37, 0.08);
    padding: 1.15rem;
}

.studio-home-proof-grid strong {
    display: block;
    color: var(--studio-navy);
    font-size: 1.15rem;
}

.studio-home-proof-grid p {
    margin: 0.5rem 0 0;
    color: #334155;
    line-height: 1.55;
}

.studio-home-offer-section,
.studio-home-workflow {
    background: white;
}

.studio-home-offer-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
}

.studio-home-offer-card {
    display: grid;
    grid-template-rows: 9.5rem auto auto;
    gap: 0.7rem;
    min-width: 0;
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: var(--studio-paper);
    box-shadow: 0 12px 28px rgba(7, 18, 37, 0.08);
    padding: 0.9rem;
    text-decoration: none;
}

.studio-home-offer-card img {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(7, 18, 37, 0.08);
    border-radius: 8px;
    background: var(--studio-sage);
    object-fit: contain;
    padding: 0.65rem;
}

.studio-home-offer-card strong {
    color: var(--studio-navy);
    font-size: 1.15rem;
}

.studio-home-offer-card span {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.4;
}

.studio-home-pricing-strip {
    background: var(--studio-blue);
    padding: 3rem 0;
}

.studio-home-pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
}

.studio-home-pricing-grid h2 {
    margin: 0.55rem 0 0;
    color: var(--studio-navy);
    font-size: 2.1rem;
    line-height: 1.1;
}

.studio-home-pricing-grid p:not(.studio-section-kicker) {
    max-width: 45rem;
    margin: 0.7rem 0 0;
    color: var(--studio-ink);
    line-height: 1.6;
}

.studio-home-process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
    .studio-pricing-hero-grid,
    .studio-pricing-two-column,
    .studio-pricing-note-grid,
    .studio-home-pricing-grid {
        grid-template-columns: 1fr;
    }

    .studio-pricing-card-grid,
    .studio-home-proof-grid,
    .studio-home-process-list {
        grid-template-columns: 1fr;
    }

    .studio-extra-fee-grid,
    .studio-included-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .studio-home-offer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .studio-home-redesign-inner h1 {
        max-width: 14ch;
        font-size: 3.35rem;
    }
}

@media (max-width: 760px) {
    .studio-hero-inclusion-list,
    .studio-extra-fee-grid,
    .studio-included-grid,
    .studio-home-offer-grid {
        grid-template-columns: 1fr;
    }

    .studio-pricing-hero,
    .studio-home-redesign-hero {
        padding: 2.2rem 0 2.6rem;
    }

    .studio-home-redesign-hero::after {
        display: none;
    }

    .studio-home-redesign-inner h1 {
        max-width: 12ch;
        font-size: 2.45rem;
    }

    .studio-home-redesign-inner > p:not(.studio-breadcrumb):not(.studio-kicker),
    .studio-pricing-principle p:last-child {
        font-size: 1rem;
    }

    .studio-pricing-section,
    .studio-home-proof,
    .studio-home-offer-section,
    .studio-home-workflow {
        padding: 2.4rem 0;
    }

    .studio-pricing-card > strong {
        font-size: 2.2rem;
    }

    .studio-pricing-principle h2,
    .studio-pricing-two-column h2,
    .studio-home-pricing-grid h2 {
        font-size: 1.7rem;
    }

    .studio-home-pricing-grid .studio-button-primary {
        width: 100%;
    }
}

/* Studio Z category UX pass */
.studio-site {
    --studio-blue: #67cacc;
    --studio-red: #e60012;
    --studio-red-dark: #b9000e;
    --studio-navy: #101726;
    --studio-ink: #071225;
    --studio-paper: #fffaf2;
    --studio-surface: #f3f7f2;
    --studio-sage: #e2f0e8;
    --studio-gold: #f5c84b;
    --studio-border: rgba(7, 18, 37, 0.14);
    background: var(--studio-surface);
    color: var(--studio-ink);
    font-family: Arial, Helvetica, sans-serif;
}

.studio-header {
    background: var(--studio-navy);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(7, 18, 37, 0.12);
}

.studio-header-inner,
.studio-container {
    width: min(100% - 3rem, 76rem);
}

.studio-site .studio-logo {
    letter-spacing: 0.32em;
}

.studio-main-nav a,
.studio-header-cta,
.studio-button-primary,
.studio-button-secondary,
.studio-section-link {
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.studio-header-cta:hover,
.studio-button-primary:hover,
.studio-button-secondary:hover,
.studio-section-link:hover,
.studio-contact-card:hover {
    transform: translateY(-1px);
}

.studio-category-hero {
    background: linear-gradient(180deg, #74d0cf 0%, #dff1ed 100%);
    padding: 5rem 0 4.2rem;
}

.studio-category-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
    align-items: center;
    gap: 3rem;
}

.studio-category-copy {
    display: grid;
    gap: 1.15rem;
    max-width: 46rem;
}

.studio-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    color: rgba(7, 18, 37, 0.72);
    font-size: 0.9rem;
    font-weight: 800;
}

.studio-breadcrumb a {
    text-decoration: none;
}

.studio-breadcrumb a:hover {
    text-decoration: underline;
}

.studio-kicker,
.studio-section-kicker,
.studio-offer-kind {
    width: fit-content;
    margin: 0;
    border: 1px solid rgba(7, 18, 37, 0.12);
    border-radius: 999px;
    background: rgba(255, 250, 242, 0.92);
    color: var(--studio-navy);
    padding: 0.42rem 0.68rem;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.studio-category-copy h1 {
    max-width: 13ch;
    margin: 0;
    color: var(--studio-navy);
    font-size: 4.4rem;
    line-height: 0.98;
    letter-spacing: 0;
}

.studio-category-intro {
    max-width: 44rem;
    margin: 0;
    color: var(--studio-ink);
    font-size: 1.16rem;
    line-height: 1.6;
}

.studio-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.2rem;
}

.studio-header-cta,
.studio-button-primary,
.studio-button-secondary,
.studio-section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border-radius: 8px;
    padding: 0.72rem 1rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.studio-header-cta,
.studio-button-primary {
    border: 1px solid var(--studio-red);
    background: var(--studio-red);
    color: white;
}

.studio-site .studio-header-cta,
.studio-site .studio-button-primary {
    color: white;
}

.studio-header-cta:hover,
.studio-button-primary:hover {
    border-color: var(--studio-red-dark);
    background: var(--studio-red-dark);
    color: white;
}

.studio-button-secondary,
.studio-section-link {
    border: 1px solid var(--studio-navy);
    background: rgba(255, 250, 242, 0.2);
    color: var(--studio-navy);
}

.studio-button-secondary:hover,
.studio-section-link:hover {
    background: var(--studio-navy);
    color: white;
}

.studio-quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
}

.studio-quick-facts li {
    border: 1px solid rgba(7, 18, 37, 0.12);
    border-radius: 999px;
    background: rgba(255, 250, 242, 0.9);
    color: var(--studio-navy);
    padding: 0.45rem 0.65rem;
    font-size: 0.84rem;
    font-weight: 800;
}

.studio-hero-summary {
    display: grid;
    gap: 1rem;
    border: 1px solid rgba(7, 18, 37, 0.16);
    border-radius: 8px;
    background: var(--studio-paper);
    box-shadow: 0 18px 42px rgba(7, 18, 37, 0.14);
    padding: 1rem;
}

.studio-hero-media {
    display: grid;
    place-items: center;
    min-height: 16rem;
    border: 1px solid rgba(7, 18, 37, 0.1);
    border-radius: 8px;
    background: var(--studio-sage);
}

.studio-category-image {
    width: 100%;
    height: 15rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
    padding: 1.25rem;
}

.studio-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0;
}

.studio-hero-stats div,
.studio-offer-fact-grid div {
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: white;
    padding: 0.72rem;
}

.studio-hero-stats dt,
.studio-offer-fact-grid dt {
    margin: 0 0 0.25rem;
    color: rgba(7, 18, 37, 0.62);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.studio-hero-stats dd,
.studio-offer-fact-grid dd {
    margin: 0;
    color: var(--studio-navy);
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.25;
}

.studio-lesson-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    border-top: 1px solid var(--studio-border);
    padding-top: 1rem;
}

.studio-lesson-flow div {
    min-width: 0;
}

.studio-lesson-flow span,
.studio-process-list > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--studio-gold);
    color: var(--studio-navy);
    font-size: 0.78rem;
    font-weight: 900;
}

.studio-lesson-flow strong {
    display: block;
    margin-top: 0.45rem;
    color: var(--studio-navy);
}

.studio-lesson-flow p {
    margin: 0.25rem 0 0;
    color: #334155;
    font-size: 0.88rem;
    line-height: 1.42;
}

.studio-offer-section {
    border-top: 0;
    background: var(--studio-surface);
    padding: 4rem 0;
}

#aanbod,
#contact {
    scroll-margin-top: 5rem;
}

.studio-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.studio-section-header h2,
.studio-practical-intro h2,
.studio-contact h2 {
    margin: 0.55rem 0 0;
    color: var(--studio-navy);
    font-size: 2.2rem;
    line-height: 1.1;
    letter-spacing: 0;
}

.studio-section-header p:not(.studio-section-kicker),
.studio-practical-intro > p,
.studio-panel p,
.studio-contact-card p {
    color: #334155;
    line-height: 1.62;
}

.studio-section-header p:not(.studio-section-kicker) {
    max-width: 42rem;
    margin: 0.65rem 0 0;
}

.studio-offer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.studio-offer-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: var(--studio-paper);
    box-shadow: 0 12px 28px rgba(7, 18, 37, 0.1);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.studio-offer-card:hover {
    border-color: rgba(230, 0, 18, 0.42);
    box-shadow: 0 16px 34px rgba(7, 18, 37, 0.14);
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
}

.studio-offer-card:focus-visible {
    outline: 3px solid var(--studio-gold);
    outline-offset: 4px;
}

.studio-offer-card-featured {
    border-top: 6px solid var(--studio-red);
}

.studio-offer-media {
    display: grid;
    place-items: center;
    min-height: 12rem;
    border-bottom: 1px solid var(--studio-border);
    background: linear-gradient(180deg, var(--studio-sage), #f7f5eb);
}

.studio-offer-card img {
    width: 100%;
    height: 12rem;
    object-fit: contain;
    padding: 1.1rem;
}

.studio-offer-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.15rem;
}

.studio-offer-card-head {
    min-height: 0;
}

.studio-offer-kind {
    border-color: rgba(230, 0, 18, 0.18);
    background: rgba(230, 0, 18, 0.08);
    color: var(--studio-red);
    padding: 0.34rem 0.55rem;
    font-size: 0.72rem;
}

.studio-offer-card h3 {
    margin: 0;
    color: var(--studio-navy);
    font-size: 1.35rem;
    line-height: 1.15;
}

.studio-offer-age {
    margin: 0.35rem 0 0;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 900;
}

.studio-offer-description {
    margin: 0.9rem 0 1rem;
    color: #334155;
    line-height: 1.58;
}

.studio-offer-fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 0.6rem;
    margin: 0 0 1.1rem;
}

.studio-offer-action {
    width: fit-content;
    margin-top: auto;
}

.studio-offer-card .studio-offer-action {
    border-radius: 8px;
    background: var(--studio-red);
    color: white;
    pointer-events: none;
}

.studio-workshop-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(24rem, 1.05fr);
    align-items: center;
    gap: 2.5rem;
}

.studio-workshop-summary {
    align-self: stretch;
}

.studio-workshop-media {
    min-height: 14rem;
    aspect-ratio: 16 / 7;
    overflow: hidden;
}

.studio-workshop-image {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    padding: 0;
}

.studio-workshop-image-vloggen {
    object-position: center calc(50% - 30px);
}

.studio-workshop-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studio-workshop-stats div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.studio-workshop-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    border-top: 1px solid var(--studio-border);
    padding-top: 1rem;
}

.studio-workshop-link-list a {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    border: 1px solid var(--studio-navy);
    border-radius: 8px;
    color: var(--studio-navy);
    padding: 0.58rem 0.78rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.studio-workshop-link-list a:hover {
    background: var(--studio-navy);
    color: white;
}

.studio-workshop-content-section {
    background: var(--studio-surface);
    padding: 4rem 0;
}

.studio-workshop-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.55fr);
    align-items: start;
    gap: 1.15rem;
}

.studio-workshop-main,
.studio-workshop-sidebar {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.studio-workshop-detail-card,
.studio-workshop-side-card {
    padding: 1.25rem;
}

.studio-workshop-detail-card {
    display: grid;
    gap: 0.75rem;
}

.studio-workshop-detail-card h2,
.studio-workshop-side-card h2 {
    margin: 0;
    color: var(--studio-navy);
    line-height: 1.15;
    letter-spacing: 0;
}

.studio-workshop-detail-card h2 {
    font-size: 1.65rem;
}

.studio-workshop-side-card h2 {
    font-size: 1.15rem;
}

.studio-workshop-detail-card .studio-section-kicker {
    margin: 0;
}

.studio-workshop-detail-card p,
.studio-workshop-side-card p {
    margin: 0.65rem 0 0;
    color: #334155;
    line-height: 1.62;
}

.studio-workshop-detail-card h2 + p,
.studio-workshop-side-card h2 + p {
    margin-top: 0;
}

.studio-workshop-side-card {
    overflow-wrap: anywhere;
}

.studio-workshop-goals-card {
    display: grid;
    gap: 0.9rem;
}

.studio-workshop-goals-card div {
    display: grid;
    gap: 0.35rem;
    border-top: 1px solid var(--studio-border);
    padding-top: 0.85rem;
}

.studio-workshop-goals-card div:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.studio-workshop-goals-card h3 {
    margin: 0;
    color: var(--studio-navy);
    font-size: 0.92rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.studio-resource-hero .studio-category-copy h1 {
    max-width: 14ch;
}

.studio-academy-runbook-hero {
    padding: 3rem 0;
}

.studio-academy-runbook-hero .studio-workshop-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(21rem, 0.9fr);
    align-items: start;
}

.studio-academy-runbook-hero .studio-category-copy h1 {
    max-width: 11ch;
    font-size: 3.25rem;
}

.studio-academy-runbook-hero .studio-category-intro {
    max-width: 34rem;
    font-size: 1.02rem;
}

.studio-academy-hero-panel {
    display: grid;
    gap: 0.65rem;
    border-left: 6px solid var(--studio-red);
    border-radius: 8px;
    background: rgba(255, 250, 242, 0.92);
    box-shadow: 0 12px 30px rgba(7, 18, 37, 0.12);
    padding: 1rem;
}

.studio-academy-hero-panel strong {
    color: var(--studio-navy);
    font-size: 1.02rem;
}

.studio-academy-hero-panel ul {
    display: grid;
    gap: 0.42rem;
    margin: 0;
    padding-left: 1.1rem;
    color: #263648;
    line-height: 1.5;
}

.studio-resource-section {
    display: grid;
    gap: 1rem;
    background: var(--studio-surface);
    padding: 4rem 0;
}

.studio-resource-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
    align-items: start;
    gap: 1rem;
}

.studio-resource-main,
.studio-resource-side {
    padding: 1.25rem;
}

.studio-resource-wide {
    margin-top: 0.25rem;
}

.studio-resource-main h2,
.studio-resource-side h2 {
    margin: 0;
    color: var(--studio-navy);
    line-height: 1.12;
    letter-spacing: 0;
}

.studio-resource-main h2 {
    font-size: 1.85rem;
}

.studio-resource-side h2 {
    font-size: 1.15rem;
}

.studio-resource-main p,
.studio-resource-side p,
.studio-resource-list,
.studio-resource-side dl {
    color: #334155;
    line-height: 1.62;
}

.studio-resource-side dl {
    display: grid;
    gap: 0.65rem;
    margin: 0.85rem 0 0;
}

.studio-resource-side dl div {
    border-top: 1px solid var(--studio-border);
    padding-top: 0.65rem;
}

.studio-resource-side dl div:first-child {
    border-top: 0;
    padding-top: 0;
}

.studio-resource-side dt {
    color: rgba(7, 18, 37, 0.58);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.studio-resource-side dd {
    margin: 0.18rem 0 0;
    color: var(--studio-navy);
    font-weight: 800;
}

.studio-resource-list {
    display: grid;
    gap: 0.55rem;
    margin: 0.8rem 0 0;
    padding-left: 1.1rem;
}

.studio-resource-steps {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.studio-resource-steps li {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0.35rem 0.85rem;
    border-left: 5px solid var(--studio-blue);
    background: white;
    padding: 0.95rem;
}

.studio-resource-steps span {
    grid-row: span 2;
    color: var(--studio-red);
    font-size: 0.82rem;
    font-weight: 900;
}

.studio-resource-steps strong {
    color: var(--studio-navy);
    font-size: 1.05rem;
}

.studio-resource-steps p {
    margin: 0;
}

.studio-academy-runbook-steps li {
    border-left-color: var(--studio-red);
}

.studio-academy-reflection-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-left: 0;
    list-style: none;
}

.studio-academy-reflection-list li {
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: white;
    padding: 0.9rem;
}

.studio-academy-flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1rem;
}

.studio-academy-flow section {
    display: grid;
    align-content: start;
    gap: 0.45rem;
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: white;
    padding: 0.9rem;
}

.studio-academy-flow span {
    display: inline-grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    background: var(--studio-gold);
    color: var(--studio-navy);
    font-weight: 900;
}

.studio-academy-flow h3 {
    margin: 0;
    color: var(--studio-navy);
    font-size: 1rem;
    letter-spacing: 0;
}

.studio-academy-flow p {
    margin: 0;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.48;
}

.studio-presentation-page {
    display: grid;
    gap: 1.25rem;
    background: #101726;
    padding: 2rem;
}

.studio-slide {
    position: relative;
    display: grid;
    align-content: center;
    min-height: min(78vh, 46rem);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #111827;
    color: white;
    padding: clamp(2rem, 5vw, 4rem);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.studio-slide h1 {
    max-width: 15ch;
    margin: 0;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.95;
    letter-spacing: 0;
    text-transform: uppercase;
    z-index: 1;
}

.studio-slide > p:first-child {
    width: fit-content;
    margin: 0 0 1rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 1;
}

.studio-slide > p:not(:first-child) {
    max-width: 48rem;
    margin: 1.1rem 0 0;
    font-size: clamp(1.15rem, 2.2vw, 1.7rem);
    line-height: 1.34;
    z-index: 1;
}

.studio-slide ul {
    display: grid;
    gap: 0.55rem;
    max-width: 50rem;
    margin: 1.25rem 0 0;
    padding-left: 1.3rem;
    font-size: clamp(1.2rem, 2.4vw, 1.85rem);
    line-height: 1.3;
    z-index: 1;
}

.studio-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
}

.studio-slide-cover {
    background: #111827;
}

.studio-slide-cover h1 {
    max-width: 12ch;
}

.studio-slide-cover > p:not(:first-child) {
    max-width: 34rem;
}

.studio-slide-light {
    background: var(--studio-paper);
    color: var(--studio-navy);
}

.studio-slide-image {
    background: var(--studio-blue);
    color: var(--studio-navy);
}

.studio-slide-dark {
    background: #111827;
}

.studio-slide-red {
    background: var(--studio-red);
}

@media (max-width: 900px) {
    .studio-resource-section,
    .studio-presentation-page {
        padding: 2rem 1rem;
    }

    .studio-resource-grid,
    .studio-academy-flow,
    .studio-academy-runbook-hero .studio-workshop-hero-grid,
    .studio-academy-reflection-list {
        grid-template-columns: 1fr;
    }

    .studio-academy-runbook-hero .studio-category-copy h1 {
        font-size: 2.55rem;
    }

    .studio-resource-steps li {
        grid-template-columns: 1fr;
    }

    .studio-resource-steps span {
        grid-row: auto;
    }

    .studio-slide {
        min-height: 32rem;
        aspect-ratio: auto;
    }

    .studio-slide h1 {
        font-size: 2.7rem;
    }
}

@media print {
    .studio-header,
    .studio-footer,
    .studio-button-row {
        display: none;
    }

    .studio-category-hero,
    .studio-resource-section {
        background: white;
        padding: 1rem 0;
    }

    .studio-panel,
    .studio-resource-steps li,
    .studio-academy-flow section {
        box-shadow: none;
    }

    .studio-presentation-page {
        background: white;
        padding: 0;
    }

    .studio-slide {
        page-break-after: always;
        border-radius: 0;
        box-shadow: none;
    }
}

.studio-practical-section {
    background: white;
    padding: 4rem 0;
}

.studio-practical-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
    align-items: start;
    gap: 1.5rem;
}

.studio-practical-intro {
    display: grid;
    gap: 1rem;
}

.studio-practical-intro > p {
    max-width: 42rem;
    margin: 0;
}

.studio-process-list {
    display: grid;
    gap: 0.75rem;
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
}

.studio-process-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    border-left: 4px solid var(--studio-blue);
    background: var(--studio-surface);
    padding: 0.9rem;
}

.studio-process-list strong {
    display: block;
    color: var(--studio-navy);
}

.studio-process-list p {
    margin: 0.2rem 0 0;
    color: #334155;
    line-height: 1.5;
}

.studio-practical-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

.studio-panel,
.studio-legal-card,
.studio-terms-card {
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: var(--studio-paper);
    box-shadow: 0 12px 28px rgba(7, 18, 37, 0.08);
}

.studio-practical-card {
    padding: 1.25rem;
}

.studio-practical-card h2 {
    margin: 0;
    color: var(--studio-navy);
    font-size: 1.35rem;
}

.studio-practical-card p {
    margin: 0.65rem 0 0;
}

.studio-contact {
    background: var(--studio-blue);
    padding: 4rem 0;
}

.studio-contact-stack {
    gap: 1.2rem;
}

.studio-contact-intro {
    max-width: 46rem;
    margin: 0 auto;
    text-align: center;
}

.studio-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 18rem));
    justify-content: center;
    gap: 1rem;
}

.studio-contact-card {
    min-height: 0;
    border: 1px solid rgba(7, 18, 37, 0.14);
    border-radius: 8px;
    background: var(--studio-paper);
    box-shadow: 0 12px 28px rgba(7, 18, 37, 0.1);
    padding: 1rem;
    text-align: left;
}

.studio-contact-card span {
    color: var(--studio-red);
    font-size: 1.35rem;
}

.studio-contact-card h3 {
    margin: 0.4rem 0 0.2rem;
    color: var(--studio-navy);
}

@media (max-width: 980px) {
    .studio-category-hero-grid,
    .studio-workshop-hero-grid,
    .studio-workshop-content-layout,
    .studio-practical-layout {
        grid-template-columns: 1fr;
    }

    .studio-category-copy h1 {
        max-width: 15ch;
        font-size: 3.1rem;
    }

    .studio-hero-summary {
        max-width: 42rem;
    }

    .studio-offer-grid {
        grid-template-columns: 1fr;
    }

    .studio-workshop-summary {
        max-width: 42rem;
    }
}

@media (max-width: 760px) {
    .studio-header-inner,
    .studio-container {
        width: min(100% - 2rem, 76rem);
    }

    .studio-header-inner {
        flex-wrap: wrap;
        row-gap: 0.55rem;
    }

    .studio-main-nav {
        display: none;
    }

    .studio-category-hero {
        padding: 1.45rem 0 1.65rem;
    }

    .studio-category-hero-grid {
        gap: 1rem;
    }

    .studio-category-copy {
        gap: 0.95rem;
    }

    .studio-category-copy h1 {
        max-width: 12ch;
        font-size: 2.35rem;
        line-height: 1;
    }

    .studio-category-intro {
        font-size: 1rem;
    }

    .studio-button-row {
        align-items: stretch;
        flex-direction: column;
    }

    .studio-button-primary,
    .studio-button-secondary {
        width: 100%;
    }

    .studio-quick-facts {
        flex-wrap: wrap;
        overflow: visible;
        padding-bottom: 0;
    }

    .studio-quick-facts li {
        flex: 0 1 auto;
        max-width: 100%;
    }

    .studio-hero-summary {
        padding: 0.8rem;
    }

    .studio-hero-media {
        min-height: 9.5rem;
    }

    .studio-category-image {
        height: 8.5rem;
        padding: 0.75rem;
    }

    .studio-workshop-media {
        min-height: 10rem;
        aspect-ratio: 16 / 8;
    }

    .studio-workshop-image {
        height: 100%;
        padding: 0;
    }

    .studio-hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .studio-workshop-stats {
        grid-template-columns: 1fr;
    }

    .studio-workshop-stats div:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .studio-hero-stats div {
        padding: 0.62rem;
    }

    .studio-lesson-flow {
        display: none;
    }

    .studio-offer-section,
    .studio-practical-section,
    .studio-contact {
        padding: 2.4rem 0;
    }

    .studio-section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.9rem;
    }

    .studio-section-header h2,
    .studio-practical-intro h2,
    .studio-contact h2 {
        font-size: 1.75rem;
    }

    .studio-section-link,
    .studio-offer-action {
        width: 100%;
    }

    .studio-offer-media {
        min-height: 9.5rem;
    }

    .studio-offer-card img {
        height: 9.5rem;
    }

    .studio-offer-fact-grid {
        grid-template-columns: 1fr;
    }

    .studio-workshop-content-section {
        padding: 2.4rem 0;
    }

    .studio-workshop-detail-card,
    .studio-workshop-side-card {
        padding: 1rem;
    }

    .studio-practical-card {
        padding: 1rem;
    }

    .studio-contact-grid {
        grid-template-columns: 1fr;
    }
}


/* Pricing requirements and public document actions */
.studio-requirement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.studio-requirement-grid li,
.studio-pricing-quote-panel {
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: var(--studio-paper);
    box-shadow: 0 12px 28px rgba(7, 18, 37, 0.08);
}

.studio-requirement-grid li {
    padding: 1.15rem;
}

.studio-requirement-grid strong {
    display: block;
    color: var(--studio-navy);
    font-size: 1.08rem;
}

.studio-requirement-grid p {
    margin: 0.55rem 0 0;
    color: #334155;
    line-height: 1.56;
}

.studio-pricing-quote-band {
    background: white;
}

.studio-pricing-quote-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.35rem;
}

.studio-pricing-quote-panel h2 {
    margin: 0.55rem 0 0;
    color: var(--studio-navy);
    font-size: 1.85rem;
    line-height: 1.1;
}

.studio-pricing-quote-panel p:not(.studio-section-kicker) {
    margin: 0.65rem 0 0;
    color: #334155;
    line-height: 1.58;
}

.studio-home-offer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.studio-terms-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.studio-terms-card header p {
    margin: 0.25rem 0 0;
}

.studio-print-button {
    white-space: nowrap;
}

@media (max-width: 980px) {
    .studio-requirement-grid,
    .studio-pricing-quote-panel {
        grid-template-columns: 1fr;
    }

    .studio-home-offer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .studio-requirement-grid,
    .studio-home-offer-grid {
        grid-template-columns: 1fr;
    }

    .studio-print-button,
    .studio-pricing-quote-panel .studio-button-primary {
        width: 100%;
    }
}

@media print {
    .studio-header,
    .studio-contact,
    .studio-footer,
    .studio-print-button {
        display: none !important;
    }

    .studio-terms,
    .studio-site,
    body {
        background: white !important;
    }

    .studio-terms {
        padding: 0;
    }

    .studio-terms .studio-container {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .studio-terms-card {
        border: 0;
        box-shadow: none;
        padding: 0;
    }
}


/* Landing letter: make the manifesto feel like a personal note */
.studio-home-grid {
    align-items: center;
}

.studio-letter-panel {
    position: relative;
    isolation: isolate;
    min-height: auto;
    border: 1px solid rgba(7, 18, 37, 0.16);
    border-radius: 3px;
    background:
        linear-gradient(90deg, transparent 0 2.35rem, rgba(230, 0, 18, 0.46) 2.35rem 2.43rem, transparent 2.43rem),
        repeating-linear-gradient(180deg, transparent 0 1.86rem, rgba(16, 23, 38, 0.035) 1.88rem 1.93rem),
        #fffaf2;
    box-shadow:
        0 1.2rem 2.2rem rgba(7, 18, 37, 0.16),
        0 0.25rem 0 rgba(7, 18, 37, 0.05);
    padding: 2.35rem 2.25rem 1.65rem 3.35rem;
    color: #101726;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 1.02rem;
    line-height: 1.72;
    transform: rotate(-1.2deg);
}

.studio-letter-panel::before {
    content: "";
    position: absolute;
    top: -0.8rem;
    left: 2.2rem;
    z-index: -1;
    width: 8.6rem;
    height: 1.9rem;
    border: 1px solid rgba(7, 18, 37, 0.08);
    background: rgba(255, 250, 242, 0.54);
    box-shadow: 0 0.35rem 0.8rem rgba(7, 18, 37, 0.08);
    transform: rotate(-2.5deg);
}

.studio-letter-panel::after {
    content: "";
    position: absolute;
    right: 1.15rem;
    bottom: 1.15rem;
    width: 5.8rem;
    height: 0.16rem;
    border-radius: 999px;
    background: var(--studio-red);
    opacity: 0.88;
    transform: rotate(-3deg);
}

.studio-letter-panel p {
    margin: 0 0 1.08rem;
}

.studio-letter-panel strong {
    color: #0b1220;
    font-weight: 900;
    background: linear-gradient(180deg, transparent 64%, rgba(230, 0, 18, 0.11) 64%);
}

.studio-letter-footer {
    margin-top: 1.65rem;
    border-top: 1px solid rgba(16, 23, 38, 0.12);
    padding-top: 1rem;
}

.studio-letter-footer p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.98rem;
}

.studio-letter-panel .studio-letter-footer a {
    border: 1px solid rgba(230, 0, 18, 0.35);
    border-radius: 999px;
    background: rgba(230, 0, 18, 0.07);
    color: var(--studio-red);
    padding: 0.58rem 0.85rem;
    box-shadow: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-style: normal;
    font-size: 0.92rem;
}

.studio-letter-panel .studio-letter-footer a:hover {
    background: var(--studio-red);
    color: white;
}

@media (max-width: 1100px) {
    .studio-letter-panel {
        max-width: 36rem;
        transform: none;
    }
}

@media (max-width: 760px) {
    .studio-letter-panel {
        padding: 1.65rem 1.25rem 1.35rem 2.35rem;
        font-size: 1rem;
        line-height: 1.62;
    }

    .studio-letter-panel::before {
        left: 1.35rem;
        width: 6.6rem;
        height: 1.55rem;
    }

    .studio-letter-panel::after {
        width: 4.2rem;
    }
}

/* Public home and pricing cleanup */
.studio-home-offer-section {
    padding-top: 3.2rem;
}

.studio-home-offer-section .studio-section-header {
    margin-bottom: 1.1rem;
}

.studio-home-offer-card {
    grid-template-rows: 8.8rem auto;
    gap: 0.8rem;
    align-content: start;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.studio-home-offer-card:nth-child(1) {
    background-image: linear-gradient(rgba(255, 250, 242, 0.08), rgba(255, 250, 242, 0.08)), url("/assets/workshop-animatie-cut-out.jpg");
}

.studio-home-offer-card:nth-child(2) {
    background-image: linear-gradient(rgba(255, 250, 242, 0.08), rgba(255, 250, 242, 0.08)), url("/assets/workshop-film-vloggen.jpg");
}

.studio-home-offer-card:nth-child(3) {
    background-image: linear-gradient(rgba(255, 250, 242, 0.08), rgba(255, 250, 242, 0.08)), url("/assets/workshop-fotografie-portret.jpg");
}

.studio-home-offer-card:nth-child(4) {
    background-image: linear-gradient(rgba(255, 250, 242, 0.08), rgba(255, 250, 242, 0.08)), url("/assets/workshop-digitaal-ai-tools.jpg");
}

.studio-home-offer-card:nth-child(5) {
    background-image: linear-gradient(rgba(255, 250, 242, 0.08), rgba(255, 250, 242, 0.08)), url("/assets/workshop-multimedia-game-ontwerp.jpg");
}

.studio-home-offer-card:nth-child(6) {
    background-image: linear-gradient(rgba(255, 250, 242, 0.08), rgba(255, 250, 242, 0.08)), url("/assets/workshop-audio-electronic-beats.jpg");
}

.studio-home-offer-card:hover {
    border-color: rgba(230, 0, 18, 0.28);
    box-shadow: 0 16px 34px rgba(7, 18, 37, 0.13);
    transform: translateY(-2px);
}

.studio-home-offer-card::before {
    content: "";
    position: absolute;
    inset: 0.9rem 0.9rem 3.15rem;
    z-index: 1;
    border-radius: 8px;
    background: var(--studio-sage) center / cover no-repeat;
}

.studio-home-offer-card::after {
    content: "";
    position: absolute;
    inset: -2.2rem -1.8rem -4.6rem;
    z-index: 4;
    pointer-events: none;
    background: center / contain no-repeat;
    transform: scale(1.16);
    filter:
        drop-shadow(3px 0 0 rgba(255, 255, 255, 0.95))
        drop-shadow(-3px 0 0 rgba(255, 255, 255, 0.95))
        drop-shadow(0 3px 0 rgba(255, 255, 255, 0.95))
        drop-shadow(0 -3px 0 rgba(255, 255, 255, 0.95))
        drop-shadow(2px 2px 0 rgba(255, 255, 255, 0.88))
        drop-shadow(-2px 2px 0 rgba(255, 255, 255, 0.88))
        drop-shadow(2px -2px 0 rgba(255, 255, 255, 0.88))
        drop-shadow(-2px -2px 0 rgba(255, 255, 255, 0.88))
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.55))
        drop-shadow(0 0 14px rgba(255, 255, 255, 0.28))
        drop-shadow(0 3px 2px rgba(7, 18, 37, 0.28));
}

.studio-home-offer-card[href="/animatie/"]::after {
    background-image: url("/assets/animatie.svg");
}

.studio-home-offer-card[href="/film/"]::after {
    background-image: url("/assets/film.svg");
}

.studio-home-offer-card[href="/fotografie/"]::after {
    background-image: url("/assets/fotografie.svg");
}

.studio-home-offer-card[href="/digitaal/"]::after {
    background-image: url("/assets/digitaal.svg");
}

.studio-home-offer-card[href="/multimedia/"]::after {
    background-image: url("/assets/multimedia.svg");
}

.studio-home-offer-card[href="/audio/"]::after {
    background-image: url("/assets/audio.svg");
}

.studio-home-offer-card:nth-child(1)::before {
    background-image: url("/assets/workshop-animatie-cut-out.jpg");
}

.studio-home-offer-card[href="/animatie/"]::before {
    background-image: url("/assets/workshop-animatie-cut-out.jpg");
}

.studio-home-offer-card:nth-child(2)::before {
    background-image: url("/assets/workshop-film-vloggen.jpg");
}

.studio-home-offer-card[href="/film/"]::before {
    background-image: url("/assets/workshop-film-vloggen.jpg");
}

.studio-home-offer-card:nth-child(3)::before {
    background-image: url("/assets/workshop-fotografie-portret.jpg");
}

.studio-home-offer-card[href="/fotografie/"]::before {
    background-image: url("/assets/workshop-fotografie-portret.jpg");
}

.studio-home-offer-card:nth-child(4)::before {
    background-image: url("/assets/workshop-digitaal-ai-tools.jpg");
}

.studio-home-offer-card[href="/digitaal/"]::before {
    background-image: url("/assets/workshop-digitaal-ai-tools.jpg");
}

.studio-home-offer-card:nth-child(5)::before {
    background-image: url("/assets/workshop-multimedia-game-ontwerp.jpg");
}

.studio-home-offer-card[href="/multimedia/"]::before {
    background-image: url("/assets/workshop-multimedia-game-ontwerp.jpg");
}

.studio-home-offer-card:nth-child(6)::before {
    background-image: url("/assets/workshop-audio-electronic-beats.jpg");
}

.studio-home-offer-card[href="/audio/"]::before {
    background-image: url("/assets/workshop-audio-electronic-beats.jpg");
}

.studio-home-offer-card strong {
    align-self: start;
    position: relative;
    z-index: 5;
    color: var(--studio-navy);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 1),
        0 -1px 0 rgba(255, 255, 255, 1),
        1px 0 0 rgba(255, 255, 255, 1),
        -1px 0 0 rgba(255, 255, 255, 1),
        0 0 12px rgba(255, 255, 255, 0.9);
}

.studio-home-offer-card img,
.studio-category-image,
.studio-offer-card img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
}

.studio-home-offer-card img {
    height: 100%;
}

.studio-home-offer-card > img {
    position: absolute;
    inset: -1.4rem -1.1rem -4.1rem;
    z-index: 2;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    background-color: transparent !important;
    object-fit: contain;
    padding: 0 !important;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.34);
    filter:
        drop-shadow(5px 0 0 rgba(255, 255, 255, 1))
        drop-shadow(-5px 0 0 rgba(255, 255, 255, 1))
        drop-shadow(0 5px 0 rgba(255, 255, 255, 1))
        drop-shadow(0 -5px 0 rgba(255, 255, 255, 1))
        drop-shadow(4px 4px 0 rgba(255, 255, 255, 1))
        drop-shadow(-4px 4px 0 rgba(255, 255, 255, 1))
        drop-shadow(4px -4px 0 rgba(255, 255, 255, 1))
        drop-shadow(-4px -4px 0 rgba(255, 255, 255, 1))
        drop-shadow(0 0 10px rgba(255, 255, 255, 1))
        drop-shadow(0 0 22px rgba(255, 255, 255, 0.95))
        drop-shadow(0 0 36px rgba(255, 255, 255, 0.85))
        drop-shadow(0 3px 2px rgba(7, 18, 37, 0.28));
    mix-blend-mode: normal;
}

.studio-offer-card img {
    height: 12rem;
}

.studio-home-offer-media {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    border-radius: 8px;
    background: var(--studio-sage);
    z-index: 1;
}

.studio-home-offer-card .studio-home-offer-photo,
.studio-home-offer-card .studio-home-offer-lineart {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
}

.studio-home-offer-card .studio-home-offer-photo {
    object-fit: cover;
    object-position: center;
    overflow: hidden;
    z-index: 1;
}

.studio-home-offer-card .studio-home-offer-lineart {
    inset: -2.2rem -2rem -4.8rem;
    width: calc(100% + 4rem);
    height: calc(100% + 7rem);
    object-fit: contain;
    padding: 0 !important;
    opacity: 0;
    z-index: 2;
    transform: scale(1.2);
    filter:
        drop-shadow(3px 0 0 rgba(255, 255, 255, 0.95))
        drop-shadow(-3px 0 0 rgba(255, 255, 255, 0.95))
        drop-shadow(0 3px 0 rgba(255, 255, 255, 0.95))
        drop-shadow(0 -3px 0 rgba(255, 255, 255, 0.95))
        drop-shadow(2px 2px 0 rgba(255, 255, 255, 0.88))
        drop-shadow(-2px 2px 0 rgba(255, 255, 255, 0.88))
        drop-shadow(2px -2px 0 rgba(255, 255, 255, 0.88))
        drop-shadow(-2px -2px 0 rgba(255, 255, 255, 0.88))
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.55))
        drop-shadow(0 0 14px rgba(255, 255, 255, 0.28))
        drop-shadow(0 3px 2px rgba(7, 18, 37, 0.28));
    mix-blend-mode: normal;
}

.studio-category-image {
    object-fit: contain;
    padding: 1.25rem;
    background: rgba(255, 250, 242, 0.35);
}

.studio-offer-card img {
    object-fit: cover;
    padding: 0;
}

.studio-site .studio-workshop-image {
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
}

.studio-site .studio-workshop-image-vloggen {
    object-position: center calc(50% - 30px);
}

.studio-home-pricing-strip {
    background: var(--studio-surface);
    padding: 3.4rem 0;
}

.studio-home-pricing-layout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
}

.studio-home-pricing-layout h2 {
    margin: 0;
    color: var(--studio-navy);
    font-size: 2.1rem;
    line-height: 1.1;
    white-space: nowrap;
}

.studio-home-pricing-layout > div:first-child {
    display: flex;
    align-items: center;
}

.studio-home-pricing-layout > div:first-child p {
    display: none;
}

.studio-home-price-card-grid,
.studio-pricing-hero-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.studio-home-price-card {
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: var(--studio-paper);
    box-shadow: 0 10px 22px rgba(7, 18, 37, 0.08);
    padding: 1rem;
}

.studio-home-price-card > span {
    display: block;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.studio-home-price-card strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--studio-red);
    font-size: 2rem;
    line-height: 1;
}

.studio-home-price-card p {
    margin: 0.45rem 0 0;
    color: var(--studio-navy);
    font-weight: 800;
}

.studio-pricing-hero {
    padding: 5rem 0 2.7rem;
}

.studio-pricing-hero-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(31rem, 1.18fr);
    align-items: center;
}

.studio-pricing-hero-cards {
    align-self: center;
}

.studio-pricing-hero-cards .studio-pricing-card {
    display: grid;
    align-content: start;
    min-height: 10.5rem;
}

.studio-pricing-hero-cards .studio-pricing-card p:first-child {
    margin-bottom: 0.8rem;
}

.studio-pricing-hero-cards .studio-pricing-card > strong {
    font-size: 2.35rem;
}

/* Planning analytics */
.analytics-page {
    max-width: none;
}

.analytics-assumption-panel {
    display: grid;
    grid-template-columns: minmax(12rem, 0.28fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    border-radius: 28px;
    background: rgba(255, 251, 245, 0.84);
    border: 1px solid rgba(54, 66, 72, 0.1);
    box-shadow: 0 24px 50px rgba(77, 64, 42, 0.08);
    padding: 1.3rem;
}

.analytics-assumption-panel h2 {
    margin: 0;
    color: #1d2733;
}

.analytics-mode-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.85rem;
    padding: 0.25rem;
    border-radius: 8px;
    background: rgba(36, 74, 90, 0.07);
    border: 1px solid rgba(36, 74, 90, 0.09);
}

.analytics-mode-tab {
    display: grid;
    gap: 0.08rem;
    min-width: 7rem;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #3f4b57;
    padding: 0.5rem 0.7rem;
    text-align: left;
    cursor: pointer;
}

.analytics-mode-tab strong {
    color: inherit;
    line-height: 1.1;
}

.analytics-mode-tab span {
    color: #697379;
    font-size: 0.78rem;
}

.analytics-mode-tab:hover,
.analytics-mode-tab-active {
    background: #fffaf1;
    color: #1d2733;
    box-shadow: 0 8px 22px rgba(77, 64, 42, 0.08);
}

.analytics-mode-tab:disabled {
    cursor: wait;
    opacity: 0.72;
}

.analytics-assumption-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: 0.8rem;
    min-width: 0;
}

.analytics-assumption-field {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.analytics-assumption-field span,
.analytics-source-card span,
.analytics-mini-grid span {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #746d61;
}

.analytics-source-stack {
    display: grid;
    gap: 0.8rem;
}

.analytics-source-card {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(54, 66, 72, 0.08);
    padding: 0.85rem;
}

.analytics-source-card strong {
    color: #1d2733;
    font-size: 1.35rem;
    line-height: 1;
    overflow-wrap: anywhere;
}

.analytics-source-card small {
    color: #697379;
}

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

.analytics-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
    gap: 1.2rem;
    min-width: 0;
}

.analytics-teacher-panel,
.analytics-detail-panel {
    min-width: 0;
}

.analytics-detail-panel {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.analytics-detail-head h2 {
    margin: 0;
    color: #1d2733;
}

.analytics-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.analytics-mini-grid div,
.analytics-gap-card {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
    border-radius: 18px;
    background: rgba(36, 74, 90, 0.07);
    border: 1px solid rgba(36, 74, 90, 0.08);
    padding: 0.85rem;
}

.analytics-mini-grid strong {
    color: #1d2733;
    overflow-wrap: anywhere;
}

.analytics-grid-shell {
    max-height: 34rem;
}

.analytics-table td strong,
.analytics-table td small {
    display: block;
}

.analytics-table td small {
    margin-top: 0.18rem;
    color: #697379;
}

.analytics-select-row {
    cursor: pointer;
}

.analytics-select-row:hover td,
.analytics-select-row-active td {
    background: rgba(223, 237, 246, 0.96);
}

.analytics-positive {
    color: #18694a;
}

.analytics-negative {
    color: #9f2f2f;
}

.analytics-gap-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.analytics-gap-card {
    background: rgba(255, 255, 255, 0.76);
}

.analytics-gap-card strong {
    color: #1d2733;
    font-size: 1.85rem;
    line-height: 1;
}

.analytics-gap-card span {
    color: #3f4b57;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
    .studio-home-pricing-layout,
    .studio-pricing-hero-grid {
        grid-template-columns: 1fr;
    }

    .studio-home-pricing-layout .studio-button-primary {
        width: fit-content;
    }
}

@media (max-width: 760px) {
    .studio-home-price-card-grid,
    .studio-pricing-hero-cards {
        grid-template-columns: 1fr;
    }

    .studio-home-pricing-layout .studio-button-primary {
        width: 100%;
    }

    .studio-pricing-hero {
        padding: 2.2rem 0 2.4rem;
    }

    .studio-pricing-hero-cards .studio-pricing-card {
        min-height: 0;
    }
}

@media (max-width: 1200px) {
    .analytics-assumption-grid,
    .analytics-kpi-grid,
    .analytics-gap-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .analytics-workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .teacher-cancellation-controls,
    .booking-cancel-grid,
    .teacher-sick-audit-controls {
        grid-template-columns: 1fr;
    }

    .teacher-sick-audit-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .analytics-assumption-panel {
        grid-template-columns: 1fr;
    }

    .analytics-assumption-grid,
    .analytics-kpi-grid,
    .analytics-mini-grid,
    .analytics-gap-grid {
        grid-template-columns: 1fr;
    }
}

.calendar-status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.calendar-status-panel {
    border-radius: 24px;
    background: rgba(255, 251, 245, 0.84);
    border: 1px solid rgba(54, 66, 72, 0.1);
    box-shadow: 0 24px 50px rgba(77, 64, 42, 0.08);
    padding: 1.2rem;
    min-width: 0;
}

.calendar-status-panel h2 {
    margin: 0;
    color: #1d2733;
}

.calendar-status-panel p:last-child {
    margin-bottom: 0;
    color: #52606a;
}

.calendar-status-panel-warning {
    border-color: rgba(125, 47, 47, 0.2);
}

.settings-schoolyear-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.settings-schoolyear-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(24rem, 1fr);
    gap: 1rem;
    align-items: end;
}

.settings-schoolyear-controls {
    display: grid;
    grid-template-columns: auto;
    gap: 0.75rem;
    align-items: end;
    justify-content: end;
}

.calendar-audit-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 34rem);
    gap: 1.2rem;
    align-items: end;
    padding: 1.3rem;
}

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

.calendar-audit-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.calendar-workspace {
    align-items: start;
}

.calendar-toggle-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 1rem 0;
    color: #3f4b57;
    font-weight: 700;
}

.calendar-toggle-row-compact {
    margin: 0;
}

.calendar-action-stack {
    display: grid;
    gap: 0.65rem;
}

.workshop-cancel-reason-field {
    min-width: min(18rem, 100%);
}

.calendar-filter-block {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(36, 74, 90, 0.12);
}

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

.calendar-row-list,
.calendar-log-list,
.calendar-audit-list {
    display: grid;
    gap: 0.75rem;
}

.calendar-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(12rem, 18rem);
    gap: 1rem;
    align-items: start;
    border-radius: 18px;
    border: 1px solid rgba(36, 74, 90, 0.12);
    background: rgba(255, 255, 255, 0.68);
    padding: 1rem;
}

.calendar-row-selected {
    border-color: rgba(36, 74, 90, 0.42);
    background: rgba(223, 237, 246, 0.82);
}

.calendar-row-check {
    display: grid;
    place-items: center;
    min-height: 2.6rem;
}

.calendar-row-main h3 {
    margin: 0;
    color: #1d2733;
    overflow-wrap: anywhere;
}

.calendar-row-main p,
.calendar-row-main small,
.calendar-row-meta small {
    display: block;
    color: #52606a;
    overflow-wrap: anywhere;
}

.calendar-row-meta {
    display: grid;
    justify-items: end;
    gap: 0.45rem;
    text-align: right;
}

.calendar-state-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 1.85rem;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    background: rgba(154, 108, 36, 0.13);
    color: #7b5318;
    font-weight: 800;
}

.calendar-state-pill-synced {
    background: rgba(24, 105, 74, 0.13);
    color: #18694a;
}

.calendar-state-pill-warning {
    background: rgba(154, 108, 36, 0.15);
    color: #7b5318;
}

.calendar-state-pill-danger {
    background: rgba(125, 47, 47, 0.13);
    color: #7d2f2f;
}

.calendar-state-pill-neutral {
    background: rgba(36, 74, 90, 0.1);
    color: #244a5a;
}

.calendar-audit-row {
    display: grid;
    gap: 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(36, 74, 90, 0.12);
    background: rgba(255, 255, 255, 0.7);
    padding: 1rem;
}

.calendar-audit-row-placed {
    border-color: rgba(24, 105, 74, 0.16);
}

.calendar-audit-row-missing,
.calendar-audit-row-calendar-read-failed,
.calendar-audit-row-description-mismatch,
.calendar-audit-row-mismatch {
    border-color: rgba(125, 47, 47, 0.2);
}

.calendar-audit-row-calendar-only {
    border-color: rgba(154, 108, 36, 0.22);
}

.calendar-audit-row-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.calendar-audit-row-head strong,
.calendar-audit-row-grid strong {
    color: #1d2733;
    overflow-wrap: anywhere;
}

.calendar-audit-row-head small,
.calendar-audit-row-grid span,
.calendar-audit-row-grid small {
    color: #52606a;
    overflow-wrap: anywhere;
}

.calendar-audit-row-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.calendar-audit-row-grid > div {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    border-radius: 14px;
    background: rgba(36, 74, 90, 0.05);
    padding: 0.85rem;
}

.calendar-audit-action-button {
    justify-self: start;
    margin-top: 0.25rem;
}

.calendar-result-panel {
    padding: 1.3rem;
}

.calendar-log-row {
    display: grid;
    grid-template-columns: minmax(5rem, 8rem) minmax(0, 1fr) minmax(0, 2fr);
    gap: 0.75rem;
    align-items: start;
    border-radius: 14px;
    padding: 0.85rem;
    border: 1px solid rgba(36, 74, 90, 0.1);
    background: rgba(255, 255, 255, 0.72);
}

.calendar-log-row strong {
    color: #1d2733;
}

.calendar-log-row span,
.calendar-log-row small {
    color: #52606a;
    overflow-wrap: anywhere;
}

.calendar-log-row-ok {
    border-color: rgba(24, 105, 74, 0.18);
}

.calendar-log-row-warning {
    border-color: rgba(125, 47, 47, 0.22);
}

@media (max-width: 1050px) {
    .calendar-status-strip,
    .settings-schoolyear-grid,
    .settings-schoolyear-panel,
    .settings-schoolyear-controls,
    .calendar-audit-controls,
    .calendar-audit-form,
    .calendar-audit-summary,
    .calendar-row,
    .calendar-log-row,
    .calendar-audit-row-head,
    .calendar-audit-row-grid {
        grid-template-columns: 1fr;
    }

    .calendar-row-meta {
        justify-items: start;
        text-align: left;
    }
}

/* Materials inventory */
.materials-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(22rem, 0.9fr);
    gap: 1rem;
    align-items: start;
}

.materials-table-panel,
.materials-editor-panel {
    display: grid;
    gap: 1rem;
    min-width: 0;
    border: 1px solid rgba(36, 74, 90, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    padding: 1rem;
}

.materials-agenda-panel {
    grid-column: 2;
}

.materials-panel-head,
.materials-stat-strip,
.materials-refresh-summary,
.materials-toggle-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.materials-panel-head {
    justify-content: space-between;
}

.materials-panel-head h2 {
    margin: 0;
}

.materials-stat-strip span,
.materials-refresh-summary span {
    display: inline-flex;
    border: 1px solid rgba(36, 74, 90, 0.14);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
    color: #52606a;
    background: rgba(36, 74, 90, 0.04);
}

.materials-table-wrap {
    overflow: auto;
    border: 1px solid rgba(36, 74, 90, 0.11);
    border-radius: 8px;
}

.materials-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 46rem;
}

.materials-table th,
.materials-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(36, 74, 90, 0.09);
    text-align: left;
    vertical-align: top;
}

.materials-drag-column {
    width: 2.4rem;
}

.materials-table th {
    color: #72522b;
    font-size: 0.75rem;
    letter-spacing: 0;
    text-transform: uppercase;
    background: rgba(229, 218, 199, 0.55);
}

.materials-table td small,
.materials-table td span {
    display: block;
    color: #52606a;
}

.materials-row {
    cursor: grab;
}

.materials-row:hover {
    background: rgba(36, 74, 90, 0.05);
}

.materials-row:active {
    cursor: grabbing;
}

.materials-drag-handle {
    color: #8d6b43;
    font-weight: 800;
    text-align: center;
    user-select: none;
}

.materials-row-muted {
    filter: grayscale(1);
    opacity: 0.58;
}

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

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

.materials-agenda-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) max-content;
    gap: 0.85rem;
    align-items: end;
}

.materials-form-grid label,
.materials-agenda-controls label,
.materials-wide-field {
    display: grid;
    gap: 0.35rem;
}

.materials-form-grid span,
.materials-agenda-controls span,
.materials-wide-field span {
    color: #72522b;
    font-family: Georgia, serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.materials-agenda-refresh-button {
    min-height: 2.75rem;
    white-space: nowrap;
}

.materials-toggle-row label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #27343b;
}

.materials-agenda-list {
    display: grid;
    gap: 0.65rem;
    max-height: 22rem;
    overflow: auto;
}

.materials-agenda-list > div {
    display: grid;
    gap: 0.25rem;
    border: 1px solid rgba(36, 74, 90, 0.11);
    border-radius: 8px;
    padding: 0.75rem;
    background: rgba(36, 74, 90, 0.04);
}

.materials-agenda-list span,
.materials-agenda-list small {
    color: #52606a;
    overflow-wrap: anywhere;
}

.material-rentals-page {
    max-width: min(100% - 2rem, 92rem);
    margin: 0 auto;
}

.material-rentals-summary {
    align-items: center;
}

.material-rental-week-panel {
    display: grid;
    gap: 0.75rem;
}

.material-rental-table-wrap {
    max-height: 32rem;
}

.material-rental-table {
    min-width: 62rem;
}

.material-rental-table td a,
.material-rental-table td small,
.material-rental-table td span {
    display: block;
}

.material-rental-table td a {
    color: var(--bp-accent-strong);
    font-weight: 700;
    text-decoration: none;
}

.material-rental-table td a:hover,
.material-rental-table td a:focus-visible {
    text-decoration: underline;
}

.material-rental-row-carryover td {
    background: color-mix(in srgb, var(--bp-surface-soft) 82%, var(--bp-accent) 6%);
}

.material-rental-row-manual td {
    background: color-mix(in srgb, var(--bp-surface-soft) 82%, var(--bp-danger) 5%);
}

.material-rental-shortage-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--bp-danger) 28%, var(--bp-border));
    border-radius: 999px;
    padding: 0.3rem 0.58rem;
    color: var(--bp-danger-strong);
    background: color-mix(in srgb, var(--bp-danger) 7%, var(--bp-surface));
    font-size: 0.78rem;
}

.material-rental-shortages {
    display: grid;
    gap: 0.45rem;
}

.material-rental-shortages > div {
    display: grid;
    gap: 0.18rem;
    border: 1px solid color-mix(in srgb, var(--bp-danger) 20%, var(--bp-border));
    border-radius: 8px;
    padding: 0.62rem;
    background: color-mix(in srgb, var(--bp-danger) 5%, var(--bp-surface));
}

.material-rental-shortages span {
    color: var(--bp-muted);
}

@media (max-width: 1050px) {
    .materials-layout,
    .materials-agenda-panel,
    .materials-agenda-controls,
    .materials-form-grid,
    .materials-form-grid-two {
        grid-template-columns: 1fr;
        grid-column: auto;
    }

    .materials-agenda-refresh-button {
        justify-self: start;
    }
}

@media (max-width: 720px) {
    .material-rentals-page {
        max-width: 100%;
    }

    .material-rental-table-wrap {
        max-height: none;
        overflow: visible;
    }

    .material-rental-table {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .material-rental-table thead {
        display: none;
    }

    .material-rental-table tbody {
        display: grid;
        gap: 0.55rem;
    }

    .material-rental-table tr {
        display: grid;
        gap: 0.45rem;
        border: 1px solid var(--bp-border);
        border-radius: 8px;
        padding: 0.65rem;
        background: var(--bp-surface);
    }

    .material-rental-table td {
        display: grid;
        grid-template-columns: minmax(5.8rem, 34%) minmax(0, 1fr);
        gap: 0.55rem;
        border: 0;
        padding: 0;
        background: transparent !important;
        min-width: 0;
    }

    .material-rental-table td::before {
        color: var(--bp-muted);
        content: "";
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0;
        line-height: 1.25;
        text-transform: uppercase;
    }

    .material-rental-table td:nth-child(1)::before {
        content: "Docent";
    }

    .material-rental-table td:nth-child(2)::before {
        content: "Set";
    }

    .material-rental-table td:nth-child(3)::before {
        content: "Status";
    }

    .material-rental-table td:nth-child(4)::before {
        content: "Workshops";
    }

    .material-rental-table td:nth-child(5)::before {
        content: "Kosten";
    }

    .material-rental-table td > *,
    .material-rental-table td a,
    .material-rental-table td small,
    .material-rental-table td span,
    .material-rental-table td strong {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .material-rental-row-carryover {
        background: color-mix(in srgb, var(--bp-surface-soft) 82%, var(--bp-accent) 6%);
    }

    .material-rental-row-manual {
        background: color-mix(in srgb, var(--bp-surface-soft) 82%, var(--bp-danger) 5%);
    }
}

/* WYSIWYG site content polish */
.studio-letter-panel {
    background:
        repeating-linear-gradient(180deg, transparent 0 1.86rem, rgba(16, 23, 38, 0.035) 1.88rem 1.93rem),
        #fffaf2;
}

.studio-letter-panel::before {
    content: "";
    position: absolute;
    top: -0.8rem;
    left: 2.2rem;
    z-index: -1;
    display: block;
    width: 8.6rem;
    height: 1.9rem;
    border: 1px solid rgba(7, 18, 37, 0.08);
    background: rgba(255, 250, 242, 0.54);
    box-shadow: 0 0.35rem 0.8rem rgba(7, 18, 37, 0.08);
    transform: rotate(-2.5deg);
}

.studio-letter-panel::after {
    display: none;
}

.studio-home-pricing-strip {
    background: var(--studio-surface);
    padding: 3.25rem 0;
}

.studio-home-pricing-layout {
    display: grid;
    grid-template-columns: minmax(10rem, 0.4fr) minmax(0, 1fr) auto;
    gap: 1.1rem;
    align-items: center;
}

.studio-home-pricing-layout h2 {
    margin: 0;
    color: var(--studio-navy);
    font-size: 2rem;
    line-height: 1.08;
    white-space: normal;
}

.studio-home-price-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    min-width: 0;
}

.studio-home-price-card {
    display: grid;
    align-content: start;
    min-width: 0;
    min-height: 8rem;
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: var(--studio-paper);
    box-shadow: 0 10px 22px rgba(7, 18, 37, 0.08);
    padding: 1rem;
}

.studio-home-price-card > span {
    display: block;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.studio-home-price-card strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--studio-red);
    font-size: clamp(1.65rem, 3vw, 2.05rem);
    line-height: 1;
    overflow-wrap: anywhere;
}

.studio-home-price-card p {
    margin: 0.45rem 0 0;
    color: var(--studio-navy);
    font-weight: 800;
}

.studio-included-grid li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.6rem;
}

.studio-included-grid li > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--studio-blue);
    color: var(--studio-navy);
    font-size: 0.9rem;
}

.studio-included-grid li > span:first-child .site-cms-inline-edit {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
    min-width: 1ch;
}

.studio-included-grid li > .site-cms-inline-edit {
    display: inline;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.site-cms-nav-edit,
.site-cms-footer-link,
.site-cms-footer-copy {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.site-cms-format-toolbar {
    position: fixed;
    z-index: 9999;
    display: inline-flex;
    gap: 0.25rem;
    border: 1px solid rgba(7, 18, 37, 0.16);
    border-radius: 8px;
    background: #101726;
    box-shadow: 0 0.8rem 1.8rem rgba(7, 18, 37, 0.22);
    padding: 0.25rem;
}

.site-cms-format-toolbar[hidden] {
    display: none;
}

.site-cms-format-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.site-cms-format-toolbar button:hover {
    background: rgba(255, 255, 255, 0.14);
}

.studio-rich-text a,
.studio-site a[href^="http"] {
    text-underline-offset: 0.18em;
}

@media (max-width: 1100px) {
    .studio-home-pricing-layout {
        grid-template-columns: 1fr;
    }

    .studio-home-pricing-layout .studio-button-primary {
        width: fit-content;
    }
}

@media (max-width: 760px) {
    .studio-home-price-card-grid,
    .studio-included-grid {
        grid-template-columns: 1fr;
    }

    .studio-home-pricing-layout .studio-button-primary {
        width: 100%;
    }
}

/* Homepage photo haze: quiet in the center, visible only toward the edges. */
.studio-home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--studio-blue);
}

.studio-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url("/assets/homepage-blur-background-small.jpg") center / cover no-repeat;
    opacity: 0.34;
}

.studio-home-hero > .studio-container {
    position: relative;
    z-index: 1;
}

/* Keep the homepage category tiles light: one real photo per tile, no duplicate CSS images or filtered line-art layers. */
.studio-home-offer-card {
    background-image: none !important;
    contain: layout paint style;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.studio-home-offer-card:hover {
    transform: none;
}

.studio-home-offer-card::before,
.studio-home-offer-card::after {
    content: none;
    display: none;
    background-image: none;
    filter: none;
}

.studio-home-offer-media {
    overflow: hidden;
}

.studio-home-offer-card .studio-home-offer-lineart {
    display: none;
    filter: none;
}

.studio-results-hero {
    background: linear-gradient(180deg, #74d0cf 0%, #e2f0e8 100%);
    padding: 3.2rem 0 2.8rem;
}

.studio-results-hero-inner {
    display: grid;
    gap: 1rem;
}

.studio-results-hero-layout {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 15rem) minmax(23rem, 32rem);
    gap: 1.25rem;
}

.studio-results-hero-copy {
    display: grid;
    gap: 0.85rem;
}

.studio-results-hero h1 {
    max-width: 16ch;
    margin: 0;
    color: var(--studio-navy);
    font-size: clamp(3rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: 0;
}

.studio-results-detail-list {
    display: grid;
    gap: 0.48rem;
    margin: 0;
    padding: 0;
}

.studio-results-detail-list div {
    min-width: 0;
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: rgba(255, 250, 242, 0.78);
    padding: 0.56rem 0.65rem;
}

.studio-results-detail-list dt {
    margin: 0 0 0.16rem;
    color: rgba(7, 18, 37, 0.56);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.studio-results-detail-list dd {
    margin: 0;
    color: var(--studio-navy);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.studio-results-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(8rem, 10rem));
    gap: 0.75rem;
    margin: 0.5rem 0 0;
}

.studio-results-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    max-width: 100%;
}

.studio-results-meta-grid div {
    min-width: 0;
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: rgba(255, 250, 242, 0.78);
    padding: 0.56rem 0.65rem;
}

.studio-results-meta-grid span {
    display: block;
    margin: 0 0 0.18rem;
    color: rgba(7, 18, 37, 0.56);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.studio-results-meta-grid strong {
    display: block;
    overflow: hidden;
    color: var(--studio-navy);
    font-size: 0.9rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
}

.studio-results-summary div {
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: var(--studio-paper);
    padding: 0.8rem;
}

.studio-results-summary dt {
    margin: 0 0 0.25rem;
    color: rgba(7, 18, 37, 0.62);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.studio-results-summary dd {
    margin: 0;
    color: var(--studio-navy);
    font-size: 1.4rem;
    font-weight: 900;
}

.studio-results-feedback {
    display: grid;
    gap: 0.55rem;
    width: 100%;
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: var(--studio-paper);
    padding: 0.75rem;
    color: var(--studio-navy);
    box-shadow: 0 14px 32px rgba(7, 18, 37, 0.1);
}

.studio-results-feedback h2 {
    margin: 0;
    color: var(--studio-navy);
    font-size: 1.05rem;
    line-height: 1.1;
}

.studio-results-mobile-feedback {
    display: none;
}

.studio-results-mobile-feedback summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    min-height: 2.9rem;
    border: 1px solid var(--studio-red);
    border-radius: 8px;
    background: var(--studio-red);
    padding: 0.72rem 0.85rem;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255, 0, 43, 0.18);
}

.studio-results-mobile-feedback summary::-webkit-details-marker {
    display: none;
}

.studio-results-mobile-feedback summary::marker {
    content: "";
}

.studio-results-mobile-feedback summary::after {
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(45deg) translateY(-0.1rem);
    transition: transform 0.16s ease;
}

.studio-results-mobile-feedback[open] summary::after {
    transform: rotate(225deg) translate(-0.1rem, -0.1rem);
}

.studio-results-mobile-feedback-panel {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.studio-feedback-stars {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
}

.studio-feedback-star {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 1.9rem;
    border: 1px solid rgba(7, 18, 37, 0.16);
    border-radius: 8px;
    background: #ffffff;
    color: rgba(7, 18, 37, 0.32);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.studio-feedback-star:hover,
.studio-feedback-star:focus-visible,
.studio-feedback-star.is-active {
    border-color: rgba(255, 0, 43, 0.45);
    color: var(--studio-red);
}

.studio-feedback-textarea {
    width: 100%;
    min-height: 4.8rem;
    resize: vertical;
    border: 1px solid rgba(7, 18, 37, 0.16);
    border-radius: 8px;
    padding: 0.8rem;
    color: var(--studio-navy);
    font: inherit;
    line-height: 1.45;
}

.studio-feedback-textarea:focus {
    outline: 2px solid rgba(255, 0, 43, 0.32);
    outline-offset: 2px;
}

.studio-feedback-submit {
    width: 100%;
    justify-content: center;
}

.studio-feedback-submit:disabled {
    opacity: 0.68;
    cursor: progress;
}

.studio-feedback-message {
    margin: -0.2rem 0 0;
    color: var(--studio-navy);
    font-size: 0.82rem;
    font-weight: 800;
}

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

.studio-feedback-question > span {
    color: rgba(7, 18, 37, 0.78);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.22;
}

.studio-feedback-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem;
    width: 7.6rem;
}

.studio-feedback-toggle button {
    min-height: 1.65rem;
    border: 1px solid rgba(7, 18, 37, 0.16);
    border-radius: 999px;
    background: #ffffff;
    color: var(--studio-navy);
    font: inherit;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.studio-feedback-toggle button:hover,
.studio-feedback-toggle button:focus-visible,
.studio-feedback-toggle button.is-active {
    border-color: var(--studio-navy);
    background: var(--studio-navy);
    color: #ffffff;
}

.studio-results-content {
    background: var(--studio-surface);
    padding: 3rem 0 4rem;
}

.studio-results-page-block + .studio-results-page-block .studio-results-hero {
    border-top: 1px solid rgba(7, 18, 37, 0.08);
}

.studio-results-stack {
    display: grid;
    gap: 2.2rem;
}

.studio-results-empty {
    padding: 1.25rem;
}

.studio-results-empty h2 {
    margin: 0;
    color: var(--studio-navy);
}

.studio-results-empty p {
    margin: 0.6rem 0 0;
}

.studio-results-album {
    display: grid;
    gap: 1rem;
}

.studio-results-download-all {
    flex: 0 0 auto;
    white-space: nowrap;
}

.studio-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1rem;
}

.studio-result-media-card {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--studio-border);
    border-radius: 8px;
    background: var(--studio-paper);
    box-shadow: 0 12px 28px rgba(7, 18, 37, 0.08);
}

.studio-result-media-frame {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: #071225;
}

.studio-result-media-frame img,
.studio-result-media-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.studio-result-video-load {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0;
    color: #ffffff;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    background: #071225;
    border: 0;
    cursor: pointer;
}

.studio-result-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.03);
    transition: transform 0.18s ease, filter 0.18s ease;
}

.studio-result-video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 0.65rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(7, 18, 37, 0.12) 0%, rgba(7, 18, 37, 0.72) 100%);
}

.studio-result-video-load:hover .studio-result-video-preview,
.studio-result-video-load:focus-visible .studio-result-video-preview {
    filter: saturate(1.12) brightness(1.04);
    transform: scale(1.03);
}

.studio-result-video-play {
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 999px;
    background: var(--studio-red);
    box-shadow: 0 0 0 0.55rem rgba(255, 255, 255, 0.12);
}

.studio-result-video-play::before {
    width: 0;
    height: 0;
    margin-left: 0.2rem;
    border-top: 0.58rem solid transparent;
    border-bottom: 0.58rem solid transparent;
    border-left: 0.9rem solid #ffffff;
    content: "";
}

.studio-result-media-card figcaption {
    min-height: 2.8rem;
    margin: 0;
    padding: 0.72rem 0.8rem;
    color: var(--studio-navy);
    font-weight: 900;
    line-height: 1.35;
}

.studio-result-media-card figcaption span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-result-media-action {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 0.35rem;
    color: var(--studio-red);
    font-size: 0.76rem;
    font-weight: 900;
    text-decoration: none;
}

.studio-result-media-action:hover,
.studio-result-media-action:focus-visible {
    text-decoration: underline;
}

@media (max-width: 760px) {
    .studio-results-hero {
        padding: 1.6rem 0 1.9rem;
    }

    .studio-results-hero-layout {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .studio-results-hero h1 {
        max-width: 13ch;
        font-size: 2.35rem;
    }

    .studio-results-detail-list--desktop,
    .studio-results-feedback--desktop {
        display: none;
    }

    .studio-results-mobile-feedback {
        display: block;
    }

    .studio-results-mobile-feedback-panel .studio-results-detail-list {
        gap: 0.42rem;
    }

    .studio-results-mobile-feedback-panel .studio-results-feedback {
        box-shadow: 0 10px 24px rgba(7, 18, 37, 0.08);
    }

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

    .studio-results-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .studio-results-content {
        padding: 2rem 0 2.8rem;
    }

    .studio-section-header:has(.studio-results-download-all) {
        align-items: start;
        flex-direction: column;
    }

    .studio-results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .studio-results-meta-grid {
        grid-template-columns: 1fr;
    }

    .studio-feedback-question {
        grid-template-columns: 1fr;
    }

    .studio-feedback-toggle {
        width: 100%;
    }
}

.feedback-page {
    gap: 1rem;
}

.feedback-list {
    display: grid;
    gap: 1rem;
}

.feedback-card {
    display: grid;
    gap: 1rem;
    border: 1px solid rgba(54, 66, 72, 0.1);
    border-radius: 8px;
    background: rgba(255, 251, 245, 0.84);
    padding: 1rem;
    box-shadow: 0 18px 38px rgba(77, 64, 42, 0.08);
}

.feedback-card header,
.feedback-card footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.feedback-card header h2 {
    margin: 0;
    color: #1c2733;
    font-size: 1.15rem;
}

.feedback-card header p,
.feedback-card footer {
    color: #4f5968;
    font-size: 0.86rem;
}

.feedback-card blockquote {
    margin: 0;
    border: 1px solid rgba(36, 74, 90, 0.14);
    border-radius: 6px;
    padding: 0.7rem 0.85rem;
    background: rgba(36, 74, 90, 0.04);
    color: #1c2733;
    line-height: 1.5;
}

.feedback-card footer {
    flex-wrap: wrap;
    justify-content: flex-start;
}

.feedback-card footer a {
    color: #244a5a;
    font-weight: 800;
    text-decoration: none;
}

.feedback-card footer a:hover,
.feedback-card footer a:focus-visible {
    text-decoration: underline;
}

.feedback-rating-pill {
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(36, 74, 90, 0.1);
    color: #244a5a;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 900;
}

@media (max-width: 720px) {
    .feedback-card header {
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .studio-academy-runbook-hero .studio-category-copy h1 {
        max-width: 100%;
        font-size: 2rem;
        overflow-wrap: anywhere;
    }
}

.booking-stage-line {
    --booking-stage-color: #60717b;
    border-color: color-mix(in srgb, var(--booking-stage-color) 36%, rgba(36, 74, 90, 0.12)) !important;
}

.directory-list-item.booking-stage-line,
.page .directory-list-item.booking-stage-line {
    padding-left: 0.72rem;
}

.teacher-detail-head.booking-stage-line,
.page-header-card.booking-stage-line,
.booking-detail-summary.booking-stage-line {
    padding-left: 1rem;
}

.booking-stage-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
    margin: 0.35rem 0 0;
    color: #53606c;
    font-size: 0.82rem;
    font-weight: 700;
}

.booking-stage-chip {
    display: inline-flex !important;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    min-height: 1.35rem;
    padding: 0.12rem 0.42rem;
    border: 1px solid color-mix(in srgb, var(--booking-stage-color) 42%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--booking-stage-color) 12%, #ffffff);
    color: color-mix(in srgb, var(--booking-stage-color) 72%, #1d2733);
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1.1;
    vertical-align: middle;
}

.booking-stage-draft,
.booking-stage-chip-draft {
    --booking-stage-color: #7b8792;
}

.booking-stage-docent,
.booking-stage-chip-docent {
    --booking-stage-color: #c8372d;
}

.booking-stage-planning,
.booking-stage-chip-planning {
    --booking-stage-color: #c45b1d;
}

.booking-stage-docent-confirm,
.booking-stage-chip-docent-confirm {
    --booking-stage-color: #d08a1e;
}

.booking-stage-school-confirm,
.booking-stage-chip-school-confirm {
    --booking-stage-color: #b38a1f;
}

.booking-stage-project-confirm,
.booking-stage-chip-project-confirm {
    --booking-stage-color: #8f5a96;
}

.booking-stage-scheduled,
.booking-stage-chip-scheduled {
    --booking-stage-color: #476da8;
}

.booking-stage-invoice,
.booking-stage-chip-invoice {
    --booking-stage-color: #bd4f76;
}

.booking-stage-invoice-open,
.booking-stage-chip-invoice-open {
    --booking-stage-color: #6b5db3;
}

.booking-stage-done,
.booking-stage-chip-done {
    --booking-stage-color: #0f8a70;
}

.booking-stage-paid,
.booking-stage-chip-paid {
    --booking-stage-color: #16835d;
}

.booking-stage-offer,
.booking-stage-chip-offer {
    --booking-stage-color: #c45173;
}

.booking-stage-cancelled,
.booking-stage-chip-cancelled {
    --booking-stage-color: #60717b;
}

.offer-flow-page .result-mail-template-textarea {
    min-height: 10rem;
}

.offer-flow-list {
    display: grid;
    gap: 0.44rem;
}

.offer-flow-card {
    display: grid;
    border: 1px solid color-mix(in oklch, var(--bp-border) 76%, var(--bp-accent) 24%);
    border-radius: 8px;
    background: color-mix(in oklch, var(--bp-surface) 94%, var(--bp-accent) 6%);
    overflow: hidden;
}

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

.offer-flow-header-copy {
    display: grid;
    gap: 0.18rem;
}

.offer-flow-header .page-intro {
    margin-top: 0;
}

.offer-flow-mode-actions {
    align-items: center;
}

.offer-flow-page .toolbar-button,
.offer-flow-page .toolbar-button-secondary,
.offer-flow-page .toolbar-button-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 1.9rem;
    border-radius: 8px;
    font-size: 0.74rem;
    letter-spacing: 0;
    white-space: nowrap;
    transition:
        background-color 160ms ease-out,
        border-color 160ms ease-out,
        color 160ms ease-out,
        box-shadow 160ms ease-out;
}

.offer-flow-page .toolbar-button {
    border-color: color-mix(in oklch, var(--bp-accent-strong) 76%, var(--bp-ink) 24%);
    background: color-mix(in oklch, var(--bp-accent-strong) 82%, var(--bp-ink) 18%);
    color: color-mix(in oklch, var(--bp-surface) 96%, var(--bp-accent) 4%);
}

.offer-flow-page .toolbar-button:hover,
.offer-flow-page .toolbar-button:focus-visible {
    border-color: var(--bp-ink);
    background: var(--bp-ink);
    color: color-mix(in oklch, var(--bp-surface) 96%, var(--bp-accent) 4%);
}

.offer-flow-page .toolbar-button-secondary {
    border-color: color-mix(in oklch, var(--bp-border) 74%, var(--bp-accent-strong) 26%);
    background: color-mix(in oklch, var(--bp-surface-soft) 90%, var(--bp-accent) 10%);
    color: var(--bp-text);
}

.offer-flow-page .toolbar-button-secondary:hover,
.offer-flow-page .toolbar-button-secondary:focus-visible {
    border-color: color-mix(in oklch, var(--bp-accent-strong) 56%, var(--bp-border) 44%);
    background: color-mix(in oklch, var(--bp-accent) 18%, var(--bp-surface) 82%);
    color: var(--bp-ink);
}

.offer-flow-page .toolbar-button-danger {
    border-color: color-mix(in oklch, var(--bp-danger) 36%, var(--bp-border) 64%);
    background: color-mix(in oklch, var(--bp-danger) 10%, var(--bp-surface) 90%);
    color: var(--bp-danger-strong);
}

.offer-flow-page .toolbar-button-danger:hover,
.offer-flow-page .toolbar-button-danger:focus-visible {
    border-color: var(--bp-danger-strong);
    background: var(--bp-danger);
    color: color-mix(in oklch, var(--bp-surface) 96%, var(--bp-danger) 4%);
}

.offer-flow-page .toolbar-button:disabled,
.offer-flow-page .toolbar-button-secondary:disabled,
.offer-flow-page .toolbar-button-danger:disabled {
    opacity: 0.48;
}

.offer-flow-icon-button {
    width: 1.9rem;
    padding-inline: 0;
    font-size: 0.95rem;
}

.offer-flow-stats {
    grid-template-columns: repeat(4, minmax(7rem, 1fr));
    gap: 0.45rem;
}

.page--backoffice .offer-flow-stat {
    display: grid;
    gap: 0.2rem;
    padding: 0.48rem 0.6rem;
    border-radius: 8px;
    background: color-mix(in oklch, var(--bp-surface) 90%, var(--bp-accent) 10%);
}

.offer-flow-stat .stat-label {
    margin: 0;
}

.offer-flow-stat .stat-row {
    display: flex;
    align-items: baseline;
    gap: 0.34rem;
}

.offer-flow-stat .stat-row strong {
    color: var(--bp-ink);
    font-size: 1.15rem;
    line-height: 1;
}

.offer-flow-stat .stat-row span {
    color: var(--bp-muted);
    font-size: 0.72rem;
}

.offer-flow-work-row {
    display: grid;
    grid-template-columns: minmax(19rem, 1fr) minmax(25rem, 1.34fr) minmax(18.5rem, 0.82fr);
    align-items: center;
    gap: 0.55rem;
    min-height: 3.45rem;
    padding: 0.42rem 0.52rem;
}

.offer-flow-main-cell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.offer-flow-title-stack {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.offer-flow-title-stack h2 {
    margin: 0;
    overflow: hidden;
    color: var(--bp-ink);
    font-size: 0.92rem;
    line-height: 1.16;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-flow-title-stack p {
    margin: 0;
    overflow: hidden;
    color: var(--bp-muted);
    font-size: 0.74rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-flow-status {
    --offer-status-color: var(--bp-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.8rem;
    min-height: 1.35rem;
    padding: 0.18rem 0.4rem;
    border: 1px solid color-mix(in oklch, var(--offer-status-color) 42%, var(--bp-border) 58%);
    border-radius: 999px;
    background: color-mix(in oklch, var(--offer-status-color) 10%, var(--bp-surface) 90%);
    color: color-mix(in oklch, var(--offer-status-color) 78%, var(--bp-ink) 22%);
    font-size: 0.64rem;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
}

.offer-flow-status-draft {
    --offer-status-color: oklch(53% 0.045 246);
}

.offer-flow-status-sent {
    --offer-status-color: oklch(50% 0.105 198);
}

.offer-flow-status-accepted {
    --offer-status-color: oklch(48% 0.11 151);
}

.offer-flow-status-skipped {
    --offer-status-color: oklch(50% 0.032 250);
}

.offer-flow-status-review {
    --offer-status-color: var(--bp-danger);
}

.offer-flow-facts {
    display: grid;
    grid-template-columns: minmax(8rem, 1.2fr) minmax(8rem, 1.12fr) minmax(4.3rem, 0.44fr) minmax(5.4rem, 0.58fr);
    gap: 0.48rem 0.76rem;
    min-width: 0;
    margin: 0;
}

.offer-flow-facts div {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.offer-flow-facts dt {
    color: var(--bp-muted);
    font-size: 0.58rem;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
}

.offer-flow-facts dd {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--bp-text);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-flow-row-actions {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: flex-end;
    gap: 0.22rem;
    min-width: 0;
    padding-left: 0.35rem;
}

.offer-flow-row-actions .toolbar-button {
    width: auto;
}

.offer-flow-warning {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0.2rem 0.44rem;
    border: 1px solid color-mix(in oklch, var(--bp-danger) 34%, var(--bp-border) 66%);
    border-radius: 8px;
    background: color-mix(in oklch, var(--bp-danger) 8%, var(--bp-surface) 92%);
    color: var(--bp-danger-strong);
    font-size: 0.68rem;
    font-weight: 850;
}

.offer-flow-detail {
    border-top: 1px solid color-mix(in oklch, var(--bp-border) 82%, var(--bp-accent) 18%);
    background: color-mix(in oklch, var(--bp-surface-soft) 88%, var(--bp-accent) 12%);
}

.offer-flow-detail:not([open]) {
    border-top: 0;
    background: transparent;
}

.offer-flow-detail summary {
    display: flex;
    align-items: center;
    width: max-content;
    min-height: 1.72rem;
    margin: 0 0.52rem 0.42rem;
    padding: 0.22rem 0.48rem;
    border: 1px solid color-mix(in oklch, var(--bp-border) 68%, var(--bp-accent-strong) 32%);
    border-radius: 8px;
    background: var(--bp-surface);
    color: var(--bp-text);
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 850;
    list-style: none;
}

.offer-flow-detail summary::-webkit-details-marker {
    display: none;
}

.offer-flow-detail summary::before {
    content: "▸";
    margin-right: 0.35rem;
    color: var(--bp-accent-strong);
    font-size: 0.68rem;
}

.offer-flow-detail[open] summary::before {
    content: "▾";
}

.offer-flow-detail summary:hover,
.offer-flow-detail summary:focus-visible {
    border-color: var(--bp-accent-strong);
    color: var(--bp-ink);
    outline: none;
}

.offer-flow-detail summary:focus-visible {
    box-shadow: 0 0 0 2px color-mix(in oklch, var(--bp-accent) 45%, transparent);
}

.offer-flow-detail[open] summary {
    margin-top: 0.32rem;
}

.offer-flow-detail-grid {
    display: grid;
    grid-template-columns: minmax(16rem, 0.82fr) minmax(24rem, 1.18fr);
    gap: 0.6rem;
    padding: 0 0.52rem 0.52rem;
}

.offer-flow-line-panel,
.offer-flow-mail-panel {
    display: grid;
    align-content: start;
    gap: 0.48rem;
    min-width: 0;
}

.offer-flow-history-panel {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.offer-flow-history-head {
    padding-bottom: 0;
}

.offer-flow-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.offer-flow-link-row {
    display: grid;
    gap: 0.35rem;
    overflow-wrap: anywhere;
}

.offer-flow-link-item {
    display: grid;
    gap: 0.1rem;
}

.offer-flow-lines {
    display: grid;
    gap: 0;
    margin: 0;
    border: 1px solid color-mix(in oklch, var(--bp-border) 78%, var(--bp-accent) 22%);
    border-radius: 8px;
    overflow: hidden;
}

.offer-flow-lines > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.3rem 0.75rem;
    align-items: center;
    padding: 0.45rem 0.55rem;
    border-bottom: 1px solid color-mix(in oklch, var(--bp-border) 76%, var(--bp-surface) 24%);
    background: var(--bp-surface);
}

.offer-flow-lines > div:last-child {
    border-bottom: 0;
}

.offer-flow-lines span {
    overflow-wrap: anywhere;
    color: var(--bp-text);
    font-size: 0.76rem;
    line-height: 1.22;
}

.offer-flow-lines small {
    color: var(--bp-muted);
    font-size: 0.66rem;
}

.offer-flow-lines strong {
    grid-row: span 2;
    color: var(--bp-ink);
    font-size: 0.76rem;
    font-variant-numeric: tabular-nums;
}

.offer-flow-mail-panel .teacher-field {
    gap: 0.18rem;
}

.offer-flow-mail-panel .teacher-input {
    border-radius: 8px;
    background: var(--bp-surface);
}

.offer-flow-muted {
    margin: 0;
    color: var(--bp-muted);
    font-size: 0.78rem;
}

.offer-flow-empty-state {
    display: grid;
    gap: 0.2rem;
    padding: 1rem;
    border: 1px dashed color-mix(in oklch, var(--bp-border) 64%, var(--bp-accent-strong) 36%);
    border-radius: 8px;
    background: color-mix(in oklch, var(--bp-surface) 88%, var(--bp-accent) 12%);
}

.offer-flow-empty-state h2,
.offer-flow-empty-state p {
    margin: 0;
}

.offer-flow-empty-state h2 {
    color: var(--bp-ink);
    font-size: 0.98rem;
}

.offer-flow-empty-state p {
    color: var(--bp-muted);
    font-size: 0.78rem;
}

.studio-availability-hero {
    min-height: 0;
    padding: 2.2rem 0 1.85rem;
    border-bottom: 1px solid #c8dedb;
}

.studio-availability-content {
    padding: 1.65rem 0 3.25rem;
    background: #f4f7f6;
}

.studio-availability-stack {
    display: grid;
    gap: 1rem;
}

.studio-availability-hero .studio-results-hero-inner {
    gap: 0.55rem;
}

.studio-availability-hero h1 {
    max-width: none;
    font-size: 2.75rem;
    line-height: 1.02;
}

.studio-availability-hero .studio-category-intro {
    max-width: 42rem;
    margin: 0;
}

.studio-availability-count,
.studio-availability-warning,
.studio-availability-message,
.studio-availability-instructions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border: 1px solid #d7e2e2;
    border-radius: 6px;
    background: #ffffff;
    color: #13202a;
}

.studio-availability-count strong {
    font-size: 1.05rem;
}

.studio-availability-count-ok {
    border-color: #7bc4ad;
    background: #eefaf5;
}

.studio-availability-count-low,
.studio-availability-warning {
    border-color: #e4b36f;
    background: #fff7e8;
}

.studio-availability-message {
    border-color: #79b9d0;
    background: #eef8fb;
}

.studio-availability-instructions {
    border-color: #b9d4d7;
    background: #ffffff;
    font-weight: 800;
}

.studio-availability-details {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #d7e2e2;
    border-radius: 8px;
    background: #ffffff;
    color: #13202a;
}

.studio-availability-details h2 {
    margin: 0;
    color: #13202a;
    font-size: 1rem;
    line-height: 1.2;
}

.studio-availability-details dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.studio-availability-details div {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.studio-availability-details dt {
    color: #60717c;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.studio-availability-details dd {
    margin: 0;
    color: #13202a;
    font-weight: 850;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.studio-availability-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1rem;
    align-items: start;
}

.studio-availability-month {
    padding: 1.05rem;
    border: 1px solid #dbe4e8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(19, 32, 42, 0.04);
}

.studio-availability-month h2 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.studio-availability-month-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-inline-size: 100%;
    min-block-size: 2rem;
    padding: 0.35rem 0.65rem;
    border: 2px solid #cbd9dd;
    border-radius: 7px;
    background: #ffffff;
    color: #17232d;
    font: inherit;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 1px 0 rgba(19, 32, 42, 0.08);
}

.studio-availability-month-button-open {
    border-color: #60bfa9;
    background: #eaf8f3;
    color: #0b2c2a;
}

.studio-availability-month-button-mixed {
    border-color: #e19a16;
    background: #fff2c7;
    color: #3c2a00;
}

.studio-availability-month-button-blocked {
    border-color: #d16b6b;
    background: #fff0f0;
    color: #7d1e22;
}

.studio-availability-month-button-disabled {
    border-color: #d7dfe3;
    background: #eef2f3;
    color: #87929a;
    cursor: not-allowed;
}

.studio-availability-weekdays,
.studio-availability-grid {
    display: grid;
    grid-template-columns: 2.25rem repeat(7, minmax(2rem, 1fr));
    gap: 0.42rem;
}

.studio-availability-weekdays {
    margin-bottom: 0.35rem;
    color: #5b6973;
    font-size: 0.72rem;
    font-weight: 900;
    text-align: center;
    align-items: center;
}

.studio-availability-weekday-label,
.studio-availability-weekday-button {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 1.45rem;
    font: inherit;
    font-weight: 900;
    line-height: 1;
    box-sizing: border-box;
}

.studio-availability-weekday-button {
    inline-size: 100%;
    border: 1px solid #cbd9dd;
    border-radius: 6px;
    background: #ffffff;
    color: #17232d;
    cursor: pointer;
    padding: 0;
}

.studio-availability-weekday-button-open {
    border-color: #60bfa9;
    background: #f1fbf7;
}

.studio-availability-weekday-button-blocked {
    border-color: #d16b6b;
    background: #fff0f0;
    color: #7d1e22;
}

.studio-availability-weekday-button-mixed {
    border-color: #e19a16;
    background: #fff2c7;
    color: #3c2a00;
}

.studio-availability-weekday-button-disabled {
    border-color: transparent;
    background: transparent;
    color: #87929a;
    cursor: not-allowed;
}

.studio-availability-day {
    display: grid;
    place-items: center;
    min-width: 0;
    aspect-ratio: 1;
    border: 2px solid #cbd9dd;
    border-radius: 8px;
    background: #ffffff;
    color: #17232d;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 1px 0 rgba(19, 32, 42, 0.08);
}

.studio-availability-day-empty {
    border-color: transparent;
    background: transparent;
    pointer-events: none;
}

.studio-availability-day-open {
    border-color: #60bfa9;
    background: #eaf8f3;
    color: #0b2c2a;
}

.studio-availability-day-blocked {
    border-color: #d16b6b;
    background: #fff0f0;
    color: #7d1e22;
}

.studio-availability-day-locked {
    border-color: #d7dfe3;
    background: #eef2f3;
    color: #87929a;
    cursor: not-allowed;
}

.studio-availability-day-past {
    border-color: #d7dfe3;
    background: #f4f6f7;
    color: #a0aab0;
    cursor: not-allowed;
    box-shadow: none;
}

.studio-availability-week-button {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    align-self: center;
    min-width: 0;
    inline-size: 1.75rem;
    block-size: 1.75rem;
    border: 2px solid #cbd9dd;
    border-radius: 7px;
    background: #ffffff;
    color: #17232d;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
    box-sizing: border-box;
    line-height: 1;
    padding: 0;
    text-align: center;
    box-shadow: 0 1px 0 rgba(19, 32, 42, 0.08);
}

.studio-availability-week-button-open {
    border-color: #60bfa9;
    background: #eaf8f3;
    color: #0b2c2a;
}

.studio-availability-week-button-mixed {
    border-color: #e19a16;
    background: #fff2c7;
    color: #3c2a00;
}

.studio-availability-week-button-blocked {
    border-color: #d16b6b;
    background: #fff0f0;
    color: #7d1e22;
}

.studio-availability-week-button-disabled {
    border-color: #d7dfe3;
    background: #eef2f3;
    color: #87929a;
    cursor: not-allowed;
}

.studio-availability-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.25rem;
    padding: 0.25rem 0 0;
}

@media (max-width: 900px) {
    .offer-flow-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .offer-flow-header {
        grid-template-columns: 1fr;
    }

    .offer-flow-mode-actions {
        justify-content: stretch;
    }

    .offer-flow-mode-actions .toolbar-button,
    .offer-flow-mode-actions a {
        flex: 1 1 auto;
    }

    .offer-flow-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .offer-flow-work-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .offer-flow-main-cell {
        grid-template-columns: 1fr;
    }

    .offer-flow-status {
        justify-self: start;
    }

    .offer-flow-facts,
    .offer-flow-meta-grid {
        grid-template-columns: 1fr;
    }

    .offer-flow-facts {
        gap: 0.35rem;
    }

    .offer-flow-row-actions {
        justify-content: stretch;
        min-width: 0;
    }

    .offer-flow-row-actions .toolbar-button {
        flex: 1 1 8rem;
    }

    .offer-flow-detail-grid {
        grid-template-columns: 1fr;
    }

    .studio-availability-calendar {
        grid-template-columns: 1fr;
    }

    .studio-availability-hero {
        padding: 1.6rem 0 1.5rem;
    }

    .studio-availability-hero h1 {
        font-size: 2.15rem;
    }

    .studio-availability-weekdays,
    .studio-availability-grid {
        grid-template-columns: 2rem repeat(7, minmax(1.75rem, 1fr));
        gap: 0.32rem;
    }

    .studio-availability-month {
        padding: 0.85rem;
    }

    .studio-availability-submit .studio-button-primary {
        width: 100%;
    }
}

/* Private backoffice shell: dense ledger workspace */
.page--backoffice {
    --bp-page-panel-shadow: none;
    --bp-page-shell-radius: 6px;
    --bp-gridline: color-mix(in srgb, var(--bp-accent) 14%, var(--bp-border));
    --bp-row-hover: color-mix(in srgb, var(--bp-accent) 8%, var(--bp-surface));
    --bp-row-selected: color-mix(in srgb, var(--bp-accent) 17%, var(--bp-surface));
    background: var(--bp-soft);
}

.page--backoffice .content-shell {
    max-width: none;
    padding: 0.55rem clamp(0.48rem, 1.3vw, 0.82rem) 0.9rem;
}

.page--backoffice .dashboard,
.page--backoffice .page-stack,
.page--backoffice .bookings-page,
.page--backoffice .teachers-page,
.page--backoffice .workshops-page,
.page--backoffice .directory-page,
.page--backoffice .route-planner-page,
.page--backoffice .finance-page,
.page--backoffice .workshop-flow-page,
.page--backoffice .feedback-page {
    gap: 0.52rem;
    max-width: none;
}

.page--backoffice .page-header-card,
.page--backoffice .formula-bar-panel,
.page--backoffice .grid-panel,
.page--backoffice .sheet-panel,
.page--backoffice .route-planner-panel,
.page--backoffice .surface-panel,
.page--backoffice .stat-panel,
.page--backoffice .table-panel,
.page--backoffice .attention-card,
.page--backoffice .booking-card,
.page--backoffice .booking-row-card,
.page--backoffice .teacher-list-panel,
.page--backoffice .teacher-detail-panel,
.page--backoffice .directory-list-panel,
.page--backoffice .directory-detail-panel,
.page--backoffice .directory-table-panel,
.page--backoffice .workshop-list-panel,
.page--backoffice .workshop-detail-panel,
.page--backoffice .finance-workbook-panel,
.page--backoffice .finance-admin-panel,
.page--backoffice .finance-cell-panel,
.page--backoffice .calendar-status-panel,
.page--backoffice .planning-calendar-edit-panel,
.page--backoffice .planning-calendar-context-card,
.page--backoffice .planning-tree-panel,
.page--backoffice .planning-capacity-panel,
.page--backoffice .planning-map-panel,
.page--backoffice .feedback-card {
    border-color: var(--bp-gridline);
    border-radius: 6px;
    background: var(--bp-surface);
    box-shadow: none;
}

.page--backoffice .page-header-card,
.page--backoffice .formula-bar-panel,
.page--backoffice .grid-panel,
.page--backoffice .sheet-panel,
.page--backoffice .route-planner-panel {
    padding: 0.52rem 0.62rem;
}

.page--backoffice .page-header-card {
    border-top-width: 1px;
}

.page--backoffice .page-header-card h1,
.page--backoffice .hero-panel h1 {
    font-size: 1.18rem;
    line-height: 1.08;
    letter-spacing: 0;
}

.page--backoffice .page-header-card h2,
.page--backoffice .panel-header h2,
.page--backoffice .table-header h2,
.page--backoffice .attention-card h2,
.page--backoffice .booking-card h3,
.page--backoffice .booking-row-card h3,
.page--backoffice .teacher-list-head h2,
.page--backoffice .teacher-detail-head h2,
.page--backoffice .directory-list-head h2,
.page--backoffice .workshop-list-head h2,
.page--backoffice .workshop-detail-head h2,
.page--backoffice .grid-toolbar-copy h2,
.page--backoffice .route-planner-head h2,
.page--backoffice .route-review-head h3,
.page--backoffice .route-day-head h4,
.page--backoffice .calendar-status-panel h2,
.page--backoffice .planning-calendar-head h2 {
    color: var(--bp-ink);
    font-size: 0.98rem;
    line-height: 1.12;
}

.page--backoffice .section-kicker,
.page--backoffice .stat-label,
.page--backoffice .metric-title,
.page--backoffice .panel-note,
.page--backoffice .teacher-field span,
.page--backoffice .workshop-meta-item span,
.page--backoffice .workshop-definition-list dt,
.page--backoffice .planner-field span,
.page--backoffice .finance-cell-panel dt,
.page--backoffice .finance-domain-table th,
.page--backoffice .directory-table th,
.page--backoffice .booking-grid th,
.page--backoffice .sheet-column-header,
.page--backoffice .finance-column-header {
    color: var(--bp-muted);
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page--backoffice .page-intro,
.page--backoffice .grid-toolbar-copy p,
.page--backoffice .booking-summary,
.page--backoffice .table-header p,
.page--backoffice .attention-card p,
.page--backoffice .workshop-copy,
.page--backoffice .workshop-promise,
.page--backoffice .calendar-status-panel p,
.page--backoffice .planning-calendar-context-card p {
    max-width: 92ch;
    color: var(--bp-muted);
    font-size: 0.8rem;
    line-height: 1.32;
}

.page--backoffice .toolbar-button,
.page--backoffice .toolbar-button-secondary,
.page--backoffice .toolbar-button-danger,
.page--backoffice .row-reset-button,
.page--backoffice .primary-action,
.page--backoffice .secondary-action {
    min-height: 1.74rem;
    padding: 0.24rem 0.44rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.12;
}

.page--backoffice .toolbar-button,
.page--backoffice .primary-action {
    border-color: color-mix(in srgb, var(--bp-accent) 78%, var(--bp-accent-strong));
    background: color-mix(in srgb, var(--bp-accent) 84%, var(--bp-surface));
    color: var(--bp-ink);
}

.page--backoffice .toolbar-button:hover,
.page--backoffice .toolbar-button:focus-visible,
.page--backoffice .primary-action:hover,
.page--backoffice .primary-action:focus-visible {
    border-color: var(--bp-accent-strong);
    background: color-mix(in srgb, var(--bp-accent) 70%, var(--bp-surface));
    color: var(--bp-ink);
}

.page--backoffice .toolbar-button-danger {
    border-color: color-mix(in srgb, var(--bp-danger) 72%, var(--bp-danger-strong));
    background: var(--bp-danger);
    color: color-mix(in srgb, var(--bp-surface) 96%, var(--bp-danger) 4%);
}

.page--backoffice .toolbar-button-danger:hover,
.page--backoffice .toolbar-button-danger:focus-visible {
    border-color: var(--bp-danger-strong);
    background: var(--bp-danger-strong);
}

.page--backoffice .toolbar-button-secondary,
.page--backoffice .row-reset-button,
.page--backoffice .secondary-action {
    border-color: var(--bp-gridline);
    background: var(--bp-surface-soft);
    color: var(--bp-text);
}

.page--backoffice .toolbar-button-secondary:hover,
.page--backoffice .toolbar-button-secondary:focus-visible,
.page--backoffice .row-reset-button:hover,
.page--backoffice .row-reset-button:focus-visible,
.page--backoffice .secondary-action:hover,
.page--backoffice .secondary-action:focus-visible {
    border-color: color-mix(in srgb, var(--bp-accent) 48%, var(--bp-border));
    background: var(--bp-row-hover);
    color: var(--bp-ink);
}

.page--backoffice .toolbar-button:focus-visible,
.page--backoffice .toolbar-button-secondary:focus-visible,
.page--backoffice .toolbar-button-danger:focus-visible,
.page--backoffice .row-reset-button:focus-visible,
.page--backoffice a:focus-visible,
.page--backoffice button:focus-visible,
.page--backoffice select:focus-visible,
.page--backoffice input:focus-visible,
.page--backoffice textarea:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--bp-accent) 72%, var(--bp-surface));
    outline-offset: 2px;
}

.page--backoffice .teacher-input,
.page--backoffice .directory-search,
.page--backoffice .grid-search,
.page--backoffice .grid-input,
.page--backoffice .grid-select,
.page--backoffice .formula-input,
.page--backoffice .formula-bar-panel textarea,
.page--backoffice .formula-bar-panel input,
.page--backoffice .finance-toggle,
.page--backoffice .planning-weekday-toggle {
    min-height: 1.74rem;
    padding: 0.24rem 0.4rem;
    border-color: var(--bp-gridline);
    border-radius: 6px;
    background: var(--bp-surface);
    color: var(--bp-text);
    font-size: 0.82rem;
}

.page--backoffice .sheet-shell,
.page--backoffice .readonly-sheet-shell,
.page--backoffice .grid-shell,
.page--backoffice .finance-grid-shell,
.page--backoffice .finance-table-shell {
    border-color: var(--bp-gridline);
    border-radius: 6px;
    background: var(--bp-surface);
}

.page--backoffice .sheet-toolbar,
.page--backoffice .readonly-sheet-toolbar,
.page--backoffice .sheet-formula-bar {
    border-color: var(--bp-gridline);
    border-radius: 6px;
    background: color-mix(in srgb, var(--bp-surface-soft) 82%, var(--bp-accent) 3%);
}

.page--backoffice .sheet-grid-cell,
.page--backoffice .readonly-sheet-grid-cell,
.page--backoffice .finance-table-cell,
.page--backoffice .directory-table td,
.page--backoffice .booking-grid td {
    border-color: var(--bp-gridline);
}

.page--backoffice .sheet-row:hover .sheet-grid-cell,
.page--backoffice .readonly-sheet-row:hover .readonly-sheet-cell,
.page--backoffice .directory-table tr:hover td,
.page--backoffice .booking-grid tr:hover td {
    background: var(--bp-row-hover);
}

.page--backoffice .sheet-cell-active,
.page--backoffice .sheet-cell-selected,
.page--backoffice .readonly-sheet-row[aria-selected="true"] .readonly-sheet-cell {
    background: var(--bp-row-selected);
    box-shadow: inset 0 0 0 2px var(--bp-accent-strong);
}

.page--backoffice .sheet-cell-warning,
.page--backoffice .validation-message,
.page--backoffice .finance-metric-warning .stat-row strong,
.page--backoffice .finance-metric-warning strong,
.page--backoffice .route-attention-meta strong {
    color: var(--bp-danger-strong);
}

.page--backoffice .sheet-cell-warning {
    background: color-mix(in srgb, var(--bp-danger) 8%, var(--bp-surface));
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bp-danger) 78%, var(--bp-surface));
}

.page--backoffice .attention-grid {
    display: grid;
    gap: 0;
    border: 1px solid var(--bp-gridline);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bp-surface);
}

.page--backoffice .attention-card {
    display: grid;
    grid-template-columns: minmax(8.5rem, 0.56fr) minmax(0, 1.55fr) minmax(12rem, 0.9fr) minmax(7rem, auto);
    gap: 0.42rem;
    align-items: start;
    padding: 0.42rem 0.52rem;
    border: 0;
    border-bottom: 1px solid var(--bp-gridline);
    border-radius: 0;
    background: var(--bp-surface);
}

.page--backoffice .attention-card:last-child {
    border-bottom: 0;
}

.page--backoffice .attention-card:hover {
    background: var(--bp-row-hover);
}

.page--backoffice .attention-card-head {
    display: grid;
    gap: 0.24rem;
    align-content: start;
}

.page--backoffice .attention-card h2 {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.18;
}

.page--backoffice .attention-issue-list,
.page--backoffice .attention-card > p {
    margin: 0;
}

.page--backoffice .attention-issue-list {
    display: grid;
    gap: 0.2rem;
}

.page--backoffice .attention-issue-list li {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.page--backoffice .attention-marker-row,
.page--backoffice .attention-meta {
    align-content: start;
    gap: 0.18rem;
    margin: 0;
}

.page--backoffice .attention-action {
    margin: 0;
    color: var(--bp-text);
    font-size: 0.78rem;
}

.page--backoffice .attention-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.2rem;
    margin: 0;
}

.page--backoffice .workshops-top-row .page-header-card,
.page--backoffice .workshops-sheet-host .sheet-panel,
.page--backoffice .workshops-sheet-host .readonly-sheet-panel,
.page--backoffice .workshops-sheet-host .sheet-shell,
.page--backoffice .workshops-sheet-host .readonly-sheet-shell {
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 1024px) {
    .page--backoffice .content-shell {
        padding: 0.58rem 0.7rem 0.9rem;
    }

    .page--backoffice .attention-card {
        grid-template-columns: minmax(7.5rem, 0.5fr) minmax(0, 1.4fr);
    }

    .page--backoffice .attention-card-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .page--backoffice .page-header-card,
    .page--backoffice .formula-bar-panel,
    .page--backoffice .grid-panel,
    .page--backoffice .sheet-panel,
    .page--backoffice .route-planner-panel {
        padding: 0.56rem;
    }

    .page--backoffice .page-header-card h1 {
        font-size: 1.08rem;
    }

    .page--backoffice .attention-card {
        grid-template-columns: 1fr;
        gap: 0.32rem;
    }
}

.page--backoffice .attention-ledger-page {
    gap: 0;
}

.page--backoffice .attention-ledger-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(19.5rem, 21.5rem);
    align-items: start;
    gap: 0.5rem;
    min-width: 0;
}

.page--backoffice .attention-ledger-main,
.page--backoffice .attention-detail-panel,
.page--backoffice .attention-filter-bar,
.page--backoffice .attention-table-frame {
    min-width: 0;
    border: 1px solid var(--bp-gridline);
    border-radius: 6px;
    background: var(--bp-surface);
    box-shadow: none;
}

.page--backoffice .attention-ledger-main {
    display: grid;
    gap: 0.45rem;
    border: 0;
    background: transparent;
}

.page--backoffice .attention-filter-bar {
    display: grid;
    gap: 0.36rem;
    padding: 0.45rem;
}

.page--backoffice .attention-filter-primary {
    display: grid;
    grid-template-columns: minmax(14rem, 1.2fr) repeat(4, minmax(7rem, 0.56fr));
    gap: 0.36rem;
    align-items: center;
    min-width: 0;
}

.page--backoffice .attention-filter-secondary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    color: var(--bp-muted);
    font-size: 0.74rem;
    font-weight: 850;
}

.page--backoffice .attention-ledger-search,
.page--backoffice .attention-ledger-select {
    width: 100%;
    min-width: 0;
}

.page--backoffice .attention-ledger-select {
    min-height: 1.74rem;
    padding: 0.24rem 1.65rem 0.24rem 0.4rem;
    border: 1px solid var(--bp-gridline);
    border-radius: 6px;
    background: var(--bp-surface);
    color: var(--bp-text);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 720;
}

.page--backoffice .attention-filter-bar .attention-active-filters {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.32rem;
    align-items: center;
    margin: 0;
}

.page--backoffice .attention-filter-bar .grid-toolbar-actions {
    display: none;
}

.page--backoffice .attention-table-frame {
    overflow: auto;
}

.page--backoffice .attention-table {
    width: 100%;
    min-width: 50rem;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--bp-text);
    font-size: 0.72rem;
    line-height: 1.18;
}

.page--backoffice .attention-table th,
.page--backoffice .attention-table td {
    border-bottom: 1px solid var(--bp-gridline);
    padding: 0.26rem 0.34rem;
    text-align: left;
    vertical-align: middle;
}

.page--backoffice .attention-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: color-mix(in srgb, var(--bp-surface-soft) 86%, var(--bp-accent) 5%);
    color: var(--bp-muted);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page--backoffice .attention-table tbody tr:last-child td {
    border-bottom: 0;
}

.page--backoffice .attention-ledger-row {
    background: var(--bp-surface);
}

.page--backoffice .attention-ledger-row:hover td {
    background: var(--bp-row-hover);
}

/* Admin page-family craft pass */
.page--backoffice {
    --bp-operator-rail: color-mix(in srgb, var(--bp-accent) 28%, var(--bp-border));
    --bp-operator-muted-row: color-mix(in srgb, var(--bp-surface-soft) 88%, var(--bp-accent) 4%);
}

.page--backoffice .directory-workspace,
.page--backoffice .directory-layout,
.page--backoffice .materials-layout,
.page--backoffice .workshops-workspace {
    grid-template-columns: minmax(14rem, 18.5rem) minmax(0, 1fr);
    gap: 0.5rem;
    align-items: start;
}

.page--backoffice .teachers-workspace-single {
    grid-template-columns: minmax(0, 1fr);
}

.page--backoffice .directory-list,
.page--backoffice .workshop-list,
.page--backoffice .teacher-list,
.page--backoffice .materials-sortable-list {
    gap: 0.26rem;
    margin-top: 0.42rem;
    max-height: calc(100vh - 12.5rem);
}

.page--backoffice .directory-list-item,
.page--backoffice .workshop-list-item,
.page--backoffice .teacher-list-item {
    gap: 0.12rem;
    padding: 0.38rem 0.48rem;
    border-radius: 5px;
    background: var(--bp-surface);
    color: var(--bp-text);
}

.page--backoffice .directory-list-item:hover,
.page--backoffice .workshop-list-item:hover,
.page--backoffice .teacher-list-item:hover {
    border-color: var(--bp-operator-rail);
    background: var(--bp-row-hover);
}

.page--backoffice .directory-list-item-active,
.page--backoffice .workshop-list-item-active,
.page--backoffice .teacher-list-item-active {
    border-color: color-mix(in srgb, var(--bp-accent-strong) 48%, var(--bp-border));
    background: var(--bp-row-selected);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bp-accent-strong) 28%, transparent);
}

.page--backoffice .directory-list-item strong,
.page--backoffice .workshop-list-item strong,
.page--backoffice .teacher-list-item strong {
    color: var(--bp-ink);
    font-size: 0.78rem;
    line-height: 1.18;
}

.page--backoffice .directory-list-item span,
.page--backoffice .directory-list-item small,
.page--backoffice .workshop-list-item span,
.page--backoffice .workshop-list-item small,
.page--backoffice .teacher-list-item span,
.page--backoffice .teacher-list-item small {
    color: var(--bp-muted);
    font-size: 0.7rem;
    line-height: 1.18;
}

.page--backoffice .directory-detail-panel,
.page--backoffice .directory-table-panel,
.page--backoffice .materials-editor-panel,
.page--backoffice .materials-table-panel,
.page--backoffice .finance-admin-panel,
.page--backoffice .finance-workbook-panel,
.page--backoffice .communication-panel,
.page--backoffice .workshop-flow-list-panel {
    padding: 0.52rem;
}

.page--backoffice .teacher-form-grid,
.page--backoffice .booking-editor-layout,
.page--backoffice .booking-editor-row,
.page--backoffice .materials-form-grid,
.page--backoffice .settings-schoolyear-panel,
.page--backoffice .communication-grid,
.page--backoffice .calendar-audit-row-grid {
    gap: 0.44rem;
}

.page--backoffice .directory-detail-header,
.page--backoffice .teacher-detail-head,
.page--backoffice .materials-panel-head,
.page--backoffice .grid-toolbar,
.page--backoffice .finance-toolbar,
.page--backoffice .workshop-flow-toolbar,
.page--backoffice .workshops-top-row {
    gap: 0.42rem;
}

.page--backoffice .finance-domain-table,
.page--backoffice .directory-table,
.page--backoffice .booking-grid,
.page--backoffice .materials-table {
    font-size: 0.74rem;
    line-height: 1.18;
}

.page--backoffice .finance-domain-table th,
.page--backoffice .finance-domain-table td,
.page--backoffice .directory-table th,
.page--backoffice .directory-table td,
.page--backoffice .booking-grid th,
.page--backoffice .booking-grid td,
.page--backoffice .materials-table th,
.page--backoffice .materials-table td {
    padding: 0.26rem 0.36rem;
    border-color: var(--bp-gridline);
}

.page--backoffice .finance-domain-table th,
.page--backoffice .directory-table th,
.page--backoffice .booking-grid th,
.page--backoffice .materials-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: color-mix(in srgb, var(--bp-surface-soft) 86%, var(--bp-accent) 5%);
}

.page--backoffice .finance-domain-table tbody tr:nth-child(even) td,
.page--backoffice .directory-table tbody tr:nth-child(even) td,
.page--backoffice .booking-grid tbody tr:nth-child(even) td,
.page--backoffice .materials-table tbody tr:nth-child(even) td {
    background: color-mix(in srgb, var(--bp-surface-soft) 82%, var(--bp-surface));
}

.page--backoffice .booking-product-block,
.page--backoffice .booking-stage-line,
.page--backoffice .workshop-flow-card-results,
.page--backoffice .booking-planning-notes-panel,
.page--backoffice .route-ledger-card-hard,
.page--backoffice .route-ledger-card-soft,
.page--backoffice .booking-billing-note {
    border-left-width: 1px;
}

.page--backoffice .booking-product-block {
    border-color: color-mix(in srgb, var(--booking-product-status-color) 36%, var(--bp-gridline));
    background: color-mix(in srgb, var(--booking-product-status-color) 7%, var(--bp-surface));
}

.page--backoffice .booking-stage-line {
    border-color: color-mix(in srgb, var(--booking-stage-color) 36%, var(--bp-gridline)) !important;
    background: color-mix(in srgb, var(--booking-stage-color) 5%, var(--bp-surface));
}

.page--backoffice .workshop-flow-card-results {
    border-color: color-mix(in srgb, var(--result-card-accent) 46%, var(--bp-gridline));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--result-card-accent) 16%, transparent);
}

.page--backoffice .route-ledger-card-hard {
    border-color: color-mix(in srgb, #244a5a 40%, var(--bp-gridline));
    background: color-mix(in srgb, #244a5a 5%, var(--bp-surface));
}

.page--backoffice .route-ledger-card-soft {
    border-color: color-mix(in srgb, #b89032 45%, var(--bp-gridline));
    background: color-mix(in srgb, #b89032 7%, var(--bp-surface));
}

.page--backoffice .booking-planning-notes-panel,
.page--backoffice .booking-billing-note {
    border-color: color-mix(in srgb, #b89032 34%, var(--bp-gridline));
    background: color-mix(in srgb, #b89032 8%, var(--bp-surface));
}

.page--backoffice .communication-grid-single,
.page--backoffice .communication-page .communication-grid {
    grid-template-columns: minmax(0, 1fr);
}

.page--backoffice .communication-draft-list {
    gap: 0.42rem;
}

.page--backoffice .communication-rich-preview,
.page--backoffice .communication-rich-editor {
    min-height: 8rem;
}

.page--backoffice .todo-shell {
    grid-template-columns: minmax(10rem, 13.5rem) minmax(0, 1fr);
    gap: 0.5rem;
}

.page--backoffice .todo-sidebar,
.page--backoffice .todo-quick-add,
.page--backoffice .todo-board-column,
.page--backoffice .todo-task-row {
    border-color: var(--bp-gridline);
    border-radius: 6px;
    background: var(--bp-surface);
    box-shadow: none;
}

.page--backoffice .todo-task-row {
    grid-template-columns: 1.75rem minmax(0, 1fr);
    gap: 0.45rem;
    padding: 0.48rem;
}

.page--backoffice .todo-complete-button {
    width: 1.55rem;
    height: 1.55rem;
}

.page--backoffice .todo-task-title-line h3 {
    font-size: 0.86rem;
    line-height: 1.18;
}

.page--backoffice .open-workshop-grid {
    gap: 0.5rem;
}

.page--backoffice .open-workshop-card {
    border-color: var(--bp-gridline);
    border-radius: 6px;
    background: var(--bp-surface);
    box-shadow: none;
}

.page--backoffice .calendar-status-strip,
.page--backoffice .calendar-audit-summary,
.page--backoffice .settings-schoolyear-grid,
.page--backoffice .finance-admin-grid,
.page--backoffice .analytics-assumption-grid,
.page--backoffice .analytics-kpi-grid {
    gap: 0.36rem;
}

.page--backoffice .analytics-source-card,
.page--backoffice .finance-admin-grid article,
.page--backoffice .calendar-status-panel {
    border-color: var(--bp-gridline);
    border-radius: 6px;
    background: var(--bp-surface);
    box-shadow: none;
}

@media (max-width: 1100px) {
    .page--backoffice .directory-workspace,
    .page--backoffice .directory-layout,
    .page--backoffice .materials-layout,
    .page--backoffice .workshops-workspace,
    .page--backoffice .todo-shell {
        grid-template-columns: 1fr;
    }
}

.page--backoffice .attention-ledger-row-selected td {
    background: var(--bp-row-selected);
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--bp-accent) 42%, transparent),
        inset 0 -1px 0 color-mix(in srgb, var(--bp-accent) 42%, transparent);
}

.page--backoffice .attention-reference-cell {
    color: var(--bp-ink);
    font-weight: 850;
    white-space: nowrap;
}

.page--backoffice .attention-title-cell {
    min-width: 12rem;
}

.page--backoffice .attention-row-button {
    display: grid;
    gap: 0.08rem;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.page--backoffice .attention-row-button strong {
    overflow: hidden;
    color: var(--bp-ink);
    font-size: 0.76rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page--backoffice .attention-row-button span {
    overflow: hidden;
    color: var(--bp-muted);
    font-size: 0.64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page--backoffice .attention-validation-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.25rem;
    padding: 0.12rem 0.36rem;
    border: 1px solid color-mix(in srgb, var(--bp-danger) 32%, var(--bp-gridline));
    border-radius: 999px;
    background: color-mix(in srgb, var(--bp-danger) 8%, var(--bp-surface));
    color: var(--bp-danger-strong);
    font-size: 0.68rem;
    font-weight: 900;
    white-space: nowrap;
}

.page--backoffice .attention-table .severity-chip,
.page--backoffice .attention-detail-panel .severity-chip {
    min-height: 1.28rem;
    padding: 0.14rem 0.42rem;
    font-size: 0.68rem;
    line-height: 1;
    white-space: nowrap;
}

.page--backoffice .attention-table .gtd-marker-chip {
    min-height: 1.28rem;
    padding: 0.12rem 0.36rem;
    border-radius: 999px;
    font-size: 0.66rem;
    line-height: 1;
    overflow-wrap: normal;
    white-space: nowrap;
}

.page--backoffice .attention-row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.2rem;
    min-width: 8rem;
}

.page--backoffice .attention-detail-panel {
    position: sticky;
    top: calc(var(--top-height) + 2.35rem);
    display: grid;
    gap: 0.5rem;
    max-height: calc(100vh - var(--top-height) - 2.35rem);
    overflow: auto;
    padding: 0.5rem;
}

.page--backoffice .attention-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.page--backoffice .attention-detail-head h2 {
    margin: 0.1rem 0 0;
    color: var(--bp-ink);
    font-size: 0.98rem;
    line-height: 1.16;
}

.page--backoffice .attention-detail-tabs {
    display: flex;
    gap: 0.4rem;
    border-bottom: 1px solid var(--bp-gridline);
}

.page--backoffice .attention-detail-tab {
    padding: 0.2rem 0 0.32rem;
    color: var(--bp-muted);
    font-size: 0.72rem;
    font-weight: 850;
}

.page--backoffice .attention-detail-tab-active {
    color: var(--bp-ink);
    box-shadow: inset 0 -2px 0 var(--bp-accent-strong);
}

.page--backoffice .attention-detail-section {
    display: grid;
    gap: 0.38rem;
    padding: 0.5rem;
    border: 1px solid var(--bp-gridline);
    border-radius: 6px;
    background: color-mix(in srgb, var(--bp-surface-soft) 84%, var(--bp-accent) 2%);
}

.page--backoffice .attention-safe-action {
    border-color: color-mix(in srgb, var(--bp-accent) 42%, var(--bp-gridline));
    background: color-mix(in srgb, var(--bp-accent) 12%, var(--bp-surface));
}

.page--backoffice .attention-detail-section h3 {
    margin: 0;
    color: var(--bp-ink);
    font-size: 0.86rem;
    line-height: 1.22;
}

.page--backoffice .attention-detail-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.page--backoffice .attention-detail-section-head span {
    color: var(--bp-muted);
    font-size: 0.68rem;
    font-weight: 850;
}

.page--backoffice .attention-blocker-list {
    display: grid;
    gap: 0.42rem;
}

.page--backoffice .attention-blocker {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.page--backoffice .attention-blocker + .attention-blocker {
    padding-top: 0.42rem;
    border-top: 1px solid var(--bp-gridline);
}

.page--backoffice .attention-blocker strong {
    color: var(--bp-ink);
    font-size: 0.78rem;
    line-height: 1.2;
}

.page--backoffice .attention-blocker p {
    margin: 0;
    color: var(--bp-muted);
    font-size: 0.74rem;
    line-height: 1.3;
}

.page--backoffice .attention-blocker p span {
    color: var(--bp-ink);
    font-weight: 900;
}

.page--backoffice .attention-detail-facts {
    display: grid;
    gap: 0.34rem;
    margin: 0;
}

.page--backoffice .attention-detail-facts div {
    display: grid;
    grid-template-columns: 5.2rem minmax(0, 1fr);
    gap: 0.4rem;
}

.page--backoffice .attention-detail-facts dt {
    color: var(--bp-muted);
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.page--backoffice .attention-detail-facts dd {
    min-width: 0;
    margin: 0;
    color: var(--bp-text);
    font-size: 0.75rem;
}

.page--backoffice .attention-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.22rem;
}

@media (max-width: 1240px) {
    .page--backoffice .attention-ledger-shell {
        grid-template-columns: 1fr;
    }

    .page--backoffice .attention-detail-panel {
        position: static;
        max-height: none;
        order: -1;
    }
}

@media (max-width: 1500px) and (min-width: 1241px) {
    .page--backoffice .attention-ledger-shell {
        grid-template-columns: minmax(0, 1fr) 19rem;
        gap: 0.42rem;
    }

    .page--backoffice .attention-detail-panel {
        padding: 0.42rem;
    }
}

@media (max-width: 900px) {
    .page--backoffice .attention-filter-primary {
        grid-template-columns: minmax(0, 1fr) minmax(8rem, 0.5fr);
    }
}

@media (max-width: 640px) {
    .page--backoffice .attention-filter-primary {
        grid-template-columns: 1fr;
    }

    .page--backoffice .attention-filter-secondary,
    .page--backoffice .attention-detail-head {
        align-items: stretch;
        flex-direction: column;
    }

    .page--backoffice .attention-detail-panel {
        padding: 0.42rem;
    }

    .page--backoffice .attention-table {
        min-width: 50rem;
    }
}

.page--backoffice .flow-index-grid {
    grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
    gap: 0.42rem;
}

.page--backoffice .flow-index-card,
.page--backoffice .flow-link-card,
.page--backoffice .flow-attention-row {
    min-height: 0;
    padding: 0.42rem 0.5rem;
    border-color: var(--bp-gridline);
    border-radius: 6px;
    background: var(--bp-surface);
    box-shadow: none;
}

.page--backoffice .flow-index-card:hover,
.page--backoffice .flow-link-card:hover,
.page--backoffice .flow-attention-row:hover {
    border-color: color-mix(in srgb, var(--bp-accent-strong) 38%, var(--bp-gridline));
    background: var(--bp-row-hover);
}

.page--backoffice .flow-index-card span,
.page--backoffice .flow-link-card strong,
.page--backoffice .flow-attention-row strong {
    color: var(--bp-ink);
    font-size: 0.78rem;
    line-height: 1.18;
}

.page--backoffice .flow-index-card strong,
.page--backoffice .flow-index-card small,
.page--backoffice .flow-link-card span,
.page--backoffice .flow-link-card small,
.page--backoffice .flow-attention-facts,
.page--backoffice .flow-attention-detail {
    color: var(--bp-muted);
    font-size: 0.68rem;
    line-height: 1.24;
}

.page--backoffice .flow-dashboard-link {
    grid-template-columns: minmax(8rem, 0.55fr) minmax(0, 1fr) auto;
    align-items: center;
}

.page--backoffice .flow-dashboard-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page--backoffice .flow-dashboard-link small {
    justify-self: end;
    white-space: nowrap;
}

.page--backoffice .flow-home-panel {
    gap: 0.46rem;
}

.page--backoffice .flow-link-list,
.page--backoffice .flow-attention-list {
    gap: 0.3rem;
}

@media (max-width: 760px) {
    .page--backoffice .flow-dashboard-link {
        grid-template-columns: 1fr;
    }

    .page--backoffice .flow-dashboard-link small {
        justify-self: start;
    }
}

/* Offerte craft pass: keep this after dense backoffice defaults so the approved work-queue treatment wins. */
.page--backoffice .offer-flow-page {
    gap: 0.48rem;
}

.page--backoffice .offer-flow-header {
    padding: 0.56rem 0.66rem;
    border-radius: 8px;
    background: color-mix(in oklch, var(--bp-surface) 92%, var(--bp-accent) 8%);
}

.page--backoffice .offer-flow-page .toolbar-button,
.page--backoffice .offer-flow-page .toolbar-button-secondary,
.page--backoffice .offer-flow-page .toolbar-button-danger {
    min-height: 1.88rem;
    padding: 0.32rem 0.58rem;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.08;
}

.page--backoffice .offer-flow-page .toolbar-button {
    border-color: color-mix(in oklch, var(--bp-accent-strong) 74%, var(--bp-ink) 26%);
    background: color-mix(in oklch, var(--bp-accent-strong) 82%, var(--bp-ink) 18%);
    color: color-mix(in oklch, var(--bp-surface) 96%, var(--bp-accent) 4%);
}

.page--backoffice .offer-flow-page .toolbar-button:hover,
.page--backoffice .offer-flow-page .toolbar-button:focus-visible {
    border-color: var(--bp-ink);
    background: var(--bp-ink);
    color: color-mix(in oklch, var(--bp-surface) 96%, var(--bp-accent) 4%);
}

.page--backoffice .offer-flow-page .toolbar-button-secondary {
    border-color: color-mix(in oklch, var(--bp-border) 72%, var(--bp-accent-strong) 28%);
    background: color-mix(in oklch, var(--bp-surface-soft) 90%, var(--bp-accent) 10%);
    color: var(--bp-text);
}

.page--backoffice .offer-flow-page .toolbar-button-secondary:hover,
.page--backoffice .offer-flow-page .toolbar-button-secondary:focus-visible {
    border-color: color-mix(in oklch, var(--bp-accent-strong) 56%, var(--bp-border) 44%);
    background: color-mix(in oklch, var(--bp-accent) 18%, var(--bp-surface) 82%);
    color: var(--bp-ink);
}

.page--backoffice .offer-flow-page .toolbar-button-danger {
    border-color: color-mix(in oklch, var(--bp-danger) 36%, var(--bp-border) 64%);
    background: color-mix(in oklch, var(--bp-danger) 10%, var(--bp-surface) 90%);
    color: var(--bp-danger-strong);
}

.page--backoffice .offer-flow-page .toolbar-button-danger:hover,
.page--backoffice .offer-flow-page .toolbar-button-danger:focus-visible {
    border-color: var(--bp-danger-strong);
    background: var(--bp-danger);
    color: color-mix(in oklch, var(--bp-surface) 96%, var(--bp-danger) 4%);
}

.page--backoffice .offer-flow-page .toolbar-button:disabled,
.page--backoffice .offer-flow-page .toolbar-button-secondary:disabled,
.page--backoffice .offer-flow-page .toolbar-button-danger:disabled {
    opacity: 0.48;
}

.page--backoffice .offer-flow-icon-button {
    width: 1.9rem;
    padding-inline: 0;
}

.page--backoffice .offer-flow-card {
    border-color: color-mix(in oklch, var(--bp-border) 74%, var(--bp-accent) 26%);
    border-radius: 8px;
    background: color-mix(in oklch, var(--bp-surface) 94%, var(--bp-accent) 6%);
    box-shadow: none;
}

.page--backoffice .offer-flow-card:hover {
    border-color: color-mix(in oklch, var(--bp-accent-strong) 44%, var(--bp-border) 56%);
    background: color-mix(in oklch, var(--bp-surface) 88%, var(--bp-accent) 12%);
}

.page--backoffice .offer-flow-history-panel {
    border-radius: 8px;
}

.page--backoffice .offer-flow-history-panel .finance-table-shell {
    border-radius: 8px;
}

.page--backoffice .offer-flow-history-panel .finance-domain-table th,
.page--backoffice .offer-flow-history-panel .finance-domain-table td {
    padding-block: 0.34rem;
}

.page--backoffice .offer-flow-history-panel .finance-row-actions {
    gap: 0.24rem;
}

.page--backoffice .offer-flow-history-panel .finance-row-actions .toolbar-button,
.page--backoffice .offer-flow-history-panel .finance-row-actions .toolbar-button-secondary,
.page--backoffice .offer-flow-history-panel .finance-row-actions .toolbar-button-danger {
    min-height: 1.72rem;
    padding: 0.24rem 0.46rem;
}

.page--backoffice .offer-flow-history-panel .finance-row-actions .toolbar-button-danger {
    background: color-mix(in oklch, var(--bp-danger) 10%, var(--bp-surface) 90%);
    color: var(--bp-danger-strong);
}

@media (max-width: 1040px) {
    .page--backoffice .offer-flow-work-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .page--backoffice .offer-flow-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page--backoffice .offer-flow-row-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: start;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .page--backoffice .offer-flow-header,
    .page--backoffice .offer-flow-detail-grid {
        grid-template-columns: 1fr;
    }

    .page--backoffice .offer-flow-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page--backoffice .offer-flow-facts {
        grid-template-columns: 1fr;
    }

    .page--backoffice .offer-flow-row-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page--backoffice .offer-flow-row-actions .toolbar-button {
        width: 100%;
    }
}
