.admin-theme {
    --lte-sidebar-width: 248px;
    background: #f1f5fa;
    color: #14294a;
}

.admin-theme .app-main { min-width: 0; background: #f1f5fa; }
.admin-theme .admin-main { width: min(1320px, calc(100% - clamp(28px, 6vw, 64px))); padding-top: clamp(24px, 4vw, 42px); }
.admin-theme .admin-main h1 { font: 750 clamp(1.75rem, 3vw, 2.55rem)/1.15 "Segoe UI", system-ui, sans-serif; letter-spacing: -.025em; }
.admin-theme .panel { border-radius: 10px; }
.admin-theme .app-header { min-height: 64px; border-bottom: 1px solid #d8e3f2; }
.admin-topbar { display: flex; flex-wrap: nowrap !important; gap: 12px; padding-inline: clamp(14px, 3vw, 30px); }
.admin-topbar-title { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.admin-menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid #758ba9;
    border-radius: 8px;
    color: #153e85;
    background: #fff;
    font-size: 1.2rem;
}
.admin-menu-toggle:hover { background: #eef4ff; }
.admin-sidebar[data-bs-theme="dark"] {
    --lte-sidebar-color: #d9e6f8;
    --lte-sidebar-hover-color: #fff;
    --lte-sidebar-hover-bg: #1e416e;
    --lte-sidebar-menu-active-color: #fff;
    --lte-sidebar-menu-active-bg: #2054a3;
    background: #102d55;
}
.admin-sidebar .sidebar-brand {
    justify-content: flex-start;
    height: 64px;
    padding: 0 18px;
    border-bottom-color: #385072;
}
.admin-sidebar .brand-link { width: 100%; gap: 11px; color: #fff; }
.admin-brand-mark { display: grid; place-items: center; width: 50px; height: 34px; flex: 0 0 50px; background: #fff; border-radius: 6px; }
.admin-brand-mark img { object-fit: contain; }
.admin-sidebar .brand-text { margin: 0; font-size: 1rem; line-height: 1.15; color: #fff; }
.admin-sidebar .brand-text small { display: block; margin-top: 3px; font-size: .73rem; color: #cbd9ee; }
.admin-sidebar .sidebar-wrapper { padding: 16px 12px; }
.admin-sidebar .sidebar-menu { padding: 0; gap: 3px; }
.admin-sidebar .sidebar-menu .nav-header {
    padding: 0 6px 6px;
    color: #b8c9e3;
    font-size: .7rem;
    letter-spacing: .055em;
    text-transform: uppercase;
    font-weight: 700;
}
.admin-sidebar .sidebar-menu .nav-section-divider { margin-top: 13px; padding-top: 14px; border-top: 1px solid #385072; }
.admin-sidebar .sidebar-menu .nav-link { align-items: center; min-height: 44px; margin: 0; padding: 6px 8px; gap: 10px; border-radius: 6px; font-size: .9rem; }
.admin-sidebar .sidebar-menu .nav-link.active { box-shadow: inset 3px 0 #9fc6ff; font-weight: 700; }
.admin-sidebar .sidebar-menu .nav-icon {
    display: grid;
    place-items: center;
    flex: 0 0 27px;
    min-width: 27px;
    max-width: 27px;
    height: 26px;
    margin: 0;
    border: 1px solid #537299;
    border-radius: 5px;
    color: #d9e6f8;
    font: 700 .88rem/1 ui-monospace, monospace;
}
.admin-sidebar .nav-link.active .nav-icon { border-color: #9fc6ff; color: #fff; }
.admin-sidebar .nav-link:focus-visible, .admin-sidebar .brand-link:focus-visible { outline-color: #c3dcff; outline-offset: -3px; }
.admin-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.admin-stat { margin: 0; padding: clamp(10px, 2vw, 18px); border: 1px solid #d8e3f2; border-radius: 10px; color: #14294a; background: #fff; }
.admin-stat dt { color: #4c6079; font-size: .86rem; font-weight: 650; }
.admin-stat dd { margin: 2px 0 0; color: #15478d; font-size: clamp(1.5rem, 4vw, 2.15rem); font-weight: 750; line-height: 1.15; }
@media (min-width: 43rem) { .admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.admin-login { display: grid; place-items: center; min-height: 100dvh; }
.admin-login .admin-main { flex: none; }
.admin-login-logo { display: block; object-fit: contain; margin-bottom: 18px; }
.admin-login .back-link { margin-top: 10px; }

.event-page-heading { align-items: flex-end; margin-bottom: 22px; }
.event-page-heading h1 { margin-bottom: 4px; }
.event-page-heading p { color: var(--muted); font-size: .9rem; }
.admin-theme .event-directory { padding: 0; overflow: hidden; }
.event-table { min-width: 0; }
.event-table :is(th, td) { padding: 14px clamp(12px, 1.55vw, 24px); }
.event-table thead { background: #f2f6fc; color: #3e5470; }
.event-table thead th { font-size: .83rem; font-weight: 700; white-space: nowrap; }
.event-table tbody tr:hover, .event-table tbody tr:focus-within { background: #f7faff; }
.event-name { display: block; line-height: 1.35; }
.event-table .event-prefix { margin-top: 4px; font: 500 .76rem/1.4 ui-monospace, monospace; }
.event-table time { white-space: nowrap; }
.event-table .event-number { text-align: right; font-variant-numeric: tabular-nums; }
.event-table .event-action { text-align: right; }
.event-action .button { min-height: 44px; white-space: nowrap; }
.event-mobile-label { display: none; }
.event-directory .pagination { margin: 0; padding: 6px 14px; border-top: 1px solid var(--line); }
.event-empty { padding: 24px; color: var(--muted); }
@media (max-width: 48rem), (min-width: 62rem) and (max-width: 68rem) {
    .event-table, .event-table tbody { display: block; }
    .event-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .event-table tbody tr { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.55fr) auto; gap: 12px 8px; padding: 16px; border-bottom: 1px solid var(--line); }
    .event-table tbody tr:last-child { border-bottom: 0; }
    .event-table tbody :is(td, th) { padding: 0; border: 0; }
    .event-table tbody th, .event-table .event-action { grid-column: 1 / -1; }
    .event-table time { white-space: normal; }
    .event-mobile-label { display: block; margin-bottom: 3px; color: var(--muted); font-size: .73rem; font-weight: 650; }
}
