:root {
    --ink: #071a34;
    --muted: #405064;
    --line: #d9e0dc;
    --surface: #ffffff;
    --soft: #f3f7f5;
    --brand: #005b56;
    --brand-dark: #004440;
    --accent: #f05a1a;
    --focus: #f4b84a;
    --shadow: 0 18px 42px rgba(7, 26, 52, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fbf5ee;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: relative;
    min-height: 540px;
    padding: 38px 0 170px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 252, 248, 0.98) 0%, rgba(255, 252, 248, 0.92) 40%, rgba(255, 252, 248, 0.3) 66%, rgba(255, 252, 248, 0.02) 100%),
        url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1800&q=80") right center / cover no-repeat;
}

.site-header::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 190px;
    background: linear-gradient(180deg, rgba(251, 245, 238, 0), #fbf5ee 82%);
    pointer-events: none;
}

.header-actions {
    position: absolute;
    top: 30px;
    right: max(16px, calc((100vw - 1180px) / 2));
    z-index: 3;
}

.site-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(7, 26, 52, 0.16);
    border-radius: 8px;
    background: rgba(255, 252, 248, 0.9);
    box-shadow: 0 12px 30px rgba(7, 26, 52, 0.12);
    cursor: pointer;
}

.site-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
}

.site-menu-toggle:hover,
.site-menu-toggle:focus-visible {
    border-color: var(--brand);
    outline: none;
}

.site-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    min-width: 190px;
    padding: 8px;
    border: 1px solid rgba(7, 26, 52, 0.14);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.site-menu-dropdown[hidden] {
    display: none;
}

.site-menu-dropdown:empty {
    display: none;
}

.site-menu-dropdown a {
    display: block;
    padding: 11px 12px;
    border-radius: 6px;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
}

.site-menu-dropdown a:hover,
.site-menu-dropdown a:focus-visible,
.site-menu-dropdown a[aria-current="page"] {
    background: var(--soft);
    color: var(--brand);
    outline: none;
}

.app-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(7, 26, 52, 0.26);
    opacity: 0;
    transition: opacity 180ms ease;
}

.app-sidebar-backdrop[hidden] {
    display: none;
}

.app-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    width: min(360px, 100vw);
    height: 100vh;
    padding: 26px 16px 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: #071a22;
    box-shadow: -18px 0 44px rgba(7, 26, 52, 0.18);
    color: #e8f4f1;
    transform: translateX(100%);
    transition: transform 220ms ease;
}

body.sidebar-open .app-sidebar {
    transform: translateX(0);
}

body.sidebar-open .app-sidebar-backdrop {
    opacity: 1;
}

.app-sidebar-brand {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 0 2px;
    min-width: 0;
}

.app-sidebar-logo {
    width: 28px;
    height: 28px;
    box-shadow: 0 10px 22px rgba(0, 91, 86, 0.26);
}

.app-sidebar-brand strong {
    min-width: 0;
    color: #ffffff;
    font-size: 1.08rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.app-sidebar-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(232, 244, 241, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
}

.app-sidebar-close:hover,
.app-sidebar-close:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.app-sidebar-nav {
    display: grid;
    gap: 8px;
}

.app-sidebar-nav a,
.app-sidebar-support,
.app-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    border-radius: 8px;
    color: #c9d9d6;
    text-decoration: none;
}

.app-sidebar-nav a {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 0.9rem;
    font-weight: 760;
}

.app-sidebar svg {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
}

.app-sidebar-close svg {
    width: 18px;
    height: 18px;
}

.app-sidebar-nav a span,
.app-sidebar-support span,
.app-sidebar-user span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.app-sidebar-nav a:hover,
.app-sidebar-nav a:focus-visible,
.app-sidebar-nav a[aria-current="page"] {
    background: #005b56;
    color: #ffffff;
    outline: none;
}

.app-sidebar-spacer {
    flex: 1 1 auto;
    min-height: 28px;
}

.app-sidebar-card {
    position: relative;
    display: grid;
    gap: 4px;
    margin-bottom: 18px;
    padding: 16px 44px 16px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #dceae7;
    font-size: 0.78rem;
    line-height: 1.35;
}

.app-sidebar-card span {
    color: #b8c9c6;
    font-weight: 750;
}

.app-sidebar-card strong {
    color: #ffffff;
    font-size: 0.82rem;
}

.app-sidebar-card i {
    position: absolute;
    right: 16px;
    bottom: 32px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3bd496;
    box-shadow: 0 0 0 4px rgba(59, 212, 150, 0.12);
}

.app-sidebar-support {
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.app-sidebar-support:hover,
.app-sidebar-support:focus-visible,
.app-sidebar-support[aria-current="page"] {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    outline: none;
}

.app-sidebar-support small,
.app-sidebar-user small {
    display: block;
    color: #b8c9c6;
    font-size: 0.72rem;
    font-weight: 750;
}

.app-sidebar-support strong,
.app-sidebar-user strong {
    display: block;
    color: #ffffff;
    font-size: 0.84rem;
    line-height: 1.35;
}

.app-sidebar-version {
    margin: -8px 14px 12px;
    color: rgba(184, 201, 198, 0.68);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

.app-sidebar-account {
    margin: 0 -16px -18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar-account .app-sidebar-user {
    margin: 0;
    border-top: 0;
    padding-bottom: 10px;
}

.app-sidebar-account form {
    display: block;
    margin: 0;
    padding: 0 16px 16px 60px;
}

.app-sidebar-account button {
    border: 0;
    color: #b8c9c6;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
}

.app-sidebar-account button:hover,
.app-sidebar-account button:focus-visible {
    color: #ffffff;
    outline: none;
}

.app-sidebar-user {
    margin: 0 -16px -18px;
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar-user:hover,
.app-sidebar-user:focus-visible,
.app-sidebar-user[aria-current="page"] {
    background: rgba(255, 255, 255, 0.07);
    outline: none;
}

.app-sidebar-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #6e7b84;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 850;
}

.app-sidebar-user svg {
    margin-left: auto;
    width: 16px;
    height: 16px;
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.results-header-copy {
    display: none;
}

.results-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
    text-decoration: none;
}

.results-brand .brand-mark {
    width: 24px;
    height: 24px;
}

.results-brand strong {
    font-size: 1.05rem;
    font-weight: 900;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 34px;
    color: var(--brand);
    font-size: 1.35rem;
    font-weight: 850;
}

.brand-mark {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 0;
    background: url('icon-approved-nearby.svg') center center / contain no-repeat;
    transform: none;
}

.brand-mark::after {
    content: none;
}

h1 {
    max-width: 620px;
    margin: 0;
    color: #05152b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.45rem, 4.8vw, 4.35rem);
    line-height: 0.98;
    font-weight: 750;
    letter-spacing: 0;
}

h1 span {
    color: var(--brand);
}

.subheadline {
    position: relative;
    max-width: 700px;
    margin: 54px 0 0;
    color: #0b213f;
    font-size: 1.17rem;
    line-height: 1.45;
}

.subheadline::before {
    content: "";
    position: absolute;
    left: 0;
    top: -20px;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: var(--accent);
}

main {
    position: relative;
    z-index: 2;
    margin-top: -112px;
}

.subscribed-results-view {
    background: #fbf5ee;
}

.subscribed-results-view .site-header {
    z-index: 900;
    min-height: 84px;
    padding: 20px max(4vw, 28px) 20px;
    overflow: visible;
    background: #fbf5ee;
    border-bottom: 1px solid rgba(7, 26, 52, 0.1);
}

.subscribed-results-view .site-header::after {
    display: none;
}

.subscribed-results-view .hero-copy {
    display: none;
}

.subscribed-results-view .results-header-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.subscribed-results-view .results-header-copy h1 {
    margin-top: 4px;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1;
}

.subscribed-results-view main {
    margin-top: 0;
    padding-top: 10px;
}

.subscribed-results-view .search-panel {
    border-radius: 8px;
    background: var(--surface);
    backdrop-filter: none;
}

.subscribed-results-view:not(.search-form-expanded) .search-panel {
    padding: 12px;
}

.subscribed-results-view:not(.search-form-expanded) .search-panel-header,
.subscribed-results-view:not(.search-form-expanded) #search-form,
.subscribed-results-view:not(.search-form-expanded) #form-error {
    display: none;
}

.subscribed-results-view:not(.search-form-expanded) .search-summary-bar {
    display: grid;
}

.subscribed-results-view.search-form-expanded .search-summary-bar {
    display: none;
}

.eyebrow {
    display: block;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.search-panel,
.map-shell,
.filters,
.table-wrap,
.report-footer,
.result-card {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.search-panel {
    border-color: rgba(7, 26, 52, 0.16);
    border-radius: 12px;
    padding: 30px;
    background: rgba(255, 253, 249, 0.93);
    backdrop-filter: blur(16px);
}

.is-hidden {
    display: none !important;
}

.hidden {
    display: none;
}

.search-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: start;
    margin-bottom: 22px;
}

.search-panel-header h2 {
    margin: 4px 0 0;
    color: #071a34;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.05rem;
    line-height: 1.05;
    letter-spacing: 0;
}

.search-summary-bar {
    display: none;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
}

.search-summary-main {
    min-width: 0;
}

.search-summary-main strong {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-summary-main p {
    overflow: hidden;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-summary-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.search-summary-categories span {
    border: 1px solid rgba(0, 91, 86, 0.14);
    border-radius: 999px;
    color: var(--brand-dark);
    background: #e4f0ec;
    padding: 6px 10px;
    font-size: 0.76rem;
    font-weight: 850;
    white-space: nowrap;
}

.search-summary-action {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 10px 22px rgba(0, 68, 64, 0.2);
    font-size: 1.18rem;
    font-weight: 900;
    cursor: pointer;
}

.search-summary-action:hover,
.search-summary-action:focus-visible {
    background: var(--brand-dark);
}

.idea-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.idea-chips button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 35px;
    border: 1px solid rgba(0, 91, 86, 0.12);
    border-radius: 999px;
    color: var(--brand-dark);
    background: #edf4f1;
    padding: 7px 12px;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
}

.idea-chips button:hover,
.idea-chips button.is-active {
    border-color: var(--brand);
    background: #dfece8;
}

form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.97fr);
    gap: 16px;
    align-items: stretch;
}

.search-mode-card {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border: 1px solid rgba(7, 26, 52, 0.14);
    border-radius: 14px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 10px 24px rgba(7, 26, 52, 0.08);
}

.search-mode-card legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.search-mode-card label {
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 62px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    padding: 10px 18px;
    cursor: pointer;
}

.search-mode-card label + label {
    border-left-color: rgba(7, 26, 52, 0.1);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.lookup-type-toggle label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 91, 86, 0.14);
    border-radius: 8px;
    background: #fff;
    padding: 11px 12px;
    cursor: pointer;
}

.lookup-type-toggle input {
    width: auto;
    accent-color: var(--brand);
}

.search-mode-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.search-mode-icon {
    display: grid;
    place-items: center;
    color: var(--brand-dark);
}

.search-mode-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-mode-card strong {
    display: block;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.12;
}

.search-mode-card small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.25;
}

.search-mode-card label:has(input:checked) {
    border-color: rgba(0, 91, 86, 0.14);
    background: #e8f3f0;
}

.lookup-type-toggle label:has(input:checked) {
    border-color: var(--brand);
    background: #e8f3f0;
}

.lookup-card {
    grid-column: 1 / -1;
    min-height: 0;
}

.lookup-address-field {
    position: relative;
}

.input-shell[hidden],
.lookup-address-field[hidden] {
    display: none !important;
}

.lookup-address-field .addrDropdown {
    top: calc(100% + 8px);
    left: 0;
    right: 0;
}

.lookup-type-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.field {
    display: grid;
    gap: 7px;
}

.search-card,
.search-options,
.search-action {
    border: 1px solid rgba(7, 26, 52, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
}

.search-card {
    position: relative;
    min-height: 180px;
    padding: 20px;
}

.field-wide {
    grid-row: span 3;
}

.field-idea {
    grid-row: span 3;
}

.step-label {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 11px;
}

.step-label span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 999px;
    color: #fff;
    background: var(--brand);
    box-shadow: inset 0 -6px 14px rgba(0, 0, 0, 0.18);
    font-size: 0.8rem;
    font-weight: 900;
}

.step-label label {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 850;
}

label,
.checkbox-field {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
}

input,
textarea,
select,
button {
    font: inherit;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #cbd5d9;
    border-radius: 6px;
    color: var(--ink);
    background: #fff;
    padding: 11px 12px;
}

.input-shell {
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: center;
    border: 1px solid #cbd5d9;
    border-radius: 6px;
    background: #fff;
    padding-left: 10px;
}

.input-shell-large input {
    min-height: 50px;
    font-size: 1.02rem;
}

.input-shell span {
    color: var(--brand);
    font-size: 1rem;
}

.input-shell input {
    border: 0;
    padding-left: 4px;
}

.input-shell:focus-within {
    outline: 3px solid rgba(244, 184, 74, 0.45);
    outline-offset: 2px;
}

.addrDropdown {
    position: absolute;
    z-index: 50;
    left: 20px;
    right: 20px;
    top: 104px;
    overflow: hidden;
    border: 1px solid rgba(7, 26, 52, 0.14);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(7, 26, 52, 0.16);
}

.addrOption,
.addrOptionMeta {
    padding: 12px 14px;
}

.addrOption {
    border-top: 1px solid var(--line);
    cursor: pointer;
}

.addrOptionMain {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.addrOptionBadge {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #dff2eb;
    color: #006653;
    padding: 4px 8px;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.addrOption:first-child {
    border-top: 0;
}

.addrOption[aria-selected="true"],
.addrOption:hover {
    background: #e8f3f0;
}

.addrOptionSmall {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.8rem;
}

.addrOptionMeta {
    color: var(--muted);
    font-weight: 750;
}

textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.45;
}

#renovation-idea::placeholder {
    font-size: 0.82rem;
    line-height: 1.35;
}

.field-intro {
    margin: -4px 0 10px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.field-warning {
    margin: 7px 0 0;
    color: #a33620;
    font-size: 0.78rem;
    font-weight: 760;
    line-height: 1.35;
}

.detected-categories {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.detected-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.detected-category {
    min-height: 32px;
    border: 1px solid rgba(0, 91, 86, 0.14);
    border-radius: 999px;
    color: var(--brand-dark);
    background: #e4f0ec;
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 850;
    cursor: default;
}

.detected-category span {
    font-weight: 950;
}

.detected-category[aria-label] {
    cursor: pointer;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible {
    outline: 3px solid rgba(244, 184, 74, 0.45);
    outline-offset: 2px;
}

.input-shell input:focus {
    outline: 0;
}

.helper {
    color: var(--muted);
    font-size: 0.78rem;
}

.checkbox-field {
    display: flex;
    gap: 8px;
    align-items: center;
    align-self: center;
    min-height: 44px;
    border: 1px solid #c9d3ce;
    border-radius: 6px;
    background: #fff;
    padding: 10px 12px;
}

.checkbox-field input {
    width: 17px;
    height: 17px;
}

.primary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    min-height: 58px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #003f48);
    box-shadow: 0 12px 24px rgba(0, 68, 64, 0.22);
    padding: 14px 22px;
    font-size: 1.12rem;
    font-weight: 750;
    cursor: pointer;
}

.primary-button:hover {
    background: var(--brand-dark);
}

.primary-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.form-error {
    min-height: 20px;
    margin: 12px 0 0;
    color: #a33620;
    font-weight: 700;
}

.report-loading {
    position: fixed;
    z-index: 1400;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(8px);
    padding: 18px;
}

.report-loading.is-hidden {
    display: none;
}

.is-loading-report {
    overflow: hidden;
}

.loading-modal {
    position: relative;
    width: min(740px, 92vw);
    max-height: min(650px, 90vh);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.32);
    padding: 20px 26px 18px;
}

.loading-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #475467;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
}

.loading-hero {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.loading-hero strong {
    color: var(--ink);
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
}

.loading-hero p {
    max-width: 440px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.28;
}

.loading-report-ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
}

.loading-report-ring svg {
    width: 100%;
    height: 100%;
}

.loading-ring-bg,
.loading-ring-fg {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
}

