/*
 * BoothDock Hub asset entrypoint.
 * Shared Hub, public status, and feedback styles.
 */

:root {
    --bd-hub-assets-version: "20260622-1";
}

.status-page {
    max-width: 1180px;
}

.status-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.status-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.status-summary .stat-card strong {
    font-size: 22px;
}

.incident-card.good {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.incident-card.warn {
    border-color: #fde68a;
    background: #fffbeb;
}

.incident-card.bad {
    border-color: #fecdd3;
    background: #fff1f2;
}

.measurement-card.good {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.measurement-card.warn {
    border-color: #fde68a;
    background: #fffbeb;
}

.range-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.range-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d9dee8;
    border-radius: 8px;
    background: #fff;
    color: #071426;
    font-weight: 800;
    text-decoration: none;
}

.range-tab.active {
    border-color: #11d6d0;
    background: #e6fffd;
}

.status-table {
    display: grid;
    gap: 10px;
}

.status-row {
    display: grid;
    grid-template-columns: minmax(170px, .8fr) minmax(0, 2fr) minmax(110px, .4fr);
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(216, 224, 234, .95);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

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

.status-row span,
.status-percent span {
    color: #6b7280;
    font-size: 13px;
}

.mini-bars {
    display: grid;
    grid-template-columns: repeat(var(--status-columns), minmax(1px, 1fr));
    gap: 1px;
    min-width: 0;
    overflow: hidden;
}

.mini-bars .bar {
    display: block;
    min-width: 0;
}

.mini-bars .bar span {
    display: block;
    width: 100%;
    height: 22px;
    border-radius: 2px;
}

.mini-bars .bar small {
    display: none;
}

.bar.good span {
    background: #16a34a;
}

.bar.warn span {
    background: #d97706;
}

.bar.bad span {
    background: #e11d48;
}

.bar.empty span {
    background: #d9dee8;
}

.status-percent {
    text-align: right;
    min-width: 0;
}

.status-percent strong {
    font-size: 18px;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #6b7280;
    font-size: 13px;
}

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

.legend i {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

.legend .good {
    background: #16a34a;
}

.legend .warn {
    background: #d97706;
}

.legend .bad {
    background: #e11d48;
}

.legend .empty {
    background: #d9dee8;
}

.bars {
    display: grid;
    grid-template-columns: repeat(var(--status-columns), minmax(1px, 1fr));
    gap: 2px;
    min-width: 0;
    overflow: hidden;
}

.bars .bar {
    min-width: 0;
}

.bars .bar span {
    width: 100%;
    height: 30px;
    border-radius: 2px;
}

.bars .bar small {
    display: none;
}

.feedback-shell {
    display: grid;
    gap: 16px;
}

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

.feedback-form .wide-field {
    grid-column: 1 / -1;
}

.feedback-form textarea {
    min-height: 120px;
    resize: vertical;
}

.feedback-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 16px;
    align-items: start;
}

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

.feedback-card {
    display: grid;
    gap: 10px;
}

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

.feedback-card-head strong {
    font-size: 17px;
}

.feedback-actions,
.feedback-admin {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: end;
}

.feedback-actions form {
    display: flex;
    gap: 6px;
    align-items: end;
}

.feedback-actions input {
    min-width: 190px;
}

.feedback-admin {
    padding-top: 10px;
    border-top: 1px solid #edf0f5;
}

.feedback-admin label {
    display: grid;
    gap: 4px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
}

.feedback-admin select {
    margin: 0;
}

.feedback-admin input {
    min-width: 220px;
}

.feedback-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.feedback-status {
    padding: 12px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fff;
}

.feedback-status strong {
    display: block;
    font-size: 22px;
}

.feedback-status span {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}

.feedback-roadmap {
    display: grid;
    gap: 8px;
}

.feedback-stage {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 8px;
    padding: 10px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fff;
}

.feedback-stage strong {
    font-size: 13px;
    text-transform: uppercase;
}

.feedback-stage span {
    font-size: 13px;
    color: #6b7280;
}

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

html[data-boothdock-hub-assets="ready"] .hub-shell {
    scroll-margin-top: 16px;
}

.hub-side-nav button.nav-section-start {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-radius: 0 0 8px 8px;
}

.dashboard-action.primary-action {
    border-color: rgba(17, 214, 208, .32);
    background: linear-gradient(180deg, #f0fffe, #fff);
}

.dashboard-action.admin-action {
    background: #fbfdff;
}

.dashboard-action.admin-action strong {
    color: #334155;
}

.planning-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.planning-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    background: #eef4f8;
    color: #334155;
}

.planning-chip.good {
    background: #dcfce7;
    color: #166534;
}

.planning-chip.warn {
    background: #fff7d6;
    color: #8a5a00;
}

.capacity-meter {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef5;
}

.capacity-meter span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #16a34a;
}

.capacity-meter.warn span {
    background: #d97706;
}

.capacity-meter.bad span {
    background: #e11d48;
}

.box-detail-card {
    gap: 12px;
}

.box-health-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.box-metrics span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef4f8;
    color: #334155 !important;
    font-weight: 800;
}

.box-checks .check-list {
    margin-top: 0;
}

.box-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid #d9dee8;
    border-radius: 8px;
    object-fit: cover;
    background: #eef4f8;
}

.box-avatar.placeholder {
    display: inline-grid;
    place-items: center;
    color: #075985;
    font-size: 12px !important;
    font-weight: 900;
}

.box-choice-list {
    display: grid;
    gap: 8px;
}

.box-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 5px 10px;
    border: 1px solid #d9dee8;
    border-radius: 8px;
    background: #fff;
    color: #071426;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.box-choice .box-avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
}

.box-choice.active {
    border-color: #11d6d0;
    background: #e6fffd;
}

.box-choice:hover {
    border-color: #11d6d0;
}

.hub-shell {
    width: min(1480px, 100% - 32px);
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
}

.hub-hero {
    grid-column: 1 / -1;
}

.hub-topbar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 14px 16px;
    border: 1px solid rgba(17, 214, 208, .18);
    border-radius: 8px;
    background: #071426;
    color: #fff;
    box-shadow: 0 14px 34px rgba(7, 20, 38, .12);
}

.hub-topbar h1 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1;
}

.hub-topbar .eyebrow {
    margin-bottom: 5px !important;
}

.hub-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.hub-account-menu {
    position: relative;
}

.hub-account-menu summary {
    display: grid;
    min-width: min(260px, 42vw);
    min-height: 42px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    list-style: none;
}

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

.hub-account-menu summary span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.hub-account-menu summary strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #dbe8f3;
    font-size: 12px;
}

.hub-account-menu > div {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 40;
    display: grid;
    gap: 6px;
    min-width: 220px;
    padding: 8px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(7, 20, 38, .18);
}

.hub-account-menu a,
.hub-account-menu button {
    display: flex;
    align-items: center;
    min-height: 38px;
    width: 100%;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #071426;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.hub-account-menu a:hover,
.hub-account-menu button:hover {
    background: #eef5f8;
}

.hub-account-menu form {
    margin: 0;
}

.impersonation-banner {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    color: #713f12;
}

.impersonation-banner strong,
.impersonation-banner span {
    display: block;
}

.impersonation-banner span {
    flex: 1;
}

.hub-sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(17, 214, 208, .18);
    border-radius: 8px;
    background: #071426;
    color: #fff;
    box-shadow: 0 18px 48px rgba(7, 20, 38, .14);
}

.hub-sidebar-brand {
    display: grid;
    gap: 4px;
    padding: 4px;
}

.hub-sidebar-brand span {
    color: #11d6d0;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.hub-sidebar-brand strong {
    font-size: 24px;
}

.hub-sidebar-brand small,
.hub-sidebar-card span {
    color: #dbe8f3;
}

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

