:root {
    color-scheme: light;
    --ink: #171717;
    --ink-soft: #353535;
    --mute: #696969;
    --line: #d4d4d4;
    --line-soft: #e9e9e9;
    --paper: #ffffff;
    --bg: #ffffff;
    --red: #b51f32;
    --red-dark: #94172a;
    --side: #841728;
    --side-active: #64101e;
    --red-pale: #f8e9eb;
    /* Aliases used by existing calendar markup and status templates. */
    --crimson: var(--red);
    --ink2: var(--ink-soft);
    --amber: var(--red);
    --amber-bg: var(--red-pale);
    --amber-ink: #92172a;
    --ok: #202020;
    --ok-bg: #ededed;
    --bad: #a3182c;
    --bad-bg: #f9e9eb;
    --slate: #303030;
    --slate-bg: #ededed;
    --drt: #bd1e32;
    --bcs: #246b9b;
    --els: #397b56;
}

* {
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 13px/1.5 "Poppins", sans-serif;
}

h1, h2, h3, p, dl, dd {
    margin: 0;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

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

.hidden {
    display: none !important;
}

:focus-visible {
    outline: 3px solid #333;
    outline-offset: 2px;
}

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

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

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

/* Buttons, fields and feedback */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 13px;
    border: 1px solid #bdbdbd;
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .12s ease, border-color .12s ease;
}

.btn:hover {
    background: #f0f0f0;
    border-color: #999;
}

.btn-primary {
    background: var(--red);
    border-color: transparent;
    color: #fff;
}

.btn-primary:hover {
    background: var(--red-dark);
    border-color: transparent;
}

.btn-sm {
    min-height: 31px;
    padding: 4px 10px;
    font-size: 12.5px;
}

.btn-quiet {
    border-color: var(--line);
}

.btn-danger {
    border-color: #bdbdbd;
    color: var(--bad);
}

.btn-danger:hover {
    background: #f0f0f0;
    border-color: #999;
}

.btn-lg {
    min-height: 44px;
    padding: 9px 18px;
    font-size: 14px;
}

input, select, textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid #c8c8c8;
    border-radius: 2px;
    background: #fff;
    padding: 7px 9px;
}

input:hover, select:hover, textarea:hover {
    border-color: #a8a8a8;
}

input:focus, select:focus, textarea:focus {
    border-color: #777;
    outline: 2px solid #2222;
}

input[readonly] {
    background: #f1f1f1;
    color: var(--ink-soft);
}

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

input[type="checkbox"], input[type="radio"] {
    width: 17px;
    min-height: 0;
    height: 17px;
    accent-color: var(--red);
}

label {
    font-weight: 600;
    font-size: 13.5px;
}

.hint {
    font-size: 12.5px;
    color: var(--mute);
    font-weight: 400;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

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

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

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

.notice {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--ink);
    border-radius: 0;
    background: #fff;
    font-size: 13px;
}

.notice.error {
    background: #f5eeee;
    border-color: #d7d0d1;
    border-left-color: #777;
    color: #781325;
}

.notice.success {
    background: #f0f0f0;
    border-color: #d3d3d3;
    border-left-color: #222;
    color: #171717;
}

.notice.warning {
    background: #f5f5f5;
    border-color: #d0d0d0;
    border-left-color: #777;
    color: #494949;
}

.toast-region {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 10000;
    display: grid;
    width: min(380px, calc(100vw - 32px));
    gap: 8px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 13px;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #fff;
    color: #202020;
    box-shadow: 0 5px 22px #0002;
    font-size: 13px;
    line-height: 1.45;
    pointer-events: auto;
    animation: toast-in .16s ease-out;
}

.toast.success {
    background: #f3f3f3;
}

.toast.error {
    background: #f8eeee;
    color: #651b25;
}

.toast.warning {
    background: #f7f4eb;
    color: #514326;
}