.loading-ring-bg {
    stroke: #dff1e7;
}

.loading-ring-fg {
    stroke: url("#loading-green-gradient");
    stroke: #13836e;
    stroke-dasharray: 116 302;
    transform-origin: 60px 60px;
    animation: loadingRingSweep 2.5s ease-in-out infinite;
}

.loading-ring-b {
    stroke: #4cc08b;
    stroke-dasharray: 42 302;
    animation-delay: -0.75s;
}

.loading-house-line {
    fill: none;
    stroke: #2b6962;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.loading-report-ring span {
    position: absolute;
    top: 29px;
    right: 19px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #58c48f, #05725d);
    color: #fff;
    font-size: 0.94rem;
    font-weight: 900;
}

.loading-property-card,
.loading-analysis-card,
.loading-processing-card {
    border: 1px solid #dbe7e4;
    border-radius: 14px;
    background: linear-gradient(110deg, rgba(246, 253, 250, 0.98), rgba(255, 255, 255, 0.97));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.loading-property-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) minmax(150px, 0.42fr);
    gap: 12px;
    align-items: center;
    min-height: 84px;
    overflow: hidden;
    padding: 12px 16px;
    margin-bottom: 11px;
}

.loading-property-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8f5f0;
    color: #087464;
    font-size: 1.55rem;
}

.loading-property-card span,
.loading-analysis-heading strong {
    display: block;
    color: #0a6f5e;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.loading-property-card strong {
    display: block;
    margin-top: 3px;
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.15;
}

.loading-property-card p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.loading-map-preview {
    position: absolute;
    inset: 0 0 0 auto;
    width: 40%;
    opacity: 0.72;
    background:
        radial-gradient(circle at 55% 55%, rgba(78, 196, 142, 0.18) 0 9%, rgba(78, 196, 142, 0.1) 9% 19%, transparent 19%),
        linear-gradient(28deg, transparent 47%, #d9e6e2 48%, transparent 49%),
        linear-gradient(116deg, transparent 45%, #d9e6e2 46%, transparent 47%),
        linear-gradient(0deg, transparent 46%, #e9efed 47%, transparent 48%),
        linear-gradient(90deg, transparent 46%, #e9efed 47%, transparent 48%),
        #f8fbfa;
    background-size: auto, 120px 120px, 130px 130px, 58px 58px, 58px 58px, auto;
}

.loading-map-preview span {
    position: absolute;
    top: 48%;
    left: 54%;
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 0;
    background: #087464;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.loading-map-preview span::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: #fff;
}

.loading-analysis-card {
    padding: 14px 18px 16px;
    margin-bottom: 11px;
    background:
        linear-gradient(110deg, rgba(247, 253, 250, 0.98), rgba(255, 255, 255, 0.98)),
        radial-gradient(circle at 88% 38%, rgba(62, 181, 134, 0.12), transparent 34%);
}

.loading-analysis-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
}

.loading-analysis-heading span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8f5f0;
    color: #087464;
    font-size: 1rem;
    font-weight: 900;
}

.loading-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.loading-metric-grid-single {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.loading-metric:first-child {
    padding-right: 16px;
    border-right: 1px solid #d7e2df;
}

.loading-metric-grid-single .loading-metric:first-child {
    padding-right: 0;
    border-right: 0;
}

.loading-metric-reviewed {
    display: grid;
    grid-template-columns: minmax(170px, 0.28fr) minmax(0, 1fr);
    column-gap: 22px;
    row-gap: 6px;
    align-items: center;
    max-width: none;
}

.loading-metric-reviewed > span {
    grid-column: 1;
}

.loading-metric-reviewed > strong {
    grid-column: 1;
}

.loading-metric-reviewed .loading-progress {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
}

.loading-metric-reviewed p {
    grid-column: 1 / -1;
}

.loading-metric > span {
    color: #475467;
    font-size: 0.72rem;
    font-weight: 850;
}

.loading-metric > strong {
    display: block;
    margin: 5px 0 7px;
    color: #087464;
    font-size: clamp(1.55rem, 3.4vw, 2.1rem);
    font-weight: 900;
    line-height: 0.95;
}

.loading-progress {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbe9e5;
    box-shadow: inset 0 1px 2px rgba(10, 79, 70, 0.09);
}

.loading-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #087464, #20a67d 58%, #78d7ad);
    box-shadow: 0 0 14px rgba(32, 166, 125, 0.26);
    transition: width 0.16s linear;
}

.loading-metric p {
    margin: 8px 0 5px;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.22;
}

.loading-processing-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 48px;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 10px 16px;
}

.loading-processing-spinner {
    width: 30px;
    height: 30px;
    border: 4px solid #d7eee6;
    border-top-color: #087464;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-processing-card strong {
    display: block;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 900;
}

.loading-processing-card p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.22;
}

.loading-doc-icon {
    color: #087464;
    font-size: 2.25rem;
    opacity: 0.72;
    text-align: center;
}

@media (max-height: 760px) {
    .loading-modal {
        max-height: 94vh;
        padding: 16px 22px 14px;
    }

    .loading-hero {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 13px;
        margin-bottom: 10px;
    }

    .loading-report-ring {
        width: 76px;
        height: 76px;
    }

    .loading-report-ring span {
        top: 24px;
        right: 16px;
        width: 22px;
        height: 22px;
        font-size: 0.8rem;
    }

    .loading-hero strong {
        font-size: clamp(1.2rem, 2.1vw, 1.45rem);
    }

    .loading-hero p {
        font-size: 0.74rem;
        line-height: 1.22;
    }

    .loading-property-card {
        min-height: 72px;
        margin-bottom: 9px;
        padding: 9px 14px;
    }

    .loading-analysis-card {
        margin-bottom: 9px;
        padding: 10px 14px;
    }

    .loading-metric > strong {
        font-size: clamp(1.35rem, 3vw, 1.75rem);
    }

    .loading-processing-card {
        min-height: 50px;
        padding: 8px 14px;
    }
}

@keyframes loadingRingSweep {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(135deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

.search-options {
    display: grid;
    grid-template-columns: 140px minmax(160px, 1fr) 160px;
    gap: 12px;
    grid-column: 1 / -1;
    padding: 14px;
}

.hidden-options {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.search-action {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    grid-column: 1 / -1;
    border-width: 1px 0 0;
    border-radius: 0;
    background: transparent;
    padding: 20px 0 0;
}

.trust-note {
    display: flex;
    gap: 16px;
    align-items: center;
}

.trust-note > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    color: var(--brand-dark);
    background: #e2eddf;
    font-weight: 900;
}

.trust-note p {
    margin: 0;
    color: #12223a;
    line-height: 1.35;
}

.trust-note strong {
    display: block;
}

.trust-note-tag {
    display: block;
}

.map-results-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 14px;
    align-items: stretch;
}

.map-results-shell.is-detail-open {
    grid-template-columns: minmax(420px, 0.85fr) minmax(560px, 1.15fr);
    align-items: stretch;
}

.map-results-shell.is-detail-open .map-sidebar,
.map-results-shell.is-detail-open .sidebar-reopen {
    display: none;
}

.map-results-shell.is-detail-open .map-detail-panel {
    grid-column: 2;
    grid-row: 1;
}

.map-results-shell.is-detail-open .map-shell {
    grid-column: 1;
    grid-row: 1;
}

.subscribed-results-view:not(.search-form-expanded) .map-results-shell.is-detail-open {
    height: clamp(560px, calc(100vh - 250px), 760px);
    min-height: 0;
}

.subscribed-results-view:not(.search-form-expanded) .map-results-shell.is-detail-open .map-shell,
.subscribed-results-view:not(.search-form-expanded) .map-results-shell.is-detail-open .map-detail-panel {
    height: 100%;
    min-height: 0;
}

.map-shell,
.map-sidebar {
    border-radius: 8px;
    overflow: hidden;
}

.map-shell {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 0;
}

.paywall-overlay {
    position: absolute;
    z-index: 560;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(251, 245, 238, 0.68);
    backdrop-filter: blur(2px);
    padding: 22px;
    pointer-events: none;
}

.paywall-overlay > div {
    width: min(460px, calc(100% - 28px));
    border: 1px solid rgba(7, 26, 52, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 48px rgba(7, 26, 52, 0.18);
    padding: 22px;
    text-align: center;
    pointer-events: auto;
}

.paywall-overlay strong {
    display: block;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.28rem;
    line-height: 1.12;
}

.paywall-overlay p {
    margin: 10px 0 16px;
    color: var(--muted);
    line-height: 1.45;
}

.paywall-overlay button {
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--brand);
    padding: 10px 14px;
    font-weight: 900;
    cursor: pointer;
}

.paywall-overlay button:hover {
    background: var(--brand-dark);
}

#map {
    height: 520px;
    min-height: 420px;
}

.map-unavailable #map {
    display: grid;
    place-items: center;
    background: #e8f3f0;
}

.map-unavailable #map::before {
    content: "Map preview unavailable";
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.app-sidebar-recent {
    margin: 14px 0 0;
}

.app-sidebar-recent-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
    padding: 11px 13px;
    color: #e8f4f1;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease;
}

.app-sidebar-recent-toggle:hover,
.app-sidebar-recent-toggle:focus-visible,
.app-sidebar-recent-toggle.is-active {
    border-color: rgba(45, 212, 191, 0.45);
    background: rgba(45, 212, 191, 0.08);
    outline: none;
}

.app-sidebar-recent-toggle-icon {
    display: grid;
    place-items: center;
    color: #5eead4;
}

.app-sidebar-recent-toggle-icon svg {
    width: 19px;
    height: 19px;
}

.app-sidebar-recent-toggle-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-sidebar-recent-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.16);
    color: #5eead4;
    font-size: 0.72rem;
    font-weight: 800;
}

.app-sidebar-recent-count:empty {
    display: none;
}

.app-sidebar-recent-toggle-caret {
    display: grid;
    place-items: center;
    color: rgba(232, 244, 241, 0.45);
    transition: transform 180ms ease, color 160ms ease;
}

.app-sidebar-recent-toggle-caret svg {
    width: 15px;
    height: 15px;
}

.app-sidebar-recent-toggle.is-active .app-sidebar-recent-toggle-caret {
    color: #5eead4;
    transform: translateX(-2px);
}

.recent-popout-item {
    width: 100%;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    padding: 11px 10px;
    color: #e8f4f1;
    text-align: left;
    cursor: pointer;
    transition: background 150ms ease;
}

.recent-popout-item:hover,
.recent-popout-item:focus-visible {
    background: rgba(45, 212, 191, 0.1);
    outline: none;
}

.recent-popout-item-icon {
    display: grid;
    place-items: center;
    color: #5eead4;
}

.recent-popout-item-icon svg {
    width: 20px;
    height: 20px;
}

.recent-popout-item-label {
    min-width: 0;
    overflow: hidden;
    color: #e8f4f1;
    font-size: 0.92rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-popout-item.is-stale .recent-popout-item-icon {
    color: var(--focus);
}

/* ── Left popout list ── */
.recent-searches-popout {
    position: fixed;
    z-index: 1260;
    width: 340px;
    max-width: calc(100vw - 24px);
    max-height: min(70vh, 560px);
    display: flex;
    flex-direction: column;
    padding: 15px 14px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: linear-gradient(180deg, #0b2630, #071a22);
    box-shadow: 0 28px 64px rgba(3, 14, 20, 0.6);
    color: #e8f4f1;
    opacity: 0;
    transform: translateX(10px) scale(0.99);
    transform-origin: right center;
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
}

.recent-searches-popout.is-open {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.recent-searches-popout[hidden] {
    display: none;
}

.recent-popout-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 4px 11px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.recent-popout-sub {
    color: rgba(232, 244, 241, 0.5);
    font-size: 0.74rem;
    font-weight: 700;
}

.recent-popout-list {
    display: grid;
    gap: 2px;
    overflow-y: auto;
    padding: 4px 2px 2px;
}

.recent-popout-empty {
    margin: 8px 4px;
    color: rgba(232, 244, 241, 0.55);
    font-size: 0.82rem;
    font-weight: 600;
}

.subscribed-results-view:not(.search-form-expanded) .map-results-shell {
    height: clamp(560px, calc(100vh - 250px), 760px);
    min-height: 0;
}

.subscribed-results-view:not(.search-form-expanded) .map-shell,
.subscribed-results-view:not(.search-form-expanded) .map-sidebar {
    height: 100%;
    min-height: 0;
}

.subscribed-results-view:not(.search-form-expanded) #map {
    height: 100%;
    min-height: 0;
}

.subscribed-results-view:not(.search-form-expanded) .sidebar-results {
    max-height: none;
}

.map-attribution {
    margin: 0;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--muted);
    padding: 6px 10px;
    font-size: 0.72rem;
    text-align: right;
}

.map-center-button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(7, 26, 52, 0.16);
    border-radius: 8px;
    color: var(--brand-dark);
    background: #fff;
    box-shadow: 0 8px 20px rgba(7, 26, 52, 0.14);
    font-size: 1.22rem;
    font-weight: 900;
    cursor: pointer;
}

.map-center-button:hover {
    background: #e8f3f0;
}

.map-zoom-scale {
    display: grid;
    place-items: center;
    min-width: 78px;
    height: 34px;
    margin-top: 8px;
    border: 1px solid rgba(7, 26, 52, 0.16);
    border-radius: 8px;
    color: var(--brand-dark);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 20px rgba(7, 26, 52, 0.14);
    font-size: 0.78rem;
}

.map-zoom-scale strong {
    font-weight: 900;
}

.map-sidebar {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 520px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    transition: width 0.22s ease;
}

.sidebar-content {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    padding: 13px 14px 12px;
}

.sidebar-header span {
    display: block;
    margin-bottom: 3px;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 900;
}

.sidebar-header strong {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 760;
}

.sidebar-loading {
    display: grid;
    gap: 5px;
    min-width: 165px;
    margin-top: 5px;
}

.sidebar-loading[hidden] {
    display: none;
}

.sidebar-loading > span {
    display: block;
    margin: 0;
    color: #006b55;
    font-size: 0.68rem;
    font-weight: 850;
}

.sidebar-loading-track {
    overflow: hidden;
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: rgba(0, 108, 85, 0.12);
}

.sidebar-loading-track span {
    display: block;
    width: 0%;
    height: 100%;
    margin: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #00745c, #42b889);
    transition: width 0.35s ease;
}

.sidebar-loading-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    min-height: 310px;
    padding: 28px 18px;
    color: var(--muted);
    text-align: center;
}

