:root {
    --nav: #7f1d1d;
    --nav-fg: #ffffff;
    --nav-h: 56px;
    --bg: #f8fafc;
    --panel: #ffffff;
    --surface: #ffffff;
    --fg: #111827;
    --text: #111827;
    --muted: #5b6573;
    --line: rgba(15, 23, 42, 0.12);
    --card-h: 120px;
    --card-h-full: 200px;
    --accent: #111827;
    --accent-fg: #ffffff;
    --surface-subtle: #f1f5f9;
    --surface-hover: #e8edf3;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --error: #b42318;
    --success: #067647;
    --verified: #16a34a;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
    font-family: "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--fg);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.hidden { display: none !important; }

.topnav {
    position: sticky;
    top: 0;
    z-index: 50;
    flex: 0 0 auto;
    background: var(--nav);
    color: var(--nav-fg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 0 1rem;
    min-height: var(--nav-h);
    height: var(--nav-h);
    border-bottom: 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}
.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
}
.nav-left {
    flex: 0 0 auto;
}
.nav-right {
    flex: 0 0 auto;
}
.centernav.marketplace-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .1rem;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.centernav.marketplace-nav::-webkit-scrollbar { display: none; }
.nav-cat-link {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: .45rem .55rem;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1.2;
}
.nav-cat-link:hover,
.nav-cat-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}
.icon-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--nav-fg);
    border-radius: 6px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-decoration: none;
}
.icon-btn:hover,
.icon-btn.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 800;
    letter-spacing: .02em;
    font-size: 1rem;
    white-space: nowrap;
    color: var(--nav-fg);
    flex: 0 0 auto;
}
.brand-logo {
    display: block;
    height: 34px;
    width: 34px;
    object-fit: contain;
    flex: 0 0 auto;
}
.nav-user-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--nav-fg);
    border-radius: 999px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.nav-user-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}
.search-offcanvas .field-label {
    margin: 0;
    display: block;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}
.search-offcanvas-body > .field-label {
    margin-top: 1rem;
}
.search-offcanvas-body > .field-label:first-child,
.search-offcanvas-body > .search-field + .search-picker,
.search-offcanvas-body > .search-picker {
    margin-top: 1rem;
}
.search-offcanvas-body > .field-label:first-of-type {
    margin-top: 0;
}
.search-field {
    position: relative;
    margin-top: .4rem;
}
.search-field-icon {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    display: inline-flex;
    pointer-events: none;
}
.search-field-input {
    padding-left: 2.25rem !important;
}
.search-picker {
    margin-top: 1.1rem;
}
.search-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .35rem;
}
.search-picker-clear {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.search-picker-clear:hover {
    color: var(--fg);
}
.search-picker-value {
    margin: 0 0 .45rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--fg);
}
.search-picker-box {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.search-picker-search {
    position: relative;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}
.search-picker-search .search-field-icon {
    left: .7rem;
}
.search-picker-search input {
    width: 100%;
    border: 0;
    background: transparent;
    padding: .7rem .75rem .7rem 2.1rem;
    font: inherit;
    font-size: .88rem;
    color: var(--fg);
    outline: none;
}
.search-picker-list {
    max-height: 11.5rem;
    overflow: auto;
    padding: .35rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.search-picker-option {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    padding: .55rem .65rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: .88rem;
    color: var(--fg);
    user-select: none;
}
.search-picker-option:hover {
    background: #f1f5f9;
}
.search-picker-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.search-picker-option span {
    flex: 1 1 auto;
    min-width: 0;
}
.search-picker-option:has(input:checked) {
    background: #111827;
    color: #fff;
    font-weight: 600;
}
.search-picker-list .empty {
    color: var(--muted);
    font-size: .84rem;
    padding: .65rem .55rem;
}
.search-audience-fieldset {
    margin: 1.15rem 0 0;
    padding: 0;
    border: 0;
}
.search-audience-fieldset .field-label {
    margin-bottom: .45rem;
}
.search-audience-seg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .35rem;
    padding: .3rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
}
.search-audience-chip {
    position: relative;
    margin: 0;
    cursor: pointer;
}
.search-audience-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.search-audience-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .45rem .35rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
    transition: background .15s ease, color .15s ease;
}
.search-audience-chip:hover span {
    color: var(--fg);
}
.search-audience-chip:has(input:checked) span {
    background: #111827;
    color: #fff;
}
.search-offcanvas-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.25rem;
}
@media (max-width: 960px) {
    .nav-cat-link {
        font-size: .62rem;
        padding: .4rem .4rem;
        letter-spacing: .06em;
    }
}
@media (max-width: 700px) {
    .topnav { padding: 0 .65rem; }
    .centernav.marketplace-nav { justify-content: flex-start; }
}
/* Legacy inline search (unused on marketplace navbar) */
.nav-search {
    flex: 1 1 auto;
    max-width: 440px;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: .35rem;
    height: 40px;
    padding: 0 .55rem 0 .85rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid transparent;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.nav-search:focus-within {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}
.nav-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex: 0 0 auto;
}
.nav-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--fg);
    padding: 0 .35rem;
    font: inherit;
    font-size: .94rem;
    outline: none;
    box-shadow: none;
}
.nav-search input::placeholder {
    color: #94a3b8;
}
.nav-search input:focus {
    outline: none;
}
.nav-search-divider {
    width: 1px;
    height: 1.15rem;
    background: rgba(15, 23, 42, 0.14);
    flex: 0 0 auto;
}
.nav-search-scope {
    appearance: none;
    border: 0;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.15rem center;
    color: var(--fg);
    font: inherit;
    font-size: .84rem;
    font-weight: 600;
    line-height: 1;
    padding: .35rem 1.15rem .35rem .4rem;
    margin: 0;
    cursor: pointer;
    border-radius: 999px;
    max-width: 7.5rem;
}
.nav-search-scope:hover,
.nav-search-scope:focus {
    outline: none;
    background-color: rgba(15, 23, 42, 0.04);
}
.nav-text-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--nav-fg);
    font: inherit;
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.2;
    padding: .4rem .45rem;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 6px;
}
.nav-text-btn:hover {
    color: var(--muted);
    background: transparent;
}
.nav-user-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--nav-fg);
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}
.nav-user-btn:hover {
    color: var(--muted);
    background: transparent;
}
.user-menu {
    position: relative;
}
.user-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: .35rem;
    z-index: 60;
}
.user-dropdown a {
    display: block;
    padding: .55rem .7rem;
    border-radius: 6px;
    color: var(--fg);
    font-size: .92rem;
}
.user-dropdown a:hover {
    background: var(--surface-subtle);
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.account-fab {
    position: fixed;
    right: 1.15rem;
    bottom: 1.15rem;
    z-index: 95;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.5rem;
    padding: .85rem 1.35rem;
    border-radius: 999px;
    border: 0;
    background: var(--nav);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(127, 29, 29, 0.35);
    cursor: pointer;
}
.account-fab:hover {
    filter: brightness(1.08);
    color: #fff;
}
.account-offcanvas {
    width: min(380px, 94vw);
}
.account-offcanvas-head {
    border-bottom: 0;
    justify-content: flex-end;
    padding-bottom: .25rem;
}
.account-offcanvas-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .65rem;
    padding: .25rem 1.25rem 1.1rem;
}
.account-avatar {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--surface-subtle);
    color: #475569;
    border: 1px solid var(--line);
}
.account-user-email {
    margin: 0;
    font-size: .88rem;
    color: var(--muted);
    text-align: center;
    word-break: break-word;
}
.account-menu {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 0 1rem 1rem;
    overflow: auto;
    flex: 1 1 auto;
}
.account-menu-item {
    display: flex;
    align-items: center;
    gap: .8rem;
    width: 100%;
    padding: .7rem .75rem;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--fg);
    font: inherit;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.account-menu-item:hover {
    background: var(--surface-subtle);
}
.account-menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    color: #334155;
}
.account-offcanvas-foot {
    margin-top: auto;
    padding: 1rem 1.15rem 1.25rem;
    border-top: 1px solid var(--line);
}
.account-signout {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
    border-radius: 999px;
    text-decoration: none;
}
.page-static {
    padding: 2rem 1rem 3rem;
}
.static-card {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
}
.static-card h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}
.static-card p,
.static-card li {
    color: var(--muted);
    line-height: 1.55;
}
.static-card ul {
    padding-left: 1.2rem;
}
.notice-ok {
    color: var(--success) !important;
}
.is-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

