/* Central de Mídia · TOP 1799 — design system v2 */
:root {
  color-scheme: dark;
  --bg: #07070a;
  --bg-2: #0d0c11;
  --panel: rgba(24, 21, 26, .72);
  --panel-solid: #131217;
  --panel-hover: rgba(36, 31, 38, .85);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 138, 61, .38);
  --ink: #f6f2ec;
  --muted: #a59d95;
  --faint: #6f6861;
  --accent: #ff7a1a;
  --accent-2: #ffb547;
  --accent-soft: rgba(255, 122, 26, .14);
  --live: #38c6ff;
  --live-soft: rgba(56, 198, 255, .14);
  --ok: #5fd39a;
  --ok-soft: rgba(95, 211, 154, .14);
  --warn: #ffc046;
  --warn-soft: rgba(255, 192, 70, .14);
  --danger: #ff5d5d;
  --danger-soft: rgba(255, 93, 93, .14);
  --violet: #b48cff;
  --violet-soft: rgba(180, 140, 255, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px var(--line-strong), 0 10px 40px -10px rgba(255, 122, 26, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-w: 232px;
  --top-h: 64px;
  font-family: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top-h) + 16px); }
body { margin: 0; min-height: 100dvh; overflow-x: hidden; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1 { font-family: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif; font-size: clamp(1.75rem, 4.2vw, 2.6rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 750; }
h2 { font-size: 1.12rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
h3 { font-size: 1rem; line-height: 1.32; font-weight: 650; overflow-wrap: anywhere; }
a { color: var(--accent-2); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: progress; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
kbd { font: 600 .7rem/1 ui-monospace, "Cascadia Code", Consolas, monospace; padding: .22rem .38rem; border-radius: 6px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted); }
.icon { flex: 0 0 auto; }
.icon.accent { color: var(--accent); }
.icon.danger { color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; padding: .6rem .9rem; border-radius: 10px; background: var(--accent); color: #140802; font-weight: 700; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .85rem; letter-spacing: -.01em; }
.grow { flex: 1 1 auto; min-width: 0; }
.row { display: flex; align-items: center; gap: .5rem; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
[hidden] { display: none !important; }

/* Fundo futurista */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(255, 122, 26, .16), transparent 60%),
    radial-gradient(40rem 30rem at -10% 110%, rgba(56, 198, 255, .08), transparent 60%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg);
  mask-image: linear-gradient(#000 0 70%, rgba(0,0,0,.6));
}

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  height: var(--top-h); padding: 0 clamp(.75rem, 2.5vw, 1.5rem); padding-top: env(safe-area-inset-top);
  background: rgba(7, 7, 10, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .65rem; min-width: 0; color: inherit; text-decoration: none; }
.brand-badge { border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,122,26,.35), 0 0 22px rgba(255,122,26,.35); }
.brand > span { display: grid; min-width: 0; }
.brand-title { font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.brand-caption { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-caption strong { color: var(--accent); }
.topbar-tools { display: flex; align-items: center; gap: .5rem; }
.search-trigger { display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 .6rem 0 .75rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); transition: border-color .2s, background .2s; }
.search-trigger:hover { border-color: var(--line-strong); background: rgba(255,255,255,.06); color: var(--ink); }
.profile-select select { height: 40px; padding: 0 2rem 0 .75rem; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffb547' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7rem center; color: var(--accent-2); font-weight: 650; appearance: none; }
.profile-select option { background: var(--panel-solid); color: var(--ink); }
.connection { display: inline-flex; align-items: center; gap: .4rem; height: 28px; padding: 0 .6rem; border-radius: 99px; font-size: .74rem; font-weight: 600; color: var(--ok); background: var(--ok-soft); }
.connection::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.connection[data-offline="true"] { color: var(--warn); background: var(--warn-soft); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); }
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }

/* Estrutura */
.shell { display: block; }
main { min-width: 0; padding: 1rem clamp(.85rem, 3vw, 2rem) calc(96px + env(safe-area-inset-bottom)); max-width: 1280px; margin: 0 auto; }
main:focus { outline: none; }
.nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; gap: 2px;
  padding: .35rem .35rem calc(.35rem + env(safe-area-inset-bottom));
  background: rgba(10, 9, 13, .86); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-top: 1px solid var(--line); }
.nav a { flex: 1 1 0; display: grid; justify-items: center; gap: 2px; min-width: 0; padding: .4rem .1rem; border-radius: 12px; color: var(--faint); font-size: .64rem; font-weight: 650; text-decoration: none; transition: color .2s, background .2s; }
.nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent-2); background: var(--accent-soft); }
.nav a[aria-current="page"] .icon { filter: drop-shadow(0 0 8px rgba(255,122,26,.7)); }

