/* Real Estate demo surfaces: one product, a different working surface per job.
   Scroll mode (.re-scrub) pins a full-height stage; static mode stacks everything readably. */

.re-surface{display:flex;flex-direction:column;--re-top:clamp(12px,3vh,28px)}
.re-track.re-scrub{height:calc(100svh + var(--re-steps) * clamp(150px,24svh,240px))}
.re-scrub .re-surface{position:sticky;top:var(--re-top);height:calc(100svh - 2 * var(--re-top))}
.re-surface>[class$="-body"]{flex:1;min-height:0}
.is-off{display:none!important}

/* App chrome: every surface has its own header, no shared step tabs */
.re-chrome{display:flex;justify-content:space-between;align-items:center;gap:8px 18px;flex-wrap:wrap;min-height:50px;padding:8px 16px;border-bottom:1px solid var(--re-app-line);background:#f8eff4}
.re-chrome>div:first-child{display:flex;align-items:center;gap:10px;min-width:0}
.re-chrome b{font-size:15px;color:#3c2939}
.re-chrome-context{font-size:13px;color:var(--re-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.re-chrome-right{font-size:13px;color:var(--re-muted);display:flex;gap:6px;align-items:center}

/* Beats: the caption for the current step */
.re-beat .re-overline{margin-bottom:6px}
.re-beat h3{font-size:clamp(22px,2.2vw,36px);line-height:1.06;letter-spacing:-.03em;margin:0 0 8px;text-wrap:balance}
.re-beat .re-explain{font-size:15px;line-height:1.45;color:#574854;margin:0 0 12px;max-width:46ch}
.re-scrub .re-beats{display:grid;align-content:start}
.re-scrub .re-beats>.re-beat{grid-area:1/1}
.re-scrub .re-beats>.re-beat[aria-hidden=true]{visibility:hidden}
.re-beats>.re-beat+.re-beat{border-top:1px solid var(--re-app-line);padding-top:14px;margin-top:14px}
.re-scrub .re-beats>.re-beat+.re-beat{border:0;padding:0;margin:0}

/* 1. Land: map + conversation */
.re-acq-body{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,1fr)}
.re-scrub .re-region img{object-fit:cover}
.re-chat{display:flex;flex-direction:column;min-height:0;min-width:0;background:#fffcfb;border-left:1px solid var(--re-app-line)}
.re-chat .re-chat-head{padding:12px 16px;border-bottom:1px solid var(--re-app-line);font-size:12px}
.re-chat-log{display:flex;flex-direction:column;gap:14px;padding:16px}
.re-scrub .re-chat-log{flex:1;min-height:0;overflow:hidden;justify-content:flex-end;-webkit-mask-image:linear-gradient(transparent,#000 70px);mask-image:linear-gradient(transparent,#000 70px)}
.re-scrub .re-turn[aria-hidden=true]{display:none}
.re-msg-user{margin:0 0 8px auto;width:fit-content;max-width:88%;padding:9px 13px;border-radius:14px 14px 3px 14px;background:#4a2f45;color:#fff4ee;font-size:14px;line-height:1.4}
.re-scrub .re-turn:first-child .re-msg-user{min-width:60%}
.re-scrub [data-re-prompt]:empty::before{content:"Scroll to run the brief";opacity:.7}
.re-typing [data-re-prompt]::after{content:"";display:inline-block;height:.9em;width:1px;background:currentColor;margin-left:2px}
.re-msg-ai{padding:12px 14px;border:1px solid #eadfe5;border-radius:3px 14px 14px 14px;background:#fff;box-shadow:0 4px 14px #4a32420a}
.re-msg-ai h3{font-size:clamp(19px,1.6vw,25px)}
.re-msg-ai .re-explain{font-size:14px;margin-bottom:10px}
.re-chat-input{margin:0 14px 14px;padding:11px 14px;border:1px solid #e0d3da;border-radius:22px;color:#9a8794;font-size:13px;background:#fff}
/* map overlays */
.re-neighbours polygon{fill:#d9a25c55;stroke:#9a6224;stroke-width:2;stroke-dasharray:5 3}
.re-crossing polygon{fill:#c9573d40;stroke:#a5432c;stroke-width:2.5}
.re-buffer{fill:#4c8a9a40;stroke:#2f6a79;stroke-width:1.5;stroke-dasharray:4 3}
.re-ruled-out polygon{fill:#8a2d2d26;stroke:#8a2d2d;stroke-width:2.5;stroke-dasharray:6 4}
.re-link-label{font:600 11px Instrument,sans-serif;fill:#5a2a2a;text-anchor:middle;paint-order:stroke;stroke:#f2ecd5;stroke-width:3px}
.re-pin rect{fill:#fffaf4;stroke:#6a405e;stroke-width:1.2;filter:drop-shadow(0 2px 4px #2b1a2540)}
.re-pin text{font:600 11px Instrument,sans-serif;fill:#3a2836}
.re-pin text+text{font-weight:400}
.re-pin-warn rect{fill:#fff1dc;stroke:#a06a1e}
.re-pin-ok rect{fill:#eef6ea;stroke:#3f6a4a}
.re-pin-dark rect{fill:#3a2438;stroke:#3a2438}.re-pin-dark text{fill:#fbeef3}
.re-flag circle{fill:#b0451f;stroke:#fff;stroke-width:2}
.re-flag-mark{font:700 13px Instrument,sans-serif;fill:#fff;text-anchor:middle}
.re-flag-label{font:700 11px monospace;fill:#5a1f0e;paint-order:stroke;stroke:#fff6e8;stroke-width:3px}
.re-link{fill:none;stroke:#9a6224;stroke-width:2;stroke-dasharray:4 4}

/* 2. Investment memo: a document with tracked changes */
.re-memo-body{display:grid;grid-template-columns:minmax(240px,.7fr) minmax(0,1.6fr)}
.re-memo-body>.re-beats{padding:clamp(20px,2.6vw,40px)}
.re-memo-page{position:relative;margin:clamp(14px,2vw,28px);padding:clamp(20px,2.6vw,40px) clamp(22px,3vw,48px);background:#fff;border:1px solid #e6dce1;box-shadow:0 10px 30px #4a32421a;overflow:auto;font-family:Georgia,'Times New Roman',serif;color:#2c2230}
.re-memo-body{background:#efe8ec}
.re-memo-body>.re-beats{background:#fcf8f6;border-right:1px solid var(--re-app-line)}
.re-memo-page header small{font:11px monospace;color:#7d6576}
.re-memo-page h4{font-size:clamp(20px,1.8vw,28px);margin:6px 0 14px;font-weight:600;letter-spacing:-.01em}
.re-memo-table{width:100%;border-collapse:collapse;font-size:15px}
.re-memo-table th{text-align:left;font-weight:400;color:#6b5866;padding:8px 0;width:42%;border-bottom:1px solid #eee5e9}
.re-memo-table td{padding:8px 0;border-bottom:1px solid #eee5e9;font-variant-numeric:tabular-nums}
.re-redline del{color:#a2372a;text-decoration-thickness:2px}
.re-redline ins{text-decoration:none;background:#e1f0dc;color:#1f5a2c;padding:1px 5px;border-radius:2px;font-weight:600}
.re-memo-page h5{font:600 12px Instrument,sans-serif;text-transform:uppercase;letter-spacing:.08em;color:#7d6576;margin:18px 0 6px}
.re-memo-conditions{list-style:none;margin:0;padding:0;font-size:14px}
.re-memo-conditions li{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:6px 0}
.re-memo-conditions code{font-size:11px;color:#7d6576}
.re-memo-comment{margin-top:14px;padding:10px 12px;border-left:3px solid #c48a2c;background:#fff6e5;font:13px/1.45 Instrument,sans-serif}
.re-memo-decision{margin-top:14px;padding:14px;border:1.5px solid #6a405e;border-radius:4px;font-family:Instrument,sans-serif}
.re-memo-decision>p:first-of-type{margin:4px 0 8px;font-size:15px}

/* 3. Project schedule: a Gantt chart */
.re-gantt-body{display:grid;grid-template-rows:auto minmax(0,1fr)}
.re-gantt-body>.re-beats{padding:clamp(16px,2vw,26px) clamp(18px,2.5vw,36px) 6px}
.re-gantt-body .re-beat{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);column-gap:32px;align-items:end}
.re-gantt-body .re-beat .re-overline{grid-column:1/-1}
.re-gantt-body .re-beat h3{margin:0}
.re-gantt-body .re-beat .re-explain{margin:0}
.re-gantt{position:relative;margin:12px clamp(14px,2vw,28px) 18px;padding:10px 0;border:1px solid var(--re-app-line);border-radius:8px;background:#fff;overflow:hidden;font-size:13px}
.re-gantt-scale,.re-gantt-row{display:grid;grid-template-columns:minmax(220px,28%) minmax(0,1fr)}
.re-gantt-scale>div:last-child{position:relative;height:22px;margin-right:24px}
.re-gantt-scale span{position:absolute;left:calc(var(--s)*100%);font-size:11px;color:var(--re-muted);transform:translateX(-50%)}
.re-gantt-row{min-height:42px;border-top:1px solid #f0e8ec;align-items:center}
.re-gantt-label{display:flex;align-items:center;gap:8px;padding:0 12px;min-width:0}
.re-gantt-label code{font-size:10.5px;color:#7d6576;flex:none}
.re-gantt-label span:not(.re-tag){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.re-gantt-lane{position:relative;height:42px;margin-right:24px;background:repeating-linear-gradient(90deg,transparent 0 calc(12.5% - 1px),#f2ebef calc(12.5% - 1px) 12.5%)}
.re-bar{position:absolute;top:13px;height:16px;left:calc(var(--s)*100%);width:calc(var(--w)*100%);border-radius:3px;background:#7d5a74}
.re-bar-check{background:#b9a2b3}
.re-bar-plan{background:#cdbcc8}
.re-bar-late{background:repeating-linear-gradient(135deg,#c27a2c 0 6px,#d99448 6px 12px)}
.re-bar-ghost{background:transparent;border:1.5px dashed #a58b9d}
.re-bar-moved{background:#6a405e}
.re-milestone{position:absolute;top:13px;left:calc(var(--s)*100%);width:16px;height:16px;margin-left:-8px;background:#3f6a4a;rotate:45deg}
.re-lane-note{position:absolute;top:12px;left:calc(var(--s,0)*100%);font-size:12px;font-style:normal;color:#8a5a1e;font-weight:600;white-space:nowrap}
.re-gantt-project{position:relative}
.re-gantt-closed{position:absolute;inset:0;display:grid;place-content:center;gap:4px;text-align:center;background:#fcf8f6e6;backdrop-filter:blur(2px)}
.re-gantt-closed b{font-size:17px}
.re-gantt-closed span{color:var(--re-muted)}
.re-gantt-callout{display:grid;gap:3px;width:fit-content;margin:12px 12px 4px auto;padding:12px 14px;border-radius:6px;background:#3a2438;color:#fbeef3}
.re-gantt-callout b{font-size:17px}
.re-gantt-callout small{color:#e7c9d6}

/* 4. Sales CRM: grid + side panels */
.re-crm-body{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr)}
.re-crm-main{display:flex;flex-direction:column;min-width:0;padding:clamp(16px,2vw,28px);gap:12px}
.re-crm-main>.re-beats{min-height:clamp(120px,15svh,150px)}
.re-crm-tabs{display:flex;gap:4px}
.re-crm-tabs span{padding:5px 10px;border-radius:5px;font-size:12px}
.re-crm-tabs .is-on{background:#fff;color:#3c2939;font-weight:600;box-shadow:0 1px 3px #4a324222}
.re-crm-filters{display:flex;gap:6px;flex-wrap:wrap}
.re-crm-filters span{padding:4px 10px;border:1px solid #e3d6dd;border-radius:14px;font-size:12px;background:#fff}
.re-crm-filters .re-chip-on{background:#4a2f45;color:#fff;border-color:#4a2f45}
.re-crm-table{width:100%;border-collapse:collapse;font-size:13.5px;background:#fff;border:1px solid var(--re-app-line);border-radius:6px;font-variant-numeric:tabular-nums}
.re-crm-table thead th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--re-muted);background:#f7f0f4;padding:9px 10px}
.re-crm-table td,.re-crm-table tbody th{text-align:left;padding:9px 10px;border-top:1px solid #f0e7ec}
.re-crm-table tbody th{font:600 12px monospace}
.re-row-selected{box-shadow:inset 3px 0 #6a405e;background:#faf3f7}
.re-stage:is([data-re-at="2"][data-re-ph="2"],[data-re-at="3"],[data-re-at="4"],[data-re-at="5"],[data-re-at=end]) .re-row-exception{background:#fdf3e4}
.re-muted{color:var(--re-muted)}
.re-crm-panels{min-width:0;padding:clamp(16px,2vw,28px);background:#f4edf1;border-left:1px solid var(--re-app-line)}
.re-scrub .re-crm-panels{display:grid;align-content:center}
.re-scrub .re-crm-panels>*{grid-area:1/1}
.re-crm-panels>*+*{margin-top:14px}
.re-scrub .re-crm-panels>*+*{margin-top:0}
.re-panel{background:#fff;border:1px solid #e4d9e0;border-radius:8px;padding:16px}
.re-panel-title{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:650;color:var(--re-muted);margin:0 0 8px}
.re-stat-grid{display:grid;gap:8px;margin:0}
.re-stat-grid div{display:flex;justify-content:space-between;align-items:baseline;border-bottom:1px solid #f0e7ec;padding-bottom:6px}
.re-stat-grid dd{margin:0;font-size:clamp(22px,2vw,32px);font-weight:600;letter-spacing:-.03em}
.re-letter{max-width:none;box-shadow:0 10px 26px #4a32421a}
.re-phone{justify-self:center;width:min(100%,320px);padding:10px;border-radius:28px;background:#2b1f29;border:0}
.re-phone-top{color:#f3e5ec;font-size:12px;text-align:center;padding:4px 0 10px}
.re-phone .re-whatsapp{margin:0 0 10px;border-radius:16px;min-height:260px;align-content:start}
.re-phone>.re-tag{display:block;width:fit-content;margin:0 auto 4px}
.re-forecast{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end;margin-bottom:12px}
.re-forecast>div{display:grid;gap:4px}
.re-forecast-bar{display:block;height:90px;border-radius:4px 4px 0 0;background:linear-gradient(#8c526f,#6a405e)}
.re-forecast>div:first-child .re-forecast-bar{background:repeating-linear-gradient(135deg,#c27a2c 0 7px,#d99448 7px 14px)}
.re-forecast b{font-size:20px}
.re-forecast small{color:var(--re-muted)}

/* 5. Leasing: industrial park site plan */
.re-park-body{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr)}
.re-park{margin:0;min-height:0;background:#efeadf;display:grid}
.re-park svg{width:100%;height:100%}
.re-park-body>.re-beats{padding:clamp(18px,2.4vw,34px);border-left:1px solid var(--re-app-line);background:#fffcfb;overflow:hidden}
.re-park-land{fill:#e2dccb;stroke:#b8ad93}
.re-park-road{stroke:#fbf8f1;stroke-width:16;fill:none}
.re-park-name{font:700 12px monospace;letter-spacing:.08em;fill:#6d6450}
.re-shed rect{fill:#cfc6c4;stroke:#9c9190}
.re-shed text{font:600 12px Instrument,sans-serif;fill:#3b3236;text-anchor:middle}
.re-shed .re-shed-state{font-weight:400;font-size:10px}
.re-shed-vacant rect{fill:#f7d8bd;stroke:#a5582a;stroke-width:2.5;stroke-dasharray:6 3}
.re-lead circle{fill:#6a405e;stroke:#fff;stroke-width:2.5}
.re-lead-fit circle{fill:#3f6a4a}
.re-stage:is([data-re-at="0"],[data-re-at="1"],[data-re-at="2"]:not([data-re-ph="2"])) .re-lead circle{fill:#6a405e}
.re-lead-mark{font:700 14px Instrument,sans-serif;fill:#fff;text-anchor:middle}
.re-lead-line{stroke:#6a405e;stroke-width:1.5;stroke-dasharray:5 4;fill:none}
.re-stage:is([data-re-at="2"][data-re-ph="2"],[data-re-at="3"],[data-re-at=end]) .re-lead-no{opacity:.55}

/* 6. Lease billing: side-by-side documents */
.re-compare-body{display:grid;grid-template-rows:auto minmax(0,1fr);background:#efe8ec}
.re-compare-body>.re-beats{padding:clamp(16px,2vw,26px) clamp(18px,2.5vw,36px) 8px;background:#fcf8f6;border-bottom:1px solid var(--re-app-line)}
.re-compare-body .re-beat{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);column-gap:32px;align-items:end}
.re-compare-body .re-beat .re-overline{grid-column:1/-1}
.re-compare-body .re-beat h3,.re-compare-body .re-beat .re-explain{margin:0}
.re-compare{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:clamp(12px,2vw,26px);align-items:center;padding:clamp(16px,2.5vw,36px);min-height:0}
.re-doc{background:#fff;border:1px solid #e3d9de;box-shadow:0 10px 26px #4a32421a;padding:clamp(18px,2vw,30px);font:14px/1.55 Georgia,serif;color:#2e2430;min-height:0;overflow:hidden}
.re-doc header{display:flex;justify-content:space-between;align-items:baseline;border-bottom:1px solid #eee5e9;padding-bottom:8px;margin-bottom:10px;font-family:Instrument,sans-serif}
.re-doc header small{text-transform:uppercase;letter-spacing:.08em;font-size:11px;color:#7d6576}
.re-doc p{margin:0 0 8px}
.re-doc-hit{background:#fff2c4;box-shadow:-6px 0 0 #fff2c4,6px 0 0 #fff2c4}
.re-doc footer{display:flex;justify-content:space-between;margin-top:18px;font:italic 12px Georgia,serif;color:#7d6576}
.re-invoice table{width:100%;border-collapse:collapse;font-family:Instrument,sans-serif;font-variant-numeric:tabular-nums}
.re-invoice th,.re-invoice td{padding:8px 4px;border-bottom:1px solid #eee5e9;text-align:left;font-weight:400}
.re-invoice td{text-align:right}
.re-invoice tr:last-child th,.re-invoice tr:last-child td{font-weight:650}
.re-stage:is([data-re-at="1"][data-re-ph="2"],[data-re-at="2"],[data-re-at=end]) .re-doc-miss{background:#fbe1dc;box-shadow:inset 3px 0 #b0451f}
.re-doc-should{margin-top:10px!important;font-family:Instrument,sans-serif;color:#1f5a2c}
.re-compare-link{display:grid;justify-items:center;gap:2px;padding:10px 14px;border-radius:30px;background:#b0451f;color:#fff;font-family:Instrument,sans-serif;text-align:center}
.re-compare-link b{font-size:18px}.re-compare-link span{font-size:11px}
.re-stamp{display:grid;width:fit-content;margin:14px 0 0 auto;padding:8px 14px;border:2.5px solid #3f6a4a;color:#2f5a3a;border-radius:4px;transform:rotate(-3deg);font:700 15px Instrument,sans-serif;text-transform:uppercase;letter-spacing:.04em}
.re-stamp small{font-size:10px;font-weight:600;letter-spacing:.06em}

/* 7. Portfolio close: a spreadsheet */
.re-sheet-body{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.9fr)}
.re-sheet-body>.re-beats{padding:clamp(18px,2.4vw,34px);border-left:1px solid var(--re-app-line);background:#fffcfb}
.re-sheet{display:flex;flex-direction:column;gap:12px;padding:clamp(14px,2vw,26px);min-width:0;background:#fff}
.re-formula{display:flex;gap:10px;align-items:center;padding:7px 10px;border:1px solid #ddd3d8;border-radius:4px;font-size:13px}
.re-formula b{font-style:italic;color:#3f6a4a}
.re-formula code{font-size:12.5px;color:#3a2836}
.re-sheet table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.re-sheet th,.re-sheet td{border:1px solid #e1dadd;padding:9px 10px;text-align:left;vertical-align:top}
.re-sheet thead tr:first-child th,.re-sheet tbody>tr>th:first-child,.re-sheet thead tr:last-child th:first-child{background:#f3eff1;color:#8a7c86;font:11px monospace;text-align:center;width:2.5em;padding:4px}
.re-sheet thead tr:last-child th{font-size:12px;background:#faf7f8}
.re-sheet td small{display:block;font:11px monospace;color:var(--re-muted);margin-top:3px}
.re-cell-warn:has(span:not(.is-off)){background:#fdeee2;color:#8a3d12;font-weight:600}
.re-sheet-total td,.re-sheet-total th{font-weight:650;background:#fbf8f9}
.re-sheet-review .re-cash-summary{margin-top:4px}

/* Static reading: narrow screens and reduced motion */
@media(max-width:899px),(max-height:699px),(prefers-reduced-motion:reduce){
  .re-acq-body,.re-memo-body,.re-crm-body,.re-park-body,.re-sheet-body{grid-template-columns:minmax(0,1fr)}
  .re-chat,.re-park-body>.re-beats,.re-sheet-body>.re-beats,.re-crm-panels,.re-memo-body>.re-beats{border-left:0;border-right:0}
  .re-gantt-body .re-beat,.re-compare-body .re-beat{grid-template-columns:minmax(0,1fr)}
  .re-compare{grid-template-columns:minmax(0,1fr)}
  .re-compare-link{justify-self:center}
  .re-gantt{overflow-x:auto}
  .re-gantt-scale,.re-gantt-row{grid-template-columns:150px minmax(380px,1fr)}
  .re-park{aspect-ratio:680/460}
  .re-sheet{overflow-x:auto}
}
@media(max-width:560px){
  .re-chrome-context{display:none}
  .re-crm-table{font-size:12px}
  .re-crm-table td,.re-crm-table tbody th{padding:7px 6px}
}

/* Fill the full-height stage instead of leaving the lower half empty */
@media(min-width:900px) and (min-height:700px){
  .re-scrub .re-gantt{display:flex;flex-direction:column;justify-content:center}
  .re-scrub .re-gantt-row,.re-scrub .re-gantt-lane{min-height:clamp(42px,6.2svh,60px);height:auto}
  .re-scrub .re-bar,.re-scrub .re-milestone,.re-scrub .re-lane-note{top:50%;translate:0 -50%}
  .re-scrub .re-milestone{translate:0 -50%}
  .re-scrub .re-gantt{font-size:14px}
  .re-scrub .re-sheet{justify-content:center;padding-inline:clamp(20px,3vw,48px)}
  .re-scrub .re-sheet table{font-size:16px}
  .re-scrub .re-sheet tbody td,.re-scrub .re-sheet tbody th:not(:first-child){padding:clamp(12px,2.2svh,22px) 14px}
  .re-scrub .re-doc{font-size:15.5px;padding:clamp(22px,2.6vw,40px)}
  .re-scrub .re-crm-table td,.re-scrub .re-crm-table tbody th{padding-block:clamp(9px,1.5svh,14px)}
  .re-scrub .re-crm-panels .re-panel{font-size:14.5px}
}
@media(max-width:560px){
  .re-crm-table thead th:nth-child(2),.re-crm-table td:nth-child(2){display:none}
  .re-crm-main{overflow-x:auto}
}


/* Input → work → output, inside every step */
@keyframes reDot{0%,80%,100%{opacity:.25}40%{opacity:1}}
.re-dots{display:inline-flex;gap:3px;margin-right:8px;vertical-align:middle}
.re-dots b{width:5px;height:5px;border-radius:50%;background:currentColor;animation:reDot 1s infinite}
.re-dots b:nth-child(2){animation-delay:.15s}.re-dots b:nth-child(3){animation-delay:.3s}

/* Working: a band sweeps over exactly what the AI is reading, driven by scroll */
.re-crm-grid,.re-park,.re-compare,.re-sheet{position:relative}
.re-scrub .re-stage[data-re-ph="1"] 
/* The Enterprise AI bar, docked in each app */
.re-aibar{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:14px;padding:12px clamp(14px,2vw,22px);background:#2e1e2c;color:#f6e8ee;border-top:1px solid #4a3346}
.re-aibar-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;font:700 12px Instrument,sans-serif;color:#2e1e2c;background:conic-gradient(from 200deg,#f5c08c,#e6a0bd,#b9a3e8,#f5c08c)}
.re-aibar-log{list-style:none;margin:0;padding:0;min-width:0}
.re-aibar-log p{margin:0;font-size:14px;line-height:1.4}
.re-ai-in{display:flex;flex-direction:column;gap:2px;padding:8px 12px;border-radius:10px;background:#46303f}
.re-ai-in small{font-size:10.5px;text-transform:uppercase;letter-spacing:.08em;color:#e5bfd0}
.re-ai-event{border-left:3px solid #f2b86b}
.re-ai-event small::before{content:"●";color:#f2b86b;margin-right:6px}
.re-ai-ask{background:#5a3b52}
.re-ai-work{color:#e9cfdc;font-style:italic}
.re-ai-out{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;font-weight:600;color:#fff}
.re-ai-action{display:inline-flex;align-items:center;gap:8px;font-weight:400}
.re-ai-action b{padding:6px 12px;border-radius:6px;background:#f5d9c2;color:#2e1e2c;font-size:13px;font-weight:650}
.re-ai-action em{font-style:normal;font-size:12px;color:#e5bfd0}
.re-scrub .re-aibar{min-height:78px}
.re-scrub .re-aibar-log{display:grid}
.re-scrub .re-aibar-log>li{grid-area:1/1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:16px;align-items:center}
.re-scrub .re-ai-work,.re-scrub .re-ai-out{grid-column:2;grid-row:1}
.re-scrub .re-ai-in{grid-column:1;grid-row:1}
.re-scrub .re-ai-work::before,.re-scrub .re-ai-out::before{content:"→";font-style:normal;color:#e5bfd0;margin-right:10px}
.re-aibar-log>li+li{margin-top:10px}
.re-scrub .re-aibar-log>li+li{margin-top:0}
.re-aibar-log>li{display:grid;gap:6px}

/* Medini chat: the AI is visibly working before each answer */
.re-thinking{display:flex;align-items:center;margin:0 0 8px;font-size:13px;font-style:italic;color:#7a6274}

.re-aibar{align-items:start}
.re-scrub .re-aibar{align-items:center}

/* Project controls: messages from every channel move the schedule; replies go back where they came from */
.re-channels-body{display:grid;grid-template-columns:minmax(330px,.85fr) minmax(0,1.65fr);grid-template-rows:none}
.re-gantt-side{display:flex;flex-direction:column;min-width:0;min-height:0}
.re-gantt-side>.re-beats{padding:clamp(16px,2vw,24px) clamp(18px,2.4vw,32px) 4px}
.re-gantt-side .re-beat{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);column-gap:28px;align-items:end}
.re-gantt-side .re-beat .re-overline{grid-column:1/-1}
.re-gantt-side .re-beat h3,.re-gantt-side .re-beat .re-explain{margin:0}
.re-gantt-side .re-gantt{flex:1;min-height:0}
.re-feed{display:flex;flex-direction:column;min-height:0;background:#f3ecef;border-right:1px solid var(--re-app-line)}
.re-feed-head{margin:0;padding:12px 16px;border-bottom:1px solid var(--re-app-line);font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:650;color:var(--re-muted)}
.re-feed-log{display:flex;flex-direction:column;gap:10px;padding:14px}
.re-scrub .re-feed-log{flex:1;min-height:0;overflow:hidden;justify-content:flex-end;-webkit-mask-image:linear-gradient(transparent,#000 60px);mask-image:linear-gradient(transparent,#000 60px)}
.re-ch,.re-ch-reply,.re-ch-card{flex:none;background:#fff;border:1px solid #e3d8de;border-radius:10px;padding:10px 12px;font-size:13.5px;line-height:1.42}
.re-ch header,.re-ch-reply header,.re-ch-card header{display:flex;align-items:center;gap:8px;margin-bottom:5px;font-size:12px}
.re-ch header time{margin-left:auto;color:var(--re-muted);font-size:11px}
.re-ch-badge{padding:2px 7px;border-radius:4px;font-size:10.5px;font-weight:700;letter-spacing:.03em;color:#fff;background:#6b5866}
.re-ch-email .re-ch-badge{background:#3d5f8c}
.re-ch-whatsapp .re-ch-badge{background:#2f7a52}
.re-ch-slack .re-ch-badge{background:#6a3d6e}
.re-ch-teams .re-ch-badge,.re-ch-card .re-ch-badge{background:#4f4f9a}
.re-ch-whatsapp{background:#eef7ea}
.re-ch-photo{display:inline-grid;place-items:center;width:64px;height:44px;margin:0 8px 2px 0;vertical-align:middle;border-radius:5px;background:linear-gradient(135deg,#b9a98a,#8a7a5f);color:#fff;font-size:10px}
.re-ch-work{margin:0 0 0 14px;font-size:12.5px;font-style:italic;color:#7a6274;display:flex;align-items:center}
.re-ch-reply{margin-left:22px;background:#fbf4f7;border-color:#dcc6d3}
.re-ch-reply header span:last-child{color:var(--re-muted);margin-left:auto;font-size:11px}
:is(.re-ch-reply,.re-app-chat .re-msg-ai) .re-aibar-mark{width:20px;height:20px;font-size:8px}
:is(.re-ch-reply,.re-app-chat .re-msg-ai) .re-ch-text{margin-bottom:6px}
.re-ch-card{border:1.5px solid #4f4f9a;box-shadow:0 8px 22px #3a2a5a1f}
.re-ch-card p{margin:0 0 8px}
.re-ch-buttons{display:flex;gap:8px;margin-bottom:8px}
.re-ch-buttons span{padding:6px 10px;border-radius:5px;font-size:12px;font-weight:600;border:1px solid #4f4f9a;color:#4f4f9a}
.re-ch-buttons span:first-child{background:#4f4f9a;color:#fff}
.re-bar-standby{background:repeating-linear-gradient(135deg,#b0451f33 0 5px,#b0451f66 5px 10px);border:1px solid #b0451f}
.re-note-cost{color:#9a3a16}
.re-scrub .re-note-cost{translate:calc(-100% - 8px) -50%!important}
.re-channels-body .re-gantt-scale,.re-channels-body .re-gantt-row{grid-template-columns:minmax(250px,38%) minmax(0,1fr)}
.re-channels-body .re-gantt-label{font-size:13px}
.re-milestone-ghost{background:transparent!important;border:1.5px dashed #8a7a84}
.re-gantt-approval{margin:-4px 12px 6px;padding:7px 10px;border-radius:5px;background:#fff1dc;color:#7a4a10;font-size:12.5px;font-weight:650}
@media(max-width:899px),(max-height:699px),(prefers-reduced-motion:reduce){
  .re-channels-body{grid-template-columns:minmax(0,1fr)}
  .re-feed{border-right:0}
  .re-gantt-side .re-beat{grid-template-columns:minmax(0,1fr)}
}

/* Every app now sits beside its own channel thread: the request arrives there, the answer goes back there */
.re-surface>.re-threaded{flex:1;min-height:0}
.re-threaded{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.42fr)}
.re-main{display:flex;flex-direction:column;min-width:0;min-height:0}
.re-main>.re-beats{padding:clamp(16px,2vw,24px) clamp(18px,2.4vw,32px) 8px}
.re-main .re-beat{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:28px;align-items:end}
.re-main .re-beat .re-overline{grid-column:1/-1}
.re-main .re-beat h3,.re-main .re-beat .re-explain{margin:0}
.re-main>.re-memo-page,.re-main>.re-park,.re-main>.re-compare,.re-main>.re-sheet{flex:1;min-height:0}
.re-feed-side{border-right:0;border-left:1px solid var(--re-app-line)}
.re-memo-main .re-main{background:#efe8ec}
.re-memo-main .re-main>.re-beats{background:#fcf8f6;border-bottom:1px solid var(--re-app-line)}
.re-compare-main .re-main{background:#efe8ec}
.re-compare-main .re-main>.re-beats{background:#fcf8f6;border-bottom:1px solid var(--re-app-line)}
.re-compare-main .re-compare{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.re-crm-threaded .re-main{padding:0 clamp(16px,2vw,28px) 14px;gap:12px}
.re-crm-threaded .re-main>.re-beats{padding-inline:0}
.re-sheet-main .re-sheet{padding-top:6px}
:is(.re-ch-reply,.re-app-chat .re-msg-ai) .re-letter{margin:8px 0;padding:10px 12px;box-shadow:none}
:is(.re-ch-reply,.re-app-chat .re-msg-ai) .re-letter dl>div{font-size:12.5px;padding:3px 0}
:is(.re-ch-reply,.re-app-chat .re-msg-ai) .re-stat-grid dd{font-size:22px}
:is(.re-ch-reply,.re-app-chat .re-msg-ai) .re-forecast{margin:8px 0}
:is(.re-ch-reply,.re-app-chat .re-msg-ai) .re-forecast-bar{height:46px}
:is(.re-ch-reply,.re-app-chat .re-msg-ai) .re-forecast b{font-size:16px}
:is(.re-ch-reply,.re-app-chat .re-msg-ai) .re-review-table li{grid-template-columns:4.6em minmax(0,1fr) auto;font-size:12.5px;padding:6px 0}
:is(.re-ch-reply,.re-app-chat .re-msg-ai) .re-sources{margin:8px 0}
:is(.re-ch-reply,.re-app-chat .re-msg-ai) .re-source p{font-size:12px}
:is(.re-ch-reply,.re-app-chat .re-msg-ai) .re-parameters{margin:8px 0}
:is(.re-ch-reply,.re-app-chat .re-msg-ai) .re-files li{font-size:11.5px}
.re-ch-reply>.re-tag,.re-app-chat .re-msg-ai>.re-tag{display:inline-block;margin-top:6px}
:is(.re-ch-reply,.re-app-chat .re-msg-ai) .re-ch-buttons{margin:8px 0 2px}
:is(.re-ch-reply,.re-app-chat .re-msg-ai) .re-ch-buttons span{border-color:#6a405e;color:#6a405e}
:is(.re-ch-reply,.re-app-chat .re-msg-ai) .re-ch-buttons span:first-child{background:#6a405e;color:#fff}
@media(max-width:899px),(max-height:699px),(prefers-reduced-motion:reduce){
  .re-threaded{grid-template-columns:minmax(0,1fr)}
  .re-feed-side{border-left:0;border-top:1px solid var(--re-app-line)}
  .re-main .re-beat{grid-template-columns:minmax(0,1fr)}
  .re-compare-main .re-compare{grid-template-columns:minmax(0,1fr)}
}

/* In-app Enterprise AI chat (investment, sales, leasing, billing, portfolio) */
.re-app-chat{border-left:1px solid var(--re-app-line)}
.re-app-chat .re-msg-user small{display:block;font-size:10.5px;letter-spacing:.04em;opacity:.72;margin-bottom:2px}
.re-app-chat .re-msg-user{font-size:13.5px}
.re-app-chat .re-msg-ai{font-size:13.5px;line-height:1.45}
.re-app-chat .re-turn+.re-turn{margin-top:4px}
.re-app-chat .re-chat-log{gap:10px}
@media(max-width:899px),(max-height:699px),(prefers-reduced-motion:reduce){.re-app-chat{border-left:0;border-top:1px solid var(--re-app-line)}}
.re-compare>.re-doc:first-of-type{grid-column:1}
.re-compare>.re-compare-link{grid-column:2}
.re-compare>.re-invoice{grid-column:3}
@media(max-width:899px),(max-height:699px),(prefers-reduced-motion:reduce){.re-compare>.re-doc:first-of-type,.re-compare>.re-compare-link,.re-compare>.re-invoice{grid-column:1}}

/* ---------- Five more surfaces ---------- */
.re-solo-body{display:flex;flex-direction:column;min-height:0}
.re-solo-body>.re-beats{padding:clamp(16px,2vw,24px) clamp(18px,2.4vw,32px) 8px}
.re-solo-body .re-beat{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:28px;align-items:end}
.re-solo-body .re-beat .re-overline{grid-column:1/-1}
.re-solo-body .re-beat h3,.re-solo-body .re-beat .re-explain{margin:0}
.re-kpis{display:flex;flex-wrap:wrap;gap:10px;margin:0}
.re-kpis>div{flex:1;min-width:140px;padding:10px 14px;border:1px solid #e4d9e0;border-radius:8px;background:#fff}
.re-kpis dt{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:var(--re-muted)}
.re-kpis dd{margin:4px 0 0;font-size:clamp(18px,1.7vw,26px);font-weight:620;letter-spacing:-.02em}
.re-kpis .re-due{color:#8a3d12}
.re-grid-table{width:100%;border-collapse:collapse;font-size:13.5px;background:#fff;border:1px solid var(--re-app-line);font-variant-numeric:tabular-nums}
.re-grid-table thead th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--re-muted);background:#f7f0f4;padding:8px 10px}
.re-grid-table td,.re-grid-table tbody th{text-align:left;padding:9px 10px;border-top:1px solid #f0e7ec;font-weight:400}
.re-grid-table tbody th{font-weight:600}
/* alerts: raised by the AI, nobody asked */
.re-alerts{display:flex;flex-direction:column;min-height:0;background:#f3ecef;border-left:1px solid var(--re-app-line)}
.re-alerts-log{display:flex;flex-direction:column;gap:10px;padding:14px}
.re-scrub .re-alerts-log{flex:1;min-height:0;overflow:hidden;justify-content:flex-end;-webkit-mask-image:linear-gradient(transparent,#000 60px);mask-image:linear-gradient(transparent,#000 60px)}
.re-alert{flex:none;background:#fff;border:1px solid #e3d8de;border-left:4px solid #8c7a88;border-radius:8px;padding:10px 12px;font-size:13.5px;line-height:1.42}
.re-alert header span{display:block;font-size:10.5px;text-transform:uppercase;letter-spacing:.08em;color:var(--re-muted)}
.re-alert header b{display:block;font-size:14.5px;margin:2px 0 4px}
.re-alert>p{margin:0 0 6px;color:#5a4858}
.re-alert-watch{border-left-color:#c27a2c}
.re-alert-action{border-left-color:#6a405e}
.re-alert-out{padding-top:6px;border-top:1px dashed #e6dce1}
.re-alert-out .re-ch-buttons{margin:8px 0 6px}
.re-alert .re-ch-work{margin:4px 0}
/* land bank */
.re-landbank{display:flex;flex-direction:column;gap:12px;padding:6px clamp(18px,2.4vw,32px) 16px;min-height:0}
.re-stage:is([data-re-at="1"][data-re-ph="2"],[data-re-at="2"],[data-re-at="3"],[data-re-at=end]) .re-row-flag-1,
.re-stage:is([data-re-at="2"][data-re-ph="2"],[data-re-at="3"],[data-re-at=end]) .re-row-flag-2{background:#fdf1e2}
.re-jda{padding:12px 14px;border:1px solid #e4d9e0;border-radius:8px;background:#fff}
.re-jda p:last-child{margin:8px 0 0;font-size:13px}
.re-jda-bar{display:flex;height:28px;border-radius:5px;overflow:hidden;font-size:12px;font-weight:600}
.re-jda-bar span{display:flex;align-items:center;padding-left:10px;color:#fff;background:#8c6a2c}
.re-jda-bar span+span{background:#6a405e}
/* escrow */
.re-escrow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;padding:6px clamp(18px,2.4vw,32px) 16px;min-height:0;align-content:start}
.re-account,.re-register{background:#fff;border:1px solid #e4d9e0;border-radius:10px;padding:14px}
.re-account header{display:grid;gap:2px;margin-bottom:10px}
.re-account header small{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--re-muted)}
.re-account header b{font:600 18px monospace}
.re-account header span{font-size:13px;color:var(--re-muted)}
.re-account .re-kpis>div{min-width:110px}
.re-eligible{margin-top:12px}
.re-eligible-bar{display:flex;height:30px;border-radius:5px;overflow:hidden;font-size:12px;font-weight:650;color:#fff}
.re-eligible-ok{display:flex;align-items:center;padding-left:10px;background:#3f6a4a}
.re-eligible-over{display:flex;align-items:center;padding-left:8px;background:repeating-linear-gradient(135deg,#b0451f 0 6px,#c4552c 6px 12px)}
.re-register .re-grid-table{border:0}
.re-register .re-grid-table code{font-size:10.5px;color:var(--re-muted);margin-right:4px}
/* handover */
.re-hand-surface{display:grid;grid-template-columns:auto minmax(0,1fr);gap:clamp(14px,2vw,26px);padding:6px clamp(18px,2.4vw,32px) 16px;min-height:0;align-items:start}
.re-stack{display:grid;gap:3px;padding:12px;background:#fff;border:1px solid #e4d9e0;border-radius:10px}
.re-floor{display:flex;align-items:center;gap:3px}
.re-floor>span{width:30px;font:11px monospace;color:var(--re-muted)}
.re-unit{display:inline-block;width:clamp(16px,1.6vw,24px);height:clamp(14px,1.9svh,22px);border-radius:2px;background:#d9d0d6}
.re-stage:is([data-re-at="2"][data-re-ph="2"],[data-re-at="3"],[data-re-at=end]) .re-unit-ok{background:#5d8a68}
.re-stage:is([data-re-at="2"][data-re-ph="2"],[data-re-at="3"],[data-re-at=end]) .re-unit-snag{background:#d38a3c}
.re-stage:is([data-re-at="2"][data-re-ph="2"],[data-re-at="3"],[data-re-at=end]) .re-unit-dues{background:#9c3f5c}
.re-stack-legend{display:flex;align-items:center;gap:6px;margin:8px 0 0;font-size:12px}
.re-stack-legend .re-unit{width:12px;height:12px;margin-left:8px}
.re-stack-legend .re-unit-ok{background:#5d8a68!important}.re-stack-legend .re-unit-snag{background:#d38a3c!important}.re-stack-legend .re-unit-dues{background:#9c3f5c!important}
.re-checklist{background:#fff;border:1px solid #e4d9e0;border-radius:10px;padding:14px;min-width:0}
.re-pack{margin-top:14px;padding-top:12px;border-top:1px solid #eee5e9}
/* lease book */
.re-leasebook{display:flex;flex-direction:column;gap:12px;padding:6px clamp(18px,2.4vw,32px) 16px;min-height:0}
.re-command{display:flex;align-items:center;gap:10px;padding:11px 14px;border-radius:10px;background:#2e1e2c;color:#fbeef3;font-size:15px}
.re-command-key{display:grid;place-items:center;width:26px;height:26px;border-radius:6px;background:#4a3346;font-size:13px}
.re-command-work{margin:0;font-size:13px;font-style:italic;color:#7a6274}
.re-expiry-bars{display:flex;gap:16px;align-items:end;height:90px}
.re-expiry-bars>div{display:grid;justify-items:center;gap:3px;font-size:12px}
.re-expiry-bars span{display:block;width:34px;height:calc(var(--h)*60px);background:#6a405e;border-radius:3px 3px 0 0}
.re-route{padding:12px 14px;border:1px solid #e4d9e0;border-radius:8px;background:#fff}
.re-leasebook .re-expiry{display:none}
@media(min-height:860px){.re-leasebook .re-expiry{display:block}}
/* data room */
.re-room{display:flex;flex-direction:column;gap:12px;padding:6px clamp(18px,2.4vw,32px) 16px;min-height:0}
.re-room-request{display:flex;gap:10px;align-items:baseline;padding:10px 14px;border-radius:8px;background:#fff;border:1px solid #e3d8de;border-left:4px solid #3d5f8c;font-size:14px}
.re-room-request span{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#3d5f8c;font-weight:650}
.re-room-conflict,.re-room-scope,.re-room-qa{padding:12px 14px;border:1px solid #e4d9e0;border-radius:8px;background:#fff}
.re-room-conflict>p:last-child{margin:8px 0 0;font-size:13.5px}
.re-room-qa .re-msg-user{margin-left:0}
.re-scrub .re-room>.re-room-conflict,.re-scrub .re-room>.re-room-scope,.re-scrub .re-room>.re-room-qa{max-width:760px}
@media(max-width:899px),(max-height:699px),(prefers-reduced-motion:reduce){
  .re-escrow,.re-hand-surface{grid-template-columns:minmax(0,1fr)}
  .re-solo-body .re-beat{grid-template-columns:minmax(0,1fr)}
  .re-alerts{border-left:0;border-top:1px solid var(--re-app-line)}
  .re-leasebook .re-expiry{display:block}
  .re-grid-table{font-size:12px}
}
@media(max-width:560px){.re-grid-table{display:block;overflow-x:auto;white-space:nowrap}.re-grid-table td,.re-grid-table th{white-space:normal;min-width:84px}}

/* Company card and closing company view */
.re-company-card{margin-top:clamp(20px,3vw,34px);padding:clamp(16px,2vw,24px);border:1px solid #e4d6dc;border-radius:10px;background:#fff9f5}
.re-company-card>p:not(.eyebrow){margin:6px 0 12px;max-width:80ch;color:#4a3848;line-height:1.5}
.re-company-card dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}
.re-company-card dt{font-weight:650}
.re-company-card dd{margin:2px 0 0;color:var(--muted);font-size:14px}
@media(max-width:899px),(max-height:699px),(prefers-reduced-motion:reduce){
  .re-company-card dl,.re-queue ul{grid-template-columns:minmax(0,1fr)}
}

/* One compact intro per demo: context, today vs with Enterprise AI, terms in plain words */
.re-operating-story .ops-chapter-heading>p:empty{display:none}
.re-demo-intro{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,2fr);gap:12px clamp(20px,3vw,44px);padding:18px 0 16px;border-top:1px solid var(--line);scroll-margin-top:20px}
.re-demo-head h3{margin:0 0 6px;font-size:clamp(22px,2vw,30px);line-height:1.1;letter-spacing:-.03em;text-wrap:balance}
.re-demo-context{margin:0;font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);line-height:1.45}
.re-today{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}
.re-today>div{padding:12px 14px;border-radius:8px;background:#fff9f5;border:1px solid #eadcdf}
.re-today dt{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:650;color:var(--muted);margin-bottom:4px}
.re-today dd{margin:0;font-size:15px;line-height:1.45;color:#3d2e3b}
.re-today .re-today-ai{background:#3a2438;border-color:#3a2438}
.re-today .re-today-ai dt{color:#e8c4d4}
.re-today .re-today-ai dd{color:#fbeef3}
.re-terms{grid-column:2;display:flex;flex-wrap:wrap;gap:6px 16px;margin:0;font-size:13px;color:#5a4858;line-height:1.4}
.re-terms>span:first-child{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:650;color:var(--muted);align-self:center}
.re-terms b{color:#2c2230}
.re-demo-intro+.re-track,.re-demo-intro+.wrap{margin-top:6px}
@media(max-width:899px){
  .re-demo-intro,.re-today{grid-template-columns:minmax(0,1fr)}
  .re-terms{grid-column:1}
}

/* In-app activity strip (leads, design): what arrived or was asked, then what the AI is doing */
.re-activity{display:grid;margin:0 clamp(18px,2.4vw,32px) 10px;min-height:44px}
.re-activity>p{margin:0;display:flex;align-items:center;gap:10px;padding:9px 14px;border-radius:8px;font-size:14px}
.re-scrub .re-activity>p{grid-area:1/1}
.re-activity-in{background:#fff;border:1px solid #e3d8de;border-left:4px solid #6a405e}
.re-activity-in>span{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:var(--re-muted);font-weight:650;white-space:nowrap}
.re-activity-work{background:#f4edf1;color:#6a5468;font-style:italic}
.re-activity>p+p{margin-top:6px}.re-scrub .re-activity>p+p{margin-top:0}
/* lead board */
.re-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 clamp(18px,2.4vw,32px) 16px;min-height:0;align-items:start}
.re-board>section{display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:10px;background:#f1eaee;min-height:100%}
.re-board h4{display:flex;justify-content:space-between;margin:0 0 2px;font-size:12px;text-transform:uppercase;letter-spacing:.07em;color:#5a4858}
.re-board h4 span{padding:1px 8px;border-radius:10px;background:#fff;font-size:11px}
.re-lead-card{background:#fff;border:1px solid #e4d9e0;border-radius:8px;padding:9px 10px;font-size:13px}
.re-lead-card header{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--re-muted);margin-bottom:3px}
.re-lead-card code{font-size:11px;color:#3a2836}
.re-lead-card p{margin:0}
.re-lead-why{margin-top:6px!important;padding-top:6px;border-top:1px dashed #e6dce1;color:#4a3848;font-size:12.5px}
.re-lead-why b{display:inline-block;margin-right:5px;padding:0 5px;border-radius:3px;background:#3a2438;color:#fff;font-size:10px}
.re-board .re-draft{font-size:12.5px}
/* design review */
.re-design-surface{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(14px,2vw,24px);padding:0 clamp(18px,2.4vw,32px) 16px;min-height:0;align-items:start}
.re-plan{margin:0;background:#f7f4ee;border:1px solid #e0d9cc;border-radius:10px;padding:8px}
.re-plan svg{width:100%;height:auto;max-height:52svh}
.re-plan-plot{fill:#efe9dc;stroke:#a89e86;stroke-width:2}
.re-plan-setback{fill:none;stroke:#b9ad92;stroke-dasharray:6 4}
.re-plan-label{font:600 11px monospace;fill:#6d6450}
.re-plan-tower{fill:#d9cfd6;stroke:#6a405e;stroke-width:2}
.re-plan-name{font:600 15px Instrument,sans-serif;fill:#3a2836;text-anchor:middle}
.re-plan-cut{fill:#c4552c55;stroke:#b0451f;stroke-width:2;stroke-dasharray:5 3}
.re-plan-parking rect{fill:#fff;stroke:#b8aeb6}
.re-plan-parking text{font:11px Instrument,sans-serif;fill:#6d6450;text-anchor:middle}
.re-markup circle{fill:#b0451f;stroke:#fff;stroke-width:2.5}
.re-markup-ok circle{fill:#3a2438}
.re-markup text{font:700 13px Instrument,sans-serif;fill:#fff;text-anchor:middle}
.re-statement{background:#fff;border:1px solid #e4d9e0;border-radius:10px;padding:14px;min-width:0}
.re-statement .re-grid-table{border:0}
.re-options{margin-top:12px;padding-top:10px;border-top:1px solid #eee5e9}
.re-options .re-ch-buttons{margin:8px 0}
.re-options .re-ch-buttons span{border-color:#6a405e;color:#6a405e}.re-options .re-ch-buttons span:first-child{background:#6a405e;color:#fff}
/* contractor bill */
.re-bill{display:flex;flex-direction:column;gap:12px;padding:0 clamp(18px,2.4vw,32px) 16px;min-height:0}
.re-bill code{font-size:10.5px;color:var(--re-muted);margin-right:4px}
.re-stage:is([data-re-at="1"][data-re-ph="2"],[data-re-at="2"],[data-re-at="3"],[data-re-at=end]) .re-row-excess,
.re-stage:is([data-re-at="2"][data-re-ph="2"],[data-re-at="3"],[data-re-at=end]) .re-row-rate{background:#fdf1e2}
@media(max-width:899px),(max-height:699px),(prefers-reduced-motion:reduce){
  .re-board{grid-template-columns:repeat(2,minmax(0,1fr))}
  .re-design-surface{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:560px){.re-board{grid-template-columns:minmax(0,1fr)}}

/* Energy & ESG */
.re-energy{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:12px;padding:0 clamp(18px,2.4vw,32px) 16px;min-height:0;align-content:start}
.re-energy-panel{background:#fff;border:1px solid #e4d9e0;border-radius:10px;padding:14px;min-width:0}
.re-energy-panel svg{width:100%;height:auto;max-height:24svh}
.re-bars{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.re-bars li{display:grid;grid-template-columns:minmax(110px,40%) minmax(0,1fr) auto;gap:10px;align-items:center;font-size:13px}
.re-bars i{display:block;height:12px;width:calc(var(--w)*100%);border-radius:2px;background:#8c6f86}
.re-bars b{font-variant-numeric:tabular-nums}
.re-stage:is([data-re-at="1"][data-re-ph="2"],[data-re-at="2"],[data-re-at="3"],[data-re-at=end]) .re-bar-flag i{background:#c27a2c}
.re-axis{font:11px Instrument,sans-serif;fill:#7a6a76;text-anchor:middle}
.re-axis-warn{fill:#9a3a16;font-weight:650}
.re-line-base{fill:none;stroke:#8c7a88;stroke-width:2.5;stroke-dasharray:6 4}
.re-line-now{fill:none;stroke:#c4552c;stroke-width:3}
.re-energy-note{margin:6px 0 0}
/* Debt */
.re-debt{display:flex;flex-direction:column;gap:12px;padding:0 clamp(18px,2.4vw,32px) 16px;min-height:0}
.re-gauge{background:#fff;border:1px solid #e4d9e0;border-radius:10px;padding:14px 18px 34px}
.re-gauge-track{position:relative;height:12px;margin:22px 0 0;border-radius:6px;background:linear-gradient(90deg,#e9c9b8,#e8e2c9 40%,#cfe1cf)}
.re-gauge-track i{position:absolute;top:-8px;left:calc(var(--x)*100%);width:3px;height:28px;background:#3a2438;border-radius:2px}
.re-gauge-track i span{position:absolute;top:30px;left:50%;translate:-50% 0;white-space:nowrap;font-size:12px;font-style:normal;font-weight:650}
.re-gauge-limit{background:#b0451f!important}.re-gauge-limit span{top:-22px!important;color:#9a3a16}
.re-gauge-next{background:#c27a2c!important}.re-gauge-next span{color:#8a4a10}
.re-report{background:#fff;border:1px solid #e4d9e0;border-radius:10px;padding:14px 16px;font:14px/1.55 Georgia,serif;color:#2e2430}
.re-report header{display:grid;gap:2px;margin-bottom:8px;font-family:Instrument,sans-serif}
.re-report header small{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--re-muted)}
.re-report p{margin:0 0 8px}
/* After-sale service */
.re-desk{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:12px;padding:0 clamp(18px,2.4vw,32px) 16px;min-height:0;align-items:start}
.re-tickets td small{display:block;margin-top:3px;font-size:11px;color:var(--re-muted)}
.re-tickets td:last-child{color:#2f4a36}
.re-triage{display:flex;flex-direction:column;gap:12px;background:#fff;border:1px solid #e4d9e0;border-radius:10px;padding:14px;min-width:0}
.re-cluster{padding:10px 12px;border-radius:8px;background:#fdf1e2;border:1px solid #efd7b8}
.re-cluster p{margin:0 0 4px;font-size:13.5px}
@media(max-width:899px),(max-height:699px),(prefers-reduced-motion:reduce){
  .re-energy,.re-desk{grid-template-columns:minmax(0,1fr)}
}
.re-tickets td:nth-child(2){white-space:nowrap}

/* Trust section and closing call to action */
.re-trust{border-top:1px solid var(--line);margin-top:clamp(40px,6vw,90px);padding-block:clamp(28px,4.5vw,64px)}
.re-trust-head{max-width:72ch}
.re-trust-head h2{margin:8px 0 12px;font-size:clamp(31px,3.8vw,56px);line-height:1.05;letter-spacing:-.045em;text-wrap:balance}
.re-trust-head>p:last-child{color:var(--muted);font-size:clamp(16px,1.3vw,19px);line-height:1.52}
.re-trust h3{margin:0 0 6px;font-size:clamp(18px,1.6vw,23px);letter-spacing:-.02em}
.re-trust-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:clamp(16px,2.4vw,32px);margin-top:clamp(20px,3vw,36px)}
.re-trust-systems{padding:clamp(16px,2vw,24px);border:1px solid #e4d6dc;border-radius:10px;background:#fff9f5}
.re-trust-systems>p{margin:0 0 12px;color:var(--muted);font-size:14px}
.re-trust-systems dl{margin:0}
.re-trust-systems dl>div{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(0,1.4fr);gap:10px;padding:9px 0;border-top:1px solid #eee2e6;font-size:14px}
.re-trust-systems dt{font-weight:650}
.re-trust-systems dd{margin:0;color:#4a3848}
.re-trust-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.re-trust-cards>section{padding:clamp(14px,1.8vw,22px);border:1px solid #e4d6dc;border-radius:10px;background:#fff}
.re-trust-cards p{margin:0;color:#4a3848;font-size:14.5px;line-height:1.5}
.re-pilot{margin-top:clamp(28px,4vw,52px)}
.re-pilot ol{list-style:none;margin:12px 0 14px;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.re-pilot li{padding:14px;border-radius:10px;background:#3a2438;color:#fbeef3}
.re-pilot li span{font:12px monospace;color:#e5bfd0}
.re-pilot li b{display:block;margin:6px 0 4px;font-size:16px}
.re-pilot li p{margin:0;font-size:13.5px;line-height:1.45;color:#f0dce6}
.re-faq{margin-top:clamp(28px,4vw,52px);max-width:900px}
.re-faq details{border-top:1px solid var(--line);padding:12px 0}
.re-faq details:last-of-type{border-bottom:1px solid var(--line)}
.re-faq summary{cursor:pointer;font-size:clamp(16px,1.3vw,19px);font-weight:600}
.re-faq details p{margin:8px 0 0;color:var(--muted);line-height:1.55;max-width:70ch}
.re-cta{display:grid;justify-items:start;gap:12px;padding-block:clamp(32px,5vw,72px) clamp(48px,7vw,106px);border-top:1px solid var(--line)}
.re-cta h2{margin:0;font-size:clamp(28px,3.2vw,46px);line-height:1.08;letter-spacing:-.04em;max-width:24ch}
.re-cta p{margin:0;color:var(--muted);font-size:17px;max-width:60ch}
@media(max-width:1100px){.re-pilot ol{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.re-trust-grid,.re-trust-cards,.re-pilot ol{grid-template-columns:minmax(0,1fr)}.re-trust-systems dl>div{grid-template-columns:minmax(0,1fr);gap:2px}}

/* Reader routes in the hero; compact "more in this area" list */
.re-routes{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-top:18px}
.re-routes>span{width:100%;font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:650;color:var(--muted)}
.re-routes a{padding:9px 14px;border-radius:22px;border:1px solid #cdb6c4;background:#fff9f5;font-size:14.5px;font-weight:600;color:#3a2438}
.re-routes a:hover{background:#3a2438;color:#fff}
.re-operating-story .ops-cases .ops-case{padding-block:10px}
.re-operating-story .ops-case h3{font-size:clamp(17px,1.5vw,21px)!important}
.re-operating-story .ops-case header p{font-size:14px;color:var(--muted)}

/* ---------- Shared template additions (construction and later industries) ---------- */
.re-chain.re-chain-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.re-hero figure figcaption{margin-top:6px;font-size:12px;color:var(--muted)}
/* strip map by chainage */
.re-strip{margin:0;padding:0 clamp(18px,2.4vw,32px) 16px;min-height:0}
.re-strip svg{width:100%;height:auto;max-height:52svh;background:#f4f1e8;border:1px solid #e0d9cc;border-radius:10px}
.re-strip-label{font:600 12px monospace;fill:#5d5547}
.re-strip-km{font:11px Instrument,sans-serif;fill:#7a7166;text-anchor:middle}
.re-strip-key{font:12px Instrument,sans-serif;fill:#3a2836}
.re-strip-key .k-h{fill:#5d8a68}.re-strip-key .k-p{fill:#d3a24a}.re-strip-key .k-b{fill:#b0451f}
.re-seg-handed{fill:#5d8a68}.re-seg-pending{fill:#d3a24a}.re-seg-blocked{fill:#b0451f}
.re-zoom-line{stroke:#b0451f;stroke-dasharray:4 3;fill:none}
.re-zoom{fill:#fff;stroke:#b0451f}
.re-mini-parcel{fill:#e6ddd0;stroke:#9a8d7c}
.re-mini-mut{fill:#f3c9a8;stroke:#b0451f}
.re-mini-multi{fill:#efd9a6;stroke:#a06a1e}
.re-camp circle{fill:#a06a1e;stroke:#fff;stroke-width:2}.re-camp-ok circle{fill:#3f6a4a}
.re-camp text{font:700 11px Instrument,sans-serif;fill:#fff;text-anchor:middle}
.re-pole path{stroke:#3a2438;stroke-width:2;stroke-dasharray:3 2}
.re-pole text{font:11px Instrument,sans-serif;fill:#3a2438}
/* daily progress report */
.re-dpr{margin:12px clamp(14px,2vw,28px) 16px;padding:14px 16px;background:#fff;border:1px solid #e4d9e0;border-radius:10px;display:grid;gap:10px}
.re-dpr header{display:grid;gap:2px}
.re-dpr header small{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--re-muted)}
.re-dpr-flag{font-size:14px;padding:8px 10px;border-radius:6px;background:#fdf1e2}
.re-dpr p{margin:0}
/* claim clock */
.re-clock{display:grid;gap:2px;margin-top:12px;padding:12px 14px;border-radius:8px;background:#3a2438;color:#fbeef3}
.re-clock b{font-size:24px}.re-clock span{font-size:13px;color:#e8c4d4}.re-clock em{font-style:normal;font-weight:650;color:#f5c08c}
.re-reply-list{margin-top:10px;padding-top:10px;border-top:1px solid #eee5e9;font-family:Instrument,sans-serif}
/* workflow pages built from the template */
.re-wf-hero{padding-block:clamp(24px,4vw,56px) 10px}
.re-wf-hero h1{margin:8px 0 10px;font-size:clamp(36px,4.6vw,68px);line-height:1;letter-spacing:-.045em}
.re-wf-question{font-size:clamp(18px,1.6vw,24px);color:#3d2e3b;max-width:52ch;margin:0 0 8px}
.re-wf-owner{color:var(--muted);font-size:14px}
.re-wf-owner a{text-decoration:underline;text-underline-offset:3px;color:var(--ink)}
.re-wf-depth{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,2.4vw,32px);padding-block:clamp(28px,4vw,56px)}
.re-wf-block{padding:clamp(16px,2vw,24px);border:1px solid #e4d6dc;border-radius:10px;background:#fff9f5}
.re-wf-block h2{margin:0 0 10px;font-size:clamp(20px,1.8vw,26px);letter-spacing:-.02em}
.re-wf-block ul,.re-wf-block ol{margin:0;padding-left:20px;line-height:1.55;color:#3d2e3b}
.re-wf-block li+li{margin-top:6px}
.re-wf-block.re-faq{max-width:none}
.re-wf-cta{background:#3a2438;color:#fbeef3;border-color:#3a2438}.re-wf-cta h2{color:#fff}.re-wf-cta p{color:#f0dce6}
@media(max-width:1100px){.re-chain.re-chain-5{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.re-chain.re-chain-5{grid-template-columns:minmax(0,1fr)}.re-wf-depth{grid-template-columns:minmax(0,1fr)}}

/* Construction additions: other-markets line, calendar, partner card, three-column board */
.re-elsewhere{grid-column:2;margin:0;font-size:13px;color:#4a3848;display:flex;gap:10px;flex-wrap:wrap}
.re-elsewhere>span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:650;color:#3f6a4a;align-self:center}
.re-calendar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 clamp(18px,2.4vw,32px) 16px;align-content:start}
.re-cal-item{padding:12px 14px;border-radius:8px;background:#fff;border:1px solid #e4d9e0;border-top:4px solid #8c7a88}
.re-cal-item time{font-weight:700;font-size:18px}
.re-cal-item p{margin:4px 0 6px;font-size:14px}
.re-cal-due{border-top-color:#c27a2c}.re-cal-option{border-top-color:#3f6a4a}
.re-calendar .re-route{grid-column:1/-1}
.re-partner{background:#fff;border:1px solid #e4d9e0;border-radius:10px;padding:16px;display:grid;gap:12px;max-width:760px}
.re-partner header{display:grid;gap:2px}.re-partner header small{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--re-muted)}.re-partner header b{font-size:20px}
.re-board.re-board-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.re-cell-down th,.re-cell-down td{color:#2f5a3a}
.re-sheet th small{display:block;font:11px Instrument,sans-serif;color:var(--re-muted);margin-top:2px}
@media(max-width:899px){.re-elsewhere{grid-column:1}.re-calendar,.re-board.re-board-3{grid-template-columns:minmax(0,1fr)}}
.re-sheet-plain tbody>tr>th:first-child,.re-sheet-plain thead tr:last-child th:first-child,.re-sheet-plain thead tr:first-child th{width:auto;background:#fff;font:600 14px Instrument,sans-serif;color:#2c2230;text-align:left;padding:10px 12px}
.re-sheet-plain thead tr:first-child th{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--re-muted);background:#faf7f8}

/* ---------- Visual surfaces: base maps, networks, cross-sections, money flow ---------- */
.re-map-main .re-main>.re-mapfig,.re-map-main .re-main>.re-network{flex:1;min-height:0}
.re-mapfig{margin:0 clamp(14px,2vw,24px) 12px;display:flex;flex-direction:column;min-height:0}
.re-mapfig-box{position:relative;flex:1;min-height:260px;border-radius:10px;overflow:hidden;border:1px solid #d9d2c4;background:#dfe8ea}
.re-mapfig-box img,.re-mapfig-box svg{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.re-mapfig figcaption{font-size:11px;color:var(--muted);margin-top:4px}
.re-dots circle{fill:#7d6476;opacity:.8}
.re-dots-faint circle{fill:#b9aeb4;opacity:.45}
.re-dots-hot circle{fill:#6a405e;stroke:#fff;stroke-width:1.2}
.re-mk circle{stroke:#fff;stroke-width:2.5}
.re-mk-ok circle{fill:#3f6a4a}.re-mk-no circle{fill:#b0451f}
.re-mk text{font:700 12px Instrument,sans-serif;fill:#2c2230;paint-order:stroke;stroke:#fff;stroke-width:3px}
.re-mk path{stroke:#fff;stroke-width:2.2}
.re-route-line{stroke:#3a2438;stroke-width:7;stroke-linecap:round}
/* company network */
.re-network{margin:0 clamp(14px,2vw,24px) 12px;display:flex;min-height:0}
.re-network svg{width:100%;height:100%;max-height:60svh;background:#fbf7f4;border:1px solid #e4d9e0;border-radius:10px}
.re-node circle{fill:#fff;stroke:#6a405e;stroke-width:2.5}
.re-node-us circle{fill:#3a2438}.re-node-pkg circle{fill:#f5d9c2;stroke:#a5582a}.re-node-bank circle{fill:#e3ecf3;stroke:#3d5f8c}
.re-node-person circle{fill:#fff1dc;stroke:#a06a1e}.re-node-rival circle{stroke:#b0451f;stroke-dasharray:5 3}
.re-node text{font:700 12px Instrument,sans-serif;fill:#2c2230;text-anchor:middle}
.re-node .re-node-sub{font-weight:400;font-size:11px;fill:#6b5866}
.re-edge path{stroke-width:2.5;fill:none}
.re-edge text{font:600 11px Instrument,sans-serif;text-anchor:middle;paint-order:stroke;stroke:#fbf7f4;stroke-width:4px}
.re-edge-gap path{stroke:#b0451f;stroke-dasharray:6 4}.re-edge-gap text{fill:#9a3a16}
.re-edge-ok path{stroke:#3f6a4a}.re-edge-ok text{fill:#2f5a3a}
.re-edge-plan path{stroke:#6a405e;stroke-dasharray:3 3}.re-edge-plan text{fill:#6a405e}
.re-edge-warn path{stroke:#c27a2c}.re-edge-warn text{fill:#8a4a10}
/* road cross-section and lab chart */
.re-xsec-wrap{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(220px,.9fr);gap:12px;padding:0 clamp(14px,2vw,24px) 12px;align-items:start}
.re-xsec svg,.re-lab svg{width:100%;height:auto;background:#fbf7f4;border:1px solid #e4d9e0;border-radius:10px}
.re-xsec,.re-lab{margin:0}
.re-xsec-label{font:600 11px monospace;fill:#6b5866;text-anchor:end}
.re-xsec-row{fill:#efe9e3}
.re-xsec-done{fill:#8fae95}
.re-xsec-pending rect,.re-xsec-pending-key{fill:#e0a24d;stroke:#a5582a;stroke-width:1.5}
.re-xsec-block{fill:#b0451f22;stroke:#b0451f;stroke-dasharray:4 3}
.re-xsec-note{font:600 11px Instrument,sans-serif;fill:#9a3a16;text-anchor:middle}
.re-brace{stroke:#8a3d12;stroke-width:3}
.re-xsec-money{font:700 13px Instrument,sans-serif;fill:#8a3d12;text-anchor:middle}
.re-legend text{font:11px Instrument,sans-serif;fill:#4a3848}
.re-lab figcaption{font-size:12px;color:var(--re-muted);margin-bottom:6px}
.re-lab-bar{fill:#8c7a88}.re-lab-low{fill:#b0451f}
.re-lab-expect{stroke:#3f6a4a;stroke-width:2;stroke-dasharray:5 4}
.re-lab-note{font:11px Instrument,sans-serif;fill:#2f5a3a}
.re-lab-id{font:11px monospace;fill:#6b5866;text-anchor:middle}
.re-lab-v{font:700 11px Instrument,sans-serif;fill:#2c2230;text-anchor:middle}
/* cash map and flow */
.re-cash-visual{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr);gap:14px;padding:10px clamp(14px,2vw,24px) 14px;flex:1;min-height:0}
.re-cash-visual .re-mapfig{margin:0}
.re-solo-body>.re-command{margin:0 clamp(18px,2.4vw,32px)}
.re-site-bubble{fill:#6a405e;fill-opacity:.55;stroke:#fff;stroke-width:1.5}
.re-site-stuck{fill:none;stroke:#b0451f;stroke-width:3}
.re-bg-exp rect,.re-bg-key.re-bg-exp{fill:#e0a24d;background:#e0a24d}
.re-bg-rel rect,.re-bg-key.re-bg-rel{fill:#3f6a4a;background:#3f6a4a}
.re-flow{display:flex;flex-direction:column;gap:12px;padding:14px;background:#fff;border:1px solid #e4d9e0;border-radius:10px;min-height:0}
.re-flow-bar{display:flex;height:40px;border-radius:6px;overflow:hidden;font-size:13px;font-weight:650;color:#fff}
.re-flow-bar span{display:flex;align-items:center;padding-left:10px}
.re-flow-ok{background:#3f6a4a}.re-flow-stuck{background:repeating-linear-gradient(135deg,#b0451f 0 7px,#c4552c 7px 14px)}
.re-flow-list{list-style:none;margin:0;padding:0;display:grid;gap:7px;font-size:13px}
.re-flow-list li{display:grid;grid-template-columns:90px auto minmax(0,1fr);gap:8px;align-items:center}
.re-flow-list li span{display:block;height:10px;width:calc(var(--w)*100%);background:#c4552c;border-radius:2px}
.re-flow-list li b{white-space:nowrap}
.re-flow-bg{font-size:13px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.re-bg-key{display:inline-block;width:14px;height:10px;border-radius:2px;margin-left:6px}
.re-flow-room{display:grid;gap:4px;padding:12px;border-radius:8px;background:#3a2438;color:#fbeef3}
.re-flow-room span{font-size:22px;font-weight:650}
@media(max-width:899px),(max-height:699px),(prefers-reduced-motion:reduce){
  .re-xsec-wrap,.re-cash-visual{grid-template-columns:minmax(0,1fr)}
  .re-mapfig-box{aspect-ratio:640/560;flex:none}
}
@media(max-width:560px){.re-flow-list li{grid-template-columns:48px minmax(0,1fr)}.re-flow-list li b{grid-column:2}.re-flow-list li{row-gap:2px}.re-flow-bar{font-size:11px}.re-flow-bar span{padding-left:6px;white-space:nowrap;overflow:hidden}}
.re-flow,.re-cash-visual>*{min-width:0}
@media(max-width:560px){.re-flow-room span{font-size:18px}.re-flow-room .re-tag{white-space:normal}.re-cash-visual{padding-inline:12px}}

/* ---------- Second visual pass: charts, local maps, building, crews, dials ---------- */
.re-viz{margin:0}
.re-viz svg{width:100%;height:auto;background:#fbf7f4;border:1px solid #e4d9e0;border-radius:10px}
.re-viz-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:12px;padding:0 clamp(14px,2vw,24px)}
.re-solo-body>.re-viz{padding:0 clamp(14px,2vw,24px)}
.re-solo-body>.re-viz svg{max-height:46svh}
.re-viz-col{display:flex;flex-direction:column;gap:10px;padding:0 clamp(14px,2vw,24px) 12px;min-height:0}
.re-viz-col .re-viz svg{max-height:52svh}
.re-viz-strip{margin:10px clamp(14px,2vw,24px) 12px;padding:10px 14px;border-radius:8px;background:#fff;border:1px solid #e4d9e0;font-size:14px;display:flex;flex-wrap:wrap;gap:4px 8px}
.re-viz-col .re-viz-strip{margin:0}
.re-viz-strip .re-down{color:#2f5a3a}
.re-grid-line{stroke:#ece4e8}
.re-axis-x{font:11px Instrument,sans-serif;fill:#7a6a76;text-anchor:middle}
.re-axis-y{font:11px Instrument,sans-serif;fill:#7a6a76;text-anchor:end}
.re-line-price{fill:none;stroke:#6a405e;stroke-width:3}
.re-est line,.re-est-line{stroke:#8c7a88;stroke-dasharray:4 4}
.re-est text{font:11px Instrument,sans-serif;fill:#6b5866}
.re-jump{fill:#c4552c;stroke:#fff;stroke-width:2}
.re-jump-label{font:700 12px Instrument,sans-serif;fill:#9a3a16}
.re-wf-bar{fill:#b9a2b3}.re-wf-up{fill:#c4552c}.re-wf-down{fill:#c98f9f}.re-wf-flag{fill:#c4552c}
.re-wf-total-bar{fill:#6a405e}.re-wf-net{fill:#3f6a4a}
.re-wf-label{font:700 11px Instrument,sans-serif;fill:#2c2230;text-anchor:middle}
.re-wf-total{font:700 13px Instrument,sans-serif;fill:#2c2230}
.re-wf-flag-label{font:700 12px Instrument,sans-serif;fill:#9a3a16;text-anchor:middle}
/* local schematic map */
.re-local-land{fill:#efeadf}
.re-local-river{fill:none;stroke:#9fbfc8;stroke-width:12;opacity:.7}
.re-local-road{stroke:#3a2438;stroke-width:8;stroke-linecap:round}
.re-local-label{font:600 12px Instrument,sans-serif;fill:#6d6450;text-anchor:middle}
.re-plant rect{fill:#3a2438}.re-plant text{font:11px Instrument,sans-serif;fill:#3a2438}
.re-quarry polygon{fill:#8a7a5f;stroke:#fff;stroke-width:2}
.re-haul{stroke:#a06a1e;stroke-width:2;stroke-dasharray:5 4;fill:none}
.re-quarry-id{font:700 12px Instrument,sans-serif;fill:#2c2230;text-anchor:middle}
.re-quarry-cost{font:11px Instrument,sans-serif;fill:#4a3848;text-anchor:middle}
.re-best circle{fill:none;stroke:#3f6a4a;stroke-width:3}
.re-map-note{font:10px Instrument,sans-serif;fill:#8a8070}
/* timeline ribbon */
.re-ribbon{stroke:#cfc3cb;stroke-width:6;stroke-linecap:round}
.re-tick{stroke:#a090a0}
.re-today line{stroke:#3f6a4a;stroke-dasharray:3 3}.re-today text{font:700 11px Instrument,sans-serif;fill:#2f5a3a;text-anchor:middle}
.re-flag line{stroke:#8c7a88}.re-flag circle{fill:#8c7a88;stroke:#fff;stroke-width:2}
.re-flag text{font:600 12px Instrument,sans-serif;fill:#2c2230}
.re-flag-due circle{fill:#c27a2c}.re-flag-option circle{fill:#3f6a4a}
.re-pulse{fill:none;stroke:#c4552c;stroke-width:3}
/* building elevation */
.re-ground{fill:#d9d0c0}
.re-floor-band{fill:#efe6dd;stroke:#c8bcb2}
.re-window{fill:#cfdde3}
.re-roof{fill:#8c7a88}
.re-floor-label{font:11px Instrument,sans-serif;fill:#6b5866}
.re-ramp-shape{fill:#d8cfc4;stroke:#a89b8c}
.re-stores rect{fill:#fff;stroke:#6a405e;stroke-width:2}.re-stores text{font:600 12px Instrument,sans-serif;fill:#3a2438;text-anchor:middle}
.re-flow-line{fill:none;stroke:#c4552c;stroke-width:2.5;stroke-dasharray:6 4}
.re-hot{fill:#c4552c}
.re-hot-label{font:700 11px Instrument,sans-serif;fill:#9a3a16}
.re-hot-q{text-anchor:middle}
.re-gap-badge{font:700 14px Instrument,sans-serif;fill:#9a3a16;text-anchor:middle}
.re-cut{fill:#c4552c55;stroke:#b0451f;stroke-width:2}
.re-cut-label{font:700 12px Instrument,sans-serif;fill:#9a3a16}
.re-cut-sub{font:11px Instrument,sans-serif;fill:#6b5866}
/* crews */
.re-site-footprint{fill:#d9cfd6;stroke:#6a405e}
.re-crew rect{fill:#fff;stroke:#cdbfc8}
.re-crew-name{font:700 12px Instrument,sans-serif;fill:#2c2230}
.re-crew-sub{font:11px Instrument,sans-serif;fill:#6b5866}
.re-crew-msme{font:600 10px Instrument,sans-serif;fill:#3d5f8c}
.re-badge-ok{fill:#3f6a4a}.re-badge-no{fill:#b0451f}
.re-badge-t{font:700 13px Instrument,sans-serif;fill:#fff;text-anchor:middle}
/* index lines */
.re-series polyline{fill:none;stroke-width:3}
.re-series text{font:700 11px Instrument,sans-serif}
.re-series-0 polyline{stroke:#8c6a2c}.re-series-0 text{fill:#8c6a2c}
.re-series-1 polyline{stroke:#3f6a4a}.re-series-1 text{fill:#3f6a4a}
.re-series-2 polyline{stroke:#6a405e}.re-series-2 text{fill:#6a405e}
.re-series-3 polyline{stroke:#3d5f8c}.re-series-3 text{fill:#3d5f8c}
.re-series-4 polyline{stroke:#7a7a7a;stroke-dasharray:4 3}.re-series-4 text{fill:#5f5f5f}
.re-band{fill:#f2b86b22}
/* dials */
.re-dials{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 clamp(14px,2vw,24px)}
.re-dial{margin:0;display:grid;justify-items:center;gap:8px;padding:14px;background:#fff;border:1px solid #e4d9e0;border-radius:10px}
.re-dial svg{width:140px;height:140px}
.re-dial-track{fill:none;stroke:#efe6ea;stroke-width:12}
.re-dial-arc{fill:none;stroke:#6a405e;stroke-width:12;stroke-linecap:round}
.re-dial-gap .re-dial-arc{stroke:#c4552c}
.re-dial-days{font:700 30px Instrument,sans-serif;fill:#2c2230;text-anchor:middle}
.re-dial-unit{font:11px Instrument,sans-serif;fill:#7a6a76;text-anchor:middle}
.re-dial figcaption{display:grid;gap:4px;text-align:center;font-size:13px}
@media(max-width:899px),(max-height:699px),(prefers-reduced-motion:reduce){
  .re-viz-row,.re-dials{grid-template-columns:minmax(0,1fr)}
}

/* Real Estate visual pass */
.re-mapfig-odisha .re-mapfig-box{min-height:300px}
.re-mlabel{font:700 5px Instrument,sans-serif;fill:#6d5a44;text-anchor:middle;letter-spacing:.3px}
.re-mparcel circle{fill:#6a405e;fill-opacity:.75;stroke:#fff;stroke-width:.6}
.re-mid{font:700 2.8px Instrument,sans-serif;fill:#fff;text-anchor:middle}
.re-mpulse{fill:none;stroke:#c4552c;stroke-width:1.2}
.re-mpulse-b{stroke:#a06a1e}
.re-mtag rect{fill:#fffaf4;stroke:#6a405e;stroke-width:.4}
.re-mtag text{font:600 4px Instrument,sans-serif;fill:#3a2836}
.re-mtag-warn rect{fill:#fff1dc;stroke:#a06a1e}
.re-mtag-dark rect{fill:#3a2438;stroke:#3a2438}.re-mtag-dark text{fill:#fbeef3}
.re-prop{fill:#8c7a88;stroke:#fff;stroke-width:.5}
.re-prop-ok{fill:#3f6a4a;stroke:#fff;stroke-width:.5}
.re-prop-unmatched{fill:#e0a24d;stroke:#fff;stroke-width:.6}
.re-prop-unbilled{fill:#b0451f;stroke:#fff;stroke-width:.6}
.re-mkey text{font:4px Instrument,sans-serif;fill:#3a2836}
.re-landbank .re-mapfig{margin:0}
.re-landbank .re-mapfig-box{min-height:260px;flex:1}
.re-close-visual{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:12px;min-height:0;padding:0 clamp(14px,2vw,24px)}
.re-close-visual .re-mapfig{margin:0}
.re-close-visual .re-sheet{padding:0}
.re-close-visual .re-sheet table{font-size:13px}
.re-viz-blds svg{max-height:34svh}
.re-viz-blds figcaption{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;color:#4a3848;margin-top:6px}
.re-key{display:inline-block;width:12px;height:12px;border-radius:2px;margin-left:8px}
.re-bld{fill:#e9e1e6;stroke:#a090a0}
.re-unit-cell,.re-key.re-u-ok{fill:#8fae95;background:#8fae95}
.re-u-under,.re-key.re-u-under{fill:#e0a24d;background:#e0a24d}
.re-u-over,.re-key.re-u-over{fill:#5b7fa8;background:#5b7fa8}
.re-u-risk,.re-key.re-u-risk{fill:#b0451f;background:#b0451f}
.re-bld-name{font:600 11px Instrument,sans-serif;fill:#3a2836;text-anchor:middle}
.re-viz-tower svg{max-height:54svh}
.re-apt{fill:#e9e1e6;stroke:#c8bcc4}
.re-apt-leak{fill:#cfe0ea;stroke:#3d5f8c;stroke-width:1.5}
.re-drop{fill:#3d5f8c}
.re-stack-line{stroke:#3d5f8c;stroke-width:3;stroke-dasharray:4 3}
.re-tower-note{font:600 12px Instrument,sans-serif;fill:#2f5a3a}
.re-desk .re-viz-tower{min-width:0}
.re-tree{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.re-tree-folder{padding:10px 12px;background:#fff;border:1px solid #e4d9e0;border-radius:8px;border-top:4px solid #c9b78f;display:grid;gap:6px}
.re-tree-folder b{font-size:14px}
.re-tree-folder>span{font-size:12px;color:var(--re-muted)}
.re-tree-files{display:flex;flex-wrap:wrap;gap:4px}
.re-tree i,.re-tree-key i{display:inline-block;width:14px;height:18px;border-radius:2px}
.re-doc-ok{background:#8fae95}.re-doc-stale{background:#e0a24d}.re-doc-missing{background:transparent;border:1.5px dashed #b0451f}
.re-tree-key{grid-column:1/-1;display:flex;align-items:center;gap:6px;margin:0;font-size:12px;color:#4a3848}
.re-tree-key i{width:12px;height:14px;margin-left:8px}
@media(max-width:899px),(max-height:699px),(prefers-reduced-motion:reduce){.re-close-visual,.re-tree{grid-template-columns:minmax(0,1fr)}}
.re-landbank .re-mapfig-box{min-height:44svh}
.re-landbank .re-kpis>div{padding:6px 12px}

/* Global Edition: one collapsed "How this works in your market" section near the end of the page */
.re-bymarket{padding-block:clamp(36px,4.5vw,64px);border-top:1px solid var(--line)}
.re-bymarket header{max-width:720px;margin-bottom:14px}
.re-bymarket h2{font-size:clamp(24px,2.4vw,34px);line-height:1.1;letter-spacing:-.02em;font-weight:550;margin:0 0 8px}
.re-bymarket header p{margin:0;color:var(--muted)}
.re-bymarket-list{max-width:980px}
.re-bymarket-list details{border-bottom:1px solid var(--line)}
.re-bymarket-list summary{cursor:pointer;padding:14px 0;font-weight:600;font-size:17px}
.re-bymarket-list h3{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:14px 0 8px}
.re-bymarket-core,.re-bymarket-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 28px;margin:0 0 16px}
.re-bymarket-core dt,.re-bymarket-detail dt{font-size:12px;font-weight:700;color:#2c2230}
.re-bymarket-core dd,.re-bymarket-detail dd{margin:2px 0 0;font-size:14px;line-height:1.5;color:#4a3848}
@media(max-width:699px){.re-bymarket-core,.re-bymarket-detail{grid-template-columns:minmax(0,1fr)}}
.re-mapfig-world .re-mk text{font-size:15px}
.re-mapfig-world .re-pin text{font-size:14px}
.re-market-label{font:650 13px Instrument,sans-serif;fill:#7a6a58;letter-spacing:.06em;text-transform:uppercase}
@media(max-width:1099px){.re-markets dl,.re-bymarket-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:599px){.re-markets dl,.re-bymarket-grid{grid-template-columns:minmax(0,1fr)}}
.re-mapfig-world .re-mapfig-box{flex:none;aspect-ratio:960/330;min-height:0}
.re-map-main .re-main>.re-mapfig-world{flex:none}
/* Global Edition: land bank and portfolio close on the world map (viewBox 960 × 330), so map text is sized for it. */
.re-mapfig-world .re-mid{font-size:10px}
.re-mapfig-world .re-mparcel circle{stroke-width:1.5}
.re-mapfig-world .re-mpulse{stroke-width:2.5}
.re-mapfig-world .re-mkey text{font-size:13px}
.re-mapfig-world .re-prop,.re-mapfig-world .re-prop-ok,.re-mapfig-world .re-prop-unmatched,.re-mapfig-world .re-prop-unbilled{stroke-width:1.2}
.re-bymarket-other p{margin:0 0 16px;font-size:15px;line-height:1.55;max-width:70ch}
