/* =====================================================================
   PropFile — Foundation Design Spec v1.0
   "Calm Institutional Trust" — borders over shadows, one confident blue,
   colour reserved for status. Light theme only.
   ===================================================================== */

:root {
  /* Brand */
  --primary:        #1F4ED8;
  --primary-dark:   #1A3FB0;
  --accent:         #0F9E8E;

  /* Surfaces & structure */
  --bg:             #F6F8FB;
  --surface:        #FFFFFF;
  --surface-alt:    #F1F4F9;
  --border:         #E3E8EF;
  --border-strong:  #CBD3DF;

  /* Text */
  --text:           #0F1B2D;
  --muted:          #5B6B7F;

  /* Semantic — text/solid + soft background pairs */
  --success:        #0E8F5E;
  --success-text:   #157347;  /* >=4.5:1 on --success-bg for 13px chip text */
  --success-bg:     #E6F6EE;

  --warning:        #B7791F;
  --warning-text:   #9A4A06;  /* >=4.5:1 on --warning-bg for 13px chip text */
  --warning-bg:     #FBF1DC;

  --danger:         #C0392B;
  --danger-text:    #B42318;
  --danger-bg:      #FBEAE8;

  /* Neutral chip */
  --chip-bg:        #EEF1F6;
  --chip-text:      #5B6B7F;

  /* Info (reuses primary family) */
  --info-text:      #1A3FB0;
  --info-bg:        #EAF0FE;

  /* Focus ring */
  --ring:           #1F4ED8;

  /* Radii */
  --radius-card:    12px;
  --radius-control: 8px;
  --radius-pill:    999px;

  /* Elevation — only for floating elements */
  --shadow-pop:     0 1px 2px rgba(15,27,45,0.04), 0 4px 12px rgba(15,27,45,0.06);
  --shadow-modal:   0 12px 32px rgba(15,27,45,0.16);

  /* Layout */
  --sidebar-w:      240px;
  --content-max:    1120px;
}

/* =====================================================================
   Reset & base
   ===================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p { margin: 0; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

button { font-family: inherit; }

img { max-width: 100%; display: block; }

table, .money, .tabular, time, .meta__value { font-variant-numeric: tabular-nums; }

/* Lucide icons sit on the text baseline cleanly */
[data-lucide] {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  vertical-align: middle;
  flex: 0 0 auto;
}

/* Universal focus-visible ring — non-negotiable */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius-control);
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-item:focus-visible,
.row-link:focus-visible,
.tab:focus-visible,
.toggle:focus-visible,
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible,
.seg__opt:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* =====================================================================
   App shell
   ===================================================================== */

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* Sidebar (desktop) */
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 16px;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-control);
  background: var(--primary);
  color: #fff;
}
.brand__mark [data-lucide] { color: #fff; }
.brand__sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar__foot { flex-shrink: 0; }

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.nav-item:hover {
  background: var(--surface-alt);
  color: var(--text);
}
.nav-item [data-lucide] { color: currentColor; }
.nav-item.is-active {
  background: var(--info-bg);
  color: var(--primary);
  font-weight: 600;
}
.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.sidebar__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-top: 1px solid var(--border);
}
.sidebar__foot .who { min-width: 0; }
.sidebar__foot .who b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar__foot .who span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

/* Bottom nav (mobile) */
.bottom-nav {
  display: none;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 10px 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.topbar__crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.topbar__crumb [data-lucide] { width: 16px; height: 16px; }
.topbar__spacer { flex: 1; }
.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.icon-btn:hover {
  background: var(--surface-alt);
  color: var(--text);
}

/* Topbar — upgraded product navigation */
.topbar__lead {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}
.topbar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  max-width: 440px;
  height: 40px;
  padding: 0 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--muted);
  cursor: text;
}
.topbar__search [data-lucide] { width: 18px; height: 18px; flex-shrink: 0; }
.topbar__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 14px;
  color: var(--text);
}
.topbar__search:focus-within { border-color: var(--primary); background: var(--surface); }
.topbar__actions { margin-left: auto; }

.icon-btn--dot { position: relative; }
.icon-btn--dot::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--surface);
}

