:root {
    --color-primary: #7764c5;
    --color-secondary: #e04146;
    --color-accent: #0d0d0d;
    --color-neutral-0: #ffffff;
    --color-neutral-100: #f5f5f5;
    --color-success: #2d9c5e;
    --color-warning: #f2994a;
    --color-border: rgba(13, 13, 13, 0.1);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
    --font-heading: "Poppins", "Inter", Arial, sans-serif;
    --font-body: "Inter", Arial, sans-serif;
}

html,
body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--color-neutral-100);
    color: var(--color-accent);
    font-family: var(--font-body);
}

h1:focus {
    outline: none;
}

.boot-splash {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(111, 91, 209, 0.96), rgba(179, 90, 214, 0.86) 42%, rgba(243, 58, 58, 0.92)),
        #231447;
}

.boot-splash-panel {
    display: grid;
    justify-items: center;
    gap: 14px;
    width: min(420px, 100%);
    text-align: center;
}

.boot-splash-panel img {
    width: min(260px, 72vw);
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
}

.boot-splash-panel span {
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.84;
}

.boot-splash-panel strong {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 5vw, 2.6rem);
    line-height: 1.08;
}

.boot-splash-bar {
    width: min(260px, 68vw);
    height: 4px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
}

.boot-splash-bar i {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: #fff;
    animation: boot-splash-slide 1.2s ease-in-out infinite;
}

@keyframes boot-splash-slide {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(260%);
    }
}

.topbar {
    height: 72px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(12px);
}

.brand-logo {
    width: 148px;
    max-height: 34px;
    object-fit: contain;
}

.brand-copy {
    margin-left: 18px;
    line-height: 1.05;
}

.brand-title {
    font-weight: 700;
    font-family: var(--font-heading);
}

.brand-copy span {
    display: block;
    margin-top: 2px;
    color: #686870;
    font-size: 0.74rem;
    font-weight: 600;
}

.market-shell {
    max-width: 1520px;
    margin: 0 auto;
    padding: 32px 24px 34px;
}

.market-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(119, 100, 197, 0.1), rgba(224, 65, 70, 0.08)),
        var(--color-neutral-0);
    box-shadow: var(--shadow-card);
}

.hero-copy {
    max-width: 740px;
}

.brand-kicker {
    color: var(--color-secondary);
    font-weight: 700;
}

.hero-title {
    margin-top: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.hero-subtitle {
    max-width: 620px;
    color: #57575f;
    line-height: 1.5;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(96px, 1fr));
    gap: 10px;
    min-width: 340px;
}

.metric-tile {
    padding: 14px 16px;
    border: 1px solid rgba(13, 13, 13, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.metric-tile span {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
}

.metric-tile small {
    color: #686870;
    font-weight: 600;
}

.market-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-neutral-0);
    box-shadow: var(--shadow-card);
}

.view-switch {
    display: inline-grid;
    grid-auto-flow: column;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(13, 13, 13, 0.08);
    border-radius: 8px;
    background: #f7f7f8;
}

.view-switch button {
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #4a4a52;
    font: 700 0.9rem var(--font-body);
    cursor: pointer;
}

.view-switch button.active {
    background: var(--color-accent);
    color: #fff;
    box-shadow: var(--shadow-card);
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(420px, 1fr) 48px;
    align-items: center;
    gap: 12px;
}

.filter-row > * {
    min-width: 0;
}

.trade-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.trade-filter button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(13, 13, 13, 0.12);
    border-radius: 999px;
    background: #fff;
    color: #3c3c43;
    font: 700 0.86rem var(--font-body);
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.trade-filter button:hover {
    border-color: rgba(119, 100, 197, 0.42);
    transform: translateY(-1px);
}

.trade-filter button.active {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: #fff;
    box-shadow: var(--shadow-card);
}

.refresh-button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.muted {
    color: #6e6e76;
}

.market-grid {
    display: grid;
    grid-template-columns: minmax(440px, 0.86fr) minmax(520px, 1.14fr);
    gap: 20px;
    margin-top: 22px;
}

.project-list {
    display: grid;
    gap: 12px;
    align-content: start;
    max-height: calc(100vh - 246px);
    overflow: auto;
    padding-right: 4px;
}

.project-card {
    display: grid;
    grid-template-columns: 184px 1fr;
    min-height: 168px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.project-card:hover {
    border-color: rgba(119, 100, 197, 0.45);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

.project-image,
.detail-cover,
.photo-thumb {
    background-color: #ececf2;
    background-position: center;
    background-size: cover;
}

.project-image {
    display: grid;
    place-items: center;
    min-height: 168px;
    background:
        linear-gradient(135deg, rgba(119, 100, 197, 0.16), rgba(224, 65, 70, 0.12)),
        #f0f0f4;
}

.image-placeholder {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--color-primary);
}

.project-body {
    display: grid;
    grid-template-rows: auto auto auto auto 1fr;
    gap: 8px;
    padding: 16px 18px;
}

.project-card-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trade-pill,
.state-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
}

