/* OBR 2026 · portal de mesas e treinos
   Paleta derivada do vinho do logo oficial; neutros puxados para o mesmo tom.
   Layout: topo com logo, conteúdo em coluna única até 980px, folha fixa embaixo para ações. */
:root {
  --bg: #F7F3F2; --surface: #FFFFFF; --ink: #261A1C; --muted: #6D5E60; --line: #E8DEDC;
  --accent: #7A1C1C; --accent-ink: #FFFFFF; --accent-soft: #F6E8E6; --accent-strong: #561111;
  --free: #E3F3E7; --free-ink: #17652F; --free-line: #ACDDB8;
  --off: #F0ECEB; --off-ink: #8E8183;
  --note: #FFF4E0; --note-ink: #7A4A0B;
  --bad: #B42318; --bad-soft: #FDECEA; --bad-line: #F3B8B2;
  --map-bg: #FFFFFF;
  --font-d: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-b: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #161011; --surface: #211718; --ink: #F4ECEC; --muted: #B7A6A8; --line: #3A2B2D;
  --accent: #E99393; --accent-ink: #1A0E0F; --accent-soft: #3B2124; --accent-strong: #F6CACA;
  --free: #16351F; --free-ink: #8FE0A6; --free-line: #2C6B41;
  --off: #2A2022; --off-ink: #8A7A7C;
  --note: #3A2D14; --note-ink: #F4CF8C;
  --bad: #FF8A7E; --bad-soft: #3D1A17; --bad-line: #7A2D26;
  color-scheme: dark } }
/* Impressão sempre em fundo branco (mesmo com o aparelho no modo escuro). */
@media print { :root {
  --bg: #FFFFFF; --surface: #FFFFFF; --ink: #261A1C; --muted: #4A3D3F; --line: #D9CDCB;
  --accent: #7A1C1C; --accent-ink: #FFFFFF; --accent-soft: #F6E8E6; --accent-strong: #561111;
  --free: #E3F3E7; --free-ink: #17652F; --free-line: #ACDDB8;
  --off: #F0ECEB; --off-ink: #6D5E60;
  --note: #FFF4E0; --note-ink: #7A4A0B;
  --bad: #B42318; --bad-soft: #FDECEA; --bad-line: #F3B8B2;
  --map-bg: #FFFFFF;
  color-scheme: light }
  body { background: #FFFFFF }
  .st-crono-l li { break-inside: avoid }
}

* { box-sizing: border-box }
html { padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-b); font-size: 15px; line-height: 1.45 }
[hidden] { display: none !important }
a { color: var(--accent) }
.wrap { max-width: 980px; margin: 0 auto; padding-block: 16px 140px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid; gap: 16px }
h1, h2, h3 { font-family: var(--font-d); text-wrap: balance; margin: 0 }
button, select, input { font: inherit }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px }

/* ---------- topo ---------- */
.topbar { display: flex; align-items: center; gap: 12px; min-width: 0 }
.topbar .logo { height: 34px; width: auto; flex: none }
.topbar .titles { min-width: 0; display: grid }
.topbar .eyebrow { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600 }
.topbar h1 { font-size: clamp(19px, 4.6vw, 26px); line-height: 1.15 }
.topbar .back { margin-left: auto; flex: none; font-size: 13.5px; font-weight: 600; text-decoration: none; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink) }

/* ---------- menu principal ---------- */
.hero { display: grid; justify-items: center; text-align: center; gap: 10px; padding-block: 18px 6px }
.hero .logo { width: min(280px, 70vw); height: auto }
.hero p { margin: 0; color: var(--muted); max-width: 46ch }
.menu { display: grid; gap: 14px }
.menu-group { display: grid; gap: 10px }
.menu-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 6px 2px 0 }
.menu-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px }
.card-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px; min-height: 88px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none }
.card-link:hover { border-color: var(--accent) }
.card-link .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--font-d); font-weight: 700; font-size: 17px }
.card-link .ico svg { width: 26px; height: 26px }
.card-link strong { display: block; font-family: var(--font-d); font-size: 18px }
.card-link span.sub { display: block; color: var(--muted); font-size: 13.5px }
.card-link .go { color: var(--muted); font-size: 22px }
.card-link.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) }
.card-link.primary .ico { background: rgba(255,255,255,.16); color: var(--accent-ink) }
.card-link.primary span.sub, .card-link.primary .go { color: inherit; opacity: .85 }
.foot { text-align: center; color: var(--muted); font-size: 12.5px }

/* ---------- avisos ---------- */
.banner { padding: 10px 14px; border-radius: 10px; background: var(--note); color: var(--note-ink); font-size: 13.5px }
.warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); border: 1px solid var(--bad-line); font-size: 14px }
.warn svg { flex: none; width: 20px; height: 20px; margin-top: 1px }
.warn strong { color: inherit }

/* ---------- agendamento ---------- */
.days { display: flex; gap: 8px; flex-wrap: wrap }
.days button { font-weight: 600; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; min-height: 40px }
.days button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent) }
.teambar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 4; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; display: grid; gap: 8px; box-shadow: 0 6px 18px rgba(40, 10, 12, .06) }
.teambar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center }
.teambar select { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 15px; min-height: 44px }
.credits { display: flex; align-items: center; gap: 8px; white-space: nowrap }
.pips { display: flex; gap: 5px }
.pip { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent) }
.pip.used { background: var(--accent) }
.credits-text { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13.5px }
.mine { font-size: 13px; color: var(--muted); margin: 0 }
.rules-line { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; color: var(--muted) }
.rules-line span::after { content: "·"; margin-left: 12px; color: var(--line) }
.rules-line span:last-of-type::after { content: "" }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 13px }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap }
.toggle { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink); cursor: pointer }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent) }