.profile { position: relative; }
.profile__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px 0 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
}
.profile__btn:hover { background: var(--surface-alt); }
.profile__name { font-size: 13px; }
.profile__btn [data-lucide] { width: 16px; height: 16px; color: var(--muted); }
.profile__menu {
  position: absolute;
  right: 0;
  top: 48px;
  min-width: 184px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-pop);
  z-index: 40;
}
.profile__menu[hidden] { display: none; }
.profile__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-control);
  color: var(--text);
  font-size: 14px;
}
.profile__item:hover { background: var(--surface-alt); }
.profile__item [data-lucide] { width: 16px; height: 16px; color: var(--muted); }

@media (max-width: 899px) {
  .topbar__search { display: none; }
  .profile__name { display: none; }
  .profile__btn { padding: 0 6px; }
}

/* =====================================================================
   Marketplace surfaces — nav groups, filters, trade/product/service cards
   ===================================================================== */

/* Sidebar nav sections */
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group + .nav-group { margin-top: 16px; }
.nav-group__title {
  padding: 0 12px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Filter chips */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-chip {
  height: 38px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.filter-chip:hover { background: var(--surface-alt); color: var(--text); }
.filter-chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Responsive card grid for marketplace screens */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Trade card */
.trade-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.trade-card__top { display: flex; align-items: center; gap: 12px; }
.trade-card__name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
}
.verified { display: inline-flex; color: var(--primary); }
.verified [data-lucide] { width: 16px; height: 16px; }
.trade-card__metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 13px;
}
.stars { display: inline-flex; align-items: center; gap: 4px; color: var(--warning); font-weight: 600; }
.stars [data-lucide] { width: 15px; height: 15px; }
.stars b { color: var(--text); }
.trade-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.trade-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.trade-card__rate { font-size: 16px; font-weight: 600; }
.trade-card__rate span { font-size: 12px; font-weight: 400; color: var(--muted); }

/* Product card (links out to retailer) */
.prod-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--text);
}
.prod-card:hover { border-color: var(--border-strong); }
.prod-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  background: var(--surface-alt);
  color: var(--muted);
}
.prod-card__media [data-lucide] { width: 34px; height: 34px; }
.prod-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px; }
.prod-card__name { font-size: 14px; font-weight: 600; }
.prod-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.prod-card__price { font-size: 16px; font-weight: 600; }
.prod-card__cta { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--primary); }
.prod-card__cta [data-lucide] { width: 14px; height: 14px; }

/* Service card */
.svc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.svc-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--info-bg);
  color: var(--primary);
}
.svc-card__title { font-size: 15px; font-weight: 600; }
.svc-card p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.svc-card__foot { margin-top: auto; padding-top: 4px; }

/* Marketplace note strip */
.market-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 14px;
  background: var(--info-bg);
  border-radius: var(--radius-control);
  color: var(--info-text);
  font-size: 13px;
  line-height: 1.5;
}
.market-note [data-lucide] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

/* Quote modal bits */
.quote-who { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.quote-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--info-bg);
  color: var(--primary);
  flex-shrink: 0;
}
.modal-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 8px 0 4px; }
.modal-success [data-lucide] { width: 44px; height: 44px; color: var(--success); }
.modal-success p { font-size: 14px; line-height: 1.6; color: var(--text); }

/* Main view */
.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.view {
  flex: 1;
  width: 100%;
}
.page {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 32px;
}
.page__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.page__head .spacer { flex: 1; }
.page__title {
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
  color: var(--text);
}
.page__sub {
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}
/* Standalone page hero icon (e.g. property header) — sized for the page,
   not borrowed from the list-card .prop-card__thumb. */
.page__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: var(--radius-card);
  background: var(--info-bg);
  color: var(--primary);
}
.page__thumb [data-lucide] { width: 30px; height: 30px; }
/* In-page back crumb gets a comfortable touch target. */
.page__back {
  min-height: 40px;
  margin-bottom: 4px;
}

