:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --ink: #15181d;
  --ink-2: #3b414b;
  --muted: #6a717d;
  --line: #e3e1d9;
  --line-2: #d3d0c5;
  --accent: #0b6b5d;
  --accent-ink: #ffffff;
  --accent-soft: #e2f1ec;
  --focus: #2b7fff;
  --quente: #d1460f;
  --quente-soft: #fde9df;
  --morno: #b77a06;
  --morno-soft: #fbf0d5;
  --frio: #52708f;
  --frio-soft: #e6edf4;
  --ok: #1b7f4b;
  --warn: #b26a00;
  --bad: #b42318;
  --bad-soft: #fde7e5;
  --wa: #128c4a;
  --shadow: 0 1px 2px rgba(20, 22, 26, .06), 0 4px 16px rgba(20, 22, 26, .06);
  --shadow-lg: 0 12px 48px rgba(20, 22, 26, .18);
  --r: 10px;
  --r-sm: 7px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1113; --surface: #171a1d; --surface-2: #1c2024; --ink: #eceef0; --ink-2: #c9cdd3; --muted: #959ca7;
    --line: #2a2f35; --line-2: #39404a; --accent: #3cc3a8; --accent-ink: #062520; --accent-soft: #15302b;
    --quente: #ff7a45; --quente-soft: #3a1f14; --morno: #f0b43c; --morno-soft: #33290f; --frio: #8fb0d3; --frio-soft: #1b2733;
    --ok: #4cc38a; --warn: #f0b43c; --bad: #ff6b5e; --bad-soft: #3a1a17; --wa: #3ccf7d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .25); --shadow-lg: 0 12px 48px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); font-variant-numeric: tabular-nums; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 650; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 12px; }
.hidden { display: none !important; }

