/* ============================================================
   Real EstateOS product page. Everything is scoped under #reos, so the short
   class names are safe. Loaded after product-page.css, which holds what the
   product pages share (base, chips, stamp, node, rail, hero frame, question
   stack and meter, turning point, FAQ, final CTA). The 02 steps, 06
   capabilities, 07 before/after, 08 tabs, 09 timeline and 05 flow rules follow
   freightos.css; the Real EstateOS objects (the Rawdah Residences drawing, the
   data line, the hero, pain loops, the seven windows, the line explorer, the
   A-0704 timeline, BOQ, dues, unit grid and booking) are at the end.

   Colour meaning is fixed: red = broken link between systems, over budget,
   overdue, warranty work paid by mistake; amber = watch (approaching budget,
   due soon, reserved); cyan = Real EstateOS working (the data line, carried-
   over fields, calculations); green = done; gold = what a person does. Gold
   is never used for anything the system does. Words always carry the meaning
   too (a broken link also says "re-typed" or "lost").

   Motion: markup renders in its finished state. The page script "arms" a
   section before animating it, and arming only ever changes opacity,
   visibility or transform, so nothing shifts. Logical properties throughout
   (RTL); the building is an elevation and is always drawn left to right.
   ============================================================ */


/* ---------- base ---------- */

/* The -ink colours are the ones dark enough to read as small text on their
   own tint (AA); the plain ones are for fills, stripes and dots. */
#reos {
  --re-crit-ink: #b42318;
  --re-c1: #6f8fff;
  --re-cyan: #22d3ee;
  --re-cyan-ink: #0e7490;
  --re-warn: #f59e0b;
  --re-warn-ink: #92400e;
}


/* Facts TerminalOS pulled out */

#reos .btn-s {
  font-size: 13px;
  padding: 8px 14px;
}

#reos .dr-a {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

/* A decision taken stays gold: it is the human's action. */
#reos .is-taken:disabled {
  opacity: 1;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* ---------- 01 the questions ---------- */

#reos .qa {
  height: 104px;
}

#reos .qn {
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--nlm-danger);
  margin-bottom: 8px;
}

#reos .qchip {
  font: inherit;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--nlm-fg-1);
  background: #fff;
  border: 1px solid var(--nlm-line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

#reos .qchip[aria-pressed="true"] {
  color: #fff;
  background: var(--nlm-navy-900);
  border-color: var(--nlm-navy-900);
}

/* the meter */
#reos .meter-h {
  margin: 0 0 14px;
}

#reos .meter-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  font-size: 13px;
}

#reos .meter-rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

#reos .meter-rows dd {
  margin: 0;
  font-family: var(--nlm-font-mono);
  font-weight: 600;
  white-space: nowrap;
  color: #ff8a8a;
}

#reos .meter-x {
  display: block;
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  color: var(--nlm-navy-400);
}

#reos .qrate {
  margin-top: 0;
}

#reos .qrate input {
  width: 140px;
}

/* ---------- what if ---------- */

#reos .turn-flow {
  gap: 6px;
}

#reos .turn-flow li {
  font-size: 13.5px;
  padding: 7px 12px;
}

#reos .turn-q + .turn-q {
  margin-top: 10px;
}

#reos .flow-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

#reos .flow-ai {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 24px);
  color: #fff;
}

#reos .flow-ai .node {
  width: 52px;
  height: 52px;
}

#reos .flow-ai .node-core {
  width: 40px;
  height: 40px;
}

#reos .flow-ai .node-core :is(svg, i[data-lucide]) {
  width: 18px;
  height: 18px;
}

#reos .flow-replay {
  padding-inline: 12px 16px;
}

#reos .flow-replay :is(svg, i[data-lucide]) {
  width: 15px;
  height: 15px;
}

#reos .steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

#reos .step {
  background: var(--nlm-navy-800);
  border: 1px solid var(--nlm-line-dark);
  border-radius: 14px;
  padding: 20px 18px;
  transition: border-color 0.35s, opacity 0.35s;
}

#reos .step.is-done {
  border-color: rgb(34 197 94 / 45%);
}

#reos .step.is-gold.is-done {
  border-color: var(--pq-gold);
}

#reos .flow.is-armed .step:not(.is-done) {
  opacity: 0.45;
}

#reos .step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

#reos .step .ico {
  width: 36px;
  height: 36px;
  background: rgb(61 107 255 / 18%);
  color: var(--pq-ai);
}

#reos .step.is-gold .ico {
  background: rgb(227 178 60 / 18%);
  color: var(--pq-gold);
}

#reos .step-n {
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  color: var(--nlm-navy-400);
}

#reos .step h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  margin: 0 0 8px;
}

#reos .step p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--nlm-navy-300);
  margin: 0;
}

#reos .ck-i {
  flex: none;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgb(255 255 255 / 25%);
  color: transparent;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

#reos .ck-i :is(svg, i[data-lucide]) {
  width: 12px;
  height: 12px;
}

#reos .step.is-done .ck-i {
  background: var(--pq-ok);
  border-color: var(--pq-ok);
  color: #fff;
}

#reos .step.is-gold.is-done .ck-i {
  background: var(--pq-gold);
  border-color: var(--pq-gold);
  color: var(--pq-gold-ink);
}

#reos .flow.is-armed .step.is-done .ck-i {
  animation: pq-pop 0.4s var(--nlm-ease-soft);
}

/* ---------- 03 see it work: bar and counters ---------- */

#reos .day-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

#reos .day-ctl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#reos .day-n {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

#reos .day-n li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--nlm-fg-2);
}

#reos .day-n b {
  font-family: var(--nlm-font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.1;
  color: var(--nlm-fg-1);
}

[dir="rtl"] #reos .day-n b.ltr {
  text-align: end;
}

#reos .day-n .is-bad b {
  color: var(--nlm-danger);
}

#reos .day-n .is-ai b {
  color: var(--nlm-signal-ink);
}

/* ---------- 04 tabs ---------- */

#reos .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

#reos .tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--nlm-fg-2);
  background: #fff;
  border: 1px solid var(--nlm-line-strong);
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

#reos .tab :is(svg, i[data-lucide]) {
  width: 16px;
  height: 16px;
}

#reos .tab[aria-selected="true"] {
  color: #fff;
  background: var(--nlm-navy-900);
  border-color: var(--nlm-navy-900);
}

#reos .vp {
  background: var(--nlm-gray-50);
  border: 1px solid var(--nlm-line);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 32px);
  animation: pq-rise 0.45s var(--nlm-ease-soft);
}

#reos .vq {
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.25;
  color: var(--nlm-fg-1);
  margin: 0 0 18px;
}

#reos .vnote {
  font-size: 13px;
  font-style: italic;
  color: var(--nlm-fg-3);
  margin: 14px 0 0;
}

#reos .vp .qctl output {
  color: var(--nlm-fg-1);
}

/* Tables */
#reos .sc-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-radius: 14px;
}

#reos .sc {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

#reos .sc :is(th, td) {
  text-align: start;
  padding: 10px 14px;
  border-bottom: 1px solid var(--nlm-line);
  white-space: nowrap;
}

#reos .sc thead th {
  font-family: var(--nlm-font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nlm-fg-3);
}

#reos .sc tbody tr:last-child :is(th, td) {
  border-bottom: 0;
}

#reos .sc tr.is-sel {
  background: rgb(61 107 255 / 5%);
}

/* ---------- 06 capabilities ---------- */

#reos .cloud {
  list-style: none;
  margin: 0 0 clamp(28px, 4vw, 44px);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#reos .cloud li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--nlm-fg-1);
  background: #fff;
  border: 1px solid rgb(61 107 255 / 35%);
  border-radius: 999px;
  padding: 8px 15px;
}

#reos .cloud :is(svg, i[data-lucide]) {
  width: 14px;
  height: 14px;
  color: var(--nlm-signal);
}

#reos .cloud.is-armed li {
  opacity: 0;
  transform: translateY(8px) scale(0.94);
}

#reos .cloud.is-armed.is-in li {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--nlm-ease), transform 0.45s var(--nlm-ease-soft);
  transition-delay: calc(var(--i) * 60ms);
}

#reos .feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#reos .feat {
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-radius: 14px;
  padding: 16px;
  transition: transform 0.25s var(--nlm-ease), box-shadow 0.25s var(--nlm-ease);
}