.grid { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden }
.row { display: grid; grid-template-columns: 86px repeat(var(--vagas, 1), minmax(0, 1fr)) 76px; gap: 6px; padding: 5px 10px; border-top: 1px solid var(--line); align-items: center }
.row:first-child { border-top: 0 }
.row.head { background: var(--accent-strong); color: var(--surface); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding-block: 9px }
.row.head .status { color: inherit }
.row.hour { border-top: 2px solid var(--line) }
.time { font-family: var(--font-d); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px }
.time small { display: block; font-family: var(--font-b); font-weight: 400; font-size: 11.5px; color: var(--muted) }
.seat { font-size: 13.5px; min-height: 44px; border-radius: 9px; padding: 6px 8px; border: 1px solid transparent; text-align: center; overflow-wrap: anywhere; line-height: 1.25; display: grid; place-items: center }
button.seat { cursor: pointer; width: 100% }
.seat.free { background: var(--free); color: var(--free-ink); border-color: var(--free-line); font-weight: 600 }
button.seat.free:hover { border-color: var(--free-ink) }
.seat.off { background: var(--off); color: var(--off-ink); border-style: dashed; border-color: var(--line); font-size: 12.5px }
.seat.taken { background: var(--accent-soft); color: var(--accent-strong); font-weight: 500 }
.seat.own { background: var(--accent); color: var(--accent-ink); font-weight: 600 }
.status { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums }
.status.full { color: var(--off-ink) }
.empty { padding: 24px; text-align: center; color: var(--muted) }
@media (max-width: 560px) {
  body { font-size: 14.5px }
  .row { grid-template-columns: 64px repeat(var(--vagas, 1), minmax(0, 1fr)); padding-inline: 8px; gap: 6px }
  .status { display: none }
  .time { font-size: 14px }
  .topbar .logo { height: 28px }
}

/* ---------- folha de baixo ---------- */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 28px rgba(40, 10, 12, .16);
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)) }
.sheet-in { max-width: 980px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between }
.sheet-body { flex: 1 1 320px; min-width: 0; display: grid; gap: 10px }
.sheet p { margin: 0 }
.sheet .sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px }
.sheet .sub.warnline { color: var(--bad); font-weight: 600 }
.sheet-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: center }
.sheet-fields select { flex: 1 1 220px; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink) }
.sheet .acts { display: flex; gap: 8px; flex-wrap: wrap }
.btn { font-weight: 600; padding: 11px 16px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent) }
.btn.danger { background: var(--bad); color: #FFFFFF; border-color: var(--bad) }
.btn[disabled] { opacity: .6; cursor: progress }
@media (max-width: 560px) { .sheet .acts { width: 100% } .sheet .acts .btn { flex: 1 } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 9; background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 10px; font-size: 14px; width: max-content; max-width: calc(100% - 32px) }
.toast.err { background: var(--bad-soft); color: var(--bad); border: 1px solid var(--bad) }

/* ---------- janela de aviso ---------- */
dialog.modal { border: 0; padding: 0; border-radius: 18px; width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 48px); background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(20, 5, 6, .35) }
dialog.modal::backdrop { background: rgba(20, 8, 10, .55) }
.modal-in { padding: 22px; display: grid; gap: 14px; overflow: auto }
.modal-in h2 { font-size: 22px }
.modal-in ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px }
.modal-in ol strong { color: var(--ink) }
.modal-in .legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted) }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; background: var(--sw) }
.modal-in .btn { width: 100% }