.toast span {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.toast button {
    flex: none;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 18px;
    line-height: 1;
}

.confirm-dlg h2 {
    margin: 0;
    font-size: 18px;
}

.confirm-dlg p {
    margin: 0;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 7px;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ffffff80;
    border-top-color: #fff;
    animation: spin .7s linear infinite;
}

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

/* Status labels */
.badge {
    display: inline-block;
    border-radius: 2px;
    padding: 2px 6px;
    background: #ededed;
    color: #292929;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
    white-space: nowrap;
}

.b-New {
    background: var(--red-pale);
    color: #92172a;
}

.b-Approved {
    background: #e8e8e8;
    color: #202020;
}

.b-Declined {
    background: var(--red-pale);
    color: #92172a;
}

.b-Completed {
    background: #e7e7e7;
    color: #555;
}

.vdot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red);
    flex: none;
}

/* Main application frame */
.shell {
    display: grid;
    grid-template-columns: 226px minmax(0, 1fr);
    min-height: 100vh;
    background: #fff;
}

.public-shell {
    grid-template-columns: minmax(0, 1fr);
    min-height: 100vh;
}

.public-shell .side {
    display: none;
}

.public-shell .content {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 24px 48px;
}

.side {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 460px;
    overflow-y: auto;
    padding: 14px 12px 13px;
    border-top: 0;
    background: var(--side);
    color: #fff;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 2px 15px;
    border: 0;
    text-align: center;
    color: #fff;
    text-decoration: none;
}

.brand-wordmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: -.25px;
    white-space: nowrap;
}

.brand-wordmark strong {
    font-weight: 700;
}

.brand-wordmark .for {
    font-weight: 400;
}

.brand-logo {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex: none;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 17px;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nav-label {
    display: none;
}

.department-row > summary {
    cursor: pointer;
    font-weight: 600;
    list-style-position: outside;
}

.department-editor {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
}

.nav button {
    display: flex;
    width: 100%;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 12.5px;
    font-weight: 400;
    text-align: left;
}

.nav button:hover {
    background: #ffffff18;
    color: #fff;
}

.nav button[aria-current="page"] {
    border-left-color: transparent;
    background: var(--side-active);
    color: #fff;
    font-weight: 600;
}

.nav-item-main {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.nav-item-main svg {
    width: 15px;
    height: 15px;
    flex: none;
    color: #ffe0e5;
}

.nav button[aria-current="page"] .nav-item-main svg {
    color: #fff;
}

.nav .count {
    min-width: 19px;
    padding: 1px 5px;
    border-radius: 2px;
    background: #fff;
    color: var(--red-dark);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.side-foot {
    margin-top: auto;
    padding: 13px 7px 0;
    border-top: 1px solid #ffffff26;
    font-size: 11.5px;
}

.side-foot b {
    display: block;
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-foot span.em {
    display: block;
    overflow: hidden;
    margin: 2px 0 8px;
    color: #ffe0e5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.role {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 6px;
    border-radius: 2px;
    background: var(--side-active);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.side-foot .btn {
    width: 100%;
    margin-top: 2px;
    border-color: #ffffff80;
    background: transparent;
    color: #fff;
}

.side-foot .btn:hover {
    border-color: #fff;
    background: #ffffff18;
}

.content {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0 0 42px;
    background: #fff;
}

.page-head {
    display: flex;
    min-height: 47px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    padding: 9px 25px;
    border: 0;
    background: #202024;
    color: #fff;
}

.page-head h1 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    color: #fff;
}

.page-head p {
    max-width: 60em;
    margin-top: 2px;
    color: #ccccd0;
    font-size: 11.5px;
}

#pageTools {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

#pageTools .btn {
    min-height: 29px;
    padding: 4px 9px;
    border-color: #68686b;
    background: transparent;
    color: #fff;
    font-size: 11.5px;
}

#pageTools .btn:hover {
    background: #343438;
    border-color: #999;
}

#main > section {
    padding: 20px 25px 28px;
}

#main > #appMessage {
    margin: 13px 25px 0 !important;
}

.panel {
    margin: 0 0 13px;
    padding: 17px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: var(--paper);
}

.panel > h2 {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 600;
}

.panel .help {
    margin-bottom: 13px;
    color: var(--mute);
    font-size: 12px;
}

.section-title {
    margin: 22px 0 9px;
    font-size: 16px;
    font-weight: 600;
}

.tabs {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid #bcbcbc;
    border-radius: 2px;
    background: #fff;
}

