:root {
    --ink: #17212b;
    --muted: #66717d;
    --line: #dbe2e8;
    --surface: #ffffff;
    --background: #f3f5f6;
    --navy: #244866;
    --navy-dark: #17344d;
    --orange: #d88a2d;
    --success: #19764a;
    --danger: #a43333;
    --radius: 14px;
    --shadow: 0 12px 35px rgba(23, 33, 43, 0.08);
}

/* Public website embeds */
.public-embed-body {
    background: var(--embed-background, #fff);
}

.public-embed-wrap {
    max-width: 980px;
    padding: clamp(14px, 3vw, 28px);
}

.public-embed-wrap .public-booking-intro {
    margin-bottom: 18px;
}

.public-embed-wrap .card {
    box-shadow: 0 3px 14px rgba(25, 43, 58, .08);
}

.public-embed-footer {
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    font-size: .75rem;
    justify-content: space-between;
    margin: 0 clamp(14px, 3vw, 28px);
    padding: 14px 0 18px;
}

.public-embed-footer a {
    color: var(--navy);
    font-weight: 750;
    text-decoration: none;
}

.embed-code-section {
    margin-top: 22px;
}

.embed-snippet {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.embed-snippet + .embed-snippet {
    margin-top: 22px;
}

.embed-snippet h3 {
    margin: 0 0 4px;
}

.embed-snippet pre {
    background: #132230;
    border-radius: 10px;
    color: #eaf2f8;
    margin: 12px 0 0;
    overflow-x: auto;
    padding: 16px;
    white-space: pre-wrap;
    word-break: break-word;
}

.embed-snippet code {
    font-size: .82rem;
}

@media (max-width: 720px) {
    .public-embed-wrap {
        padding: 12px;
    }

    .public-embed-footer {
        align-items: flex-start;
        display: grid;
        gap: 4px;
        margin-inline: 12px;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: var(--navy);
}

.shell {
    height: 100vh;
    display: grid;
    grid-template-columns: 250px 1fr;
    overflow: hidden;
}

.sidebar {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 24px 18px;
    background: var(--navy-dark);
    color: #fff;
}

.brand {
    display: block;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 30px;
}

.brand small {
    display: block;
    margin-top: 2px;
    color: #bcd0df;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nav {
    min-height: 0;
    flex: 1;
    display: grid;
    align-content: start;
    gap: 24px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-color: rgba(255, 255, 255, .24) transparent;
    scrollbar-width: thin;
}

.nav::-webkit-scrollbar {
    width: 6px;
}

.nav::-webkit-scrollbar-track {
    background: transparent;
}

.nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, .24);
}

.nav-section {
    display: grid;
    gap: 6px;
}

.nav-section + .nav-section {
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding-top: 22px;
}

.nav-section-heading {
    color: #8fa9bb;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .11em;
    padding: 0 12px 6px;
    text-transform: uppercase;
}

.nav-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nav-count {
    min-width: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #dbe7ef;
    font-size: .7rem;
    font-weight: 800;
    padding: 2px 7px;
    text-align: center;
}

.nav-section-hint,
.nav-empty {
    margin: -1px 12px 7px;
    color: #8fa9bb;
    font-size: .72rem;
    line-height: 1.4;
}

.hall-switch-list {
    display: grid;
    gap: 6px;
}

.nav a,
.nav button {
    width: 100%;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #dbe7ef;
    cursor: pointer;
    font: inherit;
    text-align: left;
    padding: 10px 12px;
    text-decoration: none;
}

.nav a:hover,
.nav a:focus,
.nav button:hover,
.nav button:focus {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.nav a.is-active {
    background: rgba(255, 255, 255, .13);
    color: #fff;
    font-weight: 750;
    box-shadow: inset 3px 0 0 var(--orange);
}

.nav .hall-switch,
.nav .platform-return {
    display: grid;
    gap: 1px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
}

.nav .hall-switch span,
.nav .platform-return span {
    color: #fff;
    font-weight: 700;
}

.nav .hall-switch small,
.nav .platform-return small {
    color: #8fa9bb;
    font-size: .68rem;
}

.platform-return-section {
    margin-top: 6px;
}

.nav .platform-return {
    box-shadow: inset 3px 0 0 #64a7d7;
}

.sidebar-footer {
    flex: 0 0 auto;
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding-top: 14px;
}

.sidebar-footer button {
    border: 0;
    background: transparent;
    color: #bcd0df;
    cursor: pointer;
    padding: 8px 0;
}

.main {
    height: 100vh;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 68px;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.topbar strong {
    font-size: 1.05rem;
}

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

.topbar-title {
    display: grid;
    gap: 3px;
}

.topbar .context-label {
    justify-self: start;
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 3px 8px;
    text-transform: uppercase;
}

.context-platform {
    background: #e4eef6;
    color: #285a7e !important;
}

.context-hall {
    background: #fff0dc;
    color: #87500c !important;
}

.content {
    padding: 30px;
    max-width: 1220px;
}

.hall-content {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    max-width: none;
    min-height: calc(100vh - 68px);
}

.hall-content.has-hall-background::before {
    content: "";
    position: fixed;
    top: 68px;
    right: 0;
    bottom: 0;
    left: 250px;
    z-index: 0;
    background-image: var(--hall-background-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: var(--hall-background-opacity, .05);
    pointer-events: none;
}

.hall-content > :not(script) {
    position: relative;
    z-index: 1;
    max-width: 1160px;
}

.platform-content {
    max-width: 1440px;
}

.platform-sidebar {
    background: #111d28;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.lede {
    color: var(--muted);
    margin: 0 0 28px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.card,
.metric,
.auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.metric {
    padding: 20px;
}

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

.metric strong {
    display: block;
    margin-top: 7px;
    font-size: 1.8rem;
}

.metric a {
    display: inline-block;
    margin-top: 7px;
    color: var(--navy);
    font-size: .78rem;
    font-weight: 750;
}

.card {
    margin-top: 20px;
    padding: 22px;
}

.card h2 {
    margin: 0 0 18px;
    font-size: 1.2rem;
}

.page-head,
.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.page-head {
    margin-bottom: 24px;
}

.page-head .lede {
    margin-bottom: 0;
}

.card-head {
    align-items: center;
    margin-bottom: 18px;
}

.card-head h2 {
    margin: 0;
}

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

.field-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, .4fr);
    gap: 12px;
}

.pricing-test-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.pricing-test-action {
    align-items: end;
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
}

.pricing-test-result {
    display: grid;
    grid-template-columns: minmax(150px, .7fr) minmax(220px, 1fr) minmax(280px, 1.5fr);
    gap: 20px;
    margin-top: 20px;
    border-radius: 10px;
    padding: 18px;
}

.pricing-test-result.is-match {
    background: #e7f5ed;
    color: var(--success);
}

.pricing-test-result.is-no-match {
    background: #f9e8e8;
    color: var(--danger);
    grid-template-columns: 1fr;
}

.pricing-test-result div {
    display: grid;
    align-content: start;
    gap: 3px;
}

.pricing-test-result span,
.pricing-test-result small {
    font-size: .85rem;
}

.pricing-test-result strong {
    font-size: 1rem;
}

.pricing-test-result > div:first-child strong {
    font-size: 1.8rem;
}

.field {
    display: grid;
    gap: 6px;
}

.field.full {
    grid-column: 1 / -1;
}

.booking-time-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(190px, 1.25fr) repeat(3, minmax(130px, .75fr));
    align-items: start;
    gap: 18px;
}

.booking-time-grid .field {
    align-content: start;
}

.booking-time-note {
    grid-column: 1 / -1;
    margin: -7px 0 0;
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.45;
}

label,
.label {
    font-size: .88rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #bdc8d1;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    padding: 10px 11px;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

input:disabled,
select:disabled,
textarea:disabled {
    background: #edf1f4;
    color: var(--muted);
    cursor: not-allowed;
    opacity: .72;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--navy);
    outline: 3px solid rgba(36, 72, 102, .12);
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
}

.check input {
    width: auto;
    margin-top: 4px;
}

.button {
    display: inline-flex;
    border: 0;
    border-radius: 9px;
    background: var(--navy);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    justify-content: center;
    padding: 11px 17px;
    text-decoration: none;
}

.button:hover,
.button:focus {
    background: var(--navy-dark);
}

.actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.day-options {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.day-options .check {
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f8fafb;
    padding: 9px;
}

.alert {
    border-radius: 9px;
    margin: 0 0 18px;
    padding: 12px 14px;
}

.alert-success {
    background: #e7f5ed;
    color: var(--success);
}

.alert-error {
    background: #f9e8e8;
    color: var(--danger);
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(100%, 560px);
    padding: 30px;
}

.auth-card.wide {
    width: min(100%, 760px);
}

.auth-card h1 {
    margin-bottom: 10px;
}

.stack {
    display: grid;
    gap: 17px;
}

.setup-link {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: .9rem;
    text-align: center;
}

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

.workspace-choice {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    padding: 14px 16px;
    text-align: left;
}

.workspace-choice:hover,
.workspace-choice:focus {
    border-color: var(--navy);
    outline: 3px solid rgba(36, 72, 102, .12);
}

.workspace-choice span {
    color: var(--muted);
    font-size: .82rem;
}

.payment-method {
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 16px;
}

.payment-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.payment-head .check {
    font-size: 1rem;
}

.hint {
    color: var(--muted);
    font-size: .84rem;
}

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

.settings-tabs a {
    margin-bottom: -1px;
    border-bottom: 3px solid transparent;
    color: var(--muted);
    font-weight: 750;
    padding: 10px 13px;
    text-decoration: none;
}

.settings-tabs a:hover,
.settings-tabs a:focus {
    color: var(--navy);
}

.settings-tabs a.is-active {
    border-bottom-color: var(--orange);
    color: var(--ink);
}

.branding-preview {
    position: relative;
    isolation: isolate;
    min-height: 330px;
    display: grid;
    align-items: center;
    overflow: hidden;
    margin: 20px 0 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--background);
    padding: 28px;
}

.branding-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--preview-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: var(--preview-opacity, .05);
}

.branding-preview:not(.has-image)::after {
    content: "No background image uploaded";
    position: absolute;
    inset: 0;
    z-index: -1;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: .9rem;
}

.branding-preview-content {
    width: min(100%, 520px);
    display: grid;
    gap: 8px;
}

.branding-preview .context-label {
    justify-self: start;
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 3px 8px;
    text-transform: uppercase;
}

.branding-preview-content > strong {
    font-size: 1.6rem;
}

.branding-preview-content article {
    display: grid;
    gap: 5px;
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 20px;
}

.branding-preview-content article span {
    color: var(--muted);
    font-size: .8rem;
}

.branding-form {
    margin-top: 8px;
}

.range-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.range-label output {
    color: var(--navy);
    font-weight: 800;
}

input[type="range"] {
    padding: 0;
}

.branding-remove-form {
    margin-top: 16px;
    text-align: right;
}

.search-bar {
    display: grid;
    grid-template-columns: minmax(240px, 520px) auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 22px;
}

.hall-status-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.hall-status-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafb;
    color: var(--ink);
    padding: 10px 12px;
    text-decoration: none;
}

