/* ==========================================================
   ELEVE CRM
   Preto editorial + laranja Eleve · Archivo
   ========================================================== */

*, *::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: #fc5521;
	--accent-soft: #fff1ec;
	--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: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--side: 244px;
	--ease: cubic-bezier(.22, 1, .36, 1);
}

html { -webkit-text-size-adjust: 100%; }
body.ecrm { 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-weight: 600; letter-spacing: -.015em; 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-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: var(--accent); }
.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: var(--ok); color: #fff; }
.btn--wa:hover { background: #159a19; }
.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: #fff; 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: 14px 4px; background: linear-gradient(to top, var(--bg) 70%, rgba(244,244,242,0)); }
.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: #5c5c5c; }
.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; }
.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: #fff; 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: #fff; 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: var(--accent); font-weight: 600; }
.due--soon { color: var(--warn); }
.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: var(--ok); }
.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: #fff; 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(252,85,33,.07); }
.kcol:last-child { background: #e7ede7; }
.kcard { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #fff; 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: #fff; 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-2); }
.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: #fff; 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: #fff; 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: #fff; 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 ---------- */

.ecrm-auth { background: #fff; }
.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(252,85,33,.28) 0%, rgba(252,85,33,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 ---------- */

.ecrm-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(252,85,33,.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: #fff; 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: #fff; 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(252,85,33,.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: ecrmFlash 1.2s ease; }
@keyframes ecrmFlash { 0% { background: #ffe6dc; } 100% { background: #fff; } }
.prop-ready .copy-row input { background: #fff; }
.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 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: 34px; width: auto; }
.pay-card { width: min(460px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 30px; background: #fff; 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--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) ---------- */

.ecrm-delivery { background: #fff; }
.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(252,85,33,.25) 0%, rgba(252,85,33,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: #fff; }
.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: #fff; }
.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; }

/* ---------- 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.ecrm { 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; }
}
