:root {
    --front-navy: #172033;
    --front-blue: #1d4ed8;
    --front-blue-2: #2563eb;
    --front-gold: #f59e0b;
    --front-green: #0f766e;
    --front-teal: #14b8a6;
    --front-bg: #f4f8fb;
    --front-card: #ffffff;
    --front-border: #dbe6ef;
    --front-text: #172033;
    --front-muted: #64748b;
}

body:has(.public-layout) {
    background: #f4f7fb !important;
    color: #1e293b;
    overflow-x: hidden;
}

.public-layout {
    min-height: 100vh;
    display: flex;
    background: #f4f7fb;
    max-width: 100%;
    overflow-x: hidden;
}

.public-sidebar-wrap {
    flex: 0 0 260px;
    width: 260px;
    background: #213042;
    transition: width .25s ease-in-out, flex-basis .25s ease-in-out;
}

.public-sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 18px 0;
    overflow-y: auto;
    background: #213042;
    color: #bfd3ea;
    box-shadow: 10px 0 30px rgba(15, 23, 42, .14);
    z-index: 30;
    transition: transform .25s ease-in-out;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px 20px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.public-brand span:not(.moph-logo-wrap) {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #3b82f6;
    font-size: 1.6rem;
}

.public-brand strong,
.public-brand small {
    display: block;
}

.public-brand strong {
    font-size: 1.12rem;
}

.public-brand small {
    color: #bfd3ea;
}

.public-menu-section {
    margin: 28px 24px 10px;
    color: #8fb1d5;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.public-menu {
    display: grid;
    gap: 4px;
}

.public-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 50px;
    padding: 0 24px;
    color: #bfd3ea;
    text-decoration: none;
    font-weight: 800;
    transition: .25s ease-in-out;
}

.public-menu-button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.public-menu-item i {
    width: 24px;
    color: #9cc7f5;
    font-size: 1.1rem;
}

.public-menu-item:hover,
.public-menu-item.active,
.public-menu-button.is-minimized {
    color: #fff;
    background: rgba(59, 130, 246, .16);
}

.public-menu-button.is-minimized::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-radius: 999px;
    background: #38bdf8;
    box-shadow: 0 0 0 5px rgba(56, 189, 248, .14);
}

.public-menu-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #3b82f6;
}

.public-sidebar-user {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 34px 18px 12px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
}

.public-avatar,
.public-profile-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: #3b82f6;
    font-weight: 900;
}

.public-avatar {
    width: 42px;
    height: 42px;
}

.public-sidebar-user strong,
.public-sidebar-user small {
    display: block;
}

.public-sidebar-user small {
    color: #93abc7;
}

.public-sidebar-spacer {
    flex: 1 1 auto;
    min-height: 24px;
}

.public-sidebar-action {
    display: grid;
    gap: 9px;
    margin-top: auto;
    padding: 14px 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(15, 23, 42, .08));
}

.public-guest-note {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 0 12px;
    color: #9fb8d6;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    font-size: .82rem;
    font-weight: 750;
}

.public-guest-note i {
    color: #93c5fd;
    font-size: 1rem;
}

.public-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 18px;
    min-height: 44px;
    color: #bfd3ea;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    text-decoration: none;
    transition: .25s ease-in-out;
}

.public-sidebar-action .public-logout {
    margin: 0;
}

.public-logout:hover {
    color: #fff;
    background: rgba(239, 68, 68, .18);
}

.public-login-link:hover {
    background: rgba(59, 130, 246, .18);
}

.public-register-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: #3b82f6;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(59, 130, 246, .2);
    transition: .25s ease-in-out;
}

.public-register-link:hover {
    color: #fff;
    background: #2563eb;
    transform: translateY(-1px);
}

@media (min-width: 992px) {
    body.public-sidebar-collapsed .public-sidebar-wrap {
        width: 88px;
        flex-basis: 88px;
    }

    body.public-sidebar-collapsed .public-sidebar {
        width: 88px;
        overflow-x: hidden;
    }

    body.public-sidebar-collapsed .public-brand {
        justify-content: center;
        padding: 0 14px 20px;
    }

    body.public-sidebar-collapsed .public-brand div,
    body.public-sidebar-collapsed .public-menu-section,
    body.public-sidebar-collapsed .public-menu-item span,
    body.public-sidebar-collapsed .public-sidebar-user div,
    body.public-sidebar-collapsed .public-logout,
    body.public-sidebar-collapsed .public-sidebar-action {
        display: none;
    }

    body.public-sidebar-collapsed .public-brand span {
        width: 48px;
        height: 48px;
        font-size: 1.35rem;
    }

    body.public-sidebar-collapsed .public-menu {
        gap: 8px;
        padding-top: 18px;
    }

    body.public-sidebar-collapsed .public-menu-item {
        width: 56px;
        min-height: 50px;
        justify-content: center;
        gap: 0;
        margin: 0 auto;
        padding: 0;
        border-radius: 14px;
    }

    body.public-sidebar-collapsed .public-menu-item.active::before {
        display: none;
    }

    body.public-sidebar-collapsed .public-menu-item i {
        width: auto;
        font-size: 1.2rem;
    }

    body.public-sidebar-collapsed .public-sidebar-user {
        justify-content: center;
        margin: auto 14px 12px;
        padding: 10px;
    }
}

.public-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.public-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 28px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .04);
    min-width: 0;
}

.public-topbar-left,
.public-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.public-topbar-left {
    flex: 1 1 auto;
}

.public-topbar-right {
    flex: 0 0 auto;
}

.public-icon-btn {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #475569;
    font-size: 1.28rem;
    transition: .25s ease-in-out;
}

.public-notify {
    background: #f1f5f9;
}

.public-icon-btn:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

.public-search {
    width: min(520px, 42vw);
    min-width: 220px;
    flex: 1 1 360px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
}

.public-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1e293b;
}

.public-notify span {
    position: absolute;
    top: 2px;
    right: 3px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: #ef4444;
    font-size: .75rem;
    font-weight: 900;
}

.public-profile-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 16px 0 8px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #1e293b;
    font-weight: 850;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
    transition: .25s ease-in-out;
}

.public-profile-btn:hover {
    border-color: rgba(37, 99, 235, .28);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .11);
    transform: translateY(-1px);
}

.public-profile-btn span {
    width: 44px;
    height: 44px;
}

.public-topbar-login,
.public-topbar-register {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 999px;
    font-weight: 850;
    text-decoration: none;
    transition: .25s ease-in-out;
}

.public-topbar-login {
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.public-topbar-register {
    color: #fff;
    background: #3b82f6;
    border: 1px solid #3b82f6;
    box-shadow: 0 12px 24px rgba(59, 130, 246, .18);
}

.public-topbar-login:hover,
.public-topbar-register:hover {
    transform: translateY(-1px);
}

.public-topbar-login:hover {
    color: #1d4ed8;
    background: #dbeafe;
}

.public-topbar-register:hover {
    color: #fff;
    background: #2563eb;
}

.public-dropdown-wrap {
    position: relative;
}

.public-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    min-width: 330px;
    display: none;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 56px rgba(15, 23, 42, .16);
    z-index: 90;
}

.public-dropdown.show {
    display: grid;
    gap: 6px;
    animation: publicFadeUp .25s ease both;
}

.public-dropdown-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid #eef2f7;
}

.public-dropdown-title > span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 10px 20px rgba(37, 99, 235, .18);
}

.public-dropdown-title strong,
.public-dropdown-title small {
    display: block;
}

.public-dropdown-title strong {
    color: #1e293b;
    font-weight: 950;
    line-height: 1.1;
}

.public-dropdown-title small {
    margin-top: 3px;
    color: #64748b;
    font-size: .8rem;
}

.public-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 9px 10px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-weight: 800;
    transition: .25s ease-in-out;
}

.public-dropdown a i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 10px;
}

.public-dropdown a:hover {
    background: #f8fafc;
    color: #2563eb;
    transform: translateX(2px);
}

.public-dropdown a.danger {
    color: #ef4444;
}

.public-dropdown a.danger i {
    color: #ef4444;
    background: #fee2e2;
}

.public-dropdown-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 10px 12px;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    font-weight: 800;
}

.public-dropdown-empty i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    color: #16a34a;
    background: #dcfce7;
    border-radius: 10px;
}

.public-page-head,
.public-content {
    width: min(1500px, calc(100% - clamp(24px, 4vw, 56px)));
    margin-inline: auto;
}

.public-content {
    padding-bottom: 44px;
}

.public-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding: 30px 0 22px;
}

.public-page-head h1 {
    margin: 0;
    color: #1e293b;
    font-size: clamp(1.75rem, 2.3vw, 2.45rem);
    font-weight: 900;
}

.public-breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #64748b;
    font-weight: 700;
}

.public-breadcrumb a {
    color: #2563eb;
}

.public-primary-btn,
.public-soft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 850;
    text-decoration: none;
    transition: .25s ease-in-out;
}

.public-primary-btn {
    color: #fff;
    background: #3b82f6;
    box-shadow: 0 12px 24px rgba(59, 130, 246, .22);
}

.public-soft-btn {
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.public-primary-btn:hover,
.public-soft-btn:hover,
.public-card:hover,
.public-panel:hover {
    transform: translateY(-3px);
}

.public-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: clamp(14px, 1.6vw, 20px);
    margin-bottom: 24px;
}

