:root {
    --nav-h: 56px;
    --bg: #f8fafc;
    --panel: #ffffff;
    --fg: #111827;
    --muted: #5b6573;
    --line: rgba(15, 23, 42, 0.12);
    --accent: #111827;
    --accent-fg: #ffffff;
    --surface-subtle: #f1f5f9;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --hero-bg: #0A29FF;
    --error: #b42318;
    --success: #067647;
    --z-nav: 50;
    --z-modal: 80;
    --z-profile: 90;
    --z-media: 100;
}

* { 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; }
.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;
}
body.modal-open { overflow: hidden; }

.topnav {
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    flex: 0 0 auto;
    background: #fff;
    color: var(--fg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 0 1.25rem;
    min-height: var(--nav-h);
    height: var(--nav-h);
    border-bottom: 1px solid var(--line);
}
.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
}
.nav-left {
    flex: 1 1 auto;
}
.nav-right {
    flex: 0 0 auto;
}
.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}
.brand-logo {
    display: block;
    height: 34px;
    width: 34px;
    object-fit: contain;
}
.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: #f1f5f9;
    border-color: transparent;
    box-shadow: none;
}
.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-text-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--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); }
.nav-cta-btn {
    appearance: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--fg);
    font: inherit;
    font-size: .86rem;
    font-weight: 650;
    line-height: 1.2;
    padding: .45rem 1.05rem;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 999px;
}
.nav-cta-btn:hover { background: var(--surface-subtle); }
.icon-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--fg);
    border-radius: 6px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.icon-btn:hover { background: var(--surface-subtle); }

.page-home {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
body.finance-shell:has(#homeHero:not(.hidden)) .page-home {
    overflow: hidden;
}

.site-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    color: #fff;
    background-color: var(--hero-bg);
    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.hidden { display: none !important; }
.site-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.site-hero-fallback,
#finance-hero-bg {
    position: absolute;
    inset: 0;
    background-color: var(--hero-bg);
}
.site-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2.75rem 1.25rem;
    pointer-events: none;
}
.site-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: min(100%, 62rem);
}
.site-hero-copy h1 {
    margin: 0 0 .9rem;
    font-family: inherit;
    font-size: clamp(1.7rem, 5.8vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    white-space: nowrap;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.site-hero-sub {
    margin: 0 0 1.6rem;
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    font-weight: 400;
    line-height: 1.55;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}
.site-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}
.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-hero-pill {
    border-radius: 999px;
    padding: .7rem 1.35rem;
    font-weight: 650;
    min-width: 9.5rem;
}
.btn-hero-primary {
    background: #fff;
    color: var(--hero-bg);
    border-color: #fff;
}
.btn-hero-primary:hover { filter: brightness(0.96); }
.btn-primary {
    background: var(--accent);
    color: var(--accent-fg);
    border-color: var(--accent);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary {
    background: #fff;
    color: var(--fg);
    border-color: var(--line);
}
.btn-secondary:hover { background: var(--surface-subtle); }
.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); }

