/* Production Tabler layer. Loaded after app.css and kept build-free for shared PHP hosting. */
:root {
    --app-brand: #00539b;
    --app-brand-dark: #063b6f;
    --app-brand-soft: #eaf3ff;
    --app-accent: #0f8b5f;
    --app-accent-soft: #e7f7ef;
    --app-warning: #b7791f;
    --app-warning-soft: #fff5d6;
    --app-danger: #c2413a;
    --app-danger-soft: #fff0ef;
    --app-info: #2563eb;
    --app-info-soft: #eaf1ff;
    --app-ink: #111827;
    --app-muted: #5f6f86;
    --app-line: #dce5ef;
    --app-surface: #ffffff;
    --app-surface-soft: #f5f8fc;
    --app-sidebar: #0d243d;
    --app-sidebar-soft: #16395f;
    --app-radius: 12px;
    --app-radius-sm: 8px;
    --app-shadow: 0 14px 34px rgba(15, 35, 64, 0.09);
    --app-shadow-soft: 0 8px 22px rgba(15, 35, 64, 0.06);
    --app-z-toast: 2200;
    --app-toast-offset-bottom: calc(env(safe-area-inset-bottom, 0px) + 4.75rem);
    --app-toast-inline-gap: 1rem;
    --app-toast-max-width: 28rem;
    --tblr-primary: var(--app-brand);
    --tblr-primary-rgb: 0, 83, 155;
    --tblr-border-radius: var(--app-radius-sm);
}

/* Programação pública clássica refinada: preserva banner, destaques e linha do tempo. */
body.page-schedule {
    background: #eef2f6;
}

.page-shell--schedule-classic {
    width: min(1360px, calc(100% - 32px));
    max-width: none;
    padding: 16px 0 48px;
    color: #10283d;
}

.page-shell--schedule-classic .schedule-public-header {
    position: sticky;
    top: 10px;
    z-index: 40;
    min-height: 64px;
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid #d9e3ed;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(15, 35, 64, 0.08);
    backdrop-filter: blur(16px);
}

.page-shell--schedule-classic .schedule-header__brand {
    min-width: 210px;
}

.page-shell--schedule-classic .schedule-header__brand .brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.page-shell--schedule-classic .schedule-header__brand strong {
    font-size: 0.95rem;
}

.page-shell--schedule-classic .schedule-header__brand small {
    font-size: 0.72rem;
}

.page-shell--schedule-classic .schedule-header__event {
    max-width: min(480px, 38vw);
    padding: 0 16px;
}

