/**
 * Tenant Verification Form — styled to match the Cdeals theme
 * (Primary #1565C0 / Deep #0D47A1, see cdeals-theme.css & site-home.css).
 * Written to be self-contained (no Bootstrap dependency) so it renders
 * identically from the public home page and the signed-in app shell.
 */

/* ── Full-page backdrop (public form only) ────────────────────────────
   This stylesheet only loads on the Tenant Verification pages, so it is
   safe to style body.site-home here without touching the home page or
   other public pages. Replaces the flat, near-white page background
   with a full-bleed, branded gradient + soft texture so the form no
   longer floats on empty white space. */
body.site-home {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(1200px 620px at 10% 0%, rgba(111, 187, 208, 0.32), transparent 58%),
        radial-gradient(1000px 560px at 100% 4%, rgba(21, 101, 192, 0.26), transparent 55%),
        radial-gradient(1100px 680px at 50% 120%, rgba(13, 71, 161, 0.20), transparent 60%),
        linear-gradient(180deg, #e7f0fb 0%, #dfeaf8 32%, #eef3fa 100%);
    background-attachment: fixed;
}

/* Dot texture only when no public modal is open. Must NOT fight
   body.sh-modal-open::before from site-home.css — both use ::before, and
   this file loads after site-home, so an unconditional rule here wiped the
   login/register dim overlay on the Tenant Verification page. */
body.site-home:not(.sh-modal-open)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(21, 101, 192, 0.14) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 60%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 60%);
    pointer-events: none;
}

/* Restore the same full-page dim used on the home page when Login opens here. */
body.site-home.sh-modal-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(8, 14, 28, 0.62);
    background-image: none;
    background-size: auto;
    -webkit-mask-image: none;
    mask-image: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

.tv-wrap {
    --tv-primary: var(--cdeals-primary, #1565c0);
    --tv-primary-dark: var(--cdeals-primary-dark, #0d47a1);
    --tv-accent: var(--cdeals-accent, #6fbbd0);
    --tv-ink: #0f1e33;
    --tv-text: #33475b;
    --tv-muted: #5b7290;
    --tv-border: #d9e6f4;
    --tv-surface: #ffffff;
    --tv-bg: #f5f7fa;
    --tv-radius: 14px;
    position: relative;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--tv-text);
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.5rem 1rem 4rem;
}

.tv-wrap--app {
    padding: 1.5rem 1.25rem 3rem;
    max-width: 100%;
    border-radius: 18px;
    background:
        radial-gradient(900px 380px at 10% -10%, rgba(111, 187, 208, 0.14), transparent 60%),
        linear-gradient(180deg, #eef4fb 0%, #f6f9fc 45%, #ffffff 100%);
}

/* Public home layout has a fixed header — clear it so content isn't
   hidden underneath. Pages with the .tv-header hero (below) cancel this
   out and handle their own clearance so the hero can sit flush under
   the fixed header, full-bleed. */
.tv-wrap:not(.tv-wrap--app) {
    padding-top: calc(var(--sh-header-h, 56px) + 1.5rem);
}

/* ── Hero band ─────────────────────────────────────────────────────────
   Breaks out of the centered .tv-wrap to go full-bleed edge-to-edge and
   uses a real photograph (with a branded dark-blue veil for contrast),
   matching the treatment used on the home page hero. */
.tv-header {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-top: calc(-1 * (var(--sh-header-h, 56px) + 1.5rem));
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 1.25rem;
    min-height: clamp(280px, 40vh, 360px);
    display: flex;
    align-items: center;
    padding: calc(var(--sh-header-h, 56px) + 1.25rem) 1.5rem 2.5rem;
    text-align: left;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.tv-header-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 45%, #1b4f72 100%);
}

.tv-header-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% 38%;
}

.tv-header-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg,
            rgba(6, 20, 45, 0.94) 0%,
            rgba(8, 28, 58, 0.82) 30%,
            rgba(13, 48, 92, 0.5) 52%,
            rgba(13, 48, 92, 0.2) 72%,
            rgba(13, 48, 92, 0.08) 100%),
        linear-gradient(180deg, rgba(5, 15, 35, 0.25) 0%, transparent 35%, rgba(5, 15, 35, 0.3) 100%);
}