#reos .feat:hover {
  transform: translateY(-4px);
  box-shadow: var(--nlm-shadow-md);
}

#reos .feat h3 {
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.3;
  color: var(--nlm-fg-1);
  margin: 12px 0 6px;
}

#reos .feat p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--nlm-fg-2);
  margin: 0;
}

#reos .roles {
  margin-top: clamp(24px, 3vw, 36px);
}

#reos .roles ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

#reos .roles li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--nlm-fg-2);
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-radius: 12px;
  padding: 12px;
}

#reos .roles b {
  font-family: var(--nlm-font-display);
  font-size: 13.5px;
  color: var(--nlm-fg-1);
}

/* ---------- 07 before / after ---------- */

#reos .out-sw {
  margin-bottom: 20px;
}

#reos .out-g {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}

#reos .core {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: 13.5px;
  line-height: 1.35;
}

#reos .core :is(th, td) {
  text-align: start;
  font-weight: 500;
  padding: 9px 12px;
  background: var(--nlm-navy-900);
  border-block: 1px solid var(--nlm-line-dark);
  transition: color 0.4s var(--nlm-ease), opacity 0.4s var(--nlm-ease);
}

#reos .core :is(th, td):first-child {
  border-inline-start: 1px solid var(--nlm-line-dark);
  border-start-start-radius: 10px;
  border-end-start-radius: 10px;
}

#reos .core :is(th, td):last-child {
  border-inline-end: 1px solid var(--nlm-line-dark);
  border-start-end-radius: 10px;
  border-end-end-radius: 10px;
}

#reos .core thead th {
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nlm-navy-400);
  background: transparent;
  border-color: transparent;
  padding-block: 0 2px;
}

#reos .core thead th:is(:first-child, :last-child) {
  border-color: transparent;
}

#reos .core td {
  position: relative;
  padding-inline-start: 32px;
}

#reos .core td :is(svg, i[data-lucide]) {
  position: absolute;
  top: calc(50% - 7px);
  inset-inline-start: 10px;
  width: 14px;
  height: 14px;
  color: var(--nlm-navy-600);
}

/* Reactive, there is no AI action and no outcome to show: the cells
   stay, empty. */
#reos .core :is(.c-ai, .c-out) > * {
  transition: opacity 0.4s var(--nlm-ease), visibility 0s;
}

#reos .c-pain {
  color: var(--nlm-navy-400);
  text-decoration: line-through;
  text-decoration-color: rgb(255 255 255 / 30%);
}

#reos .c-ai {
  color: var(--pq-ai);
}

#reos .c-out {
  color: #5ee08a;
  font-weight: 600;
}

/* The last row is the human one: readable in both states, its outcome gold. */
#reos .is-human .c-pain {
  color: #fff;
  text-decoration: none;
}

#reos .is-human .c-ai {
  color: var(--nlm-navy-400);
}

#reos .is-human .c-out {
  color: var(--pq-gold);
}

#reos [data-state="before"] tr:not(.is-human) .c-pain {
  color: #ff8a8a;
  text-decoration-color: transparent;
}

/* Before FleetOS there is no AI action and no outcome to show: the cells
   stay, empty. */

#reos [data-state="before"] tr:not(.is-human) :is(.c-ai, .c-out) > * {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--nlm-ease), visibility 0s 0.4s;
}

/* The morning clearance brief */
#reos .report {
  position: relative;
  background: var(--nlm-navy-900);
  border: 1px solid var(--nlm-line-dark);
  border-radius: 16px;
  overflow: hidden;
  color: var(--nlm-navy-300);
}

#reos .report-b {
  padding: clamp(18px, 2vw, 24px);
}

#reos .report-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 14px;
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#reos .report-h strong {
  font-family: var(--nlm-font-display);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
}

/* The brief's values are phrases, not single numbers: one per row. */
#reos .kpis {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

#reos .kpis li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.3;
  background: rgb(255 255 255 / 5%);
  border-radius: 10px;
  padding: 10px 12px;
}

#reos .kpis li:first-child {
  grid-column: 1 / -1;
}

#reos .kpis b {
  flex: 0 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--nlm-font-display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
  text-align: end;
  color: #fff;
}

#reos .kpis li:first-child b {
  font-size: 28px;
}

#reos .kpis .is-bad b {
  color: #ff8a8a;
}

#reos .kpis .is-warn b {
  color: #fbbf24;
}

#reos .kpis .is-ok b {
  color: #5ee08a;
}

#reos .report-n {
  margin: 14px 0 0;
  font-size: 11.5px;
  font-style: italic;
  color: var(--nlm-navy-400);
}

#reos .blind {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgb(8 9 31 / 72%);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--nlm-ease), visibility 0.5s;
}

#reos .blind b {
  display: block;
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}

#reos .blind p {
  max-width: 34ch;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--nlm-navy-300);
}

#reos [data-state="before"] .blind {
  opacity: 1;
  visibility: visible;
}

/* ---------- 08 who it's for ---------- */

#reos .tabp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 36px);
  animation: pq-rise 0.45s var(--nlm-ease-soft);
}

#reos .tabp h3 {
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--nlm-fg-1);
  margin: 16px 0 10px;
}

#reos .tabp p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--nlm-fg-2);
  margin: 0;
}

#reos .ex {
  background: var(--nlm-gray-50);
  border: 1px solid var(--nlm-line);
  border-radius: 14px;
  padding: 18px;
}

#reos .tabp .ex-l {
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nlm-fg-3);
  margin-bottom: 12px;
}

#reos .tabp .ex-q .alert {
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: clamp(15px, 1.5vw, 17px);
  padding: 12px 14px;
}

/* ---------- 09 getting started ---------- */

#reos .tl-wrap {
  position: relative;
}

#reos .tl {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
}

#reos .tl-line {
  position: absolute;
  top: 21px;
  inset-inline: 21px;
  height: 2px;
  background: var(--nlm-signal);
  transform-origin: 0 50%;
}

[dir="rtl"] #reos .tl-line {
  transform-origin: 100% 50%;
}

#reos .tl li {
  position: relative;
}

#reos .tl-dot {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--nlm-navy-900);
  box-shadow: 0 0 0 6px #fff;
}

#reos .tl-dot :is(svg, i[data-lucide]) {
  width: 20px;
  height: 20px;
}

#reos .tl h3 {
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--nlm-fg-1);
  margin: 0 0 8px;
}

#reos .tl p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--nlm-fg-2);
  margin: 0;
}

/* ---------- closing ---------- */

#reos .final .h2 {
  max-width: 24ch;
  margin-bottom: 16px;
}

#reos .cta-note {
  max-width: 46ch;
  margin: 0 auto 32px;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--nlm-navy-300);
}

/* Twelve documents, pulled into the line and the wordmark. */
#reos .cv-t {
  top: calc(50% - 7px);
  inset-inline-start: calc(50% - 7px);
  width: 14px;
  height: 10px;
  border-radius: 2px;
  background: var(--re-c1);
  border: 0;
  box-shadow: 0 0 0 4px rgb(255 255 255 / 12%);
}

#reos .also {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 30px 0 0;
  font-family: var(--nlm-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--nlm-navy-400);
}

#reos .also a {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  padding: 5px 12px;
  transition: border-color 0.2s, background 0.2s;
}

#reos .also a:hover {
  border-color: var(--nlm-signal);
  background: var(--nlm-signal);
}

@media (width <= 1180px) {
  #reos .feats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #reos .roles ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (width <= 980px) {
  #reos .steps,
  #reos .feats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* The meter rides the bottom of the screen here (see product-page.css), so it
     is kept short: the four figures sit two by two. */
  #reos .meter-l {
    margin-bottom: 4px;
  }

  #reos .meter-h {
    font-size: 22px;
    margin: 0 0 8px;
  }

  #reos .meter-rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 16px;
    font-size: 11.5px;
    line-height: 1.3;
  }

  #reos .meter-rows > div {
    flex-direction: column;
    gap: 1px;
  }

  #reos .meter-x {
    display: none;
  }
}