.page-shell--schedule-classic .schedule-header__event > img,
.page-shell--schedule-classic .schedule-header__event > span {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.page-shell--schedule-classic .schedule-header__actions {
    flex: 0 0 auto;
    gap: 7px;
}

.page-shell--schedule-classic .schedule-header__actions .button,
.page-shell--schedule-classic .schedule-admin-link {
    min-height: 38px;
    padding: 0 13px;
    border-radius: 10px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.page-shell--schedule-classic .schedule-admin-link {
    width: 38px;
    padding: 0;
}

.page-shell--schedule-classic .hero-surface--schedule-classic {
    min-height: clamp(290px, 35vw, 450px);
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 18px 42px rgba(15, 35, 64, 0.12);
}

.page-shell--schedule-classic .hero-surface--schedule-classic.hero-surface--schedule-image::before {
    background-position: center;
    background-size: cover;
}

.page-shell--schedule-classic .hero-surface--schedule-classic.hero-surface--schedule-image:has(.hero-copy)::after {
    display: block;
    border: 0;
    background: linear-gradient(90deg, rgba(5, 24, 43, 0.74), rgba(5, 24, 43, 0.16) 62%, transparent);
}

.page-shell--schedule-classic .hero-grid--schedule,
.page-shell--schedule-classic .hero-grid--schedule-image {
    min-height: clamp(242px, 30vw, 402px);
    align-items: end;
}

.page-shell--schedule-classic .hero-copy--schedule {
    max-width: 660px;
    padding: 8px;
}

.page-shell--schedule-classic .hero-copy--schedule h1 {
    max-width: 18ch;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.schedule-classic-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 8px;
}

.schedule-classic-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #53657a;
    font-size: 0.9rem;
    font-weight: 700;
}

.page-shell--schedule-classic .section-block {
    margin-top: 16px;
}

.page-shell--schedule-classic .schedule-classic-featured,
.page-shell--schedule-classic .section-block--timeline-tools,
.page-shell--schedule-classic .schedule-program {
    padding: 20px;
    border: 1px solid #dce5ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 35, 64, 0.06);
}

.schedule-classic-featured__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.schedule-classic-featured__heading h2 {
    margin: 3px 0 0;
    color: #10283d;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.schedule-classic-featured__heading small {
    color: #697b90;
    font-weight: 800;
}

.page-shell--schedule-classic .featured-carousel {
    --carousel-slide-width: clamp(300px, 54%, 660px);
    --carousel-scale-far: 0.94;
    --carousel-scale-near: 0.98;
    --carousel-scale-active: 1;
    contain-intrinsic-size: auto 330px;
}

.page-shell--schedule-classic .featured-carousel__viewport {
    padding-block: 12px 18px;
}

.page-shell--schedule-classic .featured-carousel__slide {
    height: clamp(220px, 24vw, 300px);
    min-height: 220px;
    border-radius: 16px;
    contain-intrinsic-size: auto 280px;
}

.page-shell--schedule-classic .featured-card__media-frame {
    min-height: 220px;
    max-height: 300px;
    border-radius: 16px;
}

.page-shell--schedule-classic .featured-carousel__slide.is-active {
    box-shadow: 0 18px 40px rgba(22, 50, 79, 0.18);
}

.page-shell--schedule-classic .schedule-section-intro {
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e1e8f0;
}

.page-shell--schedule-classic .schedule-section-intro h2 {
    font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.page-shell--schedule-classic .schedule-overview-metrics article {
    min-width: 118px;
    border-radius: 12px;
}

.page-shell--schedule-classic .schedule-filter-toolbar {
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.page-shell--schedule-classic .schedule-filter-form {
    grid-template-columns: minmax(150px, 0.75fr) minmax(150px, 0.75fr) minmax(240px, 1.5fr) auto;
}

.page-shell--schedule-classic .activity-choice-guide {
    min-height: 0;
    padding: 16px 18px;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(15, 35, 64, 0.06);
}

.page-shell--schedule-classic .activity-choice-guide__copy {
    max-width: 820px;
}

.page-shell--schedule-classic .activity-choice-guide h2 {
    margin: 3px 0 5px;
    font-size: 1.2rem;
}

.page-shell--schedule-classic .activity-choice-guide p,
.page-shell--schedule-classic .activity-choice-guide small {
    line-height: 1.45;
}

.page-shell--schedule-classic .activity-bulk-toolbar {
    margin-top: 16px;
    border-radius: 16px;
}

.page-shell--schedule-classic .schedule-program {
    display: grid;
    gap: 14px;
}

.page-shell--schedule-classic .timeline-list--schedule-refined {
    gap: 14px;
}

.page-shell--schedule-classic .timeline-row--schedule-refined {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5ebf2;
}

.page-shell--schedule-classic .timeline-row--schedule-refined:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.page-shell--schedule-classic .timeline-row__time {
    top: 84px;
    padding: 12px 10px;
    border-radius: 14px;
    background: #edf5ff;
    box-shadow: none;
}

.page-shell--schedule-classic .timeline-row__time strong {
    color: #00539b;
    font-size: 1.15rem;
}

.page-shell--schedule-classic .timeline-row__time span {
    display: block;
    margin-top: 3px;
    font-size: 0.72rem;
    line-height: 1.25;
}

.page-shell--schedule-classic .timeline-row__cards {
    gap: 12px;
    content-visibility: visible;
    contain-intrinsic-size: none;
}

.page-shell--schedule-classic .event-card {
    min-height: 0;
    border-radius: 16px;
    background: #fff;
    border-color: color-mix(in srgb, var(--accent) 22%, #dce5ef);
    box-shadow: 0 8px 24px rgba(15, 35, 64, 0.08);
    will-change: auto;
}

.page-shell--schedule-classic .event-card:hover,
.page-shell--schedule-classic .event-card:focus-within,
.page-shell--schedule-classic .event-card.is-expanded {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 42%, #dce5ef);
    box-shadow: 0 14px 32px rgba(15, 35, 64, 0.12);
}

.page-shell--schedule-classic .event-card__media {
    height: 150px;
    min-height: 112px;
    aspect-ratio: auto;
    border-radius: 16px 16px 0 0;
}

.page-shell--schedule-classic .event-card__body {
    gap: 9px;
    padding: 14px;
}

.page-shell--schedule-classic .event-card h3 {
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.page-shell--schedule-classic .event-card__summary,
.page-shell--schedule-classic .event-card__speaker {
    font-size: 0.84rem;
    line-height: 1.42;
}

.page-shell--schedule-classic .event-card__quick-meta {
    gap: 6px;
}

.page-shell--schedule-classic .event-card__quick-meta div {
    padding: 7px 8px;
    border-radius: 9px;
}

.page-shell--schedule-classic .event-card__quick-meta dt {
    font-size: 0.6rem;
}

.page-shell--schedule-classic .event-card__quick-meta dd {
    font-size: 0.78rem;
}

.page-shell--schedule-classic .event-card__expand {
    display: none;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #e4eaf1;
}

.page-shell--schedule-classic .event-card.is-expanded .event-card__expand {
    display: grid;
}

.page-shell--schedule-classic [data-schedule-activity][hidden],
.page-shell--schedule-classic [data-schedule-shift][hidden],
.page-shell--schedule-classic [data-schedule-search-empty][hidden] {
    display: none !important;
}

html[data-theme="dark"] .page-shell--schedule-classic .schedule-public-header,
html[data-theme="dark"] .page-shell--schedule-classic .schedule-classic-featured,
html[data-theme="dark"] .page-shell--schedule-classic .section-block--timeline-tools,
html[data-theme="dark"] .page-shell--schedule-classic .schedule-program,
html[data-theme="dark"] .page-shell--schedule-classic .event-card {
    background: #102237;
    border-color: #29415b;
}

html[data-theme="dark"] .page-shell--schedule-classic .timeline-row__time {
    background: #163451;
    border-color: #2b4b69;
}

html[data-theme="dark"] .schedule-classic-featured__heading h2 {
    color: #f5f8fc;
}

@media (max-width: 1050px) {
    .page-shell--schedule-classic .schedule-header__event {
        display: none;
    }

    .page-shell--schedule-classic .schedule-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-shell--schedule-classic .schedule-filter-field--search,
    .page-shell--schedule-classic .schedule-filter-actions {
        grid-column: auto;
    }
}

@media (max-width: 820px) {
    .page-shell--schedule-classic {
        width: min(100% - 24px, 1360px);
        padding-top: 12px;
    }

    .page-shell--schedule-classic .schedule-public-header {
        position: relative;
        top: auto;
    }

    .page-shell--schedule-classic .hero-surface--schedule-classic {
        min-height: 300px;
        padding: 18px;
    }

    .page-shell--schedule-classic .hero-grid--schedule,
    .page-shell--schedule-classic .hero-grid--schedule-image {
        min-height: 264px;
    }

    .page-shell--schedule-classic .featured-carousel {
        --carousel-slide-width: min(86%, 560px);
    }

    .page-shell--schedule-classic .timeline-row--schedule-refined {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .page-shell--schedule-classic .timeline-row__time {
        position: static;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 12px;
    }

    .page-shell--schedule-classic .timeline-row__time span {
        margin-top: 0;
    }

    .page-shell--schedule-classic .timeline-row__cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .page-shell--schedule-classic .schedule-public-header {
        display: grid;
        grid-template-columns: 1fr auto;
        min-height: 0;
    }

    .page-shell--schedule-classic .schedule-header__brand {
        min-width: 0;
    }

    .page-shell--schedule-classic .schedule-header__actions > .button--ghost,
    .page-shell--schedule-classic .schedule-admin-link {
        display: none;
    }

    .page-shell--schedule-classic .schedule-header__actions .button--primary {
        min-height: 44px;
    }

    .page-shell--schedule-classic .hero-surface--schedule-classic {
        min-height: 250px;
        border-radius: 16px;
    }

    .page-shell--schedule-classic .hero-grid--schedule,
    .page-shell--schedule-classic .hero-grid--schedule-image {
        min-height: 214px;
    }

    .page-shell--schedule-classic .hero-copy--schedule h1 {
        font-size: 1.75rem;
    }

    .page-shell--schedule-classic .schedule-classic-featured,
    .page-shell--schedule-classic .section-block--timeline-tools,
    .page-shell--schedule-classic .schedule-program {
        padding: 14px;
        border-radius: 16px;
    }

    .schedule-classic-featured__heading {
        align-items: flex-start;
    }

    .schedule-classic-featured__heading small {
        display: none;
    }

    .page-shell--schedule-classic .featured-carousel {
        --carousel-slide-width: 92%;
    }

    .page-shell--schedule-classic .featured-card__media-frame {
        min-height: 178px;
        max-height: 230px;
    }

    .page-shell--schedule-classic .schedule-filter-form {
        grid-template-columns: 1fr;
    }

    .page-shell--schedule-classic .schedule-filter-actions,
    .page-shell--schedule-classic .schedule-filter-actions .button {
        width: 100%;
    }

    .page-shell--schedule-classic .schedule-overview-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .page-shell--schedule-classic .schedule-overview-metrics article:last-child {
        grid-column: 1 / -1;
    }

    .page-shell--schedule-classic .event-card__media {
        height: 118px;
        min-height: 96px;
    }

    .page-shell--schedule-classic .event-card__quick-meta {
        grid-template-columns: 1fr 1fr;
    }

    .page-shell--schedule-classic .event-card__quick-meta div:last-child {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-shell--schedule-classic .featured-carousel__slide,
    .page-shell--schedule-classic .event-card,
    .page-shell--schedule-classic .schedule-activity-toggle i {
        transition: none;
    }
}

/* Quadro público 2026: agenda compacta inspirada em plataformas de eventos. */
body.page-schedule {
    background: #eef2f6;
}

.page-shell--schedule-redesign {
    width: min(100%, 1600px);
    max-width: none;
    margin: 0 auto;
    padding: 0 24px 40px;
    color: #10283d;
}

.page-shell--schedule-redesign .schedule-public-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: auto minmax(240px, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 72px;
    padding: 10px 0;
    border-bottom: 1px solid #dbe3eb;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.page-shell--schedule-redesign .schedule-header__brand {
    min-width: 164px;
    padding-right: 18px;
    border-right: 1px solid #dbe3eb;
}

.page-shell--schedule-redesign .schedule-header__brand .brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    box-shadow: none;
}

.page-shell--schedule-redesign .schedule-header__brand strong {
    color: #07558d;
    font-size: 1rem;
}

.page-shell--schedule-redesign .schedule-header__brand small {
    color: #607286;
    letter-spacing: 0;
}

.schedule-header__event {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.schedule-header__event > img,
.schedule-header__event > span {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #dbe3eb;
    border-radius: 9px;
    background: #e9f4ff;
    object-fit: cover;
}

.schedule-header__event > div {
    min-width: 0;
}

.schedule-header__event strong,
.schedule-header__event small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.schedule-header__event strong {
    color: #10283d;
    font-size: 0.94rem;
}

.schedule-header__event small {
    color: #607286;
    font-size: 0.78rem;
}

.page-shell--schedule-redesign .schedule-header__actions {
    gap: 8px;
}

.page-shell--schedule-redesign .schedule-header__actions .button {
    min-height: 40px;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    box-shadow: none;
}

.page-shell--schedule-redesign .schedule-admin-link {
    width: 40px;
    min-width: 40px;
    padding: 0;
}

.schedule-event-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: 20px;
    padding: 22px;
    border: 1px solid #dbe3eb;
    border-radius: 12px;
    background: #ffffff;
}

.schedule-event-overview--with-art {
    grid-template-columns: minmax(300px, 1fr) minmax(190px, 280px) auto;
}

.schedule-event-overview__copy {
    min-width: 0;
}

.schedule-event-overview__copy .eyebrow,
.schedule-section-intro .eyebrow {
    color: #0874c9;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.schedule-event-overview__copy h1 {
    margin: 4px 0 5px;
    color: #10283d;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.1;
}

.schedule-event-overview__copy > p {
    max-width: 62ch;
    margin: 0;
    color: #607286;
    line-height: 1.5;
}

.schedule-event-overview__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 13px;
    color: #40566b;
    font-size: 0.84rem;
}

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

.schedule-event-overview__art {
    overflow: hidden;
    height: 132px;
    border: 1px solid #dbe3eb;
    border-radius: 10px;
    background: #f7f9fb;
}

.schedule-event-overview__art picture,
.schedule-event-overview__art img {
    display: block;
    width: 100%;
    height: 100%;
}

.schedule-event-overview__art img {
    padding: 8px;
    object-fit: contain;
}

.schedule-event-overview__actions {
    display: grid;
    min-width: 190px;
    gap: 8px;
}

.schedule-event-overview__actions .button {
    min-height: 42px;
    justify-content: center;
    border-radius: 8px;
    box-shadow: none;
}

.page-shell--schedule-redesign .section-block--timeline-tools {
    margin-top: 18px;
}

.schedule-section-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.schedule-section-intro h2 {
    margin: 3px 0 2px;
    color: #10283d;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
}

.schedule-section-intro p {
    margin: 0;
    color: #607286;
}

.schedule-overview-metrics {
    display: flex;
    gap: 8px;
}

.schedule-overview-metrics article {
    display: flex;
    min-width: 118px;
    min-height: 56px;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 1px solid #dbe3eb;
    border-radius: 9px;
    background: #ffffff;
}

.schedule-overview-metrics article > i {
    color: #0874c9;
    font-size: 1.15rem;
}

.schedule-overview-metrics strong,
.schedule-overview-metrics small {
    display: block;
}

.schedule-overview-metrics strong {
    color: #10283d;
    font-size: 1.05rem;
    line-height: 1;
}

.schedule-overview-metrics small {
    margin-top: 3px;
    color: #607286;
    font-size: 0.72rem;
}

.page-shell--schedule-redesign .schedule-filter-toolbar {
    padding: 12px;
    border: 1px solid #dbe3eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: none;
    content-visibility: visible;
    contain-intrinsic-size: auto;
}

.schedule-filter-form {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) minmax(150px, 0.7fr) minmax(220px, 1.4fr) auto;
    gap: 10px;
    align-items: end;
}

.schedule-filter-field {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.schedule-filter-field > span:first-child {
    color: #40566b;
    font-size: 0.72rem;
    font-weight: 800;
}

.schedule-filter-field select,
.schedule-search-control {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cfd9e2;
    border-radius: 8px;
    color: #10283d;
    background: #ffffff;
}

.schedule-filter-field select {
    padding: 0.55rem 2rem 0.55rem 0.7rem;
}

.schedule-search-control {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
}

.schedule-search-control > i {
    color: #607286;
}

.schedule-search-control input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0;
    border: 0;
    outline: 0;
    color: #10283d;
    background: transparent;
}

.schedule-filter-actions {
    display: flex;
    gap: 7px;
}

.schedule-filter-actions .button {
    min-height: 42px;
    border-radius: 8px;
    box-shadow: none;
}

.page-shell--schedule-redesign .activity-choice-guide {
    display: flex;
    align-items: center;
    grid-template-columns: none;
    gap: 16px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #cfe0ed;
    border-radius: 10px;
    background: #f7fbff;
    box-shadow: none;
}

.page-shell--schedule-redesign .activity-choice-guide__copy {
    min-width: 0;
}

.page-shell--schedule-redesign .activity-choice-guide h2 {
    margin: 2px 0;
    color: #10283d;
    font-size: 1rem;
}

.page-shell--schedule-redesign .activity-choice-guide p,
.page-shell--schedule-redesign .activity-choice-guide small {
    margin: 0;
    color: #607286;
    line-height: 1.4;
}

.page-shell--schedule-redesign .activity-choice-guide small {
    display: block;
    margin-top: 3px;
    font-size: 0.74rem;
}

.page-shell--schedule-redesign .activity-choice-guide__cta {
    flex: 0 0 auto;
    margin-left: auto;
    border-radius: 8px;
    box-shadow: none;
}

.page-shell--schedule-redesign .activity-bulk-toolbar {
    border: 1px solid #cfd9e2;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(16, 40, 61, 0.1);
}

.page-shell--schedule-redesign .schedule-program {
    margin-top: 14px;
}

.schedule-program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.schedule-program-grid[data-visible-shifts="1"] {
    grid-template-columns: minmax(0, 520px);
}

.schedule-program-grid[data-visible-shifts="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schedule-shift-column {
    min-width: 0;
    padding: 10px;
    border: 1px solid #dbe3eb;
    border-radius: 10px;
    background: #ffffff;
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

.schedule-shift-column[hidden] {
    display: none;
}

.schedule-shift-column__header {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    min-height: 42px;
    padding: 0 2px 9px;
    border-bottom: 1px solid #e3e9ef;
}

.schedule-shift-column__header > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 8px;
    color: #0874c9;
    background: #e9f4ff;
}

.schedule-shift-column__header strong,
.schedule-shift-column__header small {
    display: block;
}

.schedule-shift-column__header strong {
    color: #10283d;
    font-size: 0.96rem;
}

.schedule-shift-column__header small,
.schedule-shift-column__header em {
    color: #607286;
    font-size: 0.7rem;
    font-style: normal;
}

.schedule-shift-cards {
    display: grid;
    gap: 8px;
    padding-top: 8px;
}

.page-shell--schedule-redesign .event-card {
    display: block;
    min-height: 0;
    height: auto;
    overflow: hidden;
    border: 1px solid #dbe3eb;
    border-left: 3px solid var(--accent, #0f766e);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
    opacity: 1;
    transform: none;
    transition: border-color 160ms ease, background-color 160ms ease;
    will-change: auto;
}

.page-shell--schedule-redesign .event-card:hover,
.page-shell--schedule-redesign .event-card:focus-within,
.page-shell--schedule-redesign .event-card.is-expanded {
    border-color: #9fc9e8;
    border-left-color: var(--accent, #0f766e);
    background: #fbfdff;
}

.page-shell--schedule-redesign .event-card__media {
    min-height: 0;
    aspect-ratio: auto;
    overflow: visible;
    border-radius: 0;
    background: transparent;
}

.page-shell--schedule-redesign .event-card__media::before,
.page-shell--schedule-redesign .event-card__media::after {
    display: none;
}

.page-shell--schedule-redesign .event-card__media-top {
    display: flex;
    gap: 5px;
    justify-content: flex-start;
    padding: 9px 10px 0;
}

.page-shell--schedule-redesign .status-pill {
    min-height: 22px;
    padding: 0.2rem 0.45rem;
    border-radius: 5px;
    box-shadow: none;
    font-size: 0.65rem;
}

.page-shell--schedule-redesign .event-card__body {
    display: block;
    height: auto;
    padding: 9px 10px 10px;
}

.page-shell--schedule-redesign .event-card__summary-block {
    gap: 6px;
}

.page-shell--schedule-redesign .event-card__summary-head {
    display: block;
}

.page-shell--schedule-redesign .event-card h3 {
    margin: 0;
    color: #10283d;
    font-size: 0.98rem;
    line-height: 1.28;
}

.page-shell--schedule-redesign .room-pill--inline {
    display: none;
}

.page-shell--schedule-redesign .event-card__speaker {
    margin: 0;
    color: #40566b;
    font-size: 0.78rem;
}

.page-shell--schedule-redesign .event-card__summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #607286;
    font-size: 0.76rem;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.page-shell--schedule-redesign .event-card__quick-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.page-shell--schedule-redesign .event-card__quick-meta div {
    padding: 6px;
    border: 0;
    border-radius: 6px;
    background: #f3f6f9;
}

.page-shell--schedule-redesign .event-card__quick-meta dt {
    color: #718194;
    font-size: 0.58rem;
    letter-spacing: 0.05em;
}

.page-shell--schedule-redesign .event-card__quick-meta dd {
    color: #203b52;
    font-size: 0.72rem;
}

.schedule-activity-toggle {
    display: flex;
    width: 100%;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
    padding: 6px 0 0;
    border: 0;
    border-top: 1px solid #e3e9ef;
    color: #075f9f;
    background: transparent;
    font-weight: 800;
    text-align: left;
}

.schedule-activity-toggle i {
    transition: transform 160ms ease;
}

.event-card.is-expanded .schedule-activity-toggle i {
    transform: rotate(180deg);
}

.page-shell--schedule-redesign .event-card__expand {
    display: none;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid #e3e9ef;
}

.page-shell--schedule-redesign .event-card.is-expanded .event-card__expand {
    display: grid;
}

.page-shell--schedule-redesign .event-card__expand-inner {
    display: grid;
    gap: 8px;
    opacity: 1;
    transform: none;
}

.page-shell--schedule-redesign .event-card__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.page-shell--schedule-redesign .event-card__fact {
    padding: 7px;
    border: 1px solid #dbe3eb;
    border-radius: 7px;
    background: #f7f9fb;
}

.page-shell--schedule-redesign .event-card__fact span {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
}

.page-shell--schedule-redesign .event-card__fact strong {
    font-size: 0.78rem;
}

.page-shell--schedule-redesign .activity-capacity-panel,
.page-shell--schedule-redesign .public-activity-state,
.page-shell--schedule-redesign .attention-note {
    padding: 8px;
    border-radius: 7px;
    box-shadow: none;
}

.page-shell--schedule-redesign .activity-capacity-panel__facts {
    gap: 5px;
}

.page-shell--schedule-redesign .card-cta-link,
.page-shell--schedule-redesign .activity-selection-control {
    min-height: 42px;
    border-radius: 7px;
    box-shadow: none;
}

.schedule-search-empty {
    margin: 14px 0 0;
    padding: 18px;
    border: 1px dashed #b9c7d3;
    border-radius: 9px;
    color: #607286;
    background: #ffffff;
    text-align: center;
}

.schedule-search-empty[hidden],
.page-shell--schedule-redesign [data-schedule-activity][hidden] {
    display: none;
}

html[data-theme="dark"] body.page-schedule {
    background: #071725;
}

html[data-theme="dark"] .page-shell--schedule-redesign {
    color: #e7eef5;
}

html[data-theme="dark"] .page-shell--schedule-redesign .schedule-public-header,
html[data-theme="dark"] .schedule-event-overview,
html[data-theme="dark"] .schedule-overview-metrics article,
html[data-theme="dark"] .page-shell--schedule-redesign .schedule-filter-toolbar,
html[data-theme="dark"] .schedule-shift-column,
html[data-theme="dark"] .page-shell--schedule-redesign .event-card,
html[data-theme="dark"] .page-shell--schedule-redesign .activity-bulk-toolbar,
html[data-theme="dark"] .schedule-search-empty {
    border-color: #264257;
    background: #0b2031;
}

html[data-theme="dark"] .schedule-event-overview__copy h1,
html[data-theme="dark"] .schedule-section-intro h2,
html[data-theme="dark"] .schedule-overview-metrics strong,
html[data-theme="dark"] .schedule-shift-column__header strong,
html[data-theme="dark"] .page-shell--schedule-redesign .event-card h3,
html[data-theme="dark"] .schedule-header__event strong {
    color: #f2f6fa;
}

html[data-theme="dark"] .schedule-event-overview__copy > p,
html[data-theme="dark"] .schedule-section-intro p,
html[data-theme="dark"] .schedule-overview-metrics small,
html[data-theme="dark"] .schedule-header__event small,
html[data-theme="dark"] .schedule-shift-column__header small,
html[data-theme="dark"] .schedule-shift-column__header em,
html[data-theme="dark"] .page-shell--schedule-redesign .event-card__speaker,
html[data-theme="dark"] .page-shell--schedule-redesign .event-card__summary {
    color: #9fb2c1;
}

html[data-theme="dark"] .schedule-filter-field select,
html[data-theme="dark"] .schedule-search-control,
html[data-theme="dark"] .schedule-search-control input {
    border-color: #355166;
    color: #edf4f8;
    background: #102a3d;
}

html[data-theme="dark"] .page-shell--schedule-redesign .event-card__quick-meta div,
html[data-theme="dark"] .page-shell--schedule-redesign .event-card__fact {
    border-color: #29465b;
    background: #102a3d;
}

html[data-theme="dark"] .page-shell--schedule-redesign .event-card__quick-meta dd {
    color: #dbe8f1;
}

@media (max-width: 1120px) {
    .schedule-event-overview--with-art {
        grid-template-columns: minmax(300px, 1fr) minmax(180px, 240px);
    }

    .schedule-event-overview__actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, max-content));
    }

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

    .schedule-shift-column:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .page-shell--schedule-redesign {
        padding-inline: 16px;
    }

    .page-shell--schedule-redesign .schedule-public-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .schedule-header__event {
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 9px 0 0;
        border-top: 1px solid #dbe3eb;
    }

    .page-shell--schedule-redesign .schedule-header__actions {
        grid-column: 2;
        grid-row: 1;
    }

    .schedule-section-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .schedule-overview-metrics {
        width: 100%;
    }

    .schedule-overview-metrics article {
        flex: 1 1 0;
    }

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

    .schedule-filter-field--search {
        grid-column: 1 / -1;
    }

    .schedule-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 767px) {
    .page-shell--schedule-redesign {
        padding: 0 12px 28px;
    }

    .page-shell--schedule-redesign .schedule-public-header {
        position: relative;
        gap: 10px;
        min-height: 64px;
        backdrop-filter: none;
    }

    .page-shell--schedule-redesign .schedule-header__brand {
        min-width: 0;
        padding-right: 0;
        border-right: 0;
    }

    .page-shell--schedule-redesign .schedule-header__brand small,
    .page-shell--schedule-redesign .schedule-header__actions > .button--ghost,
    .page-shell--schedule-redesign .schedule-admin-link {
        display: none;
    }

    .page-shell--schedule-redesign .schedule-header__actions .button--primary {
        min-width: 0;
    }

    .schedule-header__event {
        padding-bottom: 2px;
    }

    .schedule-header__event strong {
        white-space: normal;
        line-height: 1.25;
    }

    .schedule-event-overview,
    .schedule-event-overview--with-art {
        grid-template-columns: 1fr;
        gap: 13px;
        margin-top: 12px;
        padding: 16px;
    }

    .schedule-event-overview__art {
        grid-row: 1;
        height: 120px;
    }

    .schedule-event-overview__actions {
        grid-column: auto;
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .schedule-section-intro {
        gap: 12px;
    }

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

    .schedule-overview-metrics article {
        min-width: 0;
    }

    .schedule-overview-metrics article:last-child {
        grid-column: 1 / -1;
    }

    .schedule-filter-form {
        grid-template-columns: 1fr;
    }

    .schedule-filter-field--search,
    .schedule-filter-actions {
        grid-column: auto;
    }

    .schedule-filter-actions .button {
        flex: 1 1 0;
    }

    .page-shell--schedule-redesign .activity-choice-guide {
        align-items: stretch;
        flex-direction: column;
    }

    .page-shell--schedule-redesign .activity-choice-guide__cta {
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }

    .schedule-program-grid {
        grid-template-columns: 1fr;
    }

    .schedule-shift-column:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .schedule-shift-column {
        padding: 9px;
        content-visibility: visible;
        contain-intrinsic-size: auto;
    }

    .page-shell--schedule-redesign .event-card__summary {
        -webkit-line-clamp: 3;
    }

    .page-shell--schedule-redesign .activity-bulk-toolbar {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .schedule-activity-toggle i,
    .page-shell--schedule-redesign .event-card {
        transition: none;
    }
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

body.app-tabler {
    min-height: 100vh;
    background: var(--app-surface-soft);
    color: var(--app-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body.app-tabler.page-public-home {
    background: #e9edf2;
}

.app-tabler *,
.app-tabler *::before,
.app-tabler *::after {
    letter-spacing: 0;
}

.app-tabler a {
    color: var(--app-brand);
}

.app-tabler a:hover {
    color: var(--app-brand-dark);
}

/* Evita que o hover global de links sobreponha a cor do texto de botões e links estilizados */
.app-tabler a.button,
.app-tabler a[class*="button--"],
.app-tabler a.btn,
.app-tabler a[class*="btn-"],
.app-tabler a.public-nav__cta,
.app-tabler a.card-cta-link,
.app-tabler a.admin-primary-button,
.app-tabler a.admin-ghost-button,
.app-tabler a.admin-danger-button {
    color: inherit;
}

.app-tabler :focus-visible {
    outline: 3px solid rgba(0, 83, 155, 0.28);
    outline-offset: 3px;
}

.app-tabler .ti {
    width: 1.1rem;
    height: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1.1rem;
    line-height: 1;
}

.button,
.admin-primary-button,
.admin-ghost-button,
.admin-export-button,
.admin-danger-button,
.admin-table-link,
.public-nav__cta,
.public-header__actions a,
.public-header__actions button,
.checkin-operation__nav a,
.checkin-operation__nav button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: var(--app-radius-sm);
    border: 1px solid transparent;
    padding: 0.62rem 0.95rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.button:hover,
.admin-primary-button:hover,
.admin-ghost-button:hover,
.admin-export-button:hover,
.admin-danger-button:hover,
.admin-table-link:hover,
.public-nav__cta:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.button[disabled],
.button:disabled,
.admin-primary-button[disabled],
.admin-ghost-button[disabled],
.admin-export-button[disabled],
.admin-danger-button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.button--primary,
.admin-primary-button,
.public-nav__cta {
    background: var(--app-brand);
    border-color: var(--app-brand);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 83, 155, 0.18);
}

.button--primary:hover,
.admin-primary-button:hover,
.public-nav__cta:hover {
    background: var(--app-brand-dark);
    border-color: var(--app-brand-dark);
    color: #ffffff;
}

.button--ghost,
.button--secondary,
.admin-ghost-button,
.admin-table-link,
.public-header__actions a:not(.public-nav__cta),
.public-header__actions button {
    background: #ffffff;
    border-color: var(--app-line);
    color: var(--app-brand);
    box-shadow: none;
}

.button--ghost:hover,
.button--secondary:hover,
.admin-ghost-button:hover,
.admin-table-link:hover,
.public-header__actions a:not(.public-nav__cta):hover,
.public-header__actions button:hover {
    background: var(--app-brand-soft);
    border-color: #b9d4f2;
    color: var(--app-brand-dark);
}

.button--danger,
.admin-danger-button,
.is-danger {
    background: var(--app-danger);
    border-color: var(--app-danger);
    color: #ffffff;
}

.button--danger:hover,
.admin-danger-button:hover,
.is-danger:hover {
    background: #9f2f2b;
    border-color: #9f2f2b;
    color: #ffffff;
}

.admin-export-button {
    background: var(--app-accent-soft);
    border-color: #b7e4cd;
    color: #087044;
}

.admin-export-button:hover {
    background: #d6f0e2;
    color: #075f3c;
}

.button--full {
    width: 100%;
}

.flash-stack {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.flash,
.public-alert,
.admin-event-config-alerts p,
.checkin-operation-feedback {
    border-radius: var(--app-radius);
    border: 1px solid var(--app-line);
    background: #ffffff;
    box-shadow: var(--app-shadow-soft);
}

.flash {
    padding: 0.85rem 1rem;
    color: var(--app-ink);
    font-weight: 700;
}

.flash--success,
.public-alert--success {
    border-color: #b7e4cd;
    background: var(--app-accent-soft);
    color: #075f3c;
}

.flash--error,
.flash--danger {
    border-color: #f1bbb7;
    background: var(--app-danger-soft);
    color: #922b27;
}

.flash--warning,
.public-alert--warning {
    border-color: #f2d38a;
    background: var(--app-warning-soft);
    color: #7a4b08;
}

.flash--info,
.public-alert--blue {
    border-color: #bfd6ff;
    background: var(--app-info-soft);
    color: #174ea6;
}

.flash,
.operation-feedback p {
    transition: opacity 180ms ease, transform 180ms ease;
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.flash__message {
    min-width: 0;
    flex: 1;
}

.flash__dismiss {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    place-items: center;
    margin: -0.35rem -0.45rem -0.35rem 0;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0.72;
}

.flash__dismiss:hover {
    background: rgba(15, 42, 68, 0.08);
    opacity: 1;
}

.flash__dismiss:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    opacity: 1;
}

.flash.is-dismissing,
.operation-feedback p.is-dismissing {
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .flash,
    .operation-feedback p {
        transition: none;
    }
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(220, 229, 239, 0.92);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(15, 35, 64, 0.05);
}

.public-header__inner {
    min-height: 72px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
}

@media (max-width: 991.98px) {
    .public-header .public-header__inner {
        width: calc(100% - 32px);
        min-height: 64px;
        gap: 12px;
    }

    .public-header .public-brand {
        min-width: 0;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .public-header .public-brand > span:last-child { min-width: 0; }
    .public-header .public-brand strong { font-size: clamp(14px, 3.6vw, 17px); }
    .public-header .public-brand small { font-size: 11px; }
    .public-header__toggle { flex: 0 0 44px; }
    .public-header .public-header__menu {
        inset: 100% 0 auto;
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
    }

    .public-header .public-nav a,
    .public-header .public-header__actions a,
    .public-header .public-header__actions button { min-height: 44px; }
}

@media (max-width: 340px) {
    .public-footer .public-footer__inner { grid-template-columns: minmax(0, 1fr); }
}

.public-brand {
    color: var(--app-ink);
    text-decoration: none;
}

.public-brand:hover {
    color: var(--app-ink);
}

.public-brand__mark,
.admin-sidebar-brand > span,
.checkin-operation__brand > span,
.checkin-operation__user > span,
.certificate-print__brand > span {
    width: 42px;
    height: 42px;
    border-radius: var(--app-radius-sm);
    background: linear-gradient(135deg, var(--app-brand), var(--app-accent));
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 83, 155, 0.2);
}

.public-brand strong,
.admin-sidebar-brand strong {
    color: var(--app-ink);
    font-weight: 850;
}

.public-brand small,
.admin-sidebar-brand small,
.public-event-card p,
.event-summary-card p,
.public-detail-main p,
.registration-panel p,
.account-card p,
.admin-card-header p,
.admin-page-title p {
    color: var(--app-muted);
}

.public-nav {
    gap: 0.25rem;
}

.public-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    border-radius: var(--app-radius-sm);
    padding: 0.55rem 0.72rem;
    color: #44546a;
    font-weight: 750;
    text-decoration: none;
}

.public-nav a:hover,
.public-nav a.is-active {
    background: var(--app-brand-soft);
    color: var(--app-brand);
}

.public-header__toggle {
    width: 44px;
    height: 44px;
    border-radius: var(--app-radius-sm);
    border: 1px solid var(--app-line);
    background: #ffffff;
}

.public-user-menu summary {
    min-height: 42px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-sm);
    background: #ffffff;
    box-shadow: var(--app-shadow-soft);
}

.public-user-menu__avatar,
.admin-user-avatar,
.account-sidebar__profile > span {
    border-radius: var(--app-radius-sm);
    background: var(--app-brand-soft);
    color: var(--app-brand);
    font-weight: 850;
}

.public-user-menu__panel {
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius);
    background: #ffffff;
    box-shadow: var(--app-shadow);
}

.public-footer {
    background:
        linear-gradient(
            180deg,
            rgba(0, 69, 127, 0.6) 0%,
            rgba(0, 69, 127, 0.86) 54%,
            #00345f 100%
        ),
        #0d243d;
    color: #d7e4f2;
}

.public-footer a,
body.app-tabler .public-footer a,
.app-tabler .public-footer a {
    color: #eef6ff !important;
    transition: color 160ms ease, opacity 160ms ease;
}

.public-footer a:hover,
.public-footer a:focus-visible,
body.app-tabler .public-footer a:hover,
body.app-tabler .public-footer a:focus-visible,
.app-tabler .public-footer a:hover,
.app-tabler .public-footer a:focus-visible,
.public-footer__contact a:hover,
.public-footer__contact a:focus-visible,
body.app-tabler .public-footer__contact a:hover,
body.app-tabler .public-footer__contact a:focus-visible,
.public-footer nav a:hover,
.public-footer nav a:focus-visible,
body.app-tabler .public-footer nav a:hover,
body.app-tabler .public-footer nav a:focus-visible,
.public-footer__bottom a:hover,
.public-footer__bottom a:focus-visible,
body.app-tabler .public-footer__bottom a:hover,
body.app-tabler .public-footer__bottom a:focus-visible {
    color: #ffffff !important;
    text-decoration: underline;
}

.public-footer__contact a,
body.app-tabler .public-footer__contact a {
    color: #eef6ff !important;
}

.public-footer__contact a:hover,
body.app-tabler .public-footer__contact a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

body.app-tabler .public-brand--footer,
body.app-tabler .public-brand--footer:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

body.app-tabler .public-brand--footer strong {
    color: #ffffff;
}

body.app-tabler .public-brand--footer small {
    color: #b9cce0;
}

.public-footer__bottom {
    border-top-color: rgba(255, 255, 255, 0.12);
    color: #a8bdd4;
}

.public-footer__bottom a,
body.app-tabler .public-footer__bottom a {
    color: #a8bdd4 !important;
}

.public-footer__bottom a:hover,
body.app-tabler .public-footer__bottom a:hover {
    color: #ffffff !important;
}

.home-page,
.public-page,
.registration-shell,
.account-shell {
    background: var(--app-surface-soft);
}

body.app-tabler.page-public-home .home-page {
    background: #e9edf2;
}

.public-detail-layout,
.account-main,
.registration-shell,
.certificate-validation-card {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.public-section-heading,
.admin-card-header,
.admin-table-toolbar,
.account-messages-card__heading,
.account-agenda-card__heading {
    gap: 1rem;
}

.public-section-heading h2,
.public-copy-block h2,
.registration-panel h2,
.account-card h2,
.admin-card-header h2,
.admin-page-title h1 {
    color: var(--app-ink);
    line-height: 1.08;
    letter-spacing: 0;
}

.eyebrow,
.admin-section-kicker,
.public-event-meta dt,
.public-info-grid span,
.admin-table th,
.admin-card-header small,
.account-metrics span {
    color: #5d6b80;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.public-event-banner {
    border-radius: 0 0 24px 24px;
}

.public-event-banner {
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 16 / 9;
    display: grid;
    align-items: end;
    padding: 0;
    background: var(--app-brand);
    color: #ffffff;
}

.public-event-card,
.public-detail-main,
.event-summary-card,
.registration-panel,
.registration-ticket,
.account-card,
.public-filter-card,
.public-empty-state,
.certificate-card,
.admin-card,
.admin-table-card,
.admin-selected-event-card,
.admin-checkin-validator,
.admin-last-checkins,
.checkin-operation-card,
.checkin-operation-mode > *,
.checkin-operation-metrics article {
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius);
    background: #ffffff;
    box-shadow: var(--app-shadow-soft);
}

.public-event-card,
.certificate-card,
.admin-card,
.admin-table-card,
.account-card {
    overflow: hidden;
}

.public-event-card:hover,
.admin-card:hover,
.account-card:hover {
    border-color: #c6d7ea;
    box-shadow: var(--app-shadow);
}

.public-event-card__media,
.public-event-card__fallback {
    background-color: #dbeafe;
}

.public-badge,
.status-pill,
.managed-status-pill,
.admin-status,
.admin-role-badge,
.role-badge,
.account-agenda-item__status,
.account-ticket-activities__status {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.18rem 0.62rem;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
}

.public-badge,
.status-pill,
.managed-status-pill,
.admin-status--muted,
.admin-role-badge,
.role-badge {
    background: #eef2f7;
    color: #475569;
    border-color: #d8e2ee;
}

.public-badge--open,
.public-badge--published,
.admin-status--success,
.managed-status-pill--active,
.account-agenda-item__status--checked {
    background: var(--app-accent-soft);
    color: #075f3c;
    border-color: #b7e4cd;
}

.public-badge--soon,
.public-badge--draft,
.admin-status--warning,
.managed-status-pill--draft,
.account-agenda-item__status--pending {
    background: var(--app-warning-soft);
    color: #7a4b08;
    border-color: #f2d38a;
}

.public-badge--closed,
.public-badge--cancelled,
.admin-status--danger,
.managed-status-pill--cancelled {
    background: var(--app-danger-soft);
    color: #922b27;
    border-color: #f1bbb7;
}

.public-badge--checkin,
.admin-status--info,
.account-agenda-item__status--scheduled {
    background: var(--app-info-soft);
    color: #174ea6;
    border-color: #bfd6ff;
}

.public-detail-layout {
    align-items: start;
}

.page-public-event-detail .public-detail-layout {
    width: 100%;
    gap: 24px;
}

.page-public-event-detail .public-detail-main,
.page-public-event-detail .event-summary-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.public-info-grid,
.account-metrics,
.admin-metrics-grid,
.admin-event-config-grid,
.checkin-operation-metrics {
    gap: 1rem;
}

.public-info-grid > div,
.account-metrics article,
.admin-metric-card,
.admin-event-config-item,
.admin-checkin-summary-card {
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius);
    background: #ffffff;
    box-shadow: var(--app-shadow-soft);
}

.public-info-grid strong,
.account-metrics strong,
.admin-metric-card strong,
.admin-checkin-summary-card strong {
    color: var(--app-ink);
}

.event-summary-card {
    position: sticky;
    top: 92px;
}

.public-schedule-list article,
.account-agenda-item,
.account-message-item,
.account-ticket-activities article {
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-sm);
    background: #ffffff;
}

.public-form input,
.public-form select,
.public-form textarea,
.field input,
.field select,
.field textarea,
.admin-modern-form input,
.admin-modern-form select,
.admin-modern-form textarea,
.admin-global-search input,
.admin-checkin-field input,
.admin-checkin-input-row input,
.account-card input,
.account-card select,
.account-card textarea,
.registration-panel input,
.registration-panel select,
.registration-panel textarea {
    min-height: 44px;
    border: 1px solid #cfdbe9;
    border-radius: var(--app-radius-sm);
    background: #ffffff;
    color: var(--app-ink);
    box-shadow: none;
}

.public-form textarea,
.field textarea,
.admin-modern-form textarea,
.account-card textarea,
.registration-panel textarea {
    resize: none;
    field-sizing: content;
}

.public-form input:focus,
.public-form select:focus,
.public-form textarea:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.admin-modern-form input:focus,
.admin-modern-form select:focus,
.admin-modern-form textarea:focus,
.admin-global-search input:focus,
.admin-checkin-field input:focus,
.admin-checkin-input-row input:focus,
.account-card input:focus,
.account-card select:focus,
.account-card textarea:focus,
.registration-panel input:focus,
.registration-panel select:focus,
.registration-panel textarea:focus {
    border-color: #8bbcf0;
    box-shadow: 0 0 0 4px rgba(0, 83, 155, 0.12);
    outline: 0;
}

.registration-flow,
.admin-form-subsection {
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius);
    background: #fbfdff;
}

.account-hero {
    border: 1px solid #c8dcf3;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(0, 83, 155, 0.95), rgba(15, 139, 95, 0.86)),
        #00539b;
    color: #ffffff;
    box-shadow: var(--app-shadow);
}

.account-hero .eyebrow,
.account-hero p,
.account-hero h1 {
    color: #ffffff;
}

.account-sidebar {
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius);
    background: #ffffff;
    box-shadow: var(--app-shadow-soft);
}

.account-sidebar nav a {
    min-height: 42px;
    border-radius: var(--app-radius-sm);
    color: #44546a;
    font-weight: 750;
}

.account-sidebar nav a:hover,
.account-sidebar nav a.is-active {
    background: var(--app-brand-soft);
    color: var(--app-brand);
}

.certificate-print-shell {
    background: #eef3f9;
}

.certificate-print {
    border: 1px solid #cfdbe9;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 35, 64, 0.12);
}

.certificate-print__header,
.certificate-print__footer {
    border-color: #d9e3ee;
}

.certificate-print__statement {
    color: var(--app-ink);
}

.auth-layout,
.participant-login-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(0, 83, 155, 0.13), transparent 34rem),
        radial-gradient(circle at bottom right, rgba(15, 139, 95, 0.11), transparent 30rem),
        var(--app-surface-soft);
}

