/* =========================================================================
   Long-term landlord pages — design tokens + page-level component utilities.

   The shell (sidebar / topbar / breadcrumbs / icon buttons / avatar
   dropdown) used to live here too, but was retired when _AppAuthLayout
   was rewritten on top of Modernize. What remains are the page-level
   classes (.rq-card, .rq-kpi-strip, .rq-page-header, .rq-rows, .rq-field,
   .rq-listing-card, .rq-msg, .rq-avatar etc.) that ~150 page views
   depend on. The CSS variable block is unchanged so anything reading
   var(--rq-blue) etc. keeps working.
   ========================================================================= */

/* ============================================================
   TOKENS MOVED OUT — see rq-tokens.css / rq-theme.css / rq-bridge.css

   This file used to open with a .rq-layout block declaring ~45 --rq-*
   variables aliased to Bootstrap (--rq-blue: var(--bs-primary), etc.),
   plus a [data-bs-theme="dark"] override carrying two hardcoded navies.

   That block is gone. Every name it declared is now defined on :root in
   rq-theme.css and points at our own palette instead of Bootstrap's.
   Three things improved by the move:

     · The tokens are on :root, so they exist on every page. Previously
       anything outside a .rq-layout subtree — the editorial pages, error
       pages, the print stylesheet — silently got no brand colours at all.

     · --rq-navy meant three different things in three files (#0b1024
       here in editorial.css, #1e2330 below, #0b0f1a in the dark block).
       It now means exactly one: the inverted decorative panel.

     · The arrow is reversed. Bootstrap now reads OUR tokens via
       rq-bridge.css rather than the other way round, which is what lets
       Modernize be removed incrementally later.

   The page-level component classes below (.rq-card, .rq-kpi-strip,
   .rq-page-header, .rq-rows, .rq-field, .rq-listing-card, .rq-msg,
   .rq-avatar …) are unchanged and still consume the same var(--rq-*)
   names, so the ~150 views that depend on them needed no edits.
   ============================================================ */

/* ---- Avatar utility — referenced from Team/Index, Documents/Detail, etc.
   Used as a generic "circle with initials" badge inside page bodies, NOT
   as part of the topbar dropdown (Modernize owns that now). */
.rq-avatar {
    border-radius: 50%;
    /* Gradient follows the active accent color (--bs-primary-rgb is set
       by Modernize per data-color-theme: Blue=91,127,255 / Purple=...). */
    background: linear-gradient(135deg,
        rgb(var(--bs-primary-rgb)),
        rgba(var(--bs-primary-rgb), .72));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--rq-on-accent);
    flex-shrink: 0;
    width: 32px; height: 32px;
    font-size: 12px;
}
.rq-avatar.lg { width: 52px; height: 52px; font-size: 20px; }
.rq-avatar-md { width: 40px; height: 40px; font-size: 14px; }

/* ---- Page header ---- */
.rq-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.rq-page-title {
    /* Fraunces names the page; the weight drops to 600 because the serif
       carries its own contrast and 700 reads heavy at this size. */
    font-family: var(--rq-font-display);
    font-variation-settings: "opsz" 144;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.1;
    color: var(--rq-text);
    text-wrap: balance;
}
.rq-page-sub {
    margin-top: 4px;
    font-size: 14px;
    color: var(--rq-sub);
}
.rq-hdr-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Buttons (used alongside Bootstrap btn for some pages) ---- */
.rq-btn {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--rq-border);
    background: var(--rq-surface);
    color: var(--rq-text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background .12s, border-color .12s, color .12s;
    text-decoration: none;
}
.rq-btn:hover { background: var(--rq-muted); color: var(--rq-text); }
.rq-btn.primary { background: var(--rq-blue); border-color: var(--rq-blue); color: var(--rq-on-accent); }
.rq-btn.primary:hover { background: var(--rq-blue-hover); border-color: var(--rq-blue-hover); color: var(--rq-on-accent); }
.rq-btn.success { background: var(--rq-green); border-color: var(--rq-green); color: var(--rq-on-accent); }
.rq-btn.success:hover { filter: brightness(0.95); color: var(--rq-on-accent); }
.rq-btn.danger { background: var(--rq-red); border-color: var(--rq-red); color: var(--rq-on-accent); }
.rq-btn.danger:hover { filter: brightness(0.95); color: var(--rq-on-accent); }
.rq-btn.outline-primary {
    background: var(--rq-surface); border-color: var(--rq-blue-mid); color: var(--rq-blue-hover);
}
.rq-btn.outline-primary:hover { background: var(--rq-blue-soft); color: var(--rq-blue-hover); }
.rq-btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }

/* ---- KPI cards ---- */
.rq-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}
.rq-kpi-strip.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 992px) {
    .rq-kpi-strip { grid-template-columns: repeat(2, 1fr); }
}
.rq-kpi {
    background: var(--rq-surface);
    border: 1px solid var(--rq-border);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(167,186,222,.10);
}
.rq-kpi-label {
    /* Plex Mono for the label as well as the figure: the pair reads as one
       "counted" unit, and a tracked mono cap label is quieter than a bold sans. */
    font-family: var(--rq-font-mono);
    font-size: 10.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--rq-faint);
    margin-bottom: 10px;
}
.rq-kpi-value {
    font-family: var(--rq-font-mono);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1;
    color: var(--rq-text);
}
.rq-kpi-sub {
    margin-top: 6px;
    font-size: 12px;
    color: var(--rq-sub);
}
.rq-kpi.success .rq-kpi-value { color: var(--rq-green); }
.rq-kpi.alert   .rq-kpi-value { color: var(--rq-amber); }
.rq-kpi.danger  .rq-kpi-value { color: var(--rq-red); }
.rq-kpi.info    .rq-kpi-value { color: var(--rq-blue-hover); }
/* "alert" is ALSO a Bootstrap component class — its padding + 1rem
   margin-bottom made .rq-kpi.alert cards ~16px shorter than their row
   (ragged bottom edge on every KPI strip using the amber variant, e.g.
   Trips "Total spent", tenant Pay "Balance"). Re-assert the .rq-kpi box
   so the Bootstrap component styles lose. */
.rq-kpi.alert {
    padding: 16px 18px;
    margin-bottom: 0;
    background: var(--rq-surface);
    border: 1px solid var(--rq-border);
    border-radius: 16px;
    color: inherit;
}

/* ---- Filter bar ---- */
.rq-filter-bar {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 16px; flex-wrap: wrap;
}
.rq-search-input {
    height: 36px;
    padding: 0 12px 0 34px;
    border-radius: 10px;
    border: 1px solid var(--rq-border);
    background: var(--rq-surface);
    font: inherit;
    font-size: 13px;
    color: var(--rq-text);
    outline: none;
    min-width: 220px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a98b2' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
}
.rq-search-input:focus { border-color: var(--rq-blue); }

.rq-filter-pill {
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--rq-border);
    background: var(--rq-surface);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--rq-sub);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background .10s, border-color .10s;
}
.rq-filter-pill:hover { background: var(--rq-muted); }
.rq-filter-pill.active {
    background: var(--rq-blue-soft);
    border-color: var(--rq-blue-mid);
    color: var(--rq-blue-hover);
}
.rq-filter-count {
    background: var(--rq-blue);
    color: var(--rq-on-accent);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
}

/* ---- Badges ---- */
.rq-badge {
    display: inline-flex; align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.4;
}
.rq-badge.success { background: var(--rq-green-soft); color: var(--rq-green); }
.rq-badge.warning { background: var(--rq-amber-soft); color: var(--rq-amber); }
.rq-badge.danger { background: var(--rq-red-soft);   color: var(--rq-red); }
.rq-badge.info { background: var(--rq-blue-soft);  color: var(--rq-blue-hover); }
.rq-badge.neutral { background: var(--rq-muted);      color: var(--rq-sub); }
/* Alias variants — ~150 views use the short names; without these the
   badges rendered as bare unstyled text. */
.rq-badge.ok { background: var(--rq-green-soft); color: var(--rq-green); }
.rq-badge.warn { background: var(--rq-amber-soft); color: var(--rq-amber); }
.rq-badge.muted { background: var(--rq-muted);      color: var(--rq-sub); }