.public-summary-card {
    min-height: 150px;
    min-width: 0;
    padding: clamp(18px, 2vw, 26px);
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, .12);
    transition: .25s ease-in-out;
}

.public-summary-card.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.public-summary-card.cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.public-summary-card.green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.public-summary-card.indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }

.public-summary-card small {
    color: rgba(255, 255, 255, .82);
    font-weight: 800;
}

.public-summary-card strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(1.9rem, 3vw, 2.25rem);
    line-height: 1;
    font-weight: 900;
}

.public-summary-card i {
    float: right;
    color: rgba(255, 255, 255, .45);
    font-size: clamp(2.6rem, 4vw, 3.6rem);
}

.public-panel {
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .06);
    transition: .25s ease-in-out;
}

.public-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, .75fr);
    gap: 24px;
    min-width: 0;
}

.dashboard-home-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    align-items: start;
}

.dashboard-status-panel {
    width: 100%;
    max-width: 320px;
    justify-self: end;
}

.public-panel-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.public-panel-title h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 900;
}

.public-panel-title p {
    margin: 4px 0 0;
    color: #64748b;
}

.public-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 900;
    white-space: nowrap;
}

.my-registration-panel {
    margin-bottom: 24px;
}

.my-registration-table td strong,
.my-registration-table td small {
    display: block;
}

.my-registration-table td small {
    margin-top: 4px;
    color: #64748b;
    font-weight: 700;
}

.public-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.public-row-actions .btn {
    white-space: nowrap;
}

.public-empty-state {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 42px 18px;
    text-align: center;
    color: #64748b;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
}

.public-empty-state > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 18px;
    font-size: 1.75rem;
}

.public-empty-state h3 {
    margin: 4px 0 0;
    color: #1e293b;
    font-size: 1.05rem;
    font-weight: 950;
}

.public-empty-state p {
    max-width: 520px;
    margin: 0;
}

.checkin-ticket-panel {
    max-width: 1040px;
    margin: 0 auto;
}

.checkin-ticket-head {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid #e5e7eb;
}

.checkin-ticket-head > span {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 64px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #06b6d4);
    box-shadow: 0 18px 32px rgba(34, 197, 94, .18);
    font-size: 1.8rem;
}

.checkin-ticket-head h2 {
    margin: 0;
    color: #1e293b;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    line-height: 1.28;
    font-weight: 950;
}

.checkin-ticket-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.checkin-ticket-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.checkin-ticket-info > div {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
}

.checkin-ticket-info small,
.checkin-ticket-qr p {
    display: block;
    color: #64748b;
    font-weight: 800;
}

.checkin-ticket-info strong {
    display: block;
    margin-top: 5px;
    color: #1e293b;
    overflow-wrap: anywhere;
}

.checkin-ticket-qr {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: linear-gradient(180deg, #eff6ff, #fff);
    text-align: center;
}

.checkin-ticket-qr img {
    width: min(100%, 260px);
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.profile-panel {
    max-width: 980px;
}

.profile-card-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 8px;
    padding: 4px 4px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.profile-avatar-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 20px;
    box-shadow: 0 18px 34px rgba(37, 99, 235, .18);
    font-size: 1.7rem;
    font-weight: 950;
}

.profile-card-head h2 {
    margin: 4px 0 2px;
    color: #1e293b;
    font-size: 1.35rem;
    font-weight: 950;
}

.profile-card-head p {
    margin: 0;
    color: #64748b;
    font-weight: 750;
}

.profile-form .settings-form-grid {
    padding: 20px 0 0;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.meeting-detail-page {
    padding-bottom: 28px;
}

.meeting-reference-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #dfe7f1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 48px rgba(15, 23, 42, .09);
}

.meeting-reference-accent {
    height: 5px;
    background: linear-gradient(90deg, #4f46e5 0 32%, #2563eb 32% 66%, #10b981 66%);
}

.meeting-reference-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 158px;
    gap: 20px;
    align-items: start;
    padding: 20px 24px 18px;
    background: linear-gradient(135deg, #ffffff, #f5fbff);
    border-bottom: 1px solid #e5e7eb;
}

.meeting-reference-title {
    display: flex;
    gap: 13px;
    min-width: 0;
}

.meeting-reference-icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    color: #4f46e5;
    background: #eef2ff;
    border-radius: 12px;
    font-size: 1.1rem;
}

.meeting-reference-heading-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.meeting-reference-heading-row h2 {
    margin: 0;
    color: #172033;
    font-size: clamp(1.12rem, 1.7vw, 1.48rem);
    line-height: 1.35;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.meeting-reference-heading-row .public-status {
    flex: 0 0 auto;
    margin-top: 2px;
}

.meeting-reference-title p {
    margin: 5px 0 0;
    color: #2563eb;
    font-weight: 850;
}

.meeting-reference-qr {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 8px;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    background: #fff;
}

.meeting-reference-qr img {
    display: block;
    width: 122px;
    height: 122px;
    object-fit: contain;
}

.meeting-reference-qr span {
    color: #64748b;
    font-size: .76rem;
    font-weight: 800;
    text-align: center;
}

.meeting-reference-body {
    padding: 4px 24px 0;
}

.meeting-reference-details {
    max-width: 100%;
}

.meeting-reference-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid #edf1f5;
}

.meeting-reference-row-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #4f46e5;
    background: #f0efff;
    border-radius: 50%;
}

.meeting-reference-row small,
.meeting-reference-row strong {
    display: block;
}

.meeting-reference-row small {
    margin-bottom: 3px;
    color: #64748b;
    font-size: .72rem;
    font-weight: 750;
}

.meeting-reference-row strong {
    color: #1e293b;
    font-size: .86rem;
    line-height: 1.45;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.meeting-reference-description {
    align-items: start;
}

.meeting-reference-description .meeting-reference-row-icon {
    margin-top: 2px;
}

.meeting-reference-contact {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    margin: 14px 0 4px;
    padding: 14px;
    border: 1px solid #dbe5ef;
    border-radius: 12px;
    background: #f8fbff;
}

.meeting-reference-contact-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 14px;
    border-right: 1px solid #dbe5ef;
}

.meeting-reference-contact-head > span {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    border-radius: 10px;
}

.meeting-reference-contact-head small,
.meeting-reference-contact-head strong,
.meeting-reference-contact-grid small,
.meeting-reference-contact-grid strong {
    display: block;
}

.meeting-reference-contact-head small,
.meeting-reference-contact-grid small {
    color: #64748b;
    font-size: .7rem;
    font-weight: 750;
}

.meeting-reference-contact-head strong {
    color: #1e293b;
    font-size: .86rem;
    line-height: 1.35;
}

.meeting-reference-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.meeting-reference-contact-grid > div {
    min-width: 0;
}

.meeting-reference-contact-grid strong,
.meeting-reference-contact-grid a {
    color: #1e293b;
    font-size: .82rem;
    line-height: 1.4;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.meeting-reference-contact-grid a {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
}

.meeting-reference-contact-grid a:hover {
    text-decoration: underline;
}

.meeting-reference-files {
    padding: 14px 0 18px;
}

.meeting-reference-files-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
}

.meeting-reference-files-head > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #fff;
    background: #4f46e5;
    border-radius: 10px;
}

.meeting-reference-files-head strong,
.meeting-reference-files-head small {
    display: block;
}

.meeting-reference-files-head strong {
    color: #1e293b;
    font-weight: 900;
}

.meeting-reference-files-head small {
    color: #94a3b8;
    font-size: .74rem;
}

.meeting-reference-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    font-weight: 700;
}

.meeting-reference-empty i {
    font-size: 1.45rem;
}

.meeting-reference-file-list {
    display: grid;
    gap: 8px;
}

.meeting-reference-file-list a {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 28px;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    transition: transform .25s ease-in-out, box-shadow .25s ease-in-out;
}

.meeting-reference-file-list a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}

.meeting-reference-file-list a > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.meeting-reference-file-list strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meeting-reference-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px 24px 18px;
    border-top: 1px solid #e5e7eb;
    background: #fbfcfe;
}

.meeting-reference-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 900;
    transition: transform .25s ease-in-out, box-shadow .25s ease-in-out;
}

.meeting-reference-actions a:hover {
    transform: translateY(-2px);
}

.meeting-reference-actions a > i {
    font-size: 1.25rem;
}

.meeting-reference-actions a span,
.meeting-reference-actions a small {
    display: block;
}

.meeting-reference-actions a small {
    margin-top: 2px;
    font-size: .7rem;
    font-weight: 650;
    opacity: .78;
}

.meeting-response-btn {
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    box-shadow: 0 12px 24px rgba(37, 99, 235, .2);
}

.meeting-response-btn:hover {
    color: #fff;
    box-shadow: 0 16px 30px rgba(37, 99, 235, .28);
}

.meeting-response-btn.disabled {
    pointer-events: none;
    color: #94a3b8;
    background: #e5e7eb;
    box-shadow: none;
}

.meeting-list-btn {
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 12px 24px rgba(5, 150, 105, .18);
}

.meeting-list-btn:hover {
    color: #fff;
    box-shadow: 0 16px 30px rgba(5, 150, 105, .26);
}

.meeting-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
}