.hall-status-filter:hover,
.hall-status-filter:focus {
    border-color: var(--navy);
}

.hall-status-filter.is-active {
    border-color: var(--navy);
    background: #edf3f7;
    box-shadow: inset 0 -3px 0 var(--navy);
}

.hall-status-filter strong {
    min-width: 26px;
    border-radius: 999px;
    background: #e7edf1;
    font-size: .75rem;
    padding: 2px 7px;
    text-align: center;
}

.early-access-status-filters {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.early-access-follow-up {
    display: grid;
    grid-template-columns: minmax(130px, .65fr) minmax(220px, 1.35fr) auto;
    align-items: start;
    gap: 8px;
    min-width: 470px;
}

.early-access-follow-up textarea {
    min-height: 42px;
}

.early-access-table .status {
    margin-top: 8px;
}

.status-new,
.status-invited {
    background: #fff3df;
    color: #8b5705;
}

.status-contacted {
    background: #e9f0f5;
    color: var(--navy);
}

.status-joined {
    background: #e7f5ed;
    color: var(--success);
}

.status-closed {
    background: #edf1f4;
    color: #465461;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}

th,
td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: .76rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

td small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.table-actions form {
    margin: 0;
}

.link-action {
    border: 0;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
}

.link-action-danger {
    color: var(--danger);
}

.resource-options {
    min-width: 0;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
}

.resource-option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.resource-option-grid .check {
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f8fafb;
    padding: 10px;
}

.resource-option-grid small {
    display: block;
    color: var(--muted);
    font-size: .75rem;
    text-transform: capitalize;
}

.status {
    display: inline-flex;
    border-radius: 999px;
    background: #edf1f4;
    color: #465461;
    font-size: .75rem;
    font-weight: 750;
    padding: 4px 9px;
    text-transform: capitalize;
}

.status-active,
.status-complete,
.status-approved,
.status-confirmed {
    background: #e7f5ed;
    color: var(--success);
}

.status-trial,
.status-trialing,
.status-provisional,
.status-awaiting_approval {
    background: #fff3df;
    color: #8b5705;
}

.status-past_due,
.status-suspended,
.status-cancelled,
.status-disabled,
.status-rejected,
.status-expired {
    background: #f9e8e8;
    color: var(--danger);
}

.status-maintenance {
    background: #fff3df;
    color: #8b5705;
}

.founding-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    border: 1px solid #e3b561;
    border-radius: 999px;
    background: #fff5df;
    color: #7c4d00;
    font-size: .7rem;
    font-weight: 800;
    padding: 4px 9px;
    vertical-align: middle;
}

.empty-state {
    max-width: 620px;
    margin: 28px auto;
    text-align: center;
}

.empty-state h2 {
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--muted);
}

.checkbox-stack {
    align-content: center;
    gap: 12px;
}

.availability-check {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(130px, 1fr)) auto;
    align-items: end;
    gap: 12px;
}

