/* Library Week — Admin panel */
:root {
    --m2-bg: #f9faff;
    --adm-navy: #12114a;
    --adm-accent: #f20487;
}

.adm-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--adm-navy);
    box-shadow: 0 2px 16px rgba(18, 17, 74, 0.2);
}

.adm-topbar__inner {
    width: min(1200px, 94vw);
    margin: 0 auto;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.adm-topbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.adm-topbar__brand img {
    height: 44px;
    width: auto;
}

.adm-topbar__user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.9);
    font-size: 0.88rem;
}

.adm-btn--sm {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
}

.adm-body {
    margin: 0;
    background: var(--m2-bg);
}

.adm-flash {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.92rem;
}

.adm-page {
    font-family: 'IBM Plex Sans Thai', 'Sarabun', sans-serif;
    background: var(--m2-bg, #f9faff);
    min-height: 100vh;
    padding: 24px 0 64px;
}

.adm-container {
    width: min(1200px, 94vw);
    margin: 0 auto;
}

.adm-nav {
    margin-bottom: 28px;
    padding: 14px 16px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(18, 17, 74, 0.06);
    border: 1px solid #e8ecf4;
}

.adm-nav__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef1f7;
}

.adm-nav__title {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a93a8;
}

.adm-nav__home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    color: #5c6378;
    background: #f4f6fb;
    transition: background 0.2s, color 0.2s;
}

.adm-nav__home:hover {
    background: #e8ecf4;
    color: #12114a;
}

.adm-nav__menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 8px;
}

.adm-nav__hint {
    grid-column: 1 / -1;
    margin: 0;
    padding: 12px 14px;
    font-size: 0.88rem;
    color: #5c6478;
    background: #f8f9fc;
    border-radius: 10px;
    border: 1px dashed #d8dce8;
}

.adm-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2d3348;
    background: #f8f9fc;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.adm-nav__icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(18, 17, 74, 0.07);
    color: #12114a;
    font-size: 0.88rem;
}

.adm-nav__text {
    line-height: 1.35;
}

.adm-nav__link:hover {
    background: #fff;
    border-color: #d8deea;
    box-shadow: 0 2px 8px rgba(18, 17, 74, 0.05);
}

.adm-nav__link.is-active {
    background: #12114a;
    color: #fff;
    border-color: #12114a;
    box-shadow: 0 4px 14px rgba(18, 17, 74, 0.18);
}

.adm-nav__link.is-active .adm-nav__icon {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

@media (max-width: 640px) {
    .adm-nav__menu {
        grid-template-columns: 1fr;
    }

    .adm-settings-backup__layout {
        flex-direction: column;
        align-items: stretch;
    }

    .adm-settings-backup__aside {
        width: 100%;
    }

    .adm-settings-backup__btn {
        width: 100%;
    }
}

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

.adm-page-head h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #12114a;
    margin: 0 0 6px;
}

.adm-page-head p {
    color: #5c6378;
    margin: 0;
    font-size: 0.95rem;
}

.adm-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.adm-stat {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 12px rgba(18, 17, 74, 0.06);
    border: 2px solid transparent;
    text-align: inherit;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font: inherit;
    color: inherit;
    cursor: default;
}

.adm-stat--filter {
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.adm-stat--filter:hover {
    border-color: rgba(18, 17, 74, 0.12);
    box-shadow: 0 6px 20px rgba(18, 17, 74, 0.1);
    transform: translateY(-1px);
}

.adm-stat--filter.is-active {
    border-color: var(--adm-stat-accent, #12114a);
    box-shadow: 0 8px 24px rgba(18, 17, 74, 0.14);
}

.adm-stat--filter.adm-stat--navy {
    --adm-stat-accent: #12114a;
    --adm-stat-bg: #eef0fa;
    background: var(--adm-stat-bg);
}

.adm-stat--filter.adm-stat--success {
    --adm-stat-accent: #1a8f4a;
    --adm-stat-bg: #e8f8ee;
    background: var(--adm-stat-bg);
}

.adm-stat--filter.adm-stat--info {
    --adm-stat-accent: #1a6fb5;
    --adm-stat-bg: #e8f3fc;
    background: var(--adm-stat-bg);
}

.adm-stat--filter.adm-stat--warning {
    --adm-stat-accent: #c97a0a;
    --adm-stat-bg: #fff5e6;
    background: var(--adm-stat-bg);
}

.adm-stat--filter.adm-stat--danger {
    --adm-stat-accent: #c62828;
    --adm-stat-bg: #fdecec;
    background: var(--adm-stat-bg);
}

.adm-stat.adm-stat--navy,
.adm-stat.adm-stat--success,
.adm-stat.adm-stat--info,
.adm-stat.adm-stat--warning,
.adm-stat.adm-stat--danger {
    position: relative;
}

.adm-stat.adm-stat--navy {
    --adm-stat-accent: #12114a;
    --adm-stat-bg: #eef0fa;
    background: var(--adm-stat-bg);
}

.adm-stat.adm-stat--success {
    --adm-stat-accent: #1a8f4a;
    --adm-stat-bg: #e8f8ee;
    background: var(--adm-stat-bg);
}

.adm-stat.adm-stat--info {
    --adm-stat-accent: #1a6fb5;
    --adm-stat-bg: #e8f3fc;
    background: var(--adm-stat-bg);
}

.adm-stat.adm-stat--warning {
    --adm-stat-accent: #c97a0a;
    --adm-stat-bg: #fff5e6;
    background: var(--adm-stat-bg);
}

.adm-stat.adm-stat--danger {
    --adm-stat-accent: #c62828;
    --adm-stat-bg: #fdecec;
    background: var(--adm-stat-bg);
}

.adm-stat[class*="adm-stat--"] .adm-stat__value {
    color: var(--adm-stat-accent);
}

.adm-stat__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--adm-stat-accent, #12114a);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.adm-stat--filter[class*="adm-stat--"] .adm-stat__value {
    color: var(--adm-stat-accent);
}

.adm-stat--filter[class*="adm-stat--"].is-active {
    background: #fff;
}

.adm-toolbar__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: flex-end;
}

.adm-stat__value {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: #12114a;
    line-height: 1.2;
    word-break: break-word;
}

.adm-stat__label {
    font-size: 0.82rem;
    color: #5c6378;
    margin-top: 4px;
}

.adm-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 24px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(18, 17, 74, 0.06);
}

.adm-toolbar__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 2;
    min-width: 280px;
}

.adm-toolbar__search {
    flex: 1;
    min-width: 200px;
}

.adm-toolbar__actions {
    flex-shrink: 0;
    margin-left: auto;
    display: flex;
    align-items: flex-end;
}

.adm-toolbar__group {
    flex: 1;
    min-width: 160px;
}