/* ---- Cards ---- */
.rq-card {
    background: var(--rq-surface);
    border: 1px solid var(--rq-border);
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 2px 8px rgba(167,186,222,.08);
    margin-bottom: 16px;
}
.rq-card.compact { padding: 16px 18px; }
.rq-card-title {
    font-family: var(--rq-font-display);
    font-variation-settings: "opsz" 144;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.015em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--rq-text);
}

.rq-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.rq-field label,
.rq-field-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--rq-faint);
}
.rq-field-val { font-size: 13px; font-weight: 600; color: var(--rq-text); }

/* ---- Hero (applicant / lease) ---- */
.rq-hero {
    background: linear-gradient(135deg, var(--rq-navy), var(--rq-navy-2));
    border-radius: 18px;
    padding: 22px 24px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.rq-hero-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgb(var(--bs-primary-rgb)),
        rgba(var(--bs-primary-rgb), .72));
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; color: var(--rq-on-accent);
    flex-shrink: 0;
}
.rq-hero-info { flex: 1; min-width: 200px; }
.rq-hero-name { font-size: 20px; font-weight: 700; color: var(--rq-on-inverse); letter-spacing: -.03em; }
.rq-hero-sub { font-size: 13px; color: rgba(255,255,255,.62); margin-top: 4px; }
.rq-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Screening dots ---- */
.rq-screen-dots { display: inline-flex; align-items: center; gap: 4px; }
.rq-screen-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.rq-screen-dot.pending { background: var(--bs-secondary-bg); }
.rq-screen-dot.passed { background: var(--rq-green); }
.rq-screen-dot.review { background: var(--rq-amber); }
.rq-screen-dot.failed { background: var(--rq-red); }
.rq-screen-dot.na { background: var(--bs-tertiary-bg); }

/* ---- Info/status banners ----
   Used by ~67 views as: <div class="rq-banner [ok|warn]"><i class="ti …"></i><div>…</div></div>.
   Default look is the blue "info" tone; views frequently override
   background/border-color inline with the --rq-*-soft/-mid pairs, so keep
   those two properties un-!important. */
.rq-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--rq-blue-soft);
    border: 1px solid var(--rq-blue-mid);
    border-radius: 14px;
    color: var(--rq-text);
    font-size: 13px;
    line-height: 1.5;
}
.rq-banner > i {
    font-size: 20px;
    color: var(--rq-blue-hover);
    flex-shrink: 0;
}
.rq-banner.ok { background: var(--rq-success-soft); border-color: var(--rq-success-mid); }
.rq-banner.ok > i { color: var(--rq-success-hover); }
.rq-banner.warn { background: var(--rq-warning-soft); border-color: var(--rq-warning-mid); }
.rq-banner.warn > i { color: var(--rq-warning-hover); }
.rq-banner.danger { background: var(--rq-danger-soft); border-color: var(--rq-danger-mid); }
.rq-banner.danger > i { color: var(--rq-danger-hover); }

/* ---- Filter / choice pills ----
   Two shapes share this class: <a class="rq-pill [active]"> filter rows
   (inside a .rq-pills strip), and <label class="rq-pill"><input type=radio
   style="display:none">…</label> choice chips on forms. Selected state is
   .active (links) or a checked hidden input (labels). */