/* App shell: one scroll surface for listings (no page + list double scroll) */
body.finance-shell {
    height: 100%;
    overflow: hidden;
}
body.finance-shell .page-home,
body.finance-shell .page-category {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.home-hero,
.site-hero {
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
    width: 100%;
    color: #fff;
    background-color: #040016;
    border-bottom: 0;
}
.site-hero--molten,
.site-hero--molten .site-hero-media,
.site-hero--molten #finance-hero-bg {
    background-color: #040016;
}
/* Landing: full-viewport hero, scroll the page down to listings */
body.finance-shell .page-home:has(#homeHero:not(.hidden)),
body.finance-shell .page-requests:has(.site-hero:not(.hidden)) {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}
body.finance-shell .page-home:has(#homeHero:not(.hidden)) #homeHero,
body.finance-shell .page-requests:has(.site-hero:not(.hidden)) .site-hero {
    flex: 0 0 auto;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100dvh - var(--nav-h));
}
body.finance-shell .page-home:has(#homeHero:not(.hidden)) .directory-layout,
body.finance-shell .page-requests:has(.site-hero:not(.hidden)) .directory-layout {
    display: grid;
    flex: 0 0 auto;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100dvh - var(--nav-h));
}
.site-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.site-hero-media::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(8, 12, 22, 0.55) 0%, rgba(8, 12, 22, 0.72) 48%, rgba(8, 12, 22, 0.88) 100%),
        linear-gradient(90deg, rgba(8, 12, 22, 0.35) 0%, transparent 40%, transparent 60%, rgba(8, 12, 22, 0.35) 100%);
}
.site-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.site-hero--providers .site-hero-media img {
    object-position: center 40%;
}
.site-hero--requests .site-hero-media img {
    object-position: center 35%;
}
.site-hero::before,
.site-hero::after {
    content: none;
    display: none;
}
.site-hero-inner,
.home-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(420px, calc(100vh - var(--nav-h)), 720px);
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    padding: 2.75rem 1.25rem;
}
body.finance-shell .page-home:has(#homeHero:not(.hidden)) .site-hero-inner,
body.finance-shell .page-requests:has(.site-hero:not(.hidden)) .site-hero-inner {
    min-height: 100%;
}
.site-hero-hyperspeed {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.site-hero--hyperspeed .site-hero-media {
    pointer-events: auto;
}
.site-hero--hyperspeed .site-hero-inner {
    pointer-events: none;
}
.site-hero--hyperspeed .site-hero-actions {
    pointer-events: auto;
}
.site-hero-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .35s ease;
}
.site-hero-media.hyperspeed-ready .site-hero-fallback {
    opacity: 0;
    pointer-events: none;
}
/* No dimming overlay over WebGL — keep Hyperspeed vivid like InfoiSeek */
.site-hero--hyperspeed .site-hero-media::before {
    content: none;
    display: none;
}
.site-hero--hyperspeed .site-hero-copy h1,
.site-hero--hyperspeed .site-hero-sub {
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}
/* Legacy class used by JS show/hide */
.home-hero.hidden,
.site-hero.hidden {
    display: none !important;
}
.site-hero-copy,
.home-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: min(100%, 44rem);
    max-width: 44rem;
    padding: 0;
}
.site-hero-copy h1,
.home-hero-copy h1 {
    margin: 0 0 .9rem;
    font-size: clamp(1.85rem, 4.2vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #fff;
}
.site-hero-sub,
.home-hero-sub {
    margin: 0 0 1.6rem;
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    font-weight: 400;
    line-height: 1.55;
}
.site-hero-actions,
.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .75rem;
}
.btn-hero-pill {
    border-radius: 999px;
    padding: .7rem 1.35rem;
    font-weight: 650;
    min-width: 9.5rem;
}
.btn-hero-primary {
    background: #fff;
    color: #0b1220;
    border-color: #fff;
    font-weight: 650;
}
.btn-hero-primary:hover {
    filter: none;
    background: #f3f4f6;
}
.btn-hero-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
    font-weight: 650;
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.9);
}
.auth-required-modal {
    width: min(420px, 100%);
}
.auth-required-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.15rem;
}
.auth-required-actions .btn {
    text-align: center;
}
@media (max-width: 700px) {
    .site-hero-inner,
    .home-hero-inner {
        min-height: clamp(280px, 52vh, 400px);
        padding: 2rem 1rem;
    }
    .btn-hero-pill {
        width: 100%;
    }
}