.directory-layout {
    flex: 1 1 auto;
    min-height: 0;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    background: #fff;
}
body.search-active .page-home {
    overflow: hidden;
}
.facets {
    min-width: 0;
    overflow: auto;
    padding: .85rem .9rem 1.25rem;
    border-right: 1px solid var(--line);
    background: #fff;
}
.facet-panel-tools {
    display: flex;
    justify-content: flex-end;
    min-height: 1.1rem;
    margin-bottom: .15rem;
}
.facet-clear {
    padding: .1rem .15rem;
    font-size: .78rem;
    font-weight: 600;
}
.facet-group { margin: 0 0 .95rem; }
.facet-group h3 {
    margin: 0 0 .35rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8b95a5;
}
.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);
}
.facet-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: min(42vh, 24rem);
    overflow: auto;
}
.facet-list li.empty,
.facet-list li.error {
    padding: .25rem .1rem;
    color: var(--muted);
    font-size: .84rem;
}
.facet-check {
    display: flex;
    align-items: center;
    gap: .45rem;
    width: 100%;
    margin: 0;
    padding: .16rem .05rem;
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    line-height: 1.3;
    color: #1f2937;
    user-select: none;
}
.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;
}
.facet-count { color: inherit; }
.results-pane {
    min-width: 0;
    overflow: auto;
    padding: 1.15rem 1.25rem 1.75rem;
    background: #fff;
}
.directory-seo-title {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--fg);
}
.seo-listing {
    max-width: 44rem;
    margin: 1.25rem auto 0;
    padding: 0 1.25rem 1rem;
}
.seo-listing-logo {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin: 0 0 .85rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.seo-listing h1 {
    margin: 0 0 .65rem;
    font-size: 1.45rem;
    line-height: 1.3;
}
.seo-listing p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--fg);
    white-space: pre-wrap;
}
body.modal-open .seo-listing {
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-content: start;
}
.results-empty {
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: .95rem;
}
.results-more {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}
.company-tile {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .65rem;
    min-width: 0;
    margin: 0;
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.company-tile:hover {
    border-color: rgba(15, 23, 42, 0.22);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}
.company-tile:focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: 2px;
}
.company-tile-logo {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(160deg, #e2e8f0, #f8fafc);
    border-radius: 8px;
}
.company-tile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
}
.company-tile-logo span {
    font-weight: 700;
    font-size: 1.6rem;
    color: #64748b;
}
.company-tile-name {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--fg);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.profile-backdrop {
    z-index: var(--z-profile);
    padding: 1.25rem;
}
.profile-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(1100px, 100%);
    height: min(92vh, 920px);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.profile-modal-close {
    position: absolute;
    top: .45rem;
    right: .45rem;
    z-index: 2;
    font-size: 1.85rem;
    line-height: 1;
}
.profile-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.profile-manage-pills {
    position: absolute;
    right: 1.15rem;
    bottom: 1.15rem;
    z-index: 4;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: auto;
    gap: .45rem;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    pointer-events: none;
}
.profile-manage-pills > * {
    pointer-events: auto;
}
.profile-manage-pills[hidden] {
    display: none;
}
.profile-manage-pills-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    width: 75px;
}
.profile-manage-pills-row .btn {
    flex: 0 0 auto;
    width: 75px;
    min-width: 75px;
    box-sizing: border-box;
    padding: .55rem .4rem;
}
.profile-manage-status {
    margin: 0;
    font-size: .78rem;
    line-height: 1.3;
    text-align: right;
    color: var(--muted);
    max-width: 16rem;
    padding: .35rem .5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
}
.profile-manage-status[hidden] {
    display: none;
}
.profile-manage-status.is-ok { color: #166534; }
.profile-manage-status.is-error { color: #9b1c1c; }
.profile-manage-report {
    margin: 0;
    padding: .55rem .7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-size: .8rem;
    line-height: 1.4;
    color: var(--fg);
    max-width: 16rem;
    text-align: right;
}
.profile-manage-report[hidden] {
    display: none;
}
.profile-manage-report p {
    margin: 0;
}
.profile-manage-report .profile-manage-report-kicker {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .25rem;
}
.profile-modal-status {
    margin: 0;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--muted);
}
.profile-layout {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(148px, 2fr) minmax(0, 10fr);
    overflow: hidden;
}
.profile-modal.has-manage-pills .profile-main {
    padding-bottom: 9rem;
}
.profile-aside {
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1.5rem 1rem 1.5rem 1.25rem;
    border-right: 1px solid var(--line);
    background: #fff;
}
.profile-logo {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 0 .85rem;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(160deg, #e2e8f0, #f8fafc);
    border: 1px solid var(--line);
}
.profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}
.profile-logo span {
    font-weight: 800;
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: #64748b;
}
.profile-aside .profile-visit {
    width: 100%;
    min-width: 0;
    margin: 0 0 1rem;
}
.profile-nav {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    position: sticky;
    top: 0;
}
.profile-nav a {
    display: block;
    padding: .42rem .5rem;
    border-radius: 6px;
    color: var(--fg);
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.3;
}
.profile-nav a:hover { background: var(--surface-subtle); }
.profile-nav a.is-active { background: var(--surface-subtle); }
.profile-main {
    min-width: 0;
    min-height: 0;
    display: block;
    overflow: auto;
    padding: 2.5rem clamp(1.75rem, 4.5vw, 3.5rem) 3rem;
}
.profile-header {
    margin: 0 0 1.75rem;
}
.profile-main h1 {
    margin: 1.15rem 0 .7rem;
    font-family: inherit;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    color: var(--fg);
}
.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0 0 1rem;
}
.profile-tag {
    display: inline-flex;
    align-items: center;
    padding: .22rem .65rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--fg);
    background: #fff;
}
.profile-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    margin: 0 0 1rem;
}
.profile-visit {
    min-width: 8.5rem;
    padding: .75rem 1.35rem;
    font-size: 1rem;
    font-weight: 700;
}
.profile-visit:disabled {
    opacity: .45;
    cursor: not-allowed;
    filter: none;
}
.profile-phone {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--fg);
    letter-spacing: 0.01em;
}
.profile-about {
    margin: 0;
    color: var(--fg);
    font-size: .98rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 42rem;
    white-space: pre-wrap;
}
.profile-contact {
    max-width: 28rem;
    min-width: 0;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
}
.profile-contact h2 {
    margin: 0 0 .85rem;
}
.profile-contact-form {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}
.profile-contact-form label {
    display: flex;
    flex-direction: column;
    gap: .28rem;
    font-size: .78rem;
    font-weight: 650;
    color: var(--fg);
}
.profile-contact-form input,
.profile-contact-form select,
.profile-contact-form textarea {
    appearance: none;
    width: 100%;
    padding: .55rem .65rem;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--fg);
    font: inherit;
    font-size: .92rem;
    font-weight: 500;
}
.profile-contact-form textarea {
    min-height: 5.5rem;
    resize: vertical;
}
.profile-contact-form input:focus,
.profile-contact-form select:focus,
.profile-contact-form textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
    outline-offset: 1px;
    border-color: var(--accent);
}
.profile-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.profile-contact-status {
    margin: 0;
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.4;
}
.profile-contact-status.is-error { color: var(--error); }
.profile-contact-status.is-ok { color: var(--success); }
.profile-contact-form .btn {
    width: 100%;
    margin-top: .15rem;
}
.profile-contact-form .btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}
.profile-similar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.profile-similar-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    padding: .4rem .45rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
}
.profile-similar-item:hover {
    border-color: #c5cdd8;
    background: #f7f9fc;
}
.profile-similar-logo {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 6px;
    overflow: hidden;
    flex: 0 0 auto;
    background: #eef2f6;
    display: grid;
    place-items: center;
    font-size: .72rem;
    font-weight: 700;
    color: var(--muted);
}
.profile-similar-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-similar-name {
    min-width: 0;
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.25;
}
.profile-section {
    margin: 0 0 2.25rem;
    scroll-margin-top: .75rem;
}
.profile-section h2 {
    margin: 0 0 .7rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.profile-chip-list,
.profile-feature-list,
.profile-bullet-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.profile-feature-list,
.profile-bullet-list {
    display: grid;
    gap: .4rem .75rem;
}
.profile-feature-list li,
.profile-bullet-list li {
    position: relative;
    padding-left: 1rem;
    color: var(--fg);
    line-height: 1.45;
}
.profile-feature-list li::before,
.profile-bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55rem;
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: var(--fg);
}
.profile-bullet-list li.is-overflow { display: none; }
.profile-bullet-list.is-expanded li.is-overflow { display: list-item; }
.profile-show-more {
    appearance: none;
    margin: .55rem 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--fg);
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .15em;
    cursor: pointer;
}
.profile-team {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}
.profile-team-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: .95rem 1rem;
    align-items: start;
}
.profile-team-photo {
    width: 88px;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(160deg, #e2e8f0, #f8fafc);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
}
.profile-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-team-photo span {
    font-weight: 800;
    font-size: 1.15rem;
    color: #64748b;
}
.profile-team-copy {
    min-width: 0;
}
.profile-team-item h3 {
    margin: 0 0 .15rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}
.profile-team-item .profile-team-title {
    margin: 0 0 .4rem;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 600;
}
.profile-team-item .profile-team-bio {
    margin: 0;
    color: var(--fg);
    font-size: .95rem;
    line-height: 1.55;
    white-space: pre-wrap;
}
.profile-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.profile-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .75rem;
}
.profile-media-item {
    appearance: none;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
}
.profile-media-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 8px;
}
.profile-media-preview {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface-subtle);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}
.profile-media-item:hover .profile-media-preview {
    border-color: #94a3b8;
}
.profile-media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-media-preview.is-video {
    position: relative;
    background: #0b1220;
    color: #fff;
}
.profile-media-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}
.profile-media-play svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
}
.profile-media-kind-label {
    position: absolute;
    bottom: .45rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.profile-media-kind {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    letter-spacing: .04em;
}
.profile-media-kind svg {
    width: 28px;
    height: 28px;
}
.profile-media-name {
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.media-viewer-backdrop {
    z-index: var(--z-media);
    background: rgba(15, 23, 42, 0.72);
    padding: 1.5rem;
}
.media-viewer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    width: min(960px, 100%);
    max-height: min(92vh, 900px);
}
.media-viewer-close {
    position: absolute;
    top: -.15rem;
    right: -.15rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.85rem;
    color: #fff;
}
.media-viewer-close:hover { background: rgba(255, 255, 255, 0.12); }
.media-viewer-stage {
    width: 100%;
    min-width: 0;
    min-height: 12rem;
    max-height: min(78vh, 760px);
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: #0b1220;
}
.media-viewer-stage img,
.media-viewer-stage video {
    display: block;
    max-width: 100%;
    max-height: min(78vh, 760px);
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    justify-self: center;
    align-self: center;
}
.media-viewer-stage iframe {
    width: 100%;
    height: min(78vh, 760px);
    border: 0;
    background: #fff;
}
.media-viewer-caption {
    margin: 0;
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    text-align: center;
    max-width: 100%;
}

@media (max-width: 560px) {
    .profile-layout { grid-template-columns: 1fr; }
    .profile-aside {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 1rem 1.15rem;
    }
    .profile-logo {
        width: 96px;
        margin-bottom: .75rem;
    }
    .profile-nav {
        flex-direction: row;
        flex-wrap: wrap;
        position: static;
    }
    .profile-team-item {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: .75rem;
    }
    .profile-team-photo {
        width: 72px;
        height: 72px;
    }
    .profile-main {
        overflow: auto;
        padding: 1.5rem 1.15rem 2rem;
    }
    .profile-contact { position: static; max-width: none; }
}
.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-xl {
    width: min(1100px, 100%);
    max-height: min(94vh, 920px);
}
.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;
    font-size: 1.85rem;
    line-height: 1;
}
.company-modal-body { padding: 1.1rem 1.1rem 1.25rem; }
.about-modal { width: min(480px, 100%); }
.about-modal-head {
    justify-content: flex-end;
    border-bottom: 0;
    padding-bottom: 0;
}
.about-modal-body {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}
.about-modal-logo {
    display: block;
    width: 200px;
    height: auto;
    max-width: 100%;
    margin: 0 auto 1rem;
    object-fit: contain;
}
.about-modal-lead {
    margin: 0 0 1.15rem;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.55;
}
.about-modal-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.about-modal-links a {
    color: var(--fg);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: underline;
    text-underline-offset: .15em;
}
.about-modal-copy {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
}
.listing-compose-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 0 0 2rem;
}
.listing-compose-intro h1 {
    margin: 0 0 1rem;
    width: 100%;
    font-size: clamp(1.85rem, 4.2vw, 3.15rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--fg);
}
.listing-compose-lead {
    margin: 0 0 .85rem;
    max-width: 52rem;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}
