:root {
    --ev-bg: #f7f2ea;
    --ev-bg-deep: #1a120c;
    --ev-surface: #fffdf9;
    --ev-border: rgba(26, 18, 12, 0.1);
    --ev-text: #2b2118;
    --ev-muted: #6b5c50;
    --ev-accent: #c45c26;
    --ev-accent-hover: #a84a1a;
    --ev-green: #2f5d4a;
    --ev-radius: 16px;
    --ev-shadow: 0 18px 50px rgba(26, 18, 12, 0.12);
    --ev-shadow-sm: 0 8px 24px rgba(26, 18, 12, 0.08);
    --ev-font: "DM Sans", system-ui, sans-serif;
    --ev-display: "Fraunces", Georgia, serif;
    --ev-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ev-transition: 0.22s var(--ev-ease);
    --ev-app-gutter: clamp(0.5rem, 1vw, 0.75rem);
    --ev-app-max-width: 1400px;

    /* Botões 3D (pill) — face + “borda” inferior */
    --ev-btn-radius: 999px;
    --ev-btn-weight: 700;
    --ev-btn-lift: 4px;
    --ev-btn-py: 0.55rem;
    --ev-btn-px: 1.35rem;
    --ev-btn-sm-lift: 3px;
    --ev-btn-sm-py: 0.38rem;
    --ev-btn-sm-px: 0.95rem;
    --ev-btn-lg-lift: 5px;
    --ev-btn-lg-py: 0.72rem;
    --ev-btn-lg-px: 1.65rem;
    --ev-btn-primary-face: #f07830;
    --ev-btn-primary-rim: #f4b08a;
    --ev-btn-primary-hover: #e8681f;
    --ev-btn-green-face: #3a7a5c;
    --ev-btn-green-rim: #9fd0b3;
    --ev-btn-green-hover: #2f6550;
    --ev-btn-danger-face: #d94841;
    --ev-btn-danger-rim: #f0a8a4;
    --ev-btn-danger-hover: #c23a34;
    --ev-btn-neutral-face: #fffdf9;
    --ev-btn-neutral-rim: rgba(26, 18, 12, 0.16);
    --ev-btn-neutral-hover: #f7f0e6;
    --ev-btn-warning-face: #e8a020;
    --ev-btn-warning-rim: #f5d08a;
    --ev-btn-warning-hover: #cf8c12;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--ev-font);
    color: var(--ev-text);
    background: var(--ev-bg);
    line-height: 1.5;
}

.ev-display {
    font-family: var(--ev-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    margin: 0 0 .75rem;
    letter-spacing: -0.02em;
}

.ev-display--light { color: #fff; }

.ev-kicker {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .75rem;
    font-weight: 600;
    color: var(--ev-accent);
    margin: 0 0 .75rem;
}

.ev-kicker--light { color: rgba(255,255,255,.85); }

.ev-lead {
    font-size: 1.125rem;
    color: var(--ev-muted);
    max-width: 36rem;
    margin: 0 0 1.5rem;
}

.ev-lead--light { color: rgba(255,255,255,.88); }

.ev-section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.ev-section--narrow { max-width: 720px; }
.ev-section--categories {
    background: linear-gradient(180deg, transparent 0%, rgba(47, 93, 74, 0.04) 100%);
    scroll-margin-top: 5.5rem;
}
.ev-section-title { font-family: var(--ev-display); font-size: clamp(1.5rem, 3vw, 1.85rem); margin: 0 0 .35rem; line-height: 1.15; }
.ev-section-sub { color: var(--ev-muted); margin: 0 0 2rem; max-width: 38rem; }
.ev-section-sub--flush { margin-bottom: 0; }

.ev-section-head {
    margin-bottom: 2.25rem;
    max-width: 40rem;
}

.ev-section-head::after {
    content: "";
    display: block;
    width: 2.75rem;
    height: 3px;
    margin-top: 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ev-accent), rgba(196, 92, 38, 0.35));
}

.ev-section-head--compact {
    margin-bottom: 1rem;
}

.ev-section--description {
    padding: clamp(1.5rem, 4vw, 2.5rem) 0 0;
}

.ev-section--regulation {
    padding: 0 0 1.25rem;
}

.ev-portal-info-card.ev-panel-card {
    padding: 1.2rem 1.35rem 1.35rem;
}

.ev-section-head--in-card {
    margin-bottom: .85rem;
}

.ev-section-head--in-card::after {
    margin-top: .75rem;
}

.ev-regulation-dl {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--ev-green);
    text-decoration: none;
    transition: color var(--ev-transition), transform var(--ev-transition);
}

.ev-regulation-dl i {
    font-size: 1.35rem;
    line-height: 1;
}

.ev-regulation-dl:hover {
    color: var(--ev-accent);
    transform: translateY(-1px);
}

.ev-hero-home {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(196,92,38,.28), transparent 55%),
        radial-gradient(ellipse at 90% 80%, rgba(47,93,74,.35), transparent 45%),
        linear-gradient(160deg, #2f5d4a 0%, #1a120c 70%);
    color: #fff;
    padding: clamp(4rem, 10vw, 6rem) 0 clamp(3.5rem, 8vw, 5rem);
}

.ev-hero-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.35;
    pointer-events: none;
}

.ev-hero-home__inner {
    position: relative;
    max-width: 720px;
}

.ev-hero-home__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .25rem;
}

/* —— Botões 3D pill (padrão do projeto) —— */
.ev-btn-pill,
body .btn:not(.btn-close):not(.btn-link):not(.ev-sorteio-absent-btn) {
    --ev-btn-face: var(--ev-btn-primary-face);
    --ev-btn-rim: var(--ev-btn-primary-rim);
    --ev-btn-hover: var(--ev-btn-primary-hover);
    --ev-btn-text: #fff;
    --ev-btn-lift-local: var(--ev-btn-lift);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: var(--ev-btn-py) var(--ev-btn-px);
    min-height: 2.75rem;
    border: none !important;
    border-radius: var(--ev-btn-radius) !important;
    background-color: var(--ev-btn-face) !important;
    color: var(--ev-btn-text) !important;
    font-weight: var(--ev-btn-weight);
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 var(--ev-btn-lift-local) 0 var(--ev-btn-rim);
    transform: translateY(0);
    transition:
        transform 0.12s var(--ev-ease),
        box-shadow 0.12s var(--ev-ease),
        background-color 0.12s var(--ev-ease),
        color 0.12s var(--ev-ease);
}

.ev-btn-pill:hover,
body .btn:not(.btn-close):not(.btn-link):not(.ev-sorteio-absent-btn):hover {
    background-color: var(--ev-btn-hover, var(--ev-btn-face)) !important;
    color: var(--ev-btn-text) !important;
    transform: translateY(1px);
    box-shadow: 0 calc(var(--ev-btn-lift-local) - 1px) 0 var(--ev-btn-rim);
}

.ev-btn-pill:active,
body .btn:not(.btn-close):not(.btn-link):not(.ev-sorteio-absent-btn):active {
    transform: translateY(var(--ev-btn-lift-local));
    box-shadow: 0 0 0 var(--ev-btn-rim);
}

.ev-btn-pill:focus-visible,
body .btn:not(.btn-close):not(.btn-link):not(.ev-sorteio-absent-btn):focus-visible {
    outline: 2px solid var(--ev-accent);
    outline-offset: 3px;
}

.ev-btn-pill:disabled,
body .btn:not(.btn-close):not(.btn-link):not(.ev-sorteio-absent-btn):disabled {
    opacity: 0.55;
    transform: none;
    box-shadow: 0 calc(var(--ev-btn-lift-local) - 1px) 0 var(--ev-btn-rim);
    cursor: not-allowed;
}

body .btn.btn-sm:not(.btn-close):not(.btn-link):not(.ev-sorteio-absent-btn),
.ev-btn-pill.ev-btn-pill--sm {
    --ev-btn-lift-local: var(--ev-btn-sm-lift);
    padding: var(--ev-btn-sm-py) var(--ev-btn-sm-px);
    min-height: 2.15rem;
    font-size: 0.875rem;
}

body .btn.btn-lg:not(.btn-close):not(.btn-link):not(.ev-sorteio-absent-btn),
.ev-btn-pill.ev-btn-pill--lg {
    --ev-btn-lift-local: var(--ev-btn-lg-lift);
    padding: var(--ev-btn-lg-py) var(--ev-btn-lg-px);
    min-height: 3.1rem;
    font-size: 1.05rem;
}

/* Primário — laranja */
.ev-btn-primary,
body .btn-primary {
    --ev-btn-face: var(--ev-btn-primary-face);
    --ev-btn-rim: var(--ev-btn-primary-rim);
    --ev-btn-hover: var(--ev-btn-primary-hover);
    --ev-btn-text: #fff;
}

.ev-btn-primary--light,
body .btn.ev-btn-primary--light {
    --ev-btn-face: #fff;
    --ev-btn-rim: rgba(255, 255, 255, 0.45);
    --ev-btn-hover: #fff8f2;
    --ev-btn-text: var(--ev-bg-deep);
}

/* Sucesso — verde */
body .btn-success {
    --ev-btn-face: var(--ev-btn-green-face);
    --ev-btn-rim: var(--ev-btn-green-rim);
    --ev-btn-hover: var(--ev-btn-green-hover);
    --ev-btn-text: #fff;
}

/* Perigo */
body .btn-danger {
    --ev-btn-face: var(--ev-btn-danger-face);
    --ev-btn-rim: var(--ev-btn-danger-rim);
    --ev-btn-hover: var(--ev-btn-danger-hover);
    --ev-btn-text: #fff;
}

/* Aviso */
body .btn-warning {
    --ev-btn-face: var(--ev-btn-warning-face);
    --ev-btn-rim: var(--ev-btn-warning-rim);
    --ev-btn-hover: var(--ev-btn-warning-hover);
    --ev-btn-text: #fff;
}

/* Contorno — face clara + “sombra” como borda */
body .btn-outline-secondary,
body .btn-outline-primary,
body .btn-outline-danger,
body .btn-outline-warning,
body .btn-secondary {
    --ev-btn-face: var(--ev-btn-neutral-face);
    --ev-btn-rim: var(--ev-btn-neutral-rim);
    --ev-btn-hover: var(--ev-btn-neutral-hover);
    --ev-btn-text: var(--ev-text);
}

body .btn-outline-primary {
    --ev-btn-text: var(--ev-accent);
    --ev-btn-rim: rgba(240, 120, 48, 0.45);
}

body .btn-outline-danger {
    --ev-btn-text: var(--ev-btn-danger-face);
    --ev-btn-rim: rgba(217, 72, 65, 0.4);
}

body .btn-outline-warning {
    --ev-btn-text: #9a6200;
    --ev-btn-rim: rgba(232, 160, 32, 0.45);
}

/* Ghost no hero (fundo escuro) */
.ev-btn-ghost.btn,
a.ev-btn-ghost {
    --ev-btn-face: rgba(255, 255, 255, 0.08);
    --ev-btn-rim: rgba(255, 255, 255, 0.28);
    --ev-btn-hover: rgba(255, 255, 255, 0.16);
    --ev-btn-text: rgba(255, 255, 255, 0.95);
}

.ev-event-card {
    display: flex;
    flex-direction: column;
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    padding: 1.5rem 1.5rem 1.35rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--ev-shadow-sm);
    transition: transform var(--ev-transition), box-shadow var(--ev-transition), border-color var(--ev-transition);
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ev-event-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ev-green), var(--ev-accent));
    opacity: 0;
    transition: opacity var(--ev-transition);
}

.ev-event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ev-shadow);
    border-color: rgba(196, 92, 38, 0.22);
    color: inherit;
}

.ev-event-card:hover::before {
    opacity: 1;
}

.ev-event-card:focus-visible {
    outline: 2px solid var(--ev-accent);
    outline-offset: 3px;
}

.ev-event-card__date {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ev-accent);
    margin-bottom: .5rem;
}

.ev-event-card h3 {
    font-family: var(--ev-display);
    font-size: 1.35rem;
    margin: 0 0 .5rem;
}

.ev-event-card p { color: var(--ev-muted); margin: 0 0 1rem; }

.ev-event-card__cta {
    font-weight: 600;
    color: var(--ev-green);
    font-size: .9rem;
    margin-top: auto;
    padding-top: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    transition: gap var(--ev-transition), color var(--ev-transition);
}

.ev-event-card:hover .ev-event-card__cta {
    color: var(--ev-accent);
    gap: .55rem;
}

/* ——— Card motivos rodeio (teste) ——— */
.ev-event-card--rodeio {
    padding: 0;
    border-color: rgba(47, 93, 74, 0.22);
}

.ev-event-card__rodeio-band {
    position: relative;
    height: 10.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.ev-event-card__rodeio-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .45s ease;
}

.ev-event-card__rodeio-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(12, 8, 6, 0.45) 0%,
            rgba(12, 8, 6, 0.72) 100%
        ),
        rgba(12, 8, 6, 0.35);
}

.ev-event-card__rodeio-logo {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem .75rem;
    pointer-events: none;
}

.ev-event-card__rodeio-logo img {
    display: block;
    width: min(78%, 11rem);
    max-height: 6.75rem;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.55));
    transition: transform var(--ev-transition);
}

.ev-event-card--rodeio .ev-event-card__main {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.1rem 1.35rem 1.2rem;
}

.ev-event-card--rodeio:hover .ev-event-card__rodeio-bg {
    transform: scale(1.05);
}

.ev-event-card--rodeio:hover .ev-event-card__rodeio-logo img {
    transform: translateY(-2px) scale(1.03);
}

.ev-event-card--rodeio:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(26, 18, 12, 0.12);
}

@media (max-width: 767.98px) {
    .ev-event-card__rodeio-band {
        height: 9.5rem;
    }

    .ev-event-card__rodeio-logo img {
        width: min(82%, 9.5rem);
        max-height: 5.5rem;
    }
}

.ev-portal-hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: flex-end;
    padding: 4rem 0 3rem;
    background: linear-gradient(160deg, #2f5d4a, #1a120c);
    background-size: cover;
    background-position: center;
}

.ev-portal-hero__wrap {
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    width: 100%;
    padding-bottom: 1rem;
}

.ev-portal-hero__content {
    flex: 0 0 80%;
    max-width: 80%;
    padding-bottom: 0;
}

.ev-portal-logo {
    flex: 0 0 20%;
    max-width: 20%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin: 0;
    pointer-events: none;
}