.btn {
    appearance: none;
    border-radius: 8px;
    padding: .7rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: var(--accent-fg);
    border-color: var(--accent);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn:disabled,
.btn[disabled],
button:disabled {
    opacity: .45;
    cursor: not-allowed;
    filter: none;
}
.btn-invite {
    background: var(--accent);
    color: var(--accent-fg);
    border-color: var(--accent);
    border-radius: 999px;
    font-weight: 650;
}
.btn-invite:hover { filter: brightness(1.08); }
.btn-secondary {
    background: #fff;
    color: var(--fg);
    border-color: var(--line);
}
.btn-secondary:hover { background: var(--surface-hover); }
.btn-danger {
    background: #fff;
    color: var(--error);
    border-color: #f0b4ae;
}
.btn-danger:hover { background: #fff5f4; }
.btn-text-link {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--fg);
    font-weight: 700;
    padding: .7rem .45rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.btn-text-link:hover { color: var(--muted); }
.btn-sm {
    padding: .35rem .7rem;
    font-size: .82rem;
    border-radius: 6px;
}

.mini-hero.hidden { display: none; }
.mini-hero {
    flex: 0 0 auto;
    padding: 1rem 1.15rem .9rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.mini-hero h1 {
    margin: 0 0 .3rem;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 800;
}
.mini-hero p {
    margin: 0;
    color: var(--muted);
    max-width: 720px;
    line-height: 1.45;
    font-size: .92rem;
}

.results-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex: 0 0 auto;
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: .9rem;
}
.results-bar #foundLabel {
    margin-left: auto;
    white-space: nowrap;
}
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    min-width: 0;
    flex: 1 1 auto;
}
.filter-pill {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    max-width: 100%;
    border: 1px solid var(--line);
    background: var(--surface-subtle);
    color: var(--fg);
    border-radius: 999px;
    padding: .28rem .55rem .28rem .7rem;
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
}
.filter-pill:hover {
    background: var(--surface-hover);
}
.filter-pill span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.filter-pill-x {
    font-size: 1rem;
    line-height: 1;
    color: var(--muted);
}
.directory-layout.is-product-search {
    grid-template-columns: minmax(0, 1fr);
    background: #fff;
}
.directory-layout.is-product-search .directory-left,
.directory-layout.is-product-search .directory-right,
.directory-layout.is-product-search .directory-facets-toggle {
    display: none !important;
}
body.finance-shell .page-home.is-product-search,
body.finance-shell .page-home.is-product-search.page-category {
    overflow: hidden;
    background: #fff;
}
body.finance-shell .page-home.is-product-search .directory-layout {
    display: grid;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    background: #fff;
}
.directory-layout.is-product-search .directory-center,
.directory-layout.is-product-search .results-viewport,
.directory-layout.is-product-search .results-spacer {
    background: #fff;
}
.directory-layout.is-product-search .results-spacer {
    height: auto !important;
    min-height: 100%;
}
.directory-layout.is-product-search .results-window.product-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem 1rem;
    padding: 1.15rem 1.25rem 1.75rem;
    transform: none !important;
    will-change: auto;
    background: #fff;
    min-height: 100%;
}
.product-tile {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    min-width: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0;
    text-align: left;
    color: inherit;
}
.product-tile:focus-visible {
    outline: 2px solid var(--nav);
    outline-offset: 3px;
}
.product-tile-image {
    width: 200px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-subtle);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
}
.product-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-tile-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-weight: 700;
    font-size: 1.6rem;
    color: #64748b;
    background: linear-gradient(160deg, #e2e8f0, #f8fafc);
}
.product-tile-meta {
    min-width: 0;
    width: 200px;
    max-width: 100%;
}
.product-tile-title {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--fg);
}
.product-tile-provider {
    margin: .2rem 0 0;
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.3;
}
.listing-detail-modal {
    position: relative;
    width: min(760px, calc(100vw - 2rem));
    max-height: min(90vh, 640px);
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 1.35rem 1.35rem 1.25rem;
}
.listing-detail-close {
    position: absolute;
    top: .7rem;
    right: .7rem;
    z-index: 2;
}
.listing-detail-grid {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 1.25rem 1.5rem;
    align-items: start;
}
.listing-detail-media {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-subtle);
    display: grid;
    place-items: center;
}
.listing-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.listing-detail-media .product-tile-fallback {
    font-size: 2rem;
}
.listing-detail-body h2 {
    margin: 0 2rem .35rem 0;
    font-size: 1.35rem;
    line-height: 1.25;
}
.listing-detail-provider {
    margin: 0 0 .85rem;
    color: var(--muted);
    font-size: .95rem;
}
.listing-detail-desc {
    margin: 0 0 1.15rem;
    color: var(--fg);
    line-height: 1.55;
    font-size: .95rem;
}
.listing-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .85rem 1.1rem;
}
.btn-danger-red {
    background: var(--nav);
    color: #fff;
    border-color: var(--nav);
    border-radius: 999px;
    font-weight: 650;
    text-decoration: none;
    padding: .7rem 1.25rem;
}
.btn-danger-red:hover {
    filter: brightness(1.08);
    color: #fff;
}
.btn-danger-red.is-disabled,
.btn-danger-red[aria-disabled="true"] {
    opacity: .55;
    pointer-events: none;
}
.listing-detail-request {
    font-weight: 650;
    color: var(--fg);
    text-decoration: underline;
    text-underline-offset: 3px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
}
@media (max-width: 1100px) {
    .directory-layout.is-product-search .results-window.product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 800px) {
    .directory-layout.is-product-search .results-window.product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .listing-detail-grid {
        grid-template-columns: 1fr;
    }
    .listing-detail-media {
        margin: 0 auto;
    }
}
@media (max-width: 520px) {
    .directory-layout.is-product-search .results-window.product-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .product-tile,
    .product-tile-meta {
        width: 200px;
    }
}