.adm-toolbar__group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #5c6378;
    margin-bottom: 6px;
}

.adm-toolbar select,
.adm-toolbar input[type="search"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e6f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.92rem;
    background: #fff;
}

.adm-toolbar select:focus,
.adm-toolbar input:focus {
    outline: none;
    border-color: #12114a;
    box-shadow: 0 0 0 3px rgba(18, 17, 74, 0.08);
}

.adm-event-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.adm-event-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(18, 17, 74, 0.07);
    overflow: hidden;
    border: 1px solid rgba(18, 17, 74, 0.06);
}

.adm-event-card__main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
    padding: 20px 24px;
    align-items: start;
}

.adm-event-card__content {
    min-width: 0;
}

.adm-event-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #12114a;
    margin: 0 0 8px;
    line-height: 1.35;
    word-break: break-word;
}

.adm-event-card__poster {
    width: 140px;
    min-height: 180px;
    border-radius: 12px;
    background: #f4f6fc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    align-self: stretch;
}

.adm-event-card__poster a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.adm-event-card__poster img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    object-position: center top;
}

.adm-event-card__poster--icon {
    width: 72px;
    height: 72px;
    min-height: 0;
    object-fit: contain;
    padding: 12px;
}

.adm-event-card__poster-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 180px;
    color: #9aa3b8;
    font-size: 2rem;
}

.adm-event-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #f4f6fc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.adm-event-card__icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.adm-event-card__order {
    font-size: 0.75rem;
    color: #5c6378;
    margin-bottom: 4px;
}

.adm-event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 0.86rem;
    color: #5c6378;
    margin-bottom: 10px;
}

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

.adm-event-card__detail {
    font-size: 0.84rem;
    color: #5c6378;
    line-height: 1.5;
}

.adm-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    min-width: 140px;
}

.adm-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.adm-badge i {
    font-size: 0.85em;
    line-height: 1;
}

.adm-badge--ok { background: #e8f5e9; color: #2e7d32; }
.adm-badge--off { background: #fce4ec; color: #c62828; }
.adm-badge--info { background: #e3f2fd; color: #1565c0; }

.adm-event-card__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 24px 16px;
    border-top: 1px solid #f0f2f8;
}

.adm-action-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.adm-action-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #5c6378;
    min-width: 48px;
}

.adm-action-label i {
    color: #12114a;
    opacity: 0.55;
    font-size: 0.9em;
}

.adm-event-card__meta i {
    color: #12114a;
    opacity: 0.55;
    width: 14px;
    text-align: center;
}

.adm-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-basis: 100%;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed #e8ecf4;
}

.adm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s, transform 0.15s;
    white-space: nowrap;
}

.adm-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.adm-btn i {
    font-size: 0.92em;
    line-height: 1;
}