@media (width <= 640px) {
  #reos .tl-line {
    display: none;
  }

  #reos .day-ctl {
    width: 100%;
  }

  #reos .day-ctl :is(.btn-n, .btn-g) {
    flex: 1;
    justify-content: center;
  }

  #reos .kpis {
    grid-template-columns: minmax(0, 1fr);
  }
  /* The table reads as stacked cards: pain, then what the AI does, then the outcome. */
  #reos .core,
  #reos .core tbody,
  #reos .core tr,
  #reos .core :is(th, td) {
    display: block;
  }

  #reos .core thead {
    display: none;
  }

  #reos .core tr {
    margin-bottom: 8px;
    background: var(--nlm-navy-900);
    border: 1px solid var(--nlm-line-dark);
    border-radius: 10px;
    padding: 8px 4px;
  }

  #reos .core tbody :is(th, td),
  #reos .core tbody :is(th, td):is(:first-child, :last-child) {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding-block: 4px;
  }
}

#reos .display {
  font-family: var(--nlm-font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.9vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 18px;
  text-wrap: balance;
}

/* The H1 names the product for search; the display line is the headline. */
#reos .hero-h.re-h1 {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--nlm-navy-300);
  margin-bottom: 12px;
}

#reos .btns {
  flex-wrap: wrap;
}

/* ---------- what if ---------- */
#reos .turn-already {
  margin: 0;
  font-family: var(--nlm-font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--nlm-navy-300);
}

#reos .turn.is-armed:not(.is-on) .turn-already {
  color: var(--nlm-fg-3);
}

/* ---------- 03 shared panels (key-value rows, decisions) ---------- */
#reos .day-n li.is-ok b {
  color: var(--nlm-success);
}

#reos .kv {
  margin: 0;
  font-size: 12.5px;
}

#reos .kv > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid var(--nlm-line);
}

#reos .kv > div:last-child {
  border-bottom: 0;
}

#reos .kv dt {
  color: var(--nlm-fg-3);
}

#reos .kv dd {
  margin: 0;
  white-space: nowrap;
  font-weight: 600;
  text-align: end;
  color: var(--nlm-fg-1);
}

#reos .quote {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--nlm-fg-2);
  background: var(--nlm-gray-50);
  border-inline-start: 3px solid var(--nlm-line-strong);
  border-radius: 10px;
  padding: 10px 12px;
}

#reos [data-d-actions][hidden],
#reos [data-d-reply][hidden] {
  display: none;
}


/* ---------- 03 counters and controls ---------- */
#reos .day-n .is-warn b {
  color: var(--re-warn-ink);
}

#reos [data-d-approve][hidden] {
  display: none;
}

/* A setting, not a warning: grey when off, on a light panel. */
#reos .dr-sw {
  font-size: 13px;
  color: var(--nlm-fg-1);
  background: #fff;
  border-color: var(--nlm-line-strong);
}

#reos .dr-sw[aria-checked="false"] .qsw-k {
  background: var(--nlm-fg-3);
}

#reos .auto-note {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--nlm-fg-2);
}

#reos .auto-note summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
  color: var(--nlm-fg-1);
}

#reos .auto-note summary :is(svg, i[data-lucide]) {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

#reos .auto-note[open] summary :is(svg, i[data-lucide]) {
  transform: rotate(180deg);
}

#reos .auto-note p {
  max-width: 780px;
  margin: 8px 0 0;
}

/* ---------- 05 the step flow ---------- */
#reos .fo {
  --p: 1;

  max-width: 860px;
}

#reos .fo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

#reos .fo-file {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 14px;
  color: var(--nlm-navy-300);
}

#reos .fo-file b {
  font-family: var(--nlm-font-mono);
  color: #fff;
}

#reos .fo-file :is(svg, i[data-lucide]) {
  width: 18px;
  height: 18px;
  color: var(--re-cyan);
}

#reos .fo-st {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* The line the file travels, filled as far as it has come. */
#reos .fo-st::before,
#reos .fo-st::after {
  content: "";
  position: absolute;
  inset-block-start: 18px;
  inset-inline-start: 17px;
  width: 2px;
  height: calc(100% - 36px);
  background: rgb(255 255 255 / 12%);
}

#reos .fo-st::after {
  height: calc((100% - 36px) * var(--p));
  background: var(--re-cyan);
  transition: height 0.6s var(--nlm-ease);
}

#reos .fo-s {
  position: relative;
  display: grid;
  grid-template-columns: 36px 96px minmax(0, 1fr);
  grid-template-areas:
    "n w t"
    "n w d";
  gap: 0 12px;
  align-items: center;
  color: var(--nlm-navy-300);
  opacity: 0.45;
  transition: opacity 0.35s, color 0.35s;
}

#reos .fo-s.is-done,
#reos .fo-s.is-on {
  opacity: 1;
}

#reos .fo-n {
  grid-area: n;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--nlm-navy-300);
  background: var(--nlm-navy-900);
  border: 1.5px solid rgb(255 255 255 / 18%);
  transition: background 0.35s, border-color 0.35s, color 0.35s;
}

#reos .fo-n :is(svg, i[data-lucide]) {
  width: 16px;
  height: 16px;
}

#reos .fo-s.is-ai:is(.is-done, .is-on) .fo-n {
  color: var(--nlm-navy-950);
  background: var(--re-cyan);
  border-color: var(--re-cyan);
}

#reos .fo-s.is-gold:is(.is-done, .is-on) .fo-n {
  color: var(--pq-gold-ink);
  background: var(--pq-gold);
  border-color: var(--pq-gold);
}

#reos .fo-s:not(.is-ai, .is-gold):is(.is-done, .is-on) .fo-n {
  color: #fff;
  border-color: rgb(255 255 255 / 45%);
}

#reos .fo-s.is-on .fo-n {
  box-shadow: 0 0 0 6px rgb(34 211 238 / 18%);
}

#reos .fo-s b {
  grid-area: t;
  font-family: var(--nlm-font-display);
  font-size: 15.5px;
  color: #fff;
}

#reos .fo-d {
  grid-area: d;
  font-size: 13.5px;
}

#reos .fo-s small {
  grid-area: t;
  justify-self: end;
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--re-cyan);
}

#reos .fo-s.is-gold small {
  color: var(--pq-gold);
}

#reos .fo-cap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: clamp(17px, 1.8vw, 21px);
  color: #fff;
  transition: opacity 0.4s;
}

#reos .fo-cap :is(svg, i[data-lucide]) {
  width: 20px;
  height: 20px;
  color: var(--nlm-success);
}

#reos .fo-cap em {
  font-family: var(--nlm-font-body, inherit);
  font-size: 13px;
  font-weight: 400;
  color: var(--nlm-navy-400);
}

#reos .fo-cap.is-off {
  opacity: 0;
  transform: none;
}



/* ---------- shared pieces from customsos.css (hero end frame, chips, table bars) ---------- */
#reos .fh-end {
  position: absolute;
  inset: -14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--nlm-navy-950);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--nlm-ease), visibility 0.5s;
}

#reos .fh-word {
  font-family: var(--nlm-font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px);
  color: #fff;
}

#reos .fh-by {
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--nlm-navy-300);
}

#reos .sol .qchip {
  color: #fff;
  background: rgb(255 255 255 / 6%);
  border-color: rgb(255 255 255 / 20%);
}

#reos .sol .qchip[aria-pressed="true"] {
  color: var(--nlm-navy-950);
  background: #fff;
  border-color: #fff;
}

#reos .bd-bar {
  position: relative;
  width: 70px;
  height: 7px;
  background: var(--nlm-gray-100);
  border-radius: 999px;
  overflow: hidden;
}

#reos .bd-bar i {
  position: absolute;
  inset: 0;
  inset-inline-end: auto;
  width: calc(var(--f) * 100%);
  background: var(--rk, var(--nlm-fg-3));
  border-radius: 999px;
  transition: width 0.5s var(--nlm-ease);
}

#reos .bd-r {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- shared pieces from freightos.css (04 sub-line, decision bar, end frame) ---------- */
#reos .vsub {
  margin: -6px 0 14px;
  font-size: 13px;
  color: var(--nlm-fg-3);
}

#reos .bg-d {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 14px;
  border: 1px solid var(--nlm-line);
  border-inline-start: 4px solid var(--nlm-danger);
  border-radius: 12px;
  padding: 12px 14px;
}

#reos .bg-d p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  color: var(--nlm-fg-1);
}

#reos .bg-d p :is(svg, i[data-lucide]) {
  flex: none;
  width: 15px;
  height: 15px;
  color: var(--nlm-signal);
}



#reos .frh-by {
  font-size: 12px;
  color: var(--nlm-navy-300);
}

