/* ==========================================================
   CARDON CRM
   Monocromático Cardon Studio 3D · Poppins (títulos) + Inter
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
	--ink: #0a0a0a;
	--ink-2: #1a1a1a;
	--ink-3: #262626;
	--bg: #f4f4f2;
	--card: #ffffff;
	--line: #e7e7e3;
	--line-2: #d9d9d4;
	--muted: #737373;
	--muted-2: #a3a3a3;
	--accent: #0a0a0a;
	--accent-soft: #efefec;
	--ok: #1ab91e;
	--ok-soft: #e9f8ea;
	--warn: #d98e04;
	--warn-soft: #fff6e0;
	--late: #dc2626;
	--late-soft: #fdecec;
	--radius: 14px;
	--radius-sm: 9px;
	--shadow: 0 1px 2px rgba(10,10,10,.04), 0 4px 16px rgba(10,10,10,.04);
	--font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--head: 'Poppins', 'Inter', -apple-system, sans-serif;
	--side: 244px;
	--ease: cubic-bezier(.22, 1, .36, 1);
}

html { -webkit-text-size-adjust: 100%; }
body.etx { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.text-ok { color: var(--ok-text, #138a17); }
.text-warn { color: var(--warn); }
.text-late { color: var(--late); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--muted); }
.link { font-size: 13px; color: var(--muted); text-decoration: none; }
.link:hover { color: var(--ink); }
.hint { margin-bottom: 18px; max-width: 760px; }
.ic { flex-shrink: 0; }

/* ---------- Botões ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; background: var(--card); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #333; }
.btn--ghost { background: transparent; border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--danger { background: transparent; border-color: #f3c7c7; color: var(--late); }
.btn--danger:hover { background: var(--late-soft); }
.btn--wa { background: #148a2b; color: #fff; }
.btn--wa:hover { background: #0f7423; }
.btn--sm { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn--block { width: 100%; min-height: 48px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 6px; border: 0; background: transparent; border-radius: 8px; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: none; }
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.icon-btn--wa { color: var(--ok); }
.icon-btn--wa:hover { color: #0f6f12; background: var(--ok-soft); }
.inline-form { display: inline-flex; margin: 0; }

/* ---------- Campos ---------- */

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.field input, .field select, .field textarea, .copy-row input, .add-page input, .approve-form input, .toolbar .filter, .comment-box textarea {
	width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea, .comment-box textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .copy-row input:focus, .comment-box textarea:focus, .toolbar .filter:focus, .add-page input:focus, .approve-form input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10,10,10,.06); }