.ev-portal-logo img {
    display: block;
    max-width: 100%;
    max-height: min(160px, 22vh);
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 28px rgba(0, 0, 0, .5));
}

@media (max-width: 767.98px) {
    .ev-portal-logo img {
        max-height: min(120px, 18vh);
    }
}

.ev-preview--logo img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.ev-preview--favicon {
    display: inline-flex;
    padding: .5rem;
    background: var(--ev-bg-deep);
    border-radius: 8px;
}

.ev-portal-links {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.5rem;
}

.ev-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    background: rgba(255,255,255,.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(6px);
}

.ev-chip:hover { background: rgba(255,255,255,.24); color: #fff; }
.ev-chip--wa { background: rgba(37, 211, 102, .2); border-color: rgba(37, 211, 102, .35); }

.ev-portal-panel-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--ev-border, #e8e0d8);
    background: linear-gradient(135deg, #fff 0%, var(--ev-bg, #faf8f5) 100%);
}

.ev-portal-panel-cta__icon {
    font-size: 1.75rem;
    color: var(--ev-accent, #c45c26);
    line-height: 1;
}

.ev-portal-panel-cta__body {
    flex: 1 1 14rem;
    min-width: 0;
}

.ev-portal-panel-cta__title {
    font-family: var(--ev-display);
    font-size: 1.15rem;
    margin: 0 0 .35rem;
}

.ev-portal-panel-cta__text {
    color: var(--ev-muted);
    font-size: .92rem;
}

.ev-portal-panel-cta__action {
    flex: 0 0 auto;
}

.ev-portal-panel-cta__action .btn {
    white-space: nowrap;
}

.ev-category-card {
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    padding: 1.75rem 1.5rem;
    height: 100%;
    box-shadow: var(--ev-shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform var(--ev-transition), box-shadow var(--ev-transition), border-color var(--ev-transition);
}

.ev-category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ev-shadow);
    border-color: rgba(196, 92, 38, 0.2);
}

.ev-category-card .btn {
    margin-top: auto;
    cursor: pointer;
}

.ev-category-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: rgba(196, 92, 38, .12);
    color: var(--ev-accent);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.ev-category-card__icon .bi.ev-modality-icon,
.ev-category-card__icon--sm .bi.ev-modality-icon {
    color: var(--ev-accent);
}

.ev-category-card--panel-pick {
    width: 100%;
    text-align: left;
    margin: 0;
    padding: 1rem 1.1rem 1.05rem;
    height: auto;
    min-height: 0;
}

.ev-category-card--panel-pick .ev-category-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.15rem;
    margin-bottom: 0.55rem;
    border-radius: 10px;
}

.ev-category-card--panel-pick .ev-category-card__icon .ev-icon-galo {
    width: 1.65rem;
    height: 1.65rem;
}

.ev-category-card--panel-pick h3 {
    font-size: 1.05rem;
    margin: 0 0 0.2rem;
    line-height: 1.25;
}

.ev-category-card--panel-pick .ev-category-card__subtitle {
    color: var(--ev-muted);
    font-size: 0.8rem;
    margin: 0 0 0.65rem;
    min-height: 0;
    line-height: 1.35;
}

.ev-category-card--panel-pick .ev-category-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0;
}

.ev-category-card--panel-pick .ev-category-card__actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
}

.ev-category-card--panel-pick .ev-category-card__actions .btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
}

.ev-panel-category-grid {
    margin-top: 0.25rem;
}

.ev-panel-reg-open.ev-panel-reg-open--loading,
.ev-panel-reg-open[aria-busy="true"] {
    opacity: 0.75;
    pointer-events: none;
}

.ev-category-card__icon .ev-icon-galo {
    width: 2rem;
    height: 2rem;
}

.ev-icon-galo {
    display: inline-block;
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    line-height: 0;
}

.ev-icon-galo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* PNG preto → cor terracota do painel (#c45c26) */
    filter: brightness(0) saturate(100%) invert(42%) sepia(78%) saturate(748%) hue-rotate(346deg) brightness(95%) contrast(89%);
}

.ev-category-card__icon--sm {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.ev-category-card__icon--sm .ev-icon-galo {
    width: 1.75rem;
    height: 1.75rem;
}

.ev-preset-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--ev-border);
}

.ev-preset-list__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ev-sort-col {
    width: 4.5rem;
}

.ev-sort-handle-cell {
    vertical-align: middle;
    white-space: nowrap;
}

.ev-sort-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ev-muted);
    cursor: grab;
    touch-action: none;
}

.ev-sort-handle:hover {
    background: rgba(196, 92, 38, .1);
    color: var(--ev-accent);
}

.ev-sort-handle:active {
    cursor: grabbing;
}

.ev-sort-nudge {
    display: inline-flex;
    flex-direction: column;
    vertical-align: middle;
    margin-left: .15rem;
}

.ev-sort-nudge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.1rem;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--ev-muted);
    font-size: .75rem;
    line-height: 1;
}

.ev-sort-nudge-btn:hover {
    background: rgba(26, 18, 12, .06);
    color: var(--ev-text);
}

.ev-sort-row--dragging {
    opacity: .55;
}

.ev-sort-row--chosen td {
    background: rgba(196, 92, 38, .06);
}

.ev-sort-status--pending { color: var(--ev-muted); }
.ev-sort-status--ok { color: #1e5a3a; }
.ev-sort-status--err { color: #8b2e24; }

.ev-signup-modal .modal-header {
    border-bottom: 1px solid var(--ev-border);
}

.ev-signup-modal .modal-footer {
    border-top: 1px solid var(--ev-border);
}

.ev-signup-modal .modal-content {
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
}

.ev-signup-success {
    text-align: center;
    padding: .5rem .25rem 1rem;
}

.ev-signup-success__icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #e8f5ec;
    color: #1e7a45;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.ev-signup-success__icon--info {
    background: #e7f0ff;
    color: #1a5fb4;
}

.ev-signup-success__title {
    font-family: var(--ev-display);
    font-size: 1.35rem;
    margin: 0 0 .75rem;
}

.ev-signup-success__lead {
    margin: 0 0 .35rem;
    color: var(--ev-muted);
    font-size: .95rem;
}

.ev-signup-success__email {
    font-size: 1.05rem;
    font-weight: 700;
    word-break: break-all;
    margin: 0 0 1rem;
    color: var(--ev-text);
}

.ev-signup-success__hint {
    font-size: .9rem;
    color: var(--ev-muted);
    margin: 0;
    line-height: 1.45;
}

.ev-signup-success__cta {
    margin-top: 1.25rem;
}

.ev-signup-existing-actions {
    text-align: center;
    padding: .5rem .25rem 1rem;
}

.ev-reg-meta td {
    border-top: 0;
    padding-top: 0;
}

.ev-category-card h3 {
    font-family: var(--ev-display);
    font-size: 1.25rem;
    margin: 0 0 .5rem;
}

.ev-category-card p {
    color: var(--ev-muted);
    font-size: .95rem;
    margin: 0 0 1.25rem;
    min-height: 2.8rem;
}

.ev-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--ev-muted);
}

.ev-empty i { font-size: 2.5rem; display: block; margin-bottom: 1rem; opacity: .6; }

.ev-empty--card {
    background: var(--ev-surface);
    border: 1px dashed rgba(26, 18, 12, 0.14);
    border-radius: var(--ev-radius);
    padding: 3rem 1.5rem;
    box-shadow: var(--ev-shadow-sm);
}

.ev-empty__icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(196, 92, 38, 0.1);
    color: var(--ev-accent);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

.ev-empty__title {
    font-family: var(--ev-display);
    font-size: 1.2rem;
    color: var(--ev-text);
    margin: 0 0 .5rem;
}

.ev-empty__hint {
    margin: 0 0 1.25rem;
    font-size: .95rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.ev-shell--guest .ev-main {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.ev-auth-card {
    width: min(420px, 100%);
    background: var(--ev-surface);
    border-radius: var(--ev-radius);
    padding: 2rem;
    box-shadow: var(--ev-shadow);
    border: 1px solid var(--ev-border);
    position: relative;
    overflow: hidden;
}

.ev-auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ev-green), var(--ev-accent));
}

.ev-auth-card__head { text-align: center; margin-bottom: 1.5rem; }
.ev-auth-card__head i { font-size: 2rem; color: var(--ev-accent); }
.ev-auth-card__head h1 { font-family: var(--ev-display); font-size: 1.5rem; margin: .5rem 0; }
.ev-auth-signup {
    text-align: center;
    margin: 1.1rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--ev-border);
    font-size: .92rem;
    color: var(--ev-muted);
}

.ev-auth-signup a {
    display: inline-block;
    margin-top: .35rem;
    font-weight: 600;
    color: var(--ev-green);
    text-decoration: none;
}

.ev-auth-signup a:hover {
    color: var(--ev-accent);
}

.ev-auth-foot { text-align: center; margin: 1.25rem 0 0; font-size: .9rem; }

.ev-login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    padding: 0.25rem;
    background: var(--ev-bg, #faf8f5);
    border-radius: var(--ev-radius);
    border: 1px solid var(--ev-border);
}

.ev-login-tabs__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ev-muted);
    border-radius: calc(var(--ev-radius) - 2px);
    transition: background 0.15s ease, color 0.15s ease;
}

.ev-login-tabs__link:hover {
    color: var(--ev-accent);
    background: rgba(196, 92, 38, 0.08);
}

.ev-login-tabs__link.is-active {
    color: var(--ev-text, #1a1a1a);
    background: var(--ev-surface);
    box-shadow: var(--ev-shadow-sm);
}

.ev-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .85rem 1.5rem;
    background: var(--ev-bg-deep);
    color: #fff;
}

.ev-brand {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.ev-topnav { display: flex; gap: 1rem; flex-wrap: wrap; }
.ev-topnav a { color: rgba(255,255,255,.88); text-decoration: none; font-size: .92rem; }
.ev-topnav a:hover { color: #fff; }
.ev-topnav-muted { opacity: .65; }

.ev-main { min-height: calc(100vh - 56px); }

/* Área logada: conteúdo mais largo, menos margem lateral */
.ev-shell--auth .ev-topbar {
    padding-left: max(var(--ev-app-gutter), 0.75rem);
    padding-right: max(var(--ev-app-gutter), 0.75rem);
}

.ev-shell--auth .container {
    max-width: var(--ev-app-max-width);
    padding-left: var(--ev-app-gutter);
    padding-right: var(--ev-app-gutter);
}

.ev-shell--auth .ev-section {
    padding-top: clamp(1.15rem, 2vw, 1.75rem);
    padding-bottom: clamp(2rem, 3vw, 3rem);
}

.ev-panel {
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    padding: 1.5rem;
    box-shadow: var(--ev-shadow);
}

.ev-panel h2 {
    font-family: var(--ev-display);
    font-size: 1.15rem;
    margin: 0 0 1.25rem;
}

.ev-panel--sticky { position: sticky; top: 1.5rem; }

.ev-input {
    border-radius: 10px;
    border-color: var(--ev-border);
}

.ev-form-field[data-field-key="email_contato"] .ev-input {
    min-width: 0;
    width: 100%;
}

.ev-table-wrap {
    background: var(--ev-surface);
    border-radius: var(--ev-radius);
    border: 1px solid var(--ev-border);
    box-shadow: var(--ev-shadow);
}

.ev-table { margin: 0; }
.ev-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ev-muted); }

.ev-badge {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ev-badge--draft { background: #eee; color: #666; }
.ev-badge--published { background: rgba(47,93,74,.15); color: var(--ev-green); }
.ev-badge--archived { background: rgba(26,18,12,.08); color: var(--ev-muted); }

.ev-modality-competition-cats {
    display: flex;
    flex-wrap: nowrap;
    gap: .2rem;
    margin-top: .35rem;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
}

.ev-modality-competition-cats__empty {
    font-size: .7rem;
    color: var(--ev-muted);
    font-style: italic;
    white-space: nowrap;
}

.ev-competition-cat-chip {
    display: inline-block;
    flex: 0 0 auto;
    padding: .05rem .32rem;
    border-radius: 3px;
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .03em;
    line-height: 1.25;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(26, 18, 12, 0.05);
    color: var(--ev-muted, #6b5f56);
    border: none;
}

.ev-modality-row-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
}

.ev-modality-row-actions__form {
    display: inline-flex;
    margin: 0;
}

.ev-stat {
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    padding: 1.25rem 1.5rem;
}

.ev-stat span { display: block; color: var(--ev-muted); font-size: .85rem; }
.ev-stat strong { font-family: var(--ev-display); font-size: 2rem; }

.ev-flash-wrap {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: grid;
    gap: .5rem;
    max-width: min(420px, calc(100vw - 2rem));
    transition: opacity .4s ease, transform .4s ease;
}

.ev-flash-wrap:has(.ev-flash--list) {
    max-width: min(520px, calc(100vw - 2rem));
    /* Permite o toast alto rolar sem cortar no viewport */
    max-height: calc(100vh - 2rem);
    overflow: visible;
}

.ev-flash-wrap.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.ev-flash {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .85rem 1rem;
    border-radius: 12px;
    box-shadow: var(--ev-shadow);
    font-size: .92rem;
}

.ev-flash--ok { background: #e8f5ef; color: #1e5a3a; }
.ev-flash--err { background: #fdecea; color: #8b2e24; }

.ev-flash__icon {
    flex-shrink: 0;
    margin-top: .1rem;
}

.ev-flash__text { white-space: pre-line; line-height: 1.45; }

.ev-flash--list {
    position: relative;
    align-items: flex-start;
    width: 100%;
    max-height: min(85vh, 36rem);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 1.75rem;
}

.ev-flash__close {
    position: absolute;
    top: .5rem;
    right: .45rem;
    flex-shrink: 0;
    opacity: .55;
    padding: .35rem;
}

.ev-flash__close:hover {
    opacity: 1;
}

.ev-flash--list::-webkit-scrollbar {
    width: 8px;
}

.ev-flash--list::-webkit-scrollbar-thumb {
    background: rgba(139, 46, 36, .35);
    border-radius: 4px;
}

.ev-flash--list .ev-flash__body {
    flex: 1;
    min-width: 0;
    overflow: visible;
    padding-right: .25rem;
}

.ev-flash__section + .ev-flash__section {
    margin-top: 1rem;
    padding-top: .85rem;
    border-top: 1px solid rgba(139, 46, 36, .15);
}

.ev-flash__section-title {
    font-weight: 600;
    font-size: .88rem;
    line-height: 1.35;
    margin: 0 0 .5rem;
}

.ev-flash__scroll-hint {
    display: block;
    margin-top: .65rem;
    font-size: .78rem;
    opacity: .75;
    text-align: center;
}

.ev-flash__title {
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

.ev-flash__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.ev-flash__list-item {
    display: grid;
    gap: .15rem;
    padding: .5rem .65rem;
    background: rgba(255, 255, 255, .55);
    border-radius: 8px;
    border-left: 3px solid rgba(139, 46, 36, .35);
    line-height: 1.4;
}

.ev-flash__nome {
    display: block;
    font-weight: 600;
    font-size: .9rem;
}

.ev-flash__meta {
    display: block;
    font-size: .8rem;
    opacity: .88;
}

.ev-flash__detail {
    display: block;
    font-size: .84rem;
}

.ev-preview img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--ev-border);
}

.ev-preview-banner {
    background: #fff3cd;
    color: #664d03;
    text-align: center;
    padding: .65rem 1rem;
    font-size: .9rem;
    font-weight: 600;
    border-bottom: 1px solid #ffecb5;
}

.ev-breadcrumb a {
    color: var(--ev-muted);
    text-decoration: none;
    font-size: .9rem;
}

.ev-breadcrumb a:hover { color: var(--ev-accent); }

.ev-breadcrumb__current {
    color: var(--ev-text);
    font-size: .9rem;
    font-weight: 600;
}

.ev-breadcrumb--panel {
    margin-bottom: 1rem;
}

.ev-back-hub {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--ev-border);
    background: var(--ev-surface);
    color: var(--ev-text);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--ev-shadow);
    transition: border-color .15s, color .15s, background .15s;
}

.ev-back-hub:hover {
    border-color: var(--ev-accent);
    color: var(--ev-accent);
    background: #fff;
}

.ev-panel-card {
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--ev-shadow);
}