/* =====================================================================
   Cards & panels
   ===================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.card--pad { padding: 24px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}
.panel + .panel { margin-top: 24px; }
.panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.panel__title [data-lucide] { color: var(--muted); width: 20px; height: 20px; }
.panel__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
}
.stat-card__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.stat-card__value {
  font-size: 28px;
  line-height: 32px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-card__icon {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-control);
  background: var(--info-bg);
  color: var(--primary);
}
.stat-card__icon [data-lucide] { width: 20px; height: 20px; }

/* =====================================================================
   Buttons
   ===================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.btn:hover {
  background: var(--surface-alt);
  border-color: var(--border-strong);
}
.btn [data-lucide] { width: 18px; height: 18px; }

.btn--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--primary);
}
.btn--ghost:hover {
  background: var(--info-bg);
  border-color: transparent;
}

.btn--danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.btn--danger:hover {
  background: #a5301f;
  border-color: #a5301f;
}

.btn--sm {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.btn--sm [data-lucide] { width: 16px; height: 16px; }

.btn--block {
  display: flex;
  width: 100%;
}

/* =====================================================================
   Chips
   ===================================================================== */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--chip-bg);
  color: var(--chip-text);
  border: 1px solid transparent;
}
.chip [data-lucide] { width: 14px; height: 14px; }
.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.chip--success { background: var(--success-bg); color: var(--success-text); }
.chip--success .chip__dot { background: var(--success); }
.chip--warning { background: var(--warning-bg); color: var(--warning-text); }
.chip--warning .chip__dot { background: var(--warning); }
.chip--danger  { background: var(--danger-bg);  color: var(--danger-text); }
.chip--danger .chip__dot  { background: var(--danger); }
.chip--info    { background: var(--info-bg);    color: var(--info-text); }
.chip--info .chip__dot    { background: var(--primary); }
.chip--neutral { background: var(--chip-bg);    color: var(--chip-text); }
.chip--neutral .chip__dot { background: var(--muted); }

/* =====================================================================
   Lists / row links
   ===================================================================== */

.list {
  display: flex;
  flex-direction: column;
}
.list .row-link + .row-link { border-top: 1px solid var(--border); }

.row-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px 8px;
  border-radius: var(--radius-control);
  color: var(--text);
  cursor: pointer;
}
.row-link:hover { background: var(--surface-alt); }
/* Static rows (e.g. document records) are not navigable: drop the
   misleading pointer + hover affordance. */
.row-link--static { cursor: default; }
.row-link--static:hover { background: transparent; }
.row-link__main { min-width: 0; flex: 1; }
.row-link__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.row-link__meta {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.row-link__end {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.row-link__end [data-lucide] { color: var(--border-strong); }

/* =====================================================================
   Property cards / inventory
   ===================================================================== */

.prop-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}
.prop-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-alt);
}
.prop-card__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  flex: 0 0 84px;
  background: var(--info-bg);
  color: var(--primary);
  border-right: 1px solid var(--border);
}
.prop-card__thumb [data-lucide] { width: 30px; height: 30px; }
.prop-card__body {
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.room-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}
.room-group + .room-group { margin-top: 16px; }
.room-group__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.room-group__head [data-lucide] { color: var(--muted); width: 18px; height: 18px; }
.room-group__head .count {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.room-group__body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
  background: var(--surface);
}
.item-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.item-card__head > [data-lucide] {
  width: 36px;
  height: 36px;
  padding: 8px;
  box-sizing: content-box;
  display: none;
}
.item-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: var(--radius-control);
  background: var(--info-bg);
  color: var(--primary);
}
.item-card__icon [data-lucide] { width: 20px; height: 20px; }
.item-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.item-card__head .spacer { flex: 1; }

.item-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px 16px;
}
.meta { min-width: 0; }
.meta__label {
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta__value {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text);
  word-break: break-word;
}

.attach {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.attach__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.attach__item [data-lucide] { width: 14px; height: 14px; }

/* =====================================================================
   Tabs
   ===================================================================== */

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab [data-lucide] { width: 18px; height: 18px; }
.tab.is-active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

/* =====================================================================
   Timeline
   ===================================================================== */

.timeline {
  display: flex;
  flex-direction: column;
}
.tl {
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 20px;
}
.tl:last-child { padding-bottom: 0; }
.tl::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: -4px;
  width: 2px;
  background: var(--border);
}
.tl:last-child::before { display: none; }
.tl__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--muted);
  border: 1px solid var(--border);
}
.tl__icon [data-lucide] { width: 18px; height: 18px; }
.tl__icon.is-success { background: var(--success-bg); color: var(--success-text); border-color: transparent; }
.tl__icon.is-warning { background: var(--warning-bg); color: var(--warning-text); border-color: transparent; }
.tl__icon.is-info    { background: var(--info-bg);    color: var(--info-text);    border-color: transparent; }
.tl__body {
  flex: 1;
  min-width: 0;
  padding-top: 6px;
}
.tl__text {
  font-size: 15px;
  color: var(--text);
}
.tl__meta {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* =====================================================================
   Forms & modals
   ===================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  background: rgba(15, 27, 45, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.modal {
  width: 100%;
  max-width: 560px;
  margin: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 80px);
}
.modal__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal__title {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: var(--text);
}
.modal__head .spacer { flex: 1; }
.modal__body {
  padding: 24px;
  overflow-y: auto;
}
.modal__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.field__hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  line-height: 22px;
}
.input::placeholder,
.textarea::placeholder { color: var(--muted); }
.input:hover,
.select:hover,
.textarea:hover { border-color: var(--border-strong); }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 78, 216, 0.15);
}
.textarea {
  min-height: 88px;
  resize: vertical;
}
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6B7F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Toggle (used in share modal) */
.toggle {
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 26px;
  flex: 0 0 44px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.toggle__knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.2);
  transition: transform 0.15s ease;
}
.toggle.is-on { background: var(--primary); }
.toggle.is-on .toggle__knob { transform: translateX(18px); }

.toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}
.toggle-row + .toggle-row { border-top: 1px solid var(--border); }
.toggle-row__main { flex: 1; min-width: 0; }
.toggle-row__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.toggle-row__sub {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

/* Segmented control (urgency) */
.seg {
  display: inline-flex;
  width: 100%;
  padding: 4px;
  gap: 4px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}
.seg__opt {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.seg__opt:hover { color: var(--text); }
.seg__opt.is-on {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-pop);
}

/* =====================================================================
   Avatar
   ===================================================================== */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  user-select: none;
}
.avatar--sm {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  font-size: 11px;
}

/* =====================================================================
   Login (full-screen, no chrome)
   ===================================================================== */

.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login__brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  background: var(--primary);
  color: #fff;
}
.login__brand-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
}
.login__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.16);
}
.login__brand-mark [data-lucide] { color: #fff; }
.login__pitch h2 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  max-width: 18ch;
}
.login__pitch p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 38ch;
}
.login__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--bg);
}
.login__card {
  width: 100%;
  max-width: 380px;
}

/* =====================================================================
   Utilities
   ===================================================================== */

.muted { color: var(--muted); }

/* Shared typography utilities — small, standalone labels that don't belong
   to a single component (used for tenant name, captions, item subtitles). */
.text-strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.text-meta {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* One-off vertical spacing, driven by tokens instead of inline styles. */
.mt-12 { margin-top: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--sm { gap: 8px; }
.stack--lg { gap: 24px; }

.cluster {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.spacer { flex: 1; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.hide-mobile { display: revert; }
.hide-desktop { display: none; }

/* =====================================================================
   Responsive — mobile < 900px: bottom-nav replaces sidebar
   ===================================================================== */

@media (max-width: 899px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar { display: none; }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    padding: 6px 8px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--border);
  }
  .bottom-nav .nav-item {
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-height: 52px;
    padding: 6px 4px;
    border-radius: var(--radius-control);
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
  }
  .bottom-nav .nav-item [data-lucide] { width: 22px; height: 22px; }
  .bottom-nav .nav-item:hover { background: transparent; color: var(--text); }
  .bottom-nav .nav-item.is-active {
    background: transparent;
    color: var(--primary);
  }
  .bottom-nav .nav-item.is-active::before { display: none; }

  .topbar { padding: 10px 16px; }

  .app-main { padding-bottom: 72px; }

  .page { padding: 16px; }
  .page__title { font-size: 24px; line-height: 30px; }

  /* Stack the page header so the thumb, title and primary action don't
     fight for one row (and overflow) on a narrow viewport. */
  .page__head {
    flex-direction: column;
    align-items: stretch;
  }
  .page__head .spacer { display: none; }
  .page__head .btn { width: 100%; justify-content: center; }

  /* Lift interactive controls to a comfortable touch target on mobile. */
  .btn--sm { min-height: 40px; }
  .seg__opt { min-height: 40px; }
  .toggle { height: 40px; }

  .card--pad,
  .panel { padding: 16px; }
  .panel + .panel { margin-top: 16px; }

  .grid-2 { grid-template-columns: 1fr; }

  .login { grid-template-columns: 1fr; }
  .login__brand { display: none; }
  .login__panel { padding: 24px; }

  .modal-overlay { padding: 0; align-items: stretch; }
  .modal {
    max-width: 100%;
    margin: auto 0 0;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    max-height: 92vh;
  }

  .hide-mobile { display: none; }
  .hide-desktop { display: revert; }
}

@media (max-width: 480px) {
  .prop-card__thumb { width: 64px; flex-basis: 64px; }
  .modal__foot { flex-direction: column-reverse; }
  .modal__foot .btn { width: 100%; }
}

/* =====================================================================
   Brand theme — PropertyInfoFile palette (indigo structure + orange CTA).
   Placed last so it wins the cascade over the original rules above.
   Re-declares the brand tokens and the brand-mark / primary-button rules
   to match the supplied logo and colour scheme.
   ===================================================================== */
:root {
  --primary:      #2A2350;   /* deep indigo — nav, links, structure */
  --primary-dark: #1F1A40;
  --accent:       #E8541E;   /* brand orange */
  --cta:          #D8500F;   /* primary call-to-action fill */
  --cta-dark:     #B8420B;
  --info-text:    #2A2350;   /* icon tiles -> indigo */
  --info-bg:      #ECEAF6;
  --ring:         #2A2350;
}

.btn--primary { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn--primary:hover { background: var(--cta-dark); border-color: var(--cta-dark); }

/* Brand lockup — concept 4 "Signature": Marcellus wordmark, no icon. */
.brand-dot { color: var(--cta); font-style: normal; }
.brand__mark, .login__brand-mark { display: none; }
.brand__word {
  font-family: 'Marcellus', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 400;
  font-size: 19px;
  line-height: 1;
  color: var(--primary);
}
.brand__sub {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.16em;
  margin-top: 5px;
}
.login__word {
  font-family: 'Marcellus', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 400;
  font-size: 30px;
  color: #fff;
}
.login__word .brand-dot { color: var(--cta); }

/* =====================================================================
   Differentiator screens — compliance, reputation, AI, energy, insights
   ===================================================================== */
.section-title { font-size: 18px; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.hero-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; }
.hero-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bigstat { font-size: 34px; font-weight: 600; color: var(--primary); line-height: 1; white-space: nowrap; }
.bigstat span { font-size: 18px; }
.progress { height: 10px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; margin-top: 12px; }
.progress span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }

.panel--alert { border-left: 3px solid var(--warning); border-radius: var(--radius-card); }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--info-bg); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 18px 20px; }