.adm-btn--primary { background: #12114a; color: #fff; }
.adm-btn--accent { background: #f20487; color: #fff; }
.adm-btn--success { background: #2e7d32; color: #fff; }
.adm-btn--danger { background: #c62828; color: #fff; }
.adm-btn--outline { background: #fff; color: #12114a; border: 1.5px solid #e2e6f0; }

.adm-topbar .adm-btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.45);
}
.adm-btn--ghost {
    background: #fff;
    color: #2d3348;
    border: 1px solid #d5dbe8;
    gap: 7px;
    box-shadow: 0 1px 2px rgba(18, 17, 74, 0.04);
}

.adm-btn--ghost:hover {
    background: #f8f9fd;
    border-color: #b8c2d6;
}

.adm-btn--ghost i {
    font-size: 0.95em;
    line-height: 1;
}

.adm-btn--ghost-file i { color: #c62828; }
.adm-btn--ghost-image i { color: #1565c0; }
.adm-btn--ghost-page i { color: #12114a; }
.adm-btn--ghost-export i { color: #1a8f4a; }

.adm-event-card__registrants-limit {
    color: #8a92a8;
    font-weight: 500;
}
.adm-btn--ghost-cert i { color: #c97a0a; }

.adm-btn--back {
    flex-shrink: 0;
    gap: 8px;
    white-space: nowrap;
}

.adm-link-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #2d3348;
    text-decoration: none;
}

.adm-link-icon:hover {
    text-decoration: underline;
}

.adm-link-icon i {
    font-size: 0.95em;
}

.adm-link-icon--file i { color: #c62828; }
.adm-link-icon--image i { color: #1565c0; }

.adm-event-card__edit {
    display: none;
    padding: 20px 24px 24px;
    background: #f9faff;
    border-top: 1px solid #e8ecf4;
}

.adm-event-card__edit.is-open { display: block; }

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

.adm-form-grid .adm-field {
    grid-column: span 12;
    min-width: 0;
}

.adm-form-grid .adm-field--2 { grid-column: span 2; }
.adm-form-grid .adm-field--3 { grid-column: span 3; }
.adm-form-grid .adm-field--4 { grid-column: span 4; }
.adm-form-grid .adm-field--6,
.adm-form-grid .adm-field--md { grid-column: span 6; }
.adm-form-grid .adm-field--8,
.adm-form-grid .adm-field--lg { grid-column: span 8; }
.adm-form-grid .adm-field--9 { grid-column: span 9; }
.adm-form-grid .adm-field--10 { grid-column: span 10; }
.adm-form-grid .adm-field--12,
.adm-form-grid .adm-field--full { grid-column: span 12; }
.adm-form-grid .adm-field--sm { grid-column: span 4; }

.adm-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #5c6378;
    margin-bottom: 5px;
}

.adm-field input[type="text"],
.adm-field input[type="email"],
.adm-field input[type="url"],
.adm-field input[type="number"],
.adm-field input[type="password"],
.adm-field input[type="file"],
.adm-field select,
.adm-field textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #e2e6f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    background: #fff;
}

.adm-field textarea {
    line-height: 1.55;
    resize: vertical;
    min-height: 44px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.adm-field textarea.adm-textarea--fit {
    resize: none;
    overflow: hidden;
    field-sizing: content;
}

.adm-field input.is-invalid {
    border-color: #c62828;
    background: #fff8f8;
}

.adm-field__error {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: #c62828;
}

.adm-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8ecf4;
}

.adm-empty {
    text-align: center;
    padding: 48px 24px;
    color: #5c6378;
    background: #fff;
    border-radius: 12px;
}

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

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

.adm-stat.adm-stat--purple {
    background: #f3eefb;
}

.adm-stat.adm-stat--purple .adm-stat__icon {
    color: #6a1b9a;
}

.adm-stat__hint {
    margin: 8px 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #5c6378;
}

.adm-registrants__footer-note {
    font-size: 0.88rem;
    color: #5c6378;
    font-weight: 500;
}

.adm-detail-list__coordinator {
    margin-bottom: 4px;
}

.adm-panel {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 16px rgba(18, 17, 74, 0.07);
    border: 1px solid rgba(18, 17, 74, 0.06);
}

.adm-panel__title {
    margin: 0 0 16px;
    font-size: 1.1rem;
    color: #12114a;
}

.adm-req { color: #c62828; }

.adm-speaker-card__photo {
    width: 88px;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    background: #f4f6fc;
    flex-shrink: 0;
}

.adm-speaker-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adm-staff-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #12114a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.adm-staff-card__logo {
    min-height: 110px;
}

.adm-staff-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 8px;
}

.adm-staff-events {
    margin-bottom: 8px;
}

.adm-checklist--cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
}

@media (max-width: 575px) {
    .adm-checklist--cols {
        grid-template-columns: 1fr;
    }
}

.adm-img-preview {
    max-width: 120px;
    max-height: 120px;
    margin-top: 8px;
    border-radius: 8px;
    object-fit: cover;
}

/* Card grid — partner & speaker, 3 per row */
.adm-partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.adm-partner-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(18, 17, 74, 0.06);
    border: 1px solid rgba(18, 17, 74, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.adm-partner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(18, 17, 74, 0.1);
}

.adm-partner-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 16px;
    background: #f4f6fc;
    border-radius: 10px;
}

.adm-partner-card__logo img {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
}

.adm-partner-card__order {
    font-size: 0.75rem;
    color: #5c6378;
}

.adm-partner-card__title {
    margin: 4px 0 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #12114a;
    line-height: 1.4;
}

.adm-partner-card__url {
    font-size: 0.8rem;
    color: #5c6378;
    word-break: break-all;
    line-height: 1.4;
}

.adm-partner-card__url i {
    margin-right: 4px;
}

.adm-partner-card__meta {
    font-size: 0.8rem;
    color: #5c6378;
    line-height: 1.45;
    margin-bottom: 8px;
}

.adm-partner-card__meta span {
    display: block;
    margin-bottom: 4px;
}

.adm-partner-card__meta i {
    margin-right: 6px;
    width: 14px;
    text-align: center;
}

.adm-partner-card__logo--portrait {
    min-height: 160px;
    padding: 0;
    overflow: hidden;
}

.adm-partner-card__logo--portrait img {
    width: 100%;
    height: 160px;
    max-height: none;
    object-fit: cover;
    object-position: center top;
}

.adm-speaker-card .adm-partner-card__logo--portrait {
    min-height: 280px;
    border-radius: 12px;
    background: linear-gradient(180deg, #eef0f8 0%, #e2e6f2 100%);
}

.adm-speaker-card .adm-partner-card__logo--portrait img {
    height: 280px;
    min-height: 280px;
    object-fit: cover;
    object-position: center 18%;
    transition: transform 0.25s ease;
}

.adm-speaker-card:hover .adm-partner-card__logo--portrait img {
    transform: scale(1.02);
}

.adm-partner-card__actions--2 {
    grid-template-columns: repeat(2, 1fr);
}

.adm-partner-card__actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #e8ecf4;
}

.adm-partner-card__actions .adm-btn {
    min-width: 0;
    font-size: 0.82rem;
    padding: 8px 10px;
    text-align: center;
}

/* Admin modal */
.adm-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.adm-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.adm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 17, 74, 0.55);
    backdrop-filter: blur(4px);
}

.adm-modal__dialog {
    position: relative;
    width: min(520px, 100%);
    max-height: min(90vh, 820px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(18, 17, 74, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.adm-modal.is-open .adm-modal__dialog {
    transform: translateY(0) scale(1);
}

.adm-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 18px;
    background: linear-gradient(135deg, #12114a 0%, #2a2878 100%);
    color: #fff;
    flex-shrink: 0;
}

.adm-modal__head-text {
    flex: 1;
    min-width: 0;
}

.adm-modal__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ff8ec9;
    margin-bottom: 6px;
}

.adm-modal__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
}

.adm-modal__subtitle {
    margin: 6px 0 0;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.45;
}

.adm-modal__close {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.adm-modal__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.adm-modal__dialog > form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.adm-modal__body {
    padding: 22px 24px 8px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.adm-modal__form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

.adm-modal__form-grid--nested {
    padding-top: 4px;
}

.adm-modal__section-title {
    margin: 18px 0 12px;
    padding-top: 6px;
    border-top: 1px solid #e8ebf3;
    font-size: 0.92rem;
    font-weight: 700;
    color: #12114a;
}

.adm-modal__section-title:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.adm-modal__file-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f4f6fc;
    font-size: 0.88rem;
}

.adm-modal__file-note a {
    color: #12114a;
    font-weight: 600;
}

.adm-modal .adm-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #5c6378;
    margin-bottom: 6px;
}

.adm-modal .adm-field input[type="text"],
.adm-modal .adm-field input[type="url"],
.adm-modal .adm-field input[type="email"],
.adm-modal .adm-field input[type="number"],
.adm-modal .adm-field select,
.adm-modal .adm-field textarea {
    padding: 11px 14px;
    border: 1.5px solid #e2e6f0;
    border-radius: 10px;
    font-size: 0.92rem;
    background: #fafbff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.adm-modal .adm-field textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.adm-modal .adm-field input:focus,
.adm-modal .adm-field select:focus,
.adm-modal .adm-field textarea:focus {
    outline: none;
    border-color: #12114a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(18, 17, 74, 0.08);
}

.adm-modal__upload {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 14px;
    align-items: stretch;
}

.adm-modal__upload-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    padding: 16px;
    border: 1.5px dashed #d5dbe8;
    border-radius: 12px;
    background: linear-gradient(180deg, #fafbff 0%, #f4f6fc 100%);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.adm-modal__upload-field:hover {
    border-color: #12114a;
    background: #fff;
}

.adm-modal__upload-field input[type="file"] {
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 0.82rem;
    color: #5c6378;
}

.adm-modal__upload-hint {
    margin-top: 8px;
    font-size: 0.76rem;
    color: #8a92a6;
    line-height: 1.4;
}

.adm-modal__logo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 14px;
    border-radius: 12px;
    background: #f4f6fc;
    border: 1px solid #e8ecf4;
}

.adm-modal__logo-preview img {
    max-width: 100%;
    max-height: 96px;
    object-fit: contain;
}

.adm-modal__logo-preview--empty {
    font-size: 0.78rem;
    color: #8a92a6;
    text-align: center;
    line-height: 1.4;
}

.adm-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 22px;
    background: #f9faff;
    border-top: 1px solid #e8ecf4;
    flex-shrink: 0;
}

.adm-modal__footer .adm-btn {
    min-width: 108px;
    padding: 11px 18px;
    border-radius: 10px;
    font-weight: 600;
}

.adm-modal__footer .adm-btn--primary {
    box-shadow: 0 4px 16px rgba(18, 17, 74, 0.22);
}

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

.adm-modal__dialog--event {
    width: min(960px, calc(100vw - 24px));
    max-height: min(92vh, 900px);
}

.adm-modal__body--tabs {
    padding-top: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.adm-event-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.adm-event-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 20px 0;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 2;
}

.adm-event-tabs__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.adm-event-tabs__btn i {
    font-size: 0.95rem;
    opacity: 0.85;
}

.adm-event-tabs__btn:hover {
    color: #12114a;
    background: rgba(255, 255, 255, 0.7);
}

.adm-event-tabs__btn.is-active {
    color: #12114a;
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 -1px 0 #fff inset;
}

.adm-event-panels {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    min-height: 280px;
    max-height: min(58vh, 560px);
}

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

.adm-event-panel.is-active {
    display: block;
}

.adm-event-cert-intro {
    margin: 0 0 12px;
}

@media (max-width: 720px) {
    .adm-event-tabs__btn span {
        display: none;
    }

    .adm-event-tabs__btn {
        padding: 10px 12px;
    }

    .adm-event-panels {
        max-height: 52vh;
    }
}

.adm-modal__section-title {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8ecf4;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #12114a;
}

.adm-modal__photo-preview {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 10px;
}

.adm-modal__photo-preview--icon {
    max-height: 96px;
    object-fit: contain;
    padding: 8px;
    background: #f4f6fc;
}

.adm-modal__logo-preview a {
    display: block;
    line-height: 0;
}

.adm-modal__logo-preview a:hover img {
    opacity: 0.9;
}

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

@media (max-width: 640px) {
    .adm-modal__form-grid {
        grid-template-columns: 1fr;
    }

    .adm-modal__upload {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .adm-partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .adm-partner-grid {
        grid-template-columns: 1fr;
    }
}

.adm-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #f9faff;
    border-radius: 8px;
    border: 1px solid #e8ecf4;
}

.adm-checklist--scroll {
    max-height: 200px;
    overflow-y: auto;
}

.adm-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    color: #2d3348;
    cursor: pointer;
}

.adm-check input {
    margin-top: 3px;
}

.adm-check--event {
    align-items: flex-start;
}

.adm-check__event-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.adm-check__event-title {
    line-height: 1.45;
}

.adm-check__event-status {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.adm-check__event-status .adm-badge {
    font-size: 0.68rem;
    padding: 2px 8px;
}

.adm-field__hint {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: #8a92a8;
}

.adm-field .cke {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d8deea;
}

.adm-field .cke_top {
    background: #f7f9fc;
    border-bottom: 1px solid #e8ecf4;
}

.adm-field .cke_bottom {
    background: #f7f9fc;
    border-top: 1px solid #e8ecf4;
}

.adm-settings-preview {
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8ecf4;
}

.adm-settings-preview .adm-panel__title {
    margin-bottom: 12px;
}

.adm-settings-mail__intro {
    margin: -8px 0 16px;
}

.adm-settings-mail__env-note {
    margin: 0 0 16px;
    font-size: 0.88rem;
}

.adm-settings-mail-content__title {
    margin: 24px 0 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #1a2b4a;
}

.adm-settings-mail-content__intro {
    margin: 0 0 12px;
}

.adm-settings-mail-content__intro code {
    font-size: 0.85em;
    padding: 1px 5px;
    border-radius: 4px;
    background: #f0f4f8;
    color: #334155;
}

.adm-cert-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 120px;
}

.adm-cert-menu {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.adm-cert-menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    color: #12114a;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.adm-cert-menu__toggle:hover {
    background: #f4f6fc;
}

.adm-cert-menu__caret {
    font-size: 0.7rem;
    opacity: 0.7;
}

.adm-cert-menu__panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 20;
    min-width: 240px;
    max-width: min(320px, calc(100vw - 16px));
    padding: 8px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(18, 17, 74, 0.12);
}