.ev-form-section {
    border: 0;
    padding: 0;
    margin: 0 0 1.75rem;
}

@media (min-width: 576px) {
    .ev-form-section:not(.ev-repeater-list--table):not(.ev-repeater-list--cards) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1rem;
        align-items: start;
    }

    .ev-repeater-row:not(.ev-repeater-row--table) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1rem;
        align-items: start;
    }

    .ev-form-section:not(.ev-repeater-list--table):not(.ev-repeater-list--cards) > .ev-form-field,
    .ev-repeater-row:not(.ev-repeater-row--table) > .ev-form-field {
        margin-bottom: 1rem;
    }

    .ev-repeater-row:not(.ev-repeater-row--table) .ev-repeater-row__head,
    .ev-form-section:not(.ev-repeater-list--table):not(.ev-repeater-list--cards) > .ev-form-field:not(.ev-form-field--compact) {
        grid-column: 1 / -1;
    }
}

.ev-form-section__title {
    font-family: var(--ev-display);
    font-size: 1.1rem;
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--ev-border);
    width: 100%;
}

.ev-alert-inline {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    border-radius: 12px;
}

.container.ev-section--narrow {
    max-width: 720px;
}

.ev-city-search {
    position: relative;
}

.ev-city-search__list {
    position: absolute;
    z-index: 2050;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: .25rem;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--ev-border);
    border-radius: 12px;
    box-shadow: var(--ev-shadow);
    padding: .35rem;
}

.ev-city-search__item {
    padding: .55rem .75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: .92rem;
}

.ev-city-search__item:hover,
.ev-city-search__item.is-active {
    background: rgba(196, 92, 38, .1);
    color: var(--ev-accent, #c45c26);
}

.ev-repeater-list--table .ev-repeater-cell.ev-mtgnet-search {
    position: relative;
    overflow: visible;
}

.ev-form-field.ev-mtgnet-search {
    position: relative;
    overflow: visible;
}

.ev-repeater-list--table .ev-repeater-cell.ev-mtgnet-search.ev-mtgnet-search--open,
.ev-repeater-list--table .ev-mtgnet-search--open {
    position: relative;
    z-index: 200;
}

.ev-mtgnet-search--open {
    isolation: isolate;
}

.ev-mtgnet-search--open .ev-mtgnet-search-group {
    position: relative;
    z-index: 0;
}

.ev-mtgnet-search--open .ev-mtgnet-search-list,
.ev-mtgnet-search--open .ev-city-search__list {
    z-index: 2051;
}

/* Tabela de integrantes: scroll horizontal sem cortar o dropdown da busca MTG */
.ev-repeater-list--integrantes:has(.ev-mtgnet-search--open) {
    overflow: visible;
}

.ev-repeater-list--integrantes .ev-repeater-row:has(.ev-mtgnet-search--open) {
    position: relative;
    z-index: 300;
    overflow: visible;
}

.ev-repeater-list--integrantes .ev-repeater-cell.ev-mtgnet-search {
    position: relative;
    overflow: visible;
}

.ev-repeater-list--integrantes .ev-mtgnet-search-list[hidden],
.ev-repeater-list--integrantes .ev-city-search__list[hidden] {
    display: none !important;
}

.ev-mtgnet-search-list--fixed {
    position: fixed !important;
    right: auto !important;
    margin-top: 0 !important;
    max-height: min(280px, calc(100vh - 6rem)) !important;
    box-shadow: 0 12px 32px rgba(26, 18, 12, 0.2);
}

.ev-repeater-row:has(.ev-mtgnet-search--open),
.ev-inscrito-row:has(.ev-mtgnet-search--open) {
    position: relative;
    z-index: 200;
}

.ev-form-section:has(.ev-mtgnet-search--open) {
    overflow: visible;
}

.ev-mtgnet-search__hint {
    cursor: default;
    color: var(--ev-muted);
    font-size: .85rem;
}

.ev-mtgnet-search__ctg {
    color: var(--ev-green, #2f5d4a);
    font-weight: 600;
    margin-top: .15rem;
    line-height: 1.35;
}

.ev-mtgnet-search-list {
    min-width: min(100%, 26rem);
    width: max(100%, 22rem);
    max-height: 280px;
}

.ev-mtgnet-search-group {
    flex-wrap: nowrap;
}

.ev-mtgnet-search-group .form-control {
    min-width: 0;
    flex: 1 1 auto;
}

.ev-mtgnet-search-btn {
    flex: 0 0 auto;
}

.ev-mtgnet-search-btn--loading .bi-search {
    opacity: .35;
}

.ev-form-card__hint code {
    font-size: .85em;
}

.ev-phase1-summary__grid dt {
    color: var(--ev-muted);
    font-weight: 500;
}

.ev-phase1-summary__grid dd {
    margin-bottom: .5rem;
}

.ev-help-banner {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    border: 1px solid transparent;
}

.ev-help-banner__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    margin-top: .1rem;
}

.ev-help-banner__body {
    flex: 1;
    min-width: 0;
    font-size: .92rem;
    line-height: 1.5;
}

.ev-help-banner__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .5rem;
}

.ev-wa-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.alert-info .ev-wa-link {
    color: #0f5132;
}

.alert-info .ev-wa-link:hover {
    color: #157347;
    text-decoration: underline;
}

.ev-form-card {
    margin-top: 1.25rem;
}

.ev-form-card__head {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ev-border);
}

