:root {
    --bireme-ink: #17263a;
    --bireme-ink-soft: #344459;
    --bireme-charcoal: #333b41;
    --bireme-charcoal-deep: #293136;
    --bireme-sidebar-text: #c0c9cf;
    --bireme-sidebar-muted: #82909a;
    --bireme-teal: #4eb1aa;
    --bireme-teal-light: #87d0cc;
    --bireme-teal-dark: #337572;
    --bireme-plum: #c92661;
    --bireme-indigo: #5c6f9f;
    --bireme-canvas: #f3f6f6;
    --bireme-surface: #ffffff;
    --bireme-border: #dce3e6;
    --bireme-border-strong: #cbd5da;
    --bireme-muted: #667684;
    --bireme-shadow: 0 1px 2px rgba(25, 41, 55, 0.04), 0 8px 24px rgba(25, 41, 55, 0.045);
}

html {
    background: var(--bireme-canvas);
}

body.app-body {
    color: var(--bireme-ink);
    background:
        radial-gradient(circle at 82% -12%, rgba(135, 208, 204, 0.12), transparent 28rem),
        var(--bireme-canvas);
    font-family: "Segoe UI Variable", "Aptos", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
}

::selection {
    color: var(--bireme-ink);
    background: rgba(135, 208, 204, 0.48);
}

:focus-visible {
    outline: 2px solid var(--bireme-teal) !important;
    outline-offset: 2px;
}

/* Application shell */
.app-sidebar-shell,
.app-sidebar-drawer {
    width: 15rem !important;
}

.app-sidebar-shell {
    box-shadow: 3px 0 18px rgba(24, 33, 39, 0.08);
}

.app-shell-content {
    min-width: 0;
}

.app-main {
    min-height: calc(100vh - 4.25rem);
    padding-top: 1.65rem !important;
    padding-bottom: 3rem !important;
}

.app-content {
    width: 100%;
    max-width: 100rem !important;
}

@media (min-width: 1024px) {
    .app-shell-content {
        padding-left: 15rem !important;
    }
}

/* Sidebar and Bireme identity */
.app-sidebar {
    gap: 0.75rem !important;
    padding: 0 0.75rem 1rem !important;
    color: var(--bireme-sidebar-text);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 15rem),
        linear-gradient(165deg, var(--bireme-charcoal) 0%, var(--bireme-charcoal-deep) 100%) !important;
    scrollbar-color: #65727b transparent;
    scrollbar-width: thin;
}

.app-sidebar::-webkit-scrollbar {
    width: 5px;
}

.app-sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #65727b;
}

.app-brand-wrap {
    height: 4.5rem !important;
    padding: 0 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.app-brand {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.65rem;
    text-decoration: none;
}

.app-brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    flex: none;
    object-fit: contain;
}

.app-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.05rem;
    line-height: 1;
}