.tabs button {
    min-height: 34px;
    padding: 6px 13px;
    border: 0;
    border-right: 1px solid #d4d4d4;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
}

.tabs button:last-child {
    border-right: 0;
}

.tabs button[aria-pressed="true"] {
    background: #191919;
    color: #fff;
}

/* Booking form */
.included {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #dedede;
    border-radius: 0;
    background: #f7f7f7;
    color: var(--ink);
}

.included svg {
    width: 22px;
    height: 22px;
    flex: none;
    color: var(--red);
}

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

.venue-pick label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 3px;
    border: 0;
    border-bottom: 1px solid #e3e3e3;
    border-radius: 0;
    background: #fff;
    cursor: pointer;
    font-weight: 500;
}

.venue-pick label:has(input:checked) {
    border-bottom-color: #e3e3e3;
    background: #f7f7f7;
    box-shadow: none;
}

.venue-pick input {
    width: 16px;
    margin-top: 2px;
}

.venue-pick .vdot {
    margin-top: 5px;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 19px;
}

.done {
    padding: 26px 8px;
    text-align: center;
}

.done h2 {
    margin: 10px 0 7px;
    font-size: 21px;
}

.done p {
    max-width: 46ch;
    margin: 0 auto 6px;
    color: var(--ink-soft);
}

/* Booking cards and request lists */
.cards {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
    background: #fff;
}

.bk {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 5px 15px;
    padding: 12px 10px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid var(--vc, #777);
    border-radius: 0;
    background: #fff;
}

.bk h3 {
    overflow-wrap: anywhere;
    font-size: 15px;
    font-weight: 600;
}

.bk .inline {
    grid-column: 1 / -1;
}

.bk .when {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
}

.bk .where, .bk .techline {
    grid-column: 1 / -1;
}

.bk .when {
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.bk .where {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-soft);
    font-size: 13px;
}

.bk .techline {
    color: var(--ink-soft);
    font-size: 13px;
}

.bk .techline.need {
    color: var(--bad);
    font-weight: 650;
}

.bk .row {
    display: flex;
    grid-column: 1 / -1;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
    padding-top: 3px;
}

.empty {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    color: var(--mute);
    text-align: left;
}

.empty b {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 15px;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 13px;
}

.toolbar input[type="search"] {
    width: 220px;
}

.toolbar select {
    width: auto;
}

.sched {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
}

.day-bar {
    padding: 8px 12px;
    background: #ededed;
    color: #222;
    font-size: 12px;
    font-weight: 600;
}

.srow {
    display: grid;
    width: 100%;
    grid-template-columns: 108px minmax(0, 1.4fr) minmax(0, 1fr) 178px;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    background: #fff;
    text-align: left;
}

.srow:last-child {
    border-bottom: 0;
}

.srow:hover {
    background: #f6f6f6;
}

.srow .t {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.srow .n {
    overflow-wrap: anywhere;
    font-weight: 650;
}

.srow .v {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-soft);
    font-size: 12.5px;
}

.srow .who {
    color: var(--ink-soft);
    font-size: 12.5px;
}

.srow .who.need {
    color: var(--bad);
    font-weight: 700;
}

.srow .r {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

/* Calendar */
.calbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 13px;
}

.calbar h2 {
    min-width: 7em;
    font-size: 23px;
}

.calnav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.calfilters {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;
    margin-bottom: 13px;
}

.calfilters select {
    width: auto;
    min-height: 33px;
    padding: 4px 9px;
}

.calfilters label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
}

.legend {
    display: flex;
    align-items: center;
    gap: 6px 14px;
    flex-wrap: wrap;
    margin-top: 11px;
    color: var(--ink-soft);
    font-size: 12px;
}

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