.auth-stage,
.participant-login-card {
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--app-shadow);
}

.topbar--auth,
.participant-login-brand__logo {
    color: var(--app-ink);
}

.brand__mark,
.participant-login-brand__logo > span {
    border-radius: var(--app-radius-sm);
    background: linear-gradient(135deg, var(--app-brand), var(--app-accent));
    color: #ffffff;
}

.auth-card,
.participant-login-card {
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius);
    background: #ffffff;
    box-shadow: var(--app-shadow-soft);
}

.participant-login-brand {
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(0, 83, 155, 0.98), rgba(13, 36, 61, 0.98)),
        var(--app-brand);
}

.participant-login-brand__copy h1,
.participant-login-brand__copy p,
.participant-login-brand__copyright {
    color: #ffffff;
}

.participant-login-panel {
    background: var(--app-surface-soft);
}

.admin-redesign {
    background: #eef3f8;
    color: var(--app-ink);
}

.event-admin-shell.schedule-admin-shell {
    background: #eef3f8;
    color: var(--app-ink);
}

.event-admin-sidebar,
.schedule-admin-sidebar {
    color: #d7e4f2;
    background: linear-gradient(180deg, var(--app-sidebar), #081a2e);
    box-shadow: 14px 0 32px rgba(6, 17, 31, 0.14);
}

.schedule-admin-brand > span,
.event-admin-avatar {
    border-radius: var(--app-radius-sm);
    background: linear-gradient(135deg, var(--app-brand), var(--app-accent));
    color: #ffffff;
}

.schedule-admin-brand,
.event-admin-profile {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--app-radius);
    background: rgba(255, 255, 255, 0.06);
}

.event-admin-menu a,
.event-admin-sidebar__links a,
.event-admin-sidebar__logout button {
    min-height: 42px;
    border-radius: var(--app-radius-sm);
    color: #d7e4f2;
    text-decoration: none;
}

.event-admin-menu a:hover,
.event-admin-menu a.is-active,
.event-admin-sidebar__links a:hover {
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
}

.schedule-admin-main,
.event-admin-main {
    min-width: 0;
}

.event-admin-topbar,
.schedule-admin-topbar,
.admin-header,
.admin-panel,
.appearance-editor,
.schedule-admin-content > section,
.stat-card,
.event-metric-card,
.selector-card,
.media-upload-card,
.admin-event-card {
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius);
    background: #ffffff;
    box-shadow: var(--app-shadow-soft);
}

.event-admin-topbar,
.schedule-admin-topbar,
.admin-header {
    background: rgba(255, 255, 255, 0.94);
}

.event-role-chip,
.event-metric-card span,
.stat-card span {
    color: var(--app-muted);
    font-weight: 850;
}

.event-role-chip.is-active,
.selector-card.is-active {
    border-color: #b9d4f2;
    background: var(--app-brand-soft);
    color: var(--app-brand);
}

.admin-form-grid .field,
.field {
    color: var(--app-ink);
}

.admin-workspace {
    min-width: 0;
}

.admin-sidebar {
    color: #d7e4f2;
}

.admin-sidebar-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: linear-gradient(180deg, var(--app-sidebar), #081a2e);
    box-shadow: 14px 0 32px rgba(6, 17, 31, 0.14);
}

.admin-sidebar-brand {
    color: #ffffff;
}

.admin-sidebar-brand strong,
.admin-sidebar-brand small {
    color: inherit;
}

.admin-sidebar-user {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--app-radius);
    background: rgba(255, 255, 255, 0.06);
}

.admin-user-row small,
.admin-sidebar-footer a,
.admin-sidebar-footer button {
    color: #a8bdd4;
}

.admin-sidebar-link,
.admin-sidebar-footer a,
.admin-sidebar-footer button {
    min-height: 34px;
    border-radius: var(--app-radius-sm);
    color: #d7e4f2;
}

.admin-sidebar-link {
    border: 1px solid transparent;
    background: transparent;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.is-active {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.admin-sidebar-link.is-contextual {
    color: #dff8ea;
}

.admin-sidebar-link.is-disabled {
    color: rgba(215, 228, 242, 0.42);
}

body.app-tabler .admin-workspace-context .admin-context-open-event {
    display: none;
}

body.app-tabler .admin-workspace-context.is-portfolio-view .admin-context-open-event {
    display: inline-flex;
}

.admin-sidebar-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.admin-page-topbar {
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--app-shadow-soft);
}

.admin-page-title > span {
    color: var(--app-brand);
    font-weight: 850;
}

.admin-global-search {
    position: relative;
    display: block;
    border: 0;
    border-radius: var(--app-radius-sm);
    background: transparent;
}

.admin-global-search input,
.admin-inline-search input {
    min-height: 46px;
    padding-left: 3rem;
    border: 1px solid #cfdbe9;
    border-radius: var(--app-radius-sm);
    background: #ffffff;
    color: var(--app-ink);
}

.admin-global-search input {
    min-height: 52px;
}

.admin-global-search .ti {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 2;
    width: 1.25rem;
    height: 1.25rem;
    transform: translateY(-50%);
    color: var(--app-muted);
    pointer-events: none;
}

.admin-inline-search {
    position: relative;
    display: block;
}

.admin-inline-search > span {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 2;
    width: 0.95rem;
    height: 0.95rem;
    border: 2px solid var(--app-muted);
    border-radius: 50%;
    transform: translateY(-55%);
    pointer-events: none;
}

.admin-inline-search > span::after {
    content: "";
    position: absolute;
    right: -0.34rem;
    bottom: -0.18rem;
    width: 0.46rem;
    height: 2px;
    border-radius: 2px;
    background: var(--app-muted);
    transform: rotate(45deg);
}

body.app-tabler .admin-table-toolbar {
    padding-top: 1.2rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #d6e2f0;
}

.admin-notification-button,
.admin-role-current {
    min-height: 42px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-sm);
    background: #ffffff;
    color: var(--app-muted);
}

.admin-role-current__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--app-accent);
}

.admin-mobile-bar {
    border: 1px solid var(--app-line);
    border-radius: 0 0 var(--app-radius) var(--app-radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--app-shadow-soft);
}

.admin-mobile-menu-button,
.admin-mobile-primary-action {
    min-height: 42px;
    border-radius: var(--app-radius-sm);
}

.admin-mobile-menu-button {
    border: 1px solid var(--app-line);
    background: #ffffff;
    color: var(--app-brand);
    font-weight: 800;
}

.admin-mobile-primary-action {
    background: var(--app-brand);
    color: #ffffff;
    text-decoration: none;
}

.admin-card,
.admin-table-card,
.admin-checkin-validator,
.admin-last-checkins {
    overflow: hidden;
}

.admin-card-header,
.admin-table-toolbar {
    border-bottom: 1px solid var(--app-line);
    background: #ffffff;
}

.admin-table-scroll {
    background: #ffffff;
}

.admin-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    background: #ffffff;
}

.admin-table th {
    background: #f7f9fc;
    color: #526174;
    font-size: 0.75rem;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #e5edf5;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: #f8fbff;
}

.admin-progress {
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef6;
}

.admin-progress span {
    background: linear-gradient(90deg, var(--app-brand), var(--app-accent));
}

.admin-modal {
    border: 0;
    background: transparent;
}

.admin-modal::backdrop {
    background: rgba(5, 16, 31, 0.56);
    backdrop-filter: blur(4px);
}

.admin-modal__panel {
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius);
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(5, 16, 31, 0.24);
}

.admin-modal--drawer .admin-modal__panel {
    border-radius: var(--app-radius) 0 0 var(--app-radius);
}

.admin-modal__header,
.admin-modal__footer {
    border-color: var(--app-line);
    background: #ffffff;
}

.admin-modal__header button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-sm);
    background: #ffffff;
    color: var(--app-muted);
}

.admin-modal-list__item {
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-sm);
    background: #ffffff;
}

.admin-modal-list__item:hover,
.admin-modal-list__item.is-selected {
    border-color: #b9d4f2;
    background: var(--app-brand-soft);
}

.admin-checkin-scope-card,
.admin-checkin-summary-card,
.admin-checkin-list article,
.admin-schedule-active-card,
.admin-schedule-checkin-picker {
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius);
    background: #ffffff;
    box-shadow: var(--app-shadow-soft);
}

.admin-checkin-scope-card.is-active,
.admin-schedule-active-card--checkin {
    border-color: #b7e4cd;
    background: var(--app-accent-soft);
}

.admin-scanner-box,
.checkin-operation-scanner {
    border: 2px dashed #a9c5e6;
    border-radius: var(--app-radius);
    background: #f8fbff;
}

body.page-checkin-operation {
    background: #eef3f8;
}

.checkin-operation__topbar,
.checkin-operation__hero {
    border-radius: var(--app-radius);
    border: 1px solid var(--app-line);
    background: #ffffff;
    box-shadow: var(--app-shadow-soft);
}

.checkin-operation__hero h1 {
    color: var(--app-ink);
}

.checkin-operation__event {
    border-color: #c8dcf3;
    border-radius: var(--app-radius);
    background: var(--app-brand-soft);
}

.checkin-operation-mode > *.is-active,
.checkin-operation-mode > *:hover {
    border-color: #b9d4f2;
    background: var(--app-brand-soft);
}

/* Final guardrails against legacy specificity conflicts after the Tabler migration. */
body.app-tabler a.button--primary,
body.app-tabler button.button--primary,
body.app-tabler a.admin-primary-button,
body.app-tabler button.admin-primary-button,
body.app-tabler a.public-nav__cta,
body.app-tabler a.admin-mobile-primary-action,
body.app-tabler a.home-history__cta,
body.app-tabler a.button--primary:visited,
body.app-tabler a.admin-primary-button:visited,
body.app-tabler a.public-nav__cta:visited,
body.app-tabler a.admin-mobile-primary-action:visited,
body.app-tabler a.home-history__cta:visited,
body.app-tabler .admin-selected-event-card__actions .admin-primary-button,
body.app-tabler .admin-card-header__actions .admin-primary-button {
    background: var(--app-brand) !important;
    border-color: var(--app-brand) !important;
    color: #ffffff !important;
    text-shadow: none;
}

body.app-tabler a.button--primary:hover,
body.app-tabler a.button--primary:focus-visible,
body.app-tabler button.button--primary:hover,
body.app-tabler button.button--primary:focus-visible,
body.app-tabler a.admin-primary-button:hover,
body.app-tabler a.admin-primary-button:focus-visible,
body.app-tabler button.admin-primary-button:hover,
body.app-tabler button.admin-primary-button:focus-visible,
body.app-tabler a.public-nav__cta:hover,
body.app-tabler a.public-nav__cta:focus-visible,
body.app-tabler a.admin-mobile-primary-action:hover,
body.app-tabler a.admin-mobile-primary-action:focus-visible,
body.app-tabler a.home-history__cta:hover,
body.app-tabler a.home-history__cta:focus-visible,
body.app-tabler .admin-selected-event-card__actions .admin-primary-button:hover,
body.app-tabler .admin-card-header__actions .admin-primary-button:hover {
    background: var(--app-brand-dark) !important;
    border-color: var(--app-brand-dark) !important;
    color: #ffffff !important;
}

body.app-tabler a.button--primary *,
body.app-tabler button.button--primary *,
body.app-tabler a.admin-primary-button *,
body.app-tabler button.admin-primary-button *,
body.app-tabler a.public-nav__cta *,
body.app-tabler a.home-history__cta *,
body.app-tabler a.admin-mobile-primary-action * {
    color: #ffffff !important;
}

body.app-tabler a.profile-button--primary,
body.app-tabler a.profile-button--primary:visited,
body.app-tabler a.profile-button--primary:hover,
body.app-tabler a.profile-button--primary:focus-visible,
body.app-tabler a.card-cta-link:not(.card-cta-link--secondary),
body.app-tabler a.card-cta-link:not(.card-cta-link--secondary):visited,
body.app-tabler a.card-cta-link:not(.card-cta-link--secondary):hover,
body.app-tabler a.card-cta-link:not(.card-cta-link--secondary):focus-visible {
    color: #ffffff !important;
}

body.app-tabler a.button--danger,
body.app-tabler a.admin-danger-button,
body.app-tabler a.is-danger,
body.app-tabler a.button--danger:visited,
body.app-tabler a.admin-danger-button:visited,
body.app-tabler a.is-danger:visited,
body.app-tabler a.button--danger:hover,
body.app-tabler a.admin-danger-button:hover,
body.app-tabler a.is-danger:hover,
body.app-tabler a.button--danger:focus-visible,
body.app-tabler a.admin-danger-button:focus-visible,
body.app-tabler a.is-danger:focus-visible {
    color: #ffffff !important;
}

body.app-tabler .admin-primary-button .ti,
body.app-tabler .button--primary .ti,
body.app-tabler .public-nav__cta .ti {
    color: currentColor;
}