/* Three-column directory (right rail reserved, hidden until content exists) */
.directory-layout {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    overflow: hidden;
    border-top: 1px solid var(--line);
    background: var(--bg);
}
.directory-layout.has-aside {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(160px, 200px);
}
.directory-left,
.directory-right {
    min-height: 0;
    background: #fff;
}
.directory-left {
    border-right: 1px solid var(--line);
    overflow: hidden;
}
.directory-right {
    display: none;
    border-left: 1px solid var(--line);
    overflow: auto;
}
.directory-layout.has-aside .directory-right {
    display: block;
}
.directory-center {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg);
}
.directory-center .results-viewport {
    flex: 1 1 auto;
    min-height: 0;
}
.facet-panel {
    height: 100%;
    overflow: auto;
    padding: .75rem .85rem 1.25rem;
    scrollbar-gutter: stable;
    background: #fff;
}
.facet-panel-tools {
    display: flex;
    justify-content: flex-end;
    min-height: 0;
    margin-bottom: .15rem;
}
.facet-panel-tools .facet-clear {
    padding: .1rem .15rem;
    font-size: .78rem;
    font-weight: 600;
}
.facet-group {
    margin: 0 0 .85rem;
}
.facet-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .35rem;
    margin: 0 0 .28rem;
}
.facet-group h3 {
    margin: 0;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8b95a5;
}
.facet-group-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    color: #8b95a5;
    width: 22px;
    height: 22px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.facet-group-toggle:hover {
    color: var(--fg);
    background: transparent;
}
.facet-group-toggle svg {
    transition: transform .15s ease;
}
.facet-group.is-collapsed .facet-group-toggle svg {
    transform: rotate(180deg);
}
.facet-group.is-collapsed .facet-group-body {
    display: none;
}
.facet-search-wrap {
    margin: 0 0 .35rem;
}
.facet-search-wrap input {
    width: 100%;
    height: 34px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    padding: 0 .9rem;
    font: inherit;
    font-size: .86rem;
    background: #fff;
    color: var(--fg);
}
.facet-search-wrap input::placeholder {
    color: #9aa3af;
}
.facet-search-wrap input:focus {
    outline: none;
    border-color: rgba(15, 23, 42, 0.28);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.05);
}
.facet-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
}
.facet-list li {
    margin: 0;
}
.facet-list li.empty,
.facet-list li.error {
    padding: .25rem .1rem;
    color: var(--muted);
    font-size: .84rem;
}
.facet-list button {
    width: 100%;
    text-align: left;
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--fg);
    padding: .42rem .4rem;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-size: .88rem;
    display: flex;
    justify-content: space-between;
    gap: .5rem;
}
.facet-list button:hover {
    background: var(--surface-subtle);
}
.facet-list button.is-active {
    background: var(--surface-hover);
    font-weight: 700;
}
.facet-check {
    display: flex;
    align-items: center;
    gap: .45rem;
    width: 100%;
    margin: 0;
    padding: .16rem .05rem;
    border-radius: 0;
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    line-height: 1.3;
    color: #1f2937;
    user-select: none;
    background: transparent;
}
.facet-check:hover {
    background: transparent;
    color: #111827;
}
.facet-check input {
    appearance: none;
    width: 15px;
    height: 15px;
    margin: 0;
    flex: 0 0 auto;
    border: 1.5px solid #b7bfc9;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    position: relative;
}
.facet-check input:checked {
    background: #111827;
    border-color: #111827;
}
.facet-check input:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1.5px;
    width: 4px;
    height: 7.5px;
    border: solid #fff;
    border-width: 0 1.6px 1.6px 0;
    transform: rotate(45deg);
}
.facet-check-text {
    min-width: 0;
    flex: 1 1 auto;
    font-weight: 400;
}
.facet-count {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    white-space: nowrap;
}
.directory-reserved {
    padding: 1.15rem 1rem;
    color: var(--muted);
    font-size: .84rem;
}
.directory-reserved p {
    margin: 0;
    line-height: 1.45;
}
.directory-facets-toggle {
    display: none;
}

@media (max-width: 1100px) {
    .directory-layout,
    .directory-layout.has-aside {
        grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    }
    .directory-layout.has-aside .directory-right {
        display: none;
    }
}

@media (max-width: 900px) {
    .directory-layout {
        grid-template-columns: 1fr;
    }
    .directory-left {
        display: none;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        max-height: 42vh;
    }
    .directory-layout.facets-open .directory-left {
        display: block;
    }
    .directory-facets-toggle {
        display: inline-flex;
    }
}

.results-viewport {
    flex: 1 1 auto;
    overflow: auto;
    position: relative;
    min-height: 0;
}
body:not(.finance-shell) .results-viewport {
    min-height: 320px;
}
.results-spacer {
    position: relative;
    width: 100%;
}
.results-window {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    will-change: transform;
}

.listing-card {
    position: absolute;
    left: 0;
    right: 0;
    height: var(--card-h);
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    gap: .75rem 1rem;
    align-items: start;
    padding: .75rem 1.05rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.listing-logo {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    background: var(--surface-subtle);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
    overflow: hidden;
    flex: 0 0 auto;
}
.listing-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}
.listing-body {
    min-width: 0;
    max-width: 56rem;
    padding-top: .1rem;
}
.listing-title-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    margin: 0 0 .2rem;
}
.listing-body h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 700;
}
.listing-title-link {
    color: var(--fg);
    text-decoration: none;
}
.listing-title-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.verified-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    color: var(--verified);
    flex: 0 0 auto;
}
.verified-check svg {
    display: block;
    width: 100%;
    height: 100%;
}
.listing-meta-line {
    margin: 0 0 .28rem;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.35;
}
.listing-body > p {
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.listing-meta {
    color: var(--muted);
    font-size: .78rem;
    margin-top: .2rem;
}
.listing-features {
    list-style: none;
    margin: .45rem 0 0;
    padding: 0;
    display: grid;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    grid-auto-columns: minmax(8rem, max-content);
    column-gap: 1.75rem;
    row-gap: .18rem;
    width: max-content;
    max-width: 100%;
}
.listing-features li {
    position: relative;
    padding-left: 1.05rem;
    font-size: .82rem;
    color: var(--fg);
    line-height: 1.35;
    white-space: nowrap;
}
.listing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .28rem;
    width: .7rem;
    height: .7rem;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.2 8.4 6.3 11.4 12.8 4.6' stroke='%2316a34a' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.listing-actions {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    align-self: center;
    min-width: 118px;
}
.listing-actions .btn,
.listing-actions button,
.listing-actions a.visit-link {
    appearance: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--fg);
    border-radius: 7px;
    padding: .45rem .75rem;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}
.listing-actions .btn-invite,
.listing-actions button.btn-invite {
    background: var(--accent);
    color: var(--accent-fg);
    border-color: var(--accent);
    border-radius: 999px;
    font-weight: 650;
}
.listing-actions .btn-invite:hover,
.listing-actions button.btn-invite:hover {
    filter: brightness(1.08);
    background: var(--accent);
}
.listing-actions .btn:hover,
.listing-actions button:hover,
.listing-actions a.visit-link:hover {
    background: var(--surface-subtle);
}
.listing-actions .btn-invite:hover {
    background: var(--accent);
}
.listing-actions .btn:disabled,
.listing-actions button:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.empty, .loading, .error {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--muted);
}
.error { color: var(--error); }

.page-category .listing-card,
.directory-layout .listing-card {
    height: var(--card-h-full);
}
.listing-actions button.is-link {
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.listing-actions a.is-link {
    appearance: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--fg);
    border-radius: 8px;
    padding: .5rem .75rem;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}
