/* =========================================================================
   Último Episódio – Sistema de Concursos · telas internas (organização, jurados, login)
   Identidade ÚE (1.5.0): grafite #333, laranja #FF6600, cinza #F4F4F4, branco; Barlow.
   As cores ficam neste bloco :root; o fim do arquivo ajusta o que tinha cor fixa.
   ========================================================================= */
@import url(../fonts/fonts.css);

:root {
    --sgc-font: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --sgc-font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
    --sgc-bg: #F4F4F4;
    --sgc-bg-2: #F4F4F4;
    --sgc-surface: #FFFFFF;
    --sgc-surface-2: #F4F4F4;
    --sgc-border: #E2E2E2;
    --sgc-border-strong: #CFCFCF;
    --sgc-text: #333333;
    --sgc-muted: #666666;
    --sgc-primary: #FF6600;
    --sgc-primary-strong: #E85C00;
    --sgc-primary-soft: rgba(255, 102, 0, .12);
    --sgc-accent: #C24E00;
    --sgc-success: #1F8A5B;
    --sgc-warning: #9A6400;
    --sgc-danger: #B3261E;
    --sgc-info: #1D5FA8;
    --sgc-grafite: #333333;
    --sgc-grafite-2: #2B2B2B;
    --sgc-radius: 12px;
    --sgc-radius-sm: 8px;
    --sgc-shadow: 0 10px 30px rgba(0, 0, 0, .10);
    --sgc-sidebar-w: 256px;
    --sgc-gutter: 24px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.sgc-body {
    margin: 0; min-height: 100vh;
    background: var(--sgc-bg); color: var(--sgc-text);
    font: 15px/1.5 var(--sgc-font); -webkit-font-smoothing: antialiased;
}
.sgc-body a { color: var(--sgc-accent); text-decoration: none; }
.sgc-body a:hover { text-decoration: underline; }
.sgc-body h1, .sgc-body h2, .sgc-body h3 { margin: 0 0 .5em; line-height: 1.25; letter-spacing: -.01em; }
.sgc-body h2 { font-size: 1.15rem; }
.sgc-body h3 { font-size: 1rem; }
.sgc-body p { margin: 0 0 .9em; }
.sgc-body small { font-size: .82em; }
.sgc-body em { font-style: normal; }
.sgc-muted { color: var(--sgc-muted); }
.sgc-text-success { color: var(--sgc-success); }
.sgc-text-warning { color: var(--sgc-warning); }
.sgc-text-danger { color: var(--sgc-danger); }
.sgc-link-muted { color: var(--sgc-muted) !important; font-size: .9rem; }

/* ----------------------------------------------------------------- shell */
.sgc-shell { display: grid; grid-template-columns: var(--sgc-sidebar-w) 1fr; min-height: 100vh; }
.sgc-sidebar {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px;
    padding: 22px 16px; background: var(--sgc-bg-2); border-right: 1px solid var(--sgc-border);
}
.sgc-main { display: flex; flex-direction: column; min-width: 0; }
.sgc-content { flex: 1; padding: var(--sgc-gutter); display: flex; flex-direction: column; gap: 20px; }
.sgc-footer { padding: 14px var(--sgc-gutter); color: var(--sgc-muted); font-size: .8rem; border-top: 1px solid var(--sgc-border); }
.sgc-backdrop { display: none; }

.sgc-brand { display: flex; align-items: center; gap: 12px; color: var(--sgc-text) !important; text-decoration: none !important; }
.sgc-brand--center { justify-content: center; margin-bottom: 18px; }
.sgc-brand__mark {
    width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto;
    background: conic-gradient(from 210deg, var(--sgc-primary), var(--sgc-accent), var(--sgc-primary));
    box-shadow: 0 6px 18px rgba(124, 92, 255, .45);
}
.sgc-brand__text { display: flex; flex-direction: column; font-weight: 700; line-height: 1.1; }
.sgc-brand__text small { font-weight: 500; color: var(--sgc-muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }

.sgc-nav { display: flex; flex-direction: column; gap: 4px; }
.sgc-nav__item {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 12px; border-radius: var(--sgc-radius-sm); color: var(--sgc-text) !important; font-weight: 500;
    text-decoration: none !important; transition: background .15s;
}
.sgc-nav__item:hover { background: var(--sgc-surface); }
.sgc-nav__item.is-active { background: var(--sgc-primary-soft); color: #fff !important; box-shadow: inset 3px 0 0 var(--sgc-primary); }
.sgc-nav__item.is-soon { color: var(--sgc-muted) !important; cursor: default; }
.sgc-nav__item.is-soon em { font-size: .68rem; padding: 2px 7px; border-radius: 999px; background: var(--sgc-surface-2); color: var(--sgc-muted); }

.sgc-sidebar__user { margin-top: auto; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding-top: 16px; border-top: 1px solid var(--sgc-border); }
.sgc-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--sgc-surface-2); color: var(--sgc-accent); }
.sgc-sidebar__name { display: flex; flex-direction: column; min-width: 0; font-weight: 600; font-size: .9rem; }
.sgc-sidebar__name small { color: var(--sgc-muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sgc-sidebar__logout { color: var(--sgc-muted) !important; font-size: .85rem; }

.sgc-topbar { display: flex; align-items: center; gap: 14px; padding: 16px var(--sgc-gutter); border-bottom: 1px solid var(--sgc-border); background: var(--sgc-bg); position: sticky; top: 0; z-index: 5; }
.sgc-topbar__title { font-size: 1.35rem; margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sgc-topbar__right { display: flex; align-items: center; gap: 12px; }
.sgc-burger { display: none; background: var(--sgc-surface); border: 1px solid var(--sgc-border); color: var(--sgc-text); width: 40px; height: 40px; border-radius: var(--sgc-radius-sm); font-size: 1.1rem; cursor: pointer; }
.sgc-chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; background: var(--sgc-surface-2); border: 1px solid var(--sgc-border); font-size: .8rem; font-weight: 600; color: var(--sgc-text); }

/* ----------------------------------------------------------------- cards */
.sgc-card { background: var(--sgc-surface); border: 1px solid var(--sgc-border); border-radius: var(--sgc-radius); padding: 20px 22px; }
.sgc-card--actions { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 90px; }
.sgc-card--danger { border-color: rgba(255, 107, 122, .25); }
.sgc-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sgc-card__head h2 { margin: 0; }
.sgc-card__foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sgc-border); }
.sgc-stack { display: flex; flex-direction: column; gap: 20px; }
.sgc-grid { display: grid; gap: 20px; }
.sgc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sgc-grid--stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.sgc-grid--main-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.sgc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

.sgc-stat { background: var(--sgc-surface); border: 1px solid var(--sgc-border); border-radius: var(--sgc-radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.sgc-stat__label { color: var(--sgc-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.sgc-stat__value { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.sgc-stat__hint { color: var(--sgc-muted); font-size: .8rem; }

.sgc-contest-card { background: var(--sgc-surface); border: 1px solid var(--sgc-border); border-radius: var(--sgc-radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.sgc-contest-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sgc-contest-card > header h2, .sgc-contest-card > header h3 { margin: 0; font-size: 1.1rem; }
.sgc-contest-card--public > header h2 { font-size: 1.3rem; }
.sgc-dl { margin: 0; display: grid; gap: 6px; }
.sgc-dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; font-size: .9rem; }
.sgc-dl dt { color: var(--sgc-muted); margin: 0; }
.sgc-dl dd { margin: 0; }
.sgc-prose { color: var(--sgc-text); }
.sgc-prose p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------- lists */
.sgc-steps, .sgc-list { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sgc-steps li { padding-left: 30px; position: relative; counter-increment: step; }
.sgc-steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: var(--sgc-surface-2); color: var(--sgc-muted); }
.sgc-steps li.is-done { color: var(--sgc-muted); text-decoration: line-through; }
.sgc-steps li.is-done::before { content: "✓"; background: rgba(46, 211, 165, .18); color: var(--sgc-success); }
.sgc-list li { display: flex; align-items: center; gap: 10px; }

/* ----------------------------------------------------------------- table */
.sgc-table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.sgc-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sgc-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sgc-muted); padding: 8px 10px; border-bottom: 1px solid var(--sgc-border); white-space: nowrap; }
.sgc-table td { padding: 12px 10px; border-bottom: 1px solid var(--sgc-border); vertical-align: top; }
.sgc-table tr:last-child td { border-bottom: 0; }
.sgc-table tr.is-muted td { opacity: .55; }
.sgc-table__actions { white-space: nowrap; text-align: right; }
.sgc-table__actions .sgc-inline { display: inline-block; margin-left: 4px; }
.sgc-badges { display: flex; flex-wrap: wrap; gap: 4px; }

/* ----------------------------------------------------------------- badge */
.sgc-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.sgc-badge--neutral { background: var(--sgc-surface-2); color: var(--sgc-muted); border-color: var(--sgc-border); }
.sgc-badge--primary { background: var(--sgc-primary-soft); color: #c9b8ff; }
.sgc-badge--success { background: rgba(46, 211, 165, .16); color: var(--sgc-success); }
.sgc-badge--warning { background: rgba(245, 181, 68, .16); color: var(--sgc-warning); }
.sgc-badge--danger { background: rgba(255, 107, 122, .16); color: var(--sgc-danger); }
.sgc-badge--info { background: rgba(90, 169, 255, .16); color: var(--sgc-info); }

/* --------------------------------------------------------------- buttons */
.sgc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--sgc-radius-sm); border: 1px solid transparent;
    font: 600 .92rem/1.2 var(--sgc-font); cursor: pointer; text-decoration: none !important; transition: transform .08s, background .15s, border-color .15s;
    min-height: 42px;
}
.sgc-btn:active { transform: translateY(1px); }
.sgc-btn--primary { background: linear-gradient(135deg, var(--sgc-primary), var(--sgc-primary-strong)); color: #fff !important; box-shadow: 0 6px 16px rgba(124, 92, 255, .35); }
.sgc-btn--primary:hover { filter: brightness(1.08); }
.sgc-btn--ghost { background: var(--sgc-surface-2); border-color: var(--sgc-border-strong); color: var(--sgc-text) !important; }
.sgc-btn--ghost:hover { border-color: var(--sgc-accent); }
.sgc-btn--danger { background: rgba(255, 107, 122, .14); border-color: rgba(255, 107, 122, .4); color: var(--sgc-danger) !important; }
.sgc-btn--danger-ghost { background: transparent; border-color: var(--sgc-border); color: var(--sgc-danger) !important; }
.sgc-btn--sm { padding: 6px 12px; min-height: 32px; font-size: .82rem; }
.sgc-btn--block { width: 100%; }
.sgc-btn[disabled], .sgc-btn.is-disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.sgc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sgc-inline { display: inline; margin: 0; }

/* ----------------------------------------------------------------- forms */
.sgc-form { display: flex; flex-direction: column; gap: 14px; }
.sgc-form--wide { gap: 20px; }
.sgc-form--inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sgc-row { display: flex; flex-wrap: wrap; gap: 14px; }
.sgc-row > .sgc-field { flex: 1 1 160px; }
.sgc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sgc-field--grow { flex: 2 1 240px; }
.sgc-field > span { font-size: .82rem; font-weight: 600; color: var(--sgc-muted); letter-spacing: .02em; }
.sgc-field > small { color: var(--sgc-muted); font-size: .78rem; }
.sgc-input {
    width: 100%; padding: 11px 13px; border-radius: var(--sgc-radius-sm);
    border: 1px solid var(--sgc-border-strong); background: var(--sgc-bg-2); color: var(--sgc-text);
    font: inherit; min-height: 44px; transition: border-color .15s, box-shadow .15s;
}
.sgc-input:focus { outline: none; border-color: var(--sgc-primary); box-shadow: 0 0 0 3px var(--sgc-primary-soft); }
.sgc-input::placeholder { color: rgba(151, 160, 191, .6); }
.sgc-input[disabled] { opacity: .6; }
.sgc-input--sm { min-height: 36px; padding: 7px 11px; width: auto; }
textarea.sgc-input { resize: vertical; line-height: 1.5; }
select.sgc-input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sgc-muted) 50%), linear-gradient(135deg, var(--sgc-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input[type="date"].sgc-input, input[type="time"].sgc-input, input[type="datetime-local"].sgc-input { color-scheme: dark; }
.sgc-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .92rem; }
.sgc-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--sgc-primary); flex: 0 0 auto; }

/* ----------------------------------------------------------------- flash */
.sgc-flash { margin: 16px var(--sgc-gutter) 0; padding: 12px 16px; border-radius: var(--sgc-radius-sm); display: flex; align-items: center; gap: 12px; font-weight: 500; border: 1px solid; transition: opacity .3s; }
.sgc-flash.is-hiding { opacity: 0; }
.sgc-flash--success { background: rgba(46, 211, 165, .12); border-color: rgba(46, 211, 165, .35); color: var(--sgc-success); }
.sgc-flash--error { background: rgba(255, 107, 122, .12); border-color: rgba(255, 107, 122, .35); color: var(--sgc-danger); }
.sgc-flash--info { background: rgba(90, 169, 255, .12); border-color: rgba(90, 169, 255, .35); color: var(--sgc-info); }
.sgc-flash__close { margin-left: auto; background: transparent; border: 0; color: inherit; font-size: 1.2rem; cursor: pointer; line-height: 1; }
.sgc-auth .sgc-flash, .sgc-public .sgc-flash { margin: 0 0 16px; }

.sgc-alert { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-radius: var(--sgc-radius-sm); border: 1px solid; }
.sgc-alert--warning { background: rgba(245, 181, 68, .1); border-color: rgba(245, 181, 68, .35); color: #ffd98a; }
.sgc-alert--danger { background: rgba(255, 107, 122, .1); border-color: rgba(255, 107, 122, .35); color: #ffb3bb; }
.sgc-alert__list { margin: 0; padding-left: 18px; }

/* ------------------------------------------------------------------ tabs */
.sgc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--sgc-border); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.sgc-tabs__item { padding: 10px 16px; color: var(--sgc-muted) !important; font-weight: 600; text-decoration: none !important; border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.sgc-tabs__item.is-active { color: var(--sgc-text) !important; border-bottom-color: var(--sgc-primary); }

/* ----------------------------------------------------------------- empty */
.sgc-empty { text-align: center; padding: 28px 18px; color: var(--sgc-muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sgc-empty h2, .sgc-empty h3 { color: var(--sgc-text); margin: 0; }
.sgc-empty p { max-width: 520px; margin: 0; }
.sgc-empty .sgc-btn { margin-top: 8px; }
.sgc-empty--page { padding: 60px 18px; }
.sgc-empty__code { font-size: 3rem; font-weight: 800; margin: 0; background: linear-gradient(90deg, var(--sgc-primary), var(--sgc-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------------ auth */
.sgc-auth { display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.sgc-auth__bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(600px 400px at 15% 10%, rgba(124, 92, 255, .28), transparent 60%), radial-gradient(500px 400px at 85% 90%, rgba(34, 211, 238, .18), transparent 60%); }
.sgc-auth__wrap { position: relative; z-index: 1; width: 100%; max-width: 420px; }
.sgc-auth__card { background: var(--sgc-surface); border: 1px solid var(--sgc-border); border-radius: 20px; padding: 32px 30px; box-shadow: var(--sgc-shadow); }
.sgc-auth__title { font-size: 1.6rem; margin-bottom: 4px; }
.sgc-auth__sub { color: var(--sgc-muted); margin-bottom: 22px; }
.sgc-auth__links { margin: 18px 0 0; text-align: center; color: var(--sgc-muted); font-size: .9rem; display: flex; justify-content: center; gap: 10px; }
.sgc-auth__foot { text-align: center; color: var(--sgc-muted); font-size: .8rem; margin-top: 20px; }

/* ---------------------------------------------------------------- public */
.sgc-container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sgc-pubbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; max-width: 1080px; margin: 0 auto; }
.sgc-pubbar__nav { display: flex; gap: 18px; align-items: center; }
.sgc-public__main { padding-top: 10px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 22px; }
.sgc-public .sgc-footer { border-top: 1px solid var(--sgc-border); margin-top: 20px; }
.sgc-hero { padding: 36px 0 10px; }
.sgc-hero h1 { font-size: 2.4rem; margin: 0 0 6px; }
.sgc-hero__kicker { color: var(--sgc-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin: 0 0 6px; }
.sgc-hero__sub { color: var(--sgc-muted); font-size: 1.05rem; }

/* ------------------------------------------------- Fase 3: formulários */
[x-cloak] { display: none !important; }
.sgc-small { font-size: .85rem; }
.sgc-error { color: var(--sgc-danger); font-size: .82rem; font-weight: 500; }
.sgc-input.is-invalid, .sgc-check.is-invalid { border-color: var(--sgc-danger); box-shadow: 0 0 0 3px rgba(255, 107, 122, .14); }
.sgc-check.is-invalid { border: 1px solid var(--sgc-danger); border-radius: var(--sgc-radius-sm); padding: 8px; }
.sgc-req { color: var(--sgc-accent); font-weight: 700; }
.sgc-opt { color: var(--sgc-muted); font-weight: 400; font-size: .78rem; margin-left: 4px; }
.sgc-field--full { flex-basis: 100% !important; }
.sgc-input--file { padding: 9px; cursor: pointer; }
.sgc-input--file::file-selector-button { margin-right: 12px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--sgc-border-strong); background: var(--sgc-surface-2); color: var(--sgc-text); font: 600 .85rem var(--sgc-font); cursor: pointer; }
.sgc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sgc-btn--lg { padding: 14px 28px; font-size: 1rem; min-height: 52px; }
.sgc-btn.is-loading { opacity: .75; pointer-events: none; }
.sgc-linkbtn { background: none; border: 0; padding: 0; color: var(--sgc-accent); font: inherit; cursor: pointer; text-decoration: underline; }
.sgc-actions--center { justify-content: center; }
.sgc-narrow { max-width: 560px; margin: 20px auto; width: 100%; }

.sgc-regform { gap: 18px; max-width: 880px; }
.sgc-regform__section h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sgc-regform__section { display: flex; flex-direction: column; gap: 14px; }
.sgc-regform__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 6px 0 20px; }
.sgc-regform__submit p { margin: 0; flex: 1 1 260px; }
.sgc-step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sgc-primary-soft); color: #d2c6ff; font-size: .85rem; font-weight: 700; flex: 0 0 auto; }

.sgc-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sgc-choice-list { display: flex; flex-direction: column; gap: 8px; }
.sgc-choice { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--sgc-radius-sm); border: 1px solid var(--sgc-border-strong); background: var(--sgc-bg-2); cursor: pointer; transition: border-color .15s, background .15s; }
.sgc-choice input { position: absolute; opacity: 0; pointer-events: none; }
.sgc-choice:hover { border-color: var(--sgc-accent); }
.sgc-choice.is-selected, .sgc-choice:has(input:checked) { border-color: var(--sgc-primary); background: var(--sgc-primary-soft); box-shadow: 0 0 0 1px var(--sgc-primary) inset; }
.sgc-choice:has(input:focus-visible) { outline: 2px solid var(--sgc-accent); outline-offset: 2px; }
.sgc-choice.is-disabled { opacity: .5; cursor: not-allowed; }
.sgc-choice--compact { padding: 10px 14px; }
.sgc-choice__title { font-weight: 700; }
.sgc-choice__meta { color: var(--sgc-muted); font-size: .85rem; }
.sgc-choice__status { font-size: .8rem; font-weight: 600; }
.sgc-choice__status--open { color: var(--sgc-success); }
.sgc-choice__status--waitlist { color: var(--sgc-warning); }
.sgc-choice__status--full { color: var(--sgc-danger); }

.sgc-member { border: 1px solid var(--sgc-border); border-radius: var(--sgc-radius-sm); padding: 14px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; background: rgba(255, 255, 255, .015); }
.sgc-member__title { display: flex; align-items: center; gap: 10px; font-weight: 700; padding: 0 6px; }
.sgc-file-current { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px; border-radius: var(--sgc-radius-sm); background: var(--sgc-bg-2); }
.sgc-file-current img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.sgc-file-current audio { max-width: 100%; }
.sgc-file-thumb { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sgc-file-thumb img { width: 72px; height: 90px; }
.sgc-gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.sgc-gallery a { display: block; }
.sgc-gallery img { width: 96px; height: 120px; object-fit: cover; border-radius: 8px; display: block; }
.sgc-gallery figure { margin: 0; }
.sgc-gallery figcaption { font-size: 12px; color: var(--sgc-muted, #8a90a6); }
.sgc-rules { border: 1px solid var(--sgc-border); border-radius: var(--sgc-radius-sm); padding: 10px 14px; background: var(--sgc-bg-2); }
.sgc-rules summary { cursor: pointer; font-weight: 600; color: var(--sgc-accent); }
.sgc-rules .sgc-prose { max-height: 320px; overflow: auto; margin-top: 10px; padding-right: 8px; }

.sgc-breadcrumb { color: var(--sgc-muted); font-size: .88rem; display: flex; gap: 8px; flex-wrap: wrap; }
.sgc-hero--compact { padding: 12px 0 4px; }
.sgc-hero--compact h1 { font-size: 2rem; }
.sgc-done { text-align: center; max-width: 620px; margin: 24px auto; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 28px; }
.sgc-done__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; background: rgba(46, 211, 165, .16); color: var(--sgc-success); margin-bottom: 8px; }
.sgc-done__number { font-size: 1.4rem; margin: 4px 0 8px; }
.sgc-done__number strong { color: var(--sgc-accent); letter-spacing: .04em; }
.sgc-list--split li { justify-content: space-between; }

.sgc-note { border-left: 4px solid var(--sgc-warning); background: rgba(245, 181, 68, .08); padding: 12px 14px; border-radius: 0 var(--sgc-radius-sm) var(--sgc-radius-sm) 0; margin: 4px 0; }
.sgc-note p { margin: 0; }
.sgc-note__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sgc-warning); font-weight: 700; margin-bottom: 4px !important; }
.sgc-alert--info { background: rgba(90, 169, 255, .1); border-color: rgba(90, 169, 255, .35); color: #b9d8ff; }

.sgc-mine { display: flex; flex-direction: column; gap: 12px; }
.sgc-mine__head { display: flex; gap: 14px; align-items: flex-start; }
.sgc-mine__photo { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.sgc-mine__title { flex: 1; min-width: 0; }
.sgc-mine__title h2 { margin: 2px 0; }
.sgc-mine__title p { margin: 0; }
.sgc-dl--inline { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.sgc-dl--inline > div { display: flex; gap: 6px; grid-template-columns: none; }
.sgc-dl--wide > div { grid-template-columns: 200px 1fr; }

/* ----------------------------------------------- Fase 3: painel inscrições */
.sgc-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.sgc-filters > .sgc-field { flex: 1 1 180px; }
.sgc-filters > .sgc-field--grow { flex: 3 1 280px; }
.sgc-filters__actions { display: flex; gap: 8px; }
.sgc-count { display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 4px; border-radius: 999px; background: var(--sgc-surface-2); font-size: .75rem; text-align: center; }
.sgc-tabs__item.is-empty { opacity: .55; }
.sgc-table--hover tbody tr[data-href] { cursor: pointer; }
.sgc-table--hover tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.sgc-table__thumb { width: 52px; }
.sgc-nowrap { white-space: nowrap; }
.sgc-table__thumb img, .sgc-table__thumb video, .sgc-thumb-empty { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; display: grid; place-items: center; background: var(--sgc-surface-2); color: var(--sgc-muted); }
.sgc-pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 16px; }
.sgc-stat--link { color: inherit !important; text-decoration: none !important; transition: border-color .15s; }
.sgc-stat--link:hover { border-color: var(--sgc-warning); }

.sgc-reg-head { display: flex; gap: 18px; align-items: flex-start; }
.sgc-reg-head__photo img { width: 132px; height: 132px; object-fit: cover; border-radius: 14px; display: block; }
.sgc-reg-head__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sgc-reg-head__body p { margin: 0; }
.sgc-reg-head__title { font-size: 1.5rem; margin: 0 !important; }
.sgc-card--sticky { position: sticky; top: 90px; }
.sgc-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.sgc-media__item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sgc-media__item img, .sgc-media__item video { width: 100%; max-height: 320px; object-fit: contain; border-radius: 10px; background: var(--sgc-bg-2); }
.sgc-media__item audio { width: 100%; }
.sgc-media__item a { word-break: break-all; }
.sgc-media__label { margin: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sgc-muted); font-weight: 700; }
.sgc-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sgc-timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--sgc-border); }
.sgc-timeline li:last-child { border-bottom: 0; padding-bottom: 0; }
.sgc-timeline__when { color: var(--sgc-muted); font-size: .85rem; }

/* ------------------------------------------------- Fase 4: jurado */
.sgc-judge-body { padding-bottom: 120px; }
.sgc-jbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(10, 13, 22, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--sgc-border); }
.sgc-jbar__back { color: var(--sgc-accent) !important; font-weight: 600; font-size: 1.05rem; text-decoration: none !important; white-space: nowrap; min-height: 40px; display: inline-flex; align-items: center; gap: 4px; }
.sgc-jbar__title { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sgc-jbar__user { display: flex; align-items: center; gap: 8px; }
.sgc-jbar .sgc-brand__mark { width: 30px; height: 30px; border-radius: 9px; }
.sgc-jwrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 14px; }
.sgc-jwrap .sgc-flash { margin: 12px 0 0; }
.sgc-jmain { padding-top: 14px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 14px; }
.sgc-jhello h1 { font-size: 1.8rem; margin: 0; }
.sgc-jhello p { margin: 0; }

.sgc-progress { display: block; height: 8px; border-radius: 999px; background: var(--sgc-surface-2); overflow: hidden; }
.sgc-progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sgc-primary), var(--sgc-accent)); transition: width .3s; }
.sgc-progress--sm { height: 6px; width: 90px; display: inline-block; vertical-align: middle; }

