:root {
    --bg: #0f1419;
    --surface: #1a2028;
    --surface-2: #232a35;
    --border: #2d3542;
    --text: #e6e9ef;
    --muted: #8a93a6;
    --accent: #d4a017;          /* warm gold — hospitality */
    --accent-soft: rgba(212,160,23,0.15);
    --success: #4ade80;
    --warn: #fbbf24;
    --danger: #f87171;
    --info: #60a5fa;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 12px rgba(0,0,0,0.25);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Topbar — single row: logo | nav (scrolls horizontally if tight) | profile */
.topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
}
.brand {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    transition: transform .15s ease;
}
.brand:hover { transform: translateY(-1px); text-decoration: none; }
.brand img { display: block; width: 32px; height: 32px; object-fit: contain; }

/* Nav sits on one row, horizontally scrollable on narrow screens — never wraps. */
.topnav {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-width: 0;                       /* lets the grid cell shrink */
    mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
}
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .15s, background .15s;
}
.topnav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.topnav a.active { color: #fff; background: rgba(255,255,255,0.12); }

/* Show / hide button on password fields (added to every password input by app.js). */
.pw-wrap { position: relative; display: block; }
.pw-wrap > input { width: 100%; padding-right: 44px !important; }
.pw-eye {
    position: absolute; top: 0; right: 0; bottom: 0; width: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 0; padding: 0; cursor: pointer;
    color: #a9b2c3; border-radius: 0 var(--radius) var(--radius) 0;
    transition: color .15s;
}
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--text); }
.pw-eye:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pw-eye svg { display: block; }

/* Socials: one block per Dropbox folder, sub-folders inside it. */
.sgroup { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px 18px; margin-bottom: 14px; }
.sgroup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sgroup-title { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); }
.sgroup-meta { margin-top: 3px; color: #a9b2c3; font-size: 12.5px; }
.sgroup-meta a { color: var(--accent); }
.sgroup-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sgroup-side select { max-width: 320px; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); padding: 7px 9px; font: inherit; font-size: 13px; }
.schip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 600; white-space: nowrap; }
.schip-dot { width: 7px; height: 7px; border-radius: 50%; background: #7d8799; }
.schip-dot.is-on { background: var(--success); }
.schip-dot.is-check { background: var(--warn); }
.sgroup-sub { margin: 14px 0 8px; color: var(--text); font-size: 13px; font-weight: 600; }
.sgroup-sub span { color: #a9b2c3; font-weight: 400; margin-left: 6px; }
.sgroup-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 12px; }
.sgroup-sub + .sgroup-thumbs { margin-top: 0; }
.sthumb { display: block; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: #0b0e12; border: 1px solid var(--border); transition: transform .15s, border-color .15s; }
.sthumb:hover { transform: translateY(-2px); border-color: #5d6778; }
.sthumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Profile avatar + dropdown */
.profile { position: relative; flex-shrink: 0; }
.profile-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; padding: 0; cursor: pointer;
    border-radius: 999px;
    transition: transform .12s ease, filter .15s ease;
    appearance: none;
    -webkit-appearance: none;
}
.profile-btn:hover .avatar {
    transform: translateY(-1px);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent),
                0 6px 14px rgba(0,0,0,0.35);
}
.profile-btn:active .avatar { transform: scale(0.94); }
.profile-btn[aria-expanded="true"] .avatar {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 80%, transparent),
                0 6px 14px rgba(0,0,0,0.35);
}
.profile-btn:focus-visible .avatar { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); }

.avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 999px;
    background: var(--accent);
    color: #1a1407; font-weight: 700; font-size: 13px;
    user-select: none;
    transition: transform .15s ease, box-shadow .15s ease;
    will-change: transform;
}
.avatar-lg { width: 48px; height: 48px; font-size: 16px; }

