/* Save That Date — base styles */
:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --text: #1c2430;
    --muted: #5f6b7a;
    --border: #dde2e8;
    --primary: #2f5bd3;
    --primary-hover: #2449ad;
    --primary-text: #ffffff;
    --danger: #c0392b;
    --danger-bg: #fdecea;
    --success: #1e7b4b;
    --success-bg: #e7f6ee;
    --warning: #8a5a00;
    --warning-bg: #fff4dc;
    --info-bg: #eaf0fd;
    --radius: 8px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #12161c;
        --surface: #1b2129;
        --text: #e6e9ee;
        --muted: #9aa5b3;
        --border: #2d3640;
        --primary: #6d8ff0;
        --primary-hover: #8aa6f5;
        --primary-text: #0d1220;
        --danger: #f08277;
        --danger-bg: #3a1f1d;
        --success: #6fd29d;
        --success-bg: #17301f;
        --warning: #f1c264;
        --warning-bg: #352a12;
        --info-bg: #1d2740;
        --shadow: none;
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
main.container { padding-top: 28px; padding-bottom: 48px; }

/* Area below the header; takes the division's background colour if one is set
   (a nonce'd <style> in the layout sets background-color and a readable text colour). */
.page-body { flex: 1; }
.has-background .page-head .muted { color: inherit; opacity: .75; }
/* Panels keep their normal colours whatever the page background is. */
.card, .table-wrap, .tile, .choice, .alert-info, .badge { color: var(--text); }

.muted { color: var(--muted); }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
/* The favicon's save icon, about the height of the text (decorative: the name follows). */
.brand-logo { width: 1.3em; height: 1.3em; flex: none; }
.main-nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-division { font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--info-bg); color: var(--text); }

/* Header dropdowns (<details class="nav-menu">): the division name, and the user's first name */
.nav-menu { position: relative; }
.nav-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; user-select: none; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after {
    content: ""; width: 6px; height: 6px; margin-top: -3px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform .15s;
}
.nav-menu[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.nav-menu > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.division-menu > summary:hover { background: color-mix(in srgb, var(--primary) 16%, var(--info-bg)); }
.nav-user { color: var(--muted); font-weight: 500; border-radius: 6px; }
.nav-user:hover, .user-menu[open] > .nav-user { color: var(--text); }
.nav-menu-list {
    position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; min-width: 200px;
    max-width: min(320px, calc(100vw - 32px)); max-height: 60vh; overflow-y: auto;
    margin: 0; padding: 4px; list-style: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(16, 24, 40, .14);
}
/* The name menu sits at the far right, so it opens leftwards. */
.user-menu .nav-menu-list { left: auto; right: 0; min-width: 160px; }
.nav-menu-list form { margin: 0; }
.main-nav .nav-menu-list a, .nav-menu-item {
    display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none;
    color: var(--text); font: inherit; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer;
}
.main-nav .nav-menu-list a:hover, .main-nav .nav-menu-list a:focus-visible,
.nav-menu-item:hover, .nav-menu-item:focus-visible { background: var(--info-bg); color: var(--text); outline: none; }

.inline-form { display: inline; margin: 0; }
.link-button {
    background: none; border: 0; padding: 0; font: inherit; font-weight: 500;
    color: var(--primary); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.main-nav .link-button { color: var(--muted); text-decoration: none; }
.main-nav .link-button:hover { color: var(--text); }

/* "← Back to …" above a drilled-into page's heading */
.back-link { margin: -8px 0 10px; font-size: .9rem; }
.back-link a { text-decoration: none; font-weight: 500; }
.back-link a:hover { text-decoration: underline; }

/* Page header */
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

/* Buttons */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 16px; border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--surface); color: var(--text); font: inherit; font-weight: 500;
    text-decoration: none; cursor: pointer; line-height: 1.2;
}
.button:hover { border-color: var(--muted); color: var(--text); }
.button-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.button-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-text); }
.button-danger { color: var(--danger); }
.button-danger:hover { border-color: var(--danger); color: var(--danger); }
.button-small { padding: 5px 10px; font-size: .875rem; }
.button-block { width: 100%; }
.button[disabled], .button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* Alerts */
.alert { padding: 12px 14px; border-radius: var(--radius); margin-bottom: 18px; }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-info { background: var(--info-bg); }
.alert-with-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Cards & forms */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.form { max-width: 720px; }
.form-narrow { max-width: 460px; }
.form.form-wide { max-width: 900px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], input[type="password"], select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg); color: var(--text); font: inherit;
}
input:focus, select:focus, .button:focus-visible, a:focus-visible, .link-button:focus-visible {
    outline: 2px solid var(--primary); outline-offset: 2px;
}
input[aria-invalid="true"] { border-color: var(--danger); }
select:disabled { opacity: .7; }

