:root {
  /* mesmas cores e temas da app Sistemas Táticos (escuro por defeito; claro; automático) */
  --bg: #070b08; --panel: #0f1712; --panel2: #131e17; --line: #22322a;
  --ink: #eef2ee; --muted: #93a89b; --gold: #c9a227; --accent: #c9a227; --red: #c1272d; --danger: #f19298;
  --field: #0b120e; --soft: #16221b; --hover: #131e17; --selbg: rgba(201,162,39,.14); --stagebg: #050806;
  --sans: 'Barlow', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --cond: 'Barlow Condensed', 'Barlow', -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f1efe7; --panel: #ffffff; --panel2: #f7f5ee; --line: #d9d4c6;
  --ink: #1c231e; --muted: #5c675f; --accent: #8a6d12; --danger: #a8262c;
  --field: #ffffff; --soft: #f1efe7; --hover: #f7f5ee; --selbg: #f6eccb; --stagebg: #e4e0d4;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #f1efe7; --panel: #ffffff; --panel2: #f7f5ee; --line: #d9d4c6;
    --ink: #1c231e; --muted: #5c675f; --accent: #8a6d12; --danger: #a8262c;
    --field: #ffffff; --soft: #f1efe7; --hover: #f7f5ee; --selbg: #f6eccb; --stagebg: #e4e0d4;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 14px/1.4 var(--sans);
  color: var(--ink); background: var(--bg);
  display: flex; flex-direction: column;
}
button, select, input, textarea { font: inherit; color: inherit; }
button, .btn {
  border: 1px solid var(--line); background: var(--panel);
  border-radius: 8px; padding: 6px 12px; cursor: pointer;
}
button:hover, .btn:hover { border-color: var(--accent); }
button.danger { color: var(--danger); }
button.primary { background: var(--red); border-color: var(--red); color: #fff; }
button.primary:hover { filter: brightness(1.1); border-color: var(--red); }
button.small { padding: 2px 10px; font-size: 12px; font-weight: 400; }
button.wide { width: 100%; margin: 6px 0; }

.bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 14px; background: var(--panel); border-bottom: 3px solid var(--gold);
}
.brand { color: var(--accent); font-size: 16px; margin-right: 6px; }
.grow { flex: 1; }
.bar select { padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--field); font-weight: 600; max-width: 260px; }

main { flex: 1; display: flex; min-height: 0; }

/* lista de páginas */
#nav { width: 220px; flex-shrink: 0; background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; padding: 8px; }
#pages { list-style: none; margin: 0; padding: 0; }
#pages li { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 7px; cursor: pointer; font-size: 12px; position: relative; }
#pages li:hover { background: var(--hover); }
#pages li.on { background: var(--selbg); color: var(--accent); font-weight: 700; }
#pages .n { width: 20px; text-align: right; color: var(--muted); flex-shrink: 0; }
#pages .lbl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pages .acts { display: none; gap: 2px; }
#pages li:hover .acts, #pages li.on .acts { display: flex; }
#pages .acts button { padding: 0 5px; font-size: 11px; line-height: 18px; border-radius: 5px; }

#stageWrap { flex: 1; min-width: 0; padding: 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
#fit { position: relative; }
#stage {
  position: absolute; left: 0; top: 0; width: 2000px; height: 1126px;
  transform-origin: 0 0; box-shadow: 0 4px 24px rgba(20, 30, 60, .18); overflow: hidden; user-select: none;
}
#render { position: fixed; left: -3000px; top: 0; width: 2000px; height: 1126px; overflow: hidden; }

/* painel */
#panel { width: 380px; flex-shrink: 0; overflow-y: auto; background: var(--panel); border-left: 1px solid var(--line); padding: 4px 16px 30px; }
#panel h2 { font-size: 15px; margin: 14px 0 10px; }
#panel h3 { font-size: 14px; margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
#panel h3 small { font-weight: 400; color: var(--muted); font-size: 12px; flex: 1; }
.fld { display: block; margin: 0 0 10px; }
.fld > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.fld input, .fld select, .fld textarea, .tagadd select {
  width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--field);
}
.fld textarea { resize: vertical; line-height: 1.35; margin-top: 4px; }
.chk { display: flex; gap: 8px; align-items: center; margin: 8px 0 10px; }
.hint { color: var(--muted); font-size: 12px; margin: -4px 0 10px; }

