/* Radar · See Through. Linguagem dos painéis flutuantes com luz (a do Sonar, do Orbit e do Strata: guia em
   Originacao_Dealflow/design/guia-visual-para-outra-app.md), com a identidade da See Through: escuro #16232B,
   acento teal #1E7A8C só como pontuação, IBM Plex (Serif nos títulos e números grandes, Sans no corpo, Mono nas etiquetas). */
:root {
  --side-0: #0b141a; --side-1: #16232b; --side-2: #1b2c36;
  --side-rgb: 160, 190, 204;         /* texto secundário e filetes no menu escuro */
  --side-muted: #a0becc; --side-text: #e6eef2; --deep-hex: #071016;
  --ink: #16232b; --ink-rgb: 22, 35, 43;          /* títulos, números, primário */
  --btn-a: #2b3e4a; --btn-b: #16232b; --btn-hover-a: #344a57; --btn-hover-b: #1c2c36;
  --accent: #1e7a8c; --accent-rgb: 30, 122, 140;
  --tint-strong: #c3d3da; --tint: #d9e3e7; --tint-faint: #eaf0f2;
  --page: #cfdbe0;                    /* fundo atrás dos painéis */
  --bg: #f2f5f6;                      /* tela do painel principal */
  --text: #5e7178; --line: #d9dfe2; --note: #a3adb1;
  --radius: 14px; --ease: cubic-bezier(.4, 0, .2, 1);
  --serif: "IBM Plex Serif", Georgia, serif; --sans: "IBM Plex Sans", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
}
html, body { margin: 0; background: var(--page); font-family: var(--sans); color: var(--text); font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums; }
* { box-sizing: border-box; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--ink); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
::selection { background: rgba(var(--accent-rgb), .22); }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
@keyframes rin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes run { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sweep { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }

/* ------------------------------------------------------------------ marca */
.mark { width: 30px; height: 30px; flex: none; }
.brandline { display: flex; align-items: center; gap: 11px; }
.brandline .w { display: flex; flex-direction: column; line-height: 1.1; }
.brandline .w b { font: 500 18px var(--serif); color: #fff; letter-spacing: -.005em; }
.brandline .w span { font: 500 10px var(--mono); letter-spacing: .16em; color: var(--side-muted); margin-top: 3px; }

/* ------------------------------------------------------------------ estrutura: menu + painel a flutuar */
.app { display: flex; height: 100vh; overflow: hidden; }
.side { width: 248px; flex: none; height: calc(100vh - 16px); margin: 8px 0 8px 8px; border-radius: 18px; position: relative; z-index: 20;
  display: flex; flex-direction: column; color: var(--side-text);
  background: linear-gradient(180deg, var(--side-0) 0%, var(--side-1) 26%, var(--side-2) 100%); box-shadow: 0 10px 28px rgba(var(--ink-rgb), .22); }
.side::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 90% at 0% 100%, rgba(var(--side-rgb), .30), rgba(var(--side-rgb), .10) 34%, rgba(var(--side-rgb), 0) 66%); }
.side::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .05; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.side > * { position: relative; }
.side-head { height: 78px; padding: 0 16px 0 20px; display: flex; align-items: center; cursor: pointer; }
.side-search { margin: 0 12px 12px; width: calc(100% - 24px); height: 36px; border-radius: 12px; border: 1px solid rgba(var(--side-rgb), .24);
  background: rgba(255, 255, 255, .05); color: var(--side-muted); display: flex; align-items: center; gap: 8px; padding: 0 10px; cursor: pointer; font-size: 13px; }