.trade-pill {
    color: #fff;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.state-pill.success {
    color: var(--color-success);
    border: 1px solid rgba(45, 156, 94, 0.26);
    background: rgba(45, 156, 94, 0.08);
}

.project-title,
.detail-title {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.22;
}

.location-line {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4f4f58;
    font-size: 0.91rem;
    font-weight: 600;
}

.trade-status-line {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9a3412;
    width: fit-content;
    padding: 6px 9px;
    border-radius: 999px;
    background: #fff7ed;
    font-size: 0.82rem;
    font-weight: 800;
}

.bid-line {
    color: var(--color-primary);
    font-size: 0.84rem;
    font-weight: 800;
}

.card-action-row {
    display: flex;
    align-items: center;
    align-self: end;
    justify-content: flex-end;
    gap: 4px;
    color: var(--color-accent);
    font-size: 0.86rem;
    font-weight: 800;
}

.map-panel {
    position: sticky;
    top: 86px;
    height: calc(100vh - 118px);
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.map-panel-header {
    position: absolute;
    top: 14px;
    left: 58px;
    right: 14px;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid rgba(13, 13, 13, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
}

.map-panel-header strong {
    display: block;
    font-family: var(--font-heading);
}

.map-panel-header span {
    color: #696970;
    font-size: 0.82rem;
    font-weight: 700;
}

#project-map {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.leaflet-container {
    max-width: 100%;
    overflow: hidden;
}

.portal-loading {
    display: grid;
    grid-template-columns: minmax(320px, 0.72fr) minmax(360px, 1fr);
    gap: 20px;
    margin-top: 22px;
}

.portal-loading-hero {
    display: grid;
    align-content: center;
    justify-items: start;
    min-height: 420px;
    padding: 42px;
    overflow: hidden;
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(111, 91, 209, 0.96), rgba(179, 90, 214, 0.86) 42%, rgba(243, 58, 58, 0.92)),
        #231447;
    box-shadow: var(--shadow-card);
}

.portal-loading-hero img {
    width: min(260px, 72%);
    margin-bottom: 34px;
    filter: brightness(0) invert(1);
}

.portal-loading-hero span {
    margin-bottom: 10px;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.82;
}

.portal-loading-hero strong {
    max-width: 430px;
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 4vw, 3.35rem);
    line-height: 1.04;
}

.portal-loading-hero small {
    max-width: 390px;
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.84;
}

.skeleton-stack {
    display: grid;
    align-content: start;
    gap: 12px;
}

.skeleton-card {
    display: grid;
    grid-template-columns: 184px 1fr;
    min-height: 168px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.skeleton-card > div,
.skeleton-card span,
.skeleton-card strong,
.skeleton-card p {
    position: relative;
    overflow: hidden;
    background: #ececf2;
}

.skeleton-card > div::after,
.skeleton-card span::after,
.skeleton-card strong::after,
.skeleton-card p::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    animation: skeleton-shimmer 1.45s infinite;
}

.skeleton-card section {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 18px;
}

.skeleton-card span {
    width: 96px;
    height: 24px;
    border-radius: 999px;
}

.skeleton-card strong {
    width: min(100%, 330px);
    height: 24px;
    border-radius: 6px;
}

.skeleton-card p {
    width: min(82%, 260px);
    height: 14px;
    margin: 0;
    border-radius: 999px;
}

.skeleton-card p:last-child {
    width: min(64%, 210px);
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.loading-row,
.empty-state {
    display: grid;
    place-items: center;
    min-height: 260px;
}

.empty-state {
    gap: 12px;
    padding: 36px 24px;
    border: 1px dashed rgba(13, 13, 13, 0.18);
    border-radius: 8px;
    background: #fff;
    color: #5b5b64;
    text-align: center;
}

.empty-state .mud-icon-root {
    width: 48px;
    height: 48px;
    padding: 10px;
    border-radius: 999px;
    color: var(--color-primary);
    background: rgba(119, 100, 197, 0.1);
}

.empty-state strong {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-accent);
}

.empty-state span {
    max-width: 320px;
    line-height: 1.45;
}

.detail-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1990;
    background: rgba(13, 13, 13, 0.34);
    backdrop-filter: blur(4px);
}

.detail-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2000;
    width: min(520px, 100vw);
    height: 100dvh;
    overflow-y: auto;
    background: #fff;
    box-shadow: -18px 0 44px rgba(13, 13, 13, 0.22);
}