.meeting-detail-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -150px;
    width: 280px;
    height: 280px;
    border-radius: 46px;
    background: linear-gradient(135deg, rgba(59, 130, 246, .10), rgba(6, 182, 212, .06));
    transform: rotate(18deg);
}

.meeting-detail-main,
.meeting-detail-side {
    position: relative;
    z-index: 1;
}

.meeting-detail-main h2 {
    max-width: 900px;
    margin: 14px 0 6px;
    color: #1e293b;
    font-size: clamp(1.45rem, 2.1vw, 2.05rem);
    line-height: 1.25;
    font-weight: 950;
}

.meeting-code {
    margin: 0;
    color: #2563eb;
    font-weight: 850;
}

.meeting-description {
    max-width: 900px;
    margin: 14px 0 0;
    color: #475569;
    line-height: 1.75;
}

.meeting-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.meeting-detail-side {
    display: flex;
    align-items: center;
    justify-content: center;
}

.meeting-qr-card {
    width: 100%;
    max-width: 260px;
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.meeting-qr-card img {
    width: min(100%, 220px);
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}

.meeting-qr-card span {
    color: #64748b;
    font-size: .88rem;
    font-weight: 800;
}

.meeting-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

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

.meeting-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 88px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fbfdff;
    transition: transform .25s ease-in-out, box-shadow .25s ease-in-out;
}

.meeting-info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .06);
}

.meeting-info-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 12px;
    font-size: 1.15rem;
}

.meeting-info-item small,
.meeting-info-item strong {
    display: block;
}

.meeting-info-item small {
    color: #64748b;
    font-weight: 750;
}

.meeting-info-item strong {
    margin-top: 2px;
    color: #1e293b;
    font-weight: 950;
}

.meeting-files {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.meeting-files h3 {
    margin: 0 0 10px;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 950;
}

.meeting-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meeting-contact-list {
    display: grid;
    gap: 12px;
}

.meeting-contact-list div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #475569;
    font-weight: 800;
}

.meeting-contact-list i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 10px;
}

.public-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.table-responsive {
    max-width: 100%;
}

.public-table th {
    padding: 13px 10px;
    color: #1e293b;
    background: #f8fafc;
    font-weight: 900;
}

.public-table td {
    padding: 14px 10px;
    border-top: 1px solid #e5e7eb;
    vertical-align: middle;
}

.public-table th:nth-child(1),
.public-table td:nth-child(1) {
    width: 34%;
}

.public-table th:nth-child(2),
.public-table td:nth-child(2) {
    width: 124px;
}

.public-table th:nth-child(3),
.public-table td:nth-child(3) {
    width: 128px;
}

.public-table th:nth-child(4),
.public-table td:nth-child(4) {
    width: 112px;
}

.public-table th:nth-child(5),
.public-table td:nth-child(5) {
    width: 132px;
}

.public-table td:nth-child(2),
.public-table td:nth-child(4),
.public-table td:nth-child(5) {
    white-space: nowrap;
}

.public-table td:first-child strong {
    display: block;
    line-height: 1.35;
}

.public-table .public-soft-btn {
    min-width: 104px;
    min-height: 42px;
    padding-inline: 14px;
    white-space: nowrap;
    word-break: keep-all;
}

.public-table tr:hover td {
    background: #f8fafc;
}

.public-registrations-panel {
    max-width: 1180px;
    margin-inline: auto;
}

/* ── Meeting title in page-head ── */
.pubreg-meeting-title {
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 4px;
}

/* ── Panel head: count + search ── */
.pubreg-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.pubreg-panel-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ── Search form ── */
.pubreg-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    max-width: 480px;
}

.pubreg-search-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.pubreg-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .95rem;
    pointer-events: none;
}

.pubreg-search-input {
    width: 100%;
    padding: 8px 36px 8px 36px;
    border: 1.5px solid #dbe6ef;
    border-radius: 10px;
    font-size: .9rem;
    background: #f8fafc;
    color: #1e293b;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.pubreg-search-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
    background: #fff;
}

.pubreg-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .8rem;
    line-height: 1;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: background .15s, color .15s;
}

.pubreg-search-clear:hover {
    background: #e2e8f0;
    color: #475569;
}

.pubreg-search-btn {
    flex-shrink: 0;
    padding: 8px 18px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background .18s;
}

.pubreg-search-btn:hover {
    background: #6d28d9;
}

/* ── Pagination ── */
.pubreg-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.pubreg-page-info {
    font-size: .84rem;
    color: #64748b;
}

.pubreg-page-btns {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pubreg-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, background .15s, color .15s;
}

.pubreg-page-btn:hover {
    border-color: #7c3aed;
    background: #f5f3ff;
    color: #7c3aed;
}

.pubreg-page-btn.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
    pointer-events: none;
}

@media (max-width: 600px) {
    .pubreg-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .pubreg-search-form {
        max-width: 100%;
        width: 100%;
    }
    .pubreg-pagination {
        flex-direction: column;
        align-items: flex-start;
    }
}

.public-registration-table th:nth-child(1),
.public-registration-table td:nth-child(1) {
    width: 80px;
}

.public-registration-table th:nth-child(2),
.public-registration-table td:nth-child(2) {
    width: 28%;
}

.public-registration-table th:nth-child(3),
.public-registration-table td:nth-child(3),
.public-registration-table th:nth-child(4),
.public-registration-table td:nth-child(4) {
    width: 22%;
}

.public-registration-table th:nth-child(5),
.public-registration-table td:nth-child(5) {
    width: 170px;
}

.public-registration-table th,
.public-registration-table td {
    word-break: normal;
    overflow-wrap: break-word;
}

.public-registration-table td:nth-child(2),
.public-registration-table td:nth-child(3),
.public-registration-table td:nth-child(4) {
    white-space: normal;
}

.public-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    color: #075985;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    line-height: 1.6;
    font-weight: 750;
}

.public-privacy-note i {
    color: #0284c7;
    font-size: 1.15rem;
}

@media (max-width: 760px) {
    .public-registrations-page {
        padding-bottom: 24px;
    }

    .public-registrations-panel {
        padding: 16px;
    }

    .public-registrations-panel .table-responsive {
        overflow: visible;
    }

    .public-registration-table,
    .public-registration-table tbody,
    .public-registration-table tr,
    .public-registration-table td {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
    }

    .public-registration-table {
        table-layout: auto;
        border-collapse: separate;
        border-spacing: 0;
    }

    .public-registration-table thead {
        display: none;
    }

    .public-registration-table tr {
        margin-bottom: 12px;
        padding: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
    }

    .public-registration-table td {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        padding: 8px 0;
        border-top: 0;
        white-space: normal !important;
        text-align: left;
    }

    .public-registration-table td::before {
        content: attr(data-label);
        color: #64748b;
        font-size: .88rem;
        font-weight: 850;
    }

    .public-registration-table td:first-child {
        padding-top: 0;
    }

    .public-registration-table td:last-child {
        padding-bottom: 0;
    }

    .public-registration-table td > * {
        min-width: 0;
    }

    .public-registration-table .public-status {
        justify-self: start;
    }

    .public-privacy-note {
        align-items: flex-start;
        padding: 13px;
        font-size: .9rem;
    }
}

.registration-success-page {
    display: grid;
}

.registration-success-card {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.registration-success-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 24px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.registration-success-title > span {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 64px;
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #14b8a6);
    border-radius: 18px;
    font-size: 2rem;
    box-shadow: 0 16px 30px rgba(34, 197, 94, .22);
}

.registration-success-title small {
    color: #2563eb;
    font-weight: 900;
}

.registration-success-title h2 {
    margin: 2px 0 4px;
    color: #1e293b;
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    font-weight: 950;
}

.registration-success-title p {
    margin: 0;
    color: #64748b;
    font-weight: 750;
}

.registration-success-grid {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 34px);
    align-items: start;
}

.registration-success-qr {
    padding: 20px;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, .08), transparent 48%),
        #f8fafc;
}

.registration-success-qr img {
    width: min(100%, 300px);
    aspect-ratio: 1;
    padding: 12px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, .08);
}

.registration-success-qr h3 {
    margin: 16px 0 6px;
    color: #1e293b;
    font-size: 1.02rem;
    font-weight: 950;
}

.registration-success-qr p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.registration-success-info {
    display: grid;
    gap: 12px;
}

.registration-success-info div {
    display: grid;
    grid-template-columns: 42px minmax(120px, .38fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.registration-success-info i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 12px;
}

.registration-success-info span {
    color: #64748b;
    font-weight: 800;
}

.registration-success-info strong {
    color: #1e293b;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.registration-success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.public-status {
    display: inline-flex;
    align-items: center;
    padding: .28rem .62rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
    animation: publicFadeUp .25s ease both;
}

.public-status.open { color: #166534; background: #dcfce7; }
.public-status.closed { color: #475569; background: #e2e8f0; }
.public-status.cancelled { color: #991b1b; background: #fee2e2; }
.public-status.full { color: #854d0e; background: #fef3c7; }

.public-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.public-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
}

.public-filter {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px 180px auto;
    gap: 12px;
    margin-bottom: 24px;
}

.public-filter .form-control,
.public-filter .form-select {
    min-height: 50px;
    border-color: #e5e7eb;
    border-radius: 10px;
}

.public-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.public-card {
    min-height: 100%;
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .07);
    transition: .25s ease-in-out;
    position: relative;
    overflow: hidden;
}

.public-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #14b8a6, #3b82f6);
}

.public-card h3 {
    flex: 1;
    margin: 0;
    color: #172033;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
}

.public-card-meta {
    display: grid;
    gap: 7px;
    color: #64748b;
    margin-bottom: 12px;
    font-size: .875rem;
}

.public-card-meta div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.public-card-deadline {
    padding: 6px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: .8rem;
    color: #dc2626;
    font-weight: 600;
}

.public-card-register {
    background: #7c3aed !important;
    box-shadow: 0 8px 20px rgba(124, 58, 237, .22) !important;
}

.public-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 2px 0 34px;
}

.public-page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.public-page-link,
.public-page-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    background: #eff6ff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .08);
    transition: transform .25s ease-in-out, box-shadow .25s ease-in-out, background .25s ease-in-out;
}