.ev-form-card__head > .bi {
    font-size: 1.35rem;
    color: var(--ev-accent, #c45c26);
    margin-top: .15rem;
}

.ev-form-card__title {
    font-family: var(--ev-display);
    font-size: 1.15rem;
    margin: 0 0 .25rem;
}

.ev-form-card__intro {
    color: var(--ev-muted);
    font-size: .88rem;
}

.ev-form-card--actions {
    background: var(--ev-bg, #faf8f5);
}

.ev-participant-summary dt {
    color: var(--ev-muted);
    font-weight: 500;
    font-size: .88rem;
}

.ev-participant-summary dd {
    font-size: .95rem;
    margin-bottom: .65rem;
}

.ev-peao-row,
.ev-repeater-row:not(.ev-inscrito-row):not(.ev-integrante-row) {
    border: 1px solid var(--ev-border, #e8e0d8);
    border-radius: .75rem;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
    background: #fff;
}

/*
 * Status do inscrito (ficha) — ver docs/FICHA-INSCRITO-CORES.md
 * Aplicar em: repeater cards, tabela integrantes, blocos prenda/peão, seção participante.
 */
:root {
    --ev-inscrito-bg-default: #fff8f6;
    --ev-inscrito-border-default: #f0c4c4;
    --ev-inscrito-bg-missing: #fdeaea;
    --ev-inscrito-border-missing: #e8b4b4;
    --ev-inscrito-bg-incomplete: #fff0f0;
    --ev-inscrito-border-incomplete: #f5c2c2;
    --ev-inscrito-bg-protocolo: #fffbea;
    --ev-inscrito-border-protocolo: #eadf9a;
    --ev-inscrito-bg-mtg: #edf7ee;
    --ev-inscrito-border-mtg: #b9dfbb;
    --ev-inscrito-bg-complete: #d4edd6;
    --ev-inscrito-border-complete: #8ecf92;
}

.ev-inscrito-row,
.ev-integrante-row.ev-inscrito-row {
    border: 1px solid var(--ev-inscrito-border-default);
    border-radius: .75rem;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
    background: var(--ev-inscrito-bg-default);
    transition: background-color .15s ease, border-color .15s ease;
}

.ev-inscrito-row.ev-integrante-row--age-error,
.ev-integrante-row.ev-integrante-row--age-error {
    outline: 2px solid #c0392b;
    outline-offset: -2px;
    background-color: rgba(192, 57, 43, 0.1);
}

.ev-inscrito-row.ev-integrante-row--missing,
.ev-integrante-row.ev-integrante-row--missing,
.ev-inscrito-row[data-ev-inscrito-status="missing"] {
    background: var(--ev-inscrito-bg-missing);
    border-color: var(--ev-inscrito-border-missing);
}

.ev-inscrito-row.ev-integrante-row--incomplete,
.ev-integrante-row.ev-integrante-row--incomplete,
.ev-inscrito-row[data-ev-inscrito-status="incomplete"] {
    background: var(--ev-inscrito-bg-incomplete);
    border-color: var(--ev-inscrito-border-incomplete);
}

.ev-inscrito-row.ev-integrante-row--protocolo,
.ev-integrante-row.ev-integrante-row--protocolo,
.ev-inscrito-row[data-ev-inscrito-status="protocolo"] {
    background: var(--ev-inscrito-bg-protocolo);
    border-color: var(--ev-inscrito-border-protocolo);
}

.ev-inscrito-row.ev-integrante-row--mtg,
.ev-integrante-row.ev-integrante-row--mtg,
.ev-inscrito-row[data-ev-inscrito-status="mtg"] {
    background: var(--ev-inscrito-bg-mtg);
    border-color: var(--ev-inscrito-border-mtg);
}

.ev-inscrito-row.ev-integrante-row--mtg-full,
.ev-inscrito-row.ev-integrante-row--complete,
.ev-integrante-row.ev-integrante-row--mtg-full,
.ev-integrante-row.ev-integrante-row--complete,
.ev-inscrito-row[data-ev-inscrito-status="mtg-full"],
.ev-inscrito-row[data-ev-inscrito-status="complete"] {
    background: var(--ev-inscrito-bg-complete);
    border-color: var(--ev-inscrito-border-complete);
}

.ev-inscrito-row .ev-cartao-group,
.ev-integrante-row .ev-cartao-group {
    border-color: rgba(47, 93, 74, 0.18);
    background: rgba(255, 255, 255, 0.48);
}

.ev-inscrito-row[class*="ev-integrante-row--"] .ev-cartao-group,
.ev-integrante-row[class*="ev-integrante-row--"] .ev-cartao-group {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.42);
}

.ev-inscrito-row .ev-repeater-row__title,
.ev-inscrito-row.ev-participant-block--peao .ev-repeater-row__title,
.ev-inscrito-row.ev-participant-block--prenda .ev-repeater-row__title,
.ev-participant-block--peao .ev-participant-block__title,
.ev-participant-block--prenda .ev-participant-block__title {
    color: var(--ev-green, #2f5d4a);
}

.ev-inscrito-row[class*="ev-integrante-row--"] .ev-repeater-row__head,
.ev-inscrito-row[class*="ev-integrante-row--"] .ev-participant-block__title {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* Repeater em cards (chula — peões): um por linha, campos legíveis */
.ev-repeater-list--cards {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ev-repeater-list--cards > .ev-repeater-row {
    width: 100%;
}

.ev-repeater-list--cards .ev-repeater-row:not(.ev-repeater-row--table) {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem 1.25rem;
}

@media (min-width: 640px) {
    .ev-repeater-list--cards .ev-repeater-row:not(.ev-repeater-row--table) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ev-repeater-list--cards .ev-repeater-row .ev-repeater-row__head,
    .ev-repeater-list--cards .ev-repeater-row .ev-form-field:has([data-field-key^="nome_"]),
    .ev-repeater-list--cards .ev-repeater-row .ev-cartao-group {
        grid-column: 1 / -1;
    }
}

.ev-repeater-list--cards .ev-repeater-row .form-control,
.ev-repeater-list--cards .ev-repeater-row .form-select {
    font-size: .96rem;
    padding: .6rem .85rem;
    min-height: 2.65rem;
}

.ev-repeater-list--cards .ev-repeater-row input[type="date"].form-control {
    min-width: 11rem;
}

.ev-repeater-list--cards .ev-repeater-row .ev-mtgnet-search-group .form-control {
    min-width: 0;
    flex: 1 1 12rem;
}

.ev-repeater-list--cards .ev-repeater-row .ev-mtgnet-search-list {
    min-width: min(100%, 28rem);
    width: max(100%, 24rem);
}

.ev-repeater-list--cards .ev-participant-block.ev-inscrito-row {
    padding: 1rem 1.1rem;
    border: 1px solid var(--ev-border, #e8e0d8);
    border-radius: .65rem;
    margin-bottom: .85rem;
}

.ev-repeater-list--cards .ev-participant-block.ev-inscrito-row .ev-form-field:has([data-field-key^="nome_"]) {
    grid-column: 1 / -1;
}

@media (min-width: 640px) {
    .ev-repeater-list--cards > .ev-repeater-row.ev-inscrito-row .ev-form-field:has([data-field-key="categoria"]),
    .ev-repeater-list--cards .ev-participant-block.ev-inscrito-row .ev-form-field:has([data-field-key="categoria"]) {
        grid-column: span 1;
    }

    .ev-repeater-list--cards > .ev-repeater-row.ev-inscrito-row .ev-form-field:has([data-field-key*="nascimento"]),
    .ev-repeater-list--cards .ev-participant-block.ev-inscrito-row .ev-form-field:has([data-field-key*="nascimento"]) {
        grid-column: span 1;
    }
}

.ev-peao-row__head,
.ev-repeater-row__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--ev-border, #e8e0d8);
}

.ev-peao-row__title,
.ev-repeater-row__title {
    font-family: var(--ev-display);
    color: var(--ev-accent, #c45c26);
}

/* Danças tradicionais — tabela (desktop) / cards (mobile) */
.ev-repeater-list--table {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .ev-repeater-list--table .ev-repeater-table-head,
    .ev-repeater-list--table .ev-repeater-row--table {
        display: grid;
        grid-template-columns:
            2.5rem
            repeat(var(--ev-repeater-field-count, 5), minmax(5rem, 1fr))
            2.75rem;
        gap: .5rem .65rem;
        align-items: start;
    }

    .ev-repeater-list--table[style*="--ev-repeater-field-count: 5"] .ev-repeater-table-head,
    .ev-repeater-list--table[style*="--ev-repeater-field-count: 5"] .ev-repeater-row--table {
        grid-template-columns:
            2.5rem
            minmax(10rem, 2fr)
            minmax(7rem, 1fr)
            minmax(4.5rem, 0.7fr)
            minmax(7rem, 1fr)
            minmax(7rem, 1fr)
            2.75rem;
    }

    /* Danças tradicionais — integrantes: linha fluida, controles uniformes */
    .ev-repeater-list--integrantes {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: .35rem;
    }

    .ev-repeater-list--integrantes .ev-repeater-table-head,
    .ev-repeater-list--integrantes .ev-repeater-row.ev-repeater-row--table {
        width: 100%;
        grid-template-columns:
            2rem
            minmax(0, 2.1fr)
            7.1rem
            5.25rem
            minmax(5.25rem, 0.75fr)
            7.1rem
            2.35rem;
        grid-template-rows: auto;
        gap: .45rem .55rem;
        align-items: center;
    }

    .ev-repeater-list--integrantes .ev-repeater-table-head {
        margin-bottom: .15rem;
        padding-bottom: .35rem;
        border-bottom: 1px solid var(--ev-border, #e8e0d8);
    }

    .ev-repeater-list--integrantes .ev-repeater-table-head span {
        font-size: .68rem;
        font-weight: 700;
        line-height: 1.2;
        text-transform: uppercase;
        letter-spacing: .02em;
        color: var(--ev-muted, #6c6358);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }

    .ev-repeater-list--integrantes .ev-repeater-table-head__num,
    .ev-repeater-list--integrantes .ev-repeater-row__num {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        padding-top: 0;
    }

    .ev-repeater-list--integrantes .ev-repeater-table-head span:nth-child(2) { grid-column: 2; grid-row: 1; }
    .ev-repeater-list--integrantes .ev-repeater-table-head span:nth-child(3) { grid-column: 3; grid-row: 1; }
    .ev-repeater-list--integrantes .ev-repeater-table-head span:nth-child(4) {
        grid-column: 4;
        grid-row: 1;
        white-space: normal;
        line-height: 1.15;
        text-align: center;
        hyphens: auto;
    }
    .ev-repeater-list--integrantes .ev-repeater-table-head span:nth-child(5) { grid-column: 5; grid-row: 1; }
    .ev-repeater-list--integrantes .ev-repeater-table-head span:nth-child(6) { grid-column: 6; grid-row: 1; }

    .ev-repeater-list--integrantes .ev-repeater-table-head__actions,
    .ev-repeater-list--integrantes .ev-repeater-row__actions {
        grid-column: 7;
        grid-row: 1;
        align-self: center;
        padding-top: 0;
    }

    .ev-repeater-list--integrantes .ev-repeater-cell {
        min-width: 0;
    }

    .ev-repeater-list--integrantes .ev-repeater-cell:has([data-field-key="nome_completo"]) {
        grid-column: 2;
        grid-row: 1;
    }

    .ev-repeater-list--integrantes .ev-repeater-cell:has([data-field-key="data_nascimento"]) {
        grid-column: 3;
        grid-row: 1;
    }

    .ev-repeater-list--integrantes .ev-repeater-cell--protocol {
        grid-column: 4;
        grid-row: 1;
        max-width: none;
        padding: 0;
    }

    .ev-repeater-list--integrantes .ev-repeater-cell--protocol .ev-cartao-protocolo-wrap--table {
        padding-top: 0;
        margin: 0;
        justify-content: center;
        min-height: 2.25rem;
    }

    .ev-repeater-list--integrantes .ev-repeater-cell:has([data-field-key="numero_cartao_tradicionalista"]) {
        grid-column: 5;
        grid-row: 1;
    }

    .ev-repeater-list--integrantes .ev-repeater-cell:has([data-field-key="data_validade_cartao"]) {
        grid-column: 6;
        grid-row: 1;
    }

    .ev-repeater-list--integrantes .ev-repeater-row--table > .ev-repeater-cell--cartao-zone,
    .ev-repeater-list--integrantes .ev-repeater-row--table > .ev-repeater-cell--protocol {
        background: rgba(196, 92, 38, 0.045);
        border-radius: 10px;
        padding: .15rem .3rem;
    }

    .ev-repeater-list--integrantes .ev-repeater-cell .form-control,
    .ev-repeater-list--integrantes .ev-repeater-cell .form-select {
        width: 100%;
        min-width: 0;
        font-size: .875rem;
        padding: .42rem .58rem;
        min-height: 2.25rem;
        height: 2.25rem;
        line-height: 1.25;
        border-radius: 10px;
    }

    .ev-repeater-list--integrantes .ev-repeater-cell .ev-date-br {
        font-variant-numeric: tabular-nums;
        letter-spacing: .01em;
        padding-left: .5rem;
        padding-right: .5rem;
    }

    .ev-repeater-list--integrantes .ev-repeater-cell:has([data-field-key="numero_cartao_tradicionalista"]) .form-control {
        letter-spacing: .02em;
        font-size: .82rem;
        padding-left: .45rem;
        padding-right: .45rem;
    }

    .ev-repeater-list--integrantes .ev-repeater-cell:has([data-field-key="nome_completo"]) .ev-mtgnet-search-group {
        display: flex;
        align-items: stretch;
        min-width: 0;
        border: 1px solid var(--ev-border);
        border-radius: 10px;
        background: var(--ev-surface);
        overflow: hidden;
    }

    .ev-repeater-list--integrantes .ev-repeater-cell:has([data-field-key="nome_completo"]) .ev-mtgnet-search-group .form-control {
        min-width: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .ev-repeater-list--integrantes .btn.ev-mtgnet-search-btn,
    .ev-repeater-list--integrantes .btn.ev-repeater-remove {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 2.25rem;
        width: 2.25rem;
        height: 2.25rem;
        padding: 0 !important;
        min-height: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
        color: var(--ev-muted) !important;
        font-size: .95rem !important;
        font-weight: 500 !important;
        transition:
            color .15s var(--ev-ease),
            background-color .15s var(--ev-ease);
    }

    .ev-repeater-list--integrantes .btn.ev-mtgnet-search-btn {
        border-left: 1px solid var(--ev-border) !important;
    }

    .ev-repeater-list--integrantes .btn.ev-mtgnet-search-btn:hover,
    .ev-repeater-list--integrantes .btn.ev-mtgnet-search-btn:active,
    .ev-repeater-list--integrantes .btn.ev-repeater-remove:hover,
    .ev-repeater-list--integrantes .btn.ev-repeater-remove:active {
        transform: none !important;
        box-shadow: none !important;
        background: rgba(26, 18, 12, 0.04) !important;
    }

    .ev-repeater-list--integrantes .btn.ev-mtgnet-search-btn:hover {
        color: var(--ev-accent) !important;
    }

    .ev-repeater-list--integrantes .btn.ev-repeater-remove {
        border: 1px solid var(--ev-border) !important;
        border-radius: 10px !important;
    }

    .ev-repeater-list--integrantes .btn.ev-repeater-remove:hover {
        color: var(--ev-btn-danger-face) !important;
        border-color: rgba(217, 72, 65, 0.35) !important;
        background: rgba(217, 72, 65, 0.06) !important;
    }

    .ev-repeater-list--integrantes .ev-cartao-protocolo-wrap .form-check-input {
        width: 2rem;
        height: 1.1rem;
        margin: 0;
    }

    .ev-repeater-list--integrantes .ev-repeater-row__num {
        font-size: .84rem;
        font-weight: 700;
        color: var(--ev-muted);
    }

    .ev-repeater-list--integrantes > .ev-repeater-row.ev-inscrito-row {
        border-radius: .65rem;
        margin-bottom: .5rem;
        padding: .6rem .65rem;
        border: 1px solid var(--ev-inscrito-border-default);
    }

    /* Não zerar fundo de linhas com status (Danças Tradicionais / integrantes) */
    .ev-repeater-list--integrantes .ev-repeater-row.ev-repeater-row--table.ev-inscrito-row {
        border-bottom: 1px solid var(--ev-inscrito-border-default);
    }

    .ev-repeater-list--integrantes .ev-repeater-row.ev-integrante-row:last-child {
        border-bottom: 1px solid var(--ev-inscrito-border-default);
    }

    .ev-repeater-list--integrantes .ev-repeater-cell:has([data-field-key="nome_completo"]).ev-mtgnet-search--open {
        z-index: 310;
    }

    .ev-repeater-list--integrantes .ev-mtgnet-search--open .ev-mtgnet-search-list:not(.ev-mtgnet-search-list--fixed),
    .ev-repeater-list--integrantes .ev-mtgnet-search--open .ev-city-search__list:not(.ev-mtgnet-search-list--fixed) {
        left: 0;
        top: calc(100% + 4px);
        width: max(100%, 18rem);
        min-width: 18rem;
        max-width: min(32rem, 90vw);
        z-index: 3110;
    }

    .ev-repeater-list--integrantes .ev-city-search__item {
        padding: .6rem .75rem;
        font-size: .9rem;
        line-height: 1.35;
    }

    .ev-grupos-list {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .ev-grupo-block {
        padding: 1rem 1.15rem;
        border: 1px solid var(--ev-border);
        border-radius: var(--ev-radius, .5rem);
        background: var(--ev-surface, #fff);
    }

    .ev-grupo-block__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        margin-bottom: .75rem;
    }

    .ev-grupo-block__title {
        margin: 0;
        font-size: 1rem;
        font-weight: 700;
    }

    .ev-grupo-block .ev-grupo-categoria {
        max-width: 20rem;
    }

    .ev-premiacao-block {
        padding: .85rem 1rem;
        border: 1px solid var(--ev-inscrito-border-default, #f0c4c4);
        border-radius: var(--ev-radius, .5rem);
        background: var(--ev-inscrito-bg-default, #fff8f6);
        transition: background-color .15s ease, border-color .15s ease;
    }

    .ev-premiacao-block--incomplete {
        background: var(--ev-inscrito-bg-incomplete, #fff0f0);
        border-color: var(--ev-inscrito-border-incomplete, #f5c2c2);
    }

    .ev-premiacao-block--complete {
        background: var(--ev-inscrito-bg-complete, #d4edd6);
        border-color: var(--ev-inscrito-border-complete, #8ecf92);
    }

    .ev-premiacao-block__intro {
        color: var(--ev-muted, #5c6578);
        line-height: 1.45;
    }

    .ev-premiacao-block__grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1rem 1.25rem;
        align-items: start;
    }

    .ev-premiacao-block__cell {
        min-width: 0;
    }

    .ev-premiacao-block .ev-form-field {
        margin-bottom: 0 !important;
    }

    .ev-premiacao-block .form-select,
    .ev-premiacao-block .form-control {
        width: 100%;
    }

    .ev-repeater-row > .ev-premiacao-block {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: .25rem;
    }

    .ev-repeater-list--table .ev-repeater-table-head span:nth-child(2) {
        grid-column: span 1;
    }

    .ev-repeater-list--table .ev-repeater-table-head span {
        text-align: left;
    }

    .ev-repeater-list--table .ev-repeater-table-head span:first-child,
    .ev-repeater-list--table .ev-repeater-table-head span:last-child {
        text-align: center;
    }

    .ev-repeater-list--table .ev-repeater-table-head {
        padding: 0 .25rem .65rem;
        border-bottom: 2px solid var(--ev-border);
        margin-bottom: .35rem;
        font-size: .78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .02em;
        color: var(--ev-muted);
    }

    /* Tabelas genéricas sem status; linhas .ev-inscrito-row mantêm cores globais */
    .ev-repeater-list--table .ev-repeater-row--table:not(.ev-inscrito-row) {
        border: 0;
        border-radius: 0;
        padding: .55rem .25rem;
        margin-bottom: 0;
        background: transparent;
        border-bottom: 1px solid var(--ev-border);
    }

    .ev-repeater-list--table .ev-repeater-row--table:last-child {
        border-bottom: 0;
    }

    .ev-repeater-list--table .ev-repeater-row__head {
        display: none;
    }

    .ev-repeater-list--table .ev-repeater-row__num {
        font-weight: 700;
        color: var(--ev-muted);
        padding-top: .55rem;
        text-align: center;
    }

    .ev-repeater-list--table .ev-repeater-cell .form-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }

    .ev-repeater-list--table .ev-repeater-row__actions {
        padding-top: .15rem;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .ev-repeater-list--table:not(.ev-repeater-list--integrantes) .ev-repeater-table-head,
    .ev-repeater-list--table:not(.ev-repeater-list--integrantes) .ev-repeater-row__num,
    .ev-repeater-list--table:not(.ev-repeater-list--integrantes) .ev-repeater-row__actions {
        display: none !important;
    }

    .ev-repeater-list--table:not(.ev-repeater-list--integrantes) .ev-repeater-row--table {
        margin-bottom: 1rem;
    }
}

.ev-input--protocol-disabled {
    background: var(--ev-bg, #f5f3ef);
    opacity: 0.65;
}

.ev-form-section > .ev-participant-block {
    grid-column: 1 / -1;
}

.ev-participant-block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.ev-participant-block:not(.ev-inscrito-row) {
    padding: 1.1rem 1.15rem 1.25rem;
    border: 1px solid var(--ev-border);
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.92);
}

.ev-participant-block.ev-inscrito-row {
    padding: 1.1rem 1.15rem 1.25rem;
    border-radius: 12px;
}

.ev-participant-block--categoria.ev-inscrito-row:not([class*="ev-integrante-row--"]) {
    background: rgba(255, 253, 249, 0.96);
    border-color: var(--ev-border);
}

.ev-participant-block > .ev-participant-block__title,
.ev-participant-block > .ev-cartao-group,
.ev-participant-block > .ev-form-field:not(.ev-form-field--compact),
.ev-participant-block > .ev-form-field:has([data-field-key^="nome_"]) {
    grid-column: 1 / -1;
}

.ev-participant-block .form-control,
.ev-participant-block .form-select {
    font-size: .96rem;
    padding: .6rem .85rem;
    min-height: 2.65rem;
}

.ev-participant-block .ev-form-field.ev-mtgnet-search {
    overflow: visible;
    position: relative;
    z-index: 1;
}

.ev-participant-block .ev-form-field.ev-mtgnet-search.ev-mtgnet-search--open {
    z-index: 200;
}

.ev-participant-block .ev-mtgnet-search-list {
    z-index: 2051;
}

.ev-participant-block .ev-mtgnet-search-group {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.ev-participant-block .ev-mtgnet-search-group .form-control {
    flex: 1 1 12rem;
    min-width: 0;
}

.ev-participant-block .ev-mtgnet-search-btn {
    flex: 0 0 auto;
}

.ev-participant-block > .ev-form-field {
    margin-bottom: 0;
}

.ev-participant-block:last-child {
    margin-bottom: 0;
}

.ev-participant-block--in-repeater {
    margin-top: .5rem;
    margin-bottom: .85rem;
}

.ev-repeater-list--cards .ev-participant-block--in-repeater {
    grid-column: 1 / -1;
}

.ev-participant-block__title {
    font-family: var(--ev-display);
    font-size: 1.05rem;
    color: var(--ev-accent);
    margin: 0 0 1rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid var(--ev-border);
}

.ev-cartao-group {
    grid-column: 1 / -1;
    margin-top: .35rem;
    padding: .9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(47, 93, 74, 0.18);
    background: rgba(255, 255, 255, 0.48);
}

.ev-cartao-group__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .65rem 1rem;
    margin-bottom: .75rem;
}

.ev-cartao-group__title {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
    font-size: .92rem;
    color: var(--ev-text);
}

.ev-cartao-group__title .bi {
    color: var(--ev-accent);
}

.ev-cartao-group__fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

@media (min-width: 576px) {
    .ev-cartao-group__fields {
        grid-template-columns: minmax(13rem, 1.45fr) minmax(11rem, 1fr);
    }
}

.ev-cartao-group__hint {
    margin-top: .7rem;
    font-size: .8rem;
    color: var(--ev-muted);
    line-height: 1.45;
}

.ev-cartao-group--protocol {
    border-color: rgba(47, 93, 74, 0.28);
    background: linear-gradient(180deg, rgba(47, 93, 74, 0.08) 0%, rgba(255, 253, 249, 0.95) 100%);
}

.ev-cartao-group--protocol .ev-cartao-group__title .bi {
    color: var(--ev-green);
}

.ev-cartao-protocolo-wrap {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: 0;
    min-height: 1.5rem;
}

.ev-cartao-protocolo-wrap .form-check-input {
    margin-top: 0;
    cursor: pointer;
}

.ev-cartao-protocolo-wrap .form-check-label {
    font-weight: 600;
    font-size: .84rem;
    color: var(--ev-text);
    cursor: pointer;
}

.ev-cartao-protocolo-wrap--table {
    justify-content: center;
    padding-top: .35rem;
}

.ev-repeater-list--table .ev-repeater-table-head span:nth-child(n+4):nth-child(-n+6) {
    background: rgba(196, 92, 38, 0.06);
    border-radius: 6px;
    padding: .15rem .25rem;
}

.ev-repeater-row--table > .ev-repeater-cell--cartao-zone {
    background: rgba(196, 92, 38, 0.04);
    border-radius: 8px;
    padding: .35rem .25rem .15rem;
}

.ev-repeater-row--table > .ev-repeater-cell--protocol {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.ev-import-mapping-row .form-label {
    color: var(--ev-muted, #6c6358);
}

.ev-import-preview-table {
    font-size: 0.875rem;
}

.ev-import-preview-table th,
.ev-import-preview-table td {
    vertical-align: middle;
}

.ev-input--mtg {
    background: var(--ev-bg, #faf8f5);
}

.ev-prose { color: var(--ev-muted); line-height: 1.7; }

.ev-meta { margin: .5rem 0 0; }
.ev-meta--light { color: rgba(255,255,255,.8); }

/* ——— Admin & participant hubs (centralized management) ——— */
.ev-admin-page {
    width: min(var(--ev-app-max-width), calc(100% - 2 * var(--ev-app-gutter)));
    margin: 0 auto;
    padding: 1.25rem 0 3rem;
}

.ev-admin-page--narrow {
    width: min(840px, calc(100% - 2 * var(--ev-app-gutter)));
}

.ev-admin-page__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    margin-bottom: 1.75rem;
}

.ev-event-hub,
.ev-participant-hub {
    width: min(var(--ev-app-max-width), calc(100% - 2 * var(--ev-app-gutter)));
    margin: 0 auto;
    padding: 1.15rem 0 3rem;
}

.ev-hub-header {
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: calc(var(--ev-radius) + 4px);
    padding: 1.25rem 1.35rem 0;
    box-shadow: var(--ev-shadow);
    margin-bottom: 1.25rem;
}

.ev-hub-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}

.ev-hub-back {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--ev-muted);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
}

.ev-hub-back:hover { color: var(--ev-accent); }

.ev-hub-header__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.ev-badge--edit-open {
    background: rgba(196, 92, 38, .12);
    color: var(--ev-accent);
    text-transform: none;
    letter-spacing: 0;
}

.ev-hub-header__main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
}

.ev-hub-title {
    font-family: var(--ev-display);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    margin: 0 0 .35rem;
    line-height: 1.15;
}

.ev-hub-subtitle {
    margin: 0;
    color: var(--ev-muted);
    font-size: .92rem;
}

.ev-hub-portal-btn {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.ev-hub-nav {
    display: flex;
    gap: .35rem;
    overflow-x: auto;
    padding-bottom: 0;
    margin: 0 -1.35rem;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
    scrollbar-width: none;
}

.ev-hub-nav::-webkit-scrollbar { display: none; }

.ev-hub-nav__link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .75rem 1rem;
    border-radius: 12px 12px 0 0;
    text-decoration: none;
    color: var(--ev-muted);
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
    border-bottom: none;
    transition: color .15s, background .15s;
}

.ev-hub-nav__link:hover {
    color: var(--ev-text);
    background: rgba(196, 92, 38, .06);
}

.ev-hub-nav__link.is-active {
    color: var(--ev-accent);
    background: var(--ev-bg);
    border-color: var(--ev-border);
}

.ev-hub-nav__count {
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: rgba(196, 92, 38, .14);
    color: var(--ev-accent);
    font-size: .72rem;
    display: inline-grid;
    place-items: center;
}

.ev-hub-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1rem;
    margin-bottom: 1rem;
}

.ev-hub-toolbar__hint {
    color: var(--ev-muted);
    font-size: .88rem;
}

.ev-hub-segment {
    display: inline-flex;
    padding: .2rem;
    border-radius: 999px;
    background: rgba(26, 18, 12, .06);
    border: 1px solid var(--ev-border);
}

.ev-hub-segment__btn {
    padding: .45rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--ev-muted);
    font-size: .88rem;
    font-weight: 600;
}

.ev-hub-segment__btn.is-active {
    background: var(--ev-surface);
    color: var(--ev-text);
    box-shadow: 0 1px 4px rgba(26, 18, 12, .08);
}

.ev-hub-panel {
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    box-shadow: var(--ev-shadow);
    overflow: hidden;
}

.ev-data-list {
    display: grid;
    gap: 0;
}

.ev-data-list--grouped {
    gap: 1.25rem;
}

.ev-data-group {
    border: 1px solid var(--ev-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--ev-surface);
}

.ev-data-group__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .35rem 1rem;
    padding: .85rem 1.25rem;
    background: rgba(196, 92, 38, .08);
    border-bottom: 1px solid var(--ev-border);
}

.ev-data-group__title {
    font-family: var(--ev-display);
    font-size: 1.05rem;
    margin: 0;
}

.ev-data-group__count {
    font-size: .82rem;
    color: var(--ev-muted);
}

.ev-data-group .ev-data-row:last-child {
    border-bottom: none;
}

.ev-hub-panel--participants {
    overflow: visible;
    box-shadow: var(--ev-shadow-sm);
}

.ev-participants {
    display: grid;
    grid-template-columns: minmax(12.5rem, 16.5rem) minmax(0, 1fr);
    align-items: stretch;
    min-height: 28rem;
}

.ev-participants-nav {
    position: sticky;
    top: 0;
    align-self: start;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    padding: 1rem 1rem 1.1rem;
    border-right: 1px solid var(--ev-border);
    background: rgba(26, 18, 12, .02);
}

.ev-participants-nav__label {
    margin: 0 0 .75rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ev-muted);
}

.ev-participants-nav__list {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.ev-participants-nav__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .45rem;
    width: 100%;
    padding: .45rem .55rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--ev-text);
    font: inherit;
    font-size: .84rem;
    text-align: left;
    cursor: pointer;
    transition: background .15s var(--ev-ease), color .15s var(--ev-ease);
}

.ev-participants-nav__btn:hover {
    background: rgba(26, 18, 12, .05);
}

.ev-participants-nav__btn.is-active {
    background: rgba(196, 92, 38, .1);
    color: var(--ev-accent);
    font-weight: 600;
}

.ev-participants-nav__name {
    min-width: 0;
    line-height: 1.3;
}

.ev-participants-nav__count {
    flex-shrink: 0;
    min-width: 1.35rem;
    padding: .05rem .35rem;
    border-radius: 6px;
    background: rgba(26, 18, 12, .06);
    font-size: .7rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: var(--ev-muted);
}

.ev-participants-nav__btn.is-active .ev-participants-nav__count {
    background: rgba(196, 92, 38, .18);
    color: var(--ev-accent);
}

.ev-participants-nav__export {
    margin-top: .85rem;
    padding-top: .85rem;
    border-top: 1px solid var(--ev-border);
}

.ev-participants-nav__group {
    display: flex;
    flex-direction: column;
    gap: .05rem;
    margin-bottom: .15rem;
}

.ev-participants-nav__btn--child {
    padding-left: 1.1rem;
    font-size: .78rem;
    color: var(--ev-muted);
}

.ev-participants-nav__btn--child.is-active {
    color: var(--ev-accent);
}

.ev-participants-nav__btn--child .ev-participants-nav__name::before {
    content: "·";
    margin-right: .35rem;
    opacity: .55;
}

.ev-participants-main {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 1.35rem 1.5rem 1.75rem;
    background: var(--ev-surface);
}

.ev-participants-section {
    scroll-margin-top: 5rem;
}

.ev-participants-section.is-hidden {
    display: none;
}

.ev-participants-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: .5rem 1rem;
    margin-bottom: 1rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--ev-border);
}

.ev-participants-section__title {
    font-family: var(--ev-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.ev-participants-section__meta {
    margin: .2rem 0 0;
    font-size: .82rem;
    color: var(--ev-muted);
}

.ev-participants-export-links {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .65rem;
}

.ev-export-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: 0;
    border: none;
    background: none;
    font-size: .78rem;
    font-weight: 600;
    color: var(--ev-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color .15s var(--ev-ease);
}

.ev-export-link:hover {
    color: var(--ev-accent);
}

.ev-export-link .bi {
    font-size: .85rem;
}

.ev-participants-faixa-block {
    margin-bottom: 1.35rem;
}

.ev-participants-faixa-block:last-child {
    margin-bottom: 0;
}

.ev-participants-faixa-block.is-hidden {
    display: none;
}

.ev-participants-faixa-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .55rem;
}

.ev-participants-faixa-block__title {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ev-muted);
}

.ev-faixa-chip {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 6px;
    background: rgba(47, 93, 74, .1);
    color: var(--ev-green);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
}

.ev-participants-faixa-block__count {
    font-size: .75rem;
    font-weight: 600;
    color: var(--ev-muted);
    font-variant-numeric: tabular-nums;
}

.ev-participant-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.ev-participant-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem 1rem;
    align-items: center;
    padding: .75rem .9rem;
    border: 1px solid var(--ev-border);
    border-radius: 10px;
    background: rgba(26, 18, 12, .015);
    transition: border-color .15s var(--ev-ease), box-shadow .15s var(--ev-ease);
}

.ev-participant-item:hover {
    border-color: rgba(196, 92, 38, .22);
    box-shadow: 0 2px 8px rgba(26, 18, 12, .04);
}

.ev-participant-item.is-muted {
    opacity: .68;
}

.ev-participant-item__title {
    margin: 0;
    font-family: var(--ev-font);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ev-text);
}

.ev-participant-item__meta {
    margin: .2rem 0 0;
    font-size: .8rem;
    color: var(--ev-muted);
}

.ev-participant-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-top: .45rem;
}

.ev-pill {
    display: inline-block;
    padding: .12rem .45rem;
    border-radius: 5px;
    background: rgba(26, 18, 12, .06);
    font-size: .72rem;
    font-weight: 500;
    color: var(--ev-muted);
    line-height: 1.3;
}

.ev-pill--accent {
    background: rgba(196, 92, 38, .1);
    color: var(--ev-accent);
}

.ev-pill--group {
    background: rgba(47, 93, 74, .1);
    color: var(--ev-green);
}

.ev-participant-item__actions {
    flex-shrink: 0;
}

.ev-btn-ghost {
    padding: .35rem .55rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s var(--ev-ease), color .15s var(--ev-ease);
}

.ev-btn-ghost--danger {
    color: #9a3b32;
}

.ev-btn-ghost--danger:hover {
    background: rgba(154, 59, 50, .1);
}

.ev-btn-ghost--muted {
    color: var(--ev-muted);
}

.ev-btn-ghost--muted:hover {
    background: rgba(26, 18, 12, .06);
    color: var(--ev-text);
}

.ev-participants .ev-data-list {
    gap: .5rem;
}

.ev-participants .ev-data-row {
    border: 1px solid var(--ev-border);
    border-radius: 10px;
    margin-bottom: 0;
    padding: .75rem .9rem;
    background: rgba(26, 18, 12, .015);
}

.ev-empty__hint {
    font-size: .88rem;
    color: var(--ev-muted);
}

.ev-data-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem 1.25rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--ev-border);
    align-items: start;
}

.ev-data-row:last-child { border-bottom: none; }

.ev-data-row.is-muted { opacity: .72; }

.ev-data-row__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: .35rem;
}

.ev-data-row__id {
    font-size: .78rem;
    font-weight: 700;
    color: var(--ev-muted);
    letter-spacing: .04em;
}

.ev-data-row__title {
    font-family: var(--ev-display);
    font-size: 1.05rem;
    margin: 0 0 .2rem;
}

.ev-data-row__meta,
.ev-data-row__hint {
    margin: 0;
    color: var(--ev-muted);
    font-size: .86rem;
}

.ev-data-row__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .65rem 1rem;
    margin: .75rem 0 0;
}

.ev-entity-rt-facts {
    margin-top: .55rem;
}

.ev-data-row__facts dt {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ev-muted);
    margin-bottom: .15rem;
}

.ev-data-row__facts dd {
    margin: 0;
    font-size: .92rem;
}

/* Dados de entidade e participantes — exibição em maiúsculas */
.ev-entity-rt-facts dd,
.ev-data-row__title,
.ev-participant-item__title,
.ev-participants-section__title,
.ev-participants-nav__btn:not([data-ev-participant-filter="all"]):not([data-ev-entity-filter="all"]) .ev-participants-nav__name,
.ev-sorteio-table--layout tbody td:not(.ev-sorteio-table__ordem):not(.ev-sorteio-table__absent-col),
.ev-sorteio-chip__name,
.ev-sorteio-chip__cell:not(.ev-sorteio-chip__cell--action):not(.ev-sorteio-chip__cell--ordem-spacer),
.ev-sorteio-chip__entity,
.ev-sorteio-chip__rt,
.ev-sorteio-chip__cidade,
.ev-portal-ordem-table tbody td:not(:first-child),
.ev-portal-ordem-absent__item,
.ev-portal-ordem-absent__meta {
    text-transform: uppercase;
}

.ev-data-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: start;
}