.imgs { display: grid; gap: 6px; }
.imr { display: grid; grid-template-columns: 70px 1fr 28px 28px; gap: 6px; align-items: center; }
.imr .it { height: 40px; border-radius: 6px; border: 1px dashed var(--line); background: var(--soft) center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; }
.imr input { padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.imr button { padding: 2px 0; }
.tagadd { display: grid; grid-template-columns: 1fr 96px 52px; gap: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tg { background: var(--soft); border-radius: 12px; padding: 2px 4px 2px 10px; font-size: 12px; }
.tg i { color: var(--muted); }
.tg button { border: none; background: none; padding: 0 4px; color: var(--danger); }

.xi-row { display: grid; grid-template-columns: 46px 1fr 34px; gap: 6px; align-items: center; padding: 3px 4px; border-radius: 8px; }
.xi-row.sel { background: var(--selbg); }
.xi-row .pos { font-weight: 700; color: var(--accent); font-size: 12px; text-align: center; cursor: pointer; }
.xi-row select { width: 100%; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--field); }
.xi-row button { padding: 2px 0; }

.pc { display: grid; grid-template-columns: 64px 1fr; gap: 8px 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; outline: none; }
.pc.sel { border-color: var(--gold); box-shadow: 0 0 0 2px var(--selbg); }
.pc.unused { background: var(--panel2); }
.pc .thumb { width: 64px; height: 78px; border: 1px dashed var(--line); border-radius: 8px; background: var(--soft) center bottom / contain no-repeat; cursor: pointer; }
.pc .thumb.drop { border-color: var(--accent); background-color: var(--selbg); }
.pc .fields { display: grid; grid-template-columns: 52px 1fr; gap: 6px; }
.pc .fields .full { grid-column: 1 / -1; display: grid; grid-template-columns: 62px 64px 1fr 1fr 18px; gap: 6px; }
.pc input, .pc select { width: 100%; min-width: 0; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--field); }
.pc input.miss { border-color: #c4565b; }
.pc .del { border: none; color: var(--danger); background: none; padding: 0; font-size: 18px; line-height: 1; }
.pc .tag2 { grid-column: 1 / -1; font-size: 11px; color: var(--muted); margin-top: -2px; }
.pc .tag2 label { display: inline-flex; gap: 5px; align-items: center; }
.pc .tag2 input { width: auto; }

/* diálogos */
dialog { border: none; border-radius: 12px; padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,.3); max-width: 460px; }
dialog { background: var(--panel2); color: var(--ink); border: 1px solid var(--line) !important; }
dialog::backdrop { background: rgba(0, 0, 0, .55); }
dialog h3 { margin: 4px 0 10px; font-size: 15px; }
dialog h3 small { font-weight: 400; color: var(--muted); font-size: 12px; }
dialog menu { display: flex; justify-content: flex-end; gap: 8px; padding: 0; margin: 16px 0 0; }
.types { display: grid; gap: 8px; }
.types button { text-align: left; padding: 10px 12px; }
.team { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start; margin-bottom: 14px; }
.logo-drop { width: 72px; height: 72px; border: 1px dashed var(--line); border-radius: 10px; background: var(--soft) center / 80% no-repeat; cursor: pointer; }
.logo-drop.drop { border-color: var(--accent); background-color: var(--selbg); }
.team-fields { display: grid; gap: 6px; }
.team-fields input:not([type=color]) { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; }
.colors { display: flex; gap: 12px; color: var(--muted); font-size: 12px; }
.colors label { display: flex; align-items: center; gap: 5px; }
.colors input { width: 32px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; }