.adm-table__cert .adm-cert-menu__panel {
    right: 0;
    left: auto;
}

.adm-cert-menu__panel--floating {
    position: fixed;
    z-index: 1050;
}

.adm-cert-menu__section + .adm-cert-menu__section {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eef2f7;
}

.adm-cert-menu__section--send {
    min-width: 0;
}

.adm-cert-menu__label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.adm-cert-menu__item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #12114a;
    font: inherit;
    font-size: 0.84rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.adm-cert-menu__item:hover {
    background: #f4f6fc;
}

.adm-cert-menu__item--action {
    color: #0f6b4c;
    font-weight: 600;
}

.adm-cert-menu__email {
    display: block;
    padding: 0 10px 4px;
    font-size: 0.75rem;
    color: #64748b;
    word-break: break-all;
}

.adm-cert-menu__muted {
    margin: 0;
    padding: 4px 10px;
    font-size: 0.78rem;
    color: #94a3b8;
}

.adm-cert-sent {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #0f6b4c;
}

.adm-cert-bulk {
    position: relative;
}

.adm-cert-bulk__panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 30;
    min-width: 220px;
    padding: 6px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(18, 17, 74, 0.12);
}

.adm-cert-bulk__item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #12114a;
    font: inherit;
    font-size: 0.86rem;
    text-align: left;
    cursor: pointer;
}

.adm-cert-bulk__item:hover {
    background: #f4f6fc;
}

.adm-cert-preview-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #f8fafc;
}

.adm-cert-preview-bar__fields {
    flex: 1 1 220px;
}

.adm-cert-preview-bar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.adm-table__cert {
    vertical-align: top;
    min-width: 130px;
    overflow: visible;
}

.adm-cert-settings {
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--adm-border, #e2e8f0);
    border-radius: 12px;
    background: #f8fafc;
}

.adm-cert-settings__bg img,
.adm-cert-settings__logo-item img,
.adm-cert-settings__sig-image img {
    display: block;
    max-width: 100%;
    max-height: 120px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid #dbe3ee;
    background: #fff;
}

.adm-cert-settings__logo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.adm-cert-settings__sig-card {
    padding: 12px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #fff;
}

.adm-cert-settings__sig-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    margin-top: 8px;
}

.adm-cert-settings__sig-fields {
    display: grid;
    gap: 8px;
}

@media (max-width: 768px) {
    .adm-cert-settings__logo-grid,
    .adm-cert-settings__sig-row {
        grid-template-columns: 1fr;
    }
}

.adm-settings-mail-test {
    margin-top: 8px;
}

.adm-settings-mail-test--inline {
    margin: 8px 0 28px;
    padding: 18px 20px;
    border: 1px solid #d8e2f4;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7f9ff 0%, #fff 70%);
}

.adm-settings-mail-test__title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #12114a;
}

.adm-settings-mail-test__title i {
    margin-right: 6px;
    color: #5c6bc0;
}

