/* Painel NOVA. Verde-lima + grafite, claro e escuro. Vidro só em barras e botões. */
@font-face {
  font-family: "Urbanist";
  src: url("fonts/urbanist-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:#ECEEE8; --surface:#FFFFFF; --surface-2:#F4F5F0; --surface-3:#E4E7DE;
  --ink:#15180F; --ink-2:#394031; --muted:#62695A; --line:rgba(21,24,15,.09); --line-2:rgba(21,24,15,.17);
  --lime:#B9F03A; --lime-hi:#CDF76A; --lime-ink:#11150A; --lime-text:#3F6A00; --lime-soft:rgba(150,210,30,.22); --lime-glow:rgba(140,200,20,.55);
  --contrast:#17191C; --contrast-3:#2E3238; --contrast-ink:#F2F4EE; --contrast-muted:#A3A99C;
  --glass:rgba(255,255,255,.56); --glass-solid:#F7F8F4; --glass-rim:rgba(255,255,255,.92); --glass-edge:rgba(21,24,15,.08);
  --good:#2D7419; --good-soft:rgba(45,116,25,.12); --warn:#8F5400; --warn-soft:rgba(220,150,20,.18);
  --bad:#B53124; --bad-soft:rgba(181,49,36,.11); --info:#22609E; --info-soft:rgba(34,96,158,.11);
  --aura-1:rgba(185,240,58,.40); --aura-2:rgba(170,178,160,.45); --aura-3:rgba(185,240,58,.18);
  --shadow:0 1px 2px rgba(21,24,15,.05), 0 14px 32px -20px rgba(21,24,15,.30);
  --shadow-lg:0 2px 6px rgba(21,24,15,.08), 0 30px 70px -28px rgba(21,24,15,.40);
  --font:"Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --r-md:14px; --r-lg:22px; --r-xl:28px; --side-w:252px;
  --ease:cubic-bezier(.22,1,.36,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg:#0B0C0E; --surface:#15171A; --surface-2:#1C1F23; --surface-3:#272B30;
  --ink:#F1F3EE; --ink-2:#CDD2C7; --muted:#90968B; --line:rgba(255,255,255,.07); --line-2:rgba(255,255,255,.14);
  --lime:#B9F23F; --lime-hi:#D2FA74; --lime-ink:#0E1206; --lime-text:#C8F56A; --lime-soft:rgba(185,242,63,.14); --lime-glow:rgba(185,242,63,.40);
  --contrast:#F3F5EF; --contrast-3:#D9DDD2; --contrast-ink:#15180F; --contrast-muted:#5E6556;
  --glass:rgba(28,31,35,.52); --glass-solid:#1A1D20; --glass-rim:rgba(255,255,255,.07); --glass-edge:rgba(255,255,255,.07);
  --good:#86DB5E; --good-soft:rgba(134,219,94,.13); --warn:#F4BA4C; --warn-soft:rgba(244,186,76,.14);
  --bad:#FF7F72; --bad-soft:rgba(255,127,114,.13); --info:#7DB8FF; --info-soft:rgba(125,184,255,.13);
  --aura-1:rgba(185,242,63,.13); --aura-2:rgba(120,128,115,.16); --aura-3:rgba(185,242,63,.07);
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 16px 36px -20px rgba(0,0,0,.8);
  --shadow-lg:0 2px 6px rgba(0,0,0,.5), 0 34px 80px -26px rgba(0,0,0,.9);
  color-scheme: dark;
}}
:root[data-theme="dark"] {
  --bg:#0B0C0E; --surface:#15171A; --surface-2:#1C1F23; --surface-3:#272B30;
  --ink:#F1F3EE; --ink-2:#CDD2C7; --muted:#90968B; --line:rgba(255,255,255,.07); --line-2:rgba(255,255,255,.14);
  --lime:#B9F23F; --lime-hi:#D2FA74; --lime-ink:#0E1206; --lime-text:#C8F56A; --lime-soft:rgba(185,242,63,.14); --lime-glow:rgba(185,242,63,.40);
  --contrast:#F3F5EF; --contrast-3:#D9DDD2; --contrast-ink:#15180F; --contrast-muted:#5E6556;
  --glass:rgba(28,31,35,.52); --glass-solid:#1A1D20; --glass-rim:rgba(255,255,255,.07); --glass-edge:rgba(255,255,255,.07);
  --good:#86DB5E; --good-soft:rgba(134,219,94,.13); --warn:#F4BA4C; --warn-soft:rgba(244,186,76,.14);
  --bad:#FF7F72; --bad-soft:rgba(255,127,114,.13); --info:#7DB8FF; --info-soft:rgba(125,184,255,.13);
  --aura-1:rgba(185,242,63,.13); --aura-2:rgba(120,128,115,.16); --aura-3:rgba(185,242,63,.07);
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 16px 36px -20px rgba(0,0,0,.8);
  --shadow-lg:0 2px 6px rgba(0,0,0,.5), 0 34px 80px -26px rgba(0,0,0,.9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 500; font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lime-text); outline-offset: 2px; }
[hidden] { display: none !important; }
.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 15px; height: 15px; }
.i.big { width: 40px; height: 40px; color: var(--muted); }
.aura { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(640px 420px at 8% -8%, var(--aura-1), transparent 70%),
              radial-gradient(760px 520px at 100% 0%, var(--aura-2), transparent 70%),
              radial-gradient(700px 600px at 55% 115%, var(--aura-3), transparent 70%); }

/* vidro: só barras e botões */
.glass { background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--glass-edge), inset 0 1px 0 var(--glass-rim), var(--shadow); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: var(--glass-solid); } }
@media (prefers-reduced-transparency: reduce) { .glass { background: var(--glass-solid); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* casca */
/* Menu flutuante (cartão de vidro com margem), recolhível para só ícones; o conteúdo ocupa toda a largura da tela. */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); gap: 16px; min-height: 100dvh;
  padding-block: 12px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); transition: grid-template-columns .25s var(--ease); }