.listing-actions a.is-link:hover {
    background: var(--surface-hover);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-backdrop.open {
    display: flex;
}
.modal-backdrop.behind-cropper {
    opacity: .35;
    pointer-events: none;
}
.listing-preview-backdrop {
    z-index: 88;
}
.listing-preview-modal {
    width: min(920px, 100%);
    max-height: min(90vh, 640px);
}
.listing-preview-lead {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: .9rem;
}
.listing-preview-stage {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.listing-preview-stage .listing-card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    height: auto;
    min-height: var(--card-h-full);
}
.company-modal {
    width: min(720px, 100%);
    max-height: min(90vh, 820px);
    overflow: auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.company-modal-wide {
    width: min(820px, 100%);
}
.company-modal-xl {
    width: min(1100px, 100%);
    max-height: min(94vh, 920px);
}
.company-listing-layout {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 1.25rem 1.5rem;
    align-items: start;
}
.company-listing-logo-col {
    position: sticky;
    top: 0;
    width: 90px;
}
.logo-upload-stack {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    margin-top: 0;
    width: 90px;
}
.logo-preview-lg {
    width: 90px;
    height: 90px;
    min-height: 90px;
    max-width: 90px;
    aspect-ratio: 1;
    border-radius: 10px;
    border-style: dashed;
    background: var(--surface-subtle);
    position: relative;
    overflow: hidden;
}
.logo-preview-lg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.logo-preview-lg img[hidden] {
    display: none !important;
}
.logo-preview-lg .logo-placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    color: var(--muted);
    line-height: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: inherit;
}
.logo-preview-lg .logo-placeholder-icon svg {
    display: block;
    flex-shrink: 0;
}
.logo-preview-lg .logo-placeholder-icon .bx {
    display: block;
    font-size: 2.25rem;
    line-height: 1;
    color: var(--muted);
}
.logo-preview-lg .logo-placeholder-icon[hidden] {
    display: none !important;
}
.logo-upload-stack .logo-upload-actions {
    width: 90px;
}
.logo-upload-stack .btn {
    width: 100%;
    padding: .45rem .35rem;
    font-size: .78rem;
}
.picker-box {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.picker-box .facet-search-wrap {
    margin: 0;
    padding: .55rem .65rem .35rem;
    border-bottom: 1px solid var(--line);
}
.picker-box .picker-list {
    max-height: 12.5rem;
    overflow: auto;
    padding: .35rem .45rem .55rem;
    display: flex;
    flex-direction: column;
    gap: .05rem;
}
.picker-box .picker-list .facet-check {
    margin: 0;
    padding: .28rem .35rem;
    border-radius: 6px;
}
.picker-box .picker-list .empty {
    color: var(--muted);
    font-size: .84rem;
    padding: .55rem .35rem;
}
.picker-box .picker-list.picker-list-actions {
    list-style: none;
    max-height: min(50vh, 420px);
    padding: .35rem .45rem .55rem;
}
.picker-box .picker-list.picker-list-actions li {
    margin: 0;
}
.picker-box .picker-list.picker-list-actions button {
    width: 100%;
    display: block;
    text-align: left;
    border: 0;
    background: transparent;
    color: var(--fg);
    padding: .55rem .65rem;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    line-height: 1.35;
}
.picker-box .picker-list.picker-list-actions button:hover,
.picker-box .picker-list.picker-list-actions button:focus-visible {
    background: var(--surface-subtle);
    color: var(--accent);
    outline: none;
}
.picker-box .picker-list.picker-list-actions .picker-meta {
    display: block;
    margin-top: .15rem;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 400;
}
.picker-box .picker-list.picker-list-actions .empty {
    list-style: none;
    padding: .65rem;
}
.request-detail-modal {
    width: min(920px, 100%);
    max-height: min(92vh, 920px);
}
.request-detail-modal-title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.3;
}
.request-detail-modal .request-detail-actions {
    margin-top: 1rem;
}
.request-detail-modal .request-tabs {
    margin-top: 1.25rem;
}
.field-hint {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    margin-left: .35rem;
    color: var(--muted);
}
.field-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 .85rem;
}
.field-multiselect {
    min-height: 8.5rem;
}
.feature-fields {
    border: 0;
    margin: .85rem 0 0;
    padding: 0;
}
.feature-fields .field-input {
    margin-bottom: .45rem;
}
.feature-fields-grid {
    margin-top: .85rem;
}
.feature-fields-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem .75rem;
}
.feature-fields-columns .field-input {
    margin: 0;
}
@media (max-width: 820px) {
    .company-listing-layout {
        grid-template-columns: 90px minmax(0, 1fr);
    }
    .company-listing-logo-col {
        position: static;
        width: 90px;
    }
    .logo-preview-lg {
        width: 90px;
        height: 90px;
        max-width: 90px;
    }
    .feature-fields-columns {
        grid-template-columns: 1fr;
    }
}
.field-check {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin: .9rem 0 0;
    font-size: .9rem;
    line-height: 1.4;
    color: var(--fg);
    cursor: pointer;
}
.field-check input {
    margin-top: .2rem;
}
.invite-request-item.is-disabled {
    opacity: .62;
}
.invite-request-item.is-disabled strong {
    text-decoration: none;
}
@media (max-width: 700px) {
    .field-grid-2 { grid-template-columns: 1fr; }
}
.company-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
}
.company-modal-head h2 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
}
.company-modal-head .icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    align-self: center;
    font-size: 1.85rem;
    line-height: 1;
    color: var(--fg);
}
.company-modal-body {
    padding: 1.1rem 1.1rem 1.25rem;
}
.company-panel.hidden { display: none; }
.company-lead {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.5;
}
.company-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1rem;
}
.company-note, .company-status, .company-meta {
    margin: 0 0 .85rem;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.45;
}
.company-status {
    padding: .65rem .75rem;
    border-radius: 8px;
    background: var(--surface-subtle);
    border: 1px solid var(--line);
}
.field-label {
    display: block;
    margin: .75rem 0 .35rem;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
}
.field-input {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--fg);
    border-radius: 6px;
    padding: .55rem .65rem;
    font: inherit;
}
textarea.field-input {
    resize: vertical;
    min-height: 96px;
}
.company-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}
.form-error {
    margin: .75rem 0 0;
    color: var(--error);
    font-size: .88rem;
}
.form-error.hidden { display: none; }

.logo-upload {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: .35rem;
}
.logo-preview {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}
.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.logo-preview span:not(.logo-placeholder-icon) {
    color: var(--muted);
    font-size: .72rem;
    text-align: center;
    padding: .35rem;
}
.logo-upload-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .45rem;
    min-width: 0;
}
.logo-upload-hint {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.35;
}
.cropper-backdrop {
    z-index: 95;
    background: rgba(15, 23, 42, 0.55);
}
.logo-cropper-modal {
    width: min(560px, 100%);
    max-height: min(92vh, 720px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.logo-cropper-body {
    padding: 1rem 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.logo-cropper-stage {
    width: 100%;
    height: min(52vh, 380px);
    min-height: 240px;
    max-height: 380px;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: .75rem;
    position: relative;
}
.logo-cropper-stage > img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}
.logo-cropper-stage .cropper-container {
    width: 100% !important;
    height: 100% !important;
}
.logo-cropper-stage .cropper-wrap-box,
.logo-cropper-stage .cropper-canvas,
.logo-cropper-stage .cropper-drag-box,
.logo-cropper-stage .cropper-crop-box,
.logo-cropper-stage .cropper-view-box {
    max-width: 100%;
    max-height: 100%;
}

body.finance-cropper-open {
    overflow: hidden;
}

.offcanvas-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 60;
}
.offcanvas-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}
.offcanvas {
    position: fixed;
    top: 0;
    bottom: 0;
    width: min(360px, 92vw);
    background: var(--panel);
    border: 1px solid var(--line);
    z-index: 70;
    display: flex;
    flex-direction: column;
    transition: transform .22s ease;
}
.offcanvas.left { left: 0; transform: translateX(-105%); }
.offcanvas.right { right: 0; transform: translateX(105%); }
.offcanvas.open.left { transform: translateX(0); }
.offcanvas.open.right { transform: translateX(0); }
.offcanvas-head .icon-btn {
    color: var(--fg);
}
.offcanvas-head .icon-btn:hover,
.offcanvas-head .icon-btn.is-active {
    background: rgba(15, 23, 42, 0.06);
    color: var(--fg);
}
.offcanvas-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--line);
}
.offcanvas-head h2 {
    margin: 0;
    font-size: .95rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.offcanvas-body {
    flex: 1 1 auto;
    overflow: auto;
    padding: .85rem 1rem 1.25rem;
}
.field {
    margin-bottom: .85rem;
}
.field input {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--fg);
    border-radius: 6px;
    padding: .55rem .65rem;
}
.cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cat-list li { margin: 0; }
.cat-list a {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: var(--fg);
    padding: .55rem 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}