/* ============================================================
   Real EstateOS objects
   ============================================================ */

/* The H1 names the product for search; the display line is the headline. */
#reos .re-idea {
  display: block;
  margin-top: 10px;
  font-style: italic;
  color: var(--re-cyan);
}

/* The brand chain under the hero buttons: LAND -> ... -> MAINTAIN. */
#reos .re-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--re-cyan);
}

#reos .re-chain li + li::before {
  content: "→";
  margin-inline-end: 6px;
  color: var(--nlm-navy-400);
}

[dir="rtl"] #reos .re-chain li + li::before {
  content: "←";
}

/* ---------- the Rawdah Residences drawing ----------
   One SVG, six states (data-s). Layers fade in as the building grows. */
#reos .rb {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

#reos .rb > g {
  transition: opacity 0.6s var(--nlm-ease);
}

#reos .rb :is(path, rect, circle) {
  vector-effect: non-scaling-stroke;
}

#reos .rb-gl {
  fill: none;
  stroke: var(--nlm-navy-400);
  stroke-width: 1.5;
}

#reos .rb-plot {
  fill: rgb(34 211 238 / 8%);
  stroke: var(--re-cyan);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}

#reos .rb-plan {
  fill: none;
  stroke: var(--re-cyan);
  stroke-width: 0.8;
  opacity: 0.6;
}

#reos .rb-peg {
  stroke: var(--re-warn);
  stroke-width: 1.5;
}

#reos .rb-pegc {
  fill: var(--re-warn);
}

#reos .rb-bp path {
  fill: none;
  stroke: var(--re-cyan);
  stroke-width: 0.6;
  stroke-dasharray: 2 2;
  opacity: 0.6;
}

#reos .rb-found rect {
  fill: var(--nlm-navy-500);
}

#reos .rb-found path {
  stroke: var(--nlm-navy-500);
  stroke-width: 2;
}

#reos .rb-crane path {
  fill: none;
  stroke: var(--re-warn);
  stroke-width: 1.6;
}

#reos .rb-frame path {
  stroke: var(--nlm-navy-400);
  stroke-width: 1.3;
}

#reos .rb-frame .rb-slab {
  stroke-width: 2;
}

#reos .rb-shell {
  fill: var(--nlm-navy-800);
  stroke: var(--nlm-navy-600);
}

#reos :is(.rb-roof, .rb-door) {
  fill: var(--nlm-navy-600);
}

#reos .rb-w {
  fill: var(--nlm-navy-700);
  transition: fill 0.6s var(--nlm-ease);
}

#reos .rb[data-s="occupied"] .rb-lit {
  fill: var(--nlm-navy-300);
}

#reos .rb .rb-hero {
  fill: var(--re-cyan);
}

#reos .rb-tree {
  fill: var(--nlm-success);
}

#reos .rb-trunk {
  stroke: var(--nlm-navy-500);
  stroke-width: 2;
}

#reos .rb :is(.rb-bp, .rb-found, .rb-crane, .rb-frame, .rb-face, .rb-life) {
  opacity: 0;
}

#reos .rb:is([data-s="design"], [data-s="foundations"]) .rb-bp,
#reos .rb:is([data-s="foundations"], [data-s="structure"], [data-s="complete"], [data-s="occupied"]) .rb-found,
#reos .rb:is([data-s="foundations"], [data-s="structure"]) .rb-crane,
#reos .rb:is([data-s="structure"], [data-s="complete"], [data-s="occupied"]) .rb-frame,
#reos .rb:is([data-s="complete"], [data-s="occupied"]) .rb-face,
#reos .rb[data-s="occupied"] .rb-life {
  opacity: 1;
}

#reos .rb:not([data-s="land"], [data-s="design"]) .rb-land {
  opacity: 0.25;
}

/* ---------- the data line ----------
   The same thin cyan line everywhere, with a slow pulse travelling along it
   in the reading direction. .is-broken (Seven systems) breaks it in red. */
#reos .dline {
  position: relative;
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--re-cyan);
  box-shadow: 0 0 8px rgb(34 211 238 / 45%);
  overflow: hidden;
  transition: background 0.4s var(--nlm-ease), box-shadow 0.4s var(--nlm-ease);
}

#reos .dline-p {
  position: absolute;
  inset-block: 0;
  inset-inline-start: -20%;
  width: 18%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: re-run 3.4s linear infinite;
}

@keyframes re-run {
  to {
    inset-inline-start: 110%;
  }
}

/* ---------- hero: the teaser ----------
   Layers stacked in one cell: the captions, the site (building + windows),
   the line with its stage labels, the central panel and the end frame. The
   static frame (no data-f) is frame 4: built, connected, one panel. */
#reos .reh-in {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 420px;
}

#reos .reh-cap {
  grid-area: 1 / 1;
  margin: 0;
  font-family: var(--nlm-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.5s var(--nlm-ease);
}

#reos .reh:not([data-f]) .reh-one,
#reos .reh[data-f="1"] .reh-ask,
#reos .reh[data-f="3"] .reh-not,
#reos .reh[data-f="4"] .reh-one {
  opacity: 1;
}

#reos .reh-site {
  position: relative;
  grid-row: 2;
  display: grid;
  place-items: center;
  min-height: 250px;
}

#reos .reh-b {
  width: min(78%, 330px);
  color: var(--nlm-navy-400);
}

#reos .reh-plot {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  margin: 0;
  font-size: 11px;
  text-align: center;
  color: var(--nlm-navy-400);
}

/* The software windows: one card each, around the plot. */
#reos .win-bar {
  display: flex;
  gap: 3px;
  padding: 4px 6px;
  border-block-end: 1px solid rgb(255 255 255 / 10%);
}

#reos .win-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nlm-navy-500);
}

#reos .reh-wins {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

#reos .reh-wins li {
  position: absolute;
  width: 128px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  background: var(--nlm-navy-800);
  box-shadow: 0 8px 22px rgb(0 0 0 / 35%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.45s var(--nlm-ease), transform 0.45s var(--nlm-ease);
  transition-delay: calc(var(--i) * 90ms);
}

#reos .reh-wins li:nth-child(1) {
  inset-block-start: 2%;
  inset-inline-start: 0;
}

#reos .reh-wins li:nth-child(2) {
  inset-block-start: 2%;
  inset-inline-end: 0;
}

#reos .reh-wins li:nth-child(3) {
  inset-block-start: 38%;
  inset-inline-start: 0;
}

#reos .reh-wins li:nth-child(4) {
  inset-block-start: 38%;
  inset-inline-end: 0;
}

#reos .reh-wins li:nth-child(5) {
  inset-block-start: 72%;
  inset-inline-start: 0;
}

#reos .reh-wins li:nth-child(6) {
  inset-block-start: 72%;
  inset-inline-end: 0;
}

#reos .win-t {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 11px;
  color: #fff;
}

#reos .win-t :is(svg, i[data-lucide]) {
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--nlm-navy-300);
}

#reos .reh[data-f="1"] .reh-wins li {
  opacity: 1;
  transform: none;
}

#reos .reh[data-f="1"] .reh-wins li:nth-child(odd) {
  border-color: rgb(186 57 62 / 60%);
}

#reos .reh[data-f="2"] .reh-wins li {
  opacity: 0.12;
  transform: none;
}

/* The key passes to the buyer; the wrench pulses after handover. */
#reos :is(.reh-key, .reh-wrench) {
  position: absolute;
  inset-block-end: 16%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--nlm-navy-950);
  background: var(--pq-gold);
  opacity: 0;
  transition: opacity 0.4s var(--nlm-ease), transform 0.8s var(--nlm-ease);
}

#reos .reh-key {
  inset-inline-start: 46%;
}

#reos .reh-wrench {
  inset-inline-start: 62%;
  inset-block-end: 54%;
  color: #fff;
  background: var(--nlm-signal);
}

#reos :is(.reh-key, .reh-wrench) :is(svg, i[data-lucide]) {
  width: 16px;
  height: 16px;
}

#reos .reh[data-b="key"] .reh-key {
  opacity: 1;
  transform: translateY(26px);
}

#reos .reh[data-b="fix"] .reh-wrench {
  opacity: 1;
  animation: re-ping 0.9s var(--nlm-ease) 2;
}

@keyframes re-ping {
  50% {
    transform: scale(1.25);
  }
}

