/* Guias: visual do app web no padrão do Tango (tokens medidos nos prints do app real).
   Fontes livres mais próximas: Source Serif 4 (display serifada) e Figtree (sans geométrica). */
:root {
  --ink: #251F2D;
  --mute: #6B6574;
  --faint: #9A95A3;
  --surface: #FAF9FA;
  --hover: #E8E6EA;
  --field: #F3F2F4;
  --line: #E8E6EA;
  --line-2: #D9D6DD;
  --purple: #6F26D0;
  --purple-d: #5A1DB0;
  --purple-t: #F4ECF9;
  --purple-b: #DEC4F3;
  --purple-l: #D9C6F3;
  --orange: #F9650F;
  --star: #FBCD28;
  --danger: #D92D20;
  --danger-t: #FDEBE9;
  --ok: #1A7F4B;
  --dark: #251F2D;
  --serif: "Source Serif 4", "Tiempos Headline", Georgia, serif;
  --sans: "Figtree", "Gilroy", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Sacramento", "Brush Script MT", cursive;
  --shadow: 0 8px 30px rgba(37, 31, 45, .16);
  --shadow-s: 0 2px 10px rgba(37, 31, 45, .10);
  font-family: var(--sans);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #fff; color: var(--ink); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
.serif { font-family: var(--serif); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
svg { flex: none; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 16px; white-space: nowrap; color: var(--ink); transition: background .12s, border-color .12s, box-shadow .12s; }
.btn:hover { background: var(--field); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn.primary:hover { background: var(--purple-d); border-color: var(--purple-d); }
.btn.primary:disabled { background: var(--purple-b); border-color: var(--purple-b); color: #fff; opacity: 1; }
.btn.outline { border-color: var(--purple-l); color: var(--purple); background: #fff; }
.btn.outline:hover { background: var(--purple-t); }
.btn.soft { background: var(--purple-b); border-color: var(--purple-b); color: var(--purple); }
.btn.soft:hover { background: #D3B3EE; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--field); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
.btn.md { height: 44px; padding: 0 20px; }
.ib { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); flex: none; }
.ib:hover { background: var(--field); }
.ib:disabled { opacity: .35; cursor: default; background: transparent; }
.ib.on { background: var(--purple-t); color: var(--purple); }
.ib.sm { width: 30px; height: 30px; border-radius: 8px; }
.ib.round { border-radius: 50%; }
.starb.on { color: var(--star); }
.starb.on svg { fill: currentColor; }
.inp, .sel, .ta { width: 100%; height: 46px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--ink); background: #fff; color: var(--ink); }
.inp.soft, .sel.soft { border-color: var(--line-2); }
.inp::placeholder, .ta::placeholder { color: var(--faint); }
.ta { height: auto; padding: 12px 16px; resize: vertical; min-height: 90px; line-height: 1.45; }
.sel { width: auto; padding-right: 36px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23251F2D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.inp:focus, .sel:focus, .ta:focus { outline: 0; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-t); }
.fld { display: grid; gap: 8px; margin-bottom: 18px; }
.fld > span { font-size: 14px; font-weight: 500; color: var(--ink); }
.fld small { color: var(--mute); font-size: 13px; }
.row { display: flex; gap: 12px; align-items: center; }
.grow { flex: 1; min-width: 0; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: #fff; color: var(--ink); white-space: nowrap; }
.pill.draft { background: #FFF1CC; color: #7A5600; }
.pill.pub { background: #E1F4E8; color: var(--ok); }
.pill.owner { background: var(--field); color: var(--mute); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: sp .7s linear infinite; display: inline-block; }
@keyframes sp { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; min-height: 40vh; color: var(--mute); gap: 10px; }
.err-box { background: var(--danger-t); color: var(--danger); padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.txt { margin: 0; color: var(--mute); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-weight: 600; font-size: 15px; flex: none; overflow: hidden; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.avatar.lg { width: 80px; height: 80px; font-size: 28px; }
.avatar.wsav { background: #F8DDE9; color: #B1245D; box-shadow: 0 0 0 2px #fff; }
.logo { font-family: var(--script); color: var(--orange); font-size: 46px; line-height: 1; letter-spacing: 0; font-weight: 400; display: inline-block; transform: rotate(-3deg) scale(1.1, .9); transform-origin: left center; }
.logo.sm { font-size: 46px; }
a.logo:hover { text-decoration: none; }

/* ---------- janelas, menus, avisos ---------- */
#layer { position: relative; z-index: 50; }
.backdrop { position: fixed; inset: 0; background: rgba(37, 31, 45, .5); display: grid; place-items: center; padding: 16px; z-index: 60; }
.dlg { background: #fff; border-radius: 28px; width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow); overflow: hidden; }
.dlg.wide { width: min(1000px, 100%); }
.dlg.mid { width: min(760px, 100%); }
.dlg-h { display: flex; align-items: center; justify-content: space-between; padding: 28px 32px 8px; }
.dlg-h h2 { font-family: var(--serif); font-size: 32px; font-weight: 400; }
.dlg-b { padding: 8px 32px 28px; overflow: auto; }
.dlg-f { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 20px 32px; border-top: 1px solid var(--line); }
.dlg-f .btn { height: 50px; }
.dlg-f .btn.ghost { padding: 0 20px; }
.pop { position: fixed; z-index: 80; min-width: 230px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 8px; border: 1px solid var(--line); }
.pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.pop h4 { font-size: 14px; font-weight: 600; padding: 10px 12px 4px; }
.pop-i { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: transparent; padding: 0 12px; height: 46px; border-radius: 10px; font-size: 15px; color: var(--ink); }
.pop-i:hover, .pop-i:focus-visible { background: var(--field); }
.pop-i.danger { color: var(--danger); }
.pop-i.active { background: var(--field); }
.pop-i .rd { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.pop-i.active .rd { border-color: var(--purple); }
.pop-i.active .rd::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--purple); }
.pop-i small { margin-left: auto; color: var(--faint); font-size: 12px; }
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 90; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--dark); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); transition: opacity .25s; }
.toast.err { background: var(--danger); }
.toast.out { opacity: 0; }
.help { position: fixed; right: 40px; bottom: 40px; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--hover); color: var(--ink); font-weight: 600; font-size: 16px; z-index: 30; display: grid; place-items: center; }
.help:hover { background: #DDDAE0; }

/* ---------- entrada (login, conta, onboarding): duas colunas ---------- */
.entry { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 880px); padding: 40px; gap: 80px; }
.entry-l { display: flex; flex-direction: column; min-width: 0; }
.entry-l .logo { align-self: flex-start; margin: -10px 0 0 0; }
.entry-form { margin: 0; padding: 0 0 40px 140px; max-width: 760px; width: 100%; position: relative; top: 250px; }
.entry-form h1 { max-width: 560px; }
.entry-form h1 { font-family: var(--serif); font-size: 46px; line-height: 62px; margin-bottom: 73px; font-weight: 400; }
.entry-form .lead { color: var(--mute); margin: -12px 0 24px; font-size: 16px; }
.entry-form .inp { height: 46px; max-width: 600px; }
.entry-form .fld { max-width: 600px; margin-bottom: 0; gap: 8px; }
.entry-form .fld + .fld { margin-top: 20px; }
.entry-form .btn { margin-top: 37px; height: 60px; padding: 0 20px; border-radius: 12px; min-width: 110px; }
.entry-form .alt { margin-top: 24px; color: var(--mute); font-size: 15px; }
.entry-form .hint { color: var(--mute); font-size: 14px; margin-top: 6px; }
.entry-r { border-radius: 40px; background: var(--surface); overflow: hidden; position: relative; min-height: 480px; }
.art { width: 100%; height: 100%; position: absolute; inset: 0; }
.art .win { position: absolute; left: 11%; top: 17%; width: 78%; height: 62%; background: #fff; border-radius: 28px; box-shadow: 0 24px 60px rgba(37, 31, 45, .14); transform: rotate(2.4deg); overflow: hidden; }
.art .win.back { left: 4%; top: 24%; width: 74%; transform: rotate(-3deg); opacity: .8; }
.art .bar { height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.art .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--hover); }
.art .bar b { flex: 1; height: 24px; border-radius: 12px; background: var(--field); margin-left: 12px; }
.art .cont { display: grid; grid-template-columns: 26% 1fr; height: calc(100% - 46px); }
.art .steps { padding: 22px 18px; border-right: 1px solid var(--line); display: grid; gap: 14px; align-content: start; font-size: 13px; color: var(--mute); }
.art .steps .logo { font-size: 30px; margin-bottom: 4px; }
.art .doc { padding: 26px 30px; }
.art .doc h3 { font-family: var(--serif); font-size: 30px; line-height: 1.25; color: var(--ink); }
.art .doc .by { margin: 14px 0 18px; font-size: 13px; color: var(--mute); }
.art .doc .sk { height: 16px; border-radius: 8px; background: var(--field); margin-top: 12px; }
.art .ribbon { position: absolute; border-radius: 999px; }
.art .r1 { width: 150px; height: 420px; right: 8%; top: -120px; background: #FA8C3C; transform: rotate(-24deg); border-radius: 80px; opacity: .95; }
.art .r2 { width: 90px; height: 300px; right: 30%; top: -90px; background: #F6577B; transform: rotate(-24deg); border-radius: 60px; opacity: .9; }
.art .r3 { width: 160px; height: 460px; left: 14%; bottom: -200px; background: #FDB04A; transform: rotate(32deg); border-radius: 90px; opacity: .95; }
.art .star { position: absolute; width: 22px; height: 22px; background: var(--orange); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }

/* ---------- casca: sidebar flutuante + conteúdo ---------- */
.shell { display: grid; grid-template-columns: 350px minmax(0, 1fr); min-height: 100vh; }
.shell.wide { grid-template-columns: 420px minmax(0, 1fr); }
.shell.wide .topbar { padding-left: 62px; }
.shell.mid { grid-template-columns: 390px minmax(0, 1fr); }
.side { position: sticky; top: 20px; margin: 20px 0 20px 20px; height: calc(100vh - 40px); background: var(--surface); border-radius: 36px; display: flex; flex-direction: column; padding: 31px 30px 24px; overflow: auto; z-index: 20; }
.side .logo { align-self: flex-start; margin: 0 0 22px 10px; }
.ws { display: flex; align-items: center; gap: 14px; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; height: 48px; margin: 4px 0 25px 10px; }
.ws span.n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 15px; }
.ws svg { color: var(--faint); }
.invite { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; width: 100%; border: 1px solid var(--purple-l); background: transparent; border-radius: 14px; color: var(--purple); font-weight: 600; font-size: 16px; margin-bottom: 19px; }
.invite:hover { background: var(--purple-t); }
.nav { display: flex; align-items: center; gap: 16px; height: 45px; padding: 0 16px; border-radius: 14px; color: var(--ink); font-weight: 500; font-size: 16px; border: 0; background: transparent; width: 100%; text-align: left; text-decoration: none !important; margin-bottom: 4px; }
.nav:hover { background: rgba(37, 31, 45, .05); }
.nav.on { background: var(--hover); font-weight: 600; }
.nav .n { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--mute); }
.nav.drop { background: var(--purple-t); outline: 2px dashed var(--purple); }
.nav svg { color: var(--ink); }
.nav.sub { height: 40px; padding-left: 40px; font-weight: 400; }
.nav.sub span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-sep { border: 0; border-top: 1px solid var(--line-2); margin: 10px 8px 12px; opacity: .6; }
.side h3 { font-size: 14px; font-weight: 500; color: var(--mute); padding: 20px 18px 8px; font-family: var(--sans); }
.folder-row { display: flex; align-items: center; }
.folder-row .nav { flex: 1; min-width: 0; margin-bottom: 0; }
.folder-row .ib { opacity: 0; width: 28px; height: 28px; }
.folder-row:hover .ib, .folder-row:focus-within .ib { opacity: 1; }
.side-foot { margin-top: auto; padding-top: 12px; }
.main { min-width: 0; position: relative; }
.topbar { position: sticky; top: 0; z-index: 15; background: #fff; display: flex; align-items: center; gap: 12px; padding: 25px 40px 24px 50px; min-height: 100px; border-bottom: 1px solid transparent; }
.topbar.line { border-bottom-color: var(--line); min-height: 100px; }
.topbar .sp { flex: 1; }
.crumb { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 14px; min-width: 0; }
.crumb a { color: var(--mute); display: inline-flex; align-items: center; gap: 8px; }
.crumb b { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot-n { position: relative; }
.dot-n::after { content: ""; position: absolute; top: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); border: 2px solid #fff; }
.menu-btn { display: none; }
.page { padding: 0 50px 100px 50px; }
.page h1 { font-family: var(--serif); font-size: 44px; line-height: 1.15; letter-spacing: -.005em; font-weight: 400; margin: 23px 0 29px; }
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; padding-left: 4px; }
.toolbar > .btn { margin-right: -4px; }
.tb { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border: 0; background: transparent; border-radius: 10px; font-weight: 500; font-size: 16px; color: var(--ink); }
.tb:hover { background: var(--field); }
.tb.on { background: var(--purple-t); color: var(--purple); }
.tb .cnt { background: var(--purple); color: #fff; border-radius: 99px; font-size: 12px; padding: 1px 7px; }
.toolbar .sp { flex: 1; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; position: relative; cursor: pointer; transition: box-shadow .15s, border-color .15s; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow-s); }
.card.picked { border-color: var(--purple); box-shadow: 0 0 0 2px var(--purple-l); }
.card .thumb { height: 195px; background: #fff; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); position: relative; }
.card .thumb img.pv { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.card .thumb.empty { background: linear-gradient(#F3E9FB, #F7F0FC); }
.card .thumb .doc { width: 130px; height: 150px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; padding: 20px 14px; display: grid; gap: 14px; align-content: start; }
.card .thumb .doc i { display: flex; align-items: center; gap: 8px; }
.card .thumb .doc i::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #CBB2EE; flex: none; }
.card .thumb .doc i::after { content: ""; height: 2px; background: var(--ink); flex: 1; }
.card .draftpill { position: absolute; top: 14px; left: 14px; background: #FFF7DC; color: #7A5600; border-radius: 8px; font-size: 14px; padding: 3px 12px; font-weight: 500; z-index: 2; }
.card .hov { position: absolute; inset: 0; background: rgba(37, 31, 45, .0); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s, background .15s; pointer-events: none; z-index: 1; }
.card:hover .hov { opacity: 1; background: rgba(37, 31, 45, .35); }
.card .hov span { color: #fff; font-weight: 600; font-size: 20px; }
.card .chips { position: absolute; top: 14px; right: 14px; display: flex; gap: 2px; background: rgba(37, 31, 45, .82); border-radius: 20px; padding: 6px 10px; opacity: 0; transition: opacity .15s; z-index: 3; }
.card .chips .ib { color: #fff; width: 32px; height: 32px; }
.card .chips .ib:hover { background: rgba(255, 255, 255, .15); }
.card .chips .starb.on { color: var(--star); }
.card:hover .chips, .card .chips:focus-within { opacity: 1; }
.card .chk { position: absolute; top: 14px; left: 14px; width: 26px; height: 26px; border-radius: 8px; border: 2px solid #fff; background: rgba(37, 31, 45, .35); display: grid; place-items: center; opacity: 0; color: #fff; z-index: 3; }
.card:hover .chk, .card.picked .chk, .selecting .card .chk { opacity: 1; }
.card.draftc .chk { top: 56px; }
.card.picked .chk { background: var(--purple); border-color: var(--purple); }
.card .cb { padding: 20px 21px 20px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.card h3 { font-family: var(--sans); font-size: 18.5px; font-weight: 500; line-height: 31px; min-height: 62px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card .foot { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.card .foot .dt { flex: 1; font-size: 16px; font-weight: 500; color: var(--ink); }
.appic { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: inline-grid; place-items: center; overflow: hidden; font-size: 13px; font-weight: 700; color: var(--mute); flex: none; }
.appic img { width: 20px; height: 20px; object-fit: contain; }
.apps { display: flex; gap: 4px; align-items: center; }
.cardtrash .acts { display: contents; }

/* lista */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 14px; color: var(--ink); padding: 14px 12px; font-weight: 500; }
.tbl th button { border: 0; background: transparent; font-weight: 500; padding: 0; }
.tbl td { padding: 0 12px; height: 75px; border-top: 1px solid var(--line); font-size: 16px; vertical-align: middle; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: var(--surface); }
.tbl tr.picked { background: var(--purple-t); }
.tbl .t { display: flex; align-items: center; gap: 16px; min-width: 0; font-size: 17px; }
.tbl .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .t .docic { color: var(--mute); }
.tbl .cbx, .cbx { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line-2); background: #fff; display: inline-grid; place-items: center; color: #fff; flex: none; }
.cbx.on { background: var(--purple); border-color: var(--purple); }
.tbl .own { white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.tbl .acts { display: flex; justify-content: flex-end; gap: 4px; }
.tbl .acts .ib svg { width: 22px; height: 22px; }

.empty { text-align: center; padding: 70px 20px; color: var(--mute); }
.empty .ico { width: 64px; height: 64px; border-radius: 20px; background: var(--purple-t); color: var(--purple); display: grid; place-items: center; margin: 0 auto 18px; }
.empty h2 { font-family: var(--serif); color: var(--ink); font-size: 28px; margin-bottom: 8px; }
.empty p { margin: 0 auto 22px; max-width: 460px; }

.bulk { position: fixed; bottom: 26px; left: calc(350px + (100vw - 350px) / 2); transform: translateX(-50%); background: #fff; border: 2px solid var(--purple-b); border-radius: 22px; padding: 10px 18px 10px 12px; display: flex; align-items: center; gap: 6px; z-index: 40; box-shadow: var(--shadow); min-width: min(640px, calc(100vw - 32px)); }
.bulk .num { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--serif); font-size: 18px; margin-right: 8px; }
.bulk b { font-weight: 500; font-size: 19px; margin-right: auto; }
.bulk .ib { width: 40px; height: 40px; color: var(--mute); }
.bulk .ib:hover { color: var(--ink); }
.bulk .clr { border: 0; background: transparent; font-weight: 500; margin-left: 12px; font-size: 15px; }

/* paleta / Ctrl+K */
.pal { width: min(1000px, 100%); background: #fff; border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; padding: 30px; }
.pal input { width: 100%; height: 66px; border: 0; background: var(--field); border-radius: 14px; padding: 0 22px; font-size: 20px; outline: 0; }
.pal h4 { font-size: 18px; font-weight: 400; padding: 26px 0 8px; }
.pal ul { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow: auto; }
.pal li { display: flex; align-items: center; gap: 16px; padding: 0 0; height: 58px; border-radius: 10px; cursor: pointer; font-size: 19px; }
.pal li.on { background: var(--field); padding-left: 12px; margin-left: -12px; padding-right: 12px; margin-right: -12px; }
.pal li small { margin-left: auto; color: var(--mute); font-size: 14px; }
.pal .none { padding: 18px 0; color: var(--mute); }
.backdrop.atop { align-items: start; padding-top: 12vh; }

/* ---------- modal de duas colunas (compartilhar, análises) ---------- */
.two { display: grid; grid-template-columns: 250px 1fr; min-height: min(775px, calc(100vh - 32px)); max-height: calc(100vh - 32px); }
.two .tabs { padding: 48px 30px 20px; display: grid; gap: 6px; align-content: start; }
.two .tab { white-space: nowrap; }
.topbar.menu-only { display: none; }
.two .tab { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 18px; border: 0; background: transparent; border-radius: 12px; font-size: 15px; font-weight: 500; text-align: left; }
.two .tab:hover { background: var(--field); }
.two .tab.on { background: var(--hover); }
.two .pane { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; overflow: hidden; position: relative; }
.two .pane-b { padding: 47px 40px 24px 42px; overflow: auto; flex: 1; }
.two .pane h2 { font-family: var(--serif); font-size: 40px; }
.two .pane-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 29px; }
.two .pane-f { padding: 20px 40px 28px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.two .xbtn { position: absolute; top: 16px; right: 16px; }
.addrow { display: flex; gap: 14px; }
.addrow .inp { height: 50px; border-color: var(--ink); }
.loc { padding: 14px 0; font-size: 14px; color: var(--mute); border-bottom: 1px solid var(--line); margin: 10px -40px 12px; padding-left: 42px; }
.loc b { color: var(--ink); font-weight: 500; margin-left: 8px; }
.accrow { display: flex; align-items: center; gap: 14px; height: 54px; font-size: 15px; }
.accrow .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--field); display: grid; place-items: center; color: var(--mute); }
.accrow .lbl { flex: 1; }
.accrow .selb { border: 0; background: transparent; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border-radius: 10px; }
.accrow .selb:hover { background: var(--field); }
.hint-s { color: var(--mute); font-size: 13px; }
.optcard { border: 1px solid var(--purple-l); border-radius: 22px; padding: 22px 26px; display: flex; gap: 24px; align-items: center; margin-bottom: 16px; }
.optcard.plain { border-color: var(--line); }
.optcard h3 { font-size: 22px; font-family: var(--serif); display: inline; }
.optcard .sub { font-size: 14px; color: var(--mute); margin-left: 8px; }
.optcard p { margin: 10px 0 0; color: var(--mute); }
.optcard .bt { display: grid; gap: 10px; justify-items: center; flex: none; }
.optcard .bt .btn { width: 210px; }
.expcard { border-bottom: 1px solid var(--line); padding: 22px 0; display: flex; gap: 24px; align-items: center; }
.expcard:last-child { border: 0; }
.expcard h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 4px; }
.expcard p { margin: 0; color: var(--mute); }
.segm { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.segm button { border: 0; background: #fff; height: 40px; padding: 0 16px; font-weight: 500; }
.segm button.on { background: var(--purple-t); color: var(--purple); }
.filt { display: inline-flex; border: 1px solid var(--ink); border-radius: 12px; overflow: hidden; margin-bottom: 20px; flex-wrap: nowrap; max-width: 100%; }
.filt > * { white-space: nowrap; }
.filt > * { padding: 0 16px; height: 44px; display: inline-flex; align-items: center; gap: 8px; border: 0; background: #fff; color: var(--mute); font-size: 15px; border-right: 1px solid var(--ink); }
.filt > *:last-child { border-right: 0; }
.filt b { color: var(--ink); font-weight: 400; }
.mtabs { display: inline-flex; gap: 8px; margin-bottom: 20px; }
.mt { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 12px; border: 0; background: transparent; font-weight: 500; font-size: 16px; }
.mt.on { background: var(--purple-t); color: var(--purple); }
.chartbox { border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
.chartbox .hd { padding: 36px 40px 22px; border-bottom: 1px solid var(--line); }
.chartbox .hd small { font-size: 18px; display: block; }
.chartbox .hd b { font-size: 26px; font-weight: 500; }
.chartbox svg { display: block; width: 100%; height: auto; }
.chartbox text { font-family: var(--sans); font-size: 15px; fill: var(--ink); }

/* ---------- guia (leitura e edição) ---------- */
.g-sidebar { padding-right: 12px; }
.g-sidebar .steps { overflow: auto; margin: 8px 0 0 0; padding-right: 30px; flex: 1; }
.g-sidebar .steps::-webkit-scrollbar { width: 6px; } .g-sidebar .steps::-webkit-scrollbar-thumb { background: #CFCBD3; border-radius: 6px; }
.app-h { display: flex; align-items: center; gap: 14px; padding: 6px 8px; font-size: 17px; font-weight: 500; }
.st-i { display: flex; align-items: center; gap: 8px; padding: 0 14px 0 16px; min-height: 45px; border-radius: 14px; font-size: 15px; font-weight: 500; cursor: pointer; position: relative; border: 0; background: transparent; width: 100%; text-align: left; margin-bottom: 4px; }
.st-i:hover { background: rgba(37, 31, 45, .05); }
.st-i.on { background: var(--hover); }
.st-i .no { font-family: var(--serif); width: 30px; flex: none; font-size: 16px; color: var(--ink); }
.st-i .lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.st-i.sec { font-weight: 600; }
.st-i .h { color: var(--faint); cursor: grab; display: none; }
.edit .st-i .h { display: grid; }
.drop-before::before, .drop-after::after { content: ""; position: absolute; left: 8px; right: 8px; height: 3px; background: var(--purple); border-radius: 2px; z-index: 5; }
.drop-before::before { top: -3px; }
.drop-after::after { bottom: -3px; }
.dragging { opacity: .4; }
.gwrap { max-width: 900px; margin-left: max(0px, calc(50% - 467px)); margin-right: auto; padding: 0 20px 140px; }
.gwrap.edit { max-width: 961px; margin-left: max(0px, calc(50% - 480px)); }
.byline { display: flex; align-items: center; gap: 15px; margin-top: 172px; padding-left: 28px; }
.byline .avatar { width: 50px; height: 50px; font-size: 17px; }
.byline .who { font-size: 18px; font-weight: 500; }
.byline .when { font-size: 14px; color: var(--mute); }
.g-title { width: 100%; border: 0; background: transparent; font-family: var(--serif); font-size: 50px; line-height: 1.24; letter-spacing: -.01em; padding: 0 0 0 28px; margin: 30px 0 4px; resize: none; overflow: hidden; display: block; outline: 0; font-weight: 400; color: var(--ink); }
h1.g-title { margin: 30px 0 18px; }
.g-desc { width: 100%; border: 0; background: transparent; font-size: 20px; color: var(--ink); padding: 8px 0 8px 28px; margin: 0 0 14px; resize: none; overflow: hidden; display: block; outline: 0; font-family: var(--sans); }
.g-desc::placeholder { color: var(--faint); }
.gmeta { display: flex; align-items: center; gap: 20px; margin: 4px 0 49px; padding-left: 17px; }
.gmeta .sp { flex: 1; }
.gmeta .st { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; color: var(--ink); background: transparent; border: 0; height: 40px; padding: 0 6px; border-radius: 10px; }
.gmeta button.st:hover { background: var(--field); }
.sect { position: relative; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line-2); padding: 14px 6px; margin: 48px 0 38px; font-size: 22px; font-weight: 500; position: relative; }
.sect .chev { position: absolute; left: -44px; color: var(--mute); display: grid; }
.sect .open { margin-left: auto; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.sect a.open:hover { text-decoration: none; background: var(--field); }
.vstep { margin: 0 0 40px; scroll-margin-top: 120px; }
.vstep .hd { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.num { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--serif); font-size: 20px; flex: none; }
.vstep .hd h3 { font-family: var(--sans); font-size: 20px; font-weight: 500; }
.vstep .desc { color: var(--mute); margin: -6px 0 16px 64px; font-size: 17px; white-space: pre-wrap; }
.vshot { border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: #fff; position: relative; line-height: 0; }
.vshot .zm { position: relative; }
.vshot img { width: 100%; height: auto; display: block; }
.vshot .bx { position: absolute; pointer-events: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .75); }
.callout-v { border-radius: 18px; padding: 18px 22px; margin: 0 0 40px; display: flex; gap: 14px; align-items: flex-start; font-size: 17px; background: var(--purple-t); }
.callout-v.k-SUCCESS { background: #E5F5EB; } .callout-v.k-WARNING { background: #FFF3D6; } .callout-v.k-ERROR { background: var(--danger-t); }
.faq-v { border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 0 0 40px; }
.faq-v h3 { font-family: var(--sans); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.faq-v p { margin: 0; color: var(--mute); }
.branch-v { border: 1px solid var(--purple-l); border-radius: 18px; padding: 20px 24px; margin: 0 0 40px; }
.branch-v h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 10px; }
.branch-v .opts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* edição */
.ecard { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 18px 22px 22px; position: relative; scroll-margin-top: 120px; }
.ecard.picked { border-color: var(--purple-l); box-shadow: 0 0 0 2px var(--purple-t); }
.eside { position: absolute; left: -52px; top: 26px; }
.eact { position: absolute; right: -62px; top: 26px; display: grid; gap: 6px; }
.ehd { display: flex; align-items: center; gap: 14px; }
.ehd .b-title { flex: 1; min-width: 0; border: 0; background: var(--field); font-size: 19px; font-weight: 500; height: 48px; padding: 0 20px; border-radius: 24px; outline: 0; }
.ehd .b-title:focus { box-shadow: 0 0 0 2px var(--purple-l); }
.ehd .grip { color: var(--faint); cursor: grab; display: grid; place-items: center; width: 24px; flex: none; }
.ehd .ico { width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--mute); display: grid; place-items: center; flex: none; }
.b-desc { display: block; width: 100%; border: 0; background: transparent; margin-top: 10px; padding: 12px 22px; border-radius: 12px; color: var(--ink); resize: none; overflow: hidden; line-height: 1.45; min-height: 46px; font-size: 18px; outline: 0; }
.b-desc::placeholder { color: var(--faint); }
.b-desc:hover { background: var(--surface); }
.b-desc:focus { background: var(--surface); }
.ecard.callout { background: var(--purple-t); border-color: var(--purple-l); }
.ecard.callout.k-SUCCESS { background: #E5F5EB; border-color: #B8E3C8; }
.ecard.callout.k-WARNING { background: #FFF3D6; border-color: #F0D9A0; }
.ecard.callout.k-ERROR { background: var(--danger-t); border-color: #F2B8B3; }
.ecard.callout .b-desc { background: rgba(255, 255, 255, .6); color: var(--ink); }
.ecard.heading .b-title { background: transparent; font-size: 22px; border-bottom: 1px solid var(--line-2); border-radius: 0; padding-left: 8px; }
.shot { margin-top: 14px; position: relative; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; }
.shot .stage { position: relative; overflow: hidden; line-height: 0; }
.shot .zm { position: relative; }
.shot img { width: 100%; height: auto; display: block; }
.shot .bx { position: absolute; pointer-events: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .75); }
.shot .bar { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; opacity: 0; transition: opacity .12s; line-height: 1; }
.shot:hover .bar, .shot .bar:focus-within, .ecard.picked .shot .bar { opacity: 1; }
.shot .bar .btn { height: 40px; padding: 0 16px; font-size: 14px; background: #fff; }
.shot .bar .btn.primary { background: var(--purple); }
.dz { margin-top: 14px; border: 1.5px dashed var(--line-2); border-radius: 22px; padding: 30px 16px; text-align: center; color: var(--mute); display: grid; gap: 10px; justify-items: center; background: #fff; }
.dz.over { border-color: var(--purple); background: var(--purple-t); }
.dz small { color: var(--faint); }
.b-foot { display: flex; gap: 12px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--faint); flex-wrap: wrap; padding-left: 4px; }
.cbadge { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--purple); }
.ins { height: 40px; display: flex; align-items: center; justify-content: center; position: relative; }
.ins button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--faint); padding: 0; }
.ins:hover button, .ins button:focus-visible { background: var(--purple); color: #fff; }
.tr-row { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.tr-row .inp, .tr-row .sel { height: 44px; border-color: var(--line-2); }
.add-end { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 24px; padding: 22px; border: 1.5px dashed var(--line-2); border-radius: 22px; }

/* painéis laterais flutuantes */
.drawer { position: fixed; top: 20px; right: 20px; bottom: 20px; width: min(500px, calc(100vw - 40px)); background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; z-index: 35; }
.drawer-h { padding: 22px 24px 4px; }
.drawer-h h2 { font-family: var(--serif); font-size: 30px; margin-top: 10px; }
.drawer-b { flex: 1; overflow: auto; padding: 16px 24px 24px; }
.li { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
.li .t { font-weight: 600; font-size: 15px; }
.li .s { font-size: 13px; color: var(--mute); }
.li.res { opacity: .55; }
.cform { margin-bottom: 20px; }
.cform .inp, .cform .ta { margin-bottom: 8px; border-color: var(--line-2); }

/* ---------- configurações ---------- */
.set-h { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.side .back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); border: 0; background: transparent; padding: 0; margin: 4px 0 6px 8px; }
.side .stitle { font-family: var(--serif); font-size: 26px; margin: 4px 0 26px 10px; }
.side .grp { font-size: 16px; font-weight: 500; color: var(--ink); padding: 0 9px 10px; }
.sbody { padding: 125px 80px 100px 150px; max-width: 1400px; }
.sbody .hdr { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.sbody h1 { font-family: var(--serif); font-size: 42px; flex: 1; margin: 0; }
.sbody .mail { color: var(--ink); font-size: 15px; }
.srch { position: relative; width: 454px; max-width: 100%; }
.srch svg { position: absolute; left: 14px; top: 13px; color: var(--mute); }
.srch .inp { padding-left: 46px; border-radius: 14px; }
.plist .r { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-top: 1px solid var(--line); }
.plist .r:first-child { border-top: 0; }
.plist .r .nm { font-size: 16px; font-weight: 500; }
.plist .r .em { font-size: 14px; color: var(--mute); }
.fcol { max-width: 400px; }
.fcol .inp { border-color: var(--line-2); }
.sgroup { border: 1px solid var(--line); border-radius: 22px; padding: 26px 30px; margin-bottom: 20px; max-width: 760px; }
.sgroup h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; font-family: var(--sans); }
.sgroup p { margin: 0 0 16px; color: var(--mute); }
.tog { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.tog .tx { flex: 1; }
.tog .tx b { display: block; font-weight: 500; }
.tog .tx span { color: var(--mute); font-size: 14px; }
.sw { position: relative; width: 48px; height: 28px; flex: none; }
.sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 2; }
.sw i { position: absolute; inset: 0; background: var(--line-2); border-radius: 99px; transition: background .15s; }
.sw i::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; left: 3px; top: 3px; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.sw input:checked + i { background: var(--purple); }
.sw input:checked + i::after { transform: translateX(20px); }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.color { display: flex; gap: 10px; align-items: center; }
.color input[type=color] { width: 50px; height: 50px; padding: 3px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; flex: none; }
.savebar { position: sticky; bottom: 20px; margin-top: 24px; background: #fff; border: 1px solid var(--purple-l); border-radius: 18px; padding: 12px 16px 12px 24px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); max-width: 760px; }
.savebar span { flex: 1; font-weight: 500; }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 6px 16px; font-size: 15px; }
.kv dt { color: var(--mute); } .kv dd { margin: 0; }

/* ---------- editor de print ---------- */
.se { position: fixed; inset: 20px; background: #fff; border-radius: 28px; z-index: 70; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 0 0 100vmax rgba(37, 31, 45, .5); }
.se-top { display: flex; align-items: center; gap: 8px; padding: 0 28px; background: var(--dark); height: 80px; flex: none; }
.se-top .sp { flex: 1; }
.se-top .ib { color: #AFA9B8; width: 46px; height: 46px; border-radius: 12px; }
.se-top .ib:hover:not(:disabled) { color: #fff; background: rgba(255, 255, 255, .08); }
.se-top .ib.on { background: #524D59; color: #fff; }
.se-top .ib.tool { width: 46px; height: 44px; }
.se-top .cancel { border: 0; background: transparent; color: #fff; font-weight: 600; font-size: 15px; height: 46px; padding: 0 16px; border-radius: 10px; }
.se-top .cancel:hover { background: rgba(255, 255, 255, .08); }
.se-top .savebtn { background: #fff; color: var(--ink); border: 0; height: 50px; padding: 0 26px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.se-top .savebtn:hover { background: var(--hover); }
.se-top .savebtn:disabled { opacity: .6; }
.se-top .tl { display: inline-flex; gap: 14px; }
.se-top .sep { width: 1px; height: 28px; background: rgba(255, 255, 255, .15); margin: 0 12px; }
.se-props { position: absolute; right: 22px; top: 22px; width: 320px; background: #fff; color: var(--ink); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); display: grid; gap: 16px; z-index: 4; font-size: 14px; max-height: calc(100% - 44px); overflow: auto; }
.se-props label { display: grid; gap: 8px; font-weight: 500; }
.se-props > span { color: var(--mute); font-size: 13px; }
.se-props .btn { height: 40px; }
.ib[data-tip] { position: relative; }
.ib[data-tip]:hover::after { content: attr(data-tip); position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; font-weight: 500; white-space: nowrap; z-index: 9; pointer-events: none; }
.se-props input[type=range] { accent-color: var(--purple); width: 100%; }
.se-props input[type=color] { width: 34px; height: 34px; padding: 1px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }
.se-props .inp { height: 40px; width: 100%; border-color: var(--line-2); }

.swc { display: inline-flex; gap: 8px; align-items: center; }
.swc button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); padding: 0; }
.swc button.on { box-shadow: 0 0 0 2px var(--ink); }
.mini { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.mini button { border: 0; background: #fff; height: 34px; padding: 0 12px; font-size: 13px; font-weight: 500; }
.mini button.on { background: var(--purple-t); color: var(--purple); }
.se-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 16px; overflow: auto; background: #524D59; position: relative; }
.se-stage canvas { max-width: 100%; max-height: 100%; background: #fff; box-shadow: var(--shadow-s); touch-action: none; }
.se-stage .tin { position: absolute; z-index: 3; border: 2px solid var(--purple); background: #fff; font-weight: 600; padding: 2px 8px; border-radius: 6px; min-width: 140px; outline: 0; }
.tip { position: absolute; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; z-index: 90; pointer-events: none; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .entry { grid-template-columns: 1fr; padding: 24px; }
  .entry-r { display: none; }
  .entry-form { padding: 24px 0; }
  .entry-form h1 { font-size: 36px; }
  .eside, .eact { position: static; display: flex; margin: 10px 0 0; }
  .gwrap.edit { max-width: 990px; }
  .sect .chev { display: none; }
  .sbody { padding: 30px 30px 100px; }
}
@media (max-width: 860px) {
  .shell, .shell.wide, .shell.mid { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; margin: 12px; width: 300px; max-width: calc(100vw - 24px); height: auto; transform: translateX(-120%); transition: transform .2s; box-shadow: var(--shadow); z-index: 45; }
  .side.open { transform: none; }
  .side-scrim { position: fixed; inset: 0; background: rgba(37, 31, 45, .4); z-index: 44; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 16px; min-height: 76px; gap: 8px; }
  .topbar.menu-only { display: flex; min-height: 64px; }
  .sbody { padding: 24px 16px 100px; }
  .topbar .btn { height: 44px; padding: 0 16px; }
  .topbar .hide-m { display: none; }
  .topbar .crumb { display: none; }
  .byline { margin-top: 36px; }
  .shell.edit .topbar .dot-n { display: none; }
  .shell.edit .topbar .btn { height: 40px; padding: 0 12px; font-size: 14px; }
  .shell.edit .topbar { gap: 2px; padding: 12px 10px; }
  .topbar .ib { width: 34px; }
  .srch { width: 100%; }
  .plist .r { flex-wrap: wrap; }
  .sbody .hdr .btn { height: 44px; }
  .page { padding: 0 16px 100px; }
  .page h1 { font-size: 34px; margin-bottom: 20px; }
  .cards { grid-template-columns: 1fr; }
  .tbl .hide-m { display: none; }
  .tbl td { height: 66px; }
  .bulk { left: 50%; bottom: 14px; padding: 8px 10px; flex-wrap: wrap; }
  .bulk b { font-size: 16px; }
  .g-title { font-size: 34px; }
  .gmeta { margin-bottom: 36px; flex-wrap: wrap; }
  .ecard { padding: 14px; border-radius: 20px; }
  .ehd .b-title { font-size: 17px; }
  .two { grid-template-columns: 1fr; min-height: 0; }
  .two .tabs { padding: 20px 16px 4px; grid-auto-flow: column; overflow: auto; }
  .two .pane { border-left: 0; border-top: 1px solid var(--line); }
  .two .pane-b { padding: 24px 20px; }
  .two .pane h2 { font-size: 30px; }
  .two .pane-f { padding: 14px 20px; }
  .loc { margin: 20px -20px 0; padding-left: 20px; }
  .optcard { flex-direction: column; align-items: stretch; }
  .optcard .bt .btn { width: 100%; }
  .brand-grid { grid-template-columns: 1fr; }
  .help { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .se { inset: 8px; }
  .se-top { height: auto; flex-wrap: wrap; padding: 8px 10px; gap: 2px; }
  .se-top .ib { width: 38px; height: 38px; }
  .se-top .sep { display: none; }
  .se-props { left: 12px; right: 12px; width: auto; top: auto; bottom: 12px; max-height: 50%; }
  .pal { padding: 18px; }
  .dlg-h { padding: 20px 20px 4px; } .dlg-b { padding: 8px 20px 20px; } .dlg-f { padding: 14px 20px; }
  .sbody h1 { font-size: 32px; }
  .hdr { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation-duration: .01ms !important; scroll-behavior: auto !important; } }

.selb { border: 0; background: transparent; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.selb:hover:not(:disabled) { background: var(--field); }
.selb:disabled { color: var(--ink); opacity: 1; cursor: default; }
.hint-s { color: var(--mute); font-size: 13px; }
.tbl .docic, .docic { color: var(--mute); display: inline-grid; }

/* ---------- estados, transições e animações ---------- */
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes popin { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes slidein { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes toastin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(249, 101, 15, .45); } 50% { box-shadow: 0 0 0 10px rgba(249, 101, 15, 0); } }
.backdrop { animation: fadein .15s ease-out; }
.dlg { animation: popin .2s cubic-bezier(.2, .8, .2, 1); }
.pop { animation: popin .12s ease-out; transform-origin: top left; }
.toast { animation: toastin .2s ease-out; }
.drawer { animation: slidein .22s cubic-bezier(.2, .8, .2, 1); }
.page, .sbody, .gwrap { animation: fadein .18s ease-out; }
.btn, .ib, .nav, .tb, .card, .st-i, .pop-i, .inp, .sel, .ta, .tab, .mt, .selb { transition: background-color .12s ease, border-color .12s ease, color .12s ease, box-shadow .15s ease, opacity .15s ease; }
.card { transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease; }
.card:hover { box-shadow: 0 6px 22px rgba(37, 31, 45, .10); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.card.skel { cursor: default; pointer-events: none; }
.card.skel .thumb, .card.skel .cb i { background: linear-gradient(90deg, #F1EFF3 25%, #F8F7F9 45%, #F1EFF3 65%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.card.skel .cb i { display: block; height: 16px; border-radius: 8px; }
.card .thumb .ill { position: absolute; inset: 0; }
.card .thumb.empty { background: #F3EAFB; }
.vshot .bx.pulse, .gm-shot .bx.pulse { animation: pulse 1.4s ease-out infinite; }
/* Guiar-me */
.gm { position: fixed; inset: 0; background: #fff; z-index: 70; display: flex; flex-direction: column; animation: fadein .18s ease-out; }
.gm-top { display: flex; align-items: center; gap: 16px; padding: 0 28px; height: 84px; border-bottom: 1px solid var(--line); flex: none; }
.gm-top .logo { margin: -4px 14px 0 0; } .gm-top b { font-weight: 500; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gm-top .sp { flex: 1; }
.gm-prog { height: 4px; background: var(--line); flex: none; } .gm-prog i { display: block; width: 100%; height: 100%; background: var(--purple); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.gm-body { flex: 1; overflow: auto; padding: 40px 24px; width: min(1000px, 100%); margin: 0 auto; }
.gm-body .hd { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.gm-body .hd h2 { font-family: var(--sans); font-size: 26px; font-weight: 500; flex: 1; }
.gm-body .cnt { color: var(--mute); font-size: 15px; }
.gm-body .desc { font-size: 19px; color: var(--mute); margin: 0 0 22px 63px; }
.gm-body .opts { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 22px 63px; }
.gm-shot { border: 1px solid var(--line); border-radius: 26px; overflow: hidden; line-height: 0; }
.gm-shot .zm { position: relative; } .gm-shot img { width: 100%; display: block; } .gm-shot .bx { position: absolute; border: 4px solid; }
.gm-foot { display: flex; align-items: center; gap: 12px; padding: 16px 28px; border-top: 1px solid var(--line); flex: none; }
.gm-foot .sp { flex: 1; } .gm-foot .btn.on { background: var(--purple-t); color: var(--purple); border-color: var(--purple-l); }

.gmon { color: var(--purple); font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; opacity: .85; }
.gmon svg:last-child { color: var(--mute); }