.mode-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; margin-bottom: 1rem; }
.mode-bar .link-arrow { margin-left: auto; }

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); }
  .nav { position: sticky; top: var(--top-h); bottom: auto; height: calc(100dvh - var(--top-h)); flex-direction: column; justify-content: flex-start; gap: .25rem;
    padding: 1.25rem .85rem; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 0; border-right: 1px solid var(--line); }
  .nav a { flex: 0 0 auto; display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; font-size: .92rem; color: var(--muted); }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  main { padding: 1.5rem clamp(1.25rem, 3vw, 2.5rem) 3rem; margin: 0; }
}
@media (max-width: 720px) {
  .search-trigger span, .search-trigger kbd, .connection { display: none; }
  .search-trigger { width: 40px; padding: 0; justify-content: center; }
  .brand-caption { display: none; }
}
@media (max-width: 380px) { .brand-title { font-size: .9rem; } }

/* Componentes base */
.panel, .card { position: relative; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 1rem 1.1rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.panel > * + *, .card .grow > * + * { margin-top: .5rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.card { display: flex; align-items: flex-start; gap: .85rem; transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s; }
.card:hover { border-color: rgba(255,255,255,.14); background: var(--panel-hover); }
.danger-edge { box-shadow: inset 3px 0 0 var(--danger); }
.warn-edge { box-shadow: inset 3px 0 0 var(--warn); }
.section { margin-top: 1.75rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.grid-3 { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: .25rem 0 1.25rem; }
.page-head p { color: var(--muted); margin-top: .4rem; max-width: 62ch; }
.page-head-aside { flex: 0 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.eyebrow.live { color: var(--live); }
.link-arrow { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent-2); font-weight: 650; font-size: .88rem; text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s var(--ease); }
.note { font-size: .85rem; color: var(--warn); }
.source { display: flex; align-items: center; gap: .35rem; margin: -.25rem 0 1rem; }
.empty { display: grid; justify-items: center; gap: .5rem; padding: 2.25rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty .icon { color: var(--faint); }
.skeleton { height: 220px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.07), rgba(255,255,255,.03)) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton.short { height: 120px; margin-top: 1rem; }

.chip { display: inline-flex; align-items: center; gap: .3rem; height: 24px; padding: 0 .55rem; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; background: rgba(255,255,255,.06); color: #d9d1c8; border: 1px solid transparent; }
.chip.accent { background: var(--accent-soft); color: var(--accent-2); }
.chip.live { background: var(--live-soft); color: var(--live); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.danger { background: var(--danger-soft); color: #ff8a8a; }
.chip.violet { background: var(--violet-soft); color: var(--violet); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .5rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink); font-weight: 650; font-size: .92rem; text-decoration: none; white-space: nowrap; transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); }
.btn:active { transform: scale(.97); }
.btn.primary { border-color: transparent; background: linear-gradient(135deg, var(--accent), #ff9c3a); color: #170a02; box-shadow: 0 6px 24px -8px rgba(255,122,26,.7); }
.btn.primary:hover { box-shadow: 0 8px 30px -6px rgba(255,122,26,.85); filter: brightness(1.06); }
.btn.glass { background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.btn.ghost { background: transparent; }
.btn.danger { color: #ff8a8a; border-color: rgba(255,93,93,.3); background: var(--danger-soft); }
.btn.danger[data-armed="true"] { background: var(--danger); color: #1a0505; }
.btn.small { min-height: 38px; padding: .35rem .8rem; font-size: .85rem; }
.btn.icon-only { width: 44px; padding: 0; }
.btn.toggle[aria-pressed="true"] { border-color: var(--line-strong); background: var(--accent-soft); color: var(--accent-2); }

.segmented, .tabs { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 13px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.segmented button, .tabs button { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: .3rem .85rem; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 650; font-size: .88rem; transition: background .2s, color .2s; }
.segmented button:hover, .tabs button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"], .tabs button[aria-pressed="true"] { background: linear-gradient(135deg, rgba(255,122,26,.25), rgba(255,181,71,.12)); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tabs button small { font-size: .7rem; color: var(--faint); font-weight: 700; }
.segmented.small button, .tabs.small button { min-height: 32px; padding: .2rem .6rem; font-size: .8rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1rem; }

.search-field { display: flex; align-items: center; gap: .5rem; flex: 1 1 220px; min-height: 44px; padding: 0 .85rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.35); color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.search-field:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 4px rgba(255,122,26,.12); }
.search-field input { flex: 1; min-width: 0; height: 42px; border: 0; background: transparent; outline: none; color: var(--ink); }

.form { display: grid; gap: .8rem; margin-top: 1rem; }
.form label, fieldset label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 650; color: var(--muted); }
.form-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
input:not([type="checkbox"]):not([type="search"]), select, textarea { width: 100%; min-height: 44px; padding: .55rem .75rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.4); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--line-strong); box-shadow: 0 0 0 4px rgba(255,122,26,.12); }
textarea { resize: vertical; min-height: 5rem; }
.form .btn { justify-self: start; }
.form-panel summary { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-weight: 700; color: var(--accent-2); list-style: none; }
.form-panel summary::-webkit-details-marker { display: none; }
.form-panel[open] summary { margin-bottom: .25rem; }
.info { border-style: dashed; }

.progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.progress span { display: block; height: 100%; width: var(--value); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px rgba(255,122,26,.6); transition: width .6s var(--ease); }
.ring { --size: 84px; display: grid; place-items: center; width: var(--size); height: var(--size); border-radius: 50%;
  background: radial-gradient(closest-side, var(--bg-2) 78%, transparent 80% 100%), conic-gradient(var(--accent) calc(var(--value) * 1%), rgba(255,255,255,.08) 0); box-shadow: 0 0 30px -8px rgba(255,122,26,.6); }
.ring strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.ring small { font-size: .7rem; color: var(--muted); }

/* Herói */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(200px, .9fr); align-items: center; gap: 1.25rem 2rem;
  padding: clamp(1.25rem, 4vw, 2.5rem); margin-bottom: 1.5rem; border-radius: 22px; border: 1px solid rgba(255,138,61,.28);
  background:
    radial-gradient(40rem 22rem at 90% 20%, rgba(255,122,26,.28), transparent 60%),
    radial-gradient(20rem 14rem at 10% 120%, rgba(56,198,255,.12), transparent 70%),
    repeating-linear-gradient(125deg, transparent 0 22px, rgba(255,150,85,.04) 22px 23px),
    linear-gradient(115deg, #100d0c, #170f0b 70%, #0c0a0a);
  box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.05) 50%, transparent 60%) -100% 0 / 200% 100% no-repeat; animation: sweep 7s ease-in-out infinite; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .35rem; color: #e3bfa3; font-size: .72rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.hero-number { margin-top: .4rem; font-family: "Arial Black", "Segoe UI Black", system-ui, sans-serif; font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 900; letter-spacing: -.07em; line-height: .95; white-space: nowrap; }
.hero-number strong { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 24px rgba(255,122,26,.45)); }
.hero-name { margin-top: .35rem; font-size: clamp(1.25rem, 2.8vw, 2.1rem); font-weight: 750; letter-spacing: -.025em; }
.hero-live { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .55rem .85rem; margin-top: 1.1rem; padding: .55rem .9rem; border-radius: 14px; border: 1px solid rgba(56,198,255,.25); background: rgba(7,10,14,.55); backdrop-filter: blur(8px); }
.hero-live strong { font-variant-numeric: tabular-nums; font-size: 1.02rem; letter-spacing: .01em; }
.hero-live small { color: var(--muted); font-size: .72rem; }
.hero-live .divider { width: 1px; height: 18px; background: var(--line); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.hero-logos { display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; gap: 1rem; }
.hero-logos img { width: 100%; max-width: 200px; height: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,.6)); }
.logo-media { clip-path: circle(49.5% at 49.4% 49.2%); animation: float 7s ease-in-out infinite; }
.logo-track { clip-path: polygon(48.2% 0%, 52.3% 0%, 53.5% 1%, 55.3% 4%, 99.7% 93%, 99.9% 96%, 98.4% 99%, 97.7% 100%, 2.8% 100%, 1.3% 98.5%, .4% 97%, .3% 94%, 2% 90%, 45.4% 4%, 47.1% 1%); animation: float 7s ease-in-out -3.5s infinite; }
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; }
  .hero-logos { grid-row: 1; max-width: 220px; justify-self: start; gap: .75rem; }
  .hero-logos img { max-width: 92px; }
}
.live-dot { position: relative; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 12px var(--live); }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--live); opacity: 0; animation: ping 1.8s var(--ease) infinite; }
.live-dot.small { width: 7px; height: 7px; }