/* The line along the bottom, filled as far as the stages have come. */
#reos .reh-line {
  grid-row: 3;
  display: grid;
  gap: 8px;
}

#reos .reh-dl {
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 1));
  transition: transform 0.6s var(--nlm-ease);
}

[dir="rtl"] #reos .reh-dl {
  transform-origin: 100% 50%;
}

#reos .reh-stages {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 18px;
}

#reos .reh-stages li {
  grid-area: 1 / 1;
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-align: center;
  color: var(--re-cyan);
  opacity: 0;
  transition: opacity 0.3s var(--nlm-ease);
}

#reos .reh:not([data-f="2"], [data-f="3"]) .reh-stages {
  visibility: hidden;
}

#reos .reh[data-st="0"] .reh-stages li:nth-child(1),
#reos .reh[data-st="1"] .reh-stages li:nth-child(2),
#reos .reh[data-st="2"] .reh-stages li:nth-child(3),
#reos .reh[data-st="3"] .reh-stages li:nth-child(4),
#reos .reh[data-st="4"] .reh-stages li:nth-child(5),
#reos .reh[data-st="5"] .reh-stages li:nth-child(6),
#reos .reh[data-st="6"] .reh-stages li:nth-child(7),
#reos .reh[data-st="7"] .reh-stages li:nth-child(8),
#reos .reh[data-st="8"] .reh-stages li:nth-child(9),
#reos .reh[data-st="9"] .reh-stages li:nth-child(10) {
  opacity: 1;
}

#reos .reh[data-f="1"] .reh-line {
  opacity: 0;
}

/* The central panel: the six windows become one. */
#reos .reh-panel {
  position: absolute;
  inset-block-start: 50%;
  inset-inline: 8%;
  transform: translateY(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgb(34 211 238 / 45%);
  border-radius: 14px;
  background: rgb(8 9 31 / 88%);
  box-shadow: 0 0 0 1px rgb(34 211 238 / 15%), 0 18px 40px rgb(0 0 0 / 45%);
  transition: opacity 0.5s var(--nlm-ease), visibility 0.5s;
}

#reos .reh[data-f]:not([data-f="4"]) .reh-panel {
  opacity: 0;
  visibility: hidden;
}

#reos .reh-pw {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

#reos .reh-pw :is(svg, i[data-lucide]) {
  width: 18px;
  height: 18px;
  color: var(--re-cyan);
}

#reos .reh-chain {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#reos .reh-chain li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid rgb(34 211 238 / 40%);
  border-radius: 999px;
  font-size: 11px;
  color: #fff;
  background: rgb(34 211 238 / 10%);
}

#reos .reh-chain :is(svg, i[data-lucide]) {
  width: 12px;
  height: 12px;
  color: var(--re-cyan);
}

#reos .reh.is-armed[data-f="4"] .reh-chain li {
  animation: re-lit 0.4s var(--nlm-ease) both;
  animation-delay: calc(var(--i) * 140ms + 300ms);
}

@keyframes re-lit {
  from {
    opacity: 0.2;
  }
}

#reos .reh[data-f="5"] .fh-end {
  opacity: 1;
  visibility: visible;
}

#reos .reh-land {
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--re-cyan);
}

/* ---------- 01 the pain loops ---------- */
#reos .qa > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

#reos .qa :is(svg, i[data-lucide]) {
  flex: none;
  width: 14px;
  height: 14px;
}

/* 1: windows multiply; someone copies a number between them. */
#reos .qa-wins {
  flex-wrap: wrap;
  gap: 4px;
  max-width: 190px;
}

#reos .qa-wins > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border: 1px solid var(--nlm-line);
  border-radius: 6px;
  font-size: 10.5px;
  color: var(--nlm-fg-2);
  background: var(--nlm-gray-50);
  animation: re-pop 4.8s var(--nlm-ease) infinite;
  animation-delay: calc(var(--i) * 0.45s);
}

@keyframes re-pop {
  0%,
  8% {
    opacity: 0;
    transform: scale(0.7);
  }

  16%,
  86% {
    opacity: 1;
    transform: none;
  }
}

#reos .qa-copy {
  color: var(--nlm-danger);
  font-weight: 600;
}

/* 2: the PO bar quietly grows past the BOQ line. */
#reos .qa-bars {
  position: relative;
  display: grid !important;
  gap: 8px;
  width: 190px;
}

#reos :is(.qa-boq, .qa-po) {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

#reos :is(.qa-boq, .qa-po) i {
  height: 10px;
  border-radius: 5px;
}

#reos .qa-boq i {
  width: 80%;
  background: var(--nlm-gray-300);
}

#reos .qa-po i {
  width: 92%;
  background: var(--nlm-danger);
  transform-origin: 0 50%;
  animation: re-grow 4.5s var(--nlm-ease) infinite;
}

[dir="rtl"] #reos .qa-po i {
  transform-origin: 100% 50%;
}

@keyframes re-grow {
  0%,
  10% {
    transform: scaleX(0.6);
  }

  70%,
  100% {
    transform: none;
  }
}

#reos .qa-mark {
  position: absolute;
  inset-block: -4px;
  inset-inline-start: calc(34px + 6px + (100% - 40px) * 0.8);
  width: 0;
  border-inline-start: 2px dashed var(--nlm-fg-3);
}

/* 3: instalment dates turn red; a reminder nobody sends. */
#reos .qa-cal {
  flex-wrap: wrap;
  max-width: 130px;
  gap: 4px !important;
}

#reos .qa-cal-t {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  font-size: 11px;
  color: var(--nlm-fg-2);
}

#reos .qa-cal > i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--nlm-gray-100);
  border: 1px solid var(--nlm-line);
  animation: re-late 6s steps(1) infinite;
  animation-delay: calc(var(--i) * 0.6s);
}

@keyframes re-late {
  50%,
  100% {
    background: var(--nlm-danger);
    border-color: var(--nlm-danger);
  }
}

#reos .qa-phone {
  color: var(--nlm-fg-3);
  font-style: italic;
}

/* 4: the key waits on its hook; the checklist stays half done. */
#reos .qa-hook {
  flex-direction: column;
  color: var(--nlm-fg-2);
}

#reos .qa-hook :is(svg, i[data-lucide]) {
  width: 26px;
  height: 26px;
  color: var(--re-warn);
  transform-origin: 50% 0;
  animation: re-swing 3s ease-in-out infinite;
}

@keyframes re-swing {
  50% {
    transform: rotate(14deg);
  }
}

#reos .qa-list {
  flex-wrap: wrap;
  max-width: 150px;
  padding: 8px;
  border: 1px solid var(--nlm-line);
  border-radius: 8px;
  color: var(--nlm-fg-2);
}

#reos .qa-list > span {
  width: 100%;
  font-size: 11px;
}

#reos .qa-list b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  color: var(--nlm-fg-3);
  border: 1px dashed var(--nlm-line-strong);
}

#reos .qa-list b.is-done {
  color: #fff;
  background: var(--nlm-success);
  border: 0;
}

#reos .qa-list b :is(svg, i[data-lucide]) {
  width: 12px;
  height: 12px;
}

/* 5: a fault two years on: no warranty on file, so the developer pays. */
#reos .qa-5 {
  flex-wrap: wrap;
  align-content: center;
}

#reos .qa-ticket {
  padding: 5px 8px;
  border: 1px solid var(--nlm-line);
  border-radius: 8px;
  color: var(--nlm-fg-1);
  background: var(--nlm-gray-50);
}

#reos .qa-wf {
  gap: 8px;
  padding: 5px 8px;
  border: 1.5px dashed var(--nlm-danger);
  border-radius: 8px;
  color: var(--re-crit-ink);
  background: var(--nlm-danger-soft);
}

#reos .qa-paid {
  padding: 3px 8px;
  border: 2px solid var(--nlm-danger);
  border-radius: 6px;
  font-family: var(--nlm-font-mono);
  font-size: 10.5px !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nlm-danger);
  transform: rotate(-4deg);
  animation: re-stamp 4.5s var(--nlm-ease) infinite;
}

@keyframes re-stamp {
  0%,
  45% {
    opacity: 0;
    transform: rotate(-4deg) scale(1.6);
  }

  55%,
  100% {
    opacity: 1;
    transform: rotate(-4deg);
  }
}

/* ---------- turning point: seven windows, one line ---------- */
#reos .tw {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 22px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

