/* ═══════════════════════════════════════════════════════════════════════════
   Industry layout themes. EVERY rule is scoped to html[data-ind-theme=...] (set by
   applyIndustryLayout in app.js) so a theme can never leak into another industry.
   The extra [data-industry] attribute lifts specificity above the dark-mode sheet
   that app.js injects later in <head>.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── ESTATE (Airbnb / Short-let / Property) ─────────────────────────────── */
html[data-ind-theme="estate"][data-industry] {
  --re-side: #183b2d;
  --re-side-active: #2b5a46;
  --re-side-text: #d3e2d9;
  --re-green: #1f5a43;
  --re-green-hover: #184a37;
  --re-mint: #dcebe2;
  --re-mint-text: #1f5a43;
  --re-bg: #f3f2ee;
  --re-card: #ffffff;
  --re-line: #e5e3db;
  --re-line-soft: #eeede7;
  --re-ink: #15211b;
  --re-muted: #66706a;
  --re-faint: #9aa29d;
  --re-amber: #d9a441;
  --re-amber-bg: #f6e6c2;
  --re-amber-text: #8a5d10;
  --re-grey-bg: #e3e5e3;
  --re-grey-text: #4c5550;
  --re-red: #b5432f;
  --re-red-bg: #f7dcd5;
  --re-blue-bg: #dde6f3;
  --re-blue-text: #2f4e7a;
  --re-ink-pill: #183b2d;
  --re-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --re-sans: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
}
html.bt-dark[data-ind-theme="estate"][data-industry] {
  --re-bg: #0f1613;
  --re-card: #151f1a;
  --re-line: #24322b;
  --re-line-soft: #1d2923;
  --re-ink: #e6eee9;
  --re-muted: #9fb0a7;
  --re-faint: #6f7f77;
  --re-mint: #1e3a2e;
  --re-mint-text: #9bd3b5;
  --re-amber-bg: #3a2e14;
  --re-amber-text: #f0c776;
  --re-grey-bg: #26302b;
  --re-grey-text: #b9c4be;
  --re-red-bg: #3d1f19;
  --re-blue-bg: #1d2a3d;
  --re-blue-text: #a9c2e6;
  --re-ink-pill: #2b5a46;
}

/* Sidebar: deep green, light text (same in light and dark mode) */
html[data-ind-theme="estate"][data-industry] #bt-sidebar { background: var(--re-side) !important; border-color: transparent !important; }
html[data-ind-theme="estate"][data-industry] #bt-sidebar .border-b,
html[data-ind-theme="estate"][data-industry] #bt-sidebar .border-t { border-color: rgba(255,255,255,.08) !important; }
html[data-ind-theme="estate"][data-industry] #bt-sidebar .nav-item,
html[data-ind-theme="estate"][data-industry] #bt-sidebar .dropdown-btn { color: var(--re-side-text) !important; font-family: var(--re-sans); }
html[data-ind-theme="estate"][data-industry] #bt-sidebar .nav-item:hover,
html[data-ind-theme="estate"][data-industry] #bt-sidebar .dropdown-btn:hover { background: rgba(255,255,255,.06) !important; color: #fff !important; }
html[data-ind-theme="estate"][data-industry] #bt-sidebar .nav-item.bg-indigo-50 { background: var(--re-side-active) !important; color: #fff !important; }
html[data-ind-theme="estate"][data-industry] #bt-sidebar .bt-ic { background: transparent !important; color: inherit !important; }
html[data-ind-theme="estate"][data-industry] #bt-sidebar .dropdown-menu .nav-item i { color: rgba(211,226,217,.6) !important; }
html[data-ind-theme="estate"][data-industry] #bt-sidebar .bt-nav-head { color: rgba(255,255,255,.38) !important; }
html[data-ind-theme="estate"][data-industry] #bt-sidebar .arrow-icon { color: rgba(255,255,255,.4) !important; }
html[data-ind-theme="estate"][data-industry] #bt-sidebar .bt-biz-name { color: #fff !important; }
html[data-ind-theme="estate"][data-industry] #bt-sidebar p,
html[data-ind-theme="estate"][data-industry] #bt-sidebar .text-gray-400,
html[data-ind-theme="estate"][data-industry] #bt-sidebar .text-gray-500 { color: rgba(211,226,217,.65) !important; }
html[data-ind-theme="estate"][data-industry] #bt-sidebar .text-gray-900,
html[data-ind-theme="estate"][data-industry] #bt-sidebar .text-gray-800,
html[data-ind-theme="estate"][data-industry] #bt-sidebar .text-gray-700 { color: #fff !important; }
html[data-ind-theme="estate"][data-industry] #bt-sidebar button:hover { background-color: rgba(255,255,255,.06); }
html[data-ind-theme="estate"][data-industry] #bt-sidebar img#bt-sidebar-logo { border-color: rgba(255,255,255,.12) !important; }

