:root {
    --hotel-tile-header-bg: #f1f4f7;
    --hotel-tile-header-border: #dfe4ea;
    --hotel-tile-header-text: #465263;
}

/* Keep the authenticated application canvas distinct from white cards and
   controls. This is shared by the Hotel and Platform Workspaces. */
body.fi-body {
    background-color: #E8E8E8;
}

/* Protocol-neutral Door Locks setup and network management. The card treatment
   intentionally mirrors the established PMS provider selector. */
.lock-setup-selector,
.lock-networks__hero,
.lock-network-actions,
.lock-network-inventory {
    border: 1px solid #d7e0ea;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.07);
}

.lock-setup-selector {
    padding: clamp(1rem, 2.5vw, 1.75rem);
}

.lock-setup-selector__heading {
    max-width: 48rem;
    margin-bottom: 1.25rem;
}

.lock-setup-selector__heading h2,
.lock-networks__hero h2 {
    margin: 0.2rem 0 0.35rem;
    color: #0f172a;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 750;
}

.lock-setup-selector__heading p:last-child,
.lock-networks__hero p,
.lock-network-actions p,
.lock-network-inventory__heading p {
    margin: 0;
    color: #64748b;
}

.lock-setup-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.lock-setup-card {
    position: relative;
    display: flex;
    min-height: 12rem;
    appearance: none;
    cursor: pointer;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
    padding: 1.15rem;
    color: inherit;
    text-align: left;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.lock-setup-card:hover:not(.lock-setup-card--disabled) {
    transform: translateY(-3px);
    border-color: #93c5fd;
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.14), 0 3px 6px rgba(15, 23, 42, 0.08);
}

.lock-setup-card:focus-visible,
.lock-network-card__link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

.lock-setup-card--disabled {
    cursor: not-allowed;
    background: #f8fafc;
    opacity: 0.72;
}