.cat-list a:hover {
    color: var(--accent);
    text-decoration: underline;
}

@media (max-width: 720px) {
    .topnav {
        padding: 0 .85rem;
        gap: .55rem;
    }
    .nav-right {
        gap: .2rem;
    }
    .nav-text-btn {
        font-size: .72rem;
        padding: .3rem .2rem;
        max-width: 5.5rem;
        white-space: normal;
        text-align: center;
        line-height: 1.15;
    }
    .nav-search {
        min-width: 0;
        padding-left: .65rem;
    }
    .nav-search-scope {
        max-width: 6.25rem;
        font-size: .78rem;
    }
}

@media (max-width: 900px) {
    .nav-search { max-width: none; flex: 1 1 auto; }
    .nav-text-btn { font-size: .78rem; padding: .35rem .3rem; }
    .site-hero-media {
        width: 100%;
        left: 0;
        right: 0;
    }
    .site-hero-media::before {
        /* Keep faces readable in the upper photo; solid band for copy below. */
        background: linear-gradient(180deg,
            rgba(11, 18, 32, 0.22) 0%,
            rgba(11, 18, 32, 0.45) 38%,
            rgba(11, 18, 32, 0.88) 68%,
            #0b1220 84%,
            #0b1220 100%);
    }
    .site-hero--hyperspeed .site-hero-media::before {
        content: none;
        display: none;
    }
    .site-hero--requests .site-hero-media img {
        object-position: 62% 22%;
    }
    .site-hero-inner,
    .home-hero-inner {
        min-height: clamp(360px, calc(100svh - var(--nav-h)), 640px);
        align-items: center;
    }
    body.finance-shell .page-home:has(#homeHero:not(.hidden)) .site-hero-inner,
    body.finance-shell .page-requests:has(.site-hero:not(.hidden)) .site-hero-inner {
        min-height: 100%;
    }
    .site-hero-copy,
    .home-hero-copy {
        width: 100%;
        max-width: 40rem;
        padding: 1.35rem 1.15rem;
    }
    .listing-card {
        grid-template-columns: 90px minmax(0, 1fr);
    }
    .directory-layout .listing-card,
    .page-category .listing-card {
        grid-template-columns: 90px minmax(0, 1fr);
    }
    .listing-features {
        grid-auto-columns: minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
    }
    .listing-features li {
        white-space: normal;
    }
    .listing-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        min-width: 0;
        align-self: stretch;
    }
    .listing-actions .btn,
    .listing-actions button,
    .listing-actions a.visit-link {
        flex: 1 1 auto;
        width: auto;
    }
}

.contact-lead {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.45;
    font-size: .92rem;
}
.contact-form .field-input {
    width: 100%;
}
.contact-form .btn {
    width: 100%;
    margin-top: .5rem;
}
.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.form-success {
    margin: .75rem 0 0;
    color: var(--success);
    font-size: .9rem;
}
.form-success.hidden { display: none; }
.listing-actions .invite-btn {
    cursor: pointer;
}
.listing-actions .invite-btn:hover {
    filter: brightness(1.08);
}

.invite-request-list {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    margin: 0 0 1rem;
    max-height: 16rem;
    overflow: auto;
}
.invite-request-item {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    padding: .65rem .75rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-subtle);
}
.invite-request-item input {
    margin-top: .2rem;
}
.invite-request-item strong {
    display: block;
    font-size: .92rem;
    line-height: 1.3;
}
.invite-request-item span {
    display: block;
    margin-top: .15rem;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.35;
}

.listing-title-link {
    color: inherit;
    text-decoration: none;
}
.listing-title-link:hover {
    text-decoration: underline;
}

.page-listing {
    max-width: 980px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2.5rem;
}

.listing-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: center;
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 1rem;
}
.listing-breadcrumb a {
    color: var(--fg);
    text-decoration: none;
}
.listing-breadcrumb a:hover {
    text-decoration: underline;
}

