/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio, geometry.
   Put this @layer first; product CSS outside the layer always wins. */
@layer od-layout {
  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  /* containers */
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  /* stacked information: each piece is its own line — never sibling inline spans */
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  /* media keeps its intrinsic ratio by default; never a distorted or cropped
     cover by accident. height:auto lets the ratio win over an <img height="…">
     attribute. Cropping to a uniform box is an explicit opt-in: set --od-ratio
     AND add .od-media-cover together (per the core rule, only where a crop is
     deliberate — tile thumbs, decorative fills — never on full-frame content). */
  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  /* functional inline SVG icons opt into bounded geometry; content SVGs keep their own */
  .od-icon { display: inline-block; inline-size: var(--od-icon-size, 1em); block-size: var(--od-icon-size, 1em); flex: none; }

  /* data text only — authored copy is rewritten to its budget instead */
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }   /* block-level reservation for a shared baseline */
  .od-nowrap  { white-space: nowrap; }           /* 数字+单位 · 价格+起 · 日期+星期 */
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; } /* CJK labels break at spaces / <wbr> first */

  /* screen skeleton (optional): bars take their own space, the middle scrolls — no padding guessed for chrome */
  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  /* horizontal rail: the next item peeks at the edge; trailing room survives overflow */
  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
/* /OD-LAYOUT-PRIMITIVES v1 */

:root {
  --bg: #070b0f;
  --bg-soft: #0a1016;
  --panel: #0d141b;
  --panel-2: #111a23;
  --panel-3: #141f29;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9eff3;
  --text-soft: #c3d0d9;
  --muted: #9aa9b4;
  --faint: #7f8f9b;
  --accent: #45e3c4;
  --accent-strong: #7cf2da;
  --accent-ink: #04140f;
  --accent-soft: rgba(69, 227, 196, 0.12);
  --amber: #f0b45e;
  --coral: #f0716b;
  --blue: #6fa8ff;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at 88% -240px, rgba(69, 227, 196, 0.08), transparent 62%),
    radial-gradient(900px 520px at -8% 108%, rgba(73, 122, 210, 0.06), transparent 58%),
    var(--bg);
  color: var(--text);
  font: 400 14px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }
::selection { background: rgba(69, 227, 196, 0.28); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.od-icon { --od-icon-size: 18px; }
.icon-xs { --od-icon-size: 12px; }
.icon-sm { --od-icon-size: 15px; }
.icon-lg { --od-icon-size: 22px; }
.icon-xl { --od-icon-size: 30px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border: 3px solid transparent; background-clip: content-box; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); border: 3px solid transparent; background-clip: content-box; }

/* ---------- shell ---------- */
.app { display: flex; height: 100dvh; position: relative; isolation: isolate; }
.app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(80% 70% at 60% 0%, #000 10%, transparent 80%);
}

.sidebar {
  width: 256px;
  flex: none;
  display: flex;
  flex-direction: column;
  background: #090e13;
  border-right: 1px solid var(--line);
  padding: 22px 16px 18px;
  z-index: 50;
  min-height: 0;
  overflow: hidden;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 6px 0; flex: none; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(69, 227, 196, 0.16), rgba(69, 227, 196, 0.03));
  border: 1px solid rgba(69, 227, 196, 0.28);
  color: var(--accent);
  box-shadow: inset 0 0 18px rgba(69, 227, 196, 0.08);
}
.brand-name { display: block; font: 600 15px/1.1 var(--font-display); letter-spacing: 0.16em; color: #f2fbf8; }
.brand-sub { display: block; margin-top: 3px; font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); }

.nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.nav::-webkit-scrollbar { width: 5px; }
.nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
.nav-label { padding: 0 12px 8px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.nav-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-btn .od-icon { color: #6f8494; transition: color 0.18s var(--ease); }
.nav-btn:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.nav-btn:hover .od-icon { color: #a5b7c3; }
.nav-btn.active {
  background: linear-gradient(90deg, rgba(69, 227, 196, 0.13), rgba(69, 227, 196, 0.02));
  border-color: rgba(69, 227, 196, 0.2);
  color: #dcfff8;
}
.nav-btn.active .od-icon { color: var(--accent); }
.nav-badge {
  margin-left: auto;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(240, 113, 107, 0.16);
  border: 1px solid rgba(240, 113, 107, 0.32);
  color: #ffb3af;
  font-size: 10.5px;
  font-weight: 600;
}
.nav-badge:empty, .nav-badge[hidden] { display: none; }

.sidebar-foot {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
  flex: none;
  border-top: 1px solid var(--line);
}
.local-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 11px;
  color: var(--faint);
  line-height: 1.35;
}
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(69, 227, 196, 0.12); flex: none; }
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.avatar {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(69, 227, 196, 0.2), rgba(69, 227, 196, 0.04));
  border: 1px solid rgba(69, 227, 196, 0.28);
  color: #c9fff3;
  font: 600 11px/1 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.avatar.lg { width: 44px; height: 44px; font-size: 14px; }
.profile-info { min-width: 0; flex: 1; }
.profile-name { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-role { display: block; font-size: 10.5px; color: var(--faint); margin-top: 1px; }
.profile .icon-btn { width: 30px; height: 30px; }

.scrim { display: none; position: fixed; inset: 0; background: rgba(3, 6, 9, 0.62); backdrop-filter: blur(2px); z-index: 45; }

.shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  flex: none;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 16, 0.72);
  backdrop-filter: blur(14px);
  z-index: 30;
}
.page-head { min-width: 0; margin-right: auto; }
.page-head h1 { font: 600 19px/1.2 var(--font-display); letter-spacing: -0.01em; }
.page-head p { margin-top: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 460px; }

.menu-btn { display: none; }

.search-wrap { position: relative; width: 330px; flex: none; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--faint);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.search-box:focus-within { border-color: rgba(69, 227, 196, 0.45); background: rgba(69, 227, 196, 0.035); box-shadow: 0 0 0 3px rgba(69, 227, 196, 0.08); }
.search-box input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 12.5px; color: var(--text); }
.search-box input::placeholder { color: var(--faint); }
.kbd {
  font: 500 10px/1 var(--font-body);
  padding: 4px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--faint);
  white-space: nowrap;
}
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 400px;
  max-width: calc(100vw - 28px);
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #0d151d;
  box-shadow: var(--shadow);
  z-index: 80;
  max-height: 420px;
  overflow-y: auto;
}
.search-group { padding: 8px 9px 5px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  text-align: left;
  color: var(--text-soft);
}
.search-item:hover { background: rgba(255, 255, 255, 0.05); }
.search-item .od-icon { color: var(--muted); }
.search-item strong { display: block; font-size: 12.5px; font-weight: 500; color: var(--text); }
.search-item span { display: block; font-size: 11px; color: var(--faint); }
.search-empty { padding: 18px 12px; text-align: center; font-size: 12px; color: var(--faint); }

.view { flex: 1; overflow-y: auto; padding: 26px 28px 56px; scroll-behavior: smooth; }
.view-inner { max-width: 1560px; margin: 0 auto; }

/* ---------- buttons ---------- */
.btn {
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.btn:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 600; box-shadow: 0 8px 24px rgba(69, 227, 196, 0.16); }
.btn-primary:hover { background: var(--accent-strong); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.btn-danger { color: #ffb1ad; border-color: rgba(240, 113, 107, 0.3); background: rgba(240, 113, 107, 0.08); }
.btn-danger:hover { background: rgba(240, 113, 107, 0.14); border-color: rgba(240, 113, 107, 0.45); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); border-color: var(--line); }
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 2px;
  border-radius: 6px;
  white-space: nowrap;
}
.link-btn:hover { color: var(--accent-strong); }