.tv-header-grain {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.05;
    mix-blend-mode: soft-light;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.tv-header-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 48px;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C300,105 900,-10 1200,55 L1200,120 L0,120 Z' fill='%23e7f0fb'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}

.tv-header-inner {
    position: relative;
    z-index: 1;
    width: min(100% - 3rem, 1320px);
    margin: 0 auto;
}

.tv-header .tv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    padding: .3rem .75rem;
    border-radius: 999px;
}

.tv-header h1 {
    margin: .9rem 0 .6rem;
    font-size: clamp(1.9rem, 3.6vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.tv-header p {
    margin: 0;
    max-width: 40ch;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    line-height: 1.55;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

.tv-header .tv-header-callout {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 1rem 0 0;
    padding: .55rem .9rem;
    max-width: none;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    text-shadow: none;
    backdrop-filter: blur(2px);
}

.tv-header-callout i {
    color: #a7e0ee;
    font-size: .9rem;
    flex: 0 0 auto;
}

.tv-header-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem 1.5rem;
    margin: 1.6rem 0 0;
    padding: 0;
}

.tv-header-trust li {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.94);
}

.tv-header-trust li i {
    color: #a7e0ee;
}

@media (max-width: 640px) {
    .tv-header-img {
        object-position: 78% 40%;
    }

    .tv-header-veil {
        background:
            linear-gradient(180deg, rgba(6, 20, 45, 0.88) 0%, rgba(8, 28, 58, 0.8) 55%, rgba(13, 48, 92, 0.55) 100%);
    }
}

/* ── Layout: quick-nav rail + form column ─────────────────────────────── */
.tv-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}

@media (max-width: 900px) {
    .tv-layout {
        grid-template-columns: 1fr;
    }
}

.tv-nav {
    position: sticky;
    top: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f4f9fd 100%);
    border: 1px solid var(--tv-border);
    border-top: 3px solid var(--tv-primary);
    border-radius: var(--tv-radius);
    padding: .75rem;
    box-shadow: 0 1px 3px rgba(15, 45, 82, 0.06);
}

@media (max-width: 900px) {
    .tv-nav {
        position: static;
        display: flex;
        gap: .4rem;
        overflow-x: auto;
        padding: .6rem;
    }
}

.tv-nav a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .6rem;
    border-radius: 9px;
    color: var(--tv-text);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
}

.tv-nav a:hover {
    background: rgba(21, 101, 192, 0.08);
    color: var(--tv-primary);
}

.tv-nav a .tv-nav-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(21, 101, 192, 0.1);
    color: var(--tv-primary);
    font-size: .68rem;
    font-weight: 800;
}

.tv-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── Section cards ─────────────────────────────────────────────────────── */
.tv-card {
    background: var(--tv-surface);
    border: 1px solid var(--tv-border);
    border-radius: var(--tv-radius);
    box-shadow: 0 1px 3px rgba(15, 45, 82, 0.06);
    overflow: hidden;
    scroll-margin-top: 1rem;
}

.tv-card-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, #f6faff 0%, #e9f1fa 100%);
    border-bottom: 1px solid rgba(21, 101, 192, 0.14);
}

.tv-card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 9px;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 45%, #0d47a1 100%);
    box-shadow: 0 2px 6px rgba(21, 101, 192, 0.3);
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
}

.tv-card-head h2 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--tv-ink);
}

.tv-card-head p {
    margin: .15rem 0 0;
    font-size: .8rem;
    color: var(--tv-muted);
}

.tv-card-body {
    padding: 1.25rem;
}

.tv-note {
    font-size: .82rem;
    color: var(--tv-muted);
    font-style: italic;
    margin: 0 0 1rem;
}

/* ── Submit loader overlay (app-standard Cdeals loader) ─────────────────
   Above the confirmation modal (1040) so booking also uses this same loader. */
.tv-submit-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(240, 245, 251, 0.82);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.tv-submit-overlay[hidden] {
    display: none;
}