body.app-tabler .admin-sidebar,
body.app-tabler .admin-sidebar-card,
body.app-tabler .event-admin-sidebar,
body.app-tabler .schedule-admin-sidebar {
    background: linear-gradient(180deg, var(--app-sidebar), #081a2e) !important;
    color: #d7e4f2;
}

body.app-tabler .admin-sidebar-brand,
body.app-tabler .admin-sidebar-brand strong,
body.app-tabler .schedule-admin-brand,
body.app-tabler .schedule-admin-brand strong,
body.app-tabler .participant-login-brand__logo,
body.app-tabler .participant-login-brand__logo strong {
    color: #ffffff !important;
}

body.app-tabler .admin-sidebar-brand small,
body.app-tabler .admin-sidebar-user small,
body.app-tabler .schedule-admin-brand small,
body.app-tabler .participant-login-brand__logo small {
    color: #bdd1e6 !important;
}

body.app-tabler .admin-sidebar-user strong,
body.app-tabler .event-admin-profile strong {
    color: #ffffff;
}

body.app-tabler .admin-sidebar-link,
body.app-tabler .admin-sidebar-cycle a,
body.app-tabler .admin-sidebar-cycle button,
body.app-tabler .admin-sidebar-footer a,
body.app-tabler .admin-sidebar-footer button,
body.app-tabler .event-admin-menu a,
body.app-tabler .event-admin-sidebar__links a,
body.app-tabler .event-admin-sidebar__logout button {
    color: #d7e4f2 !important;
}

body.app-tabler .admin-sidebar-link:hover,
body.app-tabler .admin-sidebar-link.is-active,
body.app-tabler .admin-sidebar-cycle a:hover,
body.app-tabler .admin-sidebar-cycle a.is-active,
body.app-tabler .admin-sidebar-cycle button:hover,
body.app-tabler .admin-sidebar-cycle button.is-active,
body.app-tabler .admin-sidebar-footer a:hover,
body.app-tabler .admin-sidebar-footer button:hover,
body.app-tabler .event-admin-menu a:hover,
body.app-tabler .event-admin-menu a.is-active,
body.app-tabler .event-admin-sidebar__links a:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

body.app-tabler .participant-login-brand {
    background:
        linear-gradient(145deg, rgba(13, 36, 61, 0.98), rgba(0, 83, 155, 0.96) 62%, rgba(15, 139, 95, 0.78)),
        var(--app-sidebar) !important;
}

body.app-tabler .participant-login-brand__logo > span {
    background: linear-gradient(135deg, var(--app-brand), var(--app-accent)) !important;
    color: #ffffff !important;
}

body.app-tabler .participant-login-card,
body.app-tabler .auth-card {
    padding: clamp(1.35rem, 3vw, 2rem) !important;
}

body.app-tabler .participant-login-card h2,
body.app-tabler .participant-login-card > p {
    padding-inline: 0;
}

body.app-tabler .admin-page-title h1 {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
}

body.app-tabler .admin-page-topbar,
body.app-tabler .admin-selected-event-card__body,
body.app-tabler .admin-selected-event-card__empty,
body.app-tabler .admin-card-header,
body.app-tabler .admin-table-toolbar,
body.app-tabler .public-detail-main,
body.app-tabler .event-summary-card,
body.app-tabler .registration-panel,
body.app-tabler .account-card,
body.app-tabler .public-filter-card,
body.app-tabler .public-empty-state {
    padding-inline: max(1rem, min(1.5rem, 4vw));
}

@media (max-width: 1180px) {
    .public-header__inner,
    .public-detail-layout,
    .account-main,
    .registration-shell {
        width: min(100% - 2rem, 1180px);
    }
}

@media (max-width: 980px) {
    .public-header__menu {
        border: 1px solid var(--app-line);
        border-radius: 0 0 var(--app-radius) var(--app-radius);
        background: #ffffff;
        box-shadow: var(--app-shadow);
    }

    .public-nav a,
    .public-header__actions a,
    .public-header__actions button {
        width: 100%;
        justify-content: flex-start;
    }

    .public-detail-layout {
        display: grid;
        grid-template-columns: 1fr;
    }

    .event-summary-card {
        position: static;
    }

    .admin-page-topbar,
    .admin-page-tools,
    .admin-card-header,
    .admin-table-toolbar,
    .checkin-operation__hero {
        align-items: stretch;
    }

    .admin-global-search,
    .admin-global-search input {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .button,
    .admin-primary-button,
    .admin-ghost-button,
    .admin-export-button,
    .admin-danger-button {
        width: 100%;
    }

    .public-event-banner {
        min-height: 0;
        padding: 0;
    }

    .page-public-event-detail .public-page {
        width: calc(100% - 32px);
        padding: 16px 0 32px;
    }

    .page-public-event-detail .public-detail-layout {
        gap: 16px;
        margin-top: 24px;
    }

    .page-public-event-detail .public-detail-main,
    .page-public-event-detail .event-summary-card {
        padding: 16px;
        gap: 16px;
    }

    .page-public-event-detail .public-copy-block h2,
    .page-public-event-detail .event-summary-card h2 {
        margin: 0;
        line-height: 1.25;
    }

    .public-info-grid,
    .account-metrics,
    .admin-metrics-grid,
    .admin-event-config-grid,
    .checkin-operation-metrics {
        grid-template-columns: 1fr;
    }

    .admin-table {
        background: transparent;
    }

    .admin-table tr {
        border: 1px solid var(--app-line);
        border-radius: var(--app-radius);
        background: #ffffff;
        box-shadow: var(--app-shadow-soft);
    }

    .admin-table td {
        min-height: 44px;
    }

    .admin-table td::before {
        color: #64748b;
        font-weight: 850;
        text-transform: uppercase;
    }

    .admin-modal--drawer .admin-modal__panel,
    .admin-modal__panel {
        width: min(100vw, 100%);
        border-radius: var(--app-radius) var(--app-radius) 0 0;
    }

    .checkin-operation {
        padding: 0.75rem;
    }

    .checkin-operation__topbar,
    .checkin-operation__hero {
        border-radius: var(--app-radius);
    }
}

@media (max-width: 560px) {
    .public-header__inner,
    .public-detail-layout,
    .account-main,
    .registration-shell {
        width: min(100% - 1rem, 1180px);
    }

    .public-event-card,
    .public-detail-main,
    .event-summary-card,
    .registration-panel,
    .account-card,
    .admin-card,
    .admin-table-card,
    .certificate-card {
        border-radius: var(--app-radius-sm);
    }

    .account-hero h1,
    .admin-page-title h1 {
        overflow-wrap: anywhere;
    }
}

/* Full redesign polish pass: shared PHP views keep the same routes/forms, while the visual system becomes cohesive. */
body.app-tabler .button .ti,
body.app-tabler .admin-primary-button .ti,
body.app-tabler .admin-ghost-button .ti,
body.app-tabler .admin-export-button .ti,
body.app-tabler .admin-danger-button .ti,
body.app-tabler .public-header__actions .ti,
body.app-tabler .public-event-meta .ti,
body.app-tabler .events-breadcrumb .ti {
    font-size: 1rem;
    color: currentColor;
}

/* ===== LANDING PAGE ===== */

/* Hero */
body.app-tabler .home-hero {
    position: relative;
    min-height: min(74vh, 620px);
    display: grid;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    border-radius: 0;
    background:
        radial-gradient(ellipse 80% 60% at 85% 25%, rgba(15, 139, 95, 0.32), transparent 60%),
        radial-gradient(ellipse 70% 50% at 15% 75%, rgba(0, 150, 255, 0.24), transparent 55%),
        linear-gradient(135deg, #03182d 0%, #004a8f 52%, #083c6c 100%);
    padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(4rem, 7vw, 6rem);
}

body.app-tabler .home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(105deg, transparent 0 42%, rgba(255, 255, 255, 0.05) 42% 58%, transparent 58%);
}

body.app-tabler .home-hero__content {
    width: min(100% - 2rem, 1180px);
    margin-inline: auto;
    display: grid;
    gap: 0;
}

body.app-tabler .home-hero h1 {
    max-width: 860px;
    color: #ffffff;
    font-family: "Open Sans", sans-serif;
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
    margin: 0;
}

body.app-tabler .home-hero h1 span {
    color: #f4bf45;
}

body.app-tabler .home-hero p.home-hero__lead {
    max-width: 680px;
    margin: 1.25rem 0 2rem;
    color: rgba(231, 241, 255, 0.9);
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    line-height: 1.6;
}

body.app-tabler .home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

body.app-tabler .button--hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 52px;
    padding: 0.85rem 1.85rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    background: #f4bf45 !important;
    border: 1px solid #f4bf45 !important;
    color: #061d36 !important;
    box-shadow: 0 8px 24px rgba(244, 191, 69, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

body.app-tabler .button--hero-primary:hover,
body.app-tabler .button--hero-primary:focus-visible,
body.app-tabler a.button--hero-primary:hover,
body.app-tabler a.button--hero-primary:focus-visible {
    background: #ffc94d !important;
    border-color: #ffc94d !important;
    color: #061d36 !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(244, 191, 69, 0.42);
}

body.app-tabler .button--hero-primary *,
body.app-tabler a.button--hero-primary * {
    color: #061d36 !important;
}

body.app-tabler .button--hero-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 52px;
    padding: 0.85rem 1.85rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.app-tabler .button--hero-ghost:hover,
body.app-tabler .button--hero-ghost:focus-visible,
body.app-tabler a.button--hero-ghost:hover,
body.app-tabler a.button--hero-ghost:focus-visible {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

body.app-tabler .button--hero-ghost *,
body.app-tabler a.button--hero-ghost * {
    color: #ffffff !important;
}

/* Indicadores do hero */
.home-hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.home-hero__feature-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(231, 241, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
}

.home-hero__feature-item .ti {
    font-size: 1.15rem;
    color: #f4bf45;
}

/* Vitrine de eventos passados */
.home-history {
    width: min(1180px, calc(100% - 2rem));
    display: grid;
    gap: clamp(2rem, 3.5vw, 3rem);
    margin-inline: auto;
    padding: clamp(4.5rem, 7vw, 6.5rem) 0 clamp(3rem, 5vw, 4.5rem);
}

.home-history__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2rem;
}

.home-history__title-block {
    max-width: 760px;
}

.home-history__header h2 {
    margin: 0;
    color: #0f2742;
    font-family: "Open Sans", sans-serif;
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.home-history__header p {
    max-width: 660px;
    margin: 0.85rem 0 0;
    color: var(--public-muted);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.6;
}

.home-history__cta {
    min-height: 48px;
    white-space: nowrap;
    border-radius: 8px;
}

.home-history__grid {
    display: grid;
    gap: 2rem;
    border: none;
}

.home-history-banner {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "image content";
    min-height: clamp(340px, 34vw, 420px);
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 39, 66, 0.05);
    border: 1px solid rgba(220, 230, 242, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-history-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(15, 39, 66, 0.08);
}

.home-history-banner--reverse {
    grid-template-areas: "content image";
}

.home-history-banner__media {
    grid-area: image;
    position: relative;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    background: #dce7f1;
}

.home-history-banner__media img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0;
    object-fit: cover;
    object-position: center 54%;
    transition: transform 0.5s ease;
}

.home-history-banner:hover .home-history-banner__media img {
    transform: scale(1.03);
}

.home-history-banner__content {
    grid-area: content;
    display: grid;
    align-content: center;
    gap: 0.85rem;
    padding: clamp(2rem, 4vw, 3.5rem);
}

.home-history-banner__content h3 {
    margin: 0;
    color: #0f2742;
    font-family: "Open Sans", sans-serif;
    font-size: clamp(1.6rem, 2.5vw, 2.3rem);
    font-weight: 800;
    line-height: 1.1;
}

.home-history-banner__content p {
    margin: 0;
    color: var(--public-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Seção de benefícios */
.home-benefits {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(4.5rem, 7vw, 6.5rem);
    display: grid;
    gap: 2.5rem;
}

.home-benefits__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.home-benefits__header h2 {
    margin: 0 0 0.5rem;
    color: #0f2742;
    font-family: "Open Sans", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.home-benefits__header p {
    margin: 0;
    color: var(--public-muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

.home-benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.home-benefit-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
    border-radius: 0;
    background: #ffffff;
    border: 1px solid rgba(220, 230, 242, 0.7);
    box-shadow: 0 6px 20px rgba(15, 39, 66, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 39, 66, 0.07);
}

.home-benefit-card__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(0, 83, 155, 0.08);
    color: #00539b;
    font-size: 1.5rem;
}

.home-benefit-card__body h3 {
    margin: 0 0 0.5rem;
    color: #0f2742;
    font-family: "Open Sans", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.home-benefit-card__body p {
    margin: 0;
    color: var(--public-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Responsividade da Landing Page */
@media (max-width: 860px) {
    .home-history__header {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .home-history__cta {
        width: 100%;
        justify-content: center;
    }

    .home-history-banner,
    .home-history-banner--reverse {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "content";
        min-height: 0;
    }

    .home-history-banner__media {
        aspect-ratio: 16 / 9;
    }

    .home-history-banner__content {
        padding: 1.75rem;
    }

    .home-benefits__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .home-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button--hero-primary,
    .button--hero-ghost {
        width: 100%;
        justify-content: center;
    }

    .home-hero__features {
        flex-direction: column;
        gap: 0.85rem;
    }
}

/* Landing local inspirada na composição em moldura e no palco visual da referência em vídeo. */
html:has(body.page-public-home) {
    background: #07111d;
}

body.app-tabler.page-public-home {
    padding: 18px;
    background: #07111d;
}

body.app-tabler.page-public-home > .public-header {
    top: 18px;
    z-index: 80;
    margin-bottom: -72px;
    border: 0;
    border-radius: 28px 28px 0 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transition: background-color 180ms ease, box-shadow 180ms ease, border-radius 180ms ease;
}

body.app-tabler.page-public-home > .public-header .public-brand__mark img {
    filter: brightness(0) invert(1);
    transition: filter 180ms ease;
}

body.app-tabler.page-public-home > .public-header .public-brand strong,
body.app-tabler.page-public-home > .public-header .public-brand small,
body.app-tabler.page-public-home > .public-header .public-nav a,
body.app-tabler.page-public-home > .public-header .public-header__actions > a,
body.app-tabler.page-public-home > .public-header .public-header__actions > form button {
    color: #ffffff;
}

body.app-tabler.page-public-home > .public-header .public-nav a:hover,
body.app-tabler.page-public-home > .public-header .public-nav a:focus-visible,
body.app-tabler.page-public-home > .public-header .public-nav a.is-active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

body.app-tabler.page-public-home > .public-header .public-header__actions .public-nav__cta {
    border-color: #ffffff !important;
    background: #ffffff !important;
    color: #07325a !important;
}

body.app-tabler.page-public-home > .public-header .public-header__toggle span:not(.sr-only) {
    background: #07325a;
}

body.app-tabler.page-public-home > .public-header .public-header__actions > a:not(.public-nav__cta),
body.app-tabler.page-public-home > .public-header .public-header__actions > form button {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
}

body.app-tabler.page-public-home > .public-header.is-home-scrolled,
body.app-tabler.page-public-home > .public-header.is-open {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 36px rgba(2, 16, 30, 0.18);
    backdrop-filter: blur(16px);
}

body.app-tabler.page-public-home > .public-header.is-home-scrolled {
    position: fixed;
    inset-inline: 18px;
    width: auto;
}

body.app-tabler.page-public-home > .public-header.is-home-scrolled .public-brand__mark img,
body.app-tabler.page-public-home > .public-header.is-open .public-brand__mark img {
    filter: none;
}

body.app-tabler.page-public-home > .public-header.is-home-scrolled .public-brand strong,
body.app-tabler.page-public-home > .public-header.is-home-scrolled .public-brand small,
body.app-tabler.page-public-home > .public-header.is-home-scrolled .public-nav a,
body.app-tabler.page-public-home > .public-header.is-home-scrolled .public-header__actions > a,
body.app-tabler.page-public-home > .public-header.is-home-scrolled .public-header__actions > form button,
body.app-tabler.page-public-home > .public-header.is-open .public-brand strong,
body.app-tabler.page-public-home > .public-header.is-open .public-brand small,
body.app-tabler.page-public-home > .public-header.is-open .public-nav a,
body.app-tabler.page-public-home > .public-header.is-open .public-header__actions > a,
body.app-tabler.page-public-home > .public-header.is-open .public-header__actions > form button {
    color: #24364b;
}

body.app-tabler.page-public-home > .public-header.is-home-scrolled .public-brand small,
body.app-tabler.page-public-home > .public-header.is-open .public-brand small {
    color: #68778d;
}

body.app-tabler.page-public-home > .public-header.is-home-scrolled .public-nav a:hover,
body.app-tabler.page-public-home > .public-header.is-home-scrolled .public-nav a:focus-visible,
body.app-tabler.page-public-home > .public-header.is-home-scrolled .public-nav a.is-active,
body.app-tabler.page-public-home > .public-header.is-open .public-nav a:hover,
body.app-tabler.page-public-home > .public-header.is-open .public-nav a:focus-visible,
body.app-tabler.page-public-home > .public-header.is-open .public-nav a.is-active {
    background: #e8f2ff;
    color: #004a8f;
}

body.app-tabler.page-public-home > .public-header.is-home-scrolled .public-header__actions .public-nav__cta,
body.app-tabler.page-public-home > .public-header.is-open .public-header__actions .public-nav__cta {
    border-color: #00539b !important;
    background: #00539b !important;
    color: #ffffff !important;
}

body.app-tabler.page-public-home > .public-header.is-home-scrolled .public-header__toggle span:not(.sr-only),
body.app-tabler.page-public-home > .public-header.is-open .public-header__toggle span:not(.sr-only) {
    background: #17324d;
}

body.app-tabler.page-public-home > .public-header.is-home-scrolled .public-header__actions > a:not(.public-nav__cta),
body.app-tabler.page-public-home > .public-header.is-home-scrolled .public-header__actions > form button,
body.app-tabler.page-public-home > .public-header.is-open .public-header__actions > a:not(.public-nav__cta),
body.app-tabler.page-public-home > .public-header.is-open .public-header__actions > form button {
    border-color: #dce5ef;
    background: #ffffff;
    color: #24364b !important;
}

body.app-tabler.page-public-home .home-page {
    position: relative;
    min-width: 0;
    overflow: visible;
    border-radius: 28px 28px 0 0;
    background: #ffffff;
}

body.app-tabler.page-public-home .home-scroll-overlay {
    position: relative;
    isolation: isolate;
}

body.app-tabler.page-public-home .home-hero {
    position: sticky;
    top: 18px;
    z-index: 0;
    min-height: min(940px, calc(100svh - 36px));
    align-items: start;
    justify-items: center;
    padding: 0 0 clamp(5.5rem, 9vw, 8rem);
    border-radius: 28px 28px 0 0;
    background:
        linear-gradient(180deg, rgba(0, 42, 80, 0.54) 0%, rgba(0, 62, 112, 0.42) 52%, rgba(0, 43, 80, 0.5) 100%),
        url("../images/events-hero-creci.jpg") center 42% / cover no-repeat;
}

body.app-tabler.page-public-home .home-hero::before {
    content: "";
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 58% 42% at 50% 30%, rgba(0, 28, 56, 0.34), transparent 76%),
        radial-gradient(circle at 18% 34%, rgba(244, 191, 69, 0.14), transparent 27%);
}

body.app-tabler.page-public-home .home-hero::after {
    inset: 0;
    z-index: 1;
    height: auto;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 20, 40, 0.02), rgba(0, 20, 40, 0.16));
}

body.app-tabler.page-public-home .home-hero__content {
    position: relative;
    z-index: 2;
    width: min(860px, calc(100% - 32px));
    justify-items: center;
    padding: clamp(9rem, 15vh, 10.5rem) 0 0;
    text-align: center;
}

body.app-tabler.page-public-home .home-hero h1 {
    max-width: 820px;
    font-size: clamp(3rem, 5vw, 4.55rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

body.app-tabler.page-public-home .home-hero p.home-hero__lead {
    max-width: 670px;
    margin: 1.5rem auto 1.8rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.7vw, 1.18rem);
}

body.app-tabler.page-public-home .home-hero__actions {
    justify-content: center;
    margin: 0;
}

body.app-tabler.page-public-home .home-benefits {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    border-radius: 32px 32px 0 0;
    padding: clamp(4.5rem, 8vw, 7rem) max(16px, calc((100% - 1120px) / 2)) clamp(5rem, 8vw, 7.5rem);
    background: #ffffff;
    box-shadow: 0 -22px 56px rgba(3, 23, 43, 0.16);
    gap: clamp(3rem, 6vw, 5rem);
}

.home-trust-strip {
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 1rem;
    margin-inline: auto;
}

.home-trust-strip span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    color: #2f4c68;
    font-size: 0.84rem;
    font-weight: 800;
    text-align: center;
}

.home-trust-strip .ti {
    color: #0f8b5f;
    font-size: 1.2rem;
}

.home-section-kicker {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: #0f8b5f;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.app-tabler.page-public-home .home-benefits__header {
    max-width: 760px;
}

body.app-tabler.page-public-home .home-benefits__header h2,
body.app-tabler.page-public-home .home-history__header h2 {
    font-size: clamp(2.25rem, 4.6vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

body.app-tabler.page-public-home .home-benefits__header p {
    max-width: 670px;
    margin: 1rem auto 0;
    color: #5d6d82;
    font-size: 1.03rem;
    line-height: 1.65;
}

body.app-tabler.page-public-home .home-benefits__grid {
    width: 100%;
    max-width: 1120px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-inline: auto;
}

body.app-tabler.page-public-home .home-benefit-card {
    min-height: 310px;
    align-content: start;
    gap: 1.5rem;
    border-radius: 24px;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    background: #f8fafc;
    box-shadow: none;
}

body.app-tabler.page-public-home .home-benefit-card:last-child {
    grid-column: 1 / -1;
    min-height: 230px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
}

body.app-tabler.page-public-home .home-benefit-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
}

body.app-tabler.page-public-home .home-benefit-card__body h3 {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
}

body.app-tabler.page-public-home .home-history {
    width: min(1120px, calc(100% - 32px));
    padding: clamp(5rem, 8vw, 7rem) 0 clamp(5rem, 8vw, 7.5rem);
    border-top: 1px solid #e5ebf1;
}

body.app-tabler.page-public-home .home-history__header {
    align-items: end;
}

body.app-tabler.page-public-home .home-history__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

body.app-tabler.page-public-home .home-history-banner,
body.app-tabler.page-public-home .home-history-banner--reverse {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(260px, 0.9fr) auto;
    grid-template-areas: "image" "content";
    min-height: 570px;
    border-radius: 24px;
    box-shadow: none;
}

body.app-tabler.page-public-home .home-history-banner__content {
    align-content: start;
    padding: clamp(1.5rem, 3vw, 2.2rem);
}

body.app-tabler.page-public-home .home-history-banner__content > span {
    color: #0f8b5f;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.app-tabler.page-public-home > .public-footer {
    overflow: hidden;
    margin-bottom: 0;
    border-radius: 0 0 28px 28px;
}

@media (max-width: 991.98px) {
    body.app-tabler.page-public-home > .public-header:not(.is-home-scrolled):not(.is-open) .public-header__menu {
        background: rgba(255, 255, 255, 0.98);
    }

    body.app-tabler.page-public-home .home-benefits__grid,
    body.app-tabler.page-public-home .home-history__grid {
        grid-template-columns: 1fr;
    }

    body.app-tabler.page-public-home .home-benefit-card:last-child {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    html:has(body.page-public-home),
    body.app-tabler.page-public-home {
        background: #ffffff;
    }

    body.app-tabler.page-public-home {
        padding: 0;
    }

    body.app-tabler.page-public-home > .public-header {
        top: 0;
        margin-bottom: -64px;
        border-radius: 0;
    }

    body.app-tabler.page-public-home > .public-header.is-home-scrolled,
    body.app-tabler.page-public-home > .public-header.is-open {
        border-radius: 0;
    }

    body.app-tabler.page-public-home > .public-header.is-home-scrolled {
        inset-inline: 0;
    }

    body.app-tabler.page-public-home .home-page,
    body.app-tabler.page-public-home .home-hero {
        border-radius: 0;
    }

    body.app-tabler.page-public-home .home-hero {
        top: 0;
        min-height: min(760px, 100svh);
        padding: 0 0 4.5rem;
        background-position: center;
    }

    body.app-tabler.page-public-home .home-hero__content {
        width: min(100% - 24px, 620px);
        padding-top: 7.4rem;
    }

    body.app-tabler.page-public-home .home-hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.25rem);
    }

    body.app-tabler.page-public-home .home-hero p.home-hero__lead {
        margin-block: 1.1rem 1.35rem;
        font-size: 0.96rem;
    }

    body.app-tabler.page-public-home .home-benefits {
        width: 100%;
        border-radius: 24px 24px 0 0;
        padding: 3.75rem 12px 5rem;
        box-shadow: 0 -16px 40px rgba(3, 23, 43, 0.14);
    }

    .home-trust-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 0.5rem;
    }

    .home-trust-strip span {
        justify-content: flex-start;
        font-size: 0.72rem;
        text-align: left;
    }

    body.app-tabler.page-public-home .home-benefits__header h2,
    body.app-tabler.page-public-home .home-history__header h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    body.app-tabler.page-public-home .home-benefit-card,
    body.app-tabler.page-public-home .home-benefit-card:last-child {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    body.app-tabler.page-public-home .home-history {
        width: min(100% - 24px, 620px);
    }

    body.app-tabler.page-public-home .home-history-banner,
    body.app-tabler.page-public-home .home-history-banner--reverse {
        min-height: 0;
        grid-template-rows: auto auto;
    }

    body.app-tabler.page-public-home .home-history-banner__media {
        aspect-ratio: 4 / 3;
    }

    body.app-tabler.page-public-home > .public-footer {
        border-radius: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.app-tabler.page-public-home > .public-header,
    body.app-tabler.page-public-home > .public-header .public-brand__mark img {
        transition: none;
    }
}

body.app-tabler .events-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

body.app-tabler .events-search label {
    position: relative;
    display: flex;
    align-items: center;
}

body.app-tabler .events-search .ti {
    position: absolute;
    left: 0.85rem;
    z-index: 1;
    color: var(--app-muted);
}

body.app-tabler .events-search input {
    padding-left: 2.35rem;
}

body.app-tabler.page-public-events .events-search input {
    appearance: none;
    background: #ffffff;
    color: #15263a;
    caret-color: var(--app-brand);
    color-scheme: light;
    -webkit-text-fill-color: #15263a;
}

body.app-tabler.page-public-events .events-search input::placeholder {
    color: #7b8798;
    opacity: 1;
    -webkit-text-fill-color: #7b8798;
}

body.app-tabler .public-event-card__media {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

body.app-tabler .public-event-card__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(180deg, transparent, rgba(7, 18, 33, 0.48));
    pointer-events: none;
}

body.app-tabler .public-event-card__body {
    gap: 0.8rem;
}

body.app-tabler .public-event-card h3 a {
    color: var(--app-ink);
    text-decoration: none;
}

body.app-tabler .public-event-card h3 a:hover {
    color: var(--app-brand);
}

body.app-tabler .public-event-meta dt {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

body.app-tabler .public-event-card__footer > span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #40516a;
}

body.app-tabler .event-summary-card .button + .button {
    margin-top: 0.65rem;
}

body.app-tabler .public-user-menu__panel a,
body.app-tabler .public-user-menu__panel button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.app-tabler .public-user-menu__panel a span,
body.app-tabler .public-user-menu__panel button span {
    display: inline-flex;
    width: 1.2rem;
    color: var(--app-brand);
}

body.app-tabler .admin-selected-event-card__footer > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.app-tabler .event-admin-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    color: currentColor;
}

body.app-tabler .event-admin-menu-icon .ti {
    font-size: 1.05rem;
}

body.app-tabler .admin-modal__panel {
    max-height: min(92vh, 980px);
}

body.app-tabler .admin-modal__body,
body.app-tabler .admin-modern-form {
    scrollbar-gutter: stable;
}

body.app-tabler .checkin-operation__hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(234, 243, 255, 0.92)),
        #ffffff;
}

body.app-tabler .checkin-operation-form input {
    font-size: 1.05rem;
    font-weight: 700;
}

/* Ticket creation form: compact desktop layout with touch-safe controls. */
body.app-tabler .admin-ticket-toolbar {
    padding: 1.35rem 1.55rem 1.45rem;
    margin-bottom: 1.15rem;
    align-items: center;
    row-gap: 0.9rem;
    border-bottom: 1px solid #d6e2f0;
}

body.app-tabler .admin-ticket-create-form {
    margin: 0;
    padding: 1.35rem 1.45rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 1rem;
    border-top: 1px solid var(--app-line);
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.92), rgba(255, 255, 255, 0.98)),
        #ffffff;
}

body.app-tabler .admin-ticket-create-form__header {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

body.app-tabler .admin-ticket-create-form__header span {
    display: block;
    color: var(--app-brand);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.app-tabler .admin-ticket-create-form__header h3 {
    margin: 0.2rem 0 0;
    color: var(--app-ink);
    font-size: 1.05rem;
}

body.app-tabler .admin-ticket-create-form__header p,
body.app-tabler .admin-ticket-create-form__actions small,
body.app-tabler .admin-ticket-switch small {
    margin: 0;
    color: var(--app-muted);
    line-height: 1.45;
}

body.app-tabler .admin-ticket-create-form__grid {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 0.9rem;
}

body.app-tabler .admin-ticket-art-preview {
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
    min-width: 0;
}

body.app-tabler .admin-ticket-art-preview__card {
    position: relative;
    min-height: 100%;
    padding: 1.2rem;
    display: grid;
    align-content: space-between;
    gap: 0.8rem;
    overflow: hidden;
    color: #ffffff;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(0, 83, 155, 0.98), rgba(15, 139, 95, 0.92)),
        var(--app-brand);
    box-shadow: 0 18px 34px rgba(0, 83, 155, 0.18);
}

body.app-tabler .admin-ticket-art-preview__card::before,
body.app-tabler .admin-ticket-art-preview__card::after {
    content: "";
    position: absolute;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background: #ffffff;
    opacity: 0.14;
}

body.app-tabler .admin-ticket-art-preview__card::before {
    top: -30px;
    right: -24px;
}

body.app-tabler .admin-ticket-art-preview__card::after {
    bottom: -32px;
    left: -28px;
}

body.app-tabler .admin-ticket-art-preview__card > * {
    position: relative;
    z-index: 1;
}

body.app-tabler .admin-ticket-art-preview__label,
body.app-tabler .admin-ticket-art-preview__pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body.app-tabler .admin-ticket-art-preview__label {
    padding: 0.35rem 0.65rem;
    background: rgba(255, 255, 255, 0.16);
}

body.app-tabler .admin-ticket-art-preview__card .ti-ticket {
    width: 3.8rem;
    height: 3.8rem;
    padding: 0.74rem;
    color: #ffffff;
    border: 1px dashed rgba(255, 255, 255, 0.52);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
}

body.app-tabler .admin-ticket-art-preview__card strong {
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.2;
}

body.app-tabler .admin-ticket-art-preview__card small {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.45;
}

body.app-tabler .admin-ticket-art-preview__pill {
    padding: 0.5rem 0.72rem;
    color: #073b68;
    background: #ffffff;
}

body.app-tabler .admin-ticket-create-form .field,
body.app-tabler .admin-ticket-create-form .admin-checkbox-line {
    min-width: 0;
}

body.app-tabler .admin-ticket-create-form .field--wide {
    grid-column: 1 / -1;
}

body.app-tabler .admin-ticket-create-form input,
body.app-tabler .admin-ticket-create-form textarea {
    min-width: 0;
}

body.app-tabler .admin-ticket-switch {
    min-height: 48px;
    padding: 0.78rem 0.9rem;
    justify-content: flex-start;
    align-items: center;
    gap: 0.78rem;
    border-color: #cfe0f3;
    background: #f8fbff;
}

body.app-tabler .admin-ticket-switch input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    min-height: 1.15rem;
    flex: 0 0 1.15rem;
    margin: 0;
    padding: 0;
    accent-color: var(--app-brand);
}

body.app-tabler .admin-ticket-switch span {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
    color: var(--app-ink);
}

body.app-tabler .admin-ticket-switch strong {
    font-weight: 850;
}

body.app-tabler .admin-ticket-switch small {
    font-size: 0.78rem;
    font-weight: 600;
}

body.app-tabler .admin-ticket-create-form__actions {
    grid-column: 1 / -1;
    grid-row: 3;
    padding-top: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--app-line);
}

body.app-tabler .admin-ticket-create-form__actions .admin-primary-button {
    min-width: 190px;
    box-shadow: 0 10px 24px rgba(0, 83, 155, 0.16);
}

body.app-tabler .admin-ticket-table-item {
    min-width: 220px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
}

body.app-tabler .admin-ticket-table-item__media {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--app-brand);
    border-radius: 14px;
    background: #e8f3ff;
    border: 1px solid #cfe0f3;
}

body.app-tabler .admin-ticket-table-item__media .ti {
    width: 1.35rem;
    height: 1.35rem;
}

body.app-tabler .admin-ticket-table-item__content {
    min-width: 0;
    display: grid;
    gap: 0.22rem;
}

body.app-tabler.page-event-dashboard #tickets .admin-ticket-table-item {
    grid-template-columns: minmax(0, 1fr);
}

body.app-tabler.page-event-dashboard #tickets .admin-ticket-table-item__content strong,
body.app-tabler.page-event-dashboard #tickets .admin-ticket-usage strong,
body.app-tabler.page-event-dashboard #tickets .admin-table tbody td > strong {
    color: #3f4b5c;
    font-weight: 400;
}

