/* Central Comercial (Partner Desk)
   Same visual language as the partner guide (02-playbook/guia-parceiro-prospeccao.html):
   a field guide. Bricolage Grotesque for headings, IBM Plex Sans for reading,
   IBM Plex Mono for numbers, labels and the scripts the partner sends.
   Colors only through the tokens below (light and dark). Meaning colors:
   good / warn / bad for status, hot / warm / cold for the prospect score. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #EEF3F7; --surface: #ffffff; --surface-2: #f7f9fc; --ink: #141A2E; --muted: #4f5a6e; --faint: #626d80; --line: #d8e0ea; --line-2: #e6ecf2;
  --accent: #1C50FC; --accent-soft: #e3eaff; --on-accent: #ffffff;
  --brand: #1C50FC; --on-brand: #ffffff; --brand-dark: #141A2E; --on-brand-dark: #eef2f8;
  --hot: #c2410c; --hot-soft: #fdeee5; --warm: #975c06; --warm-soft: #fbf3dc; --cold: #2f6f9f; --cold-soft: #e4f0f8;
  --good: #1d7a4a; --good-soft: #e3f4ea; --bad: #b42318; --bad-soft: #fbe9e7; --warn: #975c06; --warn-soft: #fbf3dc;
  --wa: #1d7a4a; --ig: #a3367c; --ig-soft: #f8e8f2; --on-solid: #ffffff;
  --shadow: 0 1px 2px rgba(20, 26, 46, .05), 0 4px 16px rgba(20, 26, 46, .04);
  --shadow-up: 0 -4px 20px rgba(20, 26, 46, .08);
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 12px; --radius-sm: 8px;
  --nav-h: 0px; --top-h: 3.5rem;
  /* old names kept so every page reads the same tokens */
  --card: var(--surface); --border: var(--line); --text: var(--ink); --dim: var(--muted);
  --blue: var(--accent); --green: var(--good); --amber: var(--warn); --red: var(--bad);
  --log-bg: #0d1222; --log-fg: #eef2f8; --log-dim: #8f9ab0;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1222; --surface: #141A2E; --surface-2: #18203a; --ink: #eef2f8; --muted: #9aa4b5; --faint: #8893a6; --line: #2a3240; --line-2: #20283a;
    --accent: #6f97ff; --accent-soft: #16244a; --on-accent: #0d1222;
    --brand-dark: #0a0f1d;
    --hot: #ff9a6b; --hot-soft: #3a2016; --warm: #f1c35a; --warm-soft: #332a12; --cold: #7fbde6; --cold-soft: #15283a;
    --good: #5fd39a; --good-soft: #123222; --bad: #ff8a7e; --bad-soft: #3a1714; --warn: #f1c35a; --warn-soft: #332a12;
    --wa: #5fd39a; --ig: #f08ccd; --ig-soft: #3a1631; --on-solid: #0d1222;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-up: 0 -4px 20px rgba(0, 0, 0, .35);
    --log-bg: #080c18;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1222; --surface: #141A2E; --surface-2: #18203a; --ink: #eef2f8; --muted: #9aa4b5; --faint: #8893a6; --line: #2a3240; --line-2: #20283a;
  --accent: #6f97ff; --accent-soft: #16244a; --on-accent: #0d1222;
    --brand-dark: #0a0f1d;
  --hot: #ff9a6b; --hot-soft: #3a2016; --warm: #f1c35a; --warm-soft: #332a12; --cold: #7fbde6; --cold-soft: #15283a;
  --good: #5fd39a; --good-soft: #123222; --bad: #ff8a7e; --bad-soft: #3a1714; --warn: #f1c35a; --warn-soft: #332a12;
  --wa: #5fd39a; --ig: #f08ccd; --ig-soft: #3a1631; --on-solid: #0d1222;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-up: 0 -4px 20px rgba(0, 0, 0, .35);
  --log-bg: #080c18;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
html { -webkit-text-size-adjust: 100%; }
html, body { background: var(--bg); color: var(--ink); }
body { font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; padding-bottom: var(--nav-h); min-height: 100vh; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mono { font-size: .88em; }
.ico { flex: none; }
.hidden { display: none !important; }
.muted, .dim { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font: 500 .7rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--bg); padding: .5rem .8rem; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: .5rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }

/* ---------- top bar ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); }
.topbar-in { max-width: 82rem; margin: 0 auto; padding: .5rem 1.25rem; display: flex; align-items: center; gap: 1rem; min-height: var(--top-h); }
.brand { display: flex; align-items: center; gap: .65rem; min-width: 0; text-decoration: none; }
.brand-mark { width: 2rem; height: 2rem; border-radius: 8px; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; font: 600 .78rem/1 var(--mono); letter-spacing: .02em; flex: none; }
.brand-name { font: 800 1rem/1.15 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.brand-sub { font: 500 .64rem/1.3 var(--mono); color: var(--muted); white-space: nowrap; text-transform: uppercase; letter-spacing: .08em; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .7rem; border-radius: var(--radius-sm); font-size: .86rem; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; min-height: 2.5rem; }
.nav a:hover { background: var(--accent-soft); color: var(--accent); }
.nav a.active { background: var(--ink); color: var(--bg); }
.user-btn { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem .25rem .3rem; font-size: .84rem; color: var(--muted); background: var(--surface); min-height: 2.5rem; }
.user-btn:hover { border-color: var(--muted); }
.avatar { width: 1.85rem; height: 1.85rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font: 600 .7rem/1 var(--mono); }
.menu { position: fixed; right: max(1rem, env(safe-area-inset-right, 0px)); top: calc(var(--top-h) + .3rem + env(safe-area-inset-top, 0px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, .16); padding: .4rem; min-width: 15rem; z-index: 40; }
.menu .who { padding: .55rem .65rem .7rem; border-bottom: 1px solid var(--line-2); margin-bottom: .3rem; font-size: .8rem; color: var(--muted); }
.menu .who b { display: block; font-size: .9rem; color: var(--ink); }
.menu button, .menu a { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem .65rem; border-radius: var(--radius-sm); font-size: .88rem; color: var(--ink); text-align: left; text-decoration: none; min-height: 2.6rem; }
.menu button:hover, .menu a:hover { background: var(--accent-soft); color: var(--accent); }
.menu .sep { height: 1px; background: var(--line-2); margin: .3rem 0; }
.menu .only-phone { display: none; }

/* bottom tab bar on phones: big targets, the active one in ink */
.tabbar { display: none; }
@media (max-width: 1100px) { .nav a { padding: .45rem .55rem; font-size: .82rem; } .nav a .ico { display: none; } }
@media (max-width: 860px) { .nav { display: none; } .user-btn { margin-left: auto; } .menu .only-phone { display: flex; } }
@media (max-width: 860px) {
  :root { --nav-h: calc(4rem + env(safe-area-inset-bottom, 0px)); }
  .user-btn .uname { display: none; }
  .user-btn { padding: .2rem; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; height: var(--nav-h); background: var(--surface); border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; font-size: .7rem; font-weight: 500; color: var(--muted); text-decoration: none; min-height: 3.5rem; }
  .tabbar a.active { color: var(--ink); font-weight: 600; }
  .tabbar a.active .ico { color: var(--accent); }
}

