:root {
  --navy: #0e2a4d; --navy-2: #173b68; --primary: #1f5592; --primary-soft: #e8eff8; --accent: #ff5417; --teal-brand: #48a9a6;
  --bg: #f4f6fb; --card: #fff; --line: #e3e8f1; --text: #14213d; --muted: #6b7a95;
  --green: #12a173; --green-soft: #e6f6f0; --blue: #2b6ad8; --blue-soft: #eaf1fd;
  --orange: #e48a1f; --orange-soft: #fdf2e3; --red: #e5484d; --red-soft: #fdecec;
  --purple: #7c4dcc; --purple-soft: #f1ebfb; --teal: #17a9a0;
  --radius: 12px; --shadow: 0 1px 2px rgba(15,37,71,.05), 0 6px 18px rgba(15,37,71,.05);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
@font-face { font-family: 'Parkinsans'; src: url('/fonts/Parkinsans.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
h1, h2, h3, .big-av, .kpi b, .price { font-family: 'Parkinsans', Inter, 'Segoe UI', system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-size: 14px; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
b, strong { font-weight: 650; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
.link { background: none; border: 0; padding: 0; color: var(--primary); text-decoration: underline; }
.muted { color: var(--muted); }
svg.i { width: 1.15em; height: 1.15em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.app { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #c9d4ea; display: flex; flex-direction: column; padding: 18px 0; position: sticky; top: 0; height: 100vh; }
.brand { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; background: none; border: 0; padding: 8px 20px 22px; cursor: pointer; }
.brand:hover { background: rgba(255,255,255,.04); }
.logo-full { width: 150px; display: block; } .logo-icon { display: none; width: 38px; }
.brand-chev { position: absolute; right: 8px; top: 50%; transform: translateY(-62%) rotate(180deg); color: #9fb0d0; opacity: 0; transition: opacity .15s; display: grid; }
.brand:hover .brand-chev { opacity: 1; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 22px; color: #c9d4ea; font-weight: 500; border-left: 3px solid transparent; }
.nav a:hover { background: rgba(255,255,255,.05); }
.nav a.on { background: var(--navy-2); color: #fff; border-left-color: var(--accent); }
.nav a .soon { margin-left: auto; font-size: 10px; background: rgba(255,255,255,.12); padding: 1px 6px; border-radius: 99px; }
.nav-foot { border-top: 1px solid rgba(255,255,255,.12); margin: 0 22px; padding-top: 14px; }
.nav-foot a { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: #c9d4ea; font-weight: 500; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 12px 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.search { flex: 0 1 470px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--muted); text-align: left; }
.search:hover { border-color: #c6d2e8; }
.search-t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
kbd { font: 11px ui-monospace, monospace; background: #f1f4f9; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--muted); }
.topbar-r { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.poc-badge { font-size: 11px; background: var(--orange-soft); color: #9a5a0a; border: 1px solid #f3d9ae; padding: 3px 9px; border-radius: 99px; font-weight: 600; }
.icon-btn { position: relative; background: none; border: 0; padding: 6px; border-radius: 8px; color: var(--muted); display: grid; place-items: center; }
.icon-btn:hover { background: var(--bg); }
.icon-btn .dot { position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; background: var(--red); border-radius: 50%; border: 1.5px solid #fff; }
.user-wrap { position: relative; }
.user { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 8px; border-radius: 10px; text-align: left; }
.user:hover { background: var(--bg); }
.user-menu { position: absolute; right: 0; top: 52px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 36px rgba(10,22,45,.18); min-width: 250px; padding: 8px; z-index: 50; animation: pop .15s; }
.user-menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-menu .who small { display: block; color: var(--muted); }
.user-menu button { display: flex; width: 100%; gap: 10px; align-items: center; background: none; border: 0; padding: 9px 10px; border-radius: 8px; text-align: left; }
.user-menu button:hover { background: var(--bg); }
.user small { display: block; color: var(--muted); font-size: 11.5px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 12px; }

#view { padding: 22px 28px 40px; flex: 1; outline: none; width: 100%; min-width: 0; }
.foot { padding: 14px 28px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }

.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--primary); }
.crumbs span { margin: 0 6px; }
.page-h { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-h h1 { font-size: 24px; } .page-h p { margin: 4px 0 0; color: var(--muted); }
.page-h .actions { margin-left: auto; display: flex; gap: 8px; }

.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 14px; font-weight: 550; }
.btn:hover { border-color: #b9c6df; background: #fafcff; }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.primary:hover { background: #17457a; }
.btn.danger { color: var(--red); border-color: #f3c3c5; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: default; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 18px 20px; }
.grid { display: grid; gap: 14px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--muted); }
.chip.green { background: var(--green-soft); color: #0b7a58; } .chip.blue { background: var(--blue-soft); color: #1f55b3; }
.chip.orange { background: var(--orange-soft); color: #9a5a0a; } .chip.red { background: var(--red-soft); color: #b8272c; }
.chip.purple { background: var(--purple-soft); color: #5d33a8; } .chip.gray { background: #eef1f6; color: #55637d; }

/* ficha 360 */
.hero { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-bottom: 8px; }
.big-av { width: 88px; height: 88px; border-radius: 50%; background: #dfe9fb; color: #355a9c; display: grid; place-items: center; font-size: 30px; font-weight: 650; }
.hero h1 { font-size: 30px; }
.hero .meta { color: var(--muted); margin: 6px 0 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(4, 150px); gap: 10px; }
.kpi { padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; }
.kpi .ic { grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; }
.kpi b { font-size: 24px; line-height: 1; } .kpi span { color: var(--muted); font-size: 13px; }
.kpi a { grid-column: 1 / -1; font-size: 12px; margin-top: 6px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 18px; overflow-x: auto; }
.tabs a { padding: 10px 16px; color: var(--muted); font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); } .tabs a.on { color: var(--primary); border-bottom-color: var(--primary); }

.legacy-banner { display: flex; gap: 14px; align-items: center; padding: 12px 16px; background: linear-gradient(90deg, #fff7ea, #fff); border: 1px solid #f3d9ae; border-radius: var(--radius); margin-bottom: 14px; flex-wrap: wrap; }
.legacy-banner .ic { color: var(--orange); font-size: 22px; display: grid; }
.legacy-banner .txt { flex: 1; min-width: 260px; }
.legacy-list { display: none; width: 100%; margin-top: 6px; }
.legacy-list.open { display: grid; gap: 6px; }
.legacy-list div { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px dashed #e6c88f; border-radius: 8px; padding: 7px 10px; font-size: 12.5px; }
.legacy-list div b { min-width: 190px; } .legacy-list div i { font-style: normal; color: var(--red); margin-left: auto; }

.tree { padding: 22px; overflow-x: auto; }
.tree-inner { min-width: 860px; }
.node-top { display: flex; justify-content: center; }
.node { display: inline-flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid var(--primary); border-radius: 10px; padding: 12px 20px; min-width: 330px; }
.node .av { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-soft); color: var(--primary); display: grid; place-items: center; font-size: 22px; }
.node small { color: var(--muted); display: block; }
.link-v { height: 22px; margin: 0 auto; width: 2px; background: #9bb3dd; position: relative; }
.link-v::after { content: ''; position: absolute; bottom: -2px; left: -4px; border: 5px solid transparent; border-top: 7px solid #9bb3dd; }
.roles { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 16px; position: relative; padding-top: 18px; }
.roles::before { content: ''; position: absolute; top: 0; left: calc(50% / var(--n, 3)); right: calc(50% / var(--n, 3)); height: 2px; background: #b8c8e6; }
.role { position: relative; }
.role::before { content: ''; position: absolute; top: -18px; left: 50%; width: 2px; height: 18px; background: #b8c8e6; }
.role-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; border: 1.5px solid; }
.role-h .ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 20px; }
.role-h small { display: block; opacity: .8; font-weight: 450; }
.role.g .role-h { background: var(--green-soft); border-color: #7fd0b4; color: #0b6e50; }
.role.b .role-h { background: var(--blue-soft); border-color: #8fb3ee; color: #1f55b3; }
.role.o .role-h { background: var(--orange-soft); border-color: #f0c78a; color: #9a5a0a; }
.role.p .role-h { background: var(--purple-soft); border-color: #cdb8ee; color: #5d33a8; }
.role.p .stat { background: #faf7fe; border-color: #e5d9f6; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.stat b { font-size: 20px; display: block; line-height: 1.1; } .stat span { color: var(--muted); font-size: 12.5px; }
.role.g .stat { background: #f2fbf8; border-color: #cdeadf; } .role.b .stat { background: #f3f7fe; border-color: #d3e1f8; } .role.o .stat { background: #fffaf2; border-color: #f4e1c1; }
.shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.short { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; border: 1.5px solid; background: #fff; color: inherit; }
.short:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.short .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; }
.short b { font-size: 22px; } .short small { color: var(--muted); font-size: 13px; margin-left: 4px; }
.short .go { margin-left: auto; color: var(--muted); }
.short.c-blue { border-color: #c6d8f6; } .short.c-blue .ic { background: var(--blue-soft); color: var(--blue); }
.short.c-green { border-color: #bfe6d8; } .short.c-green .ic { background: var(--green-soft); color: var(--green); }
.short.c-red { border-color: #f4c9cb; } .short.c-red .ic { background: var(--red-soft); color: var(--red); }
.short.c-purple { border-color: #dccdf4; } .short.c-purple .ic { background: var(--purple-soft); color: var(--purple); }

.timeline-card { margin-top: 18px; }
.tl-h { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tl-h .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 20px; }
.tl-h p { margin: 2px 0 0; color: var(--muted); }
.tl-h .go { margin-left: auto; }
.tl-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 1fr); gap: 0; overflow-x: auto; padding-bottom: 6px; }
.tl-item { position: relative; padding: 18px 12px 0 0; border-top: 2px solid #cfd8e8; margin-top: 6px; min-width: 130px; }
.tl-item::before { content: ''; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fff; }
.tl-item small { display: block; color: var(--muted); font-size: 12px; } .tl-item b { display: block; margin: 3px 0; } .tl-item span { color: var(--muted); font-size: 12px; }

.vtl { position: relative; margin: 8px 0 0 8px; padding-left: 22px; border-left: 2px solid #d4dcec; }
.vtl-i { position: relative; padding: 0 0 18px; }
.vtl-i::before { content: ''; position: absolute; left: -29px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fff; }
.vtl-i small { color: var(--muted); } .vtl-i b { display: block; } .vtl-i p { margin: 2px 0 0; color: #3c4a66; }
.vtl-i .src { font-size: 11.5px; margin-left: 8px; }
.filter-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.input { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 9px 12px; font: inherit; width: 100%; outline: none; }
.input:focus { border-color: #8fb3ee; box-shadow: 0 0 0 3px rgba(29,95,214,.12); }
textarea.input { resize: vertical; min-height: 84px; }
select.input { width: auto; }

table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfe; font-weight: 600; }
table.t td { padding: 11px 14px; border-bottom: 1px solid #eef1f7; vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: #f8faff; }
.right { text-align: right !important; }
.tbl-wrap { overflow-x: auto; }
.pos { color: #0b7a58; } .neg { color: #b8272c; }

/* overlay: modal & palette */
.overlay { position: fixed; inset: 0; background: rgba(10,22,45,.5); display: grid; place-items: start center; padding: 6vh 16px; z-index: 100; overflow-y: auto; animation: fade .15s; }
.modal { background: #fff; border-radius: 14px; width: min(920px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: pop .18s; }
.modal.sm { width: min(560px, 100%); } .modal.xl { width: min(1100px, 100%); }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-h h2 { font-size: 17px; flex: 1; }
.modal-b { padding: 20px; } .modal-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.palette { width: min(640px, 100%); background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow: hidden; margin-top: 8vh; }
.palette input { width: 100%; border: 0; padding: 18px 20px; font: inherit; font-size: 16px; outline: none; border-bottom: 1px solid var(--line); }
.res { padding: 6px; max-height: 50vh; overflow-y: auto; }
.res a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: inherit; }
.res a.sel, .res a:hover { background: var(--primary-soft); }
.res .kind { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--primary); min-width: 74px; }
.res small { color: var(--muted); display: block; }
.res .empty { padding: 22px; text-align: center; color: var(--muted); }
@keyframes fade { from { opacity: 0 } } @keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98) } }
#toast-root { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 200; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: pop .2s; max-width: 380px; }
.toast.err { background: #b8272c; } .toast.ok { background: #0b7a58; }

/* assistente */
.assist { position: fixed; right: 24px; bottom: 24px; z-index: 40; }
.assist-fab { background: linear-gradient(135deg, #1f5592, #48a9a6); color: #fff; border: 0; border-radius: 99px; padding: 12px 18px; display: flex; gap: 8px; align-items: center; font-weight: 600; box-shadow: 0 10px 28px rgba(60,60,200,.35); }
.assist-box { position: absolute; right: 0; bottom: 56px; width: 400px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 48px rgba(10,22,45,.25); overflow: hidden; animation: pop .18s; }
.assist-h { padding: 12px 16px; background: linear-gradient(135deg, #0e2a4d, #1f5592); color: #fff; }
.assist-h small { display: block; opacity: .8; }
.chat { max-height: 330px; overflow-y: auto; padding: 14px; display: grid; gap: 10px; background: #fafbfe; }
.msg { padding: 10px 12px; border-radius: 12px; max-width: 92%; line-height: 1.45; white-space: pre-wrap; }
.msg.u { background: var(--primary); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.msg.a { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .fonte { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--muted); white-space: normal; }
.sugs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; }
.sug { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 10px; font-size: 12px; color: var(--primary); }
.sug:hover { background: var(--primary-soft); }
.assist-in { display: flex; gap: 8px; padding: 12px 14px; }
.typing::after { content: '▍'; animation: blink 1s steps(2) infinite; } @keyframes blink { 50% { opacity: 0 } }

/* recibo */
.paper { background: #fff; border: 1px solid #d9dfeb; padding: 34px 40px; font-family: Georgia, "Times New Roman", serif; position: relative; }
.paper h2 { text-align: center; letter-spacing: .12em; font-size: 22px; margin-bottom: 4px; }
.paper .num { text-align: center; color: #55637d; margin-bottom: 22px; font-family: Inter, sans-serif; font-size: 12.5px; }
.paper .val { font-size: 26px; text-align: center; border: 2px solid #14213d; display: inline-block; padding: 6px 22px; margin: 0 auto 16px; }
.paper p { line-height: 1.7; font-size: 15px; }
.paper .sign { margin-top: 36px; display: flex; justify-content: space-between; align-items: end; font-family: Inter, sans-serif; font-size: 12px; color: #55637d; }
.paper .sign div { border-top: 1px solid #14213d; padding-top: 6px; min-width: 240px; text-align: center; color: #14213d; }
.paper .stamp { position: absolute; right: 30px; top: 26px; border: 2px solid var(--green); color: var(--green); border-radius: 8px; padding: 4px 10px; font: 700 11px Inter, sans-serif; transform: rotate(6deg); letter-spacing: .08em; }
.rule-box { background: var(--red-soft); border: 1px solid #f3c3c5; color: #8d1b20; border-radius: 10px; padding: 12px 14px; display: flex; gap: 10px; }
.rule-ok { background: var(--green-soft); border: 1px solid #bfe6d8; color: #0b6e50; border-radius: 10px; padding: 10px 14px; }

/* chamados */
.sla { font-variant-numeric: tabular-nums; font-weight: 650; }
.sla.late { color: var(--red); } .sla.warn { color: var(--orange); } .sla.ok { color: var(--green); }
.cls { display: grid; gap: 10px; margin-top: 14px; }
.cls-i { display: flex; gap: 10px; align-items: center; opacity: 0; transform: translateY(6px); animation: up .35s forwards; }
@keyframes up { to { opacity: 1; transform: none } }
.cls-i .lab { min-width: 150px; color: var(--muted); }

/* ligações */
.call { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
.wave { display: flex; align-items: center; gap: 2px; height: 42px; margin: 10px 0; }
.wave i { flex: 1; background: #b6c8ea; border-radius: 3px; min-width: 2px; }
.wave.play i { animation: wv 1s ease-in-out infinite alternate; background: var(--primary); }
@keyframes wv { to { transform: scaleY(.35) } }
.utt { padding: 8px 12px; border-radius: 10px; margin-bottom: 8px; background: #f3f6fc; max-width: 92%; }
.utt.cli { background: #fff; border: 1px solid var(--line); margin-left: auto; }
.utt small { color: var(--muted); display: block; font-size: 11px; }
.utt.f-insatisfacao { background: var(--red-soft); border: 1px solid #f3c3c5; }
.utt.f-oportunidade { background: var(--green-soft); border: 1px solid #bfe6d8; }
.utt.hid { display: none; }
.steps { display: grid; gap: 8px; margin: 12px 0; }
.step { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.step .ck { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cfd8e8; display: grid; place-items: center; font-size: 12px; }
.step.run .ck { border-color: var(--primary); border-top-color: transparent; animation: spin .7s linear infinite; }
.step.done { color: var(--text); } .step.done .ck { background: var(--green); border-color: var(--green); color: #fff; }
@keyframes spin { to { transform: rotate(360deg) } }
.ana h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 6px; }
.ana ul { margin: 0; padding-left: 18px; } .ana li { margin-bottom: 4px; }
.meter { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #e5484d, #f1c04f, #12a173); position: relative; }
.meter i { position: absolute; top: -4px; width: 4px; height: 16px; background: var(--navy); border-radius: 2px; }

/* comparativo */
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cmp-col { border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-height: 360px; position: relative; background: #fafbfe; }
.cmp-col.new { background: #f3f8ff; border-color: #bcd2f6; }
.cmp-col h3 { margin-bottom: 4px; }
.clock { font: 700 34px ui-monospace, Consolas, monospace; margin: 4px 0 10px; }
.clock.old { color: var(--red); } .clock.new { color: var(--green); }
.win { background: #fff; border: 1px solid #cfd6e4; border-radius: 8px; padding: 7px 10px; margin-bottom: 7px; display: flex; gap: 8px; align-items: center; font-size: 12.5px; opacity: 0; transform: translateX(-10px); animation: slide .3s forwards; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.win i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
@keyframes slide { to { opacity: 1; transform: none } }
.cmp-col.new .scr { opacity: 0; animation: up .5s .2s forwards; }

.soon-page { text-align: center; padding: 80px 20px; color: var(--muted); }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sec-t { font-size: 15px; margin: 0 0 10px; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 150px); } .hero { grid-template-columns: auto 1fr; } .kpis { grid-column: 1 / -1; }
  .shortcuts { grid-template-columns: repeat(2, 1fr); } .call, .cmp { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; } .sidebar { display: none; } #view { padding: 16px; } .topbar { padding: 10px 16px; }
  .user div, .poc-badge { display: none; } .roles { grid-template-columns: 1fr; } .roles::before, .role::before { display: none; }
}
@media print {
  body * { visibility: hidden; } #print-area, #print-area * { visibility: visible; }
  #print-area { position: absolute; left: 0; top: 0; width: 100%; } .paper { border: 0; }
}

[hidden] { display: none !important; }
.avatar.c-blue { background: #1d5fd6; } .avatar.c-green { background: #12a173; } .avatar.c-orange { background: #e48a1f; }
.avatar.c-purple { background: #7c4dcc; } .avatar.c-red { background: #e5484d; } .avatar.c-gray { background: #55637d; }
.denied { text-align: center; padding: 70px 20px; color: var(--muted); }
.denied h2 { color: var(--text); margin: 10px 0 6px; }

/* login */
.login { display: grid; grid-template-columns: minmax(340px, 42%) 1fr; min-height: 100vh; }
.login-brand { background: linear-gradient(160deg, #0a2140, #12335c 60%, #1f5592); color: #dbe5f8; padding: 56px 52px; display: flex; align-items: center; }
.login-brand > div { max-width: 440px; }
.lb-logo { width: 230px; display: block; margin-bottom: 8px; }
.login-brand h2 { font-size: 30px; line-height: 1.2; color: #fff; margin: 44px 0 14px; }
.login-brand p { line-height: 1.6; opacity: .85; }
.login-brand ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.login-brand li { display: flex; gap: 10px; align-items: center; } .login-brand li svg { color: var(--accent); }
.login-main { display: grid; place-items: center; padding: 32px 20px; background: var(--bg); }
.login-box { width: min(560px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 34px 34px 26px; }
.login-box h1 { font-size: 24px; margin-bottom: 4px; }
.login-box form { margin-top: 22px; display: grid; gap: 6px; }
.login-box label { font-weight: 600; font-size: 13px; margin-top: 8px; }
.pw { position: relative; } .pw .icon-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.btn.big { justify-content: center; padding: 12px 16px; margin-top: 14px; font-size: 15px; }
.login-err { background: var(--red-soft); color: #8d1b20; border: 1px solid #f3c3c5; border-radius: 9px; padding: 9px 12px; margin-top: 6px; }
.demo { margin-top: 26px; }
.demo-h { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.demo-h span { height: 1px; background: var(--line); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-card { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 9px 10px; text-align: left; }
.demo-card:hover { border-color: #9bb8ee; background: #f7faff; }
.demo-card.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(29,95,214,.12); }
.demo-card small { display: block; color: var(--muted); font-size: 12px; }
.demo-card .avatar { width: 36px; height: 36px; }
.demo-note { text-align: center; font-size: 12px; margin: 12px 0 0; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login-brand { display: none; } .demo-grid { grid-template-columns: 1fr; } }

.sug-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; } .sug-list li { line-height: 1.4; }
.flow { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.flow-i { flex: 1; min-width: 92px; background: var(--primary-soft); border-radius: 10px; padding: 10px; display: grid; gap: 4px; align-content: start; }
.flow-i b { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 12px; }
.flow-i small { color: var(--muted); }
.sec-t svg { vertical-align: -3px; margin-right: 4px; color: var(--primary); }

.dtag { display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--orange-soft); color: #9a5a0a; border: 1px solid #f3d9ae; border-radius: 99px; padding: 0 6px; margin-left: 6px; vertical-align: middle; }
.disc { border: 1px dashed #e6c88f; background: #fffaf2; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.disc summary { cursor: pointer; list-style: none; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.disc summary::-webkit-details-marker { display: none; }
.disc summary::after { content: 'ver lista ▾'; margin-left: auto; color: var(--muted); font-size: 12px; }
.disc[open] summary::after { content: 'ocultar ▴'; }
.disc .sug-list { margin-top: 10px; }

/* menu lateral colapsável */
.app { transition: grid-template-columns .18s ease; }
.app.collapsed { grid-template-columns: 68px 1fr; }
.sidebar { overflow: hidden; }
.nav a, .nav-foot a { white-space: nowrap; }
.app.collapsed .lbl, .app.collapsed .nav a .soon, .app.collapsed .logo-full { display: none; }
.app.collapsed .logo-icon { display: block; }
.app.collapsed .brand { padding: 8px 0 22px; } .app.collapsed .brand-chev { right: 3px; transform: translateY(-62%); }
.app.collapsed .nav a { padding: 12px 0; justify-content: center; }
.app.collapsed .nav a { position: relative; }
.app.collapsed .nav a.tagd::after { content: ''; position: absolute; top: 10px; right: 14px; width: 7px; height: 7px; border-radius: 50%; background: #e48a1f; }
.app.collapsed .nav-foot { margin: 0 10px; } .app.collapsed .nav-foot a { justify-content: center; }
.nav .tagd-pill { margin-left: auto; font-size: 10px; background: rgba(255,255,255,.12); padding: 1px 6px; border-radius: 99px; }

/* imóveis */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { max-width: 300px; } .toolbar .grow { flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 7px 12px; font-weight: 550; color: var(--muted); } .seg button.on { background: var(--primary-soft); color: var(--primary); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.imv { cursor: pointer; overflow: hidden; transition: transform .12s, box-shadow .12s; } .imv:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,37,71,.12); }
.imv-ph { height: 112px; display: flex; align-items: flex-end; justify-content: space-between; padding: 10px 12px; color: #fff; font-size: 12px; background: linear-gradient(135deg, var(--c1, #355a9c), var(--c2, #6b8fd6)); position: relative; }
.imv-ph svg { position: absolute; right: 14px; top: 12px; width: 38px; height: 38px; opacity: .35; stroke-width: 1.4; }
.imv-b { padding: 12px 14px 14px; } .imv-b h3 { font-size: 16px; } .imv-b .addr { color: var(--muted); font-size: 12.5px; margin: 2px 0 8px; }
.specs { display: flex; gap: 12px; color: #3c4a66; font-size: 12.5px; margin: 8px 0; } .price { font-size: 18px; font-weight: 700; }
.people { color: var(--muted); font-size: 12.5px; margin-top: 6px; line-height: 1.5; } .people b { color: var(--text); font-weight: 600; }
.mtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.mtabs button { background: none; border: 0; padding: 9px 14px; color: var(--muted); font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; } .mtabs button.on { color: var(--primary); border-bottom-color: var(--primary); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 20px; } .kv small { display: block; color: var(--muted); font-size: 12px; } .kv b { font-size: 14.5px; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; } .ph-grid div { aspect-ratio: 4/3; border-radius: 8px; background: repeating-linear-gradient(45deg, #eef2f9, #eef2f9 8px, #e6ecf6 8px, #e6ecf6 16px); display: grid; place-items: center; color: #9aa8c2; font-size: 11px; }
.regua { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; position: relative; }
.regua .st { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; border-top: 3px solid var(--c); } .regua .st b { font-size: 22px; display: block; } .regua .st small { color: var(--muted); }
.fld { display: grid; gap: 4px; } .fld label { font-weight: 600; font-size: 12.5px; }
.in2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.copy { font: 600 14px ui-monospace, Consolas, monospace; background: var(--bg); border: 1px dashed #b9c6df; border-radius: 9px; padding: 10px 12px; word-break: break-all; }
@media (max-width: 1100px) { .regua { grid-template-columns: repeat(2, 1fr); } }

.avatar.c-teal { background: #17a9a0; }
.role-h > div { min-width: 0; }

/* tutorial (!) e comentários */
.acoes { display: inline-flex; gap: 4px; align-items: center; margin-left: 8px; vertical-align: middle; font-family: Inter, "Segoe UI", system-ui, sans-serif; font-weight: 400; letter-spacing: 0; }
.acoes.abs { position: absolute; top: 10px; right: 12px; margin: 0; z-index: 3; }
.card, .legacy-banner { position: relative; }
.help, .cmt { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--accent); background: #fff3ee; color: var(--accent); font-weight: 800; font-size: 13px; line-height: 1; padding: 0; display: inline-grid; place-items: center; cursor: pointer; transition: transform .1s, background .1s; position: relative; flex: none; }
.cmt { border-color: #b7c5dd; background: #f3f6fb; color: var(--primary); } .cmt svg { width: 12px; height: 12px; }
.help:hover { background: var(--accent); color: #fff; transform: scale(1.1); } .cmt:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: scale(1.1); }
.cmt i { position: absolute; top: -7px; right: -7px; min-width: 16px; height: 16px; border-radius: 99px; background: var(--primary); color: #fff; font: 700 10px Inter, sans-serif; display: grid; place-items: center; padding: 0 4px; font-style: normal; border: 1.5px solid #fff; }
.help.dark { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.1); color: #fff; }
.help.dark:hover { background: var(--accent); border-color: var(--accent); }
.help.inline, .cmt.inline { cursor: default; vertical-align: middle; width: 20px; height: 20px; font-size: 12px; } .help.inline:hover, .cmt.inline:hover { transform: none; }
.nav-foot { display: flex; align-items: center; justify-content: space-between; } .nav-foot .help { margin-right: 4px; }
.app.collapsed .nav-foot .help { display: none; }
.tabbar { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; font-size: 12.5px; } .tabbar .acoes { margin-left: 0; margin-right: 4px; }
.btn.guia { background: linear-gradient(135deg, #fff3ee, #fff); border-color: #ffc9b3; color: #b8380d; } .btn.guia:hover { background: #ffe9df; }
.topbar .help { margin-left: -6px; }
.assist-h { position: relative; }
.help-lead { font-size: 16px; font-weight: 600; margin: 4px 0 8px; font-family: "Parkinsans", Inter, sans-serif; }
.help-h { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin: 16px 0 6px; font-family: Inter, sans-serif; }
.help-ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; } .help-ul.q li::marker { color: var(--accent); }
.help-ex { background: var(--primary-soft); border-radius: 10px; padding: 10px 12px; margin: 0; line-height: 1.5; }
.modal-b p { line-height: 1.55; } .modal-b p:first-child { margin-top: 0; }
.guia-cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: start; } .guia-area { margin-bottom: 12px; } .guia-area > b { display: block; margin-bottom: 6px; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.guia-t { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; } .guia-t:hover { background: var(--primary); color: #fff; }
.roteiro { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); } .roteiro:hover { background: #f7faff; border-color: #9bb8ee; }
.cm-lista { max-height: 34vh; overflow-y: auto; margin-bottom: 14px; display: grid; gap: 10px; }
.cm { background: #f8fafd; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; } .card.cm { background: #fff; }
.cm p { margin: 6px 0 0; } .cm-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cm-form { border-top: 1px solid var(--line); padding-top: 14px; } .cm-id { background: var(--primary-soft); border-radius: 12px; padding: 14px; }
.cm-quem { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.sug.on { background: var(--primary); color: #fff; border-color: var(--primary); }
@media (max-width: 900px) { .guia-cols { grid-template-columns: 1fr; } .btn.guia span:not([data-icon]) { display: none; } }

/* tela inicial */
.hhero { display: flex; gap: 22px; align-items: center; padding: 26px 28px; border-radius: 16px; margin-bottom: 14px; color: var(--text);
  background: radial-gradient(900px 220px at 100% 0%, rgba(255,84,23,.10), transparent 60%), linear-gradient(135deg, #ffffff, #f1f6fc); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hlogo { width: 84px; flex: none; }
.hhero h1 { font-size: 30px; } .hlead { font-size: 17px; margin: 4px 0 0; font-family: "Parkinsans", Inter, sans-serif; color: var(--primary); font-weight: 600; }
.hguia { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px dashed #e6c88f; background: #fffaf2; border-radius: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.hguia .ic { color: var(--orange); font-size: 22px; display: grid; }
.hsec { font-size: 16px; margin: 22px 0 10px; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.hgrid.sm { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.hcard { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--text); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s, border-color .12s; position: relative; }
.hcard:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15,37,71,.13); border-color: #b9c9e6; }
.hcard b { font-size: 16px; font-family: "Parkinsans", Inter, sans-serif; } .hcard p { margin: 4px 0 0; color: var(--muted); line-height: 1.5; font-size: 13.5px; }
.hc-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 22px; }
.hc-go { margin-left: auto; align-self: center; display: inline-flex; gap: 6px; align-items: center; color: var(--primary); font-weight: 600; font-size: 13px; white-space: nowrap; }
.hcard.big { padding: 20px 20px 46px; min-height: 130px; } .hcard.big .hc-ic { width: 54px; height: 54px; font-size: 26px; }
.hcard.big .hc-go { position: absolute; right: 20px; bottom: 14px; margin: 0; }
@media (max-width: 700px) { .hhero { flex-direction: column; align-items: flex-start; } }

/* painel de indicadores da tela inicial */
.hkpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.hk { display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--c, var(--primary)); border-radius: 12px; padding: 14px 16px; color: var(--text); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.hk:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,37,71,.12); }
.hk span { color: var(--muted); font-size: 13px; } .hk b { font-size: 28px; font-family: "Parkinsans", Inter, sans-serif; color: var(--c, var(--text)); line-height: 1.15; } .hk small { color: var(--muted); }
.halert { display: grid; gap: 8px; }
.halert a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #fafbfe; }
.halert a:hover { background: #f1f6fd; border-color: #b9c9e6; }
.halert i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.halert span { flex: 1; } .halert em { font-style: normal; color: var(--primary); font-weight: 600; font-size: 13px; display: inline-flex; gap: 4px; align-items: center; }

.notice-disc { display: flex; align-items: center; gap: 12px; margin: 14px 28px 0; padding: 9px 14px; border: 1px solid #f3d9ae; background: #fffaf2; border-radius: 10px; font-size: 13px; color: #6b4a14; }
.notice-disc .ni { width: 20px; height: 20px; border-radius: 50%; background: var(--orange); color: #fff; font: 700 12px Inter, sans-serif; display: grid; place-items: center; flex: none; }
.notice-disc div { flex: 1; line-height: 1.4; } .notice-disc b { color: #7a4a08; }
.notice-disc[hidden] { display: none; }
@media (max-width: 760px) { .notice-disc { margin: 10px 16px 0; } }