/* ── In-page confirmation popup ───────────────────────────────────────── */
.tv-modal {
    /* The modal lives outside .tv-wrap, so re-declare the design tokens here —
       otherwise var(--tv-surface) etc. are undefined and the panel renders
       transparent. */
    --tv-primary: var(--cdeals-primary, #1565c0);
    --tv-primary-dark: var(--cdeals-primary-dark, #0d47a1);
    --tv-accent: var(--cdeals-accent, #6fbbd0);
    --tv-ink: #0f1e33;
    --tv-text: #33475b;
    --tv-muted: #5b7290;
    --tv-border: #d9e6f4;
    --tv-surface: #ffffff;
    --tv-bg: #f5f7fa;
    --tv-radius: 14px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--tv-text);
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 1rem;
    overflow-y: auto;
}

.tv-modal[hidden] {
    display: none;
}

.tv-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 51, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.tv-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    margin: auto;
    background: #ffffff;
    border-top: 4px solid #1565c0;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(15, 45, 82, 0.3);
    padding: 2.25rem 1.75rem 2rem;
    animation: tv-modal-in .2s ease;
}

@keyframes tv-modal-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.tv-modal-close {
    position: absolute;
    top: .6rem;
    right: .8rem;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--tv-muted);
    cursor: pointer;
    border-radius: 8px;
}

.tv-modal-close:hover {
    background: rgba(15, 45, 82, 0.06);
    color: var(--tv-ink);
}

/* Strip the standalone card chrome so the confirmation + scheduler blend into
   the one modal panel instead of looking like cards-within-a-card. */
.tv-modal .tv-confirm {
    max-width: none;
    margin: 0;
    border: none;
    box-shadow: none;
    padding: 0 0 .65rem;
    text-align: left;
}

.tv-modal .tv-confirm-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.tv-modal .tv-confirm-headings {
    min-width: 0;
    flex: 1;
}

.tv-modal .tv-confirm h1 {
    margin: 0 0 .2rem;
    font-size: 1.15rem;
    line-height: 1.3;
}

.tv-modal .tv-confirm-sub {
    margin: 0;
    font-size: .82rem;
    line-height: 1.4;
    color: var(--tv-muted);
}

.tv-modal .tv-confirm-icon--sm,
.tv-confirm-icon--sm {
    width: 40px;
    height: 40px;
    margin: 0;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.tv-modal .tv-confirm-ref--compact,
.tv-confirm-ref--compact {
    display: inline-flex;
    align-items: center;
    margin: .45rem 0 0;
    padding: .2rem .55rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .01em;
    border-radius: 999px;
    background: rgba(21, 101, 192, 0.08);
    color: var(--tv-primary-dark);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tv-modal .tv-schedule {
    max-width: none;
    margin: .85rem 0 0;
    border: none;
    box-shadow: none;
    padding: 1rem 0 0;
    border-top: 1px solid var(--tv-border);
}

.tv-modal .tv-schedule-head h2 {
    font-size: 1rem;
}

.tv-modal .tv-schedule-head p {
    margin-bottom: .9rem;
    font-size: .8rem;
}

/* ── Field grid ────────────────────────────────────────────────────────── */
.tv-grid {
    display: grid;
    /* auto-FILL (not auto-fit) keeps empty tracks so fields on an incomplete
       last row stay one column wide and left-aligned instead of stretching to
       fill; the wider 270px min caps this at ~3 roomy columns on the form so
       inputs never feel cramped. */
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 1rem 1.25rem;
    align-items: start;
}

.tv-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 0;
}

.tv-field--full {
    grid-column: 1 / -1;
}

.tv-field label {
    font-size: .8125rem;
    font-weight: 600;
    color: #334155;
}

.tv-field label .tv-req {
    color: #dc2626;
    margin-left: .15rem;
}

.tv-input,
.tv-select,
textarea.tv-input {
    width: 100%;
    height: 42px;
    padding: .6rem .75rem;
    font-size: .875rem;
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    line-height: 1.3;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

textarea.tv-input {
    height: auto;
    resize: vertical;
    min-height: 78px;
}

/* Native <select> elements render with their own chrome (extra height,
   inconsistent arrow) that doesn't match text inputs — flatten that out
   and draw our own chevron so it sits flush with the rest of the form. */
select.tv-input,
.tv-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.25rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 8 10 13 15 8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .7rem center;
    background-size: 16px;
}

select.tv-input::-ms-expand {
    display: none;
}

.tv-input:hover,
.tv-select:hover {
    border-color: #cbd5e1;
    background-color: #fff;
}

.tv-input:focus,
.tv-select:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--tv-primary);
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.12);
}

.tv-field-error {
    color: #dc2626;
    font-size: .78rem;
}

