/* Meridian Sales CRM — real-estate adaptation of the Antelope/Atlas system.
   Clean SaaS shell. Accent driven by --brand (set from Tweaks). */

.rc-shell {
  /* accent + neutrals */
  --brand: #2F6B4F;
  --brand-strong: color-mix(in srgb, var(--brand) 86%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 13%, transparent);
  --brand-softer: color-mix(in srgb, var(--brand) 7%, transparent);
  --on-brand: #ffffff;

  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f6f5f2;
  --border: rgba(24,22,18,0.09);
  --border-strong: rgba(24,22,18,0.15);
  --text: #1c1a17;
  --text-muted: #6e6a62;
  --text-faint: #9a958c;
  --side-bg: #f3f1ed;
  --side-active: var(--brand-soft);
  --side-active-fg: var(--brand-strong);
  --pill-neutral-bg: rgba(24,22,18,0.06);
  --pill-neutral-fg: #57534e;
  --shadow-sm: 0 1px 2px rgba(24,22,18,0.05);
  --shadow-md: 0 1px 3px rgba(24,22,18,0.05), 0 6px 16px rgba(24,22,18,0.06);
  --shadow-lg: 0 24px 48px rgba(24,22,18,0.16), 0 4px 12px rgba(24,22,18,0.07);

  /* density */
  --row-pad: 13px 16px;
  --card-pad: 18px;
  --gap: 16px;

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  display: grid;
  grid-template-columns: 244px 1fr;
  height: 100%;
  width: 100%;
  font-size: 14px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

.rc-shell.rc-compact {
  --row-pad: 8px 14px;
  --card-pad: 14px;
  --gap: 12px;
  font-size: 13px;
}

.rc-shell.rc-dark {
  --brand-soft: color-mix(in srgb, var(--brand) 24%, transparent);
  --brand-softer: color-mix(in srgb, var(--brand) 13%, transparent);
  --bg: #131211;
  --surface: #1b1a18;
  --surface-2: #232220;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text: #f3f1ec;
  --text-muted: #a8a39a;
  --text-faint: #76726a;
  --side-bg: #181715;
  --side-active-fg: color-mix(in srgb, var(--brand) 55%, #fff);
  --pill-neutral-bg: rgba(255,255,255,0.09);
  --pill-neutral-fg: #d6d3cc;
}

* { box-sizing: border-box; }
.rc-shell button { font-family: inherit; }

/* ============ SIDEBAR ============ */
.rc-side {
  background: var(--side-bg);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 16px 12px; gap: 4px;
  height: 100%; min-height: 0; overflow: hidden;
}
.rc-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 16px; }
.rc-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand); color: var(--on-brand);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rc-brand-name { font-weight: 650; font-size: 15px; line-height: 1.1; letter-spacing: -0.01em; }
.rc-brand-tier { font-size: 11px; color: var(--text-muted); line-height: 1.2; margin-top: 2px; }

.rc-roleswitch { margin-bottom: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--border); position: relative; }
.rc-roleswitch-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 9px; cursor: pointer; color: var(--text); text-align: left;
}
.rc-roleswitch-btn:hover { background: var(--surface-2); }
.rc-roleswitch-menu {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 11px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50;
  display: flex; flex-direction: column; gap: 2px;
}
.rc-rolerow {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0;
  background: transparent; border-radius: 7px; cursor: pointer; color: var(--text);
  text-align: left; width: 100%;
}
.rc-rolerow:hover { background: var(--surface-2); }
.rc-rolerow.is-active { background: var(--brand-soft); }

.rc-nav { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; overflow-y: auto; min-height: 0; padding-right: 4px; margin-right: -4px; }
.rc-nav::-webkit-scrollbar { width: 6px; }
.rc-nav::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.14); border-radius: 999px; }
.rc-shell.rc-dark .rc-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); }
.rc-navlabel { font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-faint); padding: 12px 10px 4px; }
.rc-navbtn {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border: 0;
  background: transparent; border-radius: 8px; cursor: pointer; color: var(--text);
  font: inherit; font-size: 13.5px; text-align: left; transition: background .12s; width: 100%;
}
.rc-navbtn:hover { background: rgba(0,0,0,0.045); }
.rc-shell.rc-dark .rc-navbtn:hover { background: rgba(255,255,255,0.05); }
.rc-navbtn.is-active { background: var(--side-active); color: var(--side-active-fg); font-weight: 550; }
.rc-navbtn span { flex: 1; }
.rc-navbadge { flex: 0 !important; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,0.08); font-size: 11px; font-weight: 600; min-width: 20px; text-align: center; }
.rc-shell.rc-dark .rc-navbadge { background: rgba(255,255,255,0.1); }
.rc-navbtn.is-active .rc-navbadge { background: var(--brand-soft); color: var(--side-active-fg); }

