/* Menus suspensos, tags e popover de tags */
.pop.pop-largo{max-width:min(92vw,420px);overflow-x:hidden}
.pop.pop-largo .pop-item{white-space:nowrap}
.pop{
  position:fixed;z-index:90;min-width:220px;max-width:min(92vw,320px);max-height:min(70vh,520px);overflow:auto;
  background:var(--glass);backdrop-filter:blur(22px) saturate(1.2);border-radius:14px;
  box-shadow:0 0 0 1px var(--line) inset,var(--shadow);padding:6px;display:flex;flex-direction:column;gap:2px;
  animation:popin .14s ease
}
.pop.escuro{
  color-scheme:dark;color:#eef0f5;
  --glass:rgba(24,24,32,.95); --ink:#eef0f5; --muted:#9aa0aa; --line:rgba(255,255,255,.1); --hover:rgba(255,255,255,.08);
  --card:#1c1c25; --card-2:#272732; --shadow:0 20px 50px rgba(0,0,0,.55)
}
.pop.escuro input{color:#eef0f5;background:#1c1c25;border-color:rgba(255,255,255,.12)}
@keyframes popin{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.pop-title{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700;padding:6px 10px 4px}
.pop-sep{height:1px;background:var(--line);margin:4px 6px}
.pop-item{background:transparent;box-shadow:none;justify-content:flex-start;gap:10px;padding:8px 10px;border-radius:9px;font-weight:550;color:var(--ink);width:100%}
.pop-item:hover{background:var(--hover)}
.pop-item.on{color:var(--accent)}
.pop-item span{flex:1;text-align:left}
.pop-item .ic{width:16px;height:16px;color:var(--muted)}
.pop-item .pop-ok{color:var(--accent)}
.pop-dot{width:11px;height:11px;border-radius:50%;flex:none}

/* Chip de tag */
.tag-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 10px 3px 8px;border-radius:999px;font-size:calc(12px * var(--fs));font-weight:650;
  background:rgba(var(--tc),.17);box-shadow:0 0 0 1px rgba(var(--tc),.46) inset;color:var(--ink)}
.tag-chip::before{content:"";width:8px;height:8px;border-radius:50%;background:rgb(var(--tc))}

/* Popover de tags */
.pop-tags{min-width:270px}
.tp-body{display:flex;flex-direction:column;gap:2px}
.tp-row{background:transparent;box-shadow:none;justify-content:flex-start;gap:10px;padding:7px 8px;border-radius:9px;font-weight:550;width:100%}
.tp-row:hover{background:var(--hover)}
.tp-dot{width:12px;height:12px;border-radius:50%;background:rgba(var(--tc),.25);box-shadow:0 0 0 1.5px rgb(var(--tc)) inset;flex:none}
.tp-row.on .tp-dot{background:rgb(var(--tc))}
.tp-row.meio .tp-dot{background:linear-gradient(90deg,rgb(var(--tc)) 50%,transparent 50%)}
.tp-nome{flex:1;text-align:left}
.tp-ok{width:15px;height:15px;color:var(--accent);opacity:0}
.tp-row.on .tp-ok{opacity:1}
.tp-del{display:flex;padding:3px;border-radius:6px;color:var(--muted);opacity:0}
.tp-del .ic{width:14px;height:14px}
.tp-row:hover .tp-del{opacity:1}
.tp-del:hover{color:#ff6b7d;background:var(--hover)}
.tp-vazio{padding:6px 10px;color:var(--muted);font-size:12px}
.tp-nova{display:flex;flex-direction:column;gap:8px;padding:8px 6px 4px;margin-top:4px;border-top:1px solid var(--line)}
.tp-linha{display:flex;gap:6px}
.tp-linha input{flex:1;min-width:0;padding:7px 9px;border-radius:9px}
.tp-linha button{padding:7px;min-width:34px;border-radius:9px}
.tp-cores{display:flex;gap:6px;flex-wrap:wrap}
.tp-cor{width:20px;height:20px;min-width:0;padding:0;border-radius:50%;background:rgb(var(--tc));box-shadow:none}
.tp-cor.on{box-shadow:0 0 0 2px var(--card),0 0 0 4px rgb(var(--tc))}

/* Janelas do próprio Explorer (no lugar das caixas do Chrome) */
.dlg-ov{position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;padding:16px;
  background:rgba(0,0,0,.45);backdrop-filter:blur(4px);animation:popin .16s ease}
.dlg-ov.sai{opacity:0;transition:opacity .15s}
.dlg{width:min(460px,100%);max-height:90vh;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:20px 22px;
  background:var(--glass);backdrop-filter:blur(24px) saturate(1.2);border-radius:18px;box-shadow:0 0 0 1px var(--line) inset,0 30px 80px rgba(0,0,0,.45);
  color:var(--ink);animation:tin .2s ease}
.dlg-tit{margin:0;font-size:calc(17px * var(--fs))}
.dlg-txt{margin:0;color:var(--muted);line-height:1.5}
.dlg-campo{display:flex;flex-direction:column;gap:5px}
.dlg-rot{font-size:calc(12px * var(--fs));font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.dlg-campo input,.dlg-campo textarea,.dlg-ic-extra input{width:100%;border-radius:10px;padding:9px 11px}
.dlg-campo textarea{min-height:80px;resize:vertical;font:inherit;color:var(--ink);background:var(--card);border:1px solid var(--line);outline:none}
.dlg-dica{font-size:calc(11.5px * var(--fs));color:var(--muted)}
.dlg-acts{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
.dlg-acts button{border-radius:10px;padding:9px 16px}
.dlg-acts button.perigo{background:#d9384f;color:#fff;box-shadow:none}
.dlg-acts button.perigo:hover{filter:brightness(1.08)}
/* editor de link: prévia do ícone + tipo (do site, ícone, letra, imagem) */
.dlg-ic-linha{display:flex;align-items:center;gap:12px}
.dlg-pv{width:48px;height:48px;border-radius:14px;font-size:20px}
.dlg-tipos{flex:1}
.dlg-tipos button{border-radius:8px}
.dlg-ic-extra{display:flex;flex-direction:column;gap:10px}
.dlg-ic-grade{display:grid;grid-template-columns:repeat(8,1fr);gap:6px}
.dlg-ic{aspect-ratio:1;padding:0;justify-content:center;border-radius:10px}
.dlg-ic .ic{width:18px;height:18px}
.dlg-ic.on{box-shadow:0 0 0 2px var(--accent) inset;color:var(--accent)}
.ini-fav.cor{color:#fff}
.ini-fav.cor .ic{width:22px;height:22px}
.ini-fav.cor b{font-size:18px}
.ini-fav.propria{background:var(--card-2)}
.ini-fav.propria > img{position:static;inset:auto;width:100%;height:100%;object-fit:contain;padding:4px;box-sizing:border-box;opacity:1}   /* só a imagem escolhida no editor; os ícones dos sites ficam como antes */