.profile-menu {
    position: absolute; right: 0; top: calc(100% + 12px);
    min-width: 264px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow:
        0 16px 48px rgba(0,0,0,0.55),
        0 0 0 1px rgba(255,255,255,0.03) inset;
    padding: 6px;
    z-index: 100;
    animation: pm-in .14s cubic-bezier(.2,.9,.3,1.1);
    transform-origin: top right;
}
.profile-menu[hidden] { display: none; }
@keyframes pm-in {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.profile-menu::before {
    content: '';
    position: absolute;
    top: -6px; right: 14px;
    width: 12px; height: 12px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    transform: rotate(45deg);
}
.profile-head {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 12px 14px;
    position: relative;
}
.profile-head > div { min-width: 0; }
.profile-name  { color: var(--text);  font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-email { color: var(--muted); font-size: 12px;                 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.profile-sep   { height: 1px; background: var(--border); margin: 4px 6px; }
.profile-items { display: flex; flex-direction: column; gap: 1px; }
.profile-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px;
    color: var(--text); font-size: 13px;
    transition: background .1s ease, color .1s ease;
}
.profile-item:hover { background: var(--surface-2); text-decoration: none; }
.profile-item.active { background: var(--accent-soft); color: var(--accent); }
.profile-item-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; color: var(--muted); flex-shrink: 0;
}
.profile-item:hover .profile-item-icon { color: var(--accent); }
.profile-item-danger { color: var(--danger); }
.profile-item-danger:hover { background: rgba(248, 113, 113, 0.1); color: var(--danger); }
.profile-item-danger .profile-item-icon { color: var(--danger); }
.profile-item-danger:hover .profile-item-icon { color: var(--danger); }

.app-main { padding: 24px; max-width: 1400px; margin: 0 auto; }
.login-main { min-height: 100vh; display: grid; place-items: center; padding: 24px; }

/* Common */
h1 { font-size: 24px; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 24px 0 12px; color: var(--text); }
.subtitle { color: var(--muted); margin-bottom: 24px; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.page-head h1 { font-size: 22px; margin: 0; }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 24px; }
.kpi {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px;
}
.kpi-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.kpi-value { font-size: 28px; font-weight: 600; margin-top: 4px; color: var(--text); }
.kpi-sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
.kpi-value.accent { color: var(--accent); }
.kpi-value.success { color: var(--success); }
.kpi-value.warn { color: var(--warn); }

/* Cards / sections */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
}

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