.mdow, .mgrid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mdow div {
    padding: 7px 6px;
    color: var(--mute);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.mgrid {
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: #fff;
}

.mday {
    min-width: 0;
    min-height: 106px;
    padding: 4px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.mday.off {
    background: #f6f6f6;
}

.mday.off .dn {
    color: #999;
}

.dn {
    display: inline-grid;
    min-width: 25px;
    height: 25px;
    margin-bottom: 2px;
    place-items: center;
    border: 0;
    border-radius: 3px;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
}

.dn:hover {
    background: #ededed;
}

.mday.today .dn {
    background: var(--red);
    color: #fff;
}

.chip {
    display: block;
    width: 100%;
    margin-top: 3px;
    padding: 2px 5px;
    overflow: hidden;
    border: 0;
    border-left: 3px solid var(--vc);
    border-radius: 2px;
    background: color-mix(in srgb, var(--vc) 10%, #fff);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chip.need {
    font-weight: 600;
}

.chip.st-New {
    border-left-style: dashed;
    background: #fff;
    outline: 1px dashed color-mix(in srgb, var(--vc) 50%, #fff);
    outline-offset: -1px;
}

.chip.st-Completed {
    opacity: .62;
}

.chip.st-Declined {
    opacity: .55;
    text-decoration: line-through;
}

.more {
    padding: 2px 4px;
    border: 0;
    background: transparent;
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
}

.tgwrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
}

.tg {
    min-width: var(--minw, 720px);
}

.tg-head, .tg-body {
    display: grid;
    grid-template-columns: 54px repeat(var(--n), minmax(0, 1fr));
}

.tg-head {
    border-bottom: 1px solid var(--line);
    background: #f5f5f5;
}

.tg-head button {
    padding: 8px 6px;
    border: 0;
    border-left: 1px solid var(--line);
    background: transparent;
    font-weight: 650;
    text-align: center;
}

.tg-head button.today {
    color: var(--red);
}

.tg-head button small {
    display: block;
    color: var(--mute);
    font-weight: 500;
}

.tg-times {
    position: relative;
}

.tg-times span {
    position: absolute;
    right: 6px;
    transform: translateY(-50%);
    color: var(--mute);
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
}

.tg-times span:first-child {
    transform: translateY(3px);
}

.tg-col {
    position: relative;
    border-left: 1px solid var(--line);
    background-image: linear-gradient(var(--line-soft) 1px, transparent 1px);
    background-size: 100% var(--hh);
}

.ev {
    position: absolute;
    overflow: hidden;
    padding: 3px 6px;
    border: 0;
    border-left: 3px solid var(--vc);
    border-radius: 2px;
    background: color-mix(in srgb, var(--vc) 12%, #fff);
    color: var(--ink);
    font-size: 11px;
    line-height: 1.35;
    text-align: left;
}

.ev b {
    display: block;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ev span {
    display: block;
    overflow: hidden;
    color: var(--ink-soft);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ev.need {
    font-weight: 600;
}

.ev.st-New {
    border-left-style: dashed;
    background: #fff;
    outline: 1px dashed color-mix(in srgb, var(--vc) 55%, #fff);
    outline-offset: -1px;
}

.ev.st-Completed {
    opacity: .62;
}

.ev.st-Declined {
    opacity: .55;
    text-decoration: line-through;
}

/* Booking detail and calendar sync dialogs */
dialog {
    width: min(680px, calc(100% - 24px));
    max-height: 92vh;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 7px 24px #0002;
}

dialog::backdrop {
    background: #1119;
}

.dlg {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 22px;
}

#dlgBody {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.d-head {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.d-head .vbar {
    width: 5px;
    align-self: stretch;
    flex: none;
    border-radius: 1px;
}

.d-head > div {
    min-width: 0;
    flex: 1;
}

.d-head h2 {
    overflow-wrap: anywhere;
    font-size: 25px;
}

.facts {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 6px 13px;
    font-size: 13.5px;
}

.facts dt {
    color: var(--mute);
    font-weight: 600;
}

.facts dd {
    overflow-wrap: anywhere;
}

.dlg h3 {
    margin-bottom: 7px;
    font-size: 16px;
}

.chips {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.tchip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px 3px 10px;
    border-radius: 3px;
    background: #222;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
}

.tchip button {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: #ffffff26;
    color: #fff;
    line-height: 1;
}

.tchip button:hover {
    background: #ffffff48;
}

.sect {
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.inline {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.inline select, .inline input {
    width: auto;
    min-width: 0;
    min-height: 35px;
    flex: 1 1 150px;
}

ul.ans {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13.5px;
}

ul.ans li b {
    display: block;
    color: var(--mute);
    font-size: 12px;
    font-weight: 650;
}

.link-box {
    display: flex;
    align-items: stretch;
    gap: 7px;
}

.link-box input {
    min-width: 0;
    font-size: 12.5px;
}

.steps {
    margin: 8px 0 0;
    padding-left: 20px;
    color: var(--ink-soft);
    font-size: 13px;
}

.steps li {
    margin: 3px 0;
}

/* Form builder and team list */
.fb {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
}

.flist {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
}

.flist button.fi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 9px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    font-size: 12.5px;
    font-weight: 600;
    text-align: left;
}

.flist button.fi[aria-pressed="true"] {
    background: #f0f0f0;
    box-shadow: none;
}

.locked {
    margin: 7px 0 13px;
    padding: 10px 12px;
    border-left: 3px solid #aaa;
    border-radius: 0;
    background: #f2f2f2;
    color: var(--ink-soft);
    font-size: 12.5px;
}

.q {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
    border-radius: 0;
    background: #fff;
}

.q .qtop {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 9px;
}

.q .qbot {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.q .qbot label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-right: auto;
    font-weight: 500;
}

.person {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 11px;
    padding: 11px 0;
    border-top: 1px solid var(--line-soft);
}

.person:first-of-type {
    border-top: 0;
}

.person b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.person span.e {
    display: block;
    overflow: hidden;
    color: var(--mute);
    font-size: 12.5px;
    text-overflow: ellipsis;
}

/* Equipment catalogue */
.equipment-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 19px 20px;
    border: 1px solid var(--line);
    background: #fbfbfb;
    margin-bottom: 14px;
}

.equipment-hero h2 {
    font-size: 19px;
    margin-bottom: 5px;
}

.equipment-hero p {
    max-width: 650px;
    color: var(--mute);
    font-size: 13px;
}

.equipment-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.equipment-stats {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 10px;
    margin: 0 0 23px;
}

.equipment-stat {
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid var(--line-soft);
    background: #fff;
}

.equipment-stat .label {
    color: var(--mute);
    font-size: 11.5px;
}

.equipment-stat .value {
    display: block;
    margin-top: 2px;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.equipment-stat .detail {
    color: var(--mute);
    font-size: 11.5px;
}

.equipment-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 22px 0 9px;
}

.equipment-section-head h2 {
    margin: 0;
    font-size: 17px;
}

.equipment-inventory-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 12px;
}

.equipment-search {
    width: min(100%,360px);
}

.equipment-results-count {
    margin-left: auto;
}

.equipment-catalogue {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap: 14px;
    margin: 12px 0 24px;
}

.equipment-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 15px;
    border: 1px solid #dedede;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 2px 7px #00000008;
    transition: border-color .12s ease,box-shadow .12s ease;
}

.equipment-card:hover {
    border-color: #bebebe;
    box-shadow: 0 4px 12px #0000000d;
}

.equipment-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.equipment-image {
    width: 96px;
    height: 88px;
    flex: none;
    object-fit: contain;
    border: 1px solid var(--line-soft);
    border-radius: 3px;
    background: #f7f7f7;
}

.equipment-image-placeholder {
    width: 96px;
    height: 88px;
    flex: none;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-soft);
    border-radius: 3px;
    background: #f7f7f7;
    color: var(--mute);
    font-size: 11px;
    text-align: center;
    padding: 7px;
}

.equipment-card h3 {
    font-size: 14px;
    overflow-wrap: anywhere;
    margin: 1px 0 5px;
}

.equipment-description {
    color: var(--mute);
    font-size: 12px;
    overflow-wrap: anywhere;
    margin-top: 7px;
}

.equipment-stockline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.equipment-stock {
    font-size: 11.5px;
    color: var(--ink-soft);
}

.equipment-stock-pill {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 3px 8px;
    border-radius: 3px;
    background: #eee;
    color: #333;
    font-size: 11.5px;
    font-weight: 600;
}

.equipment-stock-pill.available {
    background: #e9f2ec;
    color: #245c39;
}

.equipment-stock-pill.low {
    background: #f7f0e4;
    color: #7a4a12;
}

.equipment-stock-pill.none {
    background: #f7e9eb;
    color: #8d1a2c;
}

.equipment-card-foot {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

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

.equipment-qty {
    display: flex;
    align-items: center;
    gap: 5px;
}

.equipment-qty input {
    width: 64px;
    min-height: 35px;
    padding: 5px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.equipment-qty .btn {
    min-width: 34px;
    width: 34px;
    min-height: 35px;
    padding: 0;
    font-size: 17px;
}

.equipment-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.equipment-admin-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.booking-equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.booking-equipment-card {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    background: #fff;
}

.booking-equipment-card .equipment-image,
.booking-equipment-card .equipment-image-placeholder {
    width: 94px;
    height: 90px;
}

.booking-equipment-copy {
    min-width: 0;
}

.booking-equipment-copy h3 {
    margin: 0 0 5px;
    font-size: 13.5px;
    overflow-wrap: anywhere;
}

.booking-equipment-copy p {
    margin: 0 0 8px;
    color: var(--mute);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.booking-equipment-quantity {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
}

.booking-equipment-quantity label {
    font-size: 12.5px;
}

.booking-equipment-quantity input {
    min-height: 34px;
    padding: 5px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 520px) {
    .booking-equipment-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.equipment-event-fields {
    display: grid;
    grid-template-columns: minmax(0,1.5fr) repeat(3,minmax(110px,1fr));
    gap: 12px;
}

.equipment-editor {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fafafa;
    margin-top: 12px;
}

.equipment-editor[hidden] {
    display: none !important;
}

.equipment-selected {
    margin: 12px 0;
    padding: 10px 12px;
    border-left: 3px solid var(--red);
    background: #f8f8f8;
    color: var(--ink-soft);
    font-size: 12.5px;
    overflow-wrap: anywhere;
}

.equipment-booking-panel {
    margin: 20px 0 25px;
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fbfbfb;
}

.equipment-booking-panel h2 {
    font-size: 18px;
    margin-bottom: 5px;
}

.equipment-booking-panel .help {
    margin-bottom: 15px;
}

.equipment-issue-card {
    border-left: 3px solid var(--red);
}

.equipment-lost-availability {
    margin: 4px 0 12px;
    padding: 9px 11px;
    background: #f5f5f5;
    color: var(--ink-soft);
    font-size: 12.5px;
}

.equipment-empty-search {
    padding: 22px 15px;
    text-align: center;
    border: 1px dashed var(--line);
    color: var(--mute);
    grid-column: 1/-1;
}

@media (max-width: 760px) {
    .equipment-event-fields {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

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

    .equipment-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .equipment-results-count {
        margin-left: 0;
    }
}

@media (max-width: 520px) {
    .equipment-event-fields {
        grid-template-columns:minmax(0,1fr);
    }

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

    .equipment-hero {
        padding: 15px;
    }

    .equipment-hero-actions {
        width: 100%;
    }

    .equipment-hero-actions .btn {
        flex: 1;
    }

    .equipment-pick-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Sign-in screen */
#authSection {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: var(--bg);
}

.auth-top {
    border: 0;
    background: #202024;
}

.auth-top-in {
    display: flex;
    max-width: 1200px;
    min-height: 68px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0 24px;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    text-align: center;
}

.auth-brand .brand-wordmark {
    font-size: 21px;
    gap: 8px;
}

.auth-logo {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.auth-main {
    display: grid;
    flex: 1;
    min-height: 0;
    place-items: center;
    padding: 36px 20px;
    background: #f3f3f3;
}

.auth-page {
    width: min(100%, 410px);
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
}

.auth-page h1 {
    color: var(--ink);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: 0;
}

.auth-copy {
    margin: 8px 0 20px;
    color: #555;
    font-size: 13px;
    line-height: 1.55;
}

.auth-signin {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 2px;
    background: var(--red);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: background-color .12s ease;
}

.auth-signin:hover {
    background: var(--red-dark);
}

.auth-signin:disabled {
    opacity: .65;
}

.auth-page .notice {
    margin-top: 14px;
}

.auth-footer {
    border-top: 0;
    background: #202024;
}

.auth-footer-in {
    display: flex;
    max-width: 1200px;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 auto;
    padding: 14px 24px;
    color: #c7c7c7;
    font-size: 12px;
}

.auth-footer a {
    color: #fff;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

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

    .side {
        position: static;
        display: flex;
        height: auto;
        min-height: 0;
        flex-direction: column;
        gap: 0;
        overflow: visible;
        padding: 9px 12px 0;
    }

    .brand {
        width: 100%;
        align-self: stretch;
        padding: 7px 4px 11px;
        border: 0;
    }

    .nav {
        flex-direction: row;
        gap: 0;
        width: 100%;
        margin: 0;
        overflow-x: auto;
    }

    .nav-group {
        display: contents;
    }

    .nav-label {
        display: none;
    }

    .nav button {
        width: auto;
        min-width: max-content;
        min-height: 39px;
        padding: 8px 11px;
        border-left: 0;
        border-bottom: 2px solid transparent;
        border-radius: 0;
    }

    .nav button[aria-current="page"] {
        border-bottom-color: transparent;
        background: var(--red-dark);
        color: #fff;
    }

    .nav-item-main {
        gap: 7px;
    }

    .side-foot {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        margin: 0;
        padding: 8px 0 10px;
        border: 0;
    }

    .side-foot b, .side-foot span.em {
        display: none;
    }

    .side-foot .role {
        margin: 0;
    }

    .side-foot .btn {
        width: auto;
        margin: 0;
    }

    .content {
        padding: 0 0 36px;
    }

    #main > section {
        padding: 17px 18px 23px;
    }

    #main > #appMessage {
        margin: 11px 18px 0 !important;
    }

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

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

    .srow {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "t r" "n n" "v who";
    }

    .srow .t {
        grid-area: t;
    }

    .srow .n {
        grid-area: n;
    }

    .srow .v {
        grid-area: v;
    }

    .srow .who {
        grid-area: who;
        text-align: right;
    }

    .srow .r {
        grid-area: r;
    }

    .mday {
        min-height: 78px;
    }

    .chip {
        padding: 1px 4px;
        font-size: 10px;
    }
}

@media (max-width: 620px) {
    .content {
        padding: 22px 14px 38px;
    }

    .page-head {
        align-items: flex-start;
        margin-bottom: 0;
        padding: 10px 16px;
    }

    .page-head h1 {
        font-size: 16px;
    }

    .panel {
        padding: 14px 0;
    }

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

    .bk .when {
        grid-column: 1;
        grid-row: auto;
    }

    .bk .where, .bk .techline, .bk .row {
        grid-column: 1;
    }

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

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

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

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

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

    .auth-top-in {
        min-height: 64px;
        padding: 0 17px;
    }

    .auth-main {
        padding: 25px 14px;
    }

    .auth-page {
        padding: 24px 20px;
    }

    .auth-footer-in {
        min-height: 65px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        padding: 13px 17px;
    }

    .link-box {
        flex-wrap: wrap;
    }

    .link-box input {
        flex: 1 1 100%;
    }

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

    .person > .inline {
        grid-column: 1 / -1;
    }

    .mday {
        min-height: 62px;
        padding: 2px;
    }

    .dn {
        min-width: 21px;
        height: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Styles previously declared later in the page. Kept in the same cascade order. */

.plain-link {
    color: inherit;
    text-decoration: none;
}


/* Firebound Interactive policy links */
.auth-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}
.auth-footer-brand img {
    display: block;
    width: 21px;
    height: 27px;
    object-fit: contain;
    flex: none;
}
.auth-footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 13px;
}
.auth-footer-links a,
.portal-legal-links a {
    color: inherit;
    text-decoration: none;
}
.auth-footer-links a:hover,
.portal-legal-links a:hover {
    text-decoration: underline;
}
.portal-legal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    flex-wrap: wrap;
    margin: 23px 25px 0;
    padding: 15px 0 0;
    border-top: 1px solid var(--line-soft);
    color: var(--mute);
    font-size: 11.5px;
}
.portal-legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 600;
}
.portal-legal-brand img {
    display: block;
    width: 19px;
    height: 25px;
    object-fit: contain;
}
.portal-legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 13px;
}
@media (max-width: 1000px) {
    .portal-legal-footer { margin: 20px 17px 0; align-items: flex-start; flex-direction: column; }
    .auth-footer-links { gap: 6px 11px; }
}