/* Canvas + header (light mode) */
html[data-ind-theme="estate"][data-industry]:not(.bt-dark) body,
html[data-ind-theme="estate"][data-industry]:not(.bt-dark) #page-content,
html[data-ind-theme="estate"][data-industry]:not(.bt-dark) #bt-footer,
html[data-ind-theme="estate"][data-industry]:not(.bt-dark) header { background: var(--re-bg) !important; }
/* Dark mode: the same canvas palette (deep green-black) instead of the app's navy */
html.bt-dark[data-ind-theme="estate"][data-industry] body,
html.bt-dark[data-ind-theme="estate"][data-industry] #page-content,
html.bt-dark[data-ind-theme="estate"][data-industry] #bt-footer,
html.bt-dark[data-ind-theme="estate"][data-industry] header { background: var(--re-bg) !important; }

/* Shared pages under this theme: indigo accents become the estate green (light mode). */
html[data-ind-theme="estate"][data-industry]:not(.bt-dark) #page-content .bg-indigo-600,
html[data-ind-theme="estate"][data-industry]:not(.bt-dark) .detail-overlay .bg-indigo-600 { background-color: var(--re-green) !important; }
html[data-ind-theme="estate"][data-industry]:not(.bt-dark) #page-content .hover\:bg-indigo-700:hover { background-color: var(--re-green-hover) !important; }
html[data-ind-theme="estate"][data-industry]:not(.bt-dark) #page-content .text-indigo-600,
html[data-ind-theme="estate"][data-industry]:not(.bt-dark) #page-content .text-indigo-700 { color: var(--re-green) !important; }
html[data-ind-theme="estate"][data-industry]:not(.bt-dark) #page-content .bg-indigo-50 { background-color: #e6efe9 !important; }

/* Own pages hide the shell's breadcrumb/title - each page carries its own header. */
html[data-ind-theme="estate"][data-industry] body[data-ind-page="1"] #breadcrumb,
html[data-ind-theme="estate"][data-industry] body[data-ind-page="1"] #page-title { display: none; }

/* ── Estate page kit (.re-*) ── */
html[data-ind-theme="estate"][data-industry] .re-page { font-family: var(--re-sans); color: var(--re-ink); display: flex; flex-direction: column; gap: 20px; }
html[data-ind-theme="estate"][data-industry] .re-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
html[data-ind-theme="estate"][data-industry] .re-h1 { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--re-ink); }
html[data-ind-theme="estate"][data-industry] .re-sub { font-size: 14px; color: var(--re-muted); margin-top: 4px; }
html[data-ind-theme="estate"][data-industry] .re-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
html[data-ind-theme="estate"][data-industry] .re-card { background: var(--re-card); border: 1px solid var(--re-line); border-radius: 14px; padding: 20px; min-width: 0; }
html[data-ind-theme="estate"][data-industry] .re-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
html[data-ind-theme="estate"][data-industry] .re-card-t { font-size: 16px; font-weight: 700; color: var(--re-ink); }
html[data-ind-theme="estate"][data-industry] .re-link { font-size: 13px; color: var(--re-green); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; background: none; border: 0; padding: 0; }
html.bt-dark[data-ind-theme="estate"][data-industry] .re-link { color: var(--re-mint-text); }
html[data-ind-theme="estate"][data-industry] .re-mono { font-family: var(--re-mono); font-variant-numeric: tabular-nums; }
html[data-ind-theme="estate"][data-industry] .re-muted { color: var(--re-muted); }
html[data-ind-theme="estate"][data-industry] .re-faint { color: var(--re-faint); }
html[data-ind-theme="estate"][data-industry] .re-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
html[data-ind-theme="estate"][data-industry] .re-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
html[data-ind-theme="estate"][data-industry] .re-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
html[data-ind-theme="estate"][data-industry] .re-split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; }
html[data-ind-theme="estate"][data-industry] .re-split-even { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) {
  html[data-ind-theme="estate"][data-industry] .re-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-ind-theme="estate"][data-industry] .re-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-ind-theme="estate"][data-industry] .re-split,
  html[data-ind-theme="estate"][data-industry] .re-split-even,
  html[data-ind-theme="estate"][data-industry] .re-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  html[data-ind-theme="estate"][data-industry] .re-grid-4,
  html[data-ind-theme="estate"][data-industry] .re-grid-3 { grid-template-columns: minmax(0, 1fr); }
  html[data-ind-theme="estate"][data-industry] .re-h1 { font-size: 23px; }
}