.sidebar-loading-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background:
        radial-gradient(circle closest-side, #fff 72%, transparent 74%),
        conic-gradient(#00745c var(--sidebar-progress, 0%), rgba(0, 108, 85, 0.13) 0);
}

.sidebar-loading-spinner.is-indeterminate {
    background:
        radial-gradient(circle closest-side, #fff 72%, transparent 74%),
        conic-gradient(#00745c 0 28%, rgba(0, 108, 85, 0.13) 28% 100%);
    animation: sidebar-loading-spin 0.9s linear infinite;
}

@keyframes sidebar-loading-spin {
    to { transform: rotate(360deg); }
}

.sidebar-loading-placeholder strong {
    color: #00745c;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
}

.sidebar-loading-placeholder p {
    margin: 0;
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 850;
}

.sidebar-loading-placeholder small {
    color: #526172;
    font-size: 0.72rem;
    font-weight: 760;
}

.sidebar-loading-placeholder-track {
    overflow: hidden;
    width: min(210px, 82%);
    height: 6px;
    margin-top: 3px;
    border-radius: 999px;
    background: rgba(0, 108, 85, 0.12);
}

.sidebar-loading-placeholder-track span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #00745c, #42b889);
    transition: width 0.35s ease;
}

.sidebar-loading-placeholder-track span.is-indeterminate {
    width: 42%;
    animation: sidebar-loading-slide 1.35s ease-in-out infinite;
    transition: none;
}

@keyframes sidebar-loading-slide {
    0% { transform: translateX(-120%); }
    50% { transform: translateX(90%); }
    100% { transform: translateX(240%); }
}

.sidebar-search-error {
    display: grid;
    gap: 10px;
    align-content: center;
    min-height: 300px;
    padding: 28px 20px;
    text-align: center;
}

.sidebar-search-error strong {
    color: #a93b2b;
    font-size: 1rem;
}

.sidebar-search-error p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.sidebar-search-error button {
    justify-self: center;
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    padding: 10px 15px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
}

.sidebar-close {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(7, 26, 52, 0.14);
    border-radius: 8px;
    color: var(--muted);
    background: #fff;
    font-size: 1.28rem;
    line-height: 1;
    cursor: pointer;
}

.sidebar-close:hover {
    color: var(--brand-dark);
    background: #e8f3f0;
}

.sidebar-results {
    display: flex;
    flex-direction: column;
    gap: 7px;
    overflow-y: auto;
    min-height: 0;
    max-height: 468px;
    padding: 12px;
}

.sidebar-card {
    display: grid;
    flex: 0 0 auto;
    border: 1px solid rgba(7, 26, 52, 0.12);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    overflow: hidden;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.sidebar-card:hover,
.sidebar-card.is-selected {
    border-color: rgba(0, 91, 86, 0.28);
    box-shadow: 0 10px 24px rgba(7, 26, 52, 0.08);
}

.sidebar-card.is-selected {
    background: linear-gradient(135deg, #f2faf7 0%, #fff 100%);
    border-left: 5px solid #07825f;
}

.sidebar-card.is-locked .sidebar-address,
.sidebar-card.is-locked .sidebar-summary-text,
.sidebar-card.is-locked .sidebar-da {
    filter: blur(4px);
    user-select: none;
}

#results-table tbody tr.is-locked td,
.result-card.is-locked > * {
    filter: blur(5px);
    user-select: none;
}

#results-table tbody tr.is-locked td:first-child,
.result-card.is-locked div:first-child {
    filter: none;
}

.sidebar-card-main {
    display: grid;
    gap: 6px;
    width: 100%;
    color: inherit;
    padding: 9px 10px;
    text-align: left;
    cursor: pointer;
}

.sidebar-card-main:focus-visible {
    outline: 3px solid rgba(244, 184, 74, 0.42);
    outline-offset: -3px;
}

.sidebar-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 10px;
    gap: 7px;
    align-items: center;
}

.sidebar-match-group {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.sidebar-match-label {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    border-radius: 7px;
    padding: 3px 7px;
    font-size: 0.66rem;
    font-weight: 950;
    line-height: 1;
    text-transform: lowercase;
    white-space: nowrap;
}

.sidebar-match-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    font-size: 0.66rem;
    font-weight: 760;
    line-height: 1;
    white-space: nowrap;
}

.sidebar-match-rating span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
}

.sidebar-address {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    font-size: 0.66rem;
    font-weight: 720;
    line-height: 1.3;
}

.sidebar-address svg {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    color: currentColor;
}

.sidebar-da {
    color: var(--ink);
    font-size: 0.66rem;
    font-weight: 950;
    white-space: nowrap;
}

.sidebar-type-badge {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    vertical-align: middle;
    background: #efe4c8;
    color: #6b5312;
}

.sidebar-type-badge-rev {
    background: #dce7f5;
    color: #1f4c7d;
}

.sidebar-modifies {
    color: var(--ink);
    opacity: 0.6;
    font-size: 0.6rem;
    font-weight: 700;
}

.sidebar-chevron {
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
}

.sidebar-summary-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1.25;
}

.sidebar-site-comparison {
    margin: 6px 0 0;
    color: #667085;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.sidebar-card-very-strong .sidebar-match-label,
.sidebar-card-strong .sidebar-match-label {
    background: #e7f5ee;
    color: #007c54;
}

.sidebar-card-very-strong .sidebar-match-rating,
.sidebar-card-strong .sidebar-match-rating {
    color: #00985f;
}

.sidebar-card-moderate .sidebar-match-label {
    background: #fff4df;
    color: #b46b00;
}

.sidebar-card-moderate .sidebar-match-rating {
    color: #f4b400;
}

.sidebar-card-weak .sidebar-match-label {
    background: #fff0df;
    color: #bf5b00;
}

.sidebar-card-weak .sidebar-match-rating {
    color: #ff7a00;
}

.sidebar-card-poor .sidebar-match-label {
    background: #feecec;
    color: #c82833;
}

.sidebar-card-poor .sidebar-match-rating {
    color: #f23645;
}

.sidebar-card-moderate.is-selected {
    background: linear-gradient(135deg, #fff9ee 0%, #fff 100%);
    border-left-color: #f4b400;
}

.sidebar-card-weak.is-selected {
    background: linear-gradient(135deg, #fff5eb 0%, #fff 100%);
    border-left-color: #ff7a00;
}

.sidebar-card-poor.is-selected {
    background: linear-gradient(135deg, #fff2f2 0%, #fff 100%);
    border-left-color: #f23645;
}

.sidebar-empty {
    margin: 0;
    color: var(--muted);
    line-height: 1.4;
}

.map-sidebar.is-collapsed {
    display: none;
}

.map-results-shell.is-sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr);
}

.sidebar-reopen {
    position: absolute;
    z-index: 500;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(7, 26, 52, 0.16);
    border-radius: 8px;
    color: var(--brand-dark);
    background: #fff;
    box-shadow: 0 8px 20px rgba(7, 26, 52, 0.14);
    font-size: 1.05rem;
    font-weight: 900;
    cursor: pointer;
}

.sidebar-reopen strong {
    position: absolute;
    right: -6px;
    top: -6px;
    display: grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    border-radius: 999px;
    color: #fff;
    background: var(--accent);
    font-size: 0.68rem;
    line-height: 1;
}

.sidebar-reopen:hover {
    background: #e8f3f0;
}

.map-icon {
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--brand);
    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    font-size: 18px;
    font-weight: 900;
}

.map-icon-user {
    background: var(--accent);
}

.map-icon-selected {
    background: var(--focus);
    color: var(--ink);
    transform: scale(1.15);
}

.leaflet-popup.da-map-popup .leaflet-popup-content-wrapper {
    width: min(440px, calc(100vw - 24px));
    max-height: none;
    overflow: visible;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(7, 26, 52, 0.22);
}

.leaflet-popup.da-map-popup .leaflet-popup-content {
    max-height: none;
    overflow: visible;
}

.popup {
    max-width: min(440px, calc(100vw - 24px));
    color: var(--ink);
}

.da-map-popup-side .leaflet-popup-tip-container {
    display: none;
}

.da-map-popup .leaflet-popup-content {
    margin: 0;
}

.map-detail-panel {
    position: relative;
    z-index: 20;
    width: auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(7, 26, 52, 0.2);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(9, 31, 61, 0.16);
    transform: none;
}

.map-detail-panel[hidden] {
    display: none;
}

.map-detail-panel .popup {
    max-width: none;
    max-height: none;
    overflow: visible;
    padding: 0;
}

.map-detail-panel .popup-actions {
    padding-bottom: 2px;
}

.map-detail-close {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 4;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(7, 26, 52, 0.22);
    border-radius: 12px;
    background: #fff;
    color: #111;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.da-detail {
    display: grid;
    grid-template-rows: auto auto 1fr;
    height: 100%;
    min-height: 0;
    color: var(--ink);
    font-size: 12px;
}

.da-detail svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.da-detail-hero {
    padding: 24px 82px 14px 30px;
}

.detail-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.detail-score-lockup {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 13px;
}

.detail-score-ring {
    --score: 0;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: conic-gradient(#1c9c75 calc(var(--score) * 1%), #e8efe9 0);
}

.detail-score-ring::before {
    content: "";
    grid-area: 1 / 1;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #fff;
}

.detail-score-ring span {
    position: relative;
    grid-area: 1 / 1;
    color: #087a62;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}

.detail-score-lockup strong,
.detail-score-lockup span {
    display: block;
}

.detail-score-lockup strong {
    color: #050505;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.12;
}

.detail-score-lockup > div:last-child span {
    margin-top: 2px;
    color: #3b3b3b;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.22;
}

.detail-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.da-detail .popup-meta-line {
    gap: 8px 15px;
    margin-top: 0;
    color: #3a3a3a;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.da-detail .popup-meta-line svg {
    color: #464646;
    font-size: 12px;
}

.da-detail-hero h3 {
    margin: 20px 0 9px;
    color: #050505;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.14;
    letter-spacing: 0;
    text-transform: none;
}

.da-detail-hero h3 span {
    display: inline-flex;
    color: #075f9f;
    font-size: 0.55em;
}

.da-detail-hero p {
    margin: 0;
    color: #050505;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 500;
}

.da-detail-hero .detail-address-line {
    margin-top: 8px;
    font-weight: 850;
    text-transform: uppercase;
}

.detail-action-row {
    display: grid;
    grid-template-columns: minmax(130px, 1.05fr) minmax(120px, 0.9fr) 30px;
    gap: 6px;
    margin-top: 8px;
}

.detail-primary-action,
.detail-secondary-action,
.detail-bookmark-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 26px;
    border: 1px solid #d6dce3;
    border-radius: 6px;
    background: #fff;
    padding: 4px 7px;
    color: #071538;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.detail-primary-action {
    border-color: #006e55;
    color: #fff;
    background: linear-gradient(135deg, #005c49, #08775f);
}

.detail-save-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    border: 1px solid rgba(7, 26, 52, 0.24);
    border-radius: 9px;
    background: #fff;
    padding: 6px 11px;
    color: #111;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    margin-right: 0;
    cursor: pointer;
}

.detail-save-action:hover,
.detail-save-action:focus-visible {
    border-color: rgba(0, 91, 86, 0.32);
    background: #f4faf8;
    color: var(--brand-dark);
    outline: none;
}

.detail-save-action.is-added,
.detail-save-action:disabled {
    border-color: rgba(0, 91, 86, 0.22);
    background: #e7f5ee;
    color: var(--brand-dark);
    cursor: default;
}

.detail-save-label-short {
    display: none;
}

.detail-tabs {
    display: inline-grid;
    grid-template-columns: repeat(5, auto);
    justify-self: start;
    gap: 4px;
    margin: 0 30px 16px;
    border: 0;
    border-radius: 8px;
    background: #f2f1ec;
    padding: 3px;
}

.detail-tabs-lookup {
    grid-template-columns: repeat(4, auto);
}

.associated-submission-list {
    display: grid;
    gap: 8px;
}

.associated-submission-item {
    display: grid;
    gap: 3px;
    border: 1px solid #e1e7e4;
    border-radius: 10px;
    background: #fbfdfc;
    padding: 10px 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.associated-submission-item.is-clickable {
    cursor: pointer;
}

.associated-submission-item.is-clickable:hover,
.associated-submission-item.is-clickable:focus-visible {
    border-color: var(--brand-dark);
    box-shadow: 0 2px 8px rgba(7, 21, 56, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.associated-submission-item.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.associated-submission-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.associated-submission-heading strong {
    color: #071538;
    font-size: 12.5px;
    font-weight: 850;
}

.associated-submission-side {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.associated-chevron {
    color: #9aa6a1;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    transition: color 0.15s ease, transform 0.15s ease;
}

.associated-submission-item.is-clickable:hover .associated-chevron,
.associated-submission-item.is-clickable:focus-visible .associated-chevron {
    color: var(--brand-dark);
    transform: translateX(2px);
}

.associated-submission-kind {
    color: #5b6662;
    font-size: 10.5px;
    font-weight: 700;
}

.associated-submission-meta {
    color: #5b6662;
    font-size: 10px;
}

.associated-submission-doc {
    color: var(--brand-dark);
    font-weight: 800;
    text-decoration: none;
}

.associated-submission-doc:hover,
.associated-submission-doc:focus-visible {
    text-decoration: underline;
}

.associated-submission-error {
    color: #a03232;
    font-size: 10px;
    font-weight: 700;
}

.associated-current-badge {
    border-radius: 999px;
    background: #e7f5ee;
    padding: 2px 7px;
    color: var(--brand-dark);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-card.ask-away-card {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    border: 1px solid #e2e5e3;
    border-radius: 16px;
    background: #fff;
    padding: 0;
}

.ask-away-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--brand-dark);
    color: #fff;
}

.ask-away-avatar svg {
    width: 15px;
    height: 15px;
}

.ask-away-messages {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 18px 14px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 91, 86, 0.32) transparent;
}

.ask-away-messages::-webkit-scrollbar {
    width: 7px;
}

.ask-away-messages::-webkit-scrollbar-track {
    background: transparent;
}

.ask-away-messages::-webkit-scrollbar-thumb {
    border: 2px solid #fff;
    border-radius: 999px;
    background: rgba(0, 91, 86, 0.34);
}

.ask-away-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.ask-away-card .ask-away-message p {
    display: block;
    overflow: visible;
    -webkit-box-orient: initial;
    -webkit-line-clamp: unset;
    max-width: min(82%, 620px);
    margin: 2px 0 0;
    color: #161817;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
}

.ask-away-message.is-user {
    justify-content: flex-end;
}

.ask-away-message.is-user p {
    border-radius: 16px 16px 4px 16px;
    background: #f0f2f1;
    padding: 9px 12px;
}

.ask-away-message.is-loading p {
    color: #777d79;
    font-style: italic;
}

.ask-away-message.is-error p {
    color: #8b3030;
}

.ask-away-avatar {
    width: 24px;
    height: 24px;
    border-radius: 8px;
}

.ask-away-avatar svg {
    width: 13px;
    height: 13px;
}

.ask-away-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: end;
    gap: 8px;
    margin: 4px 16px 0;
    border: 1px solid #cfd5d2;
    border-radius: 18px;
    background: #fff;
    padding: 8px 8px 8px 13px;
    box-shadow: 0 2px 10px rgba(7, 26, 52, 0.06);
}

.ask-away-form:focus-within {
    border-color: rgba(0, 91, 86, 0.58);
    box-shadow: 0 0 0 3px rgba(0, 91, 86, 0.08);
}

.ask-away-form textarea {
    width: 100%;
    height: 24px;
    min-height: 24px;
    max-height: 120px;
    resize: none;
    overflow-y: auto;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 7px 0 5px;
    color: #111;
    font: inherit;
    font-size: 12px;
    line-height: 1.4;
}

.ask-away-form textarea::placeholder {
    color: #858a87;
}

.ask-away-form button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--brand-dark);
    color: #fff;
    cursor: pointer;
}

.ask-away-form button:hover,
.ask-away-form button:focus-visible {
    background: #003f3c;
    outline: none;
}

.ask-away-form button:disabled {
    background: #d7dbd9;
    color: #929794;
    cursor: default;
}

.ask-away-form button svg {
    width: 17px;
    height: 17px;
}

.ask-away-disclaimer {
    padding: 7px 16px 5px;
    color: #858a87 !important;
    font-size: 9px !important;
    line-height: 1.35 !important;
    text-align: center;
}

.map-detail-panel.is-ask-away-active .da-detail-body {
    grid-template-rows: minmax(0, 1fr);
    align-content: stretch;
    overflow: hidden;
    padding-bottom: 5px;
}

.map-detail-panel.is-ask-away-active [data-detail-panel="ask-away"] {
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.detail-tabs button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #383632;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
}

.detail-tabs [data-detail-tab="ask-away"] {
    gap: 6px;
}

.detail-tab-ask-away-icon {
    display: inline-grid;
    place-items: center;
    width: 19px;
    height: 19px;
    color: var(--brand-dark);
}

.detail-tab-ask-away-icon svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.8;
}

.detail-tabs button:hover,
.detail-tabs button:focus-visible {
    color: #111;
    background: rgba(255, 255, 255, 0.6);
    outline: none;
}

.detail-tabs .is-active {
    border-color: rgba(7, 26, 52, 0.12);
    color: #111;
    background: #fff;
    box-shadow: 0 1px 2px rgba(7, 26, 52, 0.06);
}

.detail-tabs .is-active::after {
    display: none;
}

.da-detail-body {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 3px 30px 28px;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 91, 86, 0.48) rgba(7, 26, 52, 0.06);
}

.da-detail-body::-webkit-scrollbar {
    width: 10px;
}

.da-detail-body::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(7, 26, 52, 0.06);
}

.da-detail-body::-webkit-scrollbar-thumb {
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: linear-gradient(180deg, #0d755e, #66a894);
}

.da-detail-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #075f4d, #428f7c);
}