.ev-data-row__actions--stack {
    flex-direction: column;
    min-width: 10.5rem;
}

.ev-clone-form {
    display: grid;
    gap: .45rem;
    width: 100%;
}

.ev-hub-help {
    margin-top: 1rem;
    color: var(--ev-muted);
    font-size: .86rem;
}

.ev-hub-help summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ev-text);
}

.ev-empty--compact {
    padding: 2.25rem 1rem;
}

.ev-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.ev-event-manage-card {
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--ev-shadow);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.ev-event-manage-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
}

.ev-event-manage-card__date {
    font-size: .82rem;
    color: var(--ev-muted);
}

.ev-event-manage-card__title {
    font-family: var(--ev-display);
    font-size: 1.15rem;
    margin: 0;
    line-height: 1.2;
}

.ev-event-manage-card__slug {
    margin: 0;
    font-size: .82rem;
    color: var(--ev-muted);
}

.ev-event-manage-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .5rem;
}

.ev-participant-hub__banner {
    margin-bottom: 1.5rem;
}

.ev-participant-hub__banner-main {
    align-items: flex-end;
}

.ev-participant-hub__kicker {
    margin-bottom: .5rem;
    color: var(--ev-accent);
}

.ev-participant-hub__banner-text {
    flex: 1 1 16rem;
    min-width: 0;
    max-width: 42rem;
}