.availability-result {
    display: grid;
    gap: 4px;
    margin-top: 16px;
    border-radius: 10px;
    padding: 14px 16px;
}

.availability-result.is-available {
    background: #e7f5ed;
    color: var(--success);
}

.availability-result.is-blocked {
    background: #f9e8e8;
    color: var(--danger);
}

.availability-result span {
    font-size: .85rem;
}

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

.split-grid .card {
    min-width: 0;
}

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

.resource-hours-selector {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin: 18px 0;
}

.resource-hours-scope {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--background);
    padding: 14px;
}

.resource-hours-scope > div {
    display: grid;
    gap: 3px;
}

.resource-hours-scope span {
    color: var(--muted);
    font-size: .86rem;
}

.resource-hours-scope.is-generic {
    border-color: #cbded4;
    background: #f2f8f5;
}

.hours-fieldset {
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.hours-fieldset[disabled] {
    opacity: .58;
}

.hours-row {
    display: grid;
    grid-template-columns: 110px minmax(90px, 1fr) auto minmax(90px, 1fr) 90px;
    align-items: center;
    gap: 10px;
}

.hours-row input[type="time"] {
    min-width: 0;
}

.link-button {
    border: 0;
    background: transparent;
    color: var(--danger);
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
}

.button-small {
    padding: 9px 12px;
    font-size: .84rem;
}

.inline-control-form {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(105px, .8fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 390px;
}

.inline-control-form select {
    padding: 8px 9px;
    font-size: .84rem;
}

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

.activity-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 280px) auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 24px;
}

.activity-list {
    display: grid;
}

.activity-entry {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.activity-entry:last-child {
    border-bottom: 0;
}

.activity-marker {
    width: 9px;
    height: 9px;
    margin-top: 7px;
    border: 2px solid #bdd0df;
    border-radius: 999px;
    background: #fff;
}

.activity-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
}

.activity-summary span {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: .78rem;
}

.activity-entry p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .84rem;
}

.activity-entry code {
    color: #52616e;
    font-size: .76rem;
}

.activity-list.compact .activity-entry {
    padding: 10px 0;
}

.activity-limit {
    margin: 18px 0 0;
}

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

.input-suffix input {
    border-radius: 9px 0 0 9px;
}

.input-suffix span {
    align-self: stretch;
    display: grid;
    place-items: center;
    border: 1px solid #bdc8d1;
    border-left: 0;
    border-radius: 0 9px 9px 0;
    background: #edf1f4;
    color: var(--muted);
    padding: 0 13px;
}

.invitation-link-alert {
    border: 1px solid #dfc38f;
    background: #fff7e8;
    color: #684817;
}

.invitation-link-alert p {
    margin: 4px 0 12px;
    font-size: .88rem;
}

.copy-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

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

.committee-summary article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow);
    padding: 14px 16px;
}

.committee-summary span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.committee-summary strong {
    font-size: 1.35rem;
}

.committee-list {
    display: grid;
    gap: 14px;
}

.committee-member {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfd;
    padding: 17px;
}

.committee-member-head,
.member-access-footer,
.pending-invitation,
.member-actions,
.member-access-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.committee-member-head > div {
    display: grid;
    gap: 2px;
}

.committee-member-head > div > span,
.pending-invitation > span {
    color: var(--muted);
    font-size: .84rem;
}

.role-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.role-badges span {
    border-radius: 999px;
    background: #e9f0f5;
    color: var(--navy);
    font-size: .72rem;
    font-weight: 750;
    padding: 4px 9px;
}

.pending-invitation,
.protected-note {
    margin: 15px 0 0;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.protected-note {
    color: var(--muted);
    font-size: .84rem;
}

.member-actions form,
.remove-member-form {
    margin: 0;
}

.member-actions {
    justify-content: flex-end;
}

.role-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0 0;
    border: 0;
    padding: 0;
}

.role-options legend {
    grid-column: 1 / -1;
    margin-bottom: 3px;
    font-size: .88rem;
    font-weight: 800;
}

.role-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    padding: 12px;
}

.role-option:has(input:checked) {
    border-color: var(--navy);
    background: #f0f5f8;
}

.role-option input {
    width: auto;
    margin-top: 4px;
}

.role-option span {
    display: grid;
    gap: 2px;
}

.role-option small {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 500;
}

.role-options.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 16px;
}

.role-options.compact .role-option {
    padding: 9px 10px;
}

.role-options.compact .role-option strong {
    font-size: .78rem;
}

.member-access-footer {
    align-items: flex-end;
    margin-top: 16px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.member-access-actions {
    justify-content: flex-end;
    gap: 18px;
}

.status-field {
    width: min(100%, 220px);
}

.status-field select {
    padding: 8px 9px;
}

.remove-member-form {
    text-align: center;
}

.status-invited,
.status-expired {
    background: #fff3df;
    color: #8b5705;
}

.invitation-card {
    width: min(100%, 620px);
}

.public-brand {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--navy);
    font-size: 1.35rem;
    font-weight: 850;
    text-decoration: none;
}

.invitation-details {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 7px 14px;
    margin: 22px 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafb;
    padding: 15px;
}

.invitation-details span {
    color: var(--muted);
    font-size: .82rem;
}

.invitation-details strong {
    font-size: .88rem;
}

.existing-account-note {
    border-radius: 9px;
    background: #edf3f7;
    color: var(--navy);
    padding: 13px 14px;
}

.sidebar-head {
    min-width: 0;
}

.booking-step {
    overflow: hidden;
}

.booking-step-head {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 20px;
}

.booking-step-head > span {
    display: grid;
    flex: 0 0 34px;
    min-height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-weight: 800;
}

.booking-step-head h2,
.booking-step-head p {
    margin: 0;
}

.booking-step-head p {
    margin-top: 3px;
}

.segmented-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
    gap: 8px;
    margin-bottom: 18px;
    border-radius: 11px;
    background: #edf1f4;
    padding: 5px;
}

.segmented-choice label {
    cursor: pointer;
}

.segmented-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented-choice span {
    display: block;
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
}

.segmented-choice input:checked + span {
    background: #fff;
    box-shadow: 0 1px 5px rgba(20, 37, 51, .12);
    color: var(--navy);
}

.segmented-choice input:focus-visible + span {
    outline: 3px solid rgba(36, 72, 102, .18);
}

.booking-hirer-panel {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

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

.booking-extra-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px;
    align-items: start;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafb;
    padding: 14px;
}

.booking-extra-option > div:first-child {
    display: grid;
    gap: 3px;
}

.booking-extra-option span,
.booking-extra-option small {
    color: var(--muted);
    font-size: .82rem;
}

.booking-extra-option .included-label {
    color: var(--success);
    font-weight: 750;
}

.extra-quantity input {
    text-align: center;
}

.booking-quote {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #f8fafb;
    padding: 16px;
}

.booking-quote > div {
    display: grid;
    gap: 4px;
}

.booking-quote span,
.booking-quote p {
    color: var(--muted);
    font-size: .82rem;
}