/* ---------- coordenação ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 14px }
.panel.admin { border-color: var(--accent) }
.admin-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end }
.admin-tools { display: grid; gap: 16px }
.admin-head h2 { font-size: 20px; margin-bottom: 4px }
.admin-block { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line) }
.admin-block h3 { font-size: 15px }
.admin-block .btn, #adminSair { justify-self: start }
label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; display: block; margin-bottom: 6px }
.panel input, .panel select { width: 100%; font-size: 15px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink) }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px }
.fields .wide { grid-column: span 2 }
@media (max-width: 420px) { .fields .wide { grid-column: auto } }
.hint { margin: 0; font-size: 12.5px; color: var(--muted) }
.audit { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 4px }
.check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 500; margin: 0 }
.check input { width: 18px; height: 18px; accent-color: var(--accent) }

/* ---------- mapa ---------- */
body.mapa-page { height: 100dvh; display: flex; flex-direction: column; overflow: hidden }
.mapa-top { padding: 12px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 10px; background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 3 }
.search { position: relative }
.search input { width: 100%; font-size: 16px; padding: 12px 14px 12px 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-height: 46px }
.search .lupa { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px rgba(20, 5, 6, .18); max-height: min(50dvh, 360px); overflow: auto; z-index: 5 }
.suggest li { padding: 10px 12px; border-radius: 8px; cursor: pointer; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--accent-soft) }
.suggest .n { font-family: var(--font-d); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent) }
.suggest .t { font-size: 12px; color: var(--muted); display: block }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none }
.chips::-webkit-scrollbar { display: none }
.chip-btn { flex: none; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap }
.chip-btn.pdf { background: var(--accent-soft); color: var(--accent-strong); border-color: transparent }
.stage { position: relative; flex: 1; min-height: 0; background: var(--map-bg); touch-action: none; overflow: hidden; cursor: grab }
.stage.dragging { cursor: grabbing }
.stage svg { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-select: none }
.stage .mesa, .stage .local { cursor: pointer }
.stage .hl circle, .stage .hl rect { stroke: #7A1C1C !important; stroke-width: 6 !important }
.stage .pulse { fill: none; stroke: #C0392B; stroke-width: 5; transform-box: fill-box; transform-origin: center }
@media (prefers-reduced-motion: no-preference) { .stage .pulse { animation: pulse 1.4s ease-out infinite } }
@keyframes pulse { from { opacity: 1; transform: scale(1) } to { opacity: 0; transform: scale(2.4) } }
.zoom { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 6px; z-index: 2 }
.zoom button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid #DDD3D2; background: #FFFFFF; color: #261A1C; font-size: 20px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(20, 5, 6, .12) }
.zoom button.fit { font-size: 12px }
.info { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); right: 70px; z-index: 2; background: #FFFFFF; color: #261A1C; border: 1px solid #DDD3D2; border-radius: 12px; padding: 10px 14px; box-shadow: 0 8px 20px rgba(20, 5, 6, .15); max-width: 420px }
.info strong { font-family: var(--font-d); font-size: 16px; display: block }
.info span { font-size: 13px; color: #6D5E60 }
.legend-map { font-size: 13px }
.legend-map summary { cursor: pointer; color: var(--muted); font-weight: 600 }
.legend-map .legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 8px; color: var(--muted) }
@media (prefers-reduced-motion: no-preference) { .seat { transition: background-color .15s, border-color .15s } }

/* ---------- rota a partir da entrada ---------- */
.stage .rota { fill: none; stroke: #E0245E; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; opacity: .95; pointer-events: none }
.stage .rota-ponto { fill: #E0245E; pointer-events: none }
.info { max-height: 46dvh; overflow: auto; padding-right: 36px }
.info-x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #6D5E60; font-size: 22px; line-height: 1; cursor: pointer }
.info .onde { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: #261A1C }
.info .passos { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: p; display: grid; gap: 6px; font-size: 13.5px; color: #261A1C }
.info .passos li { counter-increment: p; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start }
.info .passos li::before { content: counter(p); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #261A1C; color: #FFFFFF; font-size: 12px; font-weight: 700 }
.info .passos li:last-child::before { background: #E0245E }
.chip-btn.entrada { border-color: #E0245E; color: #B81C4B }

/* ---------- materiais ---------- */
.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line) }
.tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink) }
.docs { display: grid; gap: 10px }
.docs-h { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-family: var(--font-b); font-weight: 600; margin-top: 6px }
.doc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; min-height: 72px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none }
.doc:hover { border-color: var(--accent) }
.doc-ico { width: 44px; height: 52px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .06em }
.doc strong { display: block; font-family: var(--font-d); font-size: 16px }
.doc .sub { display: block; font-size: 13px; color: var(--muted) }
.tag { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink) }
.tag.muted { background: var(--off); color: var(--muted) }
@media (max-width: 420px) { .doc { grid-template-columns: auto minmax(0, 1fr) } .doc .tag { display: none } }

/* ---------- dia das reservas ---------- */
.dayinfo { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-strong) }
.dayinfo svg { flex: none; width: 22px; height: 22px }
.dayinfo strong { display: block; font-family: var(--font-d); font-size: 16px }
.dayinfo .sub { display: block; font-size: 13px; color: var(--muted) }
.admin-block.zerar { border-top-color: var(--bad-line) }
.admin-block.zerar h3 { color: var(--bad) }
.pending { margin: 0; padding: 12px 14px; border-radius: var(--radius); border: 1px dashed var(--line); color: var(--muted); font-size: 14px }

/* No celular o cartão de orientações cobre o mapa: fica só a rota animada e o destaque. */
@media (max-width: 700px) { .stage .info { display: none !important } }

/* ---------- mapa: resumo e tela cheia ---------- */
.info .resumo { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: #FDE6EE; color: #261A1C; font-size: 14px; line-height: 1.4 }
.info .resumo b { color: #B81C4B }
.info .detalhes { margin-top: 8px }
.info .detalhes summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #7A1C1C }
.zoom button.exp { background: #7A1C1C; color: #FFFFFF; border-color: #7A1C1C; font-size: 20px }
body.expandido .mapa-top { display: none }
/* Tablet e telas baixas: topo mais compacto */
@media (max-width: 1100px), (max-height: 820px) {
  .mapa-top { gap: 8px; padding-top: 8px; padding-bottom: 8px }
  .mapa-top .topbar .logo { height: 26px }
  .mapa-top .eyebrow { display: none }
  .mapa-top h1 { font-size: 18px }
  .mapa-top .search input { min-height: 42px; padding-top: 9px; padding-bottom: 9px }
  .mapa-top .legend-map { display: none }
}
.aviso { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--radius); background: var(--note); color: var(--note-ink); border-left: 4px solid currentColor; font-size: 14px; line-height: 1.45 }
.aviso p { margin: 0 }

/* ---------- menu por modalidade ---------- */
.menu-wrap { max-width: 640px; padding-bottom: 40px }
.hero-eyebrow { margin: 0; text-wrap: balance; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600 }
.mod { display: grid; gap: 10px }
.item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 14px; padding: 14px 16px; min-height: 76px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none }
.item .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent) }
.item .ico svg { width: 24px; height: 24px }
.item-t { min-width: 0 }
.item strong { display: block; font-family: var(--font-d); font-size: 17px }
.item .sub { display: block; color: var(--muted); font-size: 13.5px }
.item .go { color: var(--muted); font-size: 22px }
.item.link:hover { border-color: var(--accent) }
.item.off .ico { background: var(--off); color: var(--off-ink) }
.pair { display: flex; gap: 8px }
.pill { display: inline-grid; place-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent);
  font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap }
.pill:hover { background: var(--accent-soft) }
.pill.solid { background: var(--accent); color: var(--accent-ink) }
.pill.off { opacity: .6; border-style: dashed; cursor: default; font-size: 13.5px }
.pill.off:hover { background: none }
.pill.solid:hover { background: var(--accent-strong); border-color: var(--accent-strong) }
@media (max-width: 560px) {
  .item .pair { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr }
  .item .tag { grid-column: 2; justify-self: start }
}

/* ---------- abertura: OBR 20 anos ---------- */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: #7A1C1C; color: #FFFFFF; cursor: pointer;
  animation: intro-sai .55s ease-in 2.9s forwards }
.intro.fora { animation: intro-sai .3s ease-in forwards }
html.sem-intro .intro { display: none }
.intro-in { display: grid; justify-items: center; align-items: center; gap: 14px; text-align: center }
.intro-marca { display: grid; justify-items: center; gap: 10px }
.intro-mascote { height: min(34vh, 280px); width: auto; transform-origin: 50% 100%; filter: drop-shadow(0 10px 18px rgba(0,0,0,.3));
  animation: intro-salta .8s cubic-bezier(.3, 1.4, .5, 1) both, intro-acena 1.2s ease-in-out .9s both }