.ev-participant-hub__banner-text .ev-section-head--in-card::after {
    margin-top: .65rem;
}

.ev-participant-hub__event-name {
    margin: .5rem 0 .35rem;
    font-family: var(--ev-display);
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--ev-green);
}

.ev-participant-hub__lead {
    margin-top: .85rem;
}

.ev-participant-hub__lead-hint {
    color: var(--ev-muted);
    font-weight: 400;
}

.ev-badge--count {
    background: rgba(47, 93, 74, .12);
    color: var(--ev-green);
    text-transform: none;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.ev-badge--muted {
    background: rgba(43, 33, 24, .06);
    color: var(--ev-muted);
    text-transform: none;
    letter-spacing: 0;
}

.ev-breadcrumb__sep {
    color: var(--ev-muted);
    margin: 0 .35rem;
}

.ev-reg-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.ev-reg-cards--in-panel {
    margin-top: .75rem;
}

.ev-reg-cards--in-panel .ev-reg-card {
    box-shadow: var(--ev-shadow-sm, 0 2px 6px rgba(0, 0, 0, 0.05));
    border: 1px solid var(--ev-border);
}

.ev-inscriptions-empty-hint {
    padding: .25rem 0 .15rem;
    line-height: 1.55;
}

.ev-reg-card {
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--ev-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--ev-transition), box-shadow var(--ev-transition), border-color var(--ev-transition);
}

.ev-reg-card:hover {
    box-shadow: var(--ev-shadow);
    border-color: rgba(196, 92, 38, 0.25);
}

.ev-reg-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .85rem;
}

.ev-reg-card__event {
    margin: 0 0 .2rem;
    font-size: .82rem;
    color: var(--ev-muted);
}

.ev-reg-card__title {
    font-family: var(--ev-display);
    font-size: 1.15rem;
    margin: 0;
}

.ev-reg-card__subtitle {
    font-size: .9rem;
    color: var(--ev-muted);
    margin-top: .25rem;
}

.ev-reg-card__facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .65rem .75rem;
    margin: 0 0 1.25rem;
    background: rgba(0, 0, 0, 0.02);
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.ev-reg-card__facts dt {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ev-muted);
}

.ev-reg-card__facts dd {
    margin: .1rem 0 0;
    font-size: .92rem;
}

.ev-reg-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: auto;
}

.ev-reg-card__actions .btn.ev-btn-primary,
.ev-reg-card__actions .btn.btn-outline-secondary {
    flex: 1 1 auto;
    min-width: 0;
}

.ev-reg-card__delete {
    margin: 0;
    flex: 0 0 auto;
}

.ev-reg-card__actions .btn {
    width: auto;
}

.ev-topbar-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    border-radius: 10px;
    padding: .35rem .55rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .ev-portal-hero { min-height: 70vh; }

    .ev-topbar {
        flex-wrap: wrap;
        align-items: center;
        gap: .65rem;
        padding: .75rem 1rem;
    }

    .ev-topbar-toggle { display: inline-flex; }

    .ev-topnav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;
        padding: .5rem 0 .25rem;
    }

    .ev-topnav.is-open { display: flex; }

    .ev-topnav a {
        padding: .55rem .65rem;
        border-radius: 8px;
    }

    .ev-topnav a:hover { background: rgba(255,255,255,.08); }

    .ev-event-hub,
    .ev-participant-hub,
    .ev-admin-page {
        width: min(100%, calc(100% - 2 * var(--ev-app-gutter)));
        padding-top: 0.85rem;
    }

    .ev-hub-header { padding: 1rem 1rem 0; }

    .ev-hub-nav {
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .ev-data-row {
        grid-template-columns: 1fr;
    }

    .ev-data-row__actions,
    .ev-data-row__actions--stack {
        width: 100%;
        min-width: 0;
    }

    .ev-hub-header__main { flex-direction: column; }

    .ev-hub-portal-btn { width: 100%; justify-content: center; }

    .ev-portal-panel-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .ev-portal-panel-cta__action .btn { width: 100%; justify-content: center; }

    .ev-participants {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .ev-participants-nav {
        position: static;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--ev-border);
    }

    .ev-participants-nav__list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
        gap: .25rem;
    }

    .ev-participants-nav__btn--child {
        padding-left: .55rem;
    }

    .ev-participants-nav__btn--child .ev-participants-nav__name::before {
        display: none;
    }

    .ev-participants-main {
        padding: 1rem;
    }

    .ev-participant-item {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .ev-portal-hero__wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .ev-portal-hero__content {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .ev-portal-logo {
        flex: 0 0 auto;
        max-width: 140px;
        align-self: flex-end;
    }

    .ev-site-header__inner {
        flex-wrap: wrap;
        gap: .75rem;
    }

    .ev-hero-home__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ev-hero-home__actions .btn {
        width: 100%;
    }
}

/* ——— Public site chrome (header / footer) ——— */
body.ev-public {
    background:
        radial-gradient(ellipse at top right, rgba(196, 92, 38, 0.06), transparent 42%),
        var(--ev-bg);
}

.ev-public-main {
    min-height: calc(100vh - 8rem);
}

.ev-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 253, 249, 0.88);
    border-bottom: 1px solid var(--ev-border);
    backdrop-filter: blur(10px);
}

.ev-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
    padding-top: .35rem;
    padding-bottom: .35rem;
}

.ev-site-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    color: var(--ev-text);
    font-weight: 700;
    min-width: 0;
}

.ev-site-brand__mark {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--ev-green), var(--ev-bg-deep));
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.ev-site-brand__text {
    font-family: var(--ev-display);
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ev-site-nav {
    display: flex;
    align-items: center;
    gap: .35rem 1rem;
    flex-wrap: wrap;
}

.ev-site-nav a {
    color: var(--ev-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    padding: .45rem .15rem;
    transition: color var(--ev-transition);
}

.ev-site-nav a:hover {
    color: var(--ev-text);
}

.ev-site-nav__cta {
    --ev-btn-face: var(--ev-btn-primary-face);
    --ev-btn-rim: var(--ev-btn-primary-rim);
    --ev-btn-hover: var(--ev-btn-primary-hover);
    --ev-btn-text: #fff;
    --ev-btn-lift-local: var(--ev-btn-sm-lift);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: var(--ev-btn-sm-py) var(--ev-btn-sm-px) !important;
    border-radius: var(--ev-btn-radius) !important;
    background: var(--ev-btn-face) !important;
    color: var(--ev-btn-text) !important;
    border: none !important;
    font-weight: var(--ev-btn-weight);
    box-shadow: 0 var(--ev-btn-lift-local) 0 var(--ev-btn-rim);
    transform: translateY(0);
    transition: transform 0.12s var(--ev-ease), box-shadow 0.12s var(--ev-ease), background 0.12s var(--ev-ease) !important;
}

.ev-site-nav__cta:hover {
    background: var(--ev-btn-hover) !important;
    color: var(--ev-btn-text) !important;
    transform: translateY(1px);
    box-shadow: 0 calc(var(--ev-btn-lift-local) - 1px) 0 var(--ev-btn-rim);
}

.ev-site-footer {
    margin-top: auto;
    border-top: 1px solid var(--ev-border);
    background: rgba(26, 18, 12, 0.03);
    padding: 1.75rem 0 2rem;
}

.ev-site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.25rem;
}

.ev-site-footer__lead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .85rem 1.25rem;
    min-width: 0;
}

.ev-site-footer__social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.ev-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    border: 1px solid var(--ev-border);
    background: #fff;
    color: var(--ev-muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color var(--ev-transition), background var(--ev-transition), border-color var(--ev-transition), transform var(--ev-transition);
}

.ev-social-icon:hover {
    color: #fff;
    transform: translateY(-2px);
}

.ev-social-icon--fb:hover { background: #1877f2; border-color: #1877f2; }
.ev-social-icon--ig:hover { background: #e4405f; border-color: #e4405f; }
.ev-social-icon--web:hover { background: var(--ev-green); border-color: var(--ev-green); }
.ev-social-icon--pdf:hover { background: var(--ev-accent); border-color: var(--ev-accent); }

.ev-wa-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.65rem;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(37, 211, 102, .45);
    transition: transform var(--ev-transition), box-shadow var(--ev-transition), background var(--ev-transition);
}

.ev-wa-fab:hover {
    color: #fff;
    background: #1ebe57;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 24px rgba(37, 211, 102, .5);
}

.ev-has-wa-fab .ev-public-main {
    padding-bottom: 4.75rem;
}

@media (max-width: 575.98px) {
    .ev-wa-fab {
        right: 1rem;
        bottom: 1rem;
        width: 3.1rem;
        height: 3.1rem;
        font-size: 1.5rem;
    }
}

.ev-site-footer__copy,
.ev-site-footer__credit {
    margin: 0;
    font-size: .88rem;
    color: var(--ev-muted);
}

.ev-site-footer__credit a {
    color: var(--ev-green);
    font-weight: 600;
    text-decoration: none;
}

.ev-site-footer__credit a:hover {
    color: var(--ev-accent);
}

.ev-portal-panel-cta.ev-panel-card {
    border-radius: calc(var(--ev-radius) + 2px);
    box-shadow: var(--ev-shadow-sm);
    transition: box-shadow var(--ev-transition), border-color var(--ev-transition);
}

.ev-portal-panel-cta.ev-panel-card:hover {
    box-shadow: var(--ev-shadow);
    border-color: rgba(47, 93, 74, 0.22);
}

.ev-prose {
    color: var(--ev-muted);
    line-height: 1.75;
    font-size: 1.02rem;
}

.ev-prose--portal {
    color: var(--ev-text);
    font-size: 1.05rem;
    line-height: 1.85;
    letter-spacing: 0.01em;
}

.ev-prose--portal strong {
    color: var(--ev-green);
    font-weight: 600;
}

/* Admin — caixa de e-mails (auditoria) */
.ev-mail-inbox-wrap {
    padding: 1.1rem 1.2rem;
}

.ev-mail-inbox-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ev-mail-inbox {
    display: grid;
    grid-template-columns: minmax(240px, 34%) 1fr;
    gap: 0;
    min-height: 420px;
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    overflow: hidden;
    background: var(--ev-surface);
}

.ev-mail-inbox__list {
    border-right: 1px solid var(--ev-border);
    background: var(--ev-bg, #faf8f5);
    max-height: 70vh;
    overflow-y: auto;
}

.ev-mail-inbox__item {
    display: block;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--ev-border);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.ev-mail-inbox__item:hover {
    background: rgba(196, 92, 38, 0.06);
}

.ev-mail-inbox__item.is-active {
    background: var(--ev-surface);
    border-left: 3px solid var(--ev-accent);
    padding-left: calc(0.85rem - 3px);
}

.ev-mail-inbox__item.is-failed {
    border-left-color: #c0392b;
}

.ev-mail-inbox__item-kind {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ev-accent);
    margin-bottom: 0.2rem;
}

.ev-mail-inbox__item-subject {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.ev-mail-inbox__item-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--ev-muted);
    line-height: 1.35;
}