.booking-quote p {
    grid-column: 1 / -1;
    margin: 0;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.booking-quote.is-checking {
    border-color: #dfc488;
    background: #fffaf0;
}

.booking-quote.is-available {
    border-color: #9acdb0;
    background: #f2faf5;
}

.booking-quote.is-available [data-quote-status] {
    color: var(--success);
}

.booking-quote.is-unavailable {
    border-color: #e1a7a7;
    background: #fff6f6;
}

.booking-quote.is-unavailable [data-quote-status] {
    color: var(--danger);
}

.booking-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.button-secondary {
    border: 1px solid var(--navy);
    background: #fff;
    color: var(--navy);
}

.button-secondary:hover,
.button-secondary:focus {
    background: #edf3f7;
}

.booking-reference {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.booking-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr);
    gap: 20px;
    align-items: start;
}

.booking-summary-grid .card {
    margin-top: 0;
}

.summary-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.summary-list > div {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.summary-list dt {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 700;
}

.summary-list dd {
    display: grid;
    gap: 2px;
    margin: 0;
}

.summary-list dd small,
.price-line small {
    display: block;
    color: var(--muted);
    font-size: .78rem;
}

.internal-note {
    margin-top: 18px;
    border-radius: 9px;
    background: #fff8e9;
    padding: 14px;
}

.internal-note p {
    margin: 5px 0 0;
}

.price-line,
.price-total {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.price-line strong,
.price-total strong {
    white-space: nowrap;
}

.price-total {
    align-items: baseline;
    border-bottom: 0;
    padding-top: 18px;
    font-size: 1.15rem;
}

.price-total strong {
    color: var(--navy);
    font-size: 1.5rem;
}

.table-wrap td small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: .78rem;
}

.money {
    text-align: right;
    white-space: nowrap;
}

.mobile-nav-toggle,
.mobile-nav-close,
.sidebar-backdrop {
    display: none;
}

.mobile-nav-toggle,
.mobile-nav-close {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.mobile-nav-toggle {
    background: var(--navy);
    color: #fff;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus-visible {
    background: var(--navy-dark);
}

.mobile-nav-close {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
}

.mobile-nav-close:hover,
.mobile-nav-close:focus-visible {
    background: rgba(255, 255, 255, .18);
}

.mobile-nav-toggle:focus-visible,
.mobile-nav-close:focus-visible,
.sidebar-backdrop:focus-visible {
    outline: 3px solid rgba(216, 138, 45, .55);
    outline-offset: 2px;
}

.mobile-nav-icon {
    width: 20px;
    display: grid;
    gap: 4px;
}

.mobile-nav-icon span {
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

@media (max-width: 900px) {
    .shell {
        height: auto;
        min-height: 100vh;
        display: block;
        overflow: visible;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 50;
        width: min(86vw, 320px);
        height: 100vh;
        height: 100dvh;
        display: flex;
        overflow: hidden;
        padding: 16px 20px;
        transform: translateX(-100%);
        visibility: hidden;
        box-shadow: 18px 0 45px rgba(10, 24, 36, .28);
        transition:
            transform .24s ease,
            visibility 0s linear .24s;
    }

    body.nav-open {
        overflow: hidden;
    }

    body.nav-open .sidebar {
        transform: translateX(0);
        visibility: visible;
        transition-delay: 0s;
    }

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

    .sidebar-head .brand {
        min-width: 0;
        overflow-wrap: anywhere;
        margin-bottom: 0;
    }

    .mobile-nav-toggle,
    .mobile-nav-close {
        display: inline-grid;
    }

    .nav {
        min-height: 0;
        flex: 1;
        display: grid;
        align-content: start;
        gap: 24px;
        overflow-x: hidden;
        overflow-y: auto;
        padding-right: 4px;
    }

    .nav-section {
        min-width: 0;
    }

    .nav-section + .nav-section {
        border-top: 1px solid rgba(255, 255, 255, .14);
        border-left: 0;
        padding-top: 22px;
        padding-left: 0;
    }

    .sidebar-footer {
        margin-top: 18px;
        border-top: 1px solid rgba(255, 255, 255, .14);
        padding-top: 14px;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 40;
        width: 100%;
        height: 100%;
        display: block;
        border: 0;
        background: rgba(10, 24, 36, .56);
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    .sidebar-backdrop[hidden] {
        display: none;
    }

    body.nav-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .main {
        min-height: 100vh;
        height: auto;
        overflow: visible;
        scrollbar-gutter: auto;
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 30;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 14px;
    }

    .topbar-title {
        min-width: 0;
    }

    .topbar-title strong,
    .topbar-user {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-user {
        min-width: 0;
        max-width: 32vw;
    }

    .hall-content.has-hall-background::before {
        inset: 68px 0 0;
    }

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

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

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

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

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

    .activity-filters {
        grid-template-columns: 1fr 1fr;
    }

    .activity-filters .button {
        grid-column: 1 / -1;
    }

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

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

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

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

@media (max-width: 600px) {
    .booking-time-grid {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 20px;
    }

    .topbar {
        padding: 12px 16px;
    }

    .topbar-user {
        max-width: 30vw;
        font-size: .82rem;
    }

    .metric-grid,
    .form-grid,
    .pricing-test-grid,
    .pricing-test-result {
        grid-template-columns: 1fr;
    }

    .booking-extra-grid,
    .booking-quote {
        grid-template-columns: 1fr;
    }

    .booking-quote p {
        grid-column: auto;
    }

    .booking-actions {
        display: grid;
    }

    .segmented-choice {
        grid-template-columns: 1fr;
    }

    .summary-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .pricing-test-action {
        display: grid;
        justify-content: stretch;
    }

    .page-head,
    .card-head {
        display: grid;
    }

    .page-actions {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .search-bar {
        grid-template-columns: 1fr;
    }

    .field.full {
        grid-column: auto;
    }

    .availability-check,
    .hours-row,
    .resource-hours-selector {
        grid-template-columns: 1fr;
    }

    .hall-status-filters {
        grid-template-columns: 1fr;
    }

    .activity-filters,
    .inline-control-form {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .activity-filters .button {
        grid-column: auto;
    }

    .activity-summary {
        display: grid;
        gap: 3px;
    }

    .settings-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }

    .committee-summary,
    .role-options,
    .role-options.compact,
    .copy-field,
    .resource-option-grid {
        grid-template-columns: 1fr;
    }

    .committee-member-head,
    .member-access-footer,
    .pending-invitation,
    .member-actions,
    .member-access-actions {
        display: grid;
        align-items: stretch;
    }

    .member-access-footer {
        justify-content: stretch;
    }

    .status-field {
        width: 100%;
    }

    .member-access-actions {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .member-access-actions .remove-member-form {
        align-self: center;
        text-align: left;
    }

    .invitation-details {
        grid-template-columns: 1fr;
    }

    .nav-section {
        min-width: 100%;
    }

    .nav-section + .nav-section {
        border-top: 1px solid rgba(255, 255, 255, .14);
        border-left: 0;
        padding-top: 14px;
        padding-left: 0;
    }

    .hours-row {
        border-bottom: 1px solid var(--line);
        padding-bottom: 12px;
    }
}


@media (max-width: 420px) {
    .topbar {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .topbar-user {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar,
    .sidebar-backdrop {
        transition: none;
    }
}

.public-booking-body {
    background: #f2f5f8;
    color: var(--ink);
    min-height: 100vh;
}

.public-booking-header {
    background: var(--navy);
    color: #fff;
    padding: 18px clamp(18px, 4vw, 48px);
}

.public-booking-header a {
    color: inherit;
    display: inline-grid;
    gap: 2px;
    text-decoration: none;
}

.public-booking-header strong {
    font-size: 1.08rem;
}

.public-booking-header span,
.public-booking-footer {
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
}

.public-booking-wrap {
    margin: 0 auto;
    max-width: 980px;
    padding: clamp(26px, 5vw, 56px) clamp(16px, 4vw, 36px);
}

.public-booking-footer {
    align-items: center;
    background: var(--navy);
    display: flex;
    justify-content: space-between;
    padding: 20px clamp(18px, 4vw, 48px);
}

.public-booking-intro {
    margin: 0 0 26px;
    max-width: 760px;
}

.public-booking-intro h1,
.public-booking-message h1 {
    margin: 7px 0 10px;
}

.public-booking-intro p,
.public-booking-message p {
    color: var(--muted);
    line-height: 1.65;
}

.eyebrow {
    color: var(--orange);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.public-booking-honeypot {
    height: 0;
    left: -9999px;
    overflow: hidden;
    position: absolute;
    width: 0;
}

.public-terms {
    background: #f7f8fa;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-top: 18px;
    padding: 18px;
}

.public-terms h3 {
    margin: 0 0 10px;
}

.public-terms p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
    margin: 8px 0;
}

.public-terms .check {
    border-top: 1px solid var(--line);
    margin-top: 14px;
    padding-top: 14px;
}

.public-booking-message {
    margin: 6vh auto;
    max-width: 640px;
    padding: clamp(28px, 6vw, 54px);
    text-align: center;
}

.public-booking-message .button {
    margin-top: 15px;
}

.message-icon {
    align-items: center;
    background: color-mix(in srgb, var(--orange) 14%, white);
    border-radius: 50%;
    color: var(--orange);
    display: inline-flex;
    font-size: 1.7rem;
    font-weight: 800;
    height: 58px;
    justify-content: center;
    margin-bottom: 18px;
    width: 58px;
}

.public-booking-summary {
    margin-bottom: 20px;
}

.public-confirm-actions {
    margin-top: 20px;
}

.booking-next-action {
    border-left: 5px solid var(--orange);
    margin-bottom: 22px;
}

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

.button-danger:hover,
.button-danger:focus {
    background: #8f2525;
    border-color: #8f2525;
}

.booking-next-action h2 {
    margin: 6px 0;
}

.booking-next-action .deadline {
    background: #fff8e9;
    border-radius: 8px;
    padding: 10px 12px;
}

.booking-next-action details {
    border-top: 1px solid var(--line);
    margin-top: 18px;
    padding-top: 14px;
}

.booking-next-action summary {
    cursor: pointer;
    font-weight: 750;
}

.booking-secondary-action {
    border-left: 5px solid var(--navy);
}

.cancel-booking-panel > summary,
.public-confirm-actions summary {
    cursor: pointer;
    font-weight: 750;
}

.cancel-booking-panel[open] > summary,
.public-confirm-actions details[open] > summary {
    margin-bottom: 16px;
}

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

.approval-extra-list article {
    align-items: center;
    background: #f7f8fa;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
    padding: 12px;
}

.approval-extra-list small {
    color: var(--muted);
    display: block;
    margin-top: 3px;
}

.booking-activity-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
}

.booking-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.booking-timeline li {
    display: grid;
    gap: 12px;
    grid-template-columns: 13px minmax(0, 1fr);
    padding: 0 0 18px;
}

.timeline-dot {
    background: var(--orange);
    border: 3px solid #ffe8c4;
    border-radius: 50%;
    height: 13px;
    margin-top: 4px;
    width: 13px;
}

.booking-timeline p,
.communication-list p {
    color: var(--muted);
    margin: 4px 0;
}

.booking-timeline small,
.communication-list small {
    color: var(--muted);
}

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

.communication-list article {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

@media (max-width: 720px) {
    .public-booking-footer {
        align-items: flex-start;
        display: grid;
        gap: 5px;
    }

    .booking-activity-grid,
    .approval-extra-list article {
        grid-template-columns: 1fr;
    }
}

/* Booking calendars */
.page-head-actions,
.public-booking-header,
.public-booking-header nav,
.calendar-heading,
.public-calendar-heading,
.calendar-status-legend,
.public-availability-legend {
    align-items: center;
    display: flex;
}

.page-head-actions,
.public-booking-header nav,
.calendar-status-legend,
.public-availability-legend {
    flex-wrap: wrap;
    gap: 10px;
}

.public-booking-header {
    justify-content: space-between;
}

.public-booking-header nav a {
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    display: inline-flex;
    font-size: .86rem;
    font-weight: 750;
    padding: 8px 13px;
}

.public-booking-header nav a:hover,
.public-booking-header nav a:focus {
    background: rgba(255, 255, 255, .12);
}

.calendar-controls {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-view-tabs {
    background: #eef2f5;
    border-radius: 10px;
    display: inline-flex;
    padding: 4px;
}

.calendar-view-tabs a {
    border-radius: 7px;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 750;
    padding: 8px 12px;
    text-decoration: none;
}

.calendar-view-tabs a.is-active {
    background: #fff;
    box-shadow: 0 2px 7px rgba(20, 38, 55, .11);
    color: var(--navy);
}

.calendar-filters {
    align-items: end;
    display: flex;
    gap: 10px;
}

.calendar-filters .field {
    min-width: 170px;
}

.calendar-heading,
.public-calendar-heading {
    justify-content: center;
    gap: 18px;
    margin: 25px 0 14px;
    text-align: center;
}

.calendar-heading > div {
    min-width: min(100%, 300px);
}

.calendar-heading h2,
.public-calendar-heading h2 {
    margin: 3px 0 0;
}

.calendar-arrow {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--navy);
    display: inline-flex;
    font-size: 1.1rem;
    height: 40px;
    justify-content: center;
    text-decoration: none;
    width: 40px;
}

.calendar-arrow:hover,
.calendar-arrow:focus {
    background: #edf3f7;
    border-color: var(--navy);
}

.calendar-today {
    color: var(--orange);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.calendar-status-legend,
.public-availability-legend {
    color: var(--muted);
    font-size: .78rem;
    justify-content: center;
    margin-bottom: 18px;
}

.calendar-status-legend span,
.public-availability-legend span {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.calendar-dot,
.availability-dot {
    background: #97a3ad;
    border-radius: 50%;
    display: inline-block;
    height: 9px;
    width: 9px;
}

.calendar-dot.status-provisional { background: #d88a2d; }
.calendar-dot.status-awaiting_approval { background: #b06f09; }
.calendar-dot.status-approved { background: #3478a3; }
.calendar-dot.status-confirmed { background: #268352; }
.calendar-dot.status-completed { background: #62707b; }
.calendar-dot.status-cancelled { background: #b34242; }

.calendar-month-card,
.public-calendar-card {
    overflow: hidden;
    padding: 0;
}

.calendar-weekdays,
.calendar-month,
.public-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
    background: #f4f6f8;
    border-bottom: 1px solid var(--line);
}

.calendar-weekdays span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    padding: 10px;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day {
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    min-height: 150px;
    min-width: 0;
    padding: 9px;
}

.calendar-day:nth-child(7n) {
    border-right: 0;
}

.calendar-day.is-outside {
    background: #f8fafb;
    opacity: .55;
}

.calendar-day.is-today,
.calendar-period-day.is-today {
    box-shadow: inset 0 3px 0 var(--orange);
}

.calendar-day > header,
.calendar-period-day > header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.calendar-day > header span {
    color: var(--muted);
    display: none;
    font-size: .72rem;
    font-weight: 700;
}

.calendar-day > header strong {
    align-items: center;
    display: inline-flex;
    font-size: .83rem;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.calendar-day.is-today > header strong {
    background: var(--orange);
    border-radius: 50%;
    color: #fff;
}

.calendar-day-events {
    display: grid;
    gap: 5px;
}

.calendar-event {
    background: #edf1f4;
    border-left: 4px solid #87939d;
    border-radius: 6px;
    color: var(--ink);
    display: grid;
    min-width: 0;
    padding: 6px 7px;
    text-decoration: none;
}

.calendar-event:hover,
.calendar-event:focus {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--navy) 24%, transparent);
}

.calendar-event time,
.calendar-event span,
.calendar-event small {
    color: var(--muted);
    font-size: .67rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event strong {
    font-size: .76rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event.status-provisional { background: #fff5e5; border-color: #d88a2d; }
.calendar-event.status-awaiting_approval { background: #fff2d9; border-color: #b06f09; }
.calendar-event.status-approved { background: #e9f3f9; border-color: #3478a3; }
.calendar-event.status-confirmed { background: #e8f6ee; border-color: #268352; }
.calendar-event.status-completed { background: #edf1f4; border-color: #62707b; }
.calendar-event.status-cancelled,
.calendar-event.status-rejected,
.calendar-event.status-expired { background: #f9ebeb; border-color: #b34242; opacity: .76; }

.calendar-more,
.calendar-empty-day {
    color: var(--muted);
    font-size: .72rem;
}

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

.calendar-period-grid.is-day {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
}

.calendar-period-day {
    min-width: 0;
    padding: 12px;
}

.calendar-period-day > header {
    display: grid;
    gap: 2px;
}

.calendar-period-day > header span {
    color: var(--muted);
    font-size: .72rem;
}

.calendar-event-detailed {
    margin-top: 8px;
    padding: 9px;
}

.calendar-period-grid.is-day .calendar-event-detailed {
    grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 12px;
}

.calendar-agenda h3 {
    border-bottom: 1px solid var(--line);
    margin: 24px 0 0;
    padding-bottom: 8px;
}

.calendar-agenda h3:first-child {
    margin-top: 0;
}

.calendar-agenda-row {
    align-items: center;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    display: grid;
    gap: 14px;
    grid-template-columns: 100px minmax(180px, 1.4fr) minmax(150px, 1fr) auto;
    padding: 13px 8px;
    text-decoration: none;
}

.calendar-agenda-row:hover,
.calendar-agenda-row:focus {
    background: #f7f9fa;
}

.calendar-agenda-row time,
.calendar-agenda-row small {
    color: var(--muted);
    display: block;
    font-size: .78rem;
}

.public-calendar-controls {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.public-calendar-controls form {
    align-items: end;
    display: flex;
    gap: 10px;
}

.public-calendar-controls .field {
    min-width: min(340px, 55vw);
}

.public-availability-legend {
    justify-content: flex-end;
    margin: 0;
}

.availability-dot.is-available { background: #268352; }
.availability-dot.is-partial { background: #d88a2d; }
.availability-dot.is-unavailable { background: #9ba5ad; }

.public-calendar-grid {
    background: var(--line);
    gap: 1px;
}

.public-calendar-blank,
.public-calendar-day {
    background: #fff;
    min-height: 112px;
}

.public-calendar-day {
    color: var(--ink);
    display: grid;
    gap: 4px;
    padding: 13px;
    text-decoration: none;
}

a.public-calendar-day:hover,
a.public-calendar-day:focus {
    box-shadow: inset 0 0 0 3px var(--navy);
    position: relative;
}

.public-calendar-day.is-available { background: #edf8f1; }
.public-calendar-day.is-partial { background: #fff7e9; }
.public-calendar-day.is-unavailable { background: #f5f6f7; color: #7d8790; }
.public-calendar-day.is-today { box-shadow: inset 0 3px 0 var(--orange); }

.public-calendar-day strong {
    font-size: 1.05rem;
}

.public-calendar-status {
    font-size: .78rem;
    font-weight: 800;
}

.public-calendar-day small,
.public-calendar-weekday {
    color: var(--muted);
    font-size: .7rem;
}

.public-calendar-blocked {
    display: grid;
    gap: 2px;
    margin-top: 3px;
}

.public-calendar-blocked span {
    color: #9f3f32;
    font-size: .68rem;
    font-weight: 750;
    line-height: 1.25;
}

.public-calendar-day.is-unavailable .public-calendar-blocked span {
    color: #66717a;
}

.public-calendar-weekday {
    display: none;
}

.public-calendar-note {
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 1050px) {
    .calendar-controls,
    .public-calendar-controls {
        align-items: stretch;
        display: grid;
        gap: 16px;
    }

    .calendar-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    }

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

@media (max-width: 720px) {
    .page-head-actions,
    .calendar-view-tabs,
    .calendar-filters,
    .public-calendar-controls form,
    .public-booking-header {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    .calendar-view-tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .calendar-view-tabs a {
        padding: 8px 5px;
        text-align: center;
    }

    .calendar-filters .field,
    .public-calendar-controls .field {
        min-width: 0;
    }

    .calendar-weekdays,
    .public-calendar-blank {
        display: none;
    }

    .calendar-month,
    .public-calendar-grid,
    .calendar-period-grid {
        background: transparent;
        display: grid;
        gap: 8px;
        grid-template-columns: 1fr;
    }

    .calendar-day {
        border: 1px solid var(--line);
        border-radius: 9px;
        min-height: 0;
        padding: 12px;
    }

    .calendar-day.is-outside {
        display: none;
    }

    .calendar-day > header span,
    .public-calendar-weekday {
        display: inline;
    }

    .calendar-empty-day {
        padding: 4px 0 8px;
    }

    .calendar-agenda-row,
    .calendar-period-grid.is-day .calendar-event-detailed {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .public-calendar-card {
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .public-calendar-day {
        border: 1px solid var(--line);
        border-radius: 9px;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        min-height: 0;
    }

    .public-calendar-day strong {
        grid-row: 1 / span 2;
        align-self: center;
        font-size: 1.25rem;
    }

    .public-calendar-weekday {
        grid-column: 2;
    }

    .public-calendar-status {
        grid-column: 2;
    }

    .public-calendar-hours {
        align-self: center;
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .public-calendar-blocked {
        grid-column: 2 / 4;
        margin-top: 4px;
    }
}

/* Hirer account portal — 0.4.15 */
.hirer-body {
    min-height: 100vh;
    margin: 0;
    background: #f3f6f8;
    color: #183042;
}

.hirer-header,
.hirer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px clamp(20px, 5vw, 72px);
    background: #16344a;
    color: #fff;
}

.hirer-header {
    min-height: 76px;
    border-bottom: 4px solid #d88a2d;
}

.hirer-header nav,
.hirer-header form {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
}

.hirer-header a,
.hirer-nav-button {
    color: inherit;
}

.hirer-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.hirer-brand strong {
    font-size: 1.35rem;
    line-height: 1;
}

.hirer-brand span {
    margin-top: 4px;
    font-size: .78rem;
    opacity: .76;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.hirer-nav-button {
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.hirer-header nav a,
.hirer-nav-button {
    text-decoration: none;
    opacity: .88;
}

.hirer-header nav a:hover,
.hirer-nav-button:hover {
    opacity: 1;
    text-decoration: underline;
}

.hirer-wrap {
    width: min(1120px, calc(100% - 40px));
    min-height: calc(100vh - 170px);
    margin: 0 auto;
    padding: clamp(42px, 7vw, 88px) 0;
}

.hirer-footer {
    min-height: 76px;
    color: rgba(255, 255, 255, .76);
    font-size: .86rem;
}

.hirer-auth-card {
    width: min(620px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 6vw, 54px);
    border: 1px solid #dce4e9;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(20, 48, 66, .1);
}

.hirer-auth-card h1,
.hirer-page-head h1,
.hirer-booking-head h1 {
    margin: 0 0 16px;
    color: #16344a;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    line-height: .98;
    letter-spacing: -.045em;
}

.hirer-auth-card > p {
    color: #5a6c78;
    font-size: 1.05rem;
    line-height: 1.7;
}

.hirer-auth-note {
    margin: 26px 0 0;
    padding-top: 20px;
    border-top: 1px solid #e2e8ec;
    font-size: .9rem !important;
}

.hirer-message-card {
    text-align: center;
}

.hirer-page-head {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.hirer-page-head p {
    max-width: 720px;
    margin: 0;
    color: #5a6c78;
    font-size: 1.08rem;
}

.hirer-section {
    margin-top: 44px;
}

.hirer-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.hirer-section-head h2 {
    margin: 0;
    color: #16344a;
}

.hirer-section-head > span,
.hirer-history summary span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e5edf1;
    color: #16344a;
    font-size: .82rem;
    font-weight: 700;
}

.hirer-booking-list {
    display: grid;
    gap: 14px;
}

.hirer-booking-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    padding: 24px 26px;
    border: 1px solid #dce4e9;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(20, 48, 66, .05);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.hirer-booking-card:hover {
    transform: translateY(-2px);
    border-color: #9fb2bd;
    box-shadow: 0 18px 44px rgba(20, 48, 66, .09);
}

.hirer-booking-card.needs-action {
    border-color: #d88a2d;
    box-shadow: 0 14px 40px rgba(216, 138, 45, .14);
}

.hirer-booking-card h3 {
    margin: 5px 0 8px;
    color: #16344a;
    font-size: 1.35rem;
}

.hirer-booking-card p,
.hirer-booking-card small {
    margin: 0;
    color: #657783;
}

.hirer-hall-name {
    color: #b46822;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hirer-booking-meta {
    display: flex;
    min-width: 190px;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
    text-align: right;
}

.hirer-booking-meta strong {
    color: #16344a;
    font-size: 1.2rem;
}

.status-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #e6edf1;
    color: #2e4858;
    font-size: .76rem;
    font-weight: 800;
}

.status-approved,
.status-awaiting_approval,
.status-provisional {
    background: #fff0dc;
    color: #8b4b0e;
}

.status-confirmed {
    background: #dff3e7;
    color: #17643b;
}

.status-cancelled,
.status-rejected,
.status-expired {
    background: #f7e3e3;
    color: #8a2d2d;
}

.hirer-history details {
    border-top: 1px solid #d9e2e7;
    padding-top: 24px;
}

.hirer-history summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    color: #435967;
    cursor: pointer;
    font-weight: 700;
}

.hirer-back-link {
    color: #365c75;
    text-decoration: none;
}

.hirer-back-link:hover {
    text-decoration: underline;
}

.hirer-booking-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin: 28px 0 34px;
}

.hirer-booking-head h1 {
    max-width: 760px;
    margin-top: 8px;
    font-size: clamp(2.35rem, 6vw, 4.2rem);
}

.hirer-booking-summary {
    margin-bottom: 22px;
}

.hirer-action-card {
    margin-top: 22px;
    padding: 28px;
}

.hirer-action-card h2,
.hirer-notes h3 {
    margin-top: 0;
    color: #16344a;
}

.hirer-action-card details {
    margin-top: 18px;
}

.hirer-action-card summary {
    color: #9b3a35;
    cursor: pointer;
    font-weight: 700;
}

.hirer-action-card details form {
    margin-top: 22px;
}

.hirer-notes {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #e2e8ec;
}

.hirer-contact-note {
    margin-top: 24px;
    padding: 20px 22px;
    border-left: 4px solid #d88a2d;
    background: #fff;
    color: #546975;
}

.hirer-contact-note a {
    color: #245c7d;
}

@media (max-width: 720px) {
    .hirer-header,
    .hirer-footer {
        padding-right: 20px;
        padding-left: 20px;
    }

    .hirer-header nav a {
        display: none;
    }

    .hirer-wrap {
        width: min(100% - 28px, 1120px);
        padding: 34px 0 54px;
    }

    .hirer-booking-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
    }

    .hirer-booking-meta {
        min-width: 0;
        align-items: flex-start;
        text-align: left;
    }

    .hirer-booking-head {
        flex-direction: column;
    }

    .hirer-booking-head h1 {
        font-size: 2.6rem;
    }

    .hirer-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

.public-account-invite {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid #dfe7eb;
}

.public-account-invite h2 {
    margin: 0 0 8px;
    color: var(--navy);
}

.public-account-invite p {
    margin: 0 0 20px;
}

.hirer-booking-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hirer-prefill-note {
    margin-bottom: 22px;
}

@media (max-width: 720px) {
    .hirer-booking-navigation {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Hall-site hirer portal embed — 0.4.15 */
.hirer-embed-body {
    min-height: 0;
    background: var(--embed-background, #fff);
}

.hirer-embed-wrap {
    width: min(1080px, 100%);
    margin: 0 auto;
    padding: clamp(14px, 3vw, 30px);
}

.hirer-embed-auth-card {
    width: min(680px, 100%);
    box-shadow: 0 8px 28px rgba(20, 48, 66, .08);
}

.hirer-embed-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.hirer-embed-toolbar h1 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    line-height: .98;
    letter-spacing: -.045em;
}

.hirer-embed-toolbar p {
    margin: 0;
    color: var(--muted);
}

.hirer-embed-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.hirer-embed-toolbar-actions form {
    margin: 0;
}

.hirer-embed-footer {
    margin-inline: clamp(14px, 3vw, 30px);
}

.hirer-embed-body .hirer-section:first-of-type {
    margin-top: 0;
}

.hirer-embed-body .hirer-booking-card {
    box-shadow: 0 4px 18px rgba(20, 48, 66, .06);
}

@media (max-width: 720px) {
    .hirer-embed-wrap {
        padding: 12px;
    }

    .hirer-embed-toolbar {
        flex-direction: column;
    }

    .hirer-embed-toolbar-actions {
        justify-content: flex-start;
    }
}

/* 0.4.16 notification centre */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.notification-menu {
    position: relative;
}

.notification-menu > summary {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
}

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

.notification-menu > summary:hover,
.notification-menu > summary:focus-visible {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(216, 138, 45, .13);
    outline: none;
}

.notification-menu > summary svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #c63f3f;
    color: #fff !important;
    font-size: .64rem;
    font-weight: 850;
    line-height: 1;
    padding: 0 4px;
}

.notification-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 80;
    width: min(390px, calc(100vw - 32px));
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(18, 42, 57, .2);
    overflow: hidden;
}

.notification-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
}

.notification-popover-head strong {
    font-size: .95rem;
}

.notification-popover-head a {
    color: var(--navy);
    font-size: .8rem;
    font-weight: 750;
}

.notification-popover-list {
    max-height: 410px;
    overflow-y: auto;
}

.notification-popover-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 10px;
    border-bottom: 1px solid #edf1f4;
    color: var(--ink);
    padding: 13px 16px;
    text-decoration: none;
}

.notification-popover-item:last-child {
    border-bottom: 0;
}

.notification-popover-item:hover,
.notification-popover-item:focus-visible {
    background: #f6f9fb;
    outline: none;
}

.notification-popover-item.is-unread {
    background: #f3f8fc;
}

.notification-popover-item > span:last-child {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.notification-popover-item strong,
.notification-popover-item small {
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-popover-item strong {
    font-size: .83rem;
    white-space: nowrap;
}

.notification-popover-item small {
    color: var(--muted);
    display: -webkit-box;
    font-size: .75rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.notification-popover-empty {
    color: var(--muted);
    font-size: .84rem;
    margin: 0;
    padding: 24px 16px;
    text-align: center;
}

.notification-dot {
    width: 8px;
    height: 8px;
    align-self: start;
    border-radius: 50%;
    background: #a7b2bb;
    margin-top: 6px;
}

.priority-high .notification-dot {
    background: #d88a2d;
}

.priority-urgent .notification-dot {
    background: #c63f3f;
}

.priority-low .notification-dot {
    background: #6b879a;
}

.page-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.page-heading-row h1,
.page-heading-row .lede {
    margin-top: 0;
}

.notification-filters {
    display: flex;
    gap: 8px;
    margin: 0 0 18px;
}

.notification-filters a {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 750;
    padding: 8px 14px;
    text-decoration: none;
}

.notification-filters a:hover,
.notification-filters a:focus-visible,
.notification-filters a.is-active {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
    outline: none;
}

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

.notification-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--line);
    border-left: 4px solid #a7b2bb;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(20, 45, 60, .05);
    padding: 0 16px 0 0;
}

.notification-item.priority-high {
    border-left-color: #d88a2d;
}

.notification-item.priority-urgent {
    border-left-color: #c63f3f;
}

.notification-item.priority-low {
    border-left-color: #6b879a;
}

.notification-item.is-unread {
    background: #f6fbff;
    box-shadow: 0 9px 26px rgba(28, 81, 115, .09);
}

.notification-main {
    min-width: 0;
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 12px;
    color: var(--ink);
    padding: 18px 0 18px 16px;
    text-decoration: none;
}

.notification-main:hover .notification-title-row strong,
.notification-main:focus-visible .notification-title-row strong {
    color: var(--navy);
    text-decoration: underline;
}

.notification-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.notification-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.notification-title-row strong {
    color: var(--ink);
    font-size: .93rem;
}

.notification-title-row time {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: .72rem;
}

.notification-message {
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.5;
}

.notification-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.notification-actions form {
    margin: 0;
}

.notification-actions button {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: .75rem;
    font-weight: 700;
    padding: 8px;
}

.notification-actions button:hover,
.notification-actions button:focus-visible {
    color: var(--navy);
    text-decoration: underline;
    outline: none;
}

.nav a .nav-count {
    float: right;
    margin-left: 8px;
}

@media (max-width: 760px) {
    .topbar-actions {
        gap: 8px;
    }

    .notification-popover {
        position: fixed;
        top: 62px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .page-heading-row {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .page-heading-row form,
    .page-heading-row button {
        width: 100%;
    }

    .notification-item {
        grid-template-columns: 1fr;
        padding-right: 0;
    }

    .notification-main {
        padding-right: 16px;
    }

    .notification-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .notification-actions {
        justify-content: flex-end;
        border-top: 1px solid #edf1f4;
        padding: 6px 10px;
    }
}

.dashboard-attention {
    margin-top: 22px;
}

.dashboard-all-clear {
    color: var(--muted);
    margin-bottom: 0;
}

.dashboard-notification-list {
    display: grid;
    gap: 8px;
}

.dashboard-notification {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    padding: 12px 14px;
    text-decoration: none;
}

.dashboard-notification:hover,
.dashboard-notification:focus-visible {
    border-color: var(--navy);
    background: #f6f9fb;
    outline: none;
}

.dashboard-notification > span:last-child {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.dashboard-notification strong {
    font-size: .86rem;
}

.dashboard-notification small {
    color: var(--muted);
    font-size: .77rem;
    line-height: 1.4;
}

@media (max-width: 420px) {
    .topbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
}

.notification-popover-item > span:last-child {
    color: var(--ink);
}

/* 0.4.17 regular booking series */
.regular-booking-preview .card-head > div:last-child {
    display: grid;
    gap: 3px;
    text-align: right;
}

.regular-booking-preview td .status + small {
    display: block;
    max-width: 420px;
    margin-top: 5px;
    color: var(--muted);
    white-space: normal;
}

.regular-booking-totals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.regular-booking-totals > div {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafb;
    padding: 14px;
}

.regular-booking-totals span {
    color: var(--muted);
    font-size: .78rem;
}

.regular-booking-totals strong {
    font-size: 1.15rem;
}

.price-discount strong {
    color: #197245;
}

@media (max-width: 760px) {
    .regular-booking-preview .card-head > div:last-child {
        text-align: left;
    }

    .regular-booking-totals {
        grid-template-columns: 1fr;
    }
}


/* 0.4.18 single-date booking form */