@media (min-width: 700px) and (min-height: 480px) {
  .intro-in { grid-template-columns: auto auto; gap: 40px; text-align: left }
  .intro-mascote { height: min(56vh, 380px) }
}
.intro-logo { width: min(300px, 72vw); height: auto; animation: intro-logo .8s cubic-bezier(.2, .8, .2, 1) .3s both }
.intro-anos { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-d); font-weight: 700; line-height: 1 }
.intro-num { font-size: clamp(56px, 16vw, 104px); letter-spacing: -.02em; animation: intro-pop .6s cubic-bezier(.3, 1.5, .5, 1) .95s both }
.intro-txt { font-size: clamp(24px, 7vw, 40px); text-transform: uppercase; letter-spacing: .14em; animation: intro-desliza .5s ease-out 1.25s both }
.intro-sub { font-size: 13px; letter-spacing: .3em; opacity: .8; position: relative; padding-top: 12px; animation: intro-surge .5s ease-out 1.55s both }
.intro-sub::before { content: ""; position: absolute; top: 0; left: 50%; width: 120px; height: 2px; margin-left: -60px; background: currentColor; transform-origin: center;
  animation: intro-linha .6s ease-out 1.4s both }
@keyframes intro-salta { from { opacity: 0; transform: translateY(60px) scale(.7) } to { opacity: 1; transform: none } }
@keyframes intro-acena { 0%, 100% { transform: none } 30% { transform: rotate(-4deg) translateY(-6px) } 60% { transform: rotate(3deg) } }
@keyframes intro-logo { from { opacity: 0; transform: scale(.82); filter: blur(6px) } to { opacity: 1; transform: none; filter: none } }
@keyframes intro-pop { from { opacity: 0; transform: scale(.3) } to { opacity: 1; transform: none } }
@keyframes intro-desliza { from { opacity: 0; transform: translateX(-16px) } to { opacity: 1; transform: none } }
@keyframes intro-surge { from { opacity: 0 } to { opacity: .8 } }
@keyframes intro-linha { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes intro-sai { to { opacity: 0; transform: scale(1.04); visibility: hidden; pointer-events: none } }
@media (prefers-reduced-motion: reduce) {
  .intro { animation: intro-sai .3s linear 1.2s forwards }
  .intro-mascote, .intro-logo, .intro-num, .intro-txt, .intro-sub, .intro-sub::before { animation: none }
}

/* ---------- super teams ---------- */
.st-tema { display: grid; gap: 10px; padding: 20px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink) }
.st-tema h2 { font-size: clamp(19px, 4.8vw, 25px); line-height: 1.25 }
.st-tema p { margin: 0; font-size: 14px; opacity: .9 }
.st-ods { justify-self: start; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.16) }
.st-form h2 { font-size: 20px; margin-bottom: 4px }
.st-enviar { align-self: end }
.st-ok, .st-fechado { padding: 12px 14px; border-radius: 10px; font-size: 14px }
.st-ok { background: var(--free); color: var(--free-ink); border: 1px solid var(--free-line) }
.st-fechado { background: var(--off); color: var(--ink) }
.st-info { display: grid; gap: 10px }
.st-info p { margin: 0 }
.st-passos { margin: 0; padding: 0; list-style: none; counter-reset: passo; display: grid; gap: 10px }
.st-passos li { counter-increment: passo; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line) }
.st-passos li::before { content: counter(passo); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--font-d); font-weight: 700 }
.st-passos strong { font-family: var(--font-d) }
.st-passos span { color: var(--muted); font-size: 14px }
.st-resultado { display: grid; gap: 10px }
.st-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px }
.st-nivel { grid-column: 1 / -1; font-size: 15px; margin-top: 4px }
.st-time { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 8px }
.st-time header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline }
.st-time header strong { font-family: var(--font-d); color: var(--accent) }
.st-time header span, .st-time li span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums }
.st-dia { margin: 0; font-size: 13px; font-weight: 600; color: var(--accent-strong); background: var(--accent-soft); border-radius: 8px; padding: 6px 10px }
.st-time ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px }
.st-time li { display: flex; justify-content: space-between; gap: 8px }
.st-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.st-tabela-wrap { overflow-x: auto }
.st-tabela { width: 100%; border-collapse: collapse; font-size: 13.5px }
.st-tabela th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line) }
.st-tabela td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle }
.st-x { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--bad); background: none; border: 1px solid var(--bad-line); border-radius: 8px; padding: 6px 10px; cursor: pointer }
.item.destaque { border-color: var(--accent); background: var(--accent-soft) }

/* ---------- perguntas frequentes ---------- */
.faq { display: grid; gap: 10px }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius) }
.faq details[open] { border-color: var(--accent) }
.faq summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; min-height: 56px; font-family: var(--font-d); font-weight: 700; font-size: 16px }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; font-size: 22px; color: var(--muted); line-height: 1 }
.faq details[open] summary::after { content: "–" }
.faq .resp { padding: 0 16px 14px; display: grid; gap: 8px; font-size: 14.5px }
.faq .resp p { margin: 0 }
.faq .hoje { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: var(--note); color: var(--note-ink) }