/* Status pills */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.pill-active { background: rgba(74,222,128,0.18); color: var(--success); }
.pill-under_contract { background: rgba(96,165,250,0.18); color: var(--info); }
.pill-sold { background: rgba(138,147,166,0.18); color: var(--muted); }
.pill-off_market { background: rgba(248,113,113,0.18); color: var(--danger); }
.pill-public { background: rgba(74,222,128,0.18); color: var(--success); }
.pill-confidential { background: rgba(251,191,36,0.18); color: var(--warn); }
.pill-new, .pill-inquiry { background: rgba(96,165,250,0.18); color: var(--info); }
.pill-earlier { background: var(--surface-2); color: #a9b2c3; }
.pill-contacted, .pill-qualified { background: rgba(212,160,23,0.18); color: var(--accent); }
.pill-nda_signed, .pill-nda, .pill-tour, .pill-touring, .pill-loi { background: rgba(74,222,128,0.12); color: var(--success); }
.pill-psa, .pill-due_diligence, .pill-license_transfer { background: rgba(96,165,250,0.18); color: var(--info); }
.pill-offer, .pill-close, .pill-closed { background: rgba(74,222,128,0.18); color: var(--success); }
.pill-lost { background: rgba(248,113,113,0.18); color: var(--danger); }

/* Buttons */
.btn {
    display: inline-block; padding: 8px 16px; border-radius: 6px; border: 1px solid var(--border);
    background: var(--surface-2); color: var(--text); cursor: pointer; font-weight: 500; font-size: 13px;
    text-decoration: none; transition: all .15s;
}
.btn:hover { background: var(--border); text-decoration: none; }
.btn-primary { background: var(--accent); color: #1a1a1a; border-color: var(--accent); }
.btn-primary:hover { background: #b88a0e; border-color: #b88a0e; color: #1a1a1a; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: white; }
.btn-sm { padding: 5px 10px; font-size: 12px; }

/* Forms */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-1 { grid-template-columns: 1fr; }
.field label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .3px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 9px 12px; background: var(--bg); border: 1px solid var(--border);
    color: var(--text); border-radius: 6px; font: inherit;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form-actions { display: flex; gap: 12px; margin-top: 18px; }

/* Listings grid */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.listing-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; display: flex; flex-direction: column; transition: all .15s;
    text-decoration: none;
}
.listing-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.listing-card-photo {
    width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
    background-color: var(--surface-2);
}
.listing-card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.listing-card-title { font-size: 15px; font-weight: 600; margin: 0; color: var(--text); line-height: 1.3; }
.listing-card-meta { color: var(--muted); font-size: 12px; }
.listing-card-financials { display: flex; gap: 16px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--border); }
.listing-card-financials > div { flex: 1; }
.listing-card-financials .label { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.listing-card-financials .value { color: var(--accent); font-weight: 600; }
.listing-card-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.listing-card-wp-link { padding-top: 8px; border-top: 1px solid var(--border); font-size: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.listing-card-wp-link span { color: #a9b2c3; cursor: pointer; }
.listing-card-wp-link span:hover { color: var(--accent); }
.listing-card-pills { align-items: center; }
.listing-card-views { margin-left: auto; color: #a9b2c3; font-size: 12px; white-space: nowrap; }
.listing-card-views b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Listing detail */
.listing-detail { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }

/* Listing page top: a photo header with the title on it, then a plain figures strip.
   House rules kept here: no coloured edge on one side of anything, no KPI cards with icons
   or glows (plain type and hairlines), chevrons instead of arrows, sentence case. */
.lhero {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    height: clamp(320px, 33vw, 460px);
    border-radius: 14px; background: #0b0e12;
}
.lhero-img   { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.lhero-shade {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(to top, rgba(8,10,14,0.94) 0%, rgba(8,10,14,0.66) 34%, rgba(8,10,14,0.10) 68%),
        linear-gradient(to bottom, rgba(8,10,14,0.55) 0%, rgba(8,10,14,0) 30%);
}
.lhero-plain { height: auto; background: var(--surface); border: 1px solid var(--border); }
.lhero-plain .lhero-body { padding-top: 26px; }

.lhero-back {
    align-self: flex-start; margin: 16px;
    display: inline-flex; align-items: center; gap: 2px;
    padding: 7px 14px 7px 8px; border-radius: 999px;
    background: rgba(12,15,20,0.72); color: #fff; font-size: 13px; font-weight: 600;
    transition: background-color .15s, transform .15s;
}
.lhero-back:hover  { background: rgba(12,15,20,0.94); color: #fff; text-decoration: none; }
.lhero-back:hover svg { transform: translateX(-2px); }
.lhero-back svg { transition: transform .15s; }

.lhero-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 0 28px 28px; }
.lhero-text { min-width: 0; max-width: 800px; }
.lhero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.lchip {
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    padding: 4px 11px; border-radius: 999px;
    background: rgba(12,15,20,0.66); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 12.5px; font-weight: 600;
}
.lhero-plain .lchip { background: var(--surface-2); border-color: var(--border); }
.lchip-dot { width: 7px; height: 7px; border-radius: 50%; background: #aab3c2; }
.lchip-dot-active         { background: var(--success); }
.lchip-dot-under_contract { background: var(--warn); }
.lchip-dot-sold           { background: var(--danger); }

.lhero-title {
    margin: 0; color: #fff; font-weight: 700;
    font-size: clamp(24px, 2.7vw, 38px); line-height: 1.12; letter-spacing: -0.01em;
    text-wrap: balance;
}
.lhero-meta { margin-top: 12px; color: rgba(255,255,255,0.86); font-size: 13.5px; display: flex; flex-wrap: wrap; }
.lhero-meta > span + span::before { content: "\00B7"; margin: 0 9px; opacity: .7; }
.lhero-price { color: #fff; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }

.lhero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex-shrink: 0; }

/* The header buttons. Hover lifts and brightens, the icon grows a touch; a click presses in. */
.lbtn {
    display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px;
    border-radius: 999px; border: 1px solid rgba(255,255,255,0.26);
    background: rgba(12,15,20,0.74); color: #fff;
    font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer;
    transition: transform .18s cubic-bezier(.2,.8,.2,1), background-color .18s, border-color .18s, box-shadow .18s;
}
.lbtn svg { transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.lbtn:hover {
    transform: translateY(-2px); text-decoration: none; color: #fff;
    background: rgba(12,15,20,0.96); border-color: rgba(255,255,255,0.6);
    box-shadow: 0 10px 22px rgba(0,0,0,0.4);
}
.lbtn:hover svg { transform: scale(1.14); }
.lbtn:active { transform: translateY(0) scale(0.95); box-shadow: none; transition-duration: .06s; }
.lbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lbtn-primary { background: var(--accent); border-color: var(--accent); color: #1a1407; }
.lbtn-primary:hover { background: #e9b722; border-color: #e9b722; color: #1a1407; box-shadow: 0 10px 24px rgba(212,160,23,0.38); }
.lhero-plain .lbtn:not(.lbtn-primary) { background: var(--surface-2); border-color: var(--border); }

@media (max-width: 860px) {
    .lhero { height: auto; min-height: 320px; }
    .lhero-shade { background: linear-gradient(to top, rgba(8,10,14,0.95) 0%, rgba(8,10,14,0.78) 55%, rgba(8,10,14,0.30) 100%); }
    .lhero-body { flex-direction: column; align-items: flex-start; gap: 18px; padding: 60px 18px 20px; }
    .lhero-actions { justify-content: flex-start; }
    .lhero-meta { flex-direction: column; gap: 3px; }
    .lhero-meta > span + span::before { content: none; }
}

/* Figures strip: label, number, one line of detail. Hairlines between, nothing else. */
.lfacts {
    display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 1px;
    background: var(--border); border-bottom: 1px solid var(--border);
    margin: 0 0 26px;
}
.lfact { background: var(--bg); padding: 20px 22px 22px; min-width: 0; }
.lfact:first-child { padding-left: 4px; }
.lfact-label { color: #a9b2c3; font-size: 13px; }
.lfact-value {
    margin-top: 4px; color: var(--text);
    font-size: 28px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums;
}
.lfact-value.is-empty { color: #7d8799; }
.lfact-sub  { margin-top: 5px; color: #a9b2c3; font-size: 12.5px; line-height: 1.45; }
.lfact-clip { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lfact-bar  { position: relative; height: 6px; max-width: 230px; margin: 12px 0 2px; border-radius: 3px; background: var(--surface-2); }
.lfact-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.lfact-bar-open  { background: #8e99ae; }
.lfact-bar-click { background: var(--accent); }
.lspark-wrap { margin: 8px 0 2px; max-width: 230px; color: #c9d1de; }
.lspark { display: block; width: 100%; height: 34px; overflow: visible; }
.lfacts:has(+ .lfacts-note) { margin-bottom: 8px; }
.lfacts-note { margin: 0 0 24px; color: #a9b2c3; font-size: 12px; }
.lcount { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 600; vertical-align: 2px; }
#listing-socials { scroll-margin-top: 80px; }
#listing-socials .sgroup-sub:first-of-type { margin-top: 4px; }
@media (max-width: 1150px) { .lfacts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lfact:nth-child(4) { padding-left: 4px; } }
@media (max-width: 900px) {
    .lfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lfact:nth-child(4) { padding-left: 22px; }
    .lfact:first-child { padding-left: 22px; }
}
@media (max-width: 900px) { .listing-detail { grid-template-columns: 1fr; } }
.listing-main { display: flex; flex-direction: column; gap: 16px; }
.pdf-viewer { background: #2a2a2a; border-radius: var(--radius); overflow: hidden; }
.pdf-viewer iframe { width: 100%; height: 700px; border: 0; display: block; }
.pdf-list { display: flex; flex-direction: column; gap: 8px; }
.pdf-list-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--surface-2); border-radius: 6px; }
.pdf-list-item .name { font-weight: 500; }
.pdf-list-item .meta { color: var(--muted); font-size: 11px; }

.financial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fin-item { padding: 10px; background: var(--surface-2); border-radius: 6px; }
.fin-item .label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.fin-item .value { color: var(--accent); font-size: 18px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* Pagination */
.pagination { display: flex; gap: 4px; justify-content: center; align-items: center; margin: 24px 0 8px; flex-wrap: wrap; }
.pagination .btn-sm { min-width: 32px; text-align: center; }

/* Socials grid */
.socials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.social-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.social-card:hover { border-color: var(--accent); }
.social-image-link { display: block; aspect-ratio: 4/5; background: var(--surface-2); overflow: hidden; }
.social-image-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.social-card-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.social-card-name { font-size: 12px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-card-listing { display: flex; gap: 6px; align-items: center; font-size: 11px; }
.social-card-listing a { color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-card-meta { color: var(--muted); font-size: 10px; }
.social-attach-select { width: 100%; padding: 4px 6px; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 4px; font-size: 11px; }

/* Kanban */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.kanban-col {
    flex: 0 0 280px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px;
}
.kanban-col h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); display: flex; justify-content: space-between; }
.kanban-col h3 .count { background: var(--surface-2); color: var(--text); padding: 1px 8px; border-radius: 999px; font-size: 11px; }
.kanban-card {
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px;
    padding: 10px 12px; margin-bottom: 8px; cursor: grab;
}
.kanban-card:active { cursor: grabbing; }
.kanban-card.dragging { opacity: .4; }
.kanban-col.drop-target { background: var(--accent-soft); }
.kanban-card-title { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.kanban-card-meta { color: var(--muted); font-size: 11px; }
.kanban-card-price { color: var(--accent); font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* Login */
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; width: 360px; }
.login-card h1 { text-align: center; margin: 0 0 22px; font-size: 20px; }
.login-logo { display: block; margin: 0 auto 14px; width: 72px; height: 72px; border-radius: 16px; background: #fff; object-fit: contain; }
.login-card .brand-tag { display: block; text-align: center; color: var(--muted); margin-bottom: 24px; font-size: 12px; }

/* Toast */
.toast {
    position: fixed; bottom: 24px; right: 24px; background: var(--surface); color: var(--text);
    border: 1px solid var(--border); padding: 12px 18px; border-radius: 6px; opacity: 0;
    transform: translateY(8px); transition: all .2s; pointer-events: none;
    box-shadow: var(--shadow); z-index: 100;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

/* Banner */
.banner { position: relative; padding: 10px 16px 10px 34px; background: var(--surface-2); border: 1px solid var(--border);
          border-radius: 6px; margin-bottom: 16px; font-size: 13px; color: var(--text); }
.banner::before { content: ""; position: absolute; left: 14px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); }
.banner.info::before { background: var(--info); }

/* Lead detail */
.lead-detail { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media (max-width: 900px) { .lead-detail { grid-template-columns: 1fr; } }
.activity-item { padding: 12px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 8px; }
.activity-item .meta { color: var(--muted); font-size: 11px; }
.activity-item .body { margin-top: 4px; }

/* Empty state */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty h3 { color: var(--text); margin-bottom: 8px; }

/* Filter bar */
.filterbar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.filterbar select, .filterbar input {
    padding: 8px 12px; background: var(--surface); border: 1px solid var(--border);
    color: var(--text); border-radius: 6px; font: inherit;
}

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-bg.show { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal h2 { margin-top: 0; }
.modal-close { float: right; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; background: none; border: none; }

/* Status board */
.st-search { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 8px 12px; min-width: 240px; font: inherit; }
.st-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.st-chip { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.st-chip span { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 12px; }
.st-chip:hover { border-color: var(--accent); }
.st-chip.is-on { background: var(--accent); border-color: var(--accent); color: #1a1a1a; font-weight: 600; }
.st-chip.is-on span { background: rgba(0,0,0,0.18); color: #1a1a1a; }
.st-table th { white-space: nowrap; }
.st-table td { vertical-align: middle; }
.st-c { text-align: left; min-width: 96px; }
.st-listing { display: flex; gap: 12px; align-items: center; min-width: 320px; }
.st-listing img, .st-nophoto { width: 56px; height: 42px; border-radius: 6px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; display: block; }
.st-title { color: var(--text); font-weight: 600; }
.st-where { color: #b6bfd0; font-size: 12px; margin-top: 2px; }
.st-date { white-space: nowrap; color: #b6bfd0; font-size: 13px; }
.st-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; box-sizing: border-box; }
.st-dot.st-yes  { background: var(--success); }
.st-dot.st-no   { background: transparent; border: 2px solid var(--danger); }
.st-dot.st-half { background: transparent; border: 2px solid var(--warn); }
.st-word { font-size: 13px; }
.st-toggle { background: none; border: 1px dashed transparent; color: inherit; font: inherit; text-align: left; padding: 4px 6px; margin: -4px -6px; border-radius: 6px; cursor: pointer; }
.st-toggle:hover { border-color: var(--border); background: var(--surface-2); }

/* Tooltip for status detail notes — white card with navy text. Reusable: any element
   with a non-empty [data-tip] shows one on hover or keyboard focus. */
[data-tip] { position: relative; }
[data-tip]:not([data-tip=""])::after {
    content: attr(data-tip);
    display: none;            /* a hidden tooltip must not take up room: off-screen ones caused sideways scroll on phones */
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #0a2540;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
    white-space: normal;
    width: max-content;
    max-width: min(260px, 72vw);
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s ease;
    z-index: 200;
}
[data-tip]:not([data-tip=""])::before {
    content: '';
    display: none;
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: #ffffff;
    opacity: 0;
    transition: opacity .12s ease;
    pointer-events: none;
    z-index: 201;
}
[data-tip]:not([data-tip=""]):hover::after,
[data-tip]:not([data-tip=""]):hover::before,
[data-tip]:not([data-tip=""]):focus-visible::after,
[data-tip]:not([data-tip=""]):focus-visible::before { display: block; opacity: 1; animation: tip-in .12s ease; }
@keyframes tip-in { from { opacity: 0; } to { opacity: 1; } }
.st-foot { color: #b6bfd0; font-size: 12px; margin-top: 14px; max-width: 900px; }

/* New listing */
.nl-start { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.nl-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.nl-side { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1000px) { .nl-start, .nl-grid { grid-template-columns: 1fr; } }
.nl-hint { color: #b6bfd0; font-size: 12px; margin: 6px 0 12px; }
.nl-or { color: #b6bfd0; font-size: 12px; margin: 16px 0 8px; }
.nl-steps-list { margin: 0; padding-left: 20px; line-height: 1.9; }
.nl-checks { display: flex; gap: 22px; margin: 2px 0 14px; font-size: 13px; }
.nl-checks input { margin-right: 6px; }
.nl-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 12px; }
.nl-photos figure { margin: 0; position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.nl-photos img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.nl-photos figcaption { padding: 6px 8px; font-size: 11px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(15,20,25,0.85); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.nl-x:hover { background: var(--danger); }
.nl-details { margin-top: 10px; font-size: 13px; }
.nl-details summary { cursor: pointer; color: var(--accent); }
.nl-preview { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px; margin: 8px 0; font-size: 13px; }
.nl-preview ul { padding-left: 18px; margin: 6px 0; text-transform: uppercase; }
.nl-preview p { margin: 6px 0; }
.nl-social-head { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; font-size: 20px; color: #fecd00; line-height: 1.15; }
.nl-google { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 10px 12px; font: inherit; resize: vertical; }

/* Home page: plain rows with hairlines between them. */
.home-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.home-side { display: flex; flex-direction: column; gap: 16px; }
.home-h { margin: 0 0 6px; font-size: 16px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.home-sub { color: #a9b2c3; font-size: 12.5px; font-weight: 400; }
.hrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) 110px 62px; gap: 14px; align-items: center; padding: 10px 0; color: var(--text); border-top: 1px solid var(--border); }
.hrow:first-of-type { border-top: 0; }
.hrow:hover { text-decoration: none; }
.hrow:hover .hrow-title { color: var(--accent); }
.hrow img, .hrow-ph { display: block; width: 64px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.hrow-main { min-width: 0; }
.hrow-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 13.5px; line-height: 1.32; text-wrap: pretty; transition: color .15s; }
.hrow-meta { display: block; margin-top: 2px; color: #a9b2c3; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow-spark { color: #8e99ae; }
.hrow-spark .lspark { height: 26px; }
.hrow-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hrow-num b { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; }
.hrow-num span { color: #a9b2c3; font-size: 11.5px; }
.hrow-compact { grid-template-columns: minmax(0, 1fr) auto; }
.hgap { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); color: var(--text); font-size: 13.5px; transition: color .15s; }
.hgap:first-of-type { border-top: 0; }
.hgap b { min-width: 34px; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hgap span { flex: 1; }
.hgap svg { color: #7d8799; flex-shrink: 0; }
.hgap:hover { text-decoration: none; color: var(--accent); }
.home-more { display: inline-block; margin-top: 12px; font-size: 13px; }
.home-new { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.hnew { display: block; color: var(--text); }
.hnew img, .hnew-ph { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.hnew-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 9px; font-weight: 600; font-size: 13.5px; line-height: 1.32; text-wrap: pretty; transition: color .15s; }
.hnew-meta { display: block; margin-top: 3px; color: #a9b2c3; font-size: 12px; }
.hnew:hover { text-decoration: none; }
.hnew:hover .hnew-title { color: var(--accent); }
@media (max-width: 1000px) {
    .home-grid { grid-template-columns: 1fr; }
    .home-new { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .hrow { grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 12px; }
    .hrow-compact { grid-template-columns: minmax(0, 1fr) auto; }
    .hrow img, .hrow-ph { width: 56px; height: 42px; }
    .hrow-spark { display: none; }
}

/* Listing page: who asked, listed in place and folded away until opened. Plain rows, hairlines between. */
.lwho { padding: 0; margin-bottom: 24px; }
.lwho > summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; border-radius: var(--radius-lg); transition: background .15s; }
.lwho > summary::-webkit-details-marker { display: none; }
.lwho > summary:hover { background: rgba(255,255,255,0.03); }
.lwho > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lwho-title { font-size: 16px; font-weight: 600; }
.lwho-sum { color: #a9b2c3; font-size: 13px; }
.lwho-chev { margin-left: auto; flex: none; color: #a9b2c3; transition: transform .2s ease; }
.lwho[open] .lwho-chev { transform: rotate(180deg); }
.lwho[open] > summary { border-bottom: 1px solid var(--border); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.lwho > .sgroup-sub, .lwho > .lwho-list, .lwho > p { margin-left: 20px; margin-right: 20px; }
.lwho > .sgroup-sub { margin-top: 18px; }
.lwho > :last-child:not(summary) { margin-bottom: 18px; }
.lwho-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(200px, 1.3fr) minmax(0, 2.6fr) 96px; gap: 16px; align-items: start; padding: 10px 0; border-top: 1px solid var(--border); font-size: 13px; }
.lwho-list .lwho-row:first-child { border-top: 0; }
.lwho-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.lwho-contact { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.lwho-contact span + span { color: #a9b2c3; font-size: 12px; }
.lwho-said { color: #c9d0dc; text-wrap: pretty; overflow-wrap: anywhere; }
.lwho-none { color: #8f99ab; }
.lwho-when { color: #a9b2c3; font-size: 12px; text-align: right; white-space: nowrap; }
@media (max-width: 860px) {
    .lwho > summary { flex-wrap: wrap; row-gap: 2px; padding: 14px 16px; }
    .lwho-sum { order: 3; flex-basis: 100%; }
    .lwho > .sgroup-sub, .lwho > .lwho-list, .lwho > p { margin-left: 16px; margin-right: 16px; }
    .lwho-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
    .lwho-contact, .lwho-said { grid-column: 1 / -1; }
    .lwho-when { grid-row: 1; grid-column: 2; }
}

/* People: the list, and one person's profile. Plain type, hairlines, one accent for the meter. */
.btn-icon { display: inline-flex; align-items: center; gap: 6px; }
.pbands { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.pband { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 13px; transition: background .15s, border-color .15s; }
.pband:hover { text-decoration: none; background: var(--surface-2); }
.pband b { font-weight: 600; color: #c9d0dc; }
.pband.is-on { background: rgba(255,255,255,0.12); border-color: transparent; color: #fff; }
.pband.is-on b { color: #fff; }
.pcheck { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 13px; white-space: nowrap; }
.filterbar .pcheck input { width: auto; margin: 0; padding: 0; accent-color: var(--accent); }
.ptable td { vertical-align: top; }
.ptable .num { text-align: right; white-space: nowrap; }
.ptable td:first-child { min-width: 200px; overflow-wrap: anywhere; }
.psub { margin-top: 2px; color: #a9b2c3; font-size: 12px; }
.psub-inline { margin-left: 6px; color: #a9b2c3; font-size: 12px; font-weight: 400; }
.pnone { color: #8f99ab; }
.pmeter { width: 120px; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pmeter span { display: block; height: 100%; min-width: 2px; border-radius: 999px; background: var(--accent); }
.pmeter-lg { width: 100%; max-width: 360px; height: 8px; }
.pband-name { color: var(--text); font-weight: 600; }
.pband-name.is-unlikely { color: #a9b2c3; font-weight: 400; }

.pcontact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.pmain, .pside { display: grid; gap: 20px; min-width: 0; }
.pmain > .card, .pside > .card { margin: 0; }
.pscore { display: flex; align-items: center; gap: 22px; margin-top: 8px; }
.pscore-num { font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.pscore-num span { margin-left: 8px; color: #a9b2c3; font-size: 13px; font-weight: 400; letter-spacing: 0; }
.pscore-side { flex: 1; min-width: 0; }
.pscore-label { margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.pwhy { margin-top: 16px; }
.pwhy-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.pwhy-pts { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.pint { padding: 11px 0; border-top: 1px solid var(--border); }
.home-h + .pint { margin-top: 6px; }
.pint-title { font-weight: 600; font-size: 13.5px; text-wrap: pretty; }
.pint-what { margin-top: 2px; color: #a9b2c3; font-size: 12.5px; text-wrap: pretty; }
.pevs { margin-top: 6px; }
.pev { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 13px; }
.pev-when { color: #a9b2c3; font-size: 12px; white-space: nowrap; padding-top: 1px; }
.pev-title { text-wrap: pretty; overflow-wrap: anywhere; }
.pev-enquiry .pev-title, .pev-signup .pev-title { font-weight: 600; }
.pev-open .pev-title { color: #c9d0dc; }
.pev-text { margin-top: 3px; color: #a9b2c3; font-size: 12.5px; text-wrap: pretty; overflow-wrap: anywhere; }
.pmore > summary { display: inline-block; margin-top: 12px; color: var(--accent); font-size: 13px; cursor: pointer; list-style: none; }
.pmore > summary::-webkit-details-marker { display: none; }
.pmore > summary:hover { text-decoration: underline; }
.pmore[open] > summary { display: none; }
.pmore .pevs { margin-top: 0; }
.pfacts { margin: 6px 0 0; }
.pfacts > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13px; }
.pfacts dt { color: #a9b2c3; }
.pfacts dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 1000px) { .pgrid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .pev { grid-template-columns: 1fr; gap: 2px; }
    .pscore { gap: 16px; }
    .pscore-num { font-size: 36px; }
    .ptable th:nth-child(5), .ptable td:nth-child(5), .ptable th:nth-child(6), .ptable td:nth-child(6) { display: none; }
}

/* Table headings that sort: the heading is the link, a small chevron shows the direction. */
.th-sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; border-radius: 4px; transition: color .15s; }
.th-sort:hover { color: var(--text); text-decoration: none; }
.th-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.th-sort.is-on { color: var(--text); }
.th-chev { flex: none; }

/* Likely-lead bands, one colour each: green very likely, gold likely, blue possible, grey unlikely. */
.pdot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #5b6577; vertical-align: 1px; }
.pdot.is-very { background: var(--success); }
.pdot.is-likely { background: var(--accent); }
.pdot.is-possible { background: var(--info); }
.pmeter.is-very span { background: var(--success); }
.pmeter.is-likely span { background: var(--accent); }
.pmeter.is-possible span { background: var(--info); }
.pmeter.is-unlikely span { background: #5b6577; }
.pband-name.is-very { color: var(--success); }
.pband-name.is-likely { color: var(--accent); }
.pband-name.is-possible { color: var(--info); }
.pband .pdot { margin-right: 0; align-self: center; }

/* Profile: latest pages a person looked at on the website. */
.pvisit { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13px; }
.pvisit span:first-child { min-width: 0; overflow-wrap: anywhere; text-wrap: pretty; }
.pvisit span:last-child { flex: none; color: #a9b2c3; font-size: 12px; white-space: nowrap; }

/* The lead queue: who is waiting for a reply and who is due a follow-up. Plain rows, hairlines. */
.qcard { margin-bottom: 20px; }
.qcard .home-h + .qlist { margin-top: 6px; }
.qcard .qlist + .home-h { margin-top: 22px; }
.qrow { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border); }
.qrow-main { min-width: 0; flex: 1; }
.qrow-top { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.qrow-name { font-weight: 600; font-size: 14px; }
.qrow-what { color: #c9d0dc; font-size: 13px; text-wrap: pretty; }
.qrow-sub { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 3px; color: #a9b2c3; font-size: 12.5px; overflow-wrap: anywhere; }
.qrow-wait.is-late { color: var(--warn); }
.qrow-owner { color: #c9d0dc; }
.qrow-said { margin-top: 6px; color: #c9d0dc; font-size: 13px; text-wrap: pretty; overflow-wrap: anywhere; }
.qrow-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; flex: none; max-width: 46%; }
.qrow-acts .btn { white-space: nowrap; }
@media (max-width: 760px) {
    .qrow { flex-direction: column; gap: 10px; }
    .qrow-acts { justify-content: flex-start; max-width: none; }
}