.listing-detail {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.25rem;
    background: #fff;
}
.listing-detail-logo {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--surface-subtle);
    font-weight: 700;
    overflow: hidden;
}
.listing-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.listing-detail-category {
    margin: 0 0 .35rem;
    color: var(--muted);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.listing-detail-body h1 {
    margin: 0 0 .75rem;
    font-size: 1.8rem;
}
.listing-detail-description {
    margin: 0 0 1rem;
    line-height: 1.55;
    color: var(--muted);
}
.listing-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

@media (max-width: 720px) {
    .listing-detail {
        grid-template-columns: 1fr;
    }
}

/* Requests marketplace */
.request-card {
    position: absolute;
    left: 0;
    right: 0;
    height: 176px;
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    gap: .75rem 1rem;
    align-items: start;
    padding: .75rem 1.05rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.request-card-avatar {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    background: var(--surface-subtle);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex: 0 0 auto;
}
.request-card-avatar svg {
    width: 52px;
    height: 52px;
    display: block;
    opacity: .85;
}
.request-card-body {
    min-width: 0;
    max-width: 56rem;
    padding-top: .1rem;
}
.request-card-top {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
    margin: 0 0 .2rem;
}
.request-card-top h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 700;
}
.request-title-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--fg);
    font: inherit;
    font-weight: 700;
    padding: 0;
    margin: 0;
    text-align: left;
    cursor: pointer;
}
.request-title-btn:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.request-card-actions {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    align-self: center;
    min-width: 128px;
}
.request-card-actions .btn {
    width: 100%;
    white-space: nowrap;
}
.request-status {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--success);
    background: rgba(6, 118, 71, 0.08);
    border: 1px solid rgba(6, 118, 71, 0.2);
    border-radius: 999px;
    padding: .1rem .45rem;
}
.request-status.is-closed {
    color: var(--muted);
    background: var(--surface-subtle);
    border-color: var(--line);
}
.request-summary {
    margin: .28rem 0 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.request-meta {
    margin: 0;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.35;
}
.request-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1.1rem;
    color: var(--fg);
    font-size: .8rem;
}
.request-stat strong {
    font-weight: 700;
}
@media (max-width: 900px) {
    .request-card {
        grid-template-columns: 72px minmax(0, 1fr) auto;
        gap: .65rem .75rem;
    }
    .request-card-avatar {
        width: 72px;
        height: 72px;
    }
    .request-card-avatar svg {
        width: 42px;
        height: 42px;
    }
    .request-card-actions {
        min-width: 108px;
    }
    .request-summary {
        -webkit-line-clamp: 4;
    }
}
.request-compose-step .company-lead {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.45;
}
.request-type-fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 1rem;
}
.request-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
}
.picker-box-compact .picker-list {
    max-height: none;
}
.request-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .35rem 0 0;
    min-height: 2rem;
}
.request-chip {
    display: inline-flex;
    align-items: center;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: var(--surface-subtle);
    border: 1px solid var(--line);
    font-size: .8rem;
    font-weight: 600;
}
.request-spam-banner {
    margin: 0 0 1rem;
    padding: .75rem .85rem;
    border-radius: 8px;
    background: #fff5f4;
    border: 1px solid #f0b4ae;
    color: var(--error);
    font-size: .9rem;
}
.request-spam-banner.hidden { display: none; }
.request-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.request-card-link:hover .request-card-top h3 {
    color: var(--accent);
}
.request-detail-card {
    max-width: 760px;
}
.request-detail-back {
    margin: 0 0 1rem;
}
.request-detail-summary {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
    margin-bottom: .5rem;
}
.request-detail-h2 {
    margin: 1.75rem 0 .75rem;
    font-size: 1.15rem;
}
.request-detail-body {
    color: var(--muted);
    line-height: 1.55;
    white-space: normal;
}
.request-detail-actions {
    margin: 1.25rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}
.offers-list {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.offer-card {
    padding: .9rem 0;
    border-top: 1px solid var(--line);
}
.offer-card:first-child {
    border-top: 0;
    padding-top: 0;
}
.offer-card-body {
    margin: 0;
    color: var(--fg);
    line-height: 1.5;
}
.offer-card-meta {
    margin: .45rem 0 0;
    color: var(--muted);
    font-size: .8rem;
}
.offer-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
    margin-top: .45rem;
}
.offer-card-foot .offer-card-meta {
    margin: 0;
}
.offer-connected-badge {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--success);
    background: rgba(6, 118, 71, 0.08);
    border: 1px solid rgba(6, 118, 71, 0.2);
    border-radius: 999px;
    padding: .15rem .55rem;
}
.muted {
    color: var(--muted);
    font-weight: 500;
}
.request-tabs {
    display: flex;
    gap: .35rem;
    margin: 1.75rem 0 0;
    border-bottom: 1px solid var(--line);
}
.request-tab {
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: .55rem .85rem;
    cursor: pointer;
    color: var(--muted);
    font: inherit;
    font-weight: 600;
}
.request-tab.is-active {
    color: var(--fg);
    border-bottom-color: var(--accent);
}
.request-tab-panel {
    padding-top: .85rem;
}
.request-tab-panel.hidden {
    display: none;
}
.qa-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.qa-item {
    padding: .85rem 0;
    border-top: 1px solid var(--line);
}
.qa-item:first-child {
    border-top: 0;
    padding-top: 0;
}
.qa-label {
    margin: 0 0 .25rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
}
.qa-question,
.qa-answer {
    margin: 0;
    color: var(--fg);
    line-height: 1.5;
}
.qa-answer {
    margin-top: .15rem;
}
.qa-waiting {
    margin: .45rem 0 0;
    color: var(--muted);
    font-size: .85rem;
}
.qa-answer-form {
    margin-top: .65rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    align-items: flex-start;
}
.qa-ask-box {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: .45rem;
    align-items: flex-start;
}
.qa-ask-box .field-input,
.qa-answer-form .field-input {
    width: 100%;
}
.offer-cpl-note,
.offer-cpl-estimate {
    margin: 0 0 .85rem;
    padding: .65rem .75rem;
    border-radius: 8px;
    background: var(--surface-subtle);
    border: 1px solid var(--line);
    color: var(--fg);
    font-size: .9rem;
    line-height: 1.45;
}
.offer-cpl-estimate[hidden] {
    display: none;
}