/* ---------- sugestões ---------- */
.panel textarea { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); resize: vertical; min-height: 84px }
.sg-equipe { gap: 8px }
.sg-h { font-size: 19px }
.sg-form { display: grid; gap: 12px }
.sg-form .btn { justify-self: start; min-width: 140px }
.sg-cat { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.sg-cat button { font: inherit; font-weight: 600; min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer }
.sg-cat button[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong) }
.sg-cont { float: right; text-transform: none; letter-spacing: 0; font-weight: 500; font-variant-numeric: tabular-nums }
.sg-cont.over { color: var(--bad); font-weight: 700 }
.sg-lista { display: grid; gap: 10px }
.sg-vazio { text-align: center; padding: 24px 0 }
.sg-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line) }
.sg-card.oculta { opacity: .5; border-style: dashed }
.sg-voto { align-self: start; display: grid; justify-items: center; gap: 0; padding: 8px 4px; min-height: 64px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; cursor: pointer }
.sg-voto span { font-size: 12px; color: var(--muted); line-height: 1 }
.sg-voto b { font-family: var(--font-d); font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums }
.sg-voto small { font-size: 11px; color: var(--muted) }
.sg-voto.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) }
.sg-voto.on span, .sg-voto.on small { color: inherit; opacity: .85 }
.sg-voto.propria { cursor: default; border-style: dashed }
.sg-voto[data-sem] { opacity: .55 }
.sg-corpo { min-width: 0; display: grid; gap: 4px }
.sg-corpo h3 { font-size: 17px; overflow-wrap: anywhere }
.sg-corpo p { margin: 0; font-size: 14.5px; overflow-wrap: anywhere }
.sg-meta { display: flex; flex-wrap: wrap; gap: 6px }
.sg-tag, .sg-top { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px }
.sg-tag.sugestao { background: var(--note); color: var(--note-ink) }
.sg-tag.elogio { background: var(--free); color: var(--free-ink) }
.sg-top { background: var(--accent-soft); color: var(--accent-strong) }
.sg-autor { font-size: 12.5px; color: var(--muted) }
.sg-adm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px }
.sg-escolhida { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--accent); background: var(--accent-soft) }
.sg-escolhida strong { display: block; font-family: var(--font-d); font-size: 16px }
.sg-escolhida .sub { display: block; font-size: 12.5px; color: var(--muted) }
.sg-equipe .suggest { z-index: 5; max-height: min(50dvh, 360px); overflow-y: auto }
.suggest .sg-grupo { cursor: default; display: block; padding: 8px 12px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: none }
.suggest .sg-nada { cursor: default; display: block; color: var(--muted); background: none }
.sg-impl { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--free-ink); color: #FFFFFF }
@media (prefers-color-scheme: dark) { .sg-impl { color: #0D2414 } }
.sg-card.feita { border-color: var(--free-line); box-shadow: inset 4px 0 0 var(--free-ink) }
.sg-feitas { border: 1px solid var(--free-line); border-radius: var(--radius); background: var(--surface) }
.sg-feitas > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 600 }
.sg-feitas > summary::-webkit-details-marker { display: none }
.sg-feitas-cta::after { content: "Ver todas ›"; font-size: 13px; color: var(--free-ink); white-space: nowrap }
.sg-feitas[open] .sg-feitas-cta::after { content: "Recolher ‹" }
.sg-feitas-lista { display: grid; gap: 10px; padding: 0 10px 10px }
.chip-btn.impl { background: var(--free); color: var(--free-ink); border-color: var(--free-line) }

/* ---------- destaque das sugestões ---------- */
.sg-destaque { display: grid; gap: 12px; padding: 16px 18px; border-radius: var(--radius); text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, var(--note), var(--accent-soft)); border: 1.5px solid var(--accent) }
.sg-destaque:hover { box-shadow: 0 8px 20px rgba(122, 28, 28, .15) }
.sg-d-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center }
.sg-d-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink) }
.sg-d-ico svg { width: 26px; height: 26px }
.sg-d-t strong { display: block; font-family: var(--font-d); font-size: 18px }
.sg-d-t .sub { display: block; color: var(--muted); font-size: 13.5px }
.sg-d-cta { font-weight: 700; font-size: 14px; color: var(--accent-ink); background: var(--accent); padding: 8px 12px; border-radius: 999px; white-space: nowrap }
.sg-d-lista { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px }
.sg-d-lista li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface); font-size: 14px; min-width: 0 }
.sg-d-v { flex: none; font-family: var(--font-d); font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; min-width: 40px }
.sg-d-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 }
@media (max-width: 420px) { .sg-d-top { grid-template-columns: auto minmax(0, 1fr) } .sg-d-cta { grid-column: 1 / -1; text-align: center } }
.sg-hero { display: grid; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink) }
.sg-hero h2 { font-size: clamp(20px, 5vw, 26px) }
.sg-hero p { margin: 0; font-size: 14.5px; opacity: .95 }
.sg-hero-acts { display: flex; flex-wrap: wrap; gap: 8px }
.sg-hero-acts .btn { flex: 1 1 160px; text-align: center; text-decoration: none; display: grid; place-items: center }
#votar, #nova { scroll-margin-top: 16px }

/* ---------- convite para sugerir (menu) ---------- */
.convite { position: fixed; z-index: 7; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(440px, calc(100% - 32px));
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 16px 16px 14px; border-radius: 16px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(20, 5, 6, .22);
  transform: translate(-50%, 24px); opacity: 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .3s }
.convite.on { transform: translate(-50%, 0); opacity: 1 }
.convite-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--note); font-size: 20px }
.convite-corpo { display: grid; gap: 6px; padding-right: 18px }
.convite-corpo strong { font-family: var(--font-d); font-size: 16px }
.convite-corpo p { margin: 0; font-size: 13.5px; color: var(--muted) }
.convite-top { background: var(--accent-soft); color: var(--accent-strong) !important; padding: 6px 10px; border-radius: 8px }
.convite-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px }
.convite-acts .btn { min-height: 40px; padding: 8px 14px; text-decoration: none; display: inline-grid; place-items: center }
.convite-x { position: absolute; top: 6px; right: 8px; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 8px }
.convite-x:hover { background: var(--off) }
.st-conv { border-color: var(--accent) }
.st-conv-ico { background: var(--accent-soft); color: var(--accent) }
.st-conv-ico svg { width: 22px; height: 22px }
.st-conv-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent) }
.st-conv-timer { justify-self: start; background: var(--accent-soft); color: var(--accent-strong) !important; padding: 6px 10px; border-radius: 8px }
.st-topo { margin-bottom: 0 }
.st-topo .st-conv-tag { display: block }
.st-topo-t { white-space: nowrap }
.st-conv-timer b, .st-prazo b, .st-topo-t { font-variant-numeric: tabular-nums }
.st-prazo { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--accent-strong) }
@media (prefers-reduced-motion: reduce) { .convite { transition: none } }