.listing-compose-subhead {
    margin: 1.35rem 0 .85rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fg);
}
.listing-compose.company-modal-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}
.listing-compose-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: clamp(1.75rem, 5vw, 3rem) clamp(1.75rem, 8vw, 6.5rem) 2rem;
}
.listing-compose-bar { display: none; }
.listing-compose-main {
    min-width: 0;
    max-width: 52rem;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}
.listing-compose-main fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}
.listing-compose.listing-package-basic .listing-premium-only {
    display: none !important;
}
.listing-legend {
    margin: 0 0 .15rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.listing-package-radios {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .55rem 1.75rem;
    margin: 0 0 1.15rem;
}
.listing-radio {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .95rem;
    font-weight: 650;
    cursor: pointer;
    white-space: nowrap;
}
.listing-radio input {
    appearance: auto;
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    margin: 0;
    accent-color: var(--fg);
    cursor: pointer;
}
.listing-premium-note[hidden] { display: none !important; }
.listing-premium-note {
    margin: 1rem 0 0;
    width: 100%;
    max-width: 52rem;
    padding: .75rem .85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-subtle);
    color: var(--fg);
    font-size: .9rem;
    line-height: 1.5;
    text-align: left;
}
.listing-field {
    display: flex;
    flex-direction: column;
    gap: .28rem;
    font-size: .78rem;
    font-weight: 650;
    color: var(--fg);
}
.listing-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.listing-pick-search),
.listing-field select:not(.listing-pick-native),
.listing-field textarea,
.listing-tag-filter {
    appearance: none;
    width: 100%;
    padding: .55rem .65rem;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--fg);
    font: inherit;
    font-size: .92rem;
    font-weight: 500;
}
.listing-field textarea { min-height: 6rem; resize: vertical; }
.listing-pick {
    --pick-accent: #4f46e5;
    --pick-accent-soft: #eef2ff;
    --pick-tag: #e8eeff;
    --pick-tag-fg: #3730a3;
    width: 100%;
}
.listing-pick-anchor { position: relative; }
.listing-pick-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.listing-pick-control,
.listing-pick-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    padding: .35rem .75rem;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--fg);
    font: inherit;
    font-size: .92rem;
    font-weight: 500;
    text-align: left;
}
.listing-pick-control {
    flex-wrap: wrap;
    align-content: flex-start;
    gap: .4rem;
    border-radius: 12px;
    overflow: hidden;
    min-width: 0;
    box-sizing: border-box;
    cursor: text;
}
.listing-pick-trigger {
    justify-content: space-between;
    gap: .5rem;
    border-radius: 10px;
    cursor: pointer;
}
.listing-pick.is-open .listing-pick-control,
.listing-pick.is-open .listing-pick-trigger {
    border-color: color-mix(in srgb, var(--pick-accent) 50%, var(--line));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--pick-accent) 22%, transparent);
}
.listing-pick-label { min-width: 0; flex: 1 1 auto; }
.listing-pick-label.is-empty { min-height: 1.2em; }
.listing-pick-chevron {
    display: inline-flex;
    color: var(--muted);
    flex: 0 0 auto;
}
.listing-pick.is-open .listing-pick-chevron { transform: rotate(180deg); }
.listing-pick-chip {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    min-width: 0;
    max-width: 100%;
    padding: .12rem .3rem .12rem .55rem;
    border-radius: 999px;
    background: var(--pick-tag);
    color: var(--pick-tag-fg);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
}
.listing-pick-chip-x {
    appearance: none;
    border: 0;
    background: transparent;
    color: color-mix(in srgb, var(--pick-tag-fg) 70%, #fff);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    padding: 0 .1rem;
}
.listing-pick-chip-x:hover { color: var(--pick-tag-fg); }
.listing-pick-search {
    flex: 1 1 4rem;
    min-width: 4rem;
    max-width: 100%;
    border: 0;
    background: transparent;
    color: var(--fg);
    font: inherit;
    font-size: .9rem;
    font-weight: 500;
    outline: none;
    padding: .1rem 0;
    box-shadow: none;
}
.listing-pick-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 8;
    max-height: 200px;
    margin: 0;
    padding: .25rem 0;
    overflow: auto;
    overscroll-behavior: contain;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
.listing-pick-option {
    display: block;
    width: 100%;
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--fg);
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.35;
    padding: .45rem .85rem;
    text-align: left;
}
.listing-pick-option:hover,
.listing-pick-option.is-active {
    background: var(--pick-accent-soft);
    color: var(--pick-accent);
    font-weight: 600;
}
.listing-hint, .listing-count {
    margin: 0;
    font-size: .78rem;
    font-weight: 500;
    color: var(--muted);
}
.listing-label-row {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 650;
    color: var(--fg);
}
.listing-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: default;
    color: var(--muted);
    line-height: 1;
}
.listing-info-icon {
    font-size: 1rem;
    line-height: 1;
    user-select: none;
    display: inline-flex;
    align-items: center;
}
.listing-info-tip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 210px;
    padding: .4rem .55rem;
    background: #1e293b;
    color: #f1f5f9;
    font-size: .74rem;
    font-weight: 500;
    line-height: 1.45;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease;
    z-index: 20;
    white-space: normal;
    text-align: left;
}
.listing-info:hover .listing-info-tip,
.listing-info:focus .listing-info-tip {
    opacity: 1;
}
.listing-textarea-wrap {
    position: relative;
}
.listing-textarea-wrap textarea {
    padding-bottom: 1.55rem;
}
.listing-count-float {
    position: absolute;
    right: .5rem;
    bottom: .4rem;
    background: rgba(255, 255, 255, .88);
    padding: .05rem .25rem;
    border-radius: 3px;
    pointer-events: none;
}
.listing-logo-input {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    padding: .3rem .75rem .3rem .3rem;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    font: inherit;
    color: var(--fg);
    transition: border-color .15s ease;
}
.listing-logo-input:hover { border-color: color-mix(in srgb, var(--fg) 40%, var(--line)); }
.listing-logo-input input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.listing-logo-thumb {
    width: 44px;
    height: 44px;
    border-radius: 5px;
    border: 1px solid var(--line);
    background: var(--surface-subtle);
    overflow: hidden;
    display: grid;
    place-items: center;
    color: var(--muted);
    flex: 0 0 auto;
}
.listing-logo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}
.listing-logo-filename {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 500;
}
.listing-logo-filename.has-file { color: var(--fg); }
.listing-offcanvas-select { display: none; }
.listing-field-tags {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: .4rem;
    min-height: 38px;
    padding: .3rem .5rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}