.app-brand-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.app-brand-product {
    color: var(--bireme-teal-light);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.app-sidebar-nav > ul {
    row-gap: 0.9rem !important;
}

.app-sidebar-nav > ul > li > div.text-xs {
    padding: 0 0.6rem;
    color: var(--bireme-sidebar-muted) !important;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em;
    line-height: 1.5rem !important;
    text-transform: uppercase;
}

.app-sidebar-nav ul ul {
    margin-top: 0.15rem;
}

.app-sidebar-nav a {
    min-height: 2.25rem;
    padding: 0.42rem 0.55rem !important;
    gap: 0.65rem !important;
    border: 1px solid transparent;
    border-radius: 0.35rem !important;
    color: var(--bireme-sidebar-text) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    line-height: 1.25rem !important;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.app-sidebar-nav a:hover {
    color: #fff !important;
    border-color: rgba(135, 208, 204, 0.16);
    background: rgba(255, 255, 255, 0.07) !important;
}

.app-sidebar-nav a.bg-gray-800 {
    color: #fff !important;
    border-color: rgba(135, 208, 204, 0.24);
    background: rgba(78, 177, 170, 0.16) !important;
    box-shadow: inset 3px 0 0 var(--bireme-teal-light);
}

.app-sidebar-nav a > svg {
    width: 1.18rem !important;
    height: 1.18rem !important;
    color: #96a3ac;
    stroke-width: 1.65;
}

.app-sidebar-nav a:hover > svg,
.app-sidebar-nav a.bg-gray-800 > svg {
    color: var(--bireme-teal-light);
}

.app-sidebar-nav a > span.flex.h-6.w-6 {
    width: 1.2rem !important;
    height: 1.2rem !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    border-radius: 999px !important;
}

.app-sidebar-nav .bg-primary-600 {
    background: var(--bireme-plum) !important;
}

.app-sidebar-nav > ul > li.mt-auto {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.app-sidebar > p:last-child {
    color: #73808a !important;
    font-size: 0.61rem !important;
}

/* Header */
.app-navbar {
    height: 4.25rem !important;
    border-color: rgba(203, 213, 218, 0.9) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 1px 8px rgba(31, 46, 57, 0.04) !important;
    backdrop-filter: blur(12px);
}

.app-navbar > .flex-1 {
    align-items: center;
}

.app-global-search {
    height: 2.55rem;
    max-width: 44rem;
    align-self: center;
}

.app-global-search svg {
    left: 0.9rem !important;
    width: 1.05rem !important;
    color: #81909b !important;
}

.app-global-search input {
    height: 100% !important;
    padding: 0 1rem 0 2.6rem !important;
    border: 1px solid #e1e7e9 !important;
    border-radius: 0.45rem !important;
    color: var(--bireme-ink) !important;
    background: #f6f8f8 !important;
    box-shadow: inset 0 1px 1px rgba(31, 46, 57, 0.025);
}

.app-global-search input:focus {
    border-color: rgba(78, 177, 170, 0.7) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(78, 177, 170, 0.12) !important;
}

.app-create-button {
    min-height: 2.4rem;
    padding-inline: 0.95rem !important;
}

.app-profile-button > span:first-of-type {
    color: var(--bireme-ink) !important;
    background: #e1f1ef !important;
    box-shadow: inset 0 0 0 1px rgba(78, 177, 170, 0.3);
}

/* Typography and page headers */
.app-main h1,
.app-main h2,
.app-main h3,
.app-main h4 {
    color: var(--bireme-ink);
    letter-spacing: -0.015em;
}

.app-main h1 {
    font-size: clamp(1.75rem, 2.1vw, 2.25rem) !important;
    font-weight: 650 !important;
    line-height: 1.15 !important;
}

.app-page-header {
    padding-bottom: 0.15rem;
}

.app-page-eyebrow {
    margin-bottom: 0.42rem;
    color: var(--bireme-teal-dark);
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.app-page-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bireme-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.app-status-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--bireme-teal);
    box-shadow: 0 0 0 4px rgba(78, 177, 170, 0.13);
}

.app-main .text-gray-900 {
    color: var(--bireme-ink) !important;
}

.app-main .text-gray-700 {
    color: var(--bireme-ink-soft) !important;
}

.app-main .text-gray-500,
.app-main .text-gray-600 {
    color: var(--bireme-muted) !important;
}

/* Cards and section accents */
.app-main .bg-white.shadow,
.app-main .bg-white.shadow-sm,
.app-main .shadow.bg-white,
.app-main .shadow-sm.bg-white {
    border: 1px solid var(--bireme-border);
    box-shadow: var(--bireme-shadow) !important;
}

.app-main .rounded-lg {
    border-radius: 0.55rem;
}

.brand-panel {
    position: relative;
    overflow: hidden;
}

.brand-panel::before {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
    background: var(--panel-accent, var(--bireme-indigo));
}

.brand-panel--plum {
    --panel-accent: var(--bireme-plum);
}

.brand-panel--teal {
    --panel-accent: var(--bireme-teal);
}

.brand-panel--indigo {
    --panel-accent: var(--bireme-indigo);
}

.app-main [class*="border-b"][class*="px-4"][class*="py-5"],
.app-main [class*="border-b"][class*="sm:px-6"] {
    border-color: var(--bireme-border) !important;
}

/* Dashboard metric cards */
.app-dashboard .grid.lg\:grid-cols-5 {
    gap: 0.85rem !important;
}

.metric-card {
    min-height: 6.8rem;
    padding: 1.15rem 1rem !important;
    border-top: 3px solid var(--metric-accent, var(--bireme-indigo)) !important;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease !important;
}

a.metric-card:hover {
    transform: translateY(-2px);
    border-color: var(--metric-accent, var(--bireme-indigo)) !important;
    box-shadow: 0 10px 28px rgba(25, 41, 55, 0.09) !important;
}

.metric-card--long { --metric-accent: #2e9f68; }
.metric-card--short { --metric-accent: var(--bireme-plum); }
.metric-card--deck { --metric-accent: #d89b2b; }
.metric-card--watch { --metric-accent: var(--bireme-indigo); }
.metric-card--notes { --metric-accent: var(--bireme-teal); }

.metric-card dt > div.absolute {
    top: 1.15rem;
    left: 1rem;
    padding: 0.6rem !important;
    border-radius: 0.4rem !important;
    color: var(--metric-accent) !important;
    background: color-mix(in srgb, var(--metric-accent) 12%, white) !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--metric-accent) 18%, white);
}

.metric-card dt > div.absolute svg {
    width: 1.2rem !important;
    height: 1.2rem !important;
    color: var(--metric-accent) !important;
}

.metric-card dt p,
.metric-card dd {
    margin-left: 3.35rem !important;
}

.metric-card dd p {
    font-variant-numeric: tabular-nums;
}

.portfolio-metric {
    position: relative;
    min-height: 7.2rem;
    overflow: hidden;
    border-top: 3px solid var(--portfolio-accent, var(--bireme-indigo)) !important;
}

.portfolio-metric::after {
    position: absolute;
    top: -1.8rem;
    right: -1.8rem;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    content: "";
    background: color-mix(in srgb, var(--portfolio-accent) 9%, white);
}

.portfolio-metric--long { --portfolio-accent: #2e9f68; }
.portfolio-metric--short { --portfolio-accent: var(--bireme-plum); }
.portfolio-metric--net { --portfolio-accent: var(--bireme-indigo); }
.portfolio-metric--return { --portfolio-accent: #d89b2b; }
.portfolio-metric--proposed { --portfolio-accent: var(--bireme-teal); }
.portfolio-metric--delta { --portfolio-accent: #788691; }

.portfolio-metric dt {
    color: #71808b !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.portfolio-metric dd {
    color: var(--bireme-ink);
    font-variant-numeric: tabular-nums;
}

/* Controls */
.app-body .bg-primary-600 {
    border-color: var(--bireme-teal-dark) !important;
    background: var(--bireme-teal) !important;
}

.app-body .hover\:bg-primary-500:hover,
.app-body .hover\:bg-primary-600:hover {
    background: var(--bireme-teal-dark) !important;
}

.app-body .text-primary-600,
.app-body .hover\:text-primary-500:hover,
.app-body .hover\:text-primary-600:hover {
    color: var(--bireme-teal-dark) !important;
}

.app-main button.bg-primary-600,
.app-main a.bg-primary-600,
.app-navbar button.bg-primary-600 {
    border: 1px solid rgba(33, 101, 97, 0.38) !important;
    box-shadow: 0 1px 2px rgba(29, 78, 75, 0.13) !important;
}

.app-main button,
.app-main a[class*="px-3"][class*="py-2"],
.app-navbar button {
    transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.app-main input:not([type="checkbox"]):not([type="radio"]),
.app-main select,
.app-main textarea {
    border-radius: 0.42rem !important;
}

/* Busy buttons: app.js sets aria-busy on the button that started a request.
   The spinner takes the place of the label, so the button keeps its size. */
button[aria-busy="true"] {
    cursor: progress;
    /* Hides the label but leaves currentColor for the spinner. */
    -webkit-text-fill-color: transparent;
}

/* An already positioned button is its own containing block. */
button[aria-busy="true"]:not(.absolute):not(.fixed):not(.sticky) {
    position: relative;
}

button[aria-busy="true"] > * {
    visibility: hidden;
}

button[aria-busy="true"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1em;
    height: 1em;
    margin: -0.5em 0 0 -0.5em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: button-busy-spin 0.6s linear infinite;
}

@keyframes button-busy-spin {
    to { transform: rotate(360deg); }
}

.app-main input:not([type="checkbox"]):not([type="radio"]):focus,
.app-main select:focus,
.app-main textarea:focus {
    --tw-ring-color: rgba(78, 177, 170, 0.75) !important;
    border-color: var(--bireme-teal) !important;
    box-shadow: 0 0 0 3px rgba(78, 177, 170, 0.11) !important;
}

.app-main input[type="checkbox"],
.app-main input[type="radio"] {
    color: var(--bireme-teal) !important;
}

/* Tables: compact, financial, and easy to scan */
.app-main table {
    font-variant-numeric: tabular-nums;
}

.app-main table thead,
.app-main table thead.bg-gray-50 {
    background: #f4f7f7 !important;
}

.app-main table th {
    color: #5e6f7b !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.055em !important;
}

.app-main table td {
    color: var(--bireme-ink-soft);
}

.app-main table tbody,
.app-main table tbody.bg-white {
    background: #fff !important;
}

.app-main table tr {
    border-color: #e3e8ea !important;
}

.app-main table tbody tr:hover,
.app-main table tr.hover\:bg-gray-50:hover {
    background: #f5faf9 !important;
}

.app-main table tfoot,
.app-main table tfoot.bg-gray-50 {
    background: #f2f6f6 !important;
}

/* Menus, search results, and toast surfaces */
.app-navbar [x-show="open"],
#search-results > * {
    border: 1px solid var(--bireme-border);
    border-radius: 0.45rem !important;
    box-shadow: 0 16px 35px rgba(25, 41, 55, 0.14) !important;
}

#toast-container > div {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 0.45rem !important;
    box-shadow: 0 16px 35px rgba(25, 41, 55, 0.18) !important;
}

/* Branded authentication layout */
.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(20rem, 0.85fr) minmax(30rem, 1.15fr);
    background: #fff;
}

.auth-brand-panel {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4.5rem);
    color: #fff;
    background:
        radial-gradient(circle at 88% 12%, rgba(135, 208, 204, 0.2), transparent 18rem),
        linear-gradient(155deg, #354047 0%, #273035 100%);
}

.auth-brand-panel::after {
    position: absolute;
    right: -7rem;
    bottom: -5rem;
    width: 27rem;
    height: 27rem;
    content: "";
    opacity: 0.075;
    background: url("../images/bireme-mark-light.8b7afd3960c4.svg") center / contain no-repeat;
    transform: rotate(-8deg);
}

.auth-brand-logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.auth-brand-logo img {
    width: 2.8rem;
    height: 2.8rem;
}

.auth-brand-logo strong {
    display: block;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.auth-brand-logo span {
    display: block;
    margin-top: 0.18rem;
    color: var(--bireme-teal-light);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.auth-brand-message {
    position: relative;
    z-index: 1;
    max-width: 31rem;
}

.auth-brand-message p:first-child {
    margin-bottom: 1rem;
    color: var(--bireme-teal-light);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-brand-message h1 {
    max-width: 9em;
    font-size: clamp(2.4rem, 4.7vw, 4.25rem);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 0.99;
}

.auth-brand-message p:last-child {
    max-width: 35rem;
    margin-top: 1.5rem;
    color: #c4cdd2;
    font-size: 0.95rem;
    line-height: 1.75;
}

.auth-brand-footer {
    position: relative;
    z-index: 1;
    color: #86949d;
    font-size: 0.7rem;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background:
        radial-gradient(circle at 100% 0, rgba(135, 208, 204, 0.11), transparent 25rem),
        #f7f9f9;
}

.auth-form-wrap {
    width: 100%;
    max-width: 29rem;
}

.auth-form-heading {
    margin-bottom: 1.75rem;
}

.auth-form-heading p {
    color: var(--bireme-teal-dark);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-form-heading h2 {
    margin-top: 0.4rem;
    color: var(--bireme-ink);
    font-size: 2rem;
    font-weight: 650;
    letter-spacing: -0.035em;
}

.auth-card {
    padding: 2rem !important;
    border: 1px solid var(--bireme-border);
    border-top: 3px solid var(--bireme-plum);
    border-radius: 0.55rem !important;
    background: #fff;
    box-shadow: var(--bireme-shadow) !important;
}

.auth-card input:not([type="checkbox"]) {
    min-height: 2.75rem;
    border-radius: 0.42rem !important;
}

.auth-card button[type="submit"] {
    min-height: 2.75rem;
}

.auth-signup-note {
    margin-top: 1.5rem !important;
}

@media (max-width: 860px) {
    .auth-shell {
        display: block;
    }

    .auth-brand-panel {
        min-height: auto;
        padding: 1.25rem 1.5rem;
    }

    .auth-brand-message,
    .auth-brand-footer {
        display: none;
    }

    .auth-form-panel {
        min-height: calc(100vh - 5.3rem);
        padding: 2rem 1.25rem;
    }
}

@media (max-width: 640px) {
    .app-main {
        padding-top: 1.15rem !important;
    }

    .app-content {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    .app-navbar {
        height: 3.9rem !important;
    }

    .app-create-button {
        width: 2.45rem;
        padding: 0 !important;
        justify-content: center;
        overflow: hidden;
        color: transparent !important;
        gap: 0 !important;
    }

    .app-create-button svg {
        margin: 0 !important;
        color: #fff !important;
        fill: #fff !important;
    }

    .app-dashboard .grid.grid-cols-3 {
        gap: 1rem !important;
    }

    .auth-card {
        padding: 1.5rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Mobile shell: allow search to shrink without pushing actions off screen. */
.app-navbar input,
.app-content > *,
.gmail-timeline {
    min-width: 0;
}

.gmail-timeline {
    overflow-wrap: anywhere;
}

#toast-container {
    max-width: calc(100vw - 2rem);
    overflow-wrap: anywhere;
}

/* Prospects share one responsive list and native links at every screen size. */
.prospects-page {
    min-width: 0;
    overflow-wrap: anywhere;
}

.prospect-button {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    text-align: center;
    cursor: pointer;
}

.prospect-button-primary {
    color: #fff;
    background: var(--bireme-teal-dark);
    border-color: var(--bireme-teal-dark);
}

.prospect-button-primary:hover { background: var(--bireme-ink-soft); }
.prospect-button:disabled { opacity: 0.6; cursor: wait; }
.prospect-button-secondary { color: var(--bireme-ink); background: #fff; border-color: var(--bireme-border-strong); }
.prospect-button-secondary:hover { background: #f3f8f7; }

.prospect-menu { position: relative; }
.prospect-menu > summary { list-style: none; }
.prospect-menu > summary::-webkit-details-marker { display: none; }
.prospect-menu-panel {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    z-index: 20;
    width: 13rem;
    max-width: calc(100vw - 2rem);
    padding: 0.35rem;
    border: 1px solid var(--bireme-border);
    border-radius: 0.5rem;
    background: white;
    box-shadow: var(--bireme-shadow);
}
.prospect-menu-panel a { display: block; padding: 0.75rem; border-radius: 0.3rem; font-size: 0.875rem; }
.prospect-menu-panel a:hover { background: #f3f8f7; }

.prospect-views {
    display: flex;
    gap: 1.4rem;
    overflow-x: auto;
    padding: 0.2rem 0.15rem 0;
    border-bottom: 1px solid var(--bireme-border);
    scrollbar-width: none;
}
.prospect-views::-webkit-scrollbar { display: none; }
.prospect-views a {
    display: inline-flex;
    min-height: 2.9rem;
    flex: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.1rem 0.7rem;
    border-bottom: 2px solid transparent;
    color: var(--bireme-muted);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}
.prospect-views a[aria-current="page"] { color: var(--bireme-teal-dark); border-bottom-color: var(--bireme-teal-dark); }
.prospect-views a:hover { color: var(--bireme-ink); }
.prospect-views a span { padding: 0.1rem 0.4rem; border-radius: 1rem; background: #e8eeee; font-size: 0.7rem; }

.prospect-directory,
.prospect-panel {
    border: 1px solid var(--bireme-border);
    border-radius: 0.65rem;
    background: white;
    box-shadow: 0 2px 8px rgba(25, 41, 55, 0.035);
}
.prospect-directory { overflow: hidden; }
.prospect-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr) 0.6rem;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
}
.prospect-row > * { min-width: 0; }
.prospect-row-heading { background: #f4f7f7; color: var(--bireme-muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
li.prospect-row:hover,
li.prospect-row:focus-within { background: #f3f9f8; }
.prospect-row-link { color: var(--bireme-ink); font-size: 0.9375rem; font-weight: 650; }
/* Stretch the actual anchor, keeping keyboard, copy-link, and new-tab behavior. */
.prospect-row-link::after { position: absolute; inset: 0; z-index: 1; content: ""; }
.prospect-row-link:focus-visible { outline: none !important; }
.prospect-row-link:focus-visible::after { outline: 2px solid var(--bireme-teal-dark); outline-offset: -3px; border-radius: 0.4rem; }
.prospect-secondary-link { position: relative; z-index: 2; display: flex; min-height: 2.75rem; flex-direction: column; justify-content: center; gap: 0.2rem; padding: 0.35rem 0; }
.prospect-secondary-link:hover { text-decoration: underline; }
.prospect-secondary-link-inline { flex-direction: row; justify-content: flex-start; align-items: center; }
.prospect-status { display: inline-flex; padding: 0.25rem 0.6rem; border-radius: 1rem; font-size: 0.75rem; font-weight: 600; line-height: 1.2; }
.prospect-row-chevron { color: #889ba4; font-size: 1.6rem; }
.prospect-mobile-label { display: none; }

.prospect-panel { padding: 1.5rem; }
.prospect-overview-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
.prospect-overview-grid > div { min-width: 0; }
.prospect-overview-grid dt { margin-bottom: 0.35rem; color: var(--bireme-muted); font-size: 0.75rem; }
.prospect-overview-grid dd { font-size: 0.875rem; font-weight: 500; }
.prospect-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 1.25rem; }
.prospect-disclosure + .prospect-disclosure { border-top: 1px solid #edf0f1; }
.prospect-disclosure > summary { min-height: 2.9rem; padding: 0.8rem 0; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.prospect-disclosure > summary::marker { color: var(--bireme-muted); font-size: 0.75rem; }
.prospect-disclosure-hint { margin-left: 0.5rem; color: var(--bireme-muted); font-size: 0.75rem; font-weight: 400; }
.prospect-disclosure-body { padding: 0.35rem 0 1rem; }
.prospects-page input:not([type="checkbox"]),
.prospects-page select,
.prospects-page textarea { min-width: 0; max-width: 100%; }

@media (min-width: 1280px) {
    .prospect-detail-grid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
}

@media (max-width: 767px) {
    .prospect-views { display: none; }
    .prospect-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 0.5rem; gap: 0.75rem; padding: 1rem; }
    .prospect-row-heading { display: none; }
    .prospect-identity { grid-column: 1 / 3; padding-right: 0.25rem; }
    .prospect-row-status { grid-column: 1 / 3; grid-row: 2; }
    .prospect-row-location { grid-column: 1 / 3; grid-row: 3; align-self: start; }
    .prospect-row-contact { grid-column: 1; grid-row: 4; align-self: start; }
    .prospect-row-gating { grid-column: 2 / 4; grid-row: 4; align-self: start; }
    .prospect-row-chevron { grid-column: 3; grid-row: 1 / 3; align-self: start; line-height: 1; }
    .prospect-mobile-label { display: block; margin-bottom: 0.25rem; color: var(--bireme-muted); font-size: 0.7rem; }
    .prospect-secondary-link { padding-top: 0; }
    .prospect-panel { padding: 1rem; }
    .prospect-overview-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
    .prospect-overview-grid > div:first-child { grid-column: 1 / -1; }
    .prospect-disclosure-hint { display: block; margin: 0.3rem 0 0 1rem; }
}

@media (max-width: 639px) {
    .app-navbar { gap: 0.75rem !important; }
    .app-create-button,
    .app-profile-button { min-width: 2.75rem; min-height: 2.75rem; }
    .app-create-label { display: none; }
    .app-global-search { height: 2.75rem; }
    .app-global-search input { font-size: 1rem !important; padding-right: 0.5rem !important; }
    .app-sidebar-nav a { min-height: 2.75rem; }
    .app-navbar [x-show="open"] a { min-height: 2.75rem; }
    .app-main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    .app-main select,
    .app-main textarea { max-width: 100%; font-size: 1rem !important; }
    .app-main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    .app-main select { min-height: 2.75rem; }
}