.sidebar { position: sticky; top: 12px; height: calc(100dvh - 24px); border-radius: var(--r-xl); display: flex; flex-direction: column; padding: 16px 12px; gap: 6px; overflow: hidden; z-index: 30; }
@media (min-width: 981px) {
:root[data-side="mini"] .app { grid-template-columns: 76px minmax(0, 1fr); }
:root[data-side="mini"] .sidebar { padding-inline: 10px; align-items: center; }
:root[data-side="mini"] .brand { padding-inline: 0; }
:root[data-side="mini"] .brand-text, :root[data-side="mini"] .site-text, :root[data-side="mini"] .site-switch > .i,
:root[data-side="mini"] .eyebrow, :root[data-side="mini"] .nav .label, :root[data-side="mini"] .nav-soon .lock, :root[data-side="mini"] .nav .badge,
:root[data-side="mini"] .me .grow, :root[data-side="mini"] .side-foot .btn span { display: none; }
:root[data-side="mini"] .nav { width: 100%; }
:root[data-side="mini"] .nav a, :root[data-side="mini"] .nav-soon { justify-content: center; padding: 0; }
:root[data-side="mini"] .eyebrow + a, :root[data-side="mini"] .eyebrow + .nav-soon { margin-top: 10px; }
:root[data-side="mini"] .site-switch { padding: 8px; justify-content: center; }
:root[data-side="mini"] .side-foot .btn.full { justify-content: center; }
:root[data-side="mini"] .me { justify-content: center; }
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 10px; }
.mark { width: 38px; height: 38px; border-radius: 12px; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 16px -8px var(--lime-glow); }
.mark svg { width: 22px; height: 22px; fill: currentColor; }
.brand b { display: block; font-size: 17px; font-weight: 800; letter-spacing: .02em; }
.brand span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.site-switch { display: flex; align-items: center; gap: 10px; border-radius: var(--r-md); padding: 9px 10px; text-decoration: none; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.site-switch .fav { width: 26px; height: 26px; border-radius: 8px; background: var(--contrast); color: var(--contrast-ink); display: grid; place-items: center; font-weight: 800; font-size: 11px; flex: none; }
.site-switch b { display: block; font-size: 13px; font-weight: 700; line-height: 1.2; }
.site-switch small { display: block; font-size: 11.5px; color: var(--muted); }
.site-switch .i { margin-left: auto; color: var(--muted); }
.nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; margin: 6px -4px 0; padding: 0 4px; scrollbar-width: thin; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 6px; }
.nav a, .nav-soon { display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 13.5px; transition: background .2s var(--ease); }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--lime); color: var(--lime-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 16px -10px var(--lime-glow); }
.nav-soon { color: var(--muted); opacity: .75; cursor: default; }
.nav-soon .lock { margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; padding: 2px 7px; border-radius: 99px; background: var(--surface-2); }
.side-foot { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; text-decoration: none; }
.me:hover { background: var(--surface-2); }
.me .grow { min-width: 0; }
.me b { display: block; font-size: 13px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { display: block; font-size: 11.5px; color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.topbar { position: sticky; top: 12px; z-index: 20; border-radius: 999px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; min-height: 52px; }
.crumbs { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spacer { flex: 1; }
.scrim { position: fixed; inset: 0; background: rgba(10,12,8,.38); z-index: 70; }

/* botões (vidro) */
.btn { height: 38px; padding: 0 15px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; font-size: 13.5px; white-space: nowrap; text-decoration: none;
  background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--glass-edge), inset 0 1px 0 var(--glass-rim), 0 1px 2px rgba(0,0,0,.06); color: var(--ink); transition: transform .15s var(--ease), background .2s var(--ease); }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(180deg, var(--lime-hi), var(--lime)); color: var(--lime-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 0 0 1px rgba(0,0,0,.06), 0 8px 22px -12px var(--lime-glow); }
.btn.primary:hover { filter: brightness(1.04); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn.big { height: 46px; font-size: 15px; }
.btn.full { width: 100%; justify-content: flex-start; }
.btn.ghost { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.back { margin-bottom: 12px; }
.btn.danger-btn { background: var(--bad); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.icon-btn { width: 38px; height: 38px; padding: 0; border-radius: 50%; flex: none; }
.icon-btn.sm { width: 32px; height: 32px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; background: var(--contrast); color: var(--contrast-ink); flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: 10.5px; }
.avatar.t1 { background: #D8E4C4; color: #2C3A12; } .avatar.t2 { background: #E3E0D6; color: #3A3526; } .avatar.t3 { background: #CFE0E6; color: #183844; }
.avatar.t4 { background: #EAD9C9; color: #4A2E12; } .avatar.t5 { background: #DCD7E8; color: #2E2647; }

/* conteúdo */
.view { display: flex; flex-direction: column; gap: 18px; padding-bottom: 28px; min-width: 0; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 6px 4px 0; }
.head h1 { margin: 0; font-size: 40px; line-height: 1.04; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.head p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; overflow-wrap: anywhere; }
.head p b { color: var(--ink); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span-3 { grid-column: span 3; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-12 { grid-column: span 12; }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); padding: 20px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card .pad { padding: 20px 20px 6px; }
.card h2 { margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.card .sub { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h.top-gap { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.card.contrast { background: var(--contrast); color: var(--contrast-ink); box-shadow: var(--shadow-lg); }
.card.contrast .sub, .card.contrast small { color: var(--contrast-muted); }
.card.danger { box-shadow: inset 0 0 0 1px var(--bad-soft), var(--shadow); }
.stack-v { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.end { justify-content: flex-end; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.bad-text { color: var(--bad) !important; }
.kpi-h { display: flex; align-items: center; gap: 8px; }
.kpi-h .ic, .checks .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.num { font-weight: 600; font-size: 30px; letter-spacing: -.025em; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: 14px; }
.num em { font-style: normal; font-size: .46em; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.chip.good { background: var(--good-soft); color: var(--good); box-shadow: none; }
.chip.warn { background: var(--warn-soft); color: var(--warn); box-shadow: none; }
.chip.bad { background: var(--bad-soft); color: var(--bad); box-shadow: none; }
.chip.info { background: var(--info-soft); color: var(--info); box-shadow: none; }
.chip.lime { background: var(--lime); color: var(--lime-ink); box-shadow: none; }
.chip .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.flash { padding: 12px 16px; border-radius: var(--r-md); background: var(--lime-soft); font-weight: 600; }
.flash.bad { background: var(--bad-soft); color: var(--bad); }
.flash ul { margin: 8px 0 0; padding-left: 18px; font-weight: 500; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--lime-soft); font-size: 13px; }
.note .i { color: var(--lime-text); margin-top: 1px; }

.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); min-width: 0; }
.li:first-child { border-top: 0; }
.li .grow { flex: 1; min-width: 0; }
.li b { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.card.contrast .checks li { border-color: var(--contrast-3); }
.checks li:first-child { border-top: 0; }
.checks .ic.ok { background: var(--lime); color: var(--lime-ink); box-shadow: none; width: 24px; height: 24px; border-radius: 50%; }
.checks .ic .i { width: 14px; height: 14px; stroke-width: 2.6; }
.checks b { display: block; font-weight: 700; }
.checks small { display: block; color: var(--muted); font-size: 12.5px; }

.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
td.t b { display: block; font-weight: 700; font-size: 13.5px; }
td.t small { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
td.empty { text-align: center; color: var(--muted); padding: 28px; }
.r { text-align: right; }

/* formulários */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.field label span { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.field label span.over { color: var(--bad); }
.field small { font-size: 12px; }
.input, .textarea, .select { width: 100%; border: 0; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); padding: 10px 12px; font-size: 14px; outline: 0; transition: box-shadow .2s; }
.input:focus, .textarea:focus, .select:focus { box-shadow: inset 0 0 0 2px var(--lime-text); }
.input:disabled { opacity: .7; }
.textarea { resize: vertical; line-height: 1.5; }
.textarea.tall { min-height: 260px; font-size: 12px; }
.code-input { font-family: var(--mono); font-size: 22px; letter-spacing: .3em; text-align: center; }
.prefix { display: flex; align-items: center; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.prefix span { padding: 0 2px 0 12px; color: var(--muted); font-family: var(--mono); }
.prefix .input { box-shadow: none; background: transparent; padding-left: 2px; }
.prefix:focus-within { box-shadow: inset 0 0 0 2px var(--lime-text); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.form-row .grow { flex: 1 1 220px; }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; min-height: 42px; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { position: relative; width: 40px; height: 24px; flex: none; border-radius: 99px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .2s var(--ease); }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .25s var(--ease); }
.toggle input:checked + .sw { background: var(--lime); box-shadow: none; }
.toggle input:checked + .sw::after { transform: translateX(16px); background: var(--lime-ink); }
.toggle input:focus-visible + .sw { outline: 2px solid var(--lime-text); outline-offset: 2px; }

.serp { border-radius: var(--r-md); padding: 14px 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.serp .u { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.serp .u span { color: var(--muted); }
.serp .u i { width: 24px; height: 24px; border-radius: 50%; background: var(--contrast); color: var(--contrast-ink); font-style: normal; font-size: 10px; font-weight: 800; display: grid; place-items: center; flex: none; }
.serp .t { color: var(--info); font-size: 18px; font-weight: 600; margin: 6px 0 2px; line-height: 1.25; overflow-wrap: anywhere; }
.serp .d { font-size: 13px; color: var(--muted); }

.perm th, .perm td { text-align: center; }
.perm th:first-child, .perm td:first-child { text-align: left; }
.ck-label { display: inline-grid; cursor: pointer; }
.ck-label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck { width: 22px; height: 22px; border-radius: 7px; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line-2); display: inline-grid; place-items: center; color: transparent; }
.ck .i { width: 13px; height: 13px; stroke-width: 2.8; }
.ck-label input:checked + .ck, .ck.on { background: var(--lime); box-shadow: none; color: var(--lime-ink); }
.ck-label input:focus-visible + .ck { outline: 2px solid var(--lime-text); outline-offset: 2px; }
.ck.off { color: var(--muted); box-shadow: none; background: transparent; }
.ck.on { opacity: .6; }

.secret-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-md); background: var(--contrast); color: var(--contrast-ink); }
.secret-box > div { flex: 1 1 260px; }
.secret-box b { display: block; }
.secret-box small { color: var(--contrast-muted); }
.secret-box code { font-size: 16px; padding: 8px 12px; border-radius: 10px; background: var(--contrast-3); user-select: all; }
.codes { margin: 0 0 16px; padding: 16px; border-radius: var(--r-md); background: var(--contrast-3); font-size: 16px; line-height: 1.9; columns: 2; user-select: all; }
.qr-card { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.qr-card img { border-radius: 14px; background: #fff; padding: 10px; image-rendering: pixelated; max-width: 100%; height: auto; }
.qr-card .field { width: 100%; }
.secret { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; text-align: center; overflow-wrap: anywhere; user-select: all; }
.steps-list { margin: 0 0 18px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.steps-list b { display: block; }
.steps-list small { color: var(--muted); }

details.menu { position: relative; }
details.menu summary { list-style: none; }
details.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 220px; padding: 6px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); display: flex; flex-direction: column; gap: 2px; }

.empty-state { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 20px; }
.empty-state h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; }

/* acesso */
body.access { display: grid; place-items: center; min-height: 100dvh; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.access-card { position: relative; z-index: 1; width: min(420px, 100%); background: var(--surface); border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.access-card .brand { padding: 0 0 6px; }
.access-card h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.access-card p { margin: 0; }
.access-foot { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }

@media (max-width: 1200px) { .span-3 { grid-column: span 6; } .span-5, .span-7 { grid-column: span 12; } }
@media (max-width: 980px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: min(290px, 86%); border-radius: 0 var(--r-xl) var(--r-xl) 0; transform: translateX(-105%); transition: transform .35s var(--ease); z-index: 75; overflow-y: auto; overscroll-behavior: contain;
    padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-left: max(12px, env(safe-area-inset-left, 0px)); background: var(--glass-solid); }
  .sidebar.open { transform: none; }
  .topbar { padding-left: 6px; }
}
@media (max-width: 720px) {
  .span-3, .span-6 { grid-column: span 12; }
  .head h1 { font-size: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .topbar .btn.primary span { display: none; }
  .topbar .btn.primary { width: 38px; padding: 0; }
  .codes { columns: 1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Partes do site (Theme Builder) */
.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.part-card { background: var(--contrast); color: var(--contrast-ink); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.part-card.soon { opacity: .72; }
.part-card h2 { margin: 0; font-size: 16px; font-weight: 700; }
.part-card p { margin: 4px 0 10px; color: var(--contrast-muted); font-size: 12.5px; }
.part-card .chip { background: var(--contrast-3); color: var(--contrast-ink); box-shadow: none; }
.part-card .chip.good { background: var(--lime); color: var(--lime-ink); }
.part-body .wrap-row { flex-wrap: wrap; gap: 8px; }
.part-thumb { aspect-ratio: 4 / 3; border-radius: 14px; background: var(--contrast-3); position: relative; overflow: hidden; display: grid; place-items: center; }
.part-thumb i { position: absolute; background: color-mix(in srgb, var(--contrast-ink) 14%, transparent); border-radius: 6px; }
.part-thumb-top i:nth-child(1) { inset: 8% 8% auto 8%; height: 12%; }
.part-thumb-bottom i:nth-child(1) { inset: auto 8% 8% 8%; height: 22%; }
.part-thumb-post i:nth-child(1) { inset: 8% 40% auto 8%; height: 8%; } .part-thumb-post i:nth-child(2) { inset: 24% 8% 8% 8%; }
.part-thumb-grid i:nth-child(1) { inset: 22% 70% 10% 8%; } .part-thumb-grid i:nth-child(2) { inset: 22% 39% 10% 39%; } .part-thumb-grid i:nth-child(3) { inset: 22% 8% 10% 70%; }
.part-thumb-search i:nth-child(1) { inset: 8% 8% auto 8%; height: 8%; } .part-thumb-search i:nth-child(2) { inset: 24% 52% 8% 8%; } .part-thumb-search i:nth-child(3) { inset: 24% 8% 8% 52%; }
.part-thumb-404 b { font-size: 40px; font-weight: 800; color: color-mix(in srgb, var(--contrast-ink) 30%, transparent); letter-spacing: .02em; }

/* ---- topo: busca, avisos, novo ---- */
.search { position: relative; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); flex: 0 1 340px; min-width: 0; margin-left: 6px; }
.search input { border: 0; background: transparent; outline: 0; min-width: 0; flex: 1; font-size: 13.5px; color: var(--ink); }
.search input::-webkit-search-cancel-button { display: none; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--lime-text); }
kbd { font: 600 11px var(--mono); padding: 3px 6px; border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); white-space: nowrap; }
.pop { position: absolute; top: calc(100% + 8px); z-index: 60; background: var(--surface); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); padding: 8px; }
.search-pop { left: 0; right: 0; min-width: 300px; max-height: 60vh; overflow-y: auto; }
.pop a.res { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; text-decoration: none; }
.pop a.res:hover, .pop a.res.on { background: var(--surface-2); }
.pop a.res b { display: block; font-size: 13.5px; }
.pop a.res small { display: block; color: var(--muted); font-size: 12px; }
.pop .tag { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--lime-text); min-width: 56px; }
.pop p { margin: 8px 10px; }
.bell-wrap { position: relative; }
.bell-pop { right: 0; width: min(360px, 90vw); }
.pop-h { padding: 6px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pop-list { max-height: 60vh; overflow-y: auto; }
.pop-list .res.unread b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); margin-right: 6px; vertical-align: 1px; }
.dotn { position: relative; }
.dotn::after { content: attr(data-n); position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--lime); color: var(--lime-ink); font-size: 10px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.new-menu summary { list-style: none; }
.new-menu summary::-webkit-details-marker { display: none; }
.btn.dark { background: var(--contrast); color: var(--contrast-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 20px -14px rgba(0,0,0,.6); }
.nav a .badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 99px; background: var(--surface-3); display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; }
.nav a[aria-current="page"] .badge { background: var(--lime-ink); color: var(--lime); }

/* ---- cockpit ---- */
.kpi-h .delta { margin-left: auto; }
.kpi-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 14px; }
.kpi-row .num { margin-top: 0; }
.num.big { font-size: 34px; }
.delta { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--good-soft); color: var(--good); white-space: nowrap; }
.delta.down { background: var(--bad-soft); color: var(--bad); }
.spark { flex: none; }
.spark-fill { fill: var(--lime-soft); }
.spark-line { fill: none; stroke: var(--lime-text); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-dot { fill: var(--lime-text); stroke: var(--surface); stroke-width: 2; }
.chart { display: block; max-width: 100%; height: auto; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--muted); font-size: 11px; font-weight: 600; font-family: var(--font); }
.chart-fill { fill: var(--lime-soft); }
.chart-line { fill: none; stroke: var(--lime-text); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart-compare { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 5 5; }
.chart-dot { fill: var(--lime-text); stroke: var(--surface); stroke-width: 2.5; }
.seg { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: inset 0 0 0 1px var(--glass-edge), inset 0 1px 0 var(--glass-rim); }
.seg a { height: 32px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 700; font-size: 12.5px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.seg a:hover { background: var(--surface-2); }
.seg a[aria-current] { background: var(--lime); color: var(--lime-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.quad .label { margin-bottom: 8px; display: block; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.card.contrast .bar { background: var(--contrast-3); }
.bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--lime); }
.bar > i.striped { background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.2) 0 4px, transparent 4px 8px); background-color: var(--lime); }
.bar > i.gray { background: var(--muted); }
.stack { display: flex; margin-top: 10px; min-height: 28px; }
.stack .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--contrast); }
.stack .avatar:first-child { margin-left: 0; }
.paycards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; }
.pc { border-radius: 16px; padding: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; justify-content: space-between; height: 104px; min-width: 0; }
.pc b { font-size: 15px; }
.pc small { font-size: 12px; color: var(--muted); font-weight: 600; }
.pc.on { background: var(--lime); color: var(--lime-ink); height: 132px; }
.pc.on small { color: var(--lime-ink); opacity: .75; }
.top-gap-sm { margin-top: 14px; }
.small-b { font-size: 13px; font-weight: 700; }
.widget { position: relative; }
.editing .widget { outline: 1.5px dashed var(--line-2); outline-offset: 4px; }
.wtools { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; gap: 4px; }
.wtools button { width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--glass-edge), 0 2px 8px rgba(0,0,0,.15); color: var(--ink); }
.card.contrast .wtools button { color: var(--ink); background: var(--surface); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.lib-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.lib-item .grow { flex: 1; min-width: 0; }
.lib-item b { display: block; font-size: 13.5px; }
.lib-item small { display: block; color: var(--muted); font-size: 12px; }
a.li.link { text-decoration: none; border-radius: 12px; }
a.li.link:hover { background: var(--surface-2); }
.span-4 { grid-column: span 4; }
.span-8 { grid-column: span 8; }

/* ---- leads ---- */
.chip.st-novo { background: var(--lime); color: var(--lime-ink); box-shadow: none; }
.chip.st-em-contato { background: var(--info-soft); color: var(--info); box-shadow: none; }
.chip.st-agendado, .chip.st-ganho { background: var(--good-soft); color: var(--good); box-shadow: none; }
.chip.st-perdido { background: var(--bad-soft); color: var(--bad); box-shadow: none; }
.span-funnel { grid-column: span 2; text-decoration: none; padding: 14px 16px; }
.card.stage:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.card.stage.on { box-shadow: inset 0 0 0 2px var(--lime-text), var(--shadow); }
.search-inline { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.search-inline input { border: 0; background: transparent; outline: 0; font-size: 13.5px; width: 220px; color: var(--ink); }
.row-link a.row { text-decoration: none; align-items: center; }
.pager { justify-content: center; gap: 12px; }
.wrap-text { white-space: normal !important; overflow-wrap: anywhere; }
.wrap-row { flex-wrap: wrap; gap: 6px; }
form.inline { display: inline; }
fieldset.plain { border: 0; padding: 0; margin: 0; }
fieldset.plain legend { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }

@media (max-width: 1200px) { .span-4 { grid-column: span 6; } .span-8 { grid-column: span 12; } .span-funnel { grid-column: span 4; } }
@media (max-width: 720px) { .span-4, .span-8 { grid-column: span 12; } .span-funnel { grid-column: span 6; } .trio { grid-template-columns: 1fr; } .quad { grid-template-columns: repeat(2, minmax(0, 1fr)); } .search { display: none; } }

/* larguras das barras (a CSP do painel não permite style inline) */
.bar > i.w0 { width: 0%; }
.bar > i.w1 { width: 1%; }
.bar > i.w2 { width: 2%; }
.bar > i.w3 { width: 3%; }
.bar > i.w4 { width: 4%; }
.bar > i.w5 { width: 5%; }
.bar > i.w6 { width: 6%; }
.bar > i.w7 { width: 7%; }
.bar > i.w8 { width: 8%; }
.bar > i.w9 { width: 9%; }
.bar > i.w10 { width: 10%; }
.bar > i.w11 { width: 11%; }
.bar > i.w12 { width: 12%; }
.bar > i.w13 { width: 13%; }
.bar > i.w14 { width: 14%; }
.bar > i.w15 { width: 15%; }
.bar > i.w16 { width: 16%; }
.bar > i.w17 { width: 17%; }
.bar > i.w18 { width: 18%; }
.bar > i.w19 { width: 19%; }
.bar > i.w20 { width: 20%; }
.bar > i.w21 { width: 21%; }
.bar > i.w22 { width: 22%; }
.bar > i.w23 { width: 23%; }
.bar > i.w24 { width: 24%; }
.bar > i.w25 { width: 25%; }
.bar > i.w26 { width: 26%; }
.bar > i.w27 { width: 27%; }
.bar > i.w28 { width: 28%; }
.bar > i.w29 { width: 29%; }
.bar > i.w30 { width: 30%; }
.bar > i.w31 { width: 31%; }
.bar > i.w32 { width: 32%; }
.bar > i.w33 { width: 33%; }
.bar > i.w34 { width: 34%; }
.bar > i.w35 { width: 35%; }
.bar > i.w36 { width: 36%; }
.bar > i.w37 { width: 37%; }
.bar > i.w38 { width: 38%; }
.bar > i.w39 { width: 39%; }
.bar > i.w40 { width: 40%; }
.bar > i.w41 { width: 41%; }
.bar > i.w42 { width: 42%; }
.bar > i.w43 { width: 43%; }
.bar > i.w44 { width: 44%; }
.bar > i.w45 { width: 45%; }
.bar > i.w46 { width: 46%; }
.bar > i.w47 { width: 47%; }
.bar > i.w48 { width: 48%; }
.bar > i.w49 { width: 49%; }
.bar > i.w50 { width: 50%; }
.bar > i.w51 { width: 51%; }
.bar > i.w52 { width: 52%; }
.bar > i.w53 { width: 53%; }
.bar > i.w54 { width: 54%; }
.bar > i.w55 { width: 55%; }
.bar > i.w56 { width: 56%; }
.bar > i.w57 { width: 57%; }
.bar > i.w58 { width: 58%; }
.bar > i.w59 { width: 59%; }
.bar > i.w60 { width: 60%; }
.bar > i.w61 { width: 61%; }
.bar > i.w62 { width: 62%; }
.bar > i.w63 { width: 63%; }
.bar > i.w64 { width: 64%; }
.bar > i.w65 { width: 65%; }
.bar > i.w66 { width: 66%; }
.bar > i.w67 { width: 67%; }
.bar > i.w68 { width: 68%; }
.bar > i.w69 { width: 69%; }
.bar > i.w70 { width: 70%; }
.bar > i.w71 { width: 71%; }
.bar > i.w72 { width: 72%; }
.bar > i.w73 { width: 73%; }
.bar > i.w74 { width: 74%; }
.bar > i.w75 { width: 75%; }
.bar > i.w76 { width: 76%; }
.bar > i.w77 { width: 77%; }
.bar > i.w78 { width: 78%; }
.bar > i.w79 { width: 79%; }
.bar > i.w80 { width: 80%; }
.bar > i.w81 { width: 81%; }
.bar > i.w82 { width: 82%; }
.bar > i.w83 { width: 83%; }
.bar > i.w84 { width: 84%; }
.bar > i.w85 { width: 85%; }
.bar > i.w86 { width: 86%; }
.bar > i.w87 { width: 87%; }
.bar > i.w88 { width: 88%; }
.bar > i.w89 { width: 89%; }
.bar > i.w90 { width: 90%; }
.bar > i.w91 { width: 91%; }
.bar > i.w92 { width: 92%; }
.bar > i.w93 { width: 93%; }
.bar > i.w94 { width: 94%; }
.bar > i.w95 { width: 95%; }
.bar > i.w96 { width: 96%; }
.bar > i.w97 { width: 97%; }
.bar > i.w98 { width: 98%; }
.bar > i.w99 { width: 99%; }
.bar > i.w100 { width: 100%; }

/* ---- seo e rastreamento ---- */
.block { display: block; }
.pad-x { padding: 0 12px 8px; }
.pad-b { padding-bottom: 14px; }
.seg-wide { margin: 0 0 16px; }
.pc > div b { display: block; font-size: 15px; }
.pc > div small { font-size: 11.5px; }
details.audit { border-radius: 14px; }
details.audit[open] { background: var(--surface-2); }
details.audit > summary { list-style: none; cursor: pointer; }
details.audit > summary::-webkit-details-marker { display: none; }
details.audit .row { padding-left: 62px; gap: 8px; }
.score { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px;
  background: var(--surface-3); box-shadow: inset 0 0 0 3px var(--line-2); }
.score.good { background: var(--good-soft); color: var(--good); box-shadow: inset 0 0 0 3px var(--good); }
.score.warn { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 3px var(--warn); }
.score.bad { background: var(--bad-soft); color: var(--bad); box-shadow: inset 0 0 0 3px var(--bad); }
ul.issues { list-style: none; margin: 0; padding: 4px 16px 12px 62px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
ul.issues li { position: relative; padding-left: 16px; }
ul.issues li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
ul.issues li.bad::before { background: var(--bad); }
ul.issues li.warn::before { background: var(--warn); }
ul.issues li.good::before { background: var(--good); }
.steps-list strong { font-weight: 700; }
@media (max-width: 720px) { details.audit .row, ul.issues { padding-left: 16px; } }

/* ---- listas editáveis, salvar fixo, kanban, mídia, texto rico (fases 1b e 5) ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.input.sm, .select.sm { padding: 6px 10px; font-size: 13px; width: auto; }
.input-lg { font-size: 20px; font-weight: 700; padding: 12px 14px; }
.q-list { display: flex; flex-direction: column; gap: 10px; }
.q-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.q-row-tight { padding: 10px 12px; align-items: flex-end; }
.q-main { flex: 1; min-width: 0; }
.q-tools { display: flex; flex-direction: column; gap: 4px; }
.save-bar { position: sticky; bottom: 12px; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; margin-top: 4px; }
.module-note { align-items: center; }
.module-note .grow { flex: 1; }
.day-h { margin: 18px 0 6px; font-size: 13px; font-weight: 800; text-transform: capitalize; color: var(--ink-2); }
.day-h:first-of-type { margin-top: 4px; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kcol { border-radius: 20px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); padding: 10px; min-height: 240px; transition: box-shadow .15s; }
.kcol.is-over { box-shadow: inset 0 0 0 2px var(--lime-text); }
.kcol-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 10px; }
.kcol-list { display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.kcard { padding: 10px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(0,0,0,.06); cursor: grab; }
.kcard.is-dragging { opacity: .5; }
.kcard-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.kcard-link .grow { min-width: 0; }
.kcard-link b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard-link small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.kcard-move { display: flex; gap: 6px; margin-top: 8px; }
.kcard-move .select { flex: 1; }
[data-kanban] .kcard-move { display: none; }
.kcard:focus-within .kcard-move { display: flex; }
.kcol-more { display: block; text-align: center; font-size: 12.5px; padding: 6px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.media-item { margin: 0; padding: 0; overflow: hidden; }
.media-item img, .media-item video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.media-item figcaption { padding: 10px; }
.media-item .row .input { flex: 1; }
.rich { border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--surface-2); overflow: hidden; }
.rich-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.rich-bar[hidden], .rich-area[hidden] { display: none; }
.rich-area { min-height: 320px; max-height: 70vh; overflow-y: auto; padding: 16px 18px; outline: 0; background: var(--surface); }
.rich .textarea { border-radius: 0; box-shadow: none; }
.prose { font-size: 15px; line-height: 1.65; }
.prose h2 { font-size: 22px; margin: 1.2em 0 .4em; }
.prose h3 { font-size: 18px; margin: 1em 0 .4em; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose blockquote { margin: 1em 0; padding-left: 14px; border-left: 3px solid var(--lime-text); color: var(--ink-2); }
@media (max-width: 720px) { .form-grid.cols-3, .form-grid.cols-4 { grid-template-columns: 1fr; } .q-row { flex-direction: column; } .q-tools { flex-direction: row; } .save-bar { border-radius: 20px; flex-direction: column; align-items: stretch; } }

/* ---- WhatsApp e conversa: configurações à esquerda, prévia fixa à direita ---- */
.wa-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 16px; align-items: start; }
.wa-layout form > .grid > section { grid-column: 1 / -1; }
.wa-preview { position: sticky; top: 84px; }
.wa-preview-card { display: flex; flex-direction: column; gap: 12px; }
.wa-stage { position: relative; height: 640px; max-height: calc(100dvh - 220px); min-height: 480px; border-radius: 18px; overflow: hidden; transform: translateZ(0);
  background: #f4f5f1; box-shadow: inset 0 0 0 1px var(--line); margin: 0 auto; width: 100%; transition: width .25s; }
.wa-stage.is-mobile { width: 375px; max-width: 100%; }
.wa-stage-site { position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.wa-stage-site i { display: block; height: 14px; border-radius: 99px; background: #e2e4dc; }
.wa-stage-site i:first-child { width: 55%; height: 26px; background: #d6d9cf; }
.wa-stage-site i:nth-child(2) { width: 90%; } .wa-stage-site i:nth-child(3) { width: 80%; } .wa-stage-site i:nth-child(4) { width: 40%; height: 40px; border-radius: 12px; }
@media (max-width: 1180px) { .wa-layout { grid-template-columns: 1fr; } .wa-preview { position: static; } }

/* ---- WhatsApp: modelos, abas, cores ---- */
.mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mode-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .15s, transform .15s; }
.mode-card:hover { transform: translateY(-1px); }
.mode-card.on { box-shadow: inset 0 0 0 2px var(--lime-text); background: var(--lime-soft); }
.mode-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mode-card .i { color: var(--lime-text); }
.mode-card b { font-size: 13.5px; }
.mode-card small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.sub-h { margin: 18px 0 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.color-pair { display: flex; gap: 6px; align-items: center; }
.color-pair .input { flex: 1; }
.color-pair input[type=color] { width: 40px; height: 40px; padding: 2px; border: 0; border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.page-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; max-height: 220px; overflow-y: auto; padding: 4px; }
.page-picks .ck small { display: block; color: var(--muted); }
.tab-pane[hidden], [data-mode-show][hidden], [data-end-show][hidden], [data-rules-pages][hidden], [data-teaser][hidden] { display: none !important; }
@media (max-width: 980px) { .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.module-row { gap: 12px; }
.module-row .toggle { min-height: 0; }
.warn-text { color: var(--warn); display: block; }

/* ---- Agenda: calendário mês e semana ---- */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px !important; }
.cal-title { margin: 0 4px; font-size: 18px; min-width: 200px; text-align: center; }
.i.flip { transform: scaleX(-1); }
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cal-wd { padding: 8px 10px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 108px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; transition: background .15s; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day:hover { background: var(--surface-2); }
.cal-day.other { opacity: .45; }
.cal-num { align-self: flex-end; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; text-decoration: none; color: inherit; }
.cal-day.today .cal-num { background: var(--lime); color: var(--lime-ink); }
.cal-ev { display: block; padding: 3px 7px; border-radius: 8px; font-size: 11.5px; line-height: 1.3; text-decoration: none; color: inherit; background: var(--surface-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .12s; }
.cal-ev:hover { transform: translateX(2px); }
.cal-ev.good { background: var(--good-soft); color: var(--good); } .cal-ev.warn { background: var(--warn-soft); color: var(--warn); } .cal-ev.bad { background: var(--bad-soft); color: var(--bad); text-decoration: line-through; }
.cal-ev small { display: block; opacity: .8; }
.cal-more { font-size: 11px; color: var(--muted); text-decoration: none; }
.cal-week { --cols: 7; border-top: 1px solid var(--line); overflow-x: auto; }
.cal-week-head, .cal-week-row { display: grid; grid-template-columns: 64px repeat(var(--cols), minmax(120px, 1fr)); }
.cal-week-day { padding: 10px 8px; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-week-day small { display: block; color: var(--muted); font-weight: 600; font-size: 11px; }
.cal-week-day.today { color: var(--lime-text); }
.cal-hour-col { padding: 6px 8px; font-size: 11px; color: var(--muted); text-align: right; font-family: var(--mono); border-bottom: 1px solid var(--line); }
.cal-week-cell { min-height: 46px; padding: 3px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.cal-week-cell .cal-ev { white-space: normal; }
.date-pill { width: 40px; flex: none; text-align: center; border-radius: 10px; background: var(--surface-2); padding: 4px 0; line-height: 1.1; }
.date-pill b { display: block; font-size: 15px; } .date-pill small { font-size: 10px; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) { .cal-day { min-height: 64px; } .cal-ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; } .cal-ev b { font-size: 0; } }

/* ---- movimento do painel ---- */
.row-actions { display: inline-flex; gap: 4px; align-items: center; }
.cover-thumb { display: block; margin-top: 8px; max-width: 240px; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.chart-hover-line { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; opacity: .6; }
.chart-hover-dot { fill: var(--lime); stroke: var(--ink); stroke-width: 2; }
.chart-hover[hidden] { display: none; }
.chart-tip { position: absolute; z-index: 80; padding: 8px 12px; border-radius: 12px; background: var(--contrast); color: var(--contrast-ink); box-shadow: var(--shadow-lg); pointer-events: none; font-size: 12px; line-height: 1.3; }
.chart-tip b { display: block; font-size: 15px; }
.chart-tip small { opacity: .75; }
.chart-tip[hidden] { display: none; }
.chart { cursor: crosshair; }
.card { transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.grid > .card.widget:hover, .grid > a.card:hover, .lib-item:hover, .kcard:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-lg); }
.btn { transition: transform .15s var(--ease), background .15s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn.primary:hover { box-shadow: 0 10px 24px -12px rgba(185, 240, 58, .8); }
.nav a { transition: background .15s, transform .15s; }
.nav a:hover { transform: translateX(2px); }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.view > * { animation: rise-in .35s var(--ease) both; }
.view > *:nth-child(2) { animation-delay: .04s; } .view > *:nth-child(3) { animation-delay: .08s; } .view > *:nth-child(4) { animation-delay: .12s; }
.grid > .widget { animation: rise-in .4s var(--ease) both; }
.grid > .widget:nth-child(2) { animation-delay: .05s; } .grid > .widget:nth-child(3) { animation-delay: .1s; } .grid > .widget:nth-child(4) { animation-delay: .15s; } .grid > .widget:nth-child(5) { animation-delay: .2s; } .grid > .widget:nth-child(6) { animation-delay: .25s; }
.bar > i { transition: width .9s var(--ease); }
.pop { animation: rise-in .18s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .view > *, .grid > .widget, .pop { animation: none; } .card, .btn, .nav a, .bar > i { transition: none; } }

/* ---- estados: esqueleto, vazio, erro, aviso ---- */
@keyframes skel-shine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skel { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: skel-shine 1.4s linear infinite; }
.skel-row { pointer-events: none; }
.skel-row .grow { display: flex; flex-direction: column; gap: 6px; }
.skel-tag { width: 56px; height: 12px; }
.skel-line { width: 70%; height: 13px; } .skel-line.short { width: 45%; height: 11px; }
.state-empty { margin: 10px; color: var(--muted); font-size: 13px; }
.state-error { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px; padding: 10px 12px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-size: 13px; }
.skeleton-note { position: absolute; inset: auto 16px 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); font-size: 13px; color: var(--muted); }
.skeleton-note.bad { color: var(--bad); background: var(--bad-soft); }
.skeleton-note[hidden] { display: none; }
.nmp-skel { background: linear-gradient(90deg, #ececea 25%, #f7f7f5 50%, #ececea 75%); background-size: 200% 100%; animation: skel-shine 1.4s linear infinite; border-color: transparent; pointer-events: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translateX(-50%); padding: 12px 18px; border-radius: 999px; background: var(--contrast); color: var(--contrast-ink); box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 600; animation: rise-in .25s var(--ease) both; transition: opacity .3s, transform .3s; }
.toast.bad { background: var(--bad); color: #fff; }
.toast.out { opacity: 0; transform: translate(-50%, 8px); }
@media (prefers-reduced-motion: reduce) { .skel, .nmp-skel { animation: none; } }
/* ---- títulos de grupo (Partes do site, Páginas automáticas) ---- */
.section-title { margin: 26px 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.head + .section-title { margin-top: 4px; }
.form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-all { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid.cols-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---- campos de imagem: vitrine de miniaturas e prévia ---- */
.gal { display: flex; flex-direction: column; gap: 10px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.gal-item { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); cursor: grab; transition: box-shadow .15s, transform .15s; }
.gal-item:hover, .gal-item:focus-within { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.gal-item.is-dragging { opacity: .45; cursor: grabbing; }
.gal-item:first-child { box-shadow: inset 0 0 0 2px var(--lime); }
.gal-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gal-ext { display: grid; place-items: center; padding: 10px; text-align: center; font-size: 12px; color: var(--muted); }
.gal-badge { position: absolute; left: 8px; top: 8px; display: none; padding: 3px 9px; border-radius: 999px; background: var(--lime); color: #11150a; font-size: 11px; font-weight: 800; }
.gal-item:first-child .gal-badge { display: block; }
.gal-bar { position: absolute; inset: auto 6px 6px 6px; display: flex; justify-content: center; gap: 4px; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.gal-item:hover .gal-bar, .gal-item:focus-within .gal-bar { opacity: 1; transform: none; }
.gal-btn { width: 30px; height: 30px; border: 0; border-radius: 9px; background: rgba(17, 21, 10, .78); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); }
.gal-btn:hover { background: #11150a; }
.gal-btn.gal-main:hover { color: var(--lime); }
.gal-btn.gal-remove:hover { background: var(--bad); }
.gal-item:first-child .gal-main, .gal-item:first-child .gal-left, .gal-item:nth-last-child(2) .gal-right { display: none; }
.gal-add { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.gal-add:hover { border-color: var(--lime); color: var(--ink); background: var(--surface-2); }
.gal-add-plus { font-size: 26px; line-height: 1; }
.gal-hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.gal-toggle { align-self: flex-start; }
.gal + textarea { margin-top: 2px; }
.img-prev { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.img-prev[hidden] { display: none; }
.img-prev-pic { flex: 0 0 96px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.img-prev-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.img-prev-side { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.img-prev-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-family: var(--mono); }
@media (hover: none) { .gal-bar { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gal-item, .gal-bar, .gal-add { transition: none; } }