.public-page-link {
    gap: 6px;
    padding: 0 16px;
    border-radius: 10px;
}

.public-page-dot {
    width: 40px;
    border-radius: 999px;
}

.public-page-link:hover,
.public-page-dot:hover,
.public-page-dot.active {
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .22);
    transform: translateY(-1px);
}

.public-page-link.disabled {
    pointer-events: none;
    opacity: .48;
    box-shadow: none;
}

.privacy-modern {
    padding-bottom: 48px;
}

.privacy-hero-panel {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 30px;
    margin-bottom: 24px;
    color: #fff;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .96), rgba(6, 182, 212, .88)),
        #2563eb;
    box-shadow: 0 20px 42px rgba(37, 99, 235, .2);
}

.privacy-hero-icon,
.privacy-consent-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.privacy-hero-icon {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    background: rgba(255, 255, 255, .18);
    font-size: 2rem;
}

.privacy-kicker {
    display: inline-flex;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, .78);
    font-weight: 900;
}

.privacy-hero-panel h2 {
    margin: 0;
    font-size: clamp(1.65rem, 2.5vw, 2.35rem);
    font-weight: 950;
}

.privacy-hero-panel p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .86);
}

.privacy-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

.privacy-document,
.privacy-consent-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, .07);
}

.privacy-document {
    padding: 28px;
}

.privacy-section {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eef2f7;
}

.privacy-section:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.privacy-section h3,
.privacy-warning h3,
.privacy-consent-card h3 {
    color: #1e293b;
    font-weight: 950;
}

.privacy-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.privacy-section h3 i {
    color: #2563eb;
}

.privacy-section p,
.privacy-warning p,
.privacy-consent-card p,
.privacy-list {
    color: #475569;
    line-height: 1.85;
}

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

.privacy-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    color: #1e293b;
    font-weight: 820;
}

.privacy-item i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 10px;
    color: #2563eb;
    background: #eff6ff;
}

.privacy-section.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.privacy-list {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.privacy-warning {
    display: flex;
    gap: 16px;
    padding: 22px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.privacy-warning > i {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    border-radius: 14px;
    color: #2563eb;
    background: #dbeafe;
    font-size: 1.35rem;
}

.privacy-consent-card {
    position: sticky;
    top: 106px;
    padding: 24px;
}

.privacy-consent-icon {
    width: 58px;
    height: 58px;
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #0f766e);
    font-size: 1.65rem;
    margin-bottom: 16px;
}

.privacy-check {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    line-height: 1.75;
    cursor: pointer;
}

.privacy-check input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 4px;
    accent-color: #2563eb;
}

.register-modern {
    padding-bottom: 28px;
}

.register-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 24px;
    align-items: center;
    padding: 30px;
    margin-bottom: 24px;
    color: #fff;
    border-radius: 10px;
    background:
        radial-gradient(circle at 92% 18%, rgba(255, 255, 255, .22), transparent 210px),
        linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 20px 42px rgba(37, 99, 235, .2);
}

.register-hero-copy h2 {
    margin: 14px 0 8px;
    font-size: clamp(1.55rem, 2.4vw, 2.25rem);
    font-weight: 950;
}

.register-hero-copy p {
    margin: 0;
    color: rgba(255, 255, 255, .84);
}

.register-hero-panel .public-status {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.register-hero-icon {
    width: 120px;
    height: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    border-radius: 28px;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    font-size: 3.8rem;
}

.register-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.register-meta-grid div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    font-weight: 800;
}

.register-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.register-form-panel,
.register-help-panel {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, .07);
}

.register-form-panel {
    padding: 26px;
}

.register-form-modern {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

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

.register-field label {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
    font-weight: 900;
}

.register-field label span {
    color: #ef4444;
}

.register-input {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    transition: .25s ease-in-out;
}

.register-input:focus-within {
    background: #fff;
    border-color: rgba(37, 99, 235, .55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.register-input i {
    color: #2563eb;
}

.register-input input,
.register-input textarea {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1e293b;
}

.register-input.textarea {
    align-items: flex-start;
    padding-block: 14px;
}

.register-input.textarea i {
    margin-top: 4px;
}

.register-help-panel {
    position: sticky;
    top: 106px;
    padding: 24px;
}

.register-help-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #0f766e);
    font-size: 1.65rem;
}

.register-help-panel h3 {
    color: #1e293b;
    font-weight: 950;
}

.register-help-panel p {
    color: #64748b;
    line-height: 1.75;
}

.register-help-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.register-help-list div {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #334155;
    font-weight: 800;
}

.register-help-list i {
    color: #22c55e;
    margin-top: 2px;
}

.auth-register-layout .public-main {
    min-height: 100vh;
}

.auth-register-page {
    width: min(1120px, calc(100% - 56px));
    margin: 0 auto;
    flex: 1;
    display: grid;
    place-items: center;
    padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.auth-register-card {
    width: 100%;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid #dbe6ef;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, .10), transparent 32%),
        rgba(255, 255, 255, .96);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .10);
}

.auth-register-head {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.auth-register-icon {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .22);
    font-size: 1.55rem;
}

.auth-register-head p {
    margin: 0 0 .15rem;
    color: #2563eb;
    font-weight: 850;
}

.auth-register-head h1 {
    margin: 0;
    color: #172033;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 950;
}

.auth-register-head span {
    display: block;
    margin-top: .25rem;
    color: #64748b;
    font-weight: 650;
}

.auth-register-notice,
.auth-role-lock {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.auth-register-notice {
    margin-bottom: 1.25rem;
}

.auth-register-notice i,
.auth-role-lock i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    color: #2563eb;
    background: #dbeafe;
    border-radius: 12px;
}

.auth-register-notice strong,
.auth-role-lock strong,
.auth-register-notice span,
.auth-role-lock span {
    display: block;
}

.auth-register-notice strong,
.auth-role-lock strong {
    color: #1e293b;
    font-weight: 950;
}

.auth-register-notice span,
.auth-role-lock span {
    margin-top: .15rem;
    color: #64748b;
    font-weight: 650;
    line-height: 1.55;
}

.auth-register-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.auth-field.full,
.auth-register-actions {
    grid-column: 1 / -1;
}

.auth-field label {
    display: block;
    margin-bottom: .45rem;
    color: #334155;
    font-weight: 850;
}

.auth-field label span {
    color: #ef4444;
}

.auth-field small {
    display: block;
    margin-top: .35rem;
    color: #64748b;
    font-weight: 650;
}

.auth-input {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0 .95rem;
    border: 1px solid #dbe6ef;
    border-radius: 12px;
    background: #f8fafc;
    transition: border-color .25s ease-in-out, box-shadow .25s ease-in-out, background .25s ease-in-out;
}

.auth-input:focus-within {
    background: #fff;
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.auth-input i {
    color: #2563eb;
    font-size: 1.05rem;
}

.auth-input input,
.auth-input select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #172033;
}

.auth-input select {
    min-width: 0;
    cursor: pointer;
}

.auth-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.auth-register-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    margin-top: .5rem;
}

.auth-register-actions .btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding-inline: 1rem;
    border-radius: 12px;
    font-weight: 850;
}

.auth-login-layout .public-main {
    min-height: 100vh;
}

.auth-login-layout .admin-login-shell {
    width: min(1480px, calc(100% - 56px));
    margin: 0 auto;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(460px, .95fr) minmax(380px, 560px);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.auth-login-layout .admin-login-brand,
.auth-login-layout .admin-login-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .10);
}

.auth-login-layout .admin-login-brand {
    min-height: 660px;
    padding: clamp(2rem, 4vw, 3rem);
    color: #fff;
    background:
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, .22), transparent 28%),
        linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
}

.auth-login-layout .admin-login-brand::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -150px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
}

.auth-login-layout .admin-login-logo,
.auth-login-layout .admin-login-features,
.auth-login-layout .admin-login-metrics,
.auth-login-layout .admin-login-pill,
.auth-login-layout .admin-login-brand h1,
.auth-login-layout .admin-login-brand p {
    position: relative;
    z-index: 1;
}

.auth-login-layout .admin-login-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.auth-login-layout .admin-login-logo span,
.auth-login-layout .admin-login-card-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    border-radius: 16px;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    font-size: 1.45rem;
}

.auth-login-layout .admin-login-logo strong,
.auth-login-layout .admin-login-logo small {
    display: block;
}

.auth-login-layout .admin-login-logo strong {
    font-size: 1.1rem;
    font-weight: 950;
}

.auth-login-layout .admin-login-logo small {
    color: rgba(255, 255, 255, .84);
    font-weight: 750;
}