.hub-side-nav button {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    min-height: 42px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #dbe8f3;
    text-align: left;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.hub-side-nav button small {
    color: #8ea2b8;
    font-size: 12px;
}

.hub-side-nav button.active {
    background: rgba(17, 214, 208, .14);
    color: #fff;
    box-shadow: inset 3px 0 0 #11d6d0;
}

.hub-side-nav button.active small {
    color: #dbe8f3;
}

.hub-sidebar-card {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.hub-sidebar-card a {
    color: #11d6d0;
    font-weight: 800;
    text-decoration: none;
}

.hub-grid {
    min-width: 0;
}

.hub-app-shell > .hub-grid,
.hub-app-shell > .impersonation-banner,
.hub-app-shell > #hub-message {
    grid-column: 2;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.hub-app-shell > .hub-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.hub-grid > .panel.wide {
    grid-column: 1 / -1;
}

.hub-app-shell > .hub-grid > .panel.wide {
    grid-column: 1;
}

.hub-main-panel {
    min-width: 0;
}

.hub-main-panel .hub-tabs {
    display: none;
}

.hub-mobile-dock,
.hub-mobile-nav {
    display: none;
}

.hub-mobile-nav-close {
    display: none;
}

.hub-main-panel {
    padding: 22px;
}

.hub-view {
    display: grid;
    gap: 16px;
}

.hub-main-panel > .panel-heading {
    align-items: center;
}

.hub-main-panel > .panel-heading h2 {
    font-size: 24px;
}

#mail-body {
    min-height: 160px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 11px;
    background: #fff;
    color: #071426;
    font: inherit;
    resize: vertical;
}

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

.tool-panel {
    padding: 0;
}

.tool-panel summary,
.tool-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px;
    cursor: pointer;
}

.tool-head {
    cursor: default;
}

.tool-panel summary span,
.tool-head span {
    color: #6b7280;
    font-size: 13px;
}

.tool-panel form {
    padding: 0 12px 12px;
}

.primary-tool {
    border-color: rgba(17, 214, 208, .45);
    background: linear-gradient(180deg, #fbffff 0%, #fff 58%);
}

body.hub-modal-open {
    overflow: hidden;
}

.hub-modal[hidden] {
    display: none !important;
}

.hub-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 22px;
}

.hub-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 20, 38, .58);
    cursor: pointer;
}

.hub-modal-panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: calc(100vh - 44px);
    overflow: auto;
    padding: 22px;
    box-shadow: 0 28px 80px rgba(7, 20, 38, .28);
}

.hub-modal-close {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #eef5f8;
    color: #071426;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.hub-modal-panel .event-form-grid {
    grid-template-columns: 1fr 1fr;
}

.hub-modal-panel .event-form-grid label:first-child,
.hub-modal-panel .wide-field,
.hub-modal-panel .form-actions {
    grid-column: 1 / -1;
}

@media (max-width: 640px) {
    .hub-modal {
        padding: 12px;
        align-items: end;
    }

    .hub-modal-panel {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 18px;
    }

    .hub-modal-panel .event-form-grid {
        grid-template-columns: 1fr;
    }
}

.event-view-head {
    align-items: center;
    padding: 4px 0 8px;
    border-bottom: 1px solid #edf0f5;
}

.event-workspace {
    grid-template-columns: minmax(360px, .82fr) minmax(0, 1.55fr);
    gap: 22px;
    align-items: start;
}

.event-list-panel,
.event-detail-column {
    min-width: 0;
}

.event-list-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fbfdff;
}

.event-list-panel-full {
    width: 100%;
}

.event-detail-view {
    gap: 16px;
}

.event-detail-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.event-detail-screen {
    max-width: 1180px;
}

.event-list-head {
    align-items: flex-start;
    padding: 2px 0 0;
}

.event-list-stack {
    gap: 10px;
}

.event-detail-column {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 14px;
    min-width: 0;
}

.event-form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 12px;
    align-items: start;
}

.event-form-grid label {
    display: grid;
    gap: 6px;
    min-width: 0;
    font-weight: 850;
    color: #334155;
}

.event-form-grid input,
.event-form-grid select {
    width: 100%;
    margin-top: 0;
}

.event-flow-steps {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 2px;
}

.event-flow-step {
    display: grid;
    gap: 4px;
    min-height: 72px;
    padding: 12px;
    border: 1px solid #d9dee8;
    border-radius: 8px;
    background: #fff;
}

.event-flow-step.active {
    border-color: #11d6d0;
    background: #f0fffe;
    box-shadow: 0 8px 22px rgba(17, 214, 208, .08);
}

.event-flow-step strong {
    font-size: 14px;
}

.event-flow-step span {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.35;
}

.event-form-grid .wide-field {
    grid-column: span 2;
}

.event-form-grid .form-section.wide-field,
.event-form-grid .form-summary.wide-field {
    grid-column: 1 / -1;
}

.event-form-grid .form-actions {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    min-height: 66px;
}

.event-quick-form {
    grid-template-columns: minmax(220px, 1.4fr) minmax(180px, .8fr) minmax(220px, 1fr) auto;
    align-items: end;
}

.event-quick-form .form-actions {
    min-height: 0;
}

.event-quick-form .form-summary,
.event-quick-form .box-choice-list {
    display: none;
}

.event-quick-form .button {
    min-width: 170px;
}

.form-section {
    display: grid;
    gap: 3px;
    align-self: stretch;
    margin-top: 2px;
    padding: 12px 12px 10px;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    background: #f8fafc;
}

.form-section:first-child {
    border-top: 1px solid #e5eaf1;
    padding-top: 12px;
}

.form-section strong {
    font-size: 13px;
    text-transform: uppercase;
    color: #071426;
}

.form-section span,
.form-summary span {
    color: #6b7280;
    font-size: 13px;
}

.form-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #d7f7f5;
    border-radius: 8px;
    background: #f0fffe;
}

.compact-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.section-head h3,
.section-head h4 {
    margin: 0;
}

.section-head.compact {
    align-items: center;
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid #e5eaf1;
}

.view-templates-panel,
.view-boxes-panel {
    display: grid;
    gap: 14px;
}

.search-label {
    display: grid;
    gap: 5px;
    min-width: min(260px, 100%);
    color: #5d6b7f;
    font-size: 13px;
    font-weight: 800;
}

.event-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 10px;
}

.filter-chip {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #d9dee8;
    border-radius: 999px;
    background: #fff;
    color: #071426;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.filter-chip.active {
    border-color: #11d6d0;
    background: #e6fffd;
}

.event-list-summary {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 13px;
}

.dashboard-focus {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
    gap: 12px;
    margin-bottom: 14px;
}

.next-step-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(17, 214, 208, .42);
    border-radius: 8px;
    background: #f0fffe;
}

.next-step-card strong {
    font-size: 18px;
}

.next-step-card span {
    color: #5d6b7f;
}

.next-step-card .action-row {
    margin-top: 2px;
}

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

.health-tile {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fff;
}

.health-tile strong {
    font-size: 18px;
}

.health-tile span {
    color: #6b7280;
    font-size: 13px;
}

.ops-performance-card {
    gap: 14px;
}

.ops-performance-grid {
    display: grid;
    grid-template-columns: minmax(180px, .45fr) minmax(260px, 1fr) minmax(180px, .55fr);
    gap: 12px;
    align-items: stretch;
}

.ops-response-score,
.ops-records {
    display: grid;
    align-content: center;
    gap: 5px;
    min-height: 118px;
    padding: 14px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fff;
}

.ops-response-score strong,
.ops-records strong {
    color: #071426;
    font-size: 26px;
    line-height: 1.05;
}

.ops-response-score span,
.ops-records span,
.ops-response-score small {
    color: #6b7280;
    font-size: 13px;
}