/* "Please specify" text field revealed under a select when "Other" is chosen */
.tv-field-other {
    margin-top: .5rem;
}

.tv-occ-rel-cell {
    min-width: 200px;
}

.tv-occ-rel-cell .tv-occ-rel-other {
    margin-top: .4rem;
}

/* ── Choice groups (radio pills / checkboxes) ─────────────────────────── */
.tv-choices {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.tv-choice {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .85rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    font-size: .82rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    user-select: none;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.tv-choice input {
    accent-color: var(--tv-primary);
    margin: 0;
}

.tv-choice:hover {
    border-color: var(--tv-accent);
}

.tv-choice input:checked ~ span,
.tv-choice:has(input:checked) {
    border-color: var(--tv-primary);
    background: rgba(21, 101, 192, 0.08);
    color: var(--tv-primary-dark);
}

.tv-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: .5rem .9rem;
    align-items: start;
}

.tv-check {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .82rem;
    color: #334155;
    line-height: 1.35;
}

.tv-check input {
    margin-top: .2rem;
    accent-color: var(--tv-primary);
}

/* Selectable-tile checkboxes (e.g. Identification Documents) */
.tv-check-cards {
    gap: .75rem;
}

.tv-check-cards .tv-check {
    align-items: center;
    padding: .7rem .95rem;
    border: 1.5px solid var(--tv-border);
    border-radius: 12px;
    background: #f8fafc;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.tv-check-cards .tv-check input {
    margin-top: 0;
}

.tv-check-cards .tv-check:hover {
    border-color: var(--tv-accent);
}

.tv-check-cards .tv-check:has(input:checked) {
    border-color: var(--tv-primary);
    background: rgba(21, 101, 192, 0.08);
    box-shadow: inset 0 0 0 1px var(--tv-primary);
    color: var(--tv-primary-dark);
}

/* ── Yes/No table (financial history) ─────────────────────────────────── */
.tv-yn-table {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1rem;
}

.tv-yn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem .85rem;
    background: #f8fafc;
    border: 1px solid var(--tv-border);
    border-radius: 10px;
    flex-wrap: wrap;
}

.tv-yn-row span.tv-yn-label {
    font-size: .85rem;
    font-weight: 600;
    color: #334155;
}

/* ── Occupants table ───────────────────────────────────────────────────── */
.tv-table-wrap {
    overflow-x: auto;
}

.tv-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.tv-table th {
    text-align: left;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--tv-muted);
    padding: 0 .5rem .5rem;
}

.tv-table td {
    padding: .35rem .5rem;
}

.tv-table input {
    width: 100%;
}

.tv-th-action {
    width: 44px;
}