.rq-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.rq-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--rq-border);
    border-radius: 999px;
    background: var(--rq-surface);
    color: var(--rq-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.rq-pill:hover { border-color: var(--rq-blue); color: var(--rq-text); }
.rq-pill.active,
.rq-pill:has(input:checked) {
    background: var(--rq-blue);
    border-color: var(--rq-blue);
    color: var(--rq-on-accent);
}
.rq-pill.active i,
.rq-pill:has(input:checked) i { color: var(--rq-on-accent); }

/* ---- Tabler "-filled" icon aliases ----
   The bundled tabler-icons font predates the filled variants, so
   ti-circle-check-filled / ti-star-filled / ti-heart-filled render as
   BLANK glyphs (checklists, rating stars, saved hearts). Map them to the
   outline glyphs — call sites already convey the filled state by color. */
.ti-circle-check-filled:before { content: "\ea67"; }
.ti-star-filled:before { content: "\eb2e"; }
.ti-heart-filled:before { content: "\eabe"; }
/* Same problem, non-"filled" names: these ti-* names don't exist in the
   bundled font either (they're from newer Tabler releases) — each mapped
   to the closest available glyph. Full sweep done 2026-08-24. */
.ti-bank:before { content: "\ebe2"; } /* building-bank */
.ti-clock-x:before { content: "\f0cf"; } /* clock-off */
.ti-clock-exclamation:before { content: "\ea04"; } /* alarm */
.ti-users-plus:before { content: "\eb4b"; } /* user-plus */
.ti-grid:before { content: "\edba"; } /* layout-grid */
.ti-check-circle:before { content: "\ea67"; } /* circle-check */
.ti-shield-exclamation:before { content: "\eb23"; } /* shield-x */
.ti-calendar-check:before { content: "\ee20"; } /* calendar-stats */
.ti-calendar-week:before { content: "\ea53"; } /* calendar */
.ti-calendar-exclamation:before { content: "\ee21"; } /* calendar-time */
.ti-funnel:before { content: "\eaa5"; } /* filter */
.ti-progress:before { content: "\eca3"; } /* loader */
.ti-stamp:before { content: "\ed76"; } /* certificate */
.ti-x-circle:before { content: "\ea6a"; } /* circle-x */
.ti-shield-search:before { content: "\eb24"; } /* shield */
.ti-shield-dollar:before { content: "\eb24"; } /* shield */
.ti-users-group:before { content: "\ebf2"; } /* users */
.ti-arrow-right-rhombus:before { content: "\ea1f"; } /* arrow-right */
.ti-rosette-discount-check:before { content: "\f1f8"; } /* discount-check */

/* ---- Empty/zero hint ---- */
.rq-zero { color: var(--rq-faint); }

/* ---- Compact applicant cell ---- */
.rq-applicant-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; color: var(--rq-text); }
.rq-applicant-meta { font-size: 12px; color: var(--rq-sub); }

/* ---- Action link in grids ---- */
.rq-action-link {
    color: var(--rq-blue-hover);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.rq-action-link:hover { color: var(--rq-blue); }

/* ---- Banner from-source ---- */
.rq-source-banner {
    background: var(--rq-blue-soft);
    border: 1px solid var(--rq-blue-mid);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: var(--rq-text);
}
.rq-source-banner i { color: var(--rq-blue-hover); font-size: 18px; }

/* ---- Side-rail card list ---- */
.rq-side-rail .rq-card { padding: 18px 20px; }

/* The legacy custom avatar dropdown (.rq-avatar-dropdown, .rq-avatar-button,
   .rq-avatar-menu*, .rq-avatar-menu-item*) was retired when the topbar
   moved to Modernize. The same persona switcher + sign-out actions now
   render inside Modernize's <div class="dropdown-menu content-dd"> in
   _AppAuthLayout.cshtml using Bootstrap's standard dropdown classes. */

/* ==================== Persona tile chooser (/me) ==================== */
.rq-me-hero {
    background: linear-gradient(135deg, var(--rq-navy), var(--rq-navy-2));
    border-radius: 18px;
    padding: 32px 36px;
    margin-bottom: 24px;
    color: var(--rq-on-inverse);
}
.rq-me-hero-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.1;
    color: var(--rq-on-inverse);
}
.rq-me-hero-sub {
    color: rgba(255,255,255,.72);
    font-size: 14px;
    margin-top: 6px;
}

.rq-persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.rq-persona-card {
    background: var(--rq-surface);
    border: 1px solid var(--rq-border);
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 2px 8px rgba(167,186,222,.10);
    text-decoration: none;
    color: var(--rq-text);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .12s, box-shadow .12s, border-color .12s;
    position: relative;
}
.rq-persona-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91,127,255,.15);
    border-color: var(--rq-blue-mid);
    text-decoration: none;
    color: var(--rq-text);
}
.rq-persona-card.muted {
    background: var(--rq-muted);
    border-style: dashed;
    box-shadow: none;
}
.rq-persona-card-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--rq-blue-soft);
    color: var(--rq-blue-hover);
    font-size: 22px;
}
.rq-persona-card.muted .rq-persona-card-icon {
    background: var(--rq-border);
    color: var(--rq-faint);
}
.rq-persona-card-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--rq-text);
}
.rq-persona-card-sub {
    font-size: 13px;
    color: var(--rq-sub);
    flex: 1;
    line-height: 1.45;
}
.rq-persona-card-cta {
    color: var(--rq-blue-hover);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rq-persona-card.muted .rq-persona-card-cta { color: var(--rq-faint); }
.rq-persona-card-pill {
    position: absolute;
    top: 16px; right: 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--rq-blue-soft);
    color: var(--rq-blue-hover);
}
.rq-persona-card.muted .rq-persona-card-pill {
    background: var(--rq-border);
    color: var(--rq-sub);
}