#reos .tw-w {
  position: relative;
  border: 1px solid rgb(34 211 238 / 45%);
  border-radius: 8px;
  background: var(--nlm-navy-800);
  transition: border-color 0.5s var(--nlm-ease), background 0.5s var(--nlm-ease);
}

#reos .tw-t {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

#reos .tw-t :is(svg, i[data-lucide]) {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--re-cyan);
}

/* The joint to the next window: cyan when connected, broken red when not. */
#reos .tw-j {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 100%;
  width: 22px;
  height: 2px;
  background: var(--re-cyan);
  box-shadow: 0 0 6px rgb(34 211 238 / 50%);
  transition: background 0.5s var(--nlm-ease);
}

#reos .tw-x {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 50%;
  translate: -50% 0;
  font-family: var(--nlm-font-mono);
  font-size: 9.5px;
  white-space: nowrap;
  color: var(--nlm-danger);
  opacity: 0;
  transition: opacity 0.4s var(--nlm-ease);
}

[dir="rtl"] #reos .tw-x {
  translate: 50% 0;
}

#reos .turn.is-armed:not(.is-on) .tw-w {
  border-color: var(--nlm-line-strong);
  background: #fff;
}

#reos .turn.is-armed:not(.is-on) .tw-t {
  color: var(--nlm-fg-1);
}

#reos .turn.is-armed:not(.is-on) .tw-t :is(svg, i[data-lucide]) {
  color: var(--nlm-fg-3);
}

#reos .turn.is-armed:not(.is-on) .win-bar {
  border-color: var(--nlm-line);
}

#reos .turn.is-armed:not(.is-on) .tw-j {
  background: repeating-linear-gradient(90deg, var(--nlm-danger) 0 5px, transparent 5px 9px);
  box-shadow: none;
}

#reos .turn.is-armed:not(.is-on) .tw-x {
  opacity: 1;
}

/* ---------- 02 the lifecycle line explorer ---------- */
#reos .lx {
  display: grid;
  gap: 22px;
  margin-bottom: 56px;
}

#reos .lx-sw {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#reos .lx-g {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
}

#reos .lx-art {
  display: grid;
  place-items: center;
  min-height: 230px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 16px;
  background: rgb(15 17 55 / 60%);
  padding: 16px;
}

#reos .lx-b {
  width: min(100%, 340px);
}

#reos .lx-card {
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 16px;
  background: var(--nlm-navy-900);
  padding: 20px;
  min-height: 260px;
}

#reos .lx-h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 14px;
}

#reos .lx-h b {
  font-family: var(--nlm-font-display);
  font-size: 22px;
  color: #fff;
}

#reos .lx-n {
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  color: var(--nlm-navy-300);
}

#reos :is(.lx-soon, .lx-tag, .soon) {
  display: inline-block;
  padding: 2px 8px;
  border: 1px dashed currentcolor;
  border-radius: 999px;
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nlm-navy-300);
}

#reos .lx-soon[hidden] {
  display: none;
}

#reos .lx-rows {
  display: grid;
  gap: 12px;
  margin: 0;
}

#reos .lx-rows dt {
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nlm-navy-300);
  margin-bottom: 3px;
}

#reos .lx-rows dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
}

#reos .lx-ok {
  color: var(--re-cyan);
}

#reos .lx-lost {
  display: none;
  align-items: center;
  gap: 6px;
  color: #ff8a8f;
}

#reos .lx-lost :is(svg, i[data-lucide]) {
  width: 15px;
  height: 15px;
}

#reos .lx[data-mode="seven"] .lx-ok {
  display: none;
}

#reos .lx[data-mode="seven"] .lx-lost {
  display: inline-flex;
}

#reos .lx-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

#reos .lx-nav[hidden] {
  display: none;
}

#reos .lx-line {
  position: relative;
}

#reos .lx-dl {
  position: absolute;
  inset-block-start: 21px;
  inset-inline: 6%;
}

#reos .lx[data-mode="seven"] .lx-dl {
  background: repeating-linear-gradient(90deg, var(--nlm-danger) 0 16px, transparent 16px 26px);
  box-shadow: none;
}

#reos .lx[data-mode="seven"] .lx-dl .dline-p {
  display: none;
}

#reos .lx-stops {
  position: relative;
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

#reos .lx-stops li {
  position: relative;
  display: grid;
  justify-items: center;
}

#reos .lx-stop {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 6px;
  font: inherit;
  color: var(--nlm-navy-300);
  background: none;
  border: 0;
  padding: 0 2px;
  cursor: pointer;
}

#reos .lx-dot {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--nlm-navy-600);
  background: var(--nlm-navy-950);
  transition: border-color 0.3s var(--nlm-ease), background 0.3s var(--nlm-ease);
}

#reos .lx-dot :is(svg, i[data-lucide]) {
  width: 17px;
  height: 17px;
}

#reos .lx-stop.is-past .lx-dot {
  border-color: var(--re-cyan);
  color: var(--re-cyan);
}

#reos .lx-stop.is-on .lx-dot {
  border-color: var(--re-cyan);
  background: var(--re-cyan);
  color: var(--nlm-navy-950);
  box-shadow: 0 0 0 6px rgb(34 211 238 / 18%);
}

#reos .lx-l {
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  color: #fff;
}

#reos .lx-stop:focus-visible {
  outline: 2px solid var(--re-cyan);
  outline-offset: 4px;
  border-radius: 8px;
}

/* In the Seven systems view each gap names what went wrong there. */
#reos .lx-x {
  position: absolute;
  inset-block-start: -18px;
  inset-inline-start: 100%;
  translate: -50% 0;
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  white-space: nowrap;
  color: #ff8a8f;
  opacity: 0;
  transition: opacity 0.3s var(--nlm-ease);
}

[dir="rtl"] #reos .lx-x {
  translate: 50% 0;
}

#reos .lx[data-mode="seven"] .lx-x {
  opacity: 1;
}

/* ---------- 03 follow A-0704 ---------- */
#reos .ut-g {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

#reos .ut-left {
  display: grid;
  gap: 14px;
}

#reos .ut-art {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--nlm-line);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  color: var(--nlm-navy-400);
}

#reos .rb-mark {
  opacity: 0;
  fill: var(--re-cyan);
}

#reos .ut-b .rb-mark {
  opacity: 1;
  animation: re-blink 2.4s ease-in-out infinite;
}

@keyframes re-blink {
  50% {
    opacity: 0.35;
  }
}

#reos .ut-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--nlm-fg-2);
}

#reos .ut-code b {
  font-family: var(--nlm-font-mono);
  font-size: 20px;
  color: var(--re-cyan-ink);
}

#reos .ut-code :is(svg, i[data-lucide]) {
  width: 18px;
  height: 18px;
  color: var(--re-cyan-ink);
}

#reos .ut-sub {
  margin: 0 0 3px;
  font-size: 13px;
  color: var(--nlm-fg-3);
}

#reos .ut-tl {
  border: 1px solid var(--nlm-line);
  border-radius: 16px;
  background: #fff;
  padding: 18px 18px 10px;
}

#reos .ut-track {
  position: relative;
  height: 60px;
  margin: 0 14px;
}

#reos .ut-dl {
  position: absolute;
  inset-block-start: 29px;
  inset-inline: 0;
}

#reos .ut[data-mode="seven"] .ut-dl {
  background: repeating-linear-gradient(90deg, var(--nlm-danger) 0 16px, transparent 16px 26px);
  box-shadow: none;
}

#reos .ut[data-mode="seven"] .ut-dl .dline-p {
  display: none;
}

/* Events close in time sit in alternate lanes, above and below the line. */
#reos .ut-ev {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-start: calc(var(--at) * 100%);
  margin-inline-start: -12px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--re-cyan-ink);
  color: var(--re-cyan-ink);
  background: #fff;
  cursor: pointer;
  padding: 0;
}

#reos .ut-ev:nth-of-type(even) {
  inset-block-start: 32px;
}

#reos .ut-ev[hidden] {
  display: none;
}

#reos .ut-ev :is(svg, i[data-lucide]) {
  width: 12px;
  height: 12px;
}

#reos .ut-ev.is-next {
  border-style: dashed;
  color: var(--nlm-fg-3);
  border-color: var(--nlm-fg-3);
}

#reos .ut-ev.is-at {
  color: #fff;
  background: var(--re-cyan-ink);
}