.tv-btn-add {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: .85rem;
    padding: .55rem 1rem;
    border: 1.5px dashed var(--tv-primary, #1565c0);
    border-radius: 10px;
    background: rgba(21, 101, 192, 0.05);
    color: var(--tv-primary, #1565c0);
    font-weight: 700;
    font-size: .82rem;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.tv-btn-add:hover {
    background: rgba(21, 101, 192, 0.1);
    border-color: var(--tv-primary-dark, #0d47a1);
}

.tv-row-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #dc2626;
    cursor: pointer;
    transition: background .15s ease;
}

.tv-row-remove:hover:not(:disabled) {
    background: rgba(220, 38, 38, 0.08);
}

.tv-row-remove:disabled {
    opacity: .3;
    cursor: not-allowed;
}

/* ── File upload dropzone (ID documents / right-to-reside proof) ─────────
   Upload chooses a file; Camera opens a live capture modal (same pattern as
   Personal Details). Drag-and-drop is handled in JS onto the box. */
.tv-upload {
    position: relative;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    padding: 1rem 1.1rem;
    overflow: hidden;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.tv-upload:hover {
    border-color: var(--tv-accent);
    background: #fff;
}

.tv-upload.tv-upload--drag {
    border-color: var(--tv-primary);
    background: rgba(21, 101, 192, 0.07);
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
}

.tv-upload.tv-upload--has-file {
    border-style: solid;
    border-color: rgba(21, 128, 61, 0.45);
    background: rgba(21, 128, 61, 0.04);
}

.tv-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.tv-upload-dropzone {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.tv-upload.tv-upload--has-file .tv-upload-dropzone {
    display: none;
}

.tv-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: rgba(21, 101, 192, 0.1);
    color: var(--tv-primary);
    font-size: 1rem;
}

.tv-upload-text {
    font-size: .8125rem;
    color: var(--tv-muted);
    line-height: 1.4;
    min-width: 0;
    flex: 1;
}

.tv-upload-text strong {
    color: var(--tv-primary-dark);
    font-weight: 700;
}

.tv-upload-hint {
    display: block;
    font-size: .72rem;
    color: #94a3b8;
    margin-top: .15rem;
}

.tv-upload-btns {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .55rem;
}

.tv-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 8px;
    padding: .38rem .7rem;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.2;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.tv-upload-btn--file {
    border: 1.5px solid var(--tv-primary);
    background: #fff;
    color: var(--tv-primary-dark);
}

.tv-upload-btn--file:hover {
    background: rgba(21, 101, 192, 0.08);
}

.tv-upload-btn--camera {
    border: 1.5px solid transparent;
    background: var(--tv-primary);
    color: #fff;
}

.tv-upload-btn--camera:hover {
    background: var(--tv-primary-dark);
}

.tv-upload-file {
    display: none;
    align-items: center;
    gap: .65rem;
}

.tv-upload.tv-upload--has-file .tv-upload-file {
    display: flex;
}

.tv-upload-thumb {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(21, 128, 61, 0.25);
    background: #fff;
}

.tv-upload-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: rgba(21, 128, 61, 0.12);
    color: #15803d;
    font-size: 1rem;
}

.tv-upload--has-image .tv-upload-file-icon {
    display: none;
}

.tv-upload-file-meta {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .05rem;
}

.tv-upload-file-name {
    font-size: .82rem;
    font-weight: 700;
    color: var(--tv-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tv-upload-file-size {
    font-size: .72rem;
    color: var(--tv-muted);
}

.tv-upload-retake,
.tv-upload-remove {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: background .15s ease;
}

.tv-upload-retake {
    color: var(--tv-primary);
}

.tv-upload-retake:hover {
    background: rgba(21, 101, 192, 0.1);
}

.tv-upload-remove {
    color: #dc2626;
}

.tv-upload-remove:hover {
    background: rgba(220, 38, 38, 0.08);
}

#tvCameraModal {
    /* Lives outside .tv-wrap, so tokens must be declared here or Capture
       (white text on var(--tv-primary)) renders as an invisible button. */
    --tv-primary: var(--cdeals-primary, #1565c0);
    --tv-primary-dark: var(--cdeals-primary-dark, #0d47a1);
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#tvCameraModal.tv-camera-open {
    display: flex;
}

.tv-camera-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px 22px;
    width: min(92vw, 1100px);
    max-height: calc(100vh - 32px);
    overflow: auto;
    text-align: center;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

.tv-camera-card h5 {
    margin: 0 0 14px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--tv-ink, #0f172a);
}

#tvCameraVideo {
    width: 100%;
    border-radius: 10px;
    background: #111;
    max-height: 62vh;
    object-fit: contain;
    display: block;
}

#tvCameraError {
    display: none;
    color: #c00;
    margin: 10px 0 0;
    font-size: .9em;
}

.tv-camera-hint {
    margin: 10px 0 0;
    font-size: .82rem;
    color: #666;
}

.tv-camera-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.tv-camera-actions .tv-upload-btn {
    padding: .65rem 1.25rem;
    font-size: .95rem;
    min-width: 8.5rem;
    justify-content: center;
}

.tv-camera-actions .tv-upload-btn--camera,
#tvCameraCapture {
    background: #1565c0;
    color: #fff;
    border: 1.5px solid #1565c0;
}

.tv-camera-actions .tv-upload-btn--camera:hover,
#tvCameraCapture:hover {
    background: #0d47a1;
    border-color: #0d47a1;
    color: #fff;
}

#tvCameraCapture:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.tv-camera-actions .tv-upload-btn--cancel {
    border: 1.5px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.tv-camera-actions .tv-upload-btn--cancel:hover {
    background: #f8fafc;
}

/* ── Previous addresses (conditional dynamic list) ─────────────────────── */
.tv-prevaddr-row {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--tv-border, #e2e8f0);
    border-radius: 12px;
    background: rgba(21, 101, 192, 0.02);
}

.tv-prevaddr-rowhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.tv-prevaddr-title {
    font-weight: 700;
    font-size: .85rem;
    color: var(--tv-primary-dark, #0d47a1);
}

.tv-prevaddr-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 .35rem;
    margin-left: .25rem;
    border-radius: 999px;
    background: var(--tv-primary, #1565c0);
    color: #fff;
    font-size: .72rem;
}

/* ── Submit bar ────────────────────────────────────────────────────────── */
.tv-submit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.06), rgba(111, 187, 208, 0.1));
    border: 1px solid rgba(21, 101, 192, 0.16);
    border-radius: var(--tv-radius);
    padding: 1.1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 45, 82, 0.06);
}