.auth-login-layout .admin-login-pill {
    width: fit-content;
    margin-bottom: 24px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    font-weight: 900;
}

.auth-login-layout .admin-login-brand h1 {
    max-width: 780px;
    margin: 0 0 18px;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.15;
    font-weight: 950;
}

.auth-login-layout .admin-login-brand h1 span {
    color: #e0f2fe;
}

.auth-login-layout .admin-login-brand p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    line-height: 1.75;
    font-weight: 750;
}

.auth-login-layout .admin-login-metrics,
.auth-login-layout .admin-login-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.auth-login-layout .admin-login-metrics {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 16px;
    background: rgba(255, 255, 255, .10);
}

.auth-login-layout .admin-login-metrics div,
.auth-login-layout .admin-login-features div {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    transition: .25s ease-in-out;
}

.auth-login-layout .admin-login-metrics div:hover,
.auth-login-layout .admin-login-features div:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .18);
}

.auth-login-layout .admin-login-metrics strong,
.auth-login-layout .admin-login-metrics span,
.auth-login-layout .admin-login-features strong,
.auth-login-layout .admin-login-features small {
    display: block;
}

.auth-login-layout .admin-login-features i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .16);
    font-size: 1.15rem;
}

.auth-login-layout .admin-login-features small {
    margin-top: 6px;
    color: rgba(255, 255, 255, .82);
    line-height: 1.55;
}

.auth-login-layout .admin-login-card {
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border: 1px solid #dbe6ef;
    background:
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, .10), transparent 30%),
        #fff;
}

.auth-login-layout .admin-login-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

.auth-login-layout .admin-login-card-icon {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.auth-login-layout .admin-login-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #2563eb;
    background: #eff6ff;
    font-weight: 900;
    text-decoration: none;
    transition: .25s ease-in-out;
}

.auth-login-layout .admin-login-card-link:hover {
    color: #1d4ed8;
    transform: translateY(-2px);
}

.auth-login-layout .admin-login-card h2 {
    margin: 0 0 8px;
    color: #172033;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 950;
}

.auth-login-layout .admin-login-card > p,
.auth-login-layout .admin-login-hint {
    color: #64748b;
    line-height: 1.65;
}

.auth-login-layout .admin-login-form {
    display: grid;
    gap: 13px;
    margin-top: 24px;
}

.auth-login-layout .admin-login-form label {
    color: #172033;
    font-weight: 900;
}

.auth-login-layout .admin-login-input {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid #dbe6ef;
    border-radius: 12px;
    background: #f8fafc;
    transition: .25s ease-in-out;
}

.auth-login-layout .admin-login-input:focus-within {
    background: #fff;
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.auth-login-layout .admin-login-input i {
    color: #2563eb;
}

.auth-login-layout .admin-login-input input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
}

.auth-login-layout .admin-login-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    color: #64748b;
    font-weight: 800;
}

.auth-login-layout .admin-login-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
}

.auth-login-layout .admin-login-row a {
    color: #2563eb;
    font-weight: 900;
    text-decoration: none;
}

.auth-login-layout .admin-login-submit {
    min-height: 54px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    font-weight: 950;
    box-shadow: 0 16px 30px rgba(37, 99, 235, .22);
    transition: .25s ease-in-out;
}

.auth-login-layout .admin-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(37, 99, 235, .28);
}

.auth-login-layout .admin-login-demo {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.auth-login-layout .admin-login-demo span {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #dbe6ef;
    border-radius: 10px;
    background: #f8fafc;
    color: #172033;
    font-weight: 900;
}

.auth-login-layout .admin-login-hint {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding: 12px;
    border: 1px dashed #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    font-weight: 750;
}

.auth-login-layout .admin-login-hint i {
    color: #2563eb;
}

/* Compact login layout: keep both cards fully visible across common screens. */
.auth-login-layout .admin-login-shell {
    grid-template-columns: minmax(420px, .92fr) minmax(360px, 520px);
    gap: clamp(1.35rem, 3vw, 2.5rem);
    align-items: center;
    padding: clamp(1.25rem, 2.6vw, 2rem) 0;
}

.auth-login-layout .admin-login-brand {
    min-height: 0;
    padding: clamp(1.65rem, 2.8vw, 2.35rem);
}

.auth-login-layout .admin-login-logo {
    margin-bottom: 18px;
}

.auth-login-layout .admin-login-logo span,
.auth-login-layout .admin-login-card-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 14px;
    font-size: 1.25rem;
}

.auth-login-layout .admin-login-logo strong {
    font-size: 1rem;
}

.auth-login-layout .admin-login-logo small,
.auth-login-layout .admin-login-brand p,
.auth-login-layout .admin-login-features small,
.auth-login-layout .admin-login-card > p,
.auth-login-layout .admin-login-hint {
    font-size: .9rem;
}

.auth-login-layout .admin-login-pill {
    margin-bottom: 18px;
    padding: 7px 14px;
    font-size: .9rem;
}

.auth-login-layout .admin-login-brand h1 {
    max-width: 720px;
    margin-bottom: 12px;
    font-size: clamp(1.72rem, 2.25vw, 2.15rem);
    line-height: 1.22;
}

.auth-login-layout .admin-login-brand p {
    max-width: 660px;
    line-height: 1.62;
}

.auth-login-layout .admin-login-metrics,
.auth-login-layout .admin-login-features {
    gap: 10px;
    margin-top: 18px;
}

.auth-login-layout .admin-login-metrics {
    padding: 10px;
}

.auth-login-layout .admin-login-metrics div,
.auth-login-layout .admin-login-features div {
    padding: 13px;
}

.auth-login-layout .admin-login-metrics strong,
.auth-login-layout .admin-login-features strong {
    font-size: .95rem;
}

.auth-login-layout .admin-login-metrics span {
    font-size: .86rem;
}

.auth-login-layout .admin-login-features i {
    width: 36px;
    height: 36px;
    margin-bottom: 9px;
    border-radius: 10px;
    font-size: 1rem;
}

.auth-login-layout .admin-login-card {
    padding: clamp(1.35rem, 2.3vw, 2rem);
}

.auth-login-layout .admin-login-card-head {
    margin-bottom: 18px;
}

.auth-login-layout .admin-login-card h2 {
    font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.auth-login-layout .admin-login-form {
    gap: 10px;
    margin-top: 18px;
}

.auth-login-layout .admin-login-input,
.auth-login-layout .admin-login-submit {
    min-height: 50px;
}

.auth-login-layout .admin-login-demo {
    margin-top: 14px;
}

.auth-login-layout .admin-login-hint {
    margin-top: 12px;
    padding: 10px 12px;
}

.public-footer {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 24px;
    align-items: center;
    margin: auto 0 0;
    padding: 24px clamp(24px, 3vw, 48px);
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, .18);
    border-radius: 0;
    color: #dbeafe;
    background:
        radial-gradient(circle at 12% 0%, rgba(59, 130, 246, .24), transparent 28%),
        linear-gradient(135deg, #213042 0%, #172033 100%);
    box-shadow: 0 -12px 34px rgba(15, 23, 42, .08);
}

.public-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.public-footer-brand > span:not(.moph-logo-wrap) {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
}

.public-footer-brand strong,
.public-footer-brand small {
    display: block;
}

.public-footer-brand strong {
    color: #ffffff;
    font-weight: 950;
}

.public-footer-brand small,
.public-footer-copy,
.public-footer-contact {
    color: #bfd3ea;
}

.public-footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-weight: 780;
}

.public-footer-contact span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(191, 211, 234, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
}

.public-footer-contact i {
    color: #38bdf8;
}

.public-footer-copy {
    text-align: right;
    white-space: nowrap;
    font-weight: 800;
}

.calendar-page-head {
    padding: 18px 0 14px;
}

.calendar-subtitle {
    margin: 8px 0 0;
    color: #64748b;
    font-weight: 700;
}

.calendar-modern {
    padding-bottom: 0;
}

.calendar-shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: calc(100vh - 190px);
    padding: 14px 18px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, .07);
    overflow: hidden;
}

/* calendar height when meeting list shows below */
.calendar-modern.cal-has-list .calendar-shell {
    height: min(530px, calc(100vh - 260px));
}

/* meeting list section below calendar */
.cal-meeting-section {
    padding-top: 4px;
}

.cal-list-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0 14px 16px;
    border-left: 4px solid #3b82f6;
    margin-bottom: 16px;
}

.cal-list-head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 900;
    color: #172033;
}

.cal-list-count {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    font-size: .8rem;
    font-weight: 700;
}

.cal-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}

.cal-clear-btn:hover {
    background: #e2e8f0;
    color: #374151;
}

.cal-empty-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 24px;
    color: #94a3b8;
    text-align: center;
}

.cal-empty-hint i {
    font-size: 2.4rem;
}

.cal-empty-hint p {
    margin: 0;
    font-size: .95rem;
}

.calendar-toolbar-note {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eef2f7;
}

.calendar-toolbar-note strong,
.calendar-toolbar-note span {
    display: block;
}

.calendar-toolbar-note strong {
    color: #1e293b;
    font-weight: 950;
}

.calendar-toolbar-note span {
    color: #64748b;
    font-size: .92rem;
    font-weight: 700;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #475569;
    font-size: .82rem;
}

.calendar-legend i {
    width: 9px;
    height: 9px;
    border-radius: 999px;
}