.listing-tags-browse {
    appearance: none;
    border: 1px dashed var(--line);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    padding: .1rem .55rem;
    border-radius: 999px;
    transition: border-color .15s ease, color .15s ease;
}
.listing-tags-browse:hover {
    border-color: color-mix(in srgb, var(--fg) 35%, var(--line));
    color: var(--fg);
}
.listing-offcanvas-wrap[hidden] { display: none !important; }
.listing-offcanvas-wrap {
    position: absolute;
    inset: 0;
    z-index: 6;
    background: rgba(15, 23, 42, 0.3);
    overflow: hidden;
}
.listing-offcanvas {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 100%);
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border-left: 1px solid var(--line);
    box-shadow: -6px 0 24px rgba(15, 23, 42, .1);
    z-index: 7;
    transform: translateX(100%);
    transition: transform .22s cubic-bezier(.4, 0, .2, 1);
}
.listing-offcanvas-wrap:not([hidden]) .listing-offcanvas {
    transform: translateX(0);
}
.listing-offcanvas-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem .85rem;
    border-bottom: 1px solid var(--line);
    flex: 0 0 auto;
}
.listing-offcanvas-title {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    white-space: nowrap;
}
.listing-offcanvas-search {
    flex: 1 1 auto;
    min-width: 0;
    padding: .3rem .65rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-subtle);
    font: inherit;
    font-size: .88rem;
    outline: none;
    appearance: none;
}
.listing-offcanvas-search:focus {
    border-color: color-mix(in srgb, var(--pick-accent) 50%, var(--line));
    background: #fff;
}
.listing-offcanvas-list {
    flex: 1 1 auto;
    overflow: auto;
    padding: .35rem 0;
    overscroll-behavior: contain;
}
.listing-offcanvas-option {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .4rem .9rem;
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--fg);
    transition: background .1s ease;
}
.listing-offcanvas-option:hover { background: var(--surface-subtle); }
.listing-offcanvas-option input[type="checkbox"] {
    appearance: auto;
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--pick-accent);
    cursor: pointer;
    flex: 0 0 auto;
}
.listing-tag-list {
    max-height: 11rem;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .35rem .5rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.listing-tag-list label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .86rem;
    font-weight: 500;
    padding: .18rem 0;
    cursor: pointer;
}
.listing-tag-selected {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}
.listing-tag-selected[hidden] { display: none !important; }
.listing-tag-chip {
    appearance: none;
    border: 1px solid var(--line);
    background: var(--surface-subtle);
    border-radius: 999px;
    padding: .2rem .55rem;
    font: inherit;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}
