:root{
  --bg:#ece8de; --paper:#f6f3ec; --ink:#1c1b18; --muted:#6a665c; --line:#d3cdbf;
  --green:#1f8a3b; --orange:#e2742a; --beige:#d7d1c1; --beige-d:#bdb6a4; --beige-l:#e6e1d4;
  --font:'Archivo',system-ui,sans-serif; --mono:'IBM Plex Mono',ui-monospace,monospace;
  --urna-font: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:18px;line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:inherit}
button{font:inherit;cursor:pointer}
.wrap{max-width:1280px;margin:0 auto;padding:0 28px}
.hidden{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.muted{color:var(--muted)} .small{font-size:15px}

/* header */
.top{border-bottom:1px solid var(--line);background:var(--paper);position:sticky;top:0;z-index:20}
.top-in{display:flex;align-items:center;justify-content:space-between;height:68px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.logo{width:40px;height:40px;color:var(--ink)}
.brand span{display:flex;flex-direction:column;line-height:1.1}
.brand strong{word-spacing:.08em;font-weight:800;font-size:19px;letter-spacing:-.01em}
.brand em{font-style:normal;font-size:14px;color:var(--muted)}
.nav{display:flex;gap:26px}
.nav a{text-decoration:none;font-weight:600;font-size:16px}
.nav a:hover{text-decoration:underline;text-underline-offset:4px}

/* intro */
.intro{padding-top:48px;padding-bottom:28px}
.kicker{font-family:var(--mono);font-size:14px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:0 0 12px}
h1{word-spacing:.08em;font-size:clamp(34px,4.6vw,58px);line-height:1.04;letter-spacing:-.025em;margin:0 0 18px;max-width:16ch;font-weight:800}
.lede{font-size:20px;max-width:62ch;margin:0}

/* stage */
.stage{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:32px;padding-top:20px;padding-bottom:64px;align-items:start}
.urna-col{min-width:0}

/* ---------- URNA ---------- */
.urna{
  display:grid;grid-template-columns:1.62fr 1fr;gap:22px;padding:26px;border-radius:18px;
  background:linear-gradient(180deg,var(--beige-l),var(--beige) 40%,#cfc8b6);
  box-shadow:0 1px 0 #fff inset,0 -3px 0 rgba(0,0,0,.08) inset,0 30px 50px -28px rgba(40,34,20,.55),0 2px 4px rgba(0,0,0,.12);
  border:1px solid var(--beige-d);
}
.urna-screen-bezel{background:#2a2a28;padding:14px;border-radius:10px;box-shadow:inset 0 2px 8px rgba(0,0,0,.6);display:flex;flex-direction:column}
.screen{
  position:relative;flex:1;min-height:340px;background:#fbfbf7;border-radius:3px;overflow:hidden;
  font-family:var(--urna-font);color:#111;container-type:size;user-select:none;
}
.urna-pad{background:#2d2c29;border-radius:10px;padding:16px 16px 18px;display:flex;flex-direction:column;gap:14px;box-shadow:inset 0 2px 6px rgba(0,0,0,.5)}
.je{display:flex;align-items:center;gap:10px;color:#e9e6dc}
.je-emblem{width:38px;height:38px;flex:none}
.je span{font-family:var(--urna-font);font-weight:700;font-size:14px;letter-spacing:.08em;line-height:1.15}
.keys{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.k{
  aspect-ratio:1.45/1;border:0;border-radius:6px;background:linear-gradient(#1a1a19,#0d0d0c);color:#fff;
  font-family:var(--urna-font);font-size:clamp(20px,2.2vw,30px);font-weight:700;
  box-shadow:0 3px 0 #000,0 4px 6px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.12);transition:transform .05s,box-shadow .05s;
}
.k0{grid-column:2}
.k,.a,.cab-x{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.k:focus:not(:focus-visible),.a:focus:not(:focus-visible){outline:none}
.k:active,.k.pressed,.a:active,.a.pressed{transform:translateY(2px);box-shadow:0 1px 0 #000,inset 0 1px 0 rgba(255,255,255,.1)}
.acts{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:8px;align-items:end;margin-top:4px}
.a{border:0;border-radius:6px;font-family:var(--urna-font);font-weight:700;font-size:clamp(11px,1.05vw,14px);letter-spacing:.02em;padding:0 2px;height:52px;box-shadow:0 3px 0 rgba(0,0,0,.6),0 4px 6px rgba(0,0,0,.35);transition:transform .05s,box-shadow .05s}
.branco{background:#f5f5f2;color:#111}
.corrige{background:var(--orange);color:#111}
.confirma{background:var(--green);color:#111;height:66px}
.kbd-hint{font-size:15px;color:var(--muted);margin:14px 4px 0}
kbd{font-family:var(--mono);font-size:13px;background:var(--paper);border:1px solid var(--line);border-bottom-width:2px;border-radius:4px;padding:1px 6px}
.linkbtn{background:none;border:0;padding:0;color:var(--ink);text-decoration:underline;text-underline-offset:3px;font-size:15px;font-weight:600}

/* ---------- SCREEN CONTENT (cq units) ---------- */
.scr{position:absolute;inset:0;display:flex;flex-direction:column;padding:3.2cqh 3.2cqw 0}
.scr-body{flex:1;display:flex;gap:2cqw;min-height:0;overflow:hidden}
.scr-main{flex:1;min-width:0;display:flex;flex-direction:column}
.seu{font-size:3.6cqh;font-weight:700;height:5cqh;letter-spacing:.01em}
.cargo{font-size:6.4cqh;text-align:center;margin:1.5cqh 0 4cqh;font-weight:400}
.cargo small{display:block;font-size:3.6cqh;color:#333;margin-top:.4cqh}
.numrow{display:flex;align-items:center;gap:1.6cqw;font-size:4cqh;margin-bottom:3cqh}
.boxes{display:flex;gap:.9cqw}
.box{width:5.4cqw;height:9cqh;border:1.5px solid #222;display:flex;align-items:center;justify-content:center;font-size:6.6cqh;font-weight:700;background:#fff}
.box.cur{animation:blink 1s steps(1) infinite}
@keyframes blink{50%{background:#222}}
.info{font-size:3.8cqh;line-height:1.4}
.info .l{display:inline-block;min-width:13cqw}
.info b{font-weight:700}
.scr .big{font-size:8cqh;font-weight:700;text-align:center;margin-top:3cqh;letter-spacing:.01em}
.big.blink{animation:blink2 1.1s steps(1) infinite}
@keyframes blink2{50%{opacity:.25}}
.warn{font-size:5cqh;font-weight:700;margin:1cqh 0 1.5cqh}
.note{font-size:3.2cqh;color:#333;text-align:center;margin-top:1.5cqh}
.photos{width:24cqw;display:flex;flex-direction:column;align-items:flex-end;gap:1.4cqh;padding-top:1cqh}
.ph{display:flex;flex-direction:column;align-items:center}
.ph img{display:block;border:1px solid #333;object-fit:cover;background:#eee}
.ph.t img{width:19cqw;height:25.3cqw}
.ph.v img{width:12.5cqw;height:16.6cqw}
.ph.v2 img{width:10cqw;height:13.3cqw}
.ph span{font-size:2.5cqh;margin-top:.5cqh;text-align:center;max-width:20cqw;line-height:1.15}
.bottom{border-top:1.5px solid #111;padding:1.8cqh 0 2.4cqh;font-size:3.35cqh;line-height:1.45;margin:0 -1cqw}
.bottom b{font-weight:700}
.center-screen{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:5%}
.fim{font-size:26cqh;font-weight:700;letter-spacing:.02em;line-height:1}
.votou{font-size:4.5cqh;margin-top:2cqh;color:#333}
.start-t{font-size:6cqh;font-weight:700;margin-bottom:2cqh}
.start-p{font-size:3.8cqh;color:#333;max-width:70cqw;margin:0 0 4cqh}
.start-b{font-family:var(--font);font-size:3.8cqh;font-weight:700;background:var(--green);color:#fff;border:0;border-radius:1cqh;padding:2cqh 5cqw}
.progress{position:absolute;left:3.2cqw;right:3.2cqw;bottom:40%;height:2cqh;border:1.5px solid #111}
.progress i{display:block;height:100%;background:#111;width:0;transition:width .9s linear}
.gravando{font-size:5cqh;font-weight:700;position:absolute;top:36%;left:0;right:0;text-align:center}

/* side */
.side{display:flex;flex-direction:column;gap:18px;position:sticky;top:88px}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:20px 22px}
.panel-head{display:flex;justify-content:space-between;align-items:baseline}
.panel-t{font-size:17px;font-weight:800;margin:0 0 12px;word-spacing:.1em}
.steps{list-style:none;margin:0;padding:0;counter-reset:s}
.steps li{counter-increment:s;display:flex;align-items:center;gap:12px;padding:8px 0;font-size:17px;border-top:1px solid var(--line);color:var(--muted)}
.steps li:first-child{border-top:0}
.steps li::before{content:counter(s);font-family:var(--mono);font-size:14px;width:28px;height:28px;border-radius:50%;border:1.5px solid currentColor;display:flex;align-items:center;justify-content:center;flex:none}
.steps li .dig{margin-left:auto;font-family:var(--mono);font-size:13px}
.steps li.now{color:var(--ink);font-weight:700}
.steps li.now::before{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.steps li.done{color:var(--green)}
.steps li.done::before{content:'✓';background:var(--green);border-color:var(--green);color:#fff}
.colinha,.result{list-style:none;margin:10px 0 0;padding:0}
.colinha li,.result li{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px dashed var(--line);font-size:16px}
.colinha li:first-child,.result li:first-child{border-top:0}
.colinha .c,.result .c{color:var(--muted);font-size:14px;display:block;line-height:1.2}
.colinha .n,.result .n{font-family:var(--mono);font-weight:600;font-size:20px;white-space:nowrap}
.colinha .nm,.result .nm{font-weight:600;line-height:1.25}
.colinha li.empty{color:var(--muted);font-size:15px}
.btn{margin-top:14px;background:var(--ink);color:var(--paper);border:0;border-radius:8px;padding:12px 18px;font-weight:700;font-size:16px}
.btn.ghost{background:transparent;color:var(--ink);border:1.5px solid var(--ink)}

/* candidates */
.cands{padding-top:24px;padding-bottom:56px;border-top:1px solid var(--line)}
.sec-head{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px;margin:28px 0 18px}
h2{word-spacing:.08em;font-size:clamp(28px,3vw,38px);letter-spacing:-.02em;margin:0;font-weight:800;line-height:1.1}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.tab{background:transparent;border:1.5px solid var(--ink);border-radius:999px;padding:9px 18px;font-weight:600;font-size:16px;color:var(--ink)}
.tab[aria-selected=true]{background:var(--ink);color:var(--paper)}
.tab .ct{font-family:var(--mono);font-size:13px;opacity:.7;margin-left:6px}
.filters{display:flex;gap:12px;margin-bottom:22px;flex-wrap:wrap}
.search{flex:1;min-width:240px}
.search input,.filters select{width:100%;font:inherit;font-size:17px;padding:13px 16px;border:1.5px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink)}
.filters select{width:auto;min-width:200px}
.search input:focus,.filters select:focus{outline:2px solid var(--ink);outline-offset:1px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}
.card{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:14px;display:grid;grid-template-columns:78px 1fr;gap:14px;align-items:start}
.card img{width:78px;height:104px;object-fit:cover;border-radius:6px;background:#ddd}
.card .num{font-family:var(--mono);font-weight:600;font-size:24px;line-height:1}
.card .nm{font-weight:700;font-size:17px;line-height:1.2;margin:6px 0 4px;overflow-wrap:anywhere}
.card .pt{font-size:14px;color:var(--muted);line-height:1.3}
.card .vc{font-size:13px;color:var(--muted);line-height:1.3;margin-top:4px}
.card .add{grid-column:1/-1;background:transparent;border:1.5px solid var(--line);border-radius:8px;padding:8px;font-weight:600;font-size:15px;color:var(--ink)}
.card .add:hover{border-color:var(--ink)}
.card .add.on{background:var(--green);border-color:var(--green);color:#fff}
.card .sit{display:inline-block;font-size:12px;font-weight:700;background:#f3e3c8;color:#6b4a12;border-radius:4px;padding:1px 6px;margin-top:4px}
.more{text-align:center;margin-top:22px}
.empty-grid{grid-column:1/-1;color:var(--muted);padding:30px 0;text-align:center}

/* rules */
.rules{padding-top:40px;padding-bottom:64px;border-top:1px solid var(--line)}
.rule-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:22px}
.rule-grid article{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:22px}
.rule-grid h3{margin:0 0 8px;font-size:19px}
.rule-grid p{margin:0;font-size:17px}
b.g{color:var(--green)} b.o{color:#b85514}

.foot{background:#1c1b18;color:#d9d5ca;padding:40px 0;font-size:15px}
.foot p{max-width:90ch;margin:0 0 10px}
.foot .muted{color:#9a958a}

@media (max-width:1080px){
  .stage{grid-template-columns:1fr}
  .side{position:static;display:grid;grid-template-columns:1fr 1fr}
  .rule-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  .wrap{padding:0 16px}
  .nav{gap:14px}.nav a{font-size:15px}
  .brand em{display:none}
  .brand strong{white-space:nowrap}
  .urna{grid-template-columns:1fr;padding:14px;gap:14px}
  .urna-screen-bezel{padding:8px}
  .screen{flex:none;aspect-ratio:4/3;min-height:0}
  .urna-pad{padding:12px}
  .keys{gap:8px}
  .k{aspect-ratio:2/1;font-size:24px}
  .a{font-size:14px}
  .side{grid-template-columns:1fr}
  .rule-grid{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  .lede{font-size:18px}
}
@media (prefers-reduced-motion:reduce){.box.cur,.big.blink{animation:none}}

/* ---------- barra da cabine (tela cheia) ---------- */
.cab-bar{display:none}
.cab-x{background:rgba(0,0,0,.08);border:0;border-radius:999px;padding:8px 16px;font-weight:700;font-size:15px;color:var(--ink)}
.cab-x.dark{background:var(--ink);color:var(--paper)}
body.cabine{overflow:hidden}
body.cabine .urna{
  position:fixed;inset:0;z-index:100;border-radius:0;border:0;margin:0;
  height:100vh;height:100dvh;padding:10px 10px calc(10px + env(safe-area-inset-bottom));
  grid-template-columns:1fr;grid-template-rows:auto auto 1fr;gap:10px;
}
body.cabine .cab-bar{display:flex;align-items:center;justify-content:space-between;padding:calc(env(safe-area-inset-top)) 4px 0}
.cab-step{font-family:var(--mono);font-size:14px;font-weight:600;color:#3d3a33}
body.cabine .urna-screen-bezel{padding:6px}
body.cabine .screen{flex:none;aspect-ratio:10/9;min-height:0;width:100%;max-height:48dvh;margin:0 auto}
body.cabine .urna-pad{min-height:0;padding:10px;gap:8px}
body.cabine .je{display:none}
body.cabine .keys{flex:1;grid-template-rows:repeat(4,1fr);gap:8px;min-height:0}
body.cabine .k{aspect-ratio:auto;height:100%;font-size:clamp(22px,4.2dvh,34px)}
body.cabine .acts{grid-template-columns:1fr 1fr 1.3fr;margin-top:2px}
body.cabine .a{height:clamp(48px,8.5dvh,72px);font-size:15px}
body.cabine .confirma{height:clamp(56px,10dvh,84px)}
@media (min-width:761px){
  body.cabine .urna{grid-template-columns:1.62fr 1fr;grid-template-rows:auto 1fr;padding:24px}
  body.cabine .cab-bar{grid-column:1/-1}
  body.cabine .screen{max-height:none;aspect-ratio:auto;flex:1}
  body.cabine .je{display:flex}
}

/* ---------- botões de compartilhar ---------- */
.btn.full{width:100%}
.btn.wa{background:#1f8a3b;color:#fff}
.btn.ig{background:linear-gradient(90deg,#c13584,#e1306c 45%,#f77737);color:#fff}
.btn.big{width:100%;padding:16px 18px;font-size:18px;margin:0}
#resultPanel .btn.wa{width:100%;padding:16px;font-size:18px;margin:6px 0 10px}
.restart{color:#9a958a;font-size:14px}

/* ---------- folha de compartilhamento ---------- */
.sheet{position:fixed;inset:0;z-index:200;background:rgba(20,18,14,.62);display:flex;align-items:flex-end;justify-content:center}
.sheet-card{background:var(--paper);width:100%;max-width:880px;max-height:94dvh;overflow:auto;border-radius:18px 18px 0 0;padding:20px 20px calc(20px + env(safe-area-inset-bottom))}
@media (min-width:761px){.sheet{align-items:center}.sheet-card{border-radius:18px}}
.sheet-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.sheet-head h2{font-size:26px}
.sheet-body{display:grid;grid-template-columns:260px 1fr;gap:22px;align-items:start}
.sheet-prev img{width:100%;border-radius:12px;box-shadow:0 10px 30px -12px rgba(0,0,0,.45);background:#ddd;aspect-ratio:9/16;object-fit:cover}
.sheet-acts p{margin:0 0 4px}
@media (max-width:760px){
  .sheet-body{grid-template-columns:1fr}
  .sheet-prev{display:flex;justify-content:center}
  .sheet-prev img{width:46%;max-width:210px}
}

/* ---------- tela no padrão do software oficial ---------- */
.scr{padding:0 2.6% 0}
.prog{display:flex;gap:.5cqw;margin:1.6cqh -1.2cqw 0;height:5.2cqh}
.prog span{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;font-size:2cqh;letter-spacing:-.02em;font-weight:700;white-space:nowrap;overflow:hidden;background:#d6d6d3;color:#8b8b88;clip-path:polygon(0 0,calc(100% - 1.6cqh) 0,100% 50%,calc(100% - 1.6cqh) 100%,0 100%,1.6cqh 50%);padding:0 1.2cqh 0 1.9cqh}
.prog span:first-child{clip-path:polygon(0 0,calc(100% - 1.6cqh) 0,100% 50%,calc(100% - 1.6cqh) 100%,0 100%)}
.prog span.pd{background:#7a7a77;color:#fff}
.prog span.pc{background:#111;color:#fff}
.scr-body{padding-top:3cqh}
.cargo{font-size:6.2cqh;font-weight:700;text-align:left;margin:0 0 3cqh}
.boxes{margin-bottom:3.6cqh}
.box{width:6cqw;height:10cqh;font-size:7.4cqh;font-weight:400;border:1.5px solid #333}
.box.off{background:#a9a9a6;border-color:#888}
.ln{font-size:4.4cqh;line-height:1.25;margin-bottom:2.4cqh}
.ln.nm{font-weight:400}
.ln.sm{font-size:3.6cqh;margin-bottom:1.4cqh}
.ln.gapl{height:4cqh;margin:0}
.msg{font-size:4.4cqh;margin:0 0 3cqh}
.scr .big{position:absolute;left:0;right:30cqw;bottom:22cqh;text-align:center;font-size:7.6cqh;font-weight:400;color:#555;margin:0;letter-spacing:.02em}
.scr .big.br{position:static;color:#111;text-align:left;margin-top:6cqh;padding-left:6cqw}
.bottom{border-top:1.5px solid #111;padding:1.4cqh 0 2cqh;margin:0 -2.6cqw;padding-left:1.2cqw;font-size:3.3cqh;line-height:1.35}
.bottom .bl{padding-left:7cqw;display:flex;justify-content:space-between;padding-right:3cqw}
.bottom .vl{color:#111}
.subs{display:flex;gap:1.2cqw}
.photos{padding-top:0}

/* ---------- ajuda da colinha ---------- */
.helper{display:flex;align-items:center;gap:12px;margin-top:10px;background:#3a3935;color:#f1eee6;border-radius:8px;padding:10px 12px;font-size:16px}
.hl-t{color:#c9c4b7;font-size:14px}
.hl-n{font-family:var(--mono);font-weight:600;font-size:20px;color:#fff}
.hl-nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.helper .hl-t:first-child:nth-last-child(2){flex:1}
.hl-b{background:#f6f3ec;color:#1c1b18;border:0;border-radius:999px;padding:8px 14px;font-weight:700;font-size:15px;white-space:nowrap}
body.cabine .helper{margin-top:6px;padding:8px 10px;font-size:15px}

/* ---------- procurar candidato ---------- */
.plist{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;margin-top:14px}
.pi{display:flex;align-items:center;gap:12px;text-align:left;background:#fff;border:1.5px solid var(--line);border-radius:10px;padding:8px 10px;color:var(--ink)}
.pi:hover{border-color:var(--ink)}
.pi img{width:46px;height:61px;object-fit:cover;border-radius:4px;background:#ddd;flex:none}
.pn{font-family:var(--mono);font-weight:600;font-size:20px;min-width:62px}
.pnm{font-weight:700;font-size:16px;line-height:1.2}
.pnm small{display:block;font-weight:500;color:var(--muted);font-size:14px}
#picker .search input{margin-top:2px}

/* ---------- chamadas ---------- */
.ctas{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.big-cta{margin:0;padding:16px 26px;font-size:18px;text-decoration:none;display:inline-flex;align-items:center}
.btn.big-cta:not(.ghost){background:var(--green);color:#fff}
@media (max-width:760px){
  .intro{padding-top:28px}
  .ctas{flex-direction:column}
  .big-cta{justify-content:center}
}

.screen{container-type:normal}
.scr,.center-screen,.scr-wrap{container-type:size}
.scr-wrap{position:absolute;inset:0}
.sheet.loading .sheet-prev img{animation:pulse 1s ease-in-out infinite alternate}
@keyframes pulse{from{opacity:.45}to{opacity:1}}
.sheet-acts{display:flex;flex-direction:column;gap:10px}
.btn.dark{background:#1c1b18;color:#fff}

/* ---------- cabine no celular: layout que nunca sobrepõe as teclas ---------- */
@media (max-width:760px){
  body.cabine .urna{display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;height:100dvh;overflow:hidden;
    --kh:clamp(40px,7.4dvh,64px);--ah:clamp(46px,8dvh,70px)}
  body.cabine .urna-screen-bezel{min-height:0;padding:5px}
  body.cabine .screen{flex:1 1 auto;min-height:150px;max-height:none;aspect-ratio:auto;width:100%}
  body.cabine .urna-pad{flex:none;padding:8px;gap:8px}
  body.cabine .keys{flex:none;grid-template-rows:repeat(4,var(--kh));gap:7px}
  body.cabine .k{height:var(--kh);aspect-ratio:auto;font-size:clamp(22px,4dvh,32px)}
  body.cabine .acts{margin-top:0;align-items:stretch}
  body.cabine .a,body.cabine .confirma{height:var(--ah)}
  body.cabine .helper{margin-top:5px;padding:6px 10px;font-size:14px}
  body.cabine .helper .btn,body.cabine .helper button{padding:8px 12px;font-size:14px}
}
/* celular deitado: tela à esquerda, teclado à direita */
@media (orientation:landscape) and (max-height:560px){
  body.cabine .urna{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr);grid-template-rows:auto minmax(0,1fr);gap:8px;
    height:100dvh;overflow:hidden;padding:6px max(10px,env(safe-area-inset-right)) 6px max(10px,env(safe-area-inset-left));
    --kh:calc((100dvh - 46px - 16px - 3*6px - 8px - 52px - 16px) / 4);--ah:52px}
  body.cabine .cab-bar{grid-column:1/-1;padding-top:0}
  body.cabine .cab-x{padding:4px 14px}
  body.cabine .urna-screen-bezel{min-height:0;padding:5px}
  body.cabine .screen{flex:1 1 auto;min-height:0;max-height:none;aspect-ratio:auto}
  body.cabine .urna-pad{min-height:0;padding:8px;gap:8px;justify-content:center}
  body.cabine .je{display:none}
  body.cabine .keys{flex:none;grid-template-rows:repeat(4,var(--kh));gap:6px}
  body.cabine .k{height:var(--kh);aspect-ratio:auto;font-size:clamp(18px,6dvh,28px)}
  body.cabine .acts{margin-top:0}
  body.cabine .a,body.cabine .confirma{height:var(--ah);font-size:13px}
  body.cabine .helper{margin-top:4px;padding:4px 8px;font-size:13px}
}
@media (max-width:760px){
  body.cabine .box{width:9cqw;height:15cqh;font-size:11cqh;border-width:2px}
  body.cabine .boxes{gap:1.4cqw}
}