.calendar-legend i.open { background: #22c55e; }
.calendar-legend i.closed { background: #64748b; }
.calendar-legend i.cancelled { background: #ef4444; }

.smart-calendar {
    flex: 1;
    min-height: 0;
}

.smart-calendar .fc {
    height: 100%;
}

.smart-calendar .fc-toolbar.fc-header-toolbar {
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.smart-calendar .fc-toolbar-chunk {
    display: flex;
    align-items: center;
    gap: 8px;
}

.smart-calendar .fc-button-group {
    display: inline-flex;
    gap: 6px;
}

.smart-calendar .fc-toolbar-title {
    color: #1e293b;
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
    font-weight: 950;
}

.smart-calendar .fc-button {
    border: 0 !important;
    border-radius: 9px !important;
    background: #2563eb !important;
    box-shadow: none !important;
    font-weight: 850 !important;
    margin: 0 !important;
    transition: .25s ease-in-out;
}

.smart-calendar .fc-button:hover,
.smart-calendar .fc-button:focus {
    background: #1d4ed8 !important;
    transform: translateY(-1px);
}

.smart-calendar .fc-button-active {
    background: #1e293b !important;
}

.smart-calendar .fc-scrollgrid,
.smart-calendar .fc-theme-standard td,
.smart-calendar .fc-theme-standard th {
    border-color: #e2e8f0;
}

.smart-calendar .fc-col-header-cell {
    background: #f8fafc;
}

.smart-calendar .fc-col-header-cell-cushion,
.smart-calendar .fc-daygrid-day-number {
    color: #2563eb;
    text-decoration: none;
    font-weight: 900;
}

.smart-calendar .fc-day-today {
    background: #eff6ff !important;
}

.smart-calendar .fc-daygrid-day-frame {
    min-height: 74px;
}

.smart-calendar .fc-event {
    border: 0;
    border-radius: 10px;
    padding: 0;
    margin: 2px 4px 0;
    background: transparent !important;
    color: #1e293b !important;
    box-shadow: none;
    overflow: hidden;
}

.smart-calendar .fc-daygrid-event {
    white-space: normal;
}

.smart-calendar .fc-daygrid-event-harness {
    margin-top: 3px;
}

.smart-calendar .fc-event-main {
    color: inherit !important;
}

.calendar-event-pill {
    --event-color: #2563eb;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-left: 3px solid var(--event-color);
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
    line-height: 1.25;
    transition: transform .25s ease-in-out, box-shadow .25s ease-in-out;
}

.calendar-event-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .13);
}

.calendar-event-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-top: 5px;
    border-radius: 999px;
    background: var(--event-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.calendar-event-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    width: 100%;
}

.calendar-event-time {
    color: var(--event-color);
    font-size: .68rem;
    font-weight: 950;
    white-space: nowrap;
}

.calendar-event-title {
    min-width: 0;
    color: #1e293b;
    font-size: .72rem;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smart-calendar .fc-view-harness,
.smart-calendar .fc-scroller {
    min-height: 0;
    overflow: hidden !important;
}

.smart-calendar .fc-scroller-liquid-absolute {
    inset: 0 !important;
}

.system-help-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1200;
}

.system-help-modal.show {
    display: flex;
}

.system-help-modal.show .system-help-backdrop {
    animation: helpBackdropIn .22s ease both;
}

.system-help-modal.show .system-help-dialog {
    animation: helpDialogIn .28s ease both;
}

.system-help-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .54);
    backdrop-filter: blur(8px);
}

.system-help-dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: min(86vh, 760px);
    overflow-y: auto;
    padding: 28px;
    border: 1px solid rgba(219, 230, 239, .9);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, .13), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 30px 80px rgba(15, 23, 42, .28);
}

.system-help-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 1px solid #dbe6ef;
    border-radius: 12px;
    color: #64748b;
    background: rgba(255, 255, 255, .82);
    transition: .25s ease-in-out;
}

.system-help-close:hover {
    color: #1d4ed8;
    border-color: #bfdbfe;
    background: #eff6ff;
    transform: rotate(4deg) translateY(-1px);
}

.system-help-hero {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 6px 52px 22px 0;
    border-bottom: 1px solid #e5e7eb;
}

.system-help-icon:not(.moph-logo-wrap) {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 16px 30px rgba(37, 99, 235, .24);
    font-size: 1.45rem;
}

.system-help-eyebrow {
    margin: 0 0 4px;
    color: #2563eb;
    font-size: .82rem;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.system-help-hero h2 {
    margin: 0;
    color: #172033;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    font-weight: 950;
}

.system-help-hero p:last-child {
    margin: 8px 0 0;
    color: #64748b;
    line-height: 1.7;
    font-weight: 720;
}

.system-help-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.system-help-steps article {
    display: flex;
    gap: 12px;
    min-height: 132px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .05);
    transition: .25s ease-in-out;
}

.system-help-steps article:hover {
    border-color: #bfdbfe;
    box-shadow: 0 18px 34px rgba(37, 99, 235, .10);
    transform: translateY(-3px);
}

.system-help-steps article > span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 12px;
    color: #fff;
    background: #213042;
    font-weight: 950;
}

.system-help-steps h3 {
    margin: 2px 0 6px;
    color: #172033;
    font-size: .98rem;
    font-weight: 950;
}

.system-help-steps p {
    margin: 0;
    color: #64748b;
    line-height: 1.58;
    font-size: .92rem;
    font-weight: 700;
}

.system-help-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.system-help-primary,
.system-help-secondary {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 900;
    text-decoration: none;
    transition: .25s ease-in-out;
}

.system-help-primary {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .22);
}

.system-help-secondary {
    color: #475569;
    border: 1px solid #dbe6ef;
    background: #fff;
}

.system-help-primary:hover,
.system-help-secondary:hover {
    transform: translateY(-2px);
}

.system-help-primary:hover {
    color: #fff;
    box-shadow: 0 18px 34px rgba(37, 99, 235, .28);
}

.system-help-secondary:hover {
    color: #2563eb;
    background: #eff6ff;
}

.system-help-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0 0;
    padding: 12px 14px;
    border: 1px dashed #bfdbfe;
    border-radius: 14px;
    color: #64748b;
    background: #eff6ff;
    font-size: .88rem;
    font-weight: 760;
}

.system-help-note i {
    color: #2563eb;
}

body.system-help-lock {
    overflow: hidden;
}

@keyframes helpBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes helpDialogIn {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes publicFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── MOPH logo animations ── */
@keyframes moph-glow {
    0%, 100% {
        box-shadow:
            0 0 0 0   rgba(0, 122, 61, 0),
            0 6px 18px rgba(0, 122, 61, .25);
    }
    50% {
        box-shadow:
            0 0 0 6px rgba(0, 122, 61, .18),
            0 8px 24px rgba(0, 122, 61, .45);
    }
}

@keyframes moph-ring {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.moph-logo-wrap {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: moph-glow 2.8s ease-in-out infinite;
}

.moph-logo-wrap::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #007a3d 0%,
        #22c55e 30%,
        transparent 50%,
        #007a3d 70%,
        #22c55e 100%
    );
    animation: moph-ring 3s linear infinite;
    z-index: -1;
    opacity: .75;
}

.moph-logo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #fff;
    z-index: 0;
}

.moph-logo-wrap img {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

/* sidebar smaller variant */
.public-brand .moph-logo-wrap {
    width: 54px;
    height: 54px;
}

.public-brand .moph-logo-wrap img {
    width: 44px;
    height: 44px;
}

/* footer smaller variant */
.public-footer-brand .moph-logo-wrap {
    width: 46px;
    height: 46px;
    animation-duration: 3.5s;
}

.public-footer-brand .moph-logo-wrap img {
    width: 36px;
    height: 36px;
}

/* help modal larger */
.system-help-icon.moph-logo-wrap {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    background: #fff;
    box-shadow: none;
}

.system-help-icon.moph-logo-wrap img {
    width: 58px;
    height: 58px;
}
}

@media (max-width: 1199px) {
    .meeting-reference-head {
        grid-template-columns: minmax(0, 1fr) 170px;
    }

    .meeting-reference-qr img {
        width: 132px;
        height: 132px;
    }

    .public-summary-grid,
    .public-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-grid:not(.dashboard-home-grid) {
        grid-template-columns: 1fr;
    }

    .dashboard-home-grid {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
    }

    .dashboard-status-panel {
        max-width: 330px;
    }

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

    .privacy-layout,
    .privacy-section.two-col,
    .register-layout {
        grid-template-columns: 1fr;
    }

    .privacy-consent-card,
    .register-help-panel {
        position: static;
    }

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

    .public-footer {
        grid-template-columns: 1fr;
    }

    .public-footer-copy {
        text-align: left;
    }

    .calendar-shell {
        height: calc(100vh - 190px);
        min-height: 560px;
    }

    .calendar-toolbar-note {
        align-items: flex-start;
        flex-direction: column;
    }

    .meeting-detail-hero,
    .meeting-detail-grid {
        grid-template-columns: 1fr;
    }

    .meeting-detail-side {
        justify-content: flex-start;
    }

    .auth-login-layout .admin-login-shell {
        grid-template-columns: 1fr;
    }

    .auth-login-layout .admin-login-brand {
        min-height: auto;
    }
}

