:root {
    --blue: #243e91;
    --blue-dark: #172a72;
    --blue-deep: #101f58;
    --aurora-red: #c91f2f;
    --aurora-red-dark: #a81828;
    --aurora-red-soft: #fff0ee;
    --shield-silver: #d6dbe7;
    --green-soft: #eaf7ef;
    --ink: #172033;
    --muted: #667085;
    --line: #d8e3ec;
    --line-strong: #c6d6e2;
    --soft: #f3f8fc;
    --surface: #fbfdff;
    --success: #0f8a5f;
    --warning: #c46a00;
    --danger: #b42318;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 35, 55, 0.05);
    --shadow-md: 0 14px 34px rgba(15, 35, 55, 0.11);
    --shadow-lg: 0 26px 70px rgba(15, 35, 55, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        linear-gradient(115deg, rgba(201, 47, 47, 0.055) 0 15%, transparent 15% 100%),
        linear-gradient(115deg, transparent 0 78%, rgba(36, 62, 145, 0.08) 78% 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(180deg, #f8fbfd 0%, #eef5f9 100%);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.45;
    min-height: 100vh;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body.modal-open,
body.confirm-open,
body.shift-detail-open {
    overflow: hidden;
}

body.admin-menu-open {
    overflow: hidden;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(36, 62, 145, 0.30);
    outline-offset: 3px;
}

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

.topbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(198, 214, 226, 0.82);
    box-shadow: 0 8px 26px rgba(15, 35, 55, 0.07);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    left: 0;
    min-height: 64px;
    padding: 0 18px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 80;
}

.brand {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    font-size: 17px;
    font-weight: 900;
    gap: 10px;
    min-width: 0;
    white-space: nowrap;
}

.brand-logo {
    display: block;
    height: 46px;
    object-fit: contain;
    object-position: left center;
    width: auto;
}

.brand span {
    display: inline;
}

.nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 0;
}

.nav-logout {
    margin: 0;
}

.nav-logout button {
    background: transparent;
    border: 0;
    color: var(--brand);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0;
}

.nav-logout button:hover,
.nav-logout button:focus-visible {
    color: var(--brand-dark);
}

.page {
    margin: 0 auto;
    max-width: 1180px;
    padding: 24px 14px 56px;
}

.has-topbar .page {
    padding-top: 88px;
}

.page.public-page {
    padding-top: 14px;
}

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

h1 {
    color: #101828;
    font-size: 32px;
    font-weight: 900;
}

h2 {
    color: #1b2a3f;
    font-size: 19px;
    font-weight: 900;
}

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

.notice {
    background:
        linear-gradient(180deg, #ffffff, #f8faff),
        linear-gradient(90deg, rgba(201, 31, 47, 0.08), rgba(36, 62, 145, 0.08));
    border: 1px solid rgba(36, 62, 145, 0.18);
    border-left: 4px solid var(--aurora-red);
    border-radius: 8px;
    color: var(--blue-deep);
    margin-bottom: 16px;
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
    font-weight: 800;
}

.panel,
.metric {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(198, 214, 226, 0.94);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.panel {
    margin-top: 18px;
    min-width: 0;
    padding: 18px;
}

.narrow {
    margin-left: auto;
    margin-right: auto;
    max-width: 460px;
    width: min(100%, calc(100vw - 28px));
}

.dashboard-head,
.section-head {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.dashboard-head {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(245, 250, 254, 0.95)),
        linear-gradient(115deg, rgba(201, 47, 47, 0.10) 0 16%, transparent 16% 78%, rgba(36, 62, 145, 0.12) 78% 100%);
    border: 1px solid rgba(198, 214, 226, 0.9);
    border-left: 5px solid var(--aurora-red);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    margin-bottom: 18px;
    padding: 18px;
}

.dashboard-head > div:first-child {
    min-width: 0;
}

.admin-landing-head .actions {
    align-content: flex-start;
}

.section-head {
    align-items: center;
    margin-bottom: 14px;
}

.section-badges {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-head .actions {
    justify-content: flex-end;
    max-width: min(540px, 44vw);
}

.dashboard-head .actions form {
    display: inline-flex;
}

.dashboard-head .actions .button {
    white-space: nowrap;
}

.test-mode-banner {
    align-items: center;
    background: rgba(255, 240, 217, 0.72);
    border: 1px solid #ffd7a8;
    border-radius: 8px;
    color: #694100;
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 10px;
}

.admin-menu {
    position: relative;
}

.topbar-admin-menu {
    flex: 0 0 auto;
    margin-left: 12px;
}

.topbar-admin-menu > summary {
    box-shadow: 0 8px 20px rgba(36, 62, 145, 0.14);
    white-space: nowrap;
}

.topbar-primary-action {
    flex: 0 0 auto;
    white-space: nowrap;
}

.admin-menu[open]::before {
    background: rgba(10, 24, 38, 0.46);
    content: '';
    inset: 0;
    position: fixed;
    z-index: 180;
}

.admin-menu summary {
    list-style: none;
    position: relative;
    z-index: 181;
}

.admin-menu summary::-webkit-details-marker {
    display: none;
}

.admin-menu-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(198, 214, 226, 0.94);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 14px;
    min-width: min(360px, calc(100vw - 28px));
    padding: 14px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 190;
}

.admin-menu-panel.wide {
    bottom: 18px;
    grid-template-rows: auto auto minmax(0, 1fr);
    height: min(860px, calc(100vh - 36px));
    height: min(860px, calc(100dvh - 36px));
    left: 18px;
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    min-width: 0;
    overflow: hidden;
    overflow-x: hidden;
    position: fixed;
    right: 18px;
    top: 18px;
    transform: none;
    width: min(1180px, calc(100vw - 36px));
    z-index: 190;
    margin: auto;
}

.admin-menu-panel.wide::before {
    background: linear-gradient(90deg, var(--aurora-red), var(--blue) 58%, var(--shield-silver));
    content: '';
    height: 6px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.admin-panel-header {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: space-between;
    padding: 18px 58px 4px 6px;
}

.admin-panel-notice {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 6px;
    min-width: 0;
    overflow-wrap: anywhere;
    position: relative;
    z-index: 2;
}

.panel-logo {
    display: block;
    height: 74px;
    margin-bottom: 16px;
    max-width: 190px;
    object-fit: contain;
    width: auto;
}

.admin-logo {
    height: 64px;
    margin-bottom: 12px;
}

.dashboard-logo {
    height: 64px;
    margin-bottom: 10px;
}

.admin-panel-header .eyebrow {
    color: var(--aurora-red);
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-panel-header h2 {
    font-size: 24px;
    margin-top: 7px;
}

.admin-panel-header p {
    margin: 8px 0 0;
    max-width: 760px;
}

.admin-close {
    align-items: center;
    background: linear-gradient(180deg, #ffffff, #f6fafd);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font-size: 28px;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 44px;
    z-index: 32;
}

.admin-tabs {
    display: grid;
    gap: 18px;
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 8px 6px 6px;
}

.admin-tab-list {
    align-self: start;
    background: linear-gradient(180deg, #f9fbff, #f0f3fb);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 8px;
    position: sticky;
    top: 0;
}

.admin-tab {
    align-items: start;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    font-weight: 800;
    gap: 3px 10px;
    justify-items: start;
    min-height: 38px;
    padding: 12px;
    text-align: left;
}

.admin-tab strong,
.admin-tab span {
    display: block;
}

.admin-tab strong {
    color: var(--ink);
    font-size: 14px;
}

.admin-tab span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.admin-tab.is-active {
    background: #ffffff;
    border-color: rgba(36, 62, 145, 0.24);
    box-shadow: 0 8px 18px rgba(36, 62, 145, 0.11);
}

.admin-tab.is-active strong {
    color: var(--blue-dark);
}

.admin-tab.is-active span {
    color: #42526b;
}

.admin-tab-panel {
    display: none;
    min-height: 0;
    min-width: 0;
}

.admin-tab-panel.is-active {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
}

.admin-form-card {
    background:
        linear-gradient(180deg, #ffffff, #fbfdff);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    padding: 16px;
}

.admin-form-card.form-stack {
    align-content: start;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-management-card {
    margin-top: 14px;
}

.admin-management-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-management-actions form {
    display: inline-flex;
    margin: 0;
}

.install-state {
    border-left: 4px solid var(--warning);
}

.install-state strong,
.install-state code {
    color: var(--blue-deep);
}

.install-state code {
    background: #f0f3fb;
    border: 1px solid rgba(36, 62, 145, 0.14);
    border-radius: 6px;
    font-weight: 800;
    overflow-wrap: anywhere;
    padding: 2px 5px;
    white-space: normal;
    word-break: break-word;
}

.admin-form-actions {
    align-items: center;
    background: #f8fbfe;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 2px;
    padding: 10px;
}

.admin-form-actions .muted {
    font-size: 12px;
    font-weight: 700;
}

.admin-section-head {
    align-items: start;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 2px;
    padding-bottom: 12px;
}

.admin-section-head strong {
    color: var(--blue-deep);
    display: block;
    font-size: 18px;
}

.admin-section-head p {
    margin: 5px 0 0;
}

.admin-filter-bar {
    align-items: end;
    background:
        linear-gradient(135deg, rgba(36, 62, 145, 0.08), transparent 48%),
        #f8fbfe;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1fr) auto;
    margin-bottom: 12px;
    padding: 12px;
}

.admin-filter-bar label {
    color: var(--blue-deep);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-filter-bar input {
    margin-top: 6px;
}

.settings-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.settings-block-card {
    background: linear-gradient(180deg, #ffffff, #f7fbfe);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
}

.settings-block-label {
    color: var(--blue-deep);
    font-size: 13px;
    font-weight: 900;
}

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

.settings-minute-field {
    display: grid;
    gap: 10px;
}

.settings-minute-field small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.settings-rule-summary {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-rule-summary span {
    background: #f8fbfe;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    padding: 10px 12px;
}

.settings-rule-summary b {
    color: var(--blue-deep);
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.admin-users-card {
    margin-top: 14px;
}

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

.admin-user-row {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(220px, 1fr) auto;
    padding: 8px 10px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.admin-user-row:hover {
    border-color: #aebdd3;
    box-shadow: 0 4px 12px rgba(23, 32, 51, 0.06);
}

.admin-user-identity {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 12px;
    justify-content: space-between;
    min-width: 0;
    padding: 6px 4px;
    text-align: left;
    width: 100%;
}

.admin-user-identity > span:first-child {
    min-width: 0;
}

.admin-user-identity strong {
    color: var(--blue-deep);
    display: block;
    font-size: 15px;
}

.admin-user-identity small {
    color: var(--muted);
    display: block;
    font-size: 13px;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-identity:focus-visible {
    border-radius: 6px;
    outline: 3px solid rgba(36, 62, 145, 0.22);
    outline-offset: 2px;
}

.admin-user-edit-arrow {
    color: var(--blue-deep);
    flex: 0 0 auto;
    font-size: 28px;
    line-height: 1;
}

.admin-user-row > .badges {
    justify-content: flex-end;
}

.confirm-modal.user-edit-modal {
    z-index: 210;
}

.confirm-window.user-edit-window {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: min(90vh, 720px);
    max-width: 760px;
    width: min(760px, calc(100vw - 32px));
}

.user-edit-window .confirm-header {
    align-items: center;
}

.user-edit-window .confirm-header .eyebrow {
    display: block;
    margin-bottom: 4px;
}

.user-edit-window .confirm-header strong {
    font-size: 20px;
}

.user-edit-body {
    display: grid;
    gap: 16px;
    overflow-x: hidden;
    overflow-y: auto;
}

.user-edit-form {
    gap: 14px;
}

.user-edit-grid {
    align-items: stretch;
}

.user-edit-grid > * {
    min-width: 0;
}

.user-edit-grid input,
.user-edit-grid select {
    width: 100%;
}

.user-edit-mail-card {
    min-height: 100%;
}

.user-edit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-edit-meta span {
    background: #f2f5fa;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 9px;
}

.user-edit-actions {
    margin-top: 0;
}

.user-edit-danger-zone {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding-top: 14px;
}

.user-edit-danger-zone strong,
.user-edit-danger-zone small {
    display: block;
}

.user-edit-danger-zone strong {
    color: #8a1c1c;
    font-size: 14px;
}

.user-edit-danger-zone small {
    color: var(--muted);
    margin-top: 3px;
}

.login-code-input {
    font-size: 30px;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    max-width: 240px;
    text-align: center;
}

.login-code-form small {
    line-height: 1.45;
}

.login-code-back {
    color: var(--blue-deep);
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    margin-top: 16px;
}

.grid {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.grid.two,
.grid.three {
    grid-template-columns: 1fr;
}

.metric {
    border-top: 3px solid rgba(36, 62, 145, 0.58);
    padding: 16px;
}

.metric:nth-child(2) {
    border-top-color: rgba(15, 138, 95, 0.55);
}

.metric:nth-child(3) {
    border-top-color: rgba(201, 47, 47, 0.55);
}

.metric span {
    color: var(--muted);
    display: block;
    font-size: 13px;
}

.metric strong {
    display: block;
    color: var(--blue-deep);
    font-size: 30px;
    font-weight: 900;
    margin-top: 6px;
}

.metric-detail,
.metric-note {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    margin-top: 6px;
}

.metric-note {
    color: #475467;
    font-weight: 700;
}

.sync-status-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    margin-right: 4px;
    padding: 4px 8px;
    text-transform: uppercase;
}

.sync-status-success {
    background: #dff4eb;
    color: #14532d;
}

.sync-status-failed {
    background: #fff0ee;
    color: var(--danger);
}

.sync-status-running,
.sync-status-onbekend {
    background: #fff0d9;
    color: #7a3d00;
}

.button {
    align-items: center;
    background: linear-gradient(180deg, #ffffff, #f5f9fc);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    text-align: center;
    transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

[data-loading-submit] .button:not(.small) {
    min-width: 220px;
}

[data-loading-submit] .button.small {
    min-width: 0;
}

.button-spinner {
    border: 0;
    border-right-color: transparent;
    border-radius: 999px;
    display: none;
    flex: 0 0 auto;
    height: 0;
    margin-right: 0;
    opacity: 0;
    overflow: hidden;
    width: 0;
}

.button.is-loading .button-spinner,
.timeline-add-shift button.is-loading .button-spinner {
    animation: button-spin 700ms linear infinite;
    border: 2px solid currentColor;
    border-right-color: transparent;
    display: inline-block;
    height: 16px;
    margin-right: 8px;
    opacity: 0.9;
    width: 16px;
}

.button.is-loading {
    pointer-events: none;
}

.button.is-disabled {
    background: linear-gradient(180deg, #f3f6f9, #e7edf3);
    border-color: var(--line-strong);
    box-shadow: none;
    color: #667085;
    cursor: not-allowed;
    opacity: 0.58;
    pointer-events: none;
}

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

.button:hover,
.button:focus-visible {
    border-color: rgba(36, 62, 145, 0.42);
    box-shadow: 0 6px 16px rgba(36, 62, 145, 0.13);
    transform: translateY(-1px);
}

.button.primary {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 42%),
    linear-gradient(135deg, var(--blue), var(--blue-dark));
    border-color: var(--blue);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(36, 62, 145, 0.22);
}

.button.warning {
    background: linear-gradient(135deg, #d98116, #b65504);
    border-color: #b65504;
    color: var(--white);
}

.button.success {
    background: linear-gradient(135deg, #24895f, #126143);
    border-color: #126143;
    color: var(--white);
}

.button.danger {
    background: linear-gradient(180deg, #fff7f6, #fdecea);
    border-color: #f3b5ad;
    color: #842029;
}

.button:disabled {
    background: linear-gradient(180deg, #f3f6f9, #e7edf3);
    border-color: var(--line-strong);
    box-shadow: none;
    color: #667085;
    cursor: not-allowed;
    opacity: 0.52;
    transform: none;
}

.button:disabled:hover,
.button:disabled:focus-visible {
    border-color: var(--line-strong);
    box-shadow: none;
    transform: none;
}

.button.is-loading:disabled {
    opacity: 1;
}

.button.primary.is-loading:disabled {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 42%),
        linear-gradient(135deg, var(--blue), var(--blue-dark));
    border-color: var(--blue);
    color: var(--white);
}

.icon-button {
    font-size: 18px;
    min-width: 40px;
    padding-left: 10px;
    padding-right: 10px;
}

.copy-button::before {
    border: 2px solid currentColor;
    border-radius: 3px;
    content: '';
    display: block;
    height: 13px;
    position: relative;
    width: 13px;
}

.copy-button::after {
    border: 2px solid currentColor;
    border-radius: 3px;
    content: '';
    height: 13px;
    margin-left: -9px;
    margin-top: -7px;
    opacity: 0.62;
    width: 13px;
}

.copy-button.is-copied {
    background: #e8f7f0;
    border-color: rgba(15, 138, 95, 0.35);
    color: var(--success);
}

.copy-button.is-copied::before {
    border-left: 0;
    border-top: 0;
    border-radius: 0;
    height: 15px;
    margin: 0;
    transform: rotate(45deg);
    width: 8px;
}

.copy-button.is-copied::after {
    display: none;
}

.button.small {
    min-height: 36px;
    padding: 7px 10px;
}

.form-stack,
.form-grid,
.date-switcher,
.inline-form {
    display: grid;
    gap: 12px;
}

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

label {
    color: var(--ink);
    display: grid;
    font-size: 13px;
    font-weight: 700;
    gap: 6px;
}

input,
select,
textarea {
    background: #ffffff;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    min-height: 42px;
    padding: 9px 10px;
    width: 100%;
}

input::placeholder,
textarea::placeholder {
    color: #8a98aa;
}

input:disabled,
select:disabled,
textarea:disabled {
    background: #eef3f7;
    border-color: #d5dee8;
    color: #667085;
    cursor: not-allowed;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(36, 62, 145, 0.14);
    outline: 0;
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
    border-color: var(--aurora-red);
    box-shadow: 0 0 0 3px rgba(201, 31, 47, 0.12);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    background: #fff7f7;
    border-color: var(--aurora-red) !important;
    box-shadow: 0 0 0 3px rgba(201, 31, 47, 0.16) !important;
}

textarea {
    resize: vertical;
}

.timeline {
    background: #ffffff;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    overflow-x: hidden;
    width: 100%;
}

.timeline-hours {
    background:
        linear-gradient(180deg, #f7fbfe, #eaf4fb);
    border-bottom: 1px solid var(--line-strong);
    box-sizing: border-box;
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 800;
    height: 36px;
    min-width: 0;
    position: relative;
    width: 100%;
}

.timeline-hour-label {
    bottom: 8px;
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 2;
}

.timeline-hour-line,
.timeline-grid-line {
    background: rgba(36, 62, 145, 0.14);
    bottom: 0;
    position: absolute;
    top: 0;
    width: 1px;
    z-index: 0;
}

.timeline-hour-line {
    background: rgba(36, 62, 145, 0.22);
}

.timeline-row.label {
    background: linear-gradient(180deg, #f9fbff, #f0f3fb);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 10px;
    text-transform: uppercase;
}

.timeline-row.field-label {
    background: linear-gradient(90deg, rgba(36, 62, 145, 0.12), rgba(255, 255, 255, 0.82));
    border-left: 4px solid var(--blue);
    color: var(--blue-dark);
}

.timeline-row.service-label {
    background: linear-gradient(90deg, rgba(15, 138, 95, 0.13), rgba(255, 255, 255, 0.82));
    border-left: 4px solid var(--success);
    color: var(--success);
}

.timeline-lane {
    background: var(--white);
    box-sizing: border-box;
    min-width: 0;
    min-height: 84px;
    position: relative;
    width: 100%;
}

.timeline-lane.field-lane {
    min-height: 134px;
}

.timeline-lane.service-lane {
    background: #fbfffd;
    padding-right: 72px;
}

.timeline-block {
    border-radius: 8px;
    color: var(--white);
    display: grid;
    gap: 2px;
    min-height: 54px;
    overflow: hidden;
    padding: 7px 9px;
    position: absolute;
    top: 14px;
    z-index: 1;
    box-shadow: 0 8px 18px rgba(15, 35, 55, 0.12);
}

.field-part-badge {
    align-items: center;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    height: 18px;
    justify-content: center;
    min-width: 18px;
    padding: 0 5px;
    position: absolute;
    right: 6px;
    top: 5px;
}

.timeline-block span,
.timeline-block strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timeline-block strong {
    font-size: 12px;
    line-height: 1.1;
}

.timeline-block span {
    font-size: 12px;
    line-height: 1.15;
}

.timeline-block.match {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 48%),
        linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.timeline-block.match.review {
    background: linear-gradient(135deg, var(--danger), #7f1d1d);
}

.timeline-block.match.conflict {
    background: var(--danger);
    outline: 3px solid #ffcf33;
    outline-offset: -3px;
}

.timeline-block.match.match-disabled {
    background: linear-gradient(180deg, #eef1f4, #dfe4e9);
    border: 1px solid #c8d0d8;
    color: #475467;
    box-shadow: 0 5px 12px rgba(71, 84, 103, 0.1);
}

.timeline-block.match.match-disabled em {
    color: #667085;
}

.timeline-block em {
    color: #fff9d6;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timeline-block.shift {
    border: 1px solid #b9e4d0;
    background: linear-gradient(180deg, #f3fbf6, #e6f6ee);
    color: #14532d;
    cursor: pointer;
    padding-right: 58px;
}

.timeline-block.shift em {
    color: currentColor;
    font-weight: 900;
    opacity: 0.88;
}

.timeline-block.shift.shift-full {
    background: #e6f6ee;
    border-color: #b9e4d0;
    color: #14532d;
}

.timeline-block.shift.shift-partial {
    background: linear-gradient(180deg, #fffaf1, #fff3e2);
    border-color: #ffd7a8;
    color: #7a3d00;
}

.timeline-block.shift.shift-empty {
    background: linear-gradient(180deg, #fff7f6, #fdecea);
    border-color: #f3b5ad;
    color: #842029;
}

.timeline-block.shift.shift-review {
    border-color: #f0a63a;
    box-shadow: inset 0 0 0 1px #f0a63a;
}

.timeline-block.shift-suggested {
    border-style: dashed;
}

.timeline-block.shift-assigned {
    border-style: solid;
    box-shadow: inset 0 0 0 1px rgba(15, 138, 95, 0.18);
}

.timeline-block.shift-unassigned {
    border-style: dashed;
    opacity: 0.82;
}

.assignment-state-badge {
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid currentColor;
    border-radius: 999px;
    display: inline-flex;
    font-size: 9px;
    font-weight: 800;
    height: 16px;
    justify-content: center;
    line-height: 1;
    padding: 0 5px;
    position: absolute;
    right: 5px;
    top: 5px;
    z-index: 2;
}

.timeline-block.shift.shift-adjustable {
    cursor: grab;
    padding-left: 16px;
    padding-right: 78px;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.timeline-block.shift.shift-adjustable .assignment-state-badge {
    max-width: calc(100% - 36px);
    overflow: hidden;
    right: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timeline-block.shift.shift-adjustable:active,
.timeline-block.shift.shift-adjusting {
    cursor: grabbing;
}

.timeline-block.shift.shift-saving {
    opacity: 0.72;
}

.timeline-block.shift.shift-locked {
    cursor: pointer;
    opacity: 0.86;
}

.shift-direct-couple {
    bottom: 5px;
    margin: 0;
    position: absolute;
    right: 18px;
    z-index: 5;
}

.shift-direct-couple button {
    align-items: center;
    background: var(--blue);
    border: 1px solid var(--blue);
    border-radius: 5px;
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    font-size: 9px;
    font-weight: 900;
    height: 20px;
    justify-content: center;
    line-height: 1;
    padding: 0 6px;
}

.shift-resize-handle {
    bottom: 0;
    position: absolute;
    top: 0;
    width: 12px;
    z-index: 3;
}

.shift-resize-left {
    cursor: ew-resize;
    left: 0;
}

.shift-resize-right {
    cursor: ew-resize;
    right: 0;
}

.shift-resize-handle::after {
    background: currentColor;
    border-radius: 999px;
    content: '';
    display: block;
    height: 26px;
    left: 5px;
    opacity: 0.35;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
}

.timeline-add-shift {
    align-items: center;
    display: flex;
    height: 54px;
    justify-content: center;
    position: absolute;
    right: 12px;
    top: 14px;
    width: 48px;
    z-index: 4;
}

.timeline-add-shift button {
    align-items: center;
    background: #ffffff;
    border: 1px dashed rgba(36, 62, 145, 0.36);
    border-radius: 8px;
    color: var(--blue);
    cursor: pointer;
    display: inline-flex;
    font-size: 26px;
    font-weight: 800;
    height: 48px;
    justify-content: center;
    line-height: 1;
    width: 48px;
}

.timeline-add-shift button:hover,
.timeline-add-shift button:focus {
    background: #f0f3fb;
    border-style: solid;
    outline: none;
}

.timeline-add-shift button.is-loading {
    cursor: wait;
    pointer-events: none;
}

.timeline-add-shift button.is-loading .button-spinner {
    margin-right: 0;
}

.timeline-add-shift button.is-loading [data-button-text] {
    display: none;
}

@media (pointer: coarse) {
    .timeline-block.shift.shift-adjustable {
        min-height: 60px;
        padding-left: 30px;
        padding-right: 92px;
    }

    .timeline-block.shift.shift-adjustable .assignment-state-badge {
        max-width: calc(100% - 68px);
        right: 34px;
    }

    .shift-direct-couple {
        right: 34px;
    }

    .shift-direct-couple button {
        height: 26px;
        padding: 0 7px;
    }

    .shift-resize-handle {
        width: 30px;
        z-index: 5;
    }

    .shift-resize-handle::after {
        height: 34px;
        left: 14px;
        opacity: 0.48;
        width: 3px;
    }

    .timeline-add-shift {
        height: 60px;
        width: 56px;
    }

    .timeline-add-shift button {
        height: 52px;
        width: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .button:hover,
    .day-row:hover {
        transform: none;
    }
}

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

.shift-list {
    gap: 12px;
}

.list-row {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 12px;
}

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

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    background: #f0f3fb;
    border: 1px solid rgba(36, 62, 145, 0.14);
    border-radius: 999px;
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
}

.badges .badge {
    display: inline-flex;
}

.badge-full,
.badge.full {
    background: #dff4eb;
    color: #14532d;
}

.badge-partial {
    background: #fff0d9;
    color: #7a3d00;
}

.badge-empty {
    background: #fde6e4;
    color: #842029;
}

.service-card {
    border-left-width: 5px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.service-full {
    background: #f4fbf7;
    border-color: #b9e4d0;
    border-left-color: #74c69d;
}

.service-partial {
    background: #fff9f0;
    border-color: #ffd7a8;
    border-left-color: #f6ad55;
}

.service-empty {
    background: #fff6f4;
    border-color: #f3b5ad;
    border-left-color: #f08a80;
}

.small-link {
    display: inline-block;
    font-size: 13px;
    margin-top: 4px;
}

.inline-form {
    align-items: end;
    grid-template-columns: minmax(80px, 110px) auto;
}

.team-actions {
    display: grid;
    gap: 8px;
}

.suggestion-box {
    background: #f7fbff;
    border: 1px solid #cfe7fb;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    grid-column: 1 / -1;
    padding: 10px;
}

.suggestion-box.is-locked {
    background: #f4f7fb;
    border-color: #d7e1ec;
    color: #667085;
}

.suggestion-box.is-locked .suggestion-form {
    opacity: 0.72;
}

.suggestion-form {
    align-items: end;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(220px, 1fr) auto;
}

.unlink-shift-team-form {
    display: flex;
    justify-content: flex-end;
}

.unlink-shift-team-form .button {
    border-color: #c8d4df;
    color: var(--blue-deep);
}

.team-select-form label {
    min-width: 0;
}

.team-select optgroup[label^="Afwijkend"] {
    color: #8a4b00;
}

.overlap-note {
    display: block;
    margin-top: 4px;
}

.manual-team-warning,
.overlap-team-warning {
    background: #fff7ed;
    border: 1px solid #ffd7a8;
    border-radius: 8px;
    color: #7a3d00;
    display: none;
    font-size: 12px;
    font-weight: 700;
    grid-column: 1 / -1;
    padding: 8px 10px;
}

.overlap-team-warning {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.assignment-warning {
    background: #fff7ed;
    border: 1px solid #ffd7a8;
    border-radius: 8px;
    color: #7a3d00;
    font-size: 13px;
    font-weight: 700;
    grid-column: 1 / -1;
    margin: 0;
    padding: 8px 10px;
}

.assignment-warning-soft {
    background: #f8fbff;
    border-color: #cfe0f2;
    color: #42526b;
}

.team-select-form.has-manual-team .manual-team-warning {
    display: block;
}

.team-select-form.has-overlap-team .overlap-team-warning {
    display: block;
}

.shift-info-form {
    background: #fbfdff;
    border: 1px solid #e1e9f2;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-column: 1 / -1;
    padding: 10px;
}

.shift-info-form .shift-info-message {
    grid-column: 1 / -1;
    min-height: 0;
}

.shift-parent-contacts {
    background: #fbfdff;
    border: 1px solid #dbe6f1;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-column: 1 / -1;
    padding: 10px;
}

.admin-section-head.compact {
    margin: 0;
}

.parent-contact-item {
    background: #ffffff;
    border: 1px solid #e1e9f2;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 10px;
}

.parent-contact-head {
    align-items: start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.parent-contact-head > div:first-child {
    display: grid;
    gap: 5px;
}

.parent-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.parent-contact-links a {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.parent-contact-actions,
.parent-contact-remove-form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.parent-contact-actions .parent-contact-remove-form {
    margin: 0;
}

.mail-compose-window {
    width: min(560px, calc(100vw - 32px));
}

.mail-compose-recipient {
    background: #f7fbff;
    border: 1px solid #dbe6f1;
    border-radius: 8px;
    display: grid;
    gap: 4px;
    padding: 10px;
}

.mail-compose-recipient span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.mail-compose-modal .parent-contact-message-form {
    display: grid;
    gap: 12px;
}

.mail-compose-modal textarea {
    min-height: 180px;
}

.signup-list {
    display: grid;
    gap: 16px;
}

.signup-card {
    background: var(--white);
    border: 1px solid rgba(198, 214, 226, 0.94);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 0;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.signup-card.is-selected {
    border-color: rgba(36, 62, 145, 0.42);
    box-shadow: 0 18px 46px rgba(36, 62, 145, 0.14);
}

.signup-card.is-full {
    border-color: rgba(15, 138, 95, 0.36);
}

.signup-card.is-full::before {
    background: linear-gradient(90deg, #0f8a5f, #34a853, #9bd7b8);
}

.signup-card.is-full .signup-info {
    background: linear-gradient(180deg, #ffffff, #f2fbf6);
    border-left-color: #0f8a5f;
}

.signup-card.is-full .signup-date {
    border-color: rgba(15, 138, 95, 0.24);
    border-left-color: #0f8a5f;
}

.signup-list.is-form-mode .signup-card:not(.is-selected) {
    display: none;
}

.signup-list.is-form-mode .signup-card.is-selected .signup-info {
    display: none;
}

.signup-list.is-form-mode .signup-card.is-selected .signup-form-card {
    border-top: 0;
}

.signup-list.is-form-mode .signup-card.is-selected .signup-waitlist-notice {
    margin: 18px;
}

.signup-card::before {
    background: linear-gradient(90deg, var(--blue-deep), var(--blue), var(--aurora-red));
    content: '';
    height: 5px;
    inset: 0 0 auto;
    position: absolute;
}

.time {
    font-size: 22px;
    font-weight: 700;
    margin: 8px 0;
}

.form-message {
    color: var(--blue-dark);
    font-weight: 700;
    min-height: 20px;
}

.form-message:not(:empty) {
    border-radius: 8px;
    padding: 10px 12px;
}

.form-message.busy {
    background: #f0f3fb;
}

.form-message.success {
    background: #e8f7f0;
    color: var(--success);
}

.form-message.warning {
    background: #fff3e2;
    color: var(--warning);
}

.form-message.error {
    background: #fff0ee;
    color: var(--danger);
}

.signup-hero {
    background:
        linear-gradient(115deg, var(--aurora-red) 0 7px, transparent 7px 100%),
        linear-gradient(135deg, #111f58 0%, #243e91 58%, #1b2f78 100%);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    color: var(--white);
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
    min-width: 0;
    overflow: hidden;
    padding: 24px;
    position: relative;
}

.signup-hero > * {
    position: relative;
    z-index: 1;
}

.hero-logo {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(214, 219, 231, 0.94);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(16, 31, 88, 0.22);
    display: block;
    height: 82px;
    margin-bottom: 18px;
    max-width: 230px;
    object-fit: contain;
    padding: 8px 10px;
    width: auto;
}

.signup-hero h1 {
    color: #ffffff;
    font-size: 34px;
    margin-top: 8px;
    max-width: 780px;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 12px rgba(9, 20, 60, 0.28);
}

.signup-hero p {
    color: rgba(255, 255, 255, 0.88);
    margin: 10px 0 0;
    max-width: 620px;
}

.eyebrow {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.signup-hero-card {
    align-self: end;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    min-width: 140px;
    padding: 14px;
}

.signup-hero-card strong,
.signup-hero-card span {
    display: block;
}

.signup-hero-card strong {
    font-size: 34px;
    line-height: 1;
}

.signup-hero-card span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
    margin-top: 6px;
}

.signup-info {
    background:
        linear-gradient(180deg, #ffffff, #f8faff);
    border-left: 4px solid rgba(36, 62, 145, 0.88);
    display: grid;
    gap: 14px;
    padding: 18px;
}

.signup-card-head {
    align-items: start;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.signup-card-head > div {
    min-width: 0;
}

.signup-meta {
    color: var(--muted);
    font-size: 13px;
}

.signup-date {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(36, 62, 145, 0.20);
    border-left: 4px solid var(--aurora-red);
    border-radius: 8px;
    color: var(--blue-deep);
    display: inline-flex;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
    padding: 8px 10px;
}

.signup-card h2 {
    color: var(--blue-deep);
    font-size: 30px;
    margin-top: 8px;
    overflow-wrap: anywhere;
}

.status-pill {
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    min-width: 72px;
    padding: 6px 10px;
    white-space: nowrap;
}

.status-pill.open {
    background: #eef2ff;
    border: 1px solid rgba(36, 62, 145, 0.18);
    color: var(--blue-deep);
}

.status-pill.wait {
    background: #fff3e2;
    border: 1px solid #ffd7a8;
    color: var(--warning);
}

.status-pill.full {
    background: #e8f7f0;
    border: 1px solid rgba(15, 138, 95, 0.26);
    color: #0f6b4a;
}

.signup-progress {
    background: #e9eef5;
    border-radius: 999px;
    height: 9px;
    overflow: hidden;
}

.signup-progress span {
    background: linear-gradient(90deg, var(--blue-deep), var(--blue), var(--aurora-red));
    display: block;
    height: 100%;
}

.signup-card.is-full .signup-progress span {
    background: linear-gradient(90deg, #0f8a5f, #34a853);
}

.signup-meta {
    margin: 0;
}

.signup-names-panel {
    background: #f7f9fd;
    border: 1px solid rgba(36, 62, 145, 0.16);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 12px;
}

.signup-names-panel > strong {
    color: var(--blue-deep);
    display: block;
    font-size: 13px;
}

.signup-name-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.signup-name-list span,
.signup-empty-name {
    background: #ffffff;
    border: 1px solid rgba(198, 214, 226, 0.88);
    border-radius: 999px;
    color: #344054;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    padding: 6px 9px;
}

.signup-empty-name {
    border-style: dashed;
    color: var(--muted);
    justify-self: start;
}

.signup-extra-info {
    background: #f4f6fb;
    border: 1px solid rgba(36, 62, 145, 0.16);
    border-radius: 8px;
    padding: 12px;
}

.signup-extra-info strong,
.signup-extra-info p {
    display: block;
}

.signup-extra-info p {
    color: #344054;
    margin: 6px 0 0;
}

.signup-waitlist-notice {
    background: #fff8eb;
    border: 1px solid #ffd7a8;
    border-left: 4px solid var(--warning);
    border-radius: 8px;
    color: #694100;
    display: grid;
    gap: 10px;
    padding: 18px;
}

.signup-waitlist-notice[hidden] {
    display: none !important;
}

.signup-waitlist-notice strong,
.signup-waitlist-notice p {
    display: block;
}

.signup-waitlist-notice p {
    margin: 0;
}

.signup-open-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.signup-select-button {
    justify-self: start;
    margin-top: 2px;
}

.signup-form-card {
    background:
        linear-gradient(180deg, #ffffff, #fbfcff);
    border-top: 1px solid var(--line);
    display: grid;
    gap: 14px;
    padding: 18px;
}

.signup-form-card[hidden] {
    display: none !important;
}

.signup-form-head {
    align-items: center;
    border-bottom: 1px solid rgba(198, 214, 226, 0.76);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding-bottom: 12px;
}

.signup-form-head strong {
    color: var(--blue-deep);
    font-size: 17px;
}

.signup-form-kicker {
    background: var(--aurora-red-soft);
    border: 1px solid rgba(201, 31, 47, 0.20);
    border-radius: 999px;
    color: var(--aurora-red-dark);
    font-size: 11px;
    font-weight: 900;
    padding: 5px 8px;
    text-transform: uppercase;
}

.signup-back-button {
    justify-self: end;
}

.signup-field-grid {
    display: grid;
    gap: 12px;
}

.signup-field {
    align-content: start;
    display: grid;
    gap: 6px;
}

.field-error {
    color: #a11929;
    display: block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    min-height: 0;
}

.field-error:empty {
    display: none;
}

.login-panel {
    margin-top: min(12vh, 90px);
    overflow: hidden;
    padding: 28px;
    position: relative;
}

.login-panel::before,
.state-panel::before {
    background:
        linear-gradient(90deg, var(--aurora-red), var(--blue) 58%, var(--shield-silver));
    content: '';
    height: 7px;
    inset: 0 0 auto;
    position: absolute;
}

.login-panel h1 {
    color: var(--blue-deep);
    margin-top: 8px;
}

.login-panel .eyebrow {
    color: var(--aurora-red);
}

.state-panel {
    margin-top: min(12vh, 90px);
    overflow: hidden;
    padding: 28px;
    position: relative;
}

.state-panel h1 {
    color: var(--blue-deep);
    margin-top: 8px;
}

.state-panel .button {
    margin-top: 8px;
}

.state-panel form {
    margin-top: 18px;
}

.login-panel .muted,
.state-panel .muted {
    color: #475467;
}

.state-form {
    border-top: 1px solid rgba(198, 214, 226, 0.82);
    padding-top: 16px;
}

.state-form label {
    color: #253044;
    font-weight: 800;
}

.state-form input {
    border-color: #ccd4e6;
    min-height: 46px;
}

.unsubscribe-panel h2 {
    color: var(--blue-deep);
    font-size: 16px;
    margin-top: 4px;
}

.unsubscribe-panel .button.warning {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 42%),
        linear-gradient(135deg, var(--aurora-red), var(--aurora-red-dark));
    border-color: var(--aurora-red-dark);
    box-shadow: 0 12px 24px rgba(168, 24, 40, 0.18);
}

.not-found-panel .eyebrow,
.unsubscribe-panel .eyebrow {
    color: var(--aurora-red);
}

.panel > .eyebrow,
.login-panel .eyebrow {
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.signup-form-card label {
    color: #253044;
    font-weight: 800;
}

.signup-form-card input {
    background: #ffffff;
    border-color: #ccd4e6;
    min-height: 46px;
}

.signup-form-card input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(36, 62, 145, 0.14);
    outline: 0;
}

.signup-admin-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.signup-admin-list span {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.signup-admin-list a {
    background: #f0f3fb;
    border: 1px solid #cbd8e6;
    border-radius: 999px;
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    text-decoration: none;
}

.signup-form-card .button {
    min-height: 48px;
    min-width: 150px;
    justify-self: start;
}

.signup-form-card .button.primary {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%),
        linear-gradient(135deg, var(--aurora-red) 0%, var(--aurora-red-dark) 52%, #801321 100%);
    border-color: #8f1422;
    box-shadow: 0 12px 24px rgba(168, 24, 40, 0.20);
}

.signup-form-card .button.primary:hover,
.signup-form-card .button.primary:focus-visible {
    border-color: #8f1422;
    box-shadow: 0 14px 28px rgba(168, 24, 40, 0.26);
}

.signup-form-card .button.warning {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 42%),
        linear-gradient(135deg, var(--blue), var(--blue-deep));
    border-color: var(--blue-deep);
    box-shadow: 0 12px 24px rgba(16, 31, 88, 0.20);
}

.empty-signup {
    background: var(--white);
    border: 1px dashed #b7c7d8;
    border-radius: 8px;
    padding: 28px;
    text-align: center;
}

.empty-signup p {
    color: var(--muted);
    margin-bottom: 0;
}

.print-panel {
    overflow: hidden;
}

.print-panel::before {
    background: linear-gradient(90deg, var(--aurora-red), var(--blue) 58%, var(--shield-silver));
    content: '';
    display: block;
    height: 6px;
    margin: -18px -18px 18px;
}

.print-head {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.print-head .eyebrow {
    color: var(--aurora-red);
}

.print-logo {
    height: 64px;
    margin-bottom: 10px;
}

.print-count {
    background: #f0f3fb;
    border: 1px solid rgba(36, 62, 145, 0.14);
    border-radius: 999px;
    color: var(--blue-dark);
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 900;
    padding: 7px 10px;
}

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

.print-table th {
    background: #f3f8fc;
    color: var(--blue-deep);
    font-size: 12px;
    text-transform: uppercase;
}

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

.print-table tbody tr:nth-child(even) {
    background: #fbfdff;
}

.day-overview {
    display: grid;
    gap: 12px;
}

.day-row {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(198, 214, 226, 0.94);
    border-left: 5px solid var(--blue);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: grid;
    gap: 12px;
    padding: 12px;
    transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.day-row:hover {
    background: #ffffff;
    border-color: rgba(36, 62, 145, 0.28);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.day-row:focus-within {
    border-color: rgba(36, 62, 145, 0.42);
    box-shadow: 0 0 0 3px rgba(36, 62, 145, 0.12), var(--shadow-md);
}

.day-row.complete {
    border-left-color: var(--success);
}

.day-row.open {
    border-left-color: var(--warning);
}

.day-row.empty {
    border-left-color: var(--danger);
}

.day-row.has-match-changes {
    box-shadow: inset 0 0 0 1px rgba(201, 31, 47, 0.18), var(--shadow-sm);
}

.day-change-badge {
    background: #fff1f0;
    border: 1px solid #f3b5ad;
    border-radius: 6px;
    color: #842029;
    display: inline-flex;
    font-size: 12px;
    margin-top: 5px;
    padding: 5px 7px;
    width: fit-content;
}

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

.day-date strong {
    font-size: 18px;
}

.day-date span,
.day-summary span {
    color: var(--muted);
    font-size: 13px;
}

.shift-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.shift-chip {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    font-size: 13px;
    gap: 2px;
    max-width: 260px;
    min-width: 170px;
    padding: 8px 10px;
}

.shift-chip b,
.shift-chip em {
    display: block;
}

.shift-chip em {
    color: var(--warning);
    font-style: normal;
    font-weight: 700;
}

.shift-chip.filled {
    background: linear-gradient(180deg, #f7fcf9, #edf8f3);
    border-color: #b9e4d0;
}

.shift-chip.needs-signup {
    background: linear-gradient(180deg, #fffaf3, #fff7ed);
    border-color: #ffd7a8;
}

.shift-chip.shift-suggested {
    border-style: dashed;
}

.shift-chip.shift-assigned {
    border-style: solid;
}

.shift-chip.shift-unassigned {
    border-style: dashed;
    background: linear-gradient(180deg, #fffafa, #fff6f4);
    border-color: #f3b5ad;
}

.assignment-chip-label {
    color: var(--blue-dark);
    display: block;
    font-size: 11px;
    letter-spacing: 0.02em;
    margin-top: 2px;
    text-transform: uppercase;
}

.day-open {
    align-self: center;
}

.day-modal {
    align-items: center;
    background: rgba(10, 24, 38, 0.52);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 10px;
    position: fixed;
    z-index: 100;
}

.shift-detail-modal {
    align-items: center;
    background: rgba(10, 24, 38, 0.46);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 140;
}

.shift-detail-modal.is-open {
    display: flex;
}

.shift-detail-backdrop {
    inset: 0;
    position: absolute;
}

.shift-detail-window {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: min(92vh, 900px);
    overflow: hidden;
    position: relative;
    width: min(920px, calc(100vw - 28px));
}

.shift-detail-header {
    align-items: center;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 10px 12px 10px 16px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.shift-detail-full .shift-detail-header {
    background: #edf8f3;
    border-bottom-color: #b9e4d0;
}

.shift-detail-partial .shift-detail-header {
    background: #fff7ed;
    border-bottom-color: #ffd7a8;
}

.shift-detail-empty .shift-detail-header {
    background: #fff0ee;
    border-bottom-color: #f3b5ad;
}

.shift-detail-header strong,
.shift-detail-header span {
    display: block;
}

.shift-detail-header strong {
    font-size: 16px;
}

.shift-detail-header span {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.shift-detail-close {
    flex: 0 0 auto;
}

.shift-detail-content {
    overflow: auto;
    padding: 14px 16px 16px;
}

.shift-detail-content .service-card {
    background: var(--white);
    border-color: var(--line);
    border-left-color: var(--line);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.shift-detail-content .shift-edit-form,
.shift-detail-content .suggestion-form {
    grid-template-columns: repeat(3, minmax(80px, 1fr)) auto;
}

.shift-detail-content .shift-edit-form .delete-blocked-note {
    grid-column: 1 / -1;
}

.shift-detail-content .suggestion-form {
    grid-template-columns: minmax(280px, 1fr) auto;
}

.shift-detail-content .team-select {
    min-width: min(320px, 100%);
}

.shift-detail-content .shift-info-form,
.shift-detail-content .delete-shift-form {
    grid-column: 1 / -1;
}

.shift-detail-content .shift-info-form {
    grid-column: 1;
}

.shift-detail-content .suggestion-box {
    grid-column: 2;
}

@media (max-width: 760px) {
    .shift-detail-modal {
        padding: 6px;
    }

    .shift-detail-window {
        max-height: calc(100vh - 12px);
        width: calc(100vw - 12px);
    }

    .shift-detail-content {
        padding: 10px;
    }

    .shift-detail-content .service-card {
        grid-template-columns: 1fr;
    }

    .shift-detail-content .shift-edit-form,
    .shift-detail-content .suggestion-form {
        grid-template-columns: 1fr;
    }

    .shift-detail-content .shift-info-form,
    .shift-detail-content .suggestion-box {
        grid-column: 1;
    }

    .shift-detail-content .suggestion-form .button,
    .shift-detail-content .team-select {
        min-width: 0;
        width: 100%;
    }
}

.confirm-modal {
    align-items: center;
    background: rgba(16, 24, 40, 0.42);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 170;
}

.confirm-modal.is-open {
    display: flex;
}

.confirm-backdrop {
    inset: 0;
    position: absolute;
}

.confirm-window {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    width: min(420px, calc(100vw - 32px));
}

.confirm-header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 10px 12px 10px 16px;
}

.confirm-header strong {
    font-size: 16px;
}

.confirm-body {
    display: grid;
    gap: 16px;
    padding: 16px;
}

.confirm-body p {
    color: var(--ink);
    margin: 0;
}

.margin-review-window {
    width: min(590px, calc(100vw - 32px));
}

.margin-review-protection {
    background: #f5f8fc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 3px;
    padding: 12px;
}

.margin-review-protection strong {
    color: var(--blue-deep);
}

.margin-review-protection span {
    color: var(--muted);
    font-size: 13px;
}

.margin-review-actions {
    flex-wrap: wrap;
}

.match-change-review {
    background: #fff8f7;
    border: 1px solid #f0c5bf;
    border-left: 4px solid var(--aurora-red);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
}

.match-change-head {
    align-items: start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.match-change-head h2 {
    font-size: 18px;
    margin: 2px 0;
}

.match-change-head p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.match-change-list {
    display: grid;
    gap: 8px;
}

.match-change-item {
    align-items: start;
    background: #ffffff;
    border: 1px solid #ead8d5;
    border-radius: 7px;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 10px;
}

.match-change-item strong,
.match-change-item p {
    overflow-wrap: anywhere;
}

.match-change-item p {
    color: var(--muted);
    font-size: 13px;
    margin: 3px 0 0;
}

.match-change-vervallen .badge {
    background: #fdecea;
    color: #842029;
}

.match-change-hersteld .badge {
    background: #e6f6ee;
    color: #14532d;
}

.match-change-migration code {
    overflow-wrap: anywhere;
}

@media (max-width: 719px) {
    .match-change-head {
        align-items: stretch;
        flex-direction: column;
    }

    .match-change-head .button {
        width: 100%;
    }

    .match-change-item {
        grid-template-columns: 1fr;
    }

    .margin-review-actions .button {
        width: 100%;
    }
}

.confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.day-modal.is-open {
    display: flex;
}

.day-modal-window {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-rows: 56px minmax(0, 1fr);
    height: min(95vh, 980px);
    max-width: 1600px;
    overflow: hidden;
    width: min(95vw, 1600px);
}

.day-modal-bar {
    align-items: center;
    background: linear-gradient(180deg, #ffffff, #f6fafd);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 0 14px 0 18px;
    position: sticky;
    top: 0;
    z-index: 3;
}

.day-modal-bar strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.day-modal-bar.complete {
    background: #edf8f3;
    border-bottom-color: #b9e4d0;
}

.day-modal-bar.open {
    background: #fff7ed;
    border-bottom-color: #ffd7a8;
}

.day-modal-bar.empty {
    background: #fff0ee;
    border-bottom-color: #f3b5ad;
}

.modal-close {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font-size: 28px;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    line-height: 1;
    width: 44px;
}

.day-modal-window iframe {
    border: 0;
    height: 100%;
    width: 100%;
}

.day-modal-title {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 10px;
    min-width: 0;
}

.day-modal-title img {
    display: block;
    flex: 0 0 auto;
    height: 32px;
    width: 32px;
}

.day-modal-title strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-page {
    max-width: none;
    padding: 10px;
}

.modal-page .panel:first-child {
    margin-top: 0;
}

.modal-page .panel {
    padding: 10px;
}

@media (min-width: 768px) and (max-width: 1180px) and (orientation: landscape) {
    .day-modal {
        padding: 6px;
    }

    .day-modal-window {
        grid-template-rows: 48px minmax(0, 1fr);
        height: calc(100vh - 12px);
        width: calc(100vw - 12px);
    }

    .day-modal-bar {
        padding: 0 10px 0 14px;
    }

    .modal-page {
        padding: 6px;
    }

    .modal-page .panel {
        padding: 8px;
    }

    .timeline-hours {
        height: 30px;
    }

    .timeline-hour-label {
        bottom: 6px;
        font-size: 11px;
    }

    .timeline-row.label {
        font-size: 11px;
        padding: 6px 8px;
    }

    .timeline-block {
        min-height: 50px;
        padding-bottom: 6px;
        padding-top: 6px;
        top: 10px;
    }

    .timeline-block strong,
    .timeline-block span {
        font-size: 11px;
    }

    .timeline-lane {
        min-height: 72px;
    }

    .timeline-lane.service-lane {
        min-height: 72px;
        padding-right: 64px;
    }

    .timeline-add-shift {
        right: 8px;
        top: 10px;
    }
}

.shift-summary-panel {
    margin-top: 14px;
}

.team-link-grid {
    display: grid;
    gap: 10px;
}

.settings-toggle-card {
    align-items: center;
    background: linear-gradient(180deg, #ffffff, #f8fbfe);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    padding: 14px;
}

.settings-toggle-card input {
    height: 20px;
    min-height: 0;
    width: 20px;
}

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

.settings-toggle-card small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.team-link-overview {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-link-overview span {
    background: #f8fbfe;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    padding: 10px 12px;
}

.team-link-overview b {
    color: var(--blue-deep);
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

.team-links-page {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.team-links-page .team-links-layout {
    overflow: visible;
}

.team-links-page .notice {
    margin: 14px 16px 0;
}

.team-link-manager {
    border-bottom: 1px solid var(--line);
    padding: 16px;
}

.team-link-manager h3 {
    margin: 0 0 4px;
}

.team-link-manager-actions {
    flex: 0 0 auto;
    margin: 0;
}

.team-link-manager-actions .button {
    white-space: nowrap;
}

.team-link-manager-list {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.team-link-manager-row {
    align-items: center;
    background: #f8fbfe;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-width: 0;
    padding: 10px 12px;
}

.team-link-manager-row.is-unreachable {
    background: #f3f5f8;
    color: var(--muted);
}

.team-link-manager-row > span {
    min-width: 0;
}

.team-link-manager-row strong,
.team-link-manager-row small {
    display: block;
}

.team-link-manager-row small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.team-link-manager-row form {
    flex: 0 0 auto;
    margin: 0;
}

.season-selector {
    margin-top: 12px;
    max-width: 260px;
}

.season-selector label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.season-selector select {
    background: #ffffff;
    margin-top: 5px;
    min-height: 42px;
}

.season-archive-banner {
    background: #f3f5f8;
    border: 1px solid #d7dee8;
    border-left: 4px solid #667085;
    border-radius: 6px;
    color: #475467;
    font-size: 13px;
    font-weight: 700;
    margin-top: 12px;
    padding: 10px 12px;
}

.season-migration-notice {
    margin-top: 12px;
}

.season-start-button {
    border-color: #b54708;
    color: #8a3505;
}

.team-links-page-head .dashboard-logo {
    margin-bottom: 8px;
}

.team-links-header {
    align-items: start;
    background: #f8fbfe;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 16px 18px;
}

.team-links-header h2 {
    margin: 2px 0 4px;
}

.team-links-bulk-form {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
}

.team-links-layout {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
    min-height: 0;
    overflow: auto;
    padding: 16px;
}

.team-links-selection-list {
    display: grid;
    gap: 8px;
}

.team-links-selection-row {
    align-items: center;
    background: linear-gradient(180deg, #ffffff, #f8fbfe);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 10px;
}

.team-links-selection-row.is-unreachable {
    background: #f3f5f8;
    color: #667085;
}

.team-links-selection-row input {
    height: 18px;
    min-height: 0;
    width: 18px;
}

.team-links-selection-row strong,
.team-links-selection-row small {
    display: block;
}

.team-links-planning-blocked {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.team-links-planning-blocked p {
    margin: 4px 0 0;
}

.team-link-unreachable-reason {
    color: #8a4b00 !important;
    margin-top: 3px;
}

@media (max-width: 719px) {
    .team-links-planning-blocked {
        align-items: stretch;
        flex-direction: column;
    }

    .team-links-planning-blocked .button {
        width: 100%;
    }

    .team-links-selection-row {
        align-items: start;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .team-links-selection-row > .badge {
        grid-column: 2;
        justify-self: start;
    }
}

.team-links-selection-row small {
    color: var(--muted);
    font-size: 12px;
}

.team-links-compose {
    align-content: start;
    display: grid;
    gap: 12px;
}

.team-link-preview {
    background: #f8fbfe;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 12px;
}

.team-link-preview pre {
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
    overflow: auto;
    white-space: pre-wrap;
}

.team-links-selection-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 12px;
}

.team-link-delivery-status {
    display: block;
    margin-top: 3px;
    font-weight: 650;
}

.team-link-delivery-status.is-sent {
    color: #16724a;
}

.team-link-delivery-status.is-pending {
    color: #8a5a00;
}

.team-link-delivery-status.is-failed {
    color: #a33a35;
}

.team-link-scope-note {
    display: block;
    margin-top: 2px;
    color: #667085;
}

.badge-danger-soft {
    border-color: #efb3ae;
    background: #fff0ef;
    color: #9b2f2a;
}

.action-center {
    margin-bottom: 16px;
    border-top: 4px solid #243e91;
}

.action-center .section-head {
    align-items: flex-start;
}

.action-center-list {
    display: grid;
    gap: 8px;
}

.action-center-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 62px;
    padding: 11px 14px;
    border: 1px solid #d7e1ec;
    border-left: 4px solid #4e79a7;
    border-radius: 6px;
    background: #f8fbfe;
    color: #1b2a3f;
    text-decoration: none;
}

.action-center-row:hover {
    border-color: #9cb7d2;
    background: #f1f7fc;
}

.action-center-row.is-urgent {
    border-left-color: #b64840;
    background: #fff7f6;
}

.action-center-row.is-warning {
    border-left-color: #c78319;
    background: #fffaf1;
}

.action-center-row.is-monitoring {
    border-left-color: #20845c;
    background: #f3fbf7;
}

.action-center-row > span {
    display: grid;
    gap: 3px;
}

.action-center-row small {
    color: #667085;
}

.action-center-row > b {
    flex: 0 0 auto;
    color: #243e91;
    font-size: 13px;
}

.action-center-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #b8ddca;
    border-radius: 6px;
    background: #f3fbf7;
    color: #176544;
}

.shift-chip.no-service {
    border-color: #d4dbe4;
    background: #f5f7fa;
    color: #667085;
}

.day-row.missing {
    border-left-color: #c78319;
}

.day-row.disabled {
    border-left-color: #aab4c0;
}

@media (max-width: 720px) {
    .action-center-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .action-center-empty {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}

.sticky-actions {
    background: #ffffff;
    border-top: 1px solid var(--line);
    margin: 0;
    padding: 12px 16px;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

@media (max-width: 820px) {
    .team-link-overview,
    .team-links-layout,
    .team-link-manager-list {
        grid-template-columns: 1fr;
    }

    .team-links-header {
        padding: 12px;
    }

    .team-links-layout {
        padding: 12px;
    }

    .team-link-manager .admin-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .team-link-manager-actions .button {
        width: 100%;
    }
}

.notification-panel {
    display: grid;
    gap: 16px;
}

.notification-modal {
    align-items: center;
    background: rgba(10, 24, 38, 0.52);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 130;
}

.notification-modal.is-open {
    display: flex;
}

.notification-modal-backdrop {
    inset: 0;
    position: absolute;
}

.notification-modal-window {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-height: min(88vh, 820px);
    overflow: auto;
    padding: 18px;
    position: relative;
    width: min(980px, calc(100vw - 28px));
}

.notification-modal-close {
    justify-self: end;
    margin-bottom: -54px;
    margin-left: auto;
    position: sticky;
    top: 14px;
    z-index: 3;
}

.notification-modal-window > .section-head {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-right: 54px;
}

.notification-modal-logo {
    display: block;
    height: 52px;
    object-fit: contain;
    width: auto;
}

.notification-modal-eyebrow {
    color: var(--aurora-red);
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.notification-summary {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notification-summary span {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.7), transparent 42%),
        #f8fbfe;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    min-width: 0;
    padding: 10px 12px;
}

.notification-summary b {
    color: var(--blue-deep);
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

.notification-send-form {
    display: grid;
    gap: 12px;
}

.notification-tools {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.notification-selected-count {
    background: #f8fbfe;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--blue-deep);
    font-size: 12px;
    font-weight: 900;
    margin-right: auto;
    padding: 7px 10px;
}

.notification-list,
.notification-log-table {
    display: grid;
    gap: 10px;
}

.notification-row,
.notification-log-row {
    align-items: center;
    background: linear-gradient(180deg, #ffffff, #f8fbfe);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.35fr) auto;
    padding: 12px;
}

.notification-log-row {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.5fr);
}

.notification-row input[type="checkbox"] {
    height: 18px;
    min-height: 0;
    width: 18px;
}

.notification-badges {
    align-items: end;
    display: grid;
    gap: 6px;
    justify-items: end;
}

.notification-row strong,
.notification-row small,
.notification-row b,
.notification-log-row strong,
.notification-log-row small,
.notification-log-row b {
    display: block;
}

.notification-row small,
.notification-log-row small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}

.notification-log {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    padding-top: 16px;
}

.notification-status-sent {
    background: #dff4eb;
    color: #14532d;
}

.notification-status-failed {
    background: #fff0ee;
    color: var(--danger);
}

.notification-status-pending,
.notification-status-processing {
    background: #fff0d9;
    color: #7a3d00;
}

.notification-status-cancelled {
    background: #eef2f6;
    color: #475467;
}

.team-link-row {
    align-items: stretch;
    background: linear-gradient(180deg, #ffffff, #f7fbfe);
    border: 1px solid var(--line);
    border-left: 5px solid rgba(36, 62, 145, 0.22);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px;
}

.team-link-row.is-mail-ready {
    border-left-color: #2f9d6a;
}

.team-link-row.is-missing-contact {
    background: linear-gradient(180deg, #ffffff, #fff9f0);
    border-left-color: #f2a93b;
}

.team-link-row strong,
.team-link-row span {
    display: block;
}

.team-link-head {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.team-link-head-badges {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
}

.team-link-head strong {
    color: var(--blue-deep);
    font-size: 16px;
}

.team-link-meta {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
}

.team-link-meta span {
    background: #f8fbfe;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    padding: 8px 10px;
}

.team-link-meta b {
    color: var(--ink);
    display: block;
    font-size: 11px;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.team-link-hint {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    margin: 8px 0 0;
}

.team-link-recipients {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.team-link-recipients span {
    background: #ffffff;
    border: 1px solid rgba(36, 62, 145, 0.16);
    border-left: 3px solid var(--aurora-red);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    min-width: min(220px, 100%);
    padding: 8px 10px;
}

.team-link-recipients b {
    color: var(--blue-deep);
    display: block;
    font-size: 13px;
}

.team-link-actions {
    align-content: start;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.team-link-actions form {
    margin: 0;
}

.team-link-actions.compact {
    justify-content: flex-end;
}

.team-contact-card {
    margin-top: 14px;
}

.team-contact-card.is-first-card {
    margin-top: 0;
}

.team-contact-list-head {
    align-items: center;
}

.team-contact-list-head .button {
    flex: 0 0 auto;
}

.team-contact-create-window {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(100dvh - 24px);
    width: min(680px, calc(100vw - 32px));
}

.team-contact-create-form {
    min-height: 0;
    overflow-y: auto;
}

.team-contact-create-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-contact-create-grid label:last-child {
    grid-column: 1 / -1;
}

.team-contact-create-actions {
    justify-content: flex-end;
}

.contact-filter-count {
    justify-self: end;
}

.team-contact-list {
    display: grid;
    gap: 12px;
}

.team-contact-empty {
    background: #f8fbfe;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    margin: 0;
    padding: 14px;
}

.team-contact-team {
    background: linear-gradient(180deg, #ffffff, #f8faff);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 12px;
}

.team-contact-team[hidden],
.team-contact-empty[hidden] {
    display: none !important;
}

.team-contact-team-head,
.team-contact-row {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.team-contact-team-head strong,
.team-contact-row strong,
.team-contact-row span {
    display: block;
}

.team-contact-team-head strong,
.team-contact-row strong {
    color: var(--blue-deep);
}

.team-contact-row {
    background: #ffffff;
    border: 1px solid rgba(198, 214, 226, 0.82);
    border-radius: 8px;
    grid-template-columns: minmax(0, 1fr) minmax(240px, auto) auto;
    padding: 10px;
}

.team-contact-row span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}

.team-contact-rows {
    display: grid;
    gap: 8px;
}

.team-contact-move {
    align-items: center;
    display: flex;
    gap: 8px;
}

.team-order-list {
    column-count: 2;
    column-gap: 10px;
}

.team-order-item {
    align-items: center;
    background: linear-gradient(180deg, #ffffff, #f8fbfe);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: grab;
    display: grid;
    gap: 10px;
    grid-template-columns: 34px 22px minmax(0, 1fr);
    break-inside: avoid;
    margin: 0 0 7px;
    padding: 8px 10px;
}

.team-order-item.is-disabled-team {
    background: #f2f4f7;
    color: #667085;
    opacity: 0.78;
}

.team-order-rank {
    align-items: center;
    background: #f0f3fb;
    border: 1px solid rgba(36, 62, 145, 0.16);
    border-radius: 8px;
    color: var(--blue-deep);
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    min-width: 30px;
}

.team-order-item.is-dragging {
    opacity: 0.45;
}

.team-order-item.drag-over {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(36, 62, 145, 0.12);
}

.team-order-placeholder {
    background: #edf1fb;
    border: 2px dashed rgba(36, 62, 145, 0.34);
    border-radius: 8px;
    break-inside: avoid;
    margin: 0 0 7px;
    min-height: 46px;
}

.drag-handle {
    color: var(--muted);
    font-weight: 900;
    letter-spacing: 1px;
    text-align: center;
}

.team-order-list small {
    color: var(--muted);
    display: block;
    font-weight: 600;
}

.team-order-item > span:not(.drag-handle):not(.team-order-rank) {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-width: 0;
}

.team-order-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-order-item > span:not(.drag-handle):not(.team-order-rank) small {
    display: inline;
    flex: 0 0 auto;
    white-space: nowrap;
}

.team-planning-switch {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 6px;
    padding: 4px 8px;
}

.team-planning-switch input {
    height: 16px;
    min-height: 0;
    width: 16px;
}

.team-planning-switch span {
    color: var(--blue-deep);
    font-size: 12px;
    font-weight: 900;
}

.shift-edit-form,
.add-shift-panel {
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border: 1px solid #e1e9f2;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-column: 1 / -1;
    padding: 10px;
}

.delete-shift-form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    grid-column: 1 / -1;
}

.delete-blocked-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.add-shift-panel {
    margin-top: 12px;
}

.empty-state {
    padding: 24px;
    text-align: center;
}

@media (min-width: 720px) {
    .page {
        padding: 28px 24px 64px;
    }

    .has-topbar .page {
        padding-top: 92px;
    }

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

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

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

    .form-grid .button {
        align-self: end;
    }

    .date-switcher {
        align-items: end;
        grid-template-columns: minmax(170px, 220px) auto;
    }

    .list-row {
        align-items: center;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .list-row .names {
        grid-column: 1 / -1;
        margin: 0;
    }

    .shift-list .service-card {
        align-items: start;
    }

    .shift-edit-form,
    .add-shift-panel {
        align-items: end;
        grid-template-columns: repeat(3, minmax(90px, 1fr)) auto;
    }

    .modal-page .shift-list,
    .shift-summary-panel .shift-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .signup-hero {
        align-items: end;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 32px;
    }

    .signup-card {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .signup-form-card {
        border-top: 1px solid var(--line);
    }

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

    .signup-field-grid label:first-child {
        grid-column: 1 / -1;
    }

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

}

@media (min-width: 720px) and (max-width: 980px) {
    .settings-block-grid,
    .settings-rule-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-block-grid .settings-block-card:last-child,
    .settings-rule-summary span:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 719px) {
    .topbar {
        gap: 10px;
        min-height: 62px;
        padding: 0 12px;
    }

    .brand {
        font-size: 15px;
        gap: 8px;
        max-width: 56vw;
        overflow: hidden;
    }

    .brand-logo {
        height: 36px;
        flex: 0 0 auto;
    }

    .brand span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav {
        font-size: 14px;
        gap: 8px;
        max-width: 42vw;
        overflow: hidden;
    }

    .nav span {
        display: none;
    }

    .nav a {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .has-topbar .page {
        padding-top: 82px;
    }

    .dashboard-head,
    .section-head {
        display: grid;
    }

    .dashboard-head {
        grid-template-columns: 1fr;
    }

    .section-badges {
        justify-content: flex-start;
    }

    .actions,
    .actions form,
    .actions .button {
        width: 100%;
    }

    .dashboard-head .actions {
        justify-content: stretch;
        max-width: none;
        width: 100%;
    }

    .admin-landing-head .actions {
        margin-top: 4px;
    }

    .test-mode-banner {
        align-items: flex-start;
        display: grid;
        grid-template-columns: 1fr;
    }

    .test-mode-banner .badge {
        justify-self: start;
    }

    .login-panel {
        margin-left: auto;
        margin-right: auto;
        margin-top: 72px;
        max-width: 342px;
        padding: 26px 22px;
    }

    .state-panel {
        margin-left: auto;
        margin-right: auto;
        margin-top: 72px;
        max-width: 342px;
        padding: 26px 22px;
    }

    .login-panel h1 {
        font-size: 30px;
    }

    .state-panel h1 {
        font-size: 30px;
    }

    .panel-logo {
        height: 64px;
        max-width: 190px;
    }

    .hero-logo {
        height: 72px;
        max-width: 210px;
    }

    .admin-menu-panel.wide {
        bottom: 10px;
        height: auto;
        left: 10px !important;
        max-height: calc(100vh - 74px);
        min-width: 0;
        right: auto !important;
        top: 64px;
        transform: none;
        width: calc(100vw - 20px) !important;
    }

    .admin-close {
        height: 38px;
        position: absolute;
        right: 14px;
        top: 14px;
        width: 42px;
        z-index: 31;
    }

    .admin-panel-header {
        display: grid;
        padding: 12px 52px 0 4px;
    }

    .admin-panel-header .admin-logo {
        height: 44px;
        margin-bottom: 6px;
    }

    .admin-panel-header h2 {
        font-size: 18px;
        margin-top: 4px;
    }

    .admin-panel-header p {
        display: none;
    }

    .admin-tabs {
        gap: 12px;
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        padding-left: 4px;
        padding-right: 4px;
    }

    .admin-tab-list {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        position: static;
    }

    .admin-tab {
        grid-template-columns: minmax(0, 1fr);
        padding: 9px 10px;
    }

    .admin-tab span {
        display: none;
    }

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

    .admin-filter-bar {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .contact-filter-count {
        justify-self: stretch;
    }

    .settings-block-grid {
        grid-template-columns: 1fr;
    }

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

    .admin-section-head {
        display: grid;
    }

    .admin-user-row {
        grid-template-columns: 1fr;
    }

    .admin-user-row > .badges {
        justify-content: flex-start;
        padding: 0 4px 6px;
    }

    .confirm-window.user-edit-window {
        max-height: calc(100vh - 20px);
        width: calc(100vw - 20px);
    }

    .user-edit-grid {
        grid-template-columns: 1fr;
    }

    .user-edit-actions,
    .user-edit-danger-zone {
        align-items: stretch;
        display: grid;
    }

    .user-edit-actions .button,
    .user-edit-danger-zone .button,
    .user-edit-danger-zone form {
        width: 100%;
    }

    .admin-form-actions {
        align-items: stretch;
        display: grid;
    }

    .team-link-head {
        align-items: start;
        display: grid;
    }

    .team-link-head-badges {
        justify-content: flex-start;
    }

    .team-link-meta {
        grid-template-columns: 1fr;
    }

    .team-link-actions {
        justify-content: stretch;
    }

    .team-link-actions .button,
    .team-link-actions form,
    .team-link-actions form .button {
        width: 100%;
    }

    .notification-row,
    .notification-log-row {
        align-items: start;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .notification-row > span:nth-of-type(2),
    .notification-row > .notification-badges,
    .notification-log-row > span:nth-child(3) {
        grid-column: 2;
    }

    .notification-badges {
        justify-items: start;
    }

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

    .notification-tools {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    .notification-tools .button,
    .notification-selected-count {
        margin-right: 0;
        text-align: center;
        width: 100%;
    }

    .notification-modal {
        padding: 10px;
    }

    .notification-modal-window {
        max-height: calc(100vh - 20px);
        width: calc(100vw - 20px);
    }

    .notification-modal-window > .section-head {
        align-items: start;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .notification-modal-window > .section-head > .badge {
        grid-column: 2;
        justify-self: start;
    }

    .notification-modal-logo {
        height: 44px;
    }

    .team-contact-team-head,
    .team-contact-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .team-contact-list-head,
    .team-contact-create-grid {
        grid-template-columns: 1fr;
    }

    .team-contact-list-head .button,
    .team-contact-create-grid label:last-child {
        grid-column: auto;
        width: 100%;
    }

    .team-contact-move {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .signup-hero {
        gap: 16px;
        padding: 22px 20px;
    }

    .signup-hero p {
        font-size: 17px;
        line-height: 1.55;
    }

    .signup-hero-card {
        padding: 16px;
    }

    .signup-hero-card span {
        font-size: 15px;
        line-height: 1.45;
    }

    .signup-info {
        gap: 16px;
        padding: 20px 18px;
    }

    .signup-date {
        font-size: 17px;
        line-height: 1.35;
        padding: 9px 11px;
    }

    .signup-card h2 {
        font-size: 32px;
    }

    .status-pill {
        align-items: center;
        font-size: 14px;
        min-height: 34px;
        padding: 7px 12px;
    }

    .signup-meta {
        font-size: 15px;
        line-height: 1.5;
    }

    .signup-names-panel {
        gap: 10px;
        padding: 14px;
    }

    .signup-names-panel > strong,
    .signup-extra-info strong {
        font-size: 15px;
    }

    .signup-name-list span,
    .signup-empty-name {
        font-size: 14px;
        line-height: 1.4;
        padding: 8px 10px;
    }

    .signup-extra-info {
        padding: 14px;
    }

    .signup-extra-info p,
    .signup-waitlist-notice p {
        font-size: 16px;
        line-height: 1.55;
    }

    .signup-select-button {
        font-size: 16px;
        justify-self: stretch;
        min-height: 54px;
        width: 100%;
    }

    .signup-form-card {
        gap: 18px;
        padding: 20px 18px 22px;
    }

    .signup-back-button {
        font-size: 15px;
        justify-self: stretch;
        min-height: 50px;
        width: 100%;
    }

    .signup-form-kicker {
        font-size: 12px;
        justify-self: start;
        padding: 6px 9px;
    }

    .signup-form-head strong {
        font-size: 18px;
        line-height: 1.45;
    }

    .signup-field-grid {
        gap: 16px;
    }

    .signup-form-card label {
        font-size: 16px;
        gap: 8px;
        line-height: 1.4;
    }

    .signup-form-card input {
        font-size: 17px;
        min-height: 54px;
        padding: 13px 14px;
    }

    .signup-form-card > .button {
        font-size: 16px;
        justify-self: stretch;
        min-height: 54px;
        width: 100%;
    }

    .signup-form-card .field-error {
        font-size: 14px;
        line-height: 1.45;
    }

    .signup-form-card .form-message {
        font-size: 15px;
        line-height: 1.5;
    }

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

    .admin-menu-panel.wide {
        max-width: calc(100vw - 20px);
    }

    .team-order-list {
        column-count: 1;
    }

    .team-order-item > span:not(.drag-handle):not(.team-order-rank) {
        align-items: start;
        display: grid;
        gap: 2px;
        justify-content: stretch;
    }

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

@media print {
    .topbar,
    .button,
    .nav {
        display: none;
    }

    body,
    .page {
        background: #fff;
        padding: 0;
    }

    .panel {
        border: 0;
        box-shadow: none;
    }

    .print-panel::before {
        margin-left: 0;
        margin-right: 0;
    }

    .print-table th {
        background: #f3f8fc !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