.field-check { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.field-check label { font-weight: 400; margin: 0; }
.field-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.field-error { color: var(--danger); font-size: .9rem; margin: 6px 0 0; }
.hint { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
/* Colour picker with a "no colour" state */
.colour-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
input[type="color"] {
    width: 56px; height: 38px; padding: 3px; cursor: pointer;
    border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }
input[type="color"]::-moz-color-swatch { border: 0; border-radius: 5px; }
input[type="color"].is-empty::-webkit-color-swatch {
    background: repeating-linear-gradient(135deg, #ffffff 0 5px, #dfe4eb 5px 10px) !important;
}
input[type="color"].is-empty::-moz-color-swatch {
    background: repeating-linear-gradient(135deg, #ffffff 0 5px, #dfe4eb 5px 10px) !important;
}
.colour-text { font-variant-numeric: tabular-nums; }
.swatch { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }

/* List toolbar: Add button on the left, filters on the right */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.filter-form label { font-weight: 600; }
.add-organisation { margin-bottom: 16px; }
.choose-division-alt { margin-top: 20px; }
.filters { display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap; }
.filter-form select { width: auto; min-width: 220px; }

/* Type-to-search dropdown (see app.js enhanceCombobox) */
.combobox { position: relative; width: 280px; max-width: 100%; }
input.combobox-input {
    padding-right: 34px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235f6b7a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.combobox-list {
    position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0;
    max-height: 280px; overflow-y: auto; margin: 0; padding: 4px; list-style: none;
    background: var(--surface); color: var(--text); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: 0 8px 24px rgba(16, 24, 40, .14);
}
.combobox-list li { padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.combobox-list li.is-active { background: color-mix(in srgb, var(--primary) 16%, transparent); }
.combobox-list li[aria-selected="true"] { font-weight: 600; }
.combobox-list mark { background: none; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.combobox-list .combobox-separator { padding: 0; margin: 4px 6px; height: 0; border-top: 1px solid var(--border); cursor: default; }
.combobox-list .combobox-empty { color: var(--muted); cursor: default; }
@media (max-width: 640px) { .combobox, .filter-form { width: 100%; } }

.checkbox-group { margin-top: 14px; }
.checkbox-group-head { display: flex; align-items: baseline; gap: 16px; }
.select-all { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 500 !important; font-size: .875rem; margin: 0 !important; cursor: pointer; }
.select-all[hidden] { display: none !important; }
.select-all input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.checkbox-group-title { margin: 0 0 4px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.field-label { display: block; font-weight: 600; margin-bottom: 6px; }
.read-only-value { margin: 0; }
.code-input { font-size: 1.4rem !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.remember-field .hint { margin: 2px 0 0 26px; }
.auth-alt { text-align: center; margin-top: 16px; }
.account-sections { display: grid; gap: 20px; max-width: 720px; }
.account-sections h2 { font-size: 1.15rem; margin: 0 0 16px; }
.account-sections h3 { font-size: 1rem; margin: 0 0 4px; }
.recovery-code-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 16px; }
.recovery-code-list code, .manual-key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; letter-spacing: .04em; }
.recovery-codes p { margin: 0; }
.two-factor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
@media (max-width: 640px) { .two-factor-actions { grid-template-columns: 1fr; } }
.setup-steps { padding-left: 20px; margin: 0 0 12px; }
.setup-steps li { margin-bottom: 16px; }
.qr-code { margin: 12px 0; }
.qr-code img { display: block; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: 6px; }
.confirm-code { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.confirm-code .field { margin: 0; max-width: 180px; }
.two-factor-admin { margin-top: 20px; }
.two-factor-admin h2 { font-size: 1.15rem; margin: 0 0 12px; }
.impersonation-banner { background: #b3261e; color: #fff; }
.impersonation-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; font-size: .95rem; }
.impersonation-inner form { margin: 0; }
.impersonation-banner .button { background: #fff; border-color: #fff; color: #7a1712; }
.impersonation-banner .button:hover { background: #ffe9e7; border-color: #ffe9e7; color: #7a1712; }
.tiles-spaced { margin-top: 16px; }
textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; resize: vertical; }
textarea:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
/* Booking calendar admin */
.calendar-link { margin-bottom: 24px; }
.calendar-link h2, .form-section h2, .calendar-bookings-head h2 { font-size: 1.15rem; margin: 0 0 12px; }
.link-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.link-input { flex: 1 1 320px; min-width: 0; }
.embed-details { margin-top: 12px; }
.embed-details summary { cursor: pointer; color: var(--primary); }
.embed-code { width: 100%; margin: 8px 0; font: .85rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.calendar-warning { margin: 14px 0 0; }
.remove-calendar { margin-top: 28px; }
.danger-link { color: var(--danger); }
.danger-link[disabled] { opacity: .45; cursor: default; text-decoration: none; }
.table.table-top th, .table.table-top td { vertical-align: top; }
.table.table-top td.actions { padding-top: 9px; }
.booking-notes { font-size: .875rem; white-space: pre-line; margin-top: 2px; }
.slot-line { margin: 2px 0; }
.slot-line .badge { margin-left: 4px; }
.form-section { margin-bottom: 20px; max-width: 760px; }
.slot-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px 4px; margin: 0 0 16px; max-width: 760px; }
/* The legend sits on the card's top edge, so give it one solid colour (a bubble) rather than half page, half card. */
.slot-card > legend { font-weight: 700; font-size: .85rem; padding: 2px 14px; border-radius: 999px; background: var(--primary); color: var(--primary-text); }
.slot-card fieldset > legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.slot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.slot-card label { font-weight: 600; display: block; }
.slot-card .check-inline { font-weight: 400; display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; }
.slot-card .check-inline input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.slot-card label > select, .slot-card label > input, .slot-card label > textarea { display: block; width: 100%; }
/* Dropdowns only need to be as wide as their longest option. */
.slot-card label > select, .slot-card .rule-grid select { width: auto; max-width: 100%; }
.date-field { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.date-field .date-display {
    width: 9.5em; cursor: pointer; display: block; margin-top: 4px;
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235f6b7a' stroke-width='1.4' d='M2 4h12v10H2zM2 7h12M5 2v3M11 2v3'/%3E%3C/svg%3E") no-repeat right 8px center / 16px;
}
/* The real date box stays underneath (invisible) so the browser's picker opens beside it. */
.date-field .date-native { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.slot-card label .date-field { display: flex; margin-top: 4px; }
.slot-card label .date-field .date-display { margin-top: 0; }
.date-clear { border: 0; background: none; color: var(--primary); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.date-time-pair .date-field .date-display { margin-top: 0; }
.date-time-pair { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.date-time-pair input, .date-time-pair select { margin-top: 0 !important; width: auto; }
/* Date and date-time boxes only need to be as wide as the date they show. */
.slot-card label > input[type="date"], .slot-card label > input[type="datetime-local"] { width: auto; }
.slot-card select, .slot-card input[type="date"], .slot-card input[type="datetime-local"], .slot-card input[type="text"], .slot-card textarea { margin-top: 4px; }
.slot-card legend + .check-row, .check-row { padding: 2px 0; }
.rule-grid { display: grid; grid-template-columns: max-content max-content; gap: 8px 14px; align-items: center; justify-content: start; }
.rule-grid label { font-weight: 400; }
.field-row-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .field-row-3 { grid-template-columns: 1fr; } }
.rates-table input { width: 100%; max-width: 160px; }
input[type="number"], input[type="datetime-local"], input[type="date"], input[type="time"] { padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; }
input[type="color"].plain { width: 56px; }
.rules-intro { max-width: 760px; }
.range-table select, .range-table input { width: auto; margin: 2px 2px 2px 0; padding: 7px 8px; }
.range-table .range-yearly { text-align: center; }
.range-table .range-yearly input { margin: 10px 0 0; }
.range-table td:last-child input { width: 100%; min-width: 140px; }
.hint-block { margin: -6px 0 18px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* Login */
.auth-wrap { max-width: 420px; margin: 24px auto 0; }
.hero { text-align: center; margin-bottom: 20px; }
.hero h1 { font-size: 2rem; }
.hero p { margin: 6px 0 0; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.table .num { text-align: center; }
.table .num a { font-weight: 600; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions > * { margin-left: 4px; }
.row-muted td { color: var(--muted); }
/* Wide tables (e.g. Users): tighter cells so the actions stay in view. */
.table-compact th, .table-compact td { padding: 9px 10px; }
.table-compact .actions > * { margin-left: 2px; }

/* Badges */
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--info-bg); color: var(--text); vertical-align: middle; }
.badge-ok { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }

/* Dashboard tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
a.tile:hover { border-color: var(--primary); color: var(--text); }
.tile-value { font-size: 2rem; font-weight: 700; }
.tile-label { color: var(--muted); }

/* Division choice */
.choice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 520px; }
.choice { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 600; box-shadow: var(--shadow); }
.choice:hover { border-color: var(--primary); color: var(--text); }

/* Pagination & errors */
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.error-page { text-align: center; padding: 48px 0; }
.error-code { font-size: 3rem; font-weight: 700; color: var(--muted); margin: 0; }
.error-page h1 { margin-bottom: 8px; }

/* Tabs on the room calendar page (plain links) joined to the panel they switch */
.tabs-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.tabs-row .filter-form { margin-bottom: 8px; }
.tabs { display: flex; gap: 4px; margin: 0; position: relative; z-index: 1; }
.tab {
    padding: 8px 14px; border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
    background: color-mix(in srgb, var(--muted) 16%, var(--surface)); color: var(--primary); text-decoration: none; margin-bottom: -1px;
}
a.tab:hover { background: color-mix(in srgb, var(--muted) 26%, var(--surface)); }
.tab.is-active { background: var(--surface); color: var(--text); font-weight: 600; padding-bottom: 9px; }
.tab-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 0 var(--radius) var(--radius) var(--radius); box-shadow: var(--shadow); padding: 12px; color: var(--text); }
.tab-panel .table-wrap { border: 0; box-shadow: none; border-radius: 0; background: none; }
.tab-empty { margin: 4px; }
.tab-panel .hint { margin: 10px 0 0; }
.calendar-nav { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; flex-wrap: wrap; }
.calendar-month { min-width: 8em; text-align: center; }
.calendar-past { display: inline-flex; align-items: center; gap: 6px; margin-left: 16px; font-weight: 400; }
.calendar-past input { margin: 0; }
.admin-calendar { overflow-x: auto; }
.admin-calendar .scheduler { width: 100%; min-width: 760px; }
.admin-calendar .scheduler .slash { width: 80px; }
.admin-calendar .tooltip-wrap .tooltip-content { min-width: 14rem; }
.sort-link { color: inherit; text-decoration: none; white-space: nowrap; }
.sort-link:hover { text-decoration: underline; }
.sort-icon { margin-left: 5px; font-size: .8em; }
.sort-icon.is-idle { color: var(--muted); }
.rule-room { font-size: 1.1rem; margin: 22px 0 10px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.rule-room .muted { font-size: .9rem; font-weight: 400; }
.slot-card input[type="time"] { width: auto; min-width: 8.5em; }
.slot-time-hint { margin: -6px 0 12px; }