body.app-tabler.page-event-dashboard #tickets .admin-table tbody td {
    color: #3f4b5c;
    font-weight: 400;
}

body.app-tabler.page-event-dashboard #tickets .admin-ticket-visibility,
body.app-tabler.page-event-dashboard #tickets .admin-status,
body.app-tabler.page-event-dashboard #tickets .admin-table-link {
    font-weight: 600;
}

body.app-tabler.page-event-dashboard #tickets .admin-ticket-secondary-area {
    overflow: hidden;
}

body.app-tabler.page-event-dashboard #tickets .admin-ticket-secondary-area[open] > summary {
    border-bottom: 1px solid var(--app-line);
}

body.app-tabler.page-event-dashboard #tickets .admin-private-access-panel,
body.app-tabler.page-event-dashboard #tickets .admin-private-access-list {
    min-width: 0;
}

body.app-tabler.page-event-dashboard #tickets .admin-private-access-heading {
    display: grid;
    gap: 0.3rem;
    padding: 18px 20px;
    border-bottom: 1px solid var(--app-line);
    background: #fbfdff;
}

body.app-tabler.page-event-dashboard #tickets .admin-private-access-heading h3,
body.app-tabler.page-event-dashboard #tickets .admin-private-access-heading p {
    margin: 0;
}

body.app-tabler.page-event-dashboard #tickets .admin-private-access-heading h3 {
    color: #3f4b5c;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

body.app-tabler.page-event-dashboard #tickets .admin-private-access-heading p {
    color: #657286;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.45;
}

body.app-tabler.page-event-dashboard #tickets .admin-private-access-list > .admin-list-toolbar {
    background: #ffffff;
}

body.app-tabler.page-event-dashboard #tickets .admin-private-access-list .admin-table {
    min-width: 760px;
}

body.app-tabler.page-event-dashboard #tickets .admin-private-access-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

body.app-tabler.page-event-dashboard #tickets .admin-private-access-actions form {
    margin: 0;
}

body.app-tabler.page-event-dashboard #tickets .admin-private-access-empty {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
    margin: 18px 20px 0;
    padding: 16px 18px;
    border: 1px dashed #c8d8e8;
    border-radius: 12px;
    background: #f7fbff;
    color: #526175;
    text-align: left;
}

body.app-tabler.page-event-dashboard #tickets .admin-private-access-empty:not([hidden]) {
    display: grid;
}

body.app-tabler.page-event-dashboard #tickets .admin-private-access-empty > i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 11px;
    background: #e4f2ff;
    color: #0068ae;
    font-size: 1.2rem;
}

body.app-tabler.page-event-dashboard #tickets .admin-private-access-empty div {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

body.app-tabler.page-event-dashboard #tickets .admin-private-access-empty strong,
body.app-tabler.page-event-dashboard #tickets .admin-private-access-empty span {
    display: block;
}

body.app-tabler.page-event-dashboard #tickets .admin-private-access-empty strong {
    color: #22344a;
    font-size: 0.9rem;
    font-weight: 700;
}

body.app-tabler.page-event-dashboard #tickets .admin-private-access-empty span {
    color: #657286;
    font-size: 0.82rem;
    line-height: 1.45;
}

body.app-tabler.page-event-dashboard .admin-private-link-modal .admin-modal__panel {
    width: min(760px, 100vw);
}

body.app-tabler.page-event-dashboard .admin-private-link-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

body.app-tabler.page-event-dashboard .admin-private-link-form__content {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

body.app-tabler.page-event-dashboard .admin-private-link-form__section {
    display: grid;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--app-line);
}

body.app-tabler.page-event-dashboard .admin-private-link-form__section-heading {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

body.app-tabler.page-event-dashboard .admin-private-link-form__section-heading > i {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 11px;
    background: #e4f2ff;
    color: #0068ae;
    font-size: 1.15rem;
}

body.app-tabler.page-event-dashboard .admin-private-link-form__section-heading h3,
body.app-tabler.page-event-dashboard .admin-private-link-form__section-heading p {
    margin: 0;
}

body.app-tabler.page-event-dashboard .admin-private-link-form__section-heading h3 {
    color: #12243a;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
}

body.app-tabler.page-event-dashboard .admin-private-link-form__section-heading h3 small {
    color: #6b7788;
    font-size: 0.78rem;
    font-weight: 500;
}

body.app-tabler.page-event-dashboard .admin-private-link-form__section-heading p {
    margin-top: 0.2rem;
    color: #657286;
    font-size: 0.82rem;
    line-height: 1.45;
}

body.app-tabler.page-event-dashboard .admin-private-link-form__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

body.app-tabler.page-event-dashboard .admin-private-link-form__fields .field--wide {
    grid-column: 1 / -1;
}

body.app-tabler.page-event-dashboard .admin-private-link-form__fields .field > span {
    font-size: 0.84rem;
}

body.app-tabler.page-event-dashboard .admin-private-link-form__fields .field > small {
    color: #6b7788;
    font-size: 0.75rem;
    line-height: 1.4;
}

body.app-tabler.page-event-dashboard .admin-private-link-form__actions {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    margin: 0;
    padding: 18px 24px;
    border-top: 0;
    background: #ffffff;
    box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.05);
}

body.app-tabler.page-event-dashboard .admin-private-link-form__actions button {
    min-height: 44px;
    justify-content: center;
}

@media (min-width: 992px) {
    body.app-tabler.page-event-dashboard #tickets .admin-table tbody td {
        padding-block: 16px;
    }
}

@media (max-width: 991.98px) {
    body.app-tabler.page-event-dashboard #tickets .admin-private-access-list .admin-table {
        min-width: 0;
    }

    body.app-tabler.page-event-dashboard #tickets .admin-private-access-heading {
        padding: 16px;
    }

    body.app-tabler.page-event-dashboard #tickets .admin-private-access-empty {
        margin-inline: 16px;
    }
}

@media (max-width: 640px) {
    body.app-tabler.page-event-dashboard .admin-private-link-form__section {
        gap: 16px;
        padding: 18px;
    }

    body.app-tabler.page-event-dashboard .admin-private-link-form__section-heading {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
    }

    body.app-tabler.page-event-dashboard .admin-private-link-form__section-heading > i {
        width: 36px;
        height: 36px;
    }

    body.app-tabler.page-event-dashboard .admin-private-link-form__fields {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    body.app-tabler.page-event-dashboard .admin-private-link-form__fields .field--wide {
        grid-column: auto;
    }

    body.app-tabler.page-event-dashboard .admin-private-link-form__actions {
        padding: 16px 18px 18px;
    }

    body.app-tabler.page-event-dashboard .admin-private-link-form__actions > * {
        width: 100%;
    }

    body.app-tabler.page-event-dashboard #tickets .admin-private-access-empty {
        grid-template-columns: 36px minmax(0, 1fr);
        margin: 14px 14px 0;
        padding: 14px;
    }

    body.app-tabler.page-event-dashboard #tickets .admin-private-access-empty > i {
        width: 36px;
        height: 36px;
    }
}

body.app-tabler .admin-ticket-table-item__content strong,
body.app-tabler .admin-ticket-table-number {
    color: var(--app-ink);
    font-weight: 850;
}

