:root {
  --bg: #eaeeeb;
  --surface: #ffffff;
  --surface-soft: #eef4f2;
  --ink: #16201d;
  --muted: #566159;
  --line: #d2ddd8;
  --teal: #087f7a;
  --teal-dark: #075d59;
  --green: #198754;
  --amber: #b7791f;
  --red: #c24135;
  --blue: #3b67b0;
  --violet: #6c55b8;
  /* Soft semantic tints (chips / row highlights / small accents) */
  --tint-green: #e6f5ec;
  --tint-red: #fdece9;
  --tint-amber: #fdf2e0;
  --tint-blue: #e8f1fb;
  --tint-teal: #e2f1ef;
  /* Solid summary-card fills — three shades of grey, no colour. White text
     on all (AA-safe). Money-in cards (Income, Ready) share the light grey;
     Waiting = mid grey; Spending = dark grey. */
  --card-income: #676c6a;  /* light grey */
  --card-ready:  #676c6a;  /* light grey */
  --card-wait:   #565c5a;  /* mid grey   */
  --card-spend:  #3a3f3e;  /* dark grey  */
  --shadow: 0 10px 26px rgba(24, 33, 31, 0.10);
}

body.dark {
  --bg: #0e1217;
  --surface: #1b212a;
  --surface-soft: #222a35;
  --ink: #e7ecf2;
  --muted: #a4b0bc;
  --line: #2c3743;
  --tint-green: #163027;
  --tint-red: #33211f;
  --tint-amber: #33291a;
  --tint-blue: #1c2838;
  --tint-teal: #16302e;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
body.dark .report-table tbody tr:nth-child(even) { background: var(--surface-soft); }
body.dark .report-table tfoot th { background: var(--surface-soft); }
body.dark .bar { background: #2c3743; }
body.dark .tag.cat { background: #2c3743; color: #cdd6e0; }
body.dark .state.pending { background: #3a3320; }
body.dark input, body.dark select, body.dark textarea { background: var(--surface-soft); color: var(--ink); }

/* Password show/hide toggle */
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 44px !important; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  opacity: 0.65;
  padding: 4px 6px;
}
.pw-toggle:hover { opacity: 1; }

/* Search box */
.search-box {
  width: 100%;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-family: inherit;
  margin-bottom: 10px;
  background: var(--surface);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: #102320;
  color: #eef7f4;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #f0b84c;
  color: #17211f;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.sync-box {
  color: #a8bbb5;
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 6px 4px;
}

.overhead-filter-bar { margin-bottom: 14px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #dfe9e5;
  text-align: left;
}

.nav-item:hover {
  background: #1d3a35;
  color: #ffffff;
}

.nav-item.active {
  background: #1d3a35;
  color: #ffffff;
  box-shadow: inset 3px 0 0 var(--brand-accent, #f0b84c);
}

.nav-item.active .nav-icon {
  background: #f0b84c;
  color: #17211f;
}

.nav-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.sync-box {
  position: absolute;
  right: 18px;
  bottom: 22px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
}

.workspace {
  padding: 28px;
}

.topbar,
.section-head,
.row-title,
.detail-actions,
.topbar-actions,
.filter-row {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 20px;
}

.topbar-actions {
  gap: 10px;
}

select,
.ghost-button,
.primary-button,
.danger-button,
.chip {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

select {
  padding: 0 14px;
}

.ghost-button,
.primary-button,
.danger-button,
.chip {
  padding: 0 14px;
  font-weight: 800;
}

.primary-button {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--teal-dark);
}

.danger-button {
  border-color: #f3c7c3;
  color: var(--red);
}

.ghost-button.full {
  width: 100%;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric,
.queue-panel,
.detail-panel,
.site-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric {
  padding: 16px;
  border: 0;
  color: #ffffff;
  background: var(--card-ready);
}

.metric.good    { background: var(--card-income); }
.metric.spend   { background: var(--card-spend); }
.metric.warning { background: var(--card-wait); }
.metric.info    { background: var(--card-ready); }

.metric span,
.metric small {
  display: block;
  color: rgba(255, 255, 255, 0.85);
}

.metric strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 22px;
  color: #ffffff;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.8fr);
  gap: 16px;
}

.queue-panel,
.detail-panel {
  padding: 18px;
}

.detail-panel {
  border-top: 3px solid var(--teal);
}

.section-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.filter-row {
  gap: 8px;
  overflow-x: auto;
}

.chip {
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  white-space: nowrap;
}

.chip.active {
  border-color: var(--teal);
  background: var(--tint-teal);
  color: var(--teal-dark);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.payment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 150px;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.payment-row.selected {
  margin: 0 -12px;
  padding-right: 12px;
  padding-left: 9px;
  border-radius: 8px;
  background: var(--tint-teal);
  box-shadow: inset 3px 0 0 var(--teal);
}

.row-title {
  gap: 8px;
  flex-wrap: wrap;
}

.row-main p,
.row-main small,
.row-status span {
  margin: 0;
}

.row-main p,
.row-main small {
  display: block;
  color: var(--muted);
}

.row-main p {
  margin-top: 5px;
}

.row-main small {
  margin-top: 6px;
}

.row-status {
  text-align: right;
}

.row-status strong {
  display: block;
  margin-bottom: 8px;
}

.tag,
.state,
.approval-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.tag.material {
  background: #ede9fe;
  color: var(--violet);
}

.tag.labour {
  background: #fff4d5;
  color: #8a5a09;
}

.tag.vendor {
  background: #e9f5ff;
  color: var(--blue);
}

.tag.client {
  background: #def7ec;
  color: var(--green);
}

.state.blocked {
  background: #ffe9e7;
  color: var(--red);
}

.state.pending {
  background: #fff4d5;
  color: var(--amber);
}

.state.ready {
  background: #def7ec;
  color: var(--green);
}

.state.verify {
  background: #e9f5ff;
  color: var(--blue);
}

/* Money-flow kind tags */
.tag.kind-funding { background: #e9f5ff; color: var(--blue); }
.tag.kind-advance { background: #ede9fe; color: var(--violet); }
.tag.kind-spend   { background: #ffe9e7; color: var(--red); }
.tag.kind-income  { background: #def7ec; color: var(--green); }
.tag.kind-overhead { background: #fff4e0; color: #9a6a1b; }
.tag.cat  { background: #f1f3f9; color: #495267; text-transform: capitalize; }
.tag.mode { background: #fff4d5; color: #8a5a09; }
.tag.via  { background: #e7f7f0; color: var(--teal); }
.tag.grp  { background: #ede9fe; color: var(--violet); }
.tag.void { background: #ffe9e7; color: var(--red); font-weight: 700; }

/* Deleted (voided) entries: dimmed + struck through, still visible to the Owner */
.voided-row { opacity: 0.6; }
.voided-row .row-title strong { text-decoration: line-through; }

/* Pay list (group payment) */
.paylist-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.paylist-head, .paylist-row { display: grid; grid-template-columns: 2.4fr 1.2fr 1.2fr 36px; gap: 8px; align-items: center; padding: 8px; }
.paylist-head { background: var(--surface-soft); font-size: 12px; font-weight: 700; color: var(--muted); }
.paylist-row { border-top: 1px solid var(--line); }
.paylist-row input, .paylist-row select { width: 100%; min-height: 36px; border-radius: 8px; border: 1px solid var(--line); padding: 6px 8px; font-family: inherit; background: var(--surface); color: var(--ink); }
.paylist-row .pl-del { background: none; border: none; color: var(--red); font-size: 18px; cursor: pointer; }
.paylist-total { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 10px 12px; background: var(--surface-soft); border-radius: 10px; font-size: 15px; }

/* Signed amounts */
.amt-in   { color: var(--green); }
.amt-out  { color: var(--red); }
.amt-move { color: var(--blue); }

/* ---- Projects page ---- */
.project-grid, .balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface);
}
.project-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}
.project-head strong { display: block; font-size: 15px; }
.project-head span { color: var(--muted); font-size: 12px; }
.project-bars { margin-bottom: 12px; }
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin: 8px 0 4px;
}
.bar {
  height: 8px;
  border-radius: 999px;
  background: #eef0f5;
  overflow: hidden;
}
.bar-fill { height: 100%; border-radius: 999px; }
.bar-fill.prog  { background: var(--blue); }
.bar-fill.spend { background: var(--green); }
.bar-fill.over  { background: var(--red); }
.project-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0; }
.project-nums dt { color: var(--muted); font-size: 11px; }
.project-nums dd { margin: 0; font-weight: 800; font-size: 14px; }

.project-contracts { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.contract-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 8px;
  background: var(--bg, transparent);
}
.contract-row-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.contract-row-top strong { font-size: 13px; margin-right: auto; }
.contract-row-nums { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }

/* ---- Cash position cards ---- */
.balance-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface);
}
.balance-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.balance-net { font-size: 24px; font-weight: 800; }
.balance-card small { color: var(--muted); }
.balance-modes {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.balance-modes span {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--muted);
}
.balance-modes b { color: var(--ink, #1d2230); font-size: 13px; margin-top: 2px; }

/* ---- Reports ---- */
.report-controls {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  background: var(--surface);
}
.report-controls select, .report-controls input[type="date"] {
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 4px 8px;
  font-family: inherit;
}
.report-period { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.report-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.report-table { border-collapse: collapse; width: 100%; font-size: 13px; min-width: 720px; }
.report-table th, .report-table td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.report-table th:first-child, .report-table td:first-child { text-align: left; }
.report-table thead th { background: var(--blue); color: #fff; font-weight: 800; }
.report-table tfoot th { background: #f1f3f9; font-weight: 800; }
.report-table tbody tr:nth-child(even) { background: #fafbfd; }

.approval-steps {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.approval-steps span {
  border: 1px solid var(--line);
  color: var(--muted);
}

.approval-steps span.done {
  border-color: #b7e5cd;
  background: #def7ec;
  color: var(--green);
}

.bill-preview {
  display: grid;
  gap: 10px;
}

.paper {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1px dashed #b9c5c0;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 55%, #edf3f0 55%, #edf3f0 100%);
  text-align: center;
}

.paper span,
.paper small {
  color: var(--muted);
}

.paper strong {
  color: var(--red);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
}

.timeline-item > span {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 2px solid #b9c5c0;
  border-radius: 50%;
}

.timeline-item.done > span {
  border-color: var(--green);
  background: var(--green);
}

.timeline-item strong,
.timeline-item small {
  display: block;
}

.timeline-item small {
  color: var(--muted);
}

.detail-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.detail-actions button {
  flex: 1 1 auto;
  min-width: 130px;
}

.state.paid {
  background: #e7eceb;
  color: var(--teal-dark);
}

/* Toasts */
#toast-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000;
  display: grid;
  gap: 8px;
}

.toast {
  min-width: 220px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #18211f;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { background: #0f6b4f; }
.toast.error { background: #a3342a; }
.toast.info { background: #1d3a35; }

@media (max-width: 640px) {
  #toast-container {
    right: 10px;
    left: 10px;
    bottom: 76px;
  }
  .toast { max-width: none; }
}

.site-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin-top: 16px;
}

.site-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.site-card strong,
.site-card span,
.site-numbers span {
  display: block;
}

.site-card span,
.site-numbers span {
  color: var(--muted);
}

.site-numbers {
  display: grid;
  gap: 5px;
  text-align: right;
}

.mobile-nav {
  display: none;
}

@media (max-width: 980px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .workspace {
    /* extra bottom room = mobile nav + the phone's own home-bar area, so the
       last row is never hidden underneath either (matters once installed to
       the home screen, where there is no browser chrome) */
    padding: 18px 14px calc(86px + env(safe-area-inset-bottom, 0px));
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .payment-row {
    grid-template-columns: 1fr;
  }

  .row-status,
  .approval-steps {
    justify-content: flex-start;
    text-align: left;
  }

  .detail-panel {
    order: -1;
  }

  .site-card {
    display: grid;
  }

  .site-numbers {
    text-align: left;
  }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    min-height: 64px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 -12px 30px rgba(24, 33, 31, 0.08);
  }

  .mobile-nav button {
    min-height: 48px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
  }

  .mobile-nav button.active {
    color: var(--teal-dark);
  }

  .mobile-nav .add-button {
    width: 48px;
    height: 48px;
    margin: auto;
    border-radius: 50%;
    background: var(--teal);
    color: #ffffff;
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 24px;
  }

  .topbar {
    display: grid;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .topbar-actions select {
    grid-column: 1 / -1;
    width: 100%;
  }

  .metrics {
    gap: 10px;
  }

  .metric {
    padding: 14px;
  }

  .queue-panel,
  .detail-panel {
    padding: 14px;
  }

  .section-head {
    display: grid;
  }

  .filter-row {
    justify-content: flex-start;
  }
}

/* ---------- Archviz studio (Owner-private) ---------- */
.av-history {
  list-style: none;
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 190px;
  overflow-y: auto;
}
.av-history li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.av-history li span { flex: 1; color: var(--muted); }
.av-history li b { font-weight: 700; white-space: nowrap; }
.av-del {
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 6px;
}
.av-del:hover { color: var(--red); background: rgba(194, 65, 53, 0.1); }
.av-client-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: none;
  color: inherit;
  font-family: inherit;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 6px;
  cursor: pointer;
}
.av-client-row:hover { border-color: var(--muted); }

/* ---------- Ledger + pie (Reports) ---------- */
.pie-flex { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin: 6px 0 16px; }
.pie-legend { display: flex; flex-direction: column; gap: 6px; min-width: 250px; }
.legend-title { font-weight: 800; margin-bottom: 4px; }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.legend-label { flex: 1; }
.legend-val { color: var(--muted); white-space: nowrap; }
.ledger-table { min-width: 900px; font-size: 12.5px; }
.ledger-table tbody tr.ledger-row { cursor: pointer; }
.ledger-table tbody tr.ledger-row:hover td { background: var(--surface-soft); }
.ledger-scroll { max-height: 540px; overflow: auto; }
.ledger-scroll .ledger-table thead th { position: sticky; top: 0; z-index: 1; }

/* ---------- Insights page ---------- */
.insight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 8px; }
.insight-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.insight-card .ic-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.insight-card .ic-value { font-size: 22px; font-weight: 800; margin: 4px 0 6px; }
.insight-card .ic-sub { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.delta { font-weight: 700; }
.delta.good { color: var(--green); }
.delta.bad { color: var(--red); }
.delta.flat { color: var(--muted); font-weight: 500; }
.insight-section { margin: 22px 0; }
.insight-section h3 { margin: 0 0 10px; }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.split-row { display: flex; align-items: center; gap: 12px; margin: 8px 0; font-size: 13px; }
.split-name { width: 180px; flex: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split-bar { flex: 1; height: 18px; border-radius: 9px; overflow: hidden; display: flex; background: var(--surface-soft); }
.split-bar .sb-mat { background: #3b67b0; }
.split-bar .sb-lab { background: #e0862c; }
.split-pct { width: 230px; flex: none; color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; }
.vendor-row { display: flex; align-items: center; gap: 12px; margin: 8px 0; font-size: 13px; }
.vendor-name { width: 200px; flex: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vendor-bar { flex: 1; height: 14px; border-radius: 7px; background: var(--surface-soft); overflow: hidden; }
.vendor-bar span { display: block; height: 100%; background: var(--teal); border-radius: 7px; }
.vendor-amt { width: 190px; text-align: right; color: var(--muted); flex: none; white-space: nowrap; }
.muted-note { color: var(--muted); font-size: 12px; margin: 0; }
.profit-bar { flex: 1; height: 14px; border-radius: 7px; background: var(--surface-soft); overflow: hidden; }
.profit-fill { display: block; height: 100%; border-radius: 7px; }
.profit-fill.pos { background: var(--green); }
.profit-fill.neg { background: var(--red); }