.ops-response-score.good {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.ops-response-score.warn {
    border-color: #fde68a;
    background: #fffbeb;
}

.ops-response-score.bad {
    border-color: #fecdd3;
    background: #fff1f2;
}

.ops-readiness-score {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    align-items: end;
    margin: 12px 0;
    padding: 14px;
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fafc;
}

.ops-readiness-score span,
.ops-readiness-score small {
    position: relative;
    z-index: 1;
    color: #64748b;
    font-size: 13px;
}

.ops-readiness-score strong {
    position: relative;
    z-index: 1;
    color: #071426;
    font-size: 28px;
    line-height: 1;
}

.ops-readiness-score small {
    grid-column: 1 / -1;
}

.ops-readiness-score i {
    position: absolute;
    inset: auto 0 0;
    display: block;
    height: 5px;
    min-width: 14px;
    border-radius: 0 999px 999px 0;
    background: #11d6d0;
}

.ops-meter-list {
    display: grid;
    align-content: center;
    gap: 9px;
    padding: 14px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fff;
}

.ops-meter-row {
    display: grid;
    grid-template-columns: minmax(90px, .8fr) minmax(54px, auto);
    gap: 8px;
    align-items: center;
}

.ops-meter-row span,
.ops-meter-row strong {
    color: #334155 !important;
    font-size: 13px;
}

.ops-meter-row strong {
    text-align: right;
}

.ops-meter-row i {
    grid-column: 1 / -1;
    display: block;
    height: 8px;
    min-width: 10px;
    border-radius: 999px;
    background: #11d6d0;
}

.dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px;
}

.dashboard-action {
    display: grid;
    gap: 4px;
    min-height: 74px;
    padding: 12px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fff;
    color: #071426;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.dashboard-action strong {
    font-size: 15px;
}

.dashboard-action span {
    color: #6b7280;
    font-size: 13px;
}

.dashboard-action:hover {
    border-color: #11d6d0;
    background: #f0fffe;
}

.event-detail-head {
    gap: 16px;
}

.event-title-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.event-title-line strong {
    font-size: 18px;
}

.event-policy-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.event-policy {
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fff;
}

.event-policy small {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.event-policy strong {
    font-size: 15px;
}

.event-policy span {
    font-size: 13px;
}

.event-task-list {
    display: grid;
    gap: 7px;
}

.event-task {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    gap: 9px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fff;
}

.event-task span,
.event-task strong {
    font-size: 13px;
}

.event-task .dot {
    width: 9px;
    height: 9px;
}

.danger-action {
    color: #9f1239 !important;
}

.event-action-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 2px;
}

.event-action-strip .button {
    min-height: 40px;
}

.event-status-control {
    display: inline-grid;
    gap: 4px;
    min-width: 190px;
    margin-left: auto;
}

.event-status-control span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.event-status-control select {
    min-height: 40px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    color: #071426;
    font: inherit;
    font-weight: 800;
}

.event-review-section {
    padding: 0;
}

.event-review-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.event-review-section summary::-webkit-details-marker {
    display: none;
}

.event-review-section summary span {
    font-weight: 900;
}

.event-review-section summary strong {
    color: #64748b;
    font-size: 13px;
}

.event-review-section summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    color: #071426;
    font-weight: 900;
}

.event-review-section[open] summary::after {
    content: "-";
}

.event-section-body {
    display: grid;
    gap: 10px;
    padding: 0 16px 16px;
}

.event-card {
    position: relative;
    gap: 14px;
    padding: 16px 16px 16px 18px;
}

.event-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: #cbd5e1;
}

.event-card.event-card-attention::before {
    background: #d97706;
}

.event-card.active-row::before {
    background: #11d6d0;
}

.event-card-main {
    display: grid;
    gap: 7px;
}

.event-card-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.event-card-title strong {
    font-size: 16px;
}

.event-card-date {
    white-space: nowrap;
    color: #475569 !important;
    font-weight: 800;
}

.event-card-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
}

.event-kpi {
    padding: 7px 8px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #f8fafc;
}

.event-kpi strong {
    font-size: 14px;
}

.event-kpi span {
    font-size: 12px;
}

.event-detail-hero {
    padding: 18px;
    border: 1px solid #d7f7f5;
    border-radius: 8px;
    background: linear-gradient(135deg, #f0fffe 0%, #fff 68%);
}

.event-detail-hero .event-title-line strong {
    font-size: 22px;
}

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

.event-detail-summary .event-kpi {
    background: #fff;
}

.event-detail-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border: 1px solid #e4edf2;
    border-radius: 10px;
    background: rgba(255, 255, 255, .72);
}

.event-detail-nav button {
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    padding: 9px 12px;
}

.event-detail-nav button.active {
    border-color: rgba(17, 214, 208, .7);
    background: #e9fffd;
    color: #071426;
}

.event-subview[hidden] {
    display: none !important;
}

.event-overview-panel {
    display: grid;
    gap: 14px;
}

.event-overview-actions .event-action-strip {
    margin: 0;
}

.event-overview-next {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.event-overview-link {
    display: grid;
    gap: 4px;
    min-height: 92px;
    padding: 14px;
    text-align: left;
    border: 1px solid #e4edf2;
    border-radius: 8px;
    background: #fff;
    color: #071426;
    cursor: pointer;
    font: inherit;
}

.event-overview-link strong {
    font-size: 15px;
}

.event-overview-link span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.event-overview-link:hover,
.event-overview-link:focus {
    border-color: rgba(17, 214, 208, .72);
    box-shadow: 0 10px 30px rgba(7, 20, 38, .08);
}

.event-review-stack {
    display: grid;
    gap: 10px;
}

.event-admin-panel {
    width: min(920px, 100%);
}

.event-admin-blocks {
    display: grid;
    gap: 10px;
}

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

.event-editor-sections {
    display: grid;
    gap: 12px;
}

.event-flow-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border: 1px solid #d7f7f5;
    border-radius: 8px;
    background: #fff;
}