.ev-mail-inbox__detail {
    padding: 1rem 1.15rem;
    max-height: 70vh;
    overflow-y: auto;
}

.ev-mail-inbox__detail-head {
    border-bottom: 1px solid var(--ev-border);
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
}

.ev-mail-inbox__detail-meta {
    display: grid;
    gap: 0.35rem 1rem;
    font-size: 0.85rem;
}

.ev-mail-inbox__detail-meta div {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.5rem;
}

.ev-mail-inbox__detail-meta dt {
    margin: 0;
    color: var(--ev-muted);
    font-weight: 500;
}

.ev-mail-inbox__detail-meta dd {
    margin: 0;
}

.ev-mail-inbox__body {
    margin: 0;
    padding: 1rem;
    background: var(--ev-bg, #faf8f5);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 900px) {
    .ev-mail-inbox {
        grid-template-columns: 1fr;
    }
    .ev-mail-inbox__list {
        max-height: 220px;
        border-right: 0;
        border-bottom: 1px solid var(--ev-border);
    }
}

/* Admin → Aparência — seletor de tema (sempre visível em qualquer ui_theme) */
.ev-theme-picker-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    padding: 1.15rem 1.2rem;
    border: 2px solid var(--ev-border);
    border-radius: var(--ev-radius);
    background: var(--ev-surface);
    cursor: pointer;
    height: 100%;
    min-height: 10rem;
    transition: border-color var(--ev-transition), box-shadow var(--ev-transition), transform var(--ev-transition);
}

.ev-theme-picker-card:hover {
    border-color: rgba(196, 92, 38, 0.45);
    transform: translateY(-2px);
    box-shadow: var(--ev-shadow-sm);
}

.ev-theme-picker-card.is-selected,
.ev-theme-picker-card:has(input:checked) {
    border-color: var(--ev-accent);
    box-shadow: 0 0 0 3px rgba(196, 92, 38, 0.18);
}

.ev-theme-picker-card__swatches {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.ev-theme-picker-card__swatches span {
    flex: 1;
    height: 2.25rem;
    border-radius: 8px;
    border: 1px solid rgba(26, 18, 12, 0.12);
}

.ev-theme-picker-card__title {
    display: block;
    font-family: var(--ev-display);
    font-size: 1.1rem;
    color: var(--ev-text);
}

.ev-theme-picker-card__desc {
    display: block;
    font-size: 0.88rem;
    color: var(--ev-muted);
    line-height: 1.45;
}

.ev-theme-picker-card__radio {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ev-accent);
    margin-top: auto;
    padding-top: 0.35rem;
}

.ev-theme-picker-card__radio-dot {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid var(--ev-muted);
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--ev-surface);
    box-shadow: inset 0 0 0 3px var(--ev-surface);
}

.ev-theme-picker-card.is-selected .ev-theme-picker-card__radio-dot,
.ev-theme-picker-card:has(input:checked) .ev-theme-picker-card__radio-dot {
    border-color: var(--ev-accent);
    background: var(--ev-accent);
}

/* Cronômetro — período de inscrições (home do evento) */
.ev-section--countdown {
    margin-top: -0.5rem;
}

.ev-reg-countdown__card {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: clamp(1.35rem, 4vw, 2rem) clamp(1rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 1.65rem);
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: calc(var(--ev-radius) + 4px);
    box-shadow: var(--ev-shadow);
}

.ev-reg-countdown__card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--ev-accent), rgba(196, 92, 38, 0.35));
}

.ev-reg-countdown--before .ev-reg-countdown__card::before {
    background: linear-gradient(90deg, var(--ev-green), rgba(47, 93, 74, 0.35));
}

.ev-reg-countdown__head {
    margin-bottom: 1.35rem;
}

.ev-reg-countdown__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.45rem;
    padding: 0.28rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ev-accent);
    background: rgba(196, 92, 38, 0.1);
    border-radius: 999px;
}

.ev-reg-countdown--before .ev-reg-countdown__kicker {
    color: var(--ev-green);
    background: rgba(47, 93, 74, 0.12);
}

.ev-reg-countdown__title {
    margin: 0;
    font-family: var(--ev-display);
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ev-text);
}

.ev-reg-countdown__track {
    display: flex;
    align-items: stretch;
    justify-content: center;
    max-width: 36rem;
    margin: 0 auto;
    padding: 0.15rem 0;
}

.ev-reg-countdown__unit {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 0.5rem;
    position: relative;
}

.ev-reg-countdown__unit:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(26, 18, 12, 0.14) 15%,
        rgba(26, 18, 12, 0.14) 85%,
        transparent
    );
}

.ev-reg-countdown__n {
    display: block;
    font-family: var(--ev-display);
    font-size: clamp(2rem, 6.5vw, 3.15rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ev-bg-deep);
    font-variant-numeric: tabular-nums;
    transition: color 0.35s var(--ev-ease), transform 0.35s var(--ev-ease);
}

.ev-reg-countdown__n.is-tick {
    transform: scale(1.04);
    color: var(--ev-accent);
}

.ev-reg-countdown--before .ev-reg-countdown__n.is-tick {
    color: var(--ev-green);
}

.ev-reg-countdown__unit-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ev-muted);
}

.ev-reg-countdown__meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.55rem;
    margin: 1.15rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--ev-border);
    width: 100%;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.92rem;
    color: var(--ev-muted);
}

.ev-reg-countdown__meta .bi {
    color: var(--ev-accent);
    font-size: 1rem;
}

.ev-reg-countdown--before .ev-reg-countdown__meta .bi {
    color: var(--ev-green);
}

.ev-reg-countdown__until {
    font-weight: 600;
    color: var(--ev-text);
}

.ev-reg-countdown.is-ended .ev-reg-countdown__track {
    opacity: 0.45;
}

.ev-reg-countdown.is-ended .ev-reg-countdown__title {
    color: var(--ev-muted);
}

@media (max-width: 380px) {
    .ev-reg-countdown__unit {
        padding: 0.5rem 0.25rem;
    }

    .ev-reg-countdown__unit-label {
        font-size: 0.62rem;
        letter-spacing: 0.06em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ev-reg-countdown__n {
        transition: none;
    }

    .ev-event-card,
    .ev-category-card,
    .ev-btn-primary,
    .ev-site-nav__cta,
    .ev-theme-picker-card,
    body .btn:not(.btn-close):not(.btn-link):not(.ev-sorteio-absent-btn) {
        transition: none;
    }

    .ev-event-card:hover,
    .ev-category-card:hover,
    .ev-btn-primary:hover,
    body .btn:not(.btn-close):not(.btn-link):not(.ev-sorteio-absent-btn):hover,
    .ev-site-nav__cta:hover {
        transform: none;
    }
}

/* —— Sorteio (admin + portal) —— */
.ev-sorteio-menu__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.ev-sorteio-menu__col-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ev-border);
}

.ev-sorteio-menu__col-head .bi {
    font-size: 1.25rem;
    color: var(--ev-accent);
}

.ev-sorteio-menu__faixas {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ev-sorteio-menu__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: var(--ev-radius-sm, 6px);
    text-decoration: none;
    color: var(--ev-text);
    font-weight: 500;
}

.ev-sorteio-menu__link:hover {
    background: var(--ev-surface-2, rgba(0, 0, 0, 0.04));
}

.ev-sorteio-menu__link--finalizado {
    border-left: 3px solid var(--ev-green, #2d6a4f);
}

.ev-sorteio-menu__link--publicado {
    border-left: 3px solid var(--ev-accent);
}

.ev-sorteio-menu__meta {
    font-size: 0.8rem;
    color: var(--ev-muted);
    white-space: nowrap;
}

.ev-sorteio-workspace__head {
    margin-bottom: 1.25rem;
}

.ev-sorteio-table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.ev-sorteio-table {
    margin-bottom: 0;
}

.ev-sorteio-table__ordem {
    width: 4rem;
    font-weight: 700;
    text-align: center;
}

.ev-sorteio-table tbody tr.ev-sorteio-row--excluded {
    background: rgba(220, 53, 69, 0.12);
}

.ev-sorteio-table tbody tr.ev-sorteio-row--absent td,
.ev-portal-ordem-table tbody tr.ev-sorteio-row--absent td {
    color: rgba(185, 74, 72, 0.92);
    text-decoration: line-through;
    text-decoration-color: rgba(220, 53, 69, 0.42);
}

.ev-sorteio-table tbody tr.ev-sorteio-row--absent,
.ev-portal-ordem-table tbody tr.ev-sorteio-row--absent {
    background: rgba(220, 53, 69, 0.05);
}

.ev-sorteio-table__absent-col {
    width: 5.5rem;
    text-align: center;
    vertical-align: middle;
}

.ev-sorteio-nome-dupla {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    line-height: 1.25;
}

.ev-sorteio-nome-dupla__line {
    display: block;
}

.ev-sorteio-table--layout {
    table-layout: fixed;
    width: 100%;
}

.ev-sorteio-table--layout col.ev-sorteio-col-ordem {
    width: 3.5rem;
}

.ev-sorteio-table--layout col.ev-sorteio-col-ausente {
    width: 5.5rem;
}

/* Danças tradicionais: entidade no nome */
.ev-sorteio-table--layout-grupo col.ev-sorteio-col-nome {
    width: 38%;
}

.ev-sorteio-table--layout-grupo col.ev-sorteio-col-regiao {
    width: 12%;
}

.ev-sorteio-table--layout-grupo col.ev-sorteio-col-cidade {
    width: 34%;
}

.ev-sorteio-table--layout-grupo th:nth-child(2),
.ev-sorteio-table--layout-grupo td:nth-child(2),
.ev-sorteio-table--layout-grupo th:nth-child(4),
.ev-sorteio-table--layout-grupo td:nth-child(4) {
    word-break: break-word;
}

/* Demais categorias: nome + entidade separados */
.ev-sorteio-table--layout-participant col.ev-sorteio-col-nome {
    width: 20%;
}

.ev-sorteio-table--layout-participant col.ev-sorteio-col-entidade {
    width: 26%;
}

.ev-sorteio-table--layout-participant col.ev-sorteio-col-regiao {
    width: 12%;
}

.ev-sorteio-table--layout-participant col.ev-sorteio-col-cidade {
    width: 26%;
}

.ev-sorteio-table--layout-participant th:nth-child(2),
.ev-sorteio-table--layout-participant td:nth-child(2),
.ev-sorteio-table--layout-participant th:nth-child(3),
.ev-sorteio-table--layout-participant td:nth-child(3),
.ev-sorteio-table--layout-participant th:nth-child(5),
.ev-sorteio-table--layout-participant td:nth-child(5) {
    word-break: break-word;
}

/* Chula (tabela sem ausente) */
.ev-sorteio-table--layout-chula col.ev-sorteio-col-nome {
    width: 22%;
}

.ev-sorteio-table--layout-chula col.ev-sorteio-col-entidade {
    width: 28%;
}

.ev-sorteio-table--layout-chula col.ev-sorteio-col-regiao {
    width: 12%;
}

.ev-sorteio-table--layout-chula col.ev-sorteio-col-cidade {
    width: 30%;
}

.ev-sorteio-table--layout-chula th:nth-child(2),
.ev-sorteio-table--layout-chula td:nth-child(2),
.ev-sorteio-table--layout-chula th:nth-child(3),
.ev-sorteio-table--layout-chula td:nth-child(3),
.ev-sorteio-table--layout-chula th:nth-child(5),
.ev-sorteio-table--layout-chula td:nth-child(5) {
    word-break: break-word;
}

.ev-sorteio-table-wrap--side {
    margin-bottom: 0;
}

.ev-sorteio-absent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 1px solid rgba(220, 53, 69, 0.22);
    border-radius: 6px;
    background: rgba(220, 53, 69, 0.04);
    color: rgba(185, 74, 72, 0.75);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
}

.ev-sorteio-absent-btn:hover,
.ev-sorteio-absent-btn.is-active {
    border-color: rgba(220, 53, 69, 0.45);
    background: rgba(220, 53, 69, 0.1);
    color: rgba(185, 74, 72, 0.95);
}

.ev-sorteio-table-wrap--step {
    margin-bottom: 0;
}

.ev-sorteio-step-action-row td {
    padding: 1.1rem 0.75rem 1rem;
    text-align: center;
    background: rgba(180, 120, 60, 0.07);
    border-top: 2px solid rgba(180, 120, 60, 0.35);
}

.ev-sorteio-step-action-btn {
    min-width: 11rem;
}