.sgc-jcontest { display: flex; flex-direction: column; gap: 10px; color: inherit !important; text-decoration: none !important; transition: border-color .15s; }
.sgc-jcontest:hover { border-color: var(--sgc-primary); }
.sgc-jcontest__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sgc-jcontest__head h2 { margin: 0; }
.sgc-jcontest__count { margin: 0; color: var(--sgc-muted); }
.sgc-jcontest__count strong { color: var(--sgc-text); font-size: 1.1rem; }

.sgc-jsummary { display: flex; flex-direction: column; gap: 12px; }
.sgc-jsummary__nums { display: flex; gap: 8px; }
.sgc-jsummary__nums > div { flex: 1; text-align: center; background: var(--sgc-bg-2); border-radius: var(--sgc-radius-sm); padding: 10px 6px; }
.sgc-jsummary__nums strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.sgc-jsummary__nums span { font-size: .78rem; color: var(--sgc-muted); text-transform: uppercase; letter-spacing: .05em; }
.sgc-jsummary .sgc-alert { margin: 0; }

.sgc-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.sgc-chip-btn { flex: 0 0 auto; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--sgc-border-strong); background: var(--sgc-surface); color: var(--sgc-text); font: 600 .9rem var(--sgc-font); cursor: pointer; }
.sgc-chip-btn.is-active { background: var(--sgc-primary-soft); border-color: var(--sgc-primary); color: #fff; }

.sgc-jlist { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sgc-jitem { display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 72px; border-radius: var(--sgc-radius); background: var(--sgc-surface); border: 1px solid var(--sgc-border); color: inherit !important; text-decoration: none !important; transition: border-color .15s; }
.sgc-jitem:hover, .sgc-jitem:focus-visible { border-color: var(--sgc-primary); }
.sgc-jitem.is-done { opacity: .78; }
.sgc-jitem__order { flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--sgc-bg-2); font-weight: 800; color: var(--sgc-accent); }
.sgc-jitem__photo { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.sgc-jitem__photo--empty { display: grid; place-items: center; background: var(--sgc-surface-2); color: var(--sgc-muted); font-weight: 700; }
.sgc-jitem__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sgc-jitem__body strong, .sgc-jitem__body small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sgc-jitem__status { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }

/* tela de avaliação */
.sgc-eval { display: flex; flex-direction: column; gap: 14px; }
.sgc-epart { display: flex; flex-direction: column; gap: 10px; }
.sgc-epart__pos { margin: 0; font-size: .8rem; color: var(--sgc-muted); text-transform: uppercase; letter-spacing: .05em; }
.sgc-epart__pos span:first-child { color: var(--sgc-accent); font-weight: 700; }
.sgc-epart__main { display: flex; gap: 14px; align-items: flex-start; }
.sgc-epart__photo img { width: 120px; height: 150px; object-fit: cover; border-radius: 12px; display: block; }
.sgc-epart__info { flex: 1; min-width: 0; }
.sgc-epart__info h1 { font-size: 1.5rem; margin: 0 0 4px; }
.sgc-epart__line { margin: 0 0 2px; }
.sgc-epart__more summary { cursor: pointer; color: var(--sgc-accent); font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.sgc-epart__more p { margin: 6px 0 0; }
.sgc-epart__media { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sgc-epart__media audio { width: 100%; }
.sgc-epart__media video { width: 100%; max-height: 260px; border-radius: 10px; background: #000; }

.sgc-crit { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 80px; transition: border-color .15s, box-shadow .15s; }
.sgc-crit.is-filled { border-color: rgba(46, 211, 165, .35); }
.sgc-crit.is-missing { border-color: var(--sgc-danger); box-shadow: 0 0 0 3px rgba(255, 107, 122, .15); }
.sgc-crit__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sgc-crit__head h2 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.sgc-crit__n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--sgc-surface-2); font-size: .8rem; color: var(--sgc-muted); }
.sgc-crit__meta { font-size: .8rem; color: var(--sgc-muted); white-space: nowrap; }
.sgc-crit__desc { margin: 0; color: var(--sgc-muted); font-size: .9rem; }
.sgc-crit__hint { margin: 0; font-size: .78rem; color: var(--sgc-muted); }

.sgc-score { display: flex; align-items: stretch; gap: 10px; }
.sgc-score__step { flex: 0 0 64px; min-height: 60px; border-radius: 14px; border: 1px solid var(--sgc-border-strong); background: var(--sgc-surface-2); color: var(--sgc-text); font-size: 1.8rem; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.sgc-score__step:active { background: var(--sgc-primary-soft); }
.sgc-score__step[disabled] { opacity: .4; cursor: not-allowed; }
.sgc-score__value { flex: 1; min-width: 0; text-align: center; font-size: 2rem; font-weight: 800; min-height: 60px; padding: 6px; border-radius: 14px; -moz-appearance: textfield; }
.sgc-score__value::-webkit-outer-spin-button, .sgc-score__value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sgc-score__chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.sgc-score__chip { min-height: 48px; border-radius: 12px; border: 1px solid var(--sgc-border-strong); background: var(--sgc-bg-2); color: var(--sgc-text); font: 700 1.05rem var(--sgc-font); cursor: pointer; touch-action: manipulation; }
.sgc-score__chip.is-on { background: linear-gradient(135deg, var(--sgc-primary), var(--sgc-primary-strong)); border-color: transparent; color: #fff; }
.sgc-score__chip[disabled] { opacity: .45; cursor: not-allowed; }
.sgc-score__range { width: 100%; accent-color: var(--sgc-primary); height: 36px; }

.sgc-ecomment { display: flex; flex-direction: column; gap: 14px; }
.sgc-epager { display: flex; justify-content: space-between; gap: 10px; }
.sgc-ebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom)); background: rgba(15, 19, 34, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--sgc-border-strong); }
.sgc-ebar__score { display: flex; flex-direction: column; min-width: 96px; }
.sgc-ebar__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sgc-muted); }
.sgc-ebar__score strong { font-size: 1.15rem; white-space: nowrap; }
.sgc-ebar__state { flex: 1; min-width: 0; font-size: .82rem; color: var(--sgc-muted); line-height: 1.3; }
.sgc-ebar__state .is-saved { color: var(--sgc-success); }
.sgc-ebar__state .is-saving, .sgc-ebar__state .is-pending { color: var(--sgc-muted); }
.sgc-ebar__state .is-offline, .sgc-ebar__state .is-conflict { color: var(--sgc-warning); }
.sgc-ebar__state .is-error, .sgc-ebar__state .is-closed { color: var(--sgc-danger); }
.sgc-ebar__conflict { display: block; }
.sgc-ebar__actions { display: flex; gap: 8px; }
.sgc-ebar__actions .sgc-btn { min-height: 48px; }