.adm-settings-mail-test__intro {
    margin: 0 0 14px;
}

.adm-settings-mail-test__form {
    margin-top: 8px;
}

.adm-settings-mail-test__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.adm-settings-mail-test__row input[type="email"] {
    flex: 1 1 240px;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid #d8deea;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
}

.adm-settings-mail-test__result {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.adm-settings-mail-test__result.is-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.adm-settings-mail-test__result.is-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #f5c6c2;
}

.adm-settings-mail-test__result.is-pending {
    background: #eef2fb;
    color: #3f4f7a;
    border: 1px solid #d8e2f4;
}

.adm-settings-backup {
    margin-top: 8px;
    border: 1px solid #fde0d4;
    background: linear-gradient(135deg, #fffaf8 0%, #fff 55%);
}

.adm-settings-backup__layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.adm-settings-backup__info {
    flex: 1 1 280px;
    min-width: 0;
}

.adm-settings-backup__info .adm-panel__title {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
}

.adm-settings-backup__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.adm-settings-backup__list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4a5068;
}

.adm-settings-backup__tag {
    flex: 0 0 auto;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.adm-settings-backup__tag--yes {
    background: #e8f5ee;
    color: #1d7a4a;
}

.adm-settings-backup__tag--no {
    background: #fceeee;
    color: #b33a3a;
}

.adm-settings-backup__aside {
    flex: 0 0 auto;
    margin: 0;
}

.adm-settings-backup__btn i {
    margin-right: 6px;
}

.adm-settings-backup-history {
    margin-top: 16px;
}

.adm-settings-backup-history__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.adm-settings-backup-history__head .adm-panel__title {
    margin: 0;
    padding: 0;
    border: 0;
}

.adm-settings-backup-history__meta {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7289;
}

.adm-settings-backup-history__empty {
    padding: 36px 20px;
    text-align: center;
    color: #6b7289;
}

.adm-settings-backup-history__empty i {
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fc6d26;
}

.adm-table--backup-history .adm-table__detail-note {
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adm-table__nowrap {
    white-space: nowrap;
}

.adm-btn--gitlab {
    background: linear-gradient(135deg, #fc6d26 0%, #e24329 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(226, 67, 41, 0.35);
    font-weight: 600;
    min-width: 220px;
    padding: 12px 22px;
}

.adm-btn--gitlab:hover {
    background: linear-gradient(135deg, #ff7b3a 0%, #fc6d26 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(226, 67, 41, 0.42);
}

.adm-btn--gitlab:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.adm-cert-send-loading__icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

.adm-cert-send-loading__icon i {
    font-size: 1.5rem;
}

.adm-backup-loading {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.adm-backup-loading.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.adm-backup-loading__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 17, 74, 0.55);
}

.adm-backup-loading__dialog {
    position: relative;
    width: min(420px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 22px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.adm-backup-loading__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fc6d26 0%, #e24329 100%);
    color: #fff;
    font-size: 30px;
    animation: adm-backup-pulse 1.4s ease-in-out infinite;
}

@keyframes adm-backup-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.adm-backup-loading__title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #12114a;
}

.adm-backup-loading__status {
    margin: 0 0 16px;
    color: #5a6278;
    font-size: 0.95rem;
}

.adm-backup-loading__bar {
    height: 10px;
    background: #eceff6;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.adm-backup-loading__bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #fc6d26 0%, #e24329 100%);
    border-radius: 999px;
    transition: width 0.45s ease;
}

.adm-backup-loading__pct {
    margin: 0 0 10px;
    font-weight: 700;
    color: #e24329;
    font-size: 1.05rem;
}

.adm-backup-loading__hint {
    margin: 0;
    font-size: 0.85rem;
    color: #8a93a8;
}

.adm-settings__section-title {
    margin: 24px 0 16px;
    padding-top: 8px;
    border-top: 1px solid #e8ecf4;
}

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

.adm-settings-image-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #f9faff;
    border: 1px solid #e8ecf4;
    border-radius: 12px;
}

.adm-settings-image-card--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
}

.adm-settings-image-card__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    padding: 12px;
    background: #fff;
    border: 1px dashed #d5dbe8;
    border-radius: 10px;
}

.adm-settings-image-card__preview img {
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.adm-settings-image-card__preview--icon img {
    max-height: 48px;
    max-width: 48px;
}

.adm-settings-image-card__preview--about {
    flex: 0 0 220px;
    min-height: 140px;
}

.adm-settings-image-card__preview--about img {
    max-height: 120px;
    border-radius: 8px;
    object-fit: cover;
}

.adm-settings-image-card--wide .adm-settings-image-card__body {
    flex: 1;
}

.adm-settings-image-card__body label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2d3348;
    margin-bottom: 8px;
}

.adm-settings-image-card__body input[type="file"] {
    width: 100%;
    font-size: 0.85rem;
}

.adm-preview-box__favicon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.adm-settings-image-card--banners {
    background: #f4f6fc;
}

.adm-settings-image-card__body--full {
    width: 100%;
}

.adm-banner-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
    padding: 12px;
    background: #fff;
    border: 1px dashed #d5dbe8;
    border-radius: 10px;
    min-height: 100px;
}

.adm-banner-preview__item {
    flex: 0 0 calc(33.333% - 7px);
    min-width: 140px;
    aspect-ratio: 16 / 5;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e6f0;
    position: relative;
    padding: 0;
    background: #f4f6fc;
    cursor: pointer;
}

.adm-banner-preview__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.adm-banner-preview-trigger {
    font: inherit;
    color: inherit;
}

.adm-banner-preview__zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 17, 74, 0.45);
    color: #fff;
    font-size: 1.4rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.adm-banner-preview-trigger:hover .adm-banner-preview__zoom,
.adm-banner-preview-trigger:focus-visible .adm-banner-preview__zoom {
    opacity: 1;
}

.adm-banner-preview-trigger:focus-visible {
    outline: 2px solid #12114a;
    outline-offset: 2px;
}

.adm-settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.adm-settings-tabs__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #dde3f0;
    background: #fff;
    color: #2d3348;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.adm-settings-tabs__link:hover {
    background: #f4f6fc;
    border-color: #c5cee0;
    color: #12114a;
}

.adm-settings-tabs__link.is-active {
    background: #12114a;
    border-color: #12114a;
    color: #fff;
}

.adm-settings-about-preview__mock {
    padding: 16px;
    background: #fff;
    border: 1px solid #e2e6f0;
    border-radius: 12px;
}

.adm-settings-about-preview__label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5c6378;
}

.adm-settings-about-preview__title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    color: #12114a;
}

.adm-settings-about-preview__intro {
    margin: 0 0 16px;
    color: #5c6378;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: break-word;
}