/* Provider plans modal (finance4x §5) */
.plans-modal {
    width: min(1080px, 100%);
    max-height: min(92vh, 900px);
}
.plans-pricing-table {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
    margin: 1rem 0 1.5rem;
}
.plan-card {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1rem 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.plan-card.is-current {
    border-color: #7f1d1d;
    box-shadow: inset 0 0 0 1px rgba(127, 29, 29, .25);
}
.plan-card-head {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.plan-card-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .01em;
}
.plan-card-price {
    margin: 0;
    color: #7f1d1d;
    font-size: 1.2rem;
    font-weight: 700;
}
.plan-card-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .4rem;
    flex: 1;
}
.plan-card-meta li {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    font-size: .86rem;
    color: var(--muted);
}
.plan-card-meta strong {
    color: var(--fg);
    font-weight: 600;
}
.plan-select-btn {
    width: 100%;
}
.plans-features-title {
    margin: 0 0 .75rem;
    font-size: .95rem;
}
.plans-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem .9rem;
}
.plans-features-list li {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .88rem;
    color: var(--fg);
}
.plan-feature-tip {
    position: relative;
    display: inline-flex;
    color: var(--muted);
    cursor: help;
}
.plan-info-icon {
    display: block;
}
.plan-feature-tip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    width: min(240px, 70vw);
    padding: .5rem .65rem;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: .78rem;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
    z-index: 5;
}
.plan-feature-tip:hover::after,
.plan-feature-tip:focus-visible::after {
    opacity: 1;
}
.company-plan-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: 0 0 1rem;
    padding: .65rem .8rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff7f7;
}
.company-plan-label {
    margin: 0;
    font-size: .9rem;
    font-weight: 600;
}
@media (max-width: 960px) {
    .plans-pricing-table {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .plans-pricing-table,
    .plans-features-list {
        grid-template-columns: 1fr;
    }
    .company-plan-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Listings management modal (finance4x §7) */
.listings-modal-backdrop,
.listings-picker-backdrop,
.listings-analytics-backdrop,
.listings-delete-backdrop {
    z-index: 88;
}
.listings-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}
.listings-toolbar {
    display: flex;
    justify-content: flex-start;
}
.listings-loading {
    margin: 0;
    color: var(--muted);
}
.listings-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 0;
}
.listings-section-title {
    margin: 0 0 .65rem;
    font-size: .95rem;
    font-weight: 600;
    color: var(--text);
}
.listings-chart {
    width: 100%;
    min-height: 260px;
}
.listings-chart-modal {
    min-height: 320px;
}
.listings-table-wrap {
    overflow: auto;
}
.listings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}
.listings-table th,
.listings-table td {
    padding: .65rem .5rem;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.listings-table th {
    text-align: left;
    color: var(--muted);
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.listings-col-clicks {
    width: 5.5rem;
    text-align: right;
}
.listings-col-actions {
    width: 11rem;
    text-align: right;
    white-space: nowrap;
}
.listings-table td.listings-col-clicks {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.listings-title-btn {
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.listings-title-btn:hover {
    color: var(--accent, #2563eb);
    text-decoration: underline;
}
.listings-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
}
.listings-menu-wrap {
    position: relative;
    display: inline-flex;
}
.listings-menu-btn {
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.listings-menu-btn:hover {
    color: var(--text);
    border-color: #cbd5e1;
}
.listings-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 9.5rem;
    margin: 0;
    padding: .35rem 0;
    list-style: none;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 3;
}
.listings-menu.hidden {
    display: none;
}
.listings-menu button {
    display: block;
    width: 100%;
    border: 0;
    background: none;
    padding: .45rem .85rem;
    text-align: left;
    font: inherit;
    color: var(--text);
    cursor: pointer;
}
.listings-menu button:hover {
    background: rgba(15, 23, 42, 0.05);
}
.listings-menu button.is-danger {
    color: #b91c1c;
}
.listings-empty {
    margin: .75rem 0 0;
    color: var(--muted);
}
.listings-delete-message {
    margin: 0 0 1rem;
    line-height: 1.5;
}
.listings-delete-actions {
    justify-content: flex-end;
}
.profile-modal-backdrop {
    z-index: 88;
}
.listings-picker-modal,
.listings-delete-modal {
    width: min(560px, 100%);
}

/* Requests inbox (finance4x §10) */
.requests-inbox-backdrop,
.request-detail-backdrop {
    z-index: 92;
}
.requests-inbox-backdrop.open,
.request-detail-backdrop.open {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    background: var(--panel);
}
.requests-inbox-shell,
.request-detail-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    background: var(--panel);
    color: var(--fg);
}
.requests-inbox-topbar,
.request-detail-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 420px) auto;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
    color: var(--fg);
}
.request-detail-topbar {
    grid-template-columns: 1fr auto 1fr;
}
.request-detail-topbar-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}
.request-detail-topbar-spacer {
    width: 2.5rem;
}
.requests-inbox-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}
.requests-inbox-brand-logo {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}
.requests-inbox-search {
    width: 100%;
}
.requests-inbox-search .field-input {
    width: 100%;
}
.requests-inbox-close,
.request-detail-close {
    justify-self: end;
}
.requests-inbox-body {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) minmax(0, 10fr);
    flex: 1;
    min-height: 0;
}
.requests-inbox-sidebar {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1rem;
    border-right: 1px solid var(--line);
    overflow: auto;
    background: var(--panel);
    color: var(--fg);
}
.requests-inbox-sidebar .facet-check,
.requests-inbox-sidebar .facet-list .empty {
    color: var(--fg);
}
.requests-inbox-sidebar .field-input {
    background: #fff;
    color: var(--fg);
}
.requests-inbox-post-btn {
    width: 100%;
}
.requests-inbox-radios {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.requests-inbox-facet .facet-list {
    max-height: 220px;
    overflow: auto;
}
.requests-inbox-main {
    min-width: 0;
    overflow: auto;
    background: var(--surface-subtle, #f8fafc);
}
.requests-inbox-list {
    display: flex;
    flex-direction: column;
}
.requests-inbox-row {
    display: grid;
    grid-template-columns: 6.5rem minmax(7rem, 1.2fr) minmax(0, 1fr) 4.5rem;
    gap: .75rem;
    align-items: center;
    width: 100%;
    padding: .85rem 1.25rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
    color: var(--fg);
    text-align: left;
    cursor: pointer;
    font: inherit;
}
.requests-inbox-row:hover {
    background: rgba(15, 23, 42, 0.03);
}
.requests-inbox-col-type,
.requests-inbox-col-location,
.requests-inbox-col-date {
    color: var(--muted);
    font-size: .88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.requests-inbox-col-title {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.requests-inbox-col-date {
    text-align: right;
}
.requests-inbox-loading,
.requests-inbox-empty {
    margin: 0;
    padding: 2rem 1.25rem;
    color: var(--muted);
}
.request-detail-body {
    flex: 1;
    overflow: auto;
    padding: 1.25rem 1.5rem 2rem;
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
}
body.finance-requests-inbox-open,
body.finance-request-detail-open {
    overflow: hidden;
}

/* Modals opened while requests inbox is full-screen must stack above it (z-index 92). */
body.finance-requests-inbox-open #offcanvasBackdrop.open {
    z-index: 94;
}
body.finance-requests-inbox-open .account-offcanvas.open {
    z-index: 96;
}
body.finance-requests-inbox-open #requestComposeBackdrop.open,
body.finance-requests-inbox-open #requestDetailBackdrop.open,
body.finance-requests-inbox-open #offerComposeBackdrop.open,
body.finance-requests-inbox-open #connectConfirmBackdrop.open,
body.finance-requests-inbox-open #authRequiredBackdrop.open {
    z-index: 96;
}
body.finance-requests-inbox-open #profileModalBackdrop.open,
body.finance-requests-inbox-open #listingsModalBackdrop.open,
body.finance-requests-inbox-open #listingsCategoryBackdrop.open,
body.finance-requests-inbox-open #listingAnalyticsBackdrop.open,
body.finance-requests-inbox-open #listingsDeleteBackdrop.open,
body.finance-requests-inbox-open #companyModalBackdrop.open,
body.finance-requests-inbox-open #plansModalBackdrop.open,
body.finance-requests-inbox-open #inviteModalBackdrop.open {
    z-index: 98;
}
body.finance-requests-inbox-open .account-fab {
    z-index: 100;
}
@media (max-width: 900px) {
    .requests-inbox-topbar,
    .request-detail-topbar {
        grid-template-columns: 1fr auto;
    }
    .requests-inbox-search {
        grid-column: 1 / -1;
        order: 3;
    }
    .requests-inbox-body {
        grid-template-columns: 1fr;
    }
    .requests-inbox-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        max-height: 42vh;
    }
    .requests-inbox-row {
        grid-template-columns: 1fr;
        gap: .25rem;
    }
    .requests-inbox-col-date {
        text-align: left;
    }
}