/* ==================== Inbox layout (Inquiries) ==================== */
.rq-inbox {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 0;
    background: var(--rq-surface);
    border: 1px solid var(--rq-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(167,186,222,.10);
    min-height: 580px;
}

.rq-inq-list {
    border-right: 1px solid var(--rq-border);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    max-height: 720px;
}
.rq-inq-list-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--rq-border);
    display: flex;
    align-items: center;
    gap: 8px;
    position: sticky;
    top: 0;
    background: var(--rq-surface);
    z-index: 1;
}
.rq-inq-search {
    flex: 1;
    height: 32px;
    padding: 0 10px 0 30px;
    border-radius: 8px;
    border: 1px solid var(--rq-border);
    background: var(--rq-muted);
    font: inherit;
    font-size: 12px;
    color: var(--rq-text);
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a98b2' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 9px center;
}
.rq-inq-search:focus { border-color: var(--rq-blue); background: var(--bs-body-bg); }

.rq-inq-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--rq-border);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background .10s;
    text-decoration: none;
    color: var(--rq-text);
}
.rq-inq-item:last-child { border-bottom: none; }
.rq-inq-item:hover { background: var(--rq-muted); text-decoration: none; color: var(--rq-text); }
.rq-inq-item.active { background: var(--rq-blue-soft); }
.rq-inq-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rq-inq-name { font-size: 13px; font-weight: 700; }
.rq-inq-name.unread::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--rq-blue);
    margin-right: 6px;
    vertical-align: middle;
}
.rq-inq-time { font-size: 11px; color: var(--rq-faint); flex-shrink: 0; }
.rq-inq-unit { font-size: 12px; color: var(--rq-blue-hover); font-weight: 600; }
.rq-inq-preview {
    font-size: 12px;
    color: var(--rq-sub);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.rq-inq-empty {
    padding: 60px 24px;
    text-align: center;
    color: var(--rq-faint);
    font-size: 13px;
}

/* Thread panel */
.rq-thread {
    display: flex;
    flex-direction: column;
    min-height: 580px;
}
.rq-thread-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--rq-faint);
    padding: 40px;
    text-align: center;
}
.rq-thread-empty i { font-size: 48px; margin-bottom: 12px; opacity: .5; }
.rq-thread-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--rq-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.rq-thread-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rq-thread-name { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.rq-thread-sub { font-size: 12px; color: var(--rq-sub); }
.rq-thread-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.rq-prospect-card {
    margin: 16px 20px 0;
    background: var(--rq-muted);
    border: 1px solid var(--rq-border);
    border-radius: 12px;
    padding: 12px 14px;
}
.rq-prospect-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--rq-faint);
    margin-bottom: 8px;
}
.rq-prospect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.rq-prospect-item { font-size: 12px; }
.rq-prospect-item .rq-prospect-label { color: var(--rq-sub); display: block; }
.rq-prospect-item .rq-prospect-value { font-weight: 600; display: block; }

.rq-messages {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 420px;
}
.rq-msg { max-width: 75%; }
.rq-msg.them { align-self: flex-start; }
.rq-msg.me { align-self: flex-end; }
.rq-msg.system {
    align-self: center;
    max-width: 85%;
    text-align: center;
}
.rq-msg-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.rq-msg.them .rq-msg-bubble {
    background: var(--rq-muted);
    border: 1px solid var(--rq-border);
    border-radius: 14px 14px 14px 4px;
}
.rq-msg.me .rq-msg-bubble {
    background: var(--rq-blue);
    color: var(--rq-on-accent);
    border-radius: 14px 14px 4px 14px;
}
.rq-msg.system .rq-msg-bubble {
    background: transparent;
    border: 1px dashed var(--rq-border);
    color: var(--rq-faint);
    font-size: 12px;
    font-style: italic;
    padding: 6px 12px;
}
.rq-msg-time { font-size: 11px; color: var(--rq-faint); margin-top: 3px; padding: 0 4px; }
.rq-msg.me .rq-msg-time { text-align: right; }