.detail-panel {
    display: grid;
    gap: 15px;
}

.detail-panel[hidden] {
    display: none;
}

.detail-match-card,
.detail-takeaway-card,
.detail-factor-card,
.detail-analysis-card,
.detail-card,
.detail-source-note {
    border: 0;
    border-radius: 14px;
    background: #fff;
}

.detail-takeaway-card,
.detail-factor-card,
.detail-analysis-card {
    padding: 0;
}

.detail-takeaway-card {
    background: #f4f3ee;
    padding: 14px 17px 15px;
}

.detail-large-icon {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 999px;
    background: #dff5e6;
    color: #087a3d;
    font-size: 11px;
}

.detail-factor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 31px;
    padding-inline: 17px;
}

.detail-factor-card {
    min-height: 0;
}

.detail-factor-positive {
    background: transparent;
}

.detail-factor-warning {
    background: transparent;
}

.detail-factor-warning .detail-large-icon {
    background: #fde3ec;
    color: #e81655;
}

.detail-analysis-card {
    position: relative;
    display: block;
    align-items: start;
    border-color: #cfe4f8;
    background: #f8fbff;
    padding: 11px 14px 11px 17px;
}

.detail-analysis-card .detail-large-icon {
    position: absolute;
    top: 11px;
    right: 14px;
    background: #e3f0ff;
    color: #0b5fa5;
}

.detail-match-card {
    display: block;
    background: linear-gradient(135deg, #f2faf5, #fff);
    padding: 9px 11px;
    width: 100%;
}

.detail-match-card h4,
.detail-takeaway-card h4,
.detail-factor-card h4,
.detail-analysis-card h4,
.detail-card h4 {
    margin: 0 0 7px;
    color: #75736c;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.detail-factor-warning h4 {
    color: #9b2e29;
}

.detail-factor-positive h4 {
    color: #087a62;
}

.detail-match-card p,
.detail-takeaway-card p,
.detail-analysis-card p,
.detail-card p {
    margin: 0;
    color: #050505;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 450;
}

.detail-takeaway-card p {
    font-size: 14px;
}

.detail-proposal-summary-card p {
    font-size: 13px;
}

.detail-proposal-summary-card p.detail-proposal-section-start {
    margin-top: 12px;
}

.detail-proposal-section-start strong {
    color: #75736c;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.detail-loading-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #355063;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 850;
}

.detail-error-note {
    margin-top: 8px !important;
    color: #6f2730 !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
}

.detail-loading-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #e2f5ed;
    color: #007a61;
    animation: detail-loading-pulse 1.25s ease-in-out infinite;
}

.detail-loading-icon svg {
    width: 18px;
    height: 18px;
}

@keyframes detail-loading-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.78;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.detail-expandable-text p + p,
.detail-expandable-text p + .detail-proposal-list,
.detail-expandable-text .detail-proposal-list + p {
    margin-top: 5px;
}

.detail-proposal-list {
    margin: 4px 0 0 13px;
    padding: 0;
    color: #050505;
}

.detail-proposal-list li {
    margin: 0 0 3px;
    padding-left: 2px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 450;
}

.detail-show-more {
    display: inline;
    width: auto;
    min-height: 0;
    margin: 3px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    color: var(--brand);
    font-size: 12px;
    font-weight: 760;
    line-height: 1.2;
    text-transform: lowercase;
    cursor: pointer;
}

.detail-show-more:hover,
.detail-show-more:focus-visible {
    color: var(--brand-dark);
    text-decoration: underline;
    outline: none;
}

.detail-factor-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-factor-list li {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 7px;
    align-items: center;
    min-height: 17px;
    border-top: 0;
    color: #050505;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;
}

.detail-factor-list li:first-child {
    border-top: 0;
}

.detail-factor-list svg {
    color: #087a3d;
    font-size: 10px;
}

.detail-factor-warning .detail-factor-list li {
    border-top-color: #ead8de;
}

.detail-factor-warning .detail-factor-list svg {
    color: #9b2e29;
}

.detail-match-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.detail-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.detail-key-considerations-card p {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.detail-proposal-summary-card p {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.detail-key-considerations-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    border: 2px solid #b8ceca;
    border-radius: 16px;
    padding: 16px 18px 16px 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #fbfdfc, #fff);
    box-shadow: 0 10px 24px rgba(4, 42, 37, 0.06);
}

.detail-key-considerations-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: var(--brand-dark);
    color: #fff;
}

.detail-key-considerations-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.8;
}

.detail-key-considerations-body {
    position: relative;
    z-index: 1;
    min-height: 86px;
    border-left: 2px solid rgba(0, 91, 86, 0.14);
    padding-left: 16px;
    padding-right: 44px;
}

.detail-key-considerations-card h4 {
    position: relative;
    margin-bottom: 10px;
    padding-bottom: 8px;
}

.detail-key-considerations-card h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), #0b8f77);
}

.key-considerations-insight {
    display: grid;
    gap: 10px;
}

.key-considerations-insight-section {
    display: grid;
    gap: 4px;
}

.key-considerations-insight-section h5 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 950;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.key-considerations-insight-section p {
    margin: 0;
}

.key-considerations-insight-section ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.key-considerations-insight-section li {
    position: relative;
    margin: 0;
    padding-left: 14px;
    color: #071538;
    font-size: 11px;
    line-height: 1.24;
    font-weight: 400;
}

.key-considerations-insight-section li::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 1px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand);
}

.detail-grid dd {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.detail-match-list {
    display: none;
    gap: 5px;
}

.detail-match-list span {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 18px;
    gap: 7px;
    align-items: center;
    min-height: 32px;
    border: 1px solid #e1e7e4;
    border-radius: 8px;
    background: #fff;
    padding: 5px 7px;
    color: var(--brand);
    font-size: 0.76rem;
}

.detail-match-list strong {
    color: #071538;
    font-weight: 850;
}

.detail-match-list svg:last-child {
    color: #0e8d47;
}

.detail-card {
    padding: 9px 11px;
}

.detail-document-list {
    display: grid;
    gap: 6px;
}

.detail-document-list > a,
.detail-document-list > button,
.detail-document-list > span {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    border: 1px solid #e1e7e4;
    border-radius: 7px;
    background: #fff;
    padding: 6px 8px;
    color: #071538;
    font-size: 11px;
    font-weight: 760;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.detail-document-list a:hover,
.detail-document-list button:hover,
.detail-document-list a:focus-visible,
.detail-document-list button:focus-visible {
    border-color: rgba(0, 91, 86, 0.32);
    background: #f4faf8;
    color: var(--brand-dark);
    outline: none;
}

.detail-document-list button.is-open {
    border-color: rgba(0, 91, 86, 0.32);
    background: #f4faf8;
    color: var(--brand-dark);
}

.detail-document-text {
    max-height: 260px;
    overflow: auto;
    border: 1px solid #dce4e0;
    border-radius: 8px;
    background: #fbfdfc;
    padding: 9px 10px;
    color: #071538;
    font-size: 11px;
    line-height: 1.35;
    white-space: pre-wrap;
}

.detail-document-text[hidden] {
    display: none;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.detail-grid > div {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 5px;
    min-height: 38px;
    border-top: 1px dashed #e5e9ed;
    border-right: 1px dashed #e5e9ed;
    padding: 5px 7px 5px 0;
}

.detail-grid > div:nth-child(-n + 3) {
    border-top: 0;
}

.detail-grid > div:nth-child(3n) {
    border-right: 0;
}

.detail-grid > div:nth-child(3n + 2),
.detail-grid > div:nth-child(3n + 3) {
    padding-left: 7px;
}

.detail-grid dt {
    display: contents;
    color: #4a5872;
    font-size: 11px;
    font-weight: 780;
}

.detail-grid .popup-detail-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    font-size: 11px;
}

.detail-grid dd {
    grid-column: 2;
    margin: 0;
    color: #071538;
    font-size: 11px;
    line-height: 1.12;
    font-weight: 920;
}

.detail-source-note {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) 16px;
    gap: 6px;
    align-items: center;
    border-color: #cfe4f8;
    background: #f3f9ff;
    padding: 6px 8px;
    color: #0b5fa5;
}

.detail-source-note strong,
.detail-source-note span {
    display: block;
    font-size: 11px;
    line-height: 1.2;
}

.detail-source-note strong {
    color: #063b70;
    font-weight: 820;
}

.map-detail-close:hover,
.map-detail-close:focus-visible {
    background: color-mix(in srgb, var(--brand) 10%, #fff);
    color: var(--brand-dark);
    outline: none;
}

.popup p {
    margin: 6px 0 0;
    line-height: 1.42;
}

.popup-heading {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.popup-heading strong {
    display: block;
    margin-top: 3px;
    padding-right: 40px;
    font-size: 1.02rem;
    line-height: 1.15;
}

.popup-heading p {
    color: var(--muted);
    font-weight: 800;
    font-size: 0.76rem;
    line-height: 1.25;
}

.popup-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 12%, #fff);
    color: var(--brand-dark);
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.popup-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    margin: 16px 0;
}

.popup dt {
    color: var(--muted);
    font-weight: 800;
    font-size: 0.7rem;
    line-height: 1.2;
}

.popup dd {
    margin: 4px 0 0;
    font-weight: 900;
    font-size: 0.86rem;
    line-height: 1.2;
}

.popup section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.popup h4 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 0.72rem;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0;
}

.popup section p,
.popup li {
    font-size: 0.82rem;
    line-height: 1.38;
}

.popup-show-more {
    display: inline-flex;
    align-items: center;
    min-height: auto;
    margin-top: 5px;
    border: 0;
    padding: 0;
    color: var(--brand);
    background: transparent;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: lowercase;
}

.popup ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.popup li {
    margin: 3px 0;
}

.popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.popup button,
.popup a,
.card-actions button,
.card-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-right: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--brand-dark);
    background: #fff;
    padding: 6px 9px;
    font-size: 0.94rem;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.popup-icon-action {
    gap: 7px;
}

.popup-icon-action svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.popup-document-link {
    min-height: 28px;
    border-color: rgba(31, 98, 93, 0.2);
    background: color-mix(in srgb, var(--brand) 7%, #fff);
    padding: 4px 8px;
    font-size: 0.7rem;
    line-height: 1.1;
}

.popup-document-link svg {
    width: 13px;
    height: 13px;
}

.popup-document-link span {
    max-width: 175px;
}

.popup svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.popup-hero {
    padding: 10px 14px 9px;
}

.popup-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 7px;
}

.popup-match-pill,
.popup-rank-pill,
.popup-model-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 20px;
    border-radius: 6px;
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 950;
}

.popup-match-pill {
    color: #0d5f36;
    background: #dcf5df;
}

.popup-rank-pill {
    color: var(--ink);
    background: #f0f1f3;
}

.popup-model-pill {
    color: #3a4658;
    background: #eef3f8;
}

.popup-hero h3 {
    margin: 0 0 8px;
    color: #03133d;
    font-size: clamp(1.45rem, 4.8vw, 2rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.popup-address,
.popup-meta-line {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #071538;
    font-size: 0.76rem;
    font-weight: 760;
    line-height: 1.35;
}

.popup-address svg,
.popup-meta-line svg {
    color: var(--brand);
    font-size: 0.95rem;
}

.popup-meta-line {
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 8px;
    color: #2d3c58;
    font-size: 0.72rem;
}

.popup-meta-line span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.popup-action-row {
    display: block;
    margin-top: 8px;
}

.popup .popup-primary-action,
.popup .popup-secondary-action,
.popup .popup-bookmark-action {
    justify-content: center;
    gap: 9px;
    min-height: 32px;
    border-radius: 8px;
    padding: 6px 9px;
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1.1;
}

.popup .popup-primary-action {
    border-color: #006e55;
    color: #fff;
    background: linear-gradient(135deg, #005c49, #08775f);
}

.popup .popup-primary-action[disabled] {
    opacity: 0.65;
}

.popup .popup-secondary-action,
.popup .popup-bookmark-action {
    display: none;
    color: #071538;
    background: #fff;
    border-color: #d6dce3;
}

.popup-tabs {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #e3e6ea;
    border-bottom: 1px solid #e3e6ea;
    background: #fff;
}

.popup-tabs span {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    color: #2d3c58;
    font-size: 0.76rem;
    font-weight: 860;
    position: relative;
}

.popup-tabs .is-active {
    color: var(--brand-dark);
}

.popup-tabs .is-active::after {
    content: "";
    position: absolute;
    right: 16%;
    bottom: -1px;
    left: 16%;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: var(--brand);
}

.popup-body {
    display: grid;
    gap: 7px;
    padding: 8px 10px 10px;
    background: #fff;
}

.popup-match-card,
.popup-summary-card,
.popup-detail-card,
.popup-source-note {
    border: 1px solid #dce4e0;
    border-radius: 14px;
    background: #fff;
}

.popup-match-card {
    display: block;
    align-items: start;
    background: linear-gradient(135deg, #f2faf5, #fff);
    padding: 9px 10px;
}

.popup-summary-card {
    display: block;
    padding: 9px 10px;
}

.popup-card-icon,
.popup-detail-icon {
    display: inline-grid;
    place-items: center;
    color: var(--brand);
    background: #e8f5ef;
}

.popup-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.25rem;
}

.popup-card-icon.is-soft {
    width: 36px;
    height: 36px;
    align-self: start;
    justify-self: end;
    font-size: 1.1rem;
}

.popup h4 {
    margin: 0 0 4px;
    color: var(--brand-dark);
    font-size: 0.68rem;
    line-height: 1.15;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0;
}

.popup section {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.popup section p {
    margin: 0;
    color: #071538;
    font-size: 0.68rem;
    line-height: 1.24;
    font-weight: 620;
}

.popup-show-more {
    display: none !important;
    margin-top: 0;
    color: var(--brand);
    font-size: 0.86rem;
    text-transform: none;
}

.popup-detail-card {
    padding: 9px 10px;
}

.popup-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.popup-detail-grid > div {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    min-height: 38px;
    border-top: 1px solid #edf0f2;
    padding: 5px 8px 5px 0;
}

.popup-detail-grid > div:nth-child(1),
.popup-detail-grid > div:nth-child(2) {
    border-top: 0;
}

.popup-detail-grid > div:nth-child(odd) {
    border-right: 1px solid #edf0f2;
}

.popup-detail-grid > div:nth-child(even) {
    padding-left: 14px;
}

.popup-detail-grid > div:nth-child(5),
.popup-detail-grid > div:nth-child(6) {
    border-bottom: 0;
}

.popup-detail-grid dt {
    display: contents;
    color: #4a5872;
    font-size: 0.58rem;
    font-weight: 760;
}

.popup-detail-icon {
    grid-row: span 2;
    width: 23px;
    height: 23px;
    border-radius: 9px;
    font-size: 0.76rem;
}

.popup-detail-grid dt > span:last-child {
    align-self: end;
}

.popup-detail-grid dd {
    grid-column: 2;
    margin: 0;
    color: #071538;
    font-size: 0.64rem;
    line-height: 1.14;
    font-weight: 930;
}

.popup-source-note {
    display: none;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    border-color: #cfe4f8;
    background: #f3f9ff;
    padding: 9px 10px;
    color: #0b5fa5;
}

.popup-source-note strong,
.popup-source-note span {
    display: block;
    font-size: 0.68rem;
    line-height: 1.25;
}

.popup-source-note strong {
    color: #063b70;
    font-weight: 820;
}

.popup-source-note span {
    margin-top: 3px;
    color: #4e6785;
}

@media (max-width: 620px) {
    .search-mode-card {
        padding: 4px;
        border-radius: 12px;
    }

    .search-mode-card label {
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 7px;
        min-height: 48px;
        border-radius: 8px;
        padding: 8px;
    }

    .search-mode-icon svg {
        width: 19px;
        height: 19px;
    }

    .search-mode-card strong {
        font-size: 0.74rem;
        line-height: 1.04;
    }

    .search-mode-card small {
        display: none;
    }

    .popup-hero {
        padding: 12px;
    }

    .popup-action-row,
    .popup-detail-grid {
        grid-template-columns: 1fr;
    }

    .popup-tabs span:nth-child(2),
    .popup-tabs span:nth-child(3),
    .popup .popup-secondary-action,
    .popup .popup-bookmark-action,
    .popup-source-note {
        display: none;
    }

    .popup-tabs {
        grid-template-columns: 1fr;
    }

    .popup-detail-grid > div,
    .popup-detail-grid > div:nth-child(odd),
    .popup-detail-grid > div:nth-child(even) {
        border-right: 0;
        border-top: 1px solid #edf0f2;
        padding-left: 0;
    }

    .popup-detail-grid > div:first-child {
        border-top: 0;
    }

    .popup-tabs span {
        font-size: 0.76rem;
    }
}

.filters {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(320px, 520px);
    gap: 0;
    align-items: stretch;
    margin: 10px 0 14px;
    border-radius: 12px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(7, 26, 52, 0.12);
    backdrop-filter: blur(10px);
}

.result-filter-nav {
    position: sticky;
    top: 12px;
    z-index: 650;
    box-shadow: 0 14px 32px rgba(7, 26, 52, 0.14);
}

.filter-compact {
    gap: 4px;
}

.filter-panel {
    min-width: 0;
    padding-right: 22px;
    align-content: start;
}

.filter-empty-space {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    min-height: 48px;
    border-left: 1px solid rgba(7, 26, 52, 0.08);
    padding-left: 18px;
}

.batch-progress {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    border: 1px solid rgba(7, 26, 52, 0.12);
    border-radius: 999px;
    background: #fff;
    padding: 5px 10px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.batch-progress-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(31, 98, 93, 0.18);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.batch-progress.is-complete .batch-progress-spinner {
    display: none;
}

.batch-progress[hidden] {
    display: none;
}

.batch-progress strong {
    color: var(--brand-dark);
    font-size: 0.9rem;
}

.filter-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    align-self: start;
}

.filter-heading .year-range-summary {
    margin-left: auto;
}

.filter-heading label {
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.filter-icon {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(36, 99, 94, 0.1);
    border-radius: 50%;
    color: var(--brand);
    background: rgba(36, 99, 94, 0.08);
}

.filter-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.year-range-filter {
    display: grid;
    gap: 0;
    padding-top: 0;
}

.year-range-slider {
    --range-left: 0%;
    --range-right: 0%;
    --badge-left: 50%;
    position: relative;
    height: 22px;
    margin-inline: calc(100% / 18);
}

.year-range-summary {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 8px 16px rgba(7, 26, 52, 0.14);
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
}

.year-range-summary::after {
    display: none;
}

.year-range-track,
.year-range-fill {
    position: absolute;
    top: 10px;
    right: 0;
    left: 0;
    height: 3px;
    border-radius: 999px;
}

.year-range-track {
    border: 1px solid rgba(7, 26, 52, 0.12);
    background: #fff;
}

.year-range-fill {
    right: var(--range-right);
    left: var(--range-left);
    background: var(--brand);
}

.year-range-slider input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    margin: 0;
    appearance: none;
    background: transparent;
    pointer-events: none;
}

.year-range-slider input:focus {
    outline: none;
}

.year-range-slider input::-webkit-slider-runnable-track {
    height: 3px;
    background: transparent;
}

.year-range-slider input::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    margin-top: -8px;
    appearance: none;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 4px 12px rgba(7, 26, 52, 0.22);
    cursor: pointer;
    pointer-events: auto;
}

.year-range-slider input::-moz-range-track {
    height: 3px;
    background: transparent;
}

.year-range-slider input::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 4px 12px rgba(7, 26, 52, 0.22);
    cursor: pointer;
    pointer-events: auto;
}

.year-range-slider input:focus-visible::-webkit-slider-thumb {
    outline: 3px solid rgba(36, 99, 94, 0.22);
    outline-offset: 2px;
}

.year-range-slider input:focus-visible::-moz-range-thumb {
    outline: 3px solid rgba(36, 99, 94, 0.22);
    outline-offset: 2px;
}

.year-tick-list {
    display: none;
    grid-template-columns: repeat(9, 1fr);
    gap: 0;
}

.year-tick-list span::before {
    content: "";
    display: block;
    width: 3px;
    height: 3px;
    margin: 0 auto 4px;
    border-radius: 50%;
    background: rgba(77, 88, 108, 0.18);
}

.year-tick-list span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    text-align: center;
}

.report-builder-section {
    margin-top: 16px;
}

.report-builder-card {
    overflow: hidden;
    border: 1px solid rgba(7, 26, 52, 0.12);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(7, 26, 52, 0.1);
}

.report-builder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 20px 15px;
    background: linear-gradient(135deg, #f8fbfa 0%, #fff 62%);
}

.report-builder-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.15;
}