.tv-submit-bar p {
    margin: 0;
    font-size: .8rem;
    color: var(--tv-muted);
    max-width: 46ch;
}

.tv-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 0 1.5rem;
    height: 46px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: .9375rem;
    color: #fff;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 45%, #0d47a1 100%);
    box-shadow: 0 4px 14px rgba(21, 101, 192, 0.35);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    flex: 0 0 auto;
}

.tv-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(21, 101, 192, 0.4);
}

.tv-summary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    padding: .85rem 1rem;
    font-size: .85rem;
    margin-bottom: 1.25rem;
}

.tv-summary ul {
    margin: .35rem 0 0;
    padding-left: 1.1rem;
}

/* ── Read-only "view" fields (admin Details screen) ───────────────────── */
.tv-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.tv-view-field {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
}

.tv-view-field--full {
    grid-column: 1 / -1;
}

.tv-view-field label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--tv-muted, #64748b);
    font-weight: 700;
}

.tv-view-field span,
.tv-view-field p {
    font-size: .9rem;
    color: var(--tv-ink, #0f172a);
    margin: 0;
    white-space: pre-line;
}

.tv-empty {
    color: #cbd5e1;
    font-style: italic;
}

.tv-yes {
    color: #b91c1c;
    font-weight: 700;
}

.tv-no {
    color: #15803d;
    font-weight: 700;
}

.tv-view-table {
    width: 100%;
    border-collapse: collapse;
}

.tv-view-table th {
    text-align: left;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--tv-muted, #64748b);
    padding: 0 .5rem .4rem 0;
}

.tv-view-table td {
    padding: .3rem .5rem .3rem 0;
    font-size: .875rem;
    border-top: 1px solid var(--tv-border, #e2e8f0);
}

/* Status badges (submissions list + detail header) */
.tv-badge {
    display: inline-flex;
    align-items: center;
    padding: .3rem .7rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.tv-badge--new {
    background: rgba(21, 101, 192, 0.1);
    color: #0d47a1;
}

.tv-badge--inreview {
    background: rgba(234, 179, 8, 0.14);
    color: #92660a;
}

.tv-badge--verified {
    background: rgba(21, 128, 61, 0.12);
    color: #15803d;
}

.tv-badge--rejected {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

/* ── Confirmation page ─────────────────────────────────────────────────── */
.tv-confirm {
    max-width: 560px;
    margin: 3rem auto;
    text-align: center;
    background: var(--tv-surface);
    border: 1px solid var(--tv-border);
    border-top: 4px solid var(--tv-primary);
    border-radius: var(--tv-radius);
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(15, 45, 82, 0.1);
}

.tv-confirm .tv-confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 101, 192, 0.1);
    color: var(--tv-primary);
    font-size: 1.75rem;
}

.tv-confirm h1 {
    margin: 0 0 .5rem;
    font-size: 1.4rem;
    color: var(--tv-ink);
}

.tv-confirm p {
    color: var(--tv-muted);
    font-size: .9rem;
}

.tv-confirm-ref {
    display: inline-block;
    margin: 1rem 0;
    padding: .5rem 1rem;
    border-radius: 999px;
    background: rgba(21, 101, 192, 0.08);
    color: var(--tv-primary-dark);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .02em;
}

.tv-confirm-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 1.25rem;
    color: var(--tv-primary);
    font-weight: 700;
    font-size: .875rem;
    text-decoration: none;
}

.tv-confirm-back:hover {
    color: var(--tv-primary-dark);
}

/* ── Post-submission "schedule a call with a BDM" widget ─────────────────
   Reuses the same Meetings table as the rest of the app (see
   BdmBookingService / TenantVerificationController.ScheduleCall) — this is
   purely presentational. */
.tv-schedule {
    max-width: 640px;
    margin: 1.5rem auto 3rem;
    background: var(--tv-surface);
    border: 1px solid var(--tv-border);
    border-radius: var(--tv-radius);
    padding: 1.75rem 1.75rem 2rem;
    box-shadow: 0 4px 20px rgba(15, 45, 82, 0.08);
}

.tv-schedule-head h2 {
    margin: 0 0 .35rem;
    font-size: 1.1rem;
    color: var(--tv-ink);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.tv-schedule-head h2 i {
    color: var(--tv-primary);
}

.tv-schedule-head p {
    margin: 0 0 1.25rem;
    font-size: .85rem;
    color: var(--tv-muted);
}

.tv-schedule-date {
    max-width: 220px;
    margin-bottom: 1.1rem;
}

/* Compact side-by-side layout for the scheduler inputs. */
.tv-schedule-fields {
    display: grid;
    grid-template-columns: minmax(140px, 180px) minmax(200px, 1fr);
    gap: .85rem 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.tv-schedule-fields > .tv-field {
    max-width: none;
    margin-bottom: 0;
    min-width: 0;
}

/* The time picker drops onto its own row spanning the width once revealed. */
.tv-schedule-fields > .tv-schedule-slots {
    grid-column: 1 / -1;
}

@media (max-width: 520px) {
    .tv-schedule-fields {
        grid-template-columns: 1fr;
    }
}

.tv-schedule-bdms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .65rem;
    margin-bottom: 1.1rem;
}

.tv-schedule-hint {
    grid-column: 1 / -1;
    font-size: .85rem;
    color: var(--tv-muted);
    margin: 0;
}

.tv-bdm-card {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    text-align: left;
    padding: .75rem .9rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.tv-bdm-card:hover {
    border-color: var(--tv-accent);
    background: #fff;
}

.tv-bdm-card.tv-selected {
    border-color: var(--tv-primary);
    background: rgba(21, 101, 192, 0.06);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.tv-bdm-card.tv-full {
    opacity: .5;
    cursor: not-allowed;
}

.tv-bdm-name {
    font-weight: 700;
    font-size: .875rem;
    color: var(--tv-ink);
}

.tv-bdm-meta {
    font-size: .75rem;
    color: var(--tv-muted);
}

.tv-schedule-slots h3 {
    margin: 0 0 .6rem;
    font-size: .8125rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.tv-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: .5rem;
    margin-bottom: 1.25rem;
}

.tv-slot-btn {
    padding: .55rem .5rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--tv-primary-dark);
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s ease, background .15s ease;
}

.tv-slot-btn:hover:not(:disabled) {
    border-color: var(--tv-accent);
    background: #fff;
}

.tv-slot-btn.tv-selected {
    border-color: var(--tv-primary);
    background: var(--tv-primary);
    color: #fff;
}

.tv-slot-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.tv-schedule-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
}

.tv-schedule-actions .tv-btn-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.tv-schedule-success {
    text-align: center;
    padding: 1rem 0 .5rem;
}

.tv-schedule-success h3 {
    margin: .25rem 0 .35rem;
    color: var(--tv-ink);
}

.tv-schedule-success p {
    color: var(--tv-muted);
    font-size: .9rem;
    margin: 0;
}

.tv-schedule-success .tv-btn-submit {
    margin-left: auto;
    margin-right: auto;
}

/* ── People tabs ──────────────────────────────────────────────────────────
   One tab per person living at the property. The count question gates the
   form; choosing a number reveals these tabs, each holding a full copy of
   sections 1-9 for that person. */
.tv-person-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0 0 1rem;
}

.tv-person-tab {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .9rem;
    border: 1px solid var(--tv-border, #d9e2ec);
    border-radius: 10px;
    background: #fff;
    color: var(--tv-text, #334e68);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.tv-person-tab:hover {
    border-color: var(--tv-primary, #1565c0);
    color: var(--tv-primary, #1565c0);
}

.tv-person-tab.is-active {
    background: var(--tv-primary, #1565c0);
    border-color: var(--tv-primary, #1565c0);
    color: #fff;
    box-shadow: 0 2px 8px rgba(21, 101, 192, .25);
}

.tv-person-tab-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: rgba(21, 101, 192, .12);
    color: var(--tv-primary, #1565c0);
    font-size: .75rem;
    font-weight: 700;
}

.tv-person-tab.is-active .tv-person-tab-num {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

@media (max-width: 640px) {
    .tv-person-tab { flex: 1 1 100%; justify-content: flex-start; }
}

/* Step nav under the person panels — moves between people and on to the declaration. */
.tv-step-nav {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    margin: .25rem 0 1.25rem;
}

.tv-step-nav .tv-btn-step {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.2rem;
    border-radius: 10px;
    border: 1px solid var(--tv-border, #d9e2ec);
    background: #fff;
    color: var(--tv-text, #334e68);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.tv-step-nav .tv-btn-step:hover {
    border-color: var(--tv-primary, #1565c0);
    color: var(--tv-primary, #1565c0);
}

.tv-step-nav .tv-btn-step--next {
    margin-left: auto;
    background: var(--tv-primary, #1565c0);
    border-color: var(--tv-primary, #1565c0);
    color: #fff;
    box-shadow: 0 2px 10px rgba(21, 101, 192, .25);
}

.tv-step-nav .tv-btn-step--next:hover {
    background: #0f4c9a;
    border-color: #0f4c9a;
    color: #fff;
}

/* Completed steps read as ticked-off rather than just inactive. */
.tv-person-tab.is-done {
    border-color: rgba(21, 101, 192, .35);
    color: var(--tv-primary, #1565c0);
    background: rgba(21, 101, 192, .06);
}

.tv-person-tab--final .tv-person-tab-num {
    background: rgba(16, 137, 62, .14);
    color: #10893e;
}

.tv-person-tab--final.is-active {
    background: #10893e;
    border-color: #10893e;
    box-shadow: 0 2px 8px rgba(16, 137, 62, .25);
}

.tv-person-tab--final.is-active .tv-person-tab-num {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

/* ── Opening gate: "how many people?" ────────────────────────────────────
   Number tiles rather than a dropdown — the whole choice is visible at once,
   the targets are thumb-sized, and the card stops looking half-empty. The real
   input is a radio behind each tile, so it posts and validates without JS. */
.tv-card--gate .tv-card-body {
    padding-top: 1.1rem;
}

.tv-count-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.tv-count-legend {
    display: block;
    padding: 0;
    margin: 0 0 .8rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--tv-heading, #102a43);
}

.tv-count-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.tv-count-option {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

/* Visually hidden but still focusable and announced by screen readers. */
.tv-count-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.tv-count-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: .8rem .7rem .65rem;
    border: 1.5px solid var(--tv-border, #d9e2ec);
    border-radius: 14px;
    background: #fff;
    color: var(--tv-text, #334e68);
    line-height: 1.1;
    transition: border-color .15s ease, background .15s ease, color .15s ease,
                box-shadow .15s ease, transform .15s ease;
}

.tv-count-tile .tv-count-num {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.tv-count-tile small {
    margin-top: .2rem;
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .65;
}

.tv-count-option:hover .tv-count-tile {
    border-color: var(--tv-primary, #1565c0);
    color: var(--tv-primary, #1565c0);
    transform: translateY(-1px);
}

.tv-count-option input:checked + .tv-count-tile {
    border-color: var(--tv-primary, #1565c0);
    background: var(--tv-primary, #1565c0);
    color: #fff;
    box-shadow: 0 6px 16px rgba(21, 101, 192, .28);
    transform: translateY(-1px);
}

.tv-count-option input:checked + .tv-count-tile small {
    opacity: .85;
}

.tv-count-option input:focus-visible + .tv-count-tile {
    outline: 2px solid var(--tv-primary, #1565c0);
    outline-offset: 2px;
}

.tv-count-hint {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    margin: .9rem 0 0;
    font-size: .8rem;
    color: var(--tv-muted, #627d98);
}

.tv-count-hint i {
    margin-top: .15rem;
    color: var(--tv-primary, #1565c0);
    opacity: .8;
}

@media (max-width: 520px) {
    .tv-count-grid { gap: .45rem; }
    .tv-count-tile { min-width: 60px; padding: .65rem .5rem .55rem; }
    .tv-count-tile .tv-count-num { font-size: 1.1rem; }
}