.adm-settings-about-preview__body {
    display: grid;
    grid-template-columns: minmax(180px, 280px) 1fr;
    gap: 16px;
    align-items: start;
}

.adm-settings-about-preview__image {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e6f0;
}

.adm-settings-about-preview__image img {
    display: block;
    width: 100%;
    height: auto;
}

.adm-settings-about-preview__text {
    color: #2d3348;
    line-height: 1.65;
    font-size: 0.92rem;
}

.adm-settings-about-file {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8ecf4;
}

.adm-settings-about-file__intro {
    margin: 0 0 14px;
}

.adm-settings-about-file__current {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f9faff;
    border: 1px solid #e2e6f0;
}

.adm-settings-about-file__current a {
    color: #1565c0;
    text-decoration: none;
    word-break: break-all;
}

.adm-settings-about-file__current a:hover {
    text-decoration: underline;
}

.adm-settings-about-file__remove {
    margin-left: auto;
}

.adm-main-sections-form__intro {
    margin: 0 0 20px;
}

.adm-main-section-card {
    margin: 0 0 20px;
    padding: 18px 20px 6px;
    border: 1px solid #e2e6f0;
    border-radius: 12px;
    background: #fafbff;
}

.adm-main-section-card__title {
    padding: 0 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a237e;
}

.adm-banner-manager__upload {
    margin-bottom: 24px;
}

.adm-banner-guide {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #f9faff;
    border: 1px solid #dde3f0;
}

.adm-banner-guide__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #12114a;
}

.adm-banner-guide__title i {
    color: #1565c0;
}

.adm-banner-guide__list {
    margin: 0;
    padding-left: 1.2rem;
    color: #2d3348;
    font-size: 0.9rem;
    line-height: 1.65;
}

.adm-banner-guide__list li + li {
    margin-top: 6px;
}

.adm-banner-guide__list strong {
    color: #12114a;
}

.adm-banner-upload-form__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.adm-banner-manager__notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: #eef4ff;
    border: 1px solid #c9d8f5;
    color: #1e3a6e;
    font-size: 0.92rem;
}

.adm-banner-manager__defaults {
    margin-bottom: 24px;
}

.adm-banner-manager__defaults h4 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #5c6378;
}

.adm-banner-manager__list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.adm-banner-manager__summary {
    margin: 0;
    font-size: 0.88rem;
    color: #5c6378;
}

.adm-banner-manager__empty {
    margin: 0;
    padding: 28px 16px;
    text-align: center;
    color: #7a8196;
    background: #f9faff;
    border: 1px dashed #d5dbe8;
    border-radius: 10px;
}

.adm-banner-cards {
    display: grid;
    gap: 16px;
}

.adm-banner-card {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e2e6f0;
    border-radius: 12px;
    background: #fff;
}

.adm-banner-card.is-hidden {
    opacity: 0.82;
    background: #fafbfd;
}

.adm-banner-card__preview {
    position: relative;
    aspect-ratio: 16 / 5;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e6f0;
    background: #f4f6fc;
    padding: 0;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.adm-banner-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.adm-banner-card__zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.92);
    color: #12114a;
    box-shadow: 0 4px 14px rgba(18, 17, 74, 0.18);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.adm-banner-preview-trigger:hover .adm-banner-card__zoom,
.adm-banner-preview-trigger:focus-visible .adm-banner-card__zoom {
    opacity: 1;
    transform: translateY(0);
}

.adm-banner-preview-trigger:focus-visible {
    outline: 2px solid #12114a;
    outline-offset: 2px;
}

.adm-banner-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(18, 17, 74, 0.88);
    color: #fff;
}

.adm-banner-card.is-hidden .adm-banner-card__badge {
    background: rgba(92, 99, 120, 0.92);
}

.adm-banner-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.adm-banner-card__meta {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #12114a;
}

.adm-banner-card__path {
    margin: 0;
    font-size: 0.8rem;
    color: #7a8196;
    word-break: break-all;
}

.adm-banner-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.adm-banner-card__form {
    margin: 0;
}

.adm-banner-card__order {
    display: inline-flex;
    gap: 4px;
}

.adm-modal__dialog--banner {
    width: min(1120px, calc(100vw - 32px));
    max-height: min(92vh, 900px);
}

.adm-banner-lightbox__body {
    padding: 0 24px 8px;
    overflow: auto;
    background: #f4f6fc;
}

.adm-banner-lightbox__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #e2e6f0;
    background: #fff;
}

.adm-preview-box {
    padding: 16px;
    background: #f9faff;
    border-radius: 10px;
    border: 1px solid #e8ecf4;
    margin-bottom: 12px;
}

.adm-preview-box:last-child {
    margin-bottom: 0;
}

.adm-preview-box__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #5c6378;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.adm-preview-box__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #12114a;
}

.adm-preview-box__tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e2e6f0;
    border-radius: 8px 8px 0 0;
    font-size: 0.88rem;
    color: #2d3348;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.adm-preview-box__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f20487;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .adm-stats,
    .adm-stats--3,
    .adm-stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adm-event-card__main { grid-template-columns: 1fr; }
    .adm-event-card__poster {
        width: 100%;
        min-height: 200px;
    }
    .adm-event-card__poster img {
        min-height: 200px;
    }
    .adm-badges { justify-content: flex-start; }
    .adm-form-grid .adm-field--sm,
    .adm-form-grid .adm-field--md,
    .adm-form-grid .adm-field--lg,
    .adm-form-grid .adm-field--2,
    .adm-form-grid .adm-field--3,
    .adm-form-grid .adm-field--4,
    .adm-form-grid .adm-field--6,
    .adm-form-grid .adm-field--8,
    .adm-form-grid .adm-field--9,
    .adm-form-grid .adm-field--10 { grid-column: span 12; }
}

@media (max-width: 767px) {
    .adm-page { padding-top: 80px; }
    .adm-stats,
    .adm-stats--3,
    .adm-stats--4 { grid-template-columns: 1fr; }
    .adm-settings-images { grid-template-columns: 1fr; }
    .adm-settings-image-card--wide { flex-direction: column; }
    .adm-settings-image-card__preview--about { flex: none; width: 100%; }
    .adm-banner-preview__item { flex: 0 0 100%; }
    .adm-banner-card { grid-template-columns: 1fr; }
    .adm-banner-upload-form__row { flex-direction: column; align-items: stretch; }
    .adm-settings-about-preview__body { grid-template-columns: 1fr; }
    .adm-table-wrap { overflow-x: auto; }
}

/* Registrant list (CheckNameStaff) */
.adm-page-head--registrants {
    margin-bottom: 20px;
}

.adm-page-head__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.adm-page-head__eyebrow {
    margin: 0 0 4px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #8a92a6;
}

.adm-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.3;
}