.report-builder-header p {
    margin: 4px 0 0;
    color: #566477;
    font-size: 0.75rem;
    font-weight: 650;
}

.report-builder-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    border: 1px solid rgba(0, 91, 86, 0.14);
    border-radius: 999px;
    background: #edf7f3;
    color: var(--brand-dark);
    padding: 7px 11px 7px 13px;
    font-size: 0.72rem;
    cursor: pointer;
}

.report-builder-toggle:hover,
.report-builder-toggle:focus-visible {
    border-color: rgba(0, 91, 86, 0.34);
    background: #e3f2ec;
    outline: none;
}

.report-builder-toggle strong {
    font-weight: 900;
}

.report-builder-toggle-icon {
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    font-size: 12px;
    transition: transform 0.18s ease;
}

.report-builder-card.is-collapsed .report-builder-toggle-icon {
    transform: rotate(180deg);
}

.report-builder-card.is-collapsed .report-builder-list,
.report-builder-card.is-collapsed .empty-state,
.report-builder-card.is-collapsed .report-builder-actions {
    display: none;
}

.report-builder-list {
    display: grid;
    gap: 9px;
    border-top: 1px solid rgba(7, 26, 52, 0.08);
    padding: 14px 16px 16px;
    background: #f8faf9;
}

.report-builder-card > .empty-state {
    margin: 0;
    border-top: 1px solid rgba(7, 26, 52, 0.08);
    background: #f8faf9;
    padding: 24px 20px;
    color: #687487;
    font-size: 0.74rem;
    text-align: center;
}

.report-builder-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    min-height: 92px;
    border: 1px solid rgba(7, 26, 52, 0.11);
    border-radius: 12px;
    background: #fff;
    padding: 13px 14px;
    color: var(--ink);
    font-size: 0.7rem;
    box-shadow: 0 2px 8px rgba(7, 26, 52, 0.04);
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.report-builder-row:hover {
    border-color: rgba(0, 91, 86, 0.28);
    box-shadow: 0 7px 18px rgba(7, 26, 52, 0.08);
    transform: translateY(-1px);
}

.report-builder-check {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-top: 1px;
    border-radius: 9px;
    color: #fff;
    background: var(--brand-dark);
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0, 68, 64, 0.18);
}

.report-builder-main {
    min-width: 0;
}

.report-builder-row-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.report-builder-score {
    display: inline-flex;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.65rem;
    font-weight: 950;
    white-space: nowrap;
}

.report-builder-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.66rem;
    font-weight: 850;
    white-space: nowrap;
}

.report-builder-rating span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
}

.report-builder-da {
    margin-right: 2px;
    color: #071538;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.25;
}

.report-builder-address {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-top: 7px;
    overflow: hidden;
    color: #172a43;
    font-size: 0.73rem;
    font-weight: 850;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-builder-pin {
    display: inline-grid;
    place-items: center;
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    color: var(--ink);
}

.report-builder-pin svg,
.report-builder-check svg,
.report-builder-remove svg,
.report-builder-clear svg,
.report-builder-preview svg,
.report-builder-generate svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.report-builder-summary {
    display: -webkit-box;
    margin: 5px 0 0;
    overflow: hidden;
    color: #637084;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.report-builder-row-actions {
    display: flex;
    align-items: center;
    align-self: center;
    gap: 7px;
    margin-left: 4px;
    border-left: 1px solid rgba(7, 26, 52, 0.09);
    padding-left: 14px;
}

.report-builder-remove,
.report-builder-clear,
.report-builder-preview,
.report-builder-generate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--brand-dark);
    padding: 7px 10px;
    font-size: 0.69rem;
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.report-builder-remove {
    border-color: rgba(220, 76, 69, 0.12);
    background: #fff8f7;
    color: #dc4c45;
}

.report-builder-remove:hover,
.report-builder-remove:focus-visible {
    border-color: rgba(220, 76, 69, 0.3);
    background: #ffefed;
    outline: none;
}

.report-builder-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(7, 26, 52, 0.09);
    background: #fff;
    padding: 12px 16px;
}

.report-builder-actions > div {
    display: flex;
    gap: 10px;
}

.report-builder-preview {
    min-width: 150px;
    border: 1px solid rgba(0, 91, 86, 0.28);
    color: var(--brand-dark);
    background: #fff;
}

.report-builder-generate {
    min-width: 190px;
    border-color: rgba(0, 91, 86, 0.15);
    background: #edf5f2;
    color: var(--brand-dark);
    cursor: not-allowed;
}