.detail-cover {
    position: relative;
    height: 260px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(119, 100, 197, 0.16), rgba(224, 65, 70, 0.12)),
        #f0f0f4;
}

.detail-close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(13, 13, 13, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: var(--shadow-card);
}

.detail-content {
    padding: 24px;
}

.detail-trade-status {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(234, 88, 12, 0.22);
    border-radius: 8px;
    background: #fff7ed;
    color: #7c2d12;
}

.image-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 20px;
}

.photo-thumb {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgba(13, 13, 13, 0.08);
    background-color: #ececf2;
    background-position: center;
    background-size: cover;
    color: var(--color-primary);
    cursor: zoom-in;
}

.photo-thumb:disabled {
    cursor: default;
    opacity: 0.74;
}

.photo-thumb:not(:disabled):hover {
    border-color: rgba(119, 100, 197, 0.54);
    box-shadow: var(--shadow-hover);
}

.detail-empty-images {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 126px;
    margin-top: 20px;
    border: 1px dashed rgba(13, 13, 13, 0.18);
    border-radius: 8px;
    background: #f7f7f8;
    color: #686870;
    text-align: center;
    font-weight: 700;
}

.detail-image-loading {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.hero-ab-panel {
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid rgba(13, 13, 13, 0.1);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.hero-ab-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(119, 100, 197, 0.12), rgba(224, 65, 70, 0.08));
}

.hero-ab-head span {
    display: block;
    margin-bottom: 4px;
    color: var(--color-secondary);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-ab-head strong {
    display: block;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 1.02rem;
    line-height: 1.2;
}

.hero-ab-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px 0;
}

.hero-ab-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f3f3f6;
    color: #555560;
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-ab-lines {
    display: grid;
    gap: 8px;
    padding: 14px 16px 16px;
}

.hero-ab-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid rgba(13, 13, 13, 0.08);
    border-radius: 8px;
    background: #fafafa;
}

.hero-ab-line strong,
.hero-ab-line span,
.hero-ab-line small {
    display: block;
}

.hero-ab-line strong {
    color: var(--color-accent);
    font-weight: 900;
    line-height: 1.25;
}

.hero-ab-line span {
    margin-top: 4px;
    color: #5f5f68;
    font-size: 0.86rem;
    line-height: 1.35;
}

.hero-ab-line .hero-ab-html {
    display: block;
}

.hero-ab-html p,
.hero-ab-html div {
    margin: 0 0 7px;
}

.hero-ab-html p:last-child,
.hero-ab-html div:last-child,
.hero-ab-html ul:last-child,
.hero-ab-html ol:last-child {
    margin-bottom: 0;
}

.hero-ab-html ul,
.hero-ab-html ol {
    margin: 7px 0 0;
    padding-left: 18px;
}

.hero-ab-html li {
    margin: 4px 0;
}

.hero-ab-line small {
    margin-top: 6px;
    color: #787882;
    font-size: 0.76rem;
    font-weight: 800;
}

.hero-ab-line em {
    padding: 5px 8px;
    border-radius: 999px;
    background: #fff;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.hero-ab-empty {
    padding: 14px 16px 16px;
    color: #6e6e76;
    font-weight: 700;
}

.photo-viewer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2090;
    background: rgba(13, 13, 13, 0.78);
    backdrop-filter: blur(6px);
}

.photo-viewer {
    position: fixed;
    inset: 28px;
    z-index: 2100;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: center;
    gap: 14px;
}

.photo-viewer img {
    max-width: 100%;
    max-height: calc(100dvh - 112px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

.photo-viewer-caption {
    max-width: min(780px, 84vw);
    padding: 8px 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-accent);
    font-size: 0.84rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-viewer-loading {
    display: grid;
    place-items: center;
    width: min(720px, 86vw);
    height: min(520px, 68dvh);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.photo-viewer-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: var(--shadow-card);
}

.photo-viewer-nav {
    position: absolute;
    top: 50%;
    width: 52px;
    height: 52px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: var(--shadow-card);
}

.photo-viewer-nav.previous {
    left: 0;
}

.photo-viewer-nav.next {
    right: 0;
}

.photo-viewer-nav:disabled {
    opacity: 0.34;
}

.onboarding-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2190;
    background: rgba(13, 13, 13, 0.42);
    backdrop-filter: blur(4px);
}

.onboarding-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2200;
    width: min(560px, calc(100vw - 32px));
    padding: 28px;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 72px rgba(13, 13, 13, 0.22);
}

.onboarding-close {
    position: absolute;
    top: 12px;
    right: 12px;
}

.onboarding-title {
    max-width: 420px;
    margin: 8px 0 6px !important;
    color: var(--color-accent);
    font-weight: 900 !important;
}