.ev-sorteio-remaining-panel {
    margin-top: 2.75rem;
    padding: 1.35rem 0.75rem 0.65rem;
    border: 1px dashed var(--ev-border);
    border-radius: 8px;
    background: var(--ev-surface-2, #fafafa);
}

.ev-sorteio-remaining-panel--layout {
    padding: 1rem 0 0.65rem;
    border: none;
    border-radius: 0;
    background: transparent;
}

.ev-sorteio-remaining-panel--layout .h6 {
    padding: 0 0.5rem;
}

.ev-sorteio-absent-panel {
    padding: 0.65rem 0.75rem;
    border: 1px dashed var(--ev-border);
    border-radius: 8px;
    background: var(--ev-surface-2, #fafafa);
}

.ev-sorteio-absent-panel--layout {
    padding: 0.65rem 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.ev-sorteio-absent-panel--layout .h6 {
    padding: 0 0.5rem;
}

.ev-sorteio-remaining {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ev-sorteio-chip--remaining:not(.ev-sorteio-chip--grupo) {
    cursor: default;
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.ev-sorteio-chip--remaining.ev-sorteio-chip--grupo,
.ev-sorteio-chip--absent.ev-sorteio-chip--grupo {
    cursor: default;
}

.ev-sorteio-absent-table {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ev-portal-ordem-absent {
    margin-top: 0.85rem;
    padding: 0.65rem 0.75rem;
    border: 1px dashed rgba(220, 53, 69, 0.28);
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.04);
}

.ev-portal-ordem-absent__title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(185, 74, 72, 0.9);
}

.ev-portal-ordem-absent__list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ev-portal-ordem-absent__item {
    font-size: 0.9rem;
    color: rgba(185, 74, 72, 0.92);
    text-decoration: line-through;
    text-decoration-color: rgba(220, 53, 69, 0.4);
}

.ev-portal-ordem-absent__meta {
    margin-left: 0.35rem;
    font-size: 0.82rem;
    color: rgba(185, 74, 72, 0.7);
}

.ev-sorteio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.ev-sorteio-anim-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: var(--ev-accent-soft, rgba(180, 120, 60, 0.12));
    border: 1px solid var(--ev-accent, #b4783c);
}

.ev-sorteio-anim-banner__label {
    color: var(--ev-muted);
    font-size: 0.9rem;
}

.ev-sorteio-anim-banner__name {
    font-size: 1.1rem;
    color: var(--ev-text);
}

.ev-sorteio-table tbody tr.ev-sorteio-row--new {
    animation: ev-sorteio-row-in 0.85s ease-out;
    background: rgba(180, 120, 60, 0.14);
}

@keyframes ev-sorteio-row-in {
    0% {
        opacity: 0;
        transform: translateY(-6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ev-sorteio-manual__layout {
    display: grid;
    grid-template-columns: minmax(260px, 36%) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.ev-sorteio-manual__sources.is-hidden {
    display: none;
}

.ev-sorteio-manual--finalized .ev-sorteio-manual__layout {
    grid-template-columns: 1fr;
}

.ev-sorteio-manual--finalized.ev-sorteio-manual--with-pool .ev-sorteio-manual__layout {
    grid-template-columns: minmax(260px, 36%) minmax(0, 1fr);
}

.ev-sorteio-manual__order {
    position: sticky;
    top: 0.75rem;
    min-height: min(70vh, 520px);
    padding: 0.85rem 1rem;
    border: 1px solid var(--ev-border);
    border-radius: 10px;
    background: var(--ev-card-bg, #fff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ev-sorteio-manual__sources {
    min-width: 0;
}

.ev-sorteio-pool,
.ev-sorteio-order {
    min-height: 120px;
    padding: 0.5rem;
    border: 1px dashed var(--ev-border);
    border-radius: 8px;
    background: var(--ev-surface-2, #fafafa);
}

.ev-sorteio-manual__order .ev-sorteio-order {
    min-height: 200px;
}

.ev-sorteio-chip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.35rem 0.65rem;
    padding: 0.55rem 0.7rem;
    margin-bottom: 0.4rem;
    border-radius: 6px;
    background: var(--ev-card-bg, #fff);
    border: 1px solid var(--ev-border);
    cursor: grab;
}

.ev-sorteio-chip--order {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.ev-sorteio-chip--chula {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.22rem;
}

.ev-sorteio-chip--chula .ev-sorteio-chip__sub {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.ev-sorteio-chip--chula .ev-sorteio-chip__meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
    text-align: left;
    font-size: 0.76rem;
}

.ev-sorteio-chip--chula .ev-sorteio-chip__sep {
    color: var(--ev-muted);
    opacity: 0.65;
}

.ev-sorteio-chip--grupo {
    grid-template-columns: minmax(0, 1fr) minmax(4.5rem, 6.5rem) minmax(4.5rem, 7rem) auto;
    font-size: inherit;
    line-height: inherit;
}

.ev-sorteio-chip--grupo .ev-sorteio-chip__name,
.ev-sorteio-chip--grupo .ev-sorteio-chip__cell {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
    min-width: 0;
}

.ev-sorteio-chip--grupo .ev-sorteio-chip__cell {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ev-sorteio-chip--grupo .ev-sorteio-chip__cell--action {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ev-sorteio-chip--grupo.ev-sorteio-chip--table-align {
    gap: 0;
    padding: 0.5rem 0.5rem;
    margin-bottom: 0;
    border-radius: 0;
    border-color: var(--bs-table-border-color, var(--ev-border));
    cursor: default;
}

.ev-sorteio-remaining .ev-sorteio-chip--grupo.ev-sorteio-chip--table-align:first-child,
.ev-sorteio-absent-table .ev-sorteio-chip--grupo.ev-sorteio-chip--table-align:first-child {
    border-top: 1px solid var(--bs-table-border-color, var(--ev-border));
}

.ev-sorteio-chip--grupo.ev-sorteio-chip--table-align .ev-sorteio-chip__name,
.ev-sorteio-chip--grupo.ev-sorteio-chip--table-align .ev-sorteio-chip__cell--regiao,
.ev-sorteio-chip--grupo.ev-sorteio-chip--table-align .ev-sorteio-chip__cell--cidade {
    padding: 0 0.25rem;
    text-align: left;
    vertical-align: middle;
}

.ev-sorteio-chip--grupo.ev-sorteio-chip--table-align .ev-sorteio-chip__cell--ordem-spacer {
    padding: 0;
}

.ev-sorteio-chip--chula .ev-sorteio-chip__sub .ev-sorteio-chip__absent,
.ev-sorteio-chip--chula .ev-sorteio-chip__sub .ev-sorteio-chip__restore,
.ev-sorteio-chip--chula .ev-sorteio-chip__sub .ev-sorteio-chip__remove {
    margin-left: auto;
    flex-shrink: 0;
}

.ev-sorteio-chip--order.ev-sorteio-chip--chula {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0.18rem 0.45rem;
    align-items: start;
}

.ev-sorteio-chip--order.ev-sorteio-chip--chula .ev-sorteio-chip__ordem {
    grid-row: 1 / -1;
    align-self: center;
}

.ev-sorteio-chip--order.ev-sorteio-chip--chula .ev-sorteio-chip__name {
    grid-column: 2;
    grid-row: 1;
}

.ev-sorteio-chip--order.ev-sorteio-chip--chula .ev-sorteio-chip__sub {
    grid-column: 2;
    grid-row: 2;
}

.ev-sorteio-chip--over {
    outline: 2px solid var(--ev-accent);
}

.ev-sorteio-chip--excluded {
    opacity: 0.55;
    text-decoration: line-through;
}

.ev-sorteio-chip--costado {
    border-style: dashed;
    background: rgba(180, 120, 60, 0.08);
    cursor: default;
}

.ev-sorteio-chip--absent {
    opacity: 0.82;
    border-color: rgba(220, 53, 69, 0.35);
    background: rgba(220, 53, 69, 0.06);
}

.ev-sorteio-chip--absent .ev-sorteio-chip__name {
    color: rgba(185, 74, 72, 0.92);
    text-decoration: line-through;
    text-decoration-color: rgba(220, 53, 69, 0.4);
}

.ev-sorteio-absent {
    min-height: 48px;
    padding: 0.5rem;
    border: 1px dashed rgba(220, 53, 69, 0.35);
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.03);
}

.ev-sorteio-chip__absent,
.ev-sorteio-chip__restore {
    flex-shrink: 0;
    white-space: nowrap;
}

.ev-sorteio-desafio {
    margin-bottom: 1rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--ev-border);
    border-radius: 8px;
    background: var(--ev-card-bg, #fff);
}

.ev-sorteio-desafio__label {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ev-muted);
}

.ev-sorteio-desafio__slots {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
}

.ev-sorteio-slot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    border: 1px dashed var(--ev-border);
    min-height: 2.75rem;
}

.ev-sorteio-slot--empty {
    color: var(--ev-muted);
    background: var(--ev-surface-2, #fafafa);
    font-size: 0.88rem;
}

.ev-sorteio-slot--over {
    outline: 2px solid var(--ev-accent);
    background: rgba(180, 120, 60, 0.08);
}

.ev-sorteio-slot__num {
    font-weight: 700;
    min-width: 1.5rem;
    text-align: center;
    color: var(--ev-muted);
}

.ev-sorteio-slot__hint {
    font-style: italic;
}

.ev-sorteio-adjust-panel {
    padding: 0.75rem 1rem;
    border: 1px solid var(--ev-border);
    border-radius: 8px;
    background: var(--ev-surface-2, #fafafa);
}

.is-adjusting .ev-sorteio-table tbody tr.ev-sorteio-row--draggable {
    cursor: grab;
}

.ev-sorteio-table tbody tr.ev-sorteio-row--dragging {
    opacity: 0.55;
}

.ev-sorteio-table tbody tr.ev-sorteio-row--drag-over {
    outline: 2px dashed var(--ev-accent);
    outline-offset: -2px;
}

.is-adjusting .ev-sorteio-chip--order[draggable="true"] {
    cursor: grab;
}

.ev-portal-ordem-table tr.ev-sorteio-row--costado td {
    font-style: italic;
    color: var(--ev-muted);
}

.ev-sorteio-chip__ordem {
    font-weight: 700;
    min-width: 1.5rem;
    text-align: center;
}

.ev-sorteio-chip__name {
    font-weight: 500;
    min-width: 0;
    line-height: 1.3;
}

.ev-sorteio-chip__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    align-items: flex-end;
    text-align: right;
    font-size: 0.8rem;
    color: var(--ev-muted);
    min-width: 0;
}

.ev-sorteio-chip__entity {
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ev-muted);
    line-height: 1.25;
    word-break: break-word;
}

.ev-sorteio-chip__entity--empty,
.ev-sorteio-chip__rt--empty {
    opacity: 0.55;
}

.ev-sorteio-chip__rt {
    font-size: 0.78rem;
    color: var(--ev-green, #2f5d4a);
    font-weight: 700;
    line-height: 1.2;
}

.ev-sorteio-chip__cidade {
    font-size: 0.74rem;
    color: var(--ev-muted);
    line-height: 1.2;
}

.ev-badge--published {
    background: var(--ev-accent);
    color: #fff;
}

.ev-portal-ordem {
    margin-top: 0;
    max-width: min(100%, 1080px);
}

.ev-portal-ordem .ev-section-head {
    max-width: none;
}

.ev-portal-ordem__modalidades {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Card principal: uma modalidade (Chula, Par, etc.) */
.ev-portal-ordem-modality {
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: 18px;
    padding: 1.25rem 1.35rem 1.35rem;
    box-shadow: var(--ev-shadow);
}

.ev-portal-ordem-modality__head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(47, 93, 74, 0.15);
}

.ev-portal-ordem-modality__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(47, 93, 74, 0.14), rgba(47, 93, 74, 0.06));
    color: var(--ev-green);
    flex-shrink: 0;
}

.ev-portal-ordem-modality__icon .bi.ev-modality-icon {
    font-size: 1.35rem;
}

.ev-portal-ordem-modality__kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ev-green);
}

.ev-portal-ordem-modality__title {
    font-family: var(--ev-font-display, inherit);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ev-text);
}

.ev-portal-ordem-modality__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Sub-card: uma categoria/faixa (Veterana, Mirim, etc.) */
.ev-portal-ordem-categoria {
    background: #fff;
    border: 1px solid var(--ev-border);
    border-left: 4px solid var(--ev-accent);
    border-radius: 14px;
    padding: 1rem 1.1rem 1.05rem;
    box-shadow: 0 1px 0 rgba(43, 33, 24, 0.04);
}

.ev-portal-ordem-categoria__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px dashed var(--ev-border);
}

.ev-portal-ordem-categoria__modality {
    flex-shrink: 0;
    font-family: var(--ev-font-display, inherit);
    font-size: clamp(1.25rem, 3.5vw, 1.55rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ev-text);
}

.ev-portal-ordem-categoria__divider {
    flex-shrink: 0;
    align-self: stretch;
    width: 2px;
    min-height: 2.35rem;
    border-radius: 1px;
    background: linear-gradient(180deg, var(--ev-accent) 0%, var(--ev-green) 100%);
}

.ev-portal-ordem-categoria__faixa {
    min-width: 0;
}

.ev-portal-ordem-categoria__kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ev-muted);
}

.ev-portal-ordem-categoria__title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ev-text);
}

.ev-portal-ordem-categoria__meta {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: var(--ev-muted);
}

.ev-portal-ordem-table {
    width: 100%;
    font-size: 0.92rem;
}

.ev-portal-ordem-table--layout {
    table-layout: fixed;
}

.ev-portal-ordem-table--layout col.ev-portal-ordem-col-ordem {
    width: 3.5rem;
}

.ev-portal-ordem-table--layout-grupo col.ev-portal-ordem-col-nome {
    width: 40%;
}

.ev-portal-ordem-table--layout-grupo col.ev-portal-ordem-col-regiao {
    width: 14%;
}

.ev-portal-ordem-table--layout-grupo col.ev-portal-ordem-col-cidade {
    width: 36%;
}

.ev-portal-ordem-table--layout-participant col.ev-portal-ordem-col-nome {
    width: 22%;
}

.ev-portal-ordem-table--layout-participant col.ev-portal-ordem-col-entidade {
    width: 28%;
}

.ev-portal-ordem-table--layout-participant col.ev-portal-ordem-col-regiao {
    width: 12%;
}

.ev-portal-ordem-table--layout-participant col.ev-portal-ordem-col-cidade {
    width: 28%;
}

.ev-portal-ordem-table th,
.ev-portal-ordem-table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--ev-border);
    vertical-align: middle;
}

.ev-portal-ordem-table--layout-participant th:nth-child(2),
.ev-portal-ordem-table--layout-participant td:nth-child(2),
.ev-portal-ordem-table--layout-participant th:nth-child(3),
.ev-portal-ordem-table--layout-participant td:nth-child(3),
.ev-portal-ordem-table--layout-participant th:nth-child(5),
.ev-portal-ordem-table--layout-participant td:nth-child(5),
.ev-portal-ordem-table--layout-grupo th:nth-child(2),
.ev-portal-ordem-table--layout-grupo td:nth-child(2),
.ev-portal-ordem-table--layout-grupo th:nth-child(4),
.ev-portal-ordem-table--layout-grupo td:nth-child(4) {
    word-break: break-word;
}

.ev-portal-ordem-table--layout-participant th:nth-child(4),
.ev-portal-ordem-table--layout-participant td:nth-child(4),
.ev-portal-ordem-table--layout-grupo th:nth-child(3),
.ev-portal-ordem-table--layout-grupo td:nth-child(3) {
    white-space: nowrap;
}

.ev-portal-ordem-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ev-muted);
}

/* Category group title - grouped modality sections */
.ev-category-group-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ev-heading, #1a2533);
    border-bottom: 2px solid var(--ev-accent, #0d6efd);
    padding-bottom: .35rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.ev-category-group-title i {
    font-size: 1.25rem;
    color: var(--ev-accent, #0d6efd);
}


/* Entry fee total */
.ev-fee-total {
    border-left: 4px solid var(--ev-accent, #0d6efd);
}
.ev-fee-total__value {
    font-size: 1rem;
    color: #1a2533;
}
.ev-fee-total__value .ev-fee-total__count {
    font-weight: 700;
    font-size: 1.1rem;
}
.ev-fee-total__sum {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ev-accent, #0d6efd);
    white-space: nowrap;
}