#reos .ut[data-mode="seven"] .ut-ev.has-break {
  border-color: var(--nlm-danger);
  color: var(--nlm-danger);
}

#reos .ut[data-mode="seven"] .ut-ev.has-break.is-at {
  color: #fff;
  background: var(--nlm-danger);
}

#reos .ut-today {
  position: absolute;
  inset-block: -6px 0;
  inset-inline-start: calc(var(--at) * 100%);
  border-inline-start: 2px solid var(--pq-gold);
}

#reos .ut-today span {
  position: absolute;
  inset-block-start: -14px;
  inset-inline-start: 4px;
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  color: var(--nlm-warn);
}

#reos .ut-range {
  width: 100%;
  margin: 6px 0 0;
  accent-color: var(--re-cyan-ink);
}

#reos .ut-ends {
  display: flex;
  justify-content: space-between;
  margin: 2px 0 0;
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  color: var(--nlm-fg-3);
}

#reos .ut-ev-card {
  border: 1px solid var(--nlm-line);
  border-inline-start: 4px solid var(--re-cyan-ink);
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
  min-height: 116px;
}

#reos .ut-when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 13px;
}

#reos .ut-stage {
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--re-cyan-ink);
  background: rgb(34 211 238 / 14%);
}

#reos .ut-nextl {
  font-size: 12px;
  font-style: italic;
  color: var(--nlm-fg-3);
}

#reos .ut-nextl[hidden] {
  display: none;
}

#reos .ut-what {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--nlm-fg-1);
}

#reos .ut-break {
  display: none;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--re-crit-ink);
}

#reos .ut-break :is(svg, i[data-lucide]) {
  width: 15px;
  height: 15px;
}

#reos .ut[data-mode="seven"] .ut-break.has-text {
  display: flex;
}

#reos .ut-ev-card.is-next {
  border-inline-start-style: dashed;
}

#reos .ut-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

#reos .ut-act[hidden] {
  display: none;
}

#reos .ut-rec {
  border: 1px solid var(--nlm-line);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

#reos .ut-rec .panel-t :is(svg, i[data-lucide]) {
  width: 14px;
  height: 14px;
}

#reos .ut-sales {
  display: none;
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--re-crit-ink);
}

#reos .ut[data-mode="seven"] .ut-sales {
  display: block;
}

#reos .ut-cards {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

#reos .ut-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid rgb(14 116 144 / 25%);
  border-radius: 10px;
  background: rgb(34 211 238 / 6%);
  transition: opacity 0.3s var(--nlm-ease);
}

#reos .ut-card[hidden],
#reos .ut-nexth[hidden] {
  display: none;
}

#reos .ut-card.is-new {
  animation: re-in 0.4s var(--nlm-ease);
}

@keyframes re-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

#reos .ut-card.is-next {
  border-style: dashed;
  border-color: var(--nlm-line-strong);
  background: var(--nlm-gray-50);
}

#reos .ut[data-mode="seven"] .ut-card:not(.is-sales) {
  opacity: 0.3;
  border-style: dashed;
  border-color: var(--nlm-danger);
  background: none;
}

#reos .ut-ci {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: var(--re-cyan-ink);
  background: rgb(34 211 238 / 16%);
}

#reos .ut-ci :is(svg, i[data-lucide]) {
  width: 14px;
  height: 14px;
}

#reos .ut-ct {
  display: grid;
  gap: 1px;
  min-width: 0;
}

#reos .ut-ct b {
  font-size: 13px;
  color: var(--nlm-fg-1);
}

#reos .ut-ct small {
  font-size: 12px;
  color: var(--nlm-fg-3);
}

#reos .ut-nexth {
  margin-top: 4px;
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nlm-fg-3);
}

/* The payment plan. */
#reos .pp-t .pp-st {
  font-size: 12px;
  font-weight: 600;
}

#reos .pp-paid .pp-st {
  color: var(--nlm-success);
}

#reos .pp-overdue .pp-st {
  color: var(--re-crit-ink);
}

#reos .pp-overdue {
  background: var(--nlm-danger-soft);
}

#reos .pp-due .pp-st {
  color: var(--nlm-fg-3);
}

#reos .pp-sum {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--nlm-fg-2);
}

#reos .pp-sum b {
  color: var(--nlm-fg-1);
}

#reos .day-n .is-gold b {
  color: var(--nlm-warn);
}

/* ---------- 04 where the project stands ---------- */
#reos .boq-t .is-ok {
  --rk: var(--nlm-success);
}

#reos .boq-t .is-bad {
  --rk: var(--nlm-danger);
}

#reos .boq-t .is-bad b {
  color: var(--re-crit-ink);
}

#reos .boq-t .is-res {
  --rk: var(--nlm-fg-3);
}

#reos .boq-t .bd-bar {
  width: 110px;
}

#reos .boq-t .bd-r :is(svg, i[data-lucide]) {
  width: 15px;
  height: 15px;
  color: var(--nlm-danger);
}

#reos .boq-t .is-approved b {
  color: var(--nlm-warn);
}

#reos .boq-tot :is(th, td) {
  font-weight: 700;
  border-block-start: 2px solid var(--nlm-line-strong);
}

#reos .bg-d small {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--nlm-fg-3);
}

#reos .ow-sum {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 10px;
}

#reos .ow-sum > div {
  border: 1px solid var(--nlm-line);
  border-radius: 12px;
  padding: 10px 14px;
}

#reos .ow-sum dt {
  font-size: 12px;
  color: var(--nlm-fg-3);
}

#reos .ow-sum dd {
  margin: 2px 0 0;
  font-family: var(--nlm-font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--nlm-fg-1);
}

#reos .ow-sum small {
  font-family: var(--nlm-font-body);
  font-size: 12px;
  font-weight: 500;
}

#reos .ow-sum .is-ok dd {
  color: var(--nlm-success);
}

#reos .ow-sum .is-bad dd {
  color: var(--re-crit-ink);
}

#reos .ow-bar {
  display: block;
  height: 8px;
  margin: 0 0 18px;
  border-radius: 4px;
  background: var(--nlm-danger);
  overflow: hidden;
}

#reos .ow-bar i {
  display: block;
  height: 100%;
  width: calc(var(--f) * 100%);
  background: var(--nlm-success);
}

#reos .ow-age {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

#reos .ow-age li {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 110px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--nlm-fg-2);
}

#reos .ow-age b {
  text-align: end;
  color: var(--nlm-fg-1);
}

#reos .ag-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--nlm-gray-100);
  overflow: hidden;
}

#reos .ag-bar i {
  display: block;
  height: 100%;
  width: calc(var(--f) * 100%);
  background: var(--rk);
}

#reos .ag-b30 {
  --rk: var(--re-warn);
}

#reos .ag-b60 {
  --rk: #e8743b;
}

#reos :is(.ag-b90, .ag-b90p) {
  --rk: var(--nlm-danger);
}

#reos .ow-t .is-hero {
  background: rgb(34 211 238 / 8%);
}

#reos .ow-t th b {
  font-family: var(--nlm-font-mono);
  font-size: 12.5px;
}

#reos .ow-t td:nth-child(4) {
  font-weight: 700;
  color: var(--rk);
}

#reos .ow-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#reos .ow-stmt {
  margin-top: 12px;
  border: 1px solid var(--nlm-line);
  border-radius: 12px;
  background: var(--nlm-gray-50);
  padding: 14px 16px;
}

#reos .ow-stmt[hidden] {
  display: none;
}

#reos .ow-stmt p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--nlm-fg-1);
}

#reos .ow-stmt-l[hidden] {
  display: none;
}

/* The unit grid: one button per apartment. */
#reos .iv-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

#reos .iv-leg {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--nlm-fg-2);
}

#reos .iv-leg li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#reos .iv-leg i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--iv);
  border: 1px solid var(--iv-b, var(--iv));
}

#reos .iv-f {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--nlm-fg-2);
}

#reos .iv-f[hidden] {
  display: none;
}

#reos .iv-f select {
  font: inherit;
  margin-inline-start: 4px;
  padding: 4px 6px;
  border: 1px solid var(--nlm-line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--nlm-fg-1);
}

#reos .is-sold {
  --iv: var(--nlm-success);
}

#reos .is-reserved {
  --iv: var(--re-warn);
}