.onboarding-bubbles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.onboarding-bubbles button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 74px;
    padding: 14px 16px;
    border: 1px solid rgba(13, 13, 13, 0.12);
    border-radius: 8px;
    background: #fff;
    color: var(--color-accent);
    font-weight: 850;
    text-align: left;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.onboarding-bubbles button:hover,
.onboarding-bubbles button.active {
    border-color: var(--color-primary);
    box-shadow: 0 12px 28px rgba(9, 174, 158, 0.14);
    transform: translateY(-1px);
}

.onboarding-bubbles button.active {
    background: linear-gradient(135deg, rgba(9, 174, 158, 0.11), rgba(233, 66, 122, 0.1));
}

.primary-action,
.secondary-action {
    min-height: 44px;
    border-radius: 8px !important;
    font-weight: 800 !important;
    text-transform: none !important;
}

.primary-action {
    color: #fff !important;
    background: var(--color-accent) !important;
}

.primary-action:hover {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary)) !important;
    box-shadow: var(--shadow-hover);
}

.secondary-action {
    color: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff3cd;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

@media (max-width: 980px) {
    .market-hero,
    .market-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-metrics {
        min-width: 0;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .portal-loading {
        grid-template-columns: 1fr;
    }

    .portal-loading-hero {
        min-height: 320px;
        padding: 30px;
    }

    .photo-viewer {
        inset: 16px;
    }

    .photo-viewer-nav {
        width: 46px;
        height: 46px;
    }

    .refresh-button {
        justify-self: start;
    }

    .market-grid {
        grid-template-columns: 1fr;
    }

    .map-panel {
        position: static;
        height: 420px;
    }
}

@media (max-width: 620px) {
    .topbar {
        height: 60px;
    }

    .brand-logo {
        width: 118px;
    }

    .brand-copy {
        display: none;
    }

    .mud-main-content,
    .market-shell {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .market-shell {
        padding: 20px 14px 24px;
    }

    .market-hero {
        gap: 16px;
        padding: 18px;
        overflow: hidden;
    }

    .hero-copy {
        max-width: 100%;
        min-width: 0;
    }

    .brand-kicker {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .hero-title {
        font-size: 1.85rem !important;
        line-height: 1.08;
    }

    .hero-subtitle {
        font-size: 0.92rem !important;
    }

    .hero-metrics,
    .filter-row,
    .view-switch {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
    }

    .filter-row > * {
        width: 100%;
        min-width: 0;
    }

    .market-controls {
        padding: 12px;
        overflow: hidden;
    }

    .view-switch {
        width: 100%;
    }

    .view-switch button {
        padding: 0 10px;
        white-space: normal;
    }

    .trade-filter {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trade-filter button {
        width: 100%;
        padding: 0 10px;
        justify-content: center;
    }

    .project-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-image {
        min-height: 190px;
    }

    .map-panel {
        height: 320px;
        min-height: 320px;
    }

    .map-panel-header {
        left: 54px;
        right: 10px;
        padding: 10px;
    }

    .detail-panel {
        inset: 0;
        width: 100vw;
        max-width: none;
        height: 100dvh;
        box-shadow: none;
    }

    .detail-cover {
        height: 154px;
        padding: 14px;
    }

    .detail-close {
        position: fixed;
        top: 10px;
        right: 10px;
    }

    .detail-content {
        padding: 18px 16px 24px;
    }

    .detail-title {
        font-size: 1.45rem !important;
        overflow-wrap: anywhere;
    }

    .detail-trade-status {
        padding: 10px;
    }

    .hero-ab-head,
    .hero-ab-lines {
        padding-right: 12px;
        padding-left: 12px;
    }

    .hero-ab-meta {
        padding-right: 12px;
        padding-left: 12px;
    }

    .hero-ab-line {
        grid-template-columns: 1fr;
    }

    .hero-ab-line em {
        width: fit-content;
    }

    .image-strip {
        display: flex;
        gap: 10px;
        margin: 16px -16px 0;
        padding: 0 16px 4px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
    }

    .photo-thumb {
        flex: 0 0 86px;
        width: 86px;
        height: 86px;
        scroll-snap-align: start;
    }

    .photo-viewer {
        inset: 10px;
    }

    .photo-viewer img {
        max-height: calc(100dvh - 92px);
    }

    .photo-viewer-nav {
        width: 42px;
        height: 42px;
    }

    .photo-viewer-nav.previous {
        left: -2px;
    }

    .photo-viewer-nav.next {
        right: -2px;
    }

    .onboarding-panel {
        width: calc(100vw - 24px);
        padding: 22px;
    }

    .onboarding-bubbles {
        grid-template-columns: 1fr;
    }
}