/* ---------- ajustes de celular (sugestões, menu e convite) ---------- */
.sg-tag, .sg-top, .sg-impl { white-space: nowrap }
.sg-meta { align-items: center }
.sg-escolhida > span { min-width: 0; overflow-wrap: anywhere }
.sg-escolhida .chip-btn { flex: none }
.sg-autor { overflow-wrap: anywhere }
.sg-d-n, .convite-top .ct { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden }
.sg-d-n { line-height: 1.3 }
.sg-d-lista .sg-impl { flex: none }
.suggest li span:last-child { min-width: 0; overflow-wrap: anywhere }
@media (max-width: 420px) {
  .topbar { gap: 10px }
  .topbar .logo { height: 28px }
  .topbar .eyebrow { font-size: 10.5px; letter-spacing: .06em }
  .sg-card { grid-template-columns: 50px minmax(0, 1fr); gap: 10px; padding: 12px }
  .sg-voto { min-height: 58px; padding: 6px 2px }
  .sg-voto b { font-size: 18px }
  .sg-corpo h3 { font-size: 16px }
  .sg-corpo p { font-size: 14px }
  .sg-hero { padding: 16px }
  .sg-hero-acts .btn { flex-basis: 100% }
  .suggest li { grid-template-columns: 38px minmax(0, 1fr); gap: 8px; padding: 9px 10px }
  .sg-d-top { gap: 12px }
  .sg-d-ico { width: 42px; height: 42px }
  .sg-destaque { padding: 14px }
  .convite { padding: 14px 12px 12px; gap: 10px }
  .convite-acts .btn { flex: 1 1 auto }
}

/* ---------- cartão "Sua equipe" (menu) ---------- */
.minha { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); padding: 16px }
.minha strong { font-family: var(--font-d) }
.minha .sub { display: block; color: var(--muted); font-size: 13.5px }
.minha-esc { display: grid; gap: 8px }
.minha-esc > strong { font-size: 18px }
.minha select { width: 100%; min-height: 48px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink) }
.minha-ok { display: grid; gap: 12px }
.minha-head { display: flex; align-items: flex-start; gap: 12px }
.minha-nome { min-width: 0; flex: 1 }
.minha-nome strong { display: block; font-size: 19px; line-height: 1.2; overflow-wrap: anywhere }
.minha-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.minha-lista li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg) }
.minha-lista li.mi-load { display: block; color: var(--muted); font-size: 13.5px }
.mi-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent) }
.mi-ico svg { width: 20px; height: 20px }
.mi-t { min-width: 0 }
.mi-t strong { display: block; font-size: 15px; line-height: 1.25 }
.mi-t span { display: block; color: var(--muted); font-size: 12.5px }
.minha-lista .pill { min-height: 38px; padding: 0 14px; font-size: 13.5px; white-space: nowrap }

/* ---------- grade: horários encerrados recolhidos ---------- */
.row.fold { display: flex; width: 100%; align-items: center; gap: 10px; padding: 12px 10px; background: var(--off); color: var(--off-ink);
  border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; font-size: 13px }
.row.fold:hover { color: var(--ink) }
.fold-t { font-weight: 600; font-variant-numeric: tabular-nums; width: 86px; flex: none }
.fold-n { flex: 1; min-width: 0 }
.fold-a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px }

/* ---------- agenda da equipe (cartão do menu) ---------- */
.agenda { border-radius: 12px; background: var(--bg); padding: 12px 12px 6px }
.agenda-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px }
.agenda-h strong { font-size: 15px }
.agenda-h a { font-size: 12.5px; font-weight: 600 }
.agenda ol { list-style: none; margin: 0; padding: 0 }
.agenda li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px }
.agenda li:first-child { border-top: 0 }
.ag-q { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; line-height: 1.3 }
.ag-n { min-width: 0 }
.ag-n b { font-weight: 600 }
.agenda li.feito { opacity: .5 }
.agenda li.feito .ag-n b { text-decoration: line-through; text-decoration-thickness: 1px }
.agenda li.destaque .ag-n b { color: var(--accent) }
.ag-st { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px }
.ag-st.on { background: var(--accent); color: var(--accent-ink) }

/* ---------- menu: itens com submenu Nível 1 / Nível 2 ---------- */
details.item { display: block; padding: 0; min-height: 0 }
details.item > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 14px; padding: 14px 16px; min-height: 76px; list-style: none; cursor: pointer }
details.item > summary::-webkit-details-marker { display: none }
details.item:hover, details.item[open] { border-color: var(--accent) }
details.item .go { transition: transform .15s }
details.item[open] .go { transform: rotate(90deg) }
details.item > .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 16px }

/* ---------- cancelar treino ---------- */
button.seat.own { gap: 2px; align-content: center }
button.seat.own:hover { filter: brightness(1.08) }
.seat .seat-act { font-size: 11px; font-weight: 600; opacity: .85; text-decoration: underline; text-underline-offset: 2px }
.mine .mine-hint { display: block; margin-top: 4px; font-size: 13px; opacity: .8 }
.audit li.alerta { color: var(--bad) }

/* nota da organização na sugestão */
.sg-resp { margin-top: 2px; padding: 8px 10px; border-radius: 8px; background: var(--free); border-left: 3px solid var(--free-ink); font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere }
.sg-resp strong { display: block; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--free-ink); margin-bottom: 2px }

/* ---------- votar mais claro (botão 👍 Votar no pé do card) ---------- */
.sg-card { grid-template-columns: minmax(0, 1fr); gap: 10px }
.sg-pe { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line) }
.sg-conta { font-size: 14px; color: var(--muted); white-space: nowrap }
.sg-conta b { font-family: var(--font-d); font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums }
.sg-votar { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 132px; padding: 8px 18px; border-radius: 999px;
  border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0,0,0,.12) }