/* organização: jurados, quadro, ordem */
.sgc-jprog { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 3px 0; }
.sgc-jprog--block { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--sgc-border); }
.sgc-jprog--block:last-child { border-bottom: 0; }
.sgc-assign { border: 1px solid var(--sgc-border); border-radius: var(--sgc-radius-sm); padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sgc-assign legend { padding: 0 6px; }
.sgc-assign__modes { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sgc-assign__cats { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 0 10px; border-left: 2px solid var(--sgc-primary-soft); }
.sgc-check.is-muted { opacity: .55; }
.sgc-contest-card--link { color: inherit !important; text-decoration: none !important; transition: border-color .15s; }
.sgc-contest-card--link:hover { border-color: var(--sgc-primary); }
.sgc-matrix th, .sgc-matrix td { text-align: center; }
.sgc-matrix th:nth-child(2), .sgc-matrix td:nth-child(2) { text-align: left; min-width: 200px; }
.sgc-matrix__judge { max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sgc-matrix__cell { font-weight: 700; }
.sgc-matrix__cell.is-done { color: var(--sgc-success); }
.sgc-matrix__cell.is-draft { color: var(--sgc-warning); }
.sgc-matrix__cell.is-todo { color: var(--sgc-muted); }
.sgc-matrix__cell.is-na { color: var(--sgc-border-strong); }
.sgc-matrix__cell small { font-weight: 500; color: var(--sgc-text); }
.sgc-ecomments { padding: 12px 0; border-bottom: 1px solid var(--sgc-border); }
.sgc-ecomments:last-child { border-bottom: 0; }
.sgc-ecomments__who { margin: 0 0 4px; }
.sgc-order-input { width: 72px; text-align: center; font-weight: 700; }
.sgc-audio-sm { height: 32px; max-width: 220px; }

@media (max-width: 560px) {
    .sgc-jbar__user .sgc-avatar { display: none; }
    .sgc-epart__photo img { width: 96px; height: 120px; }
    .sgc-epart__info h1 { font-size: 1.25rem; }
    .sgc-ebar { flex-wrap: wrap; gap: 8px; }
    .sgc-ebar__state { order: 3; flex-basis: 100%; }
    .sgc-ebar__actions { margin-left: auto; }
    .sgc-score__step { flex-basis: 56px; }
    .sgc-judge-body { padding-bottom: 150px; }
}

/* ------------------------------------------------- Fase 5: voto popular */
.sgc-vhero { padding: 20px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.sgc-vhero h1 { font-size: 2.2rem; margin: 0; }
.sgc-vhero__status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.sgc-vpanel { display: flex; flex-direction: column; gap: 12px; border-color: rgba(124, 92, 255, .4); background: linear-gradient(160deg, rgba(124, 92, 255, .12), var(--sgc-surface) 55%); scroll-margin-top: 20px; }
.sgc-vpanel h2 { margin: 0; }
.sgc-vpanel p { margin: 0; }
.sgc-vpanel__me { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sgc-vpanel__count { font-size: 1.1rem; }
.sgc-vpanel__count strong { font-size: 2rem; color: var(--sgc-accent); margin-right: 4px; }
.sgc-vpanel__more { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sgc-vpanel__extra { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.sgc-vcode-input { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.sgc-otp { text-align: center; font-size: 2rem; letter-spacing: .5em; font-weight: 800; padding-left: .5em; max-width: 280px; }
.sgc-vsearch { margin-bottom: 14px; }
.sgc-vgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.sgc-vcard { display: flex; flex-direction: column; gap: 10px; padding: 10px 10px 12px; border-radius: var(--sgc-radius); background: var(--sgc-surface); border: 1px solid var(--sgc-border); scroll-margin-top: 20px; }
.sgc-vcard:target { border-color: var(--sgc-success); box-shadow: 0 0 0 3px rgba(46, 211, 165, .2); }
.sgc-vcard__photo { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--sgc-surface-2); display: grid; place-items: center; }
.sgc-vcard__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sgc-vcard__photo span { font-size: 2.4rem; font-weight: 800; color: var(--sgc-muted); }
.sgc-vcard__body { flex: 1; padding: 0 4px; }
.sgc-vcard__body h2 { font-size: 1.1rem; margin: 0 0 2px; }
.sgc-vcard__body p { margin: 0; font-size: .9rem; }
.sgc-vcard .sgc-btn { min-height: 48px; }
.sgc-vfoot { text-align: center; margin-top: 10px; }
.sgc-vpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.sgc-vpick__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--sgc-radius-sm); border: 1px solid var(--sgc-border); cursor: pointer; }
.sgc-vpick__item:has(input:checked) { border-color: var(--sgc-primary); background: var(--sgc-primary-soft); }
.sgc-vpick__item input { width: 18px; height: 18px; accent-color: var(--sgc-primary); }
.sgc-vpick__item img, .sgc-vpick__item .sgc-thumb-empty { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; display: grid; place-items: center; }
.sgc-count--warn { background: rgba(245, 181, 68, .2); color: var(--sgc-warning); }
.sgc-big { font-size: 1.3rem; }
.sgc-code { font-size: 1rem; letter-spacing: .08em; font-weight: 700; color: var(--sgc-accent); background: var(--sgc-bg-2); padding: 3px 8px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
@media (max-width: 480px) {
    .sgc-vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sgc-vcard { padding: 8px 8px 10px; }
    .sgc-vcard__body h2 { font-size: 1rem; }
    .sgc-vhero h1 { font-size: 1.8rem; }
}

/* ------------------------------------------------- Fase 6: resultados */
.sgc-res-status { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; font-size: .92rem; }
.sgc-res-cat { margin: 18px 0 8px; display: flex; align-items: center; gap: 10px; }
.sgc-res-table tr.is-podium td { background: rgba(124, 92, 255, .08); }
.sgc-res-table tr.is-tied td { background: rgba(255, 107, 122, .1); }
.sgc-res-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sgc-border); }
.sgc-tie { border: 1px solid rgba(255, 107, 122, .4); border-radius: var(--sgc-radius-sm); padding: 12px 14px; margin: 8px 0 14px; display: flex; flex-direction: column; gap: 8px; background: rgba(255, 107, 122, .05); }
.sgc-tie p { margin: 0; }
.sgc-tie__row { display: flex; align-items: center; gap: 10px; }
.sgc-quote { margin: 0 0 10px; padding: 10px 12px; border-left: 3px solid var(--sgc-accent); background: var(--sgc-bg-2); border-radius: 0 8px 8px 0; font-size: .92rem; }

.sgc-myresult { display: flex; flex-wrap: wrap; gap: 10px; }
.sgc-myresult__item { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--sgc-radius-sm); background: var(--sgc-bg-2); border: 1px solid var(--sgc-border); }
.sgc-myresult__item.is-podium { border-color: rgba(245, 181, 68, .6); background: linear-gradient(135deg, rgba(245, 181, 68, .16), var(--sgc-bg-2)); }
.sgc-myresult__item strong { font-size: 1.3rem; }
.sgc-myresult__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sgc-muted); font-weight: 700; }
.sgc-myfeedback { border-top: 1px solid var(--sgc-border); padding-top: 12px; }
.sgc-myfeedback h3 { margin: 0 0 8px; }
.sgc-myfeedback__body { padding: 14px 16px; border-radius: var(--sgc-radius-sm); background: var(--sgc-bg-2); line-height: 1.6; margin-bottom: 8px; }

.sgc-results h3 { margin: 16px 0 8px; color: var(--sgc-muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.sgc-podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.sgc-podium__item { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--sgc-radius); background: var(--sgc-bg-2); border: 1px solid var(--sgc-border); }
.sgc-podium__item--1 { border-color: rgba(245, 181, 68, .7); background: linear-gradient(135deg, rgba(245, 181, 68, .18), var(--sgc-bg-2)); }
.sgc-podium__item--2 { border-color: rgba(200, 210, 230, .5); }
.sgc-podium__item--3 { border-color: rgba(205, 127, 50, .55); }
.sgc-podium__medal { font-size: 1.6rem; line-height: 1; }
.sgc-podium__item strong { font-size: 1.1rem; }
.sgc-podium__item small { color: var(--sgc-muted); }
.sgc-podium--compact .sgc-podium__item { flex-direction: row; align-items: center; gap: 10px; padding: 8px 12px; }
.sgc-podium--compact .sgc-podium__medal { font-size: 1rem; font-weight: 800; color: var(--sgc-accent); }

/* ------------------------------------------- shortcodes dentro do tema */
.sgc-embed { --sgc-gutter: 16px; background: var(--sgc-bg); color: var(--sgc-text); font: 15px/1.5 var(--sgc-font); padding: 20px; border-radius: 18px; }
.sgc-embed * { box-sizing: border-box; }
.sgc-embed a { color: var(--sgc-accent); }
.sgc-embed h1, .sgc-embed h2, .sgc-embed h3 { color: var(--sgc-text); margin: 0 0 .5em; line-height: 1.25; }
.sgc-embed .sgc-regform { max-width: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1024px) {
    .sgc-grid--stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sgc-grid--main-side { grid-template-columns: 1fr; }
    .sgc-card--actions { position: static; }
}
@media (max-width: 820px) {
    :root { --sgc-gutter: 16px; }
    .sgc-shell { grid-template-columns: 1fr; }
    .sgc-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(84vw, 300px); z-index: 20; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--sgc-shadow); }
    .sgc-shell.is-nav-open .sgc-sidebar { transform: none; }
    .sgc-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 15; opacity: 0; pointer-events: none; transition: opacity .2s; }
    .sgc-shell.is-nav-open .sgc-backdrop { opacity: 1; pointer-events: auto; }
    .sgc-burger { display: inline-grid; place-items: center; }
    .sgc-topbar__title { font-size: 1.15rem; }
    .sgc-grid--2 { grid-template-columns: 1fr; }
    .sgc-card { padding: 16px; }
    .sgc-table-wrap { margin: 0 -16px; padding: 0 16px; }
    .sgc-hero h1 { font-size: 1.9rem; }
    .sgc-pubbar { flex-wrap: wrap; }
}
@media (max-width: 820px) {
    .sgc-card--sticky { position: static; }
    .sgc-reg-head { flex-direction: column; }
    .sgc-reg-head__photo img { width: 100%; height: auto; max-height: 320px; }
    .sgc-timeline li { grid-template-columns: 1fr; gap: 2px; }
    .sgc-dl--wide > div { grid-template-columns: 1fr; gap: 2px; }
    .sgc-hero--compact h1 { font-size: 1.6rem; }
    .sgc-regform__submit .sgc-btn--lg { width: 100%; }
}
@media (max-width: 480px) {
    .sgc-grid--stats { grid-template-columns: 1fr; }
    .sgc-choice-grid { grid-template-columns: 1fr; }
    .sgc-mine__head { flex-wrap: wrap; }
    .sgc-embed { padding: 12px; border-radius: 12px; }
    .sgc-topbar__right .sgc-chip { display: none; }
    .sgc-auth__card { padding: 26px 20px; }
    .sgc-dl > div { grid-template-columns: 1fr; gap: 2px; }
}