/* ---------- layout ---------- */
.page { max-width: 82rem; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; }
.page-head .sub { font-size: .9rem; color: var(--muted); margin-top: .25rem; }
.toolbar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2.reorder { display: flex; flex-direction: column; align-items: stretch; }
  .grid-2.reorder > .stack { display: contents; }
  .grid-2.reorder [data-o="1"] { order: 1; } .grid-2.reorder [data-o="2"] { order: 2; } .grid-2.reorder [data-o="3"] { order: 3; }
  .grid-2.reorder [data-o="4"] { order: 4; } .grid-2.reorder [data-o="5"] { order: 5; } .grid-2.reorder [data-o="6"] { order: 6; }
  .grid-2.reorder [data-o="7"] { order: 7; } .grid-2.reorder [data-o="8"] { order: 8; } .grid-2.reorder [data-o="9"] { order: 9; }
  .grid-2.reorder [data-o="10"] { order: 10; } .grid-2.reorder [data-o="11"] { order: 11; } .grid-2.reorder [data-o="12"] { order: 12; }
}
details > summary.area-head { flex-wrap: nowrap; }
details > summary.area-head::-webkit-details-marker { display: none; }
details[open] > summary.area-head > .ico:last-child { transform: rotate(90deg); }

/* cards (called "area" in the pages) */
.area { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; box-shadow: var(--shadow); }
.area-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.area-title { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.area-icon { width: 2.1rem; height: 2.1rem; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.area-title h2 { font-size: 1.08rem; font-weight: 600; letter-spacing: -.005em; }
.area-title .sub { font-size: .8rem; color: var(--muted); margin-top: 2px; font-family: var(--body); }
.area-body { padding: 1.15rem; }
.area-body.flush { padding: 0; }
.sub-head { font: 500 .7rem/1.2 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .6rem; }
.note { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.empty { display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; color: var(--muted); padding: 2rem 1.25rem; font-size: .9rem; }
.empty b { color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.empty .ico { color: var(--faint); }
.callout { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; line-height: 1.45; padding: .7rem .85rem; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--ink); }
.callout.warn { background: var(--warn-soft); }
.callout.bad { background: var(--bad-soft); }
.callout.good { background: var(--good-soft); }
.callout .ico { margin-top: .15rem; color: var(--accent); }
.callout.warn .ico { color: var(--warn); } .callout.bad .ico { color: var(--bad); } .callout.good .ico { color: var(--good); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border-radius: var(--radius-sm); padding: .55rem .95rem; font-size: .88rem; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; text-decoration: none; min-height: 2.75rem; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--muted); }
.btn-dark, .btn-primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-dark:hover, .btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-good { background: var(--good); border-color: var(--good); color: var(--on-solid); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: var(--on-solid); }
.btn-ig { background: var(--ig); border-color: var(--ig); color: var(--on-solid); }
.btn-good:hover, .btn-wa:hover, .btn-ig:hover, .btn-accent:hover { filter: brightness(1.08); border-color: transparent; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.btn-sm { padding: .35rem .65rem; min-height: 2.25rem; font-size: .8rem; }
.btn-lg { min-height: 3.1rem; font-size: .95rem; padding: .7rem 1.2rem; }
.btn-danger { color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy::after { content: ""; position: absolute; width: 1rem; height: 1rem; border-radius: 999px; border: 2px solid var(--muted); border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px; gap: 2px; }
.seg button { padding: .45rem .8rem; font-size: .84rem; color: var(--muted); border-radius: 6px; white-space: nowrap; min-height: 2.3rem; }
.seg button:hover { color: var(--ink); }
.seg button.active { background: var(--ink); color: var(--bg); font-weight: 600; }
/* P31: no celular o seletor quebra linha em vez de esconder botões (Ligação sumia a 375px). */
@media (max-width: 520px) { .seg { display: flex; flex-wrap: wrap; overflow-x: visible; } .seg button { flex: 1 1 auto; } }
.input, .select, textarea.input { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: .55rem .7rem; font-size: .92rem; width: 100%; color: var(--ink); min-height: 2.75rem; }
.input::placeholder { color: var(--faint); }
textarea.input { min-height: 5rem; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238893a6' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; width: auto; }
.input:focus, .select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.input[aria-invalid="true"] { border-color: var(--bad); }
label.field { display: flex; flex-direction: column; gap: .35rem; font-size: .82rem; font-weight: 600; color: var(--ink); min-width: 0; }
label.field .hint, div.field > .hint { font-weight: 400; color: var(--muted); font-size: .78rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .9rem 1.1rem; }
.form-grid .wide { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; min-height: 2.25rem; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.search { position: relative; flex: 1 1 14rem; }
.search .ico { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search .input { padding-left: 2.2rem; }

/* ---------- numbers, KPIs, meters ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .kpis.k6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kpi { border: 1px solid var(--line-2); border-radius: 10px; padding: .85rem .95rem; background: var(--surface-2); min-width: 0; }
.kpi-label { font: 500 .68rem/1.25 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi-value { font: 600 1.55rem/1.2 var(--mono); letter-spacing: -.02em; margin-top: .3rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-sub { font-size: .76rem; color: var(--muted); margin-top: .2rem; }
.kpi.hl { background: var(--accent-soft); border-color: transparent; }
.goal-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.goal-num { font: 600 2rem/1.1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.goal-num small { font-size: .95rem; color: var(--muted); font-weight: 400; }
.bar { height: .5rem; background: var(--line-2); border-radius: 999px; overflow: hidden; margin: .6rem 0 .8rem; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }
.bar.done > span { background: var(--good); }
.bar.full > span { background: var(--bad); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-stat { display: inline-flex; align-items: center; gap: .35rem; font: 500 .78rem/1.3 var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .65rem; white-space: nowrap; background: var(--surface); }
.chip-stat b { color: var(--ink); font-weight: 600; }

/* ---------- pills: status, meaning, prospect tier ---------- */
.pill { display: inline-flex; align-items: center; gap: .3rem; font: 500 .72rem/1.2 var(--mono); padding: .22rem .55rem; border-radius: 999px; white-space: nowrap; background: var(--line-2); color: var(--muted); }
.st-new { background: var(--accent-soft); color: var(--accent); }
.st-contacted { background: var(--cold-soft); color: var(--cold); }
.st-replied, .st-xray_sent { background: var(--warm-soft); color: var(--warm); }
.st-call_booked, .st-link_sent { background: var(--hot-soft); color: var(--hot); }
.st-paid { background: var(--good-soft); color: var(--good); }
.st-lost { background: var(--line-2); color: var(--muted); }
.st-do_not_contact { background: var(--bad-soft); color: var(--bad); }
.pill.ok, .pill.good { background: var(--good-soft); color: var(--good); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.wait { background: var(--warn-soft); color: var(--warn); }
.pill.off { background: var(--line-2); color: var(--muted); }
.win-open { background: var(--good-soft); color: var(--good); }
.win-later { background: var(--warn-soft); color: var(--warn); }
.win-closed, .win-unknown { background: var(--line-2); color: var(--muted); }
.tier { display: inline-flex; align-items: center; gap: .35rem; font: 600 .7rem/1 var(--mono); padding: .32rem .55rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; background: var(--line-2); color: var(--muted); }
.tier::before { content: ""; width: .45rem; height: .45rem; border-radius: 999px; background: currentColor; }
.tier-hot { background: var(--hot-soft); color: var(--hot); }
.tier-warm { background: var(--warm-soft); color: var(--warm); }
.tier-cold { background: var(--cold-soft); color: var(--cold); }
.tier b { font-weight: 600; letter-spacing: 0; }
.grade { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .3rem; border-radius: 6px; font: 600 .8rem/1 var(--mono); border: 1.5px solid var(--line); }
.grade-A, .grade-B { color: var(--good); border-color: var(--good); }
.grade-C { color: var(--warn); border-color: var(--warn); }
.grade-D, .grade-E { color: var(--bad); border-color: var(--bad); }
.ch-badge { display: inline-flex; align-items: center; gap: .3rem; font: 500 .72rem/1.2 var(--mono); padding: .22rem .5rem; border-radius: 6px; background: var(--line-2); color: var(--muted); white-space: nowrap; }
.ch-whatsapp { background: var(--good-soft); color: var(--wa); }
.ch-instagram { background: var(--ig-soft); color: var(--ig); }
.ch-email { background: var(--accent-soft); color: var(--accent); }
.ch-call { background: var(--warn-soft); color: var(--warn); }

/* ---------- queue rows (Leads, follow-ups) ---------- */
.q-list { display: flex; flex-direction: column; }
.q-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1rem; padding: .85rem 1.15rem; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; min-height: 3.5rem; }
.q-row:last-child { border-bottom: 0; }
.q-row:hover { background: var(--surface-2); }
.q-name { font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: .5rem; min-width: 0; }
.q-name span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-meta { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem .7rem; align-items: center; }
.q-find { grid-column: 1 / -1; font-size: .84rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-side { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.q-time { font: 500 .82rem/1.2 var(--mono); display: inline-flex; align-items: center; gap: .3rem; }
.q-ch { display: inline-flex; gap: .35rem; color: var(--faint); }
.q-ch .on { color: var(--ink); }
@media (max-width: 520px) {
  .q-row { padding: .8rem 1rem; }
  .q-find { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* ---------- Hoje: limits and channel groups ---------- */
.limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.limit { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem .75rem; background: var(--surface); min-width: 0; }
.limit-name { display: flex; align-items: center; gap: .4rem; font: 500 .68rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.limit-val { font: 600 1.35rem/1.2 var(--mono); margin-top: .35rem; }
.limit-val small { font-size: .8rem; color: var(--muted); font-weight: 400; }
.limit .bar { margin: .5rem 0 0; height: .35rem; }
.limit.full { border-color: var(--bad); }
.limit.full .limit-val { color: var(--bad); }
@media (max-width: 640px) { .limits { gap: .5rem; } .limit { padding: .65rem .65rem .6rem; } .limit-val { font-size: 1.1rem; } .limit-name .word { display: none; } }
.daybar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.25rem; font-size: .88rem; color: var(--muted); }
.daybar b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.jump { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; position: sticky; top: calc(var(--top-h) + 1px + env(safe-area-inset-top, 0px)); z-index: 20; background: var(--bg); padding: .55rem 0; margin: -.55rem 0; }
.jump a { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .86rem; font-weight: 500; text-decoration: none; color: var(--ink); min-height: 2.6rem; }
.jump a b { font-family: var(--mono); font-weight: 600; }
.jump a.zero { color: var(--muted); }
.jump a:hover { border-color: var(--accent); color: var(--accent); }
.ch-section { scroll-margin-top: calc(var(--top-h) + 4rem); }
.ch-ico { width: 2.1rem; height: 2.1rem; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--line-2); color: var(--muted); }
.ch-ico.whatsapp { background: var(--good-soft); color: var(--wa); }
.ch-ico.instagram { background: var(--ig-soft); color: var(--ig); }
.ch-ico.email { background: var(--accent-soft); color: var(--accent); }
.ch-ico.call { background: var(--warn-soft); color: var(--warn); }
.step-list { display: flex; flex-direction: column; }
.ch-empty { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; color: var(--muted); padding: .25rem .6rem; border-radius: 999px; background: var(--line-2); scroll-margin-top: calc(var(--top-h) + 4rem); }
.msg { max-width: 78ch; }
.step-card { padding: 1rem 1.15rem 1.1rem; border-bottom: 1px solid var(--line-2); display: grid; gap: .7rem; }
.step-card:last-child { border-bottom: 0; }
.step-card.sent { opacity: .5; }
.step-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.step-who { min-width: 0; }
.step-who a { font: 600 1.05rem/1.25 var(--display); text-decoration: none; }
.step-who a:hover { color: var(--accent); }
.step-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.step-side { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; flex: none; }
.step-label { display: inline-flex; align-items: center; gap: .45rem; font: 500 .72rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.step-label.overdue { color: var(--bad); }
.msg { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: .75rem .85rem; font: 400 .84rem/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; }
.msg .subj { display: block; font-weight: 500; color: var(--muted); margin-bottom: .4rem; padding-bottom: .4rem; border-bottom: 1px dashed var(--line); }
.step-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.step-actions .push { margin-left: auto; }
@media (max-width: 640px) {
  .step-card { padding: .95rem 1rem 1rem; }
  .step-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .step-actions .btn { width: 100%; }
  .step-actions .span2 { grid-column: 1 / -1; }
  .step-actions .push { margin-left: 0; }
}
.proof-line { display: flex; flex-wrap: wrap; gap: .3rem .4rem; align-items: center; font-size: .78rem; color: var(--muted); }
.proof { display: inline-flex; align-items: center; gap: .25rem; font: 500 .7rem/1.2 var(--mono); padding: .2rem .45rem; border-radius: 5px; background: var(--line-2); color: var(--muted); white-space: nowrap; }
.proof.yes { background: var(--good-soft); color: var(--good); }
.proof.no { background: var(--bad-soft); color: var(--bad); }
.proof.maybe { background: var(--warn-soft); color: var(--warn); }

/* ---------- lead card ---------- */
.lead-head { display: flex; flex-direction: column; gap: .6rem; }
.back { display: inline-flex; align-items: center; gap: .3rem; font-size: .86rem; color: var(--muted); text-decoration: none; min-height: 2.25rem; align-self: flex-start; }
.back:hover { color: var(--accent); }
.lead-title { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.lead-title h1 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; }
.lead-sub { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .88rem; color: var(--muted); }
.lead-sub span { display: inline-flex; align-items: center; gap: .3rem; }
.scoreboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.score-tile { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; background: var(--surface); min-width: 0; }
.score-tile .big { font: 600 1.6rem/1.15 var(--mono); margin-top: .3rem; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.score-tile .big small { font-size: .8rem; color: var(--muted); font-weight: 400; }
.score-tile .sm { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.score-tile.hot { background: var(--hot-soft); border-color: transparent; } .score-tile.hot .big { color: var(--hot); }
.score-tile.warm { background: var(--warm-soft); border-color: transparent; } .score-tile.warm .big { color: var(--warm); }
.score-tile.cold { background: var(--cold-soft); border-color: transparent; } .score-tile.cold .big { color: var(--cold); }
@media (max-width: 640px) { .scoreboard { gap: .5rem; } .score-tile { padding: .65rem .7rem; } .score-tile .big { font-size: 1.2rem; } .score-tile .sm { display: none; } }
.actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: .7rem .4rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .8rem; font-weight: 600; text-decoration: none; color: var(--ink); min-height: 4rem; text-align: center; }
.act:hover { border-color: var(--accent); color: var(--accent); }
.act.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.act[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.status-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.st-btn { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem; font-size: .84rem; font-weight: 500; color: var(--muted); background: var(--surface); min-height: 2.5rem; }
.st-btn:hover { border-color: var(--accent); color: var(--accent); }
.st-btn.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.st-btn.danger { color: var(--bad); border-color: var(--bad-soft); }
.st-btn.danger.current { background: var(--bad); color: var(--on-solid); border-color: var(--bad); }
.script { border: 1px solid var(--line-2); border-radius: 10px; padding: .8rem .9rem; margin-bottom: .7rem; background: var(--surface-2); }
.script:last-child { margin-bottom: 0; }
.script-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; }
.script-label { font: 500 .7rem/1.2 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.script-text { font: 400 .86rem/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; }
.copy-btn { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; padding: .35rem .65rem; background: var(--surface); white-space: nowrap; min-height: 2.25rem; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.done { color: var(--good); border-color: var(--good); }
.tabs { display: flex; gap: .15rem; border-bottom: 1px solid var(--line-2); margin: -.2rem 0 .9rem; overflow-x: auto; scrollbar-width: none; }
.tab { padding: .6rem .8rem; font-size: .86rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; min-height: 2.6rem; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.finding { font-size: .92rem; line-height: 1.55; }
.finding + .finding { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line-2); }
.finding .lbl { display: block; font: 500 .68rem/1.2 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; }
.warn { display: flex; gap: .55rem; font-size: .84rem; line-height: 1.45; padding: .55rem .75rem; border-radius: 9px; background: var(--warn-soft); color: var(--ink); }
.warn + .warn { margin-top: .4rem; }
.warn svg { margin-top: .15rem; color: var(--warn); }
.kv { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .5rem .9rem; font-size: .88rem; }
.kv dt { font: 500 .7rem/1.6 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.link-box { display: flex; gap: .4rem; align-items: center; }
.link-box code { flex: 1; min-width: 0; font: .78rem var(--mono); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .55rem .6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outcomes { display: flex; flex-wrap: wrap; gap: .35rem; }
.outcomes button { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .75rem; font-size: .82rem; color: var(--muted); background: var(--surface); min-height: 2.25rem; }
.outcomes button.active { color: var(--ink); border-color: var(--ink); }
.timeline li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .65rem; padding: .6rem 0; border-bottom: 1px solid var(--line-2); }
.timeline li:last-child { border-bottom: 0; }
.tl-ico { width: 2rem; height: 2rem; border-radius: 999px; background: var(--line-2); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.tl-main { font-size: .86rem; line-height: 1.45; }
.tl-main .when { font: .72rem var(--mono); color: var(--muted); }
.tl-main .txt { color: var(--muted); white-space: pre-wrap; }
.followup-box { display: flex; align-items: center; gap: .7rem; padding: .75rem .85rem; border-radius: 10px; background: var(--accent-soft); font-size: .86rem; }
.followup-box.due { background: var(--warn-soft); }
@media (max-width: 520px) {
  .actions { gap: .35rem; }
  .act { min-height: 3.6rem; font-size: .72rem; padding: .55rem .2rem; }
  .kv { grid-template-columns: 6.5rem minmax(0, 1fr); }
}
/* cadence timeline on the lead card */
.cad { display: flex; flex-direction: column; }
.cad > li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .8rem; padding-bottom: 1.1rem; position: relative; }
.cad > li:not(:last-child)::after { content: ""; position: absolute; left: 1.25rem; top: 2.8rem; bottom: .3rem; width: 2px; background: var(--line); }
.cad-day { width: 2.6rem; height: 2.6rem; border-radius: 999px; display: flex; align-items: center; justify-content: center; font: 600 .78rem/1 var(--mono); background: var(--accent-soft); color: var(--accent); }
.cad > li.done .cad-day { background: var(--good-soft); color: var(--good); }
.cad > li.skipped .cad-day, .cad > li.canceled .cad-day { background: var(--line-2); color: var(--faint); }
.cad > li.next .cad-day { background: var(--ink); color: var(--bg); }
.cad-body { min-width: 0; display: grid; gap: .45rem; padding-top: .15rem; }
.cad-top { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; font-size: .9rem; }
.cad-top b { font-weight: 600; }
.cad-when { font: .74rem var(--mono); color: var(--muted); }
.cad > li.canceled .cad-top b, .cad > li.skipped .cad-top b { text-decoration: line-through; color: var(--muted); }
.cad details > summary { list-style: none; cursor: pointer; font-size: .82rem; color: var(--accent); min-height: 2rem; display: inline-flex; align-items: center; gap: .3rem; }
.cad details > summary::-webkit-details-marker { display: none; }
.contact-row { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: .7rem; align-items: start; padding: .8rem 0; border-bottom: 1px solid var(--line-2); }
.contact-row:first-child { padding-top: 0; }
.contact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-ico { width: 2.2rem; height: 2.2rem; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--line-2); color: var(--muted); }
.contact-val { font: 500 .9rem/1.35 var(--mono); overflow-wrap: anywhere; }
.contact-src { font-size: .78rem; color: var(--muted); margin-top: .25rem; line-height: 1.4; }
.opp { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); gap: .6rem; padding: .65rem 0; border-bottom: 1px solid var(--line-2); }
.opp:last-child { border-bottom: 0; padding-bottom: 0; }
.opp-n { width: 1.8rem; height: 1.8rem; border-radius: 999px; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; font: 600 .76rem/1 var(--mono); }
.opp-t { font-weight: 600; font-size: .92rem; }
.opp-m { font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem .6rem; margin-top: .2rem; }
.areas { display: flex; flex-wrap: wrap; gap: .35rem; }
.area-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; padding: .25rem .55rem; border-radius: 6px; background: var(--line-2); color: var(--muted); }
.area-chip i { width: .5rem; height: .5rem; border-radius: 999px; background: var(--muted); }
.area-chip.good i { background: var(--good); } .area-chip.warn i { background: var(--warn); } .area-chip.bad i { background: var(--bad); }
.reasons-list li { display: flex; justify-content: space-between; gap: .75rem; font-size: .86rem; padding: .4rem 0; border-bottom: 1px dashed var(--line-2); }
.reasons-list li:last-child { border-bottom: 0; }
.reasons-list .n { font: 600 .8rem var(--mono); white-space: nowrap; }
.reasons-list .n.p { color: var(--good); } .reasons-list .n.m { color: var(--bad); }
.sticky-actions { position: sticky; bottom: calc(var(--nav-h) + .5rem); z-index: 15; display: flex; gap: .5rem; padding: .55rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-up); }
.sticky-actions .btn { flex: 1 1 0; min-width: 0; white-space: normal; text-align: center; line-height: 1.2; } /* P31: os dois botões cabem em 375px, sem rolagem lateral */
@media (min-width: 861px) { .sticky-actions { display: none; } }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; font: 500 .68rem/1.2 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: .65rem .85rem; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: .7rem .85rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .nowrap { white-space: nowrap; }
.tbl .trunc { max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: var(--surface-2); }
.tbl a { color: var(--accent); text-decoration: none; }
.tbl a:hover { text-decoration: underline; }
.tbl tfoot td { font-weight: 600; border-top: 1px solid var(--line); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1.15rem; font: .78rem var(--mono); color: var(--muted); border-top: 1px solid var(--line-2); }
.toggle { position: relative; width: 2.6rem; height: 1.5rem; border-radius: 999px; background: var(--line); transition: background .2s; flex: none; }
.toggle::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.1rem; height: 1.1rem; border-radius: 999px; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.toggle[aria-checked="true"] { background: var(--good); }
.toggle[aria-checked="true"]::after { transform: translateX(1.1rem); }

/* ---------- chart ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-family: var(--mono); }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.legend i { display: inline-block; width: .65rem; height: .65rem; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }
.c-call { background: var(--warn); fill: var(--warn); }
.c-email { background: var(--accent); fill: var(--accent); }
.c-whatsapp { background: var(--wa); fill: var(--wa); }
.c-instagram { background: var(--ig); fill: var(--ig); }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; justify-items: center; padding: 1.25rem; }
.login-side { display: none; }
@media (min-width: 900px) {
  .login-wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: 0; justify-items: stretch; align-items: stretch; }
  .login-side { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 3rem; background: var(--brand-dark); color: var(--on-brand-dark); }
  .login-side h2 { font: 800 clamp(2rem, 3.2vw, 2.8rem)/1.08 var(--display); letter-spacing: -.02em; max-width: 16ch; }
  .login-side p { opacity: .75; max-width: 44ch; }
  .login-side ol { display: grid; gap: .9rem; counter-reset: s; max-width: 42ch; }
  .login-side li { counter-increment: s; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .8rem; font-size: .95rem; align-items: center; }
  .login-side li::before { content: counter(s); font: 600 .85rem/1.9rem var(--mono); text-align: center; width: 2rem; height: 2rem; border-radius: 999px; border: 1px solid currentColor; opacity: .8; }
  .login-side .brand-mark { background: var(--brand); color: var(--on-brand); }
  .login-side .eyebrow { color: inherit; opacity: .7; }
  .login-main { display: flex; align-items: center; justify-content: center; padding: 2rem; }
}
.login-main { width: 100%; display: flex; justify-content: center; }
.login { width: 100%; max-width: 24rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: var(--shadow); }
.login h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
.login .brand-mark { width: 2.4rem; height: 2.4rem; font-size: .9rem; }
.form-err { font-size: .86rem; color: var(--bad); min-height: 1.2rem; }

/* ---------- loading ---------- */
.skeleton { display: grid; gap: 1rem; }
.sk { border-radius: var(--radius); background: linear-gradient(90deg, var(--line-2) 0%, var(--surface-2) 50%, var(--line-2) 100%); background-size: 200% 100%; animation: sk 1.3s ease-in-out infinite; }
.sk.h1 { height: 2.4rem; width: min(22rem, 70%); }
.sk.row { height: 5.5rem; }
.sk.card { height: 11rem; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk, .live-dot, .btn.busy::after { animation: none; } *, *::before, *::after { transition: none !important; } }

/* ---------- toast / dialog ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 1rem); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: .65rem 1rem; border-radius: 10px; font-size: .88rem; z-index: 60; box-shadow: 0 10px 28px rgba(0, 0, 0, .22); max-width: calc(100vw - 2rem); display: flex; align-items: center; gap: .75rem; }
.toast.err { background: var(--bad); color: var(--on-solid); }
.toast button { color: inherit; text-decoration: underline; font-weight: 600; min-height: 2rem; }
dialog { border: 1px solid var(--line); border-radius: 16px; padding: 0; width: min(30rem, calc(100vw - 2rem)); color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgba(13, 18, 34, .5); }
dialog .d-head { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line-2); font: 600 1.1rem/1.25 var(--display); }
dialog .d-body { padding: 1.2rem; display: flex; flex-direction: column; gap: .9rem; }
dialog .d-foot { padding: .9rem 1.2rem; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: .5rem; }
.secret { font: .8rem var(--mono); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .6rem .7rem; word-break: break-all; }

@media (max-width: 640px) {
  .topbar-in { padding: .5rem 1rem; }
  .page { padding: 1.1rem 1rem 1.5rem; gap: 1rem; }
  .area-head { padding: .85rem 1rem; }
  .area-body { padding: 1rem; }
  .brand-sub { display: none; }
  .kpi-value { font-size: 1.3rem; }
}

/* ---------- lists, runs, log ---------- */
.run-queued { background: var(--warn-soft); color: var(--warn); }
.run-running { background: var(--accent-soft); color: var(--accent); }
.run-done { background: var(--good-soft); color: var(--good); }
.run-failed { background: var(--bad-soft); color: var(--bad); }
.run-canceled { background: var(--line-2); color: var(--muted); }
.pick { display: flex; flex-wrap: wrap; gap: .4rem; }
.pick label { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .75rem; font-size: .84rem; font-weight: 500; color: var(--muted); background: var(--surface); cursor: pointer; min-height: 2.4rem; }
.pick label:has(input:checked) { border-color: var(--ink); color: var(--ink); background: var(--accent-soft); }
.pick input { accent-color: var(--accent); }
.city-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem .8rem; font-size: .82rem; font-weight: 600; }
.city-count { font-family: var(--mono); font-size: .74rem !important; }
.city-count.over { color: var(--bad) !important; font-weight: 600; }
.city-tools { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 .7rem; }
.city-tier { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; margin: 0 0 .4rem; }
.city-tier .tier-name, .city-more summary { font-size: .8rem; font-weight: 600; color: var(--ink); }
.city-tier .hint { font-weight: 400; color: var(--muted); font-size: .76rem; }
.city-more { margin-top: .6rem; }
.city-more summary { cursor: pointer; padding: .45rem 0; min-height: 2.4rem; }
.city-more .pick { margin-top: .2rem; }
.city-chip { flex-wrap: wrap; row-gap: .1rem; }
.city-seen { font: 500 .68rem/1.2 var(--mono); color: var(--warn); }
.city-notes { display: block; margin-top: .55rem; }
.list-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line-2); }
.list-card:last-child { border-bottom: 0; }
.list-card h3 { font-size: 1.05rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.list-meta { font-size: .84rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .35rem; }
.list-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.list-side { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.list-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .list-card { grid-template-columns: 1fr; } .list-side { align-items: flex-start; } .list-actions { justify-content: flex-start; } }
/* P33: limite do Google Places, cobertura da lista e Registro de locais */
.budget { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .6rem; font-size: .84rem; line-height: 1.45; padding: .6rem .8rem; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-2); margin-bottom: .6rem; }
.budget > span:first-of-type { flex: 1 1 16rem; min-width: 0; }
.budget svg { color: var(--muted); flex: none; }
.coverage { margin-top: .5rem; font-size: .82rem; color: var(--muted); }
.coverage summary { cursor: pointer; line-height: 1.5; }
.coverage summary svg { vertical-align: -2px; margin-right: .3rem; }
.coverage ul { list-style: none; margin: .4rem 0 0; padding: 0; }
.coverage li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; padding: .3rem 0; border-bottom: 1px solid var(--line-2); }
.coverage li:last-child { border-bottom: 0; }
.coverage li span:last-child { font-family: var(--mono); font-size: .76rem; }
.reg-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .6rem; }
.reg-reason { color: var(--muted); font-size: .8rem; max-width: 22rem; }
.reg-cards { display: none; }
@media (max-width: 760px) {
  .reg-table { display: none; }
  .reg-cards { display: block; }
  .reg-card { padding: .8rem 1rem; border-bottom: 1px solid var(--line-2); font-size: .84rem; }
  .reg-card h4 { font-size: .95rem; font-weight: 600; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; overflow-wrap: anywhere; }
  .reg-card .list-meta { font-size: .78rem; }
}
.logbox { background: var(--log-bg); color: var(--log-fg); font: .76rem/1.6 var(--mono); border-radius: 10px; padding: .8rem .9rem; max-height: 28rem; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.logbox .t { color: var(--log-dim); }
.logbox .warn-l { color: #f1c35a; }
.logbox .error-l { color: #ff8a7e; }
.reasons li { display: flex; justify-content: space-between; gap: 1rem; font-size: .86rem; padding: .45rem 0; border-bottom: 1px solid var(--line-2); }
.reasons li:last-child { border-bottom: 0; }
.reasons b { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.live-dot { width: .5rem; height: .5rem; border-radius: 999px; background: var(--accent); display: inline-block; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
fieldset.group { border: 1px solid var(--line-2); border-radius: 10px; padding: .9rem 1rem 1.05rem; margin: 0; min-width: 0; }
fieldset.group legend { font: 500 .7rem/1.2 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; padding: 0 .4rem; }
.dropzone { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; color: var(--muted); font-size: .88rem; }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- screen-specific styles of the admin screens go below this line (one block per screen) ---------- */

/* Leads: table on desktop, cards on phones */
.leads-filters { display: flex; flex-direction: column; gap: .75rem; }
.leads-list { border-top: 1px solid var(--line-2); }
.lead-cards { display: none; }
.lead-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; white-space: normal; }
.tier-seg button b { margin-left: .2rem; }
.tier-seg .tseg-hot.active { background: var(--hot); color: var(--on-solid); }
.tier-seg .tseg-warm.active { background: var(--warm); color: var(--on-solid); }
.tier-seg .tseg-cold.active { background: var(--cold); color: var(--on-solid); }
@media (max-width: 760px) {
  .lead-table { display: none; }
  .lead-cards { display: flex; }
  .leads-filters .toolbar .select { flex: 1 1 calc(50% - .25rem); width: auto; }
  .leads-filters .search { flex-basis: 100%; }
  .tier-seg { width: 100%; }
  .tier-seg button { flex: 1; padding-left: .4rem; padding-right: .4rem; }
}

/* Configurações */
.cfg-stack { display: flex; flex-direction: column; gap: 1rem; }
.cfg-nav { align-self: flex-start; }
.ps-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .6rem; }
.ps-opt { display: flex; gap: .65rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: .75rem .85rem; cursor: pointer; background: var(--surface); }
.ps-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ps-opt input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; accent-color: var(--accent); flex: none; }
.ps-opt b { display: block; font-size: .92rem; }
.ps-opt .hint { display: block; font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.ps-line { margin-top: .4rem; }
.sup-upload { border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: .8rem; }
.sup-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.sup-grid .dropzone { cursor: pointer; justify-content: center; min-height: 9rem; }
.sup-grid .dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) { .sup-grid { grid-template-columns: 1fr; } .cfg-nav { align-self: stretch; } }

/* Métricas: P.S. test side by side */
.ps-compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: center; }
.ps-side { border: 1px solid var(--line-2); border-radius: 10px; padding: .9rem 1rem; background: var(--surface-2); display: grid; gap: .35rem; justify-items: start; }
.ps-rate { font: 600 2rem/1.1 var(--mono); }
.ps-vs { font: 500 .8rem var(--mono); color: var(--muted); text-transform: uppercase; }
@media (max-width: 520px) { .ps-compare { grid-template-columns: 1fr; } .ps-vs { justify-self: center; } }
.met-days { border-top: 1px solid var(--line-2); }
.met-days > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .4rem; padding: .8rem 1.15rem; font-size: .86rem; color: var(--accent); min-height: 2.75rem; }
.met-days > summary::-webkit-details-marker { display: none; }
.met-days[open] > summary .ico { transform: rotate(90deg); }

/* Empty states inside wide tables stay in view on phones */
.tbl td:has(> .empty) { padding: 0; }
.tbl td > .empty { position: sticky; left: 0; max-width: calc(100vw - 2.2rem); }
/* Phones: the screen's main action first, full width */
@media (max-width: 640px) {
  .page-head > .toolbar { width: 100%; }
  .page-head > .toolbar .btn-dark { order: -1; flex: 1 1 100%; }
  .page-head > .btn, .page-head > a.btn { width: 100%; }
}

/* Rodada: on a phone the qualified table drops the partner column and wraps the finding. */
@media (max-width: 640px) { .tbl-q .col-partner { display: none; } .tbl-q td.trunc { white-space: normal; max-width: none; overflow: visible; min-width: 9rem; } .tbl-q td, .tbl-q th { padding-left: .6rem; padding-right: .6rem; } }
/* File inputs (CSV of a list, imports): the native button in the app's style. */
input[type=file].input { padding: .35rem .45rem; font-size: .85rem; color: var(--muted); }
input[type=file].input::file-selector-button { font-family: inherit; font-size: .82rem; font-weight: 600; line-height: 1; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .5rem .8rem; margin-right: .7rem; cursor: pointer; }
input[type=file].input::file-selector-button:hover { border-color: var(--muted); }

/* ---------- biblioteca de templates (só admin) ---------- */
.lib-grid-wrap { border-top: 1px solid var(--line-2); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; }
.lib-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.lib-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.lib-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lib-thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface-2); border-bottom: 1px solid var(--line-2); overflow: hidden; }
.lib-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.lib-thumb-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .45rem; font: 500 .74rem var(--mono); color: var(--muted); }
.lib-fav { position: absolute; top: .5rem; right: .5rem; width: 1.7rem; height: 1.7rem; border-radius: 999px; background: var(--surface); color: var(--warn); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.lib-fav .ico { fill: currentColor; }
.lib-body { display: flex; flex-direction: column; gap: .4rem; padding: .75rem .85rem .85rem; min-width: 0; }
.lib-name { font: 600 .98rem/1.25 var(--display); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-meta { display: flex; flex-wrap: wrap; gap: .2rem .55rem; font: 500 .7rem/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lib-meta span + span::before { content: "·"; margin-right: .55rem; color: var(--faint); }
.lib-tags, .lib-badges { display: flex; flex-wrap: wrap; gap: .3rem; }
.lib-tag { display: inline-flex; align-items: center; font-size: .74rem; line-height: 1.2; padding: .2rem .5rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent); text-decoration: none; white-space: nowrap; }
.lib-tag.soft { background: var(--line-2); color: var(--muted); }
a.lib-tag:hover { text-decoration: underline; }
.lib-filters .select { max-width: 15rem; }
.lib-trash { cursor: pointer; } .lib-trash.on { border-color: var(--bad); color: var(--bad); }
.lib-import-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem; margin-bottom: 1rem; }
.lib-import-actions > * { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .85rem; background: var(--surface-2); font-size: .86rem; }
.lib-import-actions .muted { font-size: .8rem; }
.lib-import-row { display: flex; gap: .5rem; width: 100%; flex-wrap: wrap; }
.lib-import-row .input { flex: 1 1 14rem; width: auto; }
.lib-import-row .lib-limit { flex: 0 0 7rem; }
.lib-imports { display: flex; flex-direction: column; gap: .9rem; }
.lib-imports li { border-top: 1px solid var(--line-2); padding-top: .75rem; }
.lib-imp-top { display: flex; flex-wrap: wrap; gap: .4rem .75rem; align-items: center; font-size: .86rem; }
.lib-imp-top b { overflow-wrap: anywhere; }
.lib-imp-cur { font-size: .78rem; margin-top: -.4rem; }
.lib-imports details summary { cursor: pointer; font-size: .8rem; color: var(--muted); margin-bottom: .4rem; }
.lib-imports .logbox { max-height: 14rem; }
.lib-detail { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.lib-frame-wrap { background: var(--surface-2); padding: 0; display: flex; justify-content: center; border-bottom: 1px solid var(--line-2); }
.lib-frame-wrap iframe { width: 100%; height: min(72vh, 46rem); border: 0; background: #fff; display: block; transition: width .2s; }
.lib-frame-wrap.phone { padding: 1rem 0; }
.lib-frame-wrap.phone iframe { width: 390px; max-width: 100%; height: min(72vh, 44rem); border-radius: 18px; box-shadow: 0 0 0 8px var(--ink); }
.lib-frame-note { display: flex; align-items: center; gap: .4rem; font-size: .76rem; padding: .6rem 1.15rem; }
.lib-files .tbl td.trunc { max-width: 26rem; }
.lib-files { max-height: 26rem; overflow: auto; }
.lib-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .55rem; }
.lib-sw { display: flex; gap: .55rem; align-items: center; font-size: .8rem; line-height: 1.25; min-width: 0; }
.lib-sw > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.lib-sw .mono { color: var(--muted); font-size: .72rem; }
.lib-sw-c { width: 2.3rem; height: 2.3rem; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.lib-type { display: flex; flex-direction: column; gap: .65rem; margin-top: 1.1rem; border-top: 1px solid var(--line-2); padding-top: 1rem; }
.lib-type-row { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: .1rem .75rem; align-items: baseline; }
.lib-type-row .muted { grid-column: 2; font-size: .72rem; }
.lib-type-fam { font: 600 1.15rem/1.2 var(--display); overflow-wrap: anywhere; }
.lib-btn-demo { justify-self: start; display: inline-flex; padding: .45rem .9rem; font-size: .8rem; font-weight: 600; background: var(--ink); color: var(--bg); }
.lib-sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .6rem; }
.lib-sets .select { width: 100%; }
.lib-usage { display: flex; flex-direction: column; gap: .7rem; font-size: .86rem; }
.lib-usage li { display: flex; gap: .55rem; align-items: flex-start; }
.lib-usage .ico { margin-top: .2rem; color: var(--accent); }
.lib-license { font-size: .88rem; line-height: 1.5; padding: .7rem .85rem; border-radius: var(--radius-sm); background: var(--warn-soft); }
.lib-kv { margin-top: .9rem; }
.lib-add { width: min(40rem, calc(100vw - 2rem)); }
.lib-add .dropzone { cursor: pointer; }
.lib-add .dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.lib-note { display: flex; gap: .45rem; align-items: flex-start; }
@media (max-width: 980px) {
  .lib-detail { grid-template-columns: 1fr; }
  .lib-import-actions { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .lib-body { padding: .6rem .65rem .7rem; }
  .lib-name { font-size: .88rem; }
  .lib-filters .select { max-width: none; }
  .lib-frame-wrap iframe { height: 60vh; }
}
.lib-detail .seg button, .lib-add .seg button { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- Estúdio de páginas (/estudio/) ---------- */
.st-mt { margin-top: .9rem; }
.st-small { font-size: .72rem; }
.st-full { width: 100%; }
.st-label { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 600; color: var(--muted); min-width: 0; }
.st-label.wide { grid-column: 1 / -1; }
.st-label .input, .st-label .select { font-weight: 400; color: var(--ink); }
.st-list { margin: .3rem 0 0; padding-left: 1.1rem; font-size: .86rem; line-height: 1.5; display: grid; gap: .25rem; }
.st-list.bad li::marker { color: var(--bad); }
.st-how { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; font-size: .88rem; }
.st-projects { display: grid; gap: .6rem; }
.st-project { display: grid; gap: .35rem; padding: .85rem .95rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--surface-2); }
.st-project:hover { border-color: var(--accent); }
.st-pname { font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.st-pmeta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; font-size: .78rem; color: var(--muted); }
.st-bar { display: block; height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.st-bar i { display: block; height: 100%; background: var(--good); border-radius: 99px; }
.st-steps { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .35rem; }
.st-step { display: flex; align-items: center; gap: .45rem; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; color: var(--muted); font-size: .82rem; min-height: 2.75rem; min-width: 0; }
.st-step .st-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-n { flex: none; width: 1.55rem; height: 1.55rem; border-radius: 99px; display: grid; place-items: center; font: 600 .74rem/1 var(--mono); background: var(--line-2); color: var(--muted); }
.st-step.approved .st-n { background: var(--good); color: var(--on-solid); }
.st-step.draft .st-n { background: var(--warn-soft); color: var(--warn); }
.st-step.stale .st-n { background: var(--bad-soft); color: var(--bad); }
.st-step.locked { opacity: .6; }
.st-step.cur { border-color: var(--ink); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.st-step:hover { border-color: var(--accent); color: var(--ink); }
.st-grid { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
.st-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.st-head > div:first-child { min-width: 0; flex: 1 1 18rem; }
.st-head-l { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0; }
.st-head .callout, .area-body > .callout { margin-bottom: .8rem; }
.st-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; }
.st-cols.wide-l { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.st-save { display: flex; justify-content: flex-end; margin-top: 1rem; }
.st-save .btn { box-shadow: var(--shadow); }
.st-tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.st-tpls.small { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); margin-top: .7rem; }
.st-tpl { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); display: flex; flex-direction: column; }
.st-tpl.sel { border-color: var(--good); box-shadow: 0 0 0 2px var(--good-soft); }
.st-tpl-imgs { position: relative; background: var(--line-2); aspect-ratio: 4 / 3; overflow: hidden; }
.st-tpl-imgs img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.st-tpl-imgs img.m { position: absolute; right: .5rem; bottom: .5rem; width: 26%; height: auto; aspect-ratio: 9 / 16; border-radius: 6px; border: 2px solid var(--surface); box-shadow: var(--shadow); }
.st-tpl-b { padding: .7rem .8rem .8rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.st-tpl-b .btn { align-self: flex-start; margin-top: auto; }
.st-plan { border: 1px solid var(--line-2); border-radius: 10px; padding: .7rem .85rem; background: var(--surface-2); }
.st-plan summary { cursor: pointer; min-height: 2rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.st-ad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr) auto; gap: .5rem; align-items: end; margin-bottom: .5rem; }
.st-hl td { vertical-align: top; }
.st-hl tr.st-chosen td { background: var(--good-soft); }
.st-ok, .st-no { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 99px; margin-right: .2rem; }
.st-ok { background: var(--good-soft); color: var(--good); }
.st-no { background: var(--bad-soft); color: var(--bad); }
.st-count.bad { color: var(--bad); }
.st-sec { border: 1px solid var(--line-2); border-radius: 10px; padding: .55rem .8rem; margin-top: .6rem; }
.st-sec summary { cursor: pointer; display: flex; gap: .5rem; align-items: center; min-height: 2.25rem; font-weight: 600; font-size: .9rem; }
.st-sec[open] summary { margin-bottom: .6rem; }
.st-alt { padding: .55rem .7rem; border-left: 3px solid var(--line); margin-bottom: .5rem; font-size: .88rem; }
.st-diff { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .85rem; }
.st-diff li { display: grid; gap: .15rem; padding: .5rem .6rem; border: 1px solid var(--line-2); border-radius: 8px; }
.st-diff del { color: var(--bad); text-decoration: line-through; }
.st-diff ins { color: var(--good); text-decoration: none; }
.st-q { border: 1px solid var(--line-2); border-radius: 10px; padding: .7rem .8rem; margin: .7rem 0; display: grid; gap: .5rem; }
.st-opts { display: grid; gap: .35rem; }
.st-opt { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem; gap: .4rem; }
.st-opt-h { font: 500 .68rem/1.2 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.st-phone { width: 100%; max-width: 300px; margin: 0 auto; border: 10px solid var(--ink); border-radius: 28px; background: #ffffff; }
.st-phone-in { padding: 1rem .9rem; color: #141a2e; font-family: var(--body); }
.st-f-title { font-family: var(--display); font-weight: 800; font-size: 1rem; margin-bottom: .4rem; color: #141a2e; }
.st-f-l { font-size: .78rem; font-weight: 600; margin-top: .45rem; color: #141a2e; }
.st-f-i { height: 2.2rem; border: 1.5px solid #b9c4d2; border-radius: 8px; margin-top: .2rem; font-size: .78rem; padding: .5rem .55rem; color: #4f5a6e; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.st-f-i.sel { background: #f7f9fc; }
.st-f-b { margin-top: .7rem; background: #141a2e; color: #ffffff; border-radius: 8px; text-align: center; padding: .6rem; font-weight: 700; font-size: .85rem; }
.st-f-skip { text-align: center; font-size: .78rem; margin-top: .4rem; color: #4f5a6e; text-decoration: underline; }
.st-frame { margin-top: .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: .6rem; }
.st-frame iframe { display: block; width: 100%; height: 72vh; border: 0; border-radius: 6px; background: #ffffff; }
.st-frame.mobile iframe { width: 390px; max-width: 100%; margin: 0 auto; }
.st-qpage { border-top: 1px solid var(--line-2); padding-top: 1.1rem; margin-top: 1.1rem; display: grid; gap: .9rem; }
.st-qhead { display: flex; gap: 1rem; align-items: flex-start; }
.st-qhead h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.st-score { flex: none; width: 4.6rem; height: 4.6rem; border-radius: 14px; display: flex; align-items: baseline; justify-content: center; padding-top: 1rem; font-family: var(--mono); }
.st-score b { font-size: 1.7rem; font-weight: 600; }
.st-score span { font-size: .8rem; }
.st-score.ok { background: var(--good-soft); color: var(--good); }
.st-score.no { background: var(--bad-soft); color: var(--bad); }
.st-quote { margin: 0 0 .6rem; padding: .6rem .8rem; border-left: 3px solid var(--accent); background: var(--surface-2); font-size: .9rem; border-radius: 0 8px 8px 0; }
.st-shots { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .7rem; }
.st-shots a { display: grid; gap: .25rem; text-decoration: none; color: var(--muted); font-size: .76rem; width: 9rem; }
.st-shots a.full { width: 7rem; }
.st-shots img { width: 100%; height: 11rem; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.st-pre { max-height: 16rem; overflow: auto; white-space: pre-wrap; font-size: .76rem; margin: 0; }
.st-cmd { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .35rem 0; }
.st-cmd code { flex: 1 1 18rem; min-width: 0; overflow-wrap: anywhere; font-size: .8rem; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 6px; padding: .35rem .5rem; }
@media (max-width: 1100px) {
  .st-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .st-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .st-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .st-steps { display: flex; overflow-x: auto; scrollbar-width: none; }
  .st-step { flex: none; }
  .st-cols, .st-cols.wide-l, .st-tpls { grid-template-columns: 1fr; }
  .st-ad { grid-template-columns: minmax(0, 1fr) auto; }
  .st-ad .st-label:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .st-ad .st-label:nth-child(3) { grid-column: 1 / 2; }
  .st-head .toolbar { width: 100%; }
  .st-head .toolbar .select { flex: 1 1 100%; max-width: 100%; }
}
.st-grid .kpis { grid-template-columns: 1fr 1fr; }
.st-grid .kpi-value { font-size: 1.1rem; }
.st-grid .kpi-sub { overflow-wrap: anywhere; }

/* E-mail pela caixa (Hostinger Agentic Mail): resposta recebida e texto das mensagens */
.mail-text { white-space: pre-wrap; word-break: break-word; max-height: 22rem; overflow: auto; }
.timeline .txt.mail-text { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .5rem .65rem; margin-top: .35rem; }
.area.mail-reply { border-color: var(--good); }
.area.mail-reply .area-icon { background: var(--good-soft); color: var(--good); }
.area.mail-reply.stop { border-color: var(--bad); }
.area.mail-reply.stop .area-icon { background: var(--bad-soft); color: var(--bad); }
.mail-status { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; font-size: .88rem; }
.mail-status dt { color: var(--muted); }
.mail-status dd { margin: 0; min-width: 0; word-break: break-all; }
.limit-shared { overflow-wrap: anywhere; }