.rq-reply-bar {
    padding: 14px 20px;
    border-top: 1px solid var(--rq-border);
    display: flex;
    gap: 10px;
    align-items: flex-end;
}
.rq-reply-input {
    flex: 1;
    border: 1px solid var(--rq-border);
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    font-size: 13px;
    color: var(--rq-text);
    background: var(--rq-muted);
    resize: none;
    outline: none;
    min-height: 44px;
    max-height: 120px;
    font-family: inherit;
}
.rq-reply-input:focus { border-color: var(--rq-blue); background: var(--bs-body-bg); }

/* ==================== Listing card / grid ==================== */
.rq-listing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.rq-listing-card {
    background: var(--rq-surface);
    border: 1px solid var(--rq-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(167,186,222,.10);
    display: flex;
    flex-direction: column;
    transition: transform .12s, box-shadow .12s;
    text-decoration: none;
    color: var(--rq-text);
}
.rq-listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(91,127,255,.15);
    text-decoration: none;
    color: var(--rq-text);
}
/* Photo-less usage: several ops pages (move-out notices, turnover,
   inspections, document templates/pending, buildings) put content
   directly in the card with no .rq-listing-hero/.rq-listing-body
   wrappers — the card itself must carry the padding then. */
.rq-listing-card:not(:has(.rq-listing-hero)):not(:has(.rq-listing-body)) {
    padding: 16px 18px;
}
/* Bare title/sub inside these cards (the browse grid scopes its own). */
.rq-listing-card .rq-listing-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--rq-text);
    letter-spacing: -.01em;
}
.rq-listing-card .rq-listing-sub {
    font-size: 13px;
    color: var(--rq-sub);
    margin-top: 2px;
}
.rq-listing-hero {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--rq-blue-soft), var(--rq-muted));
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}
.rq-listing-hero-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rq-faint);
    font-size: 28px;
    width: 100%;
    height: 100%;
}
.rq-listing-hero .rq-listing-status {
    position: absolute;
    top: 12px;
    left: 12px;
}
.rq-listing-body {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.rq-listing-headline {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 4px;
    line-height: 1.3;
    color: var(--rq-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rq-listing-property {
    font-size: 12px;
    color: var(--rq-sub);
    margin-bottom: 12px;
}
.rq-listing-rent {
    font-size: 18px;
    font-weight: 700;
    color: var(--rq-text);
    letter-spacing: -.02em;
}
.rq-listing-rent-suffix {
    font-size: 12px;
    font-weight: 500;
    color: var(--rq-sub);
}
.rq-listing-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--rq-border);
    font-size: 12px;
    color: var(--rq-sub);
}
.rq-listing-meta-item { display: flex; align-items: center; gap: 4px; }
.rq-listing-meta-item i { color: var(--rq-faint); }

/* ==================== Public listing preview ==================== */
.rq-public-listing {
    background: var(--rq-surface);
    border: 1px solid var(--rq-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(167,186,222,.10);
    margin-bottom: 22px;
}
.rq-public-hero {
    aspect-ratio: 21 / 9;
    background: linear-gradient(135deg, var(--rq-navy), var(--rq-navy-2));
    background-size: cover;
    background-position: center;
    color: var(--rq-on-inverse);
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 28px;
}
.rq-public-hero-empty {
    width: 100%; text-align: center;
    color: rgba(255,255,255,.4);
    font-size: 48px;
}
.rq-public-headline {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.1;
    color: var(--rq-on-inverse);
    text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.rq-public-sub {
    color: rgba(255,255,255,.85);
    font-size: 14px;
    margin-top: 6px;
}
.rq-public-body { padding: 24px 28px; }
/* The headline rent on a public listing page — the single figure the
   whole page exists to communicate. Was the accent blue, i.e. the same
   colour as every button around it. */
.rq-public-rent {
    font-size: 32px;
    font-weight: 700;
    color: var(--rq-money);
    letter-spacing: -.03em;
    margin-bottom: 18px;
    font-variant-numeric: tabular-nums;
}
.rq-public-rent .rq-public-rent-suffix {
    font-size: 16px;
    font-weight: 500;
    color: var(--rq-sub);
}
.rq-public-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin: 18px 0;
}
.rq-public-feature {
    background: var(--rq-muted);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}
.rq-public-feature i { color: var(--rq-blue); font-size: 16px; }
.rq-public-description {
    font-size: 14px;
    color: var(--rq-text);
    line-height: 1.6;
    white-space: pre-wrap;
    margin-bottom: 18px;
}
.rq-public-cta {
    border-top: 1px solid var(--rq-border);
    padding-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==================== Screening tiles ==================== */
.rq-check-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}
@media (max-width: 768px) {
    .rq-check-tiles { grid-template-columns: repeat(2, 1fr); }
}
.rq-check-tile {
    background: var(--rq-surface);
    border: 1px solid var(--rq-border);
    border-radius: 16px;
    padding: 18px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--rq-text);
    box-shadow: 0 2px 8px rgba(167,186,222,.10);
    transition: transform .12s, box-shadow .12s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.rq-check-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(91,127,255,.12);
    text-decoration: none;
    color: var(--rq-text);
}
.rq-check-tile-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    background: var(--rq-muted);
    color: var(--rq-faint);
}
.rq-check-tile.passed { border-color: var(--rq-green); }
.rq-check-tile.passed  .rq-check-tile-icon { background: var(--rq-green-soft); color: var(--rq-green); }
.rq-check-tile.review { border-color: var(--rq-amber); }
.rq-check-tile.review  .rq-check-tile-icon { background: var(--rq-amber-soft); color: var(--rq-amber); }
.rq-check-tile.failed { border-color: var(--rq-red); }
.rq-check-tile.failed  .rq-check-tile-icon { background: var(--rq-red-soft); color: var(--rq-red); }
.rq-check-tile-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-top: 4px;
}
.rq-check-tile-status {
    font-size: 11px;
    color: var(--rq-sub);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.rq-check-tile-link {
    font-size: 11px;
    color: var(--rq-blue-hover);
    font-weight: 600;
    margin-top: 4px;
}

/* ---- .rq-rows / .rq-row ----
   A simple list-of-rows pattern used heavily by the apply funnel
   (Dashboard "Sections", Household members, History, Employment, …)
   and other long-term pages. These class names were referenced by
   ~many views and the file's own header comment, but the actual
   rules were never present — so every `<div class="rq-rows">` /
   `.rq-row` rendered as unstyled stacked divs ("sections does not
   look styled"). Modeled on .rq-row-item below for visual
   consistency; .rq-row adds the clickable-row affordance because
   several funnels render `<a class="rq-row">`. */
.rq-rows {
    display: flex;
    flex-direction: column;
}
.rq-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 2px;
    border-bottom: 1px solid var(--rq-border);
}
.rq-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
/* Clickable rows (e.g. Dashboard section links). The transparent
   border keeps geometry stable between rest/hover so the list
   doesn't shift on hover. */
a.rq-row {
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    transition: background .15s ease, color .15s ease;
}
a.rq-row:hover {
    background: var(--rq-blue-soft);
    color: var(--rq-text);
}

.rq-row-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rq-border);
}
.rq-row-item:last-child { border-bottom: none; padding-bottom: 0; }
.rq-row-item-body { flex: 1; }
.rq-row-item-body strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--rq-text);
    margin-bottom: 2px;
}
.rq-row-item-body span {
    font-size: 12px;
    color: var(--rq-sub);
    line-height: 1.5;
}

/* The tenant lease page's map of stage pages (shown when no strip applies). */
.rq-lease-stages-map { margin: 4px 0 16px; font-size: 13px; }
.rq-lease-stages-map > summary { cursor: pointer; color: var(--rq-sub); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.rq-lease-stages-map > summary::-webkit-details-marker { display: none; }
.rq-lease-stages-map[open] > summary { color: var(--rq-text); }
.rq-lease-stages-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 10px; }
.rq-lease-stages-cols a { display: block; padding: 4px 0; color: var(--rq-accent); }
.rq-lease-stages-head { font-family: var(--rq-font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--rq-faint); margin-bottom: 4px; }