.side-search:hover { background: rgba(255, 255, 255, .08); }
.side-search .sp { flex: 1; text-align: left; }
.kbd { font: 600 10.5px var(--mono); border: 1px solid rgba(var(--side-rgb), .32); border-radius: 5px; padding: 1px 5px; }
.side-scroll { flex: 1; overflow: hidden auto; padding: 4px 10px 12px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; scrollbar-color: rgba(var(--side-rgb), .3) transparent; }
.sb-panel { display: flex; flex-direction: column; gap: 2px; padding: 8px 6px 6px; border-radius: 14px;
  background: linear-gradient(45deg, #ffffff16, #ffffff09 45%, color-mix(in srgb, var(--deep-hex) 20%, transparent));
  box-shadow: inset 1px 0 #ffffff29, inset 0 -1px #ffffff29, inset -1px 0 color-mix(in srgb, var(--deep-hex) 38%, transparent),
    inset 0 1px color-mix(in srgb, var(--deep-hex) 38%, transparent), 3px -3px 10px color-mix(in srgb, var(--deep-hex) 30%, transparent); }
.sb-label { font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--side-muted); padding: 0 10px 6px; opacity: .85; }
.sb-btn { width: 100%; min-height: 36px; border: 0; border-radius: 11px; background: transparent; color: var(--side-text); display: flex; align-items: center; gap: 10px;
  padding: 0 10px; cursor: pointer; font-size: 14px; font-weight: 500; position: relative; text-align: left; }
.sb-btn svg { width: 18px; height: 18px; color: var(--side-muted); }
.sb-btn:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sb-btn.on { background: rgba(255, 255, 255, .10); color: #fff; font-weight: 600; }
.sb-btn.on svg { color: #fff; }
.sb-btn.on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.sb-btn .lbl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-btn .cnt { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .14);
  display: inline-flex; align-items: center; justify-content: center; }
.sb-btn .cnt.alert { background: var(--accent); }
.sb-btn:focus-visible { outline: 2px solid rgba(var(--side-rgb), .55); outline-offset: 1px; }
.side-foot { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(var(--side-rgb), .18); }
.sb-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--side-muted); padding: 0 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--side-muted); flex: none; }
.dot.live { background: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25); }
.user-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.user-card .nm { color: #fff; font-size: 13px; font-weight: 600; line-height: 1.2; }
.user-card .fn { font-size: 11px; color: var(--side-muted); }
.user-card .sp { flex: 1; min-width: 0; }
.user-card a { color: var(--side-muted); display: inline-flex; padding: 6px; border-radius: 8px; }
.user-card a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.av { width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--ink); display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 700; flex: none; }