.event-flow-step {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-flow-step > span {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #11d6d0;
    color: #071426;
    font-weight: 950;
}

.event-flow-step div {
    display: grid;
    gap: 2px;
}

.event-flow-step strong {
    font-size: 16px;
}

.event-flow-step small {
    color: #64748b;
    font-size: 13px;
}

.event-section-pills {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.event-flow-card label {
    display: grid;
    gap: 5px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.event-flow-card input,
.event-flow-card select,
.event-flow-card textarea {
    width: 100%;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    color: #071426;
    font: inherit;
}

.event-flow-card input,
.event-flow-card select {
    min-height: 40px;
}

.event-flow-card textarea {
    min-height: 86px;
    resize: vertical;
}

.event-flow-card select[multiple] {
    min-height: 118px;
    padding: 8px;
}

.event-flow-card .wide-field,
.event-flow-card .form-actions {
    grid-column: 1 / -1;
}

.event-flow-card .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-flow-card .check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: end;
    min-height: 40px;
}

.event-flow-card .check-row input {
    width: auto;
    min-height: 0;
}

.event-field-note {
    grid-column: 1 / -1;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.event-static-card {
    align-content: start;
}

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

.event-setting-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fff;
}

.event-setting-card-head {
    display: grid;
    gap: 3px;
}

.event-setting-card-head strong {
    font-size: 16px;
}

.event-setting-card-head span {
    color: #64748b;
    font-size: 13px;
}

.event-setting-list {
    display: grid;
    gap: 8px;
}

.event-setting-list > div {
    display: grid;
    grid-template-columns: minmax(90px, .8fr) minmax(0, 1fr);
    gap: 4px 10px;
    align-items: baseline;
    padding-top: 8px;
    border-top: 1px solid #edf0f5;
}

.event-setting-list small {
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.event-setting-list strong {
    overflow: hidden;
    color: #071426;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-setting-list span {
    grid-column: 2;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-section {
    padding: 12px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fbfdff;
}

.review-section .section-head.compact {
    margin: 0 0 10px;
    padding-top: 0;
    border-top: 0;
}

.review-section .data-row {
    background: #fff;
}

.event-detail-blocks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.event-detail-blocks .review-section:nth-child(n + 3) {
    grid-column: 1 / -1;
}

.calendar-day-card,
.calendar-box-card {
    gap: 12px;
}

.calendar-day-card .event-task-list,
.calendar-box-card .event-task-list {
    margin-top: 2px;
}

.calendar-day-card .capacity-meter {
    margin: 2px 0;
}

.gallery-public-shell {
    display: grid;
    gap: 16px;
}

.gallery-public-hero {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(17, 214, 208, .18);
    border-radius: 8px;
    background: #071426;
    color: #fff;
    box-shadow: 0 18px 48px rgba(7, 20, 38, .14);
}

.gallery-public-hero::after {
    content: "";
    position: absolute;
    right: 24px;
    bottom: 0;
    left: 24px;
    height: 3px;
    border-radius: 999px;
    background: #11d6d0;
}

.gallery-public-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.02;
}

.gallery-public-hero p:not(.eyebrow) {
    margin: 8px 0 0;
    max-width: 720px;
    color: #dbe8f3;
}

.gallery-tabs {
    justify-self: start;
}

.gallery-photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.gallery-photo-card {
    overflow: hidden;
    gap: 10px;
    padding: 10px;
    border-color: rgba(44, 59, 79, .14);
    box-shadow: 0 10px 24px rgba(7, 20, 38, .05);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

a.gallery-photo-card:hover {
    border-color: rgba(17, 214, 208, .65);
    box-shadow: 0 16px 36px rgba(17, 214, 208, .14);
    transform: translateY(-1px);
}

.gallery-photo-card img,
.gallery-photo-card .empty {
    aspect-ratio: 1 / 1;
}

.gallery-photo-card strong,
.gallery-photo-card span {
    overflow-wrap: anywhere;
}

.gallery-upload-card {
    gap: 12px;
    padding: 16px;
    border-color: rgba(17, 214, 208, .24);
    background: #f0fffe;
}

.gallery-session-file form {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(216, 224, 234, .95);
}

.gallery-delete-panel {
    margin-top: 2px;
    border: 1px solid rgba(216, 224, 234, .95);
    border-radius: 8px;
    background: #fbfdff;
}

.gallery-delete-panel summary {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 11px;
    color: #075985;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    list-style: none;
}

.gallery-delete-panel summary::-webkit-details-marker {
    display: none;
}

.gallery-delete-panel summary::after {
    content: "+";
    color: #11d6d0;
    font-size: 18px;
    line-height: 1;
}

.gallery-delete-panel[open] summary::after {
    content: "-";
}

.gallery-delete-panel .form-grid {
    margin: 0;
    padding: 0 11px 11px;
}

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

.gallery-card {
    align-content: start;
    gap: 12px;
    padding: 15px;
}

.gallery-card-main {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.gallery-card .event-card-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-view {
    gap: 20px;
}

.event-view-head {
    padding: 6px 0 14px;
    border-bottom: 1px solid rgba(216, 224, 234, .95);
}

.event-workspace {
    grid-template-columns: minmax(360px, .88fr) minmax(0, 1.32fr);
    gap: 20px;
    align-items: start;
}

.event-list-panel,
.event-detail-column {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(216, 224, 234, .95);
    border-radius: 8px;
    background: #f8fafc;
}

.event-list-head {
    align-items: end;
    gap: 14px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(216, 224, 234, .92);
}

.event-list-stack {
    gap: 12px;
}

.event-gallery-section {
    display: grid;
    gap: 10px;
}

.event-gallery-section + .event-gallery-section {
    margin-top: 8px;
}

.event-gallery-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.event-gallery-section-head h4 {
    margin: 0;
    font-size: 20px;
}

.event-gallery-section-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #e7fffd;
    color: #0f766e;
    font-weight: 900;
}

.event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.event-gallery-tile {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #071426;
    text-align: left;
    font: inherit;
}

.event-create-tile {
    place-items: center;
    min-height: 218px;
    padding: 18px;
    border: 1px dashed rgba(44, 59, 79, .55);
    background: #fff;
    cursor: pointer;
}

.event-create-tile:hover {
    border-color: #11d6d0;
    background: #f0fffe;
}

.event-create-plus {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #eef5f8;
    color: #071426;
    font-size: 34px;
    line-height: 1;
}

.event-create-tile strong {
    font-size: 17px;
}

.event-create-tile small {
    color: #6b7280;
}

.event-gallery-tile.event-card {
    gap: 10px;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.event-gallery-tile.event-card::before {
    display: none;
}

.event-thumb {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(7, 20, 38, .06), rgba(17, 214, 208, .14)),
        #e5e7eb;
    color: #2c3b4f;
}

.event-card-attention .event-thumb {
    background:
        linear-gradient(135deg, rgba(217, 119, 6, .16), rgba(17, 214, 208, .14)),
        #f7f1e8;
}

.event-thumb span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .86);
    color: #071426 !important;
    font-size: 30px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(7, 20, 38, .08);
}

.event-gallery-tile .event-card-main,
.event-gallery-tile .event-card-kpis,
.event-gallery-tile .action-row {
    padding: 0 2px;
}

.event-template-pack-grid {
    display: grid;
    gap: 14px;
}

.event-template-editor-stack,
.event-template-modal.editor-fullscreen [data-template-editor-edit-panel] {
    height: 100%;
    min-height: 0;
}

.capture-studio-shell {
    display: grid;
    gap: 14px;
}

.capture-layout-card,
.capture-countdown-card,
.capture-layout-browser {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #d7f7f5;
    border-radius: 8px;
    background: #fff;
}

.capture-layout-card {
    grid-template-columns: minmax(240px, .75fr) minmax(320px, 1fr);
    align-items: stretch;
}

.capture-card-copy {
    display: grid;
    gap: 4px;
}

.capture-card-copy strong {
    color: #071426;
    font-size: 17px;
}

.capture-card-copy span,
.capture-template-tile span,
.capture-empty-layout span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
}

.capture-active-preview {
    display: grid;
    place-items: center;
    min-height: 210px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #f8fafc;
}

.event-template-empty-preview {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 160px;
    color: #64748b;
    text-align: center;
}

.event-template-empty-preview span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #d9e2ec;
    border-radius: 999px;
    color: #071426;
    font-size: 28px;
}

.capture-layout-card label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 850;
}

.capture-layout-card select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    color: #071426;
    font: inherit;
}

.capture-action-row,
.capture-action-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.capture-action-row {
    align-content: start;
    align-items: center;
}

.capture-advanced {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(216, 224, 234, .9);
    border-radius: 8px;
    background: #f8fafc;
}

