/* Shared EMS project styles */
:root {
    color-scheme: light;
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1f2937;
    background: #eef2ff;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: inherit;
    color: inherit;
    background: var(--background, #eef2ff);
}

.public-page {
    --public-ink: #17221d;
    --public-green: #116149;
    --public-lime: #d9f26a;
    --public-cream: #f7f5ed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.public-page > main {
    flex: 1 0 auto;
}

.public-header {
    position: relative;
    z-index: 20;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid #dfe7e2;
    box-shadow: 0 6px 24px rgba(23, 34, 29, 0.07);
    animation: publicHeaderReveal 0.7s ease-out both;
}

.public-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 0%, rgba(217, 242, 106, 0.22), transparent 27%),
        linear-gradient(105deg, transparent 40%, rgba(17, 97, 73, 0.055) 50%, transparent 60%);
    background-size: auto, 220% 100%;
    animation: publicHeaderShimmer 9s ease-in-out infinite;
}

.public-header::after {
    content: "";
    position: absolute;
    right: clamp(2rem, 9vw, 9rem);
    bottom: -25px;
    width: 95px;
    height: 55px;
    border: 1px solid rgba(17, 97, 73, 0.12);
    border-radius: 50%;
    transform: rotate(-12deg);
}

.public-header-inner {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 3rem));
    min-height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--public-ink);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.public-brand:hover {
    transform: translateY(-2px);
}

.public-brand-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50% 50% 50% 14%;
    background: var(--public-green);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(17, 97, 73, 0.22);
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
}

.public-brand:hover .public-brand-mark {
    transform: rotate(-7deg) scale(1.06);
    box-shadow: 0 11px 24px rgba(17, 97, 73, 0.3);
}

.public-brand-copy {
    display: grid;
    line-height: 1.2;
}

.public-brand-copy strong {
    font-size: 1.08rem;
    letter-spacing: -0.02em;
}