@media (max-width: 1100px) {
    .public-search {
        display: none;
    }

    .public-topbar {
        padding-inline: 18px;
    }
}

@media (max-width: 1440px) {
    .dashboard-home-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-status-panel {
        max-width: none;
        justify-self: stretch;
    }

    .dashboard-status-panel .d-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-status-panel .public-primary-btn {
        width: fit-content !important;
        min-width: 240px;
    }
}

@media (max-width: 1320px) {
    .dashboard-home-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-status-panel {
        max-width: none;
        justify-self: stretch;
    }

    .dashboard-status-panel .d-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-status-panel .public-primary-btn {
        width: fit-content !important;
        min-width: 240px;
    }

    .auth-login-layout .admin-login-shell {
        grid-template-columns: 1fr;
        width: min(760px, calc(100% - 40px));
    }

    .auth-login-layout .admin-login-brand {
        min-height: auto;
    }
}

@media (min-width: 1321px) {
    .auth-login-layout .admin-login-brand h1 {
        white-space: nowrap;
    }

    .auth-login-layout .admin-login-brand h1 br {
        display: none;
    }

    .auth-login-layout .admin-login-brand h1 span::before {
        content: "\A";
        white-space: pre;
    }
}

@media (max-width: 991px) {
    .public-sidebar-wrap {
        width: 0;
        flex: 0 0 0;
        overflow: visible;
    }

    .public-sidebar {
        position: fixed;
        width: 260px;
        transform: translateX(-100%);
        transition: transform .25s ease-in-out;
    }

    body.public-sidebar-open .public-sidebar {
        transform: translateX(0);
    }

    .public-search {
        width: min(520px, 52vw);
    }

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

    .dashboard-status-panel {
        max-width: none;
        justify-self: stretch;
    }
}

@media (max-width: 860px) {
    .meeting-reference-head {
        grid-template-columns: 1fr;
    }

    .meeting-reference-qr {
        width: 210px;
        justify-self: center;
    }

    .meeting-reference-actions {
        grid-template-columns: 1fr;
    }

    .public-topbar {
        gap: 12px;
        padding-inline: 18px;
    }

    .public-search {
        display: none;
    }

    .public-page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-status-panel .d-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-status-panel .public-primary-btn {
        width: 100% !important;
        min-width: 0;
    }

    .checkin-ticket-grid,
    .checkin-ticket-info {
        grid-template-columns: 1fr;
    }

    .checkin-ticket-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .registration-success-grid,
    .registration-success-info {
        grid-template-columns: 1fr;
    }

    .registration-success-title {
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 760px) {
    .dashboard-home-grid .table-responsive {
        overflow: visible;
    }

    .dashboard-home-grid .public-table,
    .dashboard-home-grid .public-table tbody,
    .dashboard-home-grid .public-table tr,
    .dashboard-home-grid .public-table td {
        display: block;
        width: 100%;
    }

    .dashboard-home-grid .public-table thead {
        display: none;
    }

    .dashboard-home-grid .public-table tr {
        padding: 16px 0;
        border-top: 1px solid #e5e7eb;
    }

    .dashboard-home-grid .public-table tr:first-child {
        border-top: 0;
    }

    .dashboard-home-grid .public-table td {
        padding: 6px 0;
        border-top: 0;
        white-space: normal;
    }

    .dashboard-home-grid .public-table td:first-child {
        margin-bottom: 6px;
    }

    .dashboard-home-grid .public-table td:nth-child(4) {
        max-width: 260px;
    }

    .dashboard-home-grid .public-table .public-soft-btn {
        width: 100%;
        max-width: 260px;
        margin-top: 4px;
    }
}

@media (max-width: 640px) {
    .meeting-reference-card {
        border-radius: 14px;
    }

    .meeting-reference-head {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px 16px;
    }

    .meeting-reference-title {
        align-items: flex-start;
        gap: 12px;
    }

    .meeting-reference-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .meeting-reference-heading-row {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .meeting-reference-heading-row .public-status {
        margin-top: 0;
    }

    .meeting-reference-qr {
        width: 100%;
        max-width: 190px;
        justify-self: center;
    }

    .meeting-reference-qr img {
        width: 138px;
        height: 138px;
    }

    .meeting-reference-body {
        padding: 6px 18px 0;
    }

    .meeting-reference-row {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 11px;
        padding: 11px 0;
    }

    .meeting-reference-row-icon {
        width: 32px;
        height: 32px;
    }

    .meeting-reference-contact {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .meeting-reference-contact-head {
        padding: 0 0 10px;
        border-right: 0;
        border-bottom: 1px solid #dbe5ef;
    }

    .meeting-reference-contact-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .meeting-reference-actions {
        grid-template-columns: 1fr;
        padding: 14px 16px 16px;
    }

    .meeting-reference-actions a {
        min-height: 54px;
    }

    .public-topbar {
        padding: 0 14px;
    }

    .public-profile-btn strong {
        display: none;
    }

    .public-topbar-login,
    .public-topbar-register {
        min-height: 40px;
        padding: 0 11px;
        font-size: .86rem;
    }

    .public-topbar-login i,
    .public-topbar-register i {
        display: none;
    }

    .public-page-head,
    .public-content {
        width: calc(100% - 24px);
    }

    .public-page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-summary-grid,
    .public-card-grid,
    .public-filter {
        grid-template-columns: 1fr;
    }

    .public-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .public-page-link {
        width: 100%;
    }

    .privacy-hero-panel,
    .privacy-warning {
        align-items: flex-start;
        flex-direction: column;
    }

    .privacy-document,
    .privacy-consent-card,
    .privacy-hero-panel {
        padding: 20px;
    }

    .privacy-item-grid {
        grid-template-columns: 1fr;
    }

    .register-hero-panel,
    .register-form-modern {
        grid-template-columns: 1fr;
    }

    .register-hero-icon {
        display: none;
    }

    .register-meta-grid {
        grid-template-columns: 1fr;
    }

    .register-form-panel,
    .register-help-panel {
        padding: 20px;
    }

    .auth-register-page {
        width: calc(100% - 24px);
        padding: 18px 0;
    }

    .auth-register-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-register-form {
        grid-template-columns: 1fr;
    }

    .auth-register-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .auth-login-layout .admin-login-shell {
        width: calc(100% - 24px);
        padding: 18px 0;
    }

    .auth-login-layout .admin-login-brand,
    .auth-login-layout .admin-login-card {
        padding: 20px;
    }

    .auth-login-layout .admin-login-metrics,
    .auth-login-layout .admin-login-features,
    .auth-login-layout .admin-login-demo {
        grid-template-columns: 1fr;
    }

    .auth-login-layout .admin-login-card-head,
    .auth-login-layout .admin-login-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-login-layout .admin-login-card-link,
    .auth-login-layout .admin-login-submit {
        width: 100%;
        justify-content: center;
    }

    .public-footer {
        padding: 18px;
    }

    .calendar-shell {
        height: auto;
        min-height: 620px;
        padding: 12px;
    }

    .smart-calendar .fc-toolbar.fc-header-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .smart-calendar .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .smart-calendar .fc-button {
        padding: .35rem .55rem !important;
        font-size: .85rem !important;
    }

    .meeting-info-grid {
        grid-template-columns: 1fr;
    }

    .meeting-detail-actions,
    .meeting-detail-actions .btn {
        width: 100%;
    }

    .meeting-detail-actions .btn {
        justify-content: center;
    }

    .registration-success-card {
        padding: 20px;
    }

    .registration-success-title {
        flex-direction: column;
    }

    .registration-success-info div {
        grid-template-columns: 42px 1fr;
    }

    .registration-success-info strong {
        grid-column: 2;
    }

    .registration-success-actions,
    .registration-success-actions .public-soft-btn,
    .registration-success-actions .public-primary-btn {
        width: 100%;
    }

    .system-help-modal {
        padding: 12px;
    }

    .system-help-dialog {
        padding: 22px;
        border-radius: 18px;
    }

    .system-help-hero {
        padding-right: 44px;
    }

    .system-help-steps {
        grid-template-columns: 1fr;
    }

    .system-help-actions {
        flex-direction: column-reverse;
    }

    .system-help-primary,
    .system-help-secondary {
        width: 100%;
    }
}

body:has(.front-dashboard),
body:has(.login-showcase) {
    background:
        radial-gradient(circle at 88% 22%, rgba(56, 189, 248, .20), transparent 26rem),
        linear-gradient(135deg, #f8fafc 0%, #eef6f9 100%) !important;
}

body:has(.front-dashboard) .app-navbar,
body:has(.login-showcase) .app-navbar {
    min-height: 66px !important;
    background: var(--front-navy) !important;
    border: 0 !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .16) !important;
}

.front-dashboard {
    min-height: calc(100vh - 66px);
    padding-bottom: 3rem;
}

.front-dashboard::before {
    content: "";
    position: fixed;
    inset: 66px 0 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(29, 78, 216, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 78, 216, .045) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(90deg, #000, transparent 76%);
}

.front-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 420px !important;
    gap: 1.5rem !important;
    align-items: stretch !important;
    width: min(1280px, calc(100% - 2rem)) !important;
    margin: 2rem auto 1.5rem !important;
}

.front-hero-panel {
    min-height: 0 !important;
    padding: 1.75rem !important;
    color: var(--front-text) !important;
    background: rgba(255, 255, 255, .92) !important;
    border: 1px solid var(--front-border) !important;
    border-radius: 22px !important;
    box-shadow: 0 20px 46px rgba(15, 23, 42, .10) !important;
    overflow: hidden;
}

.front-hero-panel::after {
    display: none !important;
}

.front-hero-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 9px;
    background: linear-gradient(180deg, var(--front-blue), var(--front-green));
}

.front-brand {
    margin-bottom: 1rem !important;
}

.front-hero-panel .brand-icon {
    width: 48px !important;
    height: 48px !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--front-blue), var(--front-green)) !important;
    border-radius: 14px !important;
}