/* KPI */
html[data-ind-theme="estate"][data-industry] .re-kpi-l { font-size: 13px; color: var(--re-muted); }
html[data-ind-theme="estate"][data-industry] .re-kpi-v { font-family: var(--re-mono); font-size: 24px; font-weight: 500; margin-top: 10px; color: var(--re-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ind-theme="estate"][data-industry] .re-kpi-v.red { color: var(--re-red); }
html[data-ind-theme="estate"][data-industry] .re-kpi-n { font-size: 12px; color: var(--re-green); margin-top: 8px; }
html.bt-dark[data-ind-theme="estate"][data-industry] .re-kpi-n { color: var(--re-mint-text); }

/* Buttons */
html[data-ind-theme="estate"][data-industry] .re-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; background: var(--re-green); color: #fff; border: 1px solid var(--re-green); cursor: pointer; transition: background .15s; white-space: nowrap; font-family: var(--re-sans); }
html[data-ind-theme="estate"][data-industry] .re-btn:hover { background: var(--re-green-hover); }
html[data-ind-theme="estate"][data-industry] .re-btn:disabled { opacity: .55; cursor: not-allowed; }
html[data-ind-theme="estate"][data-industry] .re-btn-o { background: var(--re-card); color: var(--re-green); border: 1px solid var(--re-green); }
html[data-ind-theme="estate"][data-industry] .re-btn-o:hover { background: var(--re-mint); }
html.bt-dark[data-ind-theme="estate"][data-industry] .re-btn-o { color: var(--re-mint-text); border-color: var(--re-line); }
html[data-ind-theme="estate"][data-industry] .re-btn-g { background: var(--re-card); color: var(--re-ink); border: 1px solid var(--re-line); }
html[data-ind-theme="estate"][data-industry] .re-btn-g:hover { background: var(--re-line-soft); }
html[data-ind-theme="estate"][data-industry] .re-btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
html[data-ind-theme="estate"][data-industry] .re-btn-block { width: 100%; height: 46px; font-size: 14.5px; }
html[data-ind-theme="estate"][data-industry] .re-iconbtn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--re-line); background: var(--re-card); color: var(--re-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
html[data-ind-theme="estate"][data-industry] .re-iconbtn:hover { background: var(--re-line-soft); }

/* Inputs */
html[data-ind-theme="estate"][data-industry] .re-input,
html[data-ind-theme="estate"][data-industry] .re-select,
html[data-ind-theme="estate"][data-industry] .re-textarea { width: 100%; border: 1px solid var(--re-line); background: var(--re-card); color: var(--re-ink); border-radius: 10px; padding: 0 12px; height: 42px; font-size: 14px; outline: none; font-family: var(--re-sans); }
html[data-ind-theme="estate"][data-industry] .re-textarea { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
html[data-ind-theme="estate"][data-industry] .re-input:focus,
html[data-ind-theme="estate"][data-industry] .re-select:focus,
html[data-ind-theme="estate"][data-industry] .re-textarea:focus { border-color: var(--re-green); box-shadow: 0 0 0 3px rgba(31,90,67,.12); }
html[data-ind-theme="estate"][data-industry] .re-label { display: block; font-size: 13px; font-weight: 600; color: var(--re-ink); margin-bottom: 6px; }
html[data-ind-theme="estate"][data-industry] .re-field { margin-bottom: 14px; }
html[data-ind-theme="estate"][data-industry] .re-search { position: relative; }
html[data-ind-theme="estate"][data-industry] .re-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--re-faint); font-size: 13px; }
html[data-ind-theme="estate"][data-industry] .re-search .re-input { padding-left: 36px; }