.listing-tag-list input[type="checkbox"] {
    appearance: auto;
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    accent-color: var(--fg);
    cursor: pointer;
}
.listing-repeat {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.listing-repeat-item {
    display: grid;
    grid-template-columns: 1.1rem minmax(0, 1fr) auto;
    gap: .45rem .55rem;
    align-items: start;
    padding: .55rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.listing-drag {
    cursor: grab;
    color: var(--muted);
    user-select: none;
    line-height: 1.2;
    padding-top: .45rem;
}
.listing-repeat-fields {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    min-width: 0;
}
.listing-repeat-fields input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]),
.listing-repeat-fields textarea {
    width: 100%;
    padding: .45rem .55rem;
    border: 1px solid var(--line);
    border-radius: 7px;
    font: inherit;
    font-size: .9rem;
}
.listing-mini {
    display: flex;
    flex-direction: column;
    gap: .22rem;
    font-size: .75rem;
    font-weight: 650;
    color: var(--muted);
}
.listing-team-photo-row {
    display: flex;
    align-items: center;
    gap: .7rem;
}
.listing-team-photo-preview {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface-subtle);
    overflow: hidden;
    display: grid;
    place-items: center;
    font-size: .68rem;
    font-weight: 700;
    color: var(--muted);
    flex: 0 0 auto;
}
.listing-team-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.listing-team-card .listing-team-card-inner {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
    gap: .6rem;
    width: 100%;
    text-align: left;
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: var(--fg);
}
.listing-team-card-photo {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface-subtle);
    overflow: hidden;
    display: grid;
    place-items: center;
    font-size: .65rem;
    font-weight: 700;
    color: var(--muted);
    flex: 0 0 auto;
}
.listing-team-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.listing-team-card-info {
    display: flex;
    flex-direction: column;
    gap: .18rem;
    min-width: 0;
    padding-top: .15rem;
}
.listing-team-card-name {
    font-size: .92rem;
    font-weight: 650;
    line-height: 1.2;
}
.listing-team-card-name.is-placeholder { color: var(--muted); }
.listing-team-card-title {
    font-size: .8rem;
    font-weight: 500;
    color: var(--muted);
}
.listing-team-card-bio {
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.listing-team-modal-wrap[hidden] { display: none !important; }
.listing-team-modal-wrap {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.listing-team-modal {
    width: min(480px, 100%);
    max-height: calc(100% - 2.5rem);
    overflow: auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.listing-team-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--line);
    flex: 0 0 auto;
}
.listing-team-modal-heading {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}
.listing-team-modal-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    overflow: auto;
}
.listing-team-modal-foot {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem 1rem;
    border-top: 1px solid var(--line);
    flex: 0 0 auto;
}
.listing-media-fields {
    align-items: center;
    gap: .5rem;
}
.listing-media-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .18rem .4rem;
    border-radius: 5px;
    background: var(--surface-subtle);
    border: 1px solid var(--line);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--muted);
    min-width: 36px;
    white-space: nowrap;
}
.listing-media-kind {
    text-transform: uppercase;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--muted);
}
.listing-spend {
    display: flex;
    align-items: center;
    gap: .4rem;
}
.listing-spend input { flex: 1 1 auto; }
.listing-remove {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 700;
    padding: .2rem .3rem;
}
.listing-file-add { display: inline-flex; cursor: pointer; }
.listing-file-add[hidden] { display: none !important; }
.listing-file-add input { display: none; }
.listing-compose-submit-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 1.25rem auto 0;
    max-width: 52rem;
    width: 100%;
}
.listing-create-gates[hidden] {
    display: none !important;
}
.listing-confirm-check {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    max-width: 52rem;
    width: 100%;
    margin: 2.25rem auto 0;
    font-size: .88rem;
    line-height: 1.45;
    color: var(--fg);
    cursor: pointer;
}
.listing-confirm-check input {
    margin-top: .2rem;
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
}
.listing-confirm-check a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .12em;
}
.listing-confirm-check.is-invalid {
    outline: 2px solid color-mix(in srgb, var(--error) 45%, transparent);
    outline-offset: 4px;
    border-radius: 8px;
}
.listing-error-list {
    max-width: 52rem;
    width: 100%;
    margin: 1rem auto 0;
    padding-left: 1.2rem;
    color: var(--error);
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.45;
}
.listing-error-list[hidden] { display: none; }
.listing-error-list button {
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    color: inherit;
    font: inherit;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: .12em;
}
.listing-compose input.is-invalid,
.listing-compose textarea.is-invalid,
.listing-compose select.is-invalid,
.listing-pick.is-invalid .listing-pick-control,
.listing-pick.is-invalid .listing-pick-trigger,
.listing-field-tags.is-invalid,
.listing-spend.is-invalid,
.listing-logo-input.is-invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 16%, transparent);
}
.finance-turnstile {
    max-width: 52rem;
    width: 100%;
    margin: 1rem auto 0;
}
.listing-success-backdrop {
    z-index: calc(var(--z-profile) + 4);
    padding: 1.25rem;
}
.listing-success-modal {
    position: relative;
    width: min(28rem, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 2.35rem 1.75rem 1.85rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.listing-success-close {
    position: absolute;
    top: .4rem;
    right: .4rem;
    font-size: 1.7rem;
    line-height: 1;
}
.listing-success-check {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.15rem;
    border-radius: 50%;
    background: #12b76a;
    color: #fff;
    display: grid;
    place-items: center;
}
.listing-success-check svg {
    width: 36px;
    height: 36px;
}
.listing-success-title {
    margin: 0 0 .85rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--fg);
}
.listing-success-copy {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.55;
}
.listing-success-copy strong {
    color: var(--fg);
    font-weight: 700;
}
.listing-submit-btn,
.listing-preview-btn {
    min-width: 75px;
    width: 75px;
    padding: .55rem .5rem;
    font-size: .9rem;
    font-weight: 650;
}
.listing-preview-btn {
    background: transparent;
    color: var(--fg);
    border-color: var(--line);
}
.listing-preview-btn:hover { background: var(--surface-subtle); }
.listing-compose-status {
    flex: 1 1 100%;
    order: -1;
    margin: 0;
    font-size: .88rem;
    font-weight: 600;
}
.listing-compose-status.is-error { color: var(--error); }
.listing-compose-status.is-ok { color: var(--success); }
.listing-feature-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 52rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .4rem 1.5rem;
    text-align: left;
}
.listing-feature-grid li {
    position: relative;
    padding-left: 1.15rem;
    font-size: .9rem;
    line-height: 1.4;
}
.listing-feature-grid li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--fg);
    font-weight: 700;
}
.listing-feature-grid.is-basic li.is-premium {
    color: var(--muted);
    text-decoration: line-through;
}
.listing-feature-grid.is-basic li.is-premium::before {
    content: '×';
}
.listing-confirm[hidden] { display: none !important; }
.listing-confirm {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 3;
}
.listing-confirm-card {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 10px;
    padding: 1.1rem 1.15rem;
    box-shadow: var(--shadow);
}
.listing-confirm-card p {
    margin: 0 0 1rem;
    line-height: 1.5;
}
.listing-confirm-actions {
    display: flex;
    gap: .6rem;
    justify-content: flex-end;
}
.listing-compose-backdrop {
    padding: 0 clamp(0px, calc(50vw - 450px), 4rem);
    align-items: stretch;
    justify-content: center;
}
.listing-compose-close {
    position: fixed;
    top: 1.1rem;
    left: max(0.5rem, calc(50vw - min(450px, 50vw - 1rem) - 44px));
    z-index: calc(var(--z-modal) + 1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: var(--fg);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .15);
    transition: background .15s ease;
}
.listing-compose-close:hover { background: #fff; }
.listing-compose-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    border: 0;
    box-shadow: 0 0 0 1px var(--line);
}
.listing-compose-modal > .company-modal-head {
    display: none;
}