.capture-advanced summary {
    cursor: pointer;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.capture-advanced[open] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.capture-advanced[open] summary,
.capture-advanced[open] .form-actions {
    grid-column: 1 / -1;
}

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

.capture-action-grid button,
.capture-template-tile,
.capture-empty-layout {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid #e4edf2;
    border-radius: 8px;
    background: #fff;
    color: #071426;
    text-align: left;
    font: inherit;
}

.capture-action-grid button {
    cursor: pointer;
}

.capture-action-grid button:hover,
.capture-template-tile:hover,
.capture-template-tile:focus {
    border-color: rgba(17, 214, 208, .72);
    box-shadow: 0 12px 30px rgba(7, 20, 38, .08);
}

.capture-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.capture-pack-grid {
    display: grid;
    gap: 14px;
}

.capture-pack-card {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(216, 224, 234, .9);
    border-radius: 8px;
    background: #fff;
}

.capture-pack-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.capture-pack-head strong {
    color: #071426;
}

.capture-pack-head span {
    color: #64748b;
    font-size: 13px;
}

.capture-template-tile {
    cursor: pointer;
}

.capture-template-tile em {
    justify-self: start;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(17, 214, 208, .13);
    color: #087c7b;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.capture-template-tile .event-template-canvas {
    justify-self: center;
    width: min(120px, 100%);
    box-shadow: none;
}

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

.capture-countdown-list label {
    display: grid;
    grid-template-columns: minmax(160px, .5fr) minmax(120px, 1fr) auto;
    gap: 12px;
    align-items: center;
    color: #334155;
    font-weight: 850;
}

.event-template-modal-panel {
    width: min(1680px, calc(100vw - 12px));
}

.event-template-modal.editor-fullscreen .hub-modal-panel {
    width: calc(100vw - 12px);
    height: calc(100dvh - 12px);
    max-height: calc(100dvh - 12px);
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #eef3f7;
}

.event-template-modal-body {
    display: grid;
    gap: 18px;
}

.event-template-modal.editor-fullscreen .event-template-modal-body {
    height: calc(100dvh - 58px);
    max-height: calc(100dvh - 58px);
    overflow: hidden;
    padding: 0;
    background: #eef3f7;
}

.template-editor-topbar {
    position: sticky;
    z-index: 3;
    top: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 52px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(216, 224, 234, .95);
    background: #071426;
    color: #fff;
}

.template-editor-topbar div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.template-editor-topbar span {
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
}

.template-editor-topbar .button.ghost {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.event-template-pack {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(216, 224, 234, .95);
    border-radius: 8px;
    background: #f8fafc;
}

.event-template-pack-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.event-template-pack-head div {
    display: grid;
    gap: 2px;
}

.event-template-pack-head span {
    color: #6b7280;
    font-size: 13px;
}

.event-template-editor {
    display: grid;
    gap: 14px;
    min-height: calc(100dvh - 58px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.template-workbench {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) clamp(230px, 18vw, 300px);
    height: calc(100dvh - 58px);
    min-height: calc(100dvh - 58px);
    gap: 0;
    align-items: stretch;
}

.template-tool-rail {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    padding: 16px 8px;
    border-right: 1px solid rgba(216, 224, 234, .95);
    background: #f8fafc;
}

.template-tool-rail button {
    display: grid;
    place-items: center;
    gap: 5px;
    min-height: 64px;
    padding: 8px 6px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
}

.template-tool-rail button span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #11d6d0;
    color: #071426;
    font-size: 17px;
}

.template-tool-rail button:hover,
.template-tool-rail button.active {
    border-color: rgba(17, 214, 208, .7);
    background: #fff;
    box-shadow: 0 12px 24px rgba(7, 20, 38, .08);
}

.template-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 10px;
    background: #eef3f7;
    overflow: hidden;
}

.template-selection-bar {
    position: absolute;
    z-index: 9;
    top: 14px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: min(620px, calc(100% - 28px));
    padding: 7px 8px 7px 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    background: rgba(7, 20, 38, .94);
    box-shadow: 0 14px 34px rgba(7, 20, 38, .22);
    color: #fff;
    transform: translateX(-50%);
}

.template-selection-bar[hidden] {
    display: none !important;
}

.template-selection-bar > div {
    display: grid;
    gap: 1px;
    min-width: 130px;
    max-width: 240px;
}

.template-selection-bar strong,
.template-selection-bar span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.template-selection-bar strong {
    font-size: 13px;
    font-weight: 900;
}

.template-selection-bar span {
    color: #bed4e8;
    font-size: 11px;
    font-weight: 800;
}

.template-selection-bar button {
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 900;
}

.template-selection-bar button:hover {
    border-color: rgba(17, 214, 208, .65);
    background: rgba(17, 214, 208, .18);
}

.template-selection-bar button.danger:hover {
    border-color: rgba(248, 113, 113, .7);
    background: rgba(248, 113, 113, .18);
}

.template-stage.drag-over {
    background:
        radial-gradient(circle at center, rgba(17, 214, 208, .2), transparent 44%),
        #e6fbfa;
}

.template-inspector {
    align-self: stretch;
    height: calc(100dvh - 58px);
    max-height: calc(100dvh - 58px);
    overflow: hidden;
    padding: 8px;
    border: 0;
    border-left: 1px solid rgba(216, 224, 234, .95);
    border-radius: 0;
    background: #fff;
}

.event-template-editor-title {
    display: none;
}

.template-inspector-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(216, 224, 234, .9);
    border-radius: 8px;
    background: #fff;
}

.template-hidden-settings {
    display: none !important;
}

.template-layer-panel-head {
    gap: 3px;
    padding: 8px 10px;
    background: #f8fafc;
}

.template-layer-panel-head strong {
    color: #071426;
    font-size: 15px;
}

.template-layer-panel-head span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.25;
}

.template-inspector-head {
    display: grid;
    gap: 2px;
}

.template-inspector-head strong {
    color: #071426;
    font-size: 16px;
}

.template-inspector-head span {
    color: #64748b;
    font-size: 13px;
}

.event-template-preview {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 260px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid rgba(216, 224, 234, .95);
}

.template-stage .event-template-preview {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    padding: 10px;
    box-shadow: 0 22px 60px rgba(7, 20, 38, .08);
}

.event-template-modal.editor-fullscreen .event-template-preview {
    min-height: 0;
}

.event-template-modal.editor-fullscreen .event-template-preview .event-template-canvas {
    width: auto;
    height: min(880px, calc(100dvh - 86px));
    max-width: 100%;
}

.event-template-modal.editor-fullscreen .event-template-preview .event-template-canvas.landscape {
    width: min(1000px, 98%);
    height: auto;
}

.event-template-modal.editor-fullscreen .event-template-preview .event-template-canvas.strip {
    width: auto;
    height: min(820px, calc(100dvh - 110px));
}

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

.template-inspector.event-template-editor-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.template-quick-settings {
    grid-template-columns: 1fr 128px;
    align-items: end;
}

.template-quick-settings .template-inspector-head {
    grid-column: 1 / -1;
}

.event-template-editor-fields .form-actions {
    grid-column: 1 / -1;
}

.event-template-canvas {
    position: relative;
    width: min(170px, 100%);
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid rgba(44, 59, 79, .14);
    border-radius: 8px;
    background-color: var(--template-bg);
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 34px rgba(7, 20, 38, .12);
}

.event-template-canvas.landscape {
    width: min(230px, 100%);
    aspect-ratio: 3 / 2;
}

.event-template-canvas.strip {
    width: min(120px, 100%);
    aspect-ratio: 1 / 3;
}

.event-template-canvas strong,
.event-template-text-layers em,
.template-canvas-image-layer {
    position: relative;
    z-index: 2;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #071426;
    text-align: center;
}

.event-template-text-layers em {
    position: absolute;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 1px;
    line-height: 1.05;
    text-wrap: balance;
    transform-origin: center;
}

.event-template-text-layers {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.template-canvas-image-layer {
    position: absolute;
    z-index: 2;
    display: block;
    overflow: hidden;
    transform-origin: center;
}

.template-canvas-image-layer img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.event-template-text-layers em small {
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-align: inherit;
    white-space: nowrap;
    pointer-events: none;
}

.event-template-editor [data-canvas-layer] {
    cursor: grab;
    touch-action: none;
    transform-origin: center;
    pointer-events: auto;
}

.event-template-editor [data-canvas-layer]:hover,
.event-template-editor [data-canvas-layer].active {
    outline: 2px solid #11d6d0;
    outline-offset: 2px;
}

.event-template-editor [data-canvas-layer].dragging {
    cursor: grabbing;
    outline-color: #0f766e;
}

.template-layer-edit-frame {
    position: absolute;
    z-index: 260;
    box-sizing: border-box;
    cursor: grab;
    touch-action: none;
    transform-origin: center;
    pointer-events: auto;
    border: 2px solid #11d6d0;
    border-radius: 8px;
    background: rgba(17, 214, 208, .035);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .92),
        0 10px 24px rgba(7, 20, 38, .12);
}

.template-layer-edit-frame::before {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(135deg, rgba(17, 214, 208, .18), transparent 38%),
        repeating-linear-gradient(135deg, rgba(17, 214, 208, .12) 0 6px, transparent 6px 18px);
    content: "";
    opacity: .45;
    pointer-events: none;
}

.template-layer-edit-frame.dragging {
    cursor: grabbing;
    border-color: #0f766e;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .95),
        0 14px 30px rgba(7, 20, 38, .18);
}

.template-layer-resize-handle,
.template-layer-rotate-handle {
    position: absolute;
    z-index: 9;
    display: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #11d6d0;
    box-shadow: 0 3px 10px rgba(7, 20, 38, .24);
}

.template-layer-resize-handle::before,
.template-layer-rotate-handle::before {
    position: absolute;
    inset: -14px;
    content: "";
}

.event-template-editor [data-canvas-layer]:hover .template-layer-resize-handle,
.event-template-editor [data-canvas-layer]:hover .template-layer-rotate-handle,
.template-layer-edit-frame .template-layer-resize-handle,
.template-layer-edit-frame .template-layer-rotate-handle {
    display: block;
}

.template-layer-resize-handle.handle-nw {
    top: -11px;
    left: -11px;
    cursor: nwse-resize;
}

.template-layer-resize-handle.handle-ne {
    top: -11px;
    right: -11px;
    cursor: nesw-resize;
}

