/* ============================================================
   styles.css — baseplate: tokens, layout, generic components.
   Nothing edition-specific here: edition.css only redefines the
   tokens below and adds its own components.
   ============================================================ */
:root {
  --brand: #2A1458;        /* rail, primary buttons */
  --brand-ink: #FFFFFF;    /* text on --brand */
  --accent: #F5C132;       /* the selected section, highlights */
  --bg: #F4F2F8;
  --surface: #FFFFFF;
  --text: #1E1B2E;
  --muted: #6B6F86;
  --ok: #0E7A41;
  --warn: #B26A00;
  --error: #C0392B;
  --radius: 12px;
  --gap: 16px;
  --font-ui: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-text: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --line: rgba(30, 27, 46, .14);
  --rail-w: 232px;
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 var(--font-text); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-ui); line-height: 1.2; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-family: var(--font-ui); font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--brand); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-big {
  display: block; width: 100%; min-height: 64px; padding: 16px 20px; border: 0; border-radius: var(--radius);
  background: var(--brand); color: var(--brand-ink); font: 800 18px/1.25 var(--font-ui); cursor: pointer; text-align: center;
}
.btn-big:hover { filter: brightness(1.12); }
.btn-danger { background: var(--error); border-color: var(--error); color: #fff; }
.link { border: 0; background: none; padding: 4px 2px; color: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border-radius: var(--radius); padding: var(--gap); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer;
}
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.field {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
}
.field:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(42, 20, 88, .15); }
.badge {
  display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 999px;
  background: var(--error); color: #fff; font: 700 12px/18px var(--font-ui); text-align: center;
}
.sync-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  font: 600 13px var(--font-ui); background: rgba(14, 122, 65, .12); color: var(--ok); white-space: nowrap;
}
.sync-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sync-pill[data-level="warn"] { background: rgba(178, 106, 0, .14); color: var(--warn); }
.sync-pill[data-level="error"] { background: rgba(192, 57, 43, .12); color: var(--error); }
.sync-pill[data-level="local"] { background: rgba(107, 111, 134, .14); color: var(--muted); }