#reos .is-available {
  --iv: #fff;
  --iv-b: var(--nlm-line-strong);
}

#reos .iv-g {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

#reos .iv {
  display: grid;
  gap: 4px;
  border: 1px solid var(--nlm-line);
  border-radius: 14px;
  padding: 12px;
  background: var(--nlm-gray-50);
}

#reos .iv-row {
  display: grid;
  grid-template-columns: 58px repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  direction: ltr;
}

#reos .iv-fl {
  font-size: 11px;
  color: var(--nlm-fg-3);
  white-space: nowrap;
}

[dir="rtl"] #reos .iv-fl {
  direction: rtl;
  text-align: end;
}

#reos .iv-u {
  aspect-ratio: 1;
  min-width: 0;
  border-radius: 4px;
  border: 1px solid var(--iv-b, var(--iv));
  background: var(--iv);
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s var(--nlm-ease), transform 0.2s var(--nlm-ease);
}

#reos .iv-u:hover {
  transform: scale(1.12);
}

#reos .iv-u.is-sel {
  outline: 2px solid var(--nlm-signal);
  outline-offset: 2px;
}

#reos .iv-u.is-hero {
  box-shadow: inset 0 0 0 3px var(--re-cyan);
}

#reos .iv-u.is-dim {
  opacity: 0.18;
}

#reos .iv-card {
  border: 1px solid var(--nlm-line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}

#reos .iv-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

#reos .iv-code b {
  font-family: var(--nlm-font-mono);
  font-size: 18px;
  color: var(--nlm-fg-1);
}

#reos .iv-code :is(svg, i[data-lucide]) {
  width: 16px;
  height: 16px;
  color: var(--re-cyan-ink);
}

#reos .iv-st {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--nlm-fg-1);
  background: var(--nlm-gray-100);
}

#reos .iv-st.is-sold {
  color: #fff;
  background: var(--nlm-success);
}

#reos .iv-st.is-reserved {
  color: var(--re-warn-ink);
  background: rgb(245 158 11 / 18%);
}

#reos .iv-hero {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--re-crit-ink);
}

#reos .iv-hero[hidden] {
  display: none;
}

#reos [data-iv-book] {
  margin-top: 12px;
}

#reos .bk {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-block-start: 1px solid var(--nlm-line);
}

#reos .bk[hidden] {
  display: none;
}

#reos .bk-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#reos .bk-steps li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 4px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--re-cyan-ink);
  background: rgb(34 211 238 / 12%);
}

#reos .bk-steps span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10.5px;
  color: #fff;
  background: var(--re-cyan-ink);
}

#reos .bk-auto {
  color: var(--re-cyan-ink);
}

#reos .bk input {
  width: 80px;
  font: inherit;
  padding: 4px 8px;
  border: 1px solid var(--nlm-line-strong);
  border-radius: 6px;
}

#reos .bk-rule {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12.5px;
  color: var(--nlm-fg-3);
}

#reos .bk-rule :is(svg, i[data-lucide]) {
  width: 14px;
  height: 14px;
}

#reos [data-bk-disc-a][hidden] {
  display: none;
}

/* ---------- 05 handover isn't the end ---------- */
#reos .hk-g {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  gap: 20px;
  align-items: start;
}

#reos .hk-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

#reos .hk-art {
  position: relative;
  display: grid;
  gap: 8px;
  max-width: 260px;
  color: var(--nlm-navy-400);
}

#reos .hk-key {
  position: absolute;
  inset-block-end: 2px;
  inset-inline-start: calc(var(--p, 1) * 100% - 12px);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--nlm-navy-950);
  background: var(--pq-gold);
  transition: inset-inline-start 0.5s var(--nlm-ease);
}

#reos .hk-key :is(svg, i[data-lucide]) {
  width: 13px;
  height: 13px;
}

#reos .resale {
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 16px;
  background: var(--nlm-navy-900);
  padding: 18px;
}

#reos .resale h3 {
  margin: 10px 0 6px;
  font-family: var(--nlm-font-display);
  font-size: 17px;
  color: #fff;
}

#reos .resale p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--nlm-navy-300);
}

#reos .resale .ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--nlm-success);
  background: rgb(27 121 80 / 22%);
}

/* ---------- 06 capabilities: lifecycle groups (from freightos.css) ---------- */
#reos .feat-g {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 12px;
  font-family: var(--nlm-font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nlm-fg-3);
}

#reos .feat-g :is(svg, i[data-lucide]) {
  flex: none;
  width: 15px;
  height: 15px;
}

#reos .feat h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--nlm-fg-1);
  margin: 12px 0 6px;
}

/* ---------- 06 capabilities: coming stages ---------- */
#reos .feat.is-coming {
  border-style: dashed;
}

#reos .feat .soon {
  color: var(--nlm-fg-3);
}

/* ---------- 08 the sample question ---------- */
#reos .ex-q {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

#reos .ex-q :is(svg, i[data-lucide]) {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--nlm-signal);
}

/* ---------- closing: the QR code (desktop only) ---------- */
#reos .qr {
  display: inline-grid;
  justify-items: center;
  gap: 8px;
  margin: 28px 0 0;
}

#reos .qr img {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

#reos .qr figcaption {
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--nlm-navy-300);
}

/* Company and buyer names are Latin in both languages. */
#reos :is(.ow-buyer, .ut-sub) {
  unicode-bidi: plaintext;
}

/* ---------- responsive (Real EstateOS objects) ---------- */
@media (width <= 980px) {
  #reos .tw {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #reos .tw-j {
    display: none;
  }

  #reos .turn.is-armed:not(.is-on) .tw-w {
    border-style: dashed;
    border-color: var(--nlm-danger);
  }

  #reos :is(.lx-g, .ut-g, .iv-g, .hk-g) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (width <= 767px) {
  #reos .qr {
    display: none;
  }
}

@media (width <= 760px) {
  #reos .reh-in {
    min-height: 400px;
  }

  #reos .reh-wins li {
    width: 104px;
  }

  #reos .win-t {
    font-size: 10px;
    padding: 5px 6px;
  }

  #reos .tw {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #reos .lx-stops {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 4px;
  }

  #reos :is(.lx-dl, .lx-x) {
    display: none;
  }

  #reos .lx-dot {
    width: 36px;
    height: 36px;
  }

  #reos .lx-l {
    font-size: 11px;
  }

  #reos .ut-art {
    grid-template-columns: minmax(0, 1fr);
  }

  #reos .ut-b {
    max-width: 220px;
  }

  #reos .ow-sum {
    grid-template-columns: minmax(0, 1fr);
  }

  #reos .ow-age li {
    grid-template-columns: 80px minmax(0, 1fr) 96px;
    gap: 8px;
  }

  #reos .iv-row {
    grid-template-columns: 44px repeat(12, minmax(0, 1fr));
    gap: 3px;
  }

  #reos .iv-fl {
    font-size: 9.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #reos .qa *,
  #reos .dline-p,
  #reos .ut-b .rb-mark {
    animation: none !important;
  }

  #reos .dline-p {
    display: none;
  }
}

/* The two-word name stays on one line in the closing wordmark. */
#reos .cv-word {
  font-size: clamp(34px, 6vw, 72px);
  white-space: nowrap;
}

@media (width <= 760px) {
  #reos .cv-by {
    font-size: 9px;
  }
}

/* The morning brief's first three rows are sentences: label above, words below. */
#reos .kpis li.is-phrase {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

#reos .kpis li.is-phrase b {
  font-size: 14.5px;
  line-height: 1.4;
  text-align: start;
}

/* 03 has four counters: one row on wide screens, two by two on phones. */
#reos .re-n {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (width <= 760px) {
  #reos .re-n {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 05 steps have no date column; who did it sits on its own line. */
#reos .re-fo .fo-s {
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-areas:
    "n t"
    "n d"
    "n s";
}

#reos .re-fo .fo-s small {
  grid-area: s;
  justify-self: start;
  margin-top: 2px;
}

/* On phones the event buttons are too close to tap: the slider moves the
   timeline there, and the line keeps its today marker. */
@media (width <= 760px) {
  #reos .ut-ev {
    display: none;
  }

  #reos .ut-track {
    height: 34px;
  }

  #reos .ut-dl {
    inset-block-start: 16px;
  }
}

/* Seven roles: two per row on phones, so the words never break mid-word. */
@media (width <= 760px) {
  #reos .roles ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