.report-builder-generate small {
    border-radius: 999px;
    background: rgba(0, 91, 86, 0.1);
    padding: 2px 6px;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.report-builder-clear {
    justify-content: flex-start;
    padding-inline: 3px;
}

.report-builder-clear:hover,
.report-builder-clear:focus-visible {
    color: #006f68;
    text-decoration: underline;
    outline: none;
}

.report-builder-clear:disabled {
    color: #a3aaa7;
    cursor: default;
    text-decoration: none;
}

.report-builder-row-very-strong .report-builder-score,
.report-builder-row-strong .report-builder-score {
    background: #e7f5ee;
    color: #007c54;
}

.report-builder-row-very-strong .report-builder-rating,
.report-builder-row-strong .report-builder-rating {
    color: #00985f;
}

.report-builder-row-moderate .report-builder-score {
    background: #fff4df;
    color: #b46b00;
}

.report-builder-row-moderate .report-builder-rating {
    color: #f4b400;
}

.report-builder-row-weak .report-builder-score {
    background: #fff0df;
    color: #bf5b00;
}

.report-builder-row-weak .report-builder-rating {
    color: #ff7a00;
}

.report-builder-row-poor .report-builder-score {
    background: #feecec;
    color: #c82833;
}

.report-builder-row-poor .report-builder-rating {
    color: #f23645;
}

@media (max-width: 900px) {
    .report-builder-row {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .report-builder-row-actions {
        grid-column: 2;
        justify-content: flex-start;
        margin: 2px 0 0;
        border-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 620px) {
    .report-builder-header {
        align-items: flex-start;
        padding: 15px;
    }

    .report-builder-header p {
        max-width: 240px;
    }

    .report-builder-list {
        padding: 10px;
    }

    .report-builder-row {
        padding: 12px;
    }

    .report-builder-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .report-builder-actions > div,
    .report-builder-generate {
        width: 100%;
    }
}

.table-wrap {
    overflow-x: auto;
    border-radius: 8px;
}

table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 13px 14px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    background: var(--soft);
    font-size: 0.78rem;
    text-transform: uppercase;
}

th button {
    border: 0;
    color: inherit;
    background: transparent;
    padding: 0;
    font-weight: 850;
    text-transform: uppercase;
    cursor: pointer;
}

tbody tr {
    cursor: pointer;
}

tbody tr:hover,
tbody tr.is-selected,
.result-card.is-selected {
    background: #fff7e3;
}

.status-pill {
    display: inline-flex;
    border-radius: 999px;
    background: #e5f1ed;
    color: var(--brand-dark);
    padding: 4px 8px;
    font-size: 0.78rem;
    font-weight: 850;
}

a {
    color: var(--brand);
    font-weight: 800;
}

.mobile-results {
    display: none;
}

.empty-state {
    margin: 16px 0;
    color: var(--muted);
    font-weight: 700;
}

.report-footer {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 24px;
    align-items: start;
    margin: 34px 0 72px;
    border-radius: 8px;
    padding: 22px 24px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.55;
    box-shadow: none;
}

.report-footer strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 0.9rem;
}

.report-footer p {
    margin: 0;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
    gap: 24px;
    align-items: start;
    margin: 42px 0 72px;
    border-top: 1px solid rgba(7, 26, 52, 0.14);
    padding-top: 24px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.site-footer strong {
    display: block;
    margin-bottom: 5px;
    color: var(--brand-dark);
    font-size: 0.94rem;
}

.site-footer p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
}

.footer-links a {
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer--standalone {
    width: min(100%, 1320px);
    margin: 0 0 12px;
}

.site-footer--compact {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 30px 0 0;
    border-top-color: rgba(148, 163, 184, 0.32);
    padding-top: 18px;
    color: #6b7280;
    font-size: 0.78rem;
}

.site-footer--compact strong {
    font-size: 0.82rem;
}

.site-footer--compact .footer-links {
    gap: 10px;
    margin-top: 8px;
}

.api-test-page {
    position: relative;
    min-height: 100vh;
    background: #fbf5ee;
}

.api-test-shell {
    width: min(880px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0;
}

.api-test-back {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--brand);
    font-size: 0.9rem;
    font-weight: 850;
    text-decoration: none;
}

.api-test-back:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.api-test-panel {
    display: grid;
    gap: 22px;
    padding: 28px;
    border: 1px solid rgba(7, 26, 52, 0.14);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.api-test-panel h1 {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 2rem;
    line-height: 1.1;
}

.api-test-form {
    display: grid;
    gap: 12px;
}

.api-test-form label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
    text-transform: uppercase;
}

.api-test-form textarea {
    min-height: 210px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.api-test-form button {
    justify-self: start;
}

.api-test-output {
    min-height: 220px;
    max-height: 520px;
    margin: 0;
    padding: 16px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #071a34;
    color: #f7fbff;
    font-size: 0.86rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.import-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.import-grid label {
    display: grid;
    gap: 7px;
}

.import-grid span,
.import-stats span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.import-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.import-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.import-statuses legend {
    padding: 0 6px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.import-statuses label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9rem;
    font-weight: 800;
}

.import-statuses input {
    width: auto;
}

.import-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.import-stats div {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.import-stats strong {
    font-size: 1.05rem;
}

.recent-approved-section {
    display: grid;
    gap: 14px;
    margin-top: 6px;
}

.recent-approved-section h2 {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: 1.25rem;
}

.recent-approved-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.recent-approved-table {
    min-width: 860px;
    background: #fff;
}

.recent-approved-table th,
.recent-approved-table td {
    padding: 12px 14px;
}

.recent-approved-table td:nth-child(1),
.recent-approved-table td:nth-child(2) {
    color: var(--ink);
    font-weight: 850;
    white-space: nowrap;
}

.recent-approved-table td:nth-child(4) {
    max-width: 380px;
}

.experimental-search-shell {
    width: min(1280px, calc(100% - 32px));
}

.experimental-search-panel {
    gap: 24px;
}

.experimental-search-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.experimental-search-form label {
    display: grid;
    gap: 7px;
}

.experimental-search-form label span,
.experimental-stats span,
.experimental-table td span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.experimental-search-form textarea {
    min-height: 120px;
}

.experimental-grid {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(220px, 1.4fr) minmax(120px, 1fr);
    gap: 12px;
}

.experimental-options {
    align-items: end;
}

.experimental-check {
    display: flex !important;
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
    gap: 9px;
    min-height: 46px;
}

.experimental-check input {
    width: auto;
}

.experimental-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.experimental-stats div {
    display: grid;
    gap: 7px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.experimental-stats strong {
    font-size: 1rem;
}

.experimental-status {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.experimental-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.experimental-table {
    min-width: 1180px;
    background: #fff;
}

.experimental-table th,
.experimental-table td {
    padding: 12px 13px;
    vertical-align: top;
}

.experimental-table td {
    max-width: 260px;
}

.experimental-table td:first-child,
.experimental-table td:nth-child(2),
.experimental-table td:nth-child(3) {
    color: var(--ink);
    font-weight: 850;
    white-space: nowrap;
}

.experimental-table td span {
    display: block;
    margin-top: 5px;
    line-height: 1.35;
    white-space: normal;
}

.dashboard-shell {
    width: min(1120px, calc(100% - 32px));
}

.dashboard-panel {
    gap: 26px;
}

.dashboard-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
}

.dashboard-heading h1 {
    margin-bottom: 8px;
}

.dashboard-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--brand-dark);
    background: var(--soft);
    font-size: 0.88rem;
    font-weight: 850;
    text-decoration: none;
}

.dashboard-refresh:hover,
.dashboard-refresh:focus-visible {
    border-color: var(--brand);
    outline: none;
}

button.dashboard-refresh {
    cursor: pointer;
    font: inherit;
}

button.dashboard-refresh:disabled {
    cursor: progress;
    opacity: 0.62;
}

.dashboard-alert {
    padding: 14px 16px;
    border: 1px solid rgba(240, 90, 26, 0.3);
    border-radius: 8px;
    color: #8a2e08;
    background: #fff1e9;
    font-weight: 800;
}

.dashboard-metrics,
.dashboard-footnotes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-metrics div,
.dashboard-footnotes div {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.dashboard-metrics span,
.dashboard-footnotes span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.dashboard-metrics strong {
    font-size: 1.9rem;
    line-height: 1;
}

.dashboard-metrics small {
    color: var(--muted);
    font-size: 0.9rem;
}

.dashboard-footnotes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-footnotes strong {
    font-size: 1rem;
}

.dashboard-section {
    display: grid;
    gap: 14px;
}

.dashboard-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-section h2 {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: 1.25rem;
}

.dashboard-year-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-year-form label {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-year-form select {
    height: 40px;
    min-width: 110px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 0 10px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 850;
}

.dashboard-year-form select:focus {
    border-color: var(--brand);
    outline: none;
}

@media (max-width: 720px) {
    .dashboard-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-year-form {
        justify-content: space-between;
    }
}

.status-bars {
    display: grid;
    gap: 12px;
}

.status-bar-row {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.status-bar-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.status-bar-meta strong {
    font-size: 0.96rem;
}

.status-bar-meta span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 850;
    white-space: nowrap;
}

.status-bar-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eee9;
}

.status-bar-track span {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.dashboard-table {
    min-width: 620px;
}

.dashboard-table td:nth-child(2),
.dashboard-table td:nth-child(3) {
    color: var(--ink);
    font-weight: 850;
    white-space: nowrap;
}

.council-status-shell {
    width: min(1180px, calc(100% - 32px));
}

.council-status-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.council-status-actions {
    display: flex;
    align-items: start;
    gap: 10px;
}

.council-status-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.council-status-filter label {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
    white-space: nowrap;
}

.council-status-filter select {
    height: 40px;
    min-width: 132px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 0 10px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 850;
}

.council-status-filter select:focus {
    border-color: var(--brand);
    outline: none;
}

.council-status-latest {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
}

.council-status-latest strong {
    color: var(--ink);
}

.council-status-table {
    min-width: 980px;
}

.council-status-table td:nth-child(5),
.council-status-table td:nth-child(6),
.council-status-table td:nth-child(7) {
    color: var(--ink);
    font-weight: 850;
    white-space: nowrap;
}

.council-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--soft);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.council-status-pill.is-complete {
    border-color: rgba(22, 101, 52, 0.22);
    background: #ecfdf3;
    color: #166534;
}

.council-status-pill.is-progress {
    border-color: rgba(240, 90, 26, 0.26);
    background: #fff4ed;
    color: #9b2a1a;
}

.council-status-percent {
    display: inline-block;
    margin-left: 8px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 850;
}

.council-status-runner {
    padding-top: 6px;
}

.council-status-log {
    min-height: 170px;
    max-height: 280px;
    margin: 0;
}

.council-status-steps {
    margin: 4px 0 0;
    padding-left: 22px;
    display: grid;
    gap: 16px;
}

.council-status-steps > li {
    color: var(--ink);
    line-height: 1.45;
}

.council-status-steps > li > strong {
    font-weight: 850;
}

.council-status-steps p {
    margin: 4px 0 8px;
    color: var(--ink-muted, #5a5f6b);
}

.council-status-step-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(40, 120, 70, 0.12);
    color: #1f7a44;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.council-status-cmd {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #11141a;
    color: #e7edf5;
    font-size: 0.82rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-x: auto;
}

.council-status-steps code,
.council-status-note code {
    padding: 1px 5px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.85em;
}

.council-status-note {
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--ink-muted, #5a5f6b);
    font-size: 0.9rem;
}

.pending-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background: none;
    padding: 0;
    color: inherit;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.pending-toggle:hover {
    color: var(--brand);
    text-decoration: underline;
}

.pending-toggle-chevron {
    display: inline-block;
    font-size: 0.9em;
    transition: transform 0.15s ease;
}

.pending-toggle[aria-expanded="true"] .pending-toggle-chevron {
    transform: rotate(90deg);
}

.council-pending-row td {
    padding: 0;
    border-top: 0;
    background: var(--soft);
}

.council-pending-panel {
    padding: 14px 18px 18px;
}

.council-pending-panel[data-state="loading"],
.council-pending-panel[data-state="error"],
.council-pending-panel[data-state="empty"] {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.council-pending-panel[data-state="error"] {
    color: #9b2a1a;
}

.pending-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.pending-panel-title {
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 850;
}

.pending-panel-copy {
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
}

.pending-panel-copy:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.pending-panel-copy.is-copied {
    border-color: rgba(22, 101, 52, 0.3);
    color: #166534;
}

.pending-bulk-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.pending-select-all-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.pending-select-all-label input {
    margin: 0;
}

.pending-bulk-btn {
    height: 28px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
}

.pending-bulk-btn:hover:not(:disabled) {
    border-color: var(--brand);
    color: var(--brand);
}

.pending-bulk-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.pending-bulk-reset {
    margin-left: auto;
    border-color: rgba(176, 42, 30, 0.3);
    background: #fff1f0;
    color: #b3261e;
}

.pending-bulk-reset:hover:not(:disabled) {
    border-color: #b3261e;
    color: #8f1e15;
}

.pending-check-th,
.pending-check-cell {
    width: 1%;
}

.pending-row-check,
.pending-select-all {
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.pending-table-wrap {
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.pending-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
}

.pending-table th,
.pending-table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.pending-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--soft);
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pending-table tbody tr {
    cursor: default;
}

.pending-table tbody tr:hover {
    background: var(--soft);
}

.pending-table tbody tr:last-child td {
    border-bottom: 0;
}

.pending-da-number {
    color: var(--ink);
    font-weight: 850;
    font-size: 0.86rem;
}

.pending-da-type {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.pending-da-date {
    color: var(--ink);
    font-weight: 700;
    font-size: 0.84rem;
}

.pending-table td.pending-status-cell {
    text-align: right;
}

.pending-notice-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.pending-notice-badge.is-progress {
    background: #ecfdf3;
    color: #166534;
}

.pending-notice-badge.is-failed {
    background: #fff1f0;
    color: #b3261e;
    cursor: help;
}

.pending-table td.pending-actions-cell {
    width: 1%;
    text-align: right;
}

.pending-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    cursor: pointer;
}

.pending-reset-btn:hover:not(:disabled) {
    border-color: var(--brand);
    color: var(--brand);
}

.pending-reset-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.pending-reset-btn.is-done {
    border-color: rgba(22, 101, 52, 0.3);
    color: #166534;
}

.pending-panel-more {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 750;
}

@media (max-width: 720px) {
    .council-status-actions,
    .council-status-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .council-status-filter select,
    .council-status-actions .dashboard-refresh {
        width: 100%;
    }
}

.date-range-table {
    min-width: 880px;
}

.date-range-table td {
    color: var(--ink);
    font-weight: 850;
    white-space: nowrap;
}

.daily-sync-snippet {
    min-height: auto;
    max-height: none;
    margin: 0;
}

.pricing-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(0, 91, 86, 0.13), transparent 32%),
        radial-gradient(circle at 82% 16%, rgba(240, 90, 26, 0.1), transparent 28%),
        #fbf5ee;
}

.pricing-shell {
    width: min(1260px, calc(100% - 36px));
    padding: 64px 0;
}

.pricing-hero {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

.pricing-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
    text-decoration: none;
}

.pricing-brand .brand-mark {
    width: 24px;
    height: 24px;
    margin: 0;
}

.pricing-brand strong {
    font-size: 1.05rem;
    font-weight: 900;
}

.pricing-hero .eyebrow {
    margin-top: 30px;
}

.pricing-hero h1 {
    max-width: 850px;
    margin: 8px auto 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(2.6rem, 5vw, 5.1rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.pricing-hero p:last-child {
    max-width: 660px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.45;
}

.pdf-summary-page {
    min-height: 100vh;
    background: #fbf5ee;
}

.modal-open {
    overflow: hidden;
}

.pdf-summary-shell {
    width: min(1080px, calc(100% - 36px));
    margin: 0 auto;
    padding: 64px 0;
}

.pdf-summary-hero {
    max-width: 820px;
    margin: 0 auto 26px;
    text-align: center;
}

.pdf-summary-hero .eyebrow {
    margin-top: 30px;
}

.pdf-summary-hero h1 {
    max-width: 780px;
    margin: 8px auto 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(2.35rem, 4.6vw, 4.6rem);
    line-height: 0.98;
}

.pdf-summary-hero p:last-child {
    max-width: 720px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.5;
}

.pdf-summary-hero code {
    color: var(--brand-dark);
    font-weight: 850;
}

.pdf-summary-panel,
.pdf-summary-results {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.pdf-summary-panel {
    padding: 18px;
}

.pdf-summary-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    gap: 14px;
    align-items: stretch;
}

.field-document-source {
    min-width: 0;
}

.pdf-source-card,
.pdf-run-card {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(0, 91, 86, 0.18);
    border-radius: 8px;
    background: #fbfdfb;
    padding: 16px;
}

.pdf-run-card {
    align-content: space-between;
}

.pdf-source-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.pdf-source-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.pdf-icon-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid rgba(0, 91, 86, 0.22);
    border-radius: 999px;
    color: var(--brand-dark);
    background: #edf4f1;
    padding: 8px 12px;
    font-size: 0.84rem;
    font-weight: 850;
    cursor: pointer;
}

.pdf-icon-button:hover,
.pdf-icon-button:focus-visible {
    border-color: var(--brand);
    background: #dfece8;
    outline: none;
}

.ai-prompt-dialog {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    background: rgba(7, 26, 52, 0.34);
    padding: 24px;
}

.ai-prompt-dialog[hidden] {
    display: none;
}

.ai-prompt-modal {
    position: relative;
    display: grid;
    gap: 12px;
    width: min(860px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(7, 26, 52, 0.28);
    padding: 22px;
}

.ai-prompt-modal-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-right: 36px;
}

.ai-prompt-modal-heading strong {
    color: var(--ink);
    font-size: 1.05rem;
}

.ai-prompt-modal textarea {
    min-height: 420px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.86rem;
    line-height: 1.5;
}

.pdf-picker-field {
    display: grid;
    gap: 10px;
}

.pdf-picker-label {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 850;
}

.pdf-picker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pdf-picker-actions input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.pdf-picker-button {
    min-height: 42px;
    cursor: pointer;
}

.folder-pdf-select {
    min-height: 42px;
    padding: 9px 10px;
    font-size: 0.9rem;
}

.pdf-picker-status {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.field-ai-prompt textarea,
.summary-followup-form textarea {
    min-height: 280px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.86rem;
    line-height: 1.5;
}

.pdf-summary-actions {
    display: grid;
    gap: 10px;
}

.pdf-summary-form .primary-button,
.pdf-summary-form .secondary-button {
    min-width: 0;
}

.pdf-reset-button {
    min-width: 120px;
}

.secondary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 58px;
    border: 1px solid rgba(0, 91, 86, 0.24);
    border-radius: 6px;
    color: var(--brand-dark);
    background: #edf4f1;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 850;
    cursor: pointer;
}

.secondary-button:hover {
    border-color: var(--brand);
    background: #dfece8;
}

.automation-steps {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 16px;
}

.automation-steps ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.automation-steps li {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    border: 1px solid rgba(7, 26, 52, 0.12);
    border-radius: 8px;
    color: var(--muted);
    background: #fff;
    padding: 9px 11px;
    font-size: 0.86rem;
    font-weight: 850;
}

.automation-steps li span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    color: var(--muted);
    background: var(--soft);
    font-size: 0.78rem;
    font-weight: 950;
}

.automation-steps li.is-active {
    border-color: rgba(240, 90, 26, 0.42);
    color: var(--ink);
    background: #fff8f2;
}

.automation-steps li.is-active span {
    color: #fff;
    background: var(--accent);
}

.automation-steps li.is-complete {
    border-color: rgba(0, 91, 86, 0.2);
    color: var(--brand-dark);
    background: #edf4f1;
}

.automation-steps li.is-complete span {
    color: #fff;
    background: var(--brand);
}

.pdf-summary-results {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    min-height: 360px;
    padding: 20px;
}

.pdf-results-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.pdf-results-heading span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.pdf-results-heading h2 {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.25;
}

.pdf-results-heading strong {
    flex: 0 0 auto;
    border-radius: 999px;
    color: var(--brand-dark);
    background: #edf4f1;
    padding: 7px 11px;
    font-size: 0.8rem;
}

.pdf-empty-state {
    display: grid;
    min-height: 220px;
    place-items: center;
    margin: 0;
    border: 1px dashed rgba(0, 91, 86, 0.22);
    border-radius: 8px;
    color: var(--muted);
    background: #f7fbf8;
    padding: 24px;
    text-align: center;
    line-height: 1.45;
}

.summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.summary-meta span {
    border: 1px solid rgba(0, 91, 86, 0.14);
    border-radius: 999px;
    color: var(--brand-dark);
    background: #edf4f1;
    padding: 7px 11px;
    font-size: 0.8rem;
    font-weight: 850;
}

.summary-output {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.62;
}

.summary-output strong {
    display: inline-block;
    margin-top: 14px;
    color: var(--brand-dark);
}

.summary-window-group {
    display: grid;
    gap: 9px;
}

.extracted-text-details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7faf8;
    padding: 0;
}

.extracted-text-details summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    cursor: pointer;
}

.summary-window-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.summary-window-heading strong {
    color: var(--ink);
    font-size: 0.95rem;
}

.summary-window-heading span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.summary-text-window {
    min-height: 360px;
    max-height: 620px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.92rem;
    line-height: 1.55;
    resize: vertical;
}

.extracted-text-window {
    min-height: 320px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
    background: #f7faf8;
}

.summary-followup-form {
    display: grid;
    grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
    gap: 14px;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.summary-followup-form .primary-button {
    grid-column: 1 / -1;
    justify-self: end;
    min-width: 210px;
}

.summary-source {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.summary-source summary {
    color: var(--muted);
    font-weight: 850;
    cursor: pointer;
}

.summary-source pre {
    max-height: 360px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #071a34;
    color: #f7fbff;
    padding: 16px;
    white-space: pre-wrap;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: grid;
    grid-template-rows: auto auto auto auto auto 1fr;
    gap: 14px;
    overflow: hidden;
    border: 1px solid rgba(7, 26, 52, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(7, 26, 52, 0.09);
    padding: 34px 28px 28px;
}

.pricing-card .plan-topline {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--brand);
}

.pricing-card.is-featured {
    border-color: rgba(240, 90, 26, 0.7);
    box-shadow: 0 22px 54px rgba(7, 26, 52, 0.14);
    transform: translateY(-8px);
}

.pricing-card.is-featured .plan-topline {
    background: var(--accent);
}

.pricing-card.enterprise .plan-topline {
    background: #3c1f5d;
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    border-radius: 0 0 999px 999px;
    color: #fff;
    background: var(--accent);
    padding: 7px 18px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.plan-kicker {
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pricing-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.72rem;
}

.pricing-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.42;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 18px;
}

.plan-price strong {
    color: var(--ink);
    font-size: 2.9rem;
    line-height: 1;
    letter-spacing: 0;
}

.plan-price span {
    color: var(--muted);
    font-weight: 780;
}

.plan-note {
    min-height: 22px;
    font-size: 0.9rem;
}

.plan-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 12px;
    border: 1px solid rgba(0, 91, 86, 0.28);
    border-radius: 999px;
    color: var(--brand);
    background: #fff;
    font-weight: 900;
    text-decoration: none;
}

.plan-button.primary {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
    box-shadow: 0 12px 26px rgba(240, 90, 26, 0.22);
}

.plan-button.dark {
    border-color: #111;
    color: #fff;
    background: #111;
}

.pricing-card ul {
    display: grid;
    gap: 12px;
    margin: 12px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.pricing-card li {
    position: relative;
    padding-left: 26px;
    color: #182a49;
    font-weight: 780;
    line-height: 1.32;
}

.pricing-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2aaf6f;
    font-weight: 900;
}

.pricing-feature-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px 28px;
    width: fit-content;
    max-width: 100%;
    margin: 34px auto 0;
    border: 1px solid rgba(7, 26, 52, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 34px rgba(7, 26, 52, 0.09);
    padding: 15px 28px;
}

.pricing-feature-band strong,
.pricing-feature-band span {
    color: var(--ink);
    font-weight: 820;
}

.pricing-feature-band span::before {
    content: "✓";
    margin-right: 8px;
    color: #2aaf6f;
    font-weight: 900;
}

.waitlist-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 10%, rgba(0, 91, 86, 0.12), transparent 30%),
        radial-gradient(circle at 82% 14%, rgba(240, 90, 26, 0.1), transparent 26%),
        #fbf5ee;
}

.waitlist-shell {
    width: min(1040px, calc(100% - 36px));
    margin: 0 auto;
    padding: 64px 0;
}

.waitlist-hero {
    max-width: 760px;
    margin: 0 auto 26px;
    text-align: center;
}

.waitlist-hero .eyebrow {
    margin-top: 30px;
}

.waitlist-hero h1 {
    max-width: 780px;
    margin: 8px auto 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(2.35rem, 4.6vw, 3.6rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.waitlist-hero p:last-child {
    max-width: 650px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.5;
}

.waitlist-panel,
.waitlist-success,
.waitlist-errors {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.waitlist-panel {
    padding: 24px;
}

.waitlist-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.waitlist-form label {
    display: grid;
    gap: 8px;
}

.waitlist-form label span,
.waitlist-type legend {
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 850;
}

.waitlist-form input,
.waitlist-form select,
.waitlist-form textarea {
    width: 100%;
    border: 1px solid rgba(7, 26, 52, 0.14);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    padding: 12px 13px;
    font: inherit;
}

.waitlist-form textarea {
    resize: vertical;
}

.waitlist-type,
.waitlist-message,
.waitlist-submit {
    grid-column: 1 / -1;
}

.waitlist-type {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    border: 0;
    padding: 0;
}

.waitlist-type legend {
    flex: 0 0 100%;
    margin-bottom: 2px;
}

.waitlist-type label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    border: 1px solid rgba(0, 91, 86, 0.18);
    border-radius: 999px;
    background: #edf4f1;
    padding: 0 14px;
    cursor: pointer;
}

.waitlist-type input {
    width: auto;
    accent-color: var(--brand);
}

.waitlist-submit {
    justify-self: end;
    min-width: 190px;
}

.waitlist-success {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
}

.waitlist-success > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #fff;
    background: #2aaf6f;
    font-weight: 950;
}

.waitlist-success strong {
    display: block;
    color: var(--ink);
    font-size: 1.2rem;
}

.waitlist-success p {
    margin: 5px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.waitlist-errors {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    border-color: rgba(163, 54, 32, 0.28);
    background: #fff7f2;
    padding: 13px 15px;
}

.waitlist-errors p {
    margin: 0;
    color: #8a2e1f;
    font-weight: 820;
}

.waitlist-return {
    width: fit-content;
    min-height: 46px;
    margin-top: 16px;
    text-decoration: none;
}

.support-page {
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 16% 10%, rgba(0, 91, 86, 0.1), transparent 30%),
        radial-gradient(circle at 88% 4%, rgba(240, 90, 26, 0.08), transparent 24%),
        #f6f8fb;
}

.support-shell {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
    padding: 64px 0;
}

.support-hero {
    display: grid;
    justify-items: center;
    max-width: 820px;
    margin: 0 auto 24px;
    text-align: center;
}

.support-hero .eyebrow {
    margin-top: 30px;
}

.support-hero h1 {
    max-width: 760px;
    margin: 8px auto 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(2.35rem, 4.6vw, 3.6rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.support-hero > p {
    margin: 16px 0 0;
    color: #59677d;
    font-size: 1.08rem;
    line-height: 1.45;
}

.support-search {
    display: grid;
    gap: 9px;
    width: min(720px, 100%);
    margin-top: 28px;
    text-align: left;
}

.support-search span {
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 850;
}

.support-search input {
    width: 100%;
    min-height: 58px;
    border: 1px solid rgba(7, 26, 52, 0.12);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 18px 48px rgba(7, 26, 52, 0.08);
    padding: 0 18px;
    font: inherit;
    font-size: 1rem;
}

.support-search input:focus {
    border-color: var(--brand);
    outline: 3px solid rgba(0, 91, 86, 0.14);
}

.support-contact-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
    border: 1px solid rgba(7, 26, 52, 0.08);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(7, 26, 52, 0.08);
    padding: 18px;
}

.support-contact-strip span {
    display: block;
    color: #59677d;
    font-size: 0.82rem;
    font-weight: 850;
}

.support-contact-strip strong {
    display: block;
    margin-top: 5px;
    color: var(--ink);
    line-height: 1.35;
}

.support-contact-strip .primary-button {
    flex: 0 0 auto;
    min-height: 46px;
    text-decoration: none;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.support-topic-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 226px;
    border: 1px solid rgba(7, 26, 52, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 44px rgba(7, 26, 52, 0.08);
    padding: 22px;
}

.support-topic-card[hidden] {
    display: none;
}

.support-topic-card > span {
    width: fit-content;
    border-radius: 999px;
    color: var(--brand-dark);
    background: #e2f5ed;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.support-topic-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.2rem;
    line-height: 1.2;
}

.support-topic-card p {
    margin: 0;
    color: #59677d;
    line-height: 1.48;
}

.support-topic-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.support-topic-actions a {
    border: 1px solid rgba(0, 91, 86, 0.18);
    border-radius: 999px;
    color: var(--brand);
    background: #fff;
    padding: 8px 11px;
    font-size: 0.84rem;
    font-weight: 900;
    text-decoration: none;
}

.support-topic-actions a:hover,
.support-topic-actions a:focus-visible {
    border-color: var(--brand);
    background: #edf4f1;
    outline: none;
}

.support-empty-state {
    margin: 18px 0 0;
    border: 1px dashed rgba(0, 91, 86, 0.25);
    border-radius: 8px;
    color: #59677d;
    background: #fff;
    padding: 22px;
    text-align: center;
    font-weight: 850;
}

.profile-page {
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(180deg, #f7f9fb 0%, #eef3f5 100%);
}

.profile-shell {
    width: min(1240px, calc(100% - 56px));
    margin: 0 auto;
    padding: 42px 0 64px;
}

.profile-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 24px;
    padding-right: 72px;
}

.profile-heading h1 {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(2rem, 3.2vw, 3.1rem);
    font-weight: 920;
    line-height: 0.98;
    letter-spacing: 0;
}

.profile-heading p {
    margin: 10px 0 0;
    color: #667386;
    font-size: 1.02rem;
    font-weight: 650;
}

.profile-heading-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-heading-actions a {
    color: #22314c;
    font-weight: 850;
    text-decoration: none;
}

.profile-mini-avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(145deg, #1e6f63, #0d4a45);
    font-size: 1rem;
    font-weight: 950;
    box-shadow: 0 12px 28px rgba(7, 26, 52, 0.14);
}

.profile-card,
.profile-flash,
.profile-errors {
    border: 1px solid rgba(7, 26, 52, 0.07);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 45px rgba(7, 26, 52, 0.055);
    backdrop-filter: blur(12px);
}

.profile-flash {
    margin: 0 0 16px;
    padding: 14px 16px;
    color: var(--brand-dark);
    font-weight: 850;
}

.profile-errors {
    display: grid;
    gap: 6px;
    margin: 0 0 16px;
    border-color: rgba(163, 54, 32, 0.22);
    background: #fff7f2;
    padding: 14px 16px;
}

.profile-errors p {
    margin: 0;
    color: #8a2e1f;
    font-weight: 820;
}

.profile-card {
    padding: 24px;
}

.profile-summary-card {
    display: grid;
    grid-template-columns: 112px minmax(280px, 1fr) minmax(300px, 0.72fr) auto;
    gap: 24px;
    align-items: center;
    min-height: 176px;
    margin-bottom: 22px;
    padding: 28px 30px;
}

.profile-avatar-wrap {
    display: grid;
    place-items: center;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    color: #fff;
    background: radial-gradient(circle at 30% 24%, #007364, var(--brand-dark));
    box-shadow: 0 18px 34px rgba(0, 91, 86, 0.2);
    font-size: 2.18rem;
    font-weight: 950;
    letter-spacing: 0;
}

.profile-summary-main h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.52rem;
    line-height: 1.1;
}

.profile-summary-main > p {
    margin: 7px 0 18px;
    color: #243451;
    font-size: 0.98rem;
    font-weight: 850;
}

.profile-contact-list {
    display: grid;
    gap: 11px;
    margin: 0;
}

.profile-contact-list div {
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
}

.profile-contact-list dt,
.profile-summary-meta span,
.profile-list span,
.profile-usage-grid span {
    color: #59677d;
    font-size: 0.78rem;
    font-weight: 850;
}

.profile-contact-list dd {
    margin: 0;
    color: var(--ink);
    overflow-wrap: anywhere;
    font-weight: 780;
}

.profile-summary-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    align-self: stretch;
    border-left: 1px solid rgba(7, 26, 52, 0.08);
    border-right: 1px solid rgba(7, 26, 52, 0.08);
}

.profile-summary-meta div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    padding: 0 22px;
}

.profile-summary-meta div + div {
    border-left: 1px solid rgba(7, 26, 52, 0.08);
}

.profile-summary-meta strong {
    color: var(--ink);
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.profile-edit-button {
    min-height: 44px;
    white-space: nowrap;
}

.profile-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 22px;
}

.profile-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.profile-icon-bubble {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: #e2f5ed;
    font-size: 0.82rem;
    font-weight: 950;
}

.profile-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.14rem;
    line-height: 1.15;
}

.profile-card-heading p,
.profile-support-card p,
.profile-muted {
    margin: 7px 0 0;
    color: #59677d;
    line-height: 1.45;
}

.profile-list {
    overflow: hidden;
    border: 1px solid rgba(7, 26, 52, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.profile-list > div {
    position: relative;
    display: grid;
    grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 62px;
    padding: 14px 18px;
}

.profile-list > div + div {
    border-top: 1px solid rgba(7, 26, 52, 0.08);
}

.profile-list strong {
    color: var(--ink);
    font-size: 0.96rem;
    overflow-wrap: anywhere;
}

.profile-status-pill {
    border-radius: 999px;
    color: #6d3b2f;
    background: #fff0e8;
    padding: 6px 10px;
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 900;
}

.profile-status-pill.is-active {
    color: #00614f;
    background: #dff5ea;
}

.profile-inline-link,
.profile-link-button {
    border: 0;
    color: var(--brand);
    background: transparent;
    padding: 0;
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.profile-link-button:hover,
.profile-inline-link:hover {
    color: var(--brand-dark);
}

.profile-usage-card {
    margin-bottom: 22px;
}

.profile-usage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.profile-usage-grid div {
    display: grid;
    gap: 7px;
    border: 1px solid rgba(7, 26, 52, 0.08);
    border-radius: 8px;
    background: rgba(247, 251, 250, 0.86);
    padding: 14px 16px;
}

.profile-usage-grid strong {
    color: var(--ink);
    font-size: 1.18rem;
}

.profile-recent-searches {
    border-top: 1px solid rgba(7, 26, 52, 0.08);
    padding-top: 20px;
}

.profile-recent-searches h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 1rem;
}

.profile-search-list {
    display: grid;
    gap: 10px;
}

.profile-search-list article {
    display: grid;
    gap: 5px;
    border: 1px solid rgba(7, 26, 52, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    padding: 13px 15px;
}

.profile-search-list strong {
    color: var(--ink);
}

.profile-search-list p {
    margin: 0;
    color: #4f5f76;
    line-height: 1.38;
}

.profile-search-list span {
    color: #718095;
    font-size: 0.82rem;
    font-weight: 820;
}

.profile-support-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
}

.profile-support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.profile-support-actions .secondary-button {
    min-height: 46px;
    text-decoration: none;
}

.profile-empty-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.profile-empty-state h2 {
    margin-top: 14px;
}

.profile-drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
    border: 0;
    background: rgba(7, 26, 52, 0.34);
    cursor: pointer;
}

.profile-edit-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1510;
    width: min(440px, 100%);
    height: 100vh;
    overflow: auto;
    background: #fff;
    box-shadow: -22px 0 60px rgba(7, 26, 52, 0.18);
    transform: translateX(102%);
    transition: transform 0.22s ease;
}

.is-profile-edit-open .profile-drawer-scrim {
    display: block;
}

.is-profile-edit-open .profile-edit-drawer {
    transform: translateX(0);
}

.profile-edit-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px;
}