.alert {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
  padding: 12px 14px; border-radius: var(--radius); border-left: 6px solid var(--error);
  background: #FDECEA; color: var(--text); font-weight: 600;
}
.alert.alert-warn { border-left-color: var(--warn); background: #FFF4E0; }
.alert.alert-error { border-left-color: var(--error); background: #FDE8E6; font-weight: 700; }
.alert .alert-text { flex: 1 1 220px; }
.alert .btn { flex: 0 0 auto; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000;
  max-width: min(92vw, 520px); padding: 12px 18px; border-radius: var(--radius);
  background: var(--text); color: #fff; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.toast[data-level="error"] { background: var(--error); }
.toast { display: flex; align-items: center; gap: 14px; }
.toast[hidden] { display: none; }
.toast-action {
  flex: 0 0 auto; min-height: 40px; padding: 6px 16px; border: 0; border-radius: 99px;
  background: var(--accent); color: var(--text); font: inherit; font-weight: 700; cursor: pointer;
}

/* the control a search result jumps to */
.pulse { animation: pulse 1.8s ease-out; border-radius: 10px; }
@keyframes pulse {
  0%, 40% { box-shadow: 0 0 0 4px var(--accent); }
  100% { box-shadow: 0 0 0 14px rgba(245, 193, 50, 0); }
}

/* ---------- password gate (js/core/gate.js) ---------- */
html.gate-locked .app { display: none; }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--brand); }
.gate-card { width: 100%; background: var(--surface); border-radius: 20px; padding: 28px 24px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.gate-title { margin: 0; font-size: 24px; color: var(--brand); }
.gate-pass { display: grid; gap: 12px; }
.gate-field { font-weight: 700; }
.gate-input { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--line); font-size: 20px; }
.gate-input:focus { border-color: var(--brand); outline: none; }
.gate-err { margin: 0; color: var(--error); font-weight: 700; }
.gate-role { text-align: left; }
.gate-role span { font: 500 15px var(--font-text); opacity: .85; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- host layout: rail + main column ---------- */
.app { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 3px; padding: 12px 8px;
  background: var(--brand); color: var(--brand-ink);
}
.rail-item {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px;
  padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: inherit;
  font: 700 15px var(--font-ui); text-align: left; cursor: pointer;
}
.rail-item:hover { background: rgba(255, 255, 255, .1); }
.rail-item[aria-current="page"] { background: var(--accent); color: var(--brand); }
.rail-icon { width: 24px; flex: 0 0 24px; text-align: center; font-size: 17px; }
.rail-label { flex: 1; }
.rail-short { display: none; }
.rail-item .badge { margin-left: auto; }
.rail-gap { height: 1px; margin: 8px 4px; background: rgba(255, 255, 255, .18); }

.main-col { min-width: 0; padding: 0 24px 40px; }
.app-header {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 14px 0 10px;
}
.app-title { flex: 1 1 auto; margin: 0; font-size: 20px; }
.role-box { position: relative; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.role-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; display: grid; gap: 8px; min-width: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.role-menu .btn.on { border-color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
/* phones / narrow panels: the menu opens from the left of "Mudar" and never leaves the screen */
@media (max-width: 899px) {
  .role-menu { right: auto; left: 0; min-width: min(220px, calc(100vw - 32px)); max-width: calc(100vw - 32px); }
}
.app-version { color: var(--muted); font-size: 13px; }

.search { position: sticky; top: 0; z-index: 40; padding: 8px 0 14px; background: var(--bg); }
.search-input { border-radius: 999px; padding-left: 18px; }
.search-results { position: absolute; left: 0; right: 0; top: 100%; margin-top: -6px; padding: 6px; display: grid; gap: 2px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.search-hit {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer;
}
.search-hit.on, .search-hit:hover { background: var(--bg); }
.search-label { font-weight: 700; }
.search-where { color: var(--muted); font-size: 14px; }
.search-none { margin: 8px 12px; color: var(--muted); }

.section-title { margin: 4px 0 16px; font-size: 24px; }

/* ---------- below 900 px: the rail becomes a bottom bar ---------- */
@media (max-width: 899px) {
  .app { grid-template-columns: minmax(0, 1fr); padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
  .rail {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 60; height: auto; overflow: hidden;
    flex-direction: row; gap: 0; padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px));
  }
  .rail-gap { display: none; }
  .rail-item {
    flex: 1 1 auto; min-width: 0; flex-direction: column; justify-content: center; gap: 2px;
    min-height: calc(var(--bar-h) - 8px); padding: 4px 1px; text-align: center;
  }
  .rail-label { display: none; }
  .rail-short {
    display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: clamp(8.5px, 2.25vw, 13px); font-weight: 700; letter-spacing: -.01em;
  }
  .rail-icon { width: auto; flex: none; font-size: 19px; }
  .rail-item .badge { position: absolute; top: 2px; left: 50%; margin: 0 0 0 6px; min-width: 18px; padding: 0 5px; font-size: 11px; line-height: 16px; }
  .main-col { padding: 0 16px 24px; }
  .app-title { flex-basis: 100%; font-size: 18px; }
  .search-input { font-size: 15px; padding-left: 14px; padding-right: 10px; }
  .toast { bottom: calc(var(--bar-h) + 16px); }
}

/* ---------- shared host bits ---------- */
.eyebrow { margin: 0; font: 700 12px/1.3 var(--font-ui); letter-spacing: .12em; color: #7B61FF; }
.muted { color: var(--muted); }
.section-intro { margin: -8px 0 16px; color: var(--muted); max-width: 70ch; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dot { display: inline-block; flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); vertical-align: middle; }
.dot.dot-on { background: #2ECC71; }
.dot.dot-off { background: var(--error); }
.dot.dot-none { background: transparent; border: 2px solid var(--muted); }
.confirm-backdrop { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(20, 12, 40, .55); }
.confirm { width: min(460px, 100%); padding: 24px; }
.confirm-text { margin: 0 0 20px; font: 800 22px/1.3 var(--font-ui); }
.confirm-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.confirm-actions .btn { min-height: 64px; font-size: 17px; }

/* ---------- host · Jogo ---------- */
.jogo-follow {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding: 12px 16px;
  border-radius: var(--radius); background: var(--accent); color: var(--brand); font-weight: 800;
}
.jogo-follow[hidden] { display: none; }
.jogo-follow-text { flex: 1 1 200px; }
.jogo-driver { font-weight: 700; }
.jogo-now { margin-bottom: var(--gap); }
.jogo-step { margin: 6px 0 2px; font-size: 26px; }
.jogo-after { margin: 0 0 14px; color: var(--muted); font-weight: 600; }
.jogo-move { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; margin-bottom: 18px; }
.jogo-move .btn-big { min-height: 76px; font-size: 20px; }
.jogo-prev { background: var(--bg) !important; color: var(--text) !important; border: 1px solid var(--line) !important; font-size: 26px !important; }
.btn-big:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.jogo-controls { display: grid; gap: 10px; margin-top: 8px; }
.jogo-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jogo-row .btn { min-height: 48px; padding: 8px 18px; }
.jogo-timer { min-width: 150px; font: 800 24px/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.jogo-timer-state { font-size: 15px; font-weight: 600; color: var(--muted); }
.jogo-sound { min-width: 150px; font-weight: 700; }
.jogo-nothing { margin: 0; color: var(--muted); }
.jogo-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--gap); align-items: start; }
.jogo-sub { margin: 0 0 10px; font-size: 17px; }
.jogo-steps-scroll { position: relative; max-height: 420px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.jogo-group + .jogo-group { margin-top: 10px; }
.jogo-group-label { margin: 0 0 4px; font: 700 12px var(--font-ui); letter-spacing: .1em; color: var(--muted); }
.jogo-stepbtn {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin-bottom: 4px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; cursor: pointer; font-weight: 600;
}
.jogo-stepbtn:hover { border-color: var(--brand); }
.jogo-stepbtn.is-past { color: var(--muted); }
.jogo-stepbtn.is-now { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); cursor: default; opacity: 1; }
.jogo-stepnum { flex: 0 0 28px; font-variant-numeric: tabular-nums; opacity: .7; }
.jogo-steplabel { flex: 1; }
.jogo-stepnow { padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--brand); font-size: 12px; font-weight: 800; }
.jogo-screens { display: grid; gap: 6px; margin-bottom: 10px; }
.jogo-scr { display: flex; align-items: center; gap: 10px; }
.jogo-scr-thumb {
  flex: 0 0 96px; height: 54px; display: grid; place-items: center; padding: 2px; border-radius: 6px;
  background: var(--brand); color: var(--accent); font: 700 11px/1.1 var(--font-ui); text-align: center; overflow: hidden;
}
.jogo-scr-thumb.view-classificacao { background: #542580; color: #fff; }
.jogo-scr-thumb.view-qr { background: #fff; color: var(--text); border: 1px dashed var(--muted); }
.jogo-scr-thumb.view-imagem { background: #EC4785; color: #fff; }
.jogo-scr-thumb.view-preto { background: #000; color: #777; }
.jogo-scr-name { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jogo-tablets { margin: 0 0 12px; font-weight: 700; }
.jogo-room-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.jogo-room-actions .btn { min-height: 48px; }

/* ---------- host · Ecrãs ---------- */
.ecras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); align-items: start; }
.ecra-card { display: grid; gap: 10px; }
.ecra-card.is-off { box-shadow: inset 0 0 0 2px var(--error); }
.ecra-top { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.ecra-num {
  flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  background: var(--brand); color: var(--brand-ink); font: 800 18px var(--font-ui);
}
.ecra-name { flex: 1; min-width: 0; font: 800 18px/1.2 var(--font-ui); }
.ecra-rename { display: flex; gap: 6px; flex-wrap: wrap; }
.ecra-rename .field { flex: 1 1 140px; min-height: 44px; }
.ecra-status { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 600; font-size: 15px; }
.ecra-card.is-off .ecra-status-text { color: var(--error); font-weight: 800; }
.ecra-preview { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #000; }
.ecra-preview iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 720px; border: 0; transform-origin: 0 0; pointer-events: none; }
.ecra-views { display: flex; gap: 6px; flex-wrap: wrap; }
.ecra-views .chip { min-height: 44px; }
.ecra-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ecra-actions .btn { min-height: 44px; }
.ecra-result { margin: 0; min-height: 1.4em; font-weight: 700; }
.ecra-result[data-level="ok"] { color: var(--ok); }
.ecra-result[data-level="error"] { color: var(--error); }
.ecra-result[data-level="wait"] { color: var(--muted); }
.ecra-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); }
.ecra-url { flex: 1 1 140px; font: 600 14px ui-monospace, Menlo, monospace; color: var(--muted); }
.ecras-add {
  min-height: 200px; border: 2px dashed var(--line); border-radius: var(--radius); background: none;
  color: var(--muted); font: 800 18px var(--font-ui); cursor: pointer;
}
.ecras-add:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.ecras-add:disabled { cursor: not-allowed; }
.ecras-empty { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.jogo-noscreens { margin: 0 0 8px; font-weight: 600; }

@media (max-width: 899px) {
  .jogo-grid { grid-template-columns: minmax(0, 1fr); }
  .jogo-move { grid-template-columns: 76px minmax(0, 1fr); }
  .ecras-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   TV (tv.html) — generic layout and built-in views.
   One screen, no scrolling: everything fits 100dvh. Type is sized
   from the viewport (or, for the leaderboard rows, from each row's
   own height via cqh) so it reads from the back of the room.
   ============================================================ */
:root {
  --tv-bg: var(--brand);
  --tv-ink: var(--brand-ink);
  --tv-card: var(--surface);
  --tv-card-ink: var(--text);
  --tv-accent: var(--accent);
}
html:has(body.tv-body) { background: var(--tv-bg); }
body.tv-body { background: var(--tv-bg); color: var(--tv-ink); height: 100vh; height: 100dvh; overflow: hidden; font-family: var(--font-ui); }
.tv { position: relative; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.tv-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tv-stage > * { flex: 1; min-height: 0; }
.tv-step { display: flex; flex-direction: column; }
.tv-step > * { flex: 1; min-height: 0; }
.tv[data-view="preto"], .tv[data-view="imagem"] { background: #000; }

.tv-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2vh; padding: 6vh 6vw; }
.tv-title { margin: 0; font-size: clamp(36px, 7vw, 140px); font-weight: 900; line-height: 1.05; letter-spacing: -.01em; }
.tv-kicker { margin: 0; font-size: clamp(18px, 2.4vw, 44px); font-weight: 800; letter-spacing: .08em; color: var(--tv-accent); }
.tv-sub { margin: 0; font-size: clamp(20px, 3vw, 56px); font-weight: 600; opacity: .9; }

/* picker: "Que ecrã é este?" */
.tv-picker { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3vh; padding: 4vh 5vw; text-align: center; }
.tv-picker-title { margin: 0; font-size: clamp(30px, 5vw, 90px); font-weight: 900; }
.tv-picker-msg { margin: 0; padding: 1.2vh 2.4vw; border-radius: 999px; background: var(--error); color: #fff; font-size: clamp(16px, 2.2vw, 40px); font-weight: 800; }
.tv-pick-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 28px); width: min(100%, 1500px); }
.tv-pick {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6vh; min-width: 0;
  padding: 2.4vh 1vw; border: 0; border-radius: 18px; background: var(--tv-card); color: var(--tv-card-ink); cursor: pointer;
}
.tv-pick:hover, .tv-pick:focus-visible { box-shadow: 0 0 0 5px var(--tv-accent); }
.tv-pick-num { font-size: clamp(32px, 5vw, 96px); font-weight: 900; line-height: 1; }
.tv-pick-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(13px, 1.5vw, 28px); font-weight: 700; opacity: .75; }
@media (max-width: 700px) { .tv-pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* identify overlay (host command) */
.tv-identify {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--tv-accent); color: var(--brand); text-align: center; animation: tvIn .25s ease-out;
}
.tv-identify-num { font-size: min(55vh, 40vw); font-weight: 900; line-height: .9; }
.tv-identify-name { font-size: clamp(28px, 6vw, 120px); font-weight: 800; }
@keyframes tvIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* shown until the first click on a screen with sound on; a corner pill, it never hides content for long */
.tv-sound-hint {
  position: fixed; right: 12px; bottom: 12px; z-index: 90; max-width: calc(100vw - 24px);
  padding: 8px 16px; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #fff;
  font: 700 clamp(12px, 1.1vw, 20px) var(--font-ui); pointer-events: none;
}

/* countdown ring (TvSteps.ring) */
.tv-ring { position: relative; width: clamp(90px, 14vh, 200px); aspect-ratio: 1; flex: none; }
.tv-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tv-ring .trk { stroke: rgba(255, 255, 255, .2); }
.tv-ring .bar { stroke: var(--tv-accent); transition: stroke-dashoffset .25s linear, stroke .3s; }
.tv-ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: clamp(30px, 5.6vh, 80px); font-variant-numeric: tabular-nums; }
.tv-ring.low .bar { stroke: var(--error); }
.tv-ring.low .num { color: #FFB4A8; animation: tvPulse .5s ease-in-out infinite alternate; }
.tv-ring.done .num { animation: none; }
@keyframes tvPulse { from { transform: scale(1); } to { transform: scale(1.1); } }

/* ---- TV · CLASSIFICAÇÃO (ported from V2's projector leaderboard) ----
   Each row is `flex: 1 1 0`: the available height is shared equally by however many
   teams there are (2 or 16), no per-count CSS or JS. Each row is its own size container
   and its type is in `cqh` (1% of the row's own height): fewer teams -> taller rows ->
   bigger type, and it can never overflow. Don't put overflow:hidden on .lb-row: it
   would clip the leader's glow. */
.tv-board { display: flex; flex-direction: column; padding: clamp(12px, 2.4vh, 36px) clamp(20px, 5vw, 90px); }
.tv-head { flex: none; display: flex; flex-direction: column; align-items: center; gap: .4vh; margin-bottom: clamp(10px, 2vh, 28px); }
.tv-head-title { margin: 0; font-size: clamp(26px, 4.4vh, 64px); font-weight: 900; }
.tv-head-sub { font-size: clamp(14px, 2.2vh, 30px); font-weight: 600; opacity: .8; }
.leaderboard { display: flex; flex-direction: column; gap: clamp(6px, 1.3vh, 18px); flex: 1; justify-content: center; min-height: 0; max-width: 1680px; width: 100%; margin: 0 auto; }
.lb-row {
  display: grid; grid-template-columns: clamp(70px, 7vw, 112px) minmax(0, 1fr) clamp(120px, 22vw, 380px) clamp(90px, 10vw, 180px);
  align-items: center; gap: clamp(14px, 2vw, 30px);
  background: var(--tv-card); color: var(--tv-card-ink); border-left: 8px solid var(--team-color);
  border-radius: 16px; padding-inline: clamp(18px, 2.4vw, 34px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  flex: 1 1 0; min-height: 0; max-height: 244px;
  container-type: size;
}
.lb-row.first { box-shadow: 0 0 0 3px var(--tv-accent), 0 8px 30px rgba(0, 0, 0, .2); animation: leaderGlow 2.8s ease-in-out infinite; }
@keyframes leaderGlow {
  0%, 100% { box-shadow: 0 0 0 3px var(--tv-accent), 0 8px 30px rgba(0, 0, 0, .2); }
  50%      { box-shadow: 0 0 0 6px var(--tv-accent), 0 10px 44px rgba(0, 0, 0, .3); }
}
.lb-rank { display: flex; flex-direction: column; justify-content: center; gap: 2cqh; }
.lb-rank-num { font-size: clamp(24px, 34cqh, 76px); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.lb-rank-leader { font-size: clamp(11px, 11cqh, 24px); font-weight: 800; letter-spacing: .06em; opacity: .7; }
/* many teams -> short rows: "Lidera" would squeeze into the rank number; the glow says it */
@container (max-height: 40px) { .lb-rank-leader { display: none; } }
.lb-identity { min-width: 0; display: flex; align-items: center; gap: clamp(12px, 11cqh, 24px); }
.lb-seal { width: clamp(30px, 40cqh, 76px); height: clamp(30px, 40cqh, 76px); flex: none; border-radius: 14px; background: var(--team-color); color: var(--team-ink); display: grid; place-items: center; font-weight: 900; font-size: clamp(12px, 17cqh, 34px); }
.lb-name { font-size: clamp(18px, 30cqh, 64px); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-progress-track { height: clamp(7px, 10cqh, 22px); border-radius: 100px; background: rgba(0, 0, 0, .1); overflow: hidden; }
.lb-progress-fill { height: 100%; border-radius: 100px; background: var(--team-color); transition: width .6s cubic-bezier(.4, 0, .2, 1); }
.lb-score { text-align: right; }
.lb-score-num { font-size: clamp(24px, 38cqh, 84px); font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
@media (max-width: 700px) { .lb-row { grid-template-columns: 48px minmax(0, 1fr) 70px; } .lb-progress { display: none; } }

/* ---- TV · QR ---- */
.tv-qr { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3vh; padding: 4vh 4vw; text-align: center; }
.tv-qr-caption { margin: 0; font-size: clamp(28px, 6vh, 90px); font-weight: 900; }
.tv-qr-frame { width: min(58vh, 80vw); aspect-ratio: 1; padding: 2vh; border-radius: 22px; background: #fff; color: #111; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
.tv-qr-frame svg { display: block; width: 100%; height: 100%; }
.tv-qr-url { font-size: clamp(16px, 3vh, 44px); font-weight: 700; opacity: .85; overflow-wrap: anywhere; }

/* ---- TV · IMAGEM (falls back to brand colour + title) ---- */
.tv-imagem { position: relative; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); }
.tv-imagem-title { padding: 4vh 6vw; font-size: clamp(36px, 7vw, 140px); font-weight: 900; text-align: center; }
.tv-imagem-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.tv-imagem-img.ok { opacity: 1; }

/* ---- TV · PRETO ---- */
.tv-preto { background: #000; }
html.tv-preview .tv-sound-hint { display: none !important; }

/* ---------- host · Equipas (phone-first) ---------- */
.eq-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--gap); }
.eq-pick { min-height: 44px; padding: 8px 16px; border: 2px solid var(--team-color); }
.eq-pick.on { background: var(--team-color); border-color: var(--team-color); color: var(--team-ink); }
.eq-head { margin-bottom: var(--gap); border-top: 6px solid var(--team-color); }
.eq-head-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.eq-swatch { width: 18px; height: 18px; border-radius: 50%; background: var(--team-color); flex: none; }
.eq-name { flex: 1 1 auto; margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.eq-total { font: 800 18px var(--font-ui); white-space: nowrap; }
.eq-label { display: block; margin-bottom: 4px; font-weight: 700; font-size: 14px; color: var(--muted); }
.eq-rename-row { display: flex; gap: 8px; }
.eq-rename-row .btn { min-height: 44px; }
.eq-restore { margin-top: 6px; font-size: 14px; }
.eq-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--gap); align-items: start; }
.eq-part-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.eq-part-title { margin: 0 0 4px; font-size: 18px; }
.eq-part-pts { font-weight: 700; color: var(--muted); white-space: nowrap; }
.eq-tablet { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; background: var(--bg); font-size: 14px; font-weight: 600; }
.eq-q { padding: 12px 0; border-top: 1px solid var(--line); }
.eq-q-label { font-weight: 700; margin-bottom: 8px; }
.eq-q-text { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.eq-q-ctrl { display: flex; flex-wrap: wrap; gap: 8px; }
.eq-opt { min-height: 48px; padding: 8px 16px; font-size: 16px; }
.eq-bool { min-width: 88px; justify-content: center; }
.eq-num { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eq-step { min-width: 52px; min-height: 48px; font-size: 22px; padding: 4px 10px; }
.eq-num-input { width: 96px; min-height: 48px; text-align: center; font-weight: 700; font-size: 18px; }
.eq-q-meta { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---------- host · Pontuação ---------- */
.pt-board, .pt-adjust { margin-bottom: var(--gap); }
.pt-scroll { overflow-x: auto; }
.pt-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pt-table th, .pt-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.pt-table th { font-size: 13px; color: var(--muted); }
.pt-num { text-align: right !important; }
.pt-place { font-weight: 800; }
.pt-total { font-weight: 800; font-size: 18px; }
.pt-team { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--team-color); color: var(--team-ink); font-weight: 700; }
.pt-sub { margin: 0 0 6px; font-size: 18px; }
.pt-hint { margin: 0 0 8px; }
.pt-adj-team { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.pt-q { font-weight: 600; }
.pt-actions { max-width: 420px; }

/* ---------- host · Relatório ---------- */
.rl-state { margin-bottom: var(--gap); border-left: 8px solid var(--ok); }
.rl-state[data-level="warn"] { border-left-color: var(--warn); }
.rl-state[data-level="error"] { border-left-color: var(--error); }
.rl-state-text { margin: 0; font: 800 22px var(--font-ui); }
.rl-state-hint { margin: 4px 0 0; }
.rl-exports { margin-bottom: var(--gap); }
.rl-buttons { display: grid; gap: 10px; max-width: 420px; margin: 8px 0; }
.rl-json { min-height: 52px; }
.rl-note { font-style: italic; }

/* ---------- host · Ensaios e reposição ---------- */
.ens-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.ens-card { display: flex; flex-direction: column; }
.ens-card-title { margin: 0 0 4px; font-size: 18px; }
.ens-card .btn { margin-top: auto; min-height: 52px; }
.ens-panel { border: 3px solid var(--error); max-width: 640px; }
.ens-title { margin: 0 0 8px; font-size: 22px; }
.ens-lead { margin: 0; font-weight: 700; }
.ens-summary { margin: 6px 0 12px; padding-left: 22px; font-size: 17px; }
.ens-summary li { margin: 4px 0; }
.ens-backup { margin: 0 0 12px; color: var(--muted); }
.ens-type-label { display: block; margin-bottom: 6px; font-weight: 700; }
.ens-type { max-width: 240px; font: 800 20px var(--font-ui); letter-spacing: .1em; }
.ens-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin-top: 14px; }
.ens-actions .btn { min-height: 64px; }
.ens-result { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; font-weight: 800; font-size: 17px; }
.ens-result[data-level="ok"] { background: rgba(14, 122, 65, .12); color: var(--ok); }
.ens-result[data-level="error"] { background: rgba(192, 57, 43, .12); color: var(--error); }

@media (max-width: 599px) {
  .eq-parts, .ens-grid { grid-template-columns: minmax(0, 1fr); }
  .eq-opt { flex: 1 1 40%; justify-content: center; }
  .ens-actions { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- host · Tablets ---------- */
.dot.dot-warn { background: var(--warn); }
.dot.dot-error { background: var(--error); }
.tablets-top { margin-bottom: var(--gap); }
.tablets-top .btn { min-height: 52px; }
.tablets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); align-items: start; }
.tablet-card { display: grid; gap: 10px; }
.tablet-card.is-off { box-shadow: inset 0 0 0 2px var(--error); }
.tablet-top { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.tablet-num {
  flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  background: var(--brand); color: var(--brand-ink); font: 800 18px var(--font-ui);
}
.tablet-team {
  min-width: 0; padding: 4px 12px; border-radius: 999px; background: var(--team-color, var(--line)); color: var(--team-ink, var(--text));
  font: 800 17px/1.3 var(--font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tablet-status { margin: 0; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; }
.tablet-card.is-off .tablet-status-text { color: var(--error); font-weight: 800; }
.tablet-details { margin: 0; color: var(--muted); font-weight: 600; font-size: 14px; }
.tablet-version.is-old { color: var(--error); font-weight: 800; }
.tablet-dup { margin: 0; }
.tablet-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tablet-actions .btn { min-height: 44px; }
.tablet-result { margin: 0; min-height: 1.4em; font-weight: 700; }
.tablet-result[data-level="ok"] { color: var(--ok); }
.tablet-result[data-level="error"] { color: var(--error); }
.tablet-result[data-level="wait"] { color: var(--muted); }
.tablet-install { display: flex; align-items: center; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.tablet-qr { flex: 0 0 96px; width: 96px; aspect-ratio: 1; color: #000; background: #fff; }
.tablet-qr svg { display: block; width: 100%; height: 100%; }
.tablet-link { flex: 1; min-width: 0; display: grid; gap: 6px; justify-items: start; }
.tablet-url { font: 600 14px ui-monospace, Menlo, monospace; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 899px) { .tablets-grid { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
   Team tablet (equipa.html) — generic layout and built-in steps.
   One screen, no scrolling, big touch targets; the team colour
   comes in as --team-color / --team-ink on <body>.
   ============================================================ */
:root {
  --tab-bg: var(--brand);
  --tab-ink: var(--brand-ink);
  --tab-card: var(--surface);
  --tab-card-ink: var(--text);
  --tab-accent: var(--accent);
}
html:has(body.tab-body) { background: var(--tab-bg); }
body.tab-body {
  background: var(--tab-bg); color: var(--tab-ink); height: 100vh; height: 100dvh; overflow: hidden; font-family: var(--font-ui);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.tab { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.tab-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; min-height: 56px; }
.tab-logo { font-weight: 900; font-size: 18px; letter-spacing: .02em; padding: 8px 4px; opacity: .9; }
.tab-who { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.tab-num { opacity: .7; font-size: 15px; }
.tab-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tab-stage > * { flex: 1; min-height: 0; }

.tab-chip {
  display: inline-block; padding: 6px 16px; border-radius: 999px; background: var(--team-color); color: var(--team-ink);
  font-size: 18px; font-weight: 800;
}
.tab-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 4vh 6vw; text-align: center; }
.tab-title { margin: 0; font-size: clamp(30px, 6vw, 72px); font-weight: 900; line-height: 1.1; }
.tab-sub { margin: 0; font-size: clamp(18px, 2.6vw, 30px); font-weight: 600; opacity: .9; }
.tab-kicker { margin: 0; font-size: clamp(14px, 1.8vw, 22px); font-weight: 800; letter-spacing: .08em; color: var(--tab-accent); }
.tab-btn {
  min-height: 72px; min-width: 260px; padding: 16px 32px; border: 0; border-radius: 18px;
  background: var(--tab-accent); color: var(--brand); font: 900 clamp(20px, 2.6vw, 30px) var(--font-ui); cursor: pointer;
}
.tab-btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.tab-btn:active { transform: scale(.98); }

/* picker: "Qual é este tablet?" */
.tab-picker { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3vh; padding: 4vh 5vw; text-align: center; }
.tab-pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; width: min(100%, 1100px); }
.tab-pick {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 12px; border: 0; border-radius: 20px;
  background: var(--team-color, var(--tab-card)); color: var(--team-ink, var(--tab-card-ink)); cursor: pointer;
}
.tab-pick-num { font-size: 56px; font-weight: 900; line-height: 1; }
.tab-pick-name { font-size: 18px; font-weight: 700; }

/* identificar */
.tab-identify {
  margin: 0 3vw 3vh; border-radius: 28px; background: var(--team-color); color: var(--team-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vh; padding: 4vh 4vw; text-align: center;
}
.tab-identify .tab-kicker { color: inherit; opacity: .85; }
.tab-team-name { margin: 0; font-size: clamp(40px, 9vw, 120px); font-weight: 900; line-height: 1; }
.tab-identify .tab-btn { background: var(--team-ink); color: var(--team-color); }
.tab-done { margin: 0; font-size: clamp(26px, 4vw, 48px); font-weight: 900; }

/* countdown ring (TabletSteps.ring) */
.tab-ring { position: relative; width: clamp(72px, 12vh, 120px); aspect-ratio: 1; flex: none; }
.tab-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tab-ring .trk { stroke: rgba(255, 255, 255, .2); }
.tab-ring .bar { stroke: var(--tab-accent); transition: stroke-dashoffset .25s linear; }
.tab-ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: clamp(24px, 4.4vh, 44px); font-variant-numeric: tabular-nums; }
.tab-ring.low .bar, .tab-ring.done .bar { stroke: var(--error); }

/* staff sheet + identify overlay */
.tab-staff { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.tab-staff-card { display: grid; gap: 12px; width: min(520px, 100%); padding: 24px; border-radius: 20px; background: var(--tab-card); color: var(--tab-card-ink); }
.tab-staff-card .tab-btn { width: 100%; min-width: 0; background: var(--brand); color: var(--brand-ink); }
.tab-staff-card .tab-btn.ghost { background: transparent; color: var(--tab-card-ink); }
.tab-staff-title { margin: 0; font-size: 22px; }
.tab-staff-line, .tab-staff-ask { margin: 0; font-weight: 600; }
.tab-staff-ask { font-size: 20px; font-weight: 800; }
.tab-identify-overlay {
  position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--tab-accent); color: var(--brand); text-align: center;
}
.tab-identify-num { font-size: min(50vh, 40vw); font-weight: 900; line-height: .9; }
.tab-identify-name { font-size: clamp(28px, 6vw, 80px); font-weight: 800; }
.tab-staff-body { display: grid; gap: 12px; }

/* ---- Som ---- */
.som-card { display: grid; gap: 12px; margin-bottom: var(--gap); max-width: 900px; }
.som-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.som-head h3 { margin: 0; font-size: 18px; }
.som-head .btn, .som-head .btn-big { min-height: 52px; }
.som-head .btn-big { width: auto; padding: 12px 20px; }
.som-screens, .som-clips, .som-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.som-screen, .som-clip {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 12px;
  padding: 8px 0; border-top: 1px solid var(--line);
}
.som-clip { grid-template-columns: minmax(0, 1fr) auto; }
.som-screen-name, .som-clip-name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.som-clip-text { font-weight: 500; color: var(--muted); }
.som-screen-state { font-weight: 700; font-size: 15px; }
.som-screen-state[data-level="ok"] { color: var(--ok); }
.som-screen-state[data-level="warn"] { color: var(--warn); }
.som-screen-actions, .som-clip-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.som-screen-actions .btn, .som-clip-actions .btn { min-height: 44px; }
.som-result { grid-column: 1 / -1; margin: 0; font-weight: 700; }
.som-result:empty { display: none; }
.som-lines li, .som-result { font-weight: 700; }
.som-lines li[data-level="ok"], .som-result[data-level="ok"] { color: var(--ok); }
.som-lines li[data-level="warn"], .som-result[data-level="warn"] { color: var(--warn); }
.som-lines li[data-level="error"], .som-result[data-level="error"] { color: var(--error); }
.som-lines li[data-level="wait"], .som-result[data-level="wait"] { color: var(--muted); }
@media (max-width: 599px) { .som-screen { grid-template-columns: minmax(0, 1fr); } }

/* ---------- launcher (index.html) ---------- */
body.launcher { min-height: 100vh; min-height: 100dvh; background: var(--brand); color: var(--brand-ink); }
.launcher-main { max-width: 640px; margin: 0 auto; padding: max(32px, env(safe-area-inset-top)) 16px 32px; }
.launcher-title { margin: 8px 0 4px; font-size: clamp(28px, 6vw, 44px); font-weight: 900; }
.launcher-lead { margin: 0 0 24px; font-size: 18px; opacity: .85; }
.launcher-links { display: grid; gap: 14px; }
.launcher-link {
  display: flex; align-items: center; gap: 18px; min-height: 96px; padding: 18px 22px; border-radius: 18px;
  background: var(--surface); color: var(--text); text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.launcher-link:hover { outline: 3px solid var(--accent); }
.launcher-link strong { display: block; font: 800 24px/1.2 var(--font-ui); }
.launcher-link small { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }
.launcher-icon {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
  background: var(--brand); color: var(--accent); font-size: 26px;
}
.launcher-link-quiet { min-height: 72px; margin-top: 12px; background: rgba(255, 255, 255, .88); }
.launcher-link-quiet strong { font-size: 19px; }
.launcher-version { margin-top: 28px; font-size: 13px; opacity: .6; }

/* ---------- host · Ajuda ---------- */
.aj-lead { margin: 0 0 20px; max-width: 70ch; }
.aj-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.aj-item { display: grid; gap: 6px; }
.aj-when { margin: 0; font: 800 17px/1.3 var(--font-ui); }
.aj-fix { margin: 0; max-width: 75ch; }
.aj-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.aj-where { width: 100%; border-collapse: collapse; padding: 0; overflow: hidden; }
.aj-where th, .aj-where td { padding: 8px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.aj-where thead th { border-top: 0; font: 700 12px var(--font-ui); letter-spacing: .1em; color: var(--muted); }
.aj-where tbody th { width: 30%; white-space: nowrap; font-weight: 800; }
.aj-where .aj-cmd { text-align: left; font-weight: 600; }
@media (max-width: 640px) {
  .aj-where thead { display: none; }
  .aj-where, .aj-where tbody, .aj-where tr, .aj-where th, .aj-where td { display: block; width: auto; }
  .aj-where tbody th { padding-top: 14px; border-top: 2px solid var(--line); }
  .aj-where td { border-top: 0; padding-top: 2px; padding-bottom: 2px; }
}
