:root {
    --brand: #ff7e00;
    --brand-2: #ff9a33;
    --brand-soft: #fff4e8;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --bg: #f5f7fb;
    --radius: 1rem;
    --bs-primary: #ff7e00;
    --bs-primary-rgb: 255, 126, 0;
    --bs-link-color: #ff7e00;
    --bs-link-hover-color: #e67100;
    --bs-link-color-rgb: 255, 126, 0;
    --bs-link-hover-color-rgb: 230, 113, 0;
    --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body { font-family: var(--bs-font-sans-serif); color: var(--ink); }

.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: #e67100;
    --bs-btn-hover-border-color: #e67100;
    --bs-btn-active-bg: #cc6400;
    --bs-btn-active-border-color: #cc6400;
    --bs-btn-disabled-bg: var(--brand);
    --bs-btn-disabled-border-color: var(--brand);
}
.btn { border-radius: .7rem; font-weight: 600; }
.btn-gradient {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; border: 0; box-shadow: 0 10px 24px -10px rgba(255, 126, 0, .7);
}
.btn-gradient:hover, .btn-gradient:focus { color: #fff; filter: brightness(1.07); }

.form-control, .form-select { border-radius: .7rem; border-color: var(--line); padding: .7rem .9rem; }
.form-control:focus, .form-select:focus { border-color: #ffbf80; box-shadow: 0 0 0 .25rem rgba(255, 126, 0, .15); }
.form-label { font-weight: 600; font-size: .9rem; color: #334155; margin-bottom: .35rem; }
.form-label .req { color: #e11d48; margin-left: 2px; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { border-color: #ffbf80; box-shadow: 0 0 0 .25rem rgba(255, 126, 0, .15); }

/* ---------- App layout ---------- */
.app-body { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.app-navbar {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    padding: .75rem 0;
}
.navbar-brand { display: flex; align-items: center; gap: .8rem; }
.navbar-logo { height: 40px; width: auto; display: block; }
.brand-sub {
    font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase;
    padding-left: .8rem; border-left: 1px solid var(--line); line-height: 1.2;
}
@media (max-width: 400px) { .brand-sub { display: none; } }
.app-navbar .nav-link { font-weight: 600; color: var(--muted); border-radius: .6rem; padding: .5rem .9rem !important; }
.app-navbar .nav-link:hover { color: var(--ink); background: #f1f5f9; }
.app-navbar .nav-link.active { color: var(--brand); background: var(--brand-soft); }
.avatar {
    width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center;
    background: var(--brand-soft); color: var(--brand); font-weight: 700; text-transform: uppercase;
}
.user-menu { border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem .25rem .25rem; background: #fff; }
.app-navbar .navbar-toggler { width: 44px; height: 44px; border-radius: .7rem; color: var(--ink); font-size: 1.25rem; }
.app-navbar .navbar-toggler:hover { background: var(--brand-soft); color: var(--brand); }
.app-navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255, 126, 0, .2); }
@media (max-width: 991.98px) {
    /* backdrop-filter would make the fixed offcanvas relative to the navbar */
    .app-navbar { backdrop-filter: none; background: #fff; }
    .app-navbar .offcanvas { width: min(320px, 85vw); border-left: 0; box-shadow: -20px 0 40px -20px rgba(15, 23, 42, .3); }
    .app-navbar .offcanvas-header { border-bottom: 1px solid var(--line); padding: 1rem 1.25rem; }
    .app-navbar .offcanvas-body { display: flex; flex-direction: column; padding: 1.25rem; }
    .app-navbar .nav-link { padding: .75rem 1rem !important; }
    .offcanvas-user {
        display: flex; align-items: center; gap: .75rem; padding: .75rem; margin-bottom: 1rem;
        border-radius: .9rem; background: var(--bg);
    }
    .offcanvas-user .avatar { width: 42px; height: 42px; flex-shrink: 0; }
}
.dropdown-menu { border-radius: .8rem; border-color: var(--line); box-shadow: 0 20px 40px -20px rgba(15, 23, 42, .25); }

main { flex: 1; }
.app-footer { color: var(--muted); font-size: .85rem; padding: 1.5rem 0; }

.page-title { font-weight: 800; letter-spacing: -.02em; margin-bottom: .25rem; }
.page-sub { color: var(--muted); }

.card-soft {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -24px rgba(15, 23, 42, .25);
}
.section-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.section-head h2 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.section-icon {
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand); font-size: 1.1rem; flex-shrink: 0;
}

/* ---------- Status ---------- */
.status-badge {
    display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .8rem;
    padding: .35rem .75rem; border-radius: 999px; white-space: nowrap;
}
.status-recibida { background: #e0f2fe; color: #0369a1; }
.status-aprobada { background: #dcfce7; color: #15803d; }
.status-rechazada { background: #ffe4e6; color: #be123c; }
.status-none { background: #f1f5f9; color: #64748b; }

.status-hero { position: relative; overflow: hidden; }
.status-hero::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 154, 51, .15), transparent 70%);
}
.status-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; }
.status-icon.recibida { background: #e0f2fe; color: #0369a1; }
.status-icon.aprobada { background: #dcfce7; color: #15803d; }
.status-icon.rechazada { background: #ffe4e6; color: #be123c; }

.steps { display: flex; gap: .5rem; }
.steps .step { flex: 1; height: 6px; border-radius: 999px; background: #e2e8f0; }
.steps .step.done { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.steps .step.fail { background: #f43f5e; }

/* ---------- Data list ---------- */
.data-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem 1.5rem; }
.data-item dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.data-item dd { margin: .15rem 0 0; font-weight: 600; word-break: break-word; }

.file-chip {
    display: inline-flex; align-items: center; gap: .6rem; padding: .6rem .9rem; border-radius: .8rem;
    border: 1px solid var(--line); background: #f8fafc; color: var(--ink); text-decoration: none; font-weight: 600;
}
.file-chip:hover { border-color: #ffbf80; background: var(--brand-soft); color: var(--brand); }
.file-chip .fa-file-word { color: #2563eb; font-size: 1.4rem; }

/* ---------- Upload ---------- */
.dropzone {
    position: relative; border: 2px dashed #ffd4a8; border-radius: var(--radius); background: #fffaf5;
    padding: 1.75rem 1rem; text-align: center; cursor: pointer; transition: .2s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .fa-solid { font-size: 2rem; color: var(--brand); }
.dropzone .dz-name { font-weight: 700; }
.dropzone.is-invalid { border-color: #e11d48; background: #fff1f2; }

/* ---------- Admin ---------- */
.stat-card { display: block; text-decoration: none; color: inherit; padding: 1.1rem 1.25rem; transition: .15s; }
.stat-card:hover { transform: translateY(-2px); color: inherit; }
.stat-card.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 126, 0, .15); }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.live-count { display: inline-block; transform-origin: center; font-variant-numeric: tabular-nums; }
.live-count-changed { animation: live-value-change .7s cubic-bezier(.2,.8,.2,1); }
@keyframes live-value-change { 0% { transform: scale(1); color: inherit; } 38% { transform: scale(1.2); color: var(--brand); text-shadow: 0 0 14px rgba(255,126,0,.28); } 100% { transform: scale(1); color: inherit; text-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .live-count-changed { animation: none; } }
.stat-card .stat-label { color: var(--muted); font-weight: 600; font-size: .85rem; }
.stat-card .stat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; }

.table-modern { margin: 0; }
.table-modern thead th {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
    background: #f8fafc; border-bottom: 1px solid var(--line); padding: .85rem 1rem; white-space: nowrap;
}
.table-modern td { padding: .9rem 1rem; vertical-align: middle; border-color: #f1f5f9; }
.table-modern tbody tr { cursor: pointer; }
.table-modern tbody tr:hover td { background: #fafbff; }

.status-option { cursor: pointer; }
.status-option input { display: none; }
.status-option .status-badge { width: 100%; justify-content: center; padding: .6rem; border: 2px solid transparent; opacity: .55; }
.status-option input:checked + .status-badge { opacity: 1; border-color: currentColor; }

/* ---------- Auth ---------- */
.auth-body {
    min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem;
    background:
        radial-gradient(900px 500px at 10% 10%, rgba(255, 154, 51, .35), transparent 60%),
        radial-gradient(800px 500px at 90% 90%, rgba(255, 126, 0, .4), transparent 60%),
        #0b1020;
}
.auth-card {
    width: 100%; max-width: 420px; background: rgba(255, 255, 255, .97); border-radius: 1.5rem;
    padding: 2.5rem 2rem; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.auth-brand { text-align: center; margin-bottom: 1.75rem; }
.auth-logo { display: block; width: 100%; max-width: 200px; height: auto; margin: 0 auto .9rem; }
.auth-brand .auth-org { color: var(--ink, #0f172a); font-size: .82rem; letter-spacing: .02em; text-transform: none; font-weight: 700; margin-bottom: .1rem; }
.auth-brand p { color: var(--muted); margin: 0; font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.auth-card .form-floating > .form-control { border-radius: .8rem; }
.auth-card .form-floating > label { color: var(--muted); }
.auth-card .btn-lg { padding: .8rem; border-radius: .8rem; }
.auth-foot { text-align: center; margin-top: 1.5rem; color: var(--muted); font-size: .9rem; }
.auth-foot a { font-weight: 700; text-decoration: none; }
.auth-registration { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.auth-registration > .btn { white-space: normal; font-size: 1rem; }
.auth-registration > .btn:hover { background: var(--brand-soft); border-color: var(--brand) !important; }
.auth-guide { margin-top: 1.5rem; padding: 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: .8rem; }
.auth-guide-steps { padding-left: 1.25rem; margin-bottom: 1rem; font-size: .85rem; }
.auth-guide-steps li + li { margin-top: .65rem; }
@media (max-width: 400px) { .auth-card { padding: 1.75rem 1.25rem; } }
@media (min-width: 992px) {
    .auth-card-wide { max-width: 1100px; padding: 2.5rem 3rem; }
    .auth-card-wide .auth-brand { margin-bottom: 2.5rem; }
    .auth-card-wide .auth-content {
        display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 3rem;
        grid-template-areas: "intro info" "form info" "foot info";
        align-items: start;
    }
    .auth-card-wide .auth-intro { grid-area: intro; }
    .auth-card-wide .auth-content > form { grid-area: form; }
    .auth-card-wide .auth-content > .auth-foot { grid-area: foot; }
    .auth-card-wide .auth-content > .auth-guide { grid-area: info; margin-top: 0; padding: 1.5rem; }
    .auth-card-wide .auth-registration {
        grid-area: info; margin-top: 0; padding: 0 0 0 3rem;
        border-top: 0; border-left: 1px solid var(--line);
    }
    .auth-card-wide .auth-guide-steps { font-size: .95rem; line-height: 1.6; }
    .auth-card-wide .auth-guide-steps li + li { margin-top: 1rem; }
}
.login-page { background: #0b1020; }
.login-page .app-navbar, .login-page .app-footer { display: none; }
.login-page main { display: grid; place-items: center; padding: 0 !important; }
.login-page main > .container { width: 100%; max-width: none; padding: 0; }
.login-page .auth-body { width: 100%; }
.auth-card-wide.login-card { max-width: 620px; }
.login-card .auth-content { display: block; }
.login-card .auth-intro { margin-bottom: 1.5rem; }
.auth-card .form-control:-webkit-autofill,.auth-card .form-control:-webkit-autofill:hover,.auth-card .form-control:-webkit-autofill:focus { -webkit-text-fill-color: #0f172a; box-shadow: 0 0 0 1000px #fff inset; transition: background-color 9999s ease-out; }
.login-password-wrap { position: relative; }
.login-password-wrap .form-control { padding-right: 3.1rem; }
.login-password-toggle { position: absolute; top: 50%; right: .55rem; transform: translateY(-50%); z-index: 3; border: 0; background: transparent; color: #64748b; padding: .5rem; }
.login-back { display: inline-flex; align-items: center; gap: .4rem; color: #64748b; font-size: .84rem; font-weight: 700; text-decoration: none; }
.login-back:hover { color: var(--brand); }
.admin-body { overflow-x: hidden; }
.admin-menu-open { overflow: hidden; }
.admin-layout { display: flex; min-height: calc(100vh - var(--admin-header-height, 64px)); position: relative; padding-left: 252px; }
.admin-sidebar { position: fixed; top: var(--admin-header-height, 64px); bottom: 0; left: 0; z-index: 1020; display: flex; flex: 0 0 252px; flex-direction: column; width: 252px; height: auto; padding: 1.25rem 1rem; border-right: 1px solid var(--line); background: #fff; }
.admin-sidebar-heading { display: grid; gap: .2rem; padding: .2rem .75rem 1.2rem; }
.admin-sidebar-eyebrow { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.admin-sidebar-heading strong { color: var(--ink); font-size: 1rem; }
.admin-sidebar-nav { display: grid; gap: .35rem; min-height: 0; overflow-y: auto; }
.admin-sidebar-nav .nav-link { display: flex; align-items: center; gap: .8rem; padding: .72rem .8rem !important; border-radius: .75rem; color: #475569; font-size: .9rem; font-weight: 650; text-decoration: none; }
.admin-sidebar-nav .nav-link i { width: 1.2rem; color: #94a3b8; text-align: center; }
.admin-sidebar-nav .nav-link:hover { background: #f8fafc; color: var(--ink); }
.admin-sidebar-nav .nav-link:hover i { color: var(--brand); }
.admin-sidebar-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.admin-sidebar-footer .btn { padding: .7rem .8rem; color: #475569; font-weight: 650; }
.admin-main { flex: 1 1 auto; min-width: 0; }
.admin-main > .container-fluid { max-width: none; }
.admin-body > .app-footer { margin-left: 252px; }
.admin-menu-toggle { display: none; }
.admin-sidebar-backdrop { display: none; }
.public-form-body { background: var(--bg); }
.form-view-main { flex: 1; padding: 0; }
.public-form-view { min-height: 100vh; }
.public-form-brand { display: flex; min-height: 84px; align-items: center; justify-content: center; padding: .85rem 1rem; border-bottom: 1px solid var(--line); background: #fff; }
.public-form-logo { display: block; width: min(175px, 58vw); max-height: 58px; object-fit: contain; }
.public-form-content { width: min(980px, 100%); margin: 0 auto; padding: clamp(1rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem); }
.public-form-fields { gap: .9rem !important; }
.public-submit-intro > :first-child { margin-top: 0; }
.public-submit-intro > :last-child { margin-bottom: 0; }
.public-form-legal { display: grid; gap: .35rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: .85rem; background: #f8fafc; }
.public-consent-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .55rem; min-height: 1.7rem; color: #334155; font-size: .9rem; }
.public-consent-row .form-check-input { flex: 0 0 auto; margin: 0 .1rem 0 0; cursor: pointer; }
.public-consent-row label { margin: 0; cursor: pointer; }
.public-consent-link { border: 0; padding: 0; background: transparent; color: var(--brand); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .15em; }
.public-consent-link:hover { color: #c45d00; }
.scanner-page { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.scanner-navbar { display: grid; flex: 0 0 56px; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; min-height: 56px; padding: .5rem .8rem; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1rem; font-weight: 800; text-align: center; }
.scanner-navbar span { grid-column: 2; white-space: nowrap; }
.scanner-logo { grid-column: 1; justify-self: start; display: block; width: 82px; max-height: 28px; object-fit: contain; }
.scanner-logout-form { grid-column: 3; justify-self: end; margin: 0; }
.scanner-logout-form .btn { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border-radius: .65rem; color: #475569; }
.scanner-main { display: flex; flex: 1 1 auto; min-height: 0; width: 100%; padding: .65rem; }
.scanner-shell { display: flex; flex: 1 1 auto; flex-direction: column; gap: .65rem; width: min(100%, 720px); min-height: 0; margin: 0 auto; }
.scanner-place { flex: 0 0 auto; }
.scanner-place .form-label { margin-bottom: .25rem; }
.scanner-place .form-select { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scanner-page .scanner-camera { flex: 1 1 auto; min-height: 0; margin: 0 !important; overflow: hidden; border-radius: 1rem; background: #050505; }
.scanner-page .scanner-camera video { width: 100%; height: 100%; max-height: none !important; object-fit: cover; }
.scanner-controls { display: grid; flex: 0 0 auto; grid-template-columns: 1fr 1fr; gap: .55rem; }
.scanner-controls .btn { min-height: 46px; white-space: nowrap; }
.scanner-empty { display: grid; flex: 1; place-items: center; padding: 1rem; color: var(--muted); text-align: center; }
@media (max-width: 991.98px) {
    .admin-layout { padding-left: 0; }
    .admin-menu-toggle { display: inline-flex; align-items: center; }
    .admin-sidebar { position: fixed; top: var(--admin-header-height, 64px); left: 0; bottom: 0; width: min(290px, 86vw); height: auto; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 18px 0 36px -28px rgba(15,23,42,.55); }
    .admin-body > .app-footer { margin-left: 0; }
    .admin-layout.menu-open .admin-sidebar { transform: translateX(0); }
    .admin-layout.menu-open .admin-sidebar-backdrop { display: block; position: fixed; z-index: 1010; inset: var(--admin-header-height, 64px) 0 0; width: 100%; border: 0; background: rgba(15,23,42,.38); }
}
@media (max-height: 520px) {
    .scanner-navbar { flex-basis: 48px; min-height: 48px; }
    .scanner-main { padding: .4rem; }
    .scanner-shell { gap: .4rem; }
    .scanner-controls .btn { min-height: 40px; padding: .4rem .5rem; }
}
@media (max-width: 600px) {
    .scanner-navbar { flex-basis: 52px; min-height: 52px; }
    .scanner-logo { width: 72px; max-height: 24px; }
    .scanner-main { padding: .5rem; }
    .scanner-shell { gap: .5rem; }
    .scanner-page .scanner-camera { flex: 1 1 auto; height: auto; min-height: 0; }
    .scanner-controls { gap: .45rem; }
    .scanner-controls .btn { min-height: 46px; padding: .45rem .35rem; white-space: normal; line-height: 1.15; }
}
@media (max-width: 600px) and (max-height: 620px) {
    .scanner-page .scanner-camera { flex: 1 1 auto; height: auto; min-height: 0; }
}
@media (max-width: 360px) {
    .scanner-navbar { font-size: .82rem; }
    .scanner-logo { width: 44px; max-height: 18px; }
    .scanner-logout-form .btn { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .admin-sidebar { transition: none; } }
.pw-toggle {
    position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); z-index: 5;
    border: 0; background: transparent; color: var(--muted); padding: .4rem;
}
.form-floating .is-invalid ~ .pw-toggle { right: 2.2rem; }
.auth-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; font-size: 2rem; }

.alert { border-radius: .8rem; border: 0; }
.toast-container { z-index: 1090; }
.response-charts { margin: 1.5rem 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.response-charts-heading { margin-bottom: 1rem; }
.response-charts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.response-chart { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .85rem; background: #fbfcfe; }
.response-chart-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; }
.response-chart-heading h3 { margin: 0; color: var(--ink); font-size: .95rem; font-weight: 700; }
.response-chart-heading > span { flex: 0 0 auto; color: var(--muted); font-size: .72rem; text-align: right; }
.response-chart-row { display: grid; grid-template-columns: minmax(95px, 1.1fr) minmax(60px, 2fr) auto; align-items: center; gap: .65rem; padding: .35rem 0; }
.response-chart-label { min-width: 0; color: var(--ink); font-size: .8rem; line-height: 1.25; overflow-wrap: anywhere; }
.response-chart-track { height: .55rem; overflow: hidden; border-radius: 999px; background: #e9edf3; }
.response-chart-track > span { display: block; height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #ffb15e); }
.response-chart-value { color: var(--ink); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.response-chart-value span { color: var(--muted); font-weight: 500; }
@media (max-width: 767.98px) { .response-charts-grid { grid-template-columns: 1fr; } .response-chart-row { grid-template-columns: minmax(85px, 1fr) minmax(55px, 1.4fr) auto; gap: .45rem; } }
.daily-event-charts { margin-top: 1.5rem; }
.daily-event-charts-title { margin-bottom: 1rem; }
.daily-event-charts-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.daily-event-chart { min-width: 0; padding: 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.daily-event-chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .8rem; }
.daily-event-chart-head h3 { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 700; }
.daily-event-chart-head p { margin: .25rem 0 0; color: var(--muted); font-size: .78rem; }
.daily-event-chart-head > span { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.daily-chart-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .65rem; color: var(--muted); font-size: .75rem; }
.daily-chart-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.daily-chart-legend i { display: inline-block; width: .65rem; height: .65rem; border-radius: 2px; }
.daily-legend-attendees, .daily-bar-attendees { background: var(--brand); }
.daily-legend-repeat, .daily-bar-repeat { background: #ffb15e; }
.daily-chart-scroll { overflow-x: auto; padding-bottom: .35rem; }
.daily-chart { display: flex; align-items: stretch; gap: .3rem; min-width: max-content; min-height: 180px; padding: .25rem .1rem 0; border-bottom: 1px solid var(--line); }
.daily-chart-col { display: flex; flex: 0 0 2rem; flex-direction: column; align-items: center; justify-content: flex-end; }
.daily-chart-count { min-height: 1rem; color: var(--ink); font-size: .68rem; line-height: 1; }
.daily-chart-plot { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 140px; }
.daily-chart-bar { display: flex; flex-direction: column-reverse; width: 1.15rem; min-height: 2px; overflow: hidden; border-radius: .25rem .25rem 0 0; background: #ffb15e; }
.daily-bar-attendees { display: block; width: 100%; }
.daily-bar-repeat { display: block; width: 100%; }
.daily-chart-col time { padding: .3rem 0 .45rem; color: var(--muted); font-size: .63rem; white-space: nowrap; }
@media (max-width: 575.98px) { .daily-event-chart-head { flex-direction: column; gap: .35rem; } }

.credential-logo { display: block; width: 82%; max-height: 52px; height: auto; object-fit: contain; }

.credential-logo-wrap { display: flex; align-items: center; justify-content: center; flex: 0 0 92px; }
.credential-logo-wrap .credential-logo { width: 82%; max-height: 52px; height: auto; object-fit: contain; }
