/* Prancheta tática — segue o DESIGN.md do Simonetti Stats (seção "Prancheta") */
:root{
  --fundo:#0A0A11; --s1:#12121B; --s2:#1B1B27; --s3:#282837;
  --linha:rgba(255,255,255,.07); --linha-forte:rgba(255,255,255,.15);
  --texto:#EEEDF4; --texto-2:#B5B3C4; --texto-3:#8B899C;
  --acao:#FFD72E; --acao-h:#FFE771; --acao-tinta:#17132B;
  --f:"Geist",system-ui,sans-serif;
  --ease:cubic-bezier(.2,.7,.3,1);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{background:var(--fundo);color:var(--texto);font:400 14px/1.5 var(--f);font-feature-settings:"tnum";-webkit-font-smoothing:antialiased;min-height:100vh}
::selection{background:var(--acao);color:var(--acao-tinta)}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer}
.i{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
:focus{outline:none}
:focus-visible{outline:2px solid var(--texto);outline-offset:2px;border-radius:10px}
.only-m{display:none!important}
[hidden]{display:none!important}

/* botões */
.btn{height:40px;padding:0 14px;border-radius:10px;background:var(--s2);color:var(--texto);display:inline-flex;align-items:center;justify-content:center;gap:8px;font:500 14px var(--f);white-space:nowrap;transition:background .12s var(--ease)}
.btn:hover{background:var(--s3)}
.btn.primary{background:var(--acao);color:var(--acao-tinta);font-weight:600}
.btn.primary:hover{background:var(--acao-h)}
.btn.icon{width:40px;padding:0}
.btn.sm{height:32px;padding:0 10px;font-size:13px;border-radius:8px}
.btn.sm.icon{width:32px;padding:0}
.btn[disabled]{opacity:.4;pointer-events:none}
h2{font:600 16px/1.3 var(--f);letter-spacing:-.01em}
h3{font:700 18px/1.2 var(--f);letter-spacing:-.015em}

.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
html,body{height:100%;overflow:hidden;overscroll-behavior:none}

/* o campo: a tela inteira */
.board{position:fixed;inset:0;background:var(--fundo);touch-action:none;user-select:none;-webkit-user-select:none}
.board canvas{display:block;width:100%;height:100%}
.board.t-seta canvas,.board.t-trac canvas,.board.t-area canvas{cursor:crosshair}
.board.t-texto canvas{cursor:text}

/* controles flutuantes nos cantos (janela: um tom acima, contorno de 1px) */
.hud{position:fixed;z-index:10;display:flex;align-items:center;gap:8px;pointer-events:none}
.hud > *{pointer-events:auto}
.hud.tl{top:16px;left:16px;right:560px}
.hud.tr{top:16px;right:16px}
.hud.bl{bottom:16px;left:16px}
.hud.br{bottom:16px;right:16px}
.hbox{display:flex;align-items:center;gap:2px;height:48px;padding:4px;background:var(--s1);border:1px solid var(--linha-forte);border-radius:12px;min-width:0}
.hsep{width:1px;height:22px;background:var(--linha-forte);margin:0 4px}
.hud .btn.primary{height:48px;border-radius:12px;padding:0 16px}
.brand{gap:10px;padding:0 14px 0 12px;font:600 13px var(--f);letter-spacing:.12em;white-space:nowrap;color:var(--texto);transition:background .12s var(--ease)}
.brand:hover{background:var(--s2)}
.brand b{font-weight:800}
.logo{width:22px;height:22px;border-radius:5px;overflow:hidden;display:block;flex:none}
.logo svg{width:100%;height:100%;display:block}

/* fichas dos times */
.teams{overflow-x:auto;scrollbar-width:none}
.teams::-webkit-scrollbar{display:none}
.tchip{height:38px;display:flex;align-items:center;gap:8px;padding:0 10px 0 6px;border-radius:8px;white-space:nowrap;flex:none;transition:background .12s var(--ease)}
.tchip:hover,.tchip.on{background:var(--s2)}
.tchip img{width:26px;height:26px;object-fit:contain;flex:none}
.tchip .nm{font:600 14px var(--f)}
.tchip .fm{font:500 13px var(--f);color:var(--texto-3)}
.tchip .dot{width:10px;height:10px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
.tchip .i{width:14px;height:14px;color:var(--texto-3);transform:rotate(90deg)}
.tvs{font:400 13px var(--f);color:var(--texto-3);padding:0 2px}
.tadd{height:38px;display:flex;align-items:center;gap:6px;padding:0 12px 0 10px;border-radius:8px;font:500 13px var(--f);color:var(--texto-2);white-space:nowrap;flex:none;transition:background .12s var(--ease)}
.tadd:hover{background:var(--s2);color:var(--texto)}

/* seletor segmentado */
.seg{display:flex;background:var(--fundo);border-radius:10px;padding:3px;gap:2px}
.seg button{flex:1;height:32px;padding:0 10px;border-radius:8px;font:500 13px var(--f);color:var(--texto-2);display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:background .12s var(--ease)}
.seg button:hover{color:var(--texto)}
.seg button.on{background:var(--s3);color:var(--texto)}
.seg.ic{background:none;padding:0}
.seg.ic button{width:38px;height:38px;padding:0;flex:none}
.seg.ic .i{width:18px;height:18px}

/* ferramentas */
.tool{height:38px;padding:0 12px 0 10px;border-radius:8px;display:inline-flex;align-items:center;gap:7px;font:500 13px var(--f);color:var(--texto-2);transition:background .12s var(--ease),color .12s var(--ease)}
.tool:hover{color:var(--texto);background:var(--s2)}
.tool.on{background:var(--s3);color:var(--texto)}
.tool .ic{display:flex}
.tool .i{width:18px;height:18px}
.hist .btn.sm.icon{width:38px;height:38px;background:none;color:var(--texto-2)}
.hist .btn.sm.icon:hover{background:var(--s2);color:var(--texto)}
.hbtn-l{gap:8px;padding:0 14px 0 12px;font:500 14px var(--f);color:var(--texto);transition:background .12s var(--ease)}
.hbtn-l:hover,.hbtn-l[aria-expanded="true"]{background:var(--s2)}
.promo-l{font-size:13px;color:var(--texto-2)}
.promo-l .i{width:14px;height:14px;color:var(--texto-3)}
.mos{display:grid;grid-template-columns:repeat(4,4px);grid-auto-rows:4px;border-radius:3px;overflow:hidden;flex:none}
.mos i{display:block}

/* barra do item selecionado */
.selbar{position:absolute;left:50%;top:76px;transform:translateX(-50%);display:flex;align-items:center;gap:2px;padding:4px;background:var(--s2);border:1px solid var(--linha-forte);border-radius:12px;z-index:5;white-space:nowrap}
.selbar .btn{height:32px;padding:0 10px;font-size:13px;border-radius:8px;background:none;color:var(--texto-2)}
.selbar .btn:hover{background:var(--s3);color:var(--texto)}
.selbar .btn.on{background:var(--s3);color:var(--texto)}
.selbar .sep{width:1px;height:18px;background:var(--linha-forte);margin:0 4px}
.selbar .who{font:600 13px var(--f);padding:0 8px 0 6px;color:var(--texto);max-width:160px;overflow:hidden;text-overflow:ellipsis}

.hint{white-space:nowrap;position:absolute;left:50%;bottom:84px;transform:translateX(-50%);display:flex;align-items:center;gap:8px;height:32px;padding:0 12px;border-radius:999px;background:var(--s2);font:500 13px var(--f);color:var(--texto-2);pointer-events:none;transition:opacity .16s;z-index:4}
.hint.off{opacity:0}

/* edição no próprio campo */
.ed{position:absolute;z-index:6;background:rgba(10,10,17,.72);border:1px dashed rgba(255,255,255,.7);border-radius:4px;color:#fff;resize:none;overflow:hidden;outline:none;padding:2px 4px;margin:-3px 0 0 -5px}
.ed.txt{font-weight:500;line-height:1.35;background:rgba(10,10,17,.6);border-radius:8px;padding:6px 9px;margin:-7px 0 0 -10px}
.ed.nm{font-weight:700;text-align:center;letter-spacing:.02em;height:auto;text-transform:uppercase}

/* painéis flutuantes (time, elenco, ajustes) */
.pop{position:fixed;z-index:20;background:var(--s2);border:1px solid var(--linha-forte);border-radius:16px;padding:16px;animation:fade .12s var(--ease)}
#pnlTeam{top:72px;width:340px}
.roster-pop{left:16px;bottom:72px;width:340px;max-height:calc(100vh - 160px);display:flex;flex-direction:column}
.pop-h{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.pop-h h2{flex:1}
.pop .btn.x{width:32px;height:32px;padding:0;background:var(--s3)}
.pop .seg{background:var(--s1)}
.pop .seg button.on{background:var(--s3)}
#segRoster{margin-bottom:8px}
.leg{font-size:12px;color:var(--texto-3)}
.fld{display:flex;flex-direction:column;gap:6px}
.fld + .fld{margin-top:14px}
.fld > .lbl{font-size:12px;color:var(--texto-3)}
.btn.full{width:100%}

/* time */
.team{display:flex;flex-direction:column;gap:8px}
.club{display:flex;align-items:center;gap:10px;height:52px;padding:0 10px 0 8px;background:var(--s3);border-radius:10px;width:100%;text-align:left;transition:background .12s var(--ease)}
.club:hover{background:#33334a}
.club img{width:32px;height:32px;object-fit:contain;flex:none}
.club .tx{flex:1;min-width:0;display:flex;flex-direction:column}
.club .nm{font:600 14px/1.25 var(--f);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.club .lg{font-size:12px;line-height:1.3;color:var(--texto-3)}
.club .tag{font:500 12px var(--f);color:var(--texto-3);flex:none}
.team-row{display:flex;gap:8px;align-items:center}
.fsel{flex:1;display:flex;align-items:center;gap:6px;height:38px;padding:0 4px 0 12px;background:var(--s1);border-radius:10px;font-size:13px;color:var(--texto-3);min-width:0}
.fsel select{flex:1;min-width:0;background:transparent;border:0;color:var(--texto);font:500 13px var(--f);height:100%;cursor:pointer}
.fsel select option{background:var(--s2)}
.fsel:hover{background:var(--s3)}
.cores{display:flex;gap:4px;height:38px;align-items:center;padding:0 6px;background:var(--s1);border-radius:10px}
.cor{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.cor i{width:18px;height:18px;border-radius:50%;display:block;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.cor.on{box-shadow:0 0 0 2px var(--texto)}
.team-rm{align-self:flex-start;margin-top:4px;font:500 13px var(--f);color:var(--texto-3);height:32px;padding:0 8px;border-radius:8px;display:inline-flex;align-items:center;gap:6px}
.team-rm:hover{background:var(--s3);color:var(--texto)}

/* elenco */
.roster{display:flex;flex-direction:column;overflow-y:auto;margin:0 -8px;overscroll-behavior:contain;min-height:0}
.pl{display:flex;align-items:center;gap:10px;height:44px;padding:0 8px;border-radius:10px;text-align:left;width:100%;position:relative;cursor:grab;touch-action:pan-y;flex:none;transition:background .12s var(--ease)}
.pl::after{content:"";position:absolute;left:8px;right:8px;bottom:0;height:1px;background:var(--linha)}
.pl:hover{background:var(--s3)}
.pl:hover::after{opacity:0}
.pl .ps{width:36px;height:22px;border-radius:6px;background:var(--s1);color:var(--texto-3);font:600 12px var(--f);display:flex;align-items:center;justify-content:center;flex:none}
.pl .nm{flex:1;min-width:0;font:600 14px var(--f);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl .mn{font-size:12px;color:var(--texto-3);white-space:nowrap}
.pl.on{opacity:.4;cursor:default}
.pl.on .mn::before{content:"em campo · "}
.roster .wgroup{flex:none;padding:12px 8px 4px}
.roster .wgroup:first-child{padding-top:2px}
.roster-empty{font-size:13px;color:var(--texto-3);padding:8px 0}
.ghost{position:fixed;z-index:60;pointer-events:none;height:32px;padding:0 12px;border-radius:999px;background:var(--texto);color:var(--fundo);font:600 13px/32px var(--f);transform:translate(-50%,-140%);white-space:nowrap}
.btn.light{background:var(--texto);color:var(--fundo);font-weight:600}
.btn.light:hover{background:#fff}

/* janelas */
.veil{position:fixed;inset:0;background:rgba(10,10,17,.68);z-index:40;animation:fade .16s var(--ease)}
.win{position:fixed;z-index:50;background:var(--s2);border:1px solid var(--linha-forte);border-radius:16px;animation:pop .16s var(--ease);left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;overflow:hidden}
@keyframes fade{from{opacity:0}}
@keyframes pop{from{opacity:0;transform:translate(-50%,-48%)}}
@keyframes up{from{transform:translateY(40px);opacity:0}}
.grab{width:36px;height:4px;border-radius:2px;background:var(--s3);margin:8px auto 4px}
.win-top{padding:20px 20px 10px;display:flex;flex-direction:column;gap:10px}
.win-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.win-sub{font-size:12px;color:var(--texto-3);margin-top:2px}
.win .btn.x{width:32px;height:32px;padding:0;background:var(--s3)}
.picker{width:min(560px,calc(100vw - 48px));height:min(640px,calc(100vh - 48px))}
.search{display:flex;align-items:center;gap:8px;height:40px;padding:0 12px;background:var(--s1);border-radius:10px;color:var(--texto-3)}
.search input{flex:1;background:none;border:0;color:var(--texto);font-size:14px;min-width:0}
.search input::placeholder{color:var(--texto-3)}
.search:focus-within{outline:2px solid var(--texto);outline-offset:2px}
.chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{height:32px;padding:0 12px;border-radius:999px;background:var(--s3);font:500 13px var(--f);color:var(--texto-2);white-space:nowrap;flex:none;transition:background .12s var(--ease)}
.chip:hover{background:#33334a;color:var(--texto)}
.chip.on{background:var(--texto);color:var(--fundo);font-weight:600}
.win-rows{flex:1;overflow-y:auto;padding:4px 12px 16px;overscroll-behavior:contain}
.wgroup{font:600 12px var(--f);color:var(--texto-3);padding:14px 8px 6px}
.row{display:flex;align-items:center;gap:12px;height:52px;padding:0 8px;border-radius:10px;width:100%;text-align:left;position:relative;transition:background .12s var(--ease)}
.row::after{content:"";position:absolute;left:8px;right:8px;bottom:0;height:1px;background:var(--linha)}
.row:hover,.row.sel{background:var(--s3)}
.row:hover::after{opacity:0}
.row img{width:28px;height:28px;object-fit:contain;flex:none}
.row .ps{width:36px;height:22px;border-radius:6px;background:var(--s1);color:var(--texto-3);font:600 12px var(--f);display:flex;align-items:center;justify-content:center;flex:none}
.row .tx{flex:1;min-width:0}
.row .nm{font:600 14px/1.3 var(--f);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.row .mt{font-size:12px;color:var(--texto-3);white-space:nowrap}
.row.dim .nm{color:var(--texto-2)}

/* prévia da imagem */
.preview{width:432px;padding:20px}
.pv-img{width:392px;height:auto;border-radius:10px;display:block;margin:14px auto 16px;background:var(--fundo)}
.pv-act{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pv-act .btn.alt{background:var(--s3)}
.pv-act .btn.alt:hover{background:#33334a}
/* janela de membro: o que se libera, com o item tentado em destaque */
.membro-win{width:420px;padding:32px 24px 24px;gap:22px}
.mb-x{position:absolute;top:14px;right:14px}
.mb-top{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}
.mb-mos{display:grid;grid-template-columns:repeat(4,11px);grid-auto-rows:11px;border-radius:10px;overflow:hidden;margin-bottom:10px}
.mb-mos i{display:block}
.mb-eyebrow{font:600 11px var(--f);letter-spacing:.1em;text-transform:uppercase;color:var(--texto-3)}
.membro-win h3{font:700 22px/1.2 var(--f);letter-spacing:-.015em}
.mb-lista{list-style:none;display:flex;flex-direction:column;gap:6px}
.mb-lista li{display:flex;align-items:center;gap:12px;padding:10px 14px 10px 10px;border-radius:12px;background:var(--s1);border:1px solid transparent}
.mb-ic{width:38px;height:38px;border-radius:10px;background:var(--s3);color:var(--texto);display:grid;place-items:center;flex:none}
.mb-ic .i{width:18px;height:18px}
.mb-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.mb-tx b{font:600 14px/1.3 var(--f)}
.mb-tx span{font-size:13px;line-height:1.35;color:var(--texto-3)}
.mb-ok{width:18px;height:18px;color:var(--texto-3)}
.mb-lista li.on{background:var(--s3);border-color:var(--linha-forte)}
.mb-lista li.on .mb-ic{background:var(--texto);color:var(--fundo)}
.mb-lista li.on .mb-ok{color:var(--texto)}
.mb-act{display:flex;flex-direction:column;align-items:center;gap:14px}
.mb-act .btn.primary{height:48px;border-radius:12px;font-size:15px}
.mb-entrar{font-size:13px;color:var(--texto-3)}
.mb-entrar a{color:var(--texto);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.mb-entrar a:hover{text-decoration-thickness:2px}
/* cadeado na opção Foto enquanto a pessoa não entrou como membro */
.seg button{position:relative}
.seg .lk{display:inline-flex;color:var(--texto-3)}
.seg .lk .i{width:12px;height:12px}
.seg.ic .lk{position:absolute;right:3px;bottom:3px;width:15px;height:15px;border-radius:50%;background:var(--s2);align-items:center;justify-content:center}
.seg.ic .lk .i{width:10px;height:10px}
body.membro .seg .lk{display:none}
/* Pranchetas (salvar) e ferramentas de desenho: cadeado para quem não é membro */
.sv-btn{position:relative;cursor:pointer}
.sv-btn .lk{display:inline-flex;color:var(--texto-3)}
.sv-btn .lk .i{width:12px;height:12px}
body.membro .sv-btn .lk{display:none}
.tool .ic{position:relative}
.tool .lk{display:none;position:absolute;right:-5px;bottom:-4px;width:15px;height:15px;border-radius:50%;background:var(--s1);color:var(--texto-3);align-items:center;justify-content:center}
.tool .lk .i{width:10px;height:10px}
body.cheio:not(.membro) [data-tool=seta] .lk,body.cheio:not(.membro) [data-tool=area] .lk,body.cheio:not(.membro) [data-tool=texto] .lk{display:inline-flex}
/* janela Minhas pranchetas */
.salvas{height:min(560px,calc(100vh - 48px))}
.sv-form{display:flex;gap:8px}
.sv-form .search{flex:1}
.sv-form .btn.primary{flex:none}
.sv-acts{display:flex;gap:8px;flex-wrap:wrap}
.sv-acts .btn.alt{background:var(--s3);color:var(--texto-2)}
.sv-acts .btn.alt:hover{background:#33334a;color:var(--texto)}
.btn.armado,.sv-acts .btn.armado{background:var(--s3);color:var(--texto)}
.sv-row{padding:0 4px 0 0}
.sv-row:hover{background:none}
.sv-row.sel{background:var(--s3)}
.sv-abre{flex:1;min-width:0;height:100%;display:flex;align-items:center;padding:0 8px;text-align:left;border-radius:10px}
.sv-abre:hover{background:var(--s3)}
.sv-row .mt{display:block;overflow:hidden;text-overflow:ellipsis}
.sv-row .mt.armado{color:var(--texto)}
.sv-apaga{background:none;color:var(--texto-3)}
.sv-apaga:hover{background:var(--s3);color:var(--texto)}
.sv-apaga.armado{width:auto;padding:0 10px;color:var(--texto)}
.sv-vazio{padding:16px 8px;font-size:14px;color:var(--texto-3)}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:70;height:40px;padding:0 16px;border-radius:999px;background:var(--texto);color:var(--fundo);font:600 13px/40px var(--f);animation:fade .16s var(--ease)}

/* computador estreito */
@media (max-width:1279px){
  .tool .tl-l{display:none}
  .tool{padding:0;width:38px;justify-content:center}
  .promo-l{display:none!important}
}

/* celular */
@media (max-width:1023px){
  .only-d{display:none!important}
  .only-m{display:inline-flex!important}
  .hud.tl{top:calc(10px + env(safe-area-inset-top));left:10px;right:150px}
  .hud.tr{top:calc(10px + env(safe-area-inset-top));right:10px}
  .hbox{height:44px;border-radius:12px}
  .brand{padding:0 10px}
  .hud .btn.primary{height:44px;padding:0 14px}
  .hbtn{width:44px;height:44px;background:var(--s1);border:1px solid var(--linha-forte);border-radius:12px}
  .hbtn:hover{background:var(--s2)}
  .sv-btn{padding:0;justify-content:center;gap:0}
  .sv-btn .lk{position:absolute;right:3px;bottom:3px;width:15px;height:15px;border-radius:50%;background:var(--s2);align-items:center;justify-content:center}
  .sv-btn .lk .i{width:10px;height:10px}
  .hud.tl{right:214px}
  .tool .lk{right:6px;bottom:-2px}
  .sv-form .btn.primary{height:44px}
  .sv-acts .btn{height:36px}
  .sv-row{height:56px}
  .tchip{height:34px;padding:0 8px 0 4px}
  .tchip img{width:24px;height:24px}
  .tchip .fm,.tchip .dot{display:none}
  .teams.dois .tchip .nm{display:none}

  /* ferramentas viram a barra de baixo */
  .hud.br{left:0;right:0;bottom:0;gap:0;flex-direction:column;align-items:stretch}
  .tools{height:calc(68px + env(safe-area-inset-bottom));border-radius:0;border:0;border-top:1px solid var(--linha);background:var(--fundo);justify-content:space-around;padding:6px 4px calc(8px + env(safe-area-inset-bottom))}
  .tool{flex:1;max-width:104px;width:auto;height:54px;flex-direction:column;justify-content:center;gap:3px;padding:0;font-size:12px;background:none!important;color:var(--texto-3)}
  .tool .tl-l{display:block}
  .tool .ic{width:52px;height:30px;border-radius:999px;align-items:center;justify-content:center;transition:background .12s var(--ease)}
  .tool.on{color:var(--texto)}
  .tool.on .ic{background:var(--s2)}
  .hist{position:absolute;right:10px;bottom:calc(78px + env(safe-area-inset-bottom));height:44px}
  .hud.bl{left:10px;bottom:calc(78px + env(safe-area-inset-bottom))}
  .hud.bl .hbox{height:44px}
  .selbar{top:calc(62px + env(safe-area-inset-top))}
  .selbar .who{max-width:96px}
  .selbar .btn .lb{display:none}
  .hint{bottom:calc(132px + env(safe-area-inset-bottom))}

  /* painéis sobem de baixo */
  .pop{left:0!important;right:0;bottom:0;top:auto!important;width:100%!important;border-radius:20px 20px 0 0;border-left:0;border-right:0;border-bottom:0;padding:4px 16px calc(16px + env(safe-area-inset-bottom));animation:up .16s var(--ease);z-index:45;max-height:80vh;max-height:80dvh;display:flex;flex-direction:column}
  .roster-pop{height:70vh;height:70dvh}
  .pl{height:48px}

  .win{border-radius:20px 20px 0 0;left:0;right:0;bottom:0;top:auto;transform:none;width:100%;border-left:0;border-right:0;border-bottom:0;animation:up .16s var(--ease)}
  .picker{width:100%;height:88vh;height:88dvh}
  .win-top{padding:4px 16px 8px}
  .search{height:44px}
  .win-rows{padding:0 8px calc(16px + env(safe-area-inset-bottom))}
  .preview{width:100%;padding:4px 16px calc(16px + env(safe-area-inset-bottom))}
  .pv-img{width:min(300px,100%)}
  .membro-win{width:100%;padding:4px 16px calc(16px + env(safe-area-inset-bottom));gap:18px}
  .mb-x{top:14px;right:12px}
  .mb-top{padding-top:8px}
  .membro-win h3{font-size:20px}
  .pv-act{grid-template-columns:1fr}
  .pv-act .btn{height:44px}
  .toast{bottom:calc(140px + env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