body.app-tabler .admin-ticket-table-item__content small,
body.app-tabler .admin-ticket-table-item__content em,
body.app-tabler .admin-ticket-cell-note,
body.app-tabler .admin-ticket-occupancy small {
    color: var(--app-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

body.app-tabler .admin-ticket-table-item__content em {
    font-style: normal;
}

body.app-tabler .admin-ticket-table-number,
body.app-tabler .admin-ticket-cell-note {
    display: block;
}

body.app-tabler .admin-ticket-cell-note {
    margin-top: 0.18rem;
}

body.app-tabler .admin-ticket-occupancy {
    min-width: 150px;
    display: grid;
    gap: 0.34rem;
}

/* Managed event modal: compact stepper, stable form grid and fixed actions. */
body.app-tabler .event-modal.admin-modal--large .admin-modal__panel {
    width: min(1100px, calc(100vw - 48px));
    height: min(92dvh, 920px);
    max-height: calc(100dvh - 48px);
    border-radius: 16px;
}

body.app-tabler .event-modal__header {
    min-height: 128px;
}

body.app-tabler .event-modal__shell {
    min-height: 0;
    padding: 0;
    display: flex;
    overflow: hidden;
}

body.app-tabler .event-modal__form {
    width: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0;
}

body.app-tabler .event-modal__body {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    flex: 1 1 auto;
    overflow: hidden;
}

body.app-tabler .event-modal__steps {
    position: static;
    z-index: 1;
    margin: 0;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-content: start;
    align-items: stretch;
    gap: 8px;
    overflow: auto;
    border: 0;
    border-right: 1px solid var(--app-line);
    border-radius: 0;
    background: #f7fbff;
    box-shadow: none;
    backdrop-filter: none;
}

body.app-tabler .event-stepper button {
    width: 100%;
    min-height: 46px;
    padding: 0.55rem 0.7rem;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #44546a;
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
}

body.app-tabler .event-stepper button:hover,
body.app-tabler .event-stepper button.is-active {
    border-color: #b9d4f2;
    background: #eaf3ff;
    color: var(--app-brand);
    box-shadow: none;
}

body.app-tabler .event-stepper__number {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #dbeafe;
    color: var(--app-brand);
    font-size: 0.78rem;
    font-weight: 900;
}

body.app-tabler .event-stepper button.is-active .event-stepper__number {
    background: var(--app-brand);
    color: #ffffff;
}

body.app-tabler .event-modal__content {
    min-width: 0;
    min-height: 0;
    padding: 24px;
    display: grid;
    align-content: start;
    gap: 18px;
    overflow: auto;
    scroll-padding-top: 18px;
    background: #ffffff;
}

body.app-tabler .event-modal__content > .admin-form-section {
    min-width: 0;
    padding: 18px;
    gap: 16px;
    border-color: #cfe0f3;
    border-radius: 14px;
    box-shadow: none;
    scroll-margin-top: 18px;
}

body.app-tabler .event-modal__content > .admin-form-section--intro {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

body.app-tabler .event-modal__content .admin-form-section > header {
    align-items: start;
}

body.app-tabler .event-modal__content .admin-form-section > header > span {
    border-radius: 9px;
}

body.app-tabler .event-type-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

body.app-tabler .event-type-card {
    position: relative;
    min-width: 0;
    min-height: 166px;
    padding: 16px 14px;
    align-content: start;
    gap: 10px;
    border-radius: 14px;
    border-color: #cfe0f3;
    overflow: hidden;
}

body.app-tabler .event-type-card input[type="radio"] {
    width: 20px;
    height: 20px;
    justify-self: end;
    margin: 0;
    accent-color: var(--app-brand);
}

body.app-tabler .event-type-card strong,
body.app-tabler .event-type-card span {
    overflow-wrap: anywhere;
}

body.app-tabler .event-type-card:hover,
body.app-tabler .event-type-card.is-selected,
body.app-tabler .event-type-card:has(input:checked) {
    border-color: var(--app-brand);
    background: #f8fbff;
    box-shadow: 0 12px 24px rgba(0, 83, 155, 0.11);
    transform: none;
}

body.app-tabler .event-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
}

body.app-tabler .event-form-grid .field,
body.app-tabler .event-form-grid .admin-checkbox-line {
    min-width: 0;
}

body.app-tabler .event-modal__form input,
body.app-tabler .event-modal__form select,
body.app-tabler .event-modal__form textarea {
    min-width: 0;
    border-radius: 10px;
}

body.app-tabler .event-modal__form input[type="text"],
body.app-tabler .event-modal__form input[type="number"],
body.app-tabler .event-modal__form input[type="datetime-local"],
body.app-tabler .event-modal__form select {
    min-height: 48px;
}

body.app-tabler .event-modal__form input[type="color"] {
    height: 48px;
    min-height: 48px;
    padding: 4px;
}

body.app-tabler .event-modal__form textarea {
    min-height: 96px;
    resize: vertical;
}

body.app-tabler .event-modal__form input[name="location"] {
    min-height: 48px;
}

body.app-tabler .event-modal__form .field small,
body.app-tabler .event-modal__form .admin-form-note {
    color: #526179;
    line-height: 1.45;
}

body.app-tabler .event-modal__form .admin-toggle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.app-tabler .event-modal__form .admin-toggle-grid label,
body.app-tabler .event-modal__form .admin-checkbox-line {
    min-width: 0;
    align-items: flex-start;
    border-radius: 10px;
}

body.app-tabler .event-modal__form .admin-toggle-grid input,
body.app-tabler .event-modal__form .admin-checkbox-line input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin-top: 0.1rem;
    flex: 0 0 auto;
}

body.app-tabler .event-modal__footer {
    position: static;
    z-index: 3;
    margin: 0 !important;
    padding: 16px 24px !important;
    flex: 0 0 auto;
    border-top: 1px solid var(--app-line);
    background: #ffffff;
    box-shadow: 0 -12px 28px rgba(15, 35, 64, 0.06);
}

@media (max-width: 760px) {
    body.app-tabler .home-hero {
        min-height: auto;
        padding-block: 3.25rem;
        border-radius: 0;
    }

    body.app-tabler .home-hero__content {
        width: min(100% - 1.25rem, 1180px);
    }

    body.app-tabler .home-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.app-tabler .events-featured-card__actions,
    body.app-tabler .public-event-card__footer > div,
    body.app-tabler .account-next-event__actions,
    body.app-tabler .account-ticket-card__actions,
    body.app-tabler .admin-selected-event-card__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    body.app-tabler .public-event-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    body.app-tabler .admin-modal__panel {
        max-height: 94vh;
    }

    body.app-tabler .event-modal.admin-modal--large .admin-modal__panel {
        width: calc(100vw - 16px);
        height: calc(100dvh - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 14px;
    }

    body.app-tabler .event-modal__header {
        min-height: auto;
        padding: 18px;
    }

    body.app-tabler .event-modal__body {
        grid-template-columns: 1fr;
    }

    body.app-tabler .event-modal__steps {
        padding: 12px;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: 0;
        border-bottom: 1px solid var(--app-line);
        scrollbar-width: thin;
        scrollbar-color: #9db3c9 #eef3f8;
    }

    body.app-tabler .event-modal__steps::-webkit-scrollbar {
        height: 6px;
    }

    body.app-tabler .event-modal__steps::-webkit-scrollbar-track {
        background: #eef3f8;
    }

    body.app-tabler .event-modal__steps::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: #9db3c9;
    }

    body.app-tabler .event-stepper button {
        width: auto;
        min-width: max-content;
        min-height: 40px;
        grid-template-columns: 24px auto;
        padding: 0.48rem 0.65rem;
        white-space: nowrap;
    }

    body.app-tabler .event-stepper__number {
        width: 24px;
        height: 24px;
    }

    body.app-tabler .event-modal__content {
        padding: 16px;
        gap: 14px;
    }

    body.app-tabler .event-modal__content > .admin-form-section {
        padding: 16px;
        border-radius: 12px;
    }

    body.app-tabler .event-type-grid,
    body.app-tabler .event-form-grid,
    body.app-tabler .event-modal__form .admin-toggle-grid {
        grid-template-columns: 1fr;
    }

    body.app-tabler .event-type-card {
        min-height: auto;
    }

    body.app-tabler .event-modal__footer {
        padding: 12px 16px !important;
    }

    body.app-tabler .event-admin-shell,
    body.app-tabler .schedule-admin-shell {
        min-width: 0;
    }

    body.app-tabler .admin-ticket-create-form {
        padding: 1rem;
        grid-template-columns: 1fr;
    }

    body.app-tabler .admin-ticket-toolbar {
        padding: 1rem;
        margin-bottom: 0.95rem;
    }

    body.app-tabler .admin-ticket-create-form__grid {
        grid-column: 1;
        grid-row: auto;
        order: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.app-tabler .admin-ticket-create-form__header,
    body.app-tabler .admin-ticket-create-form__actions,
    body.app-tabler .admin-ticket-art-preview {
        grid-column: 1;
        grid-row: auto;
    }

    body.app-tabler .admin-ticket-create-form__header,
    body.app-tabler .admin-ticket-create-form__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.app-tabler .admin-ticket-create-form__header {
        order: 1;
    }

    body.app-tabler .admin-ticket-art-preview {
        order: 3;
    }

    body.app-tabler .admin-ticket-create-form__actions {
        order: 4;
    }

    body.app-tabler .admin-ticket-create-form__actions .admin-primary-button {
        width: 100%;
    }
}

@media (min-width: 761px) and (max-width: 920px) {
    body.app-tabler .event-modal.admin-modal--large .admin-modal__panel {
        width: calc(100vw - 28px);
    }

    body.app-tabler .event-modal__body {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    body.app-tabler .event-type-grid,
    body.app-tabler .event-modal__form .admin-toggle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.app-tabler .admin-ticket-create-form__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.app-tabler .admin-ticket-create-form__grid {
        grid-template-columns: 1fr;
    }

    body.app-tabler .admin-ticket-switch {
        align-items: flex-start;
    }

    body.app-tabler .admin-ticket-table-item {
        min-width: 0;
        grid-template-columns: 40px minmax(0, 1fr);
    }

    body.app-tabler .admin-ticket-table-item__media {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    body.app-tabler .admin-ticket-occupancy {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .admin-primary-button,
    .admin-ghost-button,
    .admin-export-button,
    .admin-danger-button,
    .admin-table-link,
    .public-nav__cta {
        transition: none;
    }

    .button:hover,
    .admin-primary-button:hover,
    .admin-ghost-button:hover,
    .admin-export-button:hover,
    .admin-danger-button:hover,
    .admin-table-link:hover,
    .public-nav__cta:hover {
        transform: none;
    }
}

@media print {
    body.app-tabler {
        background: #ffffff;
    }

    .public-header,
    .public-footer,
    .certificate-print-actions {
        display: none !important;
    }

    .certificate-print {
        box-shadow: none;
    }
}

/* Certificados persistentes e biblioteca de moldes */
.certificate-template-picker {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.certificate-template-picker > legend {
    margin-bottom: 10px;
    color: var(--app-ink, #17263a);
    font-weight: 800;
}

.certificate-template-picker__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.certificate-template-choice {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--app-line, #d9e3ee);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.certificate-template-choice:has(input:checked) {
    border-color: var(--app-brand, #00539b);
    box-shadow: 0 0 0 3px rgba(0, 83, 155, 0.12);
}

.certificate-template-choice input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
}

.certificate-template-choice:focus-within {
    outline: 3px solid rgba(0, 83, 155, 0.24);
    outline-offset: 2px;
}

.certificate-template-choice__preview {
    position: relative;
    display: grid;
    align-content: center;
    min-height: 92px;
    padding: 14px 10px 12px 34%;
    overflow: hidden;
    border: 1px solid #d7e1ec;
    border-radius: 8px;
    background: #fbfdff;
    color: #17324d;
}

.certificate-template-choice__preview i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 27%;
    background: #075b91;
}

.certificate-template-choice__preview b,
.certificate-template-choice__preview em {
    overflow: hidden;
    font-size: 0.68rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.certificate-template-choice__preview em {
    color: #64748b;
    font-size: 0.55rem;
}

.certificate-template-choice--classic .certificate-template-choice__preview {
    padding-left: 10px;
    border: 3px double #075b91;
    text-align: center;
}

.certificate-template-choice--classic .certificate-template-choice__preview i {
    display: none;
}

.certificate-template-choice--event .certificate-template-choice__preview {
    background: linear-gradient(135deg, #f6f3ff 0 70%, #6c4cf1 70%);
}

.certificate-template-choice--event .certificate-template-choice__preview i {
    inset: 8px auto 8px 8px;
    width: 4px;
    background: #6c4cf1;
}

.certificate-template-choice--external .certificate-template-choice__preview {
    padding-left: 10px;
    background:
        linear-gradient(135deg, transparent 0 48%, rgba(0, 83, 155, 0.08) 48% 52%, transparent 52%),
        #f7fafc;
    text-align: center;
}

.certificate-template-choice--external .certificate-template-choice__preview i {
    display: none;
}

.certificate-template-choice small {
    color: var(--app-muted, #64748b);
    line-height: 1.4;
}

.certificate-template-upload {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
    gap: 14px 18px;
    align-items: start;
    padding: 16px;
    border: 1px dashed #b9cadb;
    border-radius: 14px;
    background: #f8fbfe;
}

.certificate-template-upload p {
    margin: 5px 0 0;
    color: var(--app-muted, #64748b);
}

.certificate-template-upload > img {
    width: 100%;
    max-height: 180px;
    border: 1px solid #d7e1ec;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
}

.certificate-template-upload__positions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.certificate-admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.certificate-admin-metrics article {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--app-line, #d9e3ee);
    border-radius: 14px;
    background: #f8fbfe;
}

.certificate-admin-metrics span,
.certificate-admin-metrics small {
    color: var(--app-muted, #64748b);
}

.certificate-admin-metrics strong {
    color: var(--app-ink, #17263a);
    font-size: 1.7rem;
}

.certificate-admin-list td > small,
.certificate-admin-list td > strong {
    display: block;
}

.certificate-admin-actions {
    display: grid;
    min-width: 220px;
    gap: 7px;
}

.certificate-admin-actions > a {
    width: fit-content;
    color: var(--app-brand, #00539b);
    font-weight: 800;
}

.certificate-admin-actions form {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) auto;
    gap: 6px;
}

.certificate-admin-actions input {
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--app-line, #d9e3ee);
    border-radius: 8px;
    padding: 7px 9px;
}

.certificate-admin-actions button {
    min-height: 36px;
    border: 0;
    border-radius: 8px;
    padding: 7px 10px;
    background: #e8f1f8;
    color: #075b91;
    font-weight: 800;
}

.certificate-admin-actions button.is-danger {
    background: #fff0f0;
    color: #a72525;
}

.certificate-card--invalid {
    border-color: rgba(167, 37, 37, 0.35);
    background: #fffafa;
}

body.page-certificate-print {
    background: #eaf0f7;
}

.certificate-print-shell {
    display: grid;
    align-content: start;
    min-height: 100vh;
    padding: 28px;
    background: #eaf0f7;
}

.certificate-print {
    --certificate-accent: #00639b;
    position: relative;
    width: min(1120px, 100%);
    min-height: 0;
    aspect-ratio: 842 / 595;
    margin: 0 auto;
    padding: clamp(22px, 4vw, 54px) clamp(24px, 5vw, 64px) clamp(20px, 3.5vw, 46px) 29%;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 45, 80, 0.16);
}

.certificate-modern-rail {
    position: absolute;
    inset: 0 auto 0 0;
    width: 24%;
    background: var(--certificate-accent);
}

.certificate-modern-rail::before {
    position: absolute;
    top: 12%;
    left: 15%;
    color: rgba(255, 255, 255, 0.98);
    font-size: clamp(0.82rem, 1.7vw, 1.7rem);
    font-weight: 900;
    content: "CRECI/CE";
}

.certificate-modern-rail::after {
    position: absolute;
    bottom: 25%;
    left: 15%;
    color: rgba(255, 255, 255, 0.34);
    font-size: clamp(1.2rem, 3.8vw, 3.6rem);
    font-weight: 900;
    content: "CERTIFICADO";
    transform: rotate(-90deg) translateX(-25%);
    transform-origin: left bottom;
}

.certificate-print__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 clamp(12px, 2vw, 24px);
    border-bottom: 1px solid #dce5ed;
}

.certificate-print__header > div:last-child {
    display: grid;
    max-width: 48%;
    gap: 3px;
    text-align: right;
}

.certificate-print__header small,
.certificate-print__footer small {
    color: #708091;
    font-size: clamp(0.48rem, 0.8vw, 0.72rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.certificate-print__brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
}

.certificate-print__brand > span {
    display: grid;
    place-items: center;
    width: clamp(28px, 3.4vw, 42px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--certificate-accent);
    color: #fff;
    font-size: clamp(0.6rem, 1vw, 0.9rem);
}

.certificate-print__body {
    display: grid;
    align-content: center;
    justify-items: start;
    min-height: 65%;
    padding: clamp(18px, 3.5vw, 50px) 0 clamp(12px, 2vw, 26px);
    text-align: left;
}

.certificate-print__body .eyebrow {
    color: var(--certificate-accent);
    font-size: clamp(0.48rem, 0.9vw, 0.82rem);
}

.certificate-print__body h1 {
    max-width: 780px;
    margin: 5px 0 clamp(12px, 2vw, 24px);
    color: #17324d;
    font-size: clamp(1rem, 2.5vw, 2.5rem);
    line-height: 1.08;
}

.certificate-print__body h2 {
    margin: 2px 0 0;
    color: var(--certificate-accent);
    font-size: clamp(1.25rem, 3.2vw, 3.15rem);
    line-height: 1.08;
}

.certificate-print__body h3 {
    max-width: 720px;
    margin: 3px 0 12px;
    color: #17324d;
    font-size: clamp(0.82rem, 1.7vw, 1.65rem);
    line-height: 1.2;
}

.certificate-print__body p,
.certificate-print__body small {
    margin: 5px 0;
    color: #708091;
    font-size: clamp(0.54rem, 1vw, 0.94rem);
}

.certificate-workload-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 12px;
    background: color-mix(in srgb, var(--certificate-accent) 12%, #fff);
    color: var(--certificate-accent);
    font-size: clamp(0.52rem, 0.9vw, 0.82rem);
    font-weight: 900;
}

.certificate-print__footer {
    display: grid;
    grid-template-columns: auto minmax(120px, 1.3fr) minmax(90px, 0.8fr) minmax(120px, 1fr);
    align-items: end;
    gap: clamp(8px, 2vw, 24px);
    margin: 0;
    color: #17324d;
}

.certificate-print__footer p {
    display: grid;
    gap: 2px;
    margin: 0;
}

.certificate-validation-mark {
    width: clamp(28px, 4vw, 48px);
    aspect-ratio: 1;
    background:
        repeating-linear-gradient(90deg, #17324d 0 3px, transparent 3px 6px),
        repeating-linear-gradient(0deg, #17324d 0 3px, transparent 3px 6px);
}

.certificate-signature {
    display: grid;
    gap: 6px;
    text-align: center;
}

.certificate-signature span {
    width: 100%;
    height: 1px;
    background: #17324d;
}

.certificate-signature strong,
.certificate-print__footer strong,
.certificate-print__header strong {
    font-size: clamp(0.5rem, 0.95vw, 0.88rem);
}

.certificate-print--institutional-classic {
    padding: 6% 8%;
    border: 8px double var(--certificate-accent);
    background: #fffdf7;
    text-align: center;
}

.certificate-print--institutional-classic .certificate-modern-rail {
    display: none;
}

.certificate-print--institutional-classic .certificate-print__body {
    justify-items: center;
    text-align: center;
}

.certificate-print--institutional-classic .certificate-print__header {
    justify-content: center;
}

.certificate-print--institutional-classic .certificate-print__header > div:last-child {
    display: none;
}

.certificate-print--event-identity {
    background: linear-gradient(135deg, #fbfaff 0 73%, color-mix(in srgb, var(--certificate-accent) 25%, #fff) 73%);
}

.certificate-print--event-identity .certificate-modern-rail {
    inset: 8% auto 8% 5%;
    width: 6px;
    border-radius: 99px;
}

.certificate-print--event-identity .certificate-modern-rail::before,
.certificate-print--event-identity .certificate-modern-rail::after {
    display: none;
}

.certificate-print--external {
    aspect-ratio: 842 / 595;
    padding: 0;
    background-color: #fff;
    background-image: var(--certificate-external-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.certificate-external-brand {
    position: absolute;
    top: 5%;
    left: 5%;
    display: flex;
    align-items: center;
    gap: clamp(5px, 0.8vw, 10px);
    color: #0f172a;
    font-size: clamp(0.52rem, 1.25vw, 1rem);
    font-weight: 800;
}

.certificate-external-brand img {
    width: clamp(24px, 4vw, 48px);
    height: clamp(24px, 4vw, 48px);
    object-fit: contain;
}

.certificate-external-brand--black img {
    filter: brightness(0);
}

.certificate-external-brand--white {
    color: #fff;
}

.certificate-external-brand--white img {
    filter: brightness(0) invert(1);
}

.certificate-external-brand--blue {
    color: #00639b;
}

.certificate-external-brand--blue img {
    filter: none;
}

.certificate-external-title {
    position: absolute;
    top: calc(var(--certificate-participant-y) - 16%);
    left: 9%;
    width: 82%;
    color: var(--certificate-text-color);
    font-size: clamp(1rem, 2.5vw, 2.4rem);
    font-weight: 900;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
    transform: translateY(-50%);
}

.certificate-external-field {
    position: absolute;
    left: 9%;
    width: 82%;
    color: var(--certificate-text-color);
    text-align: center;
    transform: translateY(-50%);
}

.certificate-external-field--participant {
    top: var(--certificate-participant-y);
    display: grid;
    gap: 4px;
}

.certificate-external-field--intro {
    top: calc(var(--certificate-participant-y) - 7%);
    font-size: clamp(0.5rem, 1.15vw, 1.05rem);
    font-weight: 700;
}

.certificate-external-field--participant strong {
    font-size: clamp(1rem, 3vw, 3rem);
    line-height: 1.08;
}

.certificate-external-field--participant span,
.certificate-external-field--workload {
    font-size: clamp(0.5rem, 1.2vw, 1.15rem);
}

.certificate-external-field--course {
    top: var(--certificate-course-y);
    font-size: clamp(0.72rem, 1.8vw, 1.7rem);
    font-weight: 850;
}

.certificate-external-field--participation {
    top: calc(var(--certificate-course-y) - 5%);
    font-size: clamp(0.5rem, 1.15vw, 1.05rem);
    font-weight: 700;
}

.certificate-external-field--workload {
    top: var(--certificate-workload-y);
    font-weight: 800;
}

.certificate-external-code {
    position: absolute;
    right: 2%;
    bottom: 2%;
    color: var(--certificate-text-color);
    font-size: clamp(0.34rem, 0.65vw, 0.62rem);
}

@media (max-width: 980px) {
    .certificate-template-picker__grid,
    .certificate-admin-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 640px) {
    .certificate-template-picker__grid,
    .certificate-template-upload,
    .certificate-template-upload__positions,
    .certificate-admin-metrics {
        grid-template-columns: 1fr;
    }

    .certificate-template-upload__positions {
        grid-column: auto;
    }

    .certificate-print-shell {
        padding: 12px;
    }

    .certificate-print {
        padding-left: 29%;
        border-radius: 8px;
    }

    .certificate-print-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .certificate-print-actions > * {
        width: 100%;
        justify-content: center;
    }

    .certificate-admin-actions {
        min-width: 190px;
    }

    .certificate-admin-actions form {
        grid-template-columns: 1fr;
    }
}

@media print {
    @page {
        size: A4 landscape;
        margin: 0;
    }

    body.page-certificate-print,
    .certificate-print-shell {
        background: #fff !important;
    }

    .certificate-print-actions,
    body.page-certificate-print > footer {
        display: none !important;
    }

    .certificate-print-shell {
        min-height: 0;
        padding: 0;
    }

    .certificate-print {
        width: 297mm;
        height: 210mm;
        max-width: none;
        aspect-ratio: auto;
        border-radius: 0;
        box-shadow: none;
        break-inside: avoid;
    }
}

.admin-closing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.5fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 18px;
    border-top: 4px solid var(--app-brand);
}

.admin-closing-hero h2,
.admin-closing-certificate h2,
.admin-closing-reports h2 {
    margin: 6px 0 8px;
}

.admin-closing-hero p,
.admin-closing-certificate p,
.admin-closing-reports p,
.admin-closing-checklist p {
    color: var(--app-muted);
}

.admin-closing-hero__actions,
.admin-closing-certificate__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.admin-closing-certificate__actions form {
    margin: 0;
}

.admin-closing-hero > aside {
    display: grid;
    gap: 8px;
    padding: 20px;
    border-radius: var(--app-radius);
    background: var(--app-brand-soft);
}

.admin-closing-hero > aside > strong {
    color: var(--app-brand-dark);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1;
}

.admin-closing-hero > aside > span {
    color: var(--app-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.admin-closing-hero > aside > div {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #d8e5f4;
}

.admin-closing-hero > aside > div > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--app-brand), var(--app-accent));
}

.admin-closing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.admin-closing-side {
    display: grid;
    gap: 18px;
}

.admin-closing-checklist > .admin-card-header > strong {
    white-space: nowrap;
    color: var(--app-brand);
}

.admin-closing-checklist__items {
    display: grid;
    gap: 10px;
}

.admin-closing-checklist__items article {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius);
    background: var(--app-surface-soft);
}

.admin-closing-checklist__items article > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    background: var(--app-warning-soft);
    color: var(--app-warning);
    font-size: 1.2rem;
}

.admin-closing-checklist__items article.is-complete > span {
    background: var(--app-accent-soft);
    color: var(--app-accent);
}

.admin-closing-checklist__items h3 {
    margin: 3px 0 4px;
    font-size: 1rem;
}

.admin-closing-checklist__items small {
    color: var(--app-muted);
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
}

.admin-closing-checklist__items p {
    margin: 0;
    font-size: 0.84rem;
}

.admin-closing-checklist__items article > a,
.admin-closing-checklist__items article > button {
    border: 0;
    background: transparent;
    color: var(--app-brand);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.admin-closing-certificate__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.admin-closing-certificate__metrics span {
    display: grid;
    gap: 3px;
    padding: 12px;
    border-radius: var(--app-radius-sm);
    background: var(--app-surface-soft);
    color: var(--app-muted);
    font-size: 0.74rem;
}

.admin-closing-certificate__metrics strong {
    color: var(--app-ink);
    font-size: 1.35rem;
}

.admin-closing-impact {
    margin: 14px 0 0;
    padding: 12px;
    border-radius: var(--app-radius-sm);
    font-size: 0.82rem;
}

.admin-closing-impact.is-warning {
    background: var(--app-warning-soft);
    color: #7a4b0a;
}

.admin-closing-impact.is-success {
    background: var(--app-accent-soft);
    color: #076143;
}

.admin-closing-reports nav {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.admin-closing-reports nav a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-sm);
    color: inherit;
    text-decoration: none;
}

.admin-closing-reports nav a > i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--app-brand-soft);
    color: var(--app-brand);
}

.admin-closing-reports nav a span {
    display: grid;
    gap: 2px;
}

.admin-closing-reports nav a small {
    color: var(--app-muted);
}

.admin-closing-reports details {
    margin-top: 12px;
    border-top: 1px solid var(--app-line);
    padding-top: 12px;
}

.admin-closing-reports summary {
    color: var(--app-brand);
    font-weight: 850;
    cursor: pointer;
}

.admin-closing-reports details div {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.admin-closing-reports details a {
    font-size: 0.82rem;
}

.admin-closing-grid + .certificate-admin-list {
    margin-top: 0;
}

/* Fase F: listas administrativas, filtros, paginação e painéis laterais. */
.admin-list-block {
    min-width: 0;
    display: grid;
}

.admin-list-toolbar {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--app-line);
    background: #ffffff;
}

.admin-list-toolbar__filters,
.admin-list-toolbar__actions {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-list-toolbar__filters {
    flex: 1 1 auto;
}

.admin-list-filter-toggle {
    display: none;
}

.admin-list-filter-panel {
    display: contents;
}

.admin-list-toolbar__actions {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.admin-list-search {
    width: min(100%, 390px);
    min-width: 220px;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-sm);
    background: #ffffff;
    color: var(--app-muted);
}

.admin-list-search:focus-within,
.admin-list-filter:focus-within {
    border-color: var(--app-brand);
    box-shadow: 0 0 0 3px rgba(0, 74, 143, 0.12);
}

.admin-list-search input,
.admin-list-filter select,
.admin-list-page-size select {
    min-width: 0;
    min-height: 42px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--app-ink);
    font: inherit;
}

.admin-list-search input {
    width: 100%;
}

.admin-list-filter,
.admin-list-page-size {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px 0 12px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-sm);
    background: #ffffff;
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-list-export-menu {
    position: relative;
}

.admin-list-export-menu > summary {
    list-style: none;
    cursor: pointer;
}

.admin-list-export-menu > summary::-webkit-details-marker {
    display: none;
}

.admin-list-export-menu > div {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    right: 0;
    width: min(280px, calc(100vw - 32px));
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-sm);
    background: #ffffff;
    box-shadow: var(--app-shadow);
}

.admin-list-export-menu > div a {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--app-ink);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 750;
}

.admin-list-export-menu > div a:hover,
.admin-list-export-menu > div a:focus-visible {
    background: var(--app-brand-soft);
    color: var(--app-brand);
}

.admin-list-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--app-line);
    background: var(--app-surface-soft);
    color: var(--app-muted);
    font-size: 0.78rem;
}

.admin-list-active-filters[hidden] {
    display: none;
}

.admin-list-active-filters > span,
.admin-list-filter-chip {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid #bfd3e8;
    border-radius: 999px;
    background: #ffffff;
    color: var(--app-brand);
    font: inherit;
    font-weight: 800;
}

.admin-list-filter-chip {
    cursor: pointer;
    text-decoration: none;
}

.admin-closing-reports details:not([open]) > div {
    display: none;
}

.admin-list-active-filters > a {
    color: var(--app-brand);
    font-weight: 850;
}

.admin-list-footer {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 20px;
    border-top: 1px solid var(--app-line);
    background: #ffffff;
    color: var(--app-muted);
    font-size: 0.8rem;
}

.admin-list-footer p {
    margin: 0;
}

.admin-list-footer,
.admin-list-footer p strong,
.admin-list-page-size,
.admin-list-page-size select,
.admin-list-pagination > span:not([aria-hidden]) {
    color: #4b5563;
    font-weight: 400;
}

.admin-list-page-sizes,
.admin-list-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-list-page-sizes a,
.admin-list-pagination a,
.admin-list-pagination button,
.admin-list-pagination > span[aria-hidden="true"] {
    min-width: 38px;
    min-height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0 8px;
    border: 1px solid var(--app-line);
    border-radius: 9px;
    background: #ffffff;
    color: var(--app-muted);
    text-decoration: none;
    font: inherit;
    font-weight: 850;
}

.admin-list-pagination > span:not([aria-hidden]),
.admin-list-page-sizes > span {
    padding: 0 4px;
    white-space: nowrap;
}

.admin-list-page-sizes a.is-active,
.admin-list-pagination a.is-active {
    border-color: var(--app-brand);
    background: var(--app-brand);
    color: #ffffff;
}

.admin-list-pagination button:not(:disabled) {
    border-color: #c9d3df;
    color: #3f4b5c;
    cursor: pointer;
}

.admin-list-pagination button:disabled {
    color: #c2cad5;
    cursor: not-allowed;
    opacity: 1;
}

.admin-list-pagination > a:not(.is-active) {
    border-color: #c9d3df;
    color: #3f4b5c;
}

.admin-list-pagination > span[aria-hidden="true"] {
    color: #c2cad5;
}

.admin-table th,
.admin-table td {
    padding: 11px 14px;
}

.admin-table tbody tr {
    min-height: 58px;
}

[data-admin-directory-item][hidden],
.is-filter-hidden {
    display: none !important;
}

.has-admin-directory-filter .admin-schedule-column > .admin-empty {
    display: none;
}

.admin-modal--drawer {
    padding: 0;
    place-items: stretch end;
}

.admin-modal--drawer .admin-modal__panel,
.admin-modal--drawer.admin-modal--large .admin-modal__panel {
    width: min(580px, 100vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: var(--app-radius) 0 0 var(--app-radius);
}

.admin-modal--drawer .admin-modal__header,
.admin-modal--drawer .admin-modal__footer {
    position: sticky;
    z-index: 2;
}

.admin-modal--drawer .admin-modal__header {
    top: 0;
}

.admin-modal--drawer .admin-modal__footer {
    bottom: 0;
    background: #ffffff;
}

body.app-tabler .admin-modal--drawer .admin-ticket-create-form {
    grid-template-columns: 1fr;
    padding: 20px;
    border: 0;
}

body.app-tabler .admin-modal--drawer .admin-ticket-create-form__grid,
body.app-tabler .admin-modal--drawer .admin-ticket-art-preview,
body.app-tabler .admin-modal--drawer .admin-ticket-create-form__actions {
    grid-column: 1;
    grid-row: auto;
}

body.app-tabler .admin-modal--drawer .admin-ticket-create-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.app-tabler .admin-modal--drawer .admin-ticket-art-preview__card {
    min-height: 250px;
}

.admin-modal--drawer .admin-user-create-form,
.admin-modal--drawer .admin-user-edit-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 0;
}

.admin-modal--drawer .admin-form-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-event-dashboard .admin-modal--drawer .admin-participant-account-form {
    display: grid;
    align-content: start;
    grid-auto-rows: max-content;
    gap: 18px;
    padding: 22px 24px 0;
}

body.page-event-dashboard .admin-modal--drawer.admin-modal--participant-account {
    padding-block: 16px;
    place-items: center end;
}

body.page-event-dashboard .admin-modal--drawer.admin-modal--participant-account .admin-modal__panel {
    height: auto;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
}

body.page-event-dashboard .admin-participant-account-form .admin-form-grid {
    gap: 14px;
}

body.page-event-dashboard .admin-participant-account-form .admin-form-field {
    align-content: start;
}

body.page-event-dashboard .admin-participant-account-form .admin-form-field > span {
    color: var(--app-ink);
    font-size: 0.82rem;
    font-weight: 800;
}

body.page-event-dashboard .admin-participant-account-form .admin-form-field > small {
    color: var(--app-muted);
    font-size: 0.74rem;
    line-height: 1.4;
}

body.page-event-dashboard .admin-participant-account-form input[type="text"],
body.page-event-dashboard .admin-participant-account-form input[type="email"],
body.page-event-dashboard .admin-participant-account-form input[type="tel"] {
    width: 100%;
    min-height: 44px;
    padding: 0.68rem 0.78rem;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-sm);
    outline: 0;
    background: #ffffff;
    color: var(--app-ink);
    font: inherit;
}

body.page-event-dashboard .admin-participant-account-form input[type="text"]:focus,
body.page-event-dashboard .admin-participant-account-form input[type="email"]:focus,
body.page-event-dashboard .admin-participant-account-form input[type="tel"]:focus {
    border-color: var(--app-brand);
    box-shadow: 0 0 0 3px rgba(0, 105, 180, 0.12);
}

body.page-event-dashboard .admin-participant-account-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

body.page-event-dashboard .admin-participant-account-metrics article {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #d8e5f2;
    border-radius: var(--app-radius-sm);
    background: #f4f8fc;
}

body.page-event-dashboard .admin-participant-account-metrics i {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 10px;
    background: #e2f0ff;
    color: var(--app-brand);
    font-size: 1.05rem;
}

body.page-event-dashboard .admin-participant-account-metrics strong,
body.page-event-dashboard .admin-participant-account-metrics span {
    display: block;
}

body.page-event-dashboard .admin-participant-account-metrics strong {
    color: var(--app-ink);
    font-size: 1rem;
    line-height: 1.1;
}

body.page-event-dashboard .admin-participant-account-metrics span {
    margin-top: 3px;
    overflow: hidden;
    color: var(--app-muted);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-event-dashboard .admin-participant-account-section {
    padding: 16px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius);
    background: #ffffff;
}

body.page-event-dashboard .admin-participant-account-section > header {
    margin-bottom: 14px;
}

body.page-event-dashboard .admin-participant-account-section h3,
body.page-event-dashboard .admin-participant-account-section p {
    margin: 0;
}

body.page-event-dashboard .admin-participant-account-section h3 {
    color: var(--app-ink);
    font-size: 0.98rem;
}

body.page-event-dashboard .admin-participant-account-section p {
    margin-top: 3px;
    color: var(--app-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

body.page-event-dashboard .admin-participant-account-verification {
    align-items: flex-start;
    min-height: 0;
    padding: 12px;
    border-color: #cfe0f0;
    background: #f5f9fd;
    cursor: pointer;
}

body.page-event-dashboard .admin-participant-account-verification > span,
body.page-event-dashboard .admin-participant-account-verification strong,
body.page-event-dashboard .admin-participant-account-verification small {
    display: block;
}

body.page-event-dashboard .admin-participant-account-verification strong {
    color: var(--app-ink);
    font-size: 0.82rem;
}

body.page-event-dashboard .admin-participant-account-verification small {
    margin-top: 3px;
    color: var(--app-muted);
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.4;
}

body.page-event-dashboard .admin-modal--drawer .admin-participant-account-form > .admin-modal__footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    align-items: center;
    margin: 0 -24px;
    padding: 16px 24px;
    border-top: 1px solid var(--app-line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
}

body.page-event-dashboard .admin-participant-account-form > .admin-modal__footer > * {
    min-height: 44px;
}

@media (max-width: 900px) {
    .admin-list-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-list-toolbar__filters,
    .admin-list-toolbar__actions {
        width: 100%;
    }

    .admin-list-search {
        width: 100%;
        max-width: none;
    }

    .admin-list-toolbar__actions {
        justify-content: flex-start;
    }

    .admin-list-footer {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .admin-list-toolbar,
    .admin-list-active-filters,
    .admin-list-footer {
        padding-right: 14px;
        padding-left: 14px;
    }

    .admin-list-toolbar__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-list-toolbar__filters {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
    }

    .admin-list-search {
        min-width: 0;
    }

    .admin-list-filter-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 0 11px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border: 1px solid var(--app-line);
        border-radius: var(--app-radius-sm);
        background: #ffffff;
        color: var(--app-brand);
        font: inherit;
        font-size: 0.82rem;
        font-weight: 850;
    }

    .admin-list-filter-toggle:focus-visible {
        outline: 3px solid rgba(0, 74, 143, 0.2);
        outline-offset: 2px;
    }

    .admin-list-filter-toggle strong {
        min-width: 22px;
        min-height: 22px;
        padding: 0 6px;
        display: inline-grid;
        place-items: center;
        border-radius: 999px;
        background: var(--app-brand);
        color: #ffffff;
        font-size: 0.72rem;
        line-height: 1;
    }

    .admin-list-filter-toggle strong[hidden] {
        display: none;
    }

    .admin-list-filter-panel {
        min-width: 0;
        grid-column: 1 / -1;
        display: grid;
        gap: 10px;
        padding-top: 2px;
    }

    .admin-list-toolbar.is-mobile-filter-ready .admin-list-filter-panel {
        display: none;
    }

    .admin-list-toolbar.is-mobile-filter-ready.is-mobile-filter-open .admin-list-filter-panel {
        display: grid;
    }

    .admin-list-filter,
    .admin-list-toolbar__actions > *,
    .admin-list-toolbar__actions .admin-primary-button,
    .admin-list-toolbar__actions .admin-export-button {
        width: 100%;
    }

    .admin-list-export-menu > div {
        right: auto;
        left: 0;
    }

    .admin-list-footer {
        flex-direction: column;
    }

    .admin-list-page-sizes,
    .admin-list-pagination,
    .admin-list-page-size {
        width: 100%;
        justify-content: space-between;
    }

    .admin-modal--drawer,
    .admin-modal--drawer.admin-modal--large {
        padding: 12px 0 0;
        place-items: end stretch;
    }

    .admin-modal--drawer .admin-modal__panel,
    .admin-modal--drawer.admin-modal--large .admin-modal__panel {
        width: 100vw;
        height: min(92vh, 100%);
        height: min(92dvh, 100%);
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: var(--app-radius) var(--app-radius) 0 0;
    }

    body.app-tabler .admin-modal--drawer .admin-ticket-create-form__grid,
    .admin-modal--drawer .admin-user-create-form,
    .admin-modal--drawer .admin-user-edit-form,
    .admin-modal--drawer .admin-form-section__grid {
        grid-template-columns: 1fr;
    }

    body.page-event-dashboard .admin-modal--drawer .admin-participant-account-form {
        padding: 18px 16px 0;
    }

    body.page-event-dashboard .admin-modal--drawer.admin-modal--participant-account {
        padding: 12px 0 0;
        place-items: end stretch;
    }

    body.page-event-dashboard .admin-modal--drawer.admin-modal--participant-account .admin-modal__panel {
        height: auto;
        max-height: calc(100dvh - 12px);
    }

    body.page-event-dashboard .admin-participant-account-metrics {
        grid-template-columns: 1fr;
    }

    body.page-event-dashboard .admin-participant-account-form .admin-form-grid {
        grid-template-columns: 1fr;
    }

    body.page-event-dashboard .admin-modal--drawer .admin-participant-account-form > .admin-modal__footer {
        margin-inline: -16px;
        padding: 14px 16px;
    }

    body.page-event-dashboard .admin-participant-account-form > .admin-modal__footer > * {
        flex: 1 1 0;
        justify-content: center;
    }
}

@media (max-width: 1050px) {
    .admin-closing-grid,
    .admin-closing-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .admin-closing-checklist__items article {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .admin-closing-checklist__items article > a,
    .admin-closing-checklist__items article > button {
        grid-column: 2;
        justify-self: start;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .admin-list-page-size select {
        min-width: 44px;
    }

    .admin-closing-certificate__metrics {
        grid-template-columns: 1fr;
    }

    .admin-closing-hero__actions,
    .admin-closing-certificate__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-closing-hero__actions > *,
    .admin-closing-certificate__actions > *,
    .admin-closing-certificate__actions button {
        width: 100%;
        justify-content: center;
    }
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10000;
    padding: 10px 14px;
    border-radius: 8px;
    background: #062b4c;
    color: #fff;
    font-weight: 850;
    text-decoration: none;
    transform: translateY(-160%);
}

.skip-link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    transform: translateY(0);
}

/* Phase G: canonical schedule editor, settings and archive */
.admin-section-eyebrow {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--app-brand);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-schedule-editor > .admin-modern-form,
.admin-schedule-settings-form {
    padding: 22px;
    grid-template-columns: minmax(0, 1fr);
}

.admin-schedule-editor > .admin-modern-form > .admin-modal__footer,
.admin-form-page-footer {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 4px;
}

.admin-schedule-archive {
    margin: 0 18px 18px;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #ffffff;
}

.admin-schedule-archive > summary {
    min-height: 52px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--app-ink);
    font-weight: 850;
    cursor: pointer;
    list-style: none;
}

.admin-schedule-archive > summary::-webkit-details-marker {
    display: none;
}

.admin-schedule-archive > summary span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-schedule-archive > summary strong {
    min-width: 28px;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #eef2f7;
    text-align: center;
}

.admin-schedule-archive__body {
    padding: 0 1rem 1rem;
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--app-line);
}

.admin-schedule-archive__item {
    padding: 0.9rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #edf1f6;
}

.admin-schedule-archive__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.admin-schedule-archive__item > div:first-child {
    display: grid;
    gap: 3px;
}

.admin-schedule-archive__item span,
.admin-schedule-archive__item small {
    color: var(--app-muted);
}

.admin-schedule-archive__actions,
.admin-schedule-archive__actions form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-schedule-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.admin-tag-create-form,
.admin-schedule-tags-list,
.admin-schedule-tag-editor {
    margin: 18px;
}

.admin-tag-create-form {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--app-line);
}

.admin-schedule-tags-list {
    display: grid;
    gap: 12px;
}

.admin-schedule-tag-editor {
    margin: 0;
    padding: 14px;
    display: grid;
    gap: 10px;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #f9fbfd;
}

.admin-schedule-tag-editor > .admin-modern-form {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.65fr) auto;
    align-items: end;
}

.admin-schedule-tag-editor > form:last-child {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 1180px) {
    .admin-schedule-settings-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .admin-schedule-editor > .admin-modern-form,
    .admin-schedule-settings-form {
        padding: 16px;
    }

    .admin-schedule-archive__item,
    .admin-schedule-tag-editor > .admin-modern-form {
        align-items: stretch;
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-schedule-archive__item {
        display: grid;
    }

    .admin-schedule-archive__actions,
    .admin-schedule-archive__actions form,
    .admin-schedule-archive__actions button,
    .admin-schedule-tag-editor button {
        width: 100%;
    }

    .admin-schedule-editor > .admin-modern-form > .admin-modal__footer,
    .admin-form-page-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }
}

/* Refinamento oficial: operacao compacta e encerramento em ordem de leitura. */
body.page-checkin-operation .checkin-operation {
    width: 100%;
    max-width: none;
    padding: 0 16px 16px;
}

body.page-checkin-operation .checkin-operation__topbar {
    top: 0;
    margin: 0 -16px;
    padding: 9px 16px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, auto) auto;
    gap: 14px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(90deg, var(--app-sidebar), #0c2b49);
    box-shadow: 0 8px 24px rgba(6, 17, 31, 0.18);
    color: #ffffff;
}

body.page-checkin-operation .checkin-operation__brand,
body.page-checkin-operation .checkin-operation__user {
    min-width: 0;
    color: #ffffff;
}

body.page-checkin-operation .checkin-operation__brand > span,
body.page-checkin-operation .checkin-operation__user > span {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

body.page-checkin-operation .checkin-operation__brand small,
body.page-checkin-operation .checkin-operation__user small {
    color: #bdd1e6;
}

body.page-checkin-operation .checkin-operation__user strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-checkin-operation .checkin-operation__nav,
body.page-checkin-operation .checkin-operation__nav form {
    gap: 6px;
    margin: 0;
}

body.page-checkin-operation .checkin-operation__nav a,
body.page-checkin-operation .checkin-operation__nav button {
    min-height: 36px;
    padding: 0 10px;
    gap: 6px;
    border-color: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.8rem;
}

body.page-checkin-operation .checkin-operation__nav a:hover,
body.page-checkin-operation .checkin-operation__nav button:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    text-decoration: none;
}

body.page-checkin-operation .checkin-operation__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
    align-items: center;
    gap: 16px;
    margin: 16px 0 12px;
    padding: 16px 18px;
    border-radius: 12px;
}

body.page-checkin-operation .checkin-operation__hero h1 {
    margin: 2px 0 4px;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.05;
}

body.page-checkin-operation .checkin-operation__hero p {
    margin: 0;
}

body.page-checkin-operation .checkin-operation__event {
    min-width: 0;
    padding: 12px 14px;
    border-radius: 10px;
}

body.page-checkin-operation .checkin-operation__event strong {
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-checkin-operation .checkin-operation__event-switcher {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 10px;
    margin-top: 9px;
    padding-top: 9px;
}

body.page-checkin-operation .checkin-operation__event-switcher > div {
    min-width: 0;
}

body.page-checkin-operation .checkin-operation-feedback {
    margin: 0 0 12px;
    padding: 10px 12px;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(15, 45, 80, 0.06);
}

body.page-checkin-operation .checkin-operation-feedback__icon {
    width: 34px;
    height: 34px;
}

body.page-checkin-operation .checkin-operation-feedback strong {
    margin: 0;
    font-size: 0.95rem;
}

body.page-checkin-operation .checkin-operation-feedback p {
    font-size: 0.8rem;
}

body.page-checkin-operation .checkin-operation-mode {
    gap: 8px;
    margin-bottom: 10px;
}

body.page-checkin-operation .checkin-operation-mode > * {
    min-height: 58px;
    padding: 9px 11px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas: "icon task" "icon title";
    align-content: center;
    gap: 0 8px;
    border-radius: 10px;
}

body.page-checkin-operation .checkin-operation-mode i {
    grid-area: icon;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}

body.page-checkin-operation .checkin-operation-mode > * > span {
    grid-area: task;
    font-size: 0.61rem;
}

body.page-checkin-operation .checkin-operation-mode strong {
    grid-area: title;
    font-size: 0.86rem;
}

body.page-checkin-operation .checkin-operation-mode small {
    display: none;
}

body.page-checkin-operation .checkin-operation-metrics {
    gap: 8px;
    margin-bottom: 12px;
}

body.page-checkin-operation .checkin-operation-metrics article {
    padding: 11px 14px;
    border-radius: 10px;
}

body.page-checkin-operation .checkin-operation-metrics strong {
    margin: 2px 0;
    font-size: 1.45rem;
}

body.page-checkin-operation .checkin-operation-layout,
body.page-checkin-operation .checkin-operation-side-stack {
    gap: 12px;
}

body.page-checkin-operation .checkin-operation-card {
    padding: 16px;
    border-radius: 12px;
}

body.page-checkin-operation .checkin-operation-card__header {
    margin-bottom: 12px;
}

body.page-checkin-operation .checkin-operation-card__header h2 {
    margin: 5px 0 3px;
    font-size: 1.25rem;
}

.admin-closing-hero {
    gap: 16px;
    margin-bottom: 14px;
    padding: 18px 20px;
    border-top-width: 3px;
    border-radius: 12px;
}

.admin-closing-hero h2,
.admin-closing-certificate h2,
.admin-closing-reports h2 {
    margin: 4px 0 5px;
    font-size: 1.25rem;
    line-height: 1.2;
}

.admin-closing-hero p,
.admin-closing-certificate p,
.admin-closing-reports p,
.admin-closing-checklist p {
    margin: 0;
    line-height: 1.45;
}

.admin-closing-hero__actions,
.admin-closing-certificate__actions {
    gap: 8px;
    margin-top: 12px;
}

.admin-closing-hero > aside {
    gap: 6px;
    padding: 14px 16px;
    border-radius: 10px;
}

.admin-closing-hero > aside > strong {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.admin-closing-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.admin-closing-checklist > .admin-card-header {
    padding: 18px 20px 14px;
}

.admin-closing-checklist__items {
    gap: 8px;
    padding: 0 16px 16px;
}

.admin-closing-checklist__items article {
    padding: 12px;
    border-radius: 10px;
}

.admin-closing-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-closing-certificate,
.admin-closing-reports {
    padding: 18px;
    border-radius: 12px;
}

.admin-closing-certificate__metrics {
    margin-top: 12px;
}

.admin-closing-impact {
    margin-top: 12px;
}

.admin-closing-reports details a {
    min-height: 38px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    background: var(--app-surface-soft);
    text-decoration: none;
}

@media (max-width: 900px) {
    body.page-checkin-operation .checkin-operation__hero,
    .admin-closing-hero,
    .admin-closing-side {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    body.page-checkin-operation .checkin-operation {
        padding: 0 12px 12px;
    }

    body.page-checkin-operation .checkin-operation__topbar {
        margin: 0 -12px;
        padding: 9px 12px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 8px;
    }

    body.page-checkin-operation .checkin-operation__brand {
        grid-column: 1;
        grid-row: 1;
    }

    body.page-checkin-operation .checkin-operation__user {
        grid-column: 1 / -1;
        grid-row: 2;
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 8px;
        padding-top: 7px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    body.page-checkin-operation .checkin-operation__user > span {
        width: 30px;
        height: 30px;
        display: grid;
    }

    body.page-checkin-operation .checkin-operation__user strong {
        overflow-wrap: normal;
    }

    body.page-checkin-operation .checkin-operation__nav {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    body.page-checkin-operation .checkin-operation__nav a,
    body.page-checkin-operation .checkin-operation__nav button {
        width: auto;
        min-width: 44px;
        height: 44px;
        padding: 0 8px;
    }

    body.page-checkin-operation .checkin-operation__nav span {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        white-space: nowrap;
    }

    body.page-checkin-operation .checkin-operation__hero {
        margin: 10px 0;
        padding: 13px;
    }

    body.page-checkin-operation .checkin-operation__event strong {
        white-space: normal;
    }

    body.page-checkin-operation .checkin-operation__event-switcher {
        grid-template-columns: minmax(0, 1fr);
    }

    body.page-checkin-operation .checkin-operation-mode > * {
        min-height: 68px;
        padding: 8px 5px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "icon" "title";
        justify-items: center;
        gap: 3px;
        text-align: center;
    }

    body.page-checkin-operation .checkin-operation-mode > * > span {
        display: none;
    }

    .admin-closing-hero,
    .admin-closing-certificate,
    .admin-closing-reports {
        padding: 15px;
    }

    .admin-closing-checklist > .admin-card-header {
        padding: 15px 15px 12px;
    }

    .admin-closing-checklist__items {
        padding: 0 12px 12px;
    }

    .admin-closing-checklist__items article {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .admin-closing-checklist__items article > a,
    .admin-closing-checklist__items article > button,
    .admin-closing-reports details a {
        grid-column: 1 / -1;
        min-height: 44px;
        justify-content: center;
    }
}

/* Tipografia global aprovada: Open Sans, com fallback local e preservação do iconfont. */
:root {
    --app-font-family: "Open Sans", Arial, sans-serif;
    --tblr-font-sans-serif: var(--app-font-family);
}
body.app-tabler,
body.app-tabler :where(main, section, article, aside, header, footer, nav, div, form, fieldset, legend, button, input, select, textarea, option, label, a, p, span, strong, small, h1, h2, h3, h4, h5, h6, ul, ol, li, table, thead, tbody, tfoot, tr, th, td, dl, dt, dd, figcaption, summary) {
    font-family: var(--app-font-family) !important;
}
body.app-tabler :where(.ti, [class^="ti-"], [class*=" ti-"]) {
    font-family: "tabler-icons" !important;
}

/* Identidade Colibri e avatar administrativo. As imagens pequenas evitam baixar os originais de 2 MB. */
body.app-tabler .brand-symbol,
body.app-tabler .public-brand__mark.brand-symbol,
body.app-tabler .admin-sidebar-brand > .brand-symbol,
body.app-tabler .checkin-operation__brand > .brand-symbol,
body.app-tabler .certificate-print__brand > .brand-symbol,
body.app-tabler .participant-login-brand__logo > .brand-symbol {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.app-tabler .brand-symbol img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

body.page-auth .topbar .brand {
    min-width: 0;
}

body.page-auth .topbar .brand-symbol {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

body.page-auth .topbar .brand > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.app-tabler .participant-login-brand__logo > .participant-login-brand__symbol {
    width: 52px;
    height: 36px;
    display: block;
    flex: 0 0 52px;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.app-tabler .admin-user-avatar {
    overflow: hidden;
    border-radius: 50% !important;
}

body.app-tabler .admin-user-avatar--image {
    background: #dbe8f5;
    color: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

body.app-tabler .admin-user-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.admin-avatar-trigger {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.admin-avatar-trigger .admin-user-avatar {
    width: 42px;
    height: 42px;
}

.admin-avatar-trigger__badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 2px solid var(--app-sidebar, #0d243d);
    border-radius: 50%;
    background: #ffffff;
    color: var(--app-brand);
    font-size: 0.62rem;
    box-shadow: 0 3px 8px rgba(6, 17, 31, 0.18);
}

.admin-avatar-trigger:focus-visible {
    outline: 3px solid rgba(73, 166, 255, 0.55);
    outline-offset: 3px;
}

.admin-avatar-form {
    gap: 16px;
}

.admin-avatar-form__preview {
    display: grid;
    place-items: center;
    padding: 8px 0 2px;
}

.admin-avatar-form__preview .admin-user-avatar {
    width: 96px;
    height: 96px;
    font-size: 1.8rem;
    box-shadow: 0 12px 28px rgba(15, 45, 80, 0.16);
}

.admin-avatar-upload-field {
    display: grid;
    gap: 7px;
}

.admin-avatar-upload-field > span {
    color: var(--app-ink);
    font-weight: 800;
}

.admin-avatar-upload-field input[type="file"] {
    width: 100%;
    min-height: 44px;
    padding: 8px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-sm);
    background: #ffffff;
}

.admin-avatar-upload-field small {
    color: var(--app-muted);
}

.admin-avatar-remove {
    padding: 10px 12px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-sm);
    background: var(--app-surface-soft);
}

/* Login administrativo exclusivo: identidade institucional, respiro e formulário em superfície única. */
body.page-auth--admin-login {
    min-width: 320px;
}

body.page-auth--admin-login .admin-login-page {
    display: grid;
    place-items: center;
    min-height: 100svh;
    padding: 1.5rem 0;
    background:
        radial-gradient(circle at 12% 14%, rgba(0, 83, 155, 0.16), transparent 30rem),
        radial-gradient(circle at 88% 82%, rgba(15, 139, 95, 0.12), transparent 28rem),
        #edf3f9;
}

.admin-login-shell {
    width: min(560px, calc(100% - 2rem));
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(172, 192, 214, 0.72);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 32px 80px rgba(15, 35, 64, 0.16);
}

.admin-login-back:focus-visible {
    outline: 3px solid rgba(119, 196, 255, 0.62);
    outline-offset: 4px;
    border-radius: 12px;
}
.admin-login-panel {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 1.75rem clamp(1.5rem, 5vw, 3rem) 2.75rem;
    background: #ffffff;
}

.admin-login-panel__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-login-back {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 0.25rem;
    color: #52657a;
    font-size: 0.82rem;
    font-weight: 750;
}

.admin-login-back:hover {
    color: var(--app-brand);
}

.admin-login-back .ti {
    font-size: 1rem;
}

.admin-login-panel__content {
    width: min(100%, 430px);
    display: grid;
    align-content: center;
    gap: 1.55rem;
    margin: 1.25rem auto 0;
}

.admin-login-panel__content .flash-stack {
    margin: 0;
}

.admin-login-panel__content .flash {
    padding: 0.95rem 1.05rem;
    border-radius: 14px;
    line-height: 1.45;
}

.admin-login-heading {
    display: grid;
    gap: 0.55rem;
}

.admin-login-heading__eyebrow {
    color: var(--app-brand);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-login-heading h1 {
    margin: 0;
    color: #10243b;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.admin-login-heading p {
    margin: 0;
    color: #64758a;
    font-size: 0.94rem;
    line-height: 1.55;
}

.admin-login-form {
    gap: 1.05rem;
}

.admin-login-form .field {
    gap: 0.5rem;
}

.admin-login-field-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #20364e;
    font-size: 0.84rem;
    font-weight: 800;
}

.admin-login-field-label .ti {
    color: var(--app-brand);
    font-size: 1rem;
}

.admin-login-form .field input {
    min-height: 52px;
    padding: 0.82rem 0.95rem;
    border: 1px solid #cad8e6;
    border-radius: 13px;
    background: #f8fbfe;
    color: #10243b;
    font-size: 0.94rem;
}

.admin-login-form .field input::placeholder {
    color: #8999aa;
}

.admin-login-form .field input:hover {
    border-color: #aebfd0;
}

.admin-login-form .field input:focus {
    border-color: #5fa5e6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 83, 155, 0.11);
}

.admin-login-submit {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.35rem;
    border-radius: 13px;
    font-weight: 800;
}

.admin-login-submit .ti {
    font-size: 1.05rem;
    transition: transform 160ms ease;
}

.admin-login-submit:hover .ti {
    transform: translateX(3px);
}

.admin-login-security-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    padding-top: 0.2rem;
    color: #7b8a9a;
    font-size: 0.74rem;
    line-height: 1.45;
}

.admin-login-security-note .ti {
    flex: 0 0 auto;
    margin-top: 0.08rem;
    color: #0f8b5f;
    font-size: 0.9rem;
}

.admin-login-blocked {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid #f2d38a;
    border-radius: 15px;
    background: #fff8e7;
    color: #68420b;
}

.admin-login-blocked > .ti {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fce9b9;
    font-size: 1.2rem;
}

.admin-login-blocked strong {
    display: block;
    margin-bottom: 0.25rem;
}

.admin-login-blocked p {
    margin: 0;
    color: #79551e;
    font-size: 0.82rem;
    line-height: 1.5;
}

html[data-theme="dark"] body.page-auth--admin-login .admin-login-page {
    background:
        radial-gradient(circle at 12% 14%, rgba(0, 103, 190, 0.2), transparent 30rem),
        radial-gradient(circle at 88% 82%, rgba(15, 139, 95, 0.13), transparent 28rem),
        #07111f;
}

html[data-theme="dark"] .admin-login-shell {
    border-color: #263b52;
    background: #0e1b2b;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .admin-login-panel {
    background: #0e1b2b;
}

html[data-theme="dark"] .admin-login-back,
html[data-theme="dark"] .admin-login-heading p,
html[data-theme="dark"] .admin-login-security-note {
    color: #a9bbcd;
}

html[data-theme="dark"] .admin-login-heading h1,
html[data-theme="dark"] .admin-login-field-label {
    color: #eef5fc;
}

html[data-theme="dark"] .admin-login-form .field input {
    border-color: #30465d;
    background: #132235;
    color: #f5f9fd;
}

html[data-theme="dark"] .admin-login-form .field input:hover {
    border-color: #47627d;
}

html[data-theme="dark"] .admin-login-form .field input:focus {
    border-color: #62acee;
    background: #16283d;
}

html[data-theme="dark"] .admin-login-form .participant-password-field > button {
    background: #20364e;
    color: #d4e1ed;
}

html[data-theme="dark"] .admin-login-blocked {
    border-color: #74591e;
    background: #2b2414;
    color: #f4d887;
}

html[data-theme="dark"] .admin-login-blocked p {
    color: #d8bd74;
}

@media (max-width: 860px) {
    body.page-auth--admin-login .admin-login-page {
        padding: 1rem 0;
    }

    .admin-login-shell {
        width: min(560px, calc(100% - 1.5rem));
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-login-panel {
        min-height: 0;
        padding: 1.5rem clamp(1.5rem, 7vw, 3.25rem) 2.5rem;
    }
}

@media (max-width: 560px) {
    body.page-auth--admin-login .admin-login-page {
        place-items: center;
        padding: 1rem 0;
    }

    .admin-login-shell {
        width: calc(100% - 1.5rem);
        border-radius: 22px;
    }

    .admin-login-panel {
        min-height: 0;
        padding: 1.25rem 1.25rem 2rem;
    }

    .admin-login-panel__content {
        gap: 1.3rem;
        margin-top: 1.75rem;
    }

    .admin-login-heading h1 {
        font-size: 1.75rem;
    }

    .admin-login-form .field input,
    .admin-login-submit {
        min-height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-login-submit .ti {
        transition: none;
    }
}


/* Certificate validation: focused public lookup with consistent hierarchy and responsive states. */
body.page-certificate-validation {
    min-height: 100vh;
    background: #f3f7fb;
}

.certificate-validation-page {
    width: min(100% - 2rem, 1040px);
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.certificate-validation-page > .flash-stack {
    width: min(100%, 900px);
    margin-right: auto;
    margin-left: auto;
}

.certificate-validation-hero {
    display: grid;
    max-width: 720px;
    justify-items: center;
    gap: 0.6rem;
    margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
}

.certificate-validation-hero__icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin-bottom: 0.3rem;
    border: 1px solid #c9def4;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, #eaf4ff);
    color: var(--app-brand);
    box-shadow: 0 14px 30px rgba(0, 83, 155, 0.1);
    font-size: 1.85rem;
}

.certificate-validation-hero .eyebrow {
    color: var(--app-brand);
    font-size: 0.75rem;
    letter-spacing: 0.11em;
}

.certificate-validation-hero h1 {
    margin: 0;
    color: var(--app-ink);
    font-size: clamp(2rem, 5vw, 3.15rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.certificate-validation-hero p {
    max-width: 620px;
    margin: 0.2rem 0 0;
    color: var(--app-muted);
    font-size: clamp(1rem, 2vw, 1.08rem);
    line-height: 1.65;
}

.certificate-validation-card {
    width: min(100%, 900px);
    margin: 0 auto;
    padding: clamp(1.35rem, 3vw, 2rem);
    border: 1px solid var(--app-line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 20px 55px rgba(25, 58, 92, 0.1);
}

.certificate-validation-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.certificate-validation-card__header > div {
    display: grid;
    gap: 0.3rem;
}

.certificate-validation-card__header .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.09em;
}

.certificate-validation-card__header h2 {
    margin: 0;
    color: var(--app-ink);
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    line-height: 1.2;
}

.certificate-validation-card__security {
    display: inline-flex;
    min-height: 36px;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    background: #eaf7f1;
    color: #08704b;
    font-size: 0.78rem;
    font-weight: 800;
}

.certificate-validation-form {
    display: grid;
    gap: 0.65rem;
}

.certificate-validation-form > label {
    color: var(--app-ink);
    font-size: 0.9rem;
    font-weight: 800;
}

.certificate-validation-form__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0.75rem;
}

.certificate-validation-form__input {
    position: relative;
    min-width: 0;
}

.certificate-validation-form__input > i {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 1;
    transform: translateY(-50%);
    color: #68809a;
    font-size: 1.15rem;
    pointer-events: none;
}

body.app-tabler .certificate-validation-form__input input {
    width: 100%;
    min-height: 52px;
    border: 1px solid #cbd9e8;
    border-radius: 12px;
    padding: 0.75rem 1rem 0.75rem 2.85rem;
    background: #f9fbfd;
    color: var(--app-ink);
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    box-shadow: none;
}

body.app-tabler .certificate-validation-form__input input::placeholder {
    color: #8392a5;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

body.app-tabler .certificate-validation-form__input input:focus {
    border-color: var(--app-brand);
    background: #ffffff;
    outline: 3px solid rgba(0, 83, 155, 0.13);
}

.certificate-validation-form__controls .button {
    min-width: 140px;
    min-height: 52px;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 12px;
}

.certificate-validation-form__help {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    color: #66778b;
    font-size: 0.82rem;
    line-height: 1.45;
}

.certificate-validation-form__help i {
    flex: 0 0 auto;
    color: var(--app-brand);
}

.certificate-validation-result {
    margin-top: 1.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--app-line);
}

.certificate-validation-state {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem;
    border: 1px solid #f0c5c1;
    border-radius: 14px;
    background: #fff7f6;
}

.certificate-validation-state > span {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: #fee8e6;
    color: #a7352e;
    font-size: 1.35rem;
}

.certificate-validation-state > div {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
}

.certificate-validation-state h2,
.certificate-validation-state p {
    margin: 0;
}

.certificate-validation-state h2 {
    color: #812a25;
    font-size: 1rem;
}

.certificate-validation-state p {
    color: #7b5652;
    line-height: 1.5;
}

.certificate-validation-result .certificate-card {
    box-shadow: none;
}

.certificate-card__status-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 0.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.55rem;
}

.certificate-card__action {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    margin-top: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    color: #ffffff;
}

body.app-tabler a.certificate-card__action,
body.app-tabler a.certificate-card__action:hover,
body.app-tabler a.certificate-card__action:focus-visible {
    color: #ffffff;
}

body.app-tabler a.certificate-card__action--primary,
body.app-tabler a.certificate-card__action--primary:hover,
body.app-tabler a.certificate-card__action--primary:focus-visible {
    border-color: #ffffff;
    background: #ffffff;
    color: #07558f;
}

.certificate-card--invalid .certificate-card__aside {
    border: 1px solid #efc4c1;
    background: #fff1f0;
    color: #912f29;
}

.certificate-card--invalid .certificate-card__aside span {
    color: #8a514c;
}

.certificate-card--invalid .certificate-card__status-icon {
    background: #fee1df;
    color: #a7352e;
}

@media (max-width: 680px) {
    .certificate-validation-page {
        width: min(100% - 1rem, 1040px);
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .certificate-validation-hero {
        margin-bottom: 1.4rem;
        padding: 0 0.5rem;
    }

    .certificate-validation-hero__icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        font-size: 1.55rem;
    }

    .certificate-validation-card {
        padding: 1.1rem;
        border-radius: 16px;
    }

    .certificate-validation-card__header {
        align-items: flex-start;
        margin-bottom: 1.2rem;
    }

    .certificate-validation-card__security {
        min-height: 32px;
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
    }

    .certificate-validation-form__controls {
        grid-template-columns: 1fr;
    }

    .certificate-validation-form__controls .button {
        width: 100%;
    }

    .certificate-validation-state {
        align-items: flex-start;
    }

    .certificate-validation-result .certificate-card {
        padding: 1rem;
    }

    .certificate-validation-result .certificate-card__meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .certificate-validation-card__header {
        display: grid;
    }

    .certificate-validation-card__security {
        width: fit-content;
    }
}

/* Shared toast viewport: session feedback floats without changing page geometry. */
body.app-tabler .flash-stack,
body.app-tabler .operation-feedback {
    position: fixed;
    inset-block-start: auto;
    inset-inline-end: auto;
    inset-block-end: var(--app-toast-offset-bottom);
    inset-inline-start: 50%;
    z-index: var(--app-z-toast);
    width: min(var(--app-toast-max-width), calc(100vw - (var(--app-toast-inline-gap) * 2)));
    max-height: calc(100vh - var(--app-toast-offset-bottom) - var(--app-toast-inline-gap));
    max-height: calc(100dvh - var(--app-toast-offset-bottom) - var(--app-toast-inline-gap));
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 2px;
    transform: translateX(-50%);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    pointer-events: none;
    isolation: isolate;
}

body.app-tabler .flash-stack > .flash,
body.app-tabler .operation-feedback > .flash {
    width: 100%;
    margin: 0;
    pointer-events: auto;
    box-shadow: 0 16px 38px rgba(15, 35, 64, 0.16);
}

@media (max-width: 640px) {
    body.app-tabler {
        --app-toast-offset-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem);
        --app-toast-inline-gap: 0.75rem;
    }

    body.app-tabler .flash-stack,
    body.app-tabler .operation-feedback {
        width: min(
            var(--app-toast-max-width),
            calc(
                100vw
                - max(var(--app-toast-inline-gap), env(safe-area-inset-left, 0px))
                - max(var(--app-toast-inline-gap), env(safe-area-inset-right, 0px))
            )
        );
    }
}
