:root {
    --cream: #f8eee2;
    --cream-deep: #f1e2cf;
    --orange: #f26925;
    --orange-dark: #d84f17;
    --green: #177b4c;
    --green-deep: #14583b;
    --green-soft: #61b382;
    --gold: #f6c568;
    --ink: #18352b;
    --muted: #738078;
    --line: #e9e2d8;
    --paper: #fffdf9;
    --red: #b64331;
    --shadow: 0 18px 48px rgba(44, 52, 42, .08);
    --sans: 'Aptos', 'Segoe UI', Arial, sans-serif;
    --serif: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(242, 105, 37, .48); outline-offset: 3px; }

.site-shell { width: min(1460px, 100%); margin: 0 auto; padding: 0 42px; }
.topbar { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(24, 53, 43, .1); }
.brand-lockup { min-width: 0; display: flex; align-items: center; gap: 19px; text-decoration: none; }
.brand-logo { display: block; width: 184px; height: 63px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
.event-label, .account-role { color: #8d7966; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.account-tools { display: flex; align-items: center; gap: 22px; }
.account-copy { display: grid; gap: 4px; text-align: right; }
.account-role { color: var(--green); }
.account-name { max-width: 260px; color: var(--ink); font-size: 13px; font-weight: 600; }
.logout-form { margin: 0; }
.link-soft { color: #53675d; font-size: 13px; font-weight: 600; text-decoration: none; }
.link-soft:hover, .back-link:hover { color: var(--orange-dark); }
.main-content { min-height: calc(100vh - 165px); padding: 38px 0 72px; }
.site-footer { display: flex; justify-content: space-between; gap: 18px; padding: 22px 0 28px; border-top: 1px solid rgba(24, 53, 43, .1); color: #8d8d7f; font-size: 11px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.035em; }
h1 { margin-bottom: 14px; font-size: clamp(36px, 5vw, 58px); line-height: 1.05; font-weight: 700; }
h1 em, .auth-story h1 em { color: var(--orange); font-family: var(--serif); font-weight: 600; }
h2 { margin-bottom: 10px; font-size: clamp(25px, 3vw, 34px); line-height: 1.15; }
h3 { margin-bottom: 7px; }
.muted { color: var(--muted); line-height: 1.65; }
.section-kicker, .eyebrow { color: var(--orange-dark); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.section-kicker { margin-bottom: 11px; }
.section-kicker-light { color: #f8c994; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #fbd7bb; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 10px; padding: 0 19px; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .47; cursor: not-allowed; transform: none; }
.button-primary { color: white; background: var(--orange); box-shadow: 0 7px 18px rgba(242, 105, 37, .19); }
.button-primary:hover { background: var(--orange-dark); box-shadow: 0 9px 22px rgba(242, 105, 37, .25); }
.button-outline { color: var(--ink); border-color: #d8d5ca; background: rgba(255,255,255,.48); }
.button-outline:hover { border-color: var(--green-soft); background: white; }
.button-small { min-height: 36px; border-radius: 8px; padding: 0 13px; font-size: 11px; }
.button-wide { width: 100%; min-height: 50px; }

.flash { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0 -12px; padding: 13px 16px; border: 1px solid #cce5d4; border-radius: 11px; background: #f2fbf4; color: #245a3d; font-size: 13px; }
.flash p { margin: 0; line-height: 1.5; }
.flash-mark { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--green-soft); }
.flash-error { border-color: #f0c9be; background: #fff5f1; color: #8c3024; }
.flash-error .flash-mark { background: var(--red); }

/* Entrada */
.auth-layout { min-height: 610px; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(330px, .78fr); overflow: hidden; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.auth-story { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 6vw, 78px); color: white; background: var(--green-deep); }
.auth-story::before { position: absolute; top: -190px; right: -100px; width: 420px; height: 420px; border: 1px solid rgba(250, 197, 104, .27); border-radius: 50%; content: ''; }
.auth-story::after { position: absolute; right: -150px; bottom: -260px; width: 590px; height: 590px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; content: ''; }
.auth-story h1 { position: relative; z-index: 1; margin: 24px 0 19px; font-size: clamp(43px, 5.6vw, 69px); line-height: 1.04; }
.auth-story h1 em { color: var(--gold); }
.auth-intro { position: relative; z-index: 1; max-width: 480px; margin-bottom: 31px; color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.7; }
.auth-criteria { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 11px; }
.criterion-row { min-width: 135px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; padding: 10px 12px; background: rgba(255,255,255,.07); }
.criterion-number { color: var(--gold); font-size: 11px; font-weight: 700; }
.criterion-row strong, .criterion-row small { display: block; }
.criterion-row strong { font-size: 11px; }
.criterion-row small { margin-top: 3px; color: rgba(255,255,255,.65); font-size: 10px; }
.auth-brush { position: absolute; left: 40px; bottom: 29px; width: 220px; height: 7px; border-radius: 90% 20% 90% 20%; background: var(--orange); transform: rotate(-2deg); opacity: .9; }
.login-card { align-self: center; padding: clamp(30px, 5vw, 64px); }
.login-card h2 { margin-bottom: 8px; font-size: 31px; }
.login-card > .muted { margin-bottom: 29px; font-size: 13px; }
.form-stack { display: grid; gap: 11px; }
.form-stack label { margin-top: 5px; color: #43574e; font-size: 12px; font-weight: 700; }
.form-stack input { width: 100%; min-height: 47px; border: 1px solid #dddcd2; border-radius: 9px; padding: 0 13px; outline: none; color: var(--ink); background: #fffefa; }
.form-stack input:focus { border-color: var(--green-soft); box-shadow: 0 0 0 3px rgba(97,179,130,.12); }
.password-field { position: relative; }
.password-field input { padding-right: 72px; }
.password-toggle { position: absolute; top: 50%; right: 10px; border: 0; padding: 5px; color: var(--green); background: transparent; font-size: 11px; font-weight: 700; transform: translateY(-50%); cursor: pointer; }
.login-card .button { margin-top: 12px; }
.login-note { display: flex; align-items: center; gap: 9px; margin-top: 19px; color: #8a8d82; font-size: 10px; }
.mini-lock { width: 13px; height: 10px; border: 1.5px solid var(--green-soft); border-radius: 2px; position: relative; }
.mini-lock::before { position: absolute; left: 2px; top: -7px; width: 6px; height: 7px; border: 1.5px solid var(--green-soft); border-bottom: 0; border-radius: 6px 6px 0 0; content: ''; }

/* Jurado */
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin: 8px 0 45px; }
.page-heading h1 { margin-bottom: 13px; font-size: clamp(38px, 4.3vw, 54px); }
.page-heading > div:first-child { max-width: 600px; }
.page-heading .muted { max-width: 540px; margin-bottom: 0; font-size: 14px; }
.progress-card { width: min(100%, 310px); flex: 0 0 290px; border: 1px solid #e2d7c8; border-radius: 14px; padding: 17px 19px; background: rgba(255,253,249,.72); }
.progress-top { display: flex; align-items: center; justify-content: space-between; color: #69766c; font-size: 11px; font-weight: 600; }
.progress-top strong { color: var(--ink); font-size: 23px; }
.progress-top small { color: #92978f; font-size: 13px; font-weight: 500; }
.progress-track, .mini-progress { height: 6px; overflow: hidden; border-radius: 8px; background: #e7e2d9; }
.progress-track { margin: 11px 0 9px; }
.progress-track span, .mini-progress span { display: block; height: 100%; border-radius: inherit; background: var(--green-soft); transition: width .3s ease; }
.progress-card p { margin: 0; color: #888e84; font-size: 10px; }
.list-controls { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.list-controls h2 { margin-bottom: 5px; font-size: 23px; }
.list-controls .muted { margin-bottom: 0; font-size: 12px; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 29px; height: 26px; border-radius: 99px; color: var(--green-deep); background: #dceee1; font-size: 11px; vertical-align: 4px; }
.search-field { width: min(100%, 310px); min-height: 43px; display: flex; align-items: center; gap: 9px; border: 1px solid #dedbd1; border-radius: 9px; padding: 0 12px; color: #789184; background: rgba(255,255,255,.68); }
.search-field > span:not(.sr-only) { font-size: 20px; }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.submission-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.submission-card { min-width: 0; overflow: hidden; border: 1px solid #e8e2d9; border-radius: 15px; background: var(--paper); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.submission-card:hover { border-color: #b9d9c3; box-shadow: 0 12px 28px rgba(30,80,55,.1); transform: translateY(-3px); }
.card-image-wrap { position: relative; height: 150px; overflow: hidden; background: #ede9df; }
.card-image-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.submission-card:hover .card-image-wrap img { transform: scale(1.035); }
.card-slide { position: absolute; right: 9px; bottom: 9px; border-radius: 6px; padding: 5px 7px; color: white; background: rgba(22,52,42,.76); font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.submission-card-copy { padding: 13px 14px 12px; }
.card-status { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #b06931; font-size: 9px; font-weight: 700; }
.card-status span { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.card-status.done { color: var(--green); }
.card-status.done span { background: var(--green-soft); }
.submission-card h3 { min-height: 36px; margin-bottom: 3px; font-size: 13px; line-height: 1.35; }
.school-line { overflow: hidden; margin-bottom: 9px; color: #8c9288; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.phrase-preview { min-height: 47px; display: -webkit-box; overflow: hidden; margin-bottom: 9px; color: #536157; font-family: var(--serif); font-size: 11px; line-height: 1.45; line-clamp: 3; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 9px; border-top: 1px solid #efebe3; color: #879087; font-size: 9px; font-weight: 600; }
.card-arrow { color: var(--orange); font-size: 16px; }
.empty-search { margin-top: 30px; color: var(--muted); text-align: center; }
.work-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 3px 0 16px; }
.back-link { color: var(--green); font-size: 12px; font-weight: 700; text-decoration: none; }
.submission-number { color: #98958a; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.submission-detail { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 55px); align-items: start; border: 1px solid #e7e0d6; border-radius: 19px; padding: 24px; background: var(--paper); box-shadow: 0 12px 34px rgba(44,52,42,.05); }
.submission-photo-wrap { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 420px; border-radius: 13px; background: #eee9df; }
.submission-photo-wrap a { width: 100%; height: 100%; min-height: 420px; display: flex; align-items: center; justify-content: center; }
.submission-photo { display: block; max-width: 100%; width: 100%; height: 100%; max-height: 620px; object-fit: contain; }
.photo-caption { position: absolute; left: 12px; bottom: 12px; border-radius: 5px; padding: 6px 8px; color: white; background: rgba(24,53,43,.75); font-size: 8px; font-weight: 700; letter-spacing: .1em; pointer-events: none; }
.submission-copy { min-width: 0; padding: 10px 5px; }
.submission-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.school-tag { color: #58816a; font-size: 10px; font-weight: 700; }
.submission-copy h2 { margin-bottom: 15px; font-size: clamp(26px, 3vw, 36px); }
.entry-phrase { margin: 0 0 24px; border-left: 3px solid var(--gold); padding: 2px 0 2px 16px; color: #475a4e; font-family: var(--serif); font-size: 18px; font-style: italic; line-height: 1.5; }
.evaluation-form { border-top: 1px solid var(--line); padding-top: 20px; }
.rubric-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.rubric-heading .section-kicker { margin: 0; }
.rubric-total { color: var(--orange-dark); font-size: 20px; font-weight: 700; }
.rubric-total small { color: #858a81; font-size: 10px; font-weight: 500; }
.score-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.score-control { border: 1px solid #e8e3da; border-radius: 11px; padding: 12px; background: #fffefa; }
.score-control label { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.score-control label strong, .score-control label small { display: block; }
.score-control label strong { font-size: 11px; }
.score-control label small { margin-top: 3px; color: #92958d; font-size: 9px; }
.score-icon { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; border-radius: 8px; color: white; font-size: 10px; font-weight: 700; }
.score-icon-orange { background: var(--orange); }
.score-icon-green { background: var(--green); }
.score-control select { width: 100%; height: 38px; border: 1px solid #dddcd2; border-radius: 7px; padding: 0 10px; color: var(--ink); background: white; font-size: 12px; }
.auto-zero { display: block; color: #737e74; font-size: 9px; }
.plagiarism-box { margin-top: 14px; border: 1px solid #f0d9c7; border-radius: 11px; padding: 12px; background: #fff9f2; }
.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-row input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--orange); }
.check-row strong, .check-row small { display: block; }
.check-row strong { color: #71583e; font-size: 11px; }
.check-row small { margin-top: 3px; color: #9a8b7b; font-size: 9px; line-height: 1.45; }
.plagiarism-box textarea { width: 100%; min-height: 46px; resize: vertical; margin-top: 10px; border: 1px solid #e6dfd5; border-radius: 7px; padding: 9px; color: var(--ink); background: white; font-size: 11px; }
.notice { border-radius: 9px; padding: 10px 12px; font-size: 11px; line-height: 1.5; }
.notice-warning { border: 1px solid #f0c3b5; color: #8e3928; background: #fff3ee; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.saved-own-score { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 17px; border-radius: 9px; padding: 10px 12px; color: #66756b; background: #f4f5ef; font-size: 10px; }
.saved-own-score strong { color: var(--green-deep); font-size: 15px; }
.saved-own-score small { color: #7d887f; font-size: 9px; font-weight: 500; }

/* Administração */
.admin-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; min-height: 240px; border-radius: 19px; padding: 35px clamp(28px, 5vw, 58px); color: white; background: var(--green-deep); }
.admin-hero::before { position: absolute; top: -170px; right: 105px; width: 400px; height: 400px; border: 1px solid rgba(246,197,104,.23); border-radius: 50%; content: ''; }
.admin-hero::after { position: absolute; top: -115px; right: 160px; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; content: ''; }
.admin-hero-copy { position: relative; z-index: 1; }
.admin-hero h1 { margin: 12px 0 10px; font-size: clamp(33px, 4.3vw, 48px); }
.admin-hero h1 em { color: var(--gold); }
.admin-hero p { max-width: 560px; margin: 0; color: rgba(255,255,255,.7); font-size: 12px; line-height: 1.65; }
.admin-hero-mark { position: relative; z-index: 1; width: 118px; height: 118px; display: flex; align-items: center; justify-content: center; flex: 0 0 118px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: var(--gold); font-family: var(--serif); font-size: 37px; font-weight: 700; }
.admin-hero-mark i, .admin-hero-mark b { position: absolute; width: 145px; height: 1px; background: var(--orange); transform: rotate(-31deg); }
.admin-hero-mark b { width: 120px; background: var(--gold); transform: rotate(28deg); }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 17px 0 53px; }
.stat-card { min-height: 115px; border: 1px solid #e8e1d7; border-radius: 13px; padding: 14px 16px; background: rgba(255,253,249,.83); }
.stat-label { display: block; margin-bottom: 10px; color: #898b7f; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.stat-card > strong { display: block; color: var(--ink); font-size: 27px; line-height: 1.1; }
.stat-card > strong small { color: #a2a299; font-size: 12px; font-weight: 500; }
.stat-card > small { display: block; margin-top: 6px; color: #898e85; font-size: 9px; }
.stat-card .mini-progress { margin-top: 11px; }
.stat-card-green { border-color: #cce1d1; background: #eef6ef; }
.stat-card-green > strong { color: var(--green); }
.admin-section { margin-top: 43px; scroll-margin-top: 16px; }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.section-heading-row h2 { margin-bottom: 6px; font-size: 27px; }
.section-heading-row .muted { max-width: 700px; margin-bottom: 0; font-size: 11px; }
.admin-section-actions { display: flex; align-items: center; gap: 9px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; width: fit-content; border-radius: 999px; padding: 5px 9px; font-size: 8px; font-weight: 700; white-space: nowrap; }
.status-success { color: #236843; background: #e2f1e5; }
.status-finalist { color: #73541a; background: #fff0c8; }
.status-neutral { color: #68766b; background: #edf0ea; }
.status-pending { color: #9b672d; background: #fff1dd; }
.status-danger { color: #9d3b2a; background: #fde8e1; }
.champion-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.champion-card { overflow: hidden; display: grid; grid-template-columns: 132px minmax(0,1fr); min-height: 212px; border: 1px solid #e4ded3; border-radius: 14px; background: var(--paper); }
.champion-first { border-color: #e5bd66; box-shadow: 0 9px 25px rgba(189,133,38,.1); }
.champion-rank { position: absolute; z-index: 1; display: grid; gap: 3px; margin: 10px; border-radius: 7px; padding: 6px 8px; color: #573e0d; background: var(--gold); }
.champion-rank span { font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1; }
.champion-rank small { font-size: 7px; font-weight: 700; letter-spacing: .08em; }
.champion-card > img { width: 132px; height: 100%; min-height: 212px; object-fit: cover; background: #eee8de; }
.champion-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 17px 14px 13px; }
.champion-copy h3 { margin: 6px 0 6px; font-size: 14px; line-height: 1.3; }
.champion-phrase { display: -webkit-box; overflow: hidden; margin: 0 0 10px; color: #68766b; font-family: var(--serif); font-size: 10px; font-style: italic; line-height: 1.5; line-clamp: 3; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.champion-score { display: flex; align-items: baseline; gap: 6px; margin-top: auto; }
.champion-score strong { color: var(--green); font-size: 22px; }
.champion-score span { color: #96988f; font-size: 8px; line-height: 1.3; }
.empty-state { display: flex; align-items: center; gap: 17px; border: 1px dashed #d5d5c8; border-radius: 14px; padding: 20px; background: rgba(255,253,249,.58); }
.empty-state-wide { min-height: 108px; }
.empty-mark { width: 43px; height: 43px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 43px; border-radius: 50%; color: #805b16; background: #fff0c8; font-family: var(--serif); font-size: 18px; font-weight: 700; }
.empty-state h3 { margin-bottom: 5px; font-size: 14px; }
.empty-state p { margin: 0; color: #747c73; font-size: 11px; line-height: 1.6; }
.finalists-section { margin-top: 57px; }
.evaluation-status { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; border: 1px solid #ead9bf; border-radius: 11px; padding: 13px 15px; background: #fff8ec; }
.evaluation-status.is-complete { border-color: #c8e0ce; background: #f0f8f1; }
.status-indicator { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(242,105,37,.12); }
.is-complete .status-indicator { background: var(--green-soft); box-shadow: 0 0 0 4px rgba(97,179,130,.15); }
.evaluation-status strong { display: block; margin-bottom: 3px; font-size: 11px; }
.evaluation-status p { margin: 0; color: #7b8177; font-size: 9px; line-height: 1.5; }
.evaluation-progress { display: grid; flex: 0 0 auto; gap: 2px; margin-left: auto; text-align: right; }
.evaluation-progress strong { color: var(--green); font-size: 17px; }
.evaluation-progress small { color: #96998e; font-size: 8px; white-space: nowrap; }
.finalist-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 10px; border: 1px solid #e7e0d7; border-radius: 11px; padding: 11px 14px; background: var(--paper); }
.finalist-toolbar > div:first-child > strong { font-size: 11px; }
.finalist-toolbar p { margin: 3px 0 0; color: #858b80; font-size: 9px; }
.finalist-toolbar-action { display: flex; align-items: center; gap: 13px; }
.selection-count { color: #777e73; font-size: 9px; white-space: nowrap; }
.selection-count strong { color: var(--orange-dark); font-size: 15px; }
.table-scroll { overflow-x: auto; border: 1px solid #e4ded3; border-radius: 13px; background: var(--paper); }
.score-table { width: 100%; min-width: 1180px; border-collapse: separate; border-spacing: 0; }
.score-table thead th { position: sticky; top: 0; z-index: 2; border-bottom: 1px solid #e5e2d9; padding: 11px 9px; color: #858c80; background: #faf8f2; font-size: 8px; font-weight: 700; letter-spacing: .1em; text-align: left; }
.score-table thead th small { font-size: 8px; font-weight: 500; letter-spacing: 0; }
.score-table tbody td { border-bottom: 1px solid #f0ece5; padding: 9px; vertical-align: middle; }
.score-table tbody tr:last-child td { border-bottom: 0; }
.score-table tbody tr:hover td { background: #fcfaf5; }
.score-table tbody tr.row-disqualified td { background: #fff8f5; }
.score-table tbody tr.row-finalist td { background: #fffcf0; }
.col-select { width: 62px; text-align: center !important; }
.col-participant { min-width: 330px; }
.col-juror { width: 123px; }
.col-total { width: 70px; text-align: center !important; }
.col-status { min-width: 132px; }
.col-action { min-width: 145px; }
.finalist-check input { width: 16px; height: 16px; accent-color: var(--orange); cursor: pointer; }
.table-person { display: flex; align-items: center; gap: 9px; }
.table-person img { width: 43px; height: 43px; flex: 0 0 43px; border-radius: 8px; object-fit: cover; background: #eee8de; }
.rank-index { width: 20px; color: #aa9e8b; font-size: 9px; font-weight: 700; text-align: center; }
.table-person > div { min-width: 0; }
.table-person strong { display: block; margin-bottom: 3px; font-size: 10px; }
.table-person small { display: block; color: #899087; font-size: 8px; }
.table-phrase { max-width: 325px; display: block; overflow: hidden; margin-top: 3px; color: #738078; font-family: var(--serif); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.score-table .col-juror > strong { display: block; color: var(--ink); font-size: 13px; }
.score-table .col-juror > strong small { color: #a0a197; font-size: 8px; font-weight: 500; }
.score-breakdown { display: block; margin-top: 3px; color: #8e958b; font-size: 8px; white-space: nowrap; }
.not-scored { color: #ad9c83; font-size: 9px; }
.score-table .col-total > strong { display: block; color: var(--green); font-size: 16px; }
.score-table .col-total > small { color: #a3a59b; font-size: 8px; }
.status-reason { display: block; max-width: 165px; margin-top: 5px; color: #9a6d61; font-size: 8px; line-height: 1.4; }
.plagiarism-detail { max-width: 170px; margin-top: 6px; color: #9b4a2d; font-size: 8px; }
.plagiarism-detail summary { cursor: pointer; font-weight: 700; }
.plagiarism-detail p { margin: 4px 0 0; line-height: 1.45; }
.disqualify-form { display: grid; gap: 5px; }
.reason-input { width: 127px; height: 25px; border: 1px solid #e4ddd4; border-radius: 5px; padding: 0 6px; font-size: 8px; }
.text-action { width: fit-content; border: 0; padding: 2px 0; background: transparent; font-size: 9px; font-weight: 700; cursor: pointer; }
.text-action-danger { color: #ad4c36; }
.text-action-green { color: var(--green); }
.table-footnote { margin: 9px 0 0; color: #858c82; font-size: 9px; line-height: 1.5; }

/* Segurança e erros */
.security-layout { min-height: 520px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(340px, .8fr); align-items: center; justify-content: center; gap: 70px; max-width: 1000px; margin: 0 auto; }
.security-intro h1 { font-size: clamp(42px, 5vw, 58px); }
.security-intro .muted { max-width: 380px; margin-bottom: 26px; font-size: 13px; }
.security-card { border: 1px solid #e5ded3; border-radius: 17px; padding: 28px; background: var(--paper); box-shadow: var(--shadow); }
.security-card h2 { font-size: 24px; }
.security-card > .muted { margin-bottom: 20px; font-size: 11px; }
.error-state { max-width: 560px; margin: 85px auto; border: 1px solid #e6ded3; border-radius: 17px; padding: 38px; background: var(--paper); text-align: center; box-shadow: var(--shadow); }
.error-mark { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; border-radius: 50%; color: white; background: var(--orange); font-family: var(--serif); font-size: 22px; font-weight: 700; }
.error-mark-green { background: var(--green); font-family: var(--sans); font-size: 13px; }
.error-state h1 { font-size: 32px; }
.error-state .muted { margin-bottom: 22px; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 1120px) {
    .site-shell { padding: 0 27px; }
    .submission-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .champion-grid { grid-template-columns: 1fr; }
    .champion-card { grid-template-columns: 145px minmax(0,1fr); min-height: 176px; }
    .champion-card > img { width: 145px; min-height: 176px; }
    .champion-copy { padding: 16px 18px; }
    .champion-phrase { max-width: 520px; }
}
@media (max-width: 760px) {
    .site-shell { padding: 0 17px; }
    .topbar { min-height: 78px; gap: 10px; }
    .brand-lockup { gap: 8px; flex-direction: column; align-items: flex-start; }
    .brand-logo { width: 150px; height: 43px; }
    .event-label { font-size: 7px; }
    .account-tools { gap: 9px; }
    .account-copy { max-width: 130px; }
    .account-name { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
    .account-role { font-size: 7px; }
    .link-soft { display: none; }
    .button-small { min-height: 33px; padding: 0 10px; font-size: 10px; }
    .main-content { min-height: calc(100vh - 145px); padding: 22px 0 48px; }
    .site-footer { flex-direction: column; gap: 6px; padding: 17px 0 22px; font-size: 9px; }
    .auth-layout { min-height: auto; grid-template-columns: 1fr; border-radius: 17px; }
    .auth-story { min-height: 410px; padding: 31px 25px; }
    .auth-story h1 { margin: 18px 0 12px; font-size: 47px; }
    .auth-intro { margin-bottom: 22px; font-size: 12px; }
    .criterion-row { min-width: 110px; padding: 8px; }
    .login-card { padding: 29px 24px 32px; }
    .login-card h2 { font-size: 27px; }
    .page-heading { flex-direction: column; align-items: stretch; gap: 20px; margin: 9px 0 32px; }
    .page-heading h1 { font-size: 43px; }
    .page-heading .muted { font-size: 12px; }
    .progress-card { width: 100%; flex-basis: auto; }
    .list-controls { flex-direction: column; align-items: stretch; gap: 14px; }
    .search-field { width: 100%; }
    .submission-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
    .card-image-wrap { height: 124px; }
    .submission-card-copy { padding: 10px; }
    .submission-card h3 { min-height: 34px; font-size: 11px; }
    .school-line { font-size: 8px; }
    .phrase-preview { font-size: 10px; }
    .card-bottom { font-size: 8px; }
    .work-toolbar { margin: 0 0 11px; }
    .submission-detail { grid-template-columns: 1fr; gap: 18px; padding: 13px; }
    .submission-photo-wrap, .submission-photo-wrap a { min-height: 280px; }
    .submission-photo { max-height: 430px; }
    .submission-copy { padding: 4px 3px; }
    .submission-copy h2 { font-size: 27px; }
    .entry-phrase { font-size: 16px; }
    .score-grid { gap: 8px; }
    .score-control { padding: 9px; }
    .score-control label { gap: 7px; }
    .score-control label strong { font-size: 9px; }
    .score-control label small { font-size: 8px; }
    .form-actions .button { flex: 1; padding: 0 10px; font-size: 11px; }
    .admin-hero { min-height: 213px; padding: 26px 22px; }
    .admin-hero h1 { font-size: 34px; }
    .admin-hero p { max-width: 420px; font-size: 10px; }
    .admin-hero-mark { width: 64px; height: 64px; flex-basis: 64px; font-size: 24px; }
    .admin-hero-mark i, .admin-hero-mark b { width: 86px; }
    .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 12px 0 37px; }
    .stat-card { min-height: 100px; padding: 12px; }
    .stat-card > strong { font-size: 23px; }
    .admin-section { margin-top: 34px; }
    .section-heading-row { align-items: flex-start; flex-direction: column; gap: 10px; }
    .section-heading-row h2 { font-size: 24px; }
    .section-heading-row .muted { font-size: 10px; }
    .champion-card { grid-template-columns: 112px minmax(0,1fr); min-height: 188px; }
    .champion-card > img { width: 112px; min-height: 188px; }
    .champion-copy { padding: 14px 11px; }
    .champion-copy h3 { font-size: 12px; }
    .finalist-toolbar { align-items: flex-start; flex-direction: column; }
    .finalist-toolbar-action { width: 100%; justify-content: space-between; }
    .evaluation-status { align-items: flex-start; padding: 11px; }
    .evaluation-status p { max-width: 320px; }
    .evaluation-progress { margin-left: auto; }
    .security-layout { min-height: auto; grid-template-columns: 1fr; gap: 25px; padding: 20px 0; }
    .security-intro h1 { font-size: 45px; }
    .security-card { padding: 22px; }
    .error-state { margin: 45px auto; padding: 28px 19px; }
}
@media (max-width: 390px) {
    .site-shell { padding: 0 12px; }
    .brand-logo { width: 128px; }
    .event-label { font-size: 6px; }
    .account-copy { max-width: 100px; }
    .submission-grid { grid-template-columns: 1fr; }
    .card-image-wrap { height: 180px; }
    .submission-card h3 { min-height: auto; }
    .phrase-preview { min-height: 30px; }
    .score-grid { grid-template-columns: 1fr; }
    .admin-hero-mark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