/* Agora / Próxima */
.now-grid { display: grid; gap: .85rem; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 820px) { .now-grid { grid-template-columns: 1fr; } }
.now-card { border-color: rgba(56,198,255,.28); background: linear-gradient(160deg, rgba(56,198,255,.08), transparent 50%), var(--panel); }
.now-card h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); display: block; }
.now-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.now-list li { display: grid; gap: .45rem; }
.now-list li + li { padding-top: 1rem; border-top: 1px solid var(--line); }
.now-card .progress span { background: linear-gradient(90deg, var(--live), #8be3ff); box-shadow: 0 0 12px rgba(56,198,255,.6); }
.countdown { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, #fff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.small-countdown { font-size: 1.6rem; }
.map-link { display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; padding: .2rem .6rem .2rem .45rem; border-radius: 99px; background: var(--live-soft); color: var(--live); font-size: .8rem; font-weight: 650; text-decoration: none; }
.map-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-link:hover { background: rgba(56,198,255,.24); }
.mini-timeline { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .1rem; border-left: 1px solid var(--line); }
.mini-timeline li { display: flex; gap: .65rem; padding: .3rem 0 .3rem .8rem; position: relative; font-size: .88rem; }
.mini-timeline li::before { content: ""; position: absolute; left: -4px; top: .75rem; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.mini-timeline time { flex: 0 0 auto; font-variant-numeric: tabular-nums; color: var(--accent-2); font-weight: 650; min-width: 3.2rem; }

.stats { display: grid; gap: .65rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.stat { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .65rem; padding: .9rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.stat .icon { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.05); color: var(--muted); }
.stat strong { font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .8rem; color: var(--muted); }
.stat.ok .icon { color: var(--ok); background: var(--ok-soft); }
.stat.warn .icon { color: var(--warn); background: var(--warn-soft); }
.stat.danger .icon { color: var(--danger); background: var(--danger-soft); }

/* Tarefas */
.task .check { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.2); background: transparent; color: transparent; transition: all .25s var(--ease); }
.task .check:hover { border-color: var(--accent); color: rgba(255,122,26,.5); }
.task .check[aria-pressed="true"] { background: linear-gradient(135deg, var(--ok), #3fbf85); border-color: transparent; color: #04140b; box-shadow: 0 0 18px -4px var(--ok); animation: pop .35s var(--ease); }
.task.done h3 { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }

/* Equipes */
.team-badge { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: .2rem; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #170a02; font-size: .85rem; font-weight: 800; }
.team-badge.big { width: 34px; height: 34px; font-size: 1rem; }
.team-pulse h3 { display: flex; align-items: center; gap: .5rem; }
.team-pulse p { display: flex; align-items: center; gap: .35rem; }
.facts { display: grid; gap: .5rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.facts dt { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .85rem; }
.facts dd { font-weight: 650; text-align: right; }
.members { list-style: none; padding: 0; display: grid; gap: .4rem; }
.members li { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.members small { color: var(--muted); }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--live-soft); color: var(--live); font-size: .78rem; font-weight: 800; }

/* Linha do tempo */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.tl-item { display: grid; grid-template-columns: 4.2rem 18px minmax(0, 1fr); gap: .2rem .6rem; scroll-margin: 40vh; }
.tl-time { padding-top: .95rem; text-align: right; font-variant-numeric: tabular-nums; }
.tl-time time { display: block; font-weight: 750; color: var(--ink); }
.tl-time small { color: var(--faint); font-size: .75rem; }
.tl-dot { position: relative; }
.tl-dot::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-dot::after { content: ""; position: absolute; left: 4px; top: 1.25rem; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--faint); }
.tl-body { margin: .35rem 0; padding: .75rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); display: grid; gap: .3rem; transition: border-color .2s, background .2s; }
.tl-body:hover { border-color: rgba(255,255,255,.14); }
.tl-body .row:empty { display: none; }
.tl-item.passada .tl-body { opacity: .55; }
.tl-item.passada .tl-dot::after { background: var(--faint); }
.tl-item.agora .tl-dot::after { border-color: var(--live); background: var(--live); box-shadow: 0 0 14px var(--live); }
.tl-item.agora .tl-dot::before { background: linear-gradient(var(--line), var(--live), var(--line)); }
.tl-item.agora .tl-body { border-color: rgba(56,198,255,.45); background: linear-gradient(160deg, rgba(56,198,255,.1), transparent 60%), var(--panel); box-shadow: 0 0 30px -12px rgba(56,198,255,.6); }
.tl-item.agora .tl-time time { color: var(--live); }
.tl-item.agora .progress span { background: linear-gradient(90deg, var(--live), #8be3ff); }
.tl-item.highlight .tl-body { animation: flash 1.6s var(--ease) 2; border-color: var(--line-strong); }
.tl-body .map-link { justify-self: start; }

/* Mapa */
.map-layout { display: grid; gap: .85rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .map-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .map-side { position: sticky; top: calc(var(--top-h) + 1rem); max-height: calc(100dvh - var(--top-h) - 2rem); overflow: auto; } }
.map-stage { padding: 0; overflow: hidden; }
.pista-canvas { display: block; width: 100%; height: clamp(320px, 62vh, 640px); touch-action: none; cursor: grab;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,122,26,.06), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 32px 32px, #08080c; }
.pista-canvas:active { cursor: grabbing; }
.pista-canvas:focus-visible { outline-offset: -3px; }
.layer-chips { position: absolute; top: .75rem; left: .75rem; right: 4rem; z-index: 2; display: flex; flex-wrap: wrap; gap: .35rem; }
.layer-chips button { display: inline-flex; align-items: center; gap: .4rem; min-height: 34px; padding: 0 .7rem; border-radius: 99px; border: 1px solid var(--line); background: rgba(8,8,12,.78); backdrop-filter: blur(8px); color: var(--muted); font-size: .8rem; font-weight: 650; }
.layer-chips button[aria-pressed="true"] { color: var(--ink); border-color: var(--c); box-shadow: 0 0 16px -4px var(--c); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c, #fff); box-shadow: 0 0 8px var(--c, #fff); }
.map-controls { position: absolute; top: .75rem; right: .75rem; z-index: 2; display: grid; gap: .35rem; }
.map-controls button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8,8,12,.8); backdrop-filter: blur(8px); color: var(--ink); }
.map-controls button:hover { border-color: var(--line-strong); color: var(--accent-2); }
.map-hint { position: absolute; left: .75rem; bottom: .6rem; font-size: .72rem; color: var(--faint); pointer-events: none; }
.map-side { display: grid; gap: .85rem; align-content: start; }
.gps-card .geo-result { min-height: 1.2rem; }
.list-panel { padding: .75rem; }
.pista-group + .pista-group { margin-top: .75rem; }
.group-title { display: flex; align-items: center; gap: .45rem; padding: .25rem .35rem; font-size: .78rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.group-title small { margin-left: auto; color: var(--faint); }
.pista-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pista-items button { display: flex; align-items: center; gap: .55rem; width: 100%; min-height: 40px; padding: .35rem .55rem; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; font-size: .9rem; }
.pista-items button small { margin-left: auto; color: var(--faint); font-size: .72rem; }
.pista-items button:hover { background: rgba(255,255,255,.05); }
.pista-items button[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--line-strong); }
.type-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.type-dot.trajeto { height: 3px; width: 14px; border-radius: 2px; }
.type-dot.area { border-radius: 3px; background: color-mix(in srgb, var(--c) 40%, transparent); border: 1.5px solid var(--c); }

/* Comunicação */
.comm-layout { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .comm-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; } }
.notice > .icon { margin-top: .2rem; }
.chat { display: grid; gap: .75rem; }
.messages { list-style: none; margin: 0; padding: .25rem; display: flex; flex-direction: column; gap: .5rem; max-height: 52vh; min-height: 220px; overflow-y: auto; scroll-behavior: smooth; }
.bubble { align-self: flex-start; max-width: 85%; padding: .55rem .8rem; border-radius: 16px 16px 16px 4px; background: rgba(255,255,255,.06); overflow-wrap: anywhere; animation: rise .3s var(--ease); }
.bubble strong { display: block; font-size: .74rem; color: var(--accent-2); }
.bubble p { white-space: pre-wrap; }
.bubble.mine { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: linear-gradient(135deg, rgba(255,122,26,.3), rgba(255,181,71,.16)); }
.bubble.mine strong { color: #ffd9b8; }
.composer { display: flex; align-items: flex-end; gap: .5rem; }
.composer textarea { min-height: 44px; max-height: 160px; resize: none; }

/* Produção */
.pipeline { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.pipeline > * + * { margin-top: 0; }
.pipe-stage { display: flex; align-items: center; gap: .75rem; }
.pipe-stage > .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-2); }
.pipe-stage .grow { display: grid; gap: .4rem; }
.lot-controls { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: 0 .85rem; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); font-weight: 650; font-size: .85rem; transition: all .2s var(--ease); }
.pill:hover { color: var(--ink); border-color: rgba(255,255,255,.2); }
.pill[aria-pressed="true"] { color: #04140b; background: linear-gradient(135deg, var(--ok), #3fbf85); border-color: transparent; box-shadow: 0 0 16px -6px var(--ok); }

/* Busca rápida e ajustes */
dialog { color: var(--ink); padding: 0; border: 0; background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.palette { width: min(640px, calc(100vw - 1.5rem)); margin: 10vh auto auto; }
.palette-box, .sheet-box { border-radius: 20px; border: 1px solid rgba(255,138,61,.3); background: rgba(16,14,19,.96); box-shadow: 0 30px 80px -20px #000, 0 0 0 1px rgba(255,255,255,.03); overflow: hidden; animation: rise .25s var(--ease); }
.palette-input { display: flex; align-items: center; gap: .65rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette-input input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; outline: none; font-size: 1.05rem; color: var(--ink); }
.palette-results { list-style: none; margin: 0; padding: .4rem; max-height: min(55vh, 460px); overflow-y: auto; }
.palette-results li { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 12px; cursor: pointer; color: var(--muted); }
.palette-results li strong { display: block; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-results li small { display: block; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-results li em { font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.palette-results li[aria-selected="true"], .palette-results li:hover { background: var(--accent-soft); color: var(--accent-2); }
.palette-foot { padding: .6rem 1rem; border-top: 1px solid var(--line); }
.sheet { width: min(520px, calc(100vw - 1.5rem)); margin: auto; }
.sheet-box { display: grid; gap: 1rem; padding: 1.25rem; }
fieldset { display: grid; gap: .75rem; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; }
legend { padding: 0 .4rem; font-weight: 700; color: var(--accent-2); }

/* Avisos rápidos */
.toast-region { position: fixed; z-index: 60; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100vw - 2rem); pointer-events: none; }
@media (min-width: 960px) { .toast-region { bottom: 1.5rem; } }
.toast { padding: .7rem 1.1rem; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(20,16,18,.95); backdrop-filter: blur(10px); box-shadow: var(--shadow); font-weight: 600; font-size: .9rem; animation: rise .3s var(--ease); }
.toast.danger { border-color: rgba(255,93,93,.5); color: #ffb0b0; }
.toast.warn { border-color: rgba(255,192,70,.5); color: var(--warn); }

/* Operação compartilhada */
.op-status { margin-bottom: 1rem; }
.op-status:empty { display: none; }
.op-status:not(:empty) { padding: .65rem .9rem; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--accent-soft); color: var(--accent-2); font-size: .9rem; font-weight: 600; }
.map-preview { position: relative; min-height: 260px; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 32px 32px, #08080c; }
.pin { position: absolute; display: grid; place-items: center; width: 40px; height: 40px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid var(--bg); background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #170a02; font-weight: 800; font-size: .85rem; text-decoration: none; box-shadow: 0 0 18px -4px var(--accent); }
.pin.horse-pin { background: var(--live); box-shadow: 0 0 18px -2px var(--live); pointer-events: none; }
.schedule-preview { max-height: 18rem; overflow: auto; padding-left: 1.25rem; font-size: .88rem; }
.op-members li { justify-content: space-between; }

/* Movimento */
.view-enter { animation: enter .35s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes sweep { 0%, 60% { background-position: -100% 0; } 100% { background-position: 200% 0; } }
@keyframes pop { 50% { transform: scale(1.15); } }
@keyframes flash { 50% { box-shadow: 0 0 0 3px rgba(255,122,26,.5), 0 0 40px -6px rgba(255,122,26,.7); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .nav, .backdrop, .mode-bar, .toast-region, .map-controls, .hero-actions { display: none !important; }
  body { background: #fff; color: #000; }
}
@media (min-width: 960px) { .shell:has(> .nav[hidden]) { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .page-head { flex-wrap: wrap; align-items: flex-start; }
  .profile-select select { height: 38px; padding: 0 1.8rem 0 .6rem; font-size: .85rem; }
  .now-grid .panel { min-height: 0; }
}
@media (max-width: 430px) { .brand > span { display: none; } }
.palette-input input:focus, .search-field input:focus { border: 0; box-shadow: none; }

/* ---------- Administrador e mapa do sistema ---------- */
.admin-btn[data-active="true"] { color: #ff8a8a; border-color: rgba(255, 90, 90, .45); background: var(--danger-soft); box-shadow: 0 0 14px -4px rgba(255, 90, 90, .6); }
.admin-body { display: grid; gap: .85rem; }
.admin-body label { display: grid; gap: .35rem; }
.admin-body .chip { margin-right: .35rem; }
.map-actions { gap: .5rem; align-items: center; justify-content: flex-end; }
.map-actions .chip { display: inline-flex; align-items: center; gap: .3rem; }
.pista-items button .stop-time { margin-left: auto; font-variant-numeric: tabular-nums; font-size: .74rem; font-weight: 650; color: var(--accent-2); white-space: nowrap; }
.pista-items button .stop-time + small { margin-left: .5rem; }

/* ---------- Frequências de rádio ---------- */
.radio-strip { display: grid; gap: .65rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.radio-card { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid rgba(255,181,71,.35); background: var(--accent-soft); }
.radio-card .icon { color: var(--accent-2); flex: 0 0 auto; }
.radio-card span { color: var(--muted); font-size: .85rem; }
.radio-card span strong { color: var(--ink); letter-spacing: .04em; }
.radio-freq { margin-left: auto; font-size: 1.25rem; font-variant-numeric: tabular-nums; color: var(--accent-2); white-space: nowrap; }
.radio-card.restricted { border-color: rgba(255, 90, 90, .45); background: var(--danger-soft); }
.radio-card.restricted .icon, .radio-card.restricted .radio-freq { color: #ff8a8a; }
.radio-card small { display: block; font-size: .7rem; color: #ff8a8a; }
.members .member-text small { display: block; }
.members .member-text .lgnd { color: #ff8a8a; display: flex; align-items: center; gap: .25rem; }
.members .member-text { flex: 1 1 0; min-width: 0; }
.team-single { max-width: 640px; }
.members-title { margin: .35rem 0 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.members .member-text .chip { margin-left: .35rem; vertical-align: middle; }
.members .gear { list-style: none; padding: 0; margin: .3rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.members .gear li { font-size: .72rem; padding: .15rem .5rem; border-radius: 99px; background: rgba(255,255,255,.06); color: var(--muted); }

/* ---------- Entrada por número de legendário ---------- */
body.gate .nav, body.gate .topbar-tools, body.gate .mode-bar, body.gate .bottom-nav { display: none !important; }
body.gate .shell { grid-template-columns: 1fr; }
.login-gate { max-width: 420px; margin: 6vh auto 2rem; display: grid; gap: 1rem; text-align: center; }
.login-logos { display: flex; justify-content: center; gap: 1rem; }
.login-logos img { height: 96px; width: auto; object-fit: contain; }
.login-card { display: grid; gap: .9rem; text-align: left; }
.login-card label { display: grid; gap: .4rem; font-weight: 650; }
.login-card input { font-size: 1.4rem; letter-spacing: .12em; text-align: center; font-variant-numeric: tabular-nums; }
.who-chip { display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 .75rem; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--accent-soft); color: var(--accent-2); }
.who-chip span { display: grid; text-align: left; line-height: 1.1; }
.who-chip strong { font-size: .85rem; color: var(--ink); max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-chip small { font-size: .68rem; }
@media (max-width: 560px) { .who-chip span small { display: none; } .who-chip strong { max-width: 9ch; } }
.avatar-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 2px solid var(--line-strong); }