.main { flex: 1; min-width: 0; height: calc(100vh - 16px); margin: 8px; border-radius: 18px; overflow: hidden auto; position: relative; background-color: var(--bg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0.06  0 0 0 0 0.08  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(110% 80% at 0% 100%, #fffc, #ffffff47 36%, #fff0 66%);
  box-shadow: 0 10px 28px rgba(var(--ink-rgb), .10); }
.page { max-width: 1280px; margin: 0 auto; padding: 28px 32px 48px; animation: rin .32s ease-out backwards; }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 10px; padding: 10px 32px; background: rgba(242, 245, 246, .82);
  backdrop-filter: blur(10px); border-bottom: 1px solid rgba(var(--ink-rgb), .06); }
.topbar .crumb { font-size: 12px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.topbar .crumb b { color: var(--ink); }
.topbar .sp { flex: 1; }
.stamp { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; background: #fff; font-size: 11.5px; color: var(--text);
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(var(--ink-rgb), .05); }
.stamp b { color: var(--ink); font-weight: 600; }
.stamp.serio { background: var(--ink); color: #fff; box-shadow: none; }
.stamp.serio .dot { background: #fff; }

/* ------------------------------------------------------------------ cabeçalho de página */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.kick { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; }
.kick::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); margin-right: 8px; box-shadow: 1px -1px rgba(var(--accent-rgb), .28); }
.label { font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
h1 { font: 500 28px/34px var(--serif); color: var(--ink); margin: 6px 0 0; letter-spacing: -.01em; }
h2 { font: 600 15px var(--sans); color: var(--ink); margin: 0; }
h3 { font: 600 13px var(--sans); color: var(--ink); margin: 0; }
.sub { color: var(--text); font-size: 13px; margin-top: 4px; }
.sub b { color: var(--ink); }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ------------------------------------------------------------------ superfícies */
.card { border-radius: var(--radius); background: #fff; background-image: linear-gradient(45deg, #fff, #fff 62%, #f6f9fa);
  box-shadow: 0 0 0 1px rgba(var(--ink-rgb), .075), 4px -4px 14px -6px rgba(var(--ink-rgb), .18), 0 1px 2px rgba(var(--ink-rgb), .05), inset 1px -1px #fff; }
.card-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 12px; border-bottom: 1px solid #edf0f1; }
.card-head .sp { flex: 1; }
.card-head .ct { font-size: 11px; font-weight: 700; color: var(--ink); background: var(--tint); border-radius: 999px; padding: 1px 8px; }
.card-body { padding: 14px 16px; }
.grid { display: grid; gap: 14px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.muted { color: var(--note); } .small { font-size: 12px; }
.row { display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------------ botões e controlos */
.btn { height: 34px; border: 0; border-radius: 999px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 13px; color: #fff; text-decoration: none !important;
  background: var(--btn-b); background-image: linear-gradient(45deg, var(--btn-a), var(--btn-b) 55%);
  box-shadow: inset 1px -1px #ffffff38, inset -1px 1px color-mix(in srgb, var(--deep-hex) 45%, transparent), 2px -2px 8px -3px rgba(var(--ink-rgb), .45); }
.btn:hover { background-image: linear-gradient(45deg, var(--btn-hover-a), var(--btn-hover-b) 55%); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled { background: var(--tint); background-image: none; color: var(--text); box-shadow: none; cursor: default; }
.btn.lg { height: 44px; padding: 0 22px; font-size: 14px; }
.btn.accent { background: var(--accent); background-image: linear-gradient(45deg, #2a8fa3, var(--accent) 55%); }
.btn2 { height: 32px; border: 1px solid var(--line); border-radius: 999px; padding: 0 13px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; font-size: 12.5px;
  color: var(--ink); background: #fff; background-image: linear-gradient(45deg, #fff, #f5f8f9); box-shadow: 0 1px 2px rgba(var(--ink-rgb), .07), inset 1px -1px #fff; text-decoration: none !important; }
.btn2:hover { background: #f2f5f6; border-color: var(--tint-strong); }
.btn2.sm { height: 28px; font-size: 12px; padding: 0 10px; }
.icon-btn { width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: var(--tint); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--tint); box-shadow: inset 1px 1px 2px rgba(var(--ink-rgb), .16), inset -1px -1px #ffffffbf; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 999px; height: 26px; padding: 0 12px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--text); white-space: nowrap; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(var(--ink-rgb), .12); }
.seg button .n { color: var(--note); font-weight: 600; margin-left: 4px; }
.field { height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 10px; outline: none; color: var(--ink); font-size: 13px; }
textarea.field { height: auto; min-height: 84px; padding: 8px 10px; resize: vertical; width: 100%; line-height: 1.45; }
.field::placeholder { color: var(--note); }
.field:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--tint); }
.search { position: relative; display: inline-flex; align-items: center; }
.search svg { position: absolute; left: 10px; color: var(--note); }
.search .field { padding-left: 32px; width: 280px; border-radius: 999px; }
label.lb { display: block; font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin: 12px 0 5px; }

/* etiquetas: avançar no processo = escurecer */
.tag { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; background: var(--tint); color: var(--ink); }
.tag.e-por_contactar { background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.tag.e-contactada { background: var(--tint); }
.tag.e-em_conversa { background: var(--tint-strong); color: var(--side-0); }
.tag.e-reuniao_marcada, .tag.e-reuniao_feita { background: var(--accent); color: #fff; }
.tag.e-passada { background: var(--ink); color: #fff; }
.tag.e-pausa { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--side-muted); }
.tag.e-perdida { background: #fff; color: var(--note); box-shadow: inset 0 0 0 1px var(--line); }
.tag.line { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.tag.warn { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .55); }
.tag.dark { background: var(--ink); color: #fff; }
.lA { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font: 700 10.5px var(--mono); color: #fff; background: var(--accent);
  box-shadow: inset 1px -1px 0 rgba(255,255,255,.25), 1px -1px 4px -1px rgba(var(--accent-rgb), .6); }
.pos { font: 600 11px var(--mono); color: var(--note); min-width: 18px; display: inline-block; text-align: right; }

/* ------------------------------------------------------------------ cartões-número */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { padding: 14px 16px 15px; display: flex; flex-direction: column; gap: 2px; }
.stat .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.stat .ico { width: 30px; height: 30px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; color: var(--ink); }
.stat .ico.dark { background: var(--ink); color: #fff; }
.stat .ico.ac { background: rgba(var(--accent-rgb), .12); color: var(--accent); }
.stat .v { font: 500 30px/34px var(--serif); color: var(--ink); letter-spacing: -.01em; }
.stat .l { font-size: 12px; font-weight: 600; color: var(--text); }
.stat .s { font-size: 11px; color: var(--note); }
.meter { height: 4px; border-radius: 999px; background: var(--tint); overflow: hidden; margin-top: 8px; }
.meter > i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.meter.ac > i { background: var(--accent); }
.stack { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--bg); margin-top: 10px; }
.stack i { display: block; min-width: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: 11px; color: var(--text); margin-top: 8px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }

/* ------------------------------------------------------------------ hoje */
.tgroup { padding: 4px 16px 8px; }
.tgroup + .tgroup { border-top: 1px solid #edf0f1; }
.tgroup .gh { display: flex; align-items: center; gap: 8px; padding: 12px 0 6px; }
.task { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid #f1f3f4; }
.task:last-child { border-bottom: 0; }
.task .tic { width: 34px; height: 34px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--ink);
  box-shadow: inset 1px -1px 0 #fff, inset -1px 1px 0 rgba(var(--ink-rgb), .06); }
.task .tic.on { background: var(--ink); color: #fff; box-shadow: none; }
.task .tic.ac { background: rgba(var(--accent-rgb), .12); color: var(--accent); box-shadow: none; }
.task .t1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.task .t1 a { color: var(--ink); font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task .t2 { font-size: 12.5px; color: var(--text); margin-top: 1px; }
.task .t3 { font-size: 11.5px; color: var(--note); margin-top: 2px; display: flex; gap: 10px; align-items: center; }
.task .t3 .late { color: var(--accent); font-weight: 600; }
.task .t3 a { color: var(--text); }
.quote { margin: 4px 0 0; font-size: 12.5px; color: var(--ink); background: var(--bg); border-radius: 0 8px 8px 0; border-left: 3px solid var(--accent); padding: 6px 10px; }

/* ------------------------------------------------------------------ tabelas */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid #edf0f1; }
.toolbar .sp { flex: 1; }
.tbl-wrap { overflow: auto; max-height: calc(100vh - 290px); }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tbl thead th { position: sticky; top: 0; z-index: 2; height: 40px; padding: 0 12px; text-align: left; font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); background: linear-gradient(180deg, #fff, #f2f6f7); box-shadow: inset 0 -1px 0 var(--line); white-space: nowrap; }
.tbl thead th.r, .tbl td.r { text-align: right; }
.tbl td { height: 50px; padding: 4px 12px; border-bottom: 1px solid #eef1f2; color: var(--text); white-space: nowrap; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover td { background: var(--bg); }
.tbl td.strong, .tbl td .strong { color: var(--ink); font-weight: 700; }
.tbl .co { display: flex; align-items: center; gap: 10px; min-width: 260px; }
.tbl .co .nm { color: var(--ink); font-weight: 700; font-size: 13.5px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.tbl .co .s2 { font-size: 11.5px; color: var(--note); max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.mono-ini { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; font: 600 11.5px var(--mono); letter-spacing: -.02em; color: var(--side-0);
  background: linear-gradient(45deg, var(--tint-strong), var(--tint)); box-shadow: inset 1px -1px 0 rgba(255,255,255,.7), 0 0 0 1px rgba(var(--ink-rgb), .06); }
.tbl-foot { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; font-size: 12px; color: var(--text); border-top: 1px solid #edf0f1; }
.gr { color: var(--ink); font-weight: 600; } .gr.up::before { content: "↑ "; color: var(--accent); }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 20px; vertical-align: middle; }
.spark i { width: 5px; background: var(--side-muted); border-radius: 2px 2px 0 0; display: block; }
.spark i:last-child { background: var(--ink); }
.nextp { display: flex; flex-direction: column; line-height: 1.25; }
.nextp b { color: var(--ink); font-weight: 600; font-size: 12.5px; }
.nextp span { font-size: 11px; color: var(--note); }

/* ------------------------------------------------------------------ kanban */
.kanban { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.kcol { width: 236px; flex: none; border-radius: 14px; background: var(--tint-faint); box-shadow: inset 0 2px 0 var(--ink), inset 0 0 0 1px rgba(var(--ink-rgb), .05); padding: 10px 8px 8px; }
.kcol.pause { background: var(--bg); box-shadow: inset 0 2px 0 var(--side-muted), inset 0 0 0 1px rgba(var(--ink-rgb), .05); }
.kcol.final { background: transparent; box-shadow: inset 0 0 0 1px var(--tint-strong); border: 0; }
.kcol.hot { box-shadow: inset 0 2px 0 var(--accent), inset 0 0 0 1px rgba(var(--accent-rgb), .18); }
.kcol .kh { display: flex; align-items: center; gap: 6px; padding: 2px 4px 10px; }
.kcol .kh .code { font: 600 10px var(--mono); color: var(--note); }
.kcol .kh b { color: var(--ink); font-size: 13px; flex: 1; }
.kcol .kh .n { background: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--ink); padding: 1px 8px; box-shadow: 0 1px 2px rgba(var(--ink-rgb), .08); }
.kcard { background: #fff; border-radius: 11px; padding: 10px 11px; margin-bottom: 7px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--ink-rgb), .07), 0 1px 2px rgba(var(--ink-rgb), .05);
  transition: box-shadow .14s, transform .14s; }
.kcard:hover { box-shadow: 0 0 0 1px rgba(var(--ink-rgb), .16), 0 6px 16px -8px rgba(var(--ink-rgb), .35); transform: translateY(-1px); }
.kcard .nm { color: var(--ink); font-weight: 700; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.kcard .s2 { font-size: 11.5px; color: var(--text); margin-top: 2px; }
.kcard .ft { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #f0f2f3; font-size: 11px; color: var(--note); }
.kcard .ft .sp { flex: 1; }

/* ------------------------------------------------------------------ gaveta da empresa */
.scrim { position: fixed; inset: 0; background: rgba(var(--ink-rgb), .32); backdrop-filter: blur(2px); z-index: 50; animation: rin .2s both; }
.drawer { position: fixed; top: 8px; right: 8px; bottom: 8px; width: min(760px, calc(100vw - 16px)); z-index: 60; border-radius: 18px; background: var(--bg); display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(var(--ink-rgb), .32); animation: slidein .28s cubic-bezier(.2, .8, .2, 1) both; overflow: hidden; }
.hero { position: relative; padding: 18px 20px 18px; color: var(--side-text); background: linear-gradient(135deg, var(--side-0) 0%, var(--side-1) 45%, var(--side-2) 100%); flex: none; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 120% at 0% 100%, rgba(var(--side-rgb), .28), rgba(var(--side-rgb), 0) 60%), radial-gradient(60% 90% at 100% 0%, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), 0) 70%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero > * { position: relative; }
.hero .x { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.10); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hero .x:hover { background: rgba(255,255,255,.18); }
.hero .k2 { font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--side-muted); display: flex; gap: 8px; align-items: center; }
.hero .k2 .chip { padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(var(--side-rgb), .22); }
.hero .k2 .chip.a { background: var(--accent); color: #fff; box-shadow: none; }
.hero .idrow { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding-right: 40px; }
.hero .mono-big { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font: 600 17px var(--mono); color: #fff; flex: none;
  background: linear-gradient(45deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  box-shadow: inset 1px -1px 0 rgba(255,255,255,.22), inset -1px 1px 0 rgba(0,0,0,.25), 3px -3px 10px rgba(0,0,0,.25); }
.hero h2 { font: 500 24px/28px var(--serif); color: #fff; letter-spacing: -.01em; }
.hero .full { font-size: 12px; color: var(--side-muted); margin-top: 3px; }
.hero .kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.hero .kpis div { padding: 9px 11px; border-radius: 11px; background: rgba(255,255,255,.06); box-shadow: inset 1px -1px 0 rgba(255,255,255,.10), inset -1px 1px 0 rgba(0,0,0,.18); }
.hero .kpis b { display: block; font: 500 19px var(--serif); color: #fff; }
.hero .kpis span { font: 600 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--side-muted); }
.hero .bar { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.hero .bar select { height: 30px; border-radius: 999px; border: 1px solid rgba(var(--side-rgb), .3); background: rgba(255,255,255,.08); color: #fff; padding: 0 10px; font-size: 12px; font-weight: 600; }
.hero .bar select option { color: var(--ink); }
.hero .bar .hb { height: 30px; border-radius: 999px; border: 1px solid rgba(var(--side-rgb), .3); background: rgba(255,255,255,.06); color: #fff; padding: 0 12px; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; cursor: pointer; }
.hero .bar .hb:hover { background: rgba(255,255,255,.12); }
.tabs { display: flex; gap: 22px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line); flex: none; }
.tabs button { height: 44px; border: 0; background: none; font-size: 13.5px; color: var(--text); cursor: pointer; padding: 0; box-shadow: inset 0 -2px 0 transparent; display: inline-flex; gap: 6px; align-items: center; }
.tabs button.on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.tabs button .n { font-size: 10.5px; font-weight: 700; background: var(--tint); color: var(--ink); border-radius: 999px; padding: 0 6px; }
.dbody { flex: 1; overflow: auto; padding: 16px 20px 28px; display: flex; flex-direction: column; gap: 14px; }

/* registar contacto: os resultados em botões numerados, como na fila do Sonar */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.res { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; gap: 8px; padding: 0 10px; cursor: pointer; font-size: 12.5px;
  font-weight: 600; color: var(--ink); text-align: left; }
.res:hover { border-color: var(--tint-strong); background: var(--tint-faint); }
.res .k { font: 600 10.5px var(--mono); color: var(--note); width: 16px; height: 18px; border-radius: 5px; border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.res.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.res.on .k { color: #fff; border-color: rgba(255,255,255,.3); }
.tipo-seg { margin-bottom: 4px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.quick button { height: 26px; border-radius: 999px; border: 1px dashed var(--side-muted); background: #fff; font-size: 11.5px; font-weight: 600; color: var(--ink); padding: 0 10px; cursor: pointer; }
.quick button:hover { border-style: solid; }
.why { border-radius: 12px; padding: 12px 14px; background: linear-gradient(135deg, var(--side-1), var(--side-2)); color: #fff; font-size: 13.5px; line-height: 1.5; }
.why .label { color: var(--side-muted); margin-bottom: 4px; display: block; }

/* passos da sequência */
.steps { display: flex; gap: 0; overflow-x: auto; padding: 4px 2px 2px; }
.step { flex: 1 0 74px; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; font-size: 10.5px; color: var(--note); text-align: center; }
.step::before { content: ""; position: absolute; top: 12px; left: -50%; right: 50%; height: 2px; background: var(--tint); z-index: 0; }
.step:first-child::before { display: none; }
.step .b { width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--tint-strong); display: grid; place-items: center; position: relative; z-index: 1; color: var(--text); }
.step .b svg { width: 13px; height: 13px; }
.step.feito .b { background: var(--ink); color: #fff; box-shadow: none; }
.step.feito::before, .step.feito + .step::before { background: var(--ink); }
.step.hoje .b { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px rgba(var(--accent-rgb), .15); color: var(--accent); }
.step.cancelado .b, .step.saltado .b { opacity: .45; }
.step .t { font-weight: 600; color: var(--ink); font-size: 11px; }
.step.cancelado .t, .step.saltado .t { text-decoration: line-through; color: var(--note); }

/* linha do tempo */
.tl { position: relative; padding-left: 4px; }
.tl-it { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 14px; }
.tl-it::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 1px; background: var(--line); }
.tl-it:last-child::before { display: none; }
.tl-ic { width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; color: var(--ink); }
.tl-ic.on { background: var(--ink); color: #fff; box-shadow: none; }
.tl-ic.in { background: var(--accent); color: #fff; box-shadow: none; }
.tl-hd { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.tl-hd b { color: var(--ink); font-size: 13px; }
.tl-hd .m { font-size: 11px; color: var(--note); }
.tl-hd .d { margin-left: auto; font: 500 11px var(--mono); color: var(--note); }
.tl-body { font-size: 12.5px; color: var(--text); margin-top: 4px; white-space: pre-wrap; max-height: 140px; overflow: auto; background: #fff; border-radius: 10px; padding: 8px 10px;
  box-shadow: 0 0 0 1px rgba(var(--ink-rgb), .06); }

.plist .pr { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f2f3; }
.plist .pr:last-child { border-bottom: 0; }
.plist .nm { color: var(--ink); font-weight: 700; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.plist .cg { font-size: 11.5px; color: var(--text); }
.plist .cx { font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 3px; }
.plist .cx a { color: var(--accent); display: inline-flex; gap: 4px; align-items: center; }
.plist .cx svg { width: 13px; height: 13px; }
.meta { display: grid; grid-template-columns: 130px 1fr; gap: 7px 12px; font-size: 13px; margin: 0; }
.meta dt { color: var(--note); }
.meta dd { margin: 0; color: var(--ink); }
.cols6 { display: flex; align-items: flex-end; gap: 6px; height: 92px; padding-top: 14px; }
.cols6 .c { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.cols6 .c i { width: 100%; max-width: 30px; background: var(--side-muted); border-radius: 4px 4px 0 0; display: block; }
.cols6 .c.last i { background: var(--ink); }
.cols6 .c .y { font: 500 10px var(--mono); color: var(--note); }
.cols6 .c .t { font-size: 10px; font-weight: 700; color: var(--ink); }

/* emails: lista + leitor */
.mail { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.mlist { max-height: calc(100vh - 260px); overflow: auto; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; padding: 11px 14px; border-bottom: 1px solid #eef1f2; cursor: pointer; }
.mrow:hover { background: var(--bg); }
.mrow.on { background: var(--tint); }
.mrow .nm { color: var(--ink); font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .su { grid-column: 1 / -1; font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .d { font: 500 11px var(--mono); color: var(--note); }
.reader .rh { padding: 16px 18px 12px; border-bottom: 1px solid #eef1f2; }
.reader .rh h2 { font: 500 19px/24px var(--serif); }
.reader .rm { font-size: 12px; color: var(--text); margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.reader .rb { padding: 16px 18px; white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.reader .rf { padding: 12px 18px; border-top: 1px solid #eef1f2; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* frases */
.fcard { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.fcard .hd { display: flex; align-items: center; gap: 8px; }
.fcard .hd b { color: var(--ink); font-size: 14px; }
.fcard .hd .sp { flex: 1; }

/* equipa */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.member { overflow: hidden; }
.member .mt { padding: 16px; display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, var(--side-1), var(--side-2)); color: #fff; position: relative; }
.member .mt .avatar { width: 42px; height: 42px; font-size: 14px; }
.member .mt b { font: 500 17px var(--serif); display: block; }
.member .mt span { font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--side-muted); }
.member dl { padding: 12px 16px 16px; }

/* paleta, toast, entrada, arranque */
.palette { position: fixed; left: 50%; top: 12vh; transform: translateX(-50%); width: min(640px, calc(100vw - 24px)); z-index: 70; border-radius: 14px; background: #fff;
  box-shadow: 0 24px 64px rgba(var(--ink-rgb), .32); overflow: hidden; animation: rin .18s both; }
.palette input { width: 100%; height: 56px; border: 0; outline: none; padding: 0 18px; font-size: 16px; color: var(--ink); border-bottom: 1px solid #eee; }
.palette .items { max-height: 56vh; overflow: auto; padding: 6px; }
.palette .it { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 10px; border-radius: 8px; cursor: pointer; }
.palette .it.on { background: var(--tint); }
.palette .it .t { color: var(--ink); font-weight: 600; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.palette .it .s { font-size: 11.5px; color: var(--note); }
.palette .foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid #eee; font-size: 11px; color: var(--note); }
.palette .foot .kbd { border-color: var(--line); color: var(--text); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 18px 10px 12px;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 24px rgba(var(--ink-rgb), .28); animation: rin .18s both; font-size: 13px; max-width: calc(100vw - 32px); }
.toast .ok { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }
.toast .s { color: var(--side-muted); }
.toast.erro .ok { background: var(--accent); }
.empty { text-align: center; padding: 36px 16px; color: var(--text); }
.empty .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--bg); display: inline-grid; place-items: center; color: var(--ink); margin-bottom: 10px; }
.skel { background: linear-gradient(90deg, var(--bg), var(--tint), var(--bg)); background-size: 200% 100%; border-radius: 4px; height: 12px; animation: skel 1.2s linear infinite; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.splash { position: fixed; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, var(--side-0), var(--side-1) 40%, var(--side-2)); z-index: 100; }
.splash::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 0% 100%, rgba(var(--side-rgb), .22), transparent 60%), radial-gradient(60% 60% at 100% 0%, rgba(var(--accent-rgb), .20), transparent 70%); }
.splash .box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.radar { width: 92px; height: 92px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1px rgba(var(--side-rgb), .35);
  background: radial-gradient(circle, transparent 0 22%, rgba(var(--side-rgb), .22) 22.5% 23.5%, transparent 24% 46%, rgba(var(--side-rgb), .22) 46.5% 47.5%, transparent 48%); }
.radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(var(--accent-rgb), .55), rgba(var(--accent-rgb), 0) 25%, transparent 100%); animation: sweep 2.2s linear infinite; }
.radar i { position: absolute; width: 7px; height: 7px; border-radius: 2px; background: #fff; left: 64%; top: 28%; box-shadow: 0 0 10px rgba(255,255,255,.8); z-index: 1; }
.splash .t { font: 500 30px var(--serif); color: #fff; letter-spacing: -.01em; }
.splash .s { font: 600 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--side-muted); }
.boot-bar { position: relative; width: 180px; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(var(--side-rgb), .2); }
.boot-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: run 1.1s var(--ease) infinite; }
.login { width: min(400px, calc(100vw - 32px)); background: rgba(255,255,255,.06); border-radius: 18px; padding: 28px; box-shadow: inset 1px -1px 0 rgba(255,255,255,.12), inset -1px 1px 0 rgba(0,0,0,.25), 0 24px 64px rgba(0,0,0,.35); }
.login .btn { width: 100%; justify-content: center; height: 44px; background: #fff; background-image: none; color: var(--ink); box-shadow: none; }
.login .btn:hover { background: var(--tint-faint); }
.login .dev { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.login .dev a { color: var(--side-muted); font-size: 12px; border: 1px solid rgba(var(--side-rgb), .3); border-radius: 999px; padding: 4px 12px; }
.login .dev a:hover { color: #fff; text-decoration: none; }

@media (max-width: 1100px) { .two { grid-template-columns: minmax(0, 1fr); } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mail { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .app { display: block; height: auto; overflow: visible; }
  .side { position: fixed; left: 0; top: 0; height: 100vh; margin: 0; border-radius: 0 18px 18px 0; transform: translateX(-110%); transition: transform .2s var(--ease); }
  .side.open { transform: none; }
  .main { margin: 0; border-radius: 0; height: auto; min-height: 100vh; overflow: visible; }
  .page { padding: 16px 16px 40px; }
  .topbar { padding: 10px 16px; }
  .menu-btn { display: inline-flex !important; }
  .search .field { width: 100%; }
  .hero .kpis { grid-template-columns: repeat(2, 1fr); }
  .drawer { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; }
  h1 { font-size: 24px; }
}
.menu-btn { display: none; }