.page-static { padding: 2rem 1.25rem 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 h2 {
    margin: 1.5rem 0 .65rem;
    font-size: 1.15rem;
    color: var(--fg);
}
.static-card p {
    color: var(--muted);
    line-height: 1.55;
}
.static-card ul {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 1.55;
}
.static-card li { margin: 0 0 .35rem; }
.legal-doc { max-width: 820px; }
.static-notice {
    background: var(--surface-subtle);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .75rem 1rem;
    color: var(--fg);
}
.invoice-rows {
    display: grid;
    gap: .15rem;
    margin: 1.25rem 0;
}
.invoice-rows div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    padding: .45rem 0;
}
.invoice-rows dt {
    color: var(--muted);
    font-weight: 500;
}
.invoice-rows dd {
    margin: 0;
    font-weight: 650;
    text-align: right;
}
.is-link {
    color: var(--fg);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .15em;
}

@media (max-width: 960px) {
    .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .directory-layout { grid-template-columns: minmax(180px, 220px) minmax(0, 1fr); }
    .profile-main {
        overflow: auto;
    }
    .profile-contact { position: static; max-width: none; }
    .listing-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .topnav { padding: 0 1.25rem; }
    .nav-text-btn { font-size: .78rem; padding: .35rem .3rem; }
    .nav-cta-btn { font-size: .78rem; padding: .35rem .75rem; }
    .nav-search { min-width: 0; }
    .directory-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: calc(100dvh - var(--nav-h));
        overflow: auto;
    }
    .facets {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        overflow: visible;
    }
    .facet-list { max-height: 12rem; }
    .results-pane { overflow: visible; }
    .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-hero-copy { width: min(100%, 100%); padding: 0 .5rem; }
    .site-hero-copy h1 { font-size: clamp(1.35rem, 7.2vw, 2.35rem); }
    .listing-feature-grid { grid-template-columns: 1fr; }
    .listing-compose-intro h1 { font-size: clamp(1.45rem, 7vw, 2.1rem); }
}