.lock-setup-card__icon,
.lock-network-card__icon {
    display: inline-flex;
    width: 2.85rem;
    height: 2.85rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: #475569;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.lock-setup-card__icon--zwave { background: #2563eb; }
.lock-setup-card__icon--bluetooth { background: #4f46e5; }
.lock-setup-card__icon--zigbee,
.lock-setup-card__icon--lorawan,
.lock-setup-card__icon--wifi,
.lock-setup-card__icon--hotel_rfid { background: #94a3b8; }

.lock-setup-card strong {
    margin-top: 0.8rem;
    color: #0f172a;
    font-size: 0.98rem;
}

.lock-setup-card small {
    display: block;
    margin-top: 0.3rem;
    color: #64748b;
    line-height: 1.4;
}

.lock-setup-card__requirement {
    margin-top: 0.5rem;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 650;
}

.lock-setup-card__badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: auto;
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.73rem;
    font-weight: 700;
}

.lock-setup-card__badge--available {
    background: #dcfce7;
    color: #166534;
}

.lock-setup-card__chevron {
    position: absolute;
    right: 1rem;
    bottom: 1.05rem;
    width: 1rem;
    color: #64748b;
}

.lock-setup-selector__notice {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 1rem;
    border-radius: 10px;
    background: #eff6ff;
    padding: 0.85rem 1rem;
    color: #1e40af;
    font-size: 0.86rem;
}

.lock-setup-selector__notice svg {
    width: 1.2rem;
    flex: 0 0 auto;
}

.lock-networks {
    display: grid;
    gap: 1rem;
}

.lock-networks__hero,
.lock-network-actions,
.lock-network-inventory {
    padding: clamp(1rem, 2.5vw, 1.5rem);
}

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

.lock-network-list {
    display: grid;
    gap: 0.75rem;
}

.lock-network-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    border: 1px solid #d7e0ea;
    border-radius: 12px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.lock-network-card--disabled {
    background: #f8fafc;
    opacity: 0.76;
}

.lock-network-card__icon svg {
    width: 1.35rem;
}

.lock-network-card__heading,
.lock-network-inventory__heading,
.lock-network-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lock-network-card__heading h3,
.lock-network-actions h3,
.lock-network-inventory h3 {
    margin: 0;
    color: #0f172a;
    font-weight: 750;
}

.lock-network-card__body p {
    margin: 0.25rem 0;
    color: #475569;
}

.lock-network-card__body small,
.lock-network-inventory__row small {
    display: block;
    color: #64748b;
}

.lock-network-card__link {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #2563eb;
}

.lock-network-card__link svg { width: 1.15rem; }

.lock-network-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.lock-network-metrics article {
    border: 1px solid #d7e0ea;
    border-radius: 12px;
    background: #fff;
    padding: 1rem;
}

.lock-network-metrics span {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.lock-network-metrics strong {
    display: block;
    margin-top: 0.35rem;
    color: #0f172a;
}

.lock-network-actions__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.lock-network-inventory__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid #e2e8f0;
}

.lock-network-inventory__row:first-of-type { margin-top: 0.9rem; }
.lock-network-inventory__empty { margin: 1rem 0 0; color: #64748b; }

.dark .lock-setup-selector,
.dark .lock-setup-card,
.dark .lock-networks__hero,
.dark .lock-network-card,
.dark .lock-network-metrics article,
.dark .lock-network-actions,
.dark .lock-network-inventory {
    border-color: rgba(255, 255, 255, 0.1);
    background: #111827;
}

.dark .lock-setup-card--disabled,
.dark .lock-network-card--disabled { background: rgba(17, 24, 39, 0.65); }
.dark .lock-setup-selector__heading h2,
.dark .lock-setup-card strong,
.dark .lock-networks__hero h2,
.dark .lock-network-card__heading h3,
.dark .lock-network-actions h3,
.dark .lock-network-inventory h3,
.dark .lock-network-metrics strong { color: #f8fafc; }

@media (max-width: 960px) {
    .lock-setup-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lock-network-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lock-network-actions { align-items: flex-start; flex-direction: column; }
    .lock-network-actions__buttons { justify-content: flex-start; }
}

@media (max-width: 600px) {
    .lock-setup-card-grid,
    .lock-network-metrics { grid-template-columns: 1fr; }
    .lock-setup-card { min-height: 10.5rem; }
    .lock-networks__hero { align-items: stretch; flex-direction: column; }
    .lock-networks__hero .fi-btn,
    .lock-network-actions__buttons,
    .lock-network-actions__buttons .fi-btn { width: 100%; }
    .lock-network-actions__buttons .fi-btn { justify-content: center; }
    .lock-network-card { grid-template-columns: auto minmax(0, 1fr); }
    .lock-network-card__link { grid-column: 1 / -1; width: 100%; }
    .lock-network-card__heading { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .lock-setup-card { transition: none; }
    .lock-setup-card:hover:not(.lock-setup-card--disabled) { transform: none; }
}

/* Support management */
.support-center,
.support-overview {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.support-center__hero {
    align-items: center;
    background: color-mix(in srgb, var(--primary-500) 8%, white);
    border: 1px solid color-mix(in srgb, var(--primary-500) 24%, #d9e0e7);
    border-radius: .5rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(0, 1fr) minmax(13rem, auto);
    padding: 1.15rem 1.25rem;
}

.support-center__hero-icon,
.support-center__chat-icon {
    align-items: center;
    background: var(--primary-600);
    border-radius: .45rem;
    color: #fff;
    display: flex;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.support-center__hero-icon svg,
.support-center__chat-icon svg { height: 1.55rem; width: 1.55rem; }
.support-center__hero h2,
.support-center__chat-intro h2,
.support-center__ticket-head h2 { color: var(--gray-950); font-size: 1.1rem; font-weight: 800; line-height: 1.25; }
.support-center__hero p,
.support-center__chat-intro p,
.support-overview__intro { color: var(--gray-600); font-size: .82rem; margin-top: .2rem; }

.support-center__provider {
    align-items: flex-start;
    color: var(--gray-600);
    display: inline-flex;
    font-size: .72rem;
    gap: .45rem;
    justify-self: end;
    line-height: 1.35;
    max-width: 23rem;
}
.support-center__provider span { background: #d97706; border-radius: 999px; flex: 0 0 auto; height: .5rem; margin-top: .22rem; width: .5rem; }
.support-center__provider--ready span { background: #16a34a; }

.support-center__tabs {
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
}
.support-center__tab {
    align-items: center;
    border-bottom: 2px solid transparent;
    color: var(--gray-600);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .82rem;
    font-weight: 700;
    gap: .45rem;
    min-height: 2.8rem;
    padding: .55rem .15rem;
}
.support-center__tab svg { height: 1.05rem; width: 1.05rem; }
.support-center__tab--active { border-color: var(--primary-600); color: var(--primary-700); }

.support-center__filters {
    align-items: end;
    display: grid;
    gap: .85rem;
    grid-template-columns: minmax(14rem, 1.5fr) minmax(10rem, .7fr) minmax(10rem, .7fr) auto;
}
.support-center__field { display: grid; gap: .35rem; min-width: 0; }
.support-center__field > span { color: var(--gray-700); font-size: .72rem; font-weight: 750; }
.support-center__field input:not([type=file]),
.support-center__field select,
.support-center__field textarea,
.support-center__reply textarea,
.support-center__composer textarea {
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: .4rem;
    color: var(--gray-950);
    min-height: 2.5rem;
    padding: .58rem .7rem;
    width: 100%;
}
.support-center__field textarea,
.support-center__reply textarea,
.support-center__composer textarea { resize: vertical; }
.support-center__form { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.support-center__field--wide { grid-column: span 2; }
.support-center__field--full { grid-column: 1 / -1; }
.support-center__actions { display: flex; justify-content: flex-end; }
.support-center__errors { color: #b91c1c; font-size: .76rem; }

.support-upload { display: grid; gap: .65rem; min-width: 0; width: 100%; }
.support-upload__dropzone {
    align-items: center;
    background: color-mix(in srgb, var(--primary-500) 4%, #fff);
    border: 1px dashed color-mix(in srgb, var(--primary-500) 45%, var(--gray-300));
    border-radius: .5rem;
    cursor: pointer;
    display: flex;
    gap: .75rem;
    min-height: 4.5rem;
    overflow: hidden;
    padding: .8rem 1rem;
    position: relative;
    transition: background-color .15s ease, border-color .15s ease;
}
.support-upload__dropzone:hover { background: color-mix(in srgb, var(--primary-500) 8%, #fff); border-color: var(--primary-500); }
.support-upload__dropzone:focus-within { outline: 2px solid var(--primary-500); outline-offset: 2px; }
.support-upload__dropzone input { cursor: pointer; inset: 0; opacity: 0; position: absolute; width: 100%; }
.support-upload__icon { align-items: center; background: var(--primary-600); border-radius: .4rem; color: #fff; display: inline-flex; flex: 0 0 auto; height: 2.5rem; justify-content: center; width: 2.5rem; }
.support-upload__icon svg { height: 1.25rem; width: 1.25rem; }
.support-upload__copy { display: grid; gap: .12rem; min-width: 0; }
.support-upload__copy strong { color: var(--gray-900); font-size: .78rem; font-weight: 750; }
.support-upload__copy small,
.support-upload__progress { color: var(--gray-500); font-size: .68rem; }
.support-upload__progress { align-items: center; gap: .4rem; }
.support-upload__progress svg { height: 1rem; width: 1rem; }
.support-upload__files { display: grid; gap: .4rem; }
.support-upload__file { align-items: center; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: .4rem; display: grid; gap: .45rem; grid-template-columns: auto minmax(0, 1fr) auto auto; padding: .5rem .6rem; }
.support-upload__file > svg { color: var(--primary-600); height: 1rem; width: 1rem; }
.support-upload__file > span { color: var(--gray-800); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-upload__file small { color: var(--gray-500); font-size: .64rem; }
.support-upload__file button { align-items: center; color: var(--gray-500); display: inline-flex; justify-content: center; padding: .15rem; }
.support-upload__file button:hover { color: #b91c1c; }
.support-upload__file button svg { height: 1rem; width: 1rem; }

.support-center__table-wrap { max-width: 100%; overflow-x: auto; }
.support-center__table { border-collapse: collapse; min-width: 62rem; width: 100%; }
.support-center__table th { color: var(--gray-500); font-size: .68rem; font-weight: 750; padding: .75rem; text-align: left; text-transform: uppercase; }
.support-center__table td { border-top: 1px solid var(--gray-200); color: var(--gray-700); font-size: .78rem; padding: .8rem .75rem; vertical-align: middle; }
.support-center__table td strong { color: var(--gray-950); }
.support-center__subject { display: inline; font-weight: 650; }
.support-center__unread {
    align-items: center;
    background: #dc2626;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: .65rem;
    font-weight: 800;
    justify-content: center;
    margin-left: .45rem;
    min-height: 1.35rem;
    min-width: 1.35rem;
    padding: 0 .3rem;
    vertical-align: middle;
}
.support-center__open,
.support-center__back { color: var(--primary-700); font-size: .76rem; font-weight: 750; white-space: nowrap; }
.support-center__back { align-items: center; display: inline-flex; gap: .35rem; justify-self: start; }
.support-center__back svg { height: 1rem; width: 1rem; }
.support-center__ticket-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; }
.support-center__ticket-action-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.support-center__pagination { margin-top: 1rem; }
.support-center__empty { color: var(--gray-500); padding: 2rem 1rem !important; text-align: center; }
.support-center__empty--chat { border: 1px dashed var(--gray-300); border-radius: .5rem; }

.support-center__status {
    background: var(--gray-100);
    border-radius: 999px;
    color: var(--gray-700);
    display: inline-flex;
    font-size: .68rem;
    font-weight: 750;
    padding: .28rem .55rem;
    white-space: nowrap;
}
.support-center__status--waiting_support,
.support-center__status--escalated_external { background: #fef3c7; color: #92400e; }
.support-center__status--waiting_customer { background: #dbeafe; color: #1e40af; }
.support-center__status--resolved,
.support-center__status--closed { background: #dcfce7; color: #166534; }

.support-center__ticket-head,
.support-center__chat-intro {
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .25rem 0 1rem;
}
.support-center__ticket-head > div > span { color: var(--gray-500); font-size: .7rem; font-weight: 750; }
.support-center__chat-intro { justify-content: flex-start; }
.support-center__thread { display: grid; gap: .85rem; }
.support-center__message {
    border: 1px solid;
    border-radius: .5rem;
    justify-self: start;
    max-width: min(88%, 52rem);
    padding: .9rem 1rem;
}
.support-center__message--agent { background: #e0f2fe; border-color: #7dd3fc; box-shadow: inset .24rem 0 0 #0284c7; }
.support-center__message--customer { background: #fff7ed; border-color: #fdba74; box-shadow: inset -.24rem 0 0 #ea580c; justify-self: end; }
.support-center__message--ai { background: #f5f3ff; border-color: #c4b5fd; box-shadow: inset .24rem 0 0 #7c3aed; }
.support-center__message header { align-items: center; display: flex; font-size: .68rem; gap: 1rem; justify-content: space-between; margin-bottom: .45rem; }
.support-center__message--agent header strong { color: #075985; }
.support-center__message--customer header strong { color: #9a3412; }
.support-center__message--ai header strong { color: #5b21b6; }
.support-center__message time,
.support-center__message small { color: var(--gray-500); }
.support-center__message p { color: var(--gray-800); font-size: .82rem; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.support-center__message small { display: block; font-size: .65rem; margin-top: .55rem; }
.support-center__attachments { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.support-center__attachments a { align-items: center; color: var(--primary-700); display: inline-flex; font-size: .7rem; gap: .25rem; text-decoration: underline; }
.support-center__attachments svg { height: .9rem; width: .9rem; }
.support-center__reply,
.support-center__composer { display: grid; gap: .75rem; }
.support-center__reply-actions,
.support-center__composer { align-items: end; grid-template-columns: minmax(0, 1fr) auto; }
.support-center__reply-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

.support-overview__stats { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.support-overview__stats > div { background: #0369a1; border-radius: .5rem; color: #fff; display: grid; gap: .3rem; min-height: 9rem; padding: 1rem; }
.support-overview__stats > div:nth-child(2) { background: #0f766e; }
.support-overview__stats > div:nth-child(3) { background: #b45309; }
.support-overview__stats > div:nth-child(4) { background: #475569; }
.support-overview__stats > .support-overview__ready { background: #15803d; }
.support-overview__stats svg { height: 1.65rem; width: 1.65rem; }
.support-overview__stats strong { font-size: 1.35rem; font-weight: 800; margin-top: auto; }
.support-overview__stats span { font-size: .76rem; font-weight: 700; }

.dark .support-center__hero { background: color-mix(in srgb, var(--primary-500) 10%, var(--gray-900)); border-color: var(--gray-700); }
.dark .support-center__hero h2,
.dark .support-center__chat-intro h2,
.dark .support-center__ticket-head h2,
.dark .support-center__table td strong { color: #fff; }
.dark .support-center__hero p,
.dark .support-center__chat-intro p,
.dark .support-overview__intro,
.dark .support-center__provider { color: var(--gray-400); }
.dark .support-center__tabs,
.dark .support-center__ticket-head,
.dark .support-center__chat-intro,
.dark .support-center__table td { border-color: var(--gray-700); }
.dark .support-center__tab { color: var(--gray-400); }
.dark .support-center__tab--active,
.dark .support-center__open,
.dark .support-center__back,
.dark .support-center__attachments a { color: var(--primary-400); }
.dark .support-center__field > span,
.dark .support-center__message header strong,
.dark .support-center__message p,
.dark .support-center__table td { color: var(--gray-300); }
.dark .support-center__field input:not([type=file]),
.dark .support-center__field select,
.dark .support-center__field textarea,
.dark .support-center__reply textarea,
.dark .support-center__composer textarea { background: var(--gray-900); border-color: var(--gray-700); color: #fff; }
.dark .support-center__message--agent { background: #082f49; border-color: #0369a1; box-shadow: inset .24rem 0 0 #38bdf8; }
.dark .support-center__message--customer { background: #431407; border-color: #c2410c; box-shadow: inset -.24rem 0 0 #fb923c; }
.dark .support-center__message--ai { background: #2e1065; border-color: #6d28d9; box-shadow: inset .24rem 0 0 #a78bfa; }
.dark .support-center__message--agent header strong { color: #7dd3fc; }
.dark .support-center__message--customer header strong { color: #fdba74; }
.dark .support-center__message--ai header strong { color: #c4b5fd; }
.dark .support-center__unread { border-color: var(--gray-900); }
.dark .support-center__empty--chat { border-color: var(--gray-700); }
.dark .support-upload__dropzone { background: color-mix(in srgb, var(--primary-500) 7%, var(--gray-900)); border-color: var(--gray-600); }
.dark .support-upload__dropzone:hover { background: color-mix(in srgb, var(--primary-500) 12%, var(--gray-900)); border-color: var(--primary-500); }
.dark .support-upload__copy strong,
.dark .support-upload__file > span { color: var(--gray-200); }
.dark .support-upload__file { background: var(--gray-900); border-color: var(--gray-700); }

@media (max-width: 1023px) {
    .support-center__hero { grid-template-columns: auto minmax(0, 1fr); }
    .support-center__provider { grid-column: 2; justify-self: start; }
    .support-center__filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .support-overview__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
    .support-center__hero { align-items: start; grid-template-columns: auto minmax(0, 1fr); padding: 1rem; }
    .support-center__provider { grid-column: 1 / -1; }
    .support-center__filters,
    .support-center__form,
    .support-overview__stats { grid-template-columns: 1fr; }
    .support-center__field--wide,
    .support-center__field--full { grid-column: 1; }
    .support-center__filters .fi-btn,
    .support-center__actions .fi-btn,
    .support-center__reply-actions .fi-btn,
    .support-center__composer .fi-btn { justify-content: center; width: 100%; }
    .support-center__message { max-width: 100%; }
    .support-center__reply-actions,
    .support-center__composer { align-items: stretch; grid-template-columns: 1fr; }
    .support-center__ticket-head { align-items: flex-start; flex-direction: column; }
    .support-center__ticket-action-buttons,
    .support-center__ticket-action-buttons .fi-btn { width: 100%; }
}

.controller-recovery { display: grid; gap: 1.25rem; }
.controller-recovery section { border: 1px solid rgb(209 213 219); border-radius: .5rem; background: white; padding: 1.25rem; }
.dark .controller-recovery section { border-color: rgb(55 65 81); background: rgb(17 24 39); }
.controller-recovery__readiness { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; border-left: .3rem solid #d97706 !important; }
.controller-recovery__readiness--protected { border-left-color: #059669 !important; }
.controller-recovery__status-icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: #ecfdf5; color: #047857; }
.controller-recovery__status-icon svg { width: 1.75rem; height: 1.75rem; }
.controller-recovery__status-copy span, .controller-recovery__section-head span { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: #6b7280; }
.controller-recovery h2, .controller-recovery h3 { margin: .15rem 0; font-weight: 700; color: #111827; }
.dark .controller-recovery h2, .dark .controller-recovery h3 { color: #f9fafb; }
.controller-recovery p, .controller-recovery dd, .controller-recovery label span { color: #4b5563; }
.dark .controller-recovery p, .dark .controller-recovery dd, .dark .controller-recovery label span { color: #d1d5db; }
.controller-recovery__facts { display: flex; gap: 1.5rem; }
.controller-recovery__facts dt { font-size: .72rem; color: #6b7280; }
.controller-recovery__facts dd { margin-top: .2rem; font-weight: 600; }
.controller-recovery__workspace { display: grid; grid-template-columns: minmax(16rem,.75fr) minmax(24rem,1.5fr); gap: 1.25rem; }
.controller-recovery__section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.controller-recovery__section-head > svg { width: 2rem; color: #d97706; }
.controller-recovery label { display: grid; gap: .35rem; margin: 1rem 0; font-size: .85rem; font-weight: 600; }
.controller-recovery select { width: 100%; border: 1px solid #d1d5db; border-radius: .4rem; background: white; padding: .65rem .75rem; color: #111827; }
.dark .controller-recovery select { border-color: #4b5563; background: #111827; color: #f9fafb; }
.controller-recovery__scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.controller-recovery__scenario { position: relative; display: grid; align-content: start; gap: .3rem; min-height: 9rem; margin: 1rem 0 0 !important; padding: 1rem; border: 1px solid #d1d5db; border-radius: .45rem; cursor: pointer; }
.controller-recovery__scenario.is-selected { border-color: #d97706; background: #fffbeb; box-shadow: inset 0 0 0 1px #d97706; }
.dark .controller-recovery__scenario.is-selected { background: #29200d; }
.controller-recovery__scenario input { position: absolute; top: .75rem; right: .75rem; }
.controller-recovery__scenario svg { width: 1.6rem; color: #d97706; }
.controller-recovery__scenario span { font-size: .78rem; font-weight: 400; }
.controller-recovery__fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 1rem; }
.controller-recovery__notice { display: flex; gap: .55rem; align-items: flex-start; margin: .5rem 0 1rem; padding: .75rem; background: #f3f4f6; border-radius: .4rem; font-size: .82rem; }
.dark .controller-recovery__notice { background: #1f2937; }
.controller-recovery__notice svg { flex: 0 0 auto; width: 1.2rem; color: #047857; }
.controller-recovery__progress-track { height: .55rem; overflow: hidden; border-radius: 999px; background: #e5e7eb; }
.controller-recovery__progress-track span { display: block; height: 100%; background: #d97706; transition: width .3s ease; }
.controller-recovery__capability { display: flex; align-items: flex-start; gap: .65rem; margin: .75rem 0 1rem; padding: .8rem; border: 1px solid #f59e0b; border-radius: .4rem; background: #fffbeb; }
.controller-recovery__capability > svg { flex: 0 0 auto; width: 1.3rem; color: #b45309; }
.controller-recovery__capability strong { color: #92400e; }
.controller-recovery__capability p { margin: .2rem 0 0; font-size: .8rem; }
.controller-recovery__capability--ready { border-color: #10b981; background: #ecfdf5; }
.controller-recovery__capability--ready > svg, .controller-recovery__capability--ready strong { color: #047857; }
.controller-recovery__capability--error { border-color: #ef4444; background: #fef2f2; }
.controller-recovery__capability--error > svg, .controller-recovery__capability--error strong { color: #b91c1c; }
.dark .controller-recovery__capability { background: #29200d; }
.dark .controller-recovery__capability--ready { background: #052e24; }
.dark .controller-recovery__capability--error { background: #3f1116; }
.controller-recovery__point-progress { border-left: .3rem solid #d97706 !important; }
.controller-recovery__point-progress--verified { border-left-color: #059669 !important; }
.controller-recovery__point-progress--failed { border-left-color: #dc2626 !important; }
.controller-recovery__artifact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; margin-top: 1rem; }
.controller-recovery__artifact { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; padding: .8rem; border: 1px solid #d1d5db; border-radius: .4rem; }
.controller-recovery__artifact > svg { width: 1.35rem; color: #d97706; }
.controller-recovery__artifact > svg:last-child { width: 1.15rem; }
.controller-recovery__artifact div { display: grid; gap: .1rem; }
.controller-recovery__artifact span { font-size: .78rem; color: #6b7280; }
.controller-recovery__artifact--verified > svg { color: #059669; }
.controller-recovery__artifact--failed > svg { color: #dc2626; }
.dark .controller-recovery__artifact { border-color: #4b5563; }
.controller-recovery__point-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: .8rem; color: #6b7280; font-size: .75rem; }
.controller-recovery__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.controller-recovery__capability .fi-btn { margin-top: .65rem; }
.controller-recovery__history-list { display: grid; gap: .55rem; }
.controller-recovery__history-list article { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .8rem 0; border-top: 1px solid #e5e7eb; }
.controller-recovery__history-list article div { display: flex; gap: .75rem; }
.controller-recovery__history-list article p { grid-column: 1 / -1; margin: 0; }
.controller-recovery__state { font-size: .75rem; font-weight: 700; }

@media (max-width: 900px) {
    .controller-recovery__readiness, .controller-recovery__workspace { grid-template-columns: 1fr; }
    .controller-recovery__facts { flex-wrap: wrap; }
    .controller-recovery__scenario-grid { grid-template-columns: 1fr; }
    .controller-recovery__artifact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .controller-recovery section { padding: 1rem; }
    .controller-recovery__fields { grid-template-columns: 1fr; }
    .controller-recovery__history-list article { grid-template-columns: 1fr; }
    .controller-recovery__point-meta { flex-direction: column; gap: .25rem; }
}

.dark {
    --hotel-tile-header-bg: #20252d;
    --hotel-tile-header-border: rgba(255, 255, 255, 0.1);
    --hotel-tile-header-text: #d8dee7;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 7.5rem;
    margin: 0 0.75rem 1rem;
    padding: 1rem 0.75rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-brand__logo {
    display: block;
    width: auto;
    max-width: 10rem;
    height: auto;
    max-height: 4.75rem;
    object-fit: contain;
    object-position: center;
}

.sidebar-brand__placeholder {
    display: flex;
    width: 4rem;
    height: 4rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f3f4f6;
    color: #4b5563;
}

.sidebar-brand__placeholder .fi-icon {
    width: 2.25rem;
    height: 2.25rem;
}

.sidebar-brand__name {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.25;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .sidebar-brand {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark .sidebar-brand__placeholder {
    border-color: #374151;
    background: #111827;
    color: #d1d5db;
}

.dark .sidebar-brand__name {
    color: #e5e7eb;
}

/* Migration Manager is a custom Livewire surface, so keep its layout independent
   from Tailwind utilities that are not compiled into Filament's vendor theme. */
.migration-manager {
    display: grid;
    min-width: 0;
    gap: 1.5rem;
}

.migration-manager > *,
.migration-manager .fi-section,
.migration-manager .fi-section-content-ctn,
.migration-manager .fi-section-content {
    min-width: 0;
}

.migration-manager .grid {
    display: grid;
}

.migration-manager .flex {
    display: flex;
}

.migration-manager .flex-wrap {
    flex-wrap: wrap;
}

.migration-manager .flex-1 {
    flex: 1 1 0%;
}

.migration-manager .items-center {
    align-items: center;
}

.migration-manager .items-end {
    align-items: flex-end;
}

.migration-manager .justify-between {
    justify-content: space-between;
}

.migration-manager .gap-2 {
    gap: 0.5rem;
}

.migration-manager .gap-3 {
    gap: 0.75rem;
}

.migration-manager .gap-4 {
    gap: 1rem;
}

.migration-manager .gap-6 {
    gap: 1.5rem;
}

.migration-manager .mt-1 {
    margin-top: 0.25rem;
}

.migration-manager .mt-2 {
    margin-top: 0.5rem;
}

.migration-manager .mt-4 {
    margin-top: 1rem;
}

.migration-manager .mt-5 {
    margin-top: 1.25rem;
}

.migration-manager .pb-3 {
    padding-bottom: 0.75rem;
}

.migration-manager .p-3 {
    padding: 0.75rem;
}

.migration-manager .p-4 {
    padding: 1rem;
}

.migration-manager .p-6 {
    padding: 1.5rem;
}

.migration-manager .py-3 {
    padding-block: 0.75rem;
}

.migration-manager .py-4 {
    padding-block: 1rem;
}

.migration-manager .py-5 {
    padding-block: 1.25rem;
}

.migration-manager .pl-5 {
    padding-left: 1.25rem;
}

.migration-manager .w-full {
    width: 100%;
}

.migration-manager .min-w-0 {
    min-width: 0;
}

.migration-manager .min-w-72 {
    min-width: 18rem;
}

.migration-manager .h-3 {
    height: 0.75rem;
}

.migration-manager .h-full {
    height: 100%;
}

.migration-manager .overflow-hidden {
    overflow: hidden;
}

.migration-manager .overflow-x-auto {
    overflow-x: auto;
}

.migration-manager .break-all {
    overflow-wrap: anywhere;
    word-break: break-all;
}

.migration-manager .whitespace-pre-wrap {
    white-space: pre-wrap;
}

.migration-manager .rounded {
    border-radius: 0.5rem;
}

.migration-manager .text-left {
    text-align: left;
}

.migration-manager .text-center {
    text-align: center;
}

.migration-manager .text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.migration-manager .text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.migration-manager .text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.migration-manager .font-medium {
    font-weight: 500;
}

.migration-manager .font-semibold {
    font-weight: 600;
}

.migration-manager .font-bold {
    font-weight: 700;
}

.migration-manager label {
    display: block;
    min-width: 0;
}

.migration-manager code,
.migration-manager pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.migration-manager .list-decimal {
    list-style-type: decimal;
}

.migration-manager .space-y-2 > * + * {
    margin-top: 0.5rem;
}

.migration-manager__tabs {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-bottom: 1px solid #e5e7eb;
    scrollbar-width: thin;
}

.migration-manager__tabs > * {
    flex: 0 0 auto;
}

.migration-manager__table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
}

.migration-manager__table table {
    width: 100%;
    min-width: 76rem;
    border-collapse: collapse;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.migration-manager__table th,
.migration-manager__table td {
    padding: 0.75rem;
    vertical-align: top;
}

.migration-manager__table thead tr {
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    text-align: left;
}

.migration-manager__table tbody tr + tr {
    border-top: 1px solid #f3f4f6;
}

.migration-manager__table th {
    font-weight: 600;
    white-space: nowrap;
}

.migration-manager__table td[colspan] {
    text-align: center;
}

.dark .migration-manager__tabs,
.dark .migration-manager__table thead tr {
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .migration-manager__table thead tr {
    background: rgba(255, 255, 255, 0.05);
}

.dark .migration-manager__table tbody tr + tr {
    border-color: rgba(255, 255, 255, 0.05);
}

@media (min-width: 640px) {
    .migration-manager .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .migration-manager .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .migration-manager__tabs {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

@media (min-width: 1024px) {
    .migration-manager .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .migration-manager .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .migration-manager .xl\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .migration-manager .min-w-72 {
        width: 100%;
        min-width: 0;
    }
}

/* Visual lock commissioning wizard. */
.hotel-commissioning {
    --commissioning-accent: var(--hotel-brand-primary, #0f766e);
    --commissioning-accent-soft: color-mix(in srgb, var(--commissioning-accent) 10%, #ffffff);
    --commissioning-line: #d6dde5;
    --commissioning-ink: #17202d;
    --commissioning-muted: #5a6675;
    width: min(100%, 1060px);
    margin-inline: auto;
}

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

.hotel-commissioning button {
    font: inherit;
}

.hotel-commissioning__intro,
.hotel-commissioning__panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--commissioning-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(23, 32, 45, 0.07);
}

.hotel-commissioning__intro-copy,
.hotel-commissioning__panel-heading {
    min-width: 0;
}

.hotel-commissioning__intro-copy {
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border-bottom: 1px solid var(--commissioning-line);
    background: color-mix(in srgb, var(--commissioning-accent-soft) 70%, #f7f9fb);
}

.hotel-commissioning__eyebrow,
.hotel-commissioning__step-label {
    margin: 0 0 0.45rem;
    color: var(--commissioning-accent);
    font-size: 0.75rem;
    font-weight: 750;
    line-height: 1.4;
    text-transform: uppercase;
}

.hotel-commissioning h2,
.hotel-commissioning h3,
.hotel-commissioning p {
    overflow-wrap: anywhere;
}

.hotel-commissioning h2 {
    margin: 0;
    color: var(--commissioning-ink);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 760;
    line-height: 1.18;
}

.hotel-commissioning h3 {
    margin: 0;
    color: var(--commissioning-ink);
    font-size: 1rem;
    font-weight: 720;
    line-height: 1.35;
}

.hotel-commissioning__intro-copy > p:last-child,
.hotel-commissioning__panel-heading > p:last-child,
.hotel-commissioning__status p,
.hotel-commissioning__security-prompt p,
.hotel-commissioning__cancel-confirmation p,
.hotel-commissioning__success-summary p,
.hotel-commissioning__recovery p,
.hotel-commissioning__completion-heading p {
    margin: 0.6rem 0 0;
    color: var(--commissioning-muted);
    font-size: 0.925rem;
    line-height: 1.55;
}

.hotel-commissioning__operation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--commissioning-line);
}

.hotel-commissioning__operation,
.hotel-commissioning__controller-card {
    display: grid;
    min-width: 0;
    width: 100%;
    align-items: center;
    border: 0;
    background: #ffffff;
    color: var(--commissioning-ink);
    cursor: pointer;
    text-align: left;
}

.hotel-commissioning__operation {
    grid-template-columns: 3.5rem minmax(0, 1fr) 1.25rem;
    gap: 1rem;
    min-height: 164px;
    padding: 1.75rem;
}

.hotel-commissioning__operation:hover,
.hotel-commissioning__controller-card:hover {
    background: var(--commissioning-accent-soft);
}

.hotel-commissioning__operation:focus-visible,
.hotel-commissioning__controller-card:focus-visible,
.hotel-commissioning__history-option:focus-visible,
.hotel-commissioning__back:focus-visible,
.hotel-commissioning__cancel-link:focus-visible,
.hotel-commissioning__classification label:has(input:focus-visible) {
    outline: 3px solid color-mix(in srgb, var(--commissioning-accent) 35%, transparent);
    outline-offset: -3px;
}

.hotel-commissioning__operation-icon,
.hotel-commissioning__controller-icon,
.hotel-commissioning__status-icon,
.hotel-commissioning__prompt-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
}

.hotel-commissioning__operation-icon svg,
.hotel-commissioning__controller-icon svg,
.hotel-commissioning__status-icon svg,
.hotel-commissioning__prompt-icon svg {
    width: 1.65rem;
    height: 1.65rem;
}

.hotel-commissioning__operation-icon--add,
.hotel-commissioning__controller-icon {
    background: #e5f7f2;
    color: #087a62;
}

.hotel-commissioning__operation-icon--extender {
    background: #e8eefc;
    color: #3159a6;
}

.hotel-commissioning__operation-icon--remove {
    background: #fff2df;
    color: #a75808;
}

.hotel-commissioning__operation strong,
.hotel-commissioning__operation small,
.hotel-commissioning__controller-card strong,
.hotel-commissioning__controller-card small {
    display: block;
}

.hotel-commissioning__operation strong,
.hotel-commissioning__controller-card strong {
    font-size: 1.05rem;
    line-height: 1.35;
}

.hotel-commissioning__operation small,
.hotel-commissioning__controller-card small {
    margin-top: 0.35rem;
    color: var(--commissioning-muted);
    font-size: 0.825rem;
    line-height: 1.45;
}

.hotel-commissioning__chevron {
    width: 1.15rem;
    height: 1.15rem;
    color: #85909e;
}

.hotel-commissioning__back,
.hotel-commissioning__cancel-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 0;
    background: transparent;
    color: var(--commissioning-accent);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
}

.hotel-commissioning__back {
    margin: 1.25rem 1.5rem 0;
    padding: 0.35rem 0;
}

.hotel-commissioning__back svg,
.hotel-commissioning__cancel-link svg {
    width: 1rem;
    height: 1rem;
}

.hotel-commissioning__panel > .hotel-commissioning__panel-heading {
    padding: 1.4rem 1.5rem;
}

.hotel-commissioning__controller-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem;
}

.hotel-commissioning__controller-card {
    grid-template-columns: 3rem minmax(0, 1fr) 1rem;
    gap: 0.85rem;
    min-height: 96px;
    padding: 1rem;
    border: 1px solid var(--commissioning-line);
    border-radius: 6px;
}

.hotel-commissioning__controller-icon {
    width: 3rem;
    height: 3rem;
}

.hotel-commissioning__online-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.4rem;
    border-radius: 50%;
    background: #14936f;
}

.hotel-commissioning__prerequisite {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    margin: 0 1.5rem 1.5rem;
    padding: 1.25rem;
    border: 1px solid #f0c781;
    border-radius: 6px;
    background: #fff9ed;
}

.hotel-commissioning__prerequisite > svg {
    width: 2.25rem;
    height: 2.25rem;
    color: #a75808;
}

.hotel-commissioning__prerequisite p {
    margin: 0.35rem 0 0;
    color: #6f5a37;
    font-size: 0.875rem;
}

.hotel-commissioning__workspace {
    display: grid;
    grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
    min-width: 0;
}

.hotel-commissioning__mobile-hero {
    display: none;
}

.hotel-commissioning__lock-visual {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 520px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    padding: 2rem;
    border-right: 1px solid var(--commissioning-line);
    background: linear-gradient(150deg, #edf7f5 0%, #f6f8fa 65%);
}

.hotel-commissioning__lock-visual img {
    position: relative;
    z-index: 2;
    display: block;
    width: min(100%, 275px);
    height: auto;
    mix-blend-mode: normal;
}

.hotel-commissioning__lock-visual > span {
    position: relative;
    z-index: 2;
    margin-top: 1.25rem;
    color: var(--commissioning-muted);
    font-size: 0.8rem;
    font-weight: 650;
    text-align: center;
}

.hotel-commissioning__radio-ring {
    position: absolute;
    z-index: 1;
    width: 290px;
    height: 290px;
    border: 2px solid color-mix(in srgb, var(--commissioning-accent) 22%, transparent);
    border-radius: 50%;
}

.hotel-commissioning__lock-visual--active .hotel-commissioning__radio-ring {
    animation: commissioning-radio 2.2s ease-out infinite;
}

.hotel-commissioning__radio-ring--delay {
    animation-delay: 1.1s !important;
}

@keyframes commissioning-radio {
    0% { opacity: 0.8; transform: scale(0.7); }
    100% { opacity: 0; transform: scale(1.35); }
}

.hotel-commissioning__preparation,
.hotel-commissioning__active-copy {
    min-width: 0;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.hotel-commissioning__history,
.hotel-commissioning__classification {
    min-width: 0;
    margin: 1.5rem 0 0;
    padding: 0;
    border: 0;
}

.hotel-commissioning__history legend,
.hotel-commissioning__classification legend,
.hotel-commissioning__field > span,
.hotel-commissioning__security-prompt label {
    color: var(--commissioning-ink);
    font-size: 0.85rem;
    font-weight: 700;
}

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

.hotel-commissioning__history legend {
    grid-column: 1 / -1;
    margin-bottom: 0.15rem;
}

.hotel-commissioning__history-option {
    display: flex;
    min-width: 0;
    min-height: 72px;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem;
    border: 1px solid var(--commissioning-line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--commissioning-ink);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
}

.hotel-commissioning__history-option svg {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    color: #7a8795;
}

.hotel-commissioning__history-option > span {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
}

.hotel-commissioning__history-option strong {
    font: inherit;
}

.hotel-commissioning__history-option small {
    color: var(--commissioning-muted);
    font-size: 0.72rem;
    font-weight: 500;
}

.hotel-commissioning__history-option.is-selected {
    border-color: var(--commissioning-accent);
    background: var(--commissioning-accent-soft);
}

.hotel-commissioning__history-option.is-selected svg {
    color: var(--commissioning-accent);
}

.hotel-commissioning__checklist {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.hotel-commissioning__checklist li {
    display: grid;
    grid-template-columns: 1.65rem minmax(0, 1fr);
    align-items: start;
    gap: 0.65rem;
    color: #364252;
    font-size: 0.875rem;
    line-height: 1.5;
}

.hotel-commissioning__checklist svg {
    width: 1.4rem;
    height: 1.4rem;
    padding: 0.2rem;
    border-radius: 50%;
    background: #dff6ee;
    color: #087a62;
}

.hotel-commissioning__loading-text {
    color: var(--commissioning-muted);
    font-size: 0.85rem;
}

.hotel-commissioning__workspace--active {
    align-items: stretch;
    border-bottom: 1px solid var(--commissioning-line);
}

.hotel-commissioning__workspace--active .hotel-commissioning__lock-visual {
    min-height: 360px;
}

.hotel-commissioning__active-copy {
    display: block;
}

.hotel-commissioning__countdown {
    display: grid;
    place-content: center;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: radial-gradient(circle at center, #ffffff 62%, transparent 64%), conic-gradient(var(--commissioning-accent) calc(var(--commissioning-progress) * 1%), #dce3e9 0);
    text-align: center;
}

.hotel-commissioning__countdown span,
.hotel-commissioning__countdown small {
    display: block;
}

.hotel-commissioning__countdown span {
    color: var(--commissioning-ink);
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
}

.hotel-commissioning__countdown small {
    margin-top: 0.25rem;
    color: var(--commissioning-muted);
    font-size: 0.7rem;
}

.hotel-commissioning__status {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
}

.hotel-commissioning__status-icon {
    background: #e9f3ff;
    color: #1769aa;
}

.hotel-commissioning__status--success .hotel-commissioning__status-icon,
.hotel-commissioning__success-summary > span,
.hotel-commissioning__completion-heading > span {
    background: #dff6ee;
    color: #087a62;
}

.hotel-commissioning__status--attention .hotel-commissioning__status-icon {
    background: #fff1d9;
    color: #a75808;
}

.hotel-commissioning__progress-note {
    margin-top: 0.75rem !important;
    color: var(--commissioning-accent) !important;
    font-size: 0.75rem !important;
    font-weight: 750;
}

.hotel-commissioning__timeline {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 1.4rem 1.5rem;
    list-style: none;
}

.hotel-commissioning__timeline--global {
    margin: 0;
    border: 1px solid var(--commissioning-line);
    border-radius: 8px;
    background: #ffffff;
}

.hotel-commissioning__timeline li {
    position: relative;
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: 0.45rem;
    color: #7a8795;
    text-align: center;
}

.hotel-commissioning__timeline li::before {
    position: absolute;
    z-index: 0;
    top: 0.85rem;
    left: -50%;
    width: 100%;
    height: 2px;
    background: #dce3e9;
    content: '';
}

.hotel-commissioning__timeline li:first-child::before {
    display: none;
}

.hotel-commissioning__timeline li > span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 2px solid #c6cfd8;
    border-radius: 50%;
    background: #ffffff;
}

.hotel-commissioning__timeline svg {
    width: 0.9rem;
    height: 0.9rem;
}

.hotel-commissioning__timeline small {
    font-size: 0.72rem;
    line-height: 1.3;
}

.hotel-commissioning__timeline li.is-complete,
.hotel-commissioning__timeline li.is-current {
    color: var(--commissioning-accent);
    font-weight: 700;
}

.hotel-commissioning__timeline li.is-complete::before,
.hotel-commissioning__timeline li.is-current::before {
    background: var(--commissioning-accent);
}

.hotel-commissioning__timeline li.is-complete > span,
.hotel-commissioning__timeline li.is-current > span {
    border-color: var(--commissioning-accent);
    background: var(--commissioning-accent);
    color: #ffffff;
}

.hotel-commissioning__security-prompt,
.hotel-commissioning__cancel-confirmation,
.hotel-commissioning__cancel-pending {
    display: grid;
    min-width: 0;
    gap: 1rem;
    margin: 0 1.5rem 1.5rem;
    padding: 1.25rem;
    border: 1px solid #e5bd78;
    border-radius: 6px;
    background: #fff9ed;
}

.hotel-commissioning__security-prompt {
    grid-template-columns: 3.5rem minmax(0, 1fr);
}

.hotel-commissioning__prompt-icon {
    background: #fff0cf;
    color: #9c550d;
}

.hotel-commissioning__security-prompt label,
.hotel-commissioning__security-prompt small {
    display: block;
}

.hotel-commissioning__security-prompt label {
    margin-top: 1rem;
}

.hotel-commissioning__security-prompt small {
    margin-top: 0.45rem;
    color: #6f5a37;
    font-size: 0.75rem;
}

.hotel-commissioning__dsk {
    display: block;
    width: min(100%, 18rem);
    min-height: 3.75rem;
    margin-top: 0.4rem;
    padding: 0 1rem;
    border: 1px solid #9aa6b4;
    border-radius: 6px;
    background: #ffffff;
    color: var(--commissioning-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.65rem;
    text-align: center;
}

.hotel-commissioning__dsk:focus {
    border-color: var(--commissioning-accent);
    outline: 3px solid color-mix(in srgb, var(--commissioning-accent) 24%, transparent);
}

.hotel-commissioning__prompt-expired,
.hotel-commissioning__inline-error {
    color: #a12b22 !important;
    font-weight: 650;
}

.hotel-commissioning__cancel-confirmation {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-color: #e2a49e;
    background: #fff4f2;
}

.hotel-commissioning__cancel-pending {
    grid-template-columns: 1.25rem minmax(0, 1fr);
    align-items: center;
    color: #79500e;
    font-size: 0.875rem;
    font-weight: 700;
}

.hotel-commissioning__cancel-pending svg,
.hotel-commissioning__spinner svg {
    width: 1.25rem;
    height: 1.25rem;
    animation: commissioning-spin 1s linear infinite;
}

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

.hotel-commissioning__cancel-link {
    margin: 0 auto 1.5rem;
    color: #a12b22;
}

.hotel-commissioning__completion-heading {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--commissioning-line);
}

.hotel-commissioning__completion-heading > span,
.hotel-commissioning__success-summary > span,
.hotel-commissioning__recovery > span {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
}

.hotel-commissioning__completion-heading svg,
.hotel-commissioning__success-summary svg,
.hotel-commissioning__recovery svg {
    width: 1.8rem;
    height: 1.8rem;
}

.hotel-commissioning__device-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--commissioning-line);
    background: #f8fafb;
}

.hotel-commissioning__device-summary > div {
    min-width: 0;
    padding: 0 1rem;
    border-right: 1px solid var(--commissioning-line);
}

.hotel-commissioning__device-summary > div:first-child { padding-left: 0; }
.hotel-commissioning__device-summary > div:last-child { padding-right: 0; border-right: 0; }

.hotel-commissioning__device-summary dt {
    color: var(--commissioning-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hotel-commissioning__device-summary dd {
    margin: 0.3rem 0 0;
    overflow-wrap: anywhere;
    color: var(--commissioning-ink);
    font-size: 0.875rem;
    font-weight: 700;
}

.hotel-commissioning__completion-form {
    display: grid;
    gap: 1.25rem;
    padding: 1.5rem;
}

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

.hotel-commissioning__textarea {
    width: 100%;
    min-height: 6rem;
    resize: vertical;
    border: 1px solid var(--commissioning-line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--commissioning-ink);
    padding: 0.7rem 0.8rem;
}

.hotel-commissioning__textarea:focus {
    border-color: var(--commissioning-accent);
    outline: 2px solid color-mix(in srgb, var(--commissioning-accent) 18%, transparent);
}

.hotel-commissioning__field {
    display: grid;
    min-width: 0;
    gap: 0.45rem;
}

.hotel-commissioning__classification > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.55rem;
}

.hotel-commissioning__classification label {
    display: grid;
    min-width: 0;
    min-height: 88px;
    place-items: center;
    gap: 0.4rem;
    padding: 0.75rem;
    border: 1px solid var(--commissioning-line);
    border-radius: 6px;
    color: var(--commissioning-muted);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 650;
    text-align: center;
}

.hotel-commissioning__classification label.is-selected {
    border-color: var(--commissioning-accent);
    background: var(--commissioning-accent-soft);
    color: var(--commissioning-accent);
}

.hotel-commissioning__classification input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.hotel-commissioning__classification svg {
    width: 1.5rem;
    height: 1.5rem;
}

.hotel-commissioning__field-error {
    color: #b42318;
    font-size: 0.8rem;
}

.hotel-commissioning__success-summary,
.hotel-commissioning__recovery {
    display: grid;
    justify-items: center;
    min-height: 340px;
    align-content: center;
    padding: 2rem;
    text-align: center;
}

.hotel-commissioning__success-summary > span {
    margin-bottom: 1rem;
}

.hotel-commissioning__success-summary .hotel-commissioning__actions,
.hotel-commissioning__recovery .hotel-commissioning__actions {
    justify-content: center;
    margin-top: 1.25rem;
}

.hotel-commissioning__recovery > span {
    margin-bottom: 1rem;
    background: #fde8e6;
    color: #b42318;
}

.dark .hotel-commissioning {
    --commissioning-accent: var(--hotel-brand-primary, #f59e0b);
    --commissioning-accent-soft: color-mix(in srgb, var(--commissioning-accent) 14%, #171a1f);
    --commissioning-line: #3b4450;
    --commissioning-ink: #f4f7fa;
    --commissioning-muted: #bdc5cf;
}

.dark .hotel-commissioning__intro,
.dark .hotel-commissioning__panel,
.dark .hotel-commissioning__operation,
.dark .hotel-commissioning__controller-card,
.dark .hotel-commissioning__history-option,
.dark .hotel-commissioning__timeline li > span,
.dark .hotel-commissioning__dsk {
    background: #20252c;
}

.dark .hotel-commissioning__textarea {
    background: #20252c;
}

.dark .hotel-commissioning__intro-copy,
.dark .hotel-commissioning__device-summary {
    background: #252b33;
}

.dark .hotel-commissioning__lock-visual {
    background: linear-gradient(150deg, #20302e 0%, #252b33 65%);
}

.dark .hotel-commissioning__lock-visual img {
    mix-blend-mode: normal;
    border-radius: 6px;
}

.dark .hotel-commissioning__checklist li,
.dark .hotel-commissioning__history-option {
    color: #dce2e9;
}

.dark .hotel-commissioning__countdown {
    background: radial-gradient(circle at center, #20252c 62%, transparent 64%), conic-gradient(var(--commissioning-accent) calc(var(--commissioning-progress) * 1%), #414b57 0);
}

.dark .hotel-commissioning__prerequisite,
.dark .hotel-commissioning__security-prompt,
.dark .hotel-commissioning__cancel-pending {
    background: #302b21;
}

.dark .hotel-commissioning__cancel-confirmation {
    background: #352422;
}

@media (max-width: 820px) {
    .hotel-commissioning__operation-grid {
        grid-template-columns: 1fr;
    }

    .hotel-commissioning__workspace {
        grid-template-columns: 1fr;
    }

    .hotel-commissioning__lock-visual {
        min-height: 250px;
        border-right: 0;
        border-bottom: 1px solid var(--commissioning-line);
    }

    .hotel-commissioning__lock-visual img {
        width: min(65%, 220px);
    }

    .hotel-commissioning__radio-ring {
        width: 220px;
        height: 220px;
    }

    .hotel-commissioning__workspace--active .hotel-commissioning__lock-visual {
        min-height: 245px;
    }

    .hotel-commissioning__device-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 0;
    }

    .hotel-commissioning__device-summary > div:nth-child(2) { border-right: 0; }
    .hotel-commissioning__device-summary > div:nth-child(3) { padding-left: 0; }

    .hotel-commissioning__classification > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hotel-commissioning__placement-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hotel-commissioning__operation-grid,
    .hotel-commissioning__controller-grid,
    .hotel-commissioning__history {
        grid-template-columns: 1fr;
    }

    .hotel-commissioning__operation {
        min-height: 126px;
        padding: 1.25rem;
    }

    .hotel-commissioning__controller-grid {
        padding-inline: 1rem;
    }

    .hotel-commissioning__back {
        margin-left: 1rem;
    }

    .hotel-commissioning__panel > .hotel-commissioning__panel-heading {
        padding-inline: 1rem;
    }

    .hotel-commissioning__prerequisite {
        grid-template-columns: 2.5rem minmax(0, 1fr);
        margin-inline: 1rem;
    }

    .hotel-commissioning__prerequisite .fi-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .hotel-commissioning__active-copy {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 1.25rem 1rem;
    }

    .hotel-commissioning__status {
        grid-template-columns: 2.75rem minmax(0, 1fr);
        width: 100%;
    }

    .hotel-commissioning__status-icon {
        width: 2.75rem;
        height: 2.75rem;
    }

    .hotel-commissioning__timeline {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        padding-inline: 1rem;
    }

    .hotel-commissioning__timeline li {
        grid-template-columns: 1.75rem minmax(0, 1fr);
        align-items: center;
        justify-items: start;
        text-align: left;
    }

    .hotel-commissioning__timeline li::before {
        top: -0.6rem;
        left: 0.85rem;
        width: 2px;
        height: 0.6rem;
    }

    .hotel-commissioning__security-prompt,
    .hotel-commissioning__cancel-confirmation {
        grid-template-columns: 1fr;
        margin-inline: 1rem;
    }

    .hotel-commissioning__cancel-confirmation .hotel-commissioning__actions,
    .hotel-commissioning__security-prompt .hotel-commissioning__actions,
    .hotel-commissioning__completion-form > .hotel-commissioning__actions {
        display: grid;
        width: 100%;
    }

    .hotel-commissioning__cancel-confirmation .fi-btn,
    .hotel-commissioning__security-prompt .fi-btn,
    .hotel-commissioning__completion-form > .hotel-commissioning__actions .fi-btn {
        width: 100%;
    }

    .hotel-commissioning__completion-heading {
        grid-template-columns: 2.75rem minmax(0, 1fr);
        padding-inline: 1rem;
    }

    .hotel-commissioning__completion-heading > span {
        width: 2.75rem;
        height: 2.75rem;
    }

    .hotel-commissioning__device-summary,
    .hotel-commissioning__classification > div {
        grid-template-columns: 1fr;
    }

    .hotel-commissioning__device-summary > div {
        padding: 0 0 0.75rem !important;
        border-right: 0;
        border-bottom: 1px solid var(--commissioning-line);
    }

    .hotel-commissioning__device-summary > div:last-child {
        padding-bottom: 0 !important;
        border-bottom: 0;
    }

    .hotel-commissioning__completion-form {
        padding-inline: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hotel-commissioning__radio-ring,
    .hotel-commissioning__cancel-pending svg,
    .hotel-commissioning__spinner svg {
        animation: none !important;
    }
}

.fi-section:not(.fi-section-not-contained):not(.fi-aside) > .fi-section-header,
.fi-ta-header:has(.fi-ta-header-heading) {
    background: var(--hotel-tile-header-bg);
    border-bottom: 1px solid var(--hotel-tile-header-border);
}

/* Inline-edit tables place instructional text and actions in their header.
 * Keep that utilitarian surface neutral so raw tenant brand text and buttons
 * remain legible instead of being overlaid on the same raw colour. */
.fi-ta-header:has(.fi-ta-header-description) {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.fi-ta-header:has(.fi-ta-header-description) .fi-ta-header-description {
    color: #475569;
}

.dark .fi-ta-header:has(.fi-ta-header-description) {
    background: #20252c;
    border-bottom-color: #3b4450;
}

.dark .fi-ta-header:has(.fi-ta-header-description) .fi-ta-header-description {
    color: #bdc5cf;
}

.fi-section:not(.fi-section-not-contained):not(.fi-aside) > .fi-section-header {
    border-radius: 8px 8px 0 0;
}

.fi-section.fi-section-has-header:not(.fi-collapsed) > .fi-section-content-ctn {
    border-top: 0;
}

.fi-wi-stats-overview-stat {
    overflow: hidden;
    padding: 0;
    border-radius: 8px;
}

.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-content {
    gap: 0;
}

.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-label-ctn {
    min-height: 3rem;
    padding: 0.75rem 1.1rem;
    background: var(--hotel-tile-header-bg);
    border-bottom: 1px solid var(--hotel-tile-header-border);
}

.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-label {
    color: var(--hotel-tile-header-text);
    font-weight: 650;
}

.dark .fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-label {
    color: var(--hotel-tile-header-text);
}

.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-value {
    padding: 1rem 1.1rem 0.25rem;
}

.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-value:last-child {
    padding-bottom: 1rem;
}

.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-description {
    padding: 0 1.1rem 1rem;
}

.fi-wi-stats-overview-stat.lock-battery-health--good .fi-wi-stats-overview-stat-value {
    color: #15803d;
}

.dark .fi-wi-stats-overview-stat.lock-battery-health--good .fi-wi-stats-overview-stat-value {
    color: #4ade80;
}

.fi-wi-stats-overview-stat.lock-battery-health--low .fi-wi-stats-overview-stat-value {
    color: #b91c1c;
}

.dark .fi-wi-stats-overview-stat.lock-battery-health--low .fi-wi-stats-overview-stat-value {
    color: #f87171;
}

.dashboard-stat-link {
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.dashboard-stat-link:hover {
    transform: translateY(-1px);
}

.dashboard-stat-card {
    --dashboard-stat-bg: #087bb0;
    min-height: 15rem;
    background: var(--dashboard-stat-bg);
    color: #ffffff;
}

.dashboard-stat--blue {
    --dashboard-stat-bg: #087bb0;
}

.dashboard-stat--cyan {
    --dashboard-stat-bg: #087f8c;
}

.dashboard-stat--teal {
    --dashboard-stat-bg: #087b75;
}

.dashboard-stat--green {
    --dashboard-stat-bg: #3f7f0d;
}

.dashboard-stat--amber {
    --dashboard-stat-bg: #a86205;
}

.dashboard-stat--orange {
    --dashboard-stat-bg: #bd560f;
}

.dashboard-stat--indigo {
    --dashboard-stat-bg: #4d5da7;
}

.dashboard-stat--plum {
    --dashboard-stat-bg: #7b3f82;
}

.dashboard-stat--red {
    --dashboard-stat-bg: #a92d2d;
}

.fi-wi-stats-overview-stat.dashboard-stat-card .fi-wi-stats-overview-stat-content {
    display: grid;
    min-height: 15rem;
    grid-template-rows: 4.5rem auto auto minmax(1.5rem, auto);
    align-content: center;
    justify-items: center;
    gap: 0.2rem;
    padding: 1.35rem 1rem;
}

.fi-wi-stats-overview-stat.dashboard-stat-card .fi-wi-stats-overview-stat-label-ctn {
    display: contents;
}

.fi-wi-stats-overview-stat.dashboard-stat-card .fi-wi-stats-overview-stat-label-ctn .fi-icon {
    grid-row: 1;
    align-self: start;
    width: 4rem;
    height: 4rem;
    color: rgba(255, 255, 255, 0.88) !important;
    stroke-width: 1.55;
}

.fi-wi-stats-overview-stat.dashboard-stat-card .fi-wi-stats-overview-stat-value {
    grid-row: 2;
    max-width: 100%;
    padding: 0.45rem 0 0.1rem;
    color: #ffffff !important;
    font-size: 1.7rem;
    font-weight: 760;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-align: center;
}

.fi-wi-stats-overview-stat.dashboard-stat-card .fi-wi-stats-overview-stat-label {
    grid-row: 3;
    max-width: 100%;
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
}

.fi-wi-stats-overview-stat.dashboard-stat-card .fi-wi-stats-overview-stat-description {
    grid-row: 4;
    justify-content: center;
    max-width: 100%;
    padding: 0.25rem 0 0;
    color: rgba(255, 255, 255, 0.84) !important;
    font-size: 0.75rem;
    line-height: 1.3;
    text-align: center;
}

.fi-wi-stats-overview-stat.dashboard-stat-card:hover {
    filter: brightness(1.04);
}

.dark .fi-wi-stats-overview-stat.dashboard-stat-card {
    background: var(--dashboard-stat-bg);
    color: #ffffff;
}

.platform-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.platform-summary-card {
    --platform-summary-bg: #087bb0;
    display: flex;
    min-width: 0;
    min-height: 15rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.25rem 1rem;
    overflow: hidden;
    border-radius: 0.5rem;
    background: var(--platform-summary-bg);
    color: #ffffff;
    text-align: center;
    transition: filter 150ms ease, transform 150ms ease;
}

a.platform-summary-card,
.platform-summary-card__link {
    cursor: pointer;
    text-decoration: none;
}

.platform-summary-card:hover,
.platform-summary-card:focus-within {
    filter: brightness(1.04);
}

a.platform-summary-card:hover,
.platform-summary-card__link:hover {
    transform: translateY(-1px);
}

.platform-summary-card--blue {
    --platform-summary-bg: #087bb0;
}

.platform-summary-card--green {
    --platform-summary-bg: #3f7f0d;
}

.platform-summary-card--plum {
    --platform-summary-bg: #7b3f82;
}

.platform-summary-card--red {
    --platform-summary-bg: #a92d2d;
}

.platform-summary-card__link {
    display: flex;
    width: 100%;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: inherit;
    transition: transform 150ms ease;
}

.platform-summary-card__icon {
    width: 4rem;
    height: 4rem;
    flex: 0 0 4rem;
    color: rgba(255, 255, 255, 0.88);
    stroke-width: 1.55;
}

.platform-summary-card__value {
    max-width: 100%;
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 760;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.platform-summary-card__label {
    max-width: 100%;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.25;
    text-transform: uppercase;
}

.platform-summary-card__periods {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 0.2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.45rem;
    background: rgba(0, 0, 0, 0.12);
}

.platform-summary-card__periods button {
    padding: 0.35rem 0.55rem;
    border-radius: 0.3rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
}

.platform-summary-card__periods button:hover,
.platform-summary-card__periods button:focus-visible,
.platform-summary-card__periods button.is-active {
    background: #ffffff;
    color: #4f2554;
}

@media (max-width: 1279px) {
    .platform-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.managed-hotels-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 7.5rem;
    gap: 0.875rem;
    max-height: calc((7.5rem * 3) + (0.875rem * 2));
    overflow-y: auto;
    padding: 1px 0.35rem 1px 1px;
    scrollbar-gutter: stable;
}

.managed-hotel-tile {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem 2.25rem 1rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.09);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.managed-hotel-tile:hover,
.managed-hotel-tile:focus-visible {
    border-color: #d97706;
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.09);
    transform: translateY(-1px);
}

.managed-hotel-tile:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

.managed-hotel-tile__logo {
    display: block;
    width: auto;
    max-width: 90%;
    height: auto;
    max-height: 4.25rem;
    object-fit: contain;
}

.managed-hotel-tile__wordmark {
    max-width: 100%;
    overflow-wrap: anywhere;
    color: inherit;
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: 0;
    text-align: center;
}

.managed-hotel-tile__arrow {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    width: 1.1rem;
    height: 1.1rem;
    color: #9ca3af;
    transition: color 150ms ease, transform 150ms ease;
}

.managed-hotel-tile:hover .managed-hotel-tile__arrow,
.managed-hotel-tile:focus-visible .managed-hotel-tile__arrow {
    color: #d97706;
    transform: translateX(2px);
}

.managed-hotels-grid__empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-align: center;
}

.dark .managed-hotel-tile {
    border-color: #4b5563;
    background: #171a1f;
    color: #f9fafb;
}

.dark .managed-hotels-grid__empty {
    color: #9ca3af;
}

@media (max-width: 1024px) {
    .managed-hotels-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .managed-hotels-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .managed-hotels-grid {
        grid-template-columns: 1fr;
    }
}

.guest-origin-map__canvas {
    width: 100%;
    height: clamp(20rem, 42vw, 32rem);
    border: 1px solid var(--hotel-tile-header-border);
    border-radius: 6px;
    background: #dce7eb;
}

.guest-origin-map__empty,
.recent-activity__empty {
    padding: 2rem 1rem;
    color: #6b7280;
    text-align: center;
}

.recent-activity {
    display: grid;
}

.recent-activity__item {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--hotel-tile-header-border);
    color: inherit;
    text-decoration: none;
}

.recent-activity__item:last-child {
    border-bottom: 0;
}

a.recent-activity__item {
    cursor: pointer;
}

a.recent-activity__item:hover .recent-activity__title {
    color: #b45309;
}

.recent-activity__icon {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 6px;
    background: var(--hotel-tile-header-bg);
    color: #b45309;
}

.recent-activity__icon svg,
.recent-activity__chevron {
    width: 1.1rem;
    height: 1.1rem;
}

.recent-activity__content {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
}

.recent-activity__title {
    overflow: hidden;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .recent-activity__title {
    color: #f3f4f6;
}

.recent-activity__meta {
    color: #6b7280;
    font-size: 0.78rem;
}

.dark .recent-activity__meta {
    color: #9ca3af;
}

.recent-activity__chevron {
    color: #9ca3af;
}

@media (max-width: 640px) {
    .guest-origin-map__canvas {
        height: 22rem;
    }

    .recent-activity__title {
        white-space: normal;
    }
}

[x-cloak] {
    display: none !important;
}

.page-help {
    display: grid;
    gap: 1.25rem;
}

.page-help__tabs {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--hotel-tile-header-border);
}

.page-help__tab {
    flex: 0 0 auto;
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    color: #4b5563;
    font-size: 0.8rem;
    font-weight: 650;
    cursor: pointer;
}

.page-help__tab:hover,
.page-help__tab--active {
    background: var(--hotel-tile-header-bg);
    color: #b45309;
}

.dark .page-help__tab {
    color: #d1d5db;
}

.dark .page-help__tab:hover,
.dark .page-help__tab--active {
    color: #fbbf24;
}

.page-help__content {
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.65;
}

.dark .page-help__content {
    color: #d1d5db;
}

.page-help__content h3 {
    margin: 0 0 0.75rem;
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
}

.dark .page-help__content h3 {
    color: #f9fafb;
}

.page-help__content ul,
.page-help__content ol {
    margin: 0;
    padding-left: 1.25rem;
}

.lock-controls__panel-header,
.subscription-page__panel-header,
.team-page__header {
    background: var(--hotel-tile-header-bg);
    border-bottom-color: var(--hotel-tile-header-border) !important;
}

.ai-card-header {
    margin: -1.25rem -1.25rem 1rem !important;
    padding: 0.85rem 1.25rem;
    background: var(--hotel-tile-header-bg);
    border-bottom: 1px solid var(--hotel-tile-header-border);
    border-radius: 8px 8px 0 0;
}

/* Keep the inventory record title readable when its lifecycle toolbar is long. */
.fi-resource-controller-inventory-items:is(.fi-resource-edit-record-page, .fi-resource-view-record-page) .fi-header {
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 1rem;
}

.fi-resource-controller-inventory-items:is(.fi-resource-edit-record-page, .fi-resource-view-record-page) .fi-header > :first-child,
.fi-resource-controller-inventory-items:is(.fi-resource-edit-record-page, .fi-resource-view-record-page) .fi-header-actions-ctn {
    width: 100%;
    min-width: 0;
}

.fi-resource-controller-inventory-items:is(.fi-resource-edit-record-page, .fi-resource-view-record-page) .fi-header > :first-child {
    flex: 1 1 100%;
}

.fi-resource-controller-inventory-items:is(.fi-resource-edit-record-page, .fi-resource-view-record-page) .fi-header-actions-ctn {
    flex: 1 1 100%;
    max-width: 100%;
}

.fi-resource-controller-inventory-items:is(.fi-resource-edit-record-page, .fi-resource-view-record-page) .fi-header-actions-ctn > .fi-ac {
    max-width: 100%;
    flex-wrap: wrap;
}

.topbar-workspace-switcher {
    margin-right: 0.35rem;
}

.topbar-workspace-switcher .fi-btn {
    max-width: min(18rem, 28vw);
}

.topbar-workspace-switcher__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .topbar-workspace-switcher {
        margin-right: 0.15rem;
    }

    .topbar-workspace-switcher .fi-btn {
        width: 2.25rem;
        min-width: 2.25rem;
        padding-inline: 0;
    }

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

.online-checkin-instructions {
    display: grid;
    gap: 1.5rem;
    color: #4b5563;
    font-size: 0.925rem;
    line-height: 1.65;
}

.dark .online-checkin-instructions {
    color: #d1d5db;
}

.online-checkin-instructions__intro {
    max-width: 80rem;
    margin: 0;
    color: #1f2937;
    font-size: 1rem;
}

.dark .online-checkin-instructions__intro {
    color: #f3f4f6;
}

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

.online-checkin-instructions section {
    min-width: 0;
}

.online-checkin-instructions h3 {
    margin: 0 0 0.65rem;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 700;
}

.dark .online-checkin-instructions h3 {
    color: #ffffff;
}

.online-checkin-instructions p,
.online-checkin-instructions ol,
.online-checkin-instructions ul {
    margin: 0;
}

.online-checkin-instructions ol,
.online-checkin-instructions ul {
    padding-left: 1.25rem;
}

.online-checkin-instructions li + li {
    margin-top: 0.3rem;
}

.online-checkin-instructions section > p + p,
.online-checkin-instructions section > ol + p,
.online-checkin-instructions section > ul + p,
.online-checkin-instructions section > pre + p {
    margin-top: 0.75rem;
}

.online-checkin-instructions code {
    color: #111827;
    font-size: 0.875em;
}

.dark .online-checkin-instructions code {
    color: #f9fafb;
}

.online-checkin-instructions pre {
    max-width: 100%;
    margin: 0.75rem 0 0;
    overflow-x: auto;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f7f8fa;
    color: #111827;
    font-size: 0.8rem;
    line-height: 1.55;
}

.online-checkin-instructions pre code {
    color: inherit;
}

.dark .online-checkin-instructions pre {
    border-color: rgba(255, 255, 255, 0.12);
    background: #15181d;
    color: #f9fafb;
}

.online-checkin-instructions blockquote {
    margin: 0.75rem 0 0;
    padding: 0.85rem 1rem;
    border-left: 3px solid #f59e0b;
    background: #f7f8fa;
    color: #374151;
}

.dark .online-checkin-instructions blockquote {
    background: #181b20;
    color: #e5e7eb;
}

.online-checkin-instructions__request,
.online-checkin-instructions__checklist {
    padding: 1.25rem 0;
    border-top: 1px solid var(--hotel-tile-header-border);
    border-bottom: 1px solid var(--hotel-tile-header-border);
}

.online-checkin-instructions__errors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1.5rem;
    margin-bottom: 0.75rem;
}

.online-checkin-instructions__errors p {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.5rem;
}

@media (max-width: 800px) {
    .online-checkin-instructions__grid,
    .online-checkin-instructions__errors {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.hotel-auth-layout {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr);
    background: #191c21;
}

.hotel-auth-hero {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #20252d;
}

.hotel-auth-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hotel-auth-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 12, 18, 0.46);
}

.hotel-auth-panel {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 5rem);
    background: #24272e;
}

.hotel-auth-panel__content {
    width: min(100%, 28rem);
}

.hotel-auth-panel .fi-simple-page-content {
    gap: 1.5rem;
}

.hotel-auth-panel .fi-simple-header {
    align-items: flex-start !important;
    text-align: left !important;
}

.hotel-auth-panel .fi-simple-header-heading {
    width: 100%;
    max-width: 19ch;
    font-size: clamp(1.7rem, 2.5vw, 2.15rem);
    line-height: 1.18;
    letter-spacing: 0;
    text-align: left !important;
}

.hotel-auth-panel .fi-simple-header-subheading {
    width: 100%;
    font-size: 1rem;
    text-align: left !important;
}

.hotel-auth-panel .fi-logo {
    justify-content: flex-start;
}

.hotel-auth-panel .fi-form {
    gap: 1.15rem;
}

.hotel-auth-panel .fi-btn {
    min-height: 2.75rem;
}

@media (max-width: 900px) {
    .hotel-auth-layout {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(220px, 36dvh) 1fr;
    }

    .hotel-auth-panel {
        align-items: flex-start;
        padding: 2.5rem clamp(1.25rem, 7vw, 3rem) 3rem;
    }

    .hotel-auth-panel__content {
        width: min(100%, 34rem);
    }
}

@media (max-width: 520px) {
    .hotel-auth-layout {
        grid-template-rows: minmax(180px, 28dvh) 1fr;
    }

    .hotel-auth-panel {
        padding-top: 2rem;
    }

    .hotel-auth-panel .fi-simple-header-heading {
        font-size: 1.6rem;
    }
}

.notification-rules-mobile {
    display: none;
}

.notification-rules-desktop {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.notification-rule-mobile__channels,
.notification-rule-mobile__timing {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.notification-recipient-row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem 1.5rem;
}

.notification-recipient-row > * {
    min-width: 0;
}

.notification-recipient-row__identity,
.notification-recipient-row__delivery {
    grid-column: span 3 / span 3;
}

.notification-recipient-row__category {
    grid-column: span 2 / span 2;
}

.notification-recipient-row__quiet-hours {
    grid-column: span 4 / span 4;
}

.notification-recipient-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.notification-recipient-form-grid > * {
    min-width: 0;
}

@media (max-width: 1279px) {
    .notification-recipient-row__identity,
    .notification-recipient-row__category,
    .notification-recipient-row__delivery {
        grid-column: span 4 / span 4;
    }

    .notification-recipient-row__quiet-hours {
        grid-column: 1 / -1;
    }

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

@media (max-width: 767px) {
    .notification-rules-mobile {
        display: block;
    }

    .notification-rules-desktop {
        display: none;
    }

    .notification-recipient-row,
    .notification-recipient-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .notification-recipient-row__identity,
    .notification-recipient-row__category,
    .notification-recipient-row__delivery,
    .notification-recipient-row__quiet-hours {
        grid-column: 1 / -1;
    }
}

.alert-bell {
    position: relative;
}

.alert-bell__trigger {
    position: relative;
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.alert-bell__trigger:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.alert-bell__trigger:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

.alert-bell__icon {
    width: 1.5rem;
    height: 1.5rem;
}

.alert-bell__icon--critical {
    color: #dc2626;
}

.alert-bell__badge {
    position: absolute;
    top: -0.2rem;
    right: -0.25rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #d97706;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1rem;
    text-align: center;
}

.alert-bell__badge--critical {
    background: #dc2626;
}

.alert-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(17, 24, 39, 0.52);
    backdrop-filter: blur(2px);
}

.alert-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: min(100%, 29rem);
    min-height: 0;
    flex-direction: column;
    background: #ffffff;
    box-shadow: -18px 0 45px rgba(15, 23, 42, 0.22);
}

.alert-drawer-fade {
    transition: opacity 180ms ease;
}

.alert-drawer-fade--start {
    opacity: 0;
}

.alert-drawer-fade--end {
    opacity: 1;
}

.alert-drawer-slide {
    transition: transform 200ms ease;
}

.alert-drawer-slide--start {
    transform: translateX(100%);
}

.alert-drawer-slide--end {
    transform: translateX(0);
}

.alert-drawer-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: var(--hotel-tile-header-bg);
}

.alert-drawer-header__title {
    margin: 0;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.alert-drawer-header__count {
    margin: 0.15rem 0 0;
    color: #6b7280;
    font-size: 0.8rem;
}

.alert-drawer-list {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.alert-drawer-item {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eef0f3;
    border-left: 3px solid #60a5fa;
    background: #ffffff;
}

.alert-drawer-item--warning {
    border-left-color: #f59e0b;
}

.alert-drawer-item--critical {
    border-left-color: #dc2626;
}

.alert-drawer-item__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    margin-top: 0.1rem;
    color: #2563eb;
}

.alert-drawer-item--warning .alert-drawer-item__icon {
    color: #d97706;
}

.alert-drawer-item--critical .alert-drawer-item__icon {
    color: #dc2626;
}

.alert-drawer-item__content {
    min-width: 0;
    flex: 1 1 auto;
}

.alert-drawer-item__hotel {
    margin: 0 0 0.2rem;
    overflow: hidden;
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 700;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.alert-drawer-item__title {
    margin: 0;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
}

.alert-drawer-item__message {
    margin: 0.3rem 0 0;
    color: #4b5563;
    font-size: 0.82rem;
    line-height: 1.45;
}

.alert-drawer-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.45rem;
    margin-top: 0.45rem;
    color: #6b7280;
    font-size: 0.72rem;
}

.alert-drawer-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.65rem;
}

.alert-drawer-item__link,
.alert-drawer-item__acknowledge {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.alert-drawer-item__link {
    color: #b45309;
}

.alert-drawer-item__acknowledge {
    color: #4b5563;
}

.alert-drawer-item__link:hover,
.alert-drawer-item__acknowledge:hover {
    text-decoration: underline;
}

.alert-drawer-empty {
    display: grid;
    min-height: 16rem;
    padding: 2rem;
    place-items: center;
    align-content: center;
    text-align: center;
}

.alert-drawer-empty__icon {
    width: 2.5rem;
    height: 2.5rem;
    color: #16a34a;
}

.alert-drawer-empty__title {
    margin: 0.75rem 0 0;
    color: #111827;
    font-weight: 700;
}

.alert-drawer-empty__message {
    margin: 0.2rem 0 0;
    color: #6b7280;
    font-size: 0.82rem;
}

.alert-drawer-footer {
    flex: 0 0 auto;
    padding: 0.9rem 1rem;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.dark .alert-bell__trigger {
    color: #9ca3af;
}

.dark .alert-bell__trigger:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f3f4f6;
}

.dark .alert-bell__badge {
    border-color: #111827;
}

.dark .alert-drawer-panel,
.dark .alert-drawer-item,
.dark .alert-drawer-footer {
    background: #111827;
}

.dark .alert-drawer-header,
.dark .alert-drawer-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .alert-drawer-item {
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

.dark .alert-drawer-header__title,
.dark .alert-drawer-item__title,
.dark .alert-drawer-empty__title {
    color: #f9fafb;
}

.dark .alert-drawer-header__count,
.dark .alert-drawer-item__hotel,
.dark .alert-drawer-item__meta,
.dark .alert-drawer-empty__message {
    color: #9ca3af;
}

.dark .alert-drawer-item__message,
.dark .alert-drawer-item__acknowledge {
    color: #d1d5db;
}

@media (max-width: 520px) {
    .alert-drawer-panel {
        width: 100%;
    }
}

/* Custom Hotel Workspace onboarding pages deliberately use these stable classes
   instead of utility classes that are not part of the compiled Filament theme. */
.hotel-onboarding,
.hotel-commissioning,
.connect-controller {
    display: grid;
    min-width: 0;
    gap: 1.5rem;
}

.hotel-onboarding__grid,
.connect-controller__grid {
    display: grid;
    min-width: 0;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hotel-onboarding__milestones,
.connect-controller__steps,
.hotel-commissioning__status,
.hotel-commissioning__security-form,
.connect-controller__form {
    display: grid;
    min-width: 0;
    gap: 1rem;
}

.hotel-onboarding__milestone,
.connect-controller__step,
.hotel-commissioning__status-summary {
    display: grid;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
    grid-template-columns: 1.5rem minmax(0, 1fr);
}

.connect-controller__steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.connect-controller__step {
    align-items: flex-start;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.5;
}

.hotel-onboarding__milestone-icon,
.connect-controller__step-icon,
.hotel-commissioning__status-icon,
.connect-controller__progress-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.hotel-onboarding__milestone-icon--complete,
.connect-controller__progress-icon--complete {
    color: #15803d;
}

.hotel-onboarding__milestone-icon--pending,
.connect-controller__progress-icon--waiting {
    color: #a16207;
}

.connect-controller__step-icon,
.hotel-commissioning__status-icon {
    color: #b45309;
}

.hotel-onboarding__fulfilment,
.hotel-commissioning__status-copy,
.hotel-commissioning__field-description,
.connect-controller__status {
    margin: 0;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
}

.hotel-onboarding__fulfilment,
.connect-controller__status {
    margin-top: 1.25rem;
}

.hotel-onboarding__form,
.hotel-commissioning__form {
    display: grid;
    min-width: 0;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hotel-onboarding__field,
.hotel-commissioning__field {
    display: grid;
    min-width: 0;
    gap: 0.375rem;
}

.hotel-onboarding__field--wide,
.hotel-commissioning__field--wide,
.hotel-onboarding__form-actions,
.hotel-commissioning__actions {
    grid-column: 1 / -1;
}

.hotel-onboarding__field-label,
.hotel-commissioning__field-label,
.hotel-commissioning__status-title {
    margin: 0;
    color: #1f2937;
    font-size: 0.875rem;
    font-weight: 650;
    line-height: 1.4;
}

.hotel-onboarding__field .fi-input-wrp,
.hotel-commissioning__field .fi-input-wrp,
.connect-controller__form .fi-input-wrp {
    width: 100%;
}

.hotel-onboarding__field-error,
.hotel-commissioning__field-error,
.connect-controller__error {
    margin-top: 0.25rem;
    color: #b91c1c;
    font-size: 0.875rem;
}

.hotel-commissioning__actions,
.connect-controller__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.connect-controller__progress {
    display: grid;
    min-width: 0;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.connect-controller__progress-step {
    display: grid;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    grid-template-columns: 1.5rem minmax(0, 1fr);
}

.connect-controller__progress-label {
    min-width: 0;
    color: #1f2937;
    font-size: 0.875rem;
    font-weight: 650;
    line-height: 1.35;
}

.connect-controller__status--complete {
    color: #15803d;
    font-weight: 650;
}

.dark .connect-controller__step,
.dark .hotel-onboarding__fulfilment,
.dark .hotel-commissioning__status-copy,
.dark .hotel-commissioning__field-description,
.dark .connect-controller__status {
    color: #d1d5db;
}

.dark .hotel-onboarding__field-label,
.dark .hotel-commissioning__field-label,
.dark .hotel-commissioning__status-title,
.dark .connect-controller__progress-label {
    color: #f9fafb;
}

.dark .connect-controller__progress-step {
    border-color: #374151;
}

.dark .connect-controller__status--complete,
.dark .hotel-onboarding__milestone-icon--complete,
.dark .connect-controller__progress-icon--complete {
    color: #4ade80;
}

@media (max-width: 899px) {
    .hotel-onboarding__grid,
    .connect-controller__grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 639px) {
    .hotel-onboarding__form,
    .hotel-commissioning__form,
    .connect-controller__progress {
        grid-template-columns: 1fr;
    }

    .hotel-onboarding__field--wide,
    .hotel-commissioning__field--wide,
    .hotel-onboarding__form-actions,
    .hotel-commissioning__actions {
        grid-column: auto;
    }
}

/* Approved onboarding and commissioning wizard presentation. Workflow state
   remains Livewire-owned; these rules only shape the responsive experience. */
.hotel-onboarding__grid {
    grid-template-columns: 1fr;
}

.hotel-onboarding__mobile-hero {
    display: none;
}

.hotel-onboarding__milestones {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.5rem;
}

.hotel-onboarding__milestone {
    align-items: start;
    min-height: 4.25rem;
    padding: 0.7rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.72rem;
    line-height: 1.35;
}

.hotel-onboarding__action-layout {
    display: grid;
    min-width: 0;
    gap: 1.25rem;
    grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
}

.hotel-onboarding__action-media {
    display: flex;
    min-height: 13rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}

.hotel-onboarding__action-media img {
    display: block;
    width: 100%;
    max-height: 17rem;
    object-fit: contain;
}

.hotel-onboarding__action-body {
    min-width: 0;
}

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

.hotel-onboarding__waiting-card {
    display: grid;
    min-width: 0;
    grid-template-columns: 3rem minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #d6dde5;
    border-radius: 8px;
    background: #f8fafc;
}

.hotel-onboarding__waiting-card h3 {
    margin: 0;
    color: #17202d;
    font-size: 0.95rem;
    line-height: 1.35;
}

.hotel-onboarding__waiting-card p {
    margin: 0.45rem 0 0;
    color: #5a6675;
    font-size: 0.825rem;
    line-height: 1.5;
}

.hotel-onboarding__waiting-icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 50%;
    background: #e5f7f2;
    color: #087a62;
}

.hotel-onboarding__waiting-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.hotel-onboarding__complete-card {
    display: grid;
    min-width: 0;
    grid-template-columns: 3rem minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #b9e1c4;
    border-radius: 8px;
    background: #effaf2;
}

.hotel-onboarding__complete-card h3 {
    margin: 0;
    color: #166534;
    font-size: 0.95rem;
    line-height: 1.35;
}

.hotel-onboarding__complete-card p {
    margin: 0.45rem 0 0;
    color: #3f6212;
    font-size: 0.825rem;
    line-height: 1.5;
}

.hotel-onboarding__complete-icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 50%;
    background: #dff6ee;
    color: #087a62;
}

.hotel-onboarding__complete-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.online-checkin-integrations {
    display: grid;
    gap: 1.25rem;
}

.online-checkin-integrations__intro {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--hotel-tile-header-border, #d6dde5);
    border-radius: 8px;
    background: var(--hotel-tile-header-bg, #f8fafc);
    color: var(--hotel-tile-header-text, #17202d);
}

.online-checkin-integrations__intro svg {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    color: var(--hotel-brand-primary, #b45309);
}

.online-checkin-integrations__intro p,
.online-checkin-integrations__detail {
    margin: 0;
    color: #526173;
    font-size: 0.875rem;
    line-height: 1.55;
}

.online-checkin-integrations__grid {
    display: grid;
    min-width: 0;
    gap: 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.online-checkin-integration-card {
    min-width: 0;
}

.online-checkin-integration-card--preferred {
    border-top: 3px solid #0f766e;
}

.online-checkin-integration-card--advanced {
    border-top: 3px solid #64748b;
}

.online-checkin-integration-card__status {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.online-checkin-integration-card__status > div {
    display: grid;
    min-width: 0;
    gap: 0.15rem;
}

.online-checkin-integration-card__status strong,
.online-checkin-integration-card__status span,
.online-checkin-integration-card__status small {
    overflow-wrap: anywhere;
}

.online-checkin-integration-card__status strong {
    color: #17202d;
    font-size: 0.95rem;
}

.online-checkin-integration-card__status span,
.online-checkin-integration-card__status small {
    color: #64748b;
    font-size: 0.8rem;
}

.online-checkin-integration-card__status small {
    color: #087a62;
    font-weight: 650;
}

.online-checkin-integration-card__icon {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #e5f7f2;
    color: #087a62;
}

.online-checkin-integration-card__icon svg {
    width: 1.3rem;
    height: 1.3rem;
}

.online-checkin-integration-card__empty {
    display: flex;
    min-height: 6rem;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
}

.online-checkin-integration-card__empty svg {
    width: 1.3rem;
    height: 1.3rem;
    flex: 0 0 auto;
}

.online-checkin-integration-card__empty p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.online-checkin-integration-card .online-checkin-integrations__detail {
    min-height: 4.2rem;
    margin-bottom: 1rem;
}

.online-checkin-integrations__hosted-row {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.online-checkin-integrations__hosted-status {
    color: #087a62;
    font-size: 0.9rem;
    font-weight: 650;
}

.dark .online-checkin-integrations__intro,
.dark .online-checkin-integrations__intro p,
.dark .online-checkin-integrations__detail,
.dark .online-checkin-integration-card__status span,
.dark .online-checkin-integration-card__status small,
.dark .online-checkin-integration-card__empty {
    color: #bdc5cf;
}

.dark .online-checkin-integration-card__status strong {
    color: #f4f7fa;
}

@media (max-width: 1023px) {
    .online-checkin-integrations__grid {
        grid-template-columns: 1fr;
    }

    .online-checkin-integration-card .online-checkin-integrations__detail {
        min-height: 0;
    }
}

@media (max-width: 639px) {
    .online-checkin-integrations__hosted-row {
        align-items: stretch;
        flex-direction: column;
    }
}

.hotel-onboarding__loading {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #5a6675;
    font-size: 0.825rem;
}

.hotel-onboarding__loading svg {
    width: 1rem;
    height: 1rem;
    animation: hotel-onboarding-spin 1s linear infinite;
}

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

.dark .hotel-commissioning__timeline--global,
.dark .hotel-onboarding__milestone,
.dark .hotel-onboarding__action-media,
.dark .hotel-onboarding__waiting-card {
    border-color: #3b4450;
    background: #20252c;
}

.dark .hotel-onboarding__waiting-card h3,
.dark .hotel-onboarding__waiting-card p {
    color: #f4f7fa;
}

.dark .hotel-onboarding__complete-card {
    border-color: #3b6a4b;
    background: #20352a;
}

.dark .hotel-onboarding__complete-card h3,
.dark .hotel-onboarding__complete-card p {
    color: #d4f2dc;
}

.dark .hotel-onboarding__waiting-card p,
.dark .hotel-onboarding__loading {
    color: #bdc5cf;
}

@media (max-width: 639px) {
    .hotel-commissioning__mobile-hero,
    .hotel-onboarding__mobile-hero {
        display: flex;
        min-height: 10.5rem;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 0.45rem;
        overflow: hidden;
        padding: 0.75rem;
        border: 1px solid var(--commissioning-line, #d6dde5);
        border-radius: 8px;
        background: var(--hotel-tile-header-bg, #f8fafc);
    }

    .hotel-commissioning__mobile-hero img,
    .hotel-onboarding__mobile-hero img {
        display: block;
        width: min(82%, 12rem);
        max-height: 8.75rem;
        object-fit: contain;
    }

    .hotel-onboarding__mobile-hero span {
        color: #5a6675;
        font-size: 0.68rem;
        font-weight: 750;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .hotel-commissioning__timeline--global {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding: 0.75rem;
        scrollbar-width: thin;
    }

    .hotel-commissioning__timeline--global li {
        flex: 0 0 7.5rem;
    }

    .hotel-commissioning__timeline--global li::before {
        display: none;
    }

    .hotel-onboarding__milestones {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
    }

    .hotel-onboarding__milestone {
        flex: 0 0 9rem;
    }

    .hotel-onboarding__action-layout {
        grid-template-columns: 1fr;
    }

    .hotel-onboarding__action-media {
        display: none;
    }

    .hotel-onboarding__complete-card {
        grid-template-columns: 2.75rem minmax(0, 1fr);
        gap: 0.75rem;
    }

    .hotel-onboarding__complete-icon {
        width: 2.75rem;
        height: 2.75rem;
    }

    .hotel-onboarding__form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hotel-onboarding__form-actions .fi-btn {
        width: 100%;
    }

    .hotel-onboarding__waiting-card {
        grid-template-columns: 2.75rem minmax(0, 1fr);
        gap: 0.75rem;
    }

    .hotel-onboarding__waiting-icon {
        width: 2.75rem;
        height: 2.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hotel-onboarding__loading svg {
        animation: none;
    }
}

/* Online Check-in Integrations: one clear recommended route with quieter alternatives. */
.online-checkin-integrations {
    gap: 1rem;
}

.online-checkin-integrations__hero,
.online-checkin-integrations__primary-card,
.online-checkin-integrations__secondary-card,
.online-checkin-integrations__provider-strip {
    border: 1px solid var(--hotel-card-border, #d9e0e7);
    border-radius: 12px;
    background: var(--hotel-card-bg, #ffffff);
    box-shadow: 0 8px 24px rgb(15 23 42 / 0.05);
}

.online-checkin-integrations__hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    padding: 1.25rem 1.4rem;
    background: linear-gradient(135deg, var(--hotel-tile-header-bg, #f8fafc), var(--hotel-card-bg, #ffffff));
}

.online-checkin-integrations__hero-icon,
.online-checkin-integrations__secondary-icon,
.online-checkin-integrations__provider-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.online-checkin-integrations__hero-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
    background: var(--hotel-brand-primary, #111827);
    color: #ffffff;
}

.online-checkin-integrations__hero-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.online-checkin-integrations__hero-copy,
.online-checkin-integrations__secondary-copy {
    min-width: 0;
}

.online-checkin-integrations__eyebrow {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--hotel-brand-primary, #334155);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.online-checkin-integrations__hero h2,
.online-checkin-integrations__primary-card h3,
.online-checkin-integrations__secondary-card h3,
.online-checkin-integrations__provider-strip h3 {
    margin: 0;
    color: var(--hotel-card-heading, #17202d);
    font-weight: 720;
    letter-spacing: 0;
}

.online-checkin-integrations__hero h2 {
    font-size: 1.35rem;
}

.online-checkin-integrations__hero-copy > p,
.online-checkin-integrations__card-head p,
.online-checkin-integrations__secondary-copy p,
.online-checkin-integrations__provider-strip p {
    margin: 0.35rem 0 0;
    color: #5b6878;
    font-size: 0.875rem;
    line-height: 1.5;
}

.online-checkin-integrations__note {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    margin-top: 0.85rem;
    color: #526173;
    font-size: 0.78rem;
    line-height: 1.45;
}

.online-checkin-integrations__note svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    margin-top: 0.08rem;
    color: var(--hotel-brand-primary, #475569);
}

.online-checkin-integrations__hero-scope {
    min-width: 9rem;
    padding-left: 1rem;
    border-left: 1px solid var(--hotel-card-border, #d9e0e7);
    color: #657386;
    font-size: 0.75rem;
    text-align: right;
}

.online-checkin-integrations__hero-scope strong {
    display: block;
    margin-top: 0.25rem;
    overflow-wrap: anywhere;
    color: var(--hotel-card-heading, #17202d);
    font-size: 0.9rem;
}

.online-checkin-integrations__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(18rem, 0.72fr);
    gap: 1rem;
    align-items: stretch;
}

.online-checkin-integrations__primary-card,
.online-checkin-integrations__secondary-card {
    padding: 1.25rem;
}

.online-checkin-integrations__primary-card {
    border-top: 3px solid #0f766e;
}

.online-checkin-integrations__card-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.online-checkin-integrations__card-head h3,
.online-checkin-integrations__secondary-card h3 {
    font-size: 1.05rem;
}

.online-checkin-integrations__badge {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.35rem;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.online-checkin-integrations__badge svg {
    width: 0.9rem;
    height: 0.9rem;
}

.online-checkin-integrations__badge--teal {
    background: #e4f6f1;
    color: #087a62;
}

.online-checkin-integrations__connection {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.25rem;
    border: 1px solid #cde7df;
    border-radius: 9px;
    padding: 0.85rem;
    background: #f3fbf8;
}

.online-checkin-integrations__connection-icon {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 50%;
    background: #0f766e;
    color: #ffffff;
}

.online-checkin-integrations__connection-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.online-checkin-integrations__connection-name,
.online-checkin-integrations__connection-status {
    display: grid;
    min-width: 0;
    gap: 0.12rem;
}

.online-checkin-integrations__connection-name span,
.online-checkin-integrations__connection-status span {
    color: #5c766f;
    font-size: 0.7rem;
    font-weight: 650;
    text-transform: uppercase;
}

.online-checkin-integrations__connection-name strong,
.online-checkin-integrations__connection-status strong {
    overflow-wrap: anywhere;
    color: #163d36;
    font-size: 0.92rem;
}

.online-checkin-integrations__connection-name small {
    overflow-wrap: anywhere;
    color: #567069;
    font-size: 0.75rem;
}

.online-checkin-integrations__connection-status {
    min-width: 6.5rem;
    padding-left: 0.8rem;
    border-left: 1px solid #cde7df;
    text-align: right;
}

.online-checkin-integrations__connection-status strong {
    color: #087a62;
}

.online-checkin-integrations__success-note {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    margin-top: 0.9rem;
    color: #087a62;
    font-size: 0.8rem;
    line-height: 1.45;
}

.online-checkin-integrations__success-note svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    margin-top: 0.08rem;
}

.online-checkin-integrations__card-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.online-checkin-integrations__empty-state {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    margin-top: 1.25rem;
    border: 1px dashed var(--hotel-card-border, #d9e0e7);
    border-radius: 9px;
    padding: 0.9rem;
    color: #627083;
}

.online-checkin-integrations__empty-state svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

.online-checkin-integrations__empty-state strong,
.online-checkin-integrations__empty-state p {
    display: block;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
}

.online-checkin-integrations__empty-state p {
    margin-top: 0.25rem;
}

.online-checkin-integrations__alternatives {
    display: grid;
    gap: 1rem;
}

.online-checkin-integrations__secondary-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-content: start;
    border-top: 3px solid #3b82f6;
}

.online-checkin-integrations__secondary-card--advanced {
    border-top-color: #64748b;
}

.online-checkin-integrations__secondary-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 9px;
}

.online-checkin-integrations__secondary-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.online-checkin-integrations__secondary-icon--blue {
    background: #e9f1ff;
    color: #2563eb;
}

.online-checkin-integrations__secondary-icon--slate {
    background: #eef1f5;
    color: #475569;
}

.online-checkin-integrations__secondary-footer {
    display: flex;
    grid-column: 1 / -1;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.35rem;
}

.online-checkin-integrations__status-pill,
.online-checkin-integrations__api-count {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 650;
}

.online-checkin-integrations__status-pill {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.online-checkin-integrations__status-pill > span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #94a3b8;
}

.online-checkin-integrations__status-pill--good {
    color: #087a62;
}

.online-checkin-integrations__status-pill--good > span {
    background: #0f9f7f;
}

.online-checkin-integrations__provider-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    padding: 1rem 1.25rem;
    background: var(--hotel-tile-header-bg, #f8fafc);
}

.online-checkin-integrations__provider-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 9px;
    background: var(--hotel-card-bg, #ffffff);
    color: #64748b;
}

.online-checkin-integrations__provider-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.dark .online-checkin-integrations__hero,
.dark .online-checkin-integrations__primary-card,
.dark .online-checkin-integrations__secondary-card,
.dark .online-checkin-integrations__provider-strip {
    border-color: #344150;
    background: #171c23;
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.16);
}

.dark .online-checkin-integrations__hero {
    background: linear-gradient(135deg, #202832, #171c23);
}

.dark .online-checkin-integrations__hero h2,
.dark .online-checkin-integrations__primary-card h3,
.dark .online-checkin-integrations__secondary-card h3,
.dark .online-checkin-integrations__provider-strip h3,
.dark .online-checkin-integrations__hero-scope strong {
    color: #f4f7fa;
}

.dark .online-checkin-integrations__hero-copy > p,
.dark .online-checkin-integrations__card-head p,
.dark .online-checkin-integrations__secondary-copy p,
.dark .online-checkin-integrations__provider-strip p,
.dark .online-checkin-integrations__note,
.dark .online-checkin-integrations__hero-scope,
.dark .online-checkin-integrations__status-pill,
.dark .online-checkin-integrations__api-count {
    color: #aeb9c6;
}

.dark .online-checkin-integrations__hero-scope {
    border-color: #344150;
}

.dark .online-checkin-integrations__connection {
    border-color: #28594f;
    background: #152b28;
}

.dark .online-checkin-integrations__connection-status {
    border-color: #28594f;
}

.dark .online-checkin-integrations__connection-name span,
.dark .online-checkin-integrations__connection-status span,
.dark .online-checkin-integrations__connection-name small {
    color: #9bb7af;
}

.dark .online-checkin-integrations__connection-name strong {
    color: #e3f6f0;
}

.dark .online-checkin-integrations__secondary-icon--blue {
    background: #1d3152;
    color: #8bb8ff;
}

.dark .online-checkin-integrations__secondary-icon--slate,
.dark .online-checkin-integrations__provider-icon {
    background: #26303c;
    color: #b8c4d1;
}

.dark .online-checkin-integrations__empty-state {
    border-color: #344150;
    color: #aeb9c6;
}

@media (max-width: 1023px) {
    .online-checkin-integrations__layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 639px) {
    .online-checkin-integrations__hero {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 1rem;
    }

    .online-checkin-integrations__hero-scope {
        grid-column: 2;
        min-width: 0;
        padding: 0.75rem 0 0;
        border-top: 1px solid var(--hotel-card-border, #d9e0e7);
        border-left: 0;
        text-align: left;
    }

    .online-checkin-integrations__card-head,
    .online-checkin-integrations__connection,
    .online-checkin-integrations__secondary-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .online-checkin-integrations__card-head {
        display: flex;
    }

    .online-checkin-integrations__connection {
        display: flex;
        flex-wrap: wrap;
    }

    .online-checkin-integrations__connection-status {
        width: 100%;
        padding: 0.65rem 0 0;
        border-top: 1px solid #cde7df;
        border-left: 0;
        text-align: left;
    }

    .dark .online-checkin-integrations__connection-status {
        border-color: #28594f;
    }

    .online-checkin-integrations__secondary-footer {
        display: flex;
    }

    .online-checkin-integrations__secondary-footer .fi-btn,
    .online-checkin-integrations__card-action .fi-btn {
        width: 100%;
        justify-content: center;
    }
}