/* painel: gráfico */
.sgc-chart { position: relative; width: 100%; min-height: 140px; }

/* ensaio e ajuda */
.sgc-field--inline { display: inline-flex; align-items: center; gap: 8px; margin: 0 10px 0 0; }
.sgc-help h2 { margin-top: 1.2em; }
.sgc-help ol, .sgc-help ul { padding-left: 1.2em; }
.sgc-help li { margin-bottom: .45em; }


/* =========================================================================
   Identidade ÚE nas telas internas (1.5.0, pedido de 08/11/2026)
   Ajusta os componentes que tinham cor fixa do tema escuro antigo.
   ========================================================================= */
.sgc-body { font-size: 15.5px; }
.sgc-body h1, .sgc-body h2, .sgc-body h3 { font-weight: 700; letter-spacing: 0; }
.sgc-body a { color: var(--sgc-accent); }

/* menu lateral grafite com a marca ÚE */
.sgc-sidebar { background: var(--sgc-grafite); border-right: 0; color: #fff; }
.sgc-sidebar .sgc-brand { color: #fff !important; }
.sgc-brand__mark { width: 46px; height: 40px; border-radius: 0; background: url(../brand/ue-white.png) left center/contain no-repeat; box-shadow: none; }
.sgc-brand__text { font-weight: 700; font-size: 1.05rem; }
.sgc-sidebar .sgc-brand__text small { color: #BDBDBD; }
.sgc-nav__item { color: #E6E6E6 !important; border-radius: 999px; padding: 10px 16px; }
.sgc-nav__item:hover { background: rgba(255, 255, 255, .08); }
.sgc-nav__item.is-active { background: var(--sgc-primary); color: var(--sgc-grafite) !important; box-shadow: none; font-weight: 700; }
.sgc-nav__item.is-soon { color: #8C8C8C !important; }
.sgc-nav__item.is-soon em { background: rgba(255, 255, 255, .08); color: #BDBDBD; }
.sgc-sidebar__user { border-top-color: rgba(255, 255, 255, .12); }
.sgc-sidebar__name { color: #fff; }
.sgc-sidebar__name small { color: #BDBDBD; }
.sgc-sidebar .sgc-avatar { background: var(--sgc-primary); color: var(--sgc-grafite); }
.sgc-sidebar__logout { color: #BDBDBD !important; }
.sgc-avatar { background: #FFE7D6; color: #A84300; }

/* barra do topo */
.sgc-topbar { background: #fff; border-bottom-color: var(--sgc-border); }
.sgc-topbar__title { font-weight: 700; font-size: 1.4rem; }
.sgc-burger { background: #fff; border-color: var(--sgc-border-strong); color: var(--sgc-text); }
.sgc-chip { background: #FFE7D6; border-color: transparent; color: #A84300; }
.sgc-link-muted { color: var(--sgc-muted) !important; }

/* cartões e números */
.sgc-card, .sgc-stat, .sgc-contest-card, .sgc-jitem, .sgc-vcard { box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.sgc-card--danger { border-color: #F3B4AE; }
.sgc-stat__value { font-family: var(--sgc-font-cond); font-weight: 800; font-size: 2.4rem; }
.sgc-steps li.is-done::before { background: #E3F3EB; }
.sgc-step { background: #FFE7D6; color: #A84300; }
.sgc-member { background: #FAFAFA; }

/* etiquetas */
.sgc-badge--neutral { background: #F4F4F4; color: #5C5C5C; border-color: #E2E2E2; }
.sgc-badge--primary { background: #FFE7D6; color: #A84300; }
.sgc-badge--success { background: #E3F3EB; color: #1F8A5B; }
.sgc-badge--warning { background: #FFF1D6; color: #8A5A00; }
.sgc-badge--danger { background: #FDECEA; color: #B3261E; }
.sgc-badge--info { background: #E3EEFB; color: #1D5FA8; }

/* botões em pílula, como no site */
.sgc-btn { border-radius: 999px; padding: 10px 22px; font-weight: 600; }
.sgc-btn--sm { padding: 6px 14px; }
.sgc-btn--primary { background: var(--sgc-primary); color: var(--sgc-grafite) !important; box-shadow: 0 6px 16px rgba(255, 102, 0, .25); }
.sgc-btn--primary:hover { background: var(--sgc-primary-strong); filter: none; }
.sgc-btn--ghost { background: #fff; border-color: var(--sgc-border-strong); color: var(--sgc-text) !important; }
.sgc-btn--ghost:hover { border-color: var(--sgc-primary); }
.sgc-btn--danger { background: #FDECEA; border-color: #F3B4AE; color: #B3261E !important; }
.sgc-btn--danger-ghost { background: transparent; border-color: var(--sgc-border); color: #B3261E !important; }

/* campos */
.sgc-input { background: #fff; border-color: #BDBDBD; }
.sgc-input:focus { border-color: var(--sgc-primary); box-shadow: 0 0 0 3px #FFE1CC; }
.sgc-input::placeholder { color: #9A9A9A; }
input[type="date"].sgc-input, input[type="time"].sgc-input, input[type="datetime-local"].sgc-input { color-scheme: light; }
.sgc-input.is-invalid, .sgc-check.is-invalid { box-shadow: 0 0 0 3px #F9D7D3; }
.sgc-field > span { color: #5C5C5C; }

/* avisos */
.sgc-flash--success { background: #E3F3EB; border-color: #B9E2CD; color: #1F8A5B; }
.sgc-flash--error { background: #FDECEA; border-color: #F3B4AE; color: #B3261E; }
.sgc-flash--info { background: #E3EEFB; border-color: #BBD3F2; color: #1D5FA8; }
.sgc-alert--warning { background: #FFF1D6; border-color: #F1D49B; color: #6E4A00; }
.sgc-alert--danger { background: #FDECEA; border-color: #F3B4AE; color: #B3261E; }
.sgc-alert--info { background: #E3EEFB; border-color: #BBD3F2; color: #1D5FA8; }
.sgc-note { background: #FFF8EA; }
.sgc-count--warn { background: #FFF1D6; color: #8A5A00; }
.sgc-empty__code { background: none; color: var(--sgc-primary); }

/* abas, tabelas, filtros */
.sgc-tabs__item.is-active { border-bottom-color: var(--sgc-primary); }
.sgc-table--hover tbody tr:hover td { background: #FAFAFA; }
.sgc-chip-btn { background: #fff; }
.sgc-chip-btn.is-active { background: #FFE7D6; border-color: var(--sgc-primary); color: #A84300; }
.sgc-vpick__item:has(input:checked) { background: #FFF1E6; }

/* jurado: barra do topo grafite com a marca, barra de notas clara */
.sgc-jbar { background: rgba(51, 51, 51, .97); border-bottom: 0; color: #fff; }
.sgc-jbar .sgc-brand { color: #fff !important; }
.sgc-jbar .sgc-brand__mark { width: 40px; height: 34px; border-radius: 0; }
.sgc-jbar .sgc-brand__text small { color: #BDBDBD; }
.sgc-jbar__back { color: var(--sgc-primary) !important; }
.sgc-jbar__title { color: #fff; }
.sgc-jbar .sgc-link-muted { color: #BDBDBD !important; }
.sgc-jbar .sgc-avatar { background: var(--sgc-primary); color: var(--sgc-grafite); }
.sgc-progress > span { background: var(--sgc-primary); }
.sgc-jitem__order { background: #FFE7D6; color: #A84300; }
.sgc-crit.is-filled { border-color: #B9E2CD; }
.sgc-crit.is-missing { box-shadow: 0 0 0 3px #F9D7D3; }
.sgc-score__chip { background: #fff; }
.sgc-score__chip.is-on { background: var(--sgc-primary); color: var(--sgc-grafite); }
.sgc-ebar { background: rgba(255, 255, 255, .97); border-top-color: var(--sgc-border); box-shadow: 0 -6px 18px rgba(0, 0, 0, .06); }
.sgc-epart__photos { display: flex; gap: 8px; flex: 0 0 auto; }
.sgc-epart__photo { position: relative; display: block; }
.sgc-epart__photo span { position: absolute; left: 6px; bottom: 6px; background: rgba(51, 51, 51, .88); color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.sgc-epart__photo.is-ref img { outline: 3px solid var(--sgc-primary); outline-offset: -3px; }
@media (max-width: 560px) { .sgc-epart__main { flex-direction: column; } .sgc-epart__photo img { width: 120px; height: 150px; } }

/* resultados e voto */
.sgc-res-table tr.is-podium td { background: #FFF6EF; }
.sgc-res-table tr.is-tied td { background: #FDF1F0; }
.sgc-tie { border-color: #F3B4AE; background: #FFF8F7; }
.sgc-myresult__item.is-podium, .sgc-podium__item--1 { border-color: #FFB380; background: linear-gradient(135deg, #FFF1E6, #fff); }
.sgc-podium__item--2 { border-color: #CFCFCF; }
.sgc-podium__item--3 { border-color: #E3B48A; }
.sgc-vpanel { border-color: #FFB380; background: linear-gradient(160deg, #FFF1E6, #fff 55%); }
.sgc-vcard:target { box-shadow: 0 0 0 3px #CDEBDC; }
.sgc-backdrop { background: rgba(0, 0, 0, .45); }

/* apagar edição (confirmação embutida) */
.sgc-purge { display: inline-block; margin-left: 4px; vertical-align: middle; }
.sgc-purge > summary { list-style: none; cursor: pointer; }
.sgc-purge > summary::-webkit-details-marker { display: none; }
.sgc-purge[open] { display: block; margin: 10px 0 0; padding: 12px; border: 1px solid #F3B4AE; border-radius: var(--sgc-radius-sm); background: #FFF8F7; text-align: left; white-space: normal; }
.sgc-purge[open] > summary { margin-bottom: 10px; }

/* ---------------------------------------------------------- tela de login */
.sgc-auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding: 0; min-height: 100vh; background: #fff; place-items: stretch; }
.sgc-auth__bg { display: none; }
.sgc-auth__art { position: relative; overflow: hidden; background: var(--sgc-grafite); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 56px clamp(32px, 6vw, 88px); }
.sgc-auth__logo { display: block; width: clamp(150px, 18vw, 230px); aspect-ratio: 582 / 508; background: url(../brand/ue-white-hd.png) left center/contain no-repeat; }
.sgc-auth__tag { margin: 0; font-family: var(--sgc-font); font-weight: 800; text-transform: uppercase; line-height: .95; font-size: clamp(34px, 4.4vw, 60px); color: #CCCCCC; max-width: 9ch; }
.sgc-auth__tag span { color: var(--sgc-primary); }
.sgc-auth__lead { margin: 0; color: #E6E6E6; font-size: 1.05rem; max-width: 38ch; }
.sgc-auth__dot { position: absolute; right: -90px; bottom: -90px; width: 300px; height: 300px; border-radius: 50%; background: var(--sgc-primary); }
.sgc-auth__wrap { position: relative; z-index: 1; width: 100%; max-width: none; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px 24px; background: #fff; }
.sgc-auth__wrap > * { width: 100%; max-width: 400px; }
.sgc-auth__card { background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.sgc-auth__card .sgc-brand { display: none; }
.sgc-auth__kicker { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sgc-accent); }
.sgc-auth__title { font-size: 2.4rem; font-weight: 800; margin-bottom: 6px; }
.sgc-auth__sub { color: var(--sgc-muted); margin-bottom: 26px; }
.sgc-auth .sgc-btn--block { min-height: 50px; font-size: 1rem; }
/* 1.6.1: caminho do participante na tela de entrada */
.sgc-auth__participant { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; padding: 18px 20px; border-radius: 14px; background: #F4F4F4; }
.sgc-auth__participant b { font-size: 1.05rem; }
.sgc-auth__participant span { color: var(--sgc-muted); font-size: .95rem; margin-bottom: 6px; }
.sgc-auth__links { justify-content: flex-start; }
.sgc-auth__foot { text-align: left; }
@media (max-width: 820px) {
    .sgc-auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .sgc-auth__art { padding: 28px 20px 30px; gap: 12px; flex-direction: row; align-items: center; }
    .sgc-auth__logo { width: 64px; }
    .sgc-auth__tag { font-size: 26px; max-width: none; }
    .sgc-auth__lead { display: none; }
    .sgc-auth__dot { width: 120px; height: 120px; right: -40px; bottom: -40px; }
    .sgc-auth__wrap { justify-content: flex-start; padding: 32px 20px 40px; }
}