/* ---------- panels ---------- */
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.006)),
    var(--panel);
  padding: 18px 20px;
  min-width: 0;
}
.panel-head { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; margin-bottom: 16px; }
.panel-title { font: 600 14.5px/1.25 var(--font-display); letter-spacing: -0.005em; }
.panel-sub { margin-top: 3px; font-size: 11.5px; color: var(--faint); }
.panel-head .link-btn { margin-top: 1px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi {
  display: block;
  text-align: left;
  padding: 17px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.006)), var(--panel);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), background 0.18s var(--ease);
  min-width: 0;
}
.kpi:hover { border-color: rgba(69, 227, 196, 0.24); transform: translateY(-1px); }
.kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.kpi-label { font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.kpi-icon {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(69, 227, 196, 0.07);
  border: 1px solid rgba(69, 227, 196, 0.14);
  color: var(--accent);
}
.kpi-value { display: block; margin-top: 14px; font: 600 29px/1 var(--font-display); letter-spacing: -0.025em; color: #f4fbf9; white-space: nowrap; }
.kpi-foot { margin-top: 9px; font-size: 11.5px; color: var(--faint); display: flex; align-items: center; gap: 6px; min-height: 17px; }
.kpi-foot .trend { color: var(--accent); font-weight: 500; }
.kpi-foot .warn { color: var(--amber); }

.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* funnel overview */
.funnel-list { display: flex; flex-direction: column; gap: 3px; }
.funnel-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}
.funnel-row:first-child { border-top: 0; }
.funnel-name { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-soft); min-width: 0; }
.stage-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.funnel-count { font-size: 11px; color: var(--faint); }
.funnel-track { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.funnel-fill { height: 100%; border-radius: 999px; min-width: 4px; transition: width 0.4s var(--ease); }
.funnel-value { font: 500 12px/1 var(--font-display); color: var(--text-soft); white-space: nowrap; min-width: 92px; text-align: right; }

/* task lines */
.task-list { display: flex; flex-direction: column; }
.task-line {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  gap: 11px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.task-line:first-child { border-top: 0; }
.task-check {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.task-check .od-icon { display: none; }
.task-check:hover { border-color: var(--accent); background: rgba(69, 227, 196, 0.1); }
.task-line.is-done .task-check { background: var(--accent); border-color: var(--accent); }
.task-line.is-done .task-check .od-icon { display: block; }
.task-title { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-line.is-done .task-title { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.25); }
.task-meta { display: block; margin-top: 2px; font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-time { font: 500 11px/1 var(--font-display); color: var(--muted); padding: 5px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); white-space: nowrap; }
.task-line.is-late .task-time { color: #ffb1ad; border-color: rgba(240, 113, 107, 0.28); background: rgba(240, 113, 107, 0.08); }
.task-line .icon-btn { width: 28px; height: 28px; }

/* movement */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 76px; padding: 4px 2px 0; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.chart-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; height: 100%; }
.chart-bar { width: 100%; max-width: 30px; border-radius: 5px 5px 2px 2px; background: rgba(69, 227, 196, 0.22); min-height: 3px; transition: background 0.16s var(--ease); }
.chart-col.today .chart-bar { background: var(--accent); box-shadow: 0 0 16px rgba(69, 227, 196, 0.18); }
.chart-label { font-size: 9.5px; color: var(--faint); white-space: nowrap; }
.feed-list { display: flex; flex-direction: column; margin-top: 8px; }
.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 9px 2px;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.feed-item:first-child { border-top: 0; }
.feed-item:hover .feed-name { color: var(--accent); }
.feed-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(69, 227, 196, 0.55); margin-top: 6px; flex: none; }
.feed-body { min-width: 0; flex: 1; }
.feed-name { display: block; font-size: 12px; font-weight: 500; color: var(--text-soft); transition: color 0.16s var(--ease); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-text { display: block; font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-time { font-size: 10.5px; color: var(--faint); white-space: nowrap; margin-top: 2px; }

/* attention */
.attention-list { display: flex; flex-direction: column; gap: 8px; }
.attention-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  text-align: left;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.attention-item:hover { border-color: rgba(240, 180, 94, 0.32); background: rgba(240, 180, 94, 0.04); }
.attention-icon { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; background: rgba(240, 180, 94, 0.1); color: var(--amber); border: 1px solid rgba(240, 180, 94, 0.2); }
.attention-icon.danger { background: rgba(240, 113, 107, 0.1); color: var(--coral); border-color: rgba(240, 113, 107, 0.22); }
.attention-body { flex: 1; min-width: 0; }
.attention-title { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-soft); }
.attention-sub { display: block; margin-top: 2px; font-size: 11px; color: var(--faint); }
.attention-arrow { color: var(--faint); margin-top: 3px; }

.empty-inline { display: flex; align-items: center; gap: 8px; padding: 18px 4px; color: var(--faint); font-size: 12px; }
.empty-inline .od-icon { color: var(--accent); }

/* ---------- board ---------- */
.view-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.view-toolbar .spacer { flex: 1; }
.board {
  display: flex;
  flex-flow: row nowrap;
  gap: 12px;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 14px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.board-col {
  flex: 1 0 260px;
  min-width: 260px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 320px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.board-col.over { border-color: rgba(69, 227, 196, 0.45); background: rgba(69, 227, 196, 0.04); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 3px 3px 2px; }
.col-name { font-size: 12px; font-weight: 600; color: var(--text-soft); min-width: 0; }
.col-count { margin-left: auto; font: 500 10.5px/1 var(--font-display); color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); padding: 4px 6px; border-radius: 999px; }
.col-total { padding: 0 3px 8px; font-size: 10.5px; color: var(--faint); border-bottom: 1px solid rgba(255, 255, 255, 0.05); margin-bottom: 1px; }
.lead-card {
  position: relative;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008)), #0f1821;
  cursor: grab;
  user-select: none;
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.lead-card:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22); }
.lead-card:active { cursor: grabbing; }
.lead-card.dragging { opacity: 0.4; }
.lead-top { display: flex; align-items: flex-start; gap: 8px; }
.lead-top .avatar { width: 27px; height: 27px; font-size: 9.5px; }
.lead-name { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-menu { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 6px; color: var(--faint); }
.card-menu:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.lead-meta { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 11px; color: var(--muted); min-width: 0; }
.lead-meta .od-icon { color: var(--faint); }
.lead-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-prop { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 10.5px; color: var(--faint); min-width: 0; }
.lead-prop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, 0.055); }
.lead-value { font: 600 12.5px/1 var(--font-display); color: #dffbf4; white-space: nowrap; }
.lead-next { display: flex; align-items: center; gap: 4px; margin-top: 7px; font-size: 10px; color: var(--faint); }
.lead-next.late { color: #ffa9a4; }
.board-empty { padding: 16px 8px; text-align: center; font-size: 10.5px; color: var(--faint); border: 1px dashed var(--line); border-radius: 9px; }

/* tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.tag .dot { width: 5px; height: 5px; border-radius: 50%; flex: none; }
.tag-hot { color: #ffb0ab; border-color: rgba(240, 113, 107, 0.24); background: rgba(240, 113, 107, 0.07); }
.tag-warm { color: #f4c887; border-color: rgba(240, 180, 94, 0.22); background: rgba(240, 180, 94, 0.07); }
.tag-cold { color: #9fb2bf; }
.tag-accent { color: #b9fff1; border-color: rgba(69, 227, 196, 0.24); background: rgba(69, 227, 196, 0.07); }
.tag-muted { color: var(--faint); }
.tag-late { color: #ffb0ab; border-color: rgba(240, 113, 107, 0.3); background: rgba(240, 113, 107, 0.09); }

/* ---------- table ---------- */
.table-panel { padding: 0; overflow: hidden; }
.table-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table-toolbar .search-mini { width: 240px; }
.table-count { margin-left: auto; font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  padding: 10px 16px;
  text-align: left;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td { padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.045); font-size: 12.5px; color: var(--text-soft); vertical-align: middle; }
tbody tr:first-child td { border-top: 0; }
tbody tr { cursor: pointer; transition: background 0.14s var(--ease); }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.row-client { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.row-client .avatar { width: 30px; height: 30px; font-size: 10px; }
.row-client-info { display: block; min-width: 0; }
.row-client-info strong { display: block; font-weight: 500; color: var(--text); font-size: 12.5px; }
.row-client-info > span { display: block; font-size: 10.5px; color: var(--faint); margin-top: 1px; }
.row-value { font: 500 12px/1 var(--font-display); color: var(--text-soft); white-space: nowrap; }
.row-next { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.row-next.late { color: #ffa9a4; }
.cell-clip { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* filter chips */
.chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.active { color: #c9fff3; border-color: rgba(69, 227, 196, 0.35); background: rgba(69, 227, 196, 0.1); }

/* ---------- calendar ---------- */
.agenda-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 14px; align-items: start; }
.cal-panel { padding: 18px; }
.cal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cal-month { font: 600 16px/1.2 var(--font-display); text-transform: capitalize; }
.cal-head .cal-sub { margin-top: 3px; font-size: 11px; color: var(--faint); }
.cal-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.cal-nav .btn { height: 30px; font-size: 11.5px; padding: 0 10px; }
.cal-nav .icon-btn { width: 30px; height: 30px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding-bottom: 7px; }
.cal-week span { text-align: center; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding: 4px 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-cell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-height: 92px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.014);
  text-align: left;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
  min-width: 0;
}
.cal-cell:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.cal-cell.muted { opacity: 0.42; }
.cal-cell.selected { border-color: rgba(69, 227, 196, 0.4); background: rgba(69, 227, 196, 0.045); }
.cal-num { font: 500 11px/1 var(--font-display); color: var(--text-soft); width: 21px; height: 21px; display: grid; place-items: center; border-radius: 6px; flex: none; }
.cal-cell.today .cal-num { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.cal-events { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  border-radius: 4px;
  background: rgba(69, 227, 196, 0.09);
  border-left: 2px solid rgba(69, 227, 196, 0.65);
  font-size: 9px;
  color: #b7e9df;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cal-pill.done { opacity: 0.45; text-decoration: line-through; }
.cal-pill.amber { background: rgba(240, 180, 94, 0.09); border-left-color: rgba(240, 180, 94, 0.65); color: #f2d3a2; }
.cal-pill.blue { background: rgba(111, 168, 255, 0.09); border-left-color: rgba(111, 168, 255, 0.6); color: #c2d8ff; }
.cal-more { font-size: 9px; color: var(--faint); padding-left: 2px; }
.day-panel { display: flex; flex-direction: column; min-height: 420px; }
.day-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.day-date { font: 600 15px/1.25 var(--font-display); text-transform: capitalize; }
.day-sub { margin-top: 3px; font-size: 11px; color: var(--faint); }
.day-head .icon-btn { margin-left: auto; }
.day-list { display: flex; flex-direction: column; padding-top: 6px; }
.day-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.day-item:first-child { border-top: 0; }
.day-time { font: 500 11px/1 var(--font-display); color: var(--accent); padding-top: 3px; white-space: nowrap; }
.day-time.late { color: #ffa9a4; }
.day-body { min-width: 0; }
.day-title { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-soft); line-height: 1.4; }
.day-item.is-done .day-title { color: var(--faint); text-decoration: line-through; }
.day-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 10.5px; color: var(--faint); flex-wrap: wrap; }
.day-actions { display: flex; align-items: center; gap: 2px; }
.day-actions .task-check { margin-top: 2px; }
.day-empty { padding: 30px 4px; text-align: center; font-size: 11.5px; color: var(--faint); }
.cal-legend { display: flex; align-items: center; gap: 14px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 10px; color: var(--faint); flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-swatch { width: 8px; height: 8px; border-radius: 2px; background: rgba(69, 227, 196, 0.75); }

/* ---------- whatsapp ---------- */
.wa-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 14px; height: calc(100dvh - 178px); min-height: 520px; }
.wa-list-panel { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.wa-connect { margin: 12px; padding: 12px; border: 1px solid rgba(69, 227, 196, 0.16); border-radius: 10px; background: rgba(69, 227, 196, 0.035); }
.wa-connect-top { display: flex; align-items: flex-start; gap: 9px; }
.wa-connect-top .od-icon { color: var(--accent); margin-top: 1px; }
.wa-connect strong { display: block; font-size: 12px; font-weight: 600; color: #d9fbf3; }
.wa-connect small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.wa-connect p { margin-top: 8px; font-size: 10.5px; line-height: 1.5; color: var(--faint); }
.wa-connect .link-btn { margin-top: 6px; padding: 2px 0; }
.wa-search { padding: 0 12px 10px; }
.wa-lead-list { flex: 1; overflow-y: auto; border-top: 1px solid var(--line); }
.wa-lead-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  transition: background 0.15s var(--ease);
}
.wa-lead-row:hover { background: rgba(255, 255, 255, 0.035); }
.wa-lead-row.active { background: rgba(69, 227, 196, 0.065); }
.wa-lead-main { flex: 1; min-width: 0; }
.wa-lead-name { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--text-soft); }
.wa-lead-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-lead-preview { display: block; margin-top: 3px; font-size: 10.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-lead-time { font-size: 9.5px; color: var(--faint); white-space: nowrap; padding-top: 2px; }
.wa-empty-list { padding: 30px 16px; text-align: center; font-size: 11.5px; color: var(--faint); }
.wa-chat { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.wa-chat-head { display: flex; align-items: center; gap: 11px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex: none; }
.wa-chat-head .avatar { width: 38px; height: 38px; font-size: 12px; }
.wa-chat-title { min-width: 0; flex: 1; }
.wa-chat-name { font: 600 14px/1.25 var(--font-display); }
.wa-chat-sub { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-size: 10.5px; color: var(--faint); flex-wrap: wrap; }
.wa-chat-actions { display: flex; align-items: center; gap: 4px; }
.wa-note {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(240, 180, 94, 0.045);
  font-size: 10.5px;
  color: #d8b784;
  flex: none;
}
.wa-note .od-icon { flex: none; }
.wa-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.wa-msg { max-width: 74%; align-self: flex-start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px 10px 10px 3px; background: rgba(255, 255, 255, 0.035); }
.wa-msg.out { align-self: flex-end; border-radius: 10px 10px 3px 10px; background: rgba(69, 227, 196, 0.08); border-color: rgba(69, 227, 196, 0.18); }
.wa-msg p { font-size: 12px; line-height: 1.55; color: var(--text-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.wa-msg time { display: block; margin-top: 5px; font-size: 9.5px; color: var(--faint); }
.wa-msg .wa-channel { display: block; font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.wa-msg.out .wa-channel { color: rgba(69, 227, 196, 0.7); }
.wa-no-msgs { margin: auto; text-align: center; color: var(--faint); font-size: 11.5px; line-height: 1.6; }
.wa-composer { flex: none; padding: 12px 16px 14px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.1); }
.wa-templates { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 9px; scrollbar-width: none; }
.wa-templates::-webkit-scrollbar { display: none; }
.wa-template {
  flex: none;
  height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 10.5px;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.wa-template:hover { color: var(--accent); border-color: rgba(69, 227, 196, 0.3); }
.wa-composer textarea {
  width: 100%;
  min-height: 74px;
  max-height: 150px;
  resize: vertical;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #0a1118;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.55;
}
.wa-composer textarea:focus { outline: none; border-color: rgba(69, 227, 196, 0.4); box-shadow: 0 0 0 3px rgba(69, 227, 196, 0.08); }
.wa-composer-foot { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.wa-composer-foot .hint { font-size: 10px; color: var(--faint); flex: 1; }
.wa-chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px; text-align: center; }
.wa-chat-empty .empty-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(69, 227, 196, 0.07); border: 1px solid rgba(69, 227, 196, 0.16); color: var(--accent); }
.wa-chat-empty h3 { font: 600 14px/1.3 var(--font-display); }
.wa-chat-empty p { max-width: 300px; font-size: 11.5px; color: var(--faint); line-height: 1.6; }

/* ---------- properties ---------- */
.props-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.prop-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
  width: 100%;
}
.prop-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.prop-media-wrap { display: block; position: relative; background: #0a1118; overflow: hidden; }
.prop-media { aspect-ratio: 4 / 3; object-fit: cover; }
.prop-status { position: absolute; top: 10px; left: 10px; }
.prop-status .tag { background: rgba(7, 11, 15, 0.82); backdrop-filter: blur(6px); }
.prop-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 7px; }
.prop-title { font: 600 13.5px/1.35 var(--font-display); color: var(--text); }
.prop-loc { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--faint); }
.prop-specs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); }
.prop-specs span { display: inline-flex; align-items: center; gap: 4px; }
.prop-specs .od-icon { color: var(--faint); }
.prop-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 3px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.055); }
.prop-price { font: 600 17px/1 var(--font-display); color: #dcfcf5; white-space: nowrap; }
.prop-match { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--accent); }
.prop-desc { font-size: 12px; line-height: 1.65; color: var(--muted); }

/* ---------- tasks view ---------- */
.tasks-summary { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.task-group { margin-top: 14px; }
.task-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.task-group-title { font: 600 12.5px/1.3 var(--font-display); }
.task-group-count { font-size: 10.5px; color: var(--faint); }
.task-group .task-line { padding: 12px 2px; }
.task-group .task-title { font-size: 13px; }
.task-group .icon-btn.danger:hover { background: rgba(240, 113, 107, 0.1); color: var(--coral); border-color: rgba(240, 113, 107, 0.25); }
.group-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.group-dot.late { background: var(--coral); }
.group-dot.today { background: var(--accent); }
.group-dot.soon { background: var(--amber); }

/* ---------- dialogs ---------- */
dialog {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 0;
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(3, 6, 9, 0.72); backdrop-filter: blur(6px); }
dialog.modal { margin: auto; }
dialog.modal[open] { animation: modalIn 0.18s var(--ease); }
dialog.modal-sm { width: min(430px, calc(100vw - 32px)); }
dialog.drawer[open] { display: flex; flex-direction: column; }
dialog.drawer {
  width: min(480px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  border-radius: 0;
  border: 0;
  border-left: 1px solid var(--line-strong);
  background: #0a1118;
  animation: drawerIn 0.22s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(0.99); } to { opacity: 1; transform: none; } }
@keyframes drawerIn { from { transform: translateX(24px); opacity: 0.5; } to { transform: none; opacity: 1; } }

.modal-form { display: flex; flex-direction: column; max-height: calc(100dvh - 48px); }
.modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 15px; border-bottom: 1px solid var(--line); flex: none; }
.modal-head h2 { font: 600 17px/1.25 var(--font-display); }
.modal-head p { margin-top: 3px; font-size: 11.5px; color: var(--faint); }
.modal-head .icon-btn { margin-left: auto; flex: none; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); flex: none; background: rgba(0, 0, 0, 0.12); }
.modal-foot .foot-info { margin-right: auto; font-size: 10.5px; color: var(--faint); }

.drawer-head { flex: none; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.drawer-top { display: flex; align-items: flex-start; gap: 12px; }
.drawer-top .icon-btn { margin-left: auto; }
.drawer-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.drawer-person h2 { font: 600 17px/1.3 var(--font-display); overflow-wrap: anywhere; }
.drawer-person .tags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.drawer-actions { display: flex; align-items: center; gap: 7px; margin-top: 15px; flex-wrap: wrap; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 22px 24px; }
.drawer-foot { flex: none; padding: 12px 22px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, 0.12); }
.drawer-foot .btn-danger { margin-left: auto; }
.drawer-section { padding: 17px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.055); }
.drawer-section:last-child { border-bottom: 0; }
.section-title { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 11px; }
.section-title .od-icon { color: #6f8494; }
.section-title .link-btn { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 10.5px; }
.detail-list { display: flex; flex-direction: column; gap: 9px; }
.detail-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text-soft); }
.detail-row .od-icon { color: var(--faint); margin-top: 1px; flex: none; }
.detail-row span { overflow-wrap: anywhere; }
.detail-label { font-size: 10.5px; color: var(--faint); display: block; }
.detail-value { font-size: 12.5px; color: var(--text-soft); display: block; margin-top: 1px; }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kv-box { padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.02); min-width: 0; }
.kv-box .detail-value { overflow-wrap: anywhere; }
.stage-select-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.select-inline {
  width: 100%;
  height: 36px;
  padding: 0 30px 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 12px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b9ba7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}
.select-inline:focus { outline: none; border-color: rgba(69, 227, 196, 0.45); }
.mini-task { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.045); font-size: 11.5px; }
.mini-task:first-child { border-top: 0; }
.mini-task .od-icon { color: var(--faint); }
.mini-task .time { margin-left: auto; font-size: 10px; color: var(--faint); white-space: nowrap; }
.mini-task.late .time { color: #ffa9a4; }
.mini-prop { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.045); width: 100%; text-align: left; }
.mini-prop:first-child { border-top: 0; }
.mini-prop img { width: 52px; height: 39px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex: none; }
.mini-prop .info { flex: 1; min-width: 0; }
.mini-prop strong { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-prop .info > span { display: block; font-size: 10px; color: var(--faint); margin-top: 2px; }
.mini-prop .price { font: 500 11px/1 var(--font-display); color: var(--accent); white-space: nowrap; }

.timeline { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 15px; }
.timeline::before { content: ""; position: absolute; left: 3px; top: 5px; bottom: 4px; width: 1px; background: linear-gradient(180deg, rgba(69, 227, 196, 0.3), rgba(255, 255, 255, 0.05)); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -15px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: #0a1118; border: 1.5px solid rgba(69, 227, 196, 0.6); }
.tl-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tl-channel { font-size: 9.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.tl-channel.nota { color: var(--muted); }
.tl-meta time { font-size: 9.5px; color: var(--faint); }
.tl-item p { margin-top: 4px; font-size: 11.5px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.note-form { display: flex; flex-direction: column; gap: 7px; margin-top: 13px; }
.note-form textarea { width: 100%; min-height: 62px; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: #080e14; color: var(--text); font-size: 12px; line-height: 1.55; resize: vertical; }
.note-form textarea:focus { outline: none; border-color: rgba(69, 227, 196, 0.4); }
.note-form .row { display: flex; justify-content: flex-end; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.01em; }
.req { color: var(--accent); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background-color: #080e14;
  color: var(--text);
  font-size: 12.5px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field textarea { height: auto; min-height: 82px; padding: 9px 11px; line-height: 1.55; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b9ba7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.field input::placeholder, .field textarea::placeholder { color: #56666f; }
.field input:focus, .field select:focus, .field textarea:focus, .select-inline:focus { outline: none; border-color: rgba(69, 227, 196, 0.45); box-shadow: 0 0 0 3px rgba(69, 227, 196, 0.08); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: rgba(240, 113, 107, 0.6); }
.field .err { display: none; font-size: 10.5px; color: #ff9d97; }
.field.has-error .err { display: block; }
.form-note { grid-column: 1 / -1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.02); font-size: 10.5px; line-height: 1.55; color: var(--faint); }

/* search mini */
.search-mini {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--faint);
}
.search-mini:focus-within { border-color: rgba(69, 227, 196, 0.35); }
.search-mini input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 12px; color: var(--text); }
.search-mini input::placeholder { color: var(--faint); }

/* pop menu */
.menu-root { position: fixed; inset: 0; pointer-events: none; z-index: 95; }
.pop-menu {
  position: absolute;
  pointer-events: auto;
  width: 196px;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #0f1821;
  box-shadow: var(--shadow);
  animation: modalIn 0.14s var(--ease);
}
.pop-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 9px;
  border-radius: 6px;
  text-align: left;
  font-size: 11.5px;
  color: var(--text-soft);
}
.pop-item:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.pop-item .od-icon { color: var(--muted); }
.pop-item .check { margin-left: auto; color: var(--accent); }
.pop-label { padding: 8px 9px 4px; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.pop-sep { height: 1px; margin: 4px 0; background: var(--line); }

.toolbar-note { font-size: 11.5px; color: var(--faint); line-height: 1.5; }
.confirm-text { font-size: 13px; line-height: 1.65; color: var(--text-soft); }
.confirm-text strong { color: var(--text); font-weight: 600; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 14px);
  padding: 10px 16px;
  border-radius: 9px;
  border: 1px solid rgba(69, 227, 196, 0.28);
  background: #10201f;
  color: #d8fff6;
  font-size: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 120;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(240, 113, 107, 0.35); background: #221313; color: #ffd0cd; }

/* empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 60px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--faint);
}
.empty-state .empty-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(69, 227, 196, 0.06); border: 1px solid rgba(69, 227, 196, 0.14); color: var(--accent); margin-bottom: 4px; }
.empty-state h3 { font: 600 14px/1.3 var(--font-display); color: var(--text-soft); }
.empty-state p { max-width: 340px; font-size: 11.5px; line-height: 1.6; }
.empty-state .btn { margin-top: 8px; }

/* settings */
.settings-section { margin-top: 20px; }
.settings-section:first-child { margin-top: 0; }
.settings-title { font: 600 12px/1.3 var(--font-display); margin-bottom: 4px; }
.settings-desc { font-size: 10.5px; line-height: 1.55; color: var(--faint); margin-bottom: 11px; }
.backup-row { display: flex; gap: 7px; flex-wrap: wrap; }
.backup-row .btn { flex: 1 1 auto; }
.import-label { position: relative; overflow: hidden; }
.import-label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.danger-zone { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.danger-zone .hint { flex: 1; font-size: 10.5px; color: var(--faint); min-width: 160px; }

/* responsive */
@media (max-width: 1240px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid > .panel { grid-column: span 6; }
  .dash-grid > .span-12 { grid-column: span 12; }
}
@media (max-width: 1100px) {
  .dash-grid > .panel { grid-column: span 12; }
  .agenda-grid { grid-template-columns: 1fr; }
  .wa-layout { grid-template-columns: 300px minmax(0, 1fr); }
  .page-head p { max-width: 320px; }
}
@media (max-width: 1024px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; transform: translateX(-100%); transition: transform 0.24s var(--ease); width: 272px; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .scrim.show { display: block; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 0 20px; }
  .view { padding: 22px 20px 48px; }
  .search-wrap { width: 260px; }
}
@media (max-width: 900px) {
  .hide-md { display: none !important; }
  .board-col { flex-basis: 268px; min-width: 268px; }
  .cal-cell { min-height: 80px; }
  .wa-layout { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .topbar { flex-wrap: wrap; min-height: 0; padding: 14px 16px; gap: 10px; }
  .page-head { flex: 1 1 auto; }
  .page-head h1 { font-size: 17px; }
  .page-head p { max-width: 100%; font-size: 11px; }
  .search-wrap { order: 3; flex: 1 1 100%; width: auto; }
  .topbar > .btn-primary { order: 2; margin-left: auto; }
  .menu-btn { order: 0; }
  .kbd { display: none; }
  .view { padding: 16px 14px 44px; }
  .panel { padding: 15px 14px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 25px; }
  .dash-grid { gap: 10px; margin-top: 10px; }
  .kpi-grid { gap: 10px; }
  .wa-layout { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .wa-list-panel { max-height: 380px; }
  .wa-chat { min-height: 520px; }
  .wa-msg { max-width: 88%; }
  .agenda-grid { gap: 10px; }
  .cal-panel { padding: 12px 10px; }
  .cal-cell { min-height: 66px; padding: 5px; }
  .cal-events { display: none; }
  .cal-cell .cal-num { margin: 0 auto; }
  .cal-more { display: none; }
  .cal-pill { display: none; }
  .cal-cell.has-events::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin: 2px auto 0; }
  .props-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .kv-grid { grid-template-columns: 1fr; }
  .stage-select-row { grid-template-columns: 1fr; }
  .search-results { width: calc(100vw - 28px); left: 0; right: auto; }
  .modal-foot .foot-info { display: none; }
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 16px; padding-right: 16px; }
  .modal-head, .modal-body, .modal-foot { padding-left: 16px; padding-right: 16px; }
  .task-line { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .task-line .row-open, .task-line .row-actions { display: none !important; }
}
@media (max-width: 520px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-value { font-size: 27px; }
  .kpi-top { align-items: center; }
  .topbar > .btn-primary { padding: 0 11px; }
  .topbar > .btn-primary span { display: none; }
  .table-toolbar .search-mini { width: 100%; }
  .table-count { width: 100%; margin-left: 0; }
  .cal-nav .btn.today-btn { display: none; }
  .wa-chat-head { flex-wrap: wrap; }
  .wa-chat-actions { margin-left: auto; }
  .wa-chat-sub { width: 100%; }
  .wa-composer-foot { flex-wrap: wrap; }
  .wa-composer-foot .hint { flex: 1 1 100%; order: 3; }
  .day-item { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .props-grid { grid-template-columns: 1fr; }
  .drawer-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ---------- leads arquivados ---------- */
.reason-cell {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 150px;
  max-width: 340px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-soft);
}
.reason-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.archive-hint { margin-top: 14px; font-size: 11px; line-height: 1.55; color: var(--faint); }
.archive-box {
  padding: 12px 13px;
  border: 1px solid rgba(185, 164, 255, 0.28);
  border-radius: 11px;
  background: rgba(185, 164, 255, 0.06);
}
.archive-reason { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.tags .tag .od-icon { width: 11px; height: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ---------- empreendimentos ---------- */
.dev-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  width: 100%;
  color: var(--faint);
  background: linear-gradient(135deg, rgba(69, 227, 196, 0.1), rgba(111, 168, 255, 0.08)), #0a1118;
}
.dev-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.dev-from { font: 400 10.5px/1 var(--font-body, inherit); color: var(--faint); margin-right: 3px; }
.dev-hero { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); padding: 0; overflow: hidden; }
.dev-hero-media { background: #0a1118; min-height: 240px; }
.dev-hero-img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.dev-hero-info { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; min-width: 0; }
.dev-hero-info h2 { font: 600 22px/1.2 var(--font-display); color: var(--text); overflow-wrap: anywhere; }
.dev-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.dev-price { display: flex; align-items: baseline; gap: 8px; }
.dev-price span { font-size: 11.5px; color: var(--faint); }
.dev-price strong { font: 600 20px/1 var(--font-display); color: #dcfcf5; }
.dev-text { white-space: pre-wrap; font-size: 13px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.dev-panel { margin-top: 14px; padding: 0; }
.dev-panel-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.dev-panel-head h3 { font: 600 14px/1 var(--font-display); color: var(--text); }
.material-list { display: flex; flex-direction: column; }
.material-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 18px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.material-row:first-child { border-top: 0; }
.material-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--accent); background: rgba(69, 227, 196, 0.08); border: 1px solid rgba(69, 227, 196, 0.18); }
.material-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.material-main strong { font-weight: 500; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material-main span { font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material-actions { display: flex; align-items: center; gap: 6px; }
.dev-note { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.55; color: var(--faint); }
.dev-image-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 90px; padding: 10px; border: 1px dashed var(--line-strong); border-radius: 10px; background: rgba(255, 255, 255, 0.02); color: var(--faint); font-size: 11.5px; text-align: center; overflow: hidden; }
.dev-image-preview img { width: 100%; max-height: 200px; object-fit: cover; border-radius: 8px; display: block; }
.field input[type="file"] { height: auto; padding: 8px 10px; }
.field-hint { font-weight: 400; color: var(--faint); }
.field[hidden] { display: none; }
@media (max-width: 900px) {
  .dev-hero { grid-template-columns: 1fr; }
  .dev-hero-media { min-height: 200px; max-height: 280px; }
}
@media (max-width: 760px) {
  .material-row { grid-template-columns: 38px minmax(0, 1fr); }
  .material-actions { grid-column: 1 / -1; flex-wrap: wrap; }
  .dev-hero-info { padding: 18px; }
}
.dev-hero-media .dev-placeholder { display: grid; place-items: center; height: 100%; min-height: 200px; aspect-ratio: auto; }
.prop-media-wrap .dev-placeholder { display: grid; place-items: center; aspect-ratio: 4 / 3; }

/* ---------- marca ---------- */
.brand { padding: 0 4px; }
.brand-logo { display: block; width: 100%; max-width: 216px; height: auto; }

/* ---------- botão Assistente IA (destaque) ---------- */
.nav-ai-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 36px;
  margin: 18px 0 0;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  flex: none;
  box-shadow: 0 6px 18px rgba(69, 227, 196, 0.16);
  transition: background 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
  cursor: pointer;
}
.nav-ai-btn .od-icon { color: var(--accent-ink); --od-icon-size: 15px; pointer-events: none; }
.nav-ai-btn:hover {
  background: var(--accent-strong);
  box-shadow: 0 8px 22px rgba(69, 227, 196, 0.24);
}
.nav-ai-btn:active { transform: translateY(1px); }
.nav-ai-btn.active {
  background: var(--accent-strong);
  box-shadow: 0 0 0 2px rgba(69, 227, 196, 0.3), 0 6px 18px rgba(69, 227, 196, 0.18);
}

/* ---------- tela de login ---------- */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(1100px 560px at 88% -240px, rgba(69, 227, 196, 0.1), transparent 62%),
    radial-gradient(900px 520px at -8% 108%, rgba(73, 122, 210, 0.07), transparent 58%),
    var(--bg);
}
.login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 15%, transparent 75%);
}
.login-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 36px 32px 28px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, rgba(17, 26, 35, 0.96), rgba(10, 16, 22, 0.98));
  box-shadow: var(--shadow), 0 0 0 1px rgba(69, 227, 196, 0.04);
}
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-align: center;
}
.login-logo {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
}
.login-tagline {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-form .field {
  display: grid;
  gap: 6px;
}
.login-form label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.login-form input {
  height: 42px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.login-form input::placeholder { color: var(--faint); }
.login-form input:focus {
  outline: none;
  border-color: rgba(69, 227, 196, 0.45);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 3px rgba(69, 227, 196, 0.1);
}
.login-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid rgba(240, 113, 107, 0.35);
  background: rgba(240, 113, 107, 0.08);
  color: #ffb1ad;
  font-size: 12.5px;
  line-height: 1.4;
}
.login-submit {
  width: 100%;
  height: 44px;
  margin-top: 4px;
  font-size: 14px;
}
.login-hint {
  margin: 22px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--faint);
}

/* ---------- assistente de IA ---------- */
.view:has(.ai-wrap) { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 16px; }
.view:has(.ai-wrap) .view-inner { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; }
.ai-wrap { flex: 1; min-height: 0; width: 100%; max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; }
.ai-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ai-head .spacer { flex: 1; }
.ai-messages { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 4px 4px 14px; scroll-behavior: auto; }
.ai-msg { display: flex; flex-direction: column; gap: 8px; max-width: 88%; align-items: flex-start; }
.ai-msg.user { align-self: flex-end; align-items: flex-end; }
.ai-bubble { padding: 11px 14px; border-radius: 14px; font-size: 13px; line-height: 1.65; color: var(--text-soft); overflow-wrap: anywhere; }
.ai-msg.user .ai-bubble { color: var(--text); white-space: pre-wrap; background: rgba(69, 227, 196, 0.12); border: 1px solid rgba(69, 227, 196, 0.25); border-bottom-right-radius: 4px; }
.ai-msg.assistant .ai-bubble { background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ai-bubble p + p, .ai-bubble ul + p, .ai-bubble ol + p, .ai-bubble p + ul, .ai-bubble p + ol { margin-top: 8px; }
.ai-bubble ul, .ai-bubble ol { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.ai-bubble strong { color: var(--text); font-weight: 600; }
.ai-bubble code { padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.07); font-size: 12px; }
.ai-copy { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 7px; font-size: 11px; color: var(--faint); border: 1px solid transparent; background: transparent; cursor: pointer; }
.ai-copy:hover { color: var(--text); border-color: var(--line-strong); }
.ai-typing { display: inline-flex; align-items: center; gap: 5px; padding: 6px 4px; color: var(--faint); font-size: 11.5px; }
.ai-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.4; animation: aiDot 1.1s infinite ease-in-out; }
.ai-typing span:nth-child(2) { animation-delay: 0.18s; }
.ai-typing span:nth-child(3) { animation-delay: 0.36s; }
.ai-typing em { margin-left: 6px; font-style: normal; }
@keyframes aiDot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-action { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(69, 227, 196, 0.28); background: rgba(69, 227, 196, 0.05); max-width: 100%; }
.ai-action-body { flex: 1 1 220px; min-width: 0; font-size: 12.5px; line-height: 1.55; color: var(--text-soft); overflow-wrap: anywhere; }
.ai-action-body strong { color: var(--text); font-weight: 600; }
.ai-action-meta { color: var(--faint); font-size: 11.5px; }
.ai-action-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-action-state { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--faint); }
.ai-action.is-done { border-color: rgba(69, 227, 196, 0.2); }
.ai-action.is-done .ai-action-state { color: var(--accent); }
.ai-action.is-cancelled { border-color: var(--line); background: transparent; opacity: 0.75; }
.ai-action.is-error { border-color: rgba(240, 113, 107, 0.4); background: rgba(240, 113, 107, 0.06); }
.ai-action.is-error .ai-action-state { color: #ffb1ad; }
.ai-notice { text-align: center; font-size: 11.5px; color: var(--faint); }
.ai-error { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(240, 113, 107, 0.4); background: rgba(240, 113, 107, 0.07); color: #ffc4c0; font-size: 12.5px; line-height: 1.5; }
.ai-error span { flex: 1 1 240px; }
.ai-empty { margin: auto; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 20px 8px; }
.ai-empty .empty-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: rgba(69, 227, 196, 0.07); border: 1px solid rgba(69, 227, 196, 0.18); color: var(--accent); margin-bottom: 4px; }
.ai-empty h3 { font: 600 17px/1.3 var(--font-display); color: var(--text); }
.ai-empty p { font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.ai-suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.ai-input { display: flex; align-items: flex-end; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.ai-input textarea { flex: 1; min-height: 44px; max-height: 160px; padding: 11px 13px; resize: none; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--text); font: 400 13px/1.5 var(--font-body); }
.ai-input textarea::placeholder { color: #56666f; }
.ai-input textarea:focus { outline: none; border-color: rgba(69, 227, 196, 0.45); box-shadow: 0 0 0 3px rgba(69, 227, 196, 0.08); }
.ai-input .btn { height: 44px; }
.ai-input [hidden] { display: none; }
.ai-foot { margin-top: 8px; font-size: 10.5px; line-height: 1.5; color: var(--faint); text-align: center; }
.ai-setup { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.ai-setup .empty-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: rgba(69, 227, 196, 0.07); border: 1px solid rgba(69, 227, 196, 0.18); color: var(--accent); }
.ai-setup h2 { font: 600 20px/1.3 var(--font-display); color: var(--text); }
.ai-setup-lead { font-size: 13px; line-height: 1.65; color: var(--muted); }
.ai-steps { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; line-height: 1.6; color: var(--text-soft); }
.ai-steps a { color: var(--accent); }
.ai-setup-form { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.ai-privacy { font-size: 11px; line-height: 1.6; color: var(--faint); }
@media (max-width: 760px) {
  .ai-msg { max-width: 96%; }
  .ai-setup { padding: 20px; }
}
.ai-bubble ul { list-style: disc; }
.ai-bubble ol { list-style: decimal; }
.ai-bubble li::marker { color: var(--accent); }


/* ---------- funil: quadro na altura da tela (rolagem lateral sempre visível) ---------- */
.view:has(.board) { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 14px; }
.view:has(.board) .view-inner { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; }
.view:has(.board) .view-toolbar { flex: none; }
.board {
  flex: 1;
  min-height: 0;
  align-items: stretch;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(69, 227, 196, 0.4) rgba(255, 255, 255, 0.05);
}
.board::-webkit-scrollbar { height: 10px; }
.board::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 999px; }
.board::-webkit-scrollbar-thumb { background: rgba(69, 227, 196, 0.4); border-radius: 999px; }
.board::-webkit-scrollbar-thumb:hover { background: rgba(69, 227, 196, 0.65); }
.board-col { min-height: 0; }
.col-cards {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}
.col-cards::-webkit-scrollbar { width: 5px; }
.col-cards::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 999px; }

/* ---------- login: senha ---------- */
.pass-wrap { position: relative; }
.pass-wrap input { width: 100%; padding-right: 46px; }
.pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--faint); }
.pass-toggle:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ---------- botão Assistente IA: brilho e estado ativo ---------- */
.nav-ai-btn { position: relative; overflow: hidden; height: 38px; animation: aiGlow 3.4s ease-in-out infinite; }
.nav-ai-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: aiShine 5.5s ease-in-out infinite;
  pointer-events: none;
}
.nav-ai-btn .od-icon { animation: aiTwinkle 2.6s ease-in-out infinite; }
.nav-ai-btn.active {
  animation: none;
  background: var(--accent-strong);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent), 0 10px 28px rgba(69, 227, 196, 0.4);
}
.nav-ai-btn.active::after { display: none; }
@keyframes aiGlow {
  0%, 100% { box-shadow: 0 6px 18px rgba(69, 227, 196, 0.16); }
  50% { box-shadow: 0 8px 28px rgba(69, 227, 196, 0.42); }
}
@keyframes aiShine { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes aiTwinkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.18) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) {
  .nav-ai-btn, .nav-ai-btn::after, .nav-ai-btn .od-icon { animation: none; }
}

/* ---------- empreendimentos: escolha da cidade ---------- */
.city-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.city-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008)), #0f1821;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.city-card:hover { border-color: rgba(69, 227, 196, 0.45); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.city-cover { position: relative; display: block; aspect-ratio: 16 / 8; overflow: hidden; background: #0a1118; }
.city-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7, 11, 15, 0.75)); pointer-events: none; }
.city-mosaic { display: grid; width: 100%; height: 100%; gap: 2px; }
.city-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.city-mosaic.m2 { grid-template-columns: 1fr 1fr; }
.city-mosaic.m3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.city-mosaic.m3 img:first-child { grid-row: 1 / span 2; }
.city-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--faint); background: linear-gradient(135deg, rgba(69, 227, 196, 0.14), rgba(111, 168, 255, 0.1)), #0a1118; }
.city-body { display: flex; align-items: center; gap: 14px; padding: 18px 22px 20px; }
.city-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.city-name { font: 600 24px/1.15 var(--font-display); color: var(--text); }
.city-meta { font-size: 12.5px; color: var(--muted); }
.city-go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.city-extra { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip-count { margin-left: 4px; font-size: 11px; opacity: 0.7; }
@media (max-width: 760px) { .city-grid { grid-template-columns: 1fr; } .city-name { font-size: 21px; } }


/* ---------- vendas realizadas e comissões ---------- */
.kpi-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.trend.late { color: #ff8f89; }
.fin-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.fin-kpi { cursor: default; }
button.fin-kpi { cursor: pointer; }
.fin-kpi.tone-ok .kpi-value { color: var(--accent-strong); }
.fin-kpi.tone-warn .kpi-value { color: #f0b45e; }
.fin-kpi.tone-late .kpi-value { color: #ff8f89; }
.fin-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.fin-8 { grid-column: span 8; min-width: 0; }
.fin-4 { grid-column: span 4; min-width: 0; }
.fin-post { margin-bottom: 8px; }
.fin-chart { display: flex; align-items: flex-end; gap: 8px; height: 240px; padding-top: 4px; }
.fin-bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 2px; border-radius: 8px; background: transparent; cursor: pointer; }
.fin-bar:hover { background: rgba(255, 255, 255, 0.035); }
.fin-bar-val { height: 14px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.fin-bar-stack { flex: 1; width: 100%; max-width: 36px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 6px 6px 3px 3px; background: rgba(255, 255, 255, 0.035); }
.fin-seg.received { background: var(--accent); }
.fin-seg.pending { background: repeating-linear-gradient(135deg, rgba(240, 180, 94, 0.8) 0 5px, rgba(240, 180, 94, 0.5) 5px 10px); }
.fin-bar-label { font-size: 10.5px; color: var(--faint); }
.fin-bar.is-current .fin-bar-label { color: var(--accent); font-weight: 600; }
.fin-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 11px; color: var(--faint); }
.fin-legend i.lg { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.lg.received { background: var(--accent); }
.lg.pending { background: rgba(240, 180, 94, 0.75); }
.fin-list { display: flex; flex-direction: column; }
.fin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.fin-row:first-child { border-top: 0; }
.fin-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fin-row-main strong { font-size: 12.5px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-row-main span { font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-row-side { display: flex; align-items: center; gap: 10px; flex: none; }
.fin-row-side b { font-size: 13px; font-weight: 600; color: var(--text); }
.late, .fin-row-side b.late { color: #ff8f89; }
.ok { color: var(--accent-strong); }
.warn { color: #f0b45e; }
.tag-ok { color: var(--accent-strong); border-color: rgba(69, 227, 196, 0.35); background: rgba(69, 227, 196, 0.08); }
.tag-warn { color: #f0b45e; border-color: rgba(240, 180, 94, 0.35); background: rgba(240, 180, 94, 0.08); }
.tag-late { color: #ff8f89; border-color: rgba(240, 113, 107, 0.4); background: rgba(240, 113, 107, 0.08); }
.fin-history { margin-bottom: 14px; }
.fin-year { min-width: 52px; text-align: center; font: 600 14px/1 var(--font-display); color: var(--text); }
th.num, td.num { text-align: right; }
tfoot td { font-weight: 600; color: var(--text); border-top: 1px solid var(--line-strong); }
tr.is-empty td { opacity: 0.4; }
tr.is-empty { cursor: default; }
.cell-sub { display: block; margin-top: 2px; font-size: 11px; color: var(--faint); }
.fin-progress { width: 120px; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
.fin-progress span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.fin-progress.lg { width: 100%; height: 8px; }
.comm-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.comm-summary > div { display: flex; flex-direction: column; gap: 4px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.02); min-width: 0; }
.comm-summary strong { font: 600 14px/1.2 var(--font-display); color: var(--text); overflow-wrap: anywhere; }
.comm-summary strong.ok { color: var(--accent-strong); }
.comm-summary strong.warn { color: #f0b45e; }
.comm-warning { margin-top: 10px; padding: 8px 10px; border-radius: 9px; border: 1px solid rgba(240, 180, 94, 0.3); background: rgba(240, 180, 94, 0.07); font-size: 11.5px; line-height: 1.5; color: #f6d9a8; }
.parcel-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.parcel-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.parcel-num { font-size: 11px; color: var(--faint); }
.parcel-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.parcel-main strong { font-size: 13px; color: var(--text); }
.parcel-main span { font-size: 11px; color: var(--faint); }
.parcel-actions { display: flex; align-items: center; gap: 6px; }
.sale-preview { margin-bottom: 10px; padding: 9px 11px; border-radius: 9px; border: 1px solid rgba(69, 227, 196, 0.2); background: rgba(69, 227, 196, 0.06); font-size: 12px; line-height: 1.55; color: var(--accent); }
.month-block h3 { display: flex; justify-content: space-between; gap: 10px; margin: 14px 0 4px; font: 600 13px/1.3 var(--font-display); color: var(--text); }
.month-block:first-child h3 { margin-top: 0; }
.month-block h3 span { color: var(--accent); }
@media (max-width: 1100px) {
  .fin-8, .fin-4 { grid-column: span 12; }
  .fin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .fin-kpis { grid-template-columns: 1fr; }
  .fin-chart { gap: 3px; height: 210px; }
  .fin-bar-val { display: none; }
  .comm-summary { grid-template-columns: 1fr; }
  .parcel-row { grid-template-columns: 34px minmax(0, 1fr); }
  .parcel-row .tag { grid-column: 2; justify-self: start; }
  .parcel-actions { grid-column: 1 / -1; }
}
.parcel-row { grid-template-columns: 30px minmax(0, 1fr) auto; row-gap: 8px; }
.parcel-actions { grid-column: 2 / -1; justify-content: flex-start; }
.parcel-main span { white-space: nowrap; }
@media (max-width: 760px) { .parcel-row { grid-template-columns: 30px minmax(0, 1fr); } .parcel-row .tag { grid-column: 2; justify-self: start; } }
.field input[type="checkbox"], .login-check input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; padding: 0; flex: none; accent-color: var(--accent); }
.field label.login-check { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; line-height: 1.45; color: var(--text-soft); text-transform: none; letter-spacing: 0; cursor: pointer; }

/* mapas */
.map-box { position: relative; z-index: 0; isolation: isolate; width: 100%; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--panel); }
.map-sm { height: 320px; }
.map-big { height: min(68vh, 620px); }
.map-msg { display: flex; align-items: center; justify-content: center; height: 100%; padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.map-pop { color: #10151a; font-family: var(--font-body); min-width: 160px; line-height: 1.5; }
.map-pop .btn { margin-top: 6px; }
dialog.modal:has(.map-modal) { width: min(1100px, calc(100vw - 32px)); max-width: none; }

/* ---- endereço (formulários de empreendimento e imóvel) */
.map-xs { height: 240px; margin-top: 10px; }
.map-xs[hidden] { display: none; }
.addr-block { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; background: rgba(255, 255, 255, 0.02); }
.addr-title { font-family: var(--font-display); font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.addr-grid { gap: 12px; }
.addr-hint { font-size: 11.5px; color: var(--faint); }
.addr-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.addr-status { font-size: 12.5px; color: var(--muted); }
.addr-status.bad { color: #ff9b8e; }
.addr-results { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.addr-results-title { font-size: 12px; color: var(--muted); }
.addr-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.addr-opt:hover, .addr-opt:focus-visible { border-color: var(--accent, #4da3ff); background: rgba(255, 255, 255, 0.04); }
.addr-opt span { font-size: 11.5px; color: var(--faint); }

/* estado de sincronização com a nuvem */
.local-status.is-warn .pulse { background: #f0b45e; box-shadow: 0 0 0 3px rgba(240, 180, 94, 0.15); }
.profile-role { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.login-submit.is-loading { opacity: .7; cursor: progress; }

/* mapa do cadastro maior, para marcar o pino com o dedo */
.map-xs { height: 300px; }
@media (max-width: 760px) { .map-xs { height: 340px; } }

/* detalhe do empreendimento: foto com proporção fixa + descrição em colunas */
.dev-hero2 { padding: 0; overflow: hidden; }
.dev-hero2-top { display: grid; grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); gap: 24px; padding: 20px; align-items: start; }
.dev-photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #0a1118; cursor: zoom-in; isolation: isolate; }
.dev-photo-bg { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(22px) brightness(0.55); z-index: -1; }
.dev-photo-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dev-photo-zoom { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; color: #e9f5f2; background: rgba(7, 11, 15, 0.7); border: 1px solid rgba(255, 255, 255, 0.14); opacity: 0; transition: opacity 0.15s; }
.dev-photo:hover .dev-photo-zoom, .dev-photo:focus-visible .dev-photo-zoom { opacity: 1; }
.dev-photo-empty { display: grid; place-items: center; color: var(--faint); cursor: default; }
.dev-hero2-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dev-hero2-info h2 { font: 600 22px/1.2 var(--font-display); color: var(--text); overflow-wrap: anywhere; }
.dev-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.dev-about { border-top: 1px solid var(--line); padding: 18px 20px 22px; }
.dev-about h3 { font: 600 14px/1 var(--font-display); color: var(--text); margin-bottom: 14px; }
.dev-about-text { columns: 2 300px; column-gap: 36px; font-size: 13px; line-height: 1.65; color: var(--muted); overflow-wrap: anywhere; }
.dev-blk { break-inside: avoid; margin-bottom: 14px; }
.dev-blk p { margin: 0 0 4px; }
.dev-blk .dev-sec { color: var(--text); font-weight: 500; }
.dev-blk ul { margin: 4px 0 0; padding: 0; list-style: none; }
.dev-blk li { position: relative; padding-left: 16px; margin: 3px 0; }
.dev-blk li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.8; }
.img-modal { width: min(920px, 94vw); }
.img-modal-img { display: block; width: 100%; max-height: 75vh; object-fit: contain; border-radius: 10px; background: #0a1118; }
@media (max-width: 760px) {
  .dev-hero2-top { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
  .dev-about { padding: 16px 14px 18px; }
  .dev-photo-zoom { opacity: 1; }
}

/* mapas: aviso para ativar o zoom com a roda do mouse */
.map-hint { position: absolute; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 12px; text-align: center; font-size: 13px; color: #fff; background: rgba(7, 11, 15, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.map-hint.show { opacity: 1; }

/* ---- editor de etapas do funil */
.stage-edit-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.stage-edit-row { border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.02); padding: 8px 10px; }
.stage-edit-row.is-removed { opacity: 0.8; border-style: dashed; }
.stage-edit-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.stage-color { width: 34px; height: 34px; padding: 2px; flex: none; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; cursor: pointer; }
.stage-name { flex: 1 1 auto; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--panel-2); color: var(--text); font: inherit; font-size: 13px; }
.stage-name:focus { outline: none; border-color: rgba(69, 227, 196, 0.45); box-shadow: 0 0 0 3px rgba(69, 227, 196, 0.08); }
.stage-count { flex: none; font-size: 11px; color: var(--faint); white-space: nowrap; }
.stage-lock { flex: none; width: 30px; text-align: center; font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; }
.stage-removed-name { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-removed-name em { font-style: normal; font-size: 11px; color: #ffb1ad; margin-left: 6px; }
.stage-move { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--muted); }
.stage-move select { flex: 1 1 160px; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--panel-2); color: var(--text); font: inherit; font-size: 13px; }
.stage-edit-row .icon-btn:disabled { opacity: 0.3; cursor: default; }
@media (max-width: 520px) {
  .stage-count { display: none; }
}

/* ---- perfil do imóvel (MCMV / médio / alto padrão) */
.tag-prof { white-space: nowrap; }
.tag-prof-mcmv { color: #9ec5ff; border-color: rgba(111, 168, 255, 0.28); background: rgba(111, 168, 255, 0.08); }
.tag-prof-medio { color: #d6c8ff; border-color: rgba(185, 164, 255, 0.28); background: rgba(185, 164, 255, 0.08); }
.tag-prof-alto { color: #ffd9a0; border-color: rgba(240, 180, 94, 0.32); background: rgba(240, 180, 94, 0.1); }

/* ---- busca de cliente e escolha de materiais (enviar material) */
.lead-picker { display: flex; flex-direction: column; gap: 6px; }
.lead-picker-list { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--panel-2); }
.lead-picker-list[hidden] { display: none; }
.lead-picker-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.lead-picker-item:first-child { border-top: 0; }
.lead-picker-item:hover, .lead-picker-item:focus-visible { background: var(--accent-soft); outline: none; }
.lead-picker-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lead-picker-info strong { font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-picker-info span { font-size: 11px; color: var(--faint); }
.lead-picker-more { padding: 10px 12px; font-size: 11.5px; color: var(--faint); }
.picker-hint { display: block; margin-top: 6px; font-size: 11.5px; color: var(--faint); line-height: 1.5; }
.send-mat-list { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.send-mat-row { display: grid; grid-template-columns: 18px 38px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid rgba(255, 255, 255, 0.05); cursor: pointer; }
.send-mat-row:first-child { border-top: 0; }
.send-mat-row:hover { background: rgba(255, 255, 255, 0.025); }
.send-mat-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.send-mat-list .empty-inline { padding: 16px; }

/* rodapé dos diálogos: quebra em duas linhas em telas estreitas em vez de cortar o botão */
.modal-foot { flex-wrap: wrap; }
@media (max-width: 520px) {
  .modal-foot .btn { flex: 1 1 auto; justify-content: center; }
}

/* ================================================================
   LivIA: botão do menu e aba da assistente
   ================================================================ */
.nav-ai-btn { height: auto; min-height: 54px; justify-content: flex-start; gap: 11px; padding: 9px 12px; text-align: left; }
.nav-ai-btn .ai-mark { width: 36px; height: 36px; flex: none; padding: 4px; border-radius: 50%; background: #0a1628; object-fit: contain; animation: none; pointer-events: none; }
.nav-ai-btn .ai-text { display: flex; flex-direction: column; line-height: 1.15; pointer-events: none; }
.nav-ai-btn .ai-text b { font: 700 17px/1.1 var(--font-display); letter-spacing: -0.01em; }
.nav-ai-btn .ai-text small { margin-top: 2px; font-size: 11.5px; font-weight: 500; opacity: 0.75; }

.lv-hub { display: flex; flex-direction: column; gap: 14px; }
.lv-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 14px 26px; border-radius: var(--r-lg);
  border: 1px solid rgba(69, 227, 196, 0.22);
  background: radial-gradient(ellipse at 18% 50%, rgba(45, 212, 191, 0.14), transparent 60%), #0a1628;
}
.lv-hero-logo { display: block; height: 92px; width: auto; max-width: 100%; }
.lv-hero-side { max-width: 330px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.lv-hero-side p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.lv-status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--amber); background: rgba(240, 180, 94, 0.12); border: 1px solid rgba(240, 180, 94, 0.28); }
.lv-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.lv-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.lv-tabs::-webkit-scrollbar { display: none; }
.lv-tab { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 11px 14px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: color 0.16s var(--ease), border-color 0.16s var(--ease); }
.lv-tab .od-icon { --od-icon-size: 16px; }
.lv-tab:hover { color: var(--text); }
.lv-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.lv-count { min-width: 19px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; text-align: center; }

.lv-block { display: flex; flex-direction: column; gap: 14px; }
.lv-block .panel-head { margin-bottom: 0; }
.lv-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.lv-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.lv-gap { margin-top: 14px; }
.lv-sub { margin: 6px 0 0; font: 600 13px/1.3 var(--font-body); color: var(--text-soft); }
.lv-note { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--text-soft); font-size: 12.5px; line-height: 1.5; }
.lv-note-wide { margin-top: 14px; }
.lv-muted { color: var(--muted); }
.lv-right { text-align: right; }
.lv-empty { padding: 24px 14px; text-align: center; color: var(--muted); font-size: 13px; }

.lv-tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.lv-tag.is-livia { color: #b9fff1; background: rgba(69, 227, 196, 0.12); }
.lv-tag.is-wait { color: var(--amber); background: rgba(240, 180, 94, 0.14); }
.lv-tag.is-broker { color: var(--blue); background: rgba(111, 168, 255, 0.14); }
.lv-tag.is-off { color: var(--muted); background: rgba(255, 255, 255, 0.06); }
.lv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-chip { display: inline-block; margin: 0 6px 4px 0; padding: 4px 9px; border-radius: 6px; background: var(--panel-3); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-soft); }
.lv-chips .lv-chip { margin: 0; }

/* conversas */
.lv-conv { display: grid; grid-template-columns: 300px minmax(0, 1fr) 270px; gap: 14px; height: clamp(520px, calc(100vh - 330px), 780px); }
.lv-conv > .panel { padding: 0; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.lv-list-head { padding: 12px; border-bottom: 1px solid var(--line); }
.lv-list-body { flex: 1; overflow-y: auto; }
.lv-item { display: flex; gap: 11px; width: 100%; padding: 12px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; color: inherit; }
.lv-item:hover { background: rgba(255, 255, 255, 0.025); }
.lv-item.active { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.lv-item-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.lv-item-top { display: flex; justify-content: space-between; gap: 8px; }
.lv-item-top small { color: var(--faint); font-size: 11.5px; }
.lv-item-prev { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.lv-chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lv-chat-head b { display: block; font-size: 14.5px; }
.lv-chat-head small { color: var(--muted); font-size: 12px; }
.lv-chat-head .spacer { flex: 1; }
.lv-msgs, .lv-train { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.lv-msgs { flex: 1; overflow-y: auto; }
.lv-msg { max-width: 78%; padding: 9px 13px; border-radius: 14px; line-height: 1.45; font-size: 13.5px; }
.lv-msg p { margin: 0; overflow-wrap: anywhere; }
.lv-msg small { display: block; margin-top: 4px; font-size: 11px; opacity: 0.7; }
.lv-msg.lead { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.lv-msg.livia { align-self: flex-end; background: rgba(69, 227, 196, 0.16); border: 1px solid rgba(69, 227, 196, 0.3); border-bottom-right-radius: 4px; }
.lv-msg.corretor { align-self: flex-end; background: rgba(111, 168, 255, 0.16); border: 1px solid rgba(111, 168, 255, 0.3); border-bottom-right-radius: 4px; }
.lv-msg.livia small, .lv-msg.corretor small { text-align: right; }
.lv-sys { align-self: center; padding: 5px 12px; border-radius: 999px; background: rgba(240, 180, 94, 0.12); color: var(--amber); font-size: 12px; font-weight: 500; text-align: center; }
.lv-compose { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.lv-compose input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--bg-soft); color: var(--text); }
.lv-side { padding: 16px !important; gap: 14px; overflow-y: auto; }
.lv-side h3 { margin: 0; font: 600 14px/1.3 var(--font-display); }
.lv-side dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.lv-side dt { margin-bottom: 5px; font-size: 11.5px; color: var(--muted); }
.lv-side dd { margin: 0; font-size: 13.5px; font-weight: 500; }
.lv-side-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }

/* leads */
.lv-table-wrap { overflow-x: auto; }
.lv-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lv-table th { padding: 8px 12px; text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.lv-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lv-person { display: flex; align-items: center; gap: 11px; }
.lv-person b, .lv-person small { display: block; }
.lv-person small { color: var(--muted); font-size: 12px; }

/* treinamento, configurar, conexões */
.lv-block .field { display: flex; flex-direction: column; gap: 6px; }
.lv-block .field label { font-size: 12.5px; font-weight: 600; color: var(--text-soft); }
.lv-block .field input, .lv-block .field select, .lv-block .field textarea { width: 100%; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--bg-soft); color: var(--text); font: inherit; }
.lv-block .field input, .lv-block .field select { height: 40px; padding-top: 0; padding-bottom: 0; }
.lv-block .field textarea { resize: vertical; line-height: 1.5; }
.lv-block > .btn { align-self: flex-start; }
.lv-active { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel-2); }
.lv-active div { flex: 1; min-width: 0; }
.lv-active b, .lv-active small { display: block; }
.lv-active small { color: var(--muted); font-size: 12px; }
.lv-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.lv-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 13.5px; }
.lv-switch { position: relative; flex: none; width: 46px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: #2a3441; cursor: pointer; }
.lv-switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #e9eff3; transition: transform 0.16s var(--ease); }
.lv-switch[aria-checked="true"] { background: var(--accent); }
.lv-switch[aria-checked="true"] span { transform: translateX(20px); background: var(--accent-ink); }
.lv-questions { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--text-soft); }

/* relatórios */
.lv-bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 8px; }
.lv-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.lv-bar span { width: 100%; max-width: 38px; min-height: 4px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), rgba(69, 227, 196, 0.35)); }
.lv-bar small { font-size: 11.5px; color: var(--muted); }
.lv-rank { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.lv-rank li { position: relative; display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding-bottom: 8px; }
.lv-rank i { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--accent); }
.lv-rank b { font-weight: 600; }

/* aba Assistente: o chat ocupa a altura que sobra */
.lv-hub.lv-assistente { flex: 1; min-height: 0; }
.lv-hub.lv-assistente .lv-hero { padding-top: 8px; padding-bottom: 8px; }
.lv-hub.lv-assistente .lv-hero-logo { height: 64px; }
.lv-hub.lv-assistente .lv-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lv-empty-mark { width: 72px; height: 72px; padding: 8px; border-radius: 50%; background: #0a1628; border: 1px solid rgba(69, 227, 196, 0.3); object-fit: contain; }

@media (max-width: 1180px) {
  .lv-conv { grid-template-columns: 280px minmax(0, 1fr); }
  .lv-conv .lv-side { display: none; }
  .lv-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .lv-grid-2 { grid-template-columns: 1fr; }
  .lv-hero { padding: 12px 16px; }
  .lv-hero-logo { height: 68px; }
  .lv-conv { grid-template-columns: 1fr; height: auto; }
  .lv-conv .lv-list { max-height: 300px; }
  .lv-conv .lv-chat { min-height: 460px; }
}

/* ajustes: logo em destaque e cartões alinhados */
.lv-hero { padding: 16px 30px; }
.lv-hero-logo { height: 124px; }
.lv-hub.lv-assistente .lv-hero { padding-top: 10px; padding-bottom: 10px; }
.lv-hub.lv-assistente .lv-hero-logo { height: 92px; }
.lv-grid-2, .lv-grid-3 { align-items: stretch; }
.lv-block > .btn { margin-top: auto; }
@media (max-width: 860px) { .lv-hero-logo { height: 84px; } .lv-hub.lv-assistente .lv-hero-logo { height: 72px; } }

/* ajustes 2: cartão da logo com tamanho fixo em todas as abas e botão LivIA mais fino */
.lv-hero, .lv-hub.lv-assistente .lv-hero { padding: 10px 30px; }
.lv-hero-logo, .lv-hub.lv-assistente .lv-hero-logo { height: 92px; }
@media (max-width: 860px) {
  .lv-hero, .lv-hub.lv-assistente .lv-hero { padding: 10px 16px; }
  .lv-hero-logo, .lv-hub.lv-assistente .lv-hero-logo { height: 72px; }
}
.nav-ai-btn { width: 100%; min-height: 0; justify-content: center; gap: 11px; padding: 4px 14px 4px 5px; margin-top: 16px; border-radius: 999px; }

/* ---------- filtros de clientes ---------- */
.filter-badge { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 10px/1 var(--font-display); }
.btn.filter-on { color: #c9fff3; border-color: rgba(69, 227, 196, 0.35); background: rgba(69, 227, 196, 0.1); }
.col-filter { position: relative; display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px; border: 1px solid transparent; color: var(--faint); transition: color 0.16s var(--ease), background 0.16s var(--ease), border-color 0.16s var(--ease); }
.col-filter:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); border-color: var(--line); }
.col-filter.on { color: #c9fff3; background: rgba(69, 227, 196, 0.12); border-color: rgba(69, 227, 196, 0.35); }
.col-filter .filter-badge { position: absolute; top: -6px; right: -6px; }
.col-filter-note { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; background: rgba(69, 227, 196, 0.08); border: 1px solid rgba(69, 227, 196, 0.2); font-size: 10.5px; color: #c9fff3; }
.col-filter-note button { margin-left: auto; font-size: 10.5px; color: var(--accent-strong); text-decoration: underline; }
.filter-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(69, 227, 196, 0.3); background: rgba(69, 227, 196, 0.08); color: #c9fff3; font-size: 11.5px; }
.filter-chip b { font-weight: 600; }
.filter-chip:hover { background: rgba(69, 227, 196, 0.16); }
.filter-clear-all { font-size: 11.5px; color: var(--muted); text-decoration: underline; padding: 0 4px; }
.filter-clear-all:hover { color: var(--text); }

.pop-menu.filter-panel { width: 330px; max-width: calc(100vw - 24px); padding: 0; display: flex; flex-direction: column; max-height: min(78vh, 600px); overflow: hidden; }
.filter-head { display: flex; align-items: center; gap: 8px; padding: 11px 12px 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text); }
.filter-head .icon-btn { margin-left: auto; width: 28px; height: 28px; }
.filter-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 6px; }
.filter-sec + .filter-sec { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.filter-sec-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 11px 8px; text-align: left; font-size: 12.5px; color: var(--text-soft); border-radius: 8px; }
.filter-sec-head:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.filter-sec-head .od-icon { margin-left: auto; color: var(--muted); transition: transform 0.16s var(--ease); }
.filter-sec-badge { min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 10.5px/1 var(--font-display); }
.filter-sec-badge + .od-icon { margin-left: 0; }
.filter-sec.open .filter-sec-head .od-icon:last-child { transform: rotate(180deg); }
.filter-sec-body { display: none; padding: 0 4px 10px; }
.filter-sec.open .filter-sec-body { display: block; }
.filter-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; margin-bottom: 6px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); color: var(--muted); }
.filter-search:focus-within { border-color: rgba(69, 227, 196, 0.45); }
.filter-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 12.5px; }
.filter-opts { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.filter-opt { display: flex; align-items: center; gap: 9px; padding: 8px 8px; border-radius: 7px; font-size: 12.5px; color: var(--text-soft); cursor: pointer; }
.filter-opt[hidden] { display: none; }
.filter-opt:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.filter-opt input { width: 16px; height: 16px; flex: none; accent-color: #45e3c4; }
.filter-opt-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-opt-count { font: 500 11px/1 var(--font-display); color: var(--faint); }
.filter-opt.zero { opacity: 0.55; }
.filter-empty { padding: 10px 8px; font-size: 11.5px; color: var(--faint); }
.filter-foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.filter-result { margin-right: auto; font-size: 11.5px; color: var(--muted); }
@media (max-width: 640px) {
  .pop-menu.filter-panel { position: fixed; left: 8px !important; right: 8px; top: auto !important; bottom: 8px; width: auto; max-width: none; max-height: 82vh; }
  .filter-opts { max-height: 40vh; }
  .filter-opt { padding: 11px 8px; }
}

/* ---------- áudio nas notas ---------- */
.audio-rec { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.audio-rec-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.audio-attach { position: relative; cursor: pointer; }
.audio-attach input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.audio-rec-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.audio-rec-status b { font-variant-numeric: tabular-nums; color: var(--text); }
.audio-rec-status.live { color: #ff8a8a; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; animation: recPulse 1.1s ease-in-out infinite; }
@keyframes recPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
.audio-rec-preview { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.audio-rec-preview audio, .audio-player { width: 100%; height: 38px; }
.audio-rec-meta { font-size: 11px; color: var(--faint); }
.audio-rec-hint { flex: 1; min-width: 160px; font-size: 11.5px; color: var(--muted); }
.audio-from { display: flex; gap: 16px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.audio-from label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-soft); cursor: pointer; }
.audio-from input { accent-color: #45e3c4; }
.tl-audio { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.tl-audio .audio-player { flex: 1 1 100%; }
.audio-badge { font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.audio-badge.cliente { color: #c9fff3; border-color: rgba(69, 227, 196, 0.35); background: rgba(69, 227, 196, 0.1); }
.audio-badge.eu { color: #cfe2ff; border-color: rgba(47, 128, 237, 0.4); background: rgba(47, 128, 237, 0.12); }
.audio-play { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); font-size: 12px; background: rgba(255, 255, 255, 0.04); }
.audio-play:hover { background: rgba(255, 255, 255, 0.09); }
.audio-play:disabled { opacity: 0.6; cursor: wait; }
.tl-transcript { flex: 1 1 100%; font-size: 11.5px; color: var(--muted); }
.tl-transcript summary { cursor: pointer; color: var(--accent); }

/* ---------- imagens e exclusão nas notas ---------- */
.rec-meter { display: inline-block; width: 70px; height: 6px; margin-left: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; vertical-align: middle; }
.rec-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #45e3c4, #ffd166); transition: width 0.12s linear; }
.rec-warn { padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255, 209, 102, 0.4); background: rgba(255, 209, 102, 0.08); color: #ffe3a1; font-size: 11.5px; }
.note-draft-images { display: flex; flex-wrap: wrap; gap: 8px; }
.note-draft-thumb { position: relative; width: 72px; height: 72px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line-strong); background: #0a1118; }
.note-draft-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.note-draft-thumb button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, 0.7); color: #fff; }
.note-draft-thumb button:hover { background: rgba(220, 60, 60, 0.9); }
.note-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.note-thumb { position: relative; width: 84px; height: 84px; border-radius: 9px; border: 1px solid var(--line-strong); background: #0a1118 center / cover no-repeat; overflow: hidden; display: grid; place-items: center; color: var(--faint); cursor: zoom-in; }
.note-thumb:hover { border-color: rgba(69, 227, 196, 0.5); }
.note-thumb.ready .note-thumb-ph { display: none; }
.note-thumb.missing { cursor: default; opacity: 0.6; }
.note-viewer { display: grid; place-items: center; padding: 14px; background: rgba(0, 0, 0, 0.25); }
.note-viewer img { max-width: 100%; max-height: 70vh; border-radius: 8px; display: block; }
.tl-meta .tl-del { margin-left: auto; width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 7px; color: var(--faint); }
.tl-meta .tl-del:hover { color: #ff8a8a; background: rgba(255, 90, 90, 0.12); }

/* telefones duplicados */
.dup-hint { display: block; font-size: 10.5px; line-height: 1.45; color: var(--amber); margin-top: 4px; }
.dup-hint:empty { display: none; }
.dup-list { display: block; margin: 10px 0 12px; }
.dup-item { display: block; padding: 8px 10px; margin-bottom: 6px; border-radius: 8px; background: rgba(240, 180, 94, 0.08); border: 1px solid rgba(240, 180, 94, 0.2); font-size: 12.5px; }
.dup-item small { display: block; font-size: 10.5px; color: var(--faint); margin-top: 2px; }
.dup-group { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.dup-group-phone { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--amber); margin-bottom: 6px; }
.dup-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.dup-row:first-of-type { border-top: 0; }

/* imóveis: código, fotos e diferenciais */
.prop-code { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(6, 10, 20, 0.78); color: #e6ebf5; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin-top: 8px; }
.photo-item { position: relative; }
.photo-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.photo-bar { display: flex; gap: 4px; align-items: center; }
.photo-bar .btn { flex: 1; padding: 4px 6px; font-size: 11px; }
.photo-tag { flex: 1; text-align: center; font-size: 11px; font-weight: 600; color: var(--amber); }
.gallery-thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.gallery-thumb { flex: none; width: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; overflow: hidden; }
.gallery-thumb.active { border-color: #4c8dff; }
.gallery-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.feature-tag { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 11.5px; color: var(--text-soft); }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 6px; }

/* envio ao cliente */
.share-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.share-title { display: block; font-weight: 600; font-size: 12.5px; margin-bottom: 8px; }
.share-box small, .check-row small { color: var(--faint); font-size: 11px; }
.share-box select { margin: 4px 0 6px; }
.share-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; max-height: 280px; overflow-y: auto; }
.share-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 13px; }
.share-item input { margin-top: 3px; }
.share-item small { display: block; color: var(--faint); font-size: 11px; margin-top: 2px; }
.photo-bar .photo-face { flex: 1; }
.photo-tag.face { color: #4c8dff; }

.owner-box { margin-top: 14px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; font-size: 12.5px; }
.owner-box p { margin: 6px 0 0; }
.owner-notes { white-space: pre-line; color: var(--text-soft); }

/* solicitações de visita */
.visit-banner { flex: none; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; background: #f0b45e; color: #1a1305; font-size: 13.5px; }
.visit-banner[hidden] { display: none; }
.visit-banner strong { font-weight: 700; }
.visit-banner .btn { background: #1a1305; border-color: #1a1305; color: #fff; padding: 5px 14px; font-size: 12.5px; }
.visit-banner .dot { width: 9px; height: 9px; border-radius: 50%; background: #1a1305; animation: visit-pulse 1.4s ease-in-out infinite; }
@keyframes visit-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .visit-banner .dot { animation: none; } }
.visit-panel { margin-bottom: 16px; border-color: #f0b45e; }
.visit-panel h2 { margin: 0 0 10px; font-size: 15px; }
.visit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.visit-row:first-of-type { border-top: 0; }
.visit-row small { display: block; color: var(--faint); font-size: 11.5px; }
.visit-info { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 4px 0 12px; font-size: 13.5px; }
.visit-info dt { color: var(--faint); }
.visit-info dd { margin: 0; }
.visit-known { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: rgba(111, 168, 255, 0.10); border: 1px solid rgba(111, 168, 255, 0.3); font-size: 12.5px; }
.visit-note { white-space: pre-line; }

/* links enviados */
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.share-row:first-of-type { border-top: 0; }
.share-row small { display: block; color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.share-row.off { opacity: .6; }
.share-row-actions { display: flex; gap: 6px; flex: none; }

/* fotos do imóvel: menu de três pontinhos */
.photo-item.is-hidden img { opacity: .38; filter: grayscale(.7); }
.photo-badge { position: absolute; left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(6, 12, 26, 0.85); color: #fff; font-size: 10.5px; font-weight: 700; pointer-events: none; }
.photo-badge.cover { top: 6px; background: #f0b45e; color: #1a1305; }
.photo-badge.off { bottom: 6px; }
.photo-menu-wrap { position: absolute; top: 4px; right: 4px; }
.photo-menu-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(6, 12, 26, 0.8); color: #fff; display: grid; place-items: center; cursor: pointer; }
.photo-menu-btn:hover, .photo-menu-btn[aria-expanded="true"] { background: #2f6fe0; }
.photo-menu { position: absolute; top: 40px; right: 0; z-index: 30; min-width: 210px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 10px; background: #101a2e; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); }
.photo-menu.up { top: auto; bottom: 40px; }
.photo-menu[hidden] { display: none; }
.photo-menu button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: none; color: var(--text); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.photo-menu button:hover, .photo-menu button:focus-visible { background: rgba(255, 255, 255, 0.09); }
.photo-menu .danger { color: #ff9a9a; }
.photo-menu-note { display: block; padding: 8px 10px; color: var(--faint); font-size: 11.5px; line-height: 1.4; }

/* fotos: ícones mais discretos e menu que não corta */
.photo-menu-wrap { top: 5px; right: 5px; }
.photo-menu-btn { position: relative; width: 26px; height: 26px; background: rgba(6, 12, 26, 0.5); color: rgba(255, 255, 255, 0.92); }
.photo-menu-btn::after { content: ''; position: absolute; inset: -7px; }
.photo-menu-btn svg { width: 15px; height: 15px; }
.photo-menu-btn:hover { background: rgba(6, 12, 26, 0.85); }
.photo-menu-btn[aria-expanded="true"] { background: rgba(47, 111, 224, 0.92); }
.photo-menu { top: 32px; min-width: 196px; }
.photo-menu.up { top: auto; bottom: 32px; }
.photo-badge { padding: 1px 7px; font-size: 10px; }
.photo-badge.cover { top: 6px; background: rgba(240, 180, 94, 0.92); }

/* ficha do imóvel em tela cheia */
.prop-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 16px; }
.prop-hero > * { min-width: 0; }
.prop-gal-stage { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.prop-gal-main { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); cursor: zoom-in; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(6, 12, 26, 0.7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.gal-nav:hover { background: rgba(6, 12, 26, 0.92); }
.gal-nav.prev { left: 10px; }
.gal-nav.next { right: 10px; }
.gal-zoom { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 9px; background: rgba(6, 12, 26, 0.7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.gal-count { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: rgba(6, 12, 26, 0.75); color: #fff; font-size: 12px; font-weight: 600; }
.gal-thumbs { position: relative; display: flex; gap: 6px; max-width: 100%; margin-top: 8px; padding-bottom: 4px; overflow-x: auto; }
.gal-thumb { flex: none; width: 72px; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; overflow: hidden; cursor: pointer; }
.gal-thumb.on { border-color: #4c8dff; }
.gal-thumb.is-hidden img { opacity: 0.4; }
.gal-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prop-info h2 { margin: 10px 0 8px; font-size: 22px; line-height: 1.25; }
.prop-info .kv-grid { margin-top: 14px; }
.prop-info .feature-tags { margin-top: 12px; }
.only-you { margin-left: 8px; font-size: 11px; font-weight: 500; color: var(--faint); }
@media (max-width: 900px) { .prop-hero { grid-template-columns: minmax(0, 1fr); } }

/* engrenagem (excluir imóvel) */
.gear-wrap { position: relative; display: inline-flex; }
.gear-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; min-width: 200px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 10px; background: #101a2e; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); }
.gear-menu[hidden] { display: none; }
.gear-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: none; color: var(--text); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.gear-menu button:hover, .gear-menu button:focus-visible { background: rgba(255, 255, 255, 0.09); }
.gear-menu .danger { color: #ff9a9a; }

/* fotos em tela cheia (CRM) */
.crm-lb { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: #060c1a; }
.crm-lb[hidden] { display: none; }
.crm-lb-stage { position: relative; flex: 1; min-height: 0; touch-action: pan-y pinch-zoom; }
.crm-lb-stage img { position: absolute; top: 56px; bottom: 8px; left: 72px; right: 72px; width: calc(100% - 144px); height: calc(100% - 64px); object-fit: contain; user-select: none; -webkit-user-select: none; }
.crm-lb-close { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 12px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.crm-lb-count { position: absolute; top: max(18px, calc(env(safe-area-inset-top) + 8px)); left: 16px; z-index: 3; color: #fff; font-size: 14px; font-weight: 600; }
.crm-lb .gal-nav { background: rgba(255, 255, 255, 0.14); }
.crm-lb .gal-nav:hover { background: rgba(255, 255, 255, 0.28); }
.crm-lb-thumbs { display: flex; justify-content: center; gap: 8px; padding: 10px 12px 14px; overflow-x: auto; }
.crm-lb-thumb { flex: none; width: 76px; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; overflow: hidden; opacity: 0.7; cursor: pointer; }
.crm-lb-thumb.on { border-color: #fff; opacity: 1; }
.crm-lb-thumb.is-hidden img { opacity: 0.45; }
.crm-lb-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 700px) {
  .crm-lb-thumbs { display: none; }
  .crm-lb-stage img { left: 0; right: 0; width: 100%; }
  .crm-lb .gal-nav.prev { left: 8px; }
  .crm-lb .gal-nav.next { right: 8px; }
}
@media (max-height: 520px) {
  .crm-lb-thumbs { display: none; }
  .crm-lb-stage img { top: 8px; bottom: 8px; height: calc(100% - 16px); }
}

/* proprietários */
.owners-sum { color: var(--faint); font-size: 12.5px; }
.owners-list { display: grid; gap: 12px; }
.owner-card { padding: 14px 16px; }
.owner-card[hidden] { display: none; }
.owner-head { display: flex; align-items: center; gap: 12px; }
.owner-who { display: flex; flex-direction: column; min-width: 0; }
.owner-who span { color: var(--faint); font-size: 12px; }
.owner-props { margin-top: 10px; border-top: 1px solid var(--line); }
.owner-prop { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.owner-prop:first-child { border-top: 0; }
.owner-prop-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-prop-price { color: var(--text-soft); font-variant-numeric: tabular-nums; }
.code-link { padding: 2px 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: none; color: #6fa8ff; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; cursor: pointer; }
.code-link:hover { background: rgba(111, 168, 255, 0.12); }
@media (max-width: 640px) {
  .owner-prop { grid-template-columns: auto minmax(0, 1fr); }
  .owner-prop-title { white-space: normal; }
  .owner-prop .tag, .owner-prop-price { grid-column: 2; justify-self: start; }
}

/* contato comercial da construtora */
.dev-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dev-contact > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dev-contact .detail-value { overflow-wrap: anywhere; }
.dev-contact-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* ficha do imóvel: respiro dentro dos painéis */
.dev-panel > p:not(.dev-note):not(.settings-desc) { margin: 0; padding: 14px 18px; }
.dev-panel > .settings-desc { margin: 0; padding: 8px 18px 14px; }
.dev-panel > .owner-notes { padding-top: 0; }
.dev-panel > .mini-prop { width: calc(100% - 24px); margin: 8px 12px; }
.dev-panel > .empty-inline { padding: 14px 18px; }
.dev-panel > .map-box { border-radius: 0; }

.owner-head .spacer { flex: 1; }
#ownerSearch { min-width: 220px; }

/* contato comercial da construtora: respiro e alinhamento dentro do painel */
.dev-contact { padding: 20px 18px 22px; gap: 22px 32px; }
.dev-contact > div { padding: 0; }
.dev-contact .detail-label { font-size: 11px; }
.dev-contact .detail-value { font-size: 14px; }
.dev-contact-actions { margin-top: 8px; }

/* ---------- Meu site ---------- */
.site-status, .site-form { margin-bottom: 16px; max-width: 880px; }
.site-link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.site-link { flex: 1 1 260px; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); color: var(--text-soft); font-size: 12px; overflow-wrap: anywhere; }
.site-models { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.site-model { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.site-model:has(input:checked) { border-color: rgba(69, 227, 196, 0.5); background: var(--accent-soft); }
.site-model span { display: flex; flex-direction: column; gap: 3px; }
.site-model small { color: var(--faint); font-size: 11px; line-height: 1.45; }
.site-img-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-img-prev { border: 1px solid var(--line); border-radius: 8px; background: #fff; object-fit: contain; }
.site-img-logo { width: 96px; height: 64px; }
.site-img-banner { width: 160px; height: 64px; object-fit: cover; }
.site-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.site-form input[type="color"] { width: 64px; height: 38px; padding: 3px; }
.prop-site { position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(6, 10, 20, 0.82); color: var(--accent-strong); border: 1px solid rgba(69, 227, 196, 0.3); font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em; }
.btn.site-on { border-color: rgba(69, 227, 196, 0.5); color: var(--accent-strong); background: var(--accent-soft); }
@media (max-width: 640px) { .site-models { grid-template-columns: 1fr; } }

/* ---------------------------------------------- modo privado (botão de olho) */
.privacy-btn { flex: none; border-color: var(--line); }
.privacy-btn[aria-pressed="true"] { color: var(--text); }
.money { white-space: nowrap; }
.privacy #view .money > span, .privacy #viewSub .money > span { display: none; }
.privacy #view .money::after, .privacy #viewSub .money::after { content: "R$ \2022\2022\2022\2022\2022"; letter-spacing: 0.04em; }
@media (max-width: 760px) {
  .page-head { flex: 1 1 0; min-width: 0; }
  .topbar > .privacy-btn { order: 2; margin-left: auto; width: 38px; height: 38px; }
  .topbar > .privacy-btn + .btn-primary { margin-left: 0; }
}
#propSwapNotes + .field-hint { display: block; margin-top: 5px; font-size: 11px; }
.lead-note { margin: 12px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.02); color: var(--text-soft); font-size: 12.5px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
/* dias sem atualização (funil e clientes) */
.idle-badge { display: inline-block; margin-left: auto; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line); font: 500 10px/1.4 var(--font-body, inherit); color: var(--faint); white-space: nowrap; vertical-align: 1px; }
.row-client-info strong .idle-badge { margin-left: 6px; }
.idle-badge.alert { color: #ffa9a4; border-color: rgba(255, 120, 110, 0.4); background: rgba(255, 120, 110, 0.08); }
/* lembretes da agenda */
.reminders { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 8px; width: 320px; max-width: calc(100vw - 32px); }
.reminders[hidden] { display: none; }
.reminder { position: relative; display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 4px 10px; padding: 12px 34px 12px 12px; border: 1px solid rgba(70, 227, 196, 0.35); border-radius: 12px; background: #0f1a1e; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); animation: reminder-in 0.25s var(--ease); }
.reminder.late { border-color: rgba(255, 169, 164, 0.45); }
.reminder-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--accent, #46e3c4); animation: reminder-pulse 1.8s ease-in-out infinite; }
.reminder.late .reminder-dot { background: #ffa9a4; }
.reminder-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.reminder-time { font-size: 11px; font-weight: 500; color: var(--accent, #46e3c4); }
.reminder.late .reminder-time { color: #ffa9a4; }
.reminder-title { font-size: 13px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.reminder-sub { font-size: 11.5px; color: var(--faint); }
.reminder-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.reminder-close { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--faint); cursor: pointer; }
.reminder-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.reminder-more { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #0f1a1e; color: var(--text-soft); font-size: 11.5px; cursor: pointer; }
@keyframes reminder-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(70, 227, 196, 0.5); } 50% { box-shadow: 0 0 0 6px rgba(70, 227, 196, 0); } }
@keyframes reminder-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .reminders { right: 16px; left: 16px; bottom: 16px; width: auto; gap: 6px; }
  .reminder { padding: 10px 32px 10px 10px; }
  .reminder-actions { margin-top: 4px; }
  .reminder-more { padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) { .reminder, .reminder-dot { animation: none; } }
/* Meu site: a bolinha do modelo não herda o tamanho dos campos de texto */
.site-model input[type="radio"] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 2px 0 0; flex: none; border: 0; box-shadow: none; accent-color: var(--accent); }
.site-model span { min-width: 0; flex: 1; }