.profile-edit-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.profile-edit-header h2 {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: 1.65rem;
}

.profile-edit-header button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(7, 26, 52, 0.12);
    border-radius: 999px;
    color: #42536d;
    background: #fff;
    font-size: 1.45rem;
    cursor: pointer;
}

.profile-edit-form label {
    display: grid;
    gap: 8px;
}

.profile-edit-form label span {
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 850;
}

.profile-edit-form input {
    width: 100%;
    border: 1px solid rgba(7, 26, 52, 0.14);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    padding: 12px 13px;
    font: inherit;
}

.profile-edit-note {
    margin: 0;
    color: #59677d;
    font-size: 0.9rem;
    line-height: 1.45;
}

.profile-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.profile-edit-actions .primary-button,
.profile-edit-actions .secondary-button {
    min-height: 46px;
}

.login-page {
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 82% 18%, rgba(0, 91, 86, 0.12), transparent 30%),
        linear-gradient(180deg, #f7f9fb 0%, #eef3f5 100%);
}

.login-shell {
    display: grid;
    place-items: center;
    width: min(100% - 40px, 1180px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 58px 0;
}

.login-panel {
    width: min(100%, 440px);
    border: 1px solid rgba(7, 26, 52, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 22px 60px rgba(7, 26, 52, 0.11);
    padding: 30px;
    backdrop-filter: blur(12px);
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--brand-dark);
    text-decoration: none;
}

.login-brand .brand-mark {
    width: 30px;
    height: 30px;
}

.login-brand strong {
    color: var(--brand-dark);
    font-size: 1rem;
    font-weight: 920;
}

.login-copy {
    margin: 34px 0 22px;
}

.login-copy h1 {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 2rem;
    font-weight: 930;
    line-height: 1;
    letter-spacing: 0;
}

.login-copy p {
    margin: 10px 0 0;
    color: #59677d;
    line-height: 1.45;
    font-weight: 650;
}

.login-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.login-form label {
    display: grid;
    gap: 8px;
}

.login-form label span {
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 850;
}

.login-form input {
    width: 100%;
    border: 1px solid rgba(7, 26, 52, 0.14);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    padding: 13px 14px;
    font: inherit;
}

.login-form input:focus {
    border-color: rgba(0, 91, 86, 0.44);
    outline: 3px solid rgba(0, 91, 86, 0.12);
}

.login-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -3px;
}

.login-row a,
.login-secondary a {
    color: var(--brand);
    font-weight: 870;
    text-decoration: none;
}

.login-row a:hover,
.login-secondary a:hover {
    color: var(--brand-dark);
}

.login-form .primary-button {
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
}

.login-error,
.login-notice,
.login-success {
    margin: 0 0 16px;
    border-radius: 8px;
    padding: 12px 13px;
    font-size: 0.9rem;
    font-weight: 780;
    line-height: 1.4;
}

.login-error {
    border: 1px solid rgba(163, 54, 32, 0.22);
    color: #8a2e1f;
    background: #fff7f2;
}

.login-notice {
    border: 1px solid rgba(0, 91, 86, 0.14);
    color: #19534c;
    background: #eef8f4;
}

.login-success {
    border: 1px solid rgba(0, 91, 86, 0.16);
    color: #0e5a4c;
    background: #e8f7ef;
}