.public-brand-copy small {
    margin-top: 0.15rem;
    color: #66736c;
    font-size: 0.72rem;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.public-nav a {
    position: relative;
    overflow: hidden;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: var(--public-ink);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.public-nav a:hover,
.public-nav a.active {
    background: #e9f3ef;
    color: var(--public-green);
    transform: translateY(-2px);
}

.public-nav a.public-nav-cta {
    background: var(--public-green);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(17, 97, 73, 0.2);
}

.public-nav a.public-nav-cta:hover,
.public-nav a.public-nav-cta.active {
    background: #0c4d3a;
    color: #ffffff;
    box-shadow: 0 11px 24px rgba(17, 97, 73, 0.28);
}

.public-footer {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    background:
        radial-gradient(circle at 10% 10%, rgba(217, 242, 106, 0.12), transparent 27%),
        linear-gradient(135deg, #123a2e 0%, #0b241c 100%);
    color: #ffffff;
    animation: publicFooterReveal 0.7s ease-out both;
}

.public-footer::before,
.public-footer::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(217, 242, 106, 0.13);
    border-radius: 50%;
}

.public-footer::before {
    width: 240px;
    height: 240px;
    top: -165px;
    right: 8%;
}

.public-footer::after {
    width: 130px;
    height: 130px;
    right: 3%;
    bottom: -95px;
}

.public-footer-inner {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 2rem 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem 2rem;
}

.public-footer-inner > div {
    display: grid;
    gap: 0.25rem;
}

.public-footer-inner strong {
    color: var(--public-lime);
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.public-footer-inner span,
.public-footer-inner p {
    color: #b9cdc5;
}

.public-footer-inner nav {
    display: flex;
    gap: 1.25rem;
}

.public-footer-inner a {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.public-footer-inner a:hover {
    color: var(--public-lime);
    transform: translateY(-2px);
}

.public-footer-inner a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -0.35rem;
    height: 2px;
    border-radius: 2px;
    background: var(--public-lime);
    transition: right 0.3s ease;
}

.public-footer-inner a:hover::after {
    right: 0;
}

.public-footer-inner p {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.8rem;
}

@keyframes publicHeaderReveal {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes publicHeaderShimmer {
    0%, 100% { background-position: center, 120% 0; }
    50% { background-position: center, -120% 0; }
}

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

@media (prefers-reduced-motion: reduce) {
    .public-header,
    .public-header::before,
    .public-footer {
        animation: none;
    }

    .public-brand,
    .public-brand-mark,
    .public-nav a,
    .public-footer-inner a,
    .public-footer-inner a::after {
        transition: none;
    }
}

.home-page {
    --ink: #17221d;
    --green: #116149;
    --lime: #d9f26a;
    --cream: #f7f5ed;
    background: var(--cream);
    color: var(--ink);
}

.home-slider-card {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem;
}

.home-slider-card .carousel {
    height: 420px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.home-slider-card .photo-label,
.home-slider-card .carousel-dots {
    display: none;
}

@media (max-width: 640px) {
    .home-slider-card { padding: 1rem 0; }
    .home-slider-card .carousel { height: 280px; }
}

.home-page .site-header {
    width: min(1240px, calc(100% - 3rem));
    height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.site-brand:hover { text-decoration: none; }
.site-brand > span:last-child > span { color: var(--green); }

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50% 50% 50% 14%;
    background: var(--green);
    color: #fff;
    font-weight: 900;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav a {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
}

.site-nav .nav-cta {
    padding: 0.7rem 1.15rem;
    border: 1px solid var(--ink);
    border-radius: 999px;
}

.site-nav a:hover { color: var(--green); text-decoration: none; }

.hero {
    width: min(1240px, calc(100% - 3rem));
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
    padding: 3.5rem 0 5rem;
}

.eyebrow {
    margin: 0 0 1.25rem;
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 650px;
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(3.4rem, 6vw, 6.4rem);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.hero h1 em {
    color: var(--green);
    font-weight: 500;
}

.hero-intro {
    max-width: 530px;
    margin: 1.8rem 0 0;
    color: #56625c;
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.primary-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.2rem 0.9rem 1.35rem;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-weight: 800;
}

.primary-link span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--lime);
    color: var(--ink);
}

.primary-link:hover { background: #0c4d3a; text-decoration: none; }
.text-link { color: var(--ink); font-weight: 800; border-bottom: 1px solid; }

.hero-proof {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 1.4rem;
    border-top: 1px solid #d8d9cf;
}

.hero-proof div { display: grid; }
.hero-proof strong { font-size: 0.92rem; }
.hero-proof span { color: #788079; font-size: 0.78rem; }

.hero-visual.carousel {
    position: relative;
    height: min(64vw, 610px);
    min-height: 490px;
    margin: 0;
    overflow: hidden;
    border-radius: 48% 48% 12px 12px;
    background: #dfe5dc;
    box-shadow: 30px 30px 0 var(--lime);
}

.hero-visual.carousel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-visual.carousel img.active { opacity: 1; }

.photo-label {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: rgba(247, 245, 237, 0.9);
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.photo-label span { color: #f05a46; }

.carousel-dots {
    position: absolute;
    left: 2rem;
    bottom: 2rem;
    display: flex;
    gap: 0.4rem;
}

.carousel-dots span {
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: rgba(255,255,255,.55);
    transition: width .3s ease, background .3s ease;
}

.carousel-dots span.active { width: 28px; background: #fff; }

.event-strip {
    padding: 2.25rem 1.5rem;
    background: var(--green);
    color: #fff;
    text-align: center;
}

.event-strip p {
    margin: 0 0 0.75rem;
    color: #a6c9bc;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.event-strip div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.4rem;
    font-family: Georgia, serif;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.event-strip i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }

.steps-section {
    width: min(1120px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 7rem 0;
}

.section-heading { max-width: 570px; margin-bottom: 3rem; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1; font-weight: 500; letter-spacing: -0.04em; }
.section-heading > p:last-child { color: #68716c; font-size: 1.05rem; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.steps-grid article { min-height: 220px; padding: 1.6rem; border: 1px solid #dfe0d6; border-radius: 6px; background: #fbfaf6; }
.steps-grid article > span { color: var(--green); font-size: 0.78rem; font-weight: 900; }
.steps-grid h3 { margin: 3rem 0 0.65rem; font-size: 1.15rem; }
.steps-grid p { margin: 0; color: #6b746f; font-size: 0.92rem; }

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem max(1.5rem, calc((100% - 1240px) / 2));
    border-top: 1px solid #dfe0d6;
    font-size: 0.8rem;
}

.site-footer p { margin: 0; color: #6b746f; }
.site-footer p:last-child { text-align: right; }

@media (max-width: 800px) {
    .home-page .site-header { width: min(100% - 2rem, 1240px); }
    .site-nav > a:not(.nav-cta) { display: none; }
    .hero { width: min(100% - 2rem, 1240px); grid-template-columns: 1fr; padding-top: 2rem; }
    .hero-visual.carousel { grid-row: 1; height: 68vh; min-height: 430px; box-shadow: 14px 14px 0 var(--lime); }
    .hero-proof { margin-top: 2rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .steps-grid article { min-height: auto; }
    .steps-grid h3 { margin-top: 1.5rem; }
    .site-footer { grid-template-columns: 1fr; text-align: center; }
    .site-footer .site-brand { justify-self: center; }
    .site-footer p:last-child { text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 3.15rem; }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .hero-proof { gap: 1rem; justify-content: space-between; }
    .event-strip div { gap: 0.75rem; }
    .event-strip i { display: none; }
}

body.register-page {
    padding: 0;
}

.public-register-content {
    width: min(1400px, calc(100% - 2rem));
    margin-top: 1.5rem;
}

@media (max-width: 640px) {
    .public-header-inner {
        width: min(100% - 2rem, 1240px);
        min-height: 80px;
    }

    .public-brand-mark {
        width: 40px;
        height: 40px;
    }

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

    .public-brand-copy small:last-child {
        display: none;
    }

    .public-nav a:not(.public-nav-cta) {
        display: none;
    }

    .public-footer-inner {
        width: min(100% - 2rem, 1240px);
        grid-template-columns: 1fr;
        text-align: center;
    }

    .public-footer-inner nav {
        justify-content: center;
    }
}

img, video, iframe {
    max-width: 100%;
    display: block;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: none;
    border-radius: 14px;
    padding: 0.8rem 1rem;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.content-panel {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.alert {
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.event-box {
    background: #f8fafc;
    border: none;
    padding: 1rem;
    border-radius: 18px;
    margin-bottom: 1rem;
}

.detail-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.detail-card {
    background: linear-gradient(180deg, rgba(236, 248, 255, 0.95), #ffffff 90%);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 18px;
    padding: 0.85rem 0.95rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.35);
    background: linear-gradient(180deg, #eff6ff, #ffffff 100%);
}

.detail-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    color: #1d4ed8;
    letter-spacing: 0.01em;
}

.detail-card p {
    margin: 0.3rem 0;
    color: #334155;
    line-height: 1.45;
}

.detail-card p strong {
    display: inline-block;
    width: 5.6rem;
    font-weight: 700;
    color: #0f172a;
}

.detail-card p span {
    display: inline-block;
    color: #475569;
}

.schedule-note {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: #eef2ff;
    color: #1e293b;
    border: 1px solid rgba(99, 102, 241, 0.18);
}

.schedule-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.schedule-item {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #ffffff;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.schedule-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.schedule-item h3 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    color: #102a43;
}

.schedule-item p {
    margin: 0.35rem 0;
    color: #475569;
    line-height: 1.55;
}

.schedule-item strong {
    color: #0f172a;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.75rem;
}

.small {
    font-size: 0.92rem;
    color: #475569;
}

@media (max-width: 980px) {
    body.register-page {
        padding: 0.6rem;
    }

    .content-panel {
        padding: 0.9rem;
    }

    .detail-cards, .schedule-list, .grid {
        gap: 0.7rem;
    }
}

@media (max-width: 640px) {
    .content-panel {
        border-radius: 14px;
    }

    .detail-card, .schedule-item {
        padding: 0.9rem;
    }
}

/* Public event information */
.event-information-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0; }
.event-information-panel { min-width: 0; padding: .9rem; border: 1px solid #e1e7eb; border-radius: 12px; background: #fff; }
.event-information-heading { display: flex; align-items: end; justify-content: space-between; gap: .75rem; padding-bottom: .65rem; border-bottom: 1px solid #e8edf0; }
.event-information-heading span { color: #637a8c; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.event-information-heading h2 { margin: 0; color: #243b53; font-size: 1.05rem; }
.public-info-list { display: grid; gap: .6rem; margin-top: .7rem; }
.public-info-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: .75rem; padding: .7rem; border-radius: 9px; background: #f6f8fa; }
.public-info-meta { display: flex; flex-direction: column; gap: .18rem; color: #526473; font-size: .72rem; }
.public-info-meta strong { color: #24558a; }
.public-info-item h3 { margin: 0 0 .2rem; color: #2d3f50; font-size: .85rem; }
.public-info-item p { margin: .15rem 0 0; color: #697984; font-size: .76rem; }
.public-info-item .resource-person { color: #315f52; font-weight: 700; }
.public-info-empty { margin: .7rem 0 0; padding: 1.25rem .7rem; border-radius: 9px; background: #f7f9fa; color: #7a8790; text-align: center; font-size: .8rem; }
.home-event-information { width: min(1120px, calc(100% - 3rem)); margin: 0 auto; padding: 3rem 0 1rem; }
.home-info-heading { max-width: 570px; margin-bottom: 1.2rem; }
.home-info-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 500; letter-spacing: -.04em; }
.home-info-heading > p:last-child { color: #68716c; }
.public-event-name { display: block; margin-bottom: .2rem; color: #116149; font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.event-marquee { width: 100%; margin-bottom: 2rem; overflow: hidden; border-radius: 999px; background: linear-gradient(90deg, #116149, #167c60, #5338a5, #116149); background-size: 200% 100%; color: #fff; box-shadow: 0 10px 28px rgba(17,97,73,.18); }
.event-marquee-track { display: flex; width: max-content; align-items: center; gap: 1.2rem; padding: .72rem 1.2rem; animation: eventMarquee 22s linear infinite; }
.event-marquee-track span { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.event-marquee-track i { color: #d9f26a; font-style: normal; }
.home-event-information .event-information-sections { gap: 1rem; }
.home-event-information .event-information-panel { position: relative; overflow: hidden; padding: 1rem; border: 0; box-shadow: 0 16px 40px rgba(34,52,64,.1); }
.home-event-information .event-information-panel::before { content: ""; position: absolute; width: 150px; height: 150px; top: -85px; right: -65px; border-radius: 50%; opacity: .45; pointer-events: none; }
.itinerary-color-panel { background: linear-gradient(145deg, #effbf6, #fff 55%); }
.itinerary-color-panel::before { background: #65d6af; }
.schedule-color-panel { background: linear-gradient(145deg, #f3f0ff, #fff 55%); }
.schedule-color-panel::before { background: #a78bfa; }
.home-event-information .event-information-heading { position: relative; z-index: 1; }
.itinerary-color-panel .event-information-heading span { color: #087755; }
.schedule-color-panel .event-information-heading span { color: #6842bd; }
.home-event-information .public-info-item { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.78); box-shadow: 0 5px 14px rgba(28,48,59,.05); transition: transform .2s ease, box-shadow .2s ease; }
.home-event-information .public-info-item:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(28,48,59,.11); }
.schedule-color-panel .public-event-name { color: #6842bd; }
.itinerary-color-panel .public-info-meta { border-left: 3px solid #3eb88e; padding-left: .6rem; }
.schedule-color-panel .public-info-meta { border-left: 3px solid #9270df; padding-left: .6rem; }

@keyframes eventMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .event-marquee-track { animation: none; }
    .home-event-information .public-info-item { transition: none; }
}

@media (max-width: 800px) {
    .event-information-sections { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .event-information-heading { align-items: start; flex-direction: column; }
    .public-info-item { grid-template-columns: 1fr; }
}

/* Event itinerary */
.event-itinerary-page .admin-content { background: #f4f6f8; }
.event-itinerary-page .admin-card { max-width: 1180px; }
.itinerary-page { width: 100%; }
.itinerary-form { box-shadow: none; border: 1px solid #e3e8ed; }
.itinerary-event-field { order: 1; }
.itinerary-day-field { order: 2; }
.itinerary-start-field { order: 3; }
.itinerary-end-field { order: 4; }
.itinerary-activity-field { order: 5; }
.itinerary-resource-field { order: 6; }
.itinerary-form .form-group.full-width { order: 7; }
.optional-label { color: #84909a; font-size: .72rem; font-weight: 500; }
.itinerary-table table { min-width: 980px; }
.itinerary-time { white-space: nowrap; color: #24558a; font-weight: 700; font-size: .8rem; }


/* Event Pass manager */
.event-pass-page .admin-content { background: #f4f6f8; }
.event-pass-page .admin-card { max-width: 1180px; padding: 0; border: 0; overflow: hidden; border-radius: 18px; box-shadow: 0 12px 35px rgba(15,23,42,.08); }
.event-pass-page .admin-card > h1 { margin: 0; padding: 1.4rem 1.75rem; border-bottom: 1px solid #e8ebef; font-size: 1.15rem; background: #fff; }
.qr-page { padding: 1.75rem; background: #fff; }
.qr-page-intro { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.6rem; margin-bottom: 1.25rem; border-radius: 16px; background: linear-gradient(120deg, #102d27, #155e4c); color: #fff; }
.qr-page-intro h2 { margin: .3rem 0 .4rem; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.qr-page-intro p { margin: 0; color: #c3d8d2; }
.qr-kicker { color: #52d2aa; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.qr-intro-icon { flex: 0 0 auto; width: 72px; height: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; }
.qr-intro-icon span { border: 5px solid #fff; border-radius: 2px; }
.qr-event-picker { display: flex; align-items: end; gap: .8rem; padding: 1.15rem; border: 1px solid #e7eaee; border-radius: 14px; background: #fafbfc; }
.qr-field { flex: 1; }
.qr-field label { margin: 0 0 .45rem; font-size: .82rem; }
.qr-field small { display: block; margin-top: .45rem; color: #7b8490; }
.qr-field textarea { min-height: 92px; }
.qr-button { width: auto; min-height: 43px; padding: .7rem 1rem; border-radius: 9px; font-size: .8rem; font-weight: 800; box-shadow: none; }
.qr-button-primary { background: #12634e; }
.qr-button-primary:hover { background: #0d4f3e; box-shadow: none; }
.qr-button-light { background: #edf1f3; color: #24332e; }
.qr-button-light:hover { background: #dde5e2; box-shadow: none; }
.qr-workspace { margin-top: 1.25rem; }
.qr-compose { display: grid; grid-template-columns: 1fr 190px; gap: 1rem; }
.qr-stats { display: flex; flex-direction: column; justify-content: center; padding: 1.25rem; border-radius: 14px; background: #eff8f5; color: #2e5248; }
.qr-stats > span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.qr-stats strong { margin: .25rem 0; color: #12634e; font-size: 2.5rem; line-height: 1; }
.qr-stats small { color: #71847e; }
.qr-action-bar { display: flex; align-items: end; flex-wrap: wrap; gap: 1.25rem; padding: 1rem 0 1.4rem; margin-top: 1.25rem; border-top: 1px solid #e8ebef; border-bottom: 1px solid #e8ebef; }
.qr-action-group { display: flex; align-items: center; gap: .45rem; }
.qr-action-group > span { margin-right: .2rem; color: #6e7882; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.qr-table-heading { display: flex; align-items: end; justify-content: space-between; padding: 1.5rem 0 .8rem; }
.qr-table-heading h3 { margin: .25rem 0 0; font-size: 1.2rem; }
.qr-count { padding: .35rem .65rem; border-radius: 99px; background: #edf1f3; color: #5d6871; font-size: .72rem; font-weight: 700; }
.qr-table-wrap { overflow-x: auto; border: 1px solid #e5e9ec; border-radius: 12px; }
.qr-table { margin: 0; min-width: 800px; }
.qr-table th, .qr-table td { border: 0; border-bottom: 1px solid #edf0f2; padding: .9rem 1rem; }
.qr-table th { background: #f7f9fa; color: #68737c; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
.qr-table td { color: #556068; font-size: .84rem; }
.qr-table tbody tr:last-child td { border-bottom: 0; }
.qr-table tbody tr:hover { background: #fafcfb; }
.qr-table input[type="checkbox"] { width: 16px; height: 16px; accent-color: #12634e; }
.qr-id { color: #879097; font-family: ui-monospace, monospace; }
.qr-status { display: inline-block; padding: .3rem .55rem; border-radius: 99px; font-size: .7rem; font-weight: 800; }
.qr-status.ready { background: #ddf6ec; color: #0b6a4d; }
.qr-status.pending { background: #f0f2f4; color: #75808a; }
.qr-status.ready:hover { text-decoration: none; background: #c8ecdf; }
.qr-empty { display: flex; min-height: 180px; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; margin-top: 1.25rem; border: 1px dashed #cfd6d9; border-radius: 14px; background: #fafbfb; text-align: center; color: #75808a; }
.qr-empty strong { color: #34423d; }
.qr-empty-code { color: #12634e; font-size: 2.5rem; }

.event-status {
    display: inline-block;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: #e5e7eb;
    color: #475569;
    font-size: .72rem;
    font-weight: 800;
}
.event-status-open { background: #dcfce7; color: #166534; }
.event-status-suspended { background: #fee2e2; color: #991b1b; }
.event-status-delayed { background: #fef3c7; color: #92400e; }
.event-status-postponed { background: #ede9fe; color: #5b21b6; }
.event-status-closed { background: #e2e8f0; color: #334155; }

/* Event schedule manager */
.event-schedule-page .admin-content { background: #f4f6f8; }
.event-schedule-page .admin-card { max-width: 1160px; padding: 0; overflow: hidden; border: 0; border-radius: 18px; }
.event-schedule-page .admin-card > h1 { margin: 0; padding: 1.35rem 1.75rem; border-bottom: 1px solid #e8ebef; background: #fff; font-size: 1.15rem; }
.schedule-page { padding: 1.75rem; }
.schedule-page-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 1.25rem; padding: 1.5rem 1.6rem; border-radius: 16px; background: linear-gradient(120deg, #182d49, #24558a); color: #fff; }
.schedule-page-header h2 { margin: .3rem 0 .35rem; font-size: 1.8rem; }
.schedule-page-header p { margin: 0; color: #cbd9e9; }
.schedule-kicker { color: #70c8ff; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.schedule-header-mark { flex: 0 0 auto; width: 68px; height: 68px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.6); border-top: 13px solid #fff; border-radius: 8px; font-size: 1.25rem; font-weight: 900; }
.schedule-form.schedule-form-two-column { display: block; padding: 1.5rem; border: 1px solid #e5e9ee; border-radius: 16px; background: #fff; box-shadow: none; }
.schedule-creation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.schedule-form-two-column .form-field { min-width: 0; }
.schedule-form-two-column label { margin: 0 0 .45rem; font-size: .82rem; }
.schedule-form-two-column .schedule-event-field { grid-column: auto; }
.schedule-form-two-column .schedule-description-field { grid-column: 1 / -1; }
.schedule-description-field textarea { min-height: 120px; }
.schedule-form-two-column .form-footer { align-items: center; margin-top: 1.25rem; padding-top: 1.2rem; border-top: 1px solid #e8ebef; }
.schedule-form-two-column .button-secondary { display: inline-flex; align-items: center; text-decoration: none; }
.schedule-form-two-column .form-notice { margin-left: auto; color: #7b8490; font-size: .76rem; }
.schedule-list-heading { display: flex; align-items: end; justify-content: space-between; margin-top: 2.25rem; padding-bottom: .8rem; }
.schedule-list-heading h2 { margin: .2rem 0 0; font-size: 1.3rem; }
.schedule-total { padding: .35rem .7rem; border-radius: 99px; background: #e9eef3; color: #65717c; font-size: .72rem; font-weight: 800; }
.schedule-table-wrap { overflow-x: auto; border: 1px solid #e5e9ee; border-radius: 12px; }
.schedule-table-wrap table { min-width: 760px; margin: 0; }
.schedule-table-wrap th, .schedule-table-wrap td { border: 0; border-bottom: 1px solid #e9edf0; }
.schedule-table-wrap th { color: #65717c; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.schedule-table-wrap tbody tr:last-child td { border-bottom: 0; }
.schedule-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.schedule-record-card { display: flex; min-width: 0; flex-direction: column; padding: 1.25rem; border: 1px solid #e3e8ed; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(15,23,42,.05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.schedule-record-card:hover { transform: translateY(-2px); border-color: #cbd8e5; box-shadow: 0 14px 30px rgba(15,23,42,.09); }
.schedule-record-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.schedule-record-id { color: #8a949d; font-family: ui-monospace, monospace; font-size: .75rem; }
.schedule-record-card h3 { margin: .9rem 0 1rem; color: #1d314b; font-size: 1.08rem; }
.schedule-record-dates { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding: .85rem; border-radius: 10px; background: #f4f7fa; }
.schedule-record-dates div { display: grid; gap: .2rem; }
.schedule-record-dates div + div { padding-left: .75rem; border-left: 1px solid #dce3e9; }
.schedule-record-dates span { color: #7a858f; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.schedule-record-dates strong { color: #304459; font-size: .82rem; }
.schedule-record-description { flex: 1; margin: 1rem 0; color: #687681; font-size: .86rem; line-height: 1.55; }
.schedule-record-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .9rem; border-top: 1px solid #e8ecf0; }
.schedule-action-button { display: inline-flex; width: 72px; min-height: 34px; align-items: center; justify-content: center; padding: .45rem .7rem; border: 0; border-radius: 7px; font-size: .75rem; font-weight: 800; line-height: 1; text-decoration: none; box-shadow: none; }
.schedule-action-button:hover { transform: none; text-decoration: none; box-shadow: none; }
.schedule-edit-button { background: #e6f0fb; color: #24558a; }
.schedule-edit-button:hover { background: #d4e6f7; color: #183f6a; }
.schedule-delete-button { background: #fff0f0; color: #b42318; }
.schedule-delete-button:hover { background: #fee2e2; box-shadow: none; }
.schedule-empty-state { padding: 2.5rem 1rem; border: 1px dashed #cbd5df; border-radius: 12px; background: #f8fafc; color: #71808e; text-align: center; }
.schedule-responsive-table { overflow-x: auto; border: 1px solid #e3e8ed; border-radius: 14px; background: #fff; }
.schedule-responsive-table table { min-width: 850px; margin: 0; }
.schedule-responsive-table th, .schedule-responsive-table td { border: 0; border-bottom: 1px solid #e8edf1; padding: 1rem; }
.schedule-responsive-table th { background: #f4f7fa; color: #6c7985; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.schedule-responsive-table tbody tr:last-child td { border-bottom: 0; }
.schedule-responsive-table tbody tr:hover { background: #fafcfd; }
.schedule-number { color: #82909c; font-family: ui-monospace, monospace; font-size: .78rem; }
.schedule-event-name { display: block; margin-bottom: .45rem; color: #243b53; }
.schedule-period { display: flex; align-items: center; gap: .45rem; white-space: nowrap; font-size: .8rem; }
.schedule-period span { color: #9aa4ad; }
.schedule-description-cell { max-width: 320px; color: #64727d; font-size: .84rem; }
.schedule-row-actions { display: flex; align-items: center; gap: .55rem; }
.schedule-actions-column { width: 130px; }

@media (max-width: 800px) {
    .event-schedule-page .admin-body { display: block; }
    .event-schedule-page .admin-sidebar { width: 100%; display: flex; gap: .3rem; overflow-x: auto; }
    .event-schedule-page .admin-sidebar a { flex: 0 0 auto; }
    .event-schedule-page .admin-content { padding: 1rem; }
    .schedule-page { padding: 1rem; }
    .schedule-creation-grid { grid-template-columns: 1fr; }
    .schedule-form-two-column .schedule-description-field { grid-column: 1; }
    .schedule-record-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .schedule-page-header { padding: 1.2rem; }
    .schedule-header-mark { display: none; }
    .schedule-form-two-column .form-footer { align-items: stretch; flex-direction: column; }
    .schedule-form-two-column .form-footer > * { width: 100%; text-align: center; }
    .schedule-form-two-column .form-notice { margin-left: 0; }
    .schedule-responsive-table { overflow: visible; border: 0; background: transparent; }
    .schedule-responsive-table table, .schedule-responsive-table tbody, .schedule-responsive-table tr, .schedule-responsive-table td { display: block; min-width: 0; width: 100%; }
    .schedule-responsive-table thead { display: none; }
    .schedule-responsive-table tr { margin-bottom: .9rem; padding: .3rem 1rem; border: 1px solid #e3e8ed; border-radius: 12px; background: #fff; }
    .schedule-responsive-table td { display: grid; grid-template-columns: 105px 1fr; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid #edf0f3; }
    .schedule-responsive-table td::before { content: attr(data-label); color: #84909a; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
    .schedule-responsive-table tr td:last-child { border-bottom: 0; }
    .schedule-description-cell { max-width: none; }
}

@media (max-width: 840px) {
    .event-pass-page .admin-body { display: block; }
    .event-pass-page .admin-sidebar { width: 100%; display: flex; overflow-x: auto; gap: .3rem; }
    .event-pass-page .admin-sidebar a { flex: 0 0 auto; }
    .event-pass-page .admin-content { padding: 1rem; }
    .qr-page { padding: 1rem; }
    .qr-compose { grid-template-columns: 1fr; }
    .qr-stats { flex-direction: row; align-items: baseline; gap: .55rem; }
    .qr-stats strong { font-size: 1.6rem; }
}

@media (max-width: 560px) {
    .qr-page-intro { padding: 1.25rem; }
    .qr-intro-icon { display: none; }
    .qr-event-picker { align-items: stretch; flex-direction: column; }
    .qr-event-picker .qr-button { width: 100%; }
    .qr-action-bar { align-items: stretch; flex-direction: column; }
    .qr-action-group { display: grid; grid-template-columns: 1fr 1fr; }
    .qr-action-group > span { grid-column: 1 / -1; }
    .qr-action-group .qr-button { width: 100%; }
}
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.16);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    color: #1f2937;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

label {
    display: block;
    margin-top: 0.6rem;
    font-weight: 700;
    color: #334155;
}

.page-wrapper,
.card,
.content-panel,
.admin-card,
.settings-panel,
.schedule-panel {
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    padding: 1.2rem;
    margin: 0 auto 1.25rem;
}

.page-wrapper {
    max-width: 100%;
    padding: 1rem;
}

.card,
.content-panel,
.settings-panel,
.schedule-panel,
.admin-card {
    max-width: 1400px;
}

.grid {
    display: grid;
    gap: 0.9rem;
}

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

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

.detail-cards,
.schedule-list,
.event-results {
    display: grid;
    gap: 0.85rem;
}

.detail-card,
.schedule-item,
.event-result-item,
.form-card {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    padding: 1rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.detail-card:hover,
.schedule-item:hover,
.event-result-item:hover,
.form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
    border-color: rgba(148, 163, 184, 0.35);
}

.event-result-item {
    width: 100%;
    text-align: left;
    background: #f8fafc;
    cursor: pointer;
}

.event-result-item.selected {
    background: #e2e8f0;
}

.event-select-form {
    display: grid;
    grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    width: 100%;
    margin-bottom: 1rem;
}

.event-search-panel {
    display: grid;
    gap: 0.75rem;
    width: 100%;
}

.event-results {
    display: grid;
    gap: 0.75rem;
    width: 100%;
}

@media (max-width: 840px) {
    .event-select-form {
        grid-template-columns: 1fr;
    }
}

.alert {
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
}

.toolbar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
}

.carousel {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.carousel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel img.active {
    opacity: 1;
}

.carousel .caption {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-weight: bold;
}

.content {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-card,
.settings-form,
.schedule-form,
.event-form {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.95);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(15,23,42,0.08);
}

.form-card .form-field,
.settings-form .form-field,
.schedule-form .form-field,
.event-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-card .form-field.full-width,
.settings-form .form-field.full-width,
.schedule-form .full-width,
.event-form .form-group.full-width {
    grid-column: 1 / -1;
}

.form-card label,
.settings-form label,
.schedule-form label,
.event-form label {
    color: #111827;
    margin-bottom: 0.4rem;
}

.form-card input,
.form-card textarea,
.form-card select,
.settings-form input,
.settings-form textarea,
.settings-form select,
.schedule-form input,
.schedule-form textarea,
.schedule-form select,
.event-form input,
.event-form textarea,
.event-form select {
    border-radius: 14px;
    padding: 0.95rem 1rem;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus,
.settings-form input:focus,
.settings-form textarea:focus,
.settings-form select:focus,
.schedule-form input:focus,
.schedule-form textarea:focus,
.schedule-form select:focus,
.event-form input:focus,
.event-form textarea:focus,
.event-form select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

.button-primary,
.button-secondary {
    border: none;
    border-radius: 999px;
    padding: 0.95rem 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button-primary {
    background: #2563eb;
    color: #ffffff;
}

.button-secondary {
    background: #e5e7eb;
    color: #111827;
}

.button-primary:hover,
.button-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15,23,42,0.12);
}

.form-note,
.schedule-note,
.summary,
.muted,
.small {
    color: #475569;
}

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

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

body.attendance-view {
    margin: 0;
    background: #07161b;
    color: #fff;
    overflow: hidden;
}

body.attendance-view .admin-shell {
    min-height: 100vh;
    background: transparent;
}

body.attendance-view .admin-header,
body.attendance-view .admin-footer {
    display: none !important;
}

body.attendance-view .admin-body {
    min-height: 100vh;
}

body.attendance-view .admin-content {
    padding: 0;
    overflow: hidden;
}

body.attendance-view .admin-card {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

body.attendance-view .admin-card > h1 {
    display: none;
}

body.attendance-view .attendance-display {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 560px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(16,185,129,.24), transparent 35%),
        radial-gradient(circle at 88% 78%, rgba(14,165,233,.22), transparent 38%),
        linear-gradient(135deg, #061b1a 0%, #092a30 48%, #071827 100%);
    box-sizing: border-box;
}

body.attendance-view .attendance-display::after {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 44px 44px;
    content: "";
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent);
    pointer-events: none;
}

body.attendance-view .attendance-ambient {
    position: absolute;
    width: 34vw;
    height: 34vw;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .22;
    animation: attendance-float 9s ease-in-out infinite alternate;
}

body.attendance-view .attendance-ambient-one {
    top: -16vw;
    left: 20%;
    background: #34d399;
}

body.attendance-view .attendance-ambient-two {
    right: -12vw;
    bottom: -18vw;
    background: #38bdf8;
    animation-delay: -4s;
}

body.attendance-view .attendance-refresh {
    position: fixed;
    z-index: 20;
    top: 16px;
    right: 18px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    background: rgba(3, 20, 25, .48);
    color: rgba(255,255,255,.82);
    font-size: 1.25rem;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    backdrop-filter: blur(10px);
}

body.attendance-view .attendance-refresh:hover {
    background: rgba(16,185,129,.3);
    transform: translateY(-1px);
}

body.attendance-view .attendance-refresh.refreshing span {
    animation: attendance-spin .7s linear infinite;
}

body.attendance-view .attendance-person {
    position: relative;
    z-index: 2;
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-columns: 1fr 1fr;
}

body.attendance-view .attendance-person[hidden],
body.attendance-view .attendance-waiting[hidden] {
    display: none;
}

body.attendance-view .attendance-photo-panel,
body.attendance-view .attendance-info-panel {
    display: flex;
    min-width: 0;
    min-height: 0;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 5.5rem);
    box-sizing: border-box;
}

body.attendance-view .attendance-photo-panel {
    position: relative;
}

body.attendance-view .attendance-photo-panel::after {
    position: absolute;
    top: 10%;
    right: 0;
    width: 1px;
    height: 80%;
    background: linear-gradient(transparent, rgba(255,255,255,.25), transparent);
    content: "";
}

body.attendance-view .attendance-photo-frame {
    position: relative;
    width: min(39vw, 620px);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: clamp(24px, 3vw, 48px);
    background: linear-gradient(145deg, rgba(16,185,129,.35), rgba(14,165,233,.22));
    box-shadow: 0 35px 80px rgba(0,0,0,.42), inset 0 0 0 8px rgba(255,255,255,.04);
    animation: attendance-photo-breathe 5s ease-in-out infinite;
}

body.attendance-view .attendance-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: attendance-photo-zoom 12s ease-in-out infinite alternate;
}

body.attendance-view .attendance-photo-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: linear-gradient(145deg, #047857, #0369a1);
    color: rgba(255,255,255,.92);
    font-size: clamp(5rem, 12vw, 12rem);
    font-weight: 900;
    letter-spacing: -.08em;
}

body.attendance-view .attendance-photo-glow {
    position: absolute;
    inset: auto 10% -4px;
    height: 12px;
    border-radius: 50%;
    background: #34d399;
    filter: blur(16px);
    opacity: .75;
}

body.attendance-view .attendance-info-panel {
    align-items: flex-start;
    flex-direction: column;
}

body.attendance-view .attendance-welcome {
    color: #6ee7b7;
    font-size: clamp(.85rem, 1.25vw, 1.2rem);
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
}

body.attendance-view .attendance-event {
    margin-top: .55rem;
    color: rgba(255,255,255,.72);
    font-size: clamp(1.05rem, 1.75vw, 1.65rem);
    font-weight: 600;
}

body.attendance-view .attendance-divider {
    width: 82px;
    height: 4px;
    margin: clamp(1.4rem, 3vh, 2.4rem) 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #34d399, #38bdf8);
    box-shadow: 0 0 18px rgba(52,211,153,.6);
    animation: attendance-divider 3s ease-in-out infinite;
}

body.attendance-view .attendance-name {
    margin: 0;
    color: #fff;
    background: linear-gradient(90deg, #ffffff 0%, #a7f3d0 28%, #7dd3fc 52%, #ffffff 76%, #a7f3d0 100%);
    background-size: 240% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(3rem, 6vw, 7rem);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: .95;
    text-wrap: balance;
    text-shadow: 0 12px 35px rgba(0,0,0,.25);
    animation: attendance-name-gradient 5s linear infinite;
}

body.attendance-view .attendance-designation {
    margin-top: clamp(1.25rem, 2.5vh, 2rem);
    color: #a7f3d0;
    font-size: clamp(1.25rem, 2.2vw, 2.2rem);
    font-weight: 700;
}

body.attendance-view .attendance-institution {
    margin-top: .55rem;
    color: rgba(255,255,255,.88);
    font-size: clamp(1.15rem, 1.8vw, 1.8rem);
    line-height: 1.35;
}

body.attendance-view .attendance-location {
    margin-top: .5rem;
    color: rgba(255,255,255,.58);
    font-size: clamp(.95rem, 1.35vw, 1.25rem);
}

body.attendance-view .attendance-confirmation {
    display: flex;
    gap: .9rem;
    align-items: center;
    margin-top: clamp(2rem, 5vh, 4rem);
    padding: .85rem 1.2rem;
    border: 1px solid rgba(110,231,183,.25);
    border-radius: 16px;
    background: rgba(16,185,129,.1);
    box-shadow: 0 12px 30px rgba(0,0,0,.14);
    backdrop-filter: blur(12px);
}

body.attendance-view .attendance-checkmark {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 0 24px rgba(16,185,129,.5);
    animation: attendance-check-pulse 2s ease-in-out infinite;
}

body.attendance-view .attendance-confirmation strong,
body.attendance-view .attendance-confirmation span {
    display: block;
}

body.attendance-view .attendance-confirmation strong {
    color: #d1fae5;
    font-size: 1rem;
}

body.attendance-view .attendance-confirmation div > span {
    margin-top: .15rem;
    color: rgba(255,255,255,.58);
    font-size: .85rem;
}

body.attendance-view .attendance-waiting {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    color: rgba(255,255,255,.68);
    font-size: clamp(1.4rem, 2.5vw, 2.5rem);
}

body.attendance-view .attendance-waiting-mark {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    border: 2px solid rgba(110,231,183,.25);
    border-radius: 50%;
    animation: attendance-check-pulse 2s ease-in-out infinite;
}

body.attendance-view .attendance-waiting-mark span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 28px #34d399;
}

body.attendance-view .attendance-enter .attendance-photo-frame {
    animation: attendance-photo-enter .75s cubic-bezier(.2,.8,.2,1), attendance-photo-breathe 5s .75s ease-in-out infinite;
}

body.attendance-view .attendance-enter .attendance-info-panel > * {
    animation: attendance-info-enter .7s both cubic-bezier(.2,.8,.2,1);
}

body.attendance-view .attendance-enter .attendance-info-panel > *:nth-child(2) { animation-delay: .07s; }
body.attendance-view .attendance-enter .attendance-info-panel > *:nth-child(3) { animation-delay: .12s; }
body.attendance-view .attendance-enter .attendance-info-panel > *:nth-child(4) { animation-delay: .17s; }
body.attendance-view .attendance-enter .attendance-info-panel > *:nth-child(5) { animation-delay: .22s; }
body.attendance-view .attendance-enter .attendance-info-panel > *:nth-child(6) { animation-delay: .27s; }
body.attendance-view .attendance-enter .attendance-info-panel > *:nth-child(7) { animation-delay: .32s; }
body.attendance-view .attendance-enter .attendance-info-panel > *:nth-child(8) { animation-delay: .37s; }

body.attendance-view .attendance-enter .attendance-name {
    animation:
        attendance-info-enter .7s .17s both cubic-bezier(.2,.8,.2,1),
        attendance-name-gradient 5s .9s linear infinite;
}

@keyframes attendance-float {
    to { transform: translate3d(5vw, 3vh, 0) scale(1.12); }
}

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

@keyframes attendance-photo-enter {
    from { opacity: 0; transform: translateX(-55px) scale(.92); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes attendance-info-enter {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes attendance-name-gradient {
    0% { background-position: 0% center; filter: drop-shadow(0 0 0 rgba(52,211,153,0)); }
    50% { background-position: 100% center; filter: drop-shadow(0 0 14px rgba(52,211,153,.28)); }
    100% { background-position: 200% center; filter: drop-shadow(0 0 0 rgba(56,189,248,0)); }
}

@keyframes attendance-photo-breathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes attendance-photo-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.055); }
}

@keyframes attendance-divider {
    0%, 100% { width: 82px; opacity: .8; }
    50% { width: 130px; opacity: 1; }
}

@keyframes attendance-check-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(16,185,129,.35); }
    50% { transform: scale(1.08); box-shadow: 0 0 34px rgba(16,185,129,.7); }
}

@media (max-width: 760px), (orientation: portrait) {
    body.attendance-view {
        overflow: auto;
    }

    body.attendance-view .attendance-display {
        height: auto;
        min-height: 100vh;
    }

    body.attendance-view .attendance-person {
        min-height: 100vh;
        grid-template-columns: 1fr;
        grid-template-rows: 48vh auto;
    }

    body.attendance-view .attendance-photo-panel {
        padding: 3.5rem 2rem 1rem;
    }

    body.attendance-view .attendance-photo-panel::after {
        display: none;
    }

    body.attendance-view .attendance-photo-frame {
        width: min(62vw, 300px);
        max-height: 42vh;
    }

    body.attendance-view .attendance-info-panel {
        padding: 1.5rem 2rem 3rem;
        text-align: center;
        align-items: center;
    }

    body.attendance-view .attendance-name {
        font-size: clamp(2.8rem, 12vw, 5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.attendance-view *,
    body.attendance-view *::before,
    body.attendance-view *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f3f4f6;
}

.toolbar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
}

.content-panel {
    width: 100%;
    max-width: 1400px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    padding: 1.2rem;
    margin: 0 auto 1.25rem;
}

.event-box {
    background: #f8fafc;
    border-radius: 18px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.schedule-item {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #ffffff;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.schedule-item:hover,
.detail-card:hover,
.event-result-item:hover,
.form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
    border-color: rgba(148, 163, 184, 0.35);
}

.schedule-note {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: #eef2ff;
    color: #1e293b;
    border: 1px solid rgba(99, 102, 241, 0.18);
}

.settings-form,
.schedule-form,
.event-form,
.form-card {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.95);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(15,23,42,0.08);
}

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

.form-group,
.settings-form .form-field,
.schedule-form .form-field,
.event-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.95rem 1rem;
}

.button-primary,
.button-secondary {
    border: none;
    border-radius: 999px;
    padding: 0.95rem 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button-primary {
    background: #2563eb;
    color: #ffffff;
}

.button-secondary {
    background: #e5e7eb;
    color: #111827;
}

.button-primary:hover,
.button-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15,23,42,0.12);
}

.form-footer,
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.form-notice,
.form-note,
.summary,
.muted,
.small {
    color: #475569;
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.15);
    color: #1e293b;
    margin-top: 0.8rem;
}

.screen {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.name {
    font-size: 4rem;
    font-weight: 800;
    margin: 0.5rem 0 1rem;
}

.meta {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.admin-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: #0f172a;
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.admin-header .brand {
    font-size: 1.2rem;
    font-weight: bold;
}

.admin-header .top-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-header a {
    color: #fff;
    text-decoration: none;
}

.top-menu {
    position: relative;
}

.top-menu summary,
.top-logout button {
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 6px;
    padding: 0.5rem 0.65rem;
    font: inherit;
    cursor: pointer;
    list-style: none;
}

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

.top-menu summary::after {
    content: " \25BE";
    font-size: 0.75em;
}

.top-menu summary:hover,
.top-menu summary.active,
.top-logout button:hover {
    background: #1f2937;
}

.top-submenu {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 205px;
    padding: 0.4rem;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #111827;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.top-submenu a,
.top-submenu .disabled-link {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: 5px;
    white-space: nowrap;
}

.top-submenu a:hover,
.top-submenu a.active {
    background: #334155;
}

.top-submenu .disabled-link {
    color: #94a3b8;
    cursor: not-allowed;
}

.top-logout {
    margin: 0;
}

.top-logout button {
    margin: 0;
}

.signed-in-user {
    color: #cbd5e1;
    font-size: 0.85rem;
}

.photograph-input-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.event-ajax-loading {
    position: relative;
    opacity: 0.65;
    pointer-events: none;
}

.event-ajax-loading::after {
    position: fixed;
    z-index: 2000;
    top: 50%;
    left: 50%;
    content: "Loading event...";
    padding: 0.7rem 1rem;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    transform: translate(-50%, -50%);
}

.photograph-input-row input[type="file"] {
    flex: 1 1 auto;
    min-width: 0;
}

.photo-camera-button {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0.42rem 0.7rem;
    font-size: 0.82rem;
    white-space: nowrap;
}

.photograph-preview {
    display: block;
    width: 64px;
    height: 64px;
    margin-top: 0.45rem;
    border-radius: 8px;
    object-fit: cover;
}

.photograph-preview[hidden] {
    display: none;
}

.photo-camera-dialog {
    width: min(92vw, 520px);
    padding: 0;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.photo-camera-dialog::backdrop {
    background: rgba(15, 23, 42, 0.75);
}

.photo-camera-content {
    padding: 1rem;
}

.photo-camera-content h2 {
    margin-top: 0;
}

.photo-camera-content video {
    display: block;
    width: 100%;
    max-height: 60vh;
    border-radius: 10px;
    background: #111827;
    object-fit: cover;
}

.photo-camera-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.feedback-panel {
    margin-bottom: 1.2rem;
    padding: 1rem;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #f8fafc;
}

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

.feedback-config-grid form,
.feedback-selector,
.feedback-inline-filter {
    display: flex;
    align-items: end;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.feedback-config-grid form:first-child {
    align-content: end;
}

.feedback-config-grid label,
.feedback-selector label,
.feedback-inline-filter label {
    flex: 1 1 160px;
}

.feedback-inline-filter {
    margin: 1rem 0 0.7rem;
}

.feedback-items-table {
    width: 100%;
}

.feedback-items-table form {
    margin: 0;
}

.feedback-items-table .rating-display-form {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.feedback-items-table .rating-display-form select {
    min-width: 7rem;
}

.feedback-item-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.feedback-item-actions .button-danger {
    border-color: #dc2626;
    background: #dc2626;
    color: #fff;
}

.feedback-item-actions .button-danger:hover {
    border-color: #b91c1c;
    background: #b91c1c;
}

.feedback-send-actions {
    display: flex;
    gap: 0.55rem;
    margin: 0.8rem 0;
    flex-wrap: wrap;
}

.feedback-answer-list {
    margin: 0;
}

.feedback-answer-list div + div {
    margin-top: 0.45rem;
}

.feedback-answer-list dt {
    font-weight: 700;
}

.feedback-answer-list dd {
    margin: 0.1rem 0 0;
}

.feedback-analysis-filters {
    display: flex;
    align-items: end;
    gap: 0.65rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.feedback-analysis-filters label {
    flex: 1 1 180px;
}

.feedback-analysis-report {
    padding: 1.25rem;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #fff;
}

.feedback-analysis-report > header span {
    color: #0f766e;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feedback-analysis-report > header h2 {
    margin: 0.3rem 0;
}

.feedback-analysis-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 1.2rem 0;
}

.feedback-analysis-metrics > div {
    padding: 0.9rem;
    border-radius: 10px;
    background: #f1f5f9;
}

.feedback-analysis-metrics span,
.feedback-analysis-metrics strong {
    display: block;
}

.feedback-analysis-metrics strong {
    margin-top: 0.25rem;
    font-size: 1.5rem;
}

.feedback-analysis-metrics .primary {
    background: #0f766e;
    color: #fff;
}

.feedback-analysis-report section {
    margin-top: 1.5rem;
}

.analysis-percentage {
    display: inline-block;
    width: 90px;
    height: 7px;
    margin-right: 0.45rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
    vertical-align: middle;
}

.analysis-percentage span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #0f766e;
}

.qualitative-heading { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; margin-bottom:1rem; }
.qualitative-heading h3 { margin-bottom:.25rem; }
.qualitative-heading p { margin:0; color:#64748b; }
.analysis-method { padding:.4rem .7rem; border-radius:999px; background:#eef2ff; color:#4338ca; font-size:.78rem; white-space:nowrap; }
.qualitative-summary-table { table-layout:fixed; }
.qualitative-summary-table td { vertical-align:top; width:33.333%; }
.qualitative-theme-list { margin:0; padding-left:1.25rem; }
.qualitative-theme-list li { padding:.55rem 0; border-bottom:1px solid #e5e7eb; }
.qualitative-theme-list li > div { display:flex; justify-content:space-between; gap:.5rem; }
.qualitative-theme-list li span { color:#475569; font-size:.78rem; white-space:nowrap; }
.qualitative-theme-list q { display:block; margin-top:.35rem; color:#64748b; font-size:.82rem; line-height:1.45; }
.qualitative-theme-list .no-theme { color:#64748b; list-style:none; }
.keyword-cloud { display:flex; flex-wrap:wrap; gap:.35rem; margin-top:.85rem; }
.keyword-cloud > span { flex-basis:100%; color:#64748b; font-size:.75rem; text-transform:uppercase; letter-spacing:.04em; }
.keyword-cloud b { background:#f1f5f9; border-radius:999px; padding:.25rem .5rem; font-size:.78rem; font-weight:600; }
.keyword-cloud small { color:#64748b; }
.qualitative-source-responses { margin-top:1rem; }
.qualitative-source-responses summary { cursor:pointer; color:#334155; font-weight:600; padding:.65rem 0; }
.empty-analysis { padding:1rem; color:#64748b; background:#f8fafc; border-radius:.5rem; }

@media (max-width: 800px) {
    .qualitative-heading { display:block; }
    .analysis-method { display:inline-block; margin-top:.6rem; }
    .qualitative-summary-table { min-width:850px; }
}

@media (max-width: 850px) {
    .feedback-analysis-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
    body.feedback-analysis-admin .admin-header,
    body.feedback-analysis-admin .admin-sidebar,
    body.feedback-analysis-admin .admin-footer,
    body.feedback-analysis-admin .no-print,
    body.feedback-analysis-admin .admin-card > h1 {
        display: none !important;
    }

    body.feedback-analysis-admin .admin-content,
    body.feedback-analysis-admin .admin-card,
    body.feedback-analysis-admin .feedback-analysis-report {
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
    }
}

.admin-registration-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.8rem 0;
}

.admin-registration-fields label {
    margin: 0;
}

.admin-registration-fields .wide {
    grid-column: 1 / -1;
}

.special-registration-link-form,
.registration-option-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: end;
}

.special-registration-link-form .wide {
    grid-column: 1 / -1;
}

.registration-option-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.registration-option-list form {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.45rem 0.35rem 0.7rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
}

.registration-option-list button {
    margin: 0;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

.admin-registration-message {
    overflow-wrap: anywhere;
}

.special-registration-card {
    max-width: 980px;
}

@media (max-width: 900px) {
    .admin-registration-fields,
    .special-registration-link-form,
    .registration-option-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .admin-registration-fields,
    .special-registration-link-form,
    .registration-option-form { grid-template-columns: 1fr; }
}

.public-feedback-main {
    min-height: 65vh;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at 8% 8%, rgba(45, 212, 191, 0.16), transparent 25rem),
        radial-gradient(circle at 92% 18%, rgba(99, 102, 241, 0.13), transparent 26rem),
        #f8fafc;
}

.public-feedback-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.public-feedback-card > header span {
    color: #0f766e;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.public-feedback-card > header h1 {
    margin: 0.35rem 0;
}

.feedback-privacy-note {
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    border-left: 4px solid #0f766e;
    background: #ecfdf5;
    color: #334155;
}

.public-feedback-form fieldset {
    --question-accent: #0f766e;
    position: relative;
    margin: 1.35rem 0;
    padding: 1.2rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--question-accent) 24%, #dbe4ee);
    border-radius: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--question-accent) 7%, #fff), #fff 55%);
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.06);
    animation: feedbackQuestionIn 450ms ease both;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.public-feedback-form fieldset:nth-of-type(4n + 2) { --question-accent: #4f46e5; }
.public-feedback-form fieldset:nth-of-type(4n + 3) { --question-accent: #db2777; }
.public-feedback-form fieldset:nth-of-type(4n + 4) { --question-accent: #ea580c; }
.public-feedback-form fieldset:nth-of-type(2) { animation-delay: 60ms; }
.public-feedback-form fieldset:nth-of-type(3) { animation-delay: 120ms; }
.public-feedback-form fieldset:nth-of-type(4) { animation-delay: 180ms; }
.public-feedback-form fieldset:nth-of-type(n + 5) { animation-delay: 240ms; }

.public-feedback-form fieldset::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--question-accent);
}

.public-feedback-form fieldset:focus-within {
    border-color: var(--question-accent);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--question-accent) 18%, transparent);
    transform: translateY(-2px);
}

.public-feedback-form legend {
    padding: 0 0.4rem;
    font-weight: 700;
}

.public-feedback-form legend span {
    display: inline-grid;
    width: 1.6rem;
    height: 1.6rem;
    margin-right: 0.45rem;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--question-accent), color-mix(in srgb, var(--question-accent) 72%, #111827));
    color: #fff;
    font-size: 0.8rem;
    box-shadow: 0 3px 9px color-mix(in srgb, var(--question-accent) 28%, transparent);
}

.feedback-rating {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 0.8rem;
    margin-top: 1rem;
}

.feedback-rating label {
    --rating-color: #ef4444;
    display: block;
    width: 100%;
    margin: 0;
    min-width: 0;
}

.feedback-rating label:nth-child(2) { --rating-color: #f97316; }
.feedback-rating label:nth-child(3) { --rating-color: #eab308; }
.feedback-rating label:nth-child(4) { --rating-color: #22c55e; }
.feedback-rating label:nth-child(5) { --rating-color: #0d9488; }

.feedback-rating input {
    position: absolute;
    opacity: 0;
}

.feedback-rating .rating-option {
    display: flex;
    min-height: 7.2rem;
    padding: 0.8rem 0.5rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.35rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.85rem;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    text-align: center;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
    width: 100%;
    box-sizing: border-box;
}

.feedback-rating .rating-emoji {
    font-size: 1.75rem;
    line-height: 1;
}

.feedback-rating .rating-option strong {
    color: #334155;
    font-size: 0.9rem;
}

.feedback-rating .rating-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.feedback-rating.rating-display-emojis .rating-emoji {
    font-size: 2.25rem;
}

.feedback-rating.rating-display-words .rating-option {
    min-height: 3.6rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.6rem;
    background: #ffffff;
}

.feedback-rating.rating-display-words .rating-option strong {
    font-size: 0.95rem;
}

.feedback-rating.rating-display-words input:checked + .rating-option {
    background: #0f766e;
    color: #ffffff;
}

.feedback-rating.rating-display-words input:checked + .rating-option strong {
    color: #ffffff;
}

.feedback-rating.rating-display-stars .rating-option {
    width: 4.5rem;
    min-height: 4.5rem;
    margin-inline: auto;
    padding: 0;
    border-radius: 50%;
}

.feedback-rating.rating-display-stars .rating-stars {
    font-size: 1.8rem;
}

.feedback-rating label:hover .rating-option {
    border-color: var(--rating-color);
    box-shadow: 0 9px 22px color-mix(in srgb, var(--rating-color) 22%, transparent);
    transform: translateY(-4px) scale(1.02);
}

.feedback-rating input:focus-visible + .rating-option {
    outline: 3px solid rgba(20, 184, 166, 0.3);
    outline-offset: 2px;
}

.feedback-rating input:checked + .rating-option {
    border-color: var(--rating-color);
    background: linear-gradient(145deg, color-mix(in srgb, var(--rating-color) 82%, #fff), var(--rating-color));
    color: #fff;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--rating-color) 30%, transparent);
    transform: translateY(-3px) scale(1.03);
    animation: ratingSelected 300ms ease;
}

.feedback-rating input:checked + .rating-option strong {
    color: #fff;
}

.feedback-rating input:checked + .rating-option .rating-stars {
    color: #fff;
}

.public-feedback-form textarea {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.public-feedback-form textarea:focus {
    border-color: var(--question-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--question-accent) 16%, transparent);
    outline: none;
}

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

@keyframes ratingSelected {
    0% { transform: scale(0.94); }
    65% { transform: translateY(-3px) scale(1.07); }
    100% { transform: translateY(-3px) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
    .public-feedback-form fieldset,
    .feedback-rating .rating-option {
        animation: none;
        transition: none;
    }
}

@media (max-width: 600px) {
    .feedback-rating {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .feedback-rating label:last-child {
        grid-column: 1 / -1;
    }

    .feedback-rating.rating-display-stars {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .feedback-rating.rating-display-stars label:last-child {
        grid-column: auto;
    }

    .feedback-rating.rating-display-stars .rating-option {
        width: min(3.5rem, 100%);
        min-height: 3.5rem;
    }

    .feedback-rating .rating-option {
        min-height: 6.5rem;
    }
}

.feedback-thank-you {
    padding: 3rem 1rem;
    text-align: center;
}

.feedback-thank-you > span {
    display: inline-grid;
    width: 4rem;
    height: 4rem;
    place-items: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 2rem;
}

@media (max-width: 700px) {
    .feedback-config-grid { grid-template-columns: 1fr; }
}

.admin-body {
    display: flex;
    flex: 1;
    min-height: 0;
}

.admin-sidebar {
    width: 260px;
    background: #111827;
    color: #f9fafb;
    padding: 1rem 0.75rem;
    box-sizing: border-box;
}

.admin-sidebar a {
    color: #f9fafb;
    text-decoration: none;
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.35rem;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: #1f2937;
}

.sidebar-menu-section h2 {
    margin: 0 0 0.75rem;
    padding: 0.4rem 0.75rem;
    color: #94a3b8;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-menu-section[hidden] {
    display: none;
}

.sidebar-disabled {
    display: block;
    padding: 0.65rem 0.75rem;
    color: #64748b;
    cursor: not-allowed;
}

.admin-menu-group {
    margin: 0;
}

.admin-menu-group summary {
    padding: .72rem .8rem;
    border-radius: 8px;
    color: #334155;
    cursor: pointer;
    font-weight: 750;
    list-style: none;
}

.admin-menu-group summary::-webkit-details-marker {
    display: none;
}

.admin-menu-group summary::after {
    float: right;
    content: "›";
    transition: transform .2s ease;
}

.admin-menu-group[open] summary::after {
    transform: rotate(90deg);
}

.admin-menu-group summary:hover,
.admin-menu-group summary.active {
    background: #e8f3ef;
    color: #12634e;
}

.admin-submenu {
    display: grid;
    gap: .15rem;
    margin: .2rem 0 .45rem .7rem;
    padding-left: .55rem;
    border-left: 2px solid #d8e8e2;
}

.admin-sidebar .admin-submenu a {
    padding: .5rem .6rem;
    font-size: .78rem;
}

.admin-content {
    flex: 1;
    padding: 1.5rem;
    box-sizing: border-box;
}

.admin-card {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.admin-footer {
    background: #e5e7eb;
    padding: 1rem 1.5rem;
    text-align: center;
    color: #4b5563;
}

@media (max-width: 980px) {
    .grid-2,
    .grid-3,
    .detail-cards,
    .schedule-list,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .page-wrapper,
    .page-header {
        padding: 0.9rem;
    }
}

@media (max-width: 640px) {
    .page-wrapper,
    .card,
    .content-panel,
    .admin-card,
    .settings-panel,
    .schedule-panel {
        border-radius: 14px;
        padding: 0.95rem;
    }

    button {
        width: 100%;
    }
}

/* Compact application density */
:root {
    font-size: 14px;
    line-height: 1.4;
}

button {
    padding: 0.58rem 0.8rem;
    border-radius: 9px;
}

input,
textarea,
select {
    padding: 0.58rem 0.72rem;
    border-radius: 9px;
}

textarea {
    min-height: 78px;
}

label {
    margin-top: 0.35rem;
}

.page-wrapper,
.card,
.content-panel,
.admin-card,
.settings-panel,
.schedule-panel {
    padding: 0.9rem;
    margin-bottom: 0.8rem;
    border-radius: 14px;
}

.admin-header {
    padding: 0.7rem 1rem;
}

.admin-header .top-links {
    gap: 0.65rem;
}

.admin-sidebar {
    width: 220px;
    padding: 0.65rem 0.5rem;
}

.admin-sidebar a {
    padding: 0.48rem 0.6rem;
    margin-bottom: 0.2rem;
}

.admin-content {
    padding: 1rem;
}

.admin-card {
    padding: 0.9rem 1rem;
}

.admin-card h1,
.admin-card h2,
.admin-card h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.65rem;
}

.admin-footer {
    padding: 0.7rem 1rem;
}

.form-card,
.settings-form,
.schedule-form,
.event-form {
    gap: 0.7rem;
    padding: 1rem;
    border-radius: 16px;
}

.form-grid {
    gap: 0.8rem;
}

.form-card .form-field,
.settings-form .form-field,
.schedule-form .form-field,
.event-form .form-group,
.form-group {
    gap: 0.3rem;
}

.form-card input,
.form-card textarea,
.form-card select,
.settings-form input,
.settings-form textarea,
.settings-form select,
.schedule-form input,
.schedule-form textarea,
.schedule-form select,
.event-form input,
.event-form textarea,
.event-form select {
    padding: 0.62rem 0.72rem;
    border-radius: 9px;
}

.checkbox-group {
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: 9px;
}

.actions,
.form-footer,
.toolbar {
    gap: 0.5rem;
    margin-top: 0.65rem;
    margin-bottom: 0.65rem;
}

.approval-event-picker {
    max-width: 650px;
    margin-bottom: 1rem;
}

.approval-include-events {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: .65rem;
    cursor: pointer;
    font-size: .9rem;
}

.approval-include-events input {
    width: auto;
    margin: 0;
}

.checkin-event-table {
    width: 100%;
    margin: 0;
    table-layout: fixed;
}

.checkin-event-form {
    display: block;
    width: 100%;
    overflow-x: auto;
}

.checkin-event-table th,
.checkin-event-table td {
    padding: .75rem;
    vertical-align: middle;
}

.checkin-event-table .checkin-instructions {
    width: 55%;
    color: #475569;
}

.checkin-event-table th {
    width: 120px;
    white-space: nowrap;
    text-align: right;
}

.checkin-event-table .checkin-event-select {
    width: 35%;
}

.checkin-event-table select {
    width: 100%;
    margin: 0;
}

.checkin-camera-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.checkin-camera-heading h2 {
    margin: 0;
}

.checkin-camera-heading .actions {
    flex-wrap: nowrap;
    margin: 0;
}

.checkin-camera-heading button {
    white-space: nowrap;
}

body.event-checkin-page #video.video-frame {
    width: 360px !important;
    height: 203px !important;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 203px;
    margin: .75rem auto 0;
    border-radius: 12px;
    background: #111827;
    object-fit: cover;
}

.checkin-tabs {
    display: flex;
    gap: .5rem;
    margin: 1rem 0;
    border-bottom: 2px solid #dbe5e1;
}

.checkin-announcement-settings {
    margin-top: .8rem;
    padding: .8rem 1rem;
    border: 1px solid #dbe5e1;
    border-radius: 10px;
    background: #f8fbfa;
}

.checkin-announcement-settings summary {
    cursor: pointer;
    color: #155f50;
    font-weight: 800;
}

.announcement-settings-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: .75rem;
    align-items: end;
    margin-top: .9rem;
}

.announcement-settings-form label {
    margin: 0;
    font-size: .8rem;
    font-weight: 750;
}

.announcement-settings-form select,
.announcement-settings-form input[type="number"] {
    width: 100%;
    margin-top: .3rem;
}

.announcement-settings-form .announcement-toggle {
    display: flex;
    align-items: center;
    gap: .45rem;
    align-self: center;
}

.announcement-settings-form .announcement-toggle input {
    width: auto;
}

.announcement-actions {
    display: flex;
    gap: .5rem;
}

.announcement-actions button {
    white-space: nowrap;
}

.announcement-note {
    margin: .65rem 0 0;
    font-size: .78rem;
}

.checkin-tab {
    margin-bottom: -2px;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    border-radius: 10px 10px 0 0;
    background: transparent;
    color: #526473;
    font-weight: 800;
}

.checkin-tab.active {
    border-color: #cfe2da;
    border-bottom-color: #fff;
    background: #fff;
    color: #155f50;
    box-shadow: none;
}

.checkin-tab-panel[hidden] {
    display: none;
}

.manual-checkin-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.manual-checkin-heading h2,
.manual-checkin-heading p {
    margin-top: 0;
}

.manual-checkin-search {
    width: min(420px, 100%);
}

.manual-checkin-search span {
    display: block;
    margin-bottom: .35rem;
    font-weight: 750;
}

.manual-checkin-search input {
    width: 100%;
}

.manual-checkin-table {
    min-width: 900px;
}

.manual-checkin-form {
    margin: 0;
}

.manual-checkin-form button {
    padding: .55rem .85rem;
    white-space: nowrap;
}

.checkin-code-entry {
    display: flex;
    gap: .6rem;
}

.checkin-code-entry input {
    min-width: 0;
}

.checkin-code-entry button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.checkin-code-result {
    margin-top: 1rem;
    padding: 1.25rem;
    border: 1px solid #cfe2da;
    border-radius: 12px;
    background: #f8fcfa;
}

.checkin-code-result h3 {
    margin-top: 0;
}

.checkin-code-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.checkin-code-details div {
    min-width: 0;
}

.checkin-code-details span,
.checkin-code-details strong {
    display: block;
}

.checkin-code-details span {
    margin-bottom: .25rem;
    color: #687982;
    font-size: .75rem;
    font-weight: 750;
    text-transform: uppercase;
}

.checkin-code-details strong {
    overflow-wrap: anywhere;
}

.checkin-complete {
    display: inline-block;
    padding: .4rem .65rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: .8rem;
    font-weight: 800;
    white-space: nowrap;
}

.checkin-status-panel {
    margin-top: 1rem;
}

body.playback-admin-page .admin-card {
    max-width: 1180px;
}

.playback-page {
    display: grid;
    gap: 1rem;
}

.playback-intro,
.playback-upload,
.playback-card {
    border: 1px solid #dfe7e4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.playback-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.7rem;
    overflow: hidden;
    background: linear-gradient(135deg, #082f2a, #0f4c5c);
    color: #fff;
}

.playback-intro span,
.playback-card-heading span {
    color: #5eead4;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.playback-intro h2 {
    margin: .3rem 0;
    color: #fff;
    font-size: 1.7rem;
}

.playback-intro p {
    margin: 0;
    color: rgba(255,255,255,.7);
}

.playback-equalizer {
    display: flex;
    height: 52px;
    gap: 6px;
    align-items: center;
}

.playback-equalizer i {
    width: 6px;
    height: 35%;
    border-radius: 99px;
    background: linear-gradient(#5eead4, #38bdf8);
    animation: playback-bar .9s ease-in-out infinite alternate;
}

.playback-equalizer i:nth-child(2) { animation-delay: -.6s; }
.playback-equalizer i:nth-child(3) { animation-delay: -.25s; }
.playback-equalizer i:nth-child(4) { animation-delay: -.75s; }
.playback-equalizer i:nth-child(5) { animation-delay: -.4s; }

@keyframes playback-bar {
    to { height: 100%; }
}

.playback-upload {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(240px, 2fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
}

.playback-upload label span {
    display: block;
    margin-top: .2rem;
    color: #64748b;
    font-size: .75rem;
}

.playback-settings {
    display: grid;
    gap: 1rem;
}

.playback-card {
    padding: 1.25rem;
}

.playback-card-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.playback-card-heading span {
    color: #0f766e;
}

.playback-card-heading h3 {
    margin: .2rem 0 0;
}

.playback-switch {
    display: flex;
    align-items: center;
    gap: .6rem;
    cursor: pointer;
}

.playback-switch input {
    position: absolute;
    opacity: 0;
}

.playback-switch span {
    position: relative;
    width: 46px;
    height: 25px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: .2s ease;
}

.playback-switch span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    content: "";
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
    transition: .2s ease;
}

.playback-switch input:checked + span {
    background: #0f766e;
}

.playback-switch input:checked + span::after {
    transform: translateX(21px);
}

.playback-controls {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    align-items: end;
}

.playback-controls label {
    margin: 0;
}

.playback-controls output {
    float: right;
    color: #0f766e;
}

.playback-controls input[type="range"],
.playback-controls input[type="number"] {
    width: 100%;
    margin-top: .4rem;
}

.playback-controls .playback-check {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-height: 42px;
}

.playback-controls .playback-check input {
    width: auto;
}

.playback-track-list {
    display: grid;
    gap: .55rem;
}

.playback-track {
    display: grid;
    grid-template-columns: auto 42px minmax(180px, 1fr) minmax(220px, 340px);
    gap: .85rem;
    align-items: center;
    margin: 0;
    padding: .7rem .85rem;
    border: 1px solid #e5ebe9;
    border-radius: 12px;
    background: #f9fbfb;
}

.playback-track > input {
    width: 17px;
    height: 17px;
    accent-color: #0f766e;
}

.playback-track-number {
    color: #94a3b8;
    font-size: .8rem;
    font-weight: 800;
}

.playback-track-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playback-track-name small {
    display: block;
    margin-top: .2rem;
    color: #94a3b8;
}

.playback-track audio {
    width: 100%;
    height: 36px;
}

.playback-empty {
    padding: 2rem;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    text-align: center;
}

.playback-save {
    justify-self: end;
}

.event-reports-page {
    display: grid;
    gap: 1rem;
}

.event-report-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
    gap: .8rem;
    align-items: end;
    padding: 1rem;
    border: 1px solid #dfe7e4;
    border-radius: 14px;
    background: #f8fbfa;
}

.event-report-toolbar label {
    margin: 0;
    font-size: .78rem;
    font-weight: 800;
}

.event-report-toolbar select {
    width: 100%;
    margin-top: .3rem;
}

.event-report-sheet {
    overflow: hidden;
    border: 1px solid #dfe7e4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(15,23,42,.08);
}

.event-report-sheet > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.7rem;
}

.event-report-sheet > header span {
    color: #0f766e;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.event-report-sheet > header h2 {
    margin: .25rem 0;
    font-size: 1.65rem;
}

.event-report-sheet > header p {
    margin: 0;
    color: #64748b;
}

.event-report-total {
    min-width: 92px;
    padding: .8rem 1rem;
    border-radius: 13px;
    background: #e8f7f2;
    text-align: center;
}

.event-report-total strong,
.event-report-total span {
    display: block;
}

.event-report-total strong {
    color: #0f766e;
    font-size: 1.8rem;
}

.event-report-table-wrap {
    overflow: auto;
    border-top: 1px solid #e5ebe9;
}

.event-report-table {
    min-width: 920px;
    margin: 0;
    font-size: .8rem;
}

.event-report-table th,
.event-report-table td {
    padding: .8rem;
    border: 0;
    border-bottom: 1px solid #edf1f0;
    vertical-align: top;
}

.event-report-table th {
    background: #f1f7f5;
    color: #475569;
    font-size: .66rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.event-report-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.event-report-metrics div {
    padding: 1.1rem;
    border: 1px solid #dce9e5;
    border-radius: 14px;
    background: linear-gradient(145deg, #f8fffc, #eef8f5);
}

.event-report-metrics span,
.event-report-metrics strong {
    display: block;
}

.event-report-metrics span {
    color: #64748b;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.event-report-metrics strong {
    margin-top: .35rem;
    color: #0f766e;
    font-size: 2rem;
}

.event-full-summary {
    margin: 0 1.5rem 1.5rem;
    padding: 1.25rem;
    border-radius: 14px;
    background: #f8fafc;
}

.event-full-summary dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem 1.5rem;
}

.event-full-summary dl div {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: .55rem;
}

.event-full-summary dt {
    color: #64748b;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.event-full-summary dd {
    margin: .2rem 0 0;
    color: #1e293b;
    font-weight: 700;
}

.event-report-empty {
    padding: 3rem 1.5rem;
    border-top: 1px solid #e5ebe9;
    color: #64748b;
    text-align: center;
}

.event-report-export {
    display: flex;
    justify-content: flex-end;
    gap: .7rem;
}

.event-report-template-classic {
    border-radius: 0;
    font-family: Georgia, serif;
}

.event-report-template-classic > header {
    border-bottom: 3px double #334155;
    background: #fff;
}

.event-report-template-minimal {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.event-report-template-minimal > header {
    padding-left: 0;
    padding-right: 0;
    border-bottom: 1px solid #cbd5e1;
}

.event-report-template-modern > header {
    background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

@media print {
    .event-report-table-wrap {
        overflow: visible;
    }

    .event-report-table {
        min-width: 0;
        font-size: 8pt;
    }
}

@media (max-width: 760px) {
    .playback-upload,
    .playback-controls,
    .playback-track {
        grid-template-columns: 1fr;
    }

    .playback-equalizer {
        display: none;
    }

    .playback-card-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .event-report-toolbar,
    .event-report-metrics,
    .event-full-summary dl {
        grid-template-columns: 1fr;
    }

    .event-report-sheet > header {
        align-items: flex-start;
        flex-direction: column;
    }
}

.checkin-status-panel h2 {
    margin-bottom: .65rem;
}

.checkin-status-panel .result {
    position: relative;
    display: flex;
    align-items: center;
    gap: .8rem;
    min-height: 62px;
    padding: .9rem 1.1rem;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #fff;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.45;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .14);
    transition: background .3s ease, box-shadow .3s ease, transform .3s ease;
}

.checkin-status-panel .result::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.18) 45%, transparent 70%);
    content: "";
    transform: translateX(-120%);
    animation: checkin-status-shimmer 3.2s ease-in-out infinite;
    pointer-events: none;
}

.checkin-status-panel .result.info {
    background: linear-gradient(135deg, #2563eb, #6d28d9);
}

.checkin-status-panel .result.success {
    background: linear-gradient(135deg, #059669, #16a34a, #65a30d);
    box-shadow: 0 12px 28px rgba(5, 150, 105, .28);
}

.checkin-status-panel .result.error {
    background: linear-gradient(135deg, #dc2626, #ea580c);
    box-shadow: 0 12px 28px rgba(220, 38, 38, .25);
}

.checkin-status-panel .status-icon {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 2px solid rgba(255,255,255,.72);
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    font-size: 1.1rem;
    animation: checkin-status-pulse 1.8s ease-in-out infinite;
}

.checkin-status-panel .status-message {
    position: relative;
    z-index: 1;
}

.checkin-status-panel .result.typing .status-message::after {
    margin-left: 3px;
    content: "▌";
    animation: checkin-cursor-blink .65s steps(1) infinite;
}

.checkin-status-panel .result.status-pop {
    animation: checkin-status-pop .38s ease-out;
}

@keyframes checkin-status-shimmer {
    0%, 55% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

@keyframes checkin-status-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.09); }
}

@keyframes checkin-status-pop {
    0% { opacity: .55; transform: translateY(5px) scale(.985); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes checkin-cursor-blink {
    50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .checkin-status-panel .result,
    .checkin-status-panel .result::before,
    .checkin-status-panel .status-icon,
    .checkin-status-panel .result.typing .status-message::after {
        animation: none;
    }
}

@media (max-width: 640px) {
    .checkin-event-table {
        min-width: 680px;
    }

    .checkin-camera-heading {
        flex-wrap: wrap;
    }

    body.event-checkin-page #video.video-frame {
        width: min(100%, 320px) !important;
        height: 180px !important;
        max-height: 180px;
    }

    .manual-checkin-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .checkin-tabs {
        overflow-x: auto;
    }

    .announcement-settings-form {
        grid-template-columns: 1fr;
    }

    .announcement-actions {
        flex-wrap: wrap;
    }

    .checkin-tab {
        flex: 0 0 auto;
    }

    .checkin-code-entry {
        align-items: stretch;
        flex-direction: column;
    }

    .checkin-code-details {
        grid-template-columns: 1fr;
    }
}

.approval-summary,
.approval-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
}

.approval-summary span {
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    background: #f3f4f6;
    color: #4b5563;
}

.approval-summary .approved { background: #dcfce7; color: #166534; }
.approval-summary .denied { background: #fee2e2; color: #991b1b; }
.approval-bulk-actions form { margin: 0; }

.approval-button {
    width: auto;
    min-width: 120px;
    box-shadow: none;
}

.approval-button.approve { background: #15803d; }
.approval-button.deny { background: #b91c1c; }

.approval-toggle {
    display: inline-flex;
    margin: 0;
    padding: 3px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #f9fafb;
}

.approval-toggle .toggle-option {
    width: auto;
    min-height: 34px;
    padding: 0.45rem 0.75rem;
    border-radius: 7px;
    background: transparent;
    color: #6b7280;
    box-shadow: none;
}

.approval-toggle .toggle-option:hover { transform: none; box-shadow: none; }
.approval-toggle .toggle-option.approve.active { background: #15803d; color: #fff; }
.approval-toggle .toggle-option.deny.active { background: #b91c1c; color: #fff; }
.pending-label { display: inline-block; margin-left: 0.5rem; color: #92400e; font-size: 0.8rem; }
.approval-empty { margin-top: 1rem; padding: 1rem; border-radius: 10px; background: #f3f4f6; color: #4b5563; }
.approval-table table { min-width: 650px; }

.button-primary,
.button-secondary {
    padding: 0.62rem 0.9rem;
}

.alert {
    padding: 0.62rem 0.75rem;
    margin-bottom: 0.7rem;
    border-radius: 9px;
}

.grid,
.detail-cards,
.schedule-list,
.event-results {
    gap: 0.6rem;
}

.detail-card,
.schedule-item,
.event-result-item,
.form-card,
.event-box {
    padding: 0.75rem;
    border-radius: 11px;
}

table {
    margin-top: 0.65rem;
}

th,
td {
    padding: 0.55rem 0.65rem;
}

.event-select-form {
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}

.qr-page,
.schedule-page {
    padding: 1rem;
}

.qr-page-intro,
.schedule-page-header {
    padding: 1rem 1.15rem;
    margin-bottom: 0.8rem;
}

.qr-event-picker,
.qr-compose,
.schedule-form.schedule-form-two-column {
    padding: 0.85rem;
}

.qr-action-bar {
    gap: 0.75rem;
    padding: 0.7rem 0 0.9rem;
    margin-top: 0.8rem;
}

.qr-table-heading,
.schedule-list-heading {
    padding-top: 1rem;
}

.schedule-creation-grid {
    gap: 0.75rem;
}

.schedule-form-two-column .form-footer {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
}

.schedule-responsive-table th,
.schedule-responsive-table td,
.qr-table th,
.qr-table td {
    padding: 0.65rem 0.75rem;
}

@media (max-width: 640px) {
    .admin-content,
    .qr-page,
    .schedule-page {
        padding: 0.7rem;
    }

    .page-wrapper,
    .card,
    .content-panel,
    .admin-card,
    .settings-panel,
    .schedule-panel {
        padding: 0.7rem;
    }
}

/* Colorful public registration page */
.register-page {
    background:
        radial-gradient(circle at 7% 17%, rgba(34, 197, 94, 0.14), transparent 24rem),
        radial-gradient(circle at 94% 32%, rgba(139, 92, 246, 0.14), transparent 25rem),
        linear-gradient(145deg, #f0fdf8 0%, #f7f5ff 48%, #fff8ed 100%);
}

.register-page .public-register-content {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    padding: clamp(1rem, 2.5vw, 2rem);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 28px;
    background: rgba(255,255,255,0.88);
    box-shadow: 0 24px 65px rgba(46, 39, 93, 0.12);
    backdrop-filter: blur(12px);
}

.register-page .public-register-content::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -110px;
    right: -75px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(217,242,106,.65), rgba(45,212,191,.28));
    pointer-events: none;
}

.register-page .public-register-content > h1 {
    position: relative;
    margin: 0 0 1.25rem;
    color: #173d32;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.register-page .public-register-content > h1::after {
    content: "";
    display: block;
    width: 72px;
    height: 5px;
    margin-top: .8rem;
    border-radius: 99px;
    background: linear-gradient(90deg, #16a36f, #8b5cf6, #f59e0b);
}

.register-page .event-select-form {
    margin-bottom: 1.25rem;
    padding: 1.1rem 1.2rem;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(115deg, #173f34, #155f50 58%, #5940a5);
    box-shadow: 0 14px 30px rgba(21,95,80,.2);
}

.register-page .event-select-form label {
    color: #eafff7;
    font-weight: 800;
}

.register-page .event-select-form select {
    border: 1px solid rgba(255,255,255,.5);
    background: #ffffff;
    color: #173d32;
}

.register-page .event-box {
    border: 1px solid #d9eee7;
    background: linear-gradient(145deg, #f0fcf8, #ffffff 55%, #f8f4ff);
    box-shadow: 0 12px 30px rgba(20,83,66,.08);
}

.register-page .event-box > h2 {
    color: #155f50;
}

.register-page .detail-card:nth-child(3n + 1) {
    border-top: 4px solid #14a878;
    background: linear-gradient(180deg, #e9fbf5, #ffffff);
}

.register-page .detail-card:nth-child(3n + 2) {
    border-top: 4px solid #8b5cf6;
    background: linear-gradient(180deg, #f2edff, #ffffff);
}

.register-page .detail-card:nth-child(3n + 3) {
    border-top: 4px solid #f59e0b;
    background: linear-gradient(180deg, #fff7e7, #ffffff);
}

.register-page .detail-card:nth-child(3n + 2) h3 { color: #6842bd; }
.register-page .detail-card:nth-child(3n + 3) h3 { color: #b86608; }

.register-page .schedule-note {
    border: 1px solid #cfc2f6;
    background: linear-gradient(110deg, #f1edff, #fff7e8);
    color: #43316e;
}

.register-page form[method="post"] {
    margin-top: 1.25rem;
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid #dcebe6;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(239,253,248,.95), rgba(255,255,255,.98) 45%, rgba(247,243,255,.95));
    box-shadow: 0 16px 38px rgba(31,72,62,.09);
}

.register-page .registration-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.register-page .registration-table {
    width: 100%;
    table-layout: fixed;
    border-spacing: .65rem;
}

.register-page .registration-table th {
    padding: .7rem .85rem;
    border-radius: 10px;
    background: linear-gradient(100deg, #dff7ef, #eee8ff);
    color: #155f50;
    text-align: left;
    font-size: 1.05rem;
}

.register-page .registration-table td {
    min-width: 0;
    padding: .8rem;
    border: 1px solid rgba(194,220,211,.72);
    border-radius: 13px;
    background: rgba(255,255,255,.82);
    vertical-align: top;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.register-page .registration-table td:focus-within {
    border-color: #20a979;
    box-shadow: 0 8px 22px rgba(32,169,121,.14);
}

.register-page .registration-table textarea {
    min-height: 90px;
    resize: vertical;
}

.register-page .declaration-field {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-top: .25rem;
}

.register-page form[method="post"] .grid > div {
    padding: .8rem;
    border: 1px solid rgba(194,220,211,.72);
    border-radius: 13px;
    background: rgba(255,255,255,.82);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.register-page form[method="post"] .grid > div:nth-child(4n + 2),
.register-page form[method="post"] .grid > div:nth-child(4n + 3) {
    background: rgba(249,246,255,.9);
    border-color: #e4daf9;
}

.register-page form[method="post"] .grid > div:focus-within {
    z-index: 1;
    border-color: #20a979;
    box-shadow: 0 8px 22px rgba(32,169,121,.14);
    transform: translateY(-2px);
}

.register-page form[method="post"] label {
    color: #25483e;
    font-weight: 750;
}

.register-page form[method="post"] input,
.register-page form[method="post"] select,
.register-page form[method="post"] textarea {
    width: 100%;
    border: 1px solid #cfded9;
    background: #ffffff;
}

.register-page form[method="post"] input:focus,
.register-page form[method="post"] select:focus,
.register-page form[method="post"] textarea:focus {
    outline: none;
    border-color: #16a36f;
    box-shadow: 0 0 0 4px rgba(22,163,111,.12);
}

.register-page form[method="post"] input[type="checkbox"] {
    width: auto;
    accent-color: #16a36f;
}

.register-page form[method="post"] button[type="submit"] {
    padding: .8rem 1.5rem;
    border-radius: 999px;
    background: linear-gradient(100deg, #11845e, #16a36f 55%, #6842bd);
    box-shadow: 0 12px 25px rgba(17,132,94,.25);
    font-weight: 850;
}

.register-page form[method="post"] button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(17,132,94,.32);
}

.register-page .alert.success {
    border-left: 5px solid #16a34a;
    background: linear-gradient(90deg, #dcfce7, #effdf5);
}

.register-page .alert.error {
    border-left: 5px solid #e14b59;
    background: linear-gradient(90deg, #ffe5e8, #fff5f2);
}

@media (max-width: 640px) {
    .register-page .public-register-content {
        width: calc(100% - 1rem);
        border-radius: 18px;
    }

    .register-page form[method="post"] .grid > div {
        padding: .7rem;
    }

    .register-page .registration-table,
    .register-page .registration-table tbody,
    .register-page .registration-table tr,
    .register-page .registration-table td,
    .register-page .registration-table th {
        display: block;
        width: 100%;
    }

    .register-page .registration-table {
        border-spacing: 0;
    }

    .register-page .registration-table th {
        margin: 1rem 0 .5rem;
    }

    .register-page .registration-table tr:first-child th {
        margin-top: 0;
    }

    .register-page .registration-table td {
        margin-bottom: .6rem;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .register-page .registration-table {
        min-width: 760px;
    }
}
.event-select-form {
    width: 100%;
    margin: 0;
}

.event-select-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #ffffff;
}

.event-select-table td {
    padding: 14px 16px;
    border: 1px solid #d6dce3;
    vertical-align: middle;
}

.event-title-column {
    width: 25%;
}

.event-label-column {
    width: 25%;
}

.event-select-column {
    width: 50%;
}

.event-select-table h1 {
    margin: 0;
    font-size: 24px;
    white-space: nowrap;
}

.event-select-table label {
    display: block;
    margin: 0;
    font-weight: 600;
}

.event-select-table select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #bfc7d1;
    border-radius: 5px;
    background: #ffffff;
    font-size: 15px;
    box-sizing: border-box;
}

@media (max-width: 700px) {
    .event-select-table,
    .event-select-table tbody,
    .event-select-table tr,
    .event-select-table td {
        display: block;
        width: 100%;
    }

    .event-select-table td {
        box-sizing: border-box;
    }

    .event-select-table h1 {
        white-space: normal;
    }
}
.event-select-form {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 15px 20px;
    box-sizing: border-box;
}

.event-select-form h1 {
    margin: 0;
    white-space: nowrap;
    font-size: 24px;
}

.event-select-form label {
    margin: 0;
    white-space: nowrap;
    font-weight: 600;
}

.event-select-form select {
    flex: 1;
    min-width: 280px;
    padding: 10px 12px;
    border: 1px solid #cfd5dc;
    border-radius: 5px;
    font-size: 15px;
}
@media (max-width: 700px) {
    .event-select-form {
        flex-wrap: wrap;
    }

    .event-select-form select {
        width: 100%;
        flex-basis: 100%;
    }
}

/* Registration bulk upload */
.bulk-registration-upload {
    max-width: 1180px;
}

.bulk-import-upload-panel,
.bulk-import-mapping-panel,
.bulk-import-result-panel {
    padding: 1.25rem;
    border: 1px solid #d8e4e0;
    border-radius: 16px;
    background: linear-gradient(145deg, #fbfffd, #ffffff 56%, #f5fbff);
}

.bulk-import-eyebrow {
    margin: 0 0 .35rem;
    color: #0f766e;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bulk-import-upload-panel h2,
.bulk-import-mapping-panel h2,
.bulk-import-result-panel h2 {
    margin: 0 0 .55rem;
}

.bulk-import-upload-form {
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(0, 1.7fr) auto;
    gap: .9rem;
    align-items: end;
    margin-top: 1.1rem;
}

.bulk-import-upload-form label {
    margin: 0;
}

.bulk-import-upload-form label span {
    display: block;
    margin-bottom: .35rem;
    font-weight: 700;
}

.bulk-import-upload-form input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: .6rem;
    border: 1px dashed #94bdb2;
    border-radius: 10px;
    background: #fff;
}

.bulk-import-upload-form select {
    width: 100%;
    box-sizing: border-box;
}

.bulk-import-mapping-table-wrap,
.bulk-import-results-table-wrap {
    overflow-x: auto;
    margin-top: 1rem;
    border: 1px solid #dbe7e3;
    border-radius: 12px;
}

.bulk-import-mapping-table,
.bulk-import-results-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}

.bulk-import-table-caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bulk-import-mapping-table th,
.bulk-import-results-table th {
    padding: .75rem .85rem;
    background: #e9f7f2;
    color: #175d4d;
    text-align: left;
    font-size: .86rem;
}

.bulk-import-mapping-table td,
.bulk-import-results-table td {
    padding: .65rem .85rem;
    border-top: 1px solid #e2ebe8;
    vertical-align: middle;
}

.bulk-import-mapping-table select,
.bulk-import-mapping-table input {
    width: 100%;
    min-width: 180px;
    box-sizing: border-box;
    margin: 0;
}

.bulk-import-mapping-table .is-readonly,
.bulk-import-mapping-table input[readonly] {
    color: #64748b;
    background: #f1f5f4;
    cursor: not-allowed;
}

.bulk-import-event-reference {
    margin-top: .9rem;
    color: #475569;
}

.bulk-import-event-reference summary {
    cursor: pointer;
    font-weight: 700;
}

.bulk-import-event-reference ul {
    margin: .5rem 0 0;
    padding-left: 1.2rem;
}

.bulk-import-actions,
.bulk-import-result-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-top: 1rem;
}

.bulk-import-actions {
    justify-content: flex-start;
}

.bulk-import-actions button,
.bulk-import-start-over {
    margin: 0;
}

.bulk-import-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}

.bulk-import-summary > div {
    padding: .85rem 1rem;
    border: 1px solid #dce8e4;
    border-radius: 12px;
    background: #fff;
}

.bulk-import-summary .uploaded {
    border-color: #9cddbb;
    background: #f0fdf4;
}

.bulk-import-summary .skipped {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.bulk-import-summary .failed {
    border-color: #fecaca;
    background: #fff5f5;
}

.bulk-import-summary span {
    display: block;
    color: #64748b;
    font-size: .82rem;
}

.bulk-import-summary strong {
    display: block;
    margin-top: .1rem;
    color: #1e293b;
    font-size: 1.45rem;
}

.bulk-import-status {
    display: inline-block;
    padding: .26rem .55rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}

.bulk-import-status.uploaded {
    color: #166534;
    background: #dcfce7;
}

.bulk-import-status.skipped {
    color: #1d4ed8;
    background: #dbeafe;
}

.bulk-import-status.failed {
    color: #b91c1c;
    background: #fee2e2;
}

.bulk-import-result-list {
    margin-top: 1.5rem;
}

.bulk-import-result-list-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}

.bulk-import-result-list-heading h3 {
    margin: 0;
}

.bulk-import-exports {
    justify-content: flex-start;
}

@media (max-width: 760px) {
    .bulk-import-upload-form {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .bulk-import-upload-panel,
    .bulk-import-mapping-panel,
    .bulk-import-result-panel {
        padding: .9rem;
    }

    .bulk-import-summary {
        grid-template-columns: 1fr 1fr;
    }
}

/* Live check-in attendee list */
body.live-checkin-page .admin-content {
    background:
        radial-gradient(circle at 100% 0, rgba(20, 184, 166, .10), transparent 28rem),
        linear-gradient(145deg, #f3f8f7 0%, #f8fafc 56%, #f1f5f9 100%);
}

body.live-checkin-page .admin-card {
    max-width: 1440px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .10);
}

body.live-checkin-page .admin-card > h1 {
    margin: 0;
    padding: 1.2rem 1.75rem;
    border-bottom: 1px solid #e7eeec;
    background: rgba(255, 255, 255, .94);
    color: #163c39;
    font-size: 1.08rem;
}

.live-checkin-content {
    display: grid;
    gap: 1.25rem;
    padding: clamp(1rem, 2.5vw, 1.75rem);
}

.live-checkin-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.2rem);
    border-radius: 18px;
    background: linear-gradient(118deg, #113f3a 0%, #0f766e 57%, #0f9a8e 100%);
    color: #fff;
    isolation: isolate;
}

.live-checkin-hero::before,
.live-checkin-hero::after {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    content: '';
}

.live-checkin-hero::before {
    top: -9rem;
    right: 9%;
    width: 22rem;
    height: 22rem;
    background: rgba(52, 211, 153, .18);
}

.live-checkin-hero::after {
    right: -6rem;
    bottom: -9rem;
    width: 18rem;
    height: 18rem;
    border: 1px solid rgba(255, 255, 255, .14);
}

.live-checkin-hero-copy {
    max-width: 720px;
}

.live-checkin-eyebrow {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 .5rem;
    color: #c8fbeb;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .105em;
    text-transform: uppercase;
}

.live-checkin-eyebrow span {
    width: .52rem;
    height: .52rem;
    border-radius: 50%;
    background: #8cf3cd;
    box-shadow: 0 0 0 .25rem rgba(140, 243, 205, .15);
}

.live-checkin-hero h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 3.3vw, 2.7rem);
    letter-spacing: -.035em;
}

.live-checkin-hero p:not(.live-checkin-eyebrow) {
    max-width: 610px;
    margin: .6rem 0 0;
    color: rgba(235, 255, 250, .8);
    line-height: 1.6;
}

.live-checkin-hero-total {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 auto;
    min-width: 132px;
    padding: 1.05rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 15px;
    background: rgba(0, 45, 40, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
    text-align: center;
    backdrop-filter: blur(8px);
}

.live-checkin-hero-total strong {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1;
    letter-spacing: -.06em;
}

.live-checkin-hero-total span {
    margin-top: .45rem;
    color: #ccfbf1;
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.live-checkin-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid #dce9e5;
    border-radius: 16px;
    background: rgba(255, 255, 255, .86);
}

.live-checkin-event-picker {
    display: grid;
    gap: .42rem;
    min-width: min(100%, 470px);
    margin: 0;
}

.live-checkin-event-picker > label {
    color: #3f5d59;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.live-checkin-event-picker > div {
    display: flex;
    gap: .55rem;
}

.live-checkin-event-picker select {
    min-width: 0;
    margin: 0;
    border-color: #cddfda;
    background-color: #fff;
    color: #143f3b;
    font-weight: 700;
}

.live-checkin-event-picker .button-secondary {
    flex: 0 0 auto;
    padding: .72rem 1rem;
    background: #eaf3f0;
    color: #14584f;
    text-decoration: none;
}

.live-checkin-exports {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .6rem;
}

.live-checkin-export-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 42px;
    padding: .65rem .9rem;
    border: 1px solid;
    border-radius: 10px;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .015em;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.live-checkin-export-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .11);
}

.live-checkin-export-link span {
    font-size: 1.08rem;
    line-height: 1;
}

.live-checkin-export-link.docx {
    border-color: #b9ddfc;
    background: #eff8ff;
    color: #175d98;
}

.live-checkin-export-link.pdf {
    border-color: #fecaca;
    background: #fff4f4;
    color: #ba2525;
}

.live-checkin-export-link[aria-disabled='true'] {
    pointer-events: none;
    opacity: .48;
}

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

.live-checkin-stat {
    position: relative;
    min-height: 132px;
    padding: 1.1rem 1.15rem;
    overflow: hidden;
    border: 1px solid #e0e8e6;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .045);
}

.live-checkin-stat::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    content: '';
}

.live-checkin-stat.accent-teal::before { background: linear-gradient(90deg, #0f766e, #2dd4bf); }
.live-checkin-stat.accent-blue::before { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.live-checkin-stat.accent-violet::before { background: linear-gradient(90deg, #7c3aed, #c4b5fd); }
.live-checkin-stat.accent-amber::before { background: linear-gradient(90deg, #d97706, #fbbf24); }

.live-checkin-stat > span,
.live-checkin-stat small {
    display: block;
}

.live-checkin-stat > span {
    color: #657873;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.live-checkin-stat > strong {
    display: block;
    margin-top: .42rem;
    color: #163c39;
    font-size: 2rem;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.live-checkin-stat > strong.live-checkin-latest-time {
    font-size: 1.55rem;
}

.live-checkin-stat small {
    margin-top: .35rem;
    color: #778885;
    font-size: .76rem;
}

.live-checkin-progress {
    width: 100%;
    height: 7px;
    margin-top: .8rem;
    overflow: hidden;
    border-radius: 999px;
    background: #ede9fe;
}

.live-checkin-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    transition: width .45s ease;
}

.live-checkin-list-panel {
    overflow: hidden;
    border: 1px solid #dce8e5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.live-checkin-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid #e5eeeb;
    background: linear-gradient(110deg, #fbfffd, #f5fbfa 70%, #f0fdfa);
}

.live-checkin-list-header p {
    margin: 0 0 .22rem;
    color: #0f766e;
    font-size: .69rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.live-checkin-list-header h2 {
    margin: 0;
    color: #1f3836;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.live-checkin-list-header > div > span {
    display: block;
    margin-top: .28rem;
    color: #758481;
    font-size: .78rem;
}

.live-checkin-live-status {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: .46rem;
    align-items: center;
    flex: 0 0 auto;
    padding: .6rem .75rem;
    border: 1px solid #cbe9dc;
    border-radius: 11px;
    background: #f0fdf7;
}

.live-checkin-live-status strong {
    color: #11735a;
    font-size: .78rem;
}

.live-checkin-live-status small {
    grid-column: 2;
    margin-top: .08rem;
    color: #588177;
    font-size: .68rem;
    white-space: nowrap;
}

.live-checkin-pulse {
    width: .56rem;
    height: .56rem;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 .25rem rgba(16, 185, 129, .15);
    animation: live-checkin-pulse 1.8s ease-in-out infinite;
}

.live-checkin-live-status.is-error {
    border-color: #fecaca;
    background: #fff7f7;
}

.live-checkin-live-status.is-error strong,
.live-checkin-live-status.is-error small {
    color: #b42318;
}

.live-checkin-live-status.is-error .live-checkin-pulse {
    background: #ef4444;
    box-shadow: 0 0 0 .25rem rgba(239, 68, 68, .14);
    animation: none;
}

.live-checkin-table-wrap {
    overflow-x: auto;
}

.live-checkin-table {
    min-width: 960px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.live-checkin-table th,
.live-checkin-table td {
    padding: .9rem 1rem;
    border: 0;
    border-bottom: 1px solid #edf2f0;
    vertical-align: middle;
}

.live-checkin-table th {
    background: #f5f9f8;
    color: #5d706c;
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .075em;
    text-align: left;
    text-transform: uppercase;
}

.live-checkin-table td {
    color: #4b5d59;
    font-size: .82rem;
}

.live-checkin-table tbody tr {
    transition: background-color .18s ease;
}

.live-checkin-table tbody tr:not(.live-checkin-empty-row):hover {
    background: #f5fcf9;
}

.live-checkin-table tbody tr:last-child td {
    border-bottom: 0;
}

.live-checkin-table td:first-child {
    width: 52px;
    color: #78908a;
    font-size: .75rem;
    font-weight: 800;
}

.live-checkin-table td strong,
.live-checkin-table td small {
    display: block;
}

.live-checkin-table td strong {
    color: #263e3a;
    font-size: .84rem;
}

.live-checkin-table td small {
    margin-top: .18rem;
    color: #7b8a87;
    font-size: .73rem;
}

.live-checkin-contact {
    max-width: 220px;
    overflow-wrap: anywhere;
}

.live-checkin-mode {
    display: inline-block;
    max-width: 120px;
    padding: .28rem .52rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e8f6f1;
    color: #14715f;
    font-size: .69rem;
    font-weight: 850;
    letter-spacing: .015em;
    overflow-wrap: anywhere;
    text-align: center;
}

.live-checkin-empty-row td {
    padding: 0;
}

.live-checkin-empty {
    padding: 3.75rem 1.25rem;
    color: #71817e;
    text-align: center;
}

.live-checkin-empty > span {
    display: grid;
    width: 40px;
    height: 40px;
    margin: 0 auto .85rem;
    place-items: center;
    border-radius: 50%;
    background: #e8f8f1;
    color: #168161;
    font-size: 1.05rem;
    font-weight: 900;
}

.live-checkin-empty strong,
.live-checkin-empty p {
    display: block;
}

.live-checkin-empty strong {
    color: #3b5550;
    font-size: .95rem;
}

.live-checkin-empty p {
    margin: .3rem 0 0;
    font-size: .82rem;
}

@keyframes live-checkin-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: .68; }
}

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

@media (max-width: 680px) {
    body.live-checkin-page .admin-card > h1 {
        padding: 1rem;
    }

    .live-checkin-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.25rem;
    }

    .live-checkin-hero-total {
        min-width: 120px;
    }

    .live-checkin-toolbar,
    .live-checkin-list-header {
        align-items: stretch;
        flex-direction: column;
    }

    .live-checkin-event-picker {
        width: 100%;
    }

    .live-checkin-exports {
        justify-content: stretch;
    }

    .live-checkin-export-link {
        flex: 1 1 0;
    }

    .live-checkin-live-status {
        align-self: flex-start;
    }

    .live-checkin-table-wrap {
        overflow: visible;
        background: #f7faf9;
    }

    .live-checkin-table,
    .live-checkin-table tbody,
    .live-checkin-table tr,
    .live-checkin-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .live-checkin-table thead {
        display: none;
    }

    .live-checkin-table tbody {
        padding: .65rem;
    }

    .live-checkin-table tbody tr:not(.live-checkin-empty-row) {
        margin-bottom: .65rem;
        overflow: hidden;
        border: 1px solid #dfeae7;
        border-radius: 12px;
        background: #fff;
    }

    .live-checkin-table td {
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        gap: .8rem;
        padding: .62rem .78rem;
    }

    .live-checkin-table td::before {
        color: #70817d;
        content: attr(data-label);
        font-size: .67rem;
        font-weight: 850;
        letter-spacing: .055em;
        text-transform: uppercase;
    }

    .live-checkin-table td:first-child {
        width: 100%;
    }

    .live-checkin-empty-row td {
        display: block;
        padding: 0;
    }

    .live-checkin-empty-row td::before {
        display: none;
    }
}

@media (max-width: 460px) {
    .live-checkin-content {
        padding: .75rem;
    }

    .live-checkin-event-picker > div {
        align-items: stretch;
        flex-direction: column;
    }

    .live-checkin-summary {
        grid-template-columns: 1fr;
    }

    .live-checkin-table td {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: .5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-checkin-pulse {
        animation: none;
    }

    .live-checkin-export-link,
    .live-checkin-table tbody tr,
    .live-checkin-progress span {
        transition: none;
    }
}