.rc-side-foot { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }

/* ============ TOPBAR ============ */
.rc-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.rc-top { display: flex; align-items: center; gap: 16px; padding: 11px 26px; border-bottom: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.rc-search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 8px 11px; color: var(--text-muted); }
.rc-search input { flex: 1; border: 0; background: transparent; font: inherit; color: var(--text); outline: none; font-size: 13px; }
.rc-search kbd { font: inherit; font-size: 11px; font-family: 'JetBrains Mono', ui-monospace, monospace; padding: 2px 6px; background: rgba(0,0,0,0.06); border-radius: 5px; color: var(--text-muted); }
.rc-shell.rc-dark .rc-search kbd { background: rgba(255,255,255,0.08); }
.rc-top-right { display: flex; align-items: center; gap: 6px; }
.rc-iconbtn { position: relative; width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; color: var(--text); border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.rc-iconbtn:hover { background: rgba(0,0,0,0.05); }
.rc-shell.rc-dark .rc-iconbtn:hover { background: rgba(255,255,255,0.06); }
.rc-dot-red { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 999px; background: #e0533d; border: 2px solid var(--surface); }
.rc-userchip { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 999px; cursor: pointer; border: 0; background: transparent; color: var(--text); }
.rc-userchip:hover { background: rgba(0,0,0,0.04); }
.rc-shell.rc-dark .rc-userchip:hover { background: rgba(255,255,255,0.05); }

/* ============ CONTENT ============ */
.rc-content { flex: 1; overflow-y: auto; }
.rc-page { max-width: 1240px; margin: 0 auto; padding: 28px; display: flex; flex-direction: column; gap: var(--gap); }
.rc-h1 { font-size: 25px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px 0; }
.rc-serif { font-family: 'Spectral', Georgia, serif; }
.rc-pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 2px 0; }
.rc-pagehead > :first-child { flex: 1; min-width: 0; }
.rc-sub { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.rc-eyebrow { font-size: 12px; color: var(--text-muted); letter-spacing: 0.02em; }
.rc-head-cta { display: flex; gap: 8px; flex-shrink: 0; }
.rc-crumbs { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); }
.rc-crumb-link { background: transparent; border: 0; cursor: pointer; color: var(--text-muted); font: inherit; padding: 0; }
.rc-crumb-link:hover { color: var(--brand); }

/* ============ BUTTONS ============ */
.rc-btn, .rc-btn-primary, .rc-btn-ghost {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9px;
  cursor: pointer; font: inherit; font-size: 13px; font-weight: 550; transition: background .12s, border-color .12s, transform .08s; white-space: nowrap;
}
.rc-btn:active, .rc-btn-primary:active, .rc-btn-ghost:active { transform: translateY(1px); }
.rc-btn { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); }
.rc-btn:hover { background: var(--surface-2); }
.rc-btn-primary { background: var(--brand); border: 1px solid var(--brand); color: var(--on-brand); }
.rc-btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.rc-btn-primary[disabled] { opacity: 0.45; cursor: not-allowed; }
.rc-btn-ghost { background: transparent; border: 0; color: var(--text-muted); }
.rc-btn-ghost:hover { background: rgba(0,0,0,0.05); color: var(--text); }
.rc-shell.rc-dark .rc-btn-ghost:hover { background: rgba(255,255,255,0.06); }
.rc-btn-sm { padding: 6px 11px; font-size: 12px; }
.rc-link { background: transparent; border: 0; color: var(--brand); font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; padding: 0; }
.rc-shell.rc-dark .rc-link { color: var(--side-active-fg); }

/* ============ CARDS ============ */
.rc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: var(--card-pad); display: flex; flex-direction: column; gap: 12px; }
.rc-card-head { display: flex; justify-content: space-between; align-items: flex-start; }
.rc-card-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.rc-card-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.rc-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.rc-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