.front-hero-panel .brand-title,
.front-hero-panel .brand-subtitle {
    color: var(--front-text) !important;
}

.front-hero-panel .brand-subtitle {
    color: var(--front-blue) !important;
}

.edition-pill {
    margin-bottom: 1rem !important;
    color: #1e3a8a !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
}

.front-hero-panel h1 {
    max-width: 820px !important;
    margin: 0 0 .75rem !important;
    color: var(--front-text) !important;
    font-size: clamp(2rem, 3vw, 3rem) !important;
    line-height: 1.12 !important;
}

.front-hero-panel h1 span {
    color: var(--front-blue) !important;
}

.front-hero-panel p {
    max-width: 760px !important;
    margin: 0 !important;
    color: var(--front-muted) !important;
}

.front-feature-list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: .85rem !important;
    margin: 1.25rem 0 !important;
}

.front-feature-list > div {
    display: block !important;
    min-height: 150px !important;
    padding: 1rem !important;
    color: var(--front-text) !important;
    background: #f8fafc !important;
    border: 1px solid var(--front-border) !important;
    border-radius: 16px !important;
    backdrop-filter: none !important;
}

.front-feature-list span {
    width: 42px !important;
    height: 42px !important;
    margin-bottom: .8rem !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--front-blue), var(--front-green)) !important;
    border-radius: 12px !important;
}

.front-feature-list strong {
    color: var(--front-text) !important;
    font-size: .95rem !important;
}

.front-feature-list small {
    display: block !important;
    margin-top: .35rem !important;
    color: var(--front-muted) !important;
    line-height: 1.45 !important;
}

.front-hero-actions {
    margin: 1.1rem 0 0 !important;
}

.btn-front-primary,
.btn-front-ghost {
    min-height: 46px !important;
    border-radius: 12px !important;
}

.btn-front-primary {
    background: linear-gradient(135deg, var(--front-blue), #1e3a8a) !important;
    box-shadow: 0 14px 28px rgba(29, 78, 216, .22) !important;
}

.btn-front-ghost {
    color: var(--front-blue) !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
}

.front-hero-metrics {
    justify-content: flex-start !important;
    gap: 2rem !important;
    margin-top: 1.1rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid var(--front-border) !important;
}

.front-hero-metrics span,
.front-hero-metrics b {
    color: var(--front-text) !important;
}

.front-hero-metrics span {
    color: var(--front-muted) !important;
}

.front-side-card {
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 1.65rem !important;
    background: rgba(255, 255, 255, .95) !important;
    border: 1px solid var(--front-border) !important;
    border-radius: 22px !important;
    box-shadow: 0 20px 46px rgba(15, 23, 42, .10) !important;
}

.welcome-icon {
    background: linear-gradient(135deg, var(--front-blue), var(--front-green)) !important;
}

.front-mini-status {
    margin: 1rem 0 !important;
}

.front-content {
    width: min(1280px, calc(100% - 2rem)) !important;
    margin: 0 auto 3rem !important;
}

.front-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
}

.front-stat-card {
    min-height: 104px !important;
    border-radius: 18px !important;
    border-left-width: 5px !important;
}

.front-meeting-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
}

.front-meeting-card {
    min-height: 250px !important;
    border-radius: 18px !important;
}

.front-meeting-card h3 {
    color: var(--front-blue) !important;
}

.site-footer {
    color: #fff !important;
    background: #2563eb !important;
    border-top: 1px solid rgba(255, 255, 255, .16) !important;
    box-shadow: 0 -12px 30px rgba(37, 99, 235, .14) !important;
}

.site-footer .text-secondary,
.site-footer .small {
    color: rgba(255, 255, 255, .82) !important;
}

/* Login viewport fit: keep the form balanced and reveal the footer when content is short. */
@media (min-width: 992px) {
    .auth-login-layout.public-layout {
        min-height: calc(100dvh - 96px);
    }

    .auth-login-layout .public-sidebar {
        height: calc(100dvh - 96px);
        min-height: calc(100dvh - 96px);
    }

    .auth-login-layout .public-main {
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .auth-login-layout .admin-login-shell {
        flex: 1 1 0;
        min-height: calc(100dvh - 178px);
        width: min(100% - 48px, 1220px);
        grid-template-columns: minmax(520px, .95fr) minmax(360px, 450px);
        gap: clamp(1.25rem, 2.4vw, 2.25rem);
        align-content: center;
        align-items: center;
        padding: clamp(.9rem, 1.6vw, 1.4rem) 0;
    }

    .auth-login-layout .admin-login-brand {
        max-height: calc(100dvh - 178px);
        padding: clamp(1.2rem, 1.9vw, 1.75rem);
    }

    .auth-login-layout .admin-login-logo {
        margin-bottom: 12px;
    }

    .auth-login-layout .admin-login-pill {
        margin-bottom: 12px;
    }

    .auth-login-layout .admin-login-brand h1 {
        margin: 0 0 10px;
        font-size: clamp(1.55rem, 2.05vw, 2rem);
        line-height: 1.2;
    }

    .auth-login-layout .admin-login-brand p {
        margin-bottom: 0;
        font-size: .84rem;
        line-height: 1.52;
    }

    .auth-login-layout .admin-login-metrics,
    .auth-login-layout .admin-login-features {
        margin-top: 12px;
        gap: 8px;
    }

    .auth-login-layout .admin-login-metrics div,
    .auth-login-layout .admin-login-features div {
        min-height: 0;
        padding: 10px 12px;
    }

    .auth-login-layout .admin-login-features div {
        min-height: 112px;
    }

    .auth-login-layout .admin-login-features i {
        width: 32px;
        height: 32px;
        margin-bottom: 8px;
        font-size: 1rem;
    }

    .auth-login-layout .admin-login-card {
        width: min(100%, 450px);
        padding: clamp(1.25rem, 1.9vw, 1.75rem);
    }

    .auth-login-layout .admin-login-card-head {
        margin-bottom: 12px;
    }

    .auth-login-layout .admin-login-card h2 {
        font-size: clamp(1.55rem, 2.1vw, 2rem);
    }

    .auth-login-layout .admin-login-card > p {
        font-size: .86rem;
        line-height: 1.52;
    }

    .auth-login-layout .admin-login-form {
        gap: 9px;
        margin-top: 14px;
    }

    .auth-login-layout .admin-login-form label {
        margin-bottom: 0;
        font-size: .9rem;
    }

    .auth-login-layout .admin-login-input,
    .auth-login-layout .admin-login-submit {
        min-height: 46px;
    }

    .auth-login-layout .admin-login-row {
        margin: 3px 0;
        font-size: .88rem;
    }

    .auth-login-layout .admin-login-demo {
        width: min(100%, 290px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: center;
        margin: 12px auto 0;
        gap: 10px;
    }

    .auth-login-layout .admin-login-demo span {
        min-height: 38px;
        border-radius: 12px;
        font-size: .92rem;
    }

    body:has(.auth-login-layout) .public-footer {
        min-height: 96px;
        padding-top: .75rem;
        padding-bottom: .75rem;
    }
}

@media (max-width: 991.98px) {
    .auth-login-layout.public-layout {
        min-height: calc(100dvh - 110px);
    }

    .auth-login-layout .public-main {
        min-height: 0;
    }

    body:has(.auth-login-layout) .public-footer {
        min-height: 110px;
    }
}

@media (min-width: 992px) and (max-height: 760px) {
    .auth-login-layout .admin-login-features {
        display: none;
    }

    .auth-login-layout .admin-login-brand {
        max-height: none;
    }
}

@media (max-width: 1100px) {
    .front-hero {
        grid-template-columns: 1fr !important;
    }

    .front-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .front-side-card {
        min-height: 0 !important;
    }
}

@media (max-width: 720px) {
    .front-hero,
    .front-content {
        width: calc(100% - 1rem) !important;
    }

    .front-feature-list,
    .front-stat-grid,
    .front-meeting-grid {
        grid-template-columns: 1fr !important;
    }

    .front-hero-panel,
    .front-side-card {
        padding: 1.2rem !important;
    }
}

/* Public layout should not push the footer below the fold when a page has little content. */
body:has(.public-layout):has(.public-footer) {
    --public-footer-fit-height: 104px;
}

body:has(.public-layout):has(.public-footer) .public-layout {
    min-height: calc(100dvh - var(--public-footer-fit-height));
}

@media (min-width: 992px) {
    body:has(.public-layout):has(.public-footer) .public-sidebar {
        height: calc(100dvh - var(--public-footer-fit-height));
        min-height: calc(100dvh - var(--public-footer-fit-height));
    }
}

@media (max-width: 767.98px) {
    body:has(.public-layout):has(.public-footer) {
        --public-footer-fit-height: 168px;
    }
}