.template-layer-resize-handle.handle-sw {
    bottom: -11px;
    left: -11px;
    cursor: nesw-resize;
}

.template-layer-resize-handle.handle-se {
    right: -11px;
    bottom: -11px;
    cursor: nwse-resize;
}

.template-layer-rotate-handle {
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: grab;
}

.template-layer-rotate-handle::after {
    position: absolute;
    top: 16px;
    left: 50%;
    width: 1px;
    height: 14px;
    background: #11d6d0;
    content: "";
}

.event-template-logo {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.event-template-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.event-template-slots {
    position: absolute;
    inset: 0;
    z-index: auto;
    pointer-events: none;
}

.event-template-slots i {
    --photo-slot-color: #16c7c2;
    --photo-slot-accent: #087b78;
    position: absolute;
    display: block;
    overflow: hidden;
    pointer-events: auto;
    border: 2px solid rgba(255, 255, 255, .94);
    border-radius: 3px;
    background: color-mix(in srgb, var(--photo-slot-color) 84%, #fff);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--photo-slot-accent) 44%, transparent),
        0 8px 16px rgba(7, 20, 38, .08);
    isolation: isolate;
}

.event-template-slots .photo-slot-person {
    display: none !important;
}

.event-template-slots i[data-photo-slot-number="2"] {
    --photo-slot-color: #ff5f7a;
    --photo-slot-accent: #b4234d;
}

.event-template-slots i[data-photo-slot-number="3"] {
    --photo-slot-color: #f2b84b;
    --photo-slot-accent: #946000;
}

.event-template-slots i[data-photo-slot-number="4"] {
    --photo-slot-color: #4f8df7;
    --photo-slot-accent: #1f4fa3;
}

.event-template-slots i[data-photo-slot-number="5"] {
    --photo-slot-color: #9565f2;
    --photo-slot-accent: #5731ad;
}

.event-template-slots i[data-photo-slot-number="6"] {
    --photo-slot-color: #61b56b;
    --photo-slot-accent: #247239;
}

.event-template-slots i[data-photo-slot-number="7"] {
    --photo-slot-color: #ff8a3d;
    --photo-slot-accent: #a74600;
}

.event-template-slots i[data-photo-slot-number="8"] {
    --photo-slot-color: #de5bc8;
    --photo-slot-accent: #8d277b;
}

.event-template-slots .photo-slot-frame {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .26), transparent 50%),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, .08) 0 8px, transparent 8px 24px);
}

.event-template-slots .photo-slot-frame::before {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 3px;
    content: "";
}

.event-template-slots .photo-slot-frame::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58%;
    height: 72%;
    border: 0;
    border-radius: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23071426' fill-opacity='.42'%3E%3Ccircle cx='60' cy='26' r='16'/%3E%3Cpath d='M43 52c8-8 26-8 34 0 8 17 12 44 10 73-2 14-7 21-15 21h-24c-8 0-13-7-15-21-2-29 2-56 10-73z'/%3E%3Cpath d='M36 62c-10 14-15 32-18 52l14 3c5-21 11-36 18-47zM84 70c7 11 13 26 18 47l14-3c-3-20-8-38-18-52z'/%3E%3Cpath d='M48 141h12v19H45zM60 141h12l3 19H63z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
    content: "";
    transform: translate(-50%, -50%);
}