.check-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.check-row:last-child { border-bottom: 0; }
.check-row__name { font-weight: 500; }
.check-row__date { min-width: 92px; font-size: 13px; text-align: right; }

.score { text-align: center; }
.score__num { font-size: 26px; font-weight: 600; color: var(--primary); line-height: 1; }
.score__of { font-size: 11px; color: var(--muted); }

.vbadge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--success-bg); color: var(--success-text); font-size: 12px; font-weight: 500; }
.vbadge [data-lucide] { width: 14px; height: 14px; }

.prow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; }

.passport { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 18px; }
.passport__head { display: flex; align-items: center; gap: 12px; }
.passport__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 11px; background: var(--info-bg); color: var(--primary); }
.passport__name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.passport__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.passport__stats { border-top: 1px solid var(--border); padding-top: 8px; }
.passport__foot { margin-top: 10px; font-size: 13px; }

.scan-frame { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 120px; border: 2px dashed var(--border-strong); border-radius: var(--radius-card); color: var(--muted); background: var(--surface-alt); }
.scan-frame [data-lucide] { width: 28px; height: 28px; }

.wa-thread { background: var(--surface-alt); border-radius: var(--radius-card); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.wa-msg { display: flex; }
.wa-msg--in { justify-content: flex-start; }
.wa-msg--out { justify-content: flex-end; }
.wa-bubble { max-width: 82%; padding: 8px 12px; border-radius: 14px; font-size: 13px; line-height: 1.45; }
.wa-msg--in .wa-bubble { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.wa-msg--out .wa-bubble { background: #DCF8C6; color: #0F3D1E; border-bottom-right-radius: 4px; }
.wa-meta { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.wa-msg--out .wa-meta { color: #3A6B46; }
.wa-photo { display: inline-flex; align-items: center; gap: 6px; }

.ai-card { background: var(--info-bg); border-radius: var(--radius-card); padding: 14px; margin-top: 12px; }
.ai-card .prow { padding: 5px 0; }

.epc-scale { display: flex; gap: 4px; }
.epc-band { flex: 1; text-align: center; padding: 12px 0; border-radius: 6px; font-weight: 600; color: #fff; position: relative; font-size: 13px; }
.epc-band--0 { background: #0E8F5E; }
.epc-band--1 { background: #3BA55D; }
.epc-band--2 { background: #8DBF2E; }
.epc-band--3 { background: #F2C037; color: #5A4A00; }
.epc-band--4 { background: #EF9F27; }
.epc-band--5 { background: #E5732B; }
.epc-band--6 { background: #D8500F; }
.epc-band.is-now, .epc-band.is-target { outline: 3px solid var(--text); outline-offset: 1px; z-index: 1; }
.epc-mark { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 600; color: var(--text); white-space: nowrap; }
.epc-mark--target { color: var(--primary); }

.deal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px; }
.deal__price { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.deal__was { text-decoration: line-through; color: var(--muted); font-size: 14px; }
.deal__now { font-size: 20px; font-weight: 600; }

.bench { padding: 10px 0; border-bottom: 1px solid var(--border); }
.bench:last-child { border-bottom: 0; }
.bench__bar { height: 8px; border-radius: 999px; background: var(--surface-alt); margin: 8px 0 4px; overflow: hidden; }
.bench__you { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.bench__labels { font-size: 12px; }

.nav-overlay { position: fixed; inset: 0; background: rgba(15, 27, 45, 0.45); z-index: 60; display: flex; align-items: flex-end; }
.nav-sheet { width: 100%; max-height: 82vh; overflow-y: auto; background: var(--surface); border-top-left-radius: 18px; border-top-right-radius: 18px; padding: 16px; }
.nav-sheet__head { display: flex; align-items: center; margin-bottom: 8px; font-size: 16px; }
.nav-sheet__group { margin-bottom: 12px; }
.nav-sheet .nav-item { color: var(--text); }

@media (max-width: 899px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero-panel__head { flex-direction: column; }
}

/* Rent ledger & Section 13 notice */
.ledger { overflow-x: auto; }
.ledger__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ledger__table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ledger__table td { padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ledger__table tbody tr:last-child td { border-bottom: 0; }
.ledger__table .num { text-align: right; }

.notice { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-card); padding: 22px; font-size: 13px; line-height: 1.6; }
.notice__form { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; margin-bottom: 10px; }
.notice__title { font-size: 16px; font-weight: 600; }
.notice__sub { color: var(--muted); margin: 2px 0 14px; font-size: 12px; }
.notice__row { display: flex; gap: 10px; padding: 4px 0; }
.notice__row span { color: var(--muted); min-width: 120px; }
.notice__para { margin: 12px 0; }
.notice__sign { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); }

/* Compliance checker */
.qcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 18px; }
.qcard__q { font-weight: 500; }
.qcard__help { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.opt { padding: 9px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; }
.opt:hover { background: var(--surface-alt); }
.opt.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }

.reqcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px 18px; }
.reqcard__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.reqcard__head b { font-size: 15px; }
.reqcard__sum { font-size: 14px; color: var(--muted); line-height: 1.55; margin-top: 8px; }
.reqcard__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.reqcard__src { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--primary); }
.reqcard__src [data-lucide] { width: 14px; height: 14px; }
.selfcheck { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.selfcheck__q { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.selfcheck__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.scbtn { padding: 6px 12px; border-radius: var(--radius-control); border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; min-height: 34px; }
.scbtn:hover { background: var(--surface-alt); color: var(--text); }
.scbtn.is-on.is-ok { background: var(--success-bg); border-color: var(--success); color: var(--success-text); }
.scbtn.is-on.is-action { background: var(--danger-bg); border-color: var(--danger); color: var(--danger-text); }
.scbtn.is-on.is-unsure { background: var(--warning-bg); border-color: var(--warning); color: var(--warning-text); }
.scbtn.is-on.is-na { background: var(--chip-bg); border-color: var(--border-strong); color: var(--chip-text); }
.sevdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.sevdot--danger { background: var(--danger); }
.sevdot--warning { background: var(--warning); }
.sevdot--neutral { background: var(--border-strong); }

/* Letting — listings, viewings, applicants */
.tile { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px; background: var(--info-bg); color: var(--primary); flex-shrink: 0; }
.tile [data-lucide] { width: 24px; height: 24px; }
.portal { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--surface-alt); border: 1px solid var(--border); font-size: 12px; font-weight: 500; color: var(--muted); }
.portal--live { background: var(--success-bg); color: var(--success-text); border-color: transparent; }
.portal__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.checkpill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--radius-control); font-size: 12px; font-weight: 500; }
.checkpill [data-lucide] { width: 14px; height: 14px; }
.checkpill--pass { background: var(--success-bg); color: var(--success-text); }
.checkpill--review { background: var(--warning-bg); color: var(--warning-text); }
.checkpill--pending { background: var(--chip-bg); color: var(--chip-text); }
.checkpill--fail { background: var(--danger-bg); color: var(--danger-text); }
