/* DESIGN 2 (wave 9): tokens taken verbatim from
   spec/mockups/watchlist_v2/Watchlist.dc.html's <helmet><style> so every
   page shares one visual system with the mockup instead of an
   independent palette. */
:root{--bg:#F3F1EA;--panel:#fff;--ink:#1C1B17;--muted:#5C594F;--line:#DDD9CC;
--hot:#a8341f;--hot-bg:#fbeae6;--review:#8a6a12;--review-bg:#fbf3dd;--none:#5C594F;--none-bg:#eeefec;
--link:#1D4F91;--ok:#2e6b3e;--warn:#8a6a12;--bad:#B4500F;--topbar-bg:#1C1B17;--topbar-muted:#B7B3A4}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);
font:14px/1.5 'IBM Plex Sans',system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
a{color:var(--link)}
a:hover{color:#143A6C}
.topbar{display:flex;align-items:center;gap:28px;padding:0 2rem;height:56px;
  background:var(--topbar-bg);color:#fff;border-bottom:none;white-space:nowrap}
.brand{font-weight:700;text-decoration:none;color:#fff;letter-spacing:.08em;font-size:16px;flex:0 0 auto}
.topbar nav{display:flex;gap:22px;flex-wrap:nowrap;flex:0 0 auto}
.topbar nav a{text-decoration:none;color:var(--topbar-muted);padding:.15rem 0;border-bottom:2px solid transparent;font-size:14px;white-space:nowrap}
.topbar nav a:hover{color:#fff}
.topbar nav a.on{color:#fff;font-weight:600;border-bottom-color:#fff}
.topbar-status{display:flex;align-items:center;gap:.6rem;flex-wrap:nowrap;font-size:12px;
  color:var(--topbar-muted);margin-left:auto;white-space:nowrap;overflow:hidden;min-width:0}
.topbar-status a.health-link{color:var(--topbar-muted);display:flex;align-items:center;gap:.5rem;text-decoration:none;white-space:nowrap}
.topbar-status a.health-link:hover{color:#fff}
.topbar-status .health-dot{width:.5rem;height:.5rem;flex:0 0 auto}
.topbar-status .health-item.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.topbar-status .build-id{color:var(--topbar-muted)}

/* DESIGN 3 (wave 9 polish): the moved-out topbar detail, now a small
   muted line under the page title (same text, same testids, see
   base.html). Wraps freely -- this is prose, not a status bar. */
.page-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin:0 0 1rem}
.page-meta-sep{color:var(--muted)}
main{max-width:1180px;margin:0 auto;padding:1.5rem 32px 3rem}
.page-title{font-size:1.35rem;margin:.25rem 0 .35rem}
.purpose{color:var(--muted);margin:0 0 1.25rem;max-width:70ch}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:1rem 1.1rem;margin-bottom:1.25rem}
.panel>h2{font-size:1rem;margin:0 0 .75rem}
table{width:100%;border-collapse:collapse}
th,td{text-align:left;padding:.5rem .6rem;border-bottom:1px solid var(--line);vertical-align:top}
th{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:600}
tbody tr:last-child td{border-bottom:none}
.scroll{overflow-x:auto}
.badge{display:inline-block;padding:.08rem .45rem;border-radius:3px;font-size:.72rem;font-weight:700;letter-spacing:.03em}
.badge.hot{color:var(--hot);background:var(--hot-bg)}
.badge.review{color:var(--review);background:var(--review-bg)}
.badge.none{color:var(--none);background:var(--none-bg)}
.badge.flag{color:var(--muted);background:var(--none-bg);font-weight:600}
.verbatim{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.82rem;
background:#f2f2ef;border:1px solid var(--line);border-radius:4px;padding:.3rem .5rem;display:inline-block}
.quote{white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.82rem;
background:#f2f2ef;border-left:3px solid var(--line);padding:.6rem .8rem;margin:0 0 .6rem}
.muted{color:var(--muted)}
.unmeasured{color:var(--muted);font-style:italic}
.block-sep{margin-top:1.5rem}
button,.btn{font:inherit;padding:.32rem .8rem;border:1px solid var(--line);border-radius:4px;background:var(--panel);cursor:pointer}
button:hover,.btn:hover{border-color:var(--muted)}
button.on{background:var(--ink);color:var(--panel);border-color:var(--ink)}
footer{max-width:1180px;margin:0 auto;padding:1rem 32px 2rem;color:var(--muted);font-size:.8rem;
display:flex;gap:1rem;justify-content:space-between;flex-wrap:wrap}
.notice{background:#f3f6f8;border:1px solid #d6e2ea;border-radius:6px;padding:.7rem .9rem;margin-bottom:1.25rem}

/* ---------------------------------------------------------------------
   v1.3 addendum additions (spec/SPEC_addendum_v1.3_UX_trust.md).
   New class names, so the other screens' templates can be styled
   consistently against this file:
     .health-line .health-link .health-dot .health-item .health-sep
       .health-green .health-amber .health-red .health-unmeasured
     .data-source-badge .data-source-fixtures .data-source-live
     .build-id (D-026 build identity, next to the data-source badge)
     .feedback-widget .feedback-toggle .feedback-form .feedback-notice
       .feedback-notice.sent .feedback-notice.empty
     .badge-reason (R-UX-5 "why" line under a tier badge, already used by
       retem/web/templates/project.html)
     .item-note (D-017 per-item spec note, already used by
       retem/web/templates/project.html)
   --------------------------------------------------------------------- */

/* R-UX-3 system health line -- topmost bar on every screen. */
/* DESIGN 2 (wave 9): the health line now lives inside the dark topbar
   (mockup: "ALDOT lists N ... we scanned N ... last scan ..."), so it is
   unstyled text/dot on the topbar's own dark background rather than a
   colored full-width row. */
.health-line{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;font-size:12px}
.health-link{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;text-decoration:none;color:inherit}
.health-link:hover{text-decoration:underline;color:#fff}
.health-dot{width:.55rem;height:.55rem;border-radius:50%;display:inline-block;flex:0 0 auto}
.health-item{white-space:nowrap}
.health-sep{color:var(--topbar-muted)}
.health-green .health-dot{background:#3FA34D}
.health-amber .health-dot{background:#D9A441}
.health-red .health-dot{background:#E05B3B}
.health-unmeasured .health-dot{background:var(--topbar-muted)}

/* data-source indicator (crawl_run.source: fixtures vs. live). */
.data-source-badge{font-size:.68rem;font-weight:700;letter-spacing:.04em;
  padding:.12rem .5rem;border-radius:3px;flex:0 0 auto;white-space:nowrap}
.data-source-fixtures{background:var(--review-bg);color:var(--review)}
.data-source-live{background:#e4f0e7;color:var(--ok)}

/* D-026 build identity (near the data-source indicator): version + a
   code-derived hash + process-start time, so a screenshot can be told
   apart from a stale server process running old code. Deliberately
   muted/small -- it's provenance metadata, not a headline. */
.build-id{font-size:.66rem;color:var(--muted);white-space:nowrap;flex:0 0 auto}

/* R-UX-9 feedback widget: a native <details>/<summary> disclosure, no JS. */
.feedback-widget{position:relative;flex:0 0 auto}
.feedback-toggle{list-style:none;user-select:none;height:26px;padding:0 .6rem;font-size:11px;
  border-color:var(--topbar-muted);color:var(--topbar-muted);background:transparent}
.feedback-toggle:hover{border-color:#fff;color:#fff}
.feedback-toggle::-webkit-details-marker{display:none}
.feedback-form{position:absolute;right:0;top:calc(100% + .35rem);z-index:20;color:var(--ink);
  background:var(--panel);border:1px solid var(--line);border-radius:6px;
  padding:.75rem;box-shadow:0 4px 16px rgba(0,0,0,.10);
  display:flex;flex-direction:column;gap:.5rem;width:min(320px,80vw)}
.feedback-form label{font-size:.78rem;color:var(--muted)}
.feedback-form textarea{font:inherit;width:100%;resize:vertical;
  border:1px solid var(--line);border-radius:4px;padding:.4rem}
.feedback-notice{max-width:1180px;margin:0 auto;padding:.5rem 1.25rem;font-size:.85rem}
.feedback-notice.sent{background:#eef6ef;color:#1f4d2a}
.feedback-notice.empty{background:var(--hot-bg);color:var(--hot)}

/* R-UX-5 "why" line under a tier badge (project.html). */
.badge-reason{font-size:.82rem;color:var(--ink);margin:.2rem 0}

/* D-017 per-item spec note, shown next to a Tier-1 item's quote block
   (project.html) -- distinct from the meaning block itself. */
.item-note{font-size:.82rem;color:var(--muted);font-style:italic;margin:.2rem 0 .4rem}

/* ---------------------------------------------------------------------
   v1.4 addendum R-UX-1b: rewritten Upcoming-lettings status block
   (retem/web/templates/lettings.html, id="status"). Additive only --
   reuses .panel/.muted/.unmeasured/.badge.flag from above, nothing here
   restyles an existing class.
   --------------------------------------------------------------------- */
.status-headline{margin:0 0 .85rem;font-size:.95rem;color:var(--ink)}
.status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}
.status-section h3{margin:0 0 .4rem;font-size:.82rem;text-transform:uppercase;letter-spacing:.03em;color:var(--muted)}
.status-section p{margin:.25rem 0}
.status-section .status-line{font-size:.82rem}
.status-steps{margin:0;padding-left:1.1rem}
.status-steps li{margin:.15rem 0}
.status-tiers{margin:0;padding-left:1.1rem;list-style:disc}
.status-tiers li{margin:.15rem 0}
.status-mismatch-diff{color:var(--bad);font-weight:700}

/* v1.7 R-HELP-1: the help block at the top of every screen. Rendered by
   base.html from retem/web/help_blocks.py -- see that module for why the
   text lives in Python. Styled to read as guidance, not as an alert: it is
   on every screen, every time, and an alarming block that never changes is
   a block people learn to skip. */
.help-block{background:var(--panel);border:1px solid var(--line);border-radius:6px;
  padding:.8rem 1rem;margin:0 0 1.2rem}
.help-block .help-summary{cursor:pointer;font-weight:600;font-size:.9rem;color:var(--muted);
  list-style:none}
.help-block .help-summary::-webkit-details-marker{display:none}
.help-block .help-summary::before{content:"\25be";margin-right:.4rem;display:inline-block}
.help-block:not([open]) .help-summary::before{content:"\25b8"}
.help-lines{margin:.6rem 0 .4rem 1.1rem;padding:0}
.help-lines li{margin:.25rem 0;line-height:1.5}
.help-not-here{margin:.5rem 0 0;font-size:.9rem}
.help-buttons-title{margin:.7rem 0 .2rem;font-size:.9rem}
.help-buttons{margin:.1rem 0 0 1.1rem;padding:0;font-size:.9rem;color:var(--muted)}
.help-buttons li{margin:.2rem 0;line-height:1.45}

/* ---------------------------------------------------------------------
   v1.8 addendum (spec/SPEC_addendum_v1.8_ui_v2.md) -- R-LAYOUT-1: colors,
   chip shapes, tab/segmented-control styling and legend cards copied from
   spec/mockups/watchlist_v2/*.dc.html's <helmet><style> (IBM Plex tokens,
   #1C1B17/#1D4F91/#B4500F palette). Additive: nothing above this comment
   is restyled, so screens this wave did not touch keep their v1.3-v1.7
   appearance.

   R-HELP-2's legend replaces the old .help-block fold (still defined
   above, now unused by base.html -- kept rather than deleted so a page
   this wave didn't reach, if any, still renders sanely).
   --------------------------------------------------------------------- */
:root{
  --v2-ink:#1C1B17;--v2-bg:#F3F1EA;--v2-panel:#ffffff;--v2-line:#DDD9CC;--v2-line2:#ECE9DF;
  --v2-muted:#5C594F;--v2-muted2:#3E3B33;--v2-blue:#1D4F91;--v2-blue-dark:#143A6C;
  --v2-orange:#B4500F;--v2-hot-bg:#FBF1EA;--v2-hot:#7A3A0A;--v2-faint:#FAF9F5;--v2-tint:#E4E1D6;
}

.legend .help-summary{cursor:pointer;font-weight:600;font-size:14px;color:var(--v2-ink);list-style:none}
.legend .help-summary::-webkit-details-marker{display:none}
.legend-summary-extra{font-weight:400;color:var(--v2-muted);margin-left:.4rem}
.legend-grid{margin-top:12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.leg{display:flex;flex-direction:column;gap:4px;padding:10px 12px;background:var(--v2-faint);
  border-radius:8px;font-size:13px;line-height:1.5;color:var(--v2-muted2)}
.leg .lbl{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--v2-muted)}
.lbl{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--v2-muted)}

.notshown{font-size:12px;color:var(--v2-muted2)}

/* Lettings.dc.html status tiles row. */
.tile{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border-right:1px solid var(--v2-line2);min-width:150px}
.tile:last-child{border-right:none}

.chip{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:13px;
  font-size:12px;font-weight:600;white-space:nowrap}
.chip-awarded{background:var(--v2-ink);color:#fff}
.chip-apparent{background:#fff;color:var(--v2-blue);border:1.5px solid var(--v2-blue)}
.chip-awaiting{background:#fff;color:var(--v2-muted);border:1.5px solid var(--v2-line)}
.chip-dismissed{background:var(--v2-tint);color:var(--v2-muted2)}

.mini{display:inline-block;height:20px;line-height:20px;padding:0 7px;border-radius:4px;font-size:11px;
  font-weight:600;color:var(--v2-muted);border:1px solid var(--v2-line);background:var(--v2-faint)}
.mini-hot{color:var(--v2-hot);border-color:#E6C7B2;background:var(--v2-hot-bg)}

.new{display:inline-flex;align-items:center;gap:5px;height:20px;padding:0 8px;border-radius:4px;
  background:var(--v2-orange);color:#fff;font-size:11px;font-weight:700;letter-spacing:.04em}
.changed{display:inline-block;height:18px;line-height:18px;padding:0 6px;border-radius:4px;
  background:var(--v2-blue);color:#fff;font-size:10px;font-weight:700;letter-spacing:.04em;
  margin-left:8px;vertical-align:middle}
.urg{display:inline-flex;align-items:center;gap:5px;min-height:20px;max-width:100%;padding:0 8px;
  border-radius:4px;border:1.5px solid var(--v2-orange);color:var(--v2-orange);background:#fff;
  font-size:11px;font-weight:700;letter-spacing:.04em;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis}
.hl{background:#E3ECF8;border-radius:6px;padding:6px 8px;margin:-6px -8px;box-shadow:inset 0 0 0 1px #B9CDEB}
.key{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;color:var(--v2-muted2)}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.small{font-size:.82rem}

.btn-ghost{border:1px solid var(--v2-line);background:transparent;color:var(--v2-muted2);
  border-radius:6px;padding:0 12px;height:32px;font-size:12px;font-weight:600;display:inline-flex;
  align-items:center;text-decoration:none;cursor:pointer}
.btn-ghost:hover{border-color:var(--v2-ink);color:var(--v2-ink)}
.btn-primary{border:1px solid var(--v2-blue);background:var(--v2-blue);color:#fff;border-radius:6px;
  padding:0 16px;height:36px;font-size:13px;font-weight:600;display:inline-flex;align-items:center}
.btn-primary:hover{background:var(--v2-blue-dark)}

.wl2-tabs{display:flex;align-items:center;padding:0 8px;border-bottom:1px solid var(--v2-line);flex-wrap:wrap}
.tab{border:none;background:transparent;color:var(--v2-muted);padding:8px 14px;font-size:14px;
  font-weight:600;border-bottom:3px solid transparent;text-decoration:none;display:inline-block}
.tab:hover{color:var(--v2-ink)}
.tab-on{color:var(--v2-ink);border-bottom-color:var(--v2-ink)}
.count{display:inline-block;min-width:20px;padding:0 6px;height:20px;line-height:20px;border-radius:10px;
  background:var(--v2-tint);color:var(--v2-muted2);font-size:11px;font-weight:700;margin-left:6px;text-align:center}
.count-new{background:var(--v2-orange);color:#fff}

.wl2-facets{display:flex;align-items:flex-end;gap:14px;padding:14px 16px;flex-wrap:wrap}
.facet{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;color:var(--v2-muted)}
.facet select,.facet input[type=text]{height:34px;border:1px solid #C9C4B4;border-radius:6px;
  background:#fff;padding:0 10px;font:500 13px inherit;color:var(--v2-ink);text-transform:none;letter-spacing:0}
.seg-group{display:flex;border:1px solid #C9C4B4;border-radius:6px;overflow:hidden;height:34px}
.seg{border:none;background:#fff;color:var(--v2-muted2);padding:0 12px;height:34px;font-size:13px;
  font-weight:600;border-right:1px solid #C9C4B4;text-decoration:none;display:inline-flex;align-items:center}
.seg:last-child{border-right:none}
.seg-on{background:var(--v2-ink);color:#fff}

.section-h{display:flex;align-items:baseline;gap:12px;margin:14px 0 10px}
.section-h h2{margin:0;font-size:17px;font-weight:700}
.wl2-section{display:flex;flex-direction:column}
.wl2-table{border-collapse:collapse;width:100%;table-layout:fixed}
.wl2-table td{overflow-wrap:anywhere}
.wl2-table th{text-align:left;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--v2-muted);padding:10px 12px;border-bottom:1px solid var(--v2-line);background:var(--v2-faint)}
.wl2-table td{padding:14px 12px;border-bottom:1px solid var(--v2-line2);vertical-align:top;font-size:14px}
.wl2-table tr:last-child td{border-bottom:none}
.wl2-toprow{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.wl2-desc{font-weight:600;margin-top:3px}
.wl2-winner{font-weight:600}

/* owner #45 (w105): the Watchlist table used to overflow at 1280/1440px.
   main is max 1180px - 2x32px padding - the panel's own padding/border,
   so the table gets ~1079px -- but the v1.8 fixed widths (150+380+300+
   130+120+190 = 1270px, plus an auto Flags column squeezed to ~0) were
   wider than that under table-layout:fixed, so the table grew past the
   panel (clipped by its overflow:hidden) and Flags text piled into its
   neighbours; a 220px min-width winner block and a nowrap ~195px Actions
   cell in a 190px column did the same. Now: six columns set by <colgroup>
   (see watchlist.html), fixed ones summing to 730px, Project takes the
   remaining ~349px; flags moved under the status chip, the low bid under
   the winner; Actions may wrap onto two lines (buttons never break).
   Widths leave room for the widest nowrap content: the "Awaiting
   letting" / "Rejected by ALDOT" chips (~140px) and "Not relevant ▾"
   (~120px). */
.wl2-table col.c-tog{width:36px}
.wl2-table col.c-status{width:164px}
.wl2-table col.c-who{width:240px}
.wl2-table col.c-date{width:130px}
.wl2-table col.c-act{width:160px}
.wl2-table col.c-why{width:240px}
.wl2-table td.wl2-act,.wl2-table th:last-child{text-align:right}
.wl2-act .btn-ghost,.wl2-act .dismiss-menu{margin:0 0 4px 4px}
.wl2-act .btn-ghost{white-space:nowrap}
.wl2-flags{margin-top:6px;display:flex;gap:4px;flex-wrap:wrap}
.wl2-table td.wl2-tog{padding:12px 0 0 8px}
.wl2-toggle{width:26px;height:26px;border:1px solid var(--v2-line);border-radius:5px;background:#fff;
  color:var(--v2-ink);cursor:pointer;font-size:13px;line-height:1;padding:0}
.wl2-toggle:hover{border-color:var(--v2-ink)}
.wl2-row.wl2-open td{background:#E3ECF8;border-bottom-color:transparent}
.wl2-table tr.wl2-exp>td{padding:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

.wl2-banner{display:flex;align-items:center;gap:18px;padding:14px 18px;border:1px solid var(--v2-orange);
  border-left:6px solid var(--v2-orange)}
.wl2-attn{display:flex;align-items:center;gap:14px;padding:10px 18px;font-size:13px;flex-wrap:wrap}
.wl2-attn .lbl{font-weight:700;letter-spacing:.04em;font-size:11px;text-transform:uppercase;color:var(--v2-muted)}
.wl2-views{display:flex;flex-direction:column}

.dismiss-menu{display:inline-block;position:relative}
.dismiss-menu>summary{list-style:none;cursor:pointer}
.dismiss-menu>summary::-webkit-details-marker{display:none}
.dismiss-menu-body{position:absolute;right:0;top:calc(100% + 4px);z-index:20;background:#fff;
  border:1px solid var(--v2-line);border-radius:6px;padding:.6rem;box-shadow:0 4px 16px rgba(0,0,0,.12);
  display:flex;flex-direction:column;gap:.5rem;min-width:220px}
.dismiss-menu-body form{display:flex;flex-direction:column;gap:.3rem}

/* ---------------------------------------------------------------------
   v1.8-settings-shorten (spec/mockups/watchlist_v2/Settings.dc.html):
   the short top part of Settings -- a two-column layout (left: scanning
   + states + accounts + password; right: health + dismissals) at
   >=1200px, one column below, plus the key/value row style the mockup
   uses throughout ("kv"). Additive only, same tokens as the rest of the
   v1.8 block above -- nothing here restyles an existing class.
   --------------------------------------------------------------------- */
.settings-cols{display:flex;flex-direction:column;gap:0}
.settings-col{display:flex;flex-direction:column;min-width:0}
@media (min-width: 1200px){
  .settings-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;align-items:start}
}
.kv{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--v2-line2);font-size:13px}
.kv:last-child{border-bottom:none}
.kv .k{width:150px;flex:0 0 auto;color:var(--v2-muted)}
.kv .v{flex:1 1 auto;min-width:0}
.kv .v-main{font-weight:600}
.kv-actions{display:flex;gap:8px;flex:0 0 auto}
#advanced summary{cursor:pointer;font-weight:600;font-size:1rem}
#advanced .panel{margin-bottom:1.25rem}

/* ---------------------------------------------------------------------
   Lettings v2.1 (state-scoped, fast, design polish vs
   spec/mockups/watchlist_v2/Lettings.dc.html). Additive; scoped to the
   Lettings screen (body[data-screen="/"]) or to new class names only.
   --------------------------------------------------------------------- */
body[data-screen="/"] main{max-width:1376px}          /* mockup: 1440 wide, 32px gutters */
.lt-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:-.25rem 0 14px;flex-wrap:wrap}
.lt-scan-buttons{display:flex;gap:10px;align-items:center;margin-left:auto}
.lt-scan-buttons button[disabled]{opacity:.5;cursor:not-allowed}
.lt-thin{padding:10px 16px;margin-bottom:12px}
.lt-thin .status-short-line{margin:0 0 .25rem;font-size:13px}

/* Status tiles: one row, equal rhythm, wraps (never scrolls) when narrow. */
.lt-tiles{display:flex;flex-wrap:wrap;padding:0;overflow:hidden;margin-bottom:14px}
.lt-tiles .tile{flex:1 1 150px;min-width:150px;border-bottom:1px solid var(--v2-line2);margin-bottom:-1px}
.lt-tiles .tile-grow{flex:1.6 1 200px}
.tile-v{font-weight:700;font-size:18px;line-height:1.25;overflow-wrap:anywhere}
.tile-new{color:var(--v2-orange)}

/* Coverage tiles: one card per selected state. */
.cov-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:0;padding:0;
  overflow:hidden;margin-bottom:14px}
.cov-tile{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border-right:1px solid var(--v2-line2);
  border-bottom:1px solid var(--v2-line2);border-top:3px solid transparent;min-width:0}
.cov-ok{border-top-color:#3FA34D}
.cov-warn{border-top-color:#D9A441}
.cov-bad{border-top-color:#E05B3B}
.cov-summary{font-weight:700;font-size:15px}
.cov-headline{font-size:13px;line-height:1.45;color:var(--v2-muted2)}
.cov-actions{display:flex;gap:6px;flex-wrap:wrap}
.cov-actions .btn-ghost{height:28px;padding:0 10px}
.cov-details summary{cursor:pointer;list-style:none}
.cov-details summary::-webkit-details-marker{display:none}
.cov-details summary::before{content:"\25b8 "}
.cov-details[open] summary::before{content:"\25be "}
.cov-details p{margin:.35rem 0}
.cov-tech{font-size:11px;overflow-wrap:anywhere}

/* Filter bar: ONE row (mockup), wraps cleanly below ~1300px. */
.lt-filterbar{display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap;padding:12px 16px;margin-bottom:18px}
.lt-filterbar .seg{font-family:inherit;cursor:pointer}
.lt-filterbar .seg:hover:not(.seg-on){background:var(--v2-faint)}
.lt-dates{display:inline-flex;align-items:center;gap:6px}
.lt-dates input{height:34px;border:1px solid #C9C4B4;border-radius:6px;padding:0 8px;font:inherit}
.lt-lbl{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--v2-muted)}
.lt-states{display:flex;align-items:center;gap:8px;position:relative}
.lt-check{display:flex;align-items:center;gap:8px;font-size:13px;white-space:nowrap;cursor:pointer}
.lt-summary{margin-left:auto;text-align:right}
.states-dd{position:relative}
.states-dd-btn{list-style:none;cursor:pointer;height:34px;display:inline-flex;align-items:center;gap:8px;
  border:1px solid #C9C4B4;border-radius:6px;background:#fff;padding:0 30px 0 10px;font-size:13px;
  font-weight:500;color:var(--v2-ink);white-space:nowrap;max-width:260px;overflow:hidden;text-overflow:ellipsis;
  background-image:linear-gradient(45deg,transparent 50%,var(--v2-muted) 50%),linear-gradient(135deg,var(--v2-muted) 50%,transparent 50%);
  background-position:calc(100% - 15px) 15px,calc(100% - 10px) 15px;background-size:5px 5px;background-repeat:no-repeat}
.states-dd-btn::-webkit-details-marker{display:none}
.states-dd[open] .states-dd-btn{border-color:var(--v2-ink)}
.states-dd-panel{position:absolute;left:0;top:calc(100% + 4px);z-index:30;background:#fff;border:1px solid var(--v2-line);
  border-radius:8px;box-shadow:0 6px 20px rgba(0,0,0,.12);padding:10px 12px;display:flex;flex-direction:column;
  gap:6px;min-width:250px}
.states-dd-quick{display:flex;gap:6px;flex-wrap:wrap}
.states-dd-opt{display:flex;align-items:center;gap:8px;font-size:13px;padding:2px 0;cursor:pointer}
.btn-sm{height:32px;font-size:12px;padding:0 12px}

/* Letting sections: collapsible, mockup header ("Letting · date" + muted line). */
.lt-section{padding:0;overflow:visible}
.lt-section.block-sep{margin-top:0;margin-bottom:12px}
.lt-fold>summary{list-style:none;cursor:pointer}
.lt-fold>summary::-webkit-details-marker{display:none}
.lt-head{display:flex;align-items:baseline;gap:6px 12px;flex-wrap:wrap;padding:12px 16px}
.lt-head h2{margin:0;font-size:17px;font-weight:700;display:inline}
.lt-head h2::before{content:"\25b8";display:inline-block;width:1em;color:var(--v2-muted);font-size:13px}
.lt-fold[open]>.lt-head h2::before{content:"\25be"}
.lt-head h2 .muted{font-weight:500;font-size:14px}
.lt-sub{flex:1 1 auto}
.lt-show{margin-left:auto;font-size:13px;font-weight:600;white-space:nowrap}
.lt-fold[open]>.lt-head{border-bottom:1px solid var(--v2-line2)}
.lt-fold>*:not(summary){margin-left:16px;margin-right:16px}
.lt-fold>*:last-child{margin-bottom:14px}
.lt-funnel{margin-top:10px}
.lt-funnel p{margin:.1rem 0}
.lt-h3{font-size:12px;letter-spacing:.06em;text-transform:uppercase;margin:14px 0 8px}
.lt-collapsed-note{margin:10px 16px 12px}
.hot-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:12px;margin-bottom:12px}
.hot-card{margin-bottom:0;border-color:#E6C7B2;border-left:4px solid var(--hot)}
.hot-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:.5rem}
.badge-why{font-size:.78rem;margin-top:.15rem}
.matched{margin-top:.35rem}
.matched .verbatim{margin:.15rem .3rem .15rem 0}
.gated-note{margin:.3rem 0}
.lt-table td,.lt-table th{font-size:13px}
.lt-table td.row-actions{white-space:nowrap}
.row-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end}
.lt-none{margin-top:10px}
.lt-none>summary{padding:4px 0}
.inline-form{display:inline}
.star{width:34px;height:34px;padding:0;border:1px solid #C9C4B4;border-radius:6px;background:#fff;
  display:inline-flex;align-items:center;justify-content:center;font-size:16px;line-height:1;color:var(--v2-muted2)}
.star-on{background:var(--v2-ink);border-color:var(--v2-ink);color:#fff}
.lt-state-h{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:22px 0 10px;
  padding-bottom:6px;border-bottom:2px solid var(--v2-ink)}
.lt-state-h h2{margin:0;font-size:20px;font-weight:700}
.dismiss-dialog{border:1px solid var(--v2-line);border-radius:10px;padding:16px 18px;min-width:300px;
  box-shadow:0 10px 30px rgba(0,0,0,.18)}
.dismiss-dialog::backdrop{background:rgba(28,27,23,.25)}
.dismiss-dialog form{display:flex;flex-direction:column;gap:8px;margin:0 0 10px}
.dismiss-reasons{display:flex;gap:6px;flex-wrap:wrap}
.dismiss-other{display:flex;gap:6px}
.dismiss-other input{flex:1;height:32px;border:1px solid #C9C4B4;border-radius:6px;padding:0 8px;font:inherit}
@media (max-width:1100px){
  .lt-summary{margin-left:0;text-align:left;flex-basis:100%}
  .hot-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
}

/* ---------------------------------------------------------------------
   wave 10.2 -- R-COMPACT-1 (feedback #34/#35): compact rows that expand in
   place; R-SALES-1 / R-MISSING-1 (#37) inside the expansion. Palette and
   chips are the mockup's (Lettings.dc.html table row); no new colors.
   --------------------------------------------------------------------- */
a.seg{display:inline-flex;align-items:center;text-decoration:none}
.cc-list{display:flex;flex-direction:column;border:1px solid var(--v2-line);border-radius:8px;overflow:hidden;background:#fff;margin:.4rem 0 .8rem}
.cc-head,.cc-row{display:grid;grid-template-columns:44px 128px 150px minmax(0,1fr) 150px 92px 110px;gap:10px;align-items:center;padding:8px 12px}
.cc-head{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--v2-muted);background:var(--v2-faint);border-bottom:1px solid var(--v2-line)}
.cc{border-bottom:1px solid var(--v2-line2)}
.cc:last-child{border-bottom:none}
.cc-row{cursor:pointer;list-style:none}
.cc-row::-webkit-details-marker{display:none}
.cc-row:hover{background:var(--v2-faint)}
.cc[open]>.cc-row{background:#E3ECF8}
.cc-hot{box-shadow:inset 3px 0 0 var(--hot)}
.cc-state{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:22px;padding:0 6px;border-radius:4px;background:var(--v2-ink);color:#fff;font-size:12px;font-weight:700;letter-spacing:.04em}
.cc-date{font-weight:700;display:flex;flex-direction:column;line-height:1.2}
.cc-rel{font-weight:400;font-size:11px;color:var(--v2-muted)}
.cc-status{font-weight:700}
.cc-proj{min-width:0;display:flex;flex-direction:column;gap:2px}
.cc-title{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cc-qty{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cc-star{color:var(--v2-orange)}
.cc-more{font-size:12px;color:var(--v2-blue);text-align:right;white-space:nowrap}
.cc-more::after{content:" ▾"}
.cc[open] .cc-more::after{content:" ▴"}
.cc-body{padding:12px 16px 16px;background:var(--v2-faint);display:grid;gap:12px}
.cc-card{background:#fff;border:1px solid var(--v2-line);border-radius:8px;padding:12px 14px}
.cc-sales{background:#fff;border:1px solid var(--v2-line);border-left:4px solid var(--v2-blue);border-radius:8px;padding:12px 14px}
.cc-sales-grid{display:grid;grid-template-columns:2fr 1.3fr 1fr 1fr 1fr;gap:14px;margin-top:8px;font-size:13px}
.cc-h{font-weight:700;font-size:12px;margin-bottom:4px}
.cc-bidders{margin:.2rem 0 0 1.1rem;padding:0}
.cc-quote{margin-top:.3rem}
.cc-missing{margin-top:10px;font-size:13px}
.cc-miss-list{list-style:none;margin:.3rem 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:2px 16px}
.miss-word{color:var(--v2-orange);font-weight:700}
.miss-missing strong{color:var(--v2-orange)}
.st-overview{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px;padding:10px}
.st-card{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid var(--v2-line);border-radius:8px;text-decoration:none;color:var(--v2-ink);background:#fff}
.st-card:hover{border-color:var(--v2-ink)}
.st-name{font-weight:700;font-size:15px}
.st-hot{color:var(--hot)}
@media (max-width:1100px){
  .cc-head{display:none}
  .cc-row{grid-template-columns:44px 110px minmax(0,1fr);grid-auto-rows:auto}
  .cc-proj{grid-column:1/-1}
  .cc-sales-grid{grid-template-columns:1fr 1fr}
}
/* owner #43: stage + time window controls */
.lt-stage{border:0;gap:6px;align-items:center;overflow:visible}
.lt-stage select{height:34px;border:1px solid #C9C4B4;border-radius:6px;padding:0 8px;font:inherit;background:#fff}
/* owner #45: what RETEM reads per state */
.cov-stages{margin:.35rem 0}
.cov-stage-list{list-style:none;margin:.25rem 0 0;padding:0;font-size:12.5px;line-height:1.45}
.cov-stage-list li.ok span[aria-hidden]{color:#2f7d32}
.cov-stage-list li.no span[aria-hidden]{color:#b3261e}
/* owner #45: Settings > How RETEM reads each state */
.hiw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}
.hiw-state h2{font-size:15px;margin:0 0 .3rem}
.hiw-state p{margin:.2rem 0}
.hiw-state ul{margin:.3rem 0 0;padding-left:1.1rem}
.st-empty{opacity:.85;border-style:dashed}

/* #47.3 (owner 29.9): information blocks fold to one line, like "About this screen". */
.info-fold{margin:0 0 8px}
.info-fold>summary.info-line{cursor:pointer;padding:6px 10px;border:1px solid var(--line,#e3e3e3);border-radius:8px;
  background:var(--panel,#fff);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;list-style-position:inside}
.info-fold[open]>summary.info-line{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:0}
.info-fold[open]>.panel{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}

/* #47.2: the scan progress bar. */
.scan-progress{display:flex;flex-direction:column;gap:4px;min-width:280px;flex:1 1 320px}
.sp-bar{height:8px;border-radius:4px;background:var(--line,#e6e6e6);overflow:hidden}
.sp-fill{height:100%;background:var(--accent,#1D4F91);transition:width .6s ease}

/* #49.8 (owner 29.9): "About this screen" shows a small arrow so it is clear it opens. */
.legend .help-summary::before{content:"\25b8";display:inline-block;margin-right:.4rem;color:var(--muted);transition:transform .15s}
.legend[open] .help-summary::before{transform:rotate(90deg)}

/* #49.1: the stage that stops RETEM from showing anything is the loudest line. */
.cov-critical{margin:.35rem 0;padding:.35rem .5rem;border-left:3px solid #B42318;background:#FEF3F2;color:#7A271A;font-weight:600;font-size:13px}
.cov-stage-list li.critical{font-weight:700;color:#B42318}

/* #49.7: a jumped-to row lights up for a moment. */
@keyframes wlflash{0%{background:#FFE8A3}100%{background:transparent}}
tr.wl-flash>td{animation:wlflash 1.5s ease-out}
.wl2-attn{flex-wrap:wrap}

/* #49.4: NEW is a button now. */
.new-click{cursor:pointer}
.new-click:hover{filter:brightness(.92);text-decoration:underline}
.seen-mark{font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:0 4px;margin-left:4px}
.new-seen-line{margin:.2rem 0 .6rem}

/* #49.6: one expansion card, star on top, "why HOT" highlighted. */
.cc-onecard{border:1px solid var(--line);border-radius:10px;padding:.7rem .9rem;background:var(--panel)}
.cc-onecard .hot-card-top{display:flex;justify-content:space-between;align-items:center;gap:.6rem;margin-bottom:.5rem}
.card-watch{display:flex;align-items:center;gap:.3rem;white-space:nowrap}
.cc-why-box{margin:.6rem 0;padding:.55rem .7rem;border-left:4px solid #C2410C;background:#FFF4EC;border-radius:6px}
.cc-why-box>.lbl{font-weight:700;margin-bottom:.25rem}
.cc-why-total{margin-top:.35rem}
.star-toggle{border:none;background:none;padding:0 .15rem;font-size:16px;line-height:1;cursor:pointer;color:var(--muted)}
.star-toggle.star-on{color:#D97706}
.star-toggle:hover{transform:scale(1.15)}

/* #51 (owner 29.9, option C): salesperson and "why HOT" side by side, project below. */
.cc-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
.cc-two>.cc-why-box{margin:0}
.cc-blk{margin-top:8px;font-size:13px}
.cc-result{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center}
.cc-card-rest{border-top:1px solid var(--line);margin-top:10px;padding-top:8px}
.cc-facts{list-style:none;margin:.3rem 0;padding:0;display:flex;flex-wrap:wrap;gap:2px 18px;font-size:13px}
.cc-facts li.cc-dup{display:none}
.cc-facts li.miss-missing .muted:first-child{color:var(--v2-orange);font-weight:700}
@media (max-width:900px){.cc-two{grid-template-columns:1fr}}

/* #53 (owner 29.9): the feedback button is purple so it stands out in the bar. */
.feedback-toggle{background:#6D28D9;border-color:#6D28D9;color:#fff;display:inline-flex;align-items:center}
.feedback-toggle:hover{background:#5B21B6;border-color:#5B21B6;color:#fff}

/* D-133 (30.9): how a snapshot-read project was measured -- always visible. */
.snapshot-mark{font-size:12px;color:#7a4b00;background:#fff6e0;border:1px solid #f0d58a;border-radius:6px;padding:3px 8px;margin:4px 0;display:inline-block}
.hot-card-top{flex-wrap:wrap}
.hot-card-top .snapshot-mark{flex-basis:100%;order:3;margin:0}