.sg-votar:hover { filter: brightness(1.07) }
.sg-votar:active { transform: translateY(1px); box-shadow: none }
.sg-votar span { font-size: 18px; line-height: 1 }
.sg-votar.on { background: var(--free); border-color: var(--free-ink); color: var(--free-ink); box-shadow: none }
.sg-votar.on small { font-size: 12px; font-weight: 500; opacity: .8; margin-left: 2px; text-decoration: underline; text-underline-offset: 2px }
.sg-votar[data-sem] { background: var(--bg); border-color: var(--line); color: var(--muted); box-shadow: none }
.sg-votar.propria { background: none; border: 1.5px dashed var(--line); color: var(--muted); font-size: 13px; font-weight: 600; min-width: 0; box-shadow: none; cursor: default }
@media (prefers-reduced-motion: no-preference) {
  .sg-votar.pop { animation: sg-pop .45s ease-out }
  @keyframes sg-pop { 0% { transform: scale(1) } 35% { transform: scale(1.12) } 100% { transform: scale(1) } }
}

.sg-como { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
.sg-como li { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.35 }
.sg-como b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 12.5px }
.sg-como-btn { white-space: nowrap; color: var(--accent) }
@media (max-width: 640px) { .sg-como { grid-template-columns: minmax(0, 1fr) } .sg-como li { padding: 8px 10px } }

#sgVotos { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: var(--ink) }
.sg-pips { display: inline-flex; gap: 2px; font-size: 20px; line-height: 1 }
.sg-pips .usado { filter: grayscale(1); opacity: .3 }
.sg-d-v { min-width: 48px }
@media (max-width: 420px) {
  .sg-card { padding: 12px }
  .sg-votar { min-width: 0; flex: 1 1 auto; padding: 8px 14px }
}

/* Super Teams do Resgate */
.st-nota { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius); background: var(--free); color: var(--free-ink); border: 1px solid var(--free-line); font-size: 14px }
.st-nota span { color: var(--ink) }

/* busca de equipe no topo do menu */
.minha .search input { background: var(--bg) }
.minha .suggest { z-index: 20 }
.minha-voltar { justify-self: start; font-size: 13.5px }

/* ---------- páginas dentro da tela única da coordenação (?coordenacao&embed) ---------- */
html.embed body { background: var(--bg) }
html.embed .wrap { padding-top: 12px }
html.embed .topbar, html.embed .foot,
html.embed .st-tema, html.embed #inscricao, html.embed .st-info, html.embed #stResultado,
html.embed .sg-hero, html.embed .sg-equipe, html.embed #votar, html.embed .sg-como, html.embed .sg-ordem, html.embed #nova,
html.embed #avisoRegra, html.embed #linkSugestoes, html.embed #teambar,
html.embed #login, html.embed #area { display: none !important }
html.embed #adminSair, html.embed #agendaSair { display: none }

/* ---------- tela única da coordenação ---------- */
.co-login { display: grid; gap: 12px }
.co-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap }
.co-sec { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden }
.co-sec + .co-sec { margin-top: 10px }
.co-sec > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px }
.co-sec > summary::-webkit-details-marker { display: none }
.co-sec > summary .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent) }
.co-sec > summary .ico svg { width: 22px; height: 22px }
.co-sec > summary strong { font-family: var(--font-d); font-size: 16.5px; display: block }
.co-sec > summary .sub { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere }
.co-sec > summary .seta { color: var(--muted); font-size: 22px; transition: transform .2s }
.co-sec[open] > summary .seta { transform: rotate(90deg) }
.co-sec[open] > summary { border-bottom: 1px solid var(--line) }
.co-corpo { display: grid; gap: 10px; padding: 12px }
.co-corpo .co-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.co-frame { width: 100%; height: min(82dvh, 980px); border: 1px solid var(--line); border-radius: 12px; background: var(--bg) }
.co-grupo { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 18px 2px 8px }
.co-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none }
.co-links li { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 14px }
.co-links code { font-size: 12.5px; overflow-wrap: anywhere }