.event-template-slots b {
    position: absolute;
    z-index: 2;
    right: clamp(8px, 5%, 18px);
    bottom: clamp(8px, 5%, 18px);
    display: grid;
    place-items: center;
    width: clamp(34px, 26%, 76px);
    height: clamp(34px, 26%, 76px);
    border: 2px solid rgba(255, 255, 255, .88);
    border-radius: 999px;
    background: var(--photo-slot-accent);
    box-shadow: 0 8px 20px rgba(7, 20, 38, .2);
    color: #fff;
    font-size: clamp(18px, 2.6rem, 48px);
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

.event-template-layers {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    flex: 1 1 auto;
    padding: 0;
    border: 1px solid rgba(216, 224, 234, .9);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.event-template-layers summary {
    display: none;
}

.event-template-layer-list {
    display: grid;
    align-content: start;
    gap: 7px;
    min-height: 0;
    overflow: auto;
    padding: 9px;
}

.event-template-layer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 9px;
    border: 1px solid rgba(216, 224, 234, .9);
    border-radius: 8px;
    background: #fff;
}

.event-template-layer.active {
    border-color: #11d6d0;
    background: #f7fffe;
    box-shadow: 0 0 0 1px rgba(17, 214, 208, .34);
}

.event-template-editor.has-selected-layer .event-template-layers {
    background: rgba(17, 214, 208, .05);
}

.event-template-editor.has-selected-layer .event-template-layer:not(.active) {
    cursor: pointer;
    background: #f8fafc;
}

.event-template-editor.has-selected-layer .event-template-layer:not(.active) .template-layer-group {
    display: none;
}

.event-template-layer-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.event-template-layer-head strong {
    min-width: 0;
    margin-right: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-template-layer-head span {
    color: #6b7280;
    font-size: 12px;
}

.event-template-layer-head button {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    min-height: 26px;
    padding: 0 6px;
    border: 1px solid rgba(216, 224, 234, .9);
    border-radius: 6px;
    background: #f8fafc;
    color: #071426;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
}

.event-template-layer-head button.danger {
    border-color: rgba(239, 68, 68, .25);
    color: #b91c1c;
}

.event-template-layer .wide-field {
    grid-column: 1 / -1;
}

.template-layer-group {
    display: grid;
    gap: 8px;
}

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

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

.template-layer-style label:nth-child(2) {
    grid-column: 1 / -1;
}

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

.event-template-layer[data-layer-type="photo"] .template-layer-style,
.event-template-layer[data-layer-type="image"] .template-layer-style {
    display: none;
}

.event-template-layer[data-layer-type="photo"] .template-layer-name,
.event-template-layer[data-layer-type="image"] .template-layer-name {
    display: none;
}

.event-template-layer label {
    display: grid;
    gap: 5px;
    min-width: 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
}

.event-template-layer input,
.event-template-layer select {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.template-inspector-actions {
    position: sticky;
    bottom: 0;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(216, 224, 234, .9);
    background: #fff;
}

.event-template-layer[hidden],
.event-template-editor[hidden],
[data-template-editor-edit-panel][hidden],
[data-template-editor-create-panel][hidden] {
    display: none !important;
}

.event-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 2px;
    color: #6b7280;
    font-size: 13px;
}

.event-card-foot strong {
    color: #0f766e;
    font-size: 13px;
}

.event-gallery-tile .event-card-title {
    display: grid;
    gap: 5px;
}

.event-gallery-tile .event-card-title strong {
    font-size: 16px;
}

.event-gallery-tile .event-card-date {
    white-space: normal;
}

.event-gallery-tile .event-card-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-gallery-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.event-list-stack .data-row {
    padding: 14px 14px 14px 16px;
}

.event-list-stack .event-card-title {
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.event-card-kpis {
    gap: 8px;
}

.event-kpi {
    min-height: 62px;
    padding: 10px;
    border: 1px solid rgba(216, 224, 234, .9);
    border-radius: 8px;
    background: #f8fafc;
}

.event-kpi strong {
    font-size: 17px;
}

.event-kpi span {
    margin-top: 4px;
}

.event-detail-column {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 12px;
}

.event-detail-column > h3 {
    margin: 0;
}

.event-detail-column .detail-card {
    padding: 16px;
}

.event-empty-state {
    min-height: 120px;
    align-content: center;
    border-style: dashed;
    background: #fff;
}

.event-empty-state strong {
    font-size: 16px;
}

@media (max-width: 1100px) {
    .hub-shell {
        width: min(1180px, 100% - 24px);
        grid-template-columns: 1fr;
    }

    .hub-app-shell > .hub-grid,
    .hub-app-shell > .impersonation-banner,
    .hub-app-shell > #hub-message {
        grid-column: 1;
    }

    .hub-sidebar {
        position: static;
        display: none;
    }

    .hub-main-panel .hub-tabs {
        display: flex;
    }

    .event-detail-column {
        position: static;
    }
}

@media (max-width: 900px) {
    .dashboard-focus,
    .dashboard-action-grid,
    .event-form-grid,
    .compact-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-flow-steps {
        grid-column: 1 / -1;
        grid-row: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .event-form-grid .wide-field {
        grid-column: 1 / -1;
    }

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

    .event-template-editor,
    .event-template-editor-fields {
        grid-template-columns: 1fr;
    }

    .event-template-modal.editor-fullscreen .hub-modal-panel {
        width: 100vw;
        max-height: 100vh;
    }

    .event-template-modal.editor-fullscreen .event-template-modal-body,
    .event-template-editor,
    .template-workbench {
        min-height: auto;
        max-height: none;
        height: auto;
    }

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

    .template-tool-rail {
        position: sticky;
        z-index: 2;
        top: 0;
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        padding: 10px;
        border-right: 0;
        border-bottom: 1px solid rgba(216, 224, 234, .95);
    }

    .template-tool-rail button {
        min-width: 78px;
        min-height: 62px;
    }

    .template-stage {
        padding: 14px;
    }

    .template-stage .event-template-preview {
        max-height: none;
        padding: 12px;
    }

    .template-inspector {
        max-height: none;
        border-left: 0;
        border-top: 1px solid rgba(216, 224, 234, .95);
    }

    .capture-layout-card,
    .capture-action-grid,
    .capture-countdown-list label {
        grid-template-columns: 1fr;
    }

    .capture-action-row {
        grid-column: auto;
    }

    .event-template-preview {
        min-height: 220px;
    }

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

    .event-workspace {
        grid-template-columns: 1fr;
    }

    .gallery-list,
    .event-card-kpis,
    .event-detail-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .feedback-form .wide-field {
        grid-column: auto;
    }

    .feedback-card-head {
        flex-direction: column;
    }

    .feedback-actions form,
    .feedback-admin {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .feedback-actions input,
    .feedback-admin input {
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .hub-shell {
        width: min(100% - 18px, 1180px);
        gap: 12px;
        padding-bottom: 88px;
    }

    .hub-hero,
    .hub-topbar {
        padding: 18px;
    }

    .hub-hero h1,
    .hub-topbar h1 {
        font-size: 34px;
    }

    .hub-hero .button,
    .hub-topbar .button {
        width: 100%;
    }

    .hub-topbar,
    .hub-topbar-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hub-account-menu summary {
        min-width: 0;
        width: 100%;
    }

    .hub-account-menu > div {
        left: 0;
        right: 0;
    }

    .impersonation-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .impersonation-banner .button {
        width: 100%;
    }

    .hub-main-panel {
        padding: 14px;
    }

    .hub-main-panel > .panel-heading {
        padding-bottom: 10px;
    }

    .hub-main-panel .hub-tabs {
        display: none;
    }

    .hub-mobile-dock {
        position: fixed;
        z-index: 60;
        left: 50%;
        bottom: max(12px, env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
        width: min(520px, calc(100vw - 18px));
        padding: 7px;
        border: 1px solid rgba(17, 214, 208, .22);
        border-radius: 8px;
        background: rgba(7, 20, 38, .96);
        box-shadow: 0 16px 44px rgba(7, 20, 38, .32);
        transform: translateX(-50%);
    }

    .hub-mobile-dock > button,
    .hub-mobile-nav summary {
        min-width: 0;
        min-height: 48px;
        border: 1px solid transparent;
        border-radius: 8px;
        background: rgba(255, 255, 255, .06);
        color: #dbe8f3;
        cursor: pointer;
    }

    .hub-mobile-dock > button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 6px;
        font: inherit;
        font-size: 12px;
        font-weight: 850;
        text-align: center;
    }

    .hub-mobile-dock > button.active {
        border-color: rgba(17, 214, 208, .55);
        background: #11d6d0;
        color: #071426;
    }

    .hub-mobile-nav.active summary {
        border-color: rgba(17, 214, 208, .55);
        background: #11d6d0;
        color: #071426;
    }

    .hub-mobile-nav.active summary strong {
        color: #071426;
    }

    .hub-mobile-nav.active summary span,
    .hub-mobile-nav.active summary span::before,
    .hub-mobile-nav.active summary span::after {
        background: #071426;
    }

    .hub-mobile-nav {
        position: static;
        display: block;
        min-width: 0;
    }

    .hub-mobile-nav summary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 5px;
        padding: 0 6px;
        list-style: none;
    }

    .hub-mobile-nav summary::-webkit-details-marker {
        display: none;
    }

    .hub-mobile-nav summary span,
    .hub-mobile-nav summary span::before,
    .hub-mobile-nav summary span::after {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: #11d6d0;
        content: "";
    }

    .hub-mobile-nav summary span {
        position: relative;
    }

    .hub-mobile-nav summary span::before {
        position: absolute;
        top: -6px;
    }

    .hub-mobile-nav summary span::after {
        position: absolute;
        top: 6px;
    }

    .hub-mobile-nav summary strong {
        color: #dbe8f3;
        font-size: 12px;
    }

    .hub-mobile-nav nav {
        position: fixed;
        left: 50%;
        bottom: calc(max(12px, env(safe-area-inset-bottom)) + 72px);
        width: min(520px, calc(100vw - 18px));
        max-height: min(68vh, 620px);
        overflow: auto;
        display: grid;
        gap: 10px;
        padding: 12px;
        border: 1px solid rgba(17, 214, 208, .22);
        border-radius: 8px;
        background: rgba(7, 20, 38, .98);
        box-shadow: 0 18px 48px rgba(7, 20, 38, .32);
        transform: translateX(-50%);
    }

    .hub-mobile-nav:not([open]) nav {
        display: none;
    }

    .hub-mobile-nav-title {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        align-items: center;
        color: #fff;
    }

    .hub-mobile-nav-title span {
        grid-column: 1;
        color: #11d6d0;
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .hub-mobile-nav-title strong {
        grid-column: 1;
        font-size: 14px;
    }

    .hub-mobile-nav-close {
        grid-column: 2;
        grid-row: 1 / span 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border: 1px solid rgba(255, 255, 255, .14);
        border-radius: 999px;
        background: rgba(255, 255, 255, .08);
        color: #fff;
        font: inherit;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }

    .hub-mobile-nav-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .hub-mobile-nav button {
        min-height: 44px;
        padding: 0 9px;
        border: 1px solid transparent;
        border-radius: 8px;
        background: rgba(255, 255, 255, .06);
        color: #dbe8f3;
        font: inherit;
        font-size: 13px;
        font-weight: 850;
        cursor: pointer;
        text-align: left;
    }

    .hub-mobile-nav button.active {
        border-color: rgba(17, 214, 208, .55);
        background: #11d6d0;
        color: #071426;
    }

    .dashboard-focus,
    .dashboard-action-grid,
    .event-form-grid,
    .compact-form,
    .event-quick-form,
    .health-strip,
    .event-guided-flow,
    .event-flow-card,
    .event-settings-grid,
    .event-policy-grid,
    .event-flow-steps {
        grid-template-columns: 1fr;
    }

    .ops-performance-grid {
        grid-template-columns: 1fr;
    }

    .event-form-grid .wide-field {
        grid-column: auto;
    }

    .event-form-grid .form-section.wide-field,
    .event-form-grid .form-summary.wide-field {
        grid-column: auto;
    }

    .event-form-grid .form-actions {
        min-height: 0;
    }

    .event-quick-form .button {
        width: 100%;
    }

    .event-action-strip {
        display: grid;
        grid-template-columns: 1fr;
    }

    .event-action-strip .button,
    .event-status-control {
        width: 100%;
        margin-left: 0;
    }

    .event-setting-list > div {
        grid-template-columns: 1fr;
    }

    .event-setting-list span {
        grid-column: auto;
    }

    .event-view {
        gap: 14px;
    }

    .event-view-head {
        padding-bottom: 10px;
    }

    .event-list-panel,
    .event-detail-column {
        padding: 0;
        border: 0;
        background: transparent;
    }

    .event-list-head {
        align-items: stretch;
        padding: 12px;
        border: 1px solid rgba(216, 224, 234, .95);
        border-radius: 8px;
        background: #f8fafc;
    }

    .event-filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .event-filter-bar .filter-chip {
        flex: 0 0 auto;
    }

    .event-list-summary {
        padding: 0 2px;
    }

    .event-list-stack .event-card {
        gap: 10px;
        padding: 13px 12px 13px 15px;
    }

    .event-list-stack .event-card-kpis {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 2px;
        scroll-snap-type: x proximity;
    }

    .event-list-stack .event-kpi {
        flex: 0 0 112px;
        min-height: 52px;
        scroll-snap-align: start;
    }

    .event-list-stack .event-kpi strong {
        font-size: 15px;
    }

    .event-list-stack .event-kpi span {
        font-size: 11px;
    }

    .section-head,
    .event-title-line {
        align-items: stretch;
        flex-direction: column;
    }

    .section-head {
        flex-direction: column;
    }

    .event-card-title {
        flex-direction: column;
    }

    .calendar-day-card,
    .calendar-box-card {
        padding: 13px;
    }

    .calendar-day-card .meta,
    .calendar-box-card .meta {
        gap: 6px;
    }

    .calendar-day-card .event-task,
    .calendar-box-card .event-task {
        grid-template-columns: 10px minmax(0, 1fr);
    }

    .calendar-day-card .event-task span:last-child,
    .calendar-box-card .event-task span:last-child {
        grid-column: 2;
    }

    .gallery-list,
    .gallery-card-main,
    .event-detail-summary,
    .event-overview-next {
        grid-template-columns: 1fr;
    }

    .event-detail-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .event-detail-nav button {
        flex: 0 0 auto;
    }

    .gallery-public-shell {
        gap: 12px;
    }

    .gallery-public-hero {
        padding: 18px;
    }

    .gallery-public-hero h1 {
        font-size: 36px;
    }

    .gallery-tabs {
        justify-self: stretch;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .gallery-tabs .tab {
        flex: 1 0 auto;
        text-align: center;
    }

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

    .gallery-photo-card {
        padding: 8px;
    }

    .gallery-photo-card small {
        font-size: 11px;
    }

    .gallery-upload-card {
        padding: 13px;
    }

    .gallery-card-main {
        flex-direction: column;
    }

    .box-health-grid {
        grid-template-columns: 1fr;
    }

    .status-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .status-summary,
    .status-row {
        grid-template-columns: 1fr;
    }

    .status-percent {
        text-align: left;
    }

    .mini-bars .bar span {
        height: 18px;
    }

    .bars .bar span {
        height: 24px;
    }
}

@media (max-width: 680px) {
    .event-template-modal.editor-fullscreen {
        align-items: stretch;
        padding: 0;
    }

    .event-template-modal.editor-fullscreen .hub-modal-panel {
        width: 100vw;
        height: 100dvh;
        max-height: none;
        border: 0;
        border-radius: 0;
    }

    .template-editor-topbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
        min-height: 56px;
        padding: 8px 10px;
    }

    .template-editor-topbar div span {
        display: none;
    }

    .template-editor-topbar .button {
        min-height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    .event-template-modal.editor-fullscreen .event-template-modal-body {
        height: calc(100dvh - 56px);
        max-height: calc(100dvh - 56px);
        padding: 0;
        overflow: hidden;
        background: #eef3f7;
    }

    .event-template-editor-stack {
        display: block;
    }

    .template-workbench {
        position: relative;
        display: flex;
        flex-direction: column;
        min-height: calc(100dvh - 56px);
        height: calc(100dvh - 56px);
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        overflow: hidden;
    }

    .template-stage {
        order: 1;
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        padding: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
        place-items: center;
        touch-action: pan-x pan-y;
    }

    .template-selection-bar {
        top: 10px;
        right: 10px;
        left: 10px;
        justify-content: center;
        max-width: none;
        padding: 7px;
        transform: none;
    }

    .template-selection-bar > div {
        min-width: 0;
        max-width: none;
        flex: 1 1 auto;
    }

    .template-selection-bar span {
        display: none;
    }

    .template-selection-bar button {
        min-width: 34px;
        height: 34px;
        padding: 0 9px;
    }

    .template-stage .event-template-preview {
        width: min(100%, 390px);
        min-width: 0;
        max-width: 100%;
        min-height: 0;
        height: auto;
        padding: 14px;
        box-sizing: border-box;
    }

    .event-template-modal.editor-fullscreen .event-template-preview .event-template-canvas {
        width: min(72vw, 300px);
    }

    .event-template-modal.editor-fullscreen .event-template-preview .event-template-canvas.landscape {
        width: min(88vw, 360px);
    }

    .event-template-modal.editor-fullscreen .event-template-preview .event-template-canvas.strip {
        width: min(44vw, 180px);
    }

    .template-tool-rail {
        order: 2;
        position: sticky;
        z-index: 4;
        top: auto;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(64px, 1fr));
        gap: 7px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        border-top: 1px solid rgba(216, 224, 234, .95);
        border-right: 0;
        border-bottom: 0;
        background: rgba(7, 20, 38, .96);
        box-shadow: 0 -14px 30px rgba(7, 20, 38, .18);
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }

    .template-tool-rail button {
        min-width: 64px;
        min-height: 56px;
        padding: 6px 4px;
        border-color: rgba(255, 255, 255, .08);
        background: rgba(255, 255, 255, .06);
        color: #dbe8f3;
        font-size: 11px;
    }

    .template-tool-rail button span {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .template-tool-rail button:hover,
    .template-tool-rail button.active {
        border-color: rgba(17, 214, 208, .64);
        background: rgba(17, 214, 208, .16);
        box-shadow: none;
    }

    .event-template-modal.editor-fullscreen .template-inspector.event-template-editor-fields {
        order: 3;
        position: fixed;
        z-index: 6;
        right: 10px;
        bottom: calc(78px + env(safe-area-inset-bottom));
        left: 10px;
        display: none;
        width: auto;
        max-width: none;
        max-height: min(44dvh, 360px);
        min-width: 0;
        overflow: auto;
        padding: 10px;
        box-sizing: border-box;
        border: 1px solid rgba(17, 214, 208, .45);
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 20px 50px rgba(7, 20, 38, .22);
    }

    .event-template-modal.editor-fullscreen .event-template-editor.show-layer-list .template-inspector.event-template-editor-fields {
        display: flex;
    }

    .template-inspector-section {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }

    .template-inspector-head {
        display: none;
    }

    .event-template-editor-fields label {
        gap: 5px;
        font-size: 12px;
    }

    .event-template-editor-fields input,
    .event-template-editor-fields select {
        min-height: 38px;
        padding: 0 9px;
        font-size: 14px;
    }

    .event-template-layers {
        padding: 10px;
    }

    .event-template-layer {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 9px;
    }

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

    .template-layer-position label:last-child {
        grid-column: 1 / -1;
    }

    .template-layer-style {
        grid-template-columns: 1fr;
    }

    .event-template-layer-head {
        gap: 6px;
    }

    .event-template-layer-head strong {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .event-template-layer-head span {
        display: none;
    }

    .template-layer-resize-handle,
    .template-layer-rotate-handle {
        width: 22px;
        height: 22px;
        border-width: 3px;
    }

    .template-layer-resize-handle::before,
    .template-layer-rotate-handle::before {
        inset: -16px;
    }

    .template-layer-resize-handle.handle-nw {
        top: -14px;
        left: -14px;
    }

    .template-layer-resize-handle.handle-ne {
        top: -14px;
        right: -14px;
    }

    .template-layer-resize-handle.handle-sw {
        bottom: -14px;
        left: -14px;
    }

    .template-layer-resize-handle.handle-se {
        right: -14px;
        bottom: -14px;
    }

    .template-layer-rotate-handle {
        top: -36px;
        width: 22px;
        height: 22px;
    }

    .template-layer-rotate-handle::after {
        top: 20px;
        height: 16px;
    }

    .event-template-layer-head button {
        min-width: 32px;
        min-height: 32px;
        padding: 0 8px;
    }
}