/* Pills */
html[data-ind-theme="estate"][data-industry] .re-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--re-grey-bg); color: var(--re-grey-text); }
html[data-ind-theme="estate"][data-industry] .re-pill.green { background: var(--re-mint); color: var(--re-mint-text); }
html[data-ind-theme="estate"][data-industry] .re-pill.amber { background: var(--re-amber-bg); color: var(--re-amber-text); }
html[data-ind-theme="estate"][data-industry] .re-pill.red { background: var(--re-red-bg); color: var(--re-red); }
html[data-ind-theme="estate"][data-industry] .re-pill.blue { background: var(--re-blue-bg); color: var(--re-blue-text); }
html[data-ind-theme="estate"][data-industry] .re-pill.ink { background: var(--re-ink-pill); color: #fff; }

/* Chips (filters / view toggles) */
html[data-ind-theme="estate"][data-industry] .re-chips { display: flex; flex-wrap: wrap; gap: 8px; }
html[data-ind-theme="estate"][data-industry] .re-chip { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--re-line); background: var(--re-card); color: var(--re-ink); font-size: 13.5px; font-weight: 500; cursor: pointer; font-family: var(--re-sans); }
html[data-ind-theme="estate"][data-industry] .re-chip.on { background: var(--re-green); border-color: var(--re-green); color: #fff; }
html[data-ind-theme="estate"][data-industry] .re-seg { display: inline-flex; gap: 6px; }
html[data-ind-theme="estate"][data-industry] .re-seg button { height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--re-line); background: var(--re-card); color: var(--re-ink); font-size: 13.5px; font-weight: 600; cursor: pointer; }
html[data-ind-theme="estate"][data-industry] .re-seg button.on { background: var(--re-green); border-color: var(--re-green); color: #fff; }

/* Tables */
html[data-ind-theme="estate"][data-industry] .re-table-wrap { overflow-x: auto; }
html[data-ind-theme="estate"][data-industry] .re-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
html[data-ind-theme="estate"][data-industry] .re-table th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--re-muted); padding: 10px 10px; border-bottom: 1px solid var(--re-line); white-space: nowrap; }
html[data-ind-theme="estate"][data-industry] .re-table td { padding: 14px 10px; border-bottom: 1px solid var(--re-line-soft); color: var(--re-ink); vertical-align: middle; }
html[data-ind-theme="estate"][data-industry] .re-table tr.sel td { background: var(--re-mint); }
html[data-ind-theme="estate"][data-industry] .re-table tr.click { cursor: pointer; }
html[data-ind-theme="estate"][data-industry] .re-table tr.click:hover td { background: var(--re-line-soft); }
html[data-ind-theme="estate"][data-industry] .re-table .num { text-align: right; }
html[data-ind-theme="estate"][data-industry] .re-table td.re-mono,
html[data-ind-theme="estate"][data-industry] .re-table td.nw { white-space: nowrap; }
html[data-ind-theme="estate"][data-industry] .re-deal-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 28px; align-items: start; }
@media (max-width: 1100px) { html[data-ind-theme="estate"][data-industry] .re-deal-panel { grid-template-columns: minmax(0, 1fr); } }
html[data-ind-theme="estate"][data-industry] .re-empty { text-align: center; padding: 36px 12px; color: var(--re-faint); font-size: 13.5px; }

/* Progress / availability bars */
html[data-ind-theme="estate"][data-industry] .re-bar { height: 10px; border-radius: 999px; background: var(--re-line-soft); overflow: hidden; display: flex; }
html[data-ind-theme="estate"][data-industry] .re-bar > span { display: block; height: 100%; }
html[data-ind-theme="estate"][data-industry] .re-bar .g { background: var(--re-green); }
html[data-ind-theme="estate"][data-industry] .re-bar .a { background: var(--re-amber); }
html[data-ind-theme="estate"][data-industry] .re-bar .s { background: #a5aca8; }
html[data-ind-theme="estate"][data-industry] .re-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }

/* Lists (today's bookings, activity) */
html[data-ind-theme="estate"][data-industry] .re-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--re-line-soft); }
html[data-ind-theme="estate"][data-industry] .re-row:last-child { border-bottom: 0; }
html[data-ind-theme="estate"][data-industry] .re-time { font-family: var(--re-mono); font-size: 13.5px; color: var(--re-ink); width: 56px; flex-shrink: 0; }
html[data-ind-theme="estate"][data-industry] .re-row-main { flex: 1; min-width: 0; }
html[data-ind-theme="estate"][data-industry] .re-row-t { font-weight: 600; font-size: 14px; color: var(--re-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-ind-theme="estate"][data-industry] .re-row-s { font-size: 12.5px; color: var(--re-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Unit cards */
html[data-ind-theme="estate"][data-industry] .re-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1280px) { html[data-ind-theme="estate"][data-industry] .re-units { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px)  { html[data-ind-theme="estate"][data-industry] .re-units { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { html[data-ind-theme="estate"][data-industry] .re-units { grid-template-columns: minmax(0, 1fr); } }
html[data-ind-theme="estate"][data-industry] .re-unit { background: var(--re-card); border: 1px solid var(--re-line); border-radius: 14px; overflow: hidden; cursor: pointer; transition: box-shadow .15s, transform .15s; }
html[data-ind-theme="estate"][data-industry] .re-unit:hover { box-shadow: 0 10px 24px -14px rgba(20,40,30,.35); transform: translateY(-1px); }
html[data-ind-theme="estate"][data-industry] .re-unit-ph { position: relative; height: 112px; background: #dde3de center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: #7d8a83; font-size: 12.5px; }
html.bt-dark[data-ind-theme="estate"][data-industry] .re-unit-ph { background-color: #1f2b25; color: #6f7f77; }
html[data-ind-theme="estate"][data-industry] .re-unit-ph .re-pill { position: absolute; top: 12px; left: 12px; }
html[data-ind-theme="estate"][data-industry] .re-unit-b { padding: 14px 14px 16px; }
html[data-ind-theme="estate"][data-industry] .re-unit-p { font-family: var(--re-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--re-muted); }
html[data-ind-theme="estate"][data-industry] .re-unit-n { font-size: 16px; font-weight: 700; margin-top: 3px; color: var(--re-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-ind-theme="estate"][data-industry] .re-unit-d { font-size: 12.5px; color: var(--re-muted); margin-top: 3px; min-height: 18px; }
html[data-ind-theme="estate"][data-industry] .re-unit-f { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 8px; }

/* Week strip / calendar */
html[data-ind-theme="estate"][data-industry] .re-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
html[data-ind-theme="estate"][data-industry] .re-day { border: 1px solid var(--re-line); border-radius: 10px; padding: 8px 4px; text-align: center; cursor: pointer; background: var(--re-card); color: var(--re-ink); }
html[data-ind-theme="estate"][data-industry] .re-day b { display: block; font-family: var(--re-mono); font-size: 18px; font-weight: 500; }
html[data-ind-theme="estate"][data-industry] .re-day small { font-size: 10.5px; color: var(--re-muted); }
html[data-ind-theme="estate"][data-industry] .re-day span { font-size: 11.5px; color: var(--re-muted); }
html[data-ind-theme="estate"][data-industry] .re-day.on { background: var(--re-green); border-color: var(--re-green); color: #fff; }
html[data-ind-theme="estate"][data-industry] .re-day.on small,
html[data-ind-theme="estate"][data-industry] .re-day.on span { color: rgba(255,255,255,.85); }
html[data-ind-theme="estate"][data-industry] .re-day.today:not(.on) { border-color: var(--re-green); }
html[data-ind-theme="estate"][data-industry] .re-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
html[data-ind-theme="estate"][data-industry] .re-month .re-day { min-height: 64px; text-align: left; padding: 6px 8px; }
html[data-ind-theme="estate"][data-industry] .re-month .re-day.out { opacity: .4; }
html[data-ind-theme="estate"][data-industry] .re-bk { display: flex; align-items: center; gap: 14px; border: 1px solid var(--re-line); border-radius: 12px; padding: 12px 14px; margin-top: 10px; background: var(--re-card); }
html[data-ind-theme="estate"][data-industry] .re-bk .re-time { width: 92px; line-height: 1.35; }

/* Kanban */
html[data-ind-theme="estate"][data-industry] .re-kanban { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
html[data-ind-theme="estate"][data-industry] .re-col { background: #e8e8e1; border-radius: 14px; padding: 12px; min-height: 230px; }
html.bt-dark[data-ind-theme="estate"][data-industry] .re-col { background: #18221d; }
html[data-ind-theme="estate"][data-industry] .re-col.drop { outline: 2px dashed var(--re-green); outline-offset: -4px; }
html[data-ind-theme="estate"][data-industry] .re-col-h { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14px; margin-bottom: 10px; color: var(--re-ink); }
html[data-ind-theme="estate"][data-industry] .re-col-h span { font-size: 11.5px; font-weight: 600; background: var(--re-card); border-radius: 999px; padding: 1px 8px; color: var(--re-muted); }
html[data-ind-theme="estate"][data-industry] .re-deal { background: var(--re-card); border: 1px solid var(--re-line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
html[data-ind-theme="estate"][data-industry] .re-deal.sel { border: 2px solid var(--re-green); padding: 9px 11px; }
html[data-ind-theme="estate"][data-industry] .re-deal-n { font-weight: 700; font-size: 13.5px; color: var(--re-ink); }
html[data-ind-theme="estate"][data-industry] .re-deal-s { font-size: 12px; color: var(--re-muted); margin-top: 2px; }
html[data-ind-theme="estate"][data-industry] .re-deal-p { font-family: var(--re-mono); font-size: 13px; margin-top: 6px; color: var(--re-ink); }

/* Detail facts / timeline */
html[data-ind-theme="estate"][data-industry] .re-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
html[data-ind-theme="estate"][data-industry] .re-fact-l { font-size: 12px; color: var(--re-muted); }
html[data-ind-theme="estate"][data-industry] .re-fact-v { font-size: 14px; color: var(--re-ink); margin-top: 2px; }
html[data-ind-theme="estate"][data-industry] .re-avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--re-mint); color: var(--re-mint-text); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
html[data-ind-theme="estate"][data-industry] .re-avatar.lg { width: 52px; height: 52px; font-size: 16px; background: var(--re-green); color: #fff; }
html[data-ind-theme="estate"][data-industry] .re-tl { border-left: 2px solid var(--re-line); padding-left: 14px; margin-left: 2px; }
html[data-ind-theme="estate"][data-industry] .re-tl-i { padding: 0 0 14px; font-size: 13.5px; color: var(--re-ink); }
html[data-ind-theme="estate"][data-industry] .re-tl-i small { display: block; font-size: 12px; color: var(--re-muted); margin-top: 2px; }

/* Role matrix checkboxes */
html[data-ind-theme="estate"][data-industry] .re-check { width: 20px; height: 20px; accent-color: var(--re-green); cursor: pointer; }

/* Popover menu */
html[data-ind-theme="estate"][data-industry] .re-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--re-card); border: 1px solid var(--re-line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); min-width: 190px; padding: 6px; z-index: 60; }
html[data-ind-theme="estate"][data-industry] .re-menu button { display: flex; width: 100%; align-items: center; gap: 10px; text-align: left; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; color: var(--re-ink); background: none; border: 0; cursor: pointer; }
html[data-ind-theme="estate"][data-industry] .re-menu button:hover { background: var(--re-line-soft); }
html[data-ind-theme="estate"][data-industry] .re-menu button.danger { color: var(--re-red); }

/* Modal (estate pages use their own modal shell) */
html[data-ind-theme="estate"][data-industry] .re-modal-bg { position: fixed; inset: 0; background: rgba(12,22,17,.5); backdrop-filter: blur(3px); z-index: 400; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
html[data-ind-theme="estate"][data-industry] .re-modal { background: var(--re-card); color: var(--re-ink); border-radius: 16px; width: 100%; max-width: 560px; border: 1px solid var(--re-line); box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); font-family: var(--re-sans); }
html[data-ind-theme="estate"][data-industry] .re-modal.wide { max-width: 860px; }
html[data-ind-theme="estate"][data-industry] .re-modal-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--re-line); }
html[data-ind-theme="estate"][data-industry] .re-modal-h h3 { font-size: 17px; font-weight: 700; }
html[data-ind-theme="estate"][data-industry] .re-modal-b { padding: 20px 22px; }
html[data-ind-theme="estate"][data-industry] .re-modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--re-line); }
html[data-ind-theme="estate"][data-industry] .re-x { width: 34px; height: 34px; border-radius: 999px; border: 0; background: none; color: var(--re-muted); font-size: 20px; cursor: pointer; }
html[data-ind-theme="estate"][data-industry] .re-x:hover { background: var(--re-line-soft); }