.field input[type=color] { padding: 4px; height: 42px; }
.field input:disabled { background: var(--bg); color: var(--muted); }
.field--check { justify-content: flex-end; padding-bottom: 10px; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.with-btn { display: flex; gap: 6px; }
.with-btn input { flex: 1; }
.new-client { margin-top: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.form-actions--sticky { position: sticky; bottom: 0; z-index: 5; margin: 0 -4px; padding: 12px 4px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -10px 18px -12px rgba(10,10,10,.18); }
.perms { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.perms legend { padding: 0 6px; font-size: 13px; font-weight: 600; }

/* ---------- Estrutura do painel ---------- */

.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px 14px 16px; background: var(--ink); color: #d4d4d4; overflow-y: auto; }
.side-brand { display: block; padding: 4px 10px 6px; }
.side-brand img { height: 30px; width: auto; }
.side-search { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 1px solid #262626; border-radius: 10px; background: #141414; color: #8a8a8a; font-size: 14px; cursor: pointer; text-align: left; }
.side-search:hover { border-color: #3a3a3a; color: #d4d4d4; }
.side-search span { flex: 1; }
.side-search kbd, .search-input kbd { font: 11px var(--font); padding: 2px 6px; border: 1px solid #333; border-radius: 5px; color: #8a8a8a; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 14.5px; font-weight: 500; color: #a3a3a3; transition: background .15s, color .15s; }
.side-nav a:hover { background: #161616; color: #fff; }
.side-nav a.is-active { background: #1c1c1c; color: #fff; }
.side-nav a.is-active::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.side-nav a.is-active .ic { color: var(--accent); }
.side-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 20px; background: var(--accent); color: #fff; font-size: 11.5px; font-style: normal; font-weight: 700; text-align: center; }
.side-label { margin: 16px 12px 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: #7a7a76; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid #1f1f1f; }
.side-user-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: #fff; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-name small { display: block; font-weight: 400; color: #737373; font-size: 12px; }
.side-out { color: #737373; display: flex; padding: 6px; border-radius: 8px; }
.side-out:hover { color: #fff; background: #1c1c1c; }
.side-backdrop { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 36px; background: rgba(244,244,242,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-menu { display: none; border: 0; background: none; padding: 6px; margin-left: -6px; cursor: pointer; }
.top-title { flex: 1; min-width: 0; font-size: 22px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.content { padding: 28px 36px 60px; display: flex; flex-direction: column; gap: 20px; }

.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-decoration: none; align-self: flex-start; }
.back:hover { color: var(--ink); }

/* ---------- Avisos ---------- */

.flash { padding: 12px 16px; border-radius: 12px; font-size: 14px; background: var(--ok-soft); color: #0f6f12; border: 1px solid #c9ecca; transition: opacity .4s, transform .4s; }
.flash--erro { background: var(--late-soft); color: #9b1c1c; border-color: #f5caca; }
.flash--warn { background: var(--warn-soft); color: #8a5a00; border-color: #f3dfa8; }
.flash.is-out { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 16px); opacity: 0; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: opacity .3s var(--ease), transform .3s var(--ease); pointer-events: none; }
.toast--erro { background: var(--late); }
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Cards ---------- */

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h3 { font-size: 16px; }
.card--accent { border-color: #ffd6c7; background: linear-gradient(180deg, #fff8f5 0%, #fff 70%); }
.card--warn { border-color: #f3dfa8; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 12px; text-align: center; color: var(--muted); }
.empty--big { padding: 60px 20px; background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty--big h3 { color: var(--ink); font-size: 18px; margin-top: 6px; }
.empty--big .btn { margin-top: 10px; }

/* ---------- Dashboard ---------- */

.hello h2 { font-size: clamp(26px, 3vw, 36px); margin: 4px 0 6px; letter-spacing: -.025em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s var(--ease), border-color .2s; }
a.stat:hover { transform: translateY(-2px); border-color: var(--line-2); }
.stat-label { font-size: 13px; color: var(--muted); }
.stat strong { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.stat small { font-size: 12.5px; color: var(--muted); }
.stat--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.stat--dark .stat-label, .stat--dark small { color: #a3a3a3; }
.stat--dark small b { color: #ff8a63; font-weight: 600; }
.stat--dark strong { font-size: 26px; }
.stat--warn { border-color: #f3dfa8; background: var(--warn-soft); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mini-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.mini-list li:first-child { border-top: 0; padding-top: 0; }
.mini-list a { flex: 1; min-width: 0; text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.mini-list strong { font-size: 14px; font-weight: 600; }
.mini-list span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list small { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- Checklist ---------- */

.checklist { list-style: none; margin: 0; padding: 0; }
.check-item { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); transition: background .15s; }
.check-item:first-child { border-top: 0; }
.check-item:hover { background: #fafaf8; }
.check-title { flex: 1; min-width: 0; font-size: 14.5px; text-decoration: none; transition: color .15s; }
.check-title small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.check-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.check-item.is-done [data-send-review] { display: none; }
.check-item.is-done .check-title { color: var(--muted-2); text-decoration: line-through; text-decoration-color: var(--line-2); }
.tick { position: relative; flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); background: var(--card); cursor: pointer; padding: 0; transition: background .2s var(--ease), border-color .2s; }
.tick:hover { border-color: var(--ink); }
.tick::after { content: ''; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .2s var(--ease); }
.is-done > .tick, .tick.is-done { background: var(--ok); border-color: var(--ok); }
.is-done > .tick::after, .tick.is-done::after { transform: rotate(45deg) scale(1); }
.tick--lg { width: 30px; height: 30px; border-radius: 9px; }
.tick--lg::after { left: 10px; top: 5px; width: 7px; height: 13px; }
.checklist--read .tick { cursor: default; }
.flag { display: inline-flex; padding: 4px; border: 0; background: none; border-radius: 6px; color: var(--line-2); cursor: pointer; }
.flag.is-on { color: var(--ink); }
.flag:hover { background: var(--bg); }

.group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.group > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; user-select: none; }
.group > summary::-webkit-details-marker { display: none; }
.group > summary::before { content: '›'; font-size: 18px; color: var(--muted); transition: transform .2s; margin-right: -4px; }
.group[open] > summary::before { transform: rotate(90deg); }
.group-name { flex: 1; font-weight: 600; font-size: 14.5px; }
.group-count { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.group .checklist { padding: 0 14px 8px; }
.row-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.add-page { display: flex; gap: 8px; align-items: center; }
.add-page input { min-height: 32px; padding: 5px 10px; width: 220px; font-size: 13px; }

/* ---------- Selos ---------- */

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.badge--urgente { background: var(--late); border-color: var(--late); color: #fff; }
.badge--alta { background: var(--accent-soft); border-color: #ffd6c7; color: #c2410c; }
.badge--baixa { color: var(--muted); }
.badge--wait { background: var(--warn-soft); border-color: #f3dfa8; color: #8a5a00; }
.badge--ok { background: var(--ok-soft); border-color: #c9ecca; color: #0f6f12; }
.badge--btn { cursor: pointer; font-family: inherit; background: var(--card); border-color: var(--ink); color: var(--ink); }
.badge--btn:hover { background: var(--ink); color: #fff; }
.due { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.due--late { color: var(--late); }
.due--today { color: #d9400f; font-weight: 600; }
.due--soon { color: #a86b00; }
.pill { display: inline-flex; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--ink-3); white-space: nowrap; }
.pill--ok { background: var(--ok-soft); color: #0f6f12; }
.pill--warn { background: var(--warn-soft); color: #8a5a00; }
.pill--late { background: var(--late-soft); color: #9b1c1c; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.avatar--sm { width: 24px; height: 24px; font-size: 10px; }
.side-user .avatar { background: var(--accent); }
.svc { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.svc::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); }
.svc-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.round-ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); color: var(--ink-3); flex-shrink: 0; font-weight: 700; }
.round-ic--in { background: var(--ok-soft); color: #138a17; }
.round-ic--out { background: var(--late-soft); color: var(--late); }

.progress { height: 6px; border-radius: 6px; background: #efefeb; overflow: hidden; min-width: 60px; }
.progress span { display: block; height: 100%; border-radius: 6px; background: var(--ink); transition: width .5s var(--ease); }
.ring { --p: 0; position: relative; width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), #ececea 0); display: grid; place-items: center; flex-shrink: 0; transition: background .5s; }
.ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--card); }
.ring strong { position: relative; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.ring--lg { width: 104px; height: 104px; }
.ring--lg strong { font-size: 24px; }

/* ---------- Tabelas (linhas) ---------- */

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.toolbar .filter { max-width: 380px; }
.table { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); text-decoration: none; font-size: 14px; transition: background .15s; }
.table-row:first-child { border-top: 0; }
a.table-row:hover, .table-row[data-open]:hover { background: #fafaf8; cursor: pointer; }
.table-row > span small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.table-head { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; background: #fafaf8; padding-top: 11px; padding-bottom: 11px; }
.table-row.is-off { opacity: .55; }
.cell-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-main > span:last-child { min-width: 0; }
.cell-main strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-arrow { color: var(--muted-2); }
.row-btns { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.table--compact .table-row { grid-template-columns: minmax(0, 2fr) auto auto auto auto; padding: 12px 16px; }
.table--projects .table-row { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, .8fr); }
.table--fin .table-row { grid-template-columns: minmax(0, 2.4fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, .8fr) auto; }

/* ---------- Segmentado / abas ---------- */

.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #e9e9e5; }
.seg a, .seg label { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; text-decoration: none; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg a.is-active, .seg label:has(input:checked) { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.seg--radio { align-self: flex-start; }
.seg--radio input { display: none; }
.seg--sm a { padding: 4px 10px; font-size: 12.5px; }
.month-nav { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.month-nav strong { min-width: 140px; text-align: center; font-weight: 600; }
.month-nav .icon-btn { font-size: 20px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; padding: 10px 14px 12px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.tabs a em { font-style: normal; font-size: 11.5px; color: var(--muted-2); margin-left: 3px; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { color: var(--ink); }
.tabs a.is-active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.tab-panel { display: flex; flex-direction: column; gap: 16px; padding-top: 4px; }

/* ---------- Kanban ---------- */

.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; min-height: calc(100vh - 190px); }
.kcol { display: flex; flex-direction: column; background: #ebebe7; border-radius: var(--radius); min-height: 180px; max-height: calc(100vh - 170px); }
.kcol-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.kcol-head h3 { font-size: 14px; }
.kcount { font-size: 12px; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.7); padding: 1px 8px; border-radius: 20px; }
.kcol-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 4px 10px 12px; overflow-y: auto; border-radius: 0 0 var(--radius) var(--radius); transition: background .15s; min-height: 60px; }
.kcol-body.is-over { background: rgba(128,128,128,.07); }
.kcol:last-child, .kcol[data-last] { background: #e7ede7; }
.kcol.kcol--add { background: transparent; }
.kcard { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04); cursor: grab; user-select: none; transition: box-shadow .2s, transform .2s var(--ease), opacity .2s; }
.kcard:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-1px); }
.kcard.is-dragging { opacity: .45; transform: rotate(1.5deg); }
.kcard h4 { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.kcard-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.kcard-sub { font-size: 12.5px; color: var(--muted); margin-top: -4px; }
.kcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kcard-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kcard-project { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kcard--task { border-left: 3px solid transparent; }
.kcard--task.prio-alta { border-left-color: var(--accent); }
.kcard--task.prio-urgente { border-left-color: var(--late); }
.kcol--done .kcard h4 { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.sheet { position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-end; background: rgba(0,0,0,.35); }
.sheet-box { width: 100%; background: var(--card); border-radius: 18px 18px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 6px; }
.sheet-box strong { padding: 0 6px 6px; }
.sheet-box button { text-align: left; padding: 14px; border: 0; background: var(--bg); border-radius: 12px; font-weight: 500; }

/* ---------- Detalhe (projeto, cliente, tarefa) ---------- */

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.detail-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.side-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.side-actions--end { justify-content: flex-end; }
.stack-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.support-box, .waiting-box { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: var(--bg); }
.waiting-box:has(input:checked) { background: var(--warn-soft); }

.project-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ph-main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ph-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ph-main h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.025em; }
.ph-main h2 a { text-decoration: none; }
.ph-main h2 a:hover { color: var(--accent); }
.ph-progress { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.flow { display: flex; flex-wrap: wrap; gap: 6px; }
.flow-step { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 20px; background: var(--bg); color: var(--muted); }
.flow-step.is-done { color: var(--ink-3); background: #ecece8; }
.flow-step.is-current { background: var(--ink); color: #fff; }

.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; font-size: 13px; color: var(--ink-3); background: var(--bg); }
.answers { margin: 0; display: flex; flex-direction: column; }
.answers > div { padding: 14px 0; border-top: 1px solid var(--line); }
.answers > div:first-child { border-top: 0; }
.answers dt { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.answers dd { margin: 0; font-size: 14.5px; }
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.files li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.files a { flex: 1; min-width: 0; text-decoration: none; }
.files strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.files small { font-size: 12px; color: var(--muted); }
.file-ic { display: inline-flex; padding: 8px; border-radius: 10px; background: var(--bg); color: var(--ink-3); }
.add-box { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: #fcfcfb; }
.add-box h4 { font-size: 14px; }
.add-details > summary { list-style: none; display: inline-flex; }
.add-details > summary::-webkit-details-marker { display: none; }
.add-details[open] > summary { margin-bottom: 12px; }
.access-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.access { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.access-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.access-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.access-row > span { width: 46px; color: var(--muted); }
.access-row code { flex: 1; min-width: 0; padding: 5px 9px; background: var(--bg); border-radius: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-stats > div { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 4px; }
.mini-stats span { font-size: 12.5px; color: var(--muted); }
.mini-stats strong { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.comment-box { display: flex; flex-direction: column; gap: 10px; }
.project-list { list-style: none; margin: 0; padding: 0; }
.project-list a { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.project-list li:first-child a { border-top: 0; }
.pl-main { flex: 1; min-width: 0; }
.pl-main strong { display: block; font-size: 14.5px; }
.pl-main small { color: var(--muted); font-size: 12.5px; }
.pl-progress { display: flex; align-items: center; gap: 8px; width: 150px; }
.pl-progress .progress { flex: 1; }
.pl-value { font-weight: 600; font-size: 14px; white-space: nowrap; }

.task-view { display: flex; flex-direction: column; gap: 18px; }
.task-title { display: flex; gap: 16px; align-items: flex-start; }
.task-title h2 { font-size: 24px; margin: 4px 0 10px; }
.task-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.task-desc { padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.task-desc p { margin: 0 0 10px; }
.task-desc a { color: var(--accent); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { position: relative; display: flex; gap: 16px; padding: 8px 0; }
.timeline .dot { position: relative; z-index: 1; flex-shrink: 0; width: 11px; height: 11px; margin-top: 5px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-2); }
.timeline li.is-comment .dot { border-color: var(--accent); background: var(--accent); }
.timeline li.is-comment > div > p { padding: 10px 14px; background: var(--bg); border-radius: 4px 12px 12px 12px; }
.timeline p { font-size: 14px; }
.timeline small { font-size: 12px; color: var(--muted); }
.timeline small a { color: var(--ink-3); }

/* ---------- Formulários em etapas (novo projeto, serviço, config) ---------- */

.wizard { display: flex; flex-direction: column; gap: 18px; max-width: 1080px; }
.step { display: flex; flex-direction: column; gap: 18px; }
.step-head { display: flex; gap: 16px; align-items: flex-start; }
.step-head h3 { font-size: 17px; margin-bottom: 3px; }
.step-n { font-size: 12px; font-weight: 600; color: var(--accent); padding: 5px 9px; border-radius: 8px; background: var(--accent-soft); }
.step code { background: var(--bg); padding: 1px 6px; border-radius: 5px; }

/* ---------- Serviços ---------- */

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.svc-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s var(--ease), border-color .2s; }
.svc-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.svc-card-bar { position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--c); }
.svc-card h3 { font-size: 17px; }
.svc-card-value { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.svc-card ul { list-style: none; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }

/* ---------- Financeiro ---------- */

.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; height: 220px; align-items: end; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.bar-pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 5px; }
.bar { width: 40%; max-width: 26px; min-height: 2px; border-radius: 6px 6px 2px 2px; transition: height .6s var(--ease); }
.bar--in { background: var(--ink); }
.bar--out { background: #f0b9a6; }
.bar-col small { font-size: 12px; color: var(--muted); }
.bar-col.is-current small { color: var(--ink); font-weight: 600; }
.bar-col.is-current .bar--in { background: var(--accent); }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.lg-in { background: var(--ink); }
.lg-out { background: #f0b9a6; }
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cat-list li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.cat-list .progress { grid-column: 1 / -1; }
.cat-list .progress span { background: var(--accent); }

/* ---------- Janela (modal) ---------- */

.modal { width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.25); color: var(--ink); }
.modal::backdrop { background: rgba(10,10,10,.45); backdrop-filter: blur(3px); }
.modal[open] { animation: modalIn .25s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 1; }
.modal-head h3 { font-size: 17px; }
.modal-x { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.modal-body { padding: 20px 22px 22px; }

/* ---------- Busca ---------- */

.search { position: fixed; inset: 0; z-index: 120; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(10,10,10,.45); backdrop-filter: blur(3px); }
.search-box { width: min(620px, 100%); background: var(--card); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.3); overflow: hidden; animation: modalIn .2s var(--ease); }
.search-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-input input { flex: 1; border: 0; outline: none; font-size: 16px; color: var(--ink); background: none; }
.search-input kbd { border-color: var(--line-2); }
.search-results { max-height: 56vh; overflow-y: auto; padding: 8px; }
.search-hint { padding: 16px; font-size: 14px; color: var(--muted); }
.search-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.search-item:hover, .search-item.is-active { background: var(--bg); }
.search-item em { font-style: normal; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); width: 58px; flex-shrink: 0; }
.search-item span { min-width: 0; }
.search-item strong { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item small { font-size: 12.5px; color: var(--muted); }

/* ---------- Login e convite ---------- */

.etx-auth { background: var(--card); }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 100vh; }
.auth-side { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 48px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.auth-side::after { content: ''; position: absolute; width: 520px; height: 520px; right: -200px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 65%); }
.auth-logo { height: 36px; width: auto; align-self: flex-start; position: relative; z-index: 1; }
.auth-side-text { position: relative; z-index: 1; max-width: 440px; }
.auth-side-text .eyebrow { color: #8a8a8a; }
.auth-side-text h2 { font-size: clamp(28px, 3vw, 40px); margin-top: 10px; letter-spacing: -.03em; line-height: 1.12; }
.auth-list { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: #d4d4d4; }
.auth-list li { display: flex; gap: 10px; align-items: center; }
.auth-list .ic { color: var(--accent); }
.auth-copy { position: relative; z-index: 1; font-size: 12px; color: #5c5c5c; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form { width: min(400px, 100%); display: flex; flex-direction: column; gap: 16px; }
.auth-form--wide { width: min(560px, 100%); }
.auth-form h1 { font-size: 32px; letter-spacing: -.03em; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.auth-row a { color: var(--muted); }

/* ---------- Área do cliente ---------- */

.etx-client { background: var(--bg); }
.preview-bar { padding: 10px 20px; text-align: center; font-size: 13px; background: var(--accent); color: #fff; }
.preview-bar a { color: #fff; font-weight: 600; margin-left: 8px; }
.ctop { background: var(--ink); color: #fff; }
.ctop-inner { max-width: 1040px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ctop-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.ctop-brand img { height: 28px; width: auto; }
.ctop-brand span { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8a8a8a; padding-left: 14px; border-left: 1px solid #333; }
.ctop-nav { display: flex; align-items: center; gap: 4px; }
.ctop-nav a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: #bdbdbd; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ctop-nav a:hover { color: #fff; background: #1c1c1c; }
.cmain { max-width: 1040px; margin: 0 auto; padding: 32px 24px 90px; display: flex; flex-direction: column; gap: 20px; }
.chello h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.03em; margin: 4px 0 8px; }
.cprojects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cproject { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s var(--ease); }
.cproject:hover { transform: translateY(-3px); }
.cproject-top, .cproject-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.cproject h3 { font-size: 19px; }
.chero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.chero h1 { font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -.03em; margin: 8px 0 6px; }
.cflow { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.cflow::-webkit-scrollbar { display: none; }
.cflow li { position: relative; flex: 1; min-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12.5px; color: var(--muted-2); }
.cflow li::before { content: ''; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--line-2); }
.cflow li:first-child::before { display: none; }
.cflow li.is-done::before, .cflow li.is-current::before { background: var(--ink); }
.cflow-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); color: #fff; }
.cflow li.is-done { color: var(--ink-3); }
.cflow li.is-done .cflow-dot { background: var(--ink); border-color: var(--ink); }
.cflow li.is-current { color: var(--ink); font-weight: 600; }
.cflow li.is-current .cflow-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(128,128,128,.15); }
.needs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.needs li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #ffe2d7; flex-wrap: wrap; }
.needs li:first-child { border-top: 0; padding-top: 0; }
.needs li > span { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; min-width: 0; flex: 1; }
.needs li > span .ic { color: var(--accent); grid-row: span 2; }
.needs small { color: var(--muted); font-size: 13px; }
.approve-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.approve-form input { width: 220px; min-height: 32px; padding: 5px 10px; font-size: 13px; }
.card--review { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.card--review > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; }
.card--review .ic { color: #f5b301; grid-row: span 2; }
.drive { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--ink); color: #fff; text-decoration: none; }
.drive small { display: block; color: #a3a3a3; font-size: 13px; }
.drive .ic { color: var(--accent); }
.briefing-form { display: flex; flex-direction: column; gap: 14px; }
.bq { display: flex; gap: 16px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.bq .field { flex: 1; }
.bq .field > span { font-size: 15px; font-weight: 600; color: var(--ink); }
.bq-n { font-size: 12px; font-weight: 600; color: var(--accent); padding-top: 2px; }
.narrow { max-width: 720px; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; box-shadow: 0 10px 30px rgba(26,185,30,.35); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.06); }

.stats--dash { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.stats--dash .stat strong { font-size: 26px; }
.due-group + .due-group { margin-top: 14px; }
.due-group h4 { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.due-group h4 span { padding: 0 7px; border-radius: 20px; background: var(--bg); font-size: 11px; color: var(--ink-3); }
.due-group--late h4 { color: var(--late); }
.due-group--late h4 span { background: var(--late-soft); color: var(--late); }
.due-group--today h4 { color: var(--accent); }
.due-group--today h4 span { background: var(--accent-soft); color: #c2410c; }

/* ---------- Briefing (tipos de pergunta) ---------- */

.bq-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.bq-label { font-size: 15px; font-weight: 600; }
.bq-body > input[type=text], .bq-body > textarea, .refs input { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); outline: none; }
.bq-body > input:focus, .bq-body > textarea:focus, .refs input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10,10,10,.06); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1.5px solid var(--line-2); border-radius: 100px; font-size: 14px; font-weight: 500; background: var(--card); transition: all .15s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--multi input:checked + span::before { content: '✓'; font-weight: 700; color: var(--accent); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(128,128,128,.25); }
.refs { display: flex; flex-direction: column; gap: 8px; }
.bq-body > .btn { align-self: flex-start; }
.drop { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1.5px dashed var(--line-2); border-radius: 12px; color: var(--muted); font-size: 14px; cursor: pointer; background: #fcfcfb; }
.drop:hover { border-color: var(--ink); color: var(--ink); }
.drop input { flex: 1; min-width: 0; font-size: 13px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.thumbs img { width: 88px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.sent-files { margin: 0; padding-left: 18px; font-size: 13px; }
.ref-link { display: block; font-size: 14px; color: var(--accent); word-break: break-all; margin-bottom: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Gerador de propostas ---------- */

.field-label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 8px; }
.svc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.svc-opt, .pf-opt { position: relative; cursor: pointer; }
.svc-opt input, .pf-opt input { position: absolute; top: 14px; left: 14px; width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.svc-opt span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 40px; border: 1.5px solid var(--line-2); border-radius: 12px; transition: border-color .15s, background .15s; }
.svc-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.svc-opt small { color: var(--muted); font-size: 12.5px; }
.pf-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pf-opt { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.pf-opt input { top: 8px; left: 8px; z-index: 1; }
.pf-opt img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 10px; border: 2px solid transparent; opacity: .55; transition: all .15s; }
.pf-opt input:checked ~ img { border-color: var(--accent); opacity: 1; }
.autofill { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 12px; background: var(--ink); color: #a3a3a3; font-size: 14px; flex-wrap: wrap; }
.autofill .btn--primary { background: var(--accent); }
.autofill .btn--primary:hover { background: #e84a18; }
.plans-edit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan-edit { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fcfcfb; }
.plan-edit-head { display: flex; align-items: center; justify-content: space-between; }
.plan-edit-head h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.plan-edit .field input, .plan-edit .field select, .plan-edit .field textarea { min-height: 36px; padding: 7px 10px; font-size: 13.5px; }
.is-flash { animation: etxFlash 1.2s ease; }
@keyframes etxFlash { 0% { background: #ffe6dc; } 100% { background: var(--card); } }
.prop-ready .copy-row input { background: var(--card); }
.accepted-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: #0f6f12; flex-wrap: wrap; }

/* ---------- Aceite e pagamento ---------- */

.auth--accept .auth-side-text h2 { font-size: clamp(26px, 2.6vw, 34px); }
.accept-price { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.accept-price strong { font-size: 36px; font-weight: 600; letter-spacing: -.03em; color: #fff; }
.accept-price .per { font-style: normal; font-size: 16px; color: #a3a3a3; margin-left: 4px; }
.accept-price small { color: #a3a3a3; font-size: 14px; }
.accept-back { display: inline-block; margin-top: 26px; font-size: 13px; color: #8a8a8a; text-decoration: none; }
.accept-back:hover { color: #fff; }
.pay-options { border: 0; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pay-options legend { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.pay-opt { position: relative; cursor: pointer; }
.pay-opt input { position: absolute; top: 18px; left: 16px; width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.pay-opt span { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 46px; border: 1.5px solid var(--line-2); border-radius: 12px; transition: border-color .15s, background .15s; }
.pay-opt small { font-size: 13px; color: var(--muted); }
.pay-opt input:checked + span { border-color: var(--ink); background: #fafaf8; }
.accept-check { font-size: 14px; }
.pay-result { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 32px 18px; background: var(--ink); }
.pay-logo { height: 30px; width: auto; padding: 12px 18px; border-radius: 12px; background: var(--ink); box-sizing: content-box; }
.pay-card { width: min(460px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 30px; background: var(--card); border-radius: 20px; text-align: center; }
.pay-card h1 { font-size: 26px; letter-spacing: -.02em; }
.pay-card .btn--block { margin-top: 4px; }
.pay-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 4px; }
.pay-ic--ok { background: var(--ok-soft); color: var(--ok); }
.pay-ic--warn { background: var(--warn-soft); color: var(--warn); }

@media (max-width: 1024px) {
	.plans-edit { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
	.accept-price strong { font-size: 28px; }
	.auth--accept .auth-list { display: none; }
}

/* ---------- Hospedagem e domínio ---------- */

.table--subs .table-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr) auto; }
.mini-list li > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.table--renew .table-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .7fr) auto; }
.table-row a { text-decoration: none; }
.table-row a:hover { color: var(--accent); }
.renew { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.renew-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.renew-top span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.renew-bar { height: 6px; border-radius: 6px; background: #efefeb; overflow: hidden; }
.renew-bar span { display: block; height: 100%; border-radius: 6px; }
.renew--ok .renew-bar span { background: var(--ok); }
.renew--warn .renew-bar span { background: var(--warn); }
.renew--warn .renew-top span { color: var(--warn); font-weight: 600; }
.renew--late .renew-bar span { background: var(--late); }
.renew--late .renew-top span { color: var(--late); font-weight: 600; }
.renew small { font-size: 11.5px; color: var(--muted); }
.renew-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ps-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 12px; }
.ps-mini div { padding: 10px 12px; border-radius: 10px; background: var(--bg); display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.ps-mini strong { font-size: 20px; }
#entrega-card .stack { margin-top: 14px; }

/* ---------- Página de entrega (pública) ---------- */

.etx-delivery { background: var(--card); }
.dv-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #e84a18; }
.btn--light { background: #fff; color: var(--ink); }
.dv-hero { background: var(--ink); color: #fff; padding: 56px 0 72px; overflow: hidden; position: relative; }
.dv-hero::after { content: ''; position: absolute; width: 640px; height: 640px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 65%); }
.dv-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; position: relative; z-index: 1; }
.dv-logo { height: 34px; width: auto; margin-bottom: 36px; }
.dv-hero .eyebrow { color: #8a8a8a; }
.dv-hero h1 { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -.035em; line-height: 1.04; margin: 12px 0 18px; }
.dv-lead { color: #bdbdbd; font-size: 16px; line-height: 1.7; margin-bottom: 26px; max-width: 480px; }
.dv-mockups { position: relative; min-height: 320px; }
.mk-browser { border-radius: 12px; overflow: hidden; background: #1a1a1a; box-shadow: 0 30px 80px rgba(0,0,0,.5); border: 1px solid #262626; }
.mk-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #1f1f1f; }
.mk-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; }
.mk-bar span { margin-left: 10px; flex: 1; padding: 3px 10px; border-radius: 6px; background: #141414; color: #8a8a8a; font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mk-browser img { width: 100%; }
.mk-phone { position: absolute; right: -10px; bottom: -40px; width: 24%; min-width: 110px; padding: 7px; border-radius: 22px; background: #0a0a0a; border: 2px solid #333; box-shadow: 0 24px 50px rgba(0,0,0,.55); }
.mk-phone img { border-radius: 16px; width: 100%; }
.dv-main { padding-bottom: 0; }
.dv-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: -1px; border-bottom: 1px solid var(--line); }
.dv-numbers div { padding: 34px 20px 30px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.dv-numbers div:first-child { border-left: 0; padding-left: 0; }
.dv-numbers strong { font-size: clamp(34px, 4vw, 48px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.dv-numbers span { color: var(--muted); font-size: 14px; }
.dv-section { padding-top: 72px; }
.dv-head { max-width: 680px; margin-bottom: 28px; }
.dv-head h2 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -.025em; margin: 8px 0 10px; }
.dv-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.dv-card h3 { font-size: 17px; }
.dv-ps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 10px 0 6px; }
.gauge { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12.5px; color: var(--muted); }
.gauge-ring { --c: var(--ok); position: relative; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), #efefeb 0); }
.gauge-ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--card); }
.gauge-ring strong { position: relative; font-size: 20px; color: var(--c); }
.gauge--mid .gauge-ring { --c: var(--warn); }
.gauge--bad .gauge-ring { --c: var(--late); }
.dv-metrics { margin: 8px 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.dv-metrics div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.dv-metrics dt { color: var(--muted); }
.dv-metrics dd { margin: 0; font-weight: 600; }
.dv-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.dv-page { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.dv-page small { color: var(--muted); font-size: 12.5px; }
.dv-devices { display: flex; gap: 6px; }
.dv-devices em { font-style: normal; font-size: 11.5px; padding: 3px 9px; border-radius: 20px; background: var(--bg); color: var(--muted); }
.dv-devices.is-ok em { background: var(--ok-soft); color: #0f6f12; }
.dv-check { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.dv-check li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 14px; color: var(--muted); }
.dv-check li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e5e5e1; font-size: 12px; flex-shrink: 0; }
.dv-check li.is-ok { color: var(--ink); }
.dv-check li.is-ok span { background: var(--ok); color: #fff; }
.dv-video { position: relative; padding-top: 56.25%; border-radius: 16px; overflow: hidden; background: var(--ink); }
.dv-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dv-access, .dv-renew { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }
.dv-access code { align-self: flex-start; padding: 4px 9px; background: var(--bg); border-radius: 7px; }
.dv-renew strong { font-size: 24px; letter-spacing: -.02em; }
.dv-renew small { color: var(--muted); }
.dv-final { margin-top: 88px; padding: 72px 0 40px; background: var(--ink); color: #fff; text-align: center; }
.dv-final h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; }
.dv-final p { color: #a3a3a3; margin-top: 10px; }
.dv-final-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.dv-copy { margin-top: 48px !important; font-size: 12px; color: #5c5c5c !important; }

/* ---------- Agenda / Google ---------- */

.meetings { list-style: none; margin: 0; padding: 0; }
.meet-day { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 0 6px; }
.meet-day:first-child { padding-top: 0; }
.meet { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.meet-time { width: 56px; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.meet-main { flex: 1; min-width: 0; }
.meet-main strong { display: block; font-size: 14.5px; }
.meet-main small { color: var(--muted); font-size: 12.5px; }
.howto { margin: 12px 0 4px; padding-left: 20px; font-size: 14px; line-height: 1.7; }
.howto li { margin-bottom: 6px; }
.howto code { background: var(--bg); padding: 2px 6px; border-radius: 5px; word-break: break-all; }

/* ---------- Funil de leads ---------- */

.kcol-sum { padding: 0 16px 8px; margin-top: -6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.kcol--won { background: #e7ede7; }
.kcol--lost { background: #efe9e9; }
.kcol--lost .kcard { opacity: .7; }
.kcard-value { font-size: 13px; }
.kcard-next { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); padding: 7px 9px; background: var(--bg); border-radius: 8px; }
.kcard-next span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-cta { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.reminder-form { display: flex; gap: 8px; flex-wrap: wrap; }
.reminder-form input { min-height: 38px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); }
.reminder-form input[type=text] { flex: 1; min-width: 200px; }
.quick-dates { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.lost-form { gap: 6px; }
.lost-form input { min-height: 32px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 13px; }
.mini-list a.icon-btn { flex: 0 0 auto; display: inline-flex; }

/* ---------- Responsivo ---------- */

@media (max-width: 1200px) {
	.detail-grid { grid-template-columns: minmax(0, 1fr) 320px; }
	.stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
	.app { grid-template-columns: minmax(0, 1fr); }
	.side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 90; width: 270px; transform: translateX(-100%); transition: transform .3s var(--ease); }
	.side-open .side { transform: none; }
	.side-open .side-backdrop { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.4); }
	.top-menu { display: inline-flex; }
	.top { padding: 12px 20px; min-height: 64px; }
	.content { padding: 22px 20px 50px; }
	.detail-grid, .dash-grid { grid-template-columns: minmax(0, 1fr); }
	.detail-side { position: static; }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
	body.etx { font-size: 14.5px; }
	.top { flex-wrap: wrap; gap: 10px; }
	.top-title { font-size: 19px; }
	.top-actions { width: 100%; order: 3; overflow-x: auto; }
	.top-actions .btn span { display: inline; }
	.content { padding: 18px 14px 40px; gap: 16px; }
	.card { padding: 18px; }
	.grid-2, .grid-3, .grid-4, .perms { grid-template-columns: minmax(0, 1fr); }
	.stats, .stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.stat { padding: 14px 16px; }
	.stat strong { font-size: 24px; }
	.stat--dark { grid-column: 1 / -1; }
	.table { background: transparent; border: 0; box-shadow: none; display: flex; flex-direction: column; gap: 10px; }
	.table-head { display: none; }
	.table-row, .table--compact .table-row, .table--projects .table-row, .table--fin .table-row { grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
	.table-row > .cell-main, .table--compact .table-row > span:first-child { grid-column: 1 / -1; }
	.table-row [data-label]::before { content: attr(data-label); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
	.cell-arrow { display: none; }
	.row-btns { grid-column: 1 / -1; justify-content: flex-start; }
	.kanban { grid-auto-columns: 82vw; scroll-snap-type: x mandatory; min-height: 0; }
	.kcol { scroll-snap-align: start; max-height: none; }
	.project-hero, .chero { flex-direction: column-reverse; align-items: flex-start; padding: 20px; }
	.check-item { flex-wrap: wrap; }
	.check-meta { width: 100%; justify-content: flex-start; padding-left: 34px; }
	.copy-row { flex-wrap: wrap; }
	.copy-row input { flex-basis: 100%; }
	.mini-stats { grid-template-columns: minmax(0, 1fr); }
	.add-page { width: 100%; }
	.add-page input { flex: 1; width: auto; }
	.toolbar { flex-direction: column; align-items: stretch; }
	.toolbar .filter { max-width: none; }
	.month-nav strong { min-width: 0; }
	.bars { height: 170px; gap: 8px; }
	.pl-progress { display: none; }
	.auth { grid-template-columns: minmax(0, 1fr); }
	.auth-side { padding: 28px 22px; gap: 22px; }
	.auth-side-text h2 { font-size: 24px; }
	.auth-list, .auth-copy { display: none; }
	.auth-main { padding: 28px 18px 40px; align-items: flex-start; }
	.ctop-inner { padding: 12px 16px; }
	.ctop-brand span { display: none; }
	.ctop-nav a { padding: 8px; font-size: 13px; }
	.cmain { padding: 22px 14px 90px; }
	.bq { flex-direction: column; gap: 6px; padding: 16px; }
	.approve-form, .approve-form input { width: 100%; }
	.approve-form .btn { flex: 1; }
	.modal { max-height: calc(100vh - 20px); }
	.form-actions--sticky .btn { flex: 1; }
}

@media (max-width: 900px) {
	.dv-hero-grid, .dv-ps { grid-template-columns: minmax(0, 1fr); }
	.dv-mockups { min-height: 0; margin-bottom: 30px; }
	.dv-numbers { grid-template-columns: 1fr 1fr; }
	.dv-numbers div:nth-child(3) { border-left: 0; padding-left: 0; }
	.gauges { grid-template-columns: repeat(2, 1fr); }
	.table--renew .table-row { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- WhatsApp ---------- */
.side-count--wa { background: #25d366; }
.avatar--brand { background: var(--accent); }
.setup-note p { margin: 0 0 4px; }
.wa-layout { display: grid; grid-template-columns: 320px 1fr; gap: 16px; height: calc(100vh - 150px); min-height: 480px; }
.wa-list { padding: 6px; overflow-y: auto; }
.wa-empty { padding: 14px; }
.wa-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.wa-item:hover { background: var(--bg); }
.wa-item.is-active { background: var(--bg); box-shadow: inset 3px 0 0 var(--accent); }
.wa-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wa-item-main strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-item-main small { color: var(--muted, #777); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.wa-item-side small { color: var(--muted, #777); font-size: 11.5px; }
.wa-item-side .side-count { margin-left: 0; }
.wa-dot { width: 8px; height: 8px; border-radius: 50%; background: #d0d0d6; }
.wa-dot.is-open { background: #25d366; }
.wa-chat { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.wa-placeholder { margin: auto; text-align: center; padding: 30px; max-width: 360px; color: var(--muted, #777); }
.wa-placeholder svg { opacity: .35; }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line, #eee); }
.wa-head-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wa-back { display: none; color: inherit; }
.wa-body { flex: 1; overflow-y: auto; padding: 16px; background: #f5f1eb; }
.wa-thread { display: flex; flex-direction: column; gap: 6px; }
.wa-day { align-self: center; margin: 8px 0; padding: 3px 10px; border-radius: 8px; background: var(--card); color: #667; font-size: 11.5px; box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.wa-msg { max-width: 78%; padding: 7px 10px 5px; border-radius: 10px; background: var(--card); box-shadow: 0 1px 0 rgba(0,0,0,.06); font-size: 14px; line-height: 1.45; word-wrap: break-word; }
.wa-msg p { margin: 0; }
.wa-msg small { display: block; margin-top: 2px; text-align: right; color: #8a8f98; font-size: 11px; }
.wa-msg img { display: block; max-width: 260px; max-height: 320px; border-radius: 8px; margin-bottom: 4px; }
.wa-msg audio { max-width: 240px; }
.wa-msg--in { align-self: flex-start; border-top-left-radius: 3px; }
.wa-msg--out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 3px; }
.wa-msg.is-ai { background: #e7f0ff; }
.wa-msg.is-failed { outline: 1px solid #e5484d; }
.wa-msg.is-typing p { color: #8a8f98; font-style: italic; }
.wa-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line, #eee); background: var(--card); }
.wa-compose textarea { flex: 1; resize: none; min-height: 42px; }
.wa-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line, #eee); margin: 0; }
.wa-foot p { margin: 0; flex: 1; min-width: 200px; }
.assistant-log { display: flex; flex-direction: column; gap: 6px; height: 46vh; min-height: 260px; overflow-y: auto; padding: 12px; border-radius: 10px; background: #f5f1eb; margin-bottom: 10px; }
.assistant-log + .wa-compose { border: 1px solid var(--line, #eee); border-radius: 10px; padding: 8px; }
#testar-assistente { width: min(640px, calc(100vw - 32px)); }
.card .wa-thread { max-height: 380px; overflow-y: auto; padding: 10px; border-radius: 10px; background: #f5f1eb; }
@media (max-width: 860px) {
	.wa-layout { grid-template-columns: 1fr; height: auto; }
	.wa-layout.has-chat .wa-list { display: none; }
	.wa-layout:not(.has-chat) .wa-chat { display: none; }
	.wa-chat { height: calc(100vh - 130px); min-height: 420px; }
	.wa-back { display: inline-flex; }
	.wa-msg { max-width: 88%; }
	.wa-head .inline-form .btn { font-size: 12px; padding: 6px 10px; }
}

/* ---------- Redes sociais ---------- */
.net { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 18px; padding: 0 4px; margin-right: 3px; border-radius: 5px; font-size: 10px; font-style: normal; font-weight: 700; letter-spacing: .02em; color: #fff; background: #777; vertical-align: middle; }
.net--instagram { background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888); }
.net--facebook { background: #1877f2; }
.net--linkedin { background: #0a66c2; }
.net--tiktok { background: #111; }
.net--gbp { background: #34a853; }
.social-conn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.conn-pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 30px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.conn-pill.is-on { color: var(--ink); }
.conn-pill:not(.is-on) .net { background: #bbb; }
.tabs--links { margin-bottom: 16px; }
.cal { padding: 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h3 { margin: 0; }
.cal-head .icon-btn { font-size: 22px; text-decoration: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-wd { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 4px; }
.cal-day { min-height: 110px; padding: 6px; border-radius: 10px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.cal-day.is-empty { background: transparent; }
.cal-day.is-past { opacity: .75; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.cal-num { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; }
.cal-add { visibility: hidden; color: var(--accent); text-decoration: none; font-size: 16px; line-height: 1; }
.cal-day:hover .cal-add { visibility: visible; }
.cal-post { display: flex; flex-direction: column; gap: 2px; padding: 5px 6px; border-radius: 7px; background: var(--card); border-left: 3px solid var(--warn); text-decoration: none; color: var(--ink); font-size: 12px; line-height: 1.3; }
.cal-post small { color: var(--muted); font-size: 10.5px; }
.cal-post span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal-post em { font-style: normal; }
.cal-post--publicado { border-left-color: var(--ok); }
.cal-post--erro, .cal-post--parcial { border-left-color: var(--late); }
.cal-post--rascunho { border-left-color: #bbb; }
.cal-legend { margin: 12px 0 0; display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -8px; }
.lg--agendado { background: var(--warn); }
.lg--publicado { background: var(--ok); }
.lg--erro { background: var(--late); }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; margin-top: 16px; }
.idea { display: flex; flex-direction: column; gap: 8px; }
.idea h4 { margin: 0; font-size: 16px; }
.idea p { margin: 0; flex: 1; }
.idea-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.idea-top em { font-style: normal; }
.idea-actions { display: flex; gap: 8px; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li + li { border-top: 1px solid var(--line); }
.post-list a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; color: inherit; text-decoration: none; }
.post-list a:hover { background: var(--bg); }
.post-thumb { flex-shrink: 0; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-main strong, .post-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.post-side em { font-style: normal; }
.badge--st-agendado { background: var(--warn-soft); color: var(--warn); }
.badge--st-publicado { background: var(--ok-soft); color: var(--ok); }
.badge--st-erro, .badge--st-parcial { background: var(--late-soft); color: var(--late); }
.field-row { display: flex; justify-content: space-between; }
.text-late { color: var(--late) !important; }
.ai-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; }
.post-editor .howto { padding-left: 0; }
.post-editor .howto summary { cursor: pointer; font-weight: 500; }
.post-editor .howto textarea { width: 100%; margin-top: 8px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 10px; }
.media-item { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg); }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-rm { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: 2px 6px; border-radius: 6px; background: rgba(10,10,10,.7); color: #fff; font-size: 11.5px; display: flex; align-items: center; gap: 4px; }
.checks--nets { flex-direction: column; gap: 8px; }
.checks--nets .check.is-off { opacity: .55; }
.post-buttons { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--block { width: 100%; justify-content: center; }
.post-results ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.post-results li { padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.post-results li.is-ok { background: var(--ok-soft); }
.post-results li.is-err { background: var(--late-soft); color: var(--late); }
.post-footer-actions { margin-top: 16px; }
.ig-preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.ig-head { display: flex; align-items: center; gap: 8px; padding: 10px; font-size: 13px; }
.ig-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(45deg, #f09433, #bc1888); }
.ig-media { position: relative; aspect-ratio: 4 / 5; background: var(--bg); }
.ig-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-count { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 20px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; }
.ig-caption { margin: 0; padding: 10px; font-size: 13px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.conn-rows { display: flex; flex-direction: column; gap: 10px; }
.conn-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.conn-row:first-child { border-top: 0; }
.conn-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 860px) {
	.cal { padding: 10px; }
	.cal-grid { gap: 3px; }
	.cal-day { min-height: 64px; padding: 4px; }
	.cal-post { padding: 3px 4px; font-size: 0; border-left-width: 0; background: transparent; }
	.cal-post small, .cal-post span { display: none; }
	.cal-post em .net { font-size: 9px; min-width: 18px; height: 15px; }
	.cal-wd { font-size: 10px; letter-spacing: 0; }
	.post-side small { display: none; }
}

/* ---------- Extrato, sites e alertas ---------- */
.bank-form .card { padding: 0; overflow-x: auto; }
.bank-table { width: 100%; border-collapse: collapse; font-size: 14px; background: none; border: 0; box-shadow: none; }
.bank-table th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.bank-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.bank-table .num { text-align: right; white-space: nowrap; font-weight: 600; }
.bank-table tr.is-match { background: var(--ok-soft); }
.bank-table tr.is-done { opacity: .5; }
.bank-desc { max-width: 320px; }
.bank-act { display: flex; gap: 6px; flex-wrap: wrap; }
.bank-act select { max-width: 340px; font-size: 13px; }
.small-strong { font-size: 18px !important; }
.site-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: #ccc; }
.site-dot.is-up { background: var(--ok); }
.site-dot.is-warn { background: var(--warn); }
.site-dot.is-down { background: var(--late); box-shadow: 0 0 0 3px var(--late-soft); }
.alert-bar { display: block; margin-bottom: 16px; padding: 12px 16px; border-radius: 12px; background: var(--late-soft); color: var(--late); font-weight: 600; text-decoration: none; }
@media (max-width: 860px) {
	.bank-table thead { display: none; }
	.bank-table tr { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
	.bank-table td { padding: 0; border: 0; }
	.bank-table td:last-child { grid-column: 1 / -1; }
	.bank-act select { max-width: 100%; width: 100%; }
}

/* ---------- Segurança ---------- */
.sec-checks { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.sec-checks .is-ok { color: var(--ok); }
.sec-checks .is-bad { color: var(--late); font-weight: 600; }
.sec-checks small { font-weight: 400; }
.sec-log { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.code-input { font-size: 26px !important; letter-spacing: 8px; text-align: center; font-weight: 600; }

/* Novo projeto: tipo (novo / em andamento) */
.kind-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.kind-opt { position: relative; display: block; cursor: pointer; }
.kind-opt input { position: absolute; opacity: 0; pointer-events: none; }
.kind-opt > span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--card); transition: border-color .2s var(--ease), background .2s var(--ease); }
.kind-opt small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.kind-opt:hover > span { border-color: var(--muted-2); }
.kind-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.kind-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Relatório mensal (público, imprime como PDF) ---------- */

.rp-toolbar { position: fixed; top: 16px; right: 16px; z-index: 20; }
.rp-hero { padding-bottom: 64px; }
.rp-hero h1 { max-width: 820px; }
.rp-site { display: inline-block; color: #fff; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.3); text-decoration: none; padding-bottom: 2px; }
.rp-kpis div { gap: 8px; }
.rp-delta { font-style: normal; font-size: 12px; font-weight: 600; }
.rp-delta.is-up { color: #0f8a13; }
.rp-delta.is-down { color: var(--late); }
.rp-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rp-notes li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.rp-notes li span { font-size: 13px; font-weight: 600; color: var(--accent); padding-top: 2px; }
.rp-notes li p { font-size: 15.5px; line-height: 1.6; }
.rp-chart { display: flex; align-items: flex-end; gap: 4px; height: 220px; padding: 20px 20px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.rp-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.rp-col i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--ink); min-height: 2px; }
.rp-col:hover i { background: var(--accent); }
.rp-col.is-empty i { background: var(--line); }
.rp-col small { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.rp-foot { margin-top: 10px; }
.rp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.rp-grid h3 { margin-bottom: 6px; }
.rp-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rp-bars li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.rp-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-bar-track { height: 8px; border-radius: 8px; background: var(--bg); overflow: hidden; }
.rp-bar-track i { display: block; height: 100%; border-radius: 8px; background: var(--accent); }
.rp-bar-n { font-weight: 600; text-align: right; white-space: nowrap; }
.rp-bar-n small { margin-left: 6px; font-weight: 400; color: var(--muted); font-size: 12px; }
.rp-ux { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rp-ux strong { font-size: 30px; letter-spacing: -.02em; line-height: 1.1; }
.rp-ux small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.rp-source { margin-top: 28px; }
@media (max-width: 720px) {
	.rp-grid { grid-template-columns: minmax(0, 1fr); }
	.rp-ux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rp-kpis strong { font-size: 30px; }
	.rp-ux strong { font-size: 24px; }
	.rp-chart { gap: 2px; padding: 14px 10px 26px; height: 180px; }
	.rp-bars li { grid-template-columns: minmax(0, 1fr) auto; }
	.rp-bar-track { grid-column: 1 / -1; grid-row: 2; }
	.rp-toolbar { top: auto; bottom: 16px; }
}
@media print {
	@page { size: A4; margin: 12mm; }
	.no-print, .rp-toolbar { display: none !important; }
	body.etx-report { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; font-size: 12px; }
	.etx-report .dv-hero { padding: 28px 0 32px; }
	.etx-report .dv-hero::after { display: none; }
	.etx-report .dv-hero h1 { font-size: 30px; }
	.etx-report .dv-section { padding-top: 26px; break-inside: avoid; }
	.etx-report .dv-card, .rp-notes li, .rp-chart { break-inside: avoid; }
	.etx-report .dv-final { margin-top: 28px; padding: 28px 0 20px; }
	.etx-report .dv-wrap { padding: 0; max-width: none; }
	.rp-chart { height: 160px; }
}

/* ---------- Relatórios no painel ---------- */
.table--reports .table-row { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1fr) auto; }
.report-gen { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.report-preview { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
#clarity-card .stack { margin-top: 12px; }
#clarity-card .stack-btns { margin-top: 10px; }
@media (max-width: 720px) {
	.report-gen { grid-template-columns: minmax(0, 1fr); }
	.table--reports .table-row { grid-template-columns: 1fr 1fr; }
	.report-preview { height: 520px; }
}

/* ---------- Logo do cliente e selo da Eleve ---------- */
.brand-plate { display: flex; width: fit-content; align-items: center; justify-content: center; min-height: 64px; max-width: 240px; padding: 12px 20px; margin-bottom: 32px; border-radius: 14px; background: #fff; }
.brand-plate img { max-height: 48px; max-width: 200px; width: auto; height: auto; object-fit: contain; }
.made-by { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 14px; border-radius: 40px; background: var(--ink); color: #9a9a9a; font-size: 11px; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.made-by img { height: 18px; width: auto; }
.logo-field { display: flex; gap: 14px; align-items: center; }
.logo-field .field { flex: 1; min-width: 0; }
.logo-plate { display: grid; place-items: center; flex-shrink: 0; width: 72px; height: 72px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.logo-plate img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-plate em { font-style: normal; font-weight: 600; color: var(--muted); }
@media (max-width: 720px) {
	.made-by { right: 12px; bottom: 12px; }
	.rp-toolbar { top: 12px; bottom: auto; right: 12px; }
}
@media print {
	.made-by { position: fixed; right: 0; bottom: 0; box-shadow: none; }
}

/* ==========================================================
   Tema escuro (painel e área do cliente). Botão no topo:
   claro → escuro → igual ao sistema. As páginas públicas
   (proposta, entrega, relatório) continuam sempre claras.
   ========================================================== */

.theme-btn { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); cursor: pointer; font-size: 13px; }
.theme-btn:hover { border-color: var(--muted-2); }
.theme-ic { display: inline-flex; }
.theme-ic--dark, [data-theme="dark"] .theme-ic--light { display: none; }
[data-theme="dark"] .theme-ic--dark { display: inline-flex; }
.ctop .theme-btn { background: transparent; border-color: rgba(255,255,255,.18); color: #d4d4d4; height: 34px; }
@media (max-width: 720px) { .theme-label { display: none; } .theme-btn { padding: 0 10px; } }

[data-theme="dark"] {
	color-scheme: dark;
	--ink: #f2f2ef;
	--ink-2: #e2e2de;
	--ink-3: #c9c9c4;
	--bg: #0d0d0d;
	--card: #171717;
	--line: #262626;
	--line-2: #333333;
	--muted: #9a9a96;
	--muted-2: #6f6f6b;
	--accent: #f2f2ef;
	--accent-soft: #232323;
	--ok-soft: #0f2410;
	--warn-soft: #2a2008;
	--late-soft: #2c1111;
	--shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
}
[data-theme="dark"] body.etx { background: var(--bg); color: var(--ink); }

/* Superfícies escuras que eram "preto" no tema claro continuam escuras. */
[data-theme="dark"] .side { background: #080808; border-right: 1px solid var(--line); }
[data-theme="dark"] .ctop, [data-theme="dark"] .drive, [data-theme="dark"] .autofill, [data-theme="dark"] .toast { background: #080808; }
[data-theme="dark"] .stat--dark { background: #080808; border-color: var(--line-2); color: #fff; }
[data-theme="dark"] .top { background: rgba(13,13,13,.86); border-bottom-color: var(--line); }
[data-theme="dark"] .form-actions--sticky { background: var(--bg); box-shadow: 0 -10px 18px -12px rgba(0,0,0,.6); }

/* Elementos em destaque ficam claros com texto escuro. */
[data-theme="dark"] .btn--primary,
[data-theme="dark"] .btn--dark,
[data-theme="dark"] .flow-step.is-current,
[data-theme="dark"] .chip input:checked + span,
[data-theme="dark"] .badge--btn:hover { background: var(--ink); color: #0a0a0a; border-color: var(--ink); }
[data-theme="dark"] .btn--primary:hover { background: #fff; }
[data-theme="dark"] .avatar { background: #2e2e2e; color: #f2f2ef; }
[data-theme="dark"] .cflow li.is-done .cflow-dot { color: #0a0a0a; }

/* Tons claros fixos → versões escuras. */
[data-theme="dark"] .check-item:hover,
[data-theme="dark"] a.table-row:hover,
[data-theme="dark"] .table-row[data-open]:hover,
[data-theme="dark"] .table-head,
[data-theme="dark"] .pay-opt input:checked + span { background: #1e1e1e; }
[data-theme="dark"] .add-box, [data-theme="dark"] .plan-edit { background: #141414; }
[data-theme="dark"] .progress, [data-theme="dark"] .renew-bar { background: #2a2a2a; }
[data-theme="dark"] .kcol:last-child, [data-theme="dark"] .kcol[data-last], [data-theme="dark"] .kcol--won { background: #122014; }
[data-theme="dark"] .kcol.kcol--add { background: transparent; }
[data-theme="dark"] .kcol--lost { background: #221414; }
[data-theme="dark"] .card--accent { border-color: #4a2416; background: linear-gradient(180deg, #24140e 0%, var(--card) 70%); }
[data-theme="dark"] .card--warn, [data-theme="dark"] .stat--warn { border-color: #4a3a12; }
[data-theme="dark"] .flash { color: #7fdc82; border-color: #1e4a20; }
[data-theme="dark"] .flash--warn, [data-theme="dark"] .badge--wait, [data-theme="dark"] .pill--warn { color: #f1c35a; border-color: #4a3a12; }
[data-theme="dark"] .badge--ok, [data-theme="dark"] .pill--ok, [data-theme="dark"] .dv-devices.is-ok em { color: #7fdc82; border-color: #1e4a20; }
[data-theme="dark"] .badge--alta { color: #ff9a74; border-color: #4a2416; }
[data-theme="dark"] .pill--late { color: #ff8a8a; }
[data-theme="dark"] .field input, [data-theme="dark"] .field select, [data-theme="dark"] .field textarea,
[data-theme="dark"] .copy-row input, [data-theme="dark"] .comment-box textarea { background: #111; color: var(--ink); }
[data-theme="dark"] .modal-box, [data-theme="dark"] .search-box, [data-theme="dark"] .sheet-box { background: var(--card); color: var(--ink); }
[data-theme="dark"] .kind-opt input:checked + span { background: var(--accent-soft); }
[data-theme="dark"] .logo-plate { border-color: var(--line-2); }
[data-theme="dark"] .report-preview { border-color: var(--line-2); }
[data-theme="dark"] img.side-logo, [data-theme="dark"] .side-brand img { filter: none; }
[data-theme="dark"] .modal { background: var(--card); }
[data-theme="dark"] .flow-step.is-done { background: #262626; color: var(--ink-3); }
.notes-area { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); line-height: 1.65; resize: vertical; }
.notes-area:focus { outline: none; border-color: var(--ink); }

/* Textos longos (links, códigos) quebram em vez de empurrar a tela para o lado. */
.content code, .cmain code { word-break: break-all; overflow-wrap: anywhere; }
@media (max-width: 720px) {
	.form-actions--sticky { margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
	.btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
}

/* ---------- Olhinho: valores em R$ escondidos ---------- */
html[data-hide-money]:not([data-money-ready]) .etx-panel .content { visibility: hidden; }
html[data-hide-money] .etx-panel input[data-money]:not(:focus) { -webkit-text-security: disc; }
html[data-hide-money] .etx-panel .chart, html[data-hide-money] .etx-panel .bars { filter: blur(6px); }
.money-btn { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.money-ic--off, .money-btn.is-hidden-money .money-ic--on { display: none; }
.money-btn.is-hidden-money .money-ic--off { display: inline-flex; }
.btn--icon { width: 40px; padding: 0; }

/* ---------- Modo foco: escolher ---------- */
.focus-stats .focus-top { grid-column: span 2; }
.focus-top ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.focus-top li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.focus-top li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.focus-filter { width: 100%; min-height: 42px; margin-top: 16px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); }
.focus-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; margin-top: 14px; }
.focus-h { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 0 8px; }
.focus-group { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin: 14px 0 6px; }
.focus-group em { font-style: normal; color: var(--muted); font-weight: 400; margin-left: 4px; }
.focus-group.is-late { color: var(--late); }
.focus-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; cursor: pointer; background: var(--card); transition: border-color .15s, background .15s; }
.focus-opt:hover { border-color: var(--line-2); }
.focus-opt input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.focus-opt > span:not(.badge) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.focus-opt strong { font-size: 14px; font-weight: 500; }
.focus-opt small { color: var(--muted); font-size: 12.5px; }
.focus-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.focus-pick .form-actions--sticky { justify-content: space-between; }
@media (max-width: 720px) {
	.focus-cols { grid-template-columns: minmax(0, 1fr); }
	.focus-stats .focus-top { grid-column: 1 / -1; }
}

/* ---------- Modo foco: tela cheia (sempre escura e calma) ---------- */
body.etx-focus { background: #0b0b0c; color: #ededeb; min-height: 100vh; }
.fz { min-height: 100vh; display: flex; flex-direction: column; }
.fz-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; }
.fz-brand { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: #8d8d89; }
.fz-brand .ic { color: var(--accent); flex-shrink: 0; }
.fz-brand em { font-style: normal; color: #ededeb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-brand em::before { content: '·'; margin: 0 8px; color: #555; }
.fz-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.fz-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid #262626; background: transparent; color: #a3a3a3; cursor: pointer; }
.fz-icon:hover { color: #fff; border-color: #3a3a3a; }
.fz-icon.is-off { opacity: .45; }
.fz-exit { height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid #333; background: #161616; color: #ededeb; font-weight: 600; cursor: pointer; }
.fz-exit:hover { background: #fff; color: #0a0a0a; }
.fz-main { flex: 1; width: min(640px, 100%); margin: 0 auto; padding: 8px 20px 60px; display: flex; flex-direction: column; align-items: center; }
.fz-phase { margin-top: 3vh; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #8d8d89; }
.fz-ring { --p: 0; --c: var(--accent); position: relative; width: min(340px, 78vw); aspect-ratio: 1; margin: 18px 0 26px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), #1c1c1d 0); transition: background .3s; }
.fz-ring::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: #0b0b0c; }
.is-break .fz-ring { --c: #3fb950; }
.fz-time { position: relative; font-size: clamp(56px, 15vw, 92px); font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.fz-controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.fz-btn { min-width: 110px; height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid #2a2a2a; background: #151516; color: #d4d4d2; font-weight: 600; font-size: 15px; cursor: pointer; }
.fz-btn:hover { border-color: #444; color: #fff; }
.fz-btn--main { min-width: 160px; background: var(--accent); border-color: var(--accent); color: #fff; }
.fz-btn--main:hover { background: #ff6a3b; }
.is-running .fz-btn--main { background: #ededeb; border-color: #ededeb; color: #0a0a0a; }
.fz-meta { margin-top: 16px; font-size: 13px; color: #75756f; }
.fz-list { width: 100%; margin-top: 5vh; display: grid; gap: 10px; }
.fz-item { padding: 14px 16px; border: 1px solid #1f1f20; border-radius: 14px; background: #111112; opacity: .55; transition: opacity .2s, border-color .2s; }
.fz-item.is-current { opacity: 1; border-color: #353535; background: #141415; }
.fz-item-head { display: flex; align-items: center; gap: 12px; }
.fz-item-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.fz-item-title strong { font-size: 16px; font-weight: 600; }
.fz-item-title small { font-size: 12.5px; color: #7a7a75; }
.fz-dot { width: 10px; height: 10px; margin: 0 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.fz-tick { width: 24px; height: 24px; flex-shrink: 0; border-radius: 8px; border: 1.5px solid #4a4a4a; background: transparent; cursor: pointer; position: relative; }
.fz-tick:hover { border-color: #9a9a9a; }
.fz-tick.is-done { background: #3fb950; border-color: #3fb950; }
.fz-tick.is-done::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #0b0b0c; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fz-tick--sm { width: 20px; height: 20px; border-radius: 6px; }
.fz-tick--sm.is-done::after { left: 5px; top: 2px; width: 5px; height: 9px; }
.fz-sub { list-style: none; margin: 12px 0 0 34px; padding: 0; display: grid; gap: 8px; }
.fz-sub li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #c9c9c5; }
.fz-sub li.is-done span { text-decoration: line-through; color: #6a6a66; }
@media (max-width: 560px) {
	.fz-top { padding: 14px 14px; }
	.fz-brand > span { display: none; }
	.fz-btn { min-width: 0; flex: 1; }
}
.focus-new { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }

/* ---------- Ideias e conteúdo ---------- */
.ideas-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.idea-capture-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.idea-kinds input { display: none; }
.idea-kinds { flex-wrap: wrap; }
.card--dark { background: var(--chrome, #0a0a0a); border-color: #1f1f1f; color: #ededeb; }
.card--dark h3 { color: #fff; display: flex; align-items: center; gap: 8px; }
.card--dark h3 .ic { color: var(--accent); }
.card--dark p { color: #b5b5b0; }
.card--dark a { color: #fff; }
.idea-gens { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.idea-gen input { position: absolute; opacity: 0; pointer-events: none; }
.idea-gen span { display: block; padding: 10px 12px; border: 1px solid #2c2c2c; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: #d4d4d2; cursor: pointer; text-align: center; }
.idea-gen input:checked + span { border-color: var(--accent); background: rgba(128,128,128,.14); color: #fff; }
.idea-gen input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.idea-topic { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #2c2c2c; border-radius: 10px; background: #141414; color: #fff; }
.idea-topic::placeholder { color: #7a7a75; }
.ideas-filters { flex-wrap: wrap; }
.ideas-filters .seg { flex-wrap: wrap; }
.seg a em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 3px; }
.ideas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; align-items: start; }
.idea-card { --k: var(--muted); display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-top: 3px solid var(--k); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.idea-card--conteudo { --k: #7c3aed; }
.idea-card--campanha { --k: var(--accent); }
.idea-card--insight { --k: #0891b2; }
.idea-card--oferta { --k: #16a34a; }
.idea-card.is-pinned { box-shadow: 0 0 0 1px var(--k), var(--shadow); }
.idea-card header { display: flex; align-items: center; gap: 8px; }
.idea-kind { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--k); }
.idea-ai-tag { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 20px; background: var(--bg); color: var(--muted); }
.idea-card header .inline-form { margin-left: auto; }
.idea-pin { border: 0; background: none; font-size: 18px; line-height: 1; color: var(--muted-2); cursor: pointer; padding: 2px; }
.idea-pin.is-on, .idea-pin:hover { color: #f5a524; }
.idea-card h4 { font-size: 16px; line-height: 1.35; font-weight: 600; }
.idea-body { font-size: 14px; line-height: 1.6; color: var(--ink-3); max-height: 9.6em; overflow: hidden; position: relative; }
.idea-body.is-open { max-height: none; }
.idea-more { align-self: flex-start; border: 0; background: none; padding: 0; font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; }
.idea-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.idea-actions { display: flex; align-items: center; gap: 6px; }
.menu-more { position: relative; }
.menu-more > summary { list-style: none; cursor: pointer; }
.menu-more > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 30; min-width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 16px 40px rgba(0,0,0,.16); display: flex; flex-direction: column; }
.menu-pop > button, .menu-pop form button { width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); text-align: left; font-size: 13.5px; cursor: pointer; }
.menu-pop form { display: block; }
.menu-pop > button:hover, .menu-pop form button:hover { background: var(--bg); }
.menu-pop .is-danger { color: var(--late); }
@media (max-width: 900px) {
	.ideas-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
	.idea-gens { grid-template-columns: 1fr 1fr; }
	.ideas-grid { grid-template-columns: minmax(0, 1fr); }
	.idea-capture-foot .btn { width: 100%; }
}

/* Contraste no escuro: Kanban, abas, contadores, envio de arquivo e anel de progresso. */
[data-theme="dark"] .kcol { background: #151515; border: 1px solid var(--line); }
[data-theme="dark"] .kcol-head h3 { color: var(--ink); }
[data-theme="dark"] .kcount { background: #262626; color: var(--ink-3); }
[data-theme="dark"] .kcard { background: #1e1e1e; border-color: #2c2c2c; }
[data-theme="dark"] .kcard-value, [data-theme="dark"] .kcol-sum { color: var(--ink-3); }
[data-theme="dark"] .kcard-next { background: #151515; color: var(--ink-3); }
[data-theme="dark"] .seg { background: #1e1e1e; }
[data-theme="dark"] .seg a, [data-theme="dark"] .seg label { color: #b3b3ae; }
[data-theme="dark"] .seg a.is-active, [data-theme="dark"] .seg label:has(input:checked) { background: #333; color: #fff; box-shadow: none; }
[data-theme="dark"] .seg a em { color: #9a9a96; }
[data-theme="dark"] .drop { background: #141414; color: var(--ink-3); }
[data-theme="dark"] .ring { background: conic-gradient(var(--accent) calc(var(--p) * 1%), #2a2a2a 0); }
[data-theme="dark"] .ring strong { color: var(--ink); }
[data-theme="dark"] .idea-ai-tag { background: #262626; color: var(--ink-3); }
[data-theme="dark"] .card--dark { background: #080808; border-color: #262626; }
[data-theme="dark"] .text-ok, [data-theme="dark"] .round-ic--in { color: #4ade80; }
[data-theme="dark"] .due--today { color: #ff7a4d; }
[data-theme="dark"] .due--soon { color: #f1c35a; }
.menu-more:not([open]) > .menu-pop { display: none; }

/* Barra lateral: olhinho e tema numa linha própria, acima do usuário. */
.side-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 8px 0; border-top: 1px solid #1f1f1f; }
.side-tools + .side-user { border-top: 0; }
.side-tools .money-btn, .side-tools .theme-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: transparent; color: #bdbdbd; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.side-tools .money-btn:hover, .side-tools .theme-btn:hover { color: #fff; border-color: rgba(255,255,255,.28); background: #151515; }
.side-tools .theme-label { display: inline !important; }
.side-tools .money-btn.is-hidden-money { color: #fff; border-color: var(--accent); }
.same-date { grid-column: 1 / -1; margin-top: -4px; }
.field.is-locked input { opacity: .55; cursor: not-allowed; }

/* ---------- Saúde do sistema ---------- */
.health-hero { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.health-hero h2 { font-size: 22px; letter-spacing: -.02em; }
.health-hero p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.health-big { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 24px; font-weight: 700; color: #fff; background: var(--ok); }
.health-hero--warn .health-big { background: var(--warn); }
.health-hero--bad { border-color: #f3c2c2; }
.health-hero--bad .health-big { background: var(--late); }
.health-list { display: grid; gap: 10px; }
.health-item { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.health-dot { width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; flex-shrink: 0; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.health-item--warn .health-dot { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.health-item--bad { border-color: #f3c2c2; }
.health-item--bad .health-dot { background: var(--late); box-shadow: 0 0 0 4px var(--late-soft); }
.health-item--info .health-dot { background: var(--muted-2); box-shadow: 0 0 0 4px var(--bg); }
.health-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.health-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.health-head h3 { font-size: 15px; }
.health-body p { font-size: 14px; color: var(--ink-3); overflow-wrap: anywhere; }
.health-fix { padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.health-body .copy-row { margin-top: 4px; }
.health-body .link { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--accent); }
.health-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid #f3c2c2; background: var(--late-soft); color: #9b1c1c; text-decoration: none; font-size: 14px; }
.health-banner span { flex: 1; }
[data-theme="dark"] .health-banner { color: #ff9a9a; border-color: #4a1f1f; }
[data-theme="dark"] .health-hero--bad, [data-theme="dark"] .health-item--bad { border-color: #4a1f1f; }
@media (max-width: 720px) { .health-hero { align-items: flex-start; } .health-head { flex-wrap: wrap; } }

/* ---------- Barra de comandos ---------- */
button.search-item { width: 100%; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.search-item--ai em { color: #7c3aed; }
.search-item--ai strong { white-space: normal; }
.cmd-ai { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 12px; }
.cmd-you { align-self: flex-end; max-width: 90%; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--ink); color: var(--card); font-size: 14px; }
.cmd-reply { font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.cmd-reply--err { color: var(--late); }
.cmd-wait { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.cmd-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: cmdspin .8s linear infinite; }
@keyframes cmdspin { to { transform: rotate(360deg); } }
.cmd-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cmd-plan label { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.cmd-plan input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.cmd-plan--done li { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 14px; }
.cmd-plan--done li > span { font-weight: 700; color: var(--ok-text, #138a17); }
.cmd-plan--done li.is-bad > span { color: var(--late); }
.cmd-plan--done small { display: block; color: var(--muted); font-size: 12.5px; }
.cmd-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Telefone com país */
.phone-wrap{display:flex;align-items:stretch;gap:0;width:100%}
.phone-wrap .phone-country{flex:0 0 auto;width:auto;max-width:108px;border-top-right-radius:0;border-bottom-right-radius:0;border-right:0;padding-left:10px;padding-right:24px;font-size:14px;background-position:right 8px center}
.phone-wrap input{flex:1 1 auto;min-width:0;border-top-left-radius:0;border-bottom-left-radius:0}

/* Quadro de projetos: colunas editáveis */
.kanban--editable .kcol-head{gap:8px;justify-content:flex-start}
.kanban--editable .kcol-title{cursor:text;border-radius:6px;padding:2px 6px;margin:-2px -6px;outline:none;min-width:40px}
.kanban--editable .kcol-title:hover{background:rgba(0,0,0,.05)}
.kanban--editable .kcol-title.is-editing{background:var(--card,#fff);box-shadow:0 0 0 2px var(--accent,#0a0a0a)}
.kanban--editable .kcount{margin-left:auto}
.kcol-tag{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);border:1px dashed currentColor;border-radius:20px;padding:0 6px}
.kcol-tools{display:flex;gap:2px;opacity:0;transition:opacity .2s}
.kcol:hover .kcol-tools,.kcol:focus-within .kcol-tools{opacity:1}
@media (hover:none){.kcol-tools{opacity:1}}
.kcol-btn{width:22px;height:22px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:15px;line-height:1;cursor:pointer}
.kcol-btn:hover{background:rgba(0,0,0,.07);color:var(--text,#0a0a0a)}
.kcol--internal{background:repeating-linear-gradient(135deg,rgba(0,0,0,.025) 0 8px,transparent 8px 16px),#ebebe7}
.kcol--add{background:transparent;border:2px dashed rgba(0,0,0,.12);min-height:120px;align-items:center;justify-content:center}
.kcol-add-btn{display:flex;align-items:center;gap:6px;border:0;background:transparent;color:var(--muted);font:inherit;font-weight:600;cursor:pointer;padding:14px 18px;border-radius:10px}
.kcol-add-btn:hover{color:var(--text,#0a0a0a);background:rgba(0,0,0,.04)}
.choice-list{display:flex;flex-direction:column;gap:8px}
.choice{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line,#e5e5e5);border-radius:10px;padding:12px;cursor:pointer}
.choice input{margin-top:3px}
.choice span{display:flex;flex-direction:column;gap:2px}
.choice small{color:var(--muted);line-height:1.45}
.choice:has(input:checked){border-color:var(--accent,#0a0a0a);background:rgba(128,128,128,.04)}
[data-theme="dark"] .kcol--internal{background:repeating-linear-gradient(135deg,rgba(255,255,255,.03) 0 8px,transparent 8px 16px),#151515}
[data-theme="dark"] .kcol--add{border-color:rgba(255,255,255,.14)}
[data-theme="dark"] .kanban--editable .kcol-title:hover,[data-theme="dark"] .kcol-btn:hover{background:rgba(255,255,255,.08)}

.badge--client{background:rgba(26,185,30,.12);color:#15803d;text-decoration:none}
[data-theme="dark"] .badge--client{background:rgba(26,185,30,.18);color:#4ade80}

/* Agenda: ações da reunião e convite */
.meet .meet-btns{display:flex;align-items:center;gap:4px;margin-left:auto;flex-shrink:0}
.meet .meet-btns .inline-form{display:inline-flex}
.icon-btn--danger:hover{color:#dc2626}
.invite-text{white-space:pre-wrap;font-family:inherit;font-size:14px;line-height:1.6;background:var(--bg-soft,#f5f5f3);border-radius:10px;padding:14px 16px;margin:0 0 12px}
[data-theme="dark"] .invite-text{background:#1b1b1b}

/* Financeiro: contas recorrentes */
.switch-row{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid var(--line,#e5e5e5);border-radius:10px;cursor:pointer}
.switch-row input{position:absolute;opacity:0;pointer-events:none}
.switch-row .switch{flex:0 0 auto;width:38px;height:22px;border-radius:22px;background:#d4d4d4;position:relative;transition:background .2s;margin-top:1px}
.switch-row .switch::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .2s}
.switch-row input:checked + .switch{background:var(--accent,#0a0a0a)}
.switch-row input:checked + .switch::after{transform:translateX(16px)}
.switch-row input:focus-visible + .switch{box-shadow:0 0 0 3px rgba(128,128,128,.3)}
.switch-row span:last-child{display:flex;flex-direction:column;gap:2px}
.switch-row small{color:var(--muted);line-height:1.45}
.recur-tag{font-style:normal;font-weight:600;color:var(--accent,#0a0a0a);font-size:12px}
.table--recur .table-row{grid-template-columns:minmax(0,2.2fr) 1fr 1fr 1fr auto}
.table--recur .table-row.is-paused{opacity:.55}
[data-theme="dark"] .switch-row .switch{background:#404040}
@media (max-width: 760px){.table--recur .table-row{grid-template-columns:1fr 1fr;gap:8px 12px;padding:14px 16px;background:var(--card);border:1px solid var(--line);border-radius:12px}.table--recur .table-head{display:none}.table--recur .cell-main,.table--recur .row-btns{grid-column:1/-1}}
.kanban--editable .kcol-title{flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.alert-bar--warn{background:#fff7e0;color:#7a5200;border-color:#f3dfa8}
[data-theme="dark"] .alert-bar--warn{background:#2a220e;color:#f5d27a;border-color:#4a3a12}

/* 1.14 · proposta de hospedagem, implantação */
.badge--warn { background: #fff7e6; border-color: #f5d9a3; color: #8a5a00; }
[data-theme="dark"] .badge--warn { background: #2a2110; border-color: #4a3a1a; color: #f3c56b; }
hr.sep { border: 0; border-top: 1px solid var(--line, #e5e5e5); margin: 16px 0; }
.svc-card-value small { font-size: .6em; font-weight: 500; opacity: .6; margin-left: 2px; }

/* ==========================================================
   CARDON · componentes do estúdio 3D
   ========================================================== */
.side { background: #0a0a0a; }
.side-brand img { height: 24px; }
.hello h2, .top-title { font-family: var(--head); }
.stat strong { font-family: var(--head); }
.btn { border-radius: 999px; }
.btn--sm { border-radius: 999px; }
.btn--link { background: none; border: 0; padding: 0 4px; min-height: 0; color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.btn--link:hover { color: var(--ink); }
.money { font-variant-numeric: tabular-nums; }
.sub { font-size: 14px; margin: 18px 0 8px; }
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; font-size: 14px; }
.kv span { color: var(--muted); }
.kv strong { text-align: right; font-weight: 600; }

/* Layout em duas colunas */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.split-main, .split-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.split .card + .card { margin-top: 0; }

/* Listas simples */
.items-list { display: flex; flex-direction: column; }
.items-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.items-row:last-child { border-bottom: 0; }
.items-row small { display: block; color: var(--muted); font-size: 12px; }
.items-row .money small { text-align: right; }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pay-row > span { flex: 1; min-width: 140px; }
.pay-row small { display: block; color: var(--muted); font-size: 12px; }

/* Fotos */
.thumbs--edit { gap: 10px; }
.thumb-edit { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); cursor: pointer; }
.thumb-edit img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.thumb-file { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; text-decoration: none; }
.thumbs--big img { width: 100%; height: auto; max-width: 260px; aspect-ratio: 1; }
.drop { position: relative; }
.drop span { display: flex; flex-direction: column; gap: 2px; }
.drop span small { font-size: 12px; color: var(--muted); }
.drop--slicer { padding: 22px; justify-content: center; text-align: center; flex-direction: column; border-width: 2px; }
.drop--slicer input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop--slicer.is-over { border-color: var(--ink); background: var(--accent-soft); }
.slicer-status { margin: 10px 0; padding: 10px 14px; border-radius: 10px; background: var(--bg); font-size: 13px; }
.slicer-status.is-ok { background: var(--ok-soft); color: var(--ok-text, #138a17); }
.slicer-status.is-err { background: var(--late-soft); color: var(--late); }

/* Linhas dinâmicas (filamento, insumo, extra) */
.rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.row-line { display: flex; align-items: flex-end; gap: 10px; }
.row-line .field { flex: 1; }
.field--sm { flex: 0 0 110px !important; }
.swatch { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); margin-bottom: 8px; box-shadow: inset 0 0 0 2px var(--card); }
.swatch--sm { display: inline-block; width: 12px; height: 12px; flex-basis: 12px; margin: 0 6px 0 0; border-width: 1px; vertical-align: middle; }

/* Calculadora e orçamento */
.calc-grid, .quote-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.calc-form, .quote-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.calc-out { position: sticky; top: 84px; }
.calc-card { display: flex; flex-direction: column; gap: 14px; }
.calc-card .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.calc-lines { display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.calc-lines > div { display: flex; justify-content: space-between; gap: 10px; }
.calc-lines > div > span { color: var(--muted); }
.calc-total { padding-top: 8px; border-top: 1px solid var(--line); font-weight: 700; }
.calc-total > span { color: var(--ink) !important; }
.calc-price strong { display: block; font-family: var(--head); font-size: 38px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.calc-price small { color: var(--muted); font-size: 13px; }
.calc-resale { padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.calc-resale > div { display: flex; justify-content: space-between; }
.calc-warn { padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: #8a5a00; font-size: 13px; }
.calc-tiers { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-tiers th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.calc-tiers td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.qitems { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.qitem { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.qitem.is-extra { border-style: dashed; }
.qitem-main { display: flex; gap: 8px; align-items: center; }
.qitem-kind { flex: 0 0 140px; }
.qitem-name { flex: 1; font-weight: 600; }
.qitem input, .qitem select, .qitem textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--card); font-size: 14px; }
.qitem-nums { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.qitem-nums .field--sm { flex: 0 0 120px !important; }
.qitem-sum { margin-left: auto; text-align: right; font-weight: 700; font-size: 15px; }
.qitem-sum small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.qitem-resale { display: none !important; }
.is-resale .qitem-resale { display: flex !important; }
.choice-list--row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.pick-list { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow: auto; }
.pick { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.pick:hover { border-color: var(--ink); }
.pick img { grid-row: span 2; width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.pick small { color: var(--muted); font-size: 12px; }
.freight-out { display: flex; flex-direction: column; gap: 8px; }

/* Kanban de pedidos */
.kcard-thumb { width: calc(100% + 28px); margin: -14px -14px 2px; height: 120px; object-fit: cover; border-radius: 12px 12px 0 0; }
.kcard-wa { margin-top: 4px; }
.kcard-note { font-size: 11px; }
.kcol--ready { background: rgba(126, 226, 168, .12); }
.badge--ship { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
.badge--pickup { background: var(--bg); }
.badge--channel { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.badge--late { background: var(--late-soft); border-color: #f3c7c7; color: var(--late); }
.badge--prio-alta { background: var(--late-soft); color: var(--late); border-color: #f3c7c7; }
.badge--prio-media { background: var(--warn-soft); color: #8a5a00; border-color: #f3dfa8; }
.badge--q-aceito, .badge--q-pago { background: var(--ok-soft); color: #0f6f12; border-color: #c9ecca; }
.badge--q-visto { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.badge--q-recusado { color: var(--muted); text-decoration: line-through; }
.ready-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.stage-form select { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 600; }
.row-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: 0 0 44px; }
.row-thumb--empty { display: inline-flex; align-items: center; justify-content: center; background: var(--bg); color: var(--muted); }

/* Estoque */
.spools { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.spool { display: flex; gap: 14px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.spool.is-low { border-color: #f3c7c7; }
.spool-disc { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; background: var(--c); display: grid; place-items: center; box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .12), 0 0 0 1px var(--line-2); }
.spool-disc span { width: 18px; height: 18px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1px var(--line-2); }
.spool-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.spool-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.spool-bar { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; border: 1px solid var(--line); }
.spool-bar span { display: block; height: 100%; background: var(--c, var(--ink)); border-radius: 99px; }
.spool-foot { display: flex; justify-content: space-between; align-items: baseline; }
.weigh-form { display: flex; gap: 6px; }
.weigh-form input { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font-size: 13px; }
.wish-grid, .printer-grid, .idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.wish, .idea { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.wish-head, .idea-head { display: flex; gap: 6px; align-items: center; }
.wish-head .icon-btn { margin-left: auto; }
.wish-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; }
.wish-foot b { font-size: 18px; font-family: var(--head); }
.printer.is-due { border-color: #f3dfa8; }

/* Produtos */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.prod { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .25s var(--ease), border-color .2s; }
.prod:hover { transform: translateY(-3px); border-color: var(--ink); }
.prod-img { position: relative; aspect-ratio: 1; background: var(--bg); display: grid; place-items: center; color: var(--muted-2); }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-tag { position: absolute; top: 10px; left: 10px; }
.prod-body { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.prod-nums { display: flex; justify-content: space-between; align-items: baseline; }
.prod-nums .money { font-weight: 700; font-family: var(--head); }
.prod-ch { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.channels { display: flex; flex-direction: column; gap: 12px; }
.channel { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.channel-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.channel-foot { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.listing-text { margin-top: 14px; }
.listing-text summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.listing-text[open] { display: flex; flex-direction: column; gap: 10px; }

/* Dashboard */
.dash-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.stage-bars { display: flex; flex-direction: column; gap: 8px; }
.stage-bar { display: grid; grid-template-columns: 130px 1fr 30px; gap: 10px; align-items: center; font-size: 13px; }
.stage-bar div { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.stage-bar i { display: block; height: 100%; background: var(--ink); border-radius: 99px; min-width: 2px; }
.stage-bar b { text-align: right; }
.mini-list li { display: flex; align-items: center; gap: 8px; }
.mini-list li > a:first-child { flex: 1; min-width: 0; }
.config-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.config-nav a { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; text-decoration: none; background: var(--card); }
.config-nav a:hover { border-color: var(--ink); }

/* Área do cliente */
.cproject-img { width: calc(100% + 44px); margin: -22px -22px 10px; height: 160px; object-fit: cover; }
.csteps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.csteps li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--bg); font-size: 13px; color: var(--muted); }
.csteps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line-2); font-size: 12px; font-weight: 700; }
.csteps li.is-done { color: var(--ink); }
.csteps li.is-done span { background: var(--ink); color: var(--card); border-color: var(--ink); }
.csteps li.is-now { background: var(--ink); color: var(--card); font-weight: 600; }
.csteps li.is-now span { background: var(--card); color: var(--ink); border-color: var(--card); }

/* Login com a cara do site */
.auth-side { background: #0a0a0a; }
.auth-side h2 { font-family: var(--head); font-weight: 300; text-transform: uppercase; letter-spacing: -.01em; }
.auth-side h2 strong { font-weight: 700; }
.auth-logo { height: 26px; width: auto; }

/* Tema escuro */
[data-theme="dark"] .qitem, [data-theme="dark"] .stage-bar div, [data-theme="dark"] .spool-bar, [data-theme="dark"] .csteps li, [data-theme="dark"] .prod-img, [data-theme="dark"] .row-thumb--empty, [data-theme="dark"] .slicer-status { background: #111; }
[data-theme="dark"] .qitem input, [data-theme="dark"] .qitem select, [data-theme="dark"] .qitem textarea, [data-theme="dark"] .weigh-form input, [data-theme="dark"] .stage-form select { background: #1b1b1b; border-color: var(--line-2); }
[data-theme="dark"] .badge--ship, [data-theme="dark"] .badge--q-visto { background: #1b1f3a; border-color: #2e3566; color: #b4bcff; }
[data-theme="dark"] .badge--channel { background: #2a1a0c; border-color: #4a2e14; color: #fdba74; }
[data-theme="dark"] .calc-warn, [data-theme="dark"] .badge--prio-media { color: #f1c35a; }
[data-theme="dark"] .calc-resale { background: #0f2410; }
[data-theme="dark"] .csteps li.is-now, [data-theme="dark"] .csteps li.is-done span { background: #f2f2ef; color: #0a0a0a; }
[data-theme="dark"] .kcol--ready { background: rgba(126, 226, 168, .06); }

/* Tablet e celular */
@media (max-width: 1100px) {
	.calc-grid, .quote-grid, .split { grid-template-columns: 1fr; }
	.calc-out { position: static; }
}
@media (max-width: 720px) {
	.choice-list--row, .stats--3 { grid-template-columns: 1fr; }
	.row-line { flex-wrap: wrap; }
	.field--sm { flex: 1 1 90px !important; }
	.qitem-kind { flex-basis: 110px; }
	.qitem-sum { margin-left: 0; width: 100%; text-align: left; }
	.stage-bar { grid-template-columns: 100px 1fr 24px; }
	.items-row { grid-template-columns: 1fr auto; }
	.items-row > :nth-child(2) { grid-column: 1; }
	.kcard-thumb { height: 100px; }
	.calc-price strong { font-size: 32px; }
}

/* Crédito Eleve (discreto) */
.eleve-credit { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; line-height: 1.2; letter-spacing: .01em; text-decoration: none; opacity: .55; transition: opacity .2s; }
.eleve-credit:hover { opacity: 1; }
.eleve-credit img { height: 13px; width: auto; }
.eleve-credit--dark { color: #bdbdbd; }
.eleve-credit--light { color: #6b6b6b; }
.eleve-credit--light img { filter: invert(1) brightness(.35); }
.side > .eleve-credit { margin: 4px 12px 0; flex-wrap: wrap; }
.cfoot { display: flex; justify-content: center; padding: 26px 16px 90px; }
.auth-copy .eleve-credit { margin-left: 10px; }
.pay-result > .eleve-credit { margin-top: 18px; }
[data-theme="dark"] .eleve-credit--light { color: #9a9a9a; }
[data-theme="dark"] .eleve-credit--light img { filter: none; }