/* ============ STATS ============ */
.rc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rc-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.rc-stat-label { font-size: 12px; color: var(--text-muted); }
.rc-stat-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 6px; }
.rc-stat-value { font-size: 27px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.rc-stat-sub { display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: var(--text-muted); margin-top: 9px; }
.rc-up { color: #1f8a52; font-weight: 600; }
.rc-down { color: #d9544a; font-weight: 600; }

/* ============ TABLE ============ */
.rc-table-card { padding: 0; overflow: hidden; }
.rc-table-toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.rc-views { display: flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 3px; }
.rc-view { padding: 6px 11px; border-radius: 6px; border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 12.5px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.rc-view:hover { color: var(--text); }
.rc-view.is-active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }
.rc-view-count { font-size: 11px; opacity: 0.7; padding: 0px 6px; border-radius: 999px; background: rgba(0,0,0,0.06); }
.rc-shell.rc-dark .rc-view-count { background: rgba(255,255,255,0.09); }
.rc-table-search { margin-left: auto; display: flex; align-items: center; gap: 7px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; color: var(--text-muted); min-width: 180px; }
.rc-table-search input { border: 0; background: transparent; outline: none; font: inherit; font-size: 12.5px; color: var(--text); width: 100%; }

.rc-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.rc-table thead th { font-size: 11px; font-weight: 600; color: var(--text-muted); text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--bg); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; user-select: none; }
.rc-table thead th.is-sortable { cursor: pointer; }
.rc-table thead th.is-sortable:hover { color: var(--text); }
.rc-table th.rc-num, .rc-table td.rc-num { text-align: right; }
.rc-table tbody td { padding: var(--row-pad); border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 13px; }
.rc-table tbody tr { cursor: pointer; transition: background .1s; }
.rc-table tbody tr:hover { background: var(--brand-softer); }
.rc-table tbody tr:last-child td { border-bottom: 0; }
.rc-th-arrow { font-size: 9px; margin-left: 4px; opacity: 0.7; }
.rc-checkcol { width: 40px; }
.rc-cb { width: 16px; height: 16px; border-radius: 5px; border: 1.6px solid var(--border-strong); background: var(--surface); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--on-brand); flex-shrink: 0; }
.rc-cb.is-on { background: var(--brand); border-color: var(--brand); }
.rc-bulkbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--brand-soft); border-bottom: 1px solid var(--border); font-size: 13px; }
.rc-empty { padding: 56px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rc-empty-title { font-size: 15px; font-weight: 600; }
.rc-empty-body { font-size: 13px; color: var(--text-muted); max-width: 360px; }

/* ============ PILLS / AVATARS handled inline ============ */
.rc-progress-bar { flex: 1; height: 6px; background: rgba(0,0,0,0.07); border-radius: 999px; overflow: hidden; }
.rc-shell.rc-dark .rc-progress-bar { background: rgba(255,255,255,0.09); }
.rc-progress-bar > div { height: 100%; background: var(--brand); border-radius: 999px; }

/* ============ LISTS (home) ============ */
.rc-list { display: flex; flex-direction: column; gap: 2px; }
.rc-listrow { display: flex; align-items: center; gap: 11px; padding: 10px 8px; border-radius: 9px; background: transparent; border: 0; cursor: pointer; font: inherit; color: var(--text); text-align: left; width: 100%; }
.rc-listrow:hover { background: var(--brand-softer); }
.rc-listrow-name { font-size: 13.5px; font-weight: 550; }
.rc-listrow-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.rc-listrow-time { font-size: 11.5px; color: var(--text-muted); flex-shrink: 0; }

/* task check */
.rc-check { width: 18px; height: 18px; border-radius: 999px; border: 1.7px solid var(--border-strong); background: transparent; cursor: pointer; flex-shrink: 0; transition: all .12s; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.rc-check.is-high { border-color: #d9544a; }
.rc-check:hover { border-color: var(--brand); }
.rc-check.is-done { background: var(--brand); border-color: var(--brand); }

/* ============ LEAD DETAIL ============ */
.rc-clienthead { display: flex; align-items: center; gap: 16px; padding: 6px 0; flex-wrap: wrap; }
.rc-clienthead .rc-h1 { white-space: nowrap; }
.rc-clienthead > :nth-child(2) { flex: 1; min-width: 220px; }
.rc-clienthead > :last-child { flex-shrink: 0; }
.rc-client-meta { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-muted); margin-top: 6px; flex-wrap: wrap; }
.rc-client-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--gap); align-items: start; }
.rc-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rc-kv > div { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.rc-kv span { font-size: 11.5px; color: var(--text-muted); }
.rc-kv strong { font-weight: 600; }
.rc-notes { display: flex; flex-direction: column; gap: 10px; max-height: 280px; overflow-y: auto; }
.rc-note { padding: 10px 12px; background: var(--bg); border-radius: 9px; border: 1px solid var(--border); }
.rc-note-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.rc-note-head strong { white-space: nowrap; }
.rc-note-head span { white-space: nowrap; flex-shrink: 0; }
.rc-note-head strong { font-weight: 600; }
.rc-note-head span { color: var(--text-muted); }
.rc-note-body { font-size: 13px; line-height: 1.5; margin-top: 4px; }
.rc-noteinput { width: 100%; min-height: 60px; resize: vertical; border: 1px solid var(--border-strong); border-radius: 9px; padding: 10px 12px; font: inherit; font-size: 13px; background: var(--surface); color: var(--text); outline: none; }
.rc-noteinput:focus { border-color: var(--brand); }
.rc-activity { display: flex; flex-direction: column; }
.rc-act-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.rc-act-row:last-child { border-bottom: 0; }
.rc-act-dot { width: 9px; height: 9px; border-radius: 999px; margin-top: 5px; flex-shrink: 0; background: var(--brand); }

/* matched unit chip on lead card */
.rc-unitchip { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.rc-unitchip:hover { border-color: var(--brand); cursor: pointer; }
.rc-unitchip strong { white-space: nowrap; }
.rc-unit-thumb { width: 46px; height: 46px; border-radius: 8px; flex-shrink: 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, transparent), color-mix(in srgb, var(--brand) 16%, transparent) 7px, color-mix(in srgb, var(--brand) 8%, transparent) 7px, color-mix(in srgb, var(--brand) 8%, transparent) 14px); display: flex; align-items: center; justify-content: center; color: var(--brand); }