.login-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 22px;
    color: #667386;
    font-size: 0.9rem;
}

/* ── Login V2: split layout ── */

.login-page-v2 {
    background: #f0f2f5;
}

.login-shell-v2 {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 32px 20px;
}

.login-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(100%, 1020px);
    min-height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(10, 14, 40, 0.18);
}

/* Left: form column */
.login-form-col {
    background: #fff;
    padding: 44px 48px 36px;
    display: flex;
    flex-direction: column;
}

.login-brand-v2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #071a34;
    text-decoration: none;
    margin-bottom: 44px;
}

.login-brand-v2 .brand-mark {
    width: 28px;
    height: 28px;
}

.login-brand-v2 strong {
    font-size: 1rem;
    font-weight: 900;
    color: #071a34;
}

.login-copy-v2 {
    margin-bottom: 28px;
}

.login-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    border-radius: 20px;
    background: #e2f5ed;
    padding: 4px 12px;
    color: var(--brand-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.login-copy-v2 h1 {
    margin: 0 0 10px;
    color: #071a34;
    font-size: 1.75rem;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: 0;
}

.login-copy-v2 p {
    margin: 0;
    color: #59677d;
    font-size: 0.93rem;
    line-height: 1.5;
    font-weight: 500;
}

.login-form-v2 {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field-v2 {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.login-field-v2 label {
    color: #071a34;
    font-size: 0.86rem;
    font-weight: 800;
}

.login-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-forgot-v2 {
    color: var(--brand);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.login-forgot-v2:hover {
    text-decoration: underline;
}

.login-input-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 13px;
    width: 17px;
    height: 17px;
    color: #9baab8;
    pointer-events: none;
    flex-shrink: 0;
}

.login-input-shell input {
    width: 100%;
    border: 1.5px solid #e2e6ec;
    border-radius: 10px;
    color: #071a34;
    background: #fff;
    padding: 12px 14px 12px 40px;
    font: inherit;
    font-size: 0.92rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.login-input-shell input::placeholder {
    color: #aab4c2;
    font-weight: 450;
}

.login-input-shell input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 91, 86, 0.14);
}

.login-submit-v2 {
    width: 100%;
    margin-top: 6px;
    border: none;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    padding: 14px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.login-submit-v2:hover {
    background: var(--brand-dark);
}

.login-submit-v2:active {
    transform: scale(0.99);
}

.login-signup-v2 {
    margin: 22px 0 0;
    color: #59677d;
    font-size: 0.88rem;
    text-align: center;
}

.login-signup-v2 a {
    color: var(--brand);
    font-weight: 750;
    text-decoration: none;
}

.login-signup-v2 a:hover {
    text-decoration: underline;
}

.login-footer-v2 {
    margin: auto 0 0;
    padding-top: 28px;
    color: #aab4c2;
    font-size: 0.8rem;
    text-align: center;
}

/* Right: hero column */
.login-hero-col {
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
    padding: 44px 44px 36px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.login-hero-col::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.login-hero-copy {
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
}

.login-hero-copy h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.85rem;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0;
}

.login-hero-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 320px;
}

.login-hero-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.login-map-frame {
    width: 100%;
    max-width: 340px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.login-map-svg {
    width: 100%;
    height: auto;
    display: block;
}

.login-da-card {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 20px;
    border-radius: 14px;
    background: #fff;
    padding: 16px 18px;
    box-shadow: 0 12px 32px rgba(10, 14, 40, 0.22);
}

.login-da-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #e2f5ed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
}

.login-da-icon svg {
    width: 18px;
    height: 18px;
}

.login-da-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.login-da-body strong {
    color: #071a34;
    font-size: 0.85rem;
    font-weight: 850;
}

.login-da-body span {
    color: #59677d;
    font-size: 0.78rem;
    font-weight: 550;
}

.login-da-body p {
    margin: 4px 0 0;
    color: #59677d;
    font-size: 0.8rem;
    line-height: 1.4;
}

.login-da-badge {
    flex-shrink: 0;
    align-self: flex-start;
    border-radius: 20px;
    background: #e8f7ef;
    padding: 3px 9px;
    color: #0e5a4c;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

/* Responsive: stack on narrow screens */
@media (max-width: 760px) {
    .login-split {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .login-form-col {
        padding: 36px 28px 28px;
    }

    .login-hero-col {
        display: none;
    }
}

@media (max-width: 980px) {
    .site-header {
        min-height: 500px;
        background:
            linear-gradient(90deg, rgba(255, 252, 248, 0.98) 0%, rgba(255, 252, 248, 0.92) 58%, rgba(255, 252, 248, 0.35) 100%),
            url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1400&q=80") center / cover no-repeat;
    }

    .header-actions {
        right: 24px;
    }

    form {
        grid-template-columns: 1fr;
    }

    .field-wide,
    .field-idea {
        grid-row: auto;
    }

    .search-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .checkbox-field {
        grid-column: 1 / -1;
    }

    .map-results-shell {
        grid-template-columns: 1fr;
    }

    .map-results-shell.is-detail-open {
        grid-template-columns: 1fr;
    }

    .map-results-shell.is-detail-open .map-shell,
    .map-results-shell.is-detail-open .map-detail-panel {
        grid-column: 1;
    }

    .map-results-shell.is-detail-open .map-detail-panel {
        grid-row: 2;
    }

    .map-results-shell.is-detail-open .map-shell {
        grid-row: 1;
    }

    .da-detail-hero {
        padding: 26px 84px 16px 26px;
    }

    .detail-hero-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .detail-hero-actions {
        margin-left: 0;
    }

    .detail-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: calc(100% - 52px);
        margin: 0 26px 20px;
    }

    .detail-tabs button {
        padding: 8px 12px;
    }

    .da-detail-body {
        padding: 4px 26px 30px;
    }

    .detail-factor-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .report-footer {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .map-sidebar {
        min-height: auto;
    }

    .sidebar-results {
        max-height: 320px;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        padding-right: 0;
    }

    .filter-empty-space {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pdf-summary-form {
        grid-template-columns: 1fr;
    }

    .pdf-summary-actions,
    .summary-followup-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .secondary-button,
    .pdf-summary-form .primary-button,
    .summary-followup-form .primary-button {
        width: 100%;
    }

    .automation-steps ol {
        grid-template-columns: 1fr;
    }

    .pricing-card.is-featured {
        transform: none;
    }

    .pricing-feature-band {
        border-radius: 18px;
    }

    .waitlist-form {
        grid-template-columns: 1fr;
    }

    .waitlist-submit,
    .waitlist-return {
        width: 100%;
    }

    .support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .support-contact-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .support-contact-strip .primary-button {
        width: 100%;
    }

    .profile-shell {
        width: min(100% - 28px, 1440px);
    }

    .profile-heading {
        padding-right: 72px;
    }

    .profile-summary-card,
    .profile-layout-grid,
    .profile-usage-grid {
        grid-template-columns: 1fr;
    }

    .profile-summary-card {
        gap: 22px;
        text-align: left;
    }

    .profile-summary-meta {
        grid-template-columns: 1fr;
        border: 1px solid rgba(7, 26, 52, 0.08);
        border-radius: 8px;
    }

    .profile-summary-meta div {
        min-height: 74px;
        padding: 14px 16px;
    }

    .profile-summary-meta div + div {
        border-top: 1px solid rgba(7, 26, 52, 0.08);
        border-left: 0;
    }

    .profile-edit-button,
    .profile-support-actions,
    .profile-support-actions .secondary-button {
        width: 100%;
    }

    .profile-support-card,
    .profile-empty-state {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-support-actions {
        justify-content: stretch;
    }

    .dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 720px) {
    main {
        width: min(100% - 22px, 1180px);
    }

    .site-header {
        min-height: 490px;
        padding-top: 28px;
    }

    .header-actions {
        top: 18px;
        right: 18px;
    }

    .site-menu-dropdown {
        min-width: 176px;
    }

    .support-shell {
        width: min(100% - 22px, 1160px);
        padding: 42px 0;
    }

    .support-hero {
        justify-items: stretch;
        text-align: left;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .support-hero h1 {
        font-size: 2.3rem;
    }

    .support-hero > p {
        font-size: 0.98rem;
    }

    .support-search input {
        min-height: 52px;
    }

    .support-topic-card {
        min-height: 0;
        padding: 18px;
    }

    .support-topic-actions a {
        width: 100%;
        text-align: center;
    }

    .profile-shell {
        width: min(100% - 20px, 1440px);
        padding-top: 28px;
    }

    .profile-heading {
        flex-direction: column;
        padding-right: 0;
    }

    .profile-heading h1 {
        font-size: 1.95rem;
    }

    .profile-heading-actions {
        width: 100%;
        justify-content: space-between;
    }

    .profile-card {
        padding: 18px;
    }

    .profile-avatar {
        width: 88px;
        height: 88px;
        font-size: 2rem;
    }

    .profile-contact-list div,
    .profile-list > div {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .profile-edit-drawer {
        width: 100%;
    }

    .profile-edit-form {
        padding: 22px;
    }

    .profile-edit-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .profile-heading p,
    .profile-search-list p {
        overflow-wrap: anywhere;
    }

    .login-shell {
        width: min(100% - 22px, 1180px);
        padding: 42px 0;
    }

    .login-panel {
        padding: 22px;
    }

    .subscribed-results-view .site-header {
        min-height: 142px;
        padding: 18px;
    }

    .subscribed-results-view .results-header-copy {
        width: 100%;
        gap: 16px;
    }

    .search-summary-bar {
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 12px;
    }

    .search-summary-categories {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }

    .search-summary-action {
        width: 44px;
        height: 44px;
    }

    .import-grid,
    .import-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-heading,
    .status-bar-meta {
        display: grid;
    }

    .dashboard-metrics,
    .dashboard-footnotes {
        grid-template-columns: 1fr;
    }

    .dashboard-metrics strong {
        font-size: 1.6rem;
    }

    h1 {
        font-size: clamp(2.35rem, 9.5vw, 3.25rem);
    }

    .subheadline {
        margin-top: 42px;
        font-size: 1rem;
    }

    main {
        margin-top: -98px;
    }

    .search-panel-header {
        display: grid;
    }

    form {
        grid-template-columns: 1fr;
    }

    .search-panel {
        padding: 16px;
    }

    .search-card {
        min-height: auto;
        padding: 16px;
    }

    .trust-note {
        align-items: flex-start;
    }

    .search-options,
    .search-action {
        grid-template-columns: 1fr;
    }

    .search-action {
        display: grid;
        gap: 20px;
    }

    .primary-button {
        order: 1;
        min-width: 0;
        width: 100%;
    }

    .trust-note {
        order: 2;
        margin-top: 2px;
    }

    #map {
        height: 420px;
    }

    .map-detail-close {
        top: 18px;
        right: 18px;
        width: 32px;
        height: 32px;
    }

    .da-detail-hero {
        padding: 18px 60px 12px 18px;
    }

    .detail-score-lockup {
        gap: 10px;
    }

    .detail-score-ring {
        width: 48px;
        height: 48px;
    }

    .detail-score-ring::before {
        width: 39px;
        height: 39px;
    }

    .detail-score-ring span {
        font-size: 12px;
    }

    .detail-score-lockup strong {
        font-size: 12px;
    }

    .detail-score-lockup > div:last-child span,
    .da-detail .popup-meta-line,
    .detail-save-action,
    .detail-tabs button {
        font-size: 12px;
    }

    .detail-match-card p,
    .detail-analysis-card p,
    .detail-card p {
        font-size: 13px;
    }

    .detail-takeaway-card p {
        font-size: 14px;
    }

    .detail-factor-list li {
        font-size: 13px;
    }

    .da-detail-hero h3 {
        margin-top: 16px;
        font-size: 16px;
    }

    .detail-save-action {
        min-height: 30px;
        padding: 6px 10px;
    }

    .detail-tabs {
        width: calc(100% - 40px);
        margin: 0 20px 14px;
    }

    .da-detail-body {
        padding: 3px 20px 24px;
    }

    .detail-takeaway-card {
        padding: 20px;
    }

    .table-wrap {
        display: none;
    }

    .mobile-results {
        display: grid;
        gap: 12px;
    }

    .result-card {
        border-radius: 8px;
        padding: 16px;
        box-shadow: none;
    }

    .result-card div:first-child {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }

    .result-card h3,
    .result-card p {
        margin: 9px 0;
    }
}

@media (max-width: 430px) {
    .support-shell {
        width: min(100% - 20px, 1160px);
        padding: 76px 0 28px;
    }

    .support-hero {
        margin-bottom: 18px;
    }

    .support-hero .eyebrow {
        margin-top: 22px;
    }

    .support-hero h1 {
        font-size: 2rem;
    }

    .support-contact-strip {
        padding: 16px;
    }

    .support-contact-strip .primary-button {
        min-width: 0;
    }

    .profile-shell {
        width: min(100% - 20px, 1440px);
    }

    .profile-heading-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-summary-card {
        padding: 20px 18px;
    }

    .profile-contact-list div,
    .profile-list > div {
        gap: 5px;
    }

    .profile-usage-grid div,
    .profile-search-list article {
        padding: 12px;
    }
}

/* Compact DA detail header and navigation for phone-sized screens. */
@media (max-width: 760px) {
    .map-detail-close {
        top: 13px;
        right: 13px;
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .da-detail-hero {
        padding: 14px 14px 10px;
    }

    .detail-hero-top {
        align-items: center;
        flex-direction: row;
        gap: 8px;
        padding-right: 38px;
    }

    .detail-score-lockup {
        gap: 8px;
    }

    .detail-score-ring {
        width: 40px;
        height: 40px;
    }

    .detail-score-ring::before {
        width: 33px;
        height: 33px;
    }

    .detail-score-ring span {
        font-size: 10px;
    }

    .detail-score-lockup strong {
        font-size: 11.5px;
        line-height: 1.1;
    }

    .detail-score-lockup > div:last-child span {
        margin-top: 1px;
        font-size: 10px;
        line-height: 1.18;
    }

    .detail-hero-actions {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .detail-save-action {
        min-height: 30px;
        border-radius: 8px;
        padding: 5px 8px;
        font-size: 11px;
        font-weight: 800;
    }

    .detail-save-label-full {
        display: none;
    }

    .detail-save-label-short {
        display: inline;
    }

    .da-detail-hero h3 {
        margin: 12px 0 6px;
        font-size: 16px;
        line-height: 1.2;
        letter-spacing: -0.015em;
    }

    .da-detail .popup-meta-line {
        gap: 5px 11px;
        font-size: 10.5px;
        line-height: 1.3;
    }

    .detail-tabs,
    .detail-tabs-lookup {
        display: flex;
        width: calc(100% - 28px);
        margin: 0 14px 10px;
        gap: 2px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
        scroll-snap-type: x proximity;
    }

    .detail-tabs button {
        flex: 0 0 auto;
        min-height: 32px;
        border-radius: 6px;
        padding: 6px 10px;
        font-size: 11px;
        scroll-snap-align: start;
    }

    .detail-tab-ask-away-icon,
    .detail-tab-ask-away-icon svg {
        width: 16px;
        height: 16px;
    }

    .da-detail-body {
        gap: 10px;
        padding: 2px 14px 20px;
    }

    .detail-panel {
        gap: 10px;
    }

    .detail-takeaway-card {
        border: 1px solid rgba(7, 26, 52, 0.07);
        border-radius: 12px;
        background: #f7f8f6;
        padding: 13px 14px 14px;
    }

    .detail-analysis-card,
    .detail-card {
        border: 1px solid rgba(7, 26, 52, 0.07);
        border-radius: 12px;
        padding: 12px 14px;
    }

    .detail-match-card h4,
    .detail-takeaway-card h4,
    .detail-factor-card h4,
    .detail-analysis-card h4,
    .detail-card h4 {
        margin-bottom: 6px;
        color: #5f6863;
        font-size: 11.5px;
        font-weight: 800;
        letter-spacing: -0.01em;
        text-transform: none;
    }

    .detail-match-card p,
    .detail-takeaway-card p,
    .detail-analysis-card p,
    .detail-card p {
        font-size: 13px;
        line-height: 1.45;
    }
}