/* ---------- topo ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1280px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand b { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.brand small { display: block; font-size: 11px; color: var(--muted); margin-top: -2px; letter-spacing: .02em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 550; font-size: 14px; white-space: nowrap; }
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nav .count { font-size: 11px; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.nav a[aria-current="page"] .count { background: color-mix(in srgb, var(--bg) 20%, transparent); color: var(--bg); }
.me { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); flex-shrink: 0; }
@media (max-width: 760px) {
  .top-in { flex-wrap: wrap; gap: 8px 12px; padding: 8px 12px; }
  .nav { order: 3; width: 100%; margin: 0 -4px; }
  .nav a { padding: 7px 10px; }
  .me .who { display: none; }
  main { padding: 16px 12px 72px; }
  .page-head h1 { font-size: 20px; }
}
.demo-flag { background: var(--morno-soft); color: var(--morno); font-weight: 650; font-size: 11px; padding: 3px 8px; border-radius: 999px; letter-spacing: .03em; text-transform: uppercase; }

main { max-width: 1280px; margin: 0 auto; padding: 22px 16px 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------- blocos ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid-search { display: grid; grid-template-columns: minmax(320px, 420px) 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .grid-search { grid-template-columns: 1fr; } }

label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
label.field .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); min-height: 40px;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--focus) 55%, transparent); outline-offset: 0; border-color: var(--focus); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; min-height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.wa:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--line); }
.btn.danger { color: var(--bad); }
.btn.sm { min-height: 32px; padding: 5px 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-weight: 600; font-size: inherit; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg .opt { display: block; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; background: var(--surface); height: 100%; }
.seg .opt b { display: block; font-size: 14px; }
.seg .opt span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.seg input:checked + .opt { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.seg input:focus-visible + .opt { outline: 2px solid var(--focus); outline-offset: 2px; }
.seg input:disabled + .opt { opacity: .5; cursor: not-allowed; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.check small { display: block; color: var(--muted); font-size: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 4px 10px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { margin-left: 4px; color: var(--muted); font-size: 12px; }
.chip[aria-pressed="true"] .n { color: inherit; opacity: .75; }

.estimate { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 12px; background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: var(--r-sm); font-size: 13px; }
.estimate b { font-size: 15px; }

.notice { padding: 10px 12px; border-radius: var(--r-sm); font-size: 13px; background: var(--morno-soft); color: color-mix(in srgb, var(--morno) 70%, var(--ink)); border: 1px solid color-mix(in srgb, var(--morno) 25%, transparent); }
.notice.info { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 60%, var(--ink)); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.notice.bad { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }

/* ---------- buscas ---------- */
.searches { list-style: none; margin: 0; padding: 0; }
.searches li { padding: 12px 18px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; }
.searches li:last-child { border-bottom: 0; }
.searches .t { font-weight: 650; }
.searches .meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.searches .acts { grid-row: span 2; display: flex; gap: 6px; align-items: center; }
.bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 6px; grid-column: 1; }
.bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left center; transition: transform .4s; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.pill.ok { color: var(--ok); }
.pill.run { color: var(--accent); }
.pill.err { color: var(--bad); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.run .dot { animation: pulse 1s infinite alternate; }
@keyframes pulse { from { opacity: .3; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pill.run .dot { animation: none; } .bar i { transition: none; } }

/* ---------- leads ---------- */
.funnel { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: thin; }
.funnel button { flex: 1 0 auto; min-width: 104px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px; cursor: pointer; }
.funnel button b { display: block; font-size: 20px; font-family: var(--font-display); line-height: 1.1; }
.funnel button span { font-size: 12px; color: var(--muted); }
.funnel button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.filters { display: grid; grid-template-columns: minmax(180px, 1.6fr) repeat(4, minmax(130px, 1fr)) auto; gap: 8px; margin-bottom: 12px; }
@media (max-width: 1080px) { .filters { grid-template-columns: 1fr 1fr; } .filters .q { grid-column: 1 / -1; } }

.list { display: grid; gap: 8px; }
.lead { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; text-align: left; width: 100%; }
.lead:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.lead.sel { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.score { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 750; font-size: 18px; line-height: 1; }
.score small { display: block; font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.score.quente { background: var(--quente-soft); color: var(--quente); }
.score.morno { background: var(--morno-soft); color: var(--morno); }
.score.frio { background: var(--frio-soft); color: var(--frio); }
.lead .name { font-weight: 650; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead .sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.tag { font-size: 12px; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.tag.hot { background: var(--quente-soft); border-color: transparent; color: var(--quente); font-weight: 600; }
.tag.good { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.tag.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.lead .side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.status { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.st-novo { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.st-abordado { background: #e6efff; color: #2457c5; }
.st-respondeu { background: #f0e8ff; color: #6a3fc2; }
.st-proposta { background: var(--morno-soft); color: var(--morno); }
.st-fechado { background: #dff5e8; color: var(--ok); }
.st-descartado { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
.st-nao_contatar { background: var(--bad-soft); color: var(--bad); }
@media (prefers-color-scheme: dark) {
  .st-abordado { background: #17253f; color: #8fb3ff; } .st-respondeu { background: #251a3d; color: #c3a6ff; } .st-fechado { background: #12301f; color: var(--ok); }
}
.stars { color: #c98a00; font-weight: 650; }
@media (max-width: 640px) {
  .lead { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  .score { width: 42px; height: 42px; font-size: 16px; }
  .lead .side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 10px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h2 { color: var(--ink); margin-bottom: 6px; }

/* ---------- gaveta do lead ---------- */
.scrim { position: fixed; inset: 0; background: rgba(10, 12, 14, .35); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .18s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100%); background: var(--surface); z-index: 41; box-shadow: var(--shadow-lg); transform: translateX(102%); transition: transform .22s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
@media (prefers-reduced-motion: reduce) { .drawer, .scrim { transition: none; } }
.dr-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.dr-head h2 { font-size: 18px; }
.dr-body { overflow-y: auto; padding: 4px 18px 40px; flex: 1; }
.sec { padding: 16px 0; border-bottom: 1px solid var(--line); }
.sec:last-child { border-bottom: 0; }
.sec > h3 { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.issues { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.issues li { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.issues li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); flex-shrink: 0; transform: translateY(-1px); }
.issues li.okk::before { background: var(--ok); }
.quality { display: flex; align-items: center; gap: 10px; }
.meter { flex: 1; height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; }
.reasons { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 14px; }
.reasons li { display: flex; justify-content: space-between; gap: 10px; }
.reasons li b { font-variant-numeric: tabular-nums; color: var(--accent); }
.reasons li.neutro { color: var(--muted); }
.reasons li.neutro b { color: var(--muted); }
.msg-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { font-size: 13px; display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.timeline time { color: var(--muted); }
.status-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.status-pick button { border: 1px solid var(--line-2); background: var(--surface); padding: 6px 10px; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; }
.status-pick button[aria-pressed="true"] { border-color: transparent; box-shadow: inset 0 0 0 2px currentColor; }

/* ---------- gastos / config ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { padding: 14px 16px; }
.stat b { display: block; font-size: 24px; font-family: var(--font-display); font-weight: 700; }
.stat span { font-size: 13px; color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); }
td.num, th.num { text-align: right; }
.table-wrap { overflow-x: auto; }
.cfg-grid { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.cfg-nav { position: sticky; top: 74px; display: grid; gap: 2px; }
.cfg-nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 550; font-size: 14px; }
.cfg-nav a:hover { background: var(--surface); }
@media (max-width: 900px) { .cfg-grid { grid-template-columns: 1fr; } .cfg-nav { position: static; display: flex; overflow-x: auto; } }
.token-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.token-state { font-size: 12px; font-weight: 600; }
.token-state.on { color: var(--ok); }
.token-state.off { color: var(--muted); }
.steps { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); display: grid; gap: 3px; }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth .card { width: min(400px, 100%); padding: 28px; }
.auth .brand { margin-bottom: 18px; }
.auth h1 { margin-bottom: 6px; }

/* ---------- toast ---------- */
.toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { background: var(--ink); color: var(--bg); padding: 11px 14px; border-radius: 9px; box-shadow: var(--shadow-lg); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.toast.bad { background: var(--bad); color: #fff; }
.toast button { margin-left: auto; background: none; border: 0; color: inherit; font-weight: 700; cursor: pointer; }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rot .7s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- prévias de site ---------- */
.site-sec h3 .tag{font-weight:600}
.site-link{display:block;font-weight:650;font-size:14px;overflow-wrap:anywhere}
.variantes{display:flex;flex-wrap:wrap;gap:8px}
.var-chip{position:relative;display:inline-flex;align-items:center;gap:8px;padding:6px 12px 6px 6px;border:1px solid var(--line-2);border-radius:999px;cursor:pointer;font-size:13px;font-weight:600;background:var(--surface)}
.var-chip input{position:absolute;opacity:0;inset:0;cursor:pointer}
.var-chip .amostra{width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 0 2px rgba(255,255,255,.35)}
.var-chip:has(input:checked){border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.var-chip:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:2px}

.ed-topo p{margin-top:4px}
.ed-grid{display:grid;grid-template-columns:minmax(340px,460px) minmax(0,1fr);gap:20px;align-items:start}
.ed-form{padding:6px 16px 16px;max-height:calc(100vh - 170px);overflow-y:auto;position:sticky;top:74px}
.ed-form details{border-bottom:1px solid var(--line)}
.ed-form details:last-child{border-bottom:0}
.ed-form summary{padding:14px 2px;font-weight:700;cursor:pointer;display:flex;align-items:center;gap:8px;list-style:none}
.ed-form summary::-webkit-details-marker{display:none}
.ed-form summary::after{content:"";margin-left:auto;width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg) translateY(-3px);transition:transform .2s}
.ed-form details[open] summary::after{transform:rotate(225deg) translateY(-1px)}
.ed-form details>.stack{padding:0 2px 18px}
.ed-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ed-lista{display:grid;gap:10px}
.ed-item{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface-2)}
.ed-item-campos{display:grid;gap:8px}
.ed-item-acoes{display:flex;justify-content:flex-end;gap:4px}
.ed-item textarea{min-height:64px}
.ed-foto{display:flex;gap:12px;align-items:center}
.ed-foto-mini{width:64px;height:64px;border-radius:8px;overflow:hidden;background:var(--surface-2);border:1px dashed var(--line-2);display:grid;place-items:center;flex:none}
.ed-foto-mini img{width:100%;height:100%;object-fit:cover}
.ed-foto-mini span{font-size:11px;color:var(--muted)}
.ed-hora{grid-template-columns:90px 1fr;align-items:center}
.ed-prev{display:grid;gap:12px;position:sticky;top:74px}
.ed-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.ed-moldura{display:flex;justify-content:center;overflow:hidden;border-radius:14px;background:var(--surface-2);border:1px solid var(--line)}
.ed-moldura.celular{padding:14px 0}
.ed-moldura.celular iframe{border-radius:22px;box-shadow:0 0 0 8px #1c1f23,var(--shadow-lg)}
.ed-moldura.computador{display:block}
.ed-moldura iframe{display:block;border:0;background:#fff;transform-origin:top left}
.ed-visitas ul{margin:6px 0 0;padding-left:18px;font-size:13px;color:var(--ink-2)}
@media (max-width:1080px){
  .ed-grid{grid-template-columns:1fr}
  .ed-form{position:static;max-height:none}
  .ed-prev{position:static}
}