/* ============ INVENTORY ============ */
.rc-dev-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-dev-tab { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text); text-align: left; }
.rc-dev-tab.is-active { border-color: var(--brand); background: var(--brand-softer); }
.rc-dev-tab-name { font-size: 13px; font-weight: 600; }
.rc-dev-tab-meta { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.rc-unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.rc-unitcard { background: var(--surface); border: 1px solid var(--border); border-radius: 13px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: border-color .12s, transform .1s, box-shadow .12s; }
.rc-unitcard:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.rc-unitcard-img { height: 116px; position: relative; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, var(--surface-2)), color-mix(in srgb, var(--brand) 14%, var(--surface-2)) 9px, color-mix(in srgb, var(--brand) 7%, var(--surface-2)) 9px, color-mix(in srgb, var(--brand) 7%, var(--surface-2)) 18px); display: flex; align-items: flex-end; justify-content: space-between; padding: 10px; }
.rc-unitcard-code { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; background: rgba(0,0,0,0.55); color: #fff; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.rc-shell.rc-dark .rc-unitcard-code { background: rgba(0,0,0,0.6); }
.rc-unitcard-body { padding: 13px 14px; display: flex; flex-direction: column; gap: 9px; }
.rc-unitcard-type { font-size: 14px; font-weight: 600; white-space: nowrap; }
.rc-unitcard-specs { display: flex; gap: 10px; font-size: 11.5px; color: var(--text-muted); flex-wrap: wrap; }
.rc-unitcard-specs span { white-space: nowrap; }
.rc-unitcard-price { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.rc-unit-legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); align-items: center; }
.rc-legend-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: middle; }