.adm-badge--success { background: #e8f8ee; color: #1a8f4a; }
.adm-badge--info { background: #e8f3fc; color: #1a6fb5; }
.adm-badge--danger { background: #fdecec; color: #c62828; }
.adm-badge--muted { background: #eef0f5; color: #5c6378; }

.adm-event-summary {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(18, 17, 74, 0.06);
    border: 1px solid rgba(18, 17, 74, 0.06);
}

.adm-event-summary--with-poster {
    padding: 16px;
}

.adm-event-summary__poster {
    width: 110px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f6fc;
    align-self: flex-start;
}

.adm-event-summary__poster img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: center top;
}

.adm-event-summary__body {
    flex: 1;
    min-width: 0;
}

.adm-event-summary__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.adm-event-summary__title {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #12114a;
    line-height: 1.4;
}

.adm-event-summary__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    font-size: 0.88rem;
    color: #5c6378;
}

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

.adm-event-summary__meta i {
    color: #9aa3b8;
    width: 14px;
    text-align: center;
}

.adm-toolbar--registrants {
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.adm-btn--export {
    background: #1a8f4a;
    color: #fff;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.adm-btn--export:hover {
    background: #157a3f;
}

.adm-btn--export i {
    font-size: 1rem;
}

.adm-registrants__clear-form {
    display: inline-flex;
    margin: 0;
}

.adm-table__actions-col {
    min-width: 88px;
    white-space: nowrap;
}

.adm-table__actions {
    vertical-align: middle;
}

.adm-table__actions-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
}

.adm-table__actions .adm-btn--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0 !important;
}

.adm-table__actions .adm-btn--icon i {
    margin: 0;
    font-size: 0.82rem;
}

.adm-registrants__delete-form {
    display: inline-flex;
    margin: 0;
}

.adm-modal__dialog--wide {
    max-width: min(720px, 94vw);
}

.adm-search-field {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.adm-search-field__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa3b8;
    font-size: 0.9rem;
    pointer-events: none;
}

.adm-search-field input[type="search"] {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1px solid #d5dbe8;
    border-radius: 12px;
    font-size: 0.92rem;
    font-family: inherit;
    background: #fff;
    color: #2d3348;
    box-shadow: 0 2px 8px rgba(18, 17, 74, 0.04);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.adm-search-field input[type="search"]:focus {
    outline: none;
    border-color: #12114a;
    box-shadow: 0 0 0 3px rgba(18, 17, 74, 0.1);
}

.adm-toolbar__result {
    margin: 0;
    font-size: 0.88rem;
    color: #5c6378;
    white-space: nowrap;
}

.adm-toolbar__result strong {
    color: #12114a;
}

.adm-registrants {
    padding: 0;
    overflow: visible;
}

.adm-registrants .adm-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.adm-registrants .adm-table-wrap.adm-table-wrap--cert-open {
    padding-bottom: 12rem;
}

.adm-registrants .adm-table-scroll-hint {
    display: none;
    padding: 8px 22px 0;
    font-size: 0.78rem;
    color: #8a92a6;
    text-align: right;
}

@media (max-width: 991px) {
    .adm-registrants .adm-table-scroll-hint {
        display: block;
    }
}

.adm-registrants__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid #e8ecf4;
    background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.adm-registrants__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #12114a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.adm-registrants__title i {
    color: #9aa3b8;
}

.adm-registrants__count {
    font-size: 0.82rem;
    font-weight: 600;
    color: #5c6378;
    background: #eef0fa;
    padding: 5px 12px;
    border-radius: 999px;
}

.adm-registrants__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 16px 20px 20px;
    font-size: 1rem;
    color: #12114a;
    background: linear-gradient(180deg, #fff 0%, #f4f6fc 100%);
    border-top: 1px solid #e8ecf4;
}

.adm-registrants__footer i {
    color: #12114a;
    opacity: 0.7;
}

.adm-registrants__total {
    margin: 16px 20px 20px;
    font-size: 1rem;
    color: #12114a;
    text-align: center;
}

.adm-empty--registrants {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 56px 24px;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.adm-empty--registrants i {
    font-size: 2.5rem;
    color: #c5cce0;
}

.adm-empty--registrants p {
    margin: 0;
    font-size: 1rem;
}

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

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

.adm-table--registrants {
    table-layout: auto;
    min-width: 100%;
}

.adm-table--registrants thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #12114a;
    color: #fff;
    font-weight: 600;
    padding: 13px 16px;
    text-align: left;
    white-space: nowrap;
    font-size: 0.84rem;
    letter-spacing: 0.01em;
}

.adm-table thead th {
    background: #12114a;
    color: #fff;
    font-weight: 600;
    padding: 12px 14px;
    text-align: left;
    white-space: nowrap;
}

.adm-table thead th.adm-table__num {
    text-align: center;
    width: 64px;
}

.adm-table__sortable {
    padding: 0;
    background: #12114a;
    color: #fff;
}

.adm-table__sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 13px 16px;
    border: 0;
    border-radius: 0;
    background: #12114a;
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.15s ease;
}

.adm-table__sort-btn:hover,
.adm-table__sort-btn:focus-visible {
    background: #1a1960;
    outline: none;
}

.adm-table__sort-btn:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.adm-table__sort-label {
    flex: 1 1 auto;
    color: #fff;
}

.adm-table__sort-icons {
    display: inline-flex;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    position: relative;
}

.adm-table__sort-icon {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.78rem;
    color: #fff;
    opacity: 0.55;
    transition: opacity 0.15s ease;
}

.adm-table__sort-icon--asc,
.adm-table__sort-icon--desc {
    opacity: 0;
}

.adm-table__sortable--active .adm-table__sort-icon--neutral {
    opacity: 0;
}

.adm-table__sortable--active.adm-table__sortable--asc .adm-table__sort-icon--asc,
.adm-table__sortable--active.adm-table__sortable--desc .adm-table__sort-icon--desc {
    opacity: 1;
}

.adm-table__sortable--active .adm-table__sort-btn {
    background: #1a1960;
}

.adm-table__sortable--active .adm-table__sort-btn:hover,
.adm-table__sortable--active .adm-table__sort-btn:focus-visible {
    background: #22206e;
}

.adm-table--registrants tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef1f7;
    vertical-align: top;
    color: #2a2f3d;
    line-height: 1.55;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.adm-table--registrants tbody td.adm-table__date,
.adm-table--registrants tbody td.adm-table__actions {
    vertical-align: middle;
}

.adm-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #e8ecf4;
    vertical-align: top;
    color: #2a2f3d;
    line-height: 1.5;
}

.adm-table--registrants tbody tr:nth-child(even) {
    background: #fafbff;
}

.adm-table tbody tr:hover,
.adm-table--registrants tbody tr:hover {
    background: #f0f3fb;
}

.adm-table tbody tr:last-child td {
    border-bottom: none;
}