/* ---------- destaque do ranking (menu) ---------- */
.rk-topo:hover { box-shadow: none }
.rk-topo .sg-d-top { grid-template-columns: auto minmax(0, 1fr) }
.rk-topo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.tag-at { display: inline-block; vertical-align: 2px; margin-left: 6px; font-family: var(--font-b, inherit); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: #1f7a3a; color: #fff }

/* Cena do Super Teams na tela inicial (alterna Resgate e Artística) */
.stc { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); margin-bottom: 14px; cursor: pointer; -webkit-tap-highlight-color: transparent }
.stc-cena { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1 }
.stc[data-modo="res"] .sc-art, .stc[data-modo="art"] .sc-res { display: none }
.stc-txt { padding: 10px 14px 12px; display: grid; gap: 2px; border-top: 1px solid var(--line) }
.stc-tag { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent) }
.stc-dots { display: inline-flex; gap: 5px }
.stc-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .3s, width .3s }
.stc[data-modo="res"] .stc-dots [data-m="res"], .stc[data-modo="art"] .stc-dots [data-m="art"] { background: var(--accent); width: 16px; border-radius: 4px }
.stc-tit { font-family: var(--font-d); font-size: 18px; line-height: 1.2 }
.stc-frase { margin: 0; font-size: 13.5px; color: var(--muted); min-height: 1.45em; transition: opacity .3s, transform .3s }
.stc-frase.troca { opacity: 0; transform: translateY(4px) }
.stc svg * { transform-box: fill-box }
/* Resgate: a linha se desenha, A e B chegam de lados opostos, o elo aparece */
.stc.rodando .r-linha { stroke-dasharray: 420; animation: st-traca 1.4s ease-out both }
.stc.rodando .r-a { animation: st-esq 1.1s cubic-bezier(.25, 1.2, .45, 1) .5s both, st-quica 1.1s ease-in-out 2.4s infinite }
.stc.rodando .r-b { animation: st-dir 1.1s cubic-bezier(.25, 1.2, .45, 1) .7s both, st-quica 1.1s ease-in-out 2.95s infinite }
.stc.rodando .r-selo { animation: st-pop .45s cubic-bezier(.3, 1.6, .5, 1) 1.7s both }
.stc.rodando .r-elo { animation: st-surge .5s ease-out 2s both, st-flui 1s linear 2s infinite }
.stc.rodando .r-vitima { animation: st-pop .5s cubic-bezier(.3, 1.6, .5, 1) 2.2s both, st-brilha 1.6s ease-in-out 2.7s infinite }
/* Artística: as luzes varrem o palco, três equipes entram e dançam juntas */
.a-luz1 { transform-origin: 50% 0; animation: st-varre 4s ease-in-out infinite }
.a-luz2 { transform-origin: 50% 0; animation: st-varre 4s ease-in-out -2s infinite }
.stc.rodando .a-r1 { animation: st-esq 1s cubic-bezier(.25, 1.2, .45, 1) .2s both }
.stc.rodando .a-r2 { animation: st-desce 1s cubic-bezier(.25, 1.3, .45, 1) .5s both }
.stc.rodando .a-r3 { animation: st-dir 1s cubic-bezier(.25, 1.2, .45, 1) .8s both }
.stc.rodando .a-danca { animation: st-danca .9s ease-in-out 1.9s infinite }
.stc.rodando .a-r2 .a-danca { animation-delay: 2.2s }
.stc.rodando .a-r3 .a-danca { animation-delay: 2.5s }
.stc.rodando .a-ods-in { animation: st-pop .55s cubic-bezier(.3, 1.6, .5, 1) 1.6s both }
.a-nota { opacity: 0 }
.stc.rodando .a-nota { animation: st-nota 2.4s ease-in 2s infinite }
.stc.rodando .a-n2 { animation-delay: 2.8s } .stc.rodando .a-n3 { animation-delay: 3.6s }
@keyframes st-traca { from { stroke-dashoffset: 420 } to { stroke-dashoffset: 0 } }
@keyframes st-esq { from { transform: translateX(-190px) } to { transform: none } }
@keyframes st-dir { from { transform: translateX(190px) } to { transform: none } }
@keyframes st-desce { from { transform: translateY(-150px) } to { transform: none } }
@keyframes st-quica { 50% { transform: translateY(-3px) } }
@keyframes st-pop { from { opacity: 0; transform: scale(.2) } to { opacity: 1; transform: none } }
@keyframes st-surge { from { opacity: 0 } to { opacity: 1 } }
@keyframes st-flui { to { stroke-dashoffset: -12 } }
@keyframes st-brilha { 50% { transform: scale(1.18) } }
@keyframes st-varre { 0%, 100% { transform: rotate(-9deg) } 50% { transform: rotate(9deg) } }
@keyframes st-danca { 0%, 100% { transform: none } 25% { transform: translateY(-7px) rotate(-7deg) } 75% { transform: translateY(-7px) rotate(7deg) } }
@keyframes st-nota { 0% { opacity: 0; transform: translateY(0) } 20% { opacity: 1 } 100% { opacity: 0; transform: translateY(-34px) } }
@media (prefers-reduced-motion: reduce) { .stc svg *, .stc-frase { animation: none !important; transition: none } .a-nota { opacity: 1 } }

/* Cronograma das apresentações do Super Teams */
.st-crono-l { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px }
.st-crono-l li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px }
.st-crono-l b { font-family: var(--font-d); font-size: 17px; color: var(--accent); font-variant-numeric: tabular-nums }
.st-crono-l span { display: grid; gap: 2px; min-width: 0 }
.st-crono-l small { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere }
.st-crono-l em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); justify-self: start }
.st-crono-l li.minha { border-color: var(--accent); background: var(--accent-soft) }

/* Pegadinha "Resultados e classificados": robô pedindo calma */
.ans-card { margin-bottom: 0 }
.ans-in { text-align: center; justify-items: center }
.ans-cena { width: 100%; max-width: 320px; height: auto; overflow: visible }
.ans-balao { position: relative; background: var(--accent-soft); border-radius: 16px; padding: 12px 16px; max-width: 360px; width: 100% }
.ans-balao::before { content: ""; position: absolute; top: -9px; left: 30%; border: 10px solid transparent; border-top: 0; border-bottom-color: var(--accent-soft) }
.ans-balao strong { display: block; font-family: var(--font-d); font-size: 20px; color: var(--accent) }
.ans-balao p { margin: 4px 0 0; min-height: 2.9em; font-size: 15px }
.ans-resp { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px }
.ans-resp i { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); opacity: .5; animation: ans-resp 4s ease-in-out infinite }
.ans-modal.ativo .ans-robo { animation: ans-chega .9s cubic-bezier(.2,.8,.3,1.2) both, ans-pula 1.6s ease-in-out .9s infinite }
.ans-modal.ativo .ans-tremor { animation: ans-tremor .12s linear .9s 6 }
.ans-modal.ativo .ans-balao { animation: ans-pop .4s cubic-bezier(.2,.8,.3,1.4) .8s both }
.ans-modal.ativo .ans-cad { animation: ans-pisca 1.2s ease-in-out infinite }
.ans-modal.ativo .ans-trofeu { animation: ans-foge 2.4s ease-in-out 1.2s infinite }
@keyframes ans-chega { from { transform: translateX(-120px) } to { transform: none } }
@keyframes ans-pula { 0%, 100% { transform: none } 50% { transform: translateY(-6px) } }
@keyframes ans-tremor { 0%, 100% { transform: none } 25% { transform: translateX(-2px) rotate(-3deg) } 75% { transform: translateX(2px) rotate(3deg) } }
@keyframes ans-pop { from { opacity: 0; transform: scale(.7) } to { opacity: 1; transform: none } }
@keyframes ans-pisca { 50% { opacity: .2 } }
@keyframes ans-foge { 0%, 100% { transform: translate(190px, 100px) scale(1.5) } 50% { transform: translate(202px, 100px) scale(1.5) } }
@keyframes ans-resp { 0%, 100% { transform: scale(.7) } 50% { transform: scale(1.5) } }
@media (prefers-reduced-motion: reduce) { .ans-modal.ativo * , .ans-resp i { animation: none !important } }