/* ============ PIPELINE BOARD ============ */
.rc-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.rc-col { flex: 1; min-width: 232px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 13px; display: flex; flex-direction: column; max-height: calc(100vh - 230px); }
.rc-col.is-drop { outline: 2px dashed var(--brand); outline-offset: -3px; background: var(--brand-softer); }
.rc-col-head { display: flex; align-items: center; gap: 8px; padding: 12px 13px 10px; }
.rc-col-dot { width: 9px; height: 9px; border-radius: 999px; flex-shrink: 0; }
.rc-col-name { font-size: 13px; font-weight: 650; flex: 1; }
.rc-col-count { font-size: 11px; font-weight: 600; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); padding: 1px 8px; border-radius: 999px; }
.rc-col-sum { font-size: 11px; color: var(--text-muted); padding: 0 13px 8px; font-variant-numeric: tabular-nums; }
.rc-col-body { display: flex; flex-direction: column; gap: 8px; padding: 4px 10px 12px; overflow-y: auto; min-height: 40px; }
.rc-deal { background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 11px 12px; cursor: grab; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .12s, border-color .12s; }
.rc-deal:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.rc-deal.is-dragging { opacity: 0.4; }
.rc-deal-top { display: flex; align-items: center; gap: 9px; }
.rc-deal-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.rc-deal-sub { font-size: 11.5px; color: var(--text-muted); }
.rc-deal-foot { display: flex; align-items: center; justify-content: space-between; }
.rc-deal-value { font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ============ COPILOT ============ */
.rc-copilot-fab { position: fixed; bottom: 24px; right: 24px; display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--brand); border: 0; color: var(--on-brand); cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 45%, transparent), 0 2px 6px rgba(0,0,0,0.1); transition: transform .15s, box-shadow .15s; z-index: 50; }
.rc-copilot-fab:hover { transform: translateY(-2px); }
.rc-copilot-panel { position: fixed; bottom: 24px; right: 24px; width: 380px; height: 540px; max-height: calc(100vh - 48px); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; z-index: 60; overflow: hidden; }
.rc-copilot-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.rc-copilot-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; }
.rc-copilot-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.rc-msg { max-width: 88%; padding: 10px 14px; border-radius: 15px; font-size: 13px; line-height: 1.5; }
.rc-msg-assistant { background: var(--bg); align-self: flex-start; border-bottom-left-radius: 4px; }
.rc-msg-user { background: var(--brand); color: var(--on-brand); align-self: flex-end; border-bottom-right-radius: 4px; }
.rc-copilot-suggest { display: flex; flex-direction: column; gap: 4px; padding: 0 12px 8px; }
.rc-copilot-suggest button { padding: 8px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 9px; cursor: pointer; font: inherit; font-size: 12px; color: var(--text); text-align: left; }
.rc-copilot-suggest button:hover { background: var(--brand-softer); border-color: var(--brand-soft); }
.rc-copilot-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.rc-copilot-input input { flex: 1; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; outline: none; }
.rc-copilot-input input:focus { border-color: var(--brand); }
.rc-copilot-input button { width: 38px; padding: 0; background: var(--brand); border: 0; border-radius: 9px; color: var(--on-brand); cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ============ MODAL ============ */
.rc-modal-scrim { position: fixed; inset: 0; background: rgba(20,18,15,0.5); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.rc-modal { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; max-width: 480px; max-height: calc(100vh - 48px); overflow: auto; display: flex; flex-direction: column; }
.rc-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 12px; }
.rc-modal-title { font-size: 17px; font-weight: 650; }
.rc-modal-body { padding: 4px 20px 8px; display: flex; flex-direction: column; gap: 14px; }
.rc-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; }
.rc-field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-muted); }
.rc-field input, .rc-field select, .rc-field textarea { height: 40px; padding: 0 12px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 9px; font: inherit; font-size: 14px; color: var(--text); outline: none; }
.rc-field textarea { height: auto; min-height: 64px; padding: 10px 12px; resize: vertical; }
.rc-field input:focus, .rc-field select:focus, .rc-field textarea:focus { border-color: var(--brand); }
.rc-field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ============ TOAST ============ */
.rc-toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; align-items: center; }
.rc-toast { display: flex; align-items: center; gap: 10px; background: #1c1a17; color: #fff; padding: 11px 16px; border-radius: 11px; box-shadow: var(--shadow-lg); font-size: 13px; animation: rc-toast-in .2s ease; max-width: 420px; }
.rc-toast-ok { background: #1f6e47; }
@keyframes rc-toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ============ MISC ============ */
.rc-segmented { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 3px; gap: 2px; }
.rc-segbtn { padding: 6px 12px; border-radius: 6px; border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 12.5px; color: var(--text-muted); }
.rc-segbtn.is-active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }

.rc-leaderboard-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 9px 6px; border-bottom: 1px solid var(--border); }
.rc-leaderboard-row:last-child { border-bottom: 0; }
.rc-rank { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-faint); font-weight: 600; }

@media (max-width: 1080px) {
  .rc-shell { grid-template-columns: 72px 1fr; }
  .rc-brand-text, .rc-roleswitch, .rc-navbtn span, .rc-navbadge, .rc-navlabel, .rc-side-foot { display: none; }
  .rc-side { align-items: center; }
  .rc-navbtn { justify-content: center; }
  .rc-row-2, .rc-row-3, .rc-client-grid { grid-template-columns: 1fr; }
  .rc-stats { grid-template-columns: repeat(2, 1fr); }
}
