/* ASCENT A&D — Command Center
   Institutional real-estate / financial-technology aesthetic */

:root {
  --sidebar: 240px;
  --topbar: 48px;
  --bg: #eef1f4;
  --bg-sidebar: #0a1018;
  --bg-sidebar-2: #0e1622;
  --bg-sidebar-hover: #162033;
  --bg-card: #ffffff;
  --bg-muted: #f6f7f9;
  --bg-dark: #0c141e;
  --bg-dark-2: #121c2a;
  --line: #e2e6eb;
  --line-2: #cfd5dd;
  --line-dark: #1c2838;
  --ink: #111820;
  --ink-2: #3a4654;
  --ink-3: #6a7684;
  --inv: #dce4ee;
  --inv-2: #8b98a8;
  --gold: #c4a35a;
  --gold-2: #e0c27a;
  --gold-dim: rgba(196, 163, 90, 0.16);
  --navy: #1b3a5f;
  --blue: #1d4f8c;
  --blue-bg: #eff6ff;
  --red: #9f1f1f;
  --red-bg: #fef2f2;
  --pillar-find: #1d4f8c;
  --pillar-lock: #c4a35a;
  --pillar-sell: #0f6e6a;
  --pillar-close: #17643a;
  --pillar-find-bg: #eef4fb;
  --pillar-lock-bg: #f8f3e6;
  --pillar-sell-bg: #e8f5f4;
  --pillar-close-bg: #eaf5ee;
  --red-line: #f3c5c5;
  --amber: #9a4d0a;
  --amber-bg: #fff7ed;
  --green: #17643a;
  --green-bg: #ecfdf3;
  --teal: #0f6e6a;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 1px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 16, 24, 0.12);
  --shadow-lg: 0 18px 48px rgba(10, 16, 24, 0.22);
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 13px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0.01em;
  overflow: hidden;
}
button, input, select { font-family: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.app {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  grid-template-rows: var(--topbar) 1fr;
  height: 100vh;
  width: 100vw;
}
.app.collapsed { --sidebar: 64px; }

/* ── Sidebar ── */
.sidebar {
  grid-row: 1 / -1;
  background: var(--bg-sidebar);
  color: var(--inv);
  display: flex;
  flex-direction: column;
  border-right: 1px solid #000;
  overflow: hidden;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
  min-height: 62px;
  border-bottom: 1px solid var(--line-dark);
}
.brand-mark {
  width: 28px; height: 28px; flex-shrink: 0;
}
.brand-text { line-height: 1.15; min-width: 0; }
.brand-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #f2f5f8;
}
.brand-sub {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
}
.app.collapsed .brand-text,
.app.collapsed .nav-label,
.app.collapsed .nav-section-label,
.app.collapsed .nav-foot-text { display: none; }
.app.collapsed .brand { justify-content: center; padding: 14px 0; }
.app.collapsed .nav-item { justify-content: center; padding: 8px 0; }
.app.collapsed .nav-section { padding: 8px 0 2px; }

.nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
  scrollbar-width: thin;
  scrollbar-color: #243044 transparent;
}
.nav-section { padding: 10px 14px 4px; }
.nav-section-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5d6c80;
  font-weight: 600;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #b7c2cf;
  padding: 6px 16px;
  font-size: 12.5px;
  text-align: left;
  border-left: 2px solid transparent;
  position: relative;
}
.nav-item svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.85; }
.nav-item:hover { background: var(--bg-sidebar-hover); color: #fff; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(196,163,90,0.12), transparent 70%);
  color: #fff;
  border-left-color: var(--gold);
}
.nav-item.active svg { color: var(--gold); opacity: 1; }
.nav-foot {
  padding: 10px 14px 14px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--inv-2);
  font-size: 11px;
}
.collapse-btn {
  margin: 0 12px 12px;
  background: transparent;
  border: 1px solid #243044;
  color: #8b98a8;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.collapse-btn:hover { border-color: var(--gold); color: var(--gold-2); }

/* ── Top bar ── */
.topbar {
  grid-column: 2;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  z-index: 20;
}
.search-wrap {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.search-wrap input {
  width: 100%;
  height: 32px;
  border: 1px solid var(--line);
  background: var(--bg-muted);
  border-radius: 4px;
  padding: 0 12px 0 32px;
  font-size: 12.5px;
  color: var(--ink);
  outline: none;
}
.search-wrap input:focus { border-color: #9bb0c7; background: #fff; box-shadow: 0 0 0 3px rgba(29,79,140,0.08); }
.search-wrap .search-ico {
  position: absolute; left: 10px; top: 8px; width: 14px; height: 14px; color: var(--ink-3);
}
.search-kbd {
  position: absolute; right: 8px; top: 6px;
  font-size: 10px; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 3px;
  padding: 1px 5px; background: #fff; font-family: var(--mono);
}
.tb-select, .icon-btn {
  height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  color: var(--ink-2);
  font-size: 12px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.tb-select:hover, .icon-btn:hover { background: var(--bg-muted); }
.icon-btn { width: 32px; padding: 0; justify-content: center; position: relative; }
.icon-btn svg { width: 15px; height: 15px; }
.badge-dot {
  position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px; background: #c0392b;
  border-radius: 50%; border: 1.5px solid #fff;
}
.avatar-btn, #userBtn {
  width: 32px; height: 32px; padding: 0; justify-content: center;
  background: var(--navy); color: #fff !important; border: 0; font-weight: 600; font-size: 11px;
  display: inline-flex; align-items: center;
}
.top-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* ── Main ── */
.main {
  grid-column: 2;
  overflow: auto;
  position: relative;
  background: var(--bg);
}
.page { padding: 18px 20px 28px; min-height: 100%; }
.hidden { display: none !important; }

/* ── Header ── */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.greet h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.greet p { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; }
.meta-line {
  display: flex; gap: 14px; margin-top: 8px;
  font-size: 11.5px; color: var(--ink-3);
}
.meta-line b { color: var(--ink-2); font-weight: 550; }
.head-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.btn {
  height: 30px;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 12px;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-muted); border-color: #b8c0ca; }
.btn-primary {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.btn-primary:hover { background: #163052; }
.btn-gold {
  background: var(--gold); color: #1a1408; border-color: #b8963e; font-weight: 600;
}
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--red-bg); color: var(--red); border-color: var(--red-line); }
.btn svg { width: 13px; height: 13px; }

.philosophy {
  display: flex; gap: 0; margin: 0 0 14px;
  background: var(--bg-dark);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.philosophy span {
  flex: 1; text-align: center; padding: 8px 6px;
  color: #9aa8b8;
  border-right: 1px solid #1c2838;
}
.philosophy span:last-child { border-right: 0; }
.philosophy span em { color: var(--gold-2); font-style: normal; }

.quickbar {
  display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap;
}
.quickbar .btn { height: 28px; font-size: 11.5px; }

.alert-strip {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1px solid var(--red-line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-bottom: 14px;
  font-size: 12.5px;
}
.alert-strip strong { color: var(--red); }
.alert-strip .spacer { flex: 1; }
.alert-chip {
  font-size: 11px; padding: 2px 8px; border-radius: 99px;
  background: var(--red-bg); color: var(--red); font-weight: 600;
}

/* ── KPI strip ── */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.dash-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.dash-pipe-mod { margin: 0 0 14px; }
.dash-pipe-mod .mod-h { align-items: flex-start; }
.dash-pipe-mod .mod-h .kpi-sub { margin: 2px 0 0; }
.dash-pipeline {
  overflow-x: auto;
  padding: 0 12px 12px;
  -webkit-overflow-scrolling: touch;
}
.dash-pipeline .ops-pipe-h { margin: 0 0 8px; }
.dash-pipeline .ops-card-cover { height: 40px; margin-bottom: 4px; }
.dash-pipeline:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.dash-pipeline .ops-pipe { background: #fff; border-style: solid; }
.dash-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 16px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px 8px;
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  min-height: 88px;
  display: flex; flex-direction: column; gap: 2px;
  position: relative;
  overflow: hidden;
}
.kpi:hover { border-color: #b7c4d4; box-shadow: 0 4px 14px rgba(16,24,40,0.08); }
.kpi:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.kpi-label {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
}
.kpi-value {
  font-family: var(--mono); font-size: 20px; font-weight: 500;
  letter-spacing: -0.03em; line-height: 1.2; margin-top: 2px;
}
.kpi-sub { font-size: 11px; color: var(--ink-3); }
.delta-up { color: var(--green); font-weight: 600; }
.delta-down { color: var(--red); font-weight: 600; }
.spark { height: 22px; margin-top: 4px; width: 100%; }
.spark polyline { fill: none; stroke: var(--navy); stroke-width: 1.4; }
.spark path.area { fill: rgba(27,58,95,0.08); stroke: none; }

.rev-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.rev-card {
  background: var(--bg-dark);
  color: #d7e0ea;
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  border: 1px solid #1a2432;
}
.rev-card:hover { border-color: #3a4c64; }
.rev-card .k { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #7e8c9c; }
.rev-card .v { font-family: var(--mono); font-size: 26px; color: #fff; margin-top: 4px; letter-spacing: -0.03em; }
.rev-card.gold { background: linear-gradient(180deg, #16120a 0%, #1c160c 100%); border-color: #3a3018; }
.rev-card.gold .v { color: var(--gold-2); }
.rev-card.closed .v { color: #8fd4aa; }

/* ── Deal flow flagship ── */
.deal-flow {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  margin-bottom: 14px;
  color: #cdd6e0;
  cursor: default;
}
.mod-head-dark {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px;
}
.mod-head-dark h2 {
  margin: 0; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-2); font-weight: 650;
}
.mod-head-dark span { font-size: 11px; color: #7e8c9c; }
.flow-row {
  display: flex; align-items: stretch; gap: 0;
}
.flow-stage {
  flex: 1; text-align: center; position: relative; padding: 8px 4px 10px;
  background: transparent; border: 0; color: inherit; cursor: pointer;
  border-radius: 8px;
}
.flow-stage.pillar-find { background: rgba(29,79,140,.22); }
.flow-stage.pillar-lock { background: rgba(196,163,90,.22); }
.flow-stage.pillar-sell { background: rgba(15,110,106,.22); }
.flow-stage.pillar-close { background: rgba(23,100,58,.22); }
.flow-stage.pillar-find .flow-n { color: #9ec5f0; }
.flow-stage.pillar-lock .flow-n { color: var(--gold-2); }
.flow-stage.pillar-sell .flow-n { color: #7ed4cf; }
.flow-stage.pillar-close .flow-n { color: #8fd4aa; }
.flow-stage:hover .flow-n { color: #fff; }
.flow-n {
  font-family: var(--mono); font-size: 22px; color: #fff; font-weight: 500;
  letter-spacing: -0.03em;
}
.flow-l {
  font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #7e8c9c; margin-top: 2px;
}
.flow-arrow {
  width: 28px; display: flex; align-items: center; justify-content: center;
  color: #3d5168; flex-shrink: 0;
}
.flow-arrow svg { width: 18px; height: 18px; }
.flow-money {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid #1c2838;
}
.flow-money div { font-size: 11px; color: #7e8c9c; }
.flow-money b {
  display: block; font-family: var(--mono); font-size: 16px;
  color: #fff; font-weight: 500; margin-bottom: 2px;
}

/* ── Modules ── */
.mod {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  min-width: 0;
}
.mod-h {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--line);
}
.mod-h h2 {
  margin: 0; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600; color: var(--ink);
  flex: 1;
}
.mod-b { padding: 8px 12px 12px; flex: 1; }
.count-badge {
  font-family: var(--mono); font-size: 10.5px;
  background: var(--bg-muted); border: 1px solid var(--line);
  border-radius: 99px; padding: 1px 7px; color: var(--ink-2);
}
.count-badge.red { background: var(--red-bg); border-color: var(--red-line); color: var(--red); }
.tabs { display: flex; gap: 2px; }
.tab {
  border: 0; background: transparent; font-size: 11px; color: var(--ink-3);
  padding: 3px 8px; border-radius: 4px;
}
.tab:hover { background: var(--bg-muted); color: var(--ink); }
.tab.on { background: var(--bg-dark); color: #fff; }
.link {
  background: none; border: 0; color: var(--blue); font-size: 11.5px;
  padding: 0; cursor: pointer;
}
.link:hover { text-decoration: underline; }

/* ── Grid ── */
.grid-3 {
  display: grid;
  grid-template-columns: 40% 35% 25%;
  gap: 10px;
  margin-bottom: 10px;
  align-items: start;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.span-2 { grid-column: span 2; }
.col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* ── Priorities ── */
.pri-row {
  display: grid;
  grid-template-columns: 62px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 7px 4px;
  border-bottom: 1px solid var(--line);
  width: 100%;
  background: transparent; border-left: 0; border-right: 0; border-top: 0;
  text-align: left; color: inherit; cursor: pointer;
}
.pri-row:last-child { border-bottom: 0; }
.pri-row:hover { background: var(--bg-muted); }
.pill {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em;
  padding: 2px 6px; border-radius: 3px; display: inline-block; text-align: center;
}
.pill-urgent { background: #9f1f1f; color: #fff; }
.pill-high { background: #9a4d0a; color: #fff; }
.pill-med { background: #e8edf3; color: #3a4654; }
.pill-low { background: #ecfdf3; color: var(--green); }
.pri-title { font-size: 12.5px; font-weight: 550; }
.pri-sub { font-size: 11px; color: var(--ink-3); }
.pri-meta { font-size: 11px; color: var(--ink-3); text-align: right; }
.pri-memo {
  max-width: 720px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px 28px;
}
.pri-memo-note {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 18px;
  white-space: pre-wrap;
}
.pri-memo-note[contenteditable="true"] {
  outline: none;
  border-bottom: 1px dashed transparent;
}
.pri-memo-note[contenteditable="true"]:focus { border-bottom-color: var(--gold); color: var(--ink); }
.pri-memo-h {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}
.pri-memo-list { display: flex; flex-direction: column; gap: 8px; }
.pri-memo-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
}
.pri-memo-n { font-family: var(--mono); font-weight: 600; color: var(--ink-3); }
.pri-memo-row input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pri-memo-row input:focus { outline: none; border-bottom-color: var(--gold); }
.pri-memo-row.omitted input { color: var(--ink-3); font-weight: 500; }
.pri-memo-row .link { font-size: 11px; }
.pri-memo-foot { margin: 16px 0 0; font-size: 11px; color: var(--ink-3); }
.mod-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px 10px; border-top: 1px solid var(--line);
}

/* ── Hot opportunities ── */
.hot-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0;
  text-align: left; cursor: pointer; color: inherit;
}
.hot-row:last-child { border-bottom: 0; }
.hot-row:hover { background: var(--bg-muted); }
.hot-seller { border-bottom: 1px solid var(--line); padding: 6px 0 8px; }
.hot-seller:last-child { border-bottom: 0; }
.hot-seller-h { font-weight: 600; font-size: 12.5px; padding: 4px 0; }
.hot-bundle { margin: 2px 0 6px 8px; }
.hot-bundle-h { display: flex; flex-direction: column; gap: 1px; padding: 4px 0; min-width: 0; }
.hot-bundle-h strong { font-size: 12.5px; }
.hot-row.hot-kid { padding-left: 10px; grid-template-columns: 36px 1fr auto; }
.ops-archive { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line); }
.score {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  background: conic-gradient(var(--gold) calc(var(--s) * 1%), #eceff3 0);
  position: relative;
}
.score::after {
  content: attr(data-s);
  position: absolute; inset: 3px;
  background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.hot-addr { font-weight: 560; font-size: 12.5px; }
.hot-meta { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.hot-right { text-align: right; }
.hot-spread { font-family: var(--mono); color: var(--green); font-size: 13px; font-weight: 550; }
.heat-bar {
  height: 3px; background: #eceff3; border-radius: 2px; margin-top: 6px; overflow: hidden;
}
.heat-bar i { display: block; height: 100%; background: linear-gradient(90deg, #c4a35a, #9f1f1f); }

/* ── Pipelines ── */
.pipe {
  display: grid;
  gap: 0;
  padding: 4px 0 2px;
}
.pipe-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pipe-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.pipe-flow { grid-template-columns: repeat(11, minmax(0, 1fr)); }
.pipe-stage {
  min-width: 0;
  background: transparent; border: 0; text-align: left;
  padding: 4px 6px; cursor: pointer; color: inherit;
  border-right: 1px solid var(--line);
  position: relative;
}
.pipe-stage:last-child { border-right: 0; }
.pipe-stage:hover { background: var(--bg-muted); }
.pipe-name {
  font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
  line-height: 1.2; min-height: 0;
  display: flex; align-items: flex-end;
}
.pipe-n { font-family: var(--mono); font-size: 15px; margin-top: 2px; }
.pipe-v { font-size: 11px; color: var(--ink-3); }
.pipe-d { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.pipe-funnel {
  height: 6px; margin: 8px 12px 4px;
  background: linear-gradient(90deg, #1b3a5f, #c4a35a 55%, #17643a);
  clip-path: polygon(0 0, 100% 20%, 100% 80%, 0 100%);
  opacity: 0.85;
}
.pipe-funnel.dispo {
  background: linear-gradient(90deg, #1b3a5f, #0f6e6a 50%, #c4a35a);
}

/* ── Risk ── */
.risk-item {
  display: block; width: 100%;
  border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: 4px; padding: 8px 10px; margin-bottom: 6px;
  background: #fff; text-align: left; cursor: pointer; color: inherit;
}
.risk-item:hover { background: #fff8f8; }
.risk-item.med { border-left-color: var(--amber); }
.risk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.risk-addr { font-weight: 600; font-size: 12.5px; }
.risk-fee { font-family: var(--mono); font-size: 12px; color: var(--green); }
.risk-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px;
  margin-top: 4px; font-size: 11px; color: var(--ink-3);
}
.risk-grid b { color: var(--ink); font-weight: 550; }

/* ── Tables ── */
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th {
  text-align: left; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 650; padding: 6px 8px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: var(--bg-muted); }
.tbl td:first-child { font-weight: 550; }
.tbl.compact td, .tbl.compact th { padding: 5px 6px; }
.right { text-align: right; }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px;
}
.s-active { background: #17643a; }
.s-very { background: #0f6e6a; box-shadow: 0 0 0 3px rgba(15,110,106,0.15); }
.s-warn { background: #b45309; }
.s-risk { background: #9f1f1f; }

.stat-mini {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px;
}
.stat-mini div {
  background: var(--bg-muted); border: 1px solid var(--line);
  border-radius: 4px; padding: 7px 8px;
}
.stat-mini .n { font-family: var(--mono); font-size: 15px; }
.stat-mini .l { font-size: 10px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }

/* ── Demand ── */
.demand-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--line);
  width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0;
  cursor: pointer; color: inherit; text-align: left;
}
.demand-row:last-child { border-bottom: 0; }
.demand-row:hover { background: var(--bg-muted); }
.demand-city { flex: 1; font-weight: 550; font-size: 12.5px; }
.demand-bar { flex: 1.2; height: 6px; background: #eceff3; border-radius: 3px; overflow: hidden; }
.demand-bar i { display: block; height: 100%; background: linear-gradient(90deg, #1b3a5f, var(--gold)); }
.demand-lvl { font-size: 10.5px; color: var(--ink-3); width: 88px; text-align: right; }

/* ── Charts ── */
.chart-box { height: 150px; position: relative; }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 52px; gap: 8px; align-items: center; font-size: 11.5px; }
.bar-track { height: 8px; background: #eef1f4; border-radius: 4px; overflow: hidden; cursor: pointer; }
.bar-track i { display: block; height: 100%; background: var(--navy); border-radius: 4px; }
.bar-row:hover .bar-track i { background: var(--gold); }
.bar-val { font-family: var(--mono); text-align: right; font-size: 11px; }

.hour-chart { width: 100%; height: 90px; }
.hour-chart polyline { fill: none; stroke: var(--navy); stroke-width: 1.6; }
.hour-chart path.area { fill: rgba(27,58,95,0.10); }
.hour-lbl {
  display: flex; justify-content: space-between;
  font-size: 9.5px; color: var(--ink-3); margin-top: 2px;
}

.forecast { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.f-col { text-align: center; }
.f-month { font-size: 10px; letter-spacing: 0.12em; color: var(--ink-3); font-weight: 650; }
.f-bars { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 92px; margin: 8px 0; }
.f-bars span {
  width: 18px; border-radius: 3px 3px 0 0; display: block;
}
.f-bars .c { background: #8fd4aa; }
.f-bars .e { background: var(--navy); }
.f-bars .o { background: #cfd6de; }
.f-legend { font-size: 10.5px; color: var(--ink-3); line-height: 1.45; }
.f-legend b { color: var(--ink); font-weight: 550; font-family: var(--mono); font-size: 11px; }

/* ── Team / funnel / speed ── */
.leader {
  width: 100%; height: 4px; background: #eef1f4; border-radius: 2px; margin-top: 3px;
}
.leader i { display: block; height: 100%; background: var(--navy); border-radius: 2px; }

.funnel {
  display: flex; flex-direction: column; gap: 0;
}
.fun-step {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px;
  align-items: center; padding: 6px 8px; cursor: pointer;
  border: 0; background: #f4f6f8; margin: 0 auto; color: inherit; text-align: left;
}
.fun-step:hover { background: #e8edf3; }
.fun-step .n { font-family: var(--mono); font-size: 15px; }
.fun-step .l { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.fun-conv { font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); }
.fun-arrow { text-align: center; color: #9aa6b4; font-size: 10px; padding: 1px 0; }
.fun-step.leak { outline: 1px solid #f3c5c5; background: #fef2f2; }
.leak-note {
  margin-top: 8px; font-size: 11.5px; background: var(--red-bg);
  color: var(--red); padding: 6px 8px; border-radius: 4px;
}

.speed-avg {
  font-family: var(--mono); font-size: 28px; letter-spacing: -0.03em;
}
.speed-row { display: flex; gap: 16px; margin: 4px 0 10px; font-size: 11.5px; color: var(--ink-3); }
.speed-row b { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.speed-chain { font-size: 12px; }
.speed-node { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.speed-node .t { font-family: var(--mono); font-size: 12px; min-width: 58px; color: var(--navy); }
.speed-node .d { color: var(--ink-3); font-size: 11.5px; }
.vline { width: 1px; height: 10px; background: var(--line-2); margin-left: 20px; }

/* ── AI ── */
.ai-card {
  background: linear-gradient(180deg, #0f1622 0%, #121c2a 100%);
  color: #d5dee8; border: 1px solid #1c2838;
}
.ai-card .mod-h { border-bottom-color: #1c2838; }
.ai-card h2 { color: var(--gold-2); }
.ai-sub { font-size: 11px; color: #8b98a8; padding: 0 12px 6px; }
.ai-rec {
  display: block; width: calc(100% - 0px);
  background: #161f2c; border: 1px solid #243044;
  border-radius: 4px; padding: 8px 10px; margin-bottom: 6px;
  text-align: left; color: inherit; cursor: pointer;
}
.ai-rec:hover { border-color: #c4a35a; }
.ai-rec h3 { margin: 0 0 4px; font-size: 12.5px; font-weight: 560; color: #f2f5f8; }
.ai-rec p { margin: 0 0 6px; font-size: 11.5px; color: #9aa8b8; line-height: 1.4; }
.ai-rec .link { color: var(--gold-2); }

/* ── Activity ── */
.act-row {
  display: grid; grid-template-columns: 62px 1fr;
  gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line);
  width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0;
  text-align: left; cursor: pointer; color: inherit;
}
.act-row:hover { background: var(--bg-muted); }
.act-t { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.act-b { font-size: 12px; }

/* ── Map ── */
.map-wrap { position: relative; height: 320px; min-height: 320px; background: #0e1622; border-radius: 4px; overflow: hidden; isolation: isolate; z-index: 1; }
.map-leaflet, .map-wrap .leaflet-container { width: 100%; height: 100%; min-height: 320px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-svg { width: 100%; height: 100%; }
.map-empty {
  position: absolute; inset: 0; z-index: 400;
  margin: 0; display: flex; align-items: center; justify-content: center;
  padding: 16px; text-align: center; color: #d7e0ea; font-size: 12.5px;
  background: rgba(14, 22, 34, 0.55); pointer-events: none;
}
.map-empty.hidden { display: none; }
.map-pin { background: none; border: 0; }
.map-pin span {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.45);
}
.map-legend {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px;
  font-size: 10.5px; color: var(--ink-3);
}
.map-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.leaflet-container { font-family: var(--font); }
.map-stage, .map-wrap, .addr-map, .leaflet-container {
  isolation: isolate;
  z-index: 1;
  transform: translateZ(0);
}
.map-stage { position: relative; width: 100%; height: 100%; min-height: inherit; }
.map-wrap > .map-stage { height: 100%; min-height: 320px; }
.addr-box .map-stage {
  height: 148px; margin-top: 6px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.uw-field .addr-box .map-stage { height: 132px; }
.crm-prop-edit .map-stage { height: 160px; grid-column: 1 / -1; }
.mod-b > .addr-box .map-stage { height: 240px; }
.map-stage .leaflet-container, .map-stage .map-leaflet, .map-stage iframe { width: 100%; height: 100%; }
.map-stage.addr-map-stage {
  width: 100%;
  height: 240px;
  min-height: 240px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-muted);
}
.addr-box > .map-stage.addr-map-stage {
  height: 148px;
  min-height: 148px;
  margin-top: 6px;
}
.uw-field .addr-box > .map-stage.addr-map-stage {
  height: 132px;
  min-height: 132px;
}
.crm-prop-edit .map-stage.addr-map-stage {
  height: 160px;
  min-height: 160px;
  grid-column: 1 / -1;
}
.map-stage.addr-map-stage .addr-map,
.map-stage.addr-map-stage .leaflet-container,
.map-stage.addr-map-stage iframe {
  width: 100%;
  height: 100% !important;
  min-height: 100%;
  border: 0;
}
.map-fs-btn, .map-draw-bar .map-tool {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 4px; font-size: 11px; padding: 4px 8px; cursor: pointer;
}
.map-fs-btn {
  position: absolute; top: 8px; right: 8px; z-index: 500;
  box-shadow: var(--shadow);
}
.map-draw-bar {
  position: absolute; left: 8px; bottom: 8px; z-index: 500;
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  background: rgba(255,255,255,0.92); border: 1px solid var(--line);
  border-radius: 6px; padding: 4px 6px; max-width: calc(100% - 16px);
}
.map-draw-bar .map-tool.on { border-color: var(--gold); background: #fbf8f0; }
.map-draw-status { font-size: 10.5px; color: var(--ink-3); padding: 0 4px; }
.map-stage.map-fs, .modal.map-fs {
  position: fixed; inset: 0; z-index: 4000; height: 100vh; min-height: 100vh;
  background: #0e1622; border-radius: 0; max-height: none; width: 100%;
}
.map-stage.map-fs .leaflet-container, .map-stage.map-fs iframe { height: 100%; min-height: 100vh; }
.modal.map-fs { background: #fff; overflow: hidden; z-index: 4001; display: flex; flex-direction: column; }
.modal.map-fs .pmap { flex: 1; min-height: 0; overflow: auto; }
.modal.map-fs .pmap-fs-btn, .modal-h .pmap-fs-btn {
  position: relative; top: auto; right: auto; margin-left: auto;
}
.modal.map-fs .modal-h { position: sticky; top: 0; z-index: 2; background: #fff; }
body.map-fs-lock { overflow: hidden; }
.uw-prop-market { margin-top: 12px; grid-column: 1 / -1; }
.uw-adj-grid { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 6px 0 10px; }
.uw-adj { font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.uw-adj em { font-style: normal; color: var(--ink-3); font-family: var(--mono); font-size: 11px; }
.uw-buybox { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fbf8f0; }
.comps-desk { display: grid; gap: 12px; }
.comps-desk .tbl input { width: 100%; min-width: 72px; }

/* ── Footer ── */
.sys-foot {
  margin-top: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 11px; color: var(--ink-3);
}
.sys-foot b { color: var(--ink-2); font-weight: 550; }
.ok-dot { width: 6px; height: 6px; background: #17643a; border-radius: 50%; display: inline-block; margin-right: 4px; }

/* ── Module list pages ── */
.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.page-title h1 { margin: 0; font-size: 20px; font-weight: 560; }
.crumb { font-size: 11.5px; color: var(--ink-3); margin-bottom: 4px; }
.crumb button { background: none; border: 0; color: var(--blue); padding: 0; font-size: inherit; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip {
  height: 26px; border: 1px solid var(--line); background: #fff; border-radius: 99px;
  padding: 0 10px; font-size: 11.5px; color: var(--ink-2);
}
.chip.on { background: var(--bg-dark); color: #fff; border-color: var(--bg-dark); }

/* ── Overlays ── */
#overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: transparent; padding: 0; pointer-events: none;
  display: block;
}
#overlay.hidden { display: none !important; }
#overlay:not(.hidden) { z-index: 7000; pointer-events: none; }
.overlay-layer {
  position: fixed; inset: 0; background: rgba(8,12,18,0.48);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; pointer-events: auto;
  isolation: isolate;
}
.overlay {
  position: fixed; inset: 0; background: rgba(8,12,18,0.48);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.login-gate:not(.hidden) ~ #overlay,
.login-gate:not(.hidden) ~ .overlay { z-index: 7000; }
.modal {
  background: #fff; border-radius: 8px; width: min(640px, 100%);
  box-shadow: var(--shadow-lg); max-height: 86vh; overflow: auto;
}
.modal.wide { width: min(860px, 100%); }
.modal.xl { width: min(1080px, 100%); }
.modal.xl:has(.person-deal) {
  height: min(88vh, 800px);
  max-height: min(88vh, 800px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal.xl:has(.person-deal) > .person-deal {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal.uw-full {
  width: min(1280px, 100%);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
}
.modal.uw-full .modal-b.jv-uw-modal {
  padding: 0;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.modal.uw-full #jv-uw-host,
.modal.uw-full .uw-shell { min-height: min(78vh, 820px); }
.modal.dark {
  background: #0e1622; color: #d5dee8; border: 1px solid #243044;
}
.modal-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.modal.dark .modal-h { border-bottom-color: #1c2838; }
.modal-h h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.modal-b { padding: 14px 16px; }
.modal-f {
  display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 12px 16px; border-top: 1px solid var(--line);
  flex: 0 0 auto;
  background: #fff;
  position: sticky;
  bottom: 0;
  z-index: 3;
}
.modal.dark .modal-f { border-top-color: #1c2838; background: #0e1622; }
.modal:has(> .modal-f),
.modal:has(> .modal-h) {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal:has(> .modal-f) > .modal-b,
.modal:has(> .modal-h) > .modal-b {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.modal:has(.sl-form) {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: min(88vh, 900px);
  max-height: min(88vh, 900px);
}
.modal:has(.sl-form) > .mod {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}
.mod > .uw-step-nav {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  margin-top: auto;
  background: #fff;
  z-index: 3;
}
.xbtn {
  width: 28px; height: 28px; border: 0; background: transparent; font-size: 18px; color: var(--ink-3);
}
.field { margin-bottom: 10px; }
.field label { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 4px; letter-spacing: 0.06em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 4px;
  padding: 8px 10px; font-size: 13px; background: #fff;
}
.field textarea { min-height: 72px; resize: vertical; }

.addr-box { position: relative; width: 100%; }
.addr-box input { width: 100%; }
.addr-state-hint { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.addr-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 120;
  background: #fff; border: 1px solid var(--line-2); border-radius: 6px;
  box-shadow: var(--shadow-md); max-height: 220px; overflow: auto; padding: 4px;
}
.addr-opt {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 7px 8px; border-radius: 4px; font-size: 12.5px; color: var(--ink);
}
.addr-opt small { display: block; color: var(--ink-3); font-size: 11px; margin-top: 1px; }
.addr-opt:hover, .addr-opt.on { background: var(--blue-bg); }
.addr-opt-empty { padding: 7px 8px; font-size: 12px; color: var(--ink-3); }
.addr-loading::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px; margin-right: 8px;
  border: 2px solid var(--line-2); border-top-color: var(--navy);
  border-radius: 50%; vertical-align: -1px;
  animation: addr-spin .6s linear infinite;
}
@keyframes addr-spin { to { transform: rotate(360deg); } }
.addr-box.is-lookup input { background-image: none; }
.addr-opt-manual { color: var(--navy); font-weight: 600; }
.addr-opt-manual:hover { background: var(--blue-bg); }
.addr-map {
  height: 148px; margin-top: 6px; border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; background: var(--bg-muted);
}
.addr-map iframe, .addr-map .leaflet-container { width: 100%; height: 100%; border: 0; }
.addr-cap { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.addr-cap a {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 4px; background: #fff;
  color: var(--ink); font-size: 11.5px; text-decoration: none;
}
.addr-cap a:hover { background: var(--bg-muted); border-color: var(--navy); }
.addr-cap .addr-gmaps { background: #fff; }
.uw-field .addr-map { height: 132px; }
.addr-map-wide,
.mod-b > .addr-map {
  width: 100%;
  height: 240px;
  margin-top: 10px;
}
.addr-cap-wide,
.mod-b > .addr-cap { margin-bottom: 10px; }
.crm-prop-edit .addr-map,
.crm-prop-edit .addr-cap { grid-column: 1 / -1; }
.crm-prop-edit .addr-map { height: 160px; margin-top: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100%);
  background: #fff; z-index: 90; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.drawer-h { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.drawer-h h3 { margin: 0; flex: 1; font-size: 15px; }
.drawer-b { padding: 14px 16px; overflow: auto; flex: 1; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 10px; font-size: 12.5px; margin-bottom: 12px; }
.kv .k { color: var(--ink-3); }
.section-lbl { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 14px 0 8px; font-weight: 650; }

.pop {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: var(--shadow-md); min-width: 220px; z-index: 50;
  padding: 6px;
}
.pop.left { left: 0; right: auto; }
.pop button.item {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 7px 8px; font-size: 12.5px; border-radius: 4px; color: var(--ink);
}
.pop button.item:hover { background: var(--bg-muted); }
.pop-h { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding: 6px 8px; }

.cmd {
  width: min(640px, 100%); background: #fff; border-radius: 8px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.cmd input {
  width: 100%; border: 0; border-bottom: 1px solid var(--line);
  padding: 14px 16px; font-size: 15px; outline: none;
}
.cmd-list { max-height: 360px; overflow: auto; padding: 6px; }
.cmd-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; border: 0; background: none; text-align: left;
  padding: 8px 10px; border-radius: 4px; font-size: 13px;
}
.cmd-item:hover, .cmd-item.on { background: var(--bg-muted); }
.cmd-item span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cmd-item strong { font-weight: 600; }
.cmd-item em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.cmd-item kbd { margin-left: auto; font-size: 10px; color: var(--ink-3); flex-shrink: 0; }
.cmd-empty { padding: 18px 12px; text-align: center; color: var(--ink-3); font-size: 13px; }

.find-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.find-opt {
  border: 1px solid var(--line); background: #fff; border-radius: 6px;
  padding: 12px; text-align: left; cursor: pointer;
}
.find-opt:hover { border-color: var(--gold); background: #fbf8f0; }
.find-opt h4 { margin: 0 0 4px; font-size: 13px; }
.find-opt p { margin: 0; font-size: 11.5px; color: var(--ink-3); }

.do-first { counter-reset: n; }
.do-first li {
  list-style: none; padding: 10px 10px 10px 40px; position: relative;
  border: 1px solid var(--line); border-radius: 4px; margin-bottom: 8px;
}
.do-first li::before {
  counter-increment: n; content: counter(n);
  position: absolute; left: 10px; top: 10px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-dark); color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
}
.do-first strong { display: block; font-size: 13px; }
.do-first span { font-size: 12px; color: var(--ink-3); }

.widget-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.widget-list label { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 6px; border: 1px dashed transparent; border-radius: 4px; cursor: grab; }
.widget-list label:hover { background: var(--bg-muted); }
.widget-list .grip { color: var(--ink-3); letter-spacing: -2px; font-size: 12px; }
.modal.dark .do-first li { border-color: #2a3c54; background: #161f2c; }

.fold-h { display: flex; align-items: flex-start; gap: 4px; cursor: pointer; }
.fold-h > .crm-prop-card,
.fold-h > .pmap-chip,
.fold-h > .person-prop-tab,
.fold-h > .ops-card-main,
.fold-h > .uw-deal-main,
.fold-h > .uw-deal,
.fold-h > .uw-desk-card-main { flex: 1; min-width: 0; }
.fold-caret {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-top: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
}
.fold-caret:hover { background: var(--bg-muted); }
.fold-caret::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 6px solid var(--ink-3);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin: 10px auto 0;
  transition: transform .12s ease;
}
[data-fold-box]:not(.is-folded):not([data-folded]) > .fold-h .fold-caret::before,
[data-fold-box]:not(.is-folded):not([data-folded]) > .fold-caret::before {
  transform: rotate(90deg);
}
[data-fold-box].is-folded > .fold-body,
[data-fold-box][data-folded] > .fold-body { display: none !important; }

.toast {
  position: fixed; top: 16px; right: 16px; bottom: auto; z-index: 11050;
  background: var(--bg-dark); color: #fff; padding: 10px 14px;
  border-radius: 6px; font-size: 12.5px; box-shadow: var(--shadow-lg);
  max-width: min(360px, calc(100vw - 32px));
}
.pop .item.unread { font-weight: 600; }
.pop .item.unread::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #c0392b; margin-right: 8px; flex: 0 0 auto;
}
.pop-empty { padding: 12px 10px; font-size: 12px; color: var(--ink-3); }
#bellPop { max-height: 70vh; overflow: auto; }

.chat { display: flex; flex-direction: column; height: 420px; }
.chat-log { flex: 1; overflow: auto; padding: 8px 0; }
.bubble { max-width: 90%; padding: 8px 10px; border-radius: 6px; margin-bottom: 8px; font-size: 12.5px; line-height: 1.45; }
.bubble.me { background: var(--navy); color: #fff; margin-left: auto; }
.bubble.ai { background: #f3f5f8; }
.chat-in { display: flex; gap: 6px; }
.chat-in input { flex: 1; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; }

.state-panel {
  padding: 40px 20px; text-align: center; color: var(--ink-2);
}
.state-panel h3 { margin: 8px 0 6px; }
.state-panel p { color: var(--ink-3); font-size: 12.5px; }
.skel { background: linear-gradient(90deg, #eef1f4 25%, #f7f8fa 50%, #eef1f4 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 4px; height: 14px; margin: 8px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

.demo-banner {
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #7e8c9c; background: #121a26; padding: 6px 12px; text-align: center;
}

.tooltip {
  position: absolute; background: #0e1622; color: #fff; font-size: 11px;
  padding: 6px 8px; border-radius: 4px; pointer-events: none; z-index: 100;
  max-width: 220px; line-height: 1.35;
}

.rel { position: relative; }

/* ── Responsive ── */
@media (max-width: 1280px) {
  .kpi-strip { grid-template-columns: repeat(4, 1fr); }
  .dash-kpis { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 .col-3 { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .pipe-7, .pipe-8, .pipe-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pipe-stage { border-bottom: 1px solid var(--line); }
}
@media (max-width: 1100px) {
  .search-kbd { display: none; }
  .search-wrap { max-width: 280px; }
}
@media (max-width: 980px) {
  .app { grid-template-columns: 0 1fr; }
  .app.collapsed { --sidebar: 0px; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 240px; transform: translateX(-100%); }
  .app.sidebar-open .sidebar { transform: none; }
  .kpi-strip, .dash-kpis, .dash-split { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .rev-strip { grid-template-columns: 1fr; }
  .grid-3 .col-3 { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; }
  .flow-n { font-size: 16px; }
  html { font-size: 12.5px; }
  .w-alerts { order: 1; }
  .w-priorities { order: 2; }
  .w-hot { order: 3; }
  .w-risk { order: 4; }
  .w-acq { order: 5; }
  .w-dispo { order: 6; }
  .w-buyers { order: 7; }
  .w-kpis { order: 8; }
  .w-analytics { order: 9; }
}
/* ── Underwrite ── */
#view-underwrite { padding: 0; min-height: 100%; }
.uw-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100%;
  align-items: start;
}
.uw-shell.uw-desk { grid-template-columns: 1fr; }
.uw-shell.uw-rail-collapsed { grid-template-columns: 52px 1fr; }
.uw-shell.uw-rail-collapsed .uw-rail > *:not(#uwRailToggle) { display: none; }
.uw-shell.uw-rail-collapsed #uwRailToggle {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  width: 100%;
  min-height: 120px;
  margin: 0;
}
.uw-rail {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 12px 10px 10px;
  position: sticky;
  top: 0;
  align-self: start;
  height: calc(100vh - var(--topbar));
  max-height: calc(100vh - var(--topbar));
  overflow: hidden;
  z-index: 4;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.uw-rail-mid {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.uw-check-list {
  flex: 0 0 auto;
  max-height: 34%;
  overflow: auto;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.uw-check-h {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; margin: 0 2px 6px;
}
.uw-check-h span { letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--ink-2); }
.uw-check-row {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 3px 2px; border-radius: 6px;
}
.uw-check-row.on { background: #eef3f8; }
.uw-check-row.is-done strong { color: #17643a; }
.uw-check-row input { width: auto; height: auto; margin: 3px 0 0; flex: none; }
.uw-check-go {
  flex: 1; min-width: 0; text-align: left; border: 0; background: transparent;
  padding: 0; cursor: pointer; color: inherit;
}
.uw-check-go strong { display: block; font-size: 12px; font-weight: 600; }
.uw-check-go span { display: block; font-size: 10.5px; color: var(--ink-3); line-height: 1.25; }
.uw-back {
  width: 100%;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid var(--line);
}
.uw-rail-h h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.uw-rail-h p { margin: 4px 0 12px; font-size: 11.5px; color: var(--ink-3); }
.uw-deal-list { margin-top: 0; display: flex; flex-direction: column; gap: 4px; }
.uw-deal {
  display: flex; align-items: center; gap: 4px; width: 100%; text-align: left;
  border: 1px solid var(--line); background: #fff; border-radius: 6px;
  padding: 4px 4px 4px 6px; color: inherit;
}
.uw-deal-main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; text-align: left;
  border: 0; background: transparent; padding: 0; cursor: pointer; color: inherit;
}
.uw-deal strong {
  display: block; font-size: 12px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.uw-deal span { font-size: 11px; color: var(--ink-3); }
.uw-deal:hover { background: var(--bg-muted); }
.uw-deal.on { border-color: var(--navy); background: #eef3f8; }
.uw-deal.picked { border-color: var(--navy); background: #f3f6fa; }
.uw-deal.off-contract { opacity: 0.72; }
.uw-deal .uw-check { display: flex; align-items: center; margin: 4px 0 0; }
.uw-deal .uw-check input { width: auto; height: auto; margin: 0; }
.uw-more-btn {
  flex: none; width: 22px; height: 22px; border: 0; background: transparent;
  color: var(--ink-3); cursor: pointer; border-radius: 4px; font-size: 16px; line-height: 1;
}
.uw-more-btn:hover { background: rgba(0,0,0,0.06); color: var(--ink); }
.uw-off { display: inline; margin-left: 6px; font-style: normal; color: #9f1f1f; font-size: 10px; }
.uw-select-bar {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: 10px 0 0; padding: 8px; border: 1px solid var(--line);
  border-radius: 8px; background: #f7f8fa;
}
.uw-select-count { font-size: 11.5px; font-weight: 600; margin-right: 2px; }
.uw-select-bar select { height: 28px; max-width: 140px; font-size: 12px; }
.uw-new-drop {
  margin: 4px 0 8px; padding: 8px 6px; border: 1px dashed var(--line);
  border-radius: 6px; font-size: 11px; color: var(--ink-3); text-align: center;
}
.uw-new-drop.drop-on { border-color: var(--navy); background: #eef3f8; color: var(--ink); }
.uw-ctx {
  position: fixed; z-index: 80; min-width: 220px; max-width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 28px rgba(20,24,32,0.16); padding: 6px; 
}
.uw-ctx hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
.uw-ctx-item {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 7px 8px; border-radius: 5px; font-size: 12.5px; cursor: pointer; color: inherit;
}
.uw-ctx-item:hover:not(:disabled) { background: var(--bg-muted); }
.uw-ctx-item:disabled { opacity: 0.45; cursor: default; }
.uw-ctx-item.danger { color: #9f1f1f; }
.uw-house-list { display: flex; flex-direction: column; gap: 6px; }
.uw-house-card {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: grab;
}
.uw-house-card.off { opacity: 0.7; background: #fafafa; }
.uw-house-card.picked { border-color: var(--navy); background: #f3f6fa; }
.uw-house-card.ops-dragging { opacity: 0.45; }
.uw-house-main { flex: 1; min-width: 0; cursor: pointer; }
.uw-house-main b { display: block; font-size: 12.5px; }
.uw-pill {
  flex: none; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-3);
}
.uw-pill.on { border-color: #17643a; color: #17643a; background: #f3faf6; }
.uw-pill.off { border-color: #9f1f1f; color: #9f1f1f; background: #fdf6f6; }
.uw-seller-group {
  margin-bottom: 8px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 36px;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.uw-seller-group.drop-on {
  border-color: var(--navy);
  background: #eef3f8;
  box-shadow: inset 0 0 0 1px var(--navy);
}
.uw-drop-hint { padding: 6px 4px 8px; }
.uw-bundle-group {
  margin: 6px 0 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 36px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.uw-bundle-group.drop-on {
  border-color: var(--navy);
  background: #eef3f8;
  box-shadow: inset 0 0 0 1px var(--navy);
}
.uw-bundle-kids { margin-top: 2px; padding-left: 2px; display: flex; flex-direction: column; gap: 3px; }
.uw-deal-bundle { border-color: var(--navy); background: #f4f7fa; width: 100%; }
.uw-deal-bundle strong { white-space: nowrap; }
.uw-deal.drop-on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.uw-deal-child { margin-left: 10px; width: calc(100% - 10px); }
.uw-seller-group summary { cursor: pointer; font-size: 12px; font-weight: 600; padding: 4px 2px; list-style: none; display: flex; align-items: center; gap: 6px; }
.uw-seller-group summary .uw-more-btn { margin-left: auto; }
.uw-seller-group summary::-webkit-details-marker { display: none; }
.uw-seller-group summary::before { content: "▾"; color: var(--ink-3); }
.uw-seller-group[open] summary::before { content: "▸"; }
.uw-group-lbl { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 6px 0 4px 2px; }
.uw-bundle-picker {
  margin-top: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-muted);
}
.uw-bundle-pick { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 2px; }
.uw-bundle-pick input { width: auto; height: auto; }
.uw-bundle-roster {
  margin: 10px 0 12px; padding: 10px 12px; border: 1px dashed var(--line);
  border-radius: 8px; background: #fbf8f0;
}
.uw-bundle-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 8px;
}
.uw-bundle-move { min-width: 220px; margin: 0; }
.uw-bundle-move select { height: 32px; }
.uw-bundle-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.uw-bundle-table th, .uw-bundle-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.uw-bundle-table th { background: var(--bg-muted); }
.uw-bundle-table tr.sum td { font-weight: 700; background: #fbf8f0; }

.uw-work { padding: 18px 20px 40px; min-width: 0; }
.uw-desk-page { max-width: 1100px; }
.uw-desk-filters { margin: 0 0 16px; }
.uw-desk-filters input[type="search"] {
  width: 100%; max-width: 360px; height: 34px; margin-bottom: 10px;
}
.uw-stage-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.uw-stage-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 4px 10px; font-size: 12px; color: var(--ink-2);
}
.uw-stage-chip.on { border-color: var(--navy); background: #f3f6fa; color: var(--ink); font-weight: 600; }
.uw-desk-sellers { display: flex; flex-direction: column; gap: 16px; }
.uw-desk-seller {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  min-width: 0; overflow: hidden;
}
.uw-desk-seller.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.uw-desk-seller-h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  cursor: pointer; margin-bottom: 10px;
}
.uw-desk-seller-h h2 { margin: 0; font-size: 16px; font-weight: 600; }
.uw-desk-deals {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px;
  min-width: 0;
}
.uw-desk-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px;
  background: #fbfcfe; min-height: 118px; min-width: 0; overflow: hidden;
}
.uw-desk-card.is-bundle { border-color: var(--navy); background: #f4f7fa; }
.uw-desk-kids { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; padding: 0 12px; }
.uw-desk-kids span {
  font-size: 11px; background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  border-radius: 6px; padding: 2px 8px;
}
.uw-desk-card-main {
  flex: 1; text-align: left; border: 0; background: transparent; padding: 10px 12px 6px; color: inherit;
  min-width: 0;
}
.uw-desk-card-main strong { display: block; font-size: 13.5px; margin-bottom: 4px; overflow-wrap: anywhere; }
.uw-desk-stage { display: block; margin-top: 6px; font-size: 11px; color: var(--navy); }
.uw-desk-card-actions {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; padding: 8px 10px 10px;
  min-width: 0;
}
.uw-desk-card-actions .btn { flex: 1 1 auto; min-width: calc(50% - 6px); }
.uw-metrics-panel { margin-bottom: 12px; }
.uw-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px 12px;
  overflow: visible;
}
.uw-metrics-panel { overflow: visible; }
.uw-m {
  position: relative;
  padding: 2px 2px 4px;
  border-radius: 4px;
}
.uw-m:focus-visible {
  outline: none;
}
.uw-metrics small {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #7e8c9c; margin-top: 2px;
}
.uw-tip {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 40;
  width: max-content;
  max-width: 280px;
  background: #161f2c;
  color: #d7e0ea;
  border: 1px solid #3a4c64;
  border-radius: 4px;
  padding: 8px 22px 8px 10px;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}
.uw-tip b {
  display: block;
  color: var(--gold-2);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 600;
}
.uw-m.tip-open > .uw-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.uw-metrics > .uw-m:nth-child(6n) .uw-tip { left: auto; right: 0; }
.uw-metrics > .uw-m:nth-last-child(-n+6) .uw-tip {
  top: auto;
  bottom: calc(100% + 6px);
}
.uw-metric {
  font-family: var(--mono); font-size: 16px; color: #fff; letter-spacing: -0.02em;
}
.uw-metric.good { color: #8fd4aa; }
.uw-metric.warn { color: var(--gold-2); }
.uw-metric.bad { color: #f0a8a8; }
.uw-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px 10px;
}
.uw-enc { margin-top: 12px; }
.uw-enc table input, .uw-enc table select {
  width: 100%; min-width: 72px; height: 28px;
  border: 1px solid var(--line); border-radius: 4px;
  padding: 0 6px; font-size: 12px; background: #fff;
}
.uw-calc-mod, .uw-calc-mod .mod-b { overflow: visible; }
.uw-calc-fields { display: flex; flex-direction: column; gap: 10px; overflow: visible; }
.uw-fg { overflow: visible; }
.uw-fg-h {
  margin: 0 0 6px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 650;
}
.uw-calc-switch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 4px; }
.uw-calc-switch .tabs { background: var(--bg-muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px; }
.uw-path-hint { margin: 0 0 8px; }
.uw-rehab-guide { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; }
.uw-rehab-chip {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 1px; min-width: 72px;
  border: 1px solid var(--line); background: #fff;
  border-radius: 6px; padding: 6px 8px; cursor: pointer; color: inherit;
}
.uw-rehab-chip b { font-size: 11.5px; font-weight: 650; }
.uw-rehab-chip span { font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); }
.uw-rehab-chip:hover, .uw-rehab-chip.on { border-color: var(--gold); background: #fbf8f0; }
.uw-calc-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 4px;
}
.uw-calc-card {
  display: block; width: 100%; text-align: left;
  border: 1px solid var(--line); background: #fff;
  border-radius: 6px; padding: 7px 8px; cursor: pointer;
}
.uw-calc-card strong { display: block; font-size: 12px; }
.uw-calc-card span { display: block; font-size: 11px; color: #5c6b7a; margin-top: 2px; line-height: 1.3; }
.uw-calc-card.on { border-color: var(--gold); background: #fbf8f0; }
.uw-calc-card:hover { border-color: var(--gold); }
.uw-field {
  position: relative;
  display: flex; flex-direction: column; gap: 3px;
  font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em;
  overflow: visible;
}
.uw-field-h { display: inline-flex; align-items: center; gap: 4px; }
.uw-help-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 12px; height: 12px; padding: 0; margin: 0 0 0 2px;
  border: 0; border-radius: 50%;
  font-family: inherit; font-style: normal; font-size: 9px; font-weight: 500;
  line-height: 1; letter-spacing: 0; color: #8b98a8; background: transparent;
  opacity: 0.28; pointer-events: none; cursor: pointer; flex: 0 0 auto;
}
.has-tip:hover .uw-help-dot,
.uw-m:hover .uw-help-dot,
.uw-help-dot:focus-visible,
.tip-open .uw-help-dot {
  opacity: 0.85;
  pointer-events: auto;
  color: #6a7786;
}
.uw-help-dot:hover, .uw-help-dot:focus-visible {
  color: #3d4a58; background: rgba(0,0,0,0.06); outline: none;
}
.has-tip { position: relative; }
.has-tip.tip-open,
.uw-m.tip-open { z-index: 60; }
.has-tip.tip-open > .uw-tip { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.uw-tip-x {
  position: absolute; top: 4px; right: 4px;
  width: 16px; height: 16px; padding: 0; border: 0; border-radius: 3px;
  background: transparent; color: #9aa6b2; font-size: 14px; line-height: 1; cursor: pointer;
}
.uw-tip-x:hover, .uw-tip-x:focus-visible { color: #fff; background: rgba(255,255,255,0.08); outline: none; }
.uw-tip-plain-btn {
  display: inline-block;
  margin-top: 6px;
  border: 1px solid #6d7f96;
  background: transparent;
  color: var(--gold-2);
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.uw-tip-plain-btn:hover { background: rgba(255,255,255,0.06); }
.uw-tip-pro, .uw-tip-plain { display: block; }
.uw-tip.plain-on .uw-tip-pro { display: none; }
.uw-course-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; margin-left: 8px; vertical-align: middle;
  border: 0; border-radius: 50%;
  background: var(--gold); color: #1a1408;
  font-size: 12px; font-weight: 800; cursor: pointer;
}
.uw-deal-pulse { margin: 8px 0 10px; }
.uw-pulse-now {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
}
.uw-pulse-now strong { display: block; font-size: 13px; }
.uw-pulse-now span { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; line-height: 1.35; }
.uw-pulse-now.good { border-color: #7cbc94; background: #f3faf5; }
.uw-pulse-now.warn { border-color: #d4b36a; background: #fbf8f0; }
.uw-pulse-now.bad { border-color: #d98989; background: #fbf4f4; }
.uw-pulse-now.mute { background: #f6f7f8; }
.uw-pulse-paths { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.uw-pulse-chip {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); background: #fff;
  border-radius: 99px; padding: 3px 8px 3px 6px;
  font-size: 11px; color: var(--ink-2); cursor: pointer;
}
.uw-pulse-chip i {
  width: 8px; height: 8px; border-radius: 50%; background: #c5ced6;
}
.uw-pulse-chip.good i { background: #3d9a68; }
.uw-pulse-chip.warn i { background: #c7922b; }
.uw-pulse-chip.bad i { background: #c45656; }
.uw-pulse-chip.on { border-color: var(--gold); background: #fbf8f0; color: var(--ink); }
.uw-calc-card.good { border-color: #7cbc94; }
.uw-calc-card.warn { border-color: #d4b36a; }
.uw-calc-card.bad { border-color: #d98989; }
.uw-calc-card em {
  display: block; font-style: normal; font-size: 10.5px;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-top: 4px; color: var(--ink-3);
}
.uw-calc-card.good em { color: #2f7a52; }
.uw-calc-card.warn em { color: #9a6f1c; }
.uw-calc-card.bad em { color: #a13d3d; }
.uw-course { font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.uw-course ol { margin: 0; padding-left: 18px; }
.uw-course li { margin: 0 0 10px; }
.uw-course-ex {
  margin-top: 6px; padding: 8px 10px;
  background: #f6f3eb; border-radius: 6px;
  font-family: var(--mono); font-size: 12px; line-height: 1.45;
}
.uw-field.has-tip .uw-tip,
.uw-rehab-chip .uw-tip,
.tab.has-tip .uw-tip {
  left: 0; top: calc(100% + 4px); bottom: auto; right: auto; z-index: 50;
}
.uw-fields > .uw-field:last-child .uw-tip,
.uw-rehab-guide .uw-rehab-chip:last-child .uw-tip { left: auto; right: 0; }
.uw-field input, .uw-field select {
  height: 28px; border: 1px solid var(--line); border-radius: 4px;
  padding: 0 8px; font-size: 13px; color: var(--ink); background: #fff;
}
.uw-field input:focus, .uw-field select:focus {
  outline: none; border-color: #9bb0c7; box-shadow: 0 0 0 3px rgba(29,79,140,0.08);
}
.uw-check { flex-direction: row; align-items: center; gap: 8px; }
.uw-check input { width: auto; height: auto; }
.uw-prop { margin: 10px 0; }
.uw-used { font-size: 11.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.uw-units { margin: 10px 0; }
.uw-units input[type="number"], .uw-units input[type="text"] {
  width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px; font-size: 12px;
}
.uw-dash {
  background: var(--bg-dark); color: #d7e0ea; border-radius: var(--radius); padding: 12px 14px;
}
.uw-dash-name { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 8px; }
.uw-dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.uw-dash-grid b { display: block; font-family: var(--mono); font-size: 18px; color: #fff; font-weight: 500; }
.uw-dash-grid span { font-size: 10.5px; color: #7e8c9c; letter-spacing: 0.08em; text-transform: uppercase; }

.uw-paper-sec {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; margin: 14px 0 8px;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.uw-paper-sec:first-of-type { border-top: 0; padding-top: 0; margin-top: 4px; }
.uw-radios {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  margin: 6px 0 10px; font-size: 12.5px;
}
.uw-radios label { display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--ink); }
.uw-radios input { accent-color: var(--navy); }
.uw-radio-lbl {
  width: 100%; font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase;
}
.uw-out { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 6px; }

.uw-tabs {
  display: flex; gap: 4px; margin: 0 0 14px; padding: 3px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; width: fit-content;
}
.uw-tab {
  border: 0; background: transparent; color: var(--ink-2);
  padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 550;
}
.uw-tab:hover { background: var(--bg-muted); color: var(--ink); }
.uw-tab.on { background: var(--bg-dark); color: #fff; }
.uw-tab.drop-on {
  outline: 2px dashed var(--gold);
  outline-offset: 1px;
  background: #fbf8f0;
  color: var(--ink);
}
.is-dragging .uw-tab[data-drop-side]:not(.on) {
  box-shadow: inset 0 0 0 1px var(--gold);
}
.uw-offer { padding: 0; overflow: hidden; }
.uw-offer .mod-b { padding: 0; }
.uw-recap {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--bg-dark); color: #d7e0ea; padding: 14px 16px;
}
.uw-recap-k { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); }
.uw-recap-v { font-size: 16px; color: #fff; margin-top: 2px; font-weight: 550; }
.uw-recap-s { font-size: 12px; color: #9aa8b8; margin-top: 4px; line-height: 1.4; }
.uw-stepper {
  display: flex; align-items: center; gap: 0; padding: 12px 16px 4px; flex-wrap: wrap;
}
.uw-step-dot {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: transparent; color: var(--ink-3); font-size: 12.5px; padding: 4px 2px;
}
.uw-step-dot i {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-style: normal;
  background: #e8edf3; color: var(--ink-2);
}
.uw-step-dot.on { color: var(--ink); font-weight: 600; }
.uw-step-dot.on i { background: var(--navy); color: #fff; }
.uw-step-dot.done i { background: #17643a; color: #fff; }
.uw-step-line { flex: 1; min-width: 16px; height: 1px; background: var(--line); margin: 0 6px; }
.uw-inner-tabs {
  display: flex; flex-wrap: wrap; gap: 2px;
  margin: 4px 0 12px; padding: 3px;
  background: var(--bg-muted); border-radius: 8px; width: fit-content; max-width: 100%;
}
.uw-inner-tabs .tab {
  font-size: 12.5px; padding: 6px 12px; border-radius: 6px; color: var(--ink-2);
}
.uw-inner-tabs .tab.on { background: var(--bg-dark); color: #fff; }
.uw-step { padding: 8px 16px 16px; }
.uw-step h3 { margin: 8px 0 4px; font-size: 18px; font-weight: 560; letter-spacing: -0.02em; }
.uw-help { margin: 0 0 14px; color: var(--ink-2); font-size: 13px; }
.uw-state-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: #f3f6fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.uw-state-note strong { display: block; color: var(--ink); margin-bottom: 2px; }
.uw-state-note p { margin: 6px 0 0; }
.uw-choice-lbl {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); margin: 12px 0 8px; font-weight: 600;
}
.uw-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.uw-choices-3 { grid-template-columns: 1fr 1fr 1fr; }
.uw-choice {
  text-align: left; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; padding: 12px 14px; cursor: pointer; color: inherit;
}
.uw-choice strong { display: block; font-size: 13.5px; margin-bottom: 4px; }
.uw-choice span { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.uw-choice:hover { border-color: #b7c4d4; background: var(--bg-muted); }
.uw-choice.on { border-color: var(--navy); background: #f3f6fa; box-shadow: inset 0 0 0 1px var(--navy); }
.uw-choice.uw-multi { display: flex; align-items: flex-start; gap: 10px; }
.uw-choice.uw-multi span { display: block; }
.uw-box {
  flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px;
  border: 1.5px solid #8b98a8; border-radius: 4px; background: #fff;
}
.uw-choice.on .uw-box {
  background: var(--navy); border-color: var(--navy);
  box-shadow: inset 0 0 0 2px #fff;
}
.uw-choice-lbl em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--ink-2); font-weight: 400; }
.uw-pay-primary {
  margin: 12px 0 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45;
}
.uw-fields-lg { grid-template-columns: 1fr 1fr; }
.uw-money-row { grid-template-columns: 1fr 1fr 1fr; }
.uw-field em { font-style: normal; color: var(--ink-3); font-weight: 400; letter-spacing: 0; text-transform: none; }
.uw-step-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line);
}
.uw-days { margin-top: 10px; max-width: 220px; }
.uw-days.is-off { display: none; }
.uw-field.is-off, .uw-party-custom.is-off { display: none; }
.uw-party {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  grid-column: 1 / -1;
}
.uw-party .uw-party-custom { grid-column: 1 / -1; }
.uw-party-block, .uw-party-stack { display: flex; flex-direction: column; gap: 10px; }
.uw-print-box {
  margin-top: 16px; background: #f7f4ea; border: 1px solid #e4d7b0;
  border-radius: 8px; padding: 16px;
}
.uw-print-main { height: 42px; font-size: 14px; padding: 0 18px; }
.uw-print-box p { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-2); }
.uw-print-list { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 12.5px; }
.uw-more { margin-top: 12px; }
.uw-more summary { cursor: pointer; font-size: 12.5px; color: var(--blue); }
.uw-advanced {
  margin-top: 14px; border: 1px dashed var(--line-2); border-radius: 8px;
  padding: 8px 12px; background: #fafbfd;
}
.uw-advanced summary { cursor: pointer; font-size: 12.5px; color: var(--navy); font-weight: 600; }
.uw-money-calc {
  margin-top: 14px; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; background: #fff; overflow: visible;
}
.uw-money-calc summary {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; font-size: 13px; color: var(--navy); font-weight: 650;
}
.uw-money-calc .uw-calc-board { margin-top: 10px; }
.uw-money-split { margin: 12px 0 4px; }
.uw-money-split .tbl { width: 100%; }
.uw-money-split tr.sum td { border-top: 1px solid var(--line); }
.uw-money-split input[type="number"] { width: 100%; min-width: 72px; }
.uw-offer-bar {
  margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: #f7faf8;
}
.uw-offer-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; margin: 8px 0 10px;
}
.uw-offer-row div { display: flex; flex-direction: column; gap: 2px; }
.uw-offer-row span { font-size: 11px; color: var(--ink-3); }
.uw-offer-bar .btn { margin-right: 8px; }
.uw-numbers-calc-hint { margin: 8px 0 0; }
.uw-adv-note { margin: 8px 0; font-size: 12px; color: var(--ink-2); }
.uw-break { margin: 0 0 10px; padding-left: 18px; font-size: 12px; color: var(--ink-2); }
.uw-break b { color: var(--ink); }
.uw-field.uw-check { flex-direction: row; align-items: center; gap: 8px; }
.uw-field.uw-check input { width: auto; }
.uw-legal { font-size: 11px; color: var(--ink-3); margin: 12px 0 0; }
.uw-rail-h p { max-width: 200px; }

.uw-pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.crm-pick { display: flex; flex-direction: column; gap: 6px; }
.uw-field-lbl, .crm-pick .uw-field-lbl {
  font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em;
}
.crm-pick-btn {
  text-align: left; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; padding: 10px 12px; cursor: pointer; color: inherit;
}
.crm-pick-btn strong { display: block; font-size: 13.5px; }
.crm-pick-btn span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.crm-pick-btn:hover { border-color: var(--navy); background: #f3f6fa; }
.crm-toolbar { margin-bottom: 10px; }
.crm-toolbar input {
  width: min(420px, 100%); height: 34px; border: 1px solid var(--line);
  border-radius: 6px; padding: 0 12px; font-size: 13px;
}
.crm-split { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 16px; align-items: start; min-height: 420px; }
.crm-list { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 220px); overflow: auto; }
.crm-list-modal { max-height: 360px; }
.crm-row {
  display: block; width: 100%; text-align: left;
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 10px 12px; cursor: pointer; color: inherit;
}
.crm-row strong { display: block; font-size: 13px; margin-top: 2px; }
.crm-row span:last-child { display: block; font-size: 12px; color: var(--ink-3); }
.crm-row:hover { background: var(--bg-muted); }
.crm-row.on { border-color: var(--navy); background: #f3f6fa; }
.crm-role {
  display: inline-block; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; padding: 1px 6px; border-radius: 3px;
}
.crm-role.seller { background: #fff7ed; color: #9a4d0a; }
.crm-role.buyer { background: #eff6ff; color: #1d4f8c; }
.crm-role.both { background: #eef3f8; color: var(--navy); }
.person-mode {
  display: inline-flex; gap: 0; margin-top: 10px;
  border: 1px solid var(--navy); border-radius: 6px; overflow: hidden;
}
.person-mode-btn {
  border: 0; background: #fff; color: var(--navy);
  padding: 6px 14px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.person-mode-btn + .person-mode-btn { border-left: 1px solid var(--navy); }
.person-mode-btn.on { background: var(--navy); color: #fff; }
.crm-role.exclusive { background: #f5e6c8; color: #6b4e16; }
.crm-role.realtor { background: #e8f5f4; color: #0f6e6a; }
.crm-role.wholesaler { background: #ece6f8; color: #4b2f8a; }
.crm-hats em { font-style: normal; color: var(--ink-3); font-weight: 400; font-size: 12px; margin-left: 4px; }
.crm-hats { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.pe-pane { padding-top: 12px; }
.pe-tabs { margin: 4px 0 0; }
.bbox-card { margin: 0 0 14px; }
.bbox-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.bbox-h input[data-bf="name"] { flex: 1; min-width: 180px; height: 32px; border: 1px solid var(--line); border-radius: 4px; padding: 0 10px; }
.bbox-h select { height: 32px; border: 1px solid var(--line); border-radius: 4px; padding: 0 8px; }
.bbox-map {
  height: 240px; border: 1px solid var(--line); border-radius: 8px; margin: 0 0 12px;
  background: #eef1f4; position: relative;
}
.bbox-read { margin: 0 0 10px; }
.bbox-read strong { display: block; }
.pe-more { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: #fafbfc; }
.pe-more summary { cursor: pointer; font-size: 12.5px; color: var(--ink-2); }
.crm-hats .uw-check { display: flex; align-items: center; gap: 8px; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink); }
.pmap-hat {
  flex: none; font-style: normal; font-size: 10px; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 1px 6px; border-radius: 999px;
  color: var(--navy); border: 1px solid var(--navy); background: #eef3f8;
}
.crm-detail { padding: 16px 18px; min-height: 360px; min-width: 0; }
.crm-detail h2 { margin: 6px 0 4px; font-size: 20px; font-weight: 560; }
.crm-detail-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.crm-detail-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.crm-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 20px; font-size: 13px; }
.crm-kv span { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.crm-kv b { font-weight: 550; }
.crm-kv-wide { grid-column: 1 / -1; }
.crm-detail .section-lbl { margin-top: 18px; }
.crm-props { margin: 0; padding-left: 18px; line-height: 1.6; }
.crm-empty { padding: 24px; color: var(--ink-3); font-size: 13px; }
.crm-prop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.crm-bundle-list { display: flex; flex-direction: column; gap: 12px; }
.crm-bundle {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}
.crm-bundle-kids {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  padding-left: 8px;
  border-left: 3px solid var(--navy);
}
.crm-prop-card.is-bundle {
  width: 100%;
  text-align: left;
  border-color: var(--navy);
  background: #f4f7fa;
}
.crm-prop-card.is-bundle[disabled] { opacity: 1; cursor: default; }
.crm-prop-card.is-kid { text-align: left; }
.crm-prop-card {
  text-align: left; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; padding: 10px 12px; cursor: pointer; color: inherit;
}
.crm-prop-card strong { display: block; }
.crm-prop-card span { display: block; font-size: 12px; color: var(--ink-3); }
.crm-prop-card:hover { border-color: var(--navy); }
.crm-prop-view { margin-top: 10px; padding: 12px; background: var(--bg-muted); border-radius: 8px; }
.crm-prop-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; margin-bottom: 12px; }
.crm-prop-edit > .addr-box { min-width: 0; }
.crm-prop-edit input { height: 30px; border: 1px solid var(--line); border-radius: 4px; padding: 0 8px; }

#view-ops { padding: 0; min-height: 100%; }
.ops-shell {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.ops-top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 20px 12px;
}
.ops-top-main {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.ops-top h1 { margin: 0; font-size: 20px; font-weight: 560; }
.ops-top #opsSub { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }
.ops-store { margin: 8px 0 0; }
.ops-top-list {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px;
  margin-top: 8px;
}
.ops-chip {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: stretch;
  min-width: 168px; max-width: 220px;
  border: 1px solid var(--line); background: #f8f9fb; border-radius: 8px;
  padding: 6px; cursor: grab;
}
.ops-chip.on { border-color: var(--navy); background: #f3f6fa; }
.ops-chip-main {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 4px 2px 2px; color: inherit; cursor: grab;
}
.ops-chip-main strong { display: block; font-size: 12.5px; }
.ops-chip-main span { display: block; font-size: 11px; color: var(--ink-3); }
.ops-work { padding: 16px 20px 40px; min-width: 0; }
.ops-work-h {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.ops-work-h h1 { margin: 0; font-size: 20px; font-weight: 560; }
.ops-subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.ops-stages-dual {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 10px;
}
.ops-flow-heads {
  display: grid;
  grid-template-columns: repeat(var(--ops-n, 11), minmax(160px, 1fr));
  gap: 8px;
  margin: 0 0 4px;
}
.ops-flow-g, .ops-col-g {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 650;
  padding: 0 2px;
  min-height: 14px;
  line-height: 1.2;
}
.ops-col.on { border-color: var(--navy); background: #eef3f8; }
.ops-pipe {
  background: var(--bg-muted);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 6px;
  min-width: 0;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.ops-pipe.on {
  border-style: solid;
  background: #f4f6f8;
}
.ops-pipe-dispo { border-color: #c4a35a55; }
.ops-pipe-h {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 0 0 4px;
}
.ops-pipe-h b { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.ops-pipe-h span { font-size: 11px; color: var(--ink-3); }
.ops-pipe-h em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.ops-pipe.drop-on, .ops-xfer.drop-on {
  border-color: var(--navy);
  background: #eef3f8;
  box-shadow: inset 0 0 0 1px var(--navy);
}
.ops-xfer {
  border: 1px dashed var(--navy);
  background: #eef3f8;
  color: var(--ink-2);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 10px;
  font-size: 12px;
  text-align: center;
}
.ops-stages-wrap { margin: 0 0 14px; }
.ops-stages-board {
  display: grid;
  grid-template-columns: repeat(var(--ops-n, 11), minmax(160px, 1fr));
  gap: 8px;
  margin: 0;
  align-items: start;
  min-width: calc(var(--ops-n, 11) * 168px);
}
.ops-stages-strip {
  display: grid;
  grid-template-columns: repeat(var(--ops-n, 7), minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}
.ops-st {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: 6px; padding: 8px 10px; color: inherit; min-width: 0;
}
.ops-st span { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; }
.ops-st b { font-family: var(--mono); font-size: 16px; color: var(--ink); }
.ops-st:hover { background: var(--bg-muted); }
.ops-st.on { border-color: var(--navy); background: #eef3f8; }
.ops-col {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px; min-height: 120px; min-width: 0;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.ops-col-find { border-top: 3px solid var(--pillar-find); background: var(--pillar-find-bg); }
.ops-col-lock { border-top: 3px solid var(--pillar-lock); background: var(--pillar-lock-bg); }
.ops-col-sell { border-top: 3px solid var(--pillar-sell); background: var(--pillar-sell-bg); }
.ops-col-close { border-top: 3px solid var(--pillar-close); background: var(--pillar-close-bg); }
.ops-flow-g.pillar-find, .ops-col-g.pillar-find { color: var(--pillar-find); }
.ops-flow-g.pillar-lock, .ops-col-g.pillar-lock { color: var(--pillar-lock); }
.ops-flow-g.pillar-sell, .ops-col-g.pillar-sell { color: var(--pillar-sell); }
.ops-flow-g.pillar-close, .ops-col-g.pillar-close { color: var(--pillar-close); }
.ops-col.drop-on, .ops-st.drop-on {
  border-color: var(--navy);
  background: #eef3f8;
  box-shadow: inset 0 0 0 1px var(--navy);
}
.ops-col-h {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 650; margin-bottom: 4px;
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
}
.ops-col-h button {
  border: 0; background: transparent; padding: 0; font: inherit; color: inherit;
  letter-spacing: inherit; text-transform: inherit; font-weight: inherit; cursor: pointer;
}
.ops-card {
  display: flex; flex-direction: column; width: 100%; min-width: 0; text-align: left; border: 1px solid var(--line);
  background: #f8f9fb; border-radius: 5px; padding: 4px 6px; margin-bottom: 4px; cursor: grab; color: inherit;
  overflow: hidden;
}
.ops-card-main {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 0; color: inherit; cursor: grab;
}
.ops-card strong {
  display: block; font-size: 11.5px; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ops-card span, .ops-card em {
  display: block; font-size: 10.5px; color: var(--ink-3); font-style: normal;
  line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ops-card.on { border-color: var(--navy); background: #f3f6fa; }
.ops-card.ops-dragging, .ops-chip.ops-dragging, .uw-deal.ops-dragging, .uw-house-card.ops-dragging { opacity: 0.45; cursor: grabbing; }
.uw-deal[draggable="true"] { cursor: grab; }
.ops-colors { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; position: relative; z-index: 3; pointer-events: auto; }
.ops-swatch {
  width: 20px; height: 20px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(0,0,0,0.18); background: var(--sw, #fff);
  pointer-events: auto; position: relative; z-index: 4;
}
.ops-card .ops-colors, .ops-chip .ops-colors { display: none; }
.ops-swatch.none { background: #fff; box-shadow: inset 0 0 0 1px #c5ccd6; }
.ops-swatch.on { outline: 2px solid var(--navy); outline-offset: 1px; }
.ops-card.color-red, .ops-chip.color-red { border-left: 4px solid #9f1f1f; background: #fdf6f6; }
.ops-card.color-amber, .ops-chip.color-amber { border-left: 4px solid #b45309; background: #fdf8f1; }
.ops-card.color-gold, .ops-chip.color-gold { border-left: 4px solid #c4a35a; background: #fbf8f0; }
.ops-card.color-green, .ops-chip.color-green { border-left: 4px solid #17643a; background: #f3faf6; }
.ops-card.color-teal, .ops-chip.color-teal { border-left: 4px solid #0f6e6a; background: #f1fafa; }
.ops-card.color-blue, .ops-chip.color-blue { border-left: 4px solid #1d4f8c; background: #f3f6fa; }
.ops-card.color-purple, .ops-chip.color-purple { border-left: 4px solid #5b3a8c; background: #f7f4fb; }
.ops-card.color-gray, .ops-chip.color-gray { border-left: 4px solid #5d6c80; background: #f5f6f8; }
.ops-detail.hidden { display: none; }
.person-deal-head { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.person-deal-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; max-width: 100%; flex: 1 1 220px; justify-content: flex-end; }
.person-pane-tabs .btn { margin-left: auto; }
.person-deal-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.person-deal .modal-h, .person-deal .modal-f { flex: 0 0 auto; background: #fff; z-index: 3; }
.person-prop-body:has(.sl-form) {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}
.person-prop-body .sl-form { flex: 1; min-height: 0; }
.person-deal .sl-form-foot { display: none; }
.person-deal.is-embed {
  height: min(72vh, 740px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.person-deal.is-embed .modal-h { padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.person-deal.is-embed .modal-f { padding: 10px 16px; border-top: 1px solid var(--line); }
.person-deal.is-embed .xbtn { display: none; }
.person-deal-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px 16px 0;
}
.person-prop-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px 0 16px;
}
.person-prop-tabs { display: flex; gap: 12px; flex-wrap: wrap; padding: 0 16px 8px; align-items: flex-start; }
.person-pane-context {
  font-size: 12.5px;
  color: var(--ink-2);
  margin: 0 0 6px;
}
.person-pane-context b { color: var(--ink); margin-right: 4px; }
.person-pane-context span { color: var(--ink-3); }
.person-pane-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  padding: 0 0 8px; border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
@media (max-width: 720px) {
  .person-deal-layout { grid-template-columns: 1fr; }
}
.person-pane-tab {
  border: 0; background: transparent; padding: 6px 10px;
  font-size: 12.5px; font-weight: 560; color: var(--ink-3); cursor: pointer;
  border-bottom: 2px solid transparent;
}
.person-pane-tab:hover { color: var(--ink); }
.person-pane-tab.on { color: var(--navy); border-bottom-color: var(--gold); }
.person-opp-col {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 10px 12px 16px;
  border-right: 1px solid var(--line);
  background: #f7f8fa;
}
.person-opp-col .uw-group-lbl { display: block; margin: 0 0 8px; }
.person-rail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
.person-rail-tab {
  border: 0;
  background: transparent;
  padding: 5px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  border-radius: 999px;
}
.person-rail-tab:hover { color: var(--ink); background: #eef1f5; }
.person-rail-tab.on { color: #fff; background: var(--navy); }
.person-nav-loose { display: flex; flex-direction: column; gap: 2px; }
.person-nav-pack {
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.person-nav-pack.has-on { border-color: #c5d0dc; }
.person-nav-pack.on { border-color: var(--navy); }
.person-nav-pack-h {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  padding: 8px 10px;
  cursor: pointer;
  color: inherit;
  border-bottom: 1px solid var(--line);
}
.person-nav-pack-h:hover { background: var(--bg-muted); }
.person-nav-pack-h.on { background: #eef3f8; }
.person-nav-kicker {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.person-nav-pack-h strong { font-size: 12.5px; font-weight: 600; }
.person-nav-pack-h em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.person-nav-files { font-size: 11px; color: var(--ink-2); }
.person-nav-kids { display: flex; flex-direction: column; padding: 4px; gap: 2px; }
.person-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  cursor: pointer;
  color: inherit;
  border-left: 3px solid transparent;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
.person-nav-item:hover { background: #eef1f4; }
.person-nav-item.on {
  background: #eef3f8;
  border-left-color: var(--navy);
  font-weight: 600;
}
.person-nav-name { display: block; }
.person-file-note {
  margin: 0 0 12px;
  padding: 8px 10px;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.person-file-note .link { font-size: 12.5px; }
.person-prop-tab-row { display: flex; gap: 6px; flex-wrap: wrap; }
.person-prop-tab {
  border: 1px solid var(--line); background: #fff; border-radius: 6px;
  padding: 4px 10px; font-size: 12px; cursor: pointer;
}
.person-prop-tab.on { border-color: var(--navy); background: #f3f6fa; font-weight: 600; }
.person-prop-tab.is-kid { font-size: 11px; }
.main:has(#view-people-map:not(.hidden)) { overflow: hidden; }
#view-people-map:not(.hidden) {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  padding-bottom: 12px;
}
.pmap-host, .pmap-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pmap { min-height: 0; }
.pmap-card-count { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.pmap-card.is-folded, .pmap-card[data-folded] { min-height: 0; }
.pmap-card.is-folded .pmap-card-h, .pmap-card[data-folded] .pmap-card-h { margin-bottom: 0; }
.pmap-help { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-2); flex: none; }
.pmap-board {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 12px;
  align-items: stretch;
}
.pmap-lane {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  min-height: 0;
  background: #f7f8fa;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pmap-lane h2 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex: none;
}
.pmap-lane-note { margin: -4px 0 10px; font-size: 11.5px; color: var(--ink-3); line-height: 1.35; flex: none; }
.pmap-lane-scroll { flex: 1; min-height: 0; overflow: auto; }
.pmap-zone { margin: 0 0 8px; padding: 6px; border-radius: 8px; min-height: 44px; }
.pmap-zone-buying { border: 1px solid var(--navy); background: #f4f7fa; }
.pmap-zone-prospect { border: 1px dashed #8a97a8; background: #fff; }
.pmap-zone-buybox { border: 1px dotted #c5d0dc; background: #fafbfc; }
.pmap-zone.drop-on { border-color: var(--navy); background: #eef3f8; }
.pmap-zone .uw-group-lbl { display: block; margin: 0 0 4px; }
.pmap-key {
  flex: none; font-style: normal; font-size: 10px; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 1px 6px; border-radius: 999px; color: var(--ink-2);
  border: 1px solid var(--line); background: #fff;
}
.pmap-key-buying { color: var(--navy); border-color: var(--navy); background: #eef3f8; }
.pmap-key-prospect { color: var(--ink-2); }
.pmap-key-buybox { color: var(--ink-3); background: transparent; }
.pmap-house-buying { background: #fff; }
.pmap-house-buybox { opacity: 0.92; }
.person-nav-key { margin: 0 0 12px; }
.person-nav-key .uw-group-lbl { margin: 0 0 4px; }
.pmap-card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px;
  margin-bottom: 8px; min-height: 72px;
}
.pmap-card.drop-on { border-color: var(--navy); background: #eef3f8; }
.pmap-card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pmap-person { flex: 1; text-align: left; border: 0; background: transparent; font-weight: 600; cursor: pointer; padding: 0; color: inherit; }
.pmap-pack {
  border: 1px solid var(--line); border-radius: 8px; background: #fff; margin: 0 0 8px; overflow: hidden;
}
.pmap-pack.drop-on { border-color: var(--navy); background: #eef3f8; }
.pmap-pack.pmap-dragging { opacity: 0.45; }
.pmap-pack-h {
  display: flex; flex-direction: row; align-items: flex-start; gap: 8px;
  padding: 8px 10px; border-bottom: 1px solid var(--line); background: #f4f7fa;
  cursor: grab; user-select: none;
}
.pmap-pack-h .pmap-grip { margin-top: 4px; }
.pmap-pack-meta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  min-width: 0; flex: 1;
}
.pmap-pack-h strong { font-size: 12.5px; }
.pmap-pack-h em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.pmap-pack-files { font-size: 11px; color: var(--ink-2); }
.pmap-pack-kids { display: flex; flex-direction: column; gap: 2px; padding: 4px; }
.pmap-loose {
  min-height: 44px; border: 1px dashed var(--line); border-radius: 8px; padding: 6px;
}
.pmap-loose.drop-on, [data-pmap-unknown].drop-on { border-color: var(--navy); background: #eef3f8; }
.pmap-hint { margin: 6px 4px; font-size: 12px; color: var(--ink-3); }
.pmap-house {
  display: flex; align-items: center; gap: 8px; width: 100%;
  text-align: left; border: 0; background: #fff; padding: 7px 8px;
  border-radius: 6px; cursor: grab; color: inherit; font-size: 12.5px;
  border: 1px solid transparent;
}
.pmap-house:hover { background: #eef1f4; }
.pmap-house.drop-on { border-color: var(--navy); background: #eef3f8; }
.pmap-house.pmap-dragging { opacity: 0.45; }
.pmap-grip {
  flex: none; width: 8px; height: 14px;
  background: repeating-linear-gradient(to bottom, #c5d0dc 0 2px, transparent 2px 4px);
  border-radius: 1px; opacity: 0.8;
}
.pmap-house-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmap-unmatch {
  flex: none; width: 22px; height: 22px; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--ink-3);
  font-size: 18px; line-height: 1; cursor: pointer; border-radius: 4px;
}
.pmap-unmatch:hover { background: #f3e8e8; color: #9f1f1f; }
.pmap-pack-h .pmap-unmatch { margin-left: auto; align-self: center; }
.person-nav-row {
  display: flex; align-items: center; gap: 2px;
}
.person-nav-row .person-nav-item { flex: 1; min-width: 0; width: auto; }
.person-nav-pack-h-row {
  display: flex; align-items: flex-start;
  border-bottom: 1px solid var(--line);
}
.person-nav-pack-h-row .person-nav-pack-h { flex: 1; min-width: 0; border-bottom: 0; }
.person-nav-pack-h-row .pmap-unmatch { margin: 8px 8px 0 0; }
.pmap-bundle-btn { margin: 0; font-size: 11px; }
.ops-col-slot {
  margin-top: auto; padding: 8px 6px; border: 1px dashed var(--line);
  border-radius: 6px; font-size: 11px; color: var(--ink-3); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ops-col-slot.drop-on { border-color: var(--navy); background: #eef3f8; color: var(--ink); }
.person-prop-tab.is-bundle { border-color: var(--navy); background: #f4f7fa; }
.ops-card-is-bundle, .ops-chip-bundle { border-color: var(--navy); background: #f4f7fa; }
.ops-card-bundle { display: block; font-size: 11px; color: var(--ink-2); margin-top: 2px; }
.ops-card-kid { display: block; font-size: 11px; color: var(--ink-3); padding-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmap-unknown { background: #f7f8fa; }
.modal .ops-colors, .person-deal-prop .ops-colors { gap: 8px; margin: 8px 0 12px; }
.modal .ops-swatch, .person-deal-prop .ops-swatch { width: 28px; height: 28px; }
.ops-body { min-width: 0; overflow-x: auto; }
.ops-detail { margin-top: 14px; }
.ops-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ops-room {
  text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 12px; cursor: pointer; color: inherit;
}
.ops-room.on { border-color: var(--navy); }
.ops-stage-btns { display: flex; flex-wrap: wrap; gap: 4px; }
.ops-empty { padding: 28px 8px; color: var(--ink-2); }
.ops-empty h3 { margin: 0 0 6px; font-size: 18px; font-weight: 560; color: var(--ink); }
.ops-empty p { margin: 0 0 14px; max-width: 52ch; }
.ops-toolbar { margin-bottom: 10px; }
.ops-match { display: flex; flex-direction: column; gap: 6px; }
.ops-match-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; }
.ops-notes {
  width: 100%; min-height: 72px; border: 1px solid var(--line); border-radius: 6px;
  padding: 8px; font: inherit; resize: vertical;
}
.note-panel { margin-top: 4px; }
.note-log { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.note-card {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 6px; padding: 8px 10px;
}
.note-card header { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12px; }
.note-card header b { color: var(--ink); }
.note-card time { color: var(--ink-3); margin-left: auto; font-size: 11px; }
.note-pri {
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; border-radius: 999px; padding: 2px 7px;
}
.note-card p { margin: 6px 0 0; font-size: 13px; white-space: pre-wrap; }
.note-compose textarea {
  width: 100%; min-height: 64px; border: 1px solid var(--line); border-radius: 6px;
  padding: 8px; font: inherit; resize: vertical;
}
.note-compose-row { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; flex-wrap: wrap; }
.note-compose-row label { font-size: 11px; color: var(--ink-3); display: flex; flex-direction: column; gap: 4px; }
.note-compos
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
 
button.link, .link {
  border: 0; background: none; padding: 0; color: var(--blue); font: inherit; cursor: pointer;
  text-decoration: none;
}
button.link:hover, .link:hover { text-decoration: underline; }

@media (max-width: 1200px) {
  .ops-stages-board, .ops-stages-strip, .ops-flow-heads {
    grid-template-columns: repeat(var(--ops-n, 11), minmax(160px, 1fr));
  }
}
@media (max-width: 980px) {
  .ops-top-main { flex-direction: column; }
  .crm-prop-grid, .crm-bundle-kids, .ops-rooms { grid-template-columns: 1fr; }
  .crm-prop-edit { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .crm-split, .uw-pick-grid { grid-template-columns: 1fr; }
}

.pipe-stage.pillar-find { border-top: 3px solid var(--pillar-find); background: var(--pillar-find-bg); }
.pipe-stage.pillar-lock { border-top: 3px solid var(--pillar-lock); background: var(--pillar-lock-bg); }
.pipe-stage.pillar-sell { border-top: 3px solid var(--pillar-sell); background: var(--pillar-sell-bg); }
.pipe-stage.pillar-close { border-top: 3px solid var(--pillar-close); background: var(--pillar-close-bg); }

.hub-pick { margin: 0 0 14px; }
.hub-pick .uw-field { display: flex; flex-direction: column; gap: 4px; max-width: 520px; }
.hub-pick .uw-field span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; }
.hub-pick select { height: 36px; font: inherit; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; }
.hub-scope {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px;
}
.hub-scope-btn {
  height: 30px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 99px;
  background: #fff; font: inherit; font-size: 12px; color: var(--ink); cursor: pointer;
}
.hub-scope-btn:hover { border-color: var(--navy); background: #eef3f8; }
.hub-scope-btn.on {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.hub-scope-btn:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.hub-scope-note { margin: 0 0 8px; }
.hub-now { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.hub-now strong { color: var(--ink); font-weight: 650; }
.hub-people-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.hub-match-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.hub-match-person, .hub-match-hit {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg-muted);
  padding: 8px 10px; margin: 0 0 6px; text-align: left; width: 100%; font: inherit; color: inherit;
}
.hub-match-hit { cursor: pointer; }
.hub-match-hit:hover { border-color: var(--navy); background: #eef3f8; }
.hub-match-person strong, .hub-match-hit strong { display: block; font-size: 13px; }
.hub-match-person span, .hub-match-hit span { display: block; font-size: 11.5px; color: var(--ink-3); }
.hub-match-hit-act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; flex: 0 0 auto; }
.hub-match-results { margin: 6px 0 10px; }
@media (max-width: 980px) {
  .hub-match-grid { grid-template-columns: 1fr; }
}
.hub-person {
  text-align: left; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg-muted); padding: 10px 12px; color: inherit;
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
}
.hub-person.is-link { cursor: pointer; width: 100%; font: inherit; }
.hub-person.is-link:hover { border-color: var(--navy); background: #eef3f8; }
.hub-person strong { font-size: 13px; }
.hub-person span { font-size: 12px; color: var(--ink-2); }
#view-deals.is-portal .deals-staff-chrome,
#view-deals.is-portal #dealsPaneDeals,
#view-deals.is-portal #dealsPanePeople { display: none !important; }
#view-deals:not(.is-portal) .deals-portal-chrome,
#view-deals:not(.is-portal) #portalBody { display: none !important; }
@media (max-width: 980px) {
  .hub-people-grid { grid-template-columns: 1fr; }
}
.hub-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; margin: 0 0 12px;
}
.hub-card-h {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  margin: 0 0 10px;
}
.hub-card-h .uw-group-lbl { margin: 0; }
.hub-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hub-pillar {
  text-align: left; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px; cursor: pointer; background: #fff; color: inherit;
  border-top-width: 3px;
}
.hub-pillar.pillar-find { border-top-color: var(--pillar-find); background: var(--pillar-find-bg); }
.hub-pillar.pillar-lock { border-top-color: var(--pillar-lock); background: var(--pillar-lock-bg); }
.hub-pillar.pillar-sell { border-top-color: var(--pillar-sell); background: var(--pillar-sell-bg); }
.hub-pillar.pillar-close { border-top-color: var(--pillar-close); background: var(--pillar-close-bg); }
.hub-pillar.on { box-shadow: inset 0 0 0 1px currentColor; }
.hub-pillar b { display: block; font-size: 13px; }
.hub-pillar span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.hub-versions { list-style: none; margin: 0; padding: 0; }
.hub-versions li { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hub-versions em { font-style: normal; font-size: 11px; color: var(--ink-3); }

.files-explorer {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-height: 420px;
}
.files-explorer-bar { grid-column: 1 / -1; }
.files-explorer-q {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
.sl-files-host { min-height: 480px; }
.sl-files-host .files-explorer { min-height: 480px; }
.slf-desk-files { margin-top: 28px; }
.slf-desk-files h3 { margin: 0 0 6px; font-size: 16px; }
.files-tree {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 6px; overflow: auto; max-height: 70vh;
}
.files-row {
  display: flex; align-items: center; gap: 2px;
  position: relative; z-index: 1;
  cursor: pointer;
}
.files-name {
  display: flex; flex: 1; align-items: center; gap: 6px; min-width: 0;
  text-align: left; border: 0; background: transparent;
  padding: 5px 8px; border-radius: 6px; cursor: pointer; color: inherit; font: inherit; font-size: 13px;
}
.files-name:hover { background: var(--bg-muted); }
.files-name.on { background: #eef3f8; font-weight: 650; }
.files-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files-caret, .files-caret-spacer {
  flex: none; width: 20px; height: 22px; border: 0; background: transparent;
  padding: 0; cursor: pointer; border-radius: 4px;
}
.files-caret:hover { background: var(--bg-muted); }
.files-caret-chevron {
  display: block; width: 7px; height: 7px; margin: 7px auto 0;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(-45deg); transition: transform .2s ease;
}
.files-branch.is-open > .files-row .files-caret-chevron { transform: rotate(45deg); }
.files-branch-body {
  display: grid; grid-template-rows: 0fr;
  pointer-events: none;
}
.files-tree.is-live .files-branch-body {
  transition: grid-template-rows .18s ease;
}
.files-branch.is-open > .files-branch-body {
  grid-template-rows: 1fr;
  pointer-events: auto;
}
.files-branch-inner { overflow: hidden; min-height: 0; padding-left: 10px; }
.files-ico { width: 16px; height: 16px; flex: none; color: var(--gold); }
.files-tile .files-ico { width: 34px; height: 34px; margin-bottom: 6px; }
.files-tree-lbl {
  display: block; padding: 8px 8px 4px; font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 650;
}
.files-tree-empty { padding: 4px 8px 8px 28px; font-size: 12px; color: var(--ink-3); }
.files-house-branch > .files-row .files-name { font-weight: 500; }
.files-tile-wrap, .files-list-row-wrap { display: grid; gap: 4px; }
.files-list-row-wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--line); }
.files-list-row-wrap .files-list-row { border-bottom: 0; }
.files-restore { font-size: 12px; padding: 4px 8px; }
.files-to-handler {
  position: relative;
  z-index: 4;
  pointer-events: auto;
  flex: 0 0 auto;
  border: 1px solid var(--gold);
  background: var(--gold-dim);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
  margin-left: 6px;
}
.files-tile-wrap, .files-list-row-wrap, .files-tree-file { position: relative; }
.files-tile-wrap .files-to-handler, .files-list-row-wrap .files-to-handler { z-index: 4; }
.files-to-handler:hover { background: var(--gold); color: #0a1018; }
.files-row-leaf { display: flex; align-items: center; gap: 4px; }
.files-name[data-files-bin-root] .files-ico { color: var(--ink-2); }
.files-tree-file .files-name { font-size: 12px; color: var(--ink-2); }
.files-name[data-files-junk] { color: var(--ink-2); }
.files-kind-block { margin: 0 0 18px; }
.files-kind-head {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: 0; background: transparent; padding: 6px 8px; margin: 0 0 8px;
  border-radius: 6px; cursor: pointer; color: inherit; font: inherit; font-weight: 650;
}
.files-kind-head:hover { background: var(--bg-muted); }
.files-kind-head span { margin-left: auto; color: var(--ink-3); font-weight: 500; font-size: 12px; }
.files-kind-empty { margin: 0 0 4px; font-size: 12px; color: var(--ink-3); }
.files-act {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; padding: 0; margin-left: 2px;
  border: 0; background: transparent; color: var(--navy);
  border-radius: 4px; cursor: pointer;
}
.files-act-ico { width: 14px; height: 14px; display: block; }
.files-tree-file .files-act, .files-row .files-act { opacity: 0.72; }
.files-tree-file:hover .files-act, .files-row:hover .files-act { opacity: 1; }
.files-open-modal:not(.files-act), .files-rename:not(.files-act) {
  flex: none; border: 0; background: transparent; color: var(--navy);
  font: inherit; font-size: 11px; font-weight: 650; padding: 3px 7px;
  border-radius: 4px; cursor: pointer;
}
.files-rename:hover, .files-link-node:hover { background: #eef3f8; }
.files-link-node {
  flex: none; border: 0; background: transparent; color: var(--navy);
  font: inherit; font-size: 11px; font-weight: 650; padding: 3px 7px;
  border-radius: 4px; cursor: pointer;
}
.files-delete {
  flex: none; border: 0; background: transparent; color: #9f1f1f;
  font: inherit; font-size: 11px; font-weight: 650; padding: 3px 7px;
  border-radius: 4px; cursor: pointer;
}
.files-delete:hover { background: #f8ecec; }
.files-open-modal:hover { background: #eef3f8; }
.files-nav-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.files-nav-card .files-tile {
  border: 0;
  border-radius: 0;
  flex: 1;
  min-width: 0;
}
.files-nav-card .files-nav-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  padding: 4px 6px 6px;
  border-top: 1px solid var(--line);
}
.files-nav-card .files-open-modal,
.files-nav-card .files-act {
  position: static;
  margin: 0;
}
.files-toolbar-btns .btn.on { background: var(--navy); color: #fff; }
.files-add { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; align-items: center; }
.files-pick, .ops-docs-add .files-pick, .portal-picker .files-pick {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
}
.files-pick input[type=file],
.ops-docs-add input[type=file],
.portal-picker input[type=file],
.msg-attach input[type=file] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}
.files-crumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; font-size: 13px; }
.files-crumb button { border: 0; background: none; color: var(--navy); cursor: pointer; font: inherit; }
.files-crumb .files-up {
  border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 650;
  padding: 3px 8px; border-radius: 4px;
}
.files-crumb .files-up:hover:not(:disabled) { background: #eef3f8; }
.files-crumb .files-up:disabled { opacity: .4; cursor: default; color: var(--ink-3); }
.files-view-toggle {
  display: inline-flex; margin-left: auto; border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
}
.files-view-toggle button {
  border: 0; background: #fff; padding: 6px 10px; font: inherit; font-size: 12px; cursor: pointer; color: var(--ink);
}
.files-view-toggle button.on { background: var(--navy); color: #fff; }
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.files-tile {
  border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px;
  text-align: left; cursor: pointer; color: inherit;
}
.files-tile:hover { border-color: var(--navy); }
.files-tile b { display: block; font-size: 12.5px; word-break: break-word; }
.files-tile span { display: block; font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.files-list {
  border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden;
}
.files-list-row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center;
  width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line);
  background: #fff; padding: 8px 10px; cursor: pointer; color: inherit; font: inherit;
}
.files-list-row:last-child { border-bottom: 0; }
.files-list-row:hover { background: var(--bg-muted); }
.files-list-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.files-list-meta { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.files-list-ico .files-ico { width: 18px; height: 18px; }

.hub-rail {
  margin: 10px 0 14px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg-card);
}
.hub-rail.is-compact { padding: 10px 12px; margin: 8px 0 10px; }
.hub-rail-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin: 8px 0 6px; }
.hub-rail-h:first-child { margin-top: 0; }
.hub-work-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.hub-work {
  text-align: left; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg-muted); padding: 10px 12px; cursor: pointer; color: inherit;
}
.hub-work:hover { border-color: var(--navy); background: #eef3f8; }
.hub-work strong { display: block; font-size: 13px; margin-bottom: 2px; }
.hub-work span { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.35; }
.hub-tasks { list-style: none; margin: 0 0 8px; padding: 0; }
.hub-tasks li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--line); }
.hub-tasks em { font-style: normal; font-size: 11px; color: var(--ink-3); margin-left: auto; }
.hub-task-add { display: flex; flex-wrap: wrap; gap: 6px; }
.venture-desk .uw-jv { margin-top: 8px; }

@media (max-width: 980px) {
  .uw-choices, .uw-choices-3, .uw-fields-lg, .uw-money-row, .uw-party { grid-template-columns: 1fr; }
  .uw-recap { flex-direction: column; align-items: flex-start; }
  .hub-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-pillars { grid-template-columns: 1fr 1fr; }
  .files-explorer { grid-template-columns: 1fr; }
}

@media (max-width: 1280px) {
  .uw-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .uw-calc-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .uw-calc-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .uw-shell { grid-template-columns: 1fr; }
  .uw-rail {
    border-right: 0; border-bottom: 1px solid var(--line);
    height: auto; max-height: 46vh;
  }
  .uw-dash-grid { grid-template-columns: repeat(2, 1fr); }
  .uw-inner-tabs { width: 100%; }
}
@media (max-width: 720px) {
  .philosophy { display: none; }
  .form-grid, .find-grid, .widget-list { grid-template-columns: 1fr; }
  .drawer { width: 100%; }
  .search-kbd { display: none; }
  .uw-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ops-desk-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.ops-desk-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  color: inherit;
}
.ops-desk-kpi .n { font-family: var(--mono); font-size: 18px; font-weight: 600; }
.ops-desk-kpi .l { font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 2px; }
.ops-desk-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin: 0 0 12px;
}
.ops-log {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.ops-log-row {
  display: grid;
  grid-template-columns: 88px 92px 1fr 160px;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: inherit;
  background: none;
  width: 100%;
}
.ops-log-row:last-child { border-bottom: 0; }
.ops-log-row:hover { background: var(--bg-muted); }
.ops-log-row .when { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.ops-log-row .chan { font-size: 11px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.ops-log-row .body { font-size: 13px; }
.ops-log-row .body em { font-style: normal; color: var(--ink-3); display: block; font-size: 11px; margin-top: 2px; }
.ops-log-row .who { font-size: 12px; color: var(--ink-3); }
.ops-empty-panel {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px 16px;
  text-align: center;
}
.ops-empty-panel h3 { margin: 0 0 6px; font-size: 16px; }
@media (max-width: 980px) {
  .ops-desk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-log-row { grid-template-columns: 1fr 1fr; }
}

.ops-docs { margin-top: 8px; }
.ops-docs-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.ops-doc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.ops-doc-row:last-child { border-bottom: 0; }
.ops-doc-name { text-align: left; }
.ops-docs-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ops-docs-add label.btn { margin: 0; cursor: pointer; }
.ops-doc-preview { padding: 0; }
.ops-doc-frame {
  display: block;
  width: 100%;
  height: 70vh;
  min-height: 420px;
  border: 0;
  background: #fff;
  color-scheme: light;
}
.ops-doc-imgwrap { display: flex; justify-content: center; align-items: center; min-height: 40vh; background: #111; padding: 16px; }
.ops-doc-imgwrap img { max-width: 100%; max-height: 70vh; }
.photo-view {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: stretch;
  background: #0b0f14; min-height: 58vh;
}
.photo-view-stage { min-width: 0; }
.photo-view-nav {
  border: 0; background: transparent; color: #dce4ee; font-size: 36px; cursor: pointer;
}
.photo-view-nav:disabled { opacity: 0.25; cursor: default; }
.photo-view-nav:hover:not(:disabled) { background: #151c26; }
.photo-view-strip {
  display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; background: #0b0f14;
}
.photo-view-thumb {
  flex: none; width: 64px; height: 48px; padding: 0; border: 2px solid transparent;
  background: #1a2230; overflow: hidden; cursor: pointer;
}
.photo-view-thumb.on { border-color: var(--gold); }
.photo-view-thumb img, .photo-view-thumb .ops-photo-album, .photo-view-thumb iframe {
  width: 100%; height: 100%; object-fit: cover; display: block; border: 0; pointer-events: none;
}
.photo-view-hint { margin: 8px 12px 10px; color: #8b98a8; }
.photo-view-album { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 40vh; }
.ops-photo-drive {
  display: block; width: 100%; height: 110px; border: 0; pointer-events: none; background: #111;
}
.ops-photo-open .ops-photo-drive { height: 88px; }
.ops-desk-select {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  max-width: 240px;
}
.files-deal-select { max-width: min(420px, 100%); min-width: 220px; height: 38px; font-size: 14px; }
.files-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(140px, 1fr) auto;
  gap: 12px;
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 14px;
}
.files-toolbar label { display: grid; gap: 4px; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.files-toolbar input[type="search"] {
  height: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px;
  font: inherit; text-transform: none; letter-spacing: 0; color: var(--ink);
}
.files-toolbar-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.files-prop-h {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 0 0 12px;
}
.files-prop-h h3 { margin: 0; font-size: 16px; }
.ascent-busy {
  position: fixed; top: 0; left: 0; right: 0; z-index: 12000; pointer-events: none; overflow: hidden; height: 3px;
}
.ascent-busy-bar {
  display: block; height: 3px; width: 35%;
  background: var(--gold);
  animation: busy-slide 1.15s ease-in-out infinite;
}
.ascent-busy-msg {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%);
  background: var(--bg-dark); color: #fff; font-size: 12px;
  padding: 5px 12px; border-radius: 99px; pointer-events: none;
  box-shadow: var(--shadow-md); z-index: 12001;
}
.ascent-busy.hidden .ascent-busy-msg { display: none; }
@keyframes busy-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(400%); }
}
.load-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 48px 16px; color: var(--ink-2); text-align: center;
}
.load-spin {
  width: 28px; height: 28px; border: 3px solid var(--line);
  border-top-color: var(--gold); border-radius: 50%;
  animation: load-spin .75s linear infinite;
}
@keyframes load-spin { to { transform: rotate(360deg); } }
@media (max-width: 980px) {
  .files-toolbar { grid-template-columns: 1fr; }
}
.ops-photos { margin-top: 8px; }
.ops-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}
.ops-photo-tile {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  color: inherit;
  min-height: 88px;
  position: relative;
}
.ops-photo-open {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
  text-align: left;
}
.ops-photo-del {
  position: absolute;
  top: 4px;
  right: 4px;
  border: 0;
  background: rgba(159, 31, 31, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  padding: 3px 6px;
  z-index: 1;
}
.ops-photo-del:hover { background: #9f1f1f; }
.wizard-done { padding: 18px 16px; }
.wizard-done h3 { margin: 0 0 8px; }
.import-map { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.import-map th, .import-map td { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; }
.import-map select { width: 100%; height: 28px; }
.import-preview { overflow: auto; max-height: 220px; margin-top: 10px; }
.ops-photo-tile img {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: cover;
  background: #1a1a1a;
}
.ops-photo-tile em {
  display: block;
  font-style: normal;
  font-size: 10px;
  padding: 0 6px 6px;
  color: #dce4ee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ops-photo-album {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  font-size: 11px;
  color: #c4a35a;
  background: #16120a;
}
.ops-card-cover, .ops-chip .ops-card-cover {
  display: block;
  width: 100%;
  height: 72px;
  margin: 0 0 6px;
  border-radius: 4px;
  overflow: hidden;
  background: #1a2230;
}
.ops-chip .ops-card-cover { height: 56px; }
.ops-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ops-card-cover-album {
  background: linear-gradient(135deg, #1a160c, #c4a35a55);
}
.ops-desk-thumbs {
  display: flex;
  gap: 4px;
  align-items: center;
}
.ops-desk-thumbs img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.ops-file-group { margin: 0 0 22px; }
.ops-file-group-h h3 { margin: 0 0 2px; font-size: 15px; font-weight: 560; }
.ops-file-group-h .kpi-sub { margin: 0 0 8px; }
.ops-file-prop { margin: 0 0 14px; }
.ops-file-prop-h {
  font-size: 12px;
  font-weight: 560;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

/* ── Login gate ── */
.app.signed-out { visibility: hidden; pointer-events: none; }
body:not(.authed) .msg-dock { display: none !important; }
body.partner-session #view-dashboard > *:not(#partnerDash) { display: none; }
#view-dashboard.partner-dash > *:not(#partnerDash) { display: none; }
.partner-deal-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 12px; }
.partner-deal {
  display: grid; gap: 4px; text-align: left;
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
  background: #fff; cursor: pointer; color: inherit; font: inherit;
}
.partner-deal:hover { border-color: var(--navy); }
.partner-deal i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.login-gate {
  position: fixed; inset: 0; z-index: 6000;
  background: #0a1018;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-gate .lg-card {
  width: min(420px, 100%);
  background: #0e1622;
  border: 1px solid #1c2838;
  border-radius: 8px;
  padding: 22px;
  color: #dce4ee;
}
.login-gate .lg-mark { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.login-gate .lg-k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.login-gate h1 { margin: 0; font-size: 22px; color: #fff; }
.login-gate .lg-lede { color: #8b98a8; font-size: 13px; }
.login-gate .lg-legal {
  background: #0a1018;
  border: 1px solid #3a2418;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 12px 0 4px;
  color: #e8d7c0;
  font-size: 12px;
  line-height: 1.45;
  max-height: 180px;
  overflow: auto;
}
.login-gate .lg-legal p { margin: 0 0 8px; }
.login-gate .lg-legal strong { color: #f3c5c5; }
.login-gate .lg-agree {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #dce4ee !important;
  font-size: 12px !important;
  margin: 8px 0 0 !important;
}
.login-gate .lg-agree input { width: auto; margin-top: 2px; }
.login-gate .lg-agree-need { outline: 2px solid #c45c4a; outline-offset: 4px; border-radius: 6px; }
.login-gate .lg-tos-link {
  background: none; border: 0; padding: 0; color: var(--gold-2);
  text-decoration: underline; font: inherit; cursor: pointer;
}
.login-gate .btn-gold:disabled { opacity: 0.45; cursor: not-allowed; }
.login-gate .lg-card { width: min(480px, 100%); max-height: 92vh; overflow: auto; }
.login-gate label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #8b98a8; margin: 12px 0 6px; }
.login-gate input {
  width: 100%; background: #0a1018; color: #dce4ee;
  border: 1px solid #1c2838; border-radius: 4px; padding: 8px 10px; font: inherit;
}
.login-gate .btn-gold {
  width: 100%; margin-top: 14px; background: var(--gold); color: #1a1408;
  border: 0; border-radius: 4px; padding: 10px; font-weight: 700;
}
.login-gate .lg-err { color: #f3c5c5; font-size: 13px; }
.login-gate .lg-ok { color: #8fd4aa; font-size: 13px; margin: 8px 0 0; }
.login-gate .lg-alts { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 12px; }
.login-gate .lg-alts .link { color: var(--gold-2); font-size: 12.5px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.login-gate .lg-hint { color: #8b98a8; font-size: 12px; }
.login-gate .lg-hint code { color: var(--gold-2); }

/* ── Messenger dock ── */
.msg-dock { position: fixed; right: 16px; bottom: 16px; z-index: 10000; isolation: isolate; pointer-events: auto; font-family: var(--font); }
.msg-fab {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: #fff; border: 0;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.msg-fab svg { width: 22px; height: 22px; }
.msg-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: #c0392b; color: #fff; border-radius: 99px;
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.msg-panel {
  width: 340px; height: 460px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px 10px 4px 4px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
}
.msg-h {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; background: #0e1622; color: #fff;
}
.msg-h b { font-size: 13px; flex: 1; }
.msg-local { font-size: 10px; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; }
.msg-back, .msg-x {
  background: transparent; border: 0; color: #fff; width: 28px; height: 28px; font-size: 16px;
}
.msg-body { flex: 1; overflow: auto; background: #f6f7f9; padding: 8px; }
.msg-empty { color: var(--ink-3); font-size: 12.5px; padding: 16px; }
.msg-sec {
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); margin: 8px 4px 6px;
}
.msg-row {
  display: flex; gap: 8px; align-items: center; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px; margin-bottom: 6px; text-align: left;
}
.msg-row:hover { border-color: #9bb0c7; }
.msg-av {
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.msg-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.msg-row-t b { font-size: 13px; }
.msg-row-t em { font-style: normal; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-row-m { font-size: 10px; color: var(--ink-3); text-align: right; }
.msg-row-m i {
  display: inline-flex; min-width: 16px; height: 16px; padding: 0 4px; margin-left: 4px;
  background: #c0392b; color: #fff; border-radius: 99px; font-style: normal; font-size: 10px;
  align-items: center; justify-content: center;
}
.msg-bubble {
  max-width: 82%; background: #fff; border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px; padding: 8px 10px; margin: 6px 0; font-size: 13px;
  overflow-wrap: anywhere; word-break: break-word; min-width: 0;
}
.msg-link {
  color: inherit; text-decoration: underline;
  word-break: break-all; overflow-wrap: anywhere;
}
.msg-bubble.mine .msg-link { color: #cde4ff; }
.msg-bubble.mine {
  margin-left: auto; background: #1d4f8c; color: #fff; border-color: #1d4f8c;
  border-radius: 12px 12px 4px 12px;
}
.msg-bubble small { display: block; font-size: 10px; opacity: 0.7; margin-top: 4px; }
.msg-attach-img { display: block; margin: 4px 0; }
.msg-attach-img img { max-width: 100%; max-height: 160px; border-radius: 8px; display: block; }
.msg-attach-file {
  display: inline-block; margin: 4px 0; padding: 4px 8px; border: 1px dashed rgba(0,0,0,.2);
  border-radius: 6px; font-size: 12px; color: inherit;
  max-width: 100%; overflow-wrap: anywhere; word-break: break-word;
}
.msg-bubble.mine .msg-attach-file { border-color: rgba(255,255,255,.4); }
.msg-attach-note { opacity: 0.6; font-size: 9.5px; }
.msg-attach {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border: 1px solid var(--line); border-radius: 50%; cursor: pointer; flex: none; font-size: 15px;
}
.msg-compose {
  display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); background: #fff;
}
.msg-compose textarea {
  flex: 1; border: 1px solid var(--line); border-radius: 16px; padding: 8px 12px;
  font: inherit; resize: none; max-height: 80px;
}
.msg-compose button {
  background: var(--navy); color: #fff; border: 0; border-radius: 16px; padding: 0 14px; font-weight: 600;
}
.uw-share .mod-b { display: flex; flex-direction: column; gap: 8px; }
.uw-share-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
.uw-share-pick { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 0; }
.uw-share-pick input { width: auto; height: auto; }
.uw-share-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.uw-print-box [data-uw-share-open],
.uw-print-box [data-uw-send-open],
.uw-print-box [data-uw-perm-open] { margin: 0 8px 10px 0; }
.uw-send-list {
  max-height: 240px; overflow: auto; padding: 4px 2px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.settings-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.settings-card h2 { margin: 0 0 6px; font-size: 15px; }
.settings-card .kpi-sub { margin: 0 0 12px; }
.settings-card label { display: block; font-size: 12px; color: var(--ink-3); margin: 10px 0 4px; }
.settings-card input {
  width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font: inherit;
}
.settings-actions { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.settings-err { color: #9b2c2c; font-size: 13px; margin: 8px 0 0; }
.settings-ok { color: #17643a; font-size: 13px; margin: 8px 0 0; }
.settings-kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; font-size: 13px; }
.settings-kv span { color: var(--ink-3); }
.settings-card textarea, .mail-compose textarea, .mail-compose .rte-body {
  width: 100%; min-height: 160px; border: 1px solid var(--line); border-radius: 4px;
  padding: 8px 10px; font: inherit; resize: vertical;
}
.mail-compose .rte-bar { display: flex; gap: 4px; margin: 0 0 6px; }
.mail-compose .rte-bar button {
  border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 4px 8px; font: inherit; cursor: pointer;
}
.mail-compose .rte-body { outline: none; min-height: 180px; }
.mail-app-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }
.mail-app-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.mail-split { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 16px; align-items: start; min-height: 60vh; }
.mail-split.is-compose { grid-template-columns: 1fr; max-width: 720px; }
.mail-compose-pane .uw-field { display: block; margin: 0 0 12px; }
.mail-compose-pane .uw-field span { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.mail-compose-pane input, .mail-compose-pane textarea, .mail-compose-pane select {
  width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font: inherit;
}
.mail-compose-pane textarea { min-height: 220px; resize: vertical; }
#smsDetect { min-height: 1.2em; }
#smsDetect.is-ok { color: #17643a; }
.mail-side { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: auto; max-height: 72vh; }
.mail-main { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; min-height: 360px; }
.mail-row {
  display: grid; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line);
  background: #fff; padding: 10px 12px; cursor: pointer; font: inherit;
}
.mail-row strong { font-size: 13px; }
.mail-row span { font-size: 12.5px; color: var(--ink-2); display: block; }
.mail-row em { font-size: 11px; color: var(--ink-3); font-style: normal; }
.mail-row.on { background: #f4f1ea; }
.mail-read-h h3 { margin: 0 0 4px; font-size: 16px; }
.mail-frame { width: 100%; min-height: 280px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.mail-text { white-space: pre-wrap; font: inherit; font-size: 13.5px; }
.mail-read-reply { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.mail-compose-actions { display: flex; gap: 8px; margin-top: 12px; }
.mail-quota {
  margin: 0 0 12px; padding: 8px 10px; border-radius: 6px;
  background: var(--surface-2, #f4f8fc); border: 1px solid var(--line); font-size: 13px; font-weight: 600;
}
.mail-book { margin: 0 0 14px; }
.book-list {
  display: grid; gap: 4px; max-height: 220px; overflow: auto;
  border: 1px solid var(--line); border-radius: 6px; padding: 6px; background: #fff;
}
.book-row {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 6px 8px; border-radius: 4px; cursor: pointer; font: inherit; color: inherit;
}
.book-row:hover { background: var(--bg-muted, #f3f5f7); }
.book-row.on { background: #eef6ee; }
.book-row b { display: block; font-size: 13px; }
.book-row span { display: block; font-size: 12px; color: var(--ink-3); }
@media (max-width: 800px) {
  .mail-split { grid-template-columns: 1fr; }
}
.mail-compose .uw-field { display: block; margin: 0 0 10px; }
.mail-compose .uw-field span { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.mail-compose input {
  width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font: inherit;
}
.mail-tpls { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.mail-recent { margin-top: 14px; }
.mail-recent-row { margin: 0 0 6px; font-size: 12.5px; color: var(--ink-2); }
.mail-recent-row b { color: var(--ink); }
.nav-item.nav-denied { display: none !important; }
.analytics-note { color: var(--ink-3); font-size: 12.5px; margin: 0 0 12px; }
.analytics-funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 14px; }
.analytics-funnel button {
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px; text-align: left;
}
.analytics-funnel .n { font-size: 20px; font-weight: 650; }
.analytics-funnel .l { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.analytics-funnel .c { font-size: 11px; color: var(--ink-3); }

/* ── Lists / JV ── */
.lists-split {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 16px;
  align-items: start;
}
.lists-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
}
.prop-state-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}
.prop-state-chip {
  --heat: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 46px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(0deg, rgba(196, 163, 90, calc(var(--heat) * 0.0055 + 0.05)), rgba(196, 163, 90, calc(var(--heat) * 0.0055 + 0.05)));
  cursor: pointer;
  font-size: 12px;
}
.prop-state-chip b { font-size: 12.5px; }
.prop-state-chip span { font-size: 11px; color: var(--ink-3); }
.prop-state-chip.on {
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: 0 0 0 2px rgba(29, 79, 140, 0.35);
}
.prop-state-chip.on b, .prop-state-chip.on span { color: #fff; }
.prop-state-check { font-size: 10px; color: #fff; line-height: 1; }
.prop-state-chip.prop-state-all { background: #fff; }
.prop-state-chip.prop-state-all.on { background: var(--ink); border-color: var(--ink); }
.prop-state-chip.is-empty { border-style: dashed; opacity: .55; }
.prop-state-chip.is-empty.on { opacity: 1; }
.prop-empty-state {
  padding: 18px 12px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.portal-map-block {
  margin: 0 0 14px;
}
.us-map-host {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}
.us-map-host svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 520px;
  max-height: 720px;
}
.us-map-host svg path[data-us-map-state],
.us-map-host svg circle[data-us-map-state] {
  cursor: pointer;
  stroke: #fff;
  stroke-width: 1;
  transition: opacity .1s;
}
.us-map-host svg path[data-us-map-state]:hover,
.us-map-host svg circle[data-us-map-state]:hover {
  opacity: .8;
}
.us-map-host svg path.on,
.us-map-host svg circle.on {
  stroke: var(--navy);
  stroke-width: 3;
  filter: drop-shadow(0 0 2px rgba(29, 79, 140, 0.9));
}
.us-map-label {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  fill: #3a4250;
  letter-spacing: .01em;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 2px;
  stroke-linejoin: round;
}
.us-map-label.has-count { fill: #17181a; }
.us-map-label-count { font-size: 12px; font-weight: 800; fill: var(--navy); }
.state-fix-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.state-fix-row:last-child { border-bottom: 0; }
.state-fix-name { flex: 1; }
.state-fix-arrow { font-size: 13px; white-space: nowrap; }
.list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.list-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: inherit;
}
.jv-source { margin: 0 0 8px; }
.jv-source-grid {
  display: grid;
  gap: 8px;
}
.jv-inv-pack {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.jv-inv-kids { margin: 8px 0 0 22px; display: flex; flex-direction: column; gap: 4px; }
.jv-inv-loose { display: flex; flex-direction: column; gap: 6px; }
.jv-inv-line { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.list-card b { font-size: 13px; }
.list-card span { font-size: 12px; color: var(--ink-3); }
.list-card.on, .list-card:hover { border-color: var(--gold); background: var(--gold-dim); }
.jv-grid {
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  gap: 18px;
  align-items: start;
}
.jv-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.jv-modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.jv-offer-box {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--gold-dim);
}
.jv-offer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  margin: 0 0 4px;
}
.jv-offer-total { font-weight: 700; margin-top: 4px; }
.jv-steps {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.jv-steps li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-3);
  border-right: 1px solid var(--line);
}
.jv-steps li:last-child { border-right: 0; }
.jv-steps li i {
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-muted); font-style: normal; font-size: 11px;
}
.jv-steps li.on, .jv-steps li.done { color: var(--navy); }
.jv-steps li.on i { background: var(--gold); color: #0a1018; }
.jv-steps li.done i { background: var(--navy); color: #fff; }
.jv-wizard-hint { margin: 0 0 12px; }
.jv-price-card {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: linear-gradient(180deg, #fbf8f0, #fff);
}
.jv-price-lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 8px;
}
.jv-price-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 4px 12px;
}
.jv-price-sym { font-size: 22px; font-weight: 700; color: var(--navy); }
.jv-price-input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  background: transparent;
  min-width: 0;
  padding: 8px 0;
  font-variant-numeric: tabular-nums;
}
.jv-price-hint { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }
.jv-preview-edit .jv-sheets {
  align-items: flex-start;
  padding-left: 12px;
}
.jv-preview-edit .jv-doc,
.jv-preview-edit .jv-sheet {
  overflow: hidden;
}
.jv-preview-view .jv-block-tools,
.jv-preview-view .jv-row-inc,
.jv-preview:not(.jv-preview-edit) .jv-block-tools,
.jv-preview:not(.jv-preview-edit) .jv-row-inc {
  display: none !important;
}
.jv-block.is-collapsed .jv-block-body,
.jv-li.is-collapsed .jv-block-body { display: none; }
.jv-offer-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.jv-offer-input {
  width: 8.5rem; text-align: right; font: inherit; font-weight: 650;
  border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; background: #fff;
}
.jv-block {
  position: relative;
  margin: 0 0 4px;
  border-radius: 6px;
}
.jv-block-tools {
  position: absolute;
  top: 2px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: max-content;
  transform: translateX(calc(-100% - 10px));
  z-index: 3;
}
.jv-inc { display: flex; margin: 0; cursor: pointer; }
.jv-inc input { margin: 0; }
.jv-block-edit, .jv-block-x, .jv-block-reset {
  border: 0;
  background: #eceff1;
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 0 1px #d5dbe3;
}
.jv-block-x { font-size: 14px; padding: 0 5px; }
.jv-block-reset { font-size: 9px; letter-spacing: 0.02em; }
.jv-block-grip {
  cursor: grab;
  font-size: 14px;
  letter-spacing: -2px;
  line-height: 1;
  padding: 2px 4px;
  user-select: none;
  color: var(--navy);
}
.jv-is-sorting, .jv-is-sorting * { cursor: grabbing !important; }
.jv-block.is-dragging {
  outline: 2px dashed var(--gold);
  outline-offset: 3px;
  background: #fffdf4;
}
.jv-palette {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px dashed var(--gold);
  border-radius: 6px;
}
.jv-palette-item {
  cursor: grab;
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font: 650 12px "IBM Plex Sans", var(--font);
  padding: 6px 10px;
  border-radius: 4px;
}
.jv-palette-item:active { cursor: grabbing; }
.jv-drag-ghost {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  padding: 6px 10px;
  background: var(--navy);
  color: #fff;
  font: 650 12px "IBM Plex Sans", var(--font);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}
.jv-block.is-off { opacity: 0.42; background: #f3f5f7; }
.jv-block.is-off .jv-block-body { text-decoration: line-through; }
.jv-block-body.is-editing {
  outline: 2px solid var(--gold);
  background: #fffdf6;
  padding: 4px 6px;
  border-radius: 4px;
}
.jv-li { position: relative; }
.jv-li .jv-block-tools { flex-direction: column; }
.jv-li.is-off { opacity: 0.42; text-decoration: line-through; }
.jv-row-inc { width: 28px; text-align: center; background: #f7f5ef; }
tr.is-off { opacity: 0.4; text-decoration: line-through; }
@media print {
  .jv-block-tools, .jv-inc, .jv-block-edit, .jv-block-x, .jv-block-reset, .jv-block-grip, .jv-row-inc, .jv-palette, .jv-drag-ghost, .no-print { display: none !important; }
  .jv-block { padding-left: 0; }
  .is-off { display: none !important; }
}
#docsignPicker .files-explorer { min-height: 520px; }
.cal-desk { display: grid; gap: 16px; }
.cal-hours { display: grid; gap: 8px; margin: 10px 0; }
.cal-hour { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.cal-hour input[type=time] { width: 110px; }
.book-session .sidebar, .book-session .topbar { display: none; }
.book-session #app, .book-session .app { display: block; visibility: visible; pointer-events: auto; }
.book-session #view-book { display: block; }
.book-shell { max-width: 860px; margin: 32px auto; padding: 0 16px 40px; }
.book-durs { display: flex; gap: 8px; margin: 0 0 16px; }
.book-split { display: grid; grid-template-columns: 1fr 220px; gap: 20px; }
.book-slots { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; }
.book-form { margin-top: 20px; display: grid; gap: 10px; max-width: 420px; }
.cal-month-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow { font-size: 11px; color: var(--ink-3); margin-bottom: 4px; }
.cal-day { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 8px 0; cursor: pointer; }
.cal-day.on { background: var(--gold); color: #0a1018; font-weight: 650; }
@media (max-width: 800px) { .book-split { grid-template-columns: 1fr; } }
.doc-file-frame { width: 100%; min-height: 72vh; height: 72vh; border: 0; background: #fff; display: block; }
.doc-env-list { margin: 0 0 12px; }
.doc-split { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
#view-docsign.doc-working {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 52px);
  padding-bottom: 8px;
}
#view-docsign.doc-working > .page-title { display: none; }
#view-docsign.doc-working > .crumb { margin-bottom: 4px; }
#view-docsign.doc-working #docsignBody {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.doc-work-bar { margin: 0 0 4px; }
.doc-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 0 10px; flex: 0 0 auto; }
.doc-tab { border: 0; background: transparent; padding: 8px 14px; cursor: pointer; font: inherit; color: var(--ink-2); }
.doc-tab.on { color: var(--navy); font-weight: 650; box-shadow: inset 0 -2px 0 var(--gold); }
.doc-tab-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
  align-items: stretch;
}
.doc-tab-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.doc-preview, .html-stage, .pdf-stage {
  flex: 1;
  min-height: 0;
  background: #cfd6de;
  border: 1px solid var(--line);
  padding: 20px 16px 32px;
  overflow: auto;
}
.doc-preview, .html-stage {
  background: #fff;
  color: #111;
  color-scheme: light;
}
.doc-side {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px;
  overflow: auto;
  min-height: 0;
}
.html-stage .toolbar,
#docPreviewWrap:not(.show-html-tools) .toolbar,
#docPreviewWrap:not(.show-html-tools) .jv-block-tools,
#docPreviewWrap:not(.show-html-tools) .no-print { display: none !important; }
#docPreviewWrap:not(.show-html-tools) .jv-block { padding-left: 0; margin: 0; }
.html-stage .jv-doc,
.html-stage .page,
.html-stage .jv-sheet {
  margin: 0 auto 24px;
}
.html-stage #sheets { display: flex; flex-direction: column; align-items: center; }
.pdf-stage { background: #cfd6de; }
.pdf-stage.is-placing { cursor: crosshair; }
.pdf-page { position: relative; margin: 0 auto 18px; background: #fff; box-shadow: 0 2px 14px rgba(10,16,24,.18); }
.pdf-page canvas { display: block; width: 100%; height: auto; }
.pdf-fields { position: absolute; inset: 0; }
.pdf-field {
  position: absolute; border: 2px solid var(--gold); background: rgba(196,163,90,.22);
  color: var(--navy); font-size: 10px; font-weight: 650; text-align: left; padding: 2px 4px;
  overflow: hidden; cursor: pointer;
}
.pdf-field span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf-field b { position: absolute; top: 0; right: 2px; font-size: 12px; cursor: pointer; z-index: 2; }
.pdf-field-resize {
  position: absolute; right: 0; bottom: 0; width: 10px; height: 10px;
  background: var(--gold); cursor: nwse-resize;
}
.pdf-field-sig { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.pdf-field em { font-style: normal; font-size: 11px; display: block; overflow: hidden; }
.pdf-field.is-filled { background: rgba(61,154,106,.18); }
.doc-field-pop {
  position: fixed; inset: 0; background: rgba(10,16,24,.45); z-index: 80;
  display: flex; align-items: center; justify-content: center;
}
.doc-field-pop-card { background: #fff; padding: 16px; width: min(520px, 92vw); border-radius: 8px; }
.doc-extra-email { display: flex; gap: 8px; align-items: center; }
.doc-extra-email input { flex: 1; }
.doc-send-row { border: 1px solid var(--line); padding: 10px; margin: 0 0 10px; border-radius: 8px; display: grid; gap: 6px; }
.doc-send-row.is-bad { border-color: #9f1f1f; }
.doc-warn { color: #9f1f1f; }
.doc-field-list { display: grid; gap: 8px; margin-top: 12px; }
.doc-field-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; border: 1px solid var(--line); padding: 8px; border-radius: 6px; font-size: 12px; }
.doc-fields-tools .lists-toolbar { flex-wrap: wrap; }
.doc-signer { border: 1px solid var(--line); padding: 10px; margin: 0 0 10px; border-radius: 8px; }
.doc-signer-h { display: flex; justify-content: space-between; margin: 0 0 8px; }
.sig-pad { width: 100%; max-width: 560px; height: 160px; border: 1px dashed var(--line); background: #fff; touch-action: none; }
.sign-shell { max-width: 1100px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
@media (max-width: 900px) {
  .doc-split, .sign-shell, .doc-tab-body { grid-template-columns: 1fr; }
}
.jv-search-hits { max-height: 280px; overflow: auto; margin: 10px 0 0; }
.jv-hit-group { margin: 0 0 10px; }
.jv-hit-seller {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 4px;
}
.jv-hit {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 0 0 4px;
  cursor: pointer;
}
.jv-hit b { display: block; font-size: 13px; }
.jv-hit i { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); }
.jv-hit.on, .jv-hit:hover { border-color: var(--gold); background: var(--gold-dim); }
.jv-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.jv-chip {
  border: 1px solid var(--line);
  background: var(--bg-muted);
  border-radius: 99px;
  padding: 4px 8px 4px 10px;
  font-size: 12px;
}
.jv-chip span { margin-left: 6px; color: var(--ink-3); }
.jv-stage { min-width: 0; }
.jv-toolbar { position: sticky; top: 0; background: var(--bg); z-index: 2; padding: 4px 0; }
.jv-toolbar .btn.on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.jv-rte {
  position: sticky;
  top: 40px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0 0 10px;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}
.jv-rte[hidden] { display: none !important; }
.jv-rte-sep { width: 1px; height: 18px; background: var(--line); margin: 0 3px; }
.jv-rte-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  color: var(--navy);
  font: 650 12px "IBM Plex Sans", var(--font);
  cursor: pointer;
}
.jv-rte-btn.is-b { font-weight: 800; }
.jv-rte-btn.is-i { font-style: italic; }
.jv-rte-btn.is-u { text-decoration: underline; }
.jv-rte-btn.is-s { text-decoration: line-through; }
.jv-rte-btn:hover { background: var(--bg-muted); }
.jv-rte-btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.jv-rte-done { background: var(--gold); border-color: var(--gold); color: #0a1018; font-weight: 700; }
.jv-block-body.is-editing {
  outline: 2px solid var(--gold);
  background: #fffdf8;
  min-height: 1.4em;
}
.jv-hidden-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--ink-3);
}
.jv-hidden-bar span { margin-right: 2px; }
.jv-preview-grow .jv-doc,
.jv-preview-grow .jv-sheet {
  height: auto;
  max-height: none;
  min-height: 11in;
  overflow: visible;
}
.jv-banner {
  background: var(--amber-bg);
  border: 1px solid #f3d5a8;
  color: var(--amber);
  padding: 8px 10px;
  border-radius: 6px;
  margin: 0 0 10px;
  font-size: 12px;
}
.jv-preview {
  background: #c5c9ce;
  border-radius: 8px;
  padding: 18px 12px 28px;
  overflow: auto;
}
#venturePreview {
  min-height: 70vh;
  background: #c5c9ce;
}
.jv-agree {
  width: 8.5in;
  min-width: 8.5in;
  min-height: 11in;
  height: auto;
  max-height: none;
  overflow: visible;
  margin: 0 auto;
  padding: 0.75in 0.9in 1in;
  box-sizing: border-box;
  background: #fff;
  color: #0a1018;
  font-family: "Times New Roman", Times, serif;
  font-size: 11.5pt;
  line-height: 1.4;
  box-shadow: 0 2px 10px rgba(10, 16, 24, 0.22);
}
.jv-agree h1 {
  font-family: "IBM Plex Sans", var(--font);
  text-align: center;
  font-size: 13.5pt;
  letter-spacing: 0.12em;
  margin: 10px 0 4px;
  color: #0a1018;
}
.jv-agree h2 {
  font-family: "IBM Plex Sans", var(--font);
  font-size: 11.5pt;
  margin: 16px 0 6px;
  padding-bottom: 2px;
  letter-spacing: 0.04em;
  color: var(--navy);
  border-bottom: 1.5px solid var(--gold);
}
.jv-agree .jv-kicker { color: var(--navy); }
.jv-agree .jv-table th {
  background: var(--bg-dark);
  color: var(--gold-2);
  font-family: "IBM Plex Sans", var(--font);
  border-color: var(--navy);
}
.jv-agree .jv-table td { border-color: var(--navy); overflow-wrap: anywhere; }
.jv-agree .jv-table td.right { text-align: right; }
.jv-col-slice { margin: 0 0 12px; }
.jv-sheets {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 8.5in;
}
.jv-letter {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
  white-space: pre-wrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 720px;
}
.jv-sec { margin: 0; padding: 0; }
.jv-doc,
.jv-sheet {
  width: 8.5in;
  min-width: 8.5in;
  height: 11in;
  min-height: 11in;
  max-height: 11in;
  margin: 0 auto;
  background: #fff;
  color: #111;
  padding: 0.75in 0.9in 1in;
  box-shadow: 0 2px 10px rgba(0,0,0,.22);
  font-family: "Times New Roman", Times, serif;
  font-size: 11.5pt;
  line-height: 1.38;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  page-break-after: always;
  break-after: page;
}
.jv-sheet > * { flex-shrink: 0; }
.jv-page-fill {
  flex: 1 1 auto;
  flex-shrink: 1;
  min-height: 0.35in;
}
.jv-blank {
  min-height: 1in;
  border: 1px dashed #c5c9ce;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  box-sizing: border-box;
}
.jv-blank-lbl {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a93a0;
  font-family: "IBM Plex Sans", var(--font);
}
.jv-space-size {
  font-size: 11px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "IBM Plex Sans", var(--font);
}
.jv-space-size select { font: inherit; }
.jv-preview-view .jv-blank { border-color: transparent; }
.jv-preview-view .jv-blank-lbl,
.jv-preview-view .jv-space-size { display: none; }
.jv-sheet.is-current {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.jv-sheet:last-child,
.jv-sheets > .jv-doc:last-child {
  page-break-after: auto;
  break-after: auto;
}
.jv-doc.jv-agree:not(.jv-sheet) {
  height: auto;
  max-height: none;
  overflow: visible;
  display: block;
}
.jv-continued {
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10pt;
  margin: 0 0 12px;
}
.jv-letterhead {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2.4px solid var(--gold);
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.jv-mark { width: 28px; height: 28px; flex: 0 0 28px; }
.jv-co {
  font-family: "IBM Plex Sans", var(--font);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 13pt;
}
.jv-co-sub {
  font-family: "IBM Plex Sans", var(--font);
  font-size: 9pt;
  color: #4a5560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.jv-doc h1 {
  text-align: center;
  font-size: 13.5pt;
  letter-spacing: 0.08em;
  margin: 10px 0 4px;
  font-weight: 700;
}
.jv-doc h2,
.jv-sheet h2 {
  font-size: 11.5pt;
  margin: 16px 0 6px;
  border-bottom: 1px solid #111;
  padding-bottom: 2px;
  letter-spacing: 0.04em;
  break-after: avoid;
  page-break-after: avoid;
  break-inside: avoid;
}
.jv-agree h2 {
  break-after: avoid;
  page-break-after: avoid;
  break-inside: avoid;
}
.jv-doc h2 + *,
.jv-agree h2 + *,
.jv-sheet h2 + * {
  break-before: avoid;
  page-break-before: avoid;
}
.jv-kicker { text-align: center; font-style: italic; margin: 0 0 16px; }
.jv-date { margin: 0 0 18px; }
.jv-meta, .jv-table, .jv-terms { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.jv-meta td { vertical-align: top; padding: 2px 10px 6px 0; width: 50%; }
.jv-table th, .jv-table td, .jv-terms td {
  border: 1px solid #111;
  padding: 6px 8px;
  vertical-align: top;
}
.jv-table th { text-align: left; background: #f6f4ee; }
.jv-total td { font-weight: 700; }
.jv-note { font-style: italic; font-size: 10pt; margin: 0 0 12px; }
.jv-terms td:first-child { width: 38%; font-weight: 700; }
.jv-sign { margin-top: 22px; break-inside: avoid; }
.jv-sign-row { display: flex; gap: 24px; margin-top: 28px; }
.jv-sign-row div { flex: 1; }
.jv-accept { margin-top: 36px; }
.jv-doc p { margin: 0 0 10px; }
.jv-doc ol { margin: 0 0 12px; padding-left: 1.2em; }
.jv-sec-plain { font-weight: 700; letter-spacing: 0.04em; margin: 16px 0 6px; }
.jv-calc-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 14px;
}
.jv-calc-kpis div {
  background: var(--bg-muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
}
.jv-calc-kpis span { display: block; font-size: 11px; color: var(--ink-3); }
.jv-calc-kpis b { font-size: 16px; }
.jv-calc-table input { width: 100%; min-width: 0; }
@media (max-width: 980px) {
  .lists-split, .jv-grid { grid-template-columns: 1fr; }
  .jv-calc-kpis { grid-template-columns: 1fr; }
}
@page {
  size: letter portrait;
  margin: 0;
}
@media print {
  .sidebar, .topbar, .crumb, .page-title, .jv-form, .jv-toolbar, .toast, .overlay { display: none !important; }
  .app, .main, #view-jv, .jv-grid, .jv-stage, .jv-preview, .jv-sheets {
    display: block !important;
    background: #fff !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
  }
  .jv-preview { background: #fff !important; }
  .jv-doc, .jv-sheet {
    box-shadow: none;
    width: 8.5in;
    min-width: 8.5in;
    height: 11in;
    min-height: 11in;
    max-height: 11in;
    padding: 0.75in 0.9in 1in;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    page-break-after: always;
    break-after: page;
  }
  .jv-blank { border: 0; background: transparent; padding: 0; }
  .jv-blank-lbl, .jv-space-size { display: none !important; }
  .jv-sheet:last-child,
  .jv-sheets > .jv-doc:last-child {
    page-break-after: auto;
    break-after: auto;
  }
}

.uw-jv-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px 16px;
  margin: 0 0 16px;
  background: #fff;
}
.uw-jv-card-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
}
.uw-jv-card-h h3 { margin: 0; font-size: 15px; }
.uw-jv-party {
  border: 1px solid var(--line);
  background: var(--bg-muted);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0 0 10px;
}
.uw-jv-party-h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
}
.uw-jv-party-h .link { margin-left: auto; }
.uw-jv-props {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 14px;
}
.uw-jv-prop { font-size: 13px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.uw-jv-own { font-weight: 600; margin-left: 8px; }
.uw-jv-own.good { color: var(--green); }
.uw-jv-own.warn { color: var(--amber); }

/* ── Monday-style Tasks board ── */
.tb-wrap { position: relative; min-height: 60vh; }
.tb-board { display: flex; flex-direction: column; gap: 18px; padding-bottom: 24px; }
#taskBoardInner { display: flex; flex-direction: column; gap: 8px; }
.tb-deal-board { margin: 0 0 28px; }
.tb-deal-board-h {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin: 0 0 12px;
}
.tb-deal-board-h h2 { margin: 0; font-size: 18px; font-weight: 700; }
.tb-deal-board + .tb-deal-board {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
body.partner-session #view-priorities [data-task-new-group] { display: none !important; }
.tb-group {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tb-group-h {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.tb-caret, .tb-add, .tb-add-group {
  background: none; border: 0; color: var(--ink-2); font: inherit; cursor: pointer;
}
.tb-group-h { cursor: pointer; }
.tb-group-h .tb-group-title { cursor: text; }
.tb-group.collapsed .tb-group-h { border-bottom: 0; }
.tb-group { border-left: 4px solid var(--tb, #579bfc); }
.tb-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--tb, #579bfc); flex: 0 0 10px;
}
.tb-group-title {
  border: 0; background: transparent; font-weight: 700; font-size: 14px; color: var(--tb, var(--ink));
  min-width: 120px; padding: 2px 0;
}
.tb-count { font-size: 12px; color: var(--ink-3); margin-right: auto; }
.tb-table { width: 100%; }
.tb-head, .tb-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) 140px 160px 140px minmax(120px, 1fr);
  gap: 0;
  align-items: center;
}
.tb-head {
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--line); padding: 0 8px;
}
.tb-head span, .tb-row > span { padding: 8px 10px; border-right: 1px solid var(--line); min-height: 42px; display: flex; align-items: center; }
.tb-head span:last-child, .tb-row > span:last-child { border-right: 0; }
.tb-row { border-bottom: 1px solid var(--line); background: #fff; cursor: default; box-shadow: inset 4px 0 0 var(--st, var(--tb, #579bfc)); }
.tb-row:hover { background: #f7f9fc; }
.tb-row.dragging { opacity: 0.45; }
.tb-col-item { display: flex; align-items: center; gap: 8px; }
.tb-row-caret, .tb-row-caret-spacer {
  flex: none; width: 18px; height: 22px; border: 0; background: transparent;
  padding: 0; cursor: pointer; border-radius: 4px;
}
.tb-row-caret:hover { background: var(--bg-muted, #eef1f4); }
.tb-row-chevron {
  display: block; width: 6px; height: 6px; margin: 7px auto 0;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg);
}
.tb-row-caret.is-closed .tb-row-chevron { transform: rotate(-45deg); }
.tb-kid-n {
  font-size: 11px; color: var(--ink-3); font-weight: 650;
  background: #eef1f4; border-radius: 999px; padding: 1px 7px;
}
.tb-grip { color: var(--ink-3); cursor: grab; letter-spacing: -2px; font-size: 11px; user-select: none; padding: 6px 2px; }
.tb-grip:active { cursor: grabbing; }
.tb-item-title, .tb-due, .tb-drawer-title, .tb-notes textarea, .tb-updates textarea, .tb-kv select {
  width: 100%; border: 0; background: transparent; font: inherit; color: inherit;
}
.tb-item-title { font-weight: 550; min-width: 0; flex: 1; cursor: text; user-select: text; }
.tb-item-title:hover { background: #f3f6fb; border-radius: 4px; }
.tb-item-title:focus { background: #fff; box-shadow: inset 0 0 0 1px #0073ea; border-radius: 4px; padding: 4px 6px; }
.tb-item-title:focus, .tb-group-title:focus, .tb-due:focus, .tb-drawer-title:focus { outline: none; }
.tb-drawer-title { cursor: text; user-select: text; border: 1px solid transparent; border-radius: 6px; padding: 4px 6px; }
.tb-drawer-title:hover { background: #f3f6fb; }
.tb-drawer-title:focus { border-color: #0073ea; background: #fff; }
.tb-row-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: 0 0 auto; }
.tb-add-sub, .tb-details-btn {
  border: 0; border-radius: 4px; font: inherit; font-size: 11px; font-weight: 700;
  padding: 5px 10px; cursor: pointer; white-space: nowrap; min-width: 64px; line-height: 1.2;
}
.tb-add-sub { background: #eef6ff; color: #0073ea; }
.tb-add-sub:hover { background: #d7ebff; }
.tb-details-btn { background: #0073ea; color: #fff; overflow: visible; }
.tb-details-btn:hover { background: #0060c2; }
.tb-row.tb-child { background: color-mix(in srgb, var(--tb, #579bfc) 6%, #fff); }
.tb-row[data-depth="1"] .tb-col-item { padding-left: 28px; }
.tb-row[data-depth="2"] .tb-col-item { padding-left: 46px; }
.tb-row[data-depth="3"] .tb-col-item { padding-left: 64px; }
.tb-row[data-depth="4"] .tb-col-item { padding-left: 82px; }
.tb-row[data-depth="5"] .tb-col-item { padding-left: 100px; }
.tb-row.drop-nest { background: #e8f3ff; box-shadow: inset 0 0 0 2px #0073ea; }
.tb-row.drop-before { box-shadow: inset 0 3px 0 #0073ea; }
.tb-row.drop-after { box-shadow: inset 0 -3px 0 #0073ea; }
.tb-people { display: flex; align-items: center; gap: 4px; min-height: 28px; }
.tb-avatar, .tb-menu-item .tb-avatar {
  width: 26px; height: 26px; border-radius: 50%; background: #0073ea; color: #fff;
  font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.tb-avatar.inherited { opacity: 0.72; }
.tb-avatar.more { background: #c4c4c4; color: #fff; }
.tb-avatar.tb-team { background: #323338; color: #fff; border-radius: 6px; }
.tb-empty {
  width: 26px; height: 26px; border-radius: 50%; border: 1px dashed var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 14px;
}
.tb-status {
  border: 0; border-radius: 4px; padding: 6px 10px; font-weight: 700; font-size: 12px; width: 100%;
}
.tb-deal { font-size: 12px; color: var(--ink-2); }
.tb-add { display: block; width: 100%; text-align: left; padding: 10px 18px; color: var(--ink-3); }
.tb-add:hover, .tb-add-group:hover { color: var(--ink); background: var(--bg-muted); }
.tb-check {
  width: 16px; height: 16px; margin: 0; flex: 0 0 16px; accent-color: #0073ea; cursor: pointer;
}
.tb-row.selected { background: #e9f3ff; }
.tb-row.selected:hover { background: #dcecff; }
.tb-readonly .tb-grip { visibility: hidden; }
.tb-readonly .tb-item-title, .tb-readonly .tb-due, .tb-readonly .tb-group-title { cursor: default; }
.tb-readonly .tb-item-title:hover, .tb-readonly .tb-group-title:hover { background: transparent; }
.tb-readonly .tb-people { pointer-events: none; opacity: 0.9; }
.tb-readonly .tb-row { cursor: default; }
.tb-bulk {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 90; display: flex; align-items: center; gap: 4px;
  background: #fff; border-radius: 999px; padding: 8px 10px 8px 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18); border: 1px solid #ececec;
  font: 12px inherit; color: #323338;
}
.tb-bulk-count {
  display: flex; align-items: center; gap: 8px; font-weight: 600;
  padding: 0 10px 0 0; border-right: 1px solid #eee; margin-right: 4px; white-space: nowrap;
}
.tb-bulk-count b {
  width: 28px; height: 28px; border-radius: 50%; background: #0073ea; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.tb-bulk button {
  border: 0; background: transparent; cursor: pointer; font: inherit; color: #323338;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 64px; padding: 4px 8px; border-radius: 8px;
}
.tb-bulk button span { font-size: 16px; line-height: 1; }
.tb-bulk button:hover { background: #f3f4f6; }
.tb-bulk .tb-bulk-x { min-width: 36px; font-size: 22px; font-weight: 400; color: #7b7e85; padding: 4px; }
.tb-menu {
  position: fixed; z-index: 4100; min-width: 260px; max-width: min(360px, 92vw); max-height: 70vh;
  overflow: auto; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lg);
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
}
.tb-menu-back {
  position: fixed; inset: 0; background: rgba(8,12,18,0.42); z-index: 4090;
}
.tb-menu.tb-menu-modal {
  transform: translate(-50%, -50%);
  min-width: min(360px, 92vw);
  max-height: 76vh;
  padding: 14px;
  border-radius: 12px;
}
.tb-menu-h { font-size: 11px; text-transform: uppercase; color: var(--ink-3); padding: 6px 8px; }
.tb-menu-empty { font-size: 12px; color: var(--ink-3); padding: 6px 8px; margin: 0; }
.tb-menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none;
  text-align: left; padding: 7px 8px; border-radius: 4px; font: inherit; cursor: pointer;
}
.tb-menu-item.inherited { opacity: 0.7; }
.tb-menu-item:hover, .tb-menu-item.on { background: var(--bg-muted); }
.tb-menu-item i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.tb-modal { display: flex; flex-direction: column; gap: 12px; }
.tb-tabs { display: flex; gap: 6px; }
.tb-subtasks h4 { margin: 0 0 8px; font-size: 12px; color: var(--ink-3); }
.tb-sub {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) 92px 118px auto auto; gap: 8px;
  align-items: center; margin: 0 0 8px;
}
.tb-sub .tb-details-btn { min-width: 72px; padding: 6px 12px; }
.tb-sub.d1 { margin-left: 18px; }
.tb-sub.d2 { margin-left: 36px; }
.tb-sub.d3 { margin-left: 54px; }
.tb-sub.d4 { margin-left: 72px; }
.tb-sub input[type="text"], .tb-sub input[type="date"] {
  border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; font: inherit;
}
.tb-log { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow: auto; }
.tb-log-row { border-bottom: 1px solid var(--line); padding: 0 0 10px; }
.tb-log-meta { font-size: 12px; color: var(--ink-3); }
.tb-log-row p { margin: 4px 0 0; }
.tb-drawer {
  position: absolute; top: 0; right: 0; width: min(420px, 92vw); height: 100%;
  background: #fff; border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  z-index: 20; display: flex; flex-direction: column;
}
.tb-drawer-h { display: flex; gap: 8px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tb-drawer-title { font-size: 18px; font-weight: 700; }
.tb-drawer-b { padding: 14px 16px 24px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.tb-kv { display: grid; grid-template-columns: 88px 1fr; gap: 8px 10px; align-items: center; }
.tb-kv span { color: var(--ink-3); font-size: 12px; }
.tb-kv em { font-style: normal; font-size: 12px; margin-left: 6px; color: var(--ink-2); }
.tb-notes span, .tb-updates h4 { display: block; font-size: 12px; color: var(--ink-3); margin: 0 0 6px; }
.tb-notes textarea, .tb-updates textarea {
  border: 1px solid var(--line); border-radius: 6px; padding: 8px; min-height: 72px; background: #fff;
}
.tb-update { border-bottom: 1px solid var(--line); padding: 8px 0; }
.tb-update b { font-size: 12px; }
.tb-update span { font-size: 11px; color: var(--ink-3); margin-left: 6px; }
.tb-update p { margin: 4px 0 0; }
.tb-drawer-foot { margin-top: auto; }
.tb-label-row { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; }
.tb-label-row input[type="text"] { flex: 1; border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; }
.link.danger { color: var(--red); }
.login-gate form { margin: 0; }

/* ── Partner portal ── */
.portal-grid {
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  gap: 18px;
  align-items: start;
}
.portal-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  min-height: 40vh;
  max-height: calc(100vh - 180px);
  overflow: auto;
}
.portal-list-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  padding-bottom: 6px;
}
.portal-list-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.portal-archived-toggle { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.portal-list-actions .btn { white-space: nowrap; }
.portal-switch {
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  min-width: 220px;
}
.portal-switch select {
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
}
.portal-preview {
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 14px;
  font-size: 13px;
}
.portal-group { margin: 0 0 8px; }
.portal-group-h {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  background: #f4f6f8;
  border-radius: 6px;
  padding: 7px 8px;
  font: inherit;
  cursor: pointer;
}
.portal-group-h strong { font-size: 12px; }
.portal-caret {
  width: 0;
  height: 0;
  border-left: 5px solid var(--ink-3);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform .12s ease;
}
.portal-group:not(.closed) > .portal-group-h .portal-caret { transform: rotate(90deg); }
.portal-group.closed > .portal-group-b { display: none; }
.portal-group-b { padding: 6px 0 0 6px; }
.portal-group .portal-group { margin: 0 0 6px; }
.portal-group .portal-group-h { background: #eef1f4; }
.portal-row {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 0 0 6px;
  cursor: pointer;
  font: inherit;
}
.portal-row b { display: block; font-size: 13px; }
.portal-row i { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); }
.portal-row em { display: inline-block; margin-top: 6px; }
.portal-row.on, .portal-row:hover { border-color: var(--gold); background: var(--gold-dim); }
.portal-row.is-bundle { border-color: var(--navy); background: #f4f7fa; }
.portal-row.is-kid { margin-left: 12px; width: calc(100% - 12px); padding-left: 12px; border-left: 3px solid var(--navy); }
.portal-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.portal-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.portal-kpi span { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.portal-kpi b { display: block; margin-top: 4px; font-size: 22px; }
.portal-status {
  display: inline-block;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--gold-dim);
  color: var(--ink-2);
}
.portal-status.hot { background: #efe4c4; color: #6b4e00; }
.portal-status.done { background: #dceee0; color: #1d5a2b; }
.portal-status.mid { background: #e4ecf7; color: #1d3d73; }
.portal-status.archived { background: #eceff1; color: #5d6c80; margin-left: 4px; }
.portal-status.cold { background: #f3e4e4; color: #7a2a2a; }
.portal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
}
.portal-head h2 { margin: 0; }
.portal-head-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.portal-head .portal-status { margin-top: 8px; }
.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.portal-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  border-radius: 0;
  color: var(--ink-3);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  margin-bottom: -1px;
  cursor: pointer;
}
.portal-tab:hover { color: var(--ink); background: var(--bg-muted); }
.portal-tab.on { color: var(--navy); border-bottom-color: var(--navy); }
.portal-tab-body { min-height: 180px; }
.portal-pane-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
}
.portal-pane-h h3 { margin: 0; }
.portal-kids { display: grid; gap: 10px; }
.portal-kid-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--bg-muted, #f6f7f9);
}
.portal-kid-card.on { border-color: var(--navy); background: #f4f7fa; }
.portal-files-host {
  min-height: 420px;
  margin-top: 8px;
}
.portal-files-host .files-explorer {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.portal-kid-card .btn { margin-top: 8px; }

.dispo-form { display: grid; gap: 12px; }
.dispo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dispo-head h3 { margin: 0; }
.dispo-progress {
  background: #eef3f8; color: var(--navy); border-radius: 999px;
  padding: 4px 10px; font-size: 12px; font-weight: 650; white-space: nowrap;
}
.dispo-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.dispo-step {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 5px 10px; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer;
}
.dispo-step i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; background: #eef1f4; font-style: normal; font-size: 11px;
}
.dispo-step.on { border-color: var(--navy); background: #f4f7fa; color: var(--navy); }
.dispo-step.done i { background: #1d5a2b; color: #fff; }
.dispo-pane { display: grid; gap: 10px; }
.dispo-field { display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); }
.dispo-field input, .dispo-field textarea, .dispo-field select {
  border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font: inherit; background: #fff;
}
.dispo-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dispo-checks { display: grid; gap: 6px; }
.dispo-sub { margin: 8px 0 0; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.dispo-check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.dispo-save-note { margin: 0; }
.dispo-seller-list { display: grid; gap: 8px; }
.dispo-seller-row {
  display: flex; justify-content: space-between; gap: 8px; width: 100%;
  text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 6px;
  padding: 8px 10px; font: inherit; cursor: pointer;
}
.dispo-seller-row:hover { border-color: var(--navy); }
.dispo-seller-row b { display: block; font-size: 13px; }
.dispo-seller-row span { font-size: 12px; color: var(--ink-3); }
@media (max-width: 760px) {
  .dispo-3 { grid-template-columns: 1fr; }
}
.sl-yn { display: flex; gap: 14px; align-items: center; min-height: 36px; }
.sl-unit, .sl-comp {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: #fff;
}
.sl-unit b { font-size: 12px; }
.sl-exits { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.sl-nav { margin-top: 0; }
.sl-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  gap: 0;
}
.sl-form-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 12px;
  padding-bottom: 24px;
}
.sl-form-foot {
  flex: 0 0 auto;
  margin: 8px 0 0;
  padding: 16px 0 8px;
  background: transparent;
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border: 0;
}
.sl-form-foot .dispo-save-note { margin: 0; }
.sl-lock-note { color: var(--navy); font-weight: 650; }
.sl-picker { display: grid; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.slf-pick { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 28px 12px 12px; }
.slf-pick h3 { margin: 0; }
.slf-pick-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.slf-pick-row .btn { min-width: 168px; padding: 14px 18px; }
.slf-desk { display: grid; gap: 12px; }
.slf-desk-new { display: flex; gap: 10px; flex-wrap: wrap; }
.slf-desk-list { display: grid; gap: 6px; }
.slf-desk-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.slf-desk-row:hover { border-color: var(--navy); }
.slf-desk-row span { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.person-asset-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 8px; }
.sl-wizard { max-height: none; overflow: hidden; flex: 1; min-height: 0; }
.portal-facts { display: grid; gap: 10px; margin: 10px 0 0; }
.portal-facts > div { display: grid; gap: 2px; }
.portal-facts span { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.portal-facts b { font-size: 14px; }
.portal-room {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  min-height: 40vh;
}
.portal-room-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 26, .45);
  z-index: 60;
}
.portal-room.is-floating {
  position: fixed;
  z-index: 61;
  top: 4vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, 92vw);
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.portal-room-close {
  position: sticky;
  top: 0;
  float: right;
  margin: -4px -4px 0 0;
}
.portal-room-split {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  align-items: start;
}
.portal-room-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--line);
  padding-right: 12px;
}
.portal-row-nav {
  text-align: left;
  border: 1px solid transparent;
  background: none;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
  cursor: pointer;
}
.portal-row-nav:hover { background: var(--panel-2, #f4f5f7); }
.portal-row-nav.on { background: var(--ink); color: #fff; }
.portal-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.portal-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.portal-form {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
}
.portal-form label { display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); }
.portal-form input, .portal-form textarea, .portal-form select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}
.portal-house, .access-picker {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  background: var(--bg);
}
.portal-house-h, .access-row, .portal-access-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: space-between;
}
.access-row, .portal-access-row { justify-content: flex-start; font-size: 13px; }
.access-row span, .portal-access-row span { color: var(--ink-3); font-size: 12px; }
.access-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.access-col { border: 1px solid var(--line); border-radius: 6px; padding: 8px; min-height: 80px; }
.access-col-can { background: #f3faf4; border-color: #b7e0c0; }
.access-col-no { background: #fdf4f4; border-color: #f0c4c4; }
.access-row.is-can { color: #1e6b3a; }
.access-row.is-no { color: #9f1f1f; }
body.dash-simple .alert-strip { display: none; }
body.dash-simple .dash-kpis .kpi:nth-child(n+5) { display: none; }
body.dash-simple #dashRiskTitle,
body.dash-simple #riskCount,
body.dash-simple #riskList { display: none; }
body.dash-simple .dash-split { grid-template-columns: 1fr; }
body.dash-simple .head-actions [data-modal="newOffer"],
body.dash-simple .head-actions [data-view="properties"] { display: none; }
@media (max-width: 720px) { .access-cols { grid-template-columns: 1fr; } }
.access-list, .portal-access-list { display: grid; gap: 6px; max-height: 220px; overflow: auto; }
.portal-timeline { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 0; }
.portal-tl {
  border-left: 3px solid var(--gold);
  padding: 0 0 0 10px;
}
.portal-tl b { display: block; font-size: 13px; }
.portal-tl span { font-size: 11px; color: var(--ink-3); }
.portal-tl p { margin: 4px 0 0; font-size: 13px; }
.portal-offer {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--gold-dim);
  margin: 0 0 8px;
}
.portal-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.portal-picker { display: grid; gap: 8px; }
.portal-picker-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.portal-picker-row label { display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); }
.portal-filemgr { margin: 8px 0 0; overflow: auto; }
.portal-filemgr .tbl { width: 100%; }
.portal-activity { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; }
.file-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 99px;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.file-badge.enc { background: #1e3a2f; color: #8fd4aa; }
.file-badge.hidden { background: #3a2a12; color: #e0b25d; }
.file-badge.archived { background: #2a3340; color: #9aa7b8; }
.badge-archived {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eceff1;
  color: #5d6c80;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
tr.is-archived, .person-nav-item.is-archived { opacity: 0.72; }
.tb-cats { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
.msg-task {
  background: none;
  border: 0;
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 0 6px;
}
.mail-read-h .btn { margin-top: 8px; }
.onboard-legal { max-height: 70vh; overflow: auto; }
.onboard-legal h4 { margin: 16px 0 8px; }
.onboard-legal .lg-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--ink);
  margin: 8px 0;
}
.onboard-legal .lg-agree input { width: auto; margin-top: 2px; }
.legal-link, .onboard-legal .legal-link, .login-gate .lg-tos-link {
  background: none; border: 0; padding: 0; color: inherit;
  text-decoration: underline; font: inherit; cursor: pointer;
}
.onboard-legal .legal-link { color: #8a6a28; }
.modal-h .ob-logout { margin-left: auto; }
@media (max-width: 980px) {
  .portal-grid, .portal-cols, .portal-3, .portal-kpis { grid-template-columns: 1fr; }
}