#toast, #status {
  position: fixed; left: 50%; transform: translateX(-50%);
  background: #1b2233; color: #fff; padding: 8px 16px; border-radius: 8px;
  opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 960;
}
#toast { bottom: 20px; }
#status { bottom: 64px; background: #1f6b45; }
#toast.show, #status.show { opacity: 1; }
#dropHint { position: fixed; inset: 0; z-index: 900; display: none; align-items: flex-end; justify-content: center; padding-bottom: 40px; background: rgba(47,79,158,.12); pointer-events: none; }
#dropHint div { border: 3px dashed var(--accent); background: var(--panel); padding: 16px 28px; border-radius: 14px; font-size: 16px; font-weight: 600; color: var(--accent); max-width: 640px; text-align: center; }
#dropHint.show { display: flex; }
#busy { position: fixed; inset: 0; z-index: 950; display: none; align-items: center; justify-content: center; background: rgba(10,20,40,.3); }
#busy.show { display: flex; }
#busy .card { background: var(--panel2); border: 1px solid var(--line); padding: 20px 24px; border-radius: 12px; width: 340px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
#busy p { margin: 0 0 10px; font-weight: 600; }
.bar2 { height: 8px; background: var(--soft); border-radius: 4px; overflow: hidden; }
.bar2 i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* =================== Página (2000 × 1126) =================== */
.page { position: absolute; inset: 0; background: #fff; overflow: hidden; font-family: Arial, Helvetica, sans-serif; color: #111; }
.page .body { position: absolute; inset: 0; }
.page .chrome { position: absolute; left: 0; top: 0; width: 2000px; height: 1126px; pointer-events: none; }
.hl .clublogo { position: absolute; left: 40px; top: 16px; width: 100px; height: 100px; object-fit: contain; }
.hr .opplogo { position: absolute; left: 1423px; top: 33px; width: 50px; height: 50px; object-fit: contain; }
.hr .oppname { position: absolute; left: 1490px; right: 50px; top: 22px; height: 72px; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; font: 700 28px/1 Barlow, Arial, sans-serif; color: #fff; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.ttl {
  position: absolute; left: 280px; right: 600px; top: 26px; margin: 0; text-align: center;
  font: 400 84px/1 "Bebas Neue", "Arial Narrow", Impact, sans-serif; letter-spacing: 1px; white-space: nowrap;
}
.ttl span { border-bottom: 6px solid var(--c1); padding-bottom: 4px; }
.ttl.left { left: 240px; right: 1000px; }
.ttl.left span { border-bottom: none; }

.sub { position: absolute; left: 150px; top: 142px; margin: 0; font: italic 700 34px/1.1 Arial, sans-serif; }
.sub.u { font: 400 44px/1 "Bebas Neue", Impact, sans-serif; left: 100px; top: 190px; }
.sub.u span, .side h3 span, .slot .cap span { border-bottom: 3px solid #111; padding-bottom: 1px; }
.txt { position: absolute; left: 70px; right: 70px; font-size: 26px; line-height: 1.38; }
.txt .bl { margin: 0 0 .55em; padding-left: 1.3em; position: relative; text-align: justify; }
.txt .bi { position: absolute; left: 0; top: .2em; width: .95em; height: .95em; object-fit: contain; }
.txt .bi.sq { background: var(--c1); border-radius: 3px; width: .6em; height: .6em; top: .38em; }
.t-texto .txt { left: 100px; right: 100px; }
.t-texto .txt .bl { margin-bottom: 1.4em; }
.t-texto .txt.with-side { left: 540px; right: 60px; }
.t-texto .sub.u.shift { left: 60px; width: 420px; text-align: center; }
.t-texto .sub.u.shift ~ .side { top: 262px; }
.side { position: absolute; left: 60px; top: 200px; width: 420px; text-align: center; }
.side h3 { margin: 0 0 12px; font: 400 44px/1 "Bebas Neue", Impact, sans-serif; }
.side .side-photo { position: relative; height: 380px; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; }
.side .side-photo img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.side ul { list-style: none; padding: 0; margin: 22px 0 0; text-align: left; }
.side li { font: 400 40px/1.35 "Bebas Neue", Impact, sans-serif; }
.side li::before { content: "-  "; }
.side li.ph { color: #b9bec8; }

.cols { position: absolute; left: 50px; right: 50px; top: 190px; bottom: 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.col { position: relative; }
.col .sub.c { position: static; text-align: center; margin-bottom: 26px; }
.col .col-txt { position: static; }
.col .col-txt .bl { text-align: left; margin-bottom: 1em; }

.slot { position: absolute; display: flex; flex-direction: column; }
.slot .cap { height: 54px; display: flex; align-items: center; justify-content: center; font: 400 40px/1 "Bebas Neue", Impact, sans-serif; }
.slot .pic { flex: 1; position: relative; overflow: hidden; }
.slot .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot.empty .pic, .side-photo.empty { border: 4px dashed #c5cbd8; border-radius: 12px; background: #f6f7fa; display: flex; align-items: center; justify-content: center; color: #8a93a6; font-size: 26px; cursor: pointer; }
.slot:not(.empty) .pic { cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.slot.drop .pic, .side-photo.drop { outline: 6px solid #6bb4ff; }
.exporting .slot.empty, .exporting .side-photo.empty { visibility: hidden; }
.tag {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap; cursor: move;
  color: #fff; font: 700 30px/1 Arial, sans-serif; text-shadow: 0 0 4px #000, 0 1px 3px #000; padding: 2px 4px;
}

.t-capa { color: #fff; }
.cover-title { position: absolute; left: 0; right: 0; top: 110px; margin: 0; text-align: center; font: 400 128px/1 "Bebas Neue", Impact, sans-serif; letter-spacing: 4px; }
.cover-logo { position: absolute; top: 410px; width: 260px; height: 260px; object-fit: contain; }
.cover-logo.l { left: 430px; }
.cover-logo.r { left: 1310px; }
.cover-vs { position: absolute; left: 0; right: 0; top: 480px; text-align: center; font: 400 120px/1 "Bebas Neue", Impact, sans-serif; color: var(--c3); letter-spacing: 4px; }
.cover-name { position: absolute; top: 780px; width: 700px; text-align: center; font: 400 64px/1.05 "Bebas Neue", Impact, sans-serif; letter-spacing: 2px; }
.cover-name.l { left: 210px; }
.cover-name.r { left: 1090px; }
.cover-comp { position: absolute; left: 70px; top: 1012px; font: 400 64px/1 "Bebas Neue", Impact, sans-serif; color: var(--c1); letter-spacing: 2px; }
.cover-date { position: absolute; right: 70px; top: 1018px; font: 700 44px/1 Barlow, Arial, sans-serif; color: #333; letter-spacing: 1px; }

/* equipa provável */
.t-equipa .pitch { position: absolute; left: 0; top: 0; width: 2000px; height: 1126px; pointer-events: none; }
.pl, .bc {
  position: absolute; width: 300px; margin-left: -150px; display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 0; cursor: grab; touch-action: none;
}
.pl.dragging, .bc.dragging { cursor: grabbing; }
.phw { position: relative; width: 100%; height: 0; }
.ph { position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%); display: block; }
.pl .ph.cut { width: 150px; }
.bc .ph.cut { width: 122px; }
.ph.sil { width: 92px; opacity: .8; }
.bc .ph.sil { width: 74px; }
.pl .ph.boxed { height: 110px; border: 3px solid #fff; border-radius: 10px; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.bc .ph.boxed { height: 92px; border: 3px solid #fff; border-radius: 8px; background: #fff; }
.lb { font-family: Arial, Helvetica, sans-serif; font-weight: 700; line-height: 1.08; color: #141414; text-align: center; white-space: nowrap; }
.pl .lb { text-shadow: 0 0 3px rgba(255,255,255,.55); }
.pl.empty .lb { color: rgba(255,255,255,.92); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.bc .lb { color: #2b2b2b; }
.bpos { position: absolute; left: 62px; top: -128px; font: 700 20px/1 Arial, sans-serif; color: #333; }
.bc.empty .lb { color: #a7adb8; }
.bench-title { position: absolute; left: 1250px; width: 740px; top: 108px; text-align: center; font: 400 52px/1 "Bebas Neue", Impact, sans-serif; letter-spacing: 2px; }
.bench-title span { border-bottom: 5px solid var(--c1); padding-bottom: 2px; }
.pl.sel .ph, .bc.sel .ph { filter: drop-shadow(0 0 6px #ffe36b) drop-shadow(0 0 2px #ffd400); }
.pl.drop .ph, .bc.drop .ph { filter: drop-shadow(0 0 8px #6bd0ff) drop-shadow(0 0 3px #2b9cff); }
.dragging { z-index: 400 !important; }

@media (max-width: 1100px) {
  #nav { width: 170px; }
  #panel { width: 320px; }
}

/* apresentar */
#exitPresent { display: none; }
body.present .bar, body.present #nav, body.present #panel { display: none; }
body.present #stageWrap { padding: 0; background: #111; }
body.present #stage { box-shadow: none; }
body.present #exitPresent { display: block; position: fixed; top: 10px; right: 10px; z-index: 990; opacity: .35; }
body.present #exitPresent:hover { opacity: 1; }

.foot { position: absolute; left: 40px; bottom: 26px; font: 600 20px/1 Barlow, Arial, sans-serif; color: #8a909c; text-transform: uppercase; letter-spacing: 1px; }
.pnum { position: absolute; right: 40px; bottom: 24px; font: 700 24px/1 Barlow, Arial, sans-serif; color: #8a909c; }

/* ditado por voz */
.micbox { position: relative; display: block; min-width: 0; }
.micbox > input, .micbox > textarea { width: 100%; padding-right: 36px !important; }
.mic {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 26px; padding: 0; border: none; border-radius: 6px;
  background: transparent; color: #8a93a6; display: flex; align-items: center; justify-content: center;
}
.micbox.ta .mic { top: 10px; transform: none; }
.mic:hover { color: var(--accent); background: #eef2fb; }
.mic.on { color: #fff; background: #d23b2f; animation: micPulse 1.2s ease-in-out infinite; }
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(210,59,47,.5); } 50% { box-shadow: 0 0 0 6px rgba(210,59,47,0); } }

/* tabelas (classificação): imagem inteira + marca da equipa */
.slot .pic.fitc img { object-fit: contain; }
.slot:not(.empty) .pic.fitc { box-shadow: none; }
.mark { position: absolute; border: 5px solid #e3262b; border-radius: 999px; pointer-events: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: -4px 0 8px; }

/* ---- aspeto ao estilo da app Sistemas Táticos ---- */
body { background: var(--bg); }
.bar { border-bottom: 2px solid var(--gold); }
.brand { font-family: var(--cond); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-size: 15px; }
.brand i { font-style: normal; color: var(--accent); }
button, .btn { background: var(--panel); border-color: var(--line); color: var(--ink); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
button:hover, .btn:hover { border-color: var(--gold); }
button.danger { color: var(--danger); }
#nav, #panel { background: var(--panel); border-color: var(--line); }
#panel h2, #panel h3, dialog h3 { font-family: var(--cond); text-transform: uppercase; letter-spacing: .06em; }
#panel h2 { color: var(--accent); font-size: 17px; }
#stageWrap { background: var(--stagebg); }
.fld > span, .hint { color: var(--muted); }
input, select, textarea { color: var(--ink); }
.xi-row .pos { color: var(--accent); }
.mic { color: var(--muted); }
.mic:hover { color: var(--accent); background: var(--selbg); }
.pc .tag2 { color: var(--muted); }
.pc .del { color: var(--danger); }
a.back { color: var(--accent); text-decoration: none; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
a.back:hover { border-color: var(--gold); }
.theme-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 10px; }
.theme-opt { border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; display: grid; gap: 2px; }
.theme-opt:has(input:checked) { border-color: var(--gold); background: var(--selbg); }
.theme-opt input { display: none; }
.theme-opt small { color: var(--muted); font-size: 11px; }
#printArea { display: none; }
@media print {
  @page { size: 297mm 167mm; margin: 0; }
  html, body { background: #fff !important; }
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; }
  #printArea img { display: block; width: 100%; page-break-after: always; break-after: page; }
}

/* ---- páginas da Sistemas Táticos ---- */
.st-empty { position: absolute; left: 300px; right: 300px; top: 420px; text-align: center; font-size: 30px; line-height: 1.5; color: #8a909c; border: 4px dashed #d5d9e1; border-radius: 20px; padding: 40px; }
.st-empty b { color: #333; font-size: 40px; }
.st-usage { position: absolute; left: 70px; right: 70px; top: 196px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; font: 600 28px/1 Barlow, Arial, sans-serif; color: #222; }
.st-usage i { display: inline-block; width: 26px; height: 26px; border-radius: 6px; vertical-align: -4px; margin-right: 8px; }
.st-usage b { font-weight: 800; }
.st-usage em { flex-basis: 100%; font-style: normal; font-size: 20px; color: #8a909c; font-weight: 600; }
.st-games { position: absolute; left: 70px; right: 70px; top: 300px; display: grid; gap: 10px; }
.mrow { display: grid; grid-template-columns: 210px 560px 1fr; gap: 24px; align-items: center; height: var(--rh, 70px); border-bottom: 2px solid #eceef2; }
.mrow .md { font: 700 26px/1.1 Barlow, Arial, sans-serif; color: #222; }
.mrow .md small, .mrow .mo small { display: block; font-size: 17px; font-weight: 600; color: #8a909c; text-transform: uppercase; letter-spacing: .5px; margin-top: 3px; }
.mrow .mo { font: 700 27px/1.1 Barlow, Arial, sans-serif; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .mo small { display: inline; margin-left: 10px; }
.mrow .res { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; color: #fff; font-size: 22px; margin-right: 14px; vertical-align: 2px; }
.mrow .mt { display: flex; height: calc(var(--rh, 70px) - 18px); max-height: 60px; border-radius: 10px; overflow: hidden; }
.mrow .seg { display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; min-width: 0; border-right: 3px solid #fff; overflow: hidden; }
.mrow .seg:last-child { border-right: none; }
.mrow .seg b { font: 800 24px/1 Barlow, Arial, sans-serif; white-space: nowrap; }
.mrow .seg small { font: 600 15px/1.1 Barlow, Arial, sans-serif; opacity: .9; white-space: nowrap; }
.t-onze .pitch { position: absolute; left: 0; top: 0; width: 2000px; height: 1126px; pointer-events: none; }
.pl.ro { cursor: default; }
.pl .fqb { margin-top: 4px; font: 700 17px/1 Barlow, Arial, sans-serif; color: #fff; background: rgba(0,0,0,.55); padding: 4px 10px; border-radius: 12px; }
.xi-sub { margin: 0 0 4px; font: italic 700 34px/1.1 Arial, sans-serif; color: #111; }
.xi-info { position: absolute; left: 1300px; right: 60px; top: 130px; font-family: Barlow, Arial, sans-serif; color: #222; }
.xi-form { font: 400 120px/1 "Bebas Neue", Impact, sans-serif; color: var(--c1); }
.xi-info p { font-size: 26px; line-height: 1.35; margin: 10px 0 18px; }
.xi-info ol { list-style: none; padding: 0; margin: 0; }
.xi-info li { display: grid; grid-template-columns: 56px 1fr 70px 70px; gap: 10px; align-items: center; font-size: 25px; padding: 7px 0; border-bottom: 2px solid #eceef2; }
.xi-info li .n { font-weight: 800; color: var(--c1); }
.xi-info li .nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xi-info li .ps { color: #666; font-weight: 600; }
.xi-info li .fq { text-align: right; font-weight: 700; }
.xi-info small { display: block; margin-top: 14px; color: #8a909c; font-size: 18px; }

/* ---- página Jogo (sistemas por período) ---- */
.jg-head { position: absolute; left: 60px; right: 60px; top: 122px; display: flex; align-items: baseline; gap: 26px; flex-wrap: wrap; }
.jg-score { font: 400 52px/1 "Bebas Neue", Impact, sans-serif; letter-spacing: 1px; color: #111; }
.jg-meta { font: 600 24px/1 Barlow, Arial, sans-serif; color: #6b7280; }
.jg-verdict { position: absolute; left: 60px; right: 60px; top: 184px; padding: 8px 18px; border-radius: 10px; font: 500 22px/1.25 Barlow, Arial, sans-serif; color: #222; }
.jg-verdict.changed { background: #fbe9ea; border: 2px solid #f1b9bd; }
.jg-verdict.stable { background: #e7f4ec; border: 2px solid #b6dcc5; }
.jg-tl { position: absolute; left: 60px; right: 60px; top: 228px; }
.jg-tl .jbar { display: flex; height: 52px; border-radius: 10px; overflow: hidden; }
.jg-tl .seg { display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; border-right: 3px solid #fff; overflow: hidden; min-width: 0; }
.jg-tl .seg:last-child { border-right: none; }
.jg-tl .seg b { font: 800 24px/1 Barlow, Arial, sans-serif; white-space: nowrap; }
.jg-tl .seg small { font: 600 15px/1.15 Barlow, Arial, sans-serif; white-space: nowrap; }
.jg-tl .evs { position: relative; height: 34px; }
.jg-tl .ev { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; font: 700 15px/1 Barlow, Arial, sans-serif; color: #555; }
.jg-tl .evs.up .ev { flex-direction: column-reverse; }
.jg-tl .ev i { display: block; }
.jg-tl .ev.goal i { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 5px solid #222; box-sizing: border-box; }
.jg-tl .ev.goal.own i { border-color: #c1272d; }
.jg-tl .ev.yellow i { width: 13px; height: 18px; background: #f5c518; border-radius: 3px; }
.jg-tl .ev.red i { width: 13px; height: 18px; background: #d62828; border-radius: 3px; }
.jg-leg { margin-left: auto; font: 600 18px/1 Barlow, Arial, sans-serif; color: #8a909c; }
.jg-cards { position: absolute; left: 40px; right: 40px; display: flex; justify-content: center; gap: 18px; height: var(--ch); }
.pcard { width: var(--cw); background: #f6f4ee; border: 2px solid #e3dfd3; border-radius: 16px; padding: 10px 14px 14px; display: flex; flex-direction: column; }
.pcard .pch { display: flex; gap: 10px; align-items: center; height: 30px; }
.pcard .ptag { font: 800 16px/1 Barlow, Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; padding: 6px 12px; border-radius: 14px; }
.pcard .ptag.start { background: #f3e7c4; color: #7a5d0c; }
.pcard .ptag.changed { background: #f8d7da; color: #a8262c; }
.pcard .ptag.same { background: #d9eee1; color: #1f6b45; }
.pcard .ed { font: 700 15px/1 Barlow, Arial, sans-serif; color: #6b7280; }
.pcard .pt { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 6px; }
.pcard .pt b { font: 800 34px/1 "JetBrains Mono", Menlo, monospace; color: #111; }
.pcard .pt span { font: 600 20px/1 "JetBrains Mono", Menlo, monospace; color: #555; }
.pcard .vp { position: relative; flex: 1; border-radius: 10px; background: center / 100% 100% no-repeat; aspect-ratio: 68 / 105; max-height: 100%; align-self: center; height: 100%; }
.pcard .dot { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.pcard .dot b { width: 48px; height: 48px; border-radius: 50%; background: #c1272d; border: 3px solid #fff; color: #fff; font: 800 21px/42px Barlow, Arial, sans-serif; text-align: center; box-sizing: border-box; }
.pcard .dot.gk b { background: #c9a227; color: #111; }
.pcard .dot span { margin-top: 2px; font: 700 18px/1 Barlow, Arial, sans-serif; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9); white-space: nowrap; }
.jg-cards.n5 .pcard .dot b { width: 34px; height: 34px; font-size: 15px; line-height: 28px; }
.jg-cards.n5 .pcard .dot span { font-size: 13px; }

/* jogador com foto nos campos dos jogos: foto recortada + nº pequeno */
.pcard .dot { cursor: pointer; }
.pcard .dot.wp { transform: translate(-50%, -78%); }
.pcard .dot.wp img { width: 78px; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.pcard .dot.wp.boxed img { width: 60px; border: 2px solid #fff; border-radius: 8px; }
.pcard .dot.wp b { position: absolute; left: -6px; bottom: 16px; width: 30px; height: 30px; font-size: 14px; line-height: 25px; border-width: 2px; }
.pcard .dot.drop b, .pcard .dot.drop img { outline: 4px solid #6bb4ff; }
.jg-cards.n5 .pcard .dot.wp img { width: 62px; }

/* análise qualitativa na página de classificação */
.ana-box { position: absolute; background: #f6f4ee; border: 2px solid #e3dfd3; border-left: 8px solid var(--c1); border-radius: 16px; padding: 22px 30px; box-sizing: border-box; overflow: hidden; }
.ana-box h3 { margin: 0 0 16px; font: 400 44px/1 "Bebas Neue", Impact, sans-serif; letter-spacing: 1px; color: #111; }
.ana-box h3 span { border-bottom: 4px solid var(--c1); padding-bottom: 2px; }
.ana-box .ana-txt { position: static; left: auto; right: auto; }
.ana-box .ana-txt .bl { text-align: left; margin-bottom: .75em; }
.ana-box.empty .anaph { color: #9aa0aa; font-size: 26px; font-style: italic; position: static; transform: none; }
.exporting .ana-box.empty { display: none; }

/* sincronização */
#syncBtn.sync-ok { color: #3fcf80; }
#syncBtn.sync-off { color: #e0a83c; }
#syncBtn.sync-login { border-color: var(--acc, #e8645f); }
#syncDlg .fld input { width: 100%; font-size: 20px; letter-spacing: .3em; text-align: center; padding: 10px; }
#syncBtn[hidden] { display: none !important; }