.adm-table__num {
    text-align: center;
    color: #5c6378;
    font-weight: 600;
}

.adm-table__name {
    min-width: 180px;
}

.adm-table__org {
    min-width: 220px;
    max-width: 420px;
}

.adm-table__name strong {
    display: block;
    color: #12114a;
    font-weight: 600;
}

.adm-table__name .adm-table__muted {
    display: block;
    margin-top: 4px;
}

.adm-table__muted {
    color: #5c6378;
    font-size: 0.84rem;
}

.adm-table__contact {
    min-width: 180px;
}

.adm-table__date {
    min-width: 130px;
    color: #5c6378;
    font-size: 0.86rem;
    vertical-align: middle;
}

.adm-contact-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.86rem;
    color: #2d3348;
    margin-bottom: 6px;
    word-break: break-word;
}

.adm-contact-line:last-child {
    margin-bottom: 0;
}

.adm-contact-line i {
    color: #9aa3b8;
    width: 14px;
    margin-top: 3px;
    flex-shrink: 0;
    text-align: center;
}

.adm-table__detail {
    min-width: 200px;
}

.adm-detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    background: #eef0fa;
    color: #12114a;
    font-size: 0.8rem;
    font-weight: 600;
}

.adm-detail-line {
    display: block;
    margin-bottom: 4px;
    font-size: 0.86rem;
}

.adm-detail-line i {
    color: #9aa3b8;
    margin-right: 4px;
}

.adm-detail-list {
    margin: 0;
    padding: 0 0 0 18px;
    font-size: 0.86rem;
}

.adm-detail-list li {
    margin-bottom: 4px;
}

.adm-badge--form {
    background: #eef0fa;
    color: #3d4578;
    max-width: 100%;
    white-space: normal;
    text-align: left;
}

.adm-badge--registrants {
    background: #e8f3fc;
    color: #1565c0;
}

.adm-formevent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.adm-formevent-card {
    background: #fff;
    border: 1px solid #e4e8f2;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(18, 17, 74, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.adm-formevent-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.adm-formevent-card__id {
    font-size: 0.78rem;
    font-weight: 700;
    color: #7a8198;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.adm-formevent-card__title {
    margin: 0;
    font-size: 1.08rem;
    color: #12114a;
    line-height: 1.35;
}

.adm-formevent-card__fields,
.adm-formevent-card__desc {
    margin: 0;
    font-size: 0.88rem;
    color: #5c6378;
    line-height: 1.5;
}

.adm-formevent-card__fields i {
    margin-right: 6px;
    color: #9aa3b8;
}

.adm-formevent-card__events ul {
    margin: 8px 0 0;
    padding-left: 18px;
    font-size: 0.86rem;
}

.adm-formevent-card__events li {
    margin-bottom: 4px;
}

.adm-formevent-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.adm-formevent-default {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: start;
    margin-top: 20px;
}

.adm-formevent-default__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef0fa, #dfe4f5);
    color: #12114a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.adm-formevent-default__desc {
    margin: 8px 0 0;
    color: #5c6378;
    font-size: 0.9rem;
    line-height: 1.5;
}

.adm-formevent-default__events {
    margin: 12px 0 0;
    padding-left: 18px;
    font-size: 0.88rem;
}

.adm-formevent-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px;
    max-height: 280px;
    overflow: auto;
    padding: 12px;
    border: 1px solid #e4e8f2;
    border-radius: 10px;
    background: #fafbfe;
}

.adm-formevent-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    color: #2a2f45;
    cursor: pointer;
}

.adm-formevent-check input {
    margin-top: 3px;
    flex-shrink: 0;
}

.adm-formevent-check__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.adm-formevent-check__title {
    line-height: 1.4;
}

.adm-formevent-check__badge {
    display: inline-block;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
    max-width: 100%;
}

.adm-formevent-check__badge--here {
    background: #e6f7ee;
    color: #1a7a45;
}

.adm-formevent-check__badge--other {
    background: #fff4e5;
    color: #9a5b00;
}

.adm-formevent-check__badge--std {
    background: #eef0f8;
    color: #5c6378;
}

.adm-formevent-check--selected {
    background: rgba(18, 17, 74, 0.04);
    border-radius: 8px;
    padding: 4px 6px;
    margin: -4px -6px;
}

.adm-formevent-readonly {
    margin: 0;
    padding: 10px 12px;
    background: #f4f6fc;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #3d4578;
}

.adm-formevent-openhouse {
    padding: 14px;
    border: 1px solid #e4e8f2;
    border-radius: 12px;
    background: #fafbfe;
}

.adm-openhouse-slots {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.adm-openhouse-slot-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
}

.adm-openhouse-slot-row input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d8dce8;
    border-radius: 8px;
    font-size: 0.88rem;
}

@media (max-width: 768px) {
    .adm-openhouse-slot-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .adm-page-head__row {
        flex-direction: column;
    }

    .adm-btn--back {
        width: 100%;
        justify-content: center;
    }

    .adm-event-summary--with-poster {
        flex-direction: column;
    }

    .adm-event-summary__poster {
        width: 100%;
    }

    .adm-event-summary__poster img {
        height: 180px;
    }

    .adm-toolbar--registrants {
        flex-direction: column;
        align-items: stretch;
    }

    .adm-toolbar__result {
        text-align: center;
    }
}

/* Login page */
.adm-login-body {
    min-height: 100vh;
}

.adm-login {
    font-family: 'IBM Plex Sans Thai', 'Sarabun', sans-serif;
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px 48px;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(242, 4, 135, 0.08), transparent),
        var(--m2-bg, #f9faff);
}

.adm-login__wrap {
    width: min(420px, 100%);
}

.adm-login__card {
    margin-bottom: 16px;
    padding: 32px 28px 24px;
}

.adm-login__head {
    text-align: center;
    margin-bottom: 24px;
}

.adm-login__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #12114a 0%, #2a2878 100%);
    color: #fff;
    font-size: 1.35rem;
}

.adm-login__head h1 {
    margin: 0 0 8px;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--adm-navy);
}

.adm-login__head p {
    margin: 0;
    font-size: 0.88rem;
    color: #5c6378;
    line-height: 1.5;
}

.adm-login__form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.adm-login__submit {
    width: 100%;
    margin-top: 8px;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
}

.adm-login__footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8ecf4;
    text-align: center;
}

.adm-login__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #5c6378;
    text-decoration: none;
    transition: color 0.15s;
}

.adm-login__back:hover {
    color: var(--adm-navy);
}

.adm-login__credit {
    margin: 0;
    text-align: center;
    font-size: 0.78rem;
    color: #8a92a8;
    line-height: 1.5;
}

.adm-flash--error {
    background: #fdecea;
    color: #c62828;
    border-color: #f5c6c2;
}
