@font-face { font-family: 'Oswald'; font-weight: 600; font-display: swap; src: url('/fonts/oswald-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 700; font-display: swap; src: url('/fonts/oswald-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 400; font-display: swap; src: url('/fonts/public-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 600; font-display: swap; src: url('/fonts/public-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 700; font-display: swap; src: url('/fonts/public-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --navy: #0E2240; --navy-2: #17345F; --blue: #6B8FB8; --blue-soft: #AFC0D8;
  --paper: #F5F0E6; --paper-2: #FBF8F1; --line: #E1D8C4; --ink: #0E2240; --muted: #566178;
  --gold: #C9A24B; --rust: #B5511F; --rust-dark: #96401A; --ok: #2F6B4F; --warn: #8A5A00; --bad: #A12B2B;
  --radius: 4px; --gap: 16px;
  --display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--body); min-height: 100vh; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: .01em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 .75em; }
a { color: var(--navy-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .right { text-align: right; } .center { text-align: center; }
.num { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.noscript { padding: 24px; }

/* ---- estrutura ---- */
.topbar { background: var(--navy); color: var(--paper); display: flex; align-items: center; gap: 12px; padding: 8px 16px; padding-top: calc(8px + env(safe-area-inset-top)); position: sticky; top: 0; z-index: 20; }
.brand { font-family: var(--display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 1rem; color: var(--paper); text-decoration: none; white-space: nowrap; }
.brand small { display: block; font: 400 .7rem var(--body); letter-spacing: .02em; text-transform: none; color: var(--blue-soft); }
.nav { display: flex; gap: 2px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--blue-soft); text-decoration: none; padding: 10px 12px; border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 600; font-size: .95rem; }
.nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--gold); }
.topbar .who { font-size: .85rem; color: var(--blue-soft); display: none; }
.topbar button.link { color: var(--blue-soft); }
.topbar select { background: var(--navy-2); color: var(--paper); border: 1px solid #355b92; max-width: 11rem; }
.page { max-width: 1100px; margin: 0 auto; padding: 20px 16px 96px; }
.page.wide { max-width: 1280px; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 24px; margin-bottom: 18px; }
.page-head h1 { flex: 1 1 14rem; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stack > * + * { margin-top: var(--gap); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; } .row.between { justify-content: space-between; }
.grid { display: grid; gap: var(--gap); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.panel { background: var(--paper-2); border: 1px solid var(--line); padding: 16px; }
.panel > h2, .panel > h3 { margin-bottom: 10px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.section-title { display: flex; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--navy); padding-bottom: 6px; margin: 24px 0 12px; }
.section-title h2 { flex: 1; }

/* ---- formulários ---- */
label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
input, select, textarea { font: inherit; color: inherit; background: #fff; border: 1px solid #b9ae95; border-radius: var(--radius); padding: 10px 12px; min-height: 44px; width: 100%; }
textarea { min-height: 96px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 24px; height: 24px; min-height: 0; accent-color: var(--navy-2); flex: none; }
input[type=range] { padding: 0; }
input[type=color] { padding: 2px; width: 56px; }
.field { margin-bottom: 14px; }
.field.inline { display: flex; align-items: center; gap: 10px; }
.field.inline label { margin: 0; font-weight: 400; }
.field-error, .error-text { color: var(--bad); font-size: .875rem; margin-top: 4px; }
fieldset { border: 1px solid var(--line); padding: 12px 14px; margin: 0 0 14px; }
legend { font-weight: 700; padding: 0 6px; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* ---- botões ---- */
button { font: inherit; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 2px solid var(--navy); background: transparent; color: var(--navy); font-weight: 700; border-radius: var(--radius); text-decoration: none; }
.btn:hover { background: #ece4d2; }
.btn.primary { background: var(--rust); border-color: var(--rust); color: #fff; }
.btn.primary:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.btn.navy { background: var(--navy); color: #fff; } .btn.navy:hover { background: var(--navy-2); }
.btn.danger { border-color: var(--bad); color: var(--bad); } .btn.danger:hover { background: #f6e3e1; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .875rem; }
.btn[disabled], button[disabled] { opacity: .5; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 8px 4px; min-height: 40px; color: var(--navy-2); text-decoration: underline; font-size: inherit; }

/* ---- avisos ---- */
.banner { padding: 10px 14px; border-left: 5px solid var(--blue); background: #e9eef6; margin-bottom: 14px; }
.banner.warn { border-color: var(--gold); background: #f7efd9; }
.banner.bad { border-color: var(--bad); background: #f6e3e1; }
.banner.ok { border-color: var(--ok); background: #e2efe8; }
.banner.demo { border-color: var(--rust); background: #f6e5dc; font-weight: 600; }
.banner ul { margin: 6px 0 0; padding-left: 20px; }
#toasts { position: fixed; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 60; pointer-events: none; padding: 0 12px; }
.toast { background: var(--navy); color: #fff; padding: 12px 18px; border-left: 5px solid var(--gold); max-width: 560px; box-shadow: 0 2px 10px rgba(0,0,0,.25); pointer-events: auto; }
.toast.bad { border-color: #ff8f8f; } .toast.ok { border-color: #7fd1a8; }

/* ---- tabelas e listas ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--navy); padding: 8px 10px; white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td.num-cell, th.num-cell { text-align: right; }
@media (max-width: 640px) {
  table.stackable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stackable, table.stackable tbody, table.stackable tr, table.stackable td { display: block; width: 100%; }
  table.stackable tr { border-bottom: 2px solid var(--navy); padding: 8px 0; }
  table.stackable td { border: 0; padding: 4px 2px; display: flex; gap: 12px; justify-content: space-between; align-items: center; text-align: right; }
  table.stackable td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .8rem; text-align: left; flex: none; }
  table.stackable td:not([data-label]) { justify-content: flex-start; flex-wrap: wrap; text-align: left; padding-top: 8px; }
  table.stackable td.num-cell { text-align: right; }
}
tr.clickable { cursor: pointer; } tr.clickable:hover td { background: #efe8d7; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.chip { display: inline-block; padding: 2px 10px; font-size: .8rem; font-weight: 700; border: 2px solid var(--navy); line-height: 1.4; white-space: nowrap; }
.chip.w1 { background: transparent; } .chip.w2 { background: #d6e2f3; border-color: var(--navy-2); color: var(--navy); } .chip.w3 { background: var(--navy); color: #fff; }
.chip.st-sem { color: var(--muted); border-color: var(--line); }
.chip.st-rascunho { border-color: var(--blue); color: var(--navy-2); }
.chip.st-enviado { background: #f7efd9; border-color: var(--gold); }
.chip.st-homologado { background: #e2efe8; border-color: var(--ok); color: var(--ok); }
.chip.st-cancelada, .chip.bad { border-color: var(--bad); color: var(--bad); }
.chip.ok { border-color: var(--ok); color: var(--ok); }
.chip.warn { border-color: var(--warn, #B7791F); color: var(--warn, #8A5A00); }
.team-dot { display: inline-block; width: 14px; height: 14px; background: var(--team, var(--blue)); border: 1px solid rgba(0,0,0,.35); vertical-align: -2px; margin-right: 8px; flex: none; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--navy); margin-bottom: 18px; scrollbar-width: none; }
.tabs a, .tabs button { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border: 0; background: none; border-bottom: 4px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a[aria-current="page"], .tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--rust); }

/* ---- placar ---- */
.hero-number { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.progress { height: 14px; background: var(--line); }
.progress > span { display: block; height: 100%; background: var(--team, var(--rust)); width: calc(var(--p, 0) * 1%); }
.board { list-style: none; margin: 0; padding: 0; }
.board li { display: grid; grid-template-columns: 3rem 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.board .pos { font-family: var(--display); font-weight: 700; font-size: 1.8rem; text-align: center; color: var(--muted); }
.board li.top1 .pos { color: var(--gold); } .board li.top2 .pos, .board li.top3 .pos { color: var(--navy-2); }
.board li.top1 { background: linear-gradient(90deg, #f7efd9, transparent 70%); }
.board .name { font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; min-width: 0; }
.board .score { font-family: var(--display); font-weight: 700; font-size: 1.9rem; text-align: right; font-variant-numeric: tabular-nums; }
.board .gap { grid-column: 2 / 4; font-size: .85rem; color: var(--muted); text-align: left; }
.board .bar { grid-column: 2 / 4; }
.board .detail { grid-column: 1 / 4; }
.stat { display: flex; flex-direction: column; }
.stat .v { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .k { font-size: .85rem; color: var(--muted); }

/* ---- resultados ---- */
.master-detail { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.master-detail > * { min-width: 0; }
.back-list { display: none; }
@media (max-width: 899px) { .master-detail.has-detail .prova-list { display: none; } .master-detail.has-detail .back-list { display: inline-flex; } }
@media (min-width: 900px) { .master-detail { grid-template-columns: 320px minmax(0, 1fr); align-items: start; } .topbar .who { display: block; } }
.prova-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); background: var(--paper-2); }
.prova-list li button { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; min-height: 56px; }
.prova-list li button[aria-current="true"] { background: #efe8d7; box-shadow: inset 4px 0 0 var(--rust); }
.prova-list .cat { padding: 8px 14px; font: 600 .75rem var(--body); letter-spacing: .08em; text-transform: uppercase; background: #ece4d2; color: var(--muted); }
.launch-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .launch-row { grid-template-columns: minmax(8rem, 1fr) 11rem 1fr 7rem; align-items: center; } }
.launch-row .pts { font-family: var(--display); font-weight: 700; font-size: 1.6rem; text-align: right; font-variant-numeric: tabular-nums; }
.launch-row .pts small { display: block; font: 400 .75rem var(--body); color: var(--muted); }
.sticky-actions { position: sticky; bottom: 0; background: var(--paper); border-top: 2px solid var(--navy); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; flex-wrap: wrap; z-index: 5; }
.move { font-weight: 700; } .move.up { color: var(--ok); } .move.down { color: var(--bad); }

/* ---- diálogo ---- */
dialog { border: 2px solid var(--navy); padding: 0; background: var(--paper-2); max-width: min(560px, calc(100vw - 24px)); width: 100%; color: var(--ink); }
dialog.large { max-width: min(860px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(14, 34, 64, .55); }
dialog .dlg-head { background: var(--navy); color: #fff; padding: 12px 18px; }
dialog .dlg-body { padding: 18px; max-height: 70vh; overflow: auto; }
dialog .dlg-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---- login ---- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--navy); }
.auth .box { background: var(--paper-2); width: 100%; max-width: 420px; padding: 28px 24px; border-top: 6px solid var(--gold); }
.auth h1 { margin-bottom: 4px; } .auth .sub { color: var(--muted); margin-bottom: 20px; }

/* ---- portal do participante ---- */
.p-shell { padding-bottom: 76px; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy); display: flex; z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; text-align: center; color: var(--blue-soft); text-decoration: none; padding: 12px 2px; font-size: .8rem; font-weight: 600; border-top: 3px solid transparent; position: relative; }
.tabbar a[aria-current="page"] { color: #fff; border-top-color: var(--gold); }
.tabbar .dot { position: absolute; top: 6px; right: calc(50% - 22px); width: 10px; height: 10px; background: var(--rust); border-radius: 50%; }
.todo { display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px solid var(--navy); background: var(--paper-2); text-decoration: none; color: inherit; margin-bottom: 10px; min-height: 56px; }
.todo.important { border-color: var(--rust); background: #f6e5dc; }
.todo .arrow { margin-left: auto; font-weight: 700; }
.countdown { display: flex; gap: 20px; margin: 8px 0; }
.countdown .stat .v { font-size: 2.6rem; }
.avatar { width: 96px; height: 96px; background: var(--navy-2); color: var(--paper); display: grid; place-items: center; font: 700 2.2rem var(--display); object-fit: cover; }
.avatar.sm { width: 56px; height: 56px; font-size: 1.3rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo-card { border: 1px solid var(--line); background: var(--paper-2); }
.photo-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--line); }
.photo-card .meta { padding: 8px 10px; font-size: .85rem; }
.crop-box { position: relative; width: min(100%, 320px); aspect-ratio: 1; margin: 0 auto 12px; overflow: hidden; background: #222; touch-action: none; cursor: grab; }
.crop-box canvas { width: 100%; height: 100%; display: block; }
.team-card { border: 1px solid var(--line); border-top: 8px solid var(--team, var(--blue)); background: var(--paper-2); padding: 14px; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-top: 12px; }
.member { text-align: center; font-size: .9rem; font-weight: 600; }
.member .avatar { margin: 0 auto 6px; }
.member.me { outline: 3px solid var(--gold); outline-offset: 4px; }

/* ---- telão ---- */
body.telao { background: var(--navy); color: var(--paper); cursor: none; }
body.telao.show-cursor { cursor: default; }
.screen { min-height: 100vh; padding: 3vh 5vw; display: flex; flex-direction: column; }
.screen .s-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-bottom: 2px solid var(--gold); padding-bottom: 1.2vh; margin-bottom: 2vh; }
.screen .s-head h1 { font-size: clamp(1.6rem, 3.4vw, 3.2rem); letter-spacing: .06em; text-transform: uppercase; }
.screen .s-head .meta { color: var(--blue-soft); font-size: clamp(.9rem, 1.4vw, 1.4rem); }
.screen .board li { grid-template-columns: 9vw 1fr auto auto; grid-template-areas: 'pos name gap score' 'pos bar bar bar'; column-gap: 2vw; align-items: center; padding: 1.4vh 0; border-bottom: 1px solid #2c4a77; }
.screen .board .pos { font-size: min(4.8vw, 7.6vh); line-height: 1; color: var(--paper); }
.screen .board li.top1 { background: none; } .screen .board li.top1 .pos { color: var(--gold); }
.screen .board .name { font-size: max(15px, min(3.2vw, 5.4vh)); line-height: 1.1; }
.screen .board .score { font-size: min(4.8vw, 7.6vh); line-height: 1; }
.screen .board .gap { color: var(--blue-soft); font-size: max(12px, min(1.5vw, 2.4vh)); white-space: nowrap; }
.screen .board li.top2 .pos, .screen .board li.top3 .pos { color: var(--paper); }
.screen .progress { background: #2c4a77; height: 1.2vh; }
.screen .hero-number { font-size: clamp(3rem, 8vw, 8rem); }
.reveal-stage { flex: 1; display: grid; place-items: center; text-align: center; }
.reveal-card { display: grid; justify-items: center; gap: 2.5vh; animation: pop .45s ease-out both; }
.reveal-card .pic { width: min(38vh, 70vw); height: min(38vh, 70vw); object-fit: cover; border: .6vh solid var(--gold); background: var(--navy-2); display: grid; place-items: center; font: 700 12vh var(--display); color: var(--blue-soft); }
.reveal-card .who { font: 700 clamp(2rem, 6vw, 6rem) var(--display); line-height: 1; }
.reveal-card .arrow-t { color: var(--blue-soft); font-size: clamp(1rem, 2vw, 2rem); letter-spacing: .3em; text-transform: uppercase; }
.reveal-card .tname { font: 700 clamp(2.4rem, 8vw, 8rem) var(--display); line-height: 1; padding: .1em .5em; background: var(--team, var(--rust)); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); text-transform: uppercase; }
.reveal-card .tname.light { color: var(--navy); text-shadow: none; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(22vw, 1fr)); gap: 2vw; }
.summary-grid .t { border-top: 1vh solid var(--team); background: #17345F; padding: 1.5vh 1.5vw; }
.summary-grid .t h2 { font-size: clamp(1.3rem, 2.6vw, 3rem); text-transform: uppercase; margin-bottom: 1vh; }
.summary-grid .t li { font-size: clamp(1rem, 1.9vw, 2.2rem); list-style: none; display: flex; align-items: center; gap: .8vw; padding: .4vh 0; }
.summary-grid .t li img, .summary-grid .t li .avatar { width: 4vw; height: 4vw; min-width: 36px; min-height: 36px; font-size: 1.8vw; }
.summary-grid ul { margin: 0; padding: 0; }
.wait { opacity: .75; font-size: clamp(1.4rem, 3vw, 3rem); text-align: center; }
.fs-btn { position: fixed; right: 12px; top: 12px; opacity: 0; transition: opacity .2s; z-index: 5; }
body.show-cursor .fs-btn, .fs-btn:focus-visible { opacity: 1; }
.conn { position: fixed; left: 12px; bottom: 12px; background: #7a1f1f; color: #fff; padding: 6px 12px; font-size: .9rem; z-index: 5; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal-card { animation: none; } * { scroll-behavior: auto !important; } }
body.reduce-motion .reveal-card { animation: none; }

@media print { .topbar, .tabbar, .btn, #toasts { display: none !important; } body { background: #fff; } }

/* ---- celular: navegação principal da equipe na base; alvos de toque de 44px ---- */
.tabbar.staff { display: flex; }
@media (min-width: 900px) { .tabbar.staff { display: none; } }
@media (max-width: 899px) { .topbar .nav { display: none; } .topbar { justify-content: space-between; } .topbar select { flex: 1; } }
.topbar button.link { min-height: 44px; min-width: 44px; padding: 0 8px; }
.tabbar a { min-height: 48px; display: flex; align-items: center; justify-content: center; }
.field.inline { min-height: 44px; display: flex; align-items: center; gap: 10px; }
.field.inline label { margin: 0; padding: 10px 0; flex: 1; }

.screen .board .pos { grid-area: pos; } .screen .board .name { grid-area: name; } .screen .board .gap { grid-area: gap; text-align: right; } .screen .board .score { grid-area: score; } .screen .board .bar { grid-area: bar; }
.screen .progress { height: 1.2vh; }

.page > h1, .page > .stack > h1:first-child { margin-bottom: 14px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.table-wrap:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 2px; }
.table-wrap { position: relative; }
html { scroll-padding-bottom: 80px; scroll-padding-top: 72px; }   /* o foco por teclado não fica atrás das barras fixas */
.summary-grid .t li .avatar { flex: none; display: grid; place-items: center; background: #2c4a77; color: var(--paper); object-fit: cover; }   /* linhas do resumo com altura uniforme, com ou sem foto */

.formation-person { display: grid; gap: .4rem; padding: .75rem 0; border-bottom: 1px solid var(--border, #d6d6d6); }
.formation-person[draggable=true] { cursor: grab; }
.formation-person select { width: 100%; min-height: 44px; }

/* Menu "Mais" nas linhas de participantes: tira da vista ações pouco usadas. */
details.more { display: inline-block; }
details.more > summary { list-style: none; cursor: pointer; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > .row { margin-top: .4rem; }

/* ---- fluxo do padrinho (sem login) ---- */
.pad { max-width: 760px; }
.pad-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--navy); color: var(--paper); margin: -20px -16px 18px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); }
.pad-top button.link { color: var(--blue-soft); }
.btn.big { min-height: 56px; font-size: 1.1rem; padding: 0 24px; }
.pad .link { background: none; border: 0; padding: 8px 0; color: var(--navy-2); text-decoration: underline; font: inherit; cursor: pointer; min-height: 44px; }
.card-btn { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--paper-2); border: 1px solid var(--line); border-left: 5px solid var(--navy); padding: 12px; font: inherit; color: var(--ink); cursor: pointer; min-height: 72px; }
.card-btn:hover { background: #f1ead9; }
.card-txt { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ilustracao { color: var(--navy-2); flex: none; }
.pad-hero { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.pad-det { border: 1px solid var(--line); background: var(--paper-2); padding: 0 14px; }
.pad-det > summary { cursor: pointer; padding: 12px 0; font-weight: 700; min-height: 44px; }
.pad-det[open] { padding-bottom: 8px; }
.pad-list { margin: 0 0 8px; padding-left: 22px; } .pad-list li { margin-bottom: 6px; }
pre.orig { white-space: pre-wrap; font: 400 .9rem/1.45 var(--body); margin: 0 0 8px; }
.team-picks { display: flex; flex-wrap: wrap; gap: 10px; }
.team-pick { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; border: 2px solid var(--navy); background: var(--paper-2); font: 700 1rem var(--body); color: var(--ink); cursor: pointer; position: relative; }
.team-pick[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--team, var(--navy)); box-shadow: inset 0 -6px 0 var(--team, var(--gold)); }
.team-pick .ordem { background: var(--gold); color: var(--navy); border-radius: 50%; width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .8rem; }
.cron-box { background: var(--navy); color: #fff; padding: 16px; text-align: center; position: sticky; top: 0; z-index: 5; }
.cron { font: 700 4rem/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.rest { font-size: 1.2rem; font-weight: 700; margin-top: 4px; } .rest.low { color: var(--gold); } .rest.out { color: #ffb3a7; }
.cron-btns { justify-content: center; margin-top: 12px; }
.cron-box .btn { border-color: #fff; color: #fff; } .cron-box .btn.primary { background: var(--rust); border-color: var(--rust); } .cron-box .btn.navy { background: var(--navy-2); }
.cron-box .btn.danger { border-color: #ffb3a7; color: #ffb3a7; }
.equipes-cols { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.equipe-col { border: 2px solid var(--team, var(--navy)); background: var(--paper-2); padding: 14px; }
.equipe-col h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.contador { margin-bottom: 14px; } .ct-label { font-weight: 700; margin-bottom: 6px; }
.ct-ctl { display: flex; align-items: center; gap: 10px; }
.ct-btn { width: 64px; height: 64px; font: 700 2rem var(--display); background: var(--navy); color: #fff; border: 0; border-radius: var(--radius); cursor: pointer; }
.ct-ctl input { width: 96px; height: 64px; text-align: center; font: 700 2rem var(--display); border: 2px solid var(--navy); background: #fff; }
.rev { padding: 12px 0; border-bottom: 1px solid var(--line); }
.team-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--team, var(--blue)); margin-right: 6px; vertical-align: middle; }
@media (max-width: 480px) { .cron { font-size: 3.2rem; } }

.pad-top-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
