:root {
    --bg: #edf7fd;
    --bg-2: #d7ecf8;
    --panel: #ffffff;
    --panel-soft: #f1f8fd;
    --line: rgba(10, 47, 99, 0.16);
    --text: #123056;
    --muted: #5f7892;
    --brand: #1ea4e5;
    --brand-2: #53c1f2;
    --brand-deep: #0a2f63;
    --ok: #18a96b;
    --danger: #d44863;
    --radius: 8px;
    --shadow: 0 18px 34px rgba(10, 47, 99, 0.10);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", "Trebuchet MS", Verdana, Arial, sans-serif;
    color: var(--text);
    background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(232, 245, 252, 0.98)),
    linear-gradient(135deg, #eff9fe 0%, #f7fbfe 48%, #d6edf8 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    font-size: clamp(1.1rem, 1.4vw, 1.35rem);
}

h2 {
    font-size: clamp(1.4rem, 2.6vw, 2.1rem);
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.1rem;
}

small {
    color: var(--muted);
}

.app-shell {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(247, 249, 252, 0.98), rgba(235, 241, 248, 0.98));
    padding: 1.2rem;
    display: grid;
    align-content: start;
    grid-template-rows: auto auto auto 1fr;
    gap: 1rem;
}

.sidebar-brand-wrap {
    border: 1px solid var(--line);
    border-radius: 4px 18px 4px 18px;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--brand) 0%, #29ace9 100%);
}

.brand {
    display: grid;
    gap: 0.15rem;
    color: var(--brand-deep);
}

.brand::before {
    content: none;
}

.brand-mark {
    display: inline-block;
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: lowercase;
}

.brand-mark-rc {
    color: #ffffff;
    text-transform: uppercase;
}

.brand-mark-rest {
    color: var(--brand-deep);
}

.brand-subtitle {
    display: inline-block;
    font-size: 0.95rem;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.sidebar-brand-wrap p {
    color: rgba(255, 255, 255, 0.92);
    margin-top: 0.6rem;
    font-size: 0.88rem;
}

.sidebar-nav {
    display: grid;
    gap: 0.5rem;
}

.sidebar-nav a {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.75rem 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.74rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.75);
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
    border-color: rgba(30, 164, 229, 0.45);
    color: var(--brand-deep);
    background: rgba(30, 164, 229, 0.12);
}

.sidebar-categories,
.sidebar-note,
.sidebar-status-menu {
    border: 1px solid var(--line);
    border-radius: 4px 14px 4px 14px;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.8);
}

.sidebar-categories strong,
.sidebar-note strong,
.sidebar-status-menu strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.7rem;
}

.status-links {
    display: grid;
    gap: 0.45rem;
}

.status-links a {
    border: 1px solid var(--line);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 0.6rem;
}

.status-links a:hover,
.status-links a.is-active {
    border-color: rgba(31, 111, 255, 0.45);
    color: var(--text);
    background: rgba(31, 111, 255, 0.1);
}

.sidebar-note p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.9rem;
}

.sidebar-user-box {
    border: 1px solid var(--line);
    border-radius: 4px 14px 4px 14px;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.88);
    display: grid;
    gap: 0.45rem;
}

.sidebar-user-box strong {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar-user-box p {
    font-weight: 700;
}

.sidebar-user-box small {
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.chip-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-chip {
    border: 1px solid var(--line);
    border-radius: 2px 10px 2px 10px;
    padding: 0.4rem 0.7rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.85);
}

.category-chip:hover {
    color: var(--text);
    border-color: rgba(31, 111, 255, 0.45);
    background: rgba(31, 111, 255, 0.08);
}

.content-shell {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(30, 164, 229, 0.14), rgba(255, 255, 255, 0.9) 28%, rgba(255, 255, 255, 0.9));
}

.topbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.topbar-label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.68rem;
    color: var(--brand-deep);
    margin-bottom: 0.35rem;
}

.topbar-actions {
    display: flex;
    gap: 0.7rem;
}

.app-main {
    padding: 1.2rem 1.4rem 1.8rem;
}

.board-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 1rem;
}

.auth-shell {
    max-width: 760px;
    margin: 0 auto;
}

.auth-card {
    width: 100%;
}

.profile-form-head {
    margin-top: 1rem;
}

.profile-success {
    border: 1px solid rgba(24, 169, 107, 0.35);
    background: rgba(24, 169, 107, 0.08);
    color: var(--ok);
    border-radius: 12px;
    padding: 0.72rem 0.82rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.board-grid + .board-grid {
    margin-top: 1rem;
}

.compact-gap {
    margin-top: 0.7rem;
}

.top-gap {
    margin-top: 1.2rem;
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(236, 247, 252, 0.98)),
        repeating-linear-gradient(135deg, rgba(30, 164, 229, 0.04) 0 18px, transparent 18px 36px);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(19, 38, 63, 0.04), transparent 42%);
    pointer-events: none;
}

.home-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 220px;
    background:
        linear-gradient(135deg, rgba(30, 164, 229, 0.18), rgba(10, 47, 99, 0.04));
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    pointer-events: none;
}

.home-hero-grid,
.featured-spotlight-grid {
    display: grid;
    gap: 1rem;
}

.home-hero-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
    align-items: start;
}

.home-hero-grid-simple {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.home-hero-stack {
    display: grid;
    gap: 1rem;
}

.hero-kicker-row,
.hero-market-head,
.hero-trust-row,
.hero-quick-links,
.mini-auction-meta,
.home-status-summary {
    display: flex;
    gap: 0.7rem;
}

.hero-kicker-row,
.hero-market-head {
    justify-content: space-between;
    align-items: center;
}

.hero-live-pill,
.listing-state-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px 12px 2px 12px;
    padding: 0.38rem 0.72rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-live-pill {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-deep), #134987);
    box-shadow: 0 10px 24px rgba(212, 72, 99, 0.22);
}

.hero-search-home {
    margin-top: 1.1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(30, 164, 229, 0.22);
    border-radius: 4px 16px 4px 16px;
    padding: 0.45rem;
}

.hero-search-actions {
    display: flex;
    gap: 0.45rem;
}

.hero-search-actions .button {
    white-space: nowrap;
}

.hero-search-home input {
    border: 0;
    background: transparent;
}

.hero-quick-links {
    flex-wrap: wrap;
    margin-top: 1rem;
}

.category-chip-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
}

.category-chip-hero span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    padding: 0.18rem 0.4rem;
    border-radius: 2px 8px 2px 8px;
    background: rgba(30, 164, 229, 0.12);
    color: var(--brand-deep);
    font-size: 0.72rem;
}

.hero-trust-row {
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.hero-trust-row div,
.home-status-summary a {
    border: 1px solid var(--line);
    border-radius: 4px 14px 4px 14px;
    background: rgba(255, 255, 255, 0.84);
}

.hero-trust-row div {
    min-width: 130px;
    padding: 0.85rem 0.95rem;
}

.hero-trust-row strong,
.home-status-summary strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.hero-trust-row span,
.hero-market-note,
.mini-auction-card p,
.home-status-summary span,
.mini-auction-category {
    color: var(--muted);
}

.hero-market-panel {
    border: 1px solid rgba(30, 164, 229, 0.16);
    border-radius: 6px 22px 6px 22px;
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(10, 47, 99, 0.98), rgba(22, 73, 130, 0.98));
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(20, 44, 80, 0.26);
}

.home-info-panel {
    padding: 1rem;
    background: linear-gradient(180deg, rgba(247, 250, 253, 0.98), rgba(240, 245, 250, 0.98));
}

.home-info-panel-inline {
    margin-top: 1rem;
    border-radius: 4px 20px 4px 20px;
}

.home-hero-story {
    margin-top: 0.7rem;
    display: grid;
    gap: 0.5rem;
}

.home-info-lead + .home-info-lead {
    margin-top: 0.35rem;
}

.hero-market-panel h3,
.hero-market-panel strong,
.hero-market-panel a {
    color: #ffffff;
}

.hero-market-panel .eyebrow,
.hero-market-panel .text-link,
.hero-market-panel .pulse-list span,
.hero-market-note {
    color: rgba(219, 234, 255, 0.82);
}

.pulse-list-contrast li {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.92);
}

.hero-market-panel .pulse-list-contrast li span {
    color: #314760;
}

.hero-market-panel .pulse-list-contrast li strong {
    color: #13263f;
}

.hero-market-note {
    margin-top: 0.9rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.featured-spotlight {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 246, 251, 0.98));
}

.featured-spotlight-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
}

.featured-spotlight-grid img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border-radius: 4px 18px 4px 18px;
    object-fit: cover;
}

.featured-spotlight-body {
    display: grid;
    align-content: start;
    gap: 0.85rem;
}

.listing-state-pill {
    color: var(--ok);
    background: rgba(24, 169, 107, 0.1);
    border: 1px solid rgba(24, 169, 107, 0.24);
}

.spotlight-price-row {
    align-items: stretch;
}

.spotlight-price-row > div {
    flex: 1 1 0;
    border: 1px solid var(--line);
    border-radius: 4px 12px 4px 12px;
    padding: 0.8rem 0.85rem;
    background: rgba(255, 255, 255, 0.94);
}

.mini-auction-stack {
    display: grid;
    gap: 0.75rem;
}

.mini-auction-card {
    border: 1px solid var(--line);
    border-radius: 4px 16px 4px 16px;
    padding: 0.85rem 0.9rem;
    background: rgba(255, 255, 255, 0.92);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mini-auction-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.mini-auction-card strong {
    display: block;
    margin: 0.35rem 0;
}

.mini-auction-card p {
    margin-bottom: 0.6rem;
    line-height: 1.55;
}

.mini-auction-category {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 800;
}

.mini-auction-meta {
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.82rem;
}

.home-status-summary {
    margin-top: 0.9rem;
    flex-wrap: wrap;
}

.home-status-summary a {
    flex: 1 1 110px;
    padding: 0.8rem;
}

.no-top-margin {
    margin-top: 0;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 4px 18px 4px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 251, 0.98));
    box-shadow: var(--shadow);
    padding: 1rem;
    min-width: 0;
}

.panel-xl {
    padding: 1.1rem;
}

.panel-side {
    align-self: start;
}

.panel-muted {
    background: linear-gradient(180deg, rgba(247, 252, 255, 0.95), rgba(238, 246, 255, 0.95));
}

.sticky-panel {
    position: sticky;
    top: 5.4rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--brand);
    margin-bottom: 0.45rem;
}

.lead {
    color: var(--muted);
    line-height: 1.55;
    margin-top: 0.5rem;
}

.lead.small {
    font-size: 0.95rem;
}

.hero-accent {
    color: var(--brand);
}

.action-row,
.section-heading,
.price-row,
.listing-meta,
.status-row,
.metrics-row,
.form-actions,
.hero-price,
.seller-line,
.summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
}

.section-heading {
    align-items: center;
    margin-bottom: 0.9rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(30, 164, 229, 0.16);
    border-radius: 4px 16px 4px 16px;
    background: linear-gradient(90deg, rgba(30, 164, 229, 0.14), rgba(83, 193, 242, 0.06) 58%, rgba(255, 255, 255, 0.4));
}

.compact-head {
    margin-bottom: 0.8rem;
}

.section-heading h2,
.section-heading h3 {
    color: var(--brand-deep);
}

.section-heading .text-link {
    align-self: center;
}

.text-link {
    color: var(--brand-deep);
    font-weight: 700;
}

.browse-subheading {
    margin-top: 0.45rem;
    color: var(--muted);
    line-height: 1.6;
}

.active-filter-card {
    display: grid;
    gap: 0.3rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 4px 14px 4px 14px;
    background: rgba(255, 255, 255, 0.92);
}

.active-filter-card span {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-search,
.filter-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.7rem;
}

.filter-bar.vertical {
    grid-template-columns: 1fr;
}

input,
select,
textarea {
    width: 100%;
    margin: 0;
    border-radius: 3px;
    border: 1px solid var(--line);
    padding: 0.82rem 0.9rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font: inherit;
}

textarea {
    min-height: 170px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(31, 111, 255, 0.28);
    outline-offset: 2px;
}

label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.84rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text);
    font-weight: 700;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    border: 1px solid transparent;
    padding: 0.78rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
    font-size: 0.72rem;
}

.button.primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: var(--brand-deep);
    border-color: rgba(10, 47, 99, 0.08);
}

.button.secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-deep);
}

.button.block {
    width: 100%;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.pulse-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.pulse-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 4px 12px 4px 12px;
    padding: 0.7rem 0.8rem;
    background: rgba(255, 255, 255, 0.9);
}

.pulse-list span,
.listing-meta,
.metrics-row,
.dashboard-callout p,
.summary-list span,
.muted-line,
.mini-legend div {
    color: var(--muted);
}

.pulse-list strong,
.price-row strong,
.hero-price strong,
.stats-list strong {
    color: var(--text);
}

.mini-legend {
    margin-top: 1rem;
    display: grid;
    gap: 0.5rem;
}

.mini-legend span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.45rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.status-groups {
    margin-top: 1rem;
    display: grid;
    gap: 0.85rem;
}

.status-group h3 {
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
}

.status-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.status-list li {
    border: 1px solid var(--line);
    border-radius: 3px 10px 3px 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.55rem 0.6rem;
    display: grid;
    gap: 0.25rem;
}

.status-list a {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text);
}

.status-list span {
    font-size: 0.78rem;
    color: var(--muted);
}

.status-inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.listing-grid-compact-home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dense-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.listing-card,
.category-card,
.feature-card,
.success-card,
.form-errors,
.dashboard-stats article,
.detail-panel,
.hero-price,
.detail-note,
.dashboard-callout {
    border: 1px solid var(--line);
    border-radius: 4px 16px 4px 16px;
    background: var(--panel-soft);
}

.listing-card {
    overflow: hidden;
    position: relative;
}

.listing-card::before,
.category-card::before,
.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.listing-card img,
.detail-image {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.listing-body,
.detail-panel,
.success-card,
.form-errors,
.dashboard-callout {
    padding: 0.9rem;
}

.listing-body > h3,
.listing-body > p,
.detail-panel > p,
.success-card > h3 {
    margin-top: 0.45rem;
}

.listing-body p,
.category-card p,
.feature-card p,
.summary-description {
    line-height: 1.65;
    color: var(--muted);
}

.price-row {
    margin: 0.7rem 0;
    align-items: end;
}

.price-row > div {
    display: grid;
    gap: 0.28rem;
}

.status-row,
.metrics-row,
.summary-list li,
.seller-line {
    align-items: center;
    flex-wrap: wrap;
}

.badge {
    border: 1px solid rgba(30, 164, 229, 0.35);
    border-radius: 2px 10px 2px 10px;
    padding: 0.3rem 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: var(--brand-deep);
    background: rgba(30, 164, 229, 0.1);
    white-space: nowrap;
}

.badge.muted {
    border-color: var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.85);
}

.badge.success,
.badge-success {
    border-color: rgba(24, 169, 107, 0.32);
    color: #0d6b44;
    background: rgba(24, 169, 107, 0.12);
}

.badge.danger,
.badge-danger {
    border-color: rgba(212, 72, 99, 0.32);
    color: #8f2137;
    background: rgba(212, 72, 99, 0.1);
}

.badge-direction-sell {
    border-color: rgba(30, 164, 229, 0.35);
    color: var(--brand-deep);
    background: rgba(30, 164, 229, 0.12);
}

.badge-direction-buy {
    border-color: rgba(24, 169, 107, 0.32);
    color: #0d6b44;
    background: rgba(24, 169, 107, 0.12);
}

.js-auction-countdown.countdown-running {
    color: var(--brand);
    font-weight: 700;
}

.js-auction-countdown.countdown-urgent {
    color: var(--danger);
    font-weight: 800;
}

.js-auction-countdown.countdown-expired {
    color: var(--danger);
    font-weight: 700;
}

.category-stack,
.feature-grid {
    display: grid;
    gap: 0.7rem;
}

.feature-grid-compact,
.home-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.category-card,
.feature-card,
.dashboard-stats article {
    padding: 0.85rem;
}

.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    border-radius: 2px 10px 2px 10px;
    border: 1px solid rgba(30, 164, 229, 0.35);
    color: var(--brand-deep);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.55rem;
}

.auction-overview-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0.9rem;
}

.detail-media-stack {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.detail-main-photo-button,
.detail-thumb {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.detail-main-photo-button {
    display: block;
    border-radius: 4px 18px 4px 18px;
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(10, 47, 99, 0.08);
}

.detail-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.6rem;
}

.detail-thumb {
    border: 1px solid var(--line);
    border-radius: 4px 12px 4px 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    opacity: 0.82;
    transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.detail-thumb:hover,
.detail-thumb.is-active {
    opacity: 1;
    transform: translateY(-1px);
    border-color: rgba(30, 164, 229, 0.45);
}

.detail-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.detail-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.detail-metrics div {
    border: 1px solid var(--line);
    border-radius: 4px 12px 4px 12px;
    padding: 0.68rem;
    background: rgba(255, 255, 255, 0.92);
    display: grid;
    gap: 0.28rem;
}

.seller-box {
    margin-top: 0.8rem;
    border-top: 1px solid var(--line);
    padding-top: 0.6rem;
}

.detail-owner-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.detail-owner-links form {
    margin: 0;
}

.seller-line {
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(164, 188, 234, 0.14);
}

.seller-line:last-child {
    border-bottom: 0;
}

.hero-price {
    padding: 0.72rem 0.8rem;
    align-items: center;
    display: grid;
    gap: 0.25rem;
}

.hero-price.secondary {
    background: rgba(30, 164, 229, 0.12);
}

.summary-hero-stack {
    display: grid;
    gap: 0.8rem;
    margin: 0.9rem 0 1.1rem;
}

.hero-price-link {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.hero-price-link:hover {
    transform: translateY(-1px);
    border-color: rgba(30, 164, 229, 0.35);
    box-shadow: 0 14px 28px rgba(10, 47, 99, 0.08);
}

.bid-panel-stack {
    display: grid;
    gap: 0.85rem;
}

.bid-panel-form {
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px 16px 4px 16px;
    background: rgba(255, 255, 255, 0.92);
}

.bid-field {
    display: grid;
    gap: 0.45rem;
}

.button-danger {
    border-color: rgba(212, 72, 99, 0.28);
    color: #8f2137;
}

.hero-price span,
.dashboard-stats span {
    color: var(--muted);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}

.dashboard-stats.wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-tabs {
    display: grid;
    gap: 1rem;
}

.dashboard-tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.dashboard-tab-button {
    border: 1px solid var(--line);
    border-radius: 4px 14px 4px 14px;
    padding: 0.75rem 0.95rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--muted);
    font: inherit;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    gap: 0.5rem;
}

.dashboard-tab-button.is-active {
    border-color: rgba(30, 164, 229, 0.4);
    background: linear-gradient(135deg, rgba(30, 164, 229, 0.16), rgba(83, 193, 242, 0.08));
    color: var(--brand-deep);
}

.dashboard-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.8rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(10, 47, 99, 0.08);
    color: var(--brand-deep);
    font-size: 0.76rem;
}

.dashboard-tab-panel {
    display: grid;
    gap: 0.9rem;
}

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

.dashboard-summary-tabs {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.85rem;
}

.dashboard-summary-buttons {
    gap: 0.45rem;
}

.dashboard-summary-buttons .dashboard-tab-button {
    flex: 1 1 0;
    justify-content: center;
    padding: 0.65rem 0.8rem;
}

.dashboard-summary-panel[hidden] {
    display: none;
}

.dashboard-table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 4px 16px 4px 16px;
}

.dashboard-inline-filter {
    display: grid;
    gap: 0.2rem;
    justify-items: end;
    text-align: right;
}

.dashboard-inline-filter span {
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-inline-filter strong {
    color: var(--brand-deep);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

th,
td {
    padding: 0.75rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid rgba(164, 188, 234, 0.14);
}

th {
    color: var(--text);
    background: rgba(30, 164, 229, 0.12);
    font-size: 0.84rem;
}

td {
    color: var(--muted);
    font-size: 0.93rem;
}

.form-grid {
    display: grid;
    gap: 0.8rem;
}

.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid.one {
    grid-template-columns: 1fr;
}

.listing-form {
    display: grid;
    gap: 0.9rem;
}

.listing-type-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.listing-type-option {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 4px 16px 4px 16px;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
}

.listing-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.listing-type-option span {
    color: var(--brand-deep);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.listing-type-option small {
    line-height: 1.45;
}

.listing-type-option.is-active {
    border-color: rgba(30, 164, 229, 0.42);
    background: linear-gradient(135deg, rgba(30, 164, 229, 0.14), rgba(83, 193, 242, 0.06));
}

.field-help {
    display: block;
    margin-top: 0.4rem;
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.84rem;
}

.photo-dropzone {
    position: relative;
    border: 1px dashed rgba(30, 164, 229, 0.45);
    border-radius: 4px 18px 4px 18px;
    padding: 1.2rem;
    background:
        linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(239, 247, 252, 0.98));
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
    cursor: pointer;
}

.photo-dropzone:hover,
.photo-dropzone.is-dragover {
    border-color: rgba(10, 47, 99, 0.45);
    background:
        linear-gradient(180deg, rgba(240, 249, 255, 0.98), rgba(228, 242, 251, 0.98));
    box-shadow: 0 14px 30px rgba(10, 47, 99, 0.08);
}

.photo-dropzone-input {
    display: none;
}

.photo-dropzone-copy {
    display: grid;
    gap: 0.45rem;
    pointer-events: none;
}

.photo-dropzone-copy strong {
    font-size: 1rem;
    color: var(--brand-deep);
}

.photo-dropzone-copy p {
    color: var(--muted);
    line-height: 1.65;
}

.photo-dropzone-copy small {
    display: block;
    color: var(--brand-deep);
    line-height: 1.5;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.photo-preview-card {
    position: relative;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 4px 14px 4px 14px;
    background: rgba(255, 255, 255, 0.95);
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(10, 47, 99, 0.06);
}

.photo-preview-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.photo-preview-card figcaption {
    padding: 0.65rem 0.7rem;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.photo-preview-card.is-existing figcaption {
    color: var(--brand-deep);
    font-weight: 700;
}

.photo-remove-button {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    border: 1px solid rgba(10, 47, 99, 0.1);
    border-radius: 3px;
    padding: 0.35rem 0.5rem;
    background: rgba(255, 255, 255, 0.96);
    color: #8f2137;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(10, 47, 99, 0.08);
}

.photo-remove-button:hover {
    background: #fff3f6;
    border-color: rgba(212, 72, 99, 0.2);
}

.form-errors {
    margin-bottom: 0.9rem;
}

.form-errors ul {
    margin: 0.45rem 0 0;
    padding-left: 1rem;
}

.form-errors li {
    color: var(--danger);
}

.form-actions.vertical {
    flex-direction: column;
}

.success-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 0.85rem;
}

.summary-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.summary-list li {
    border: 1px solid var(--line);
    border-radius: 4px 10px 4px 10px;
    padding: 0.55rem 0.65rem;
    background: rgba(255, 255, 255, 0.92);
    align-items: start;
}

.summary-description {
    margin-top: 0.75rem;
}

.detail-metrics small,
.price-row small {
    display: block;
}

.summary-list li strong,
.hero-price strong,
.detail-metrics strong {
    margin-top: 0.1rem;
}

.pulse-list-links a {
    color: var(--brand-deep);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.detail-note {
    margin-top: 0.7rem;
    padding: 0.75rem;
    color: var(--muted);
}

.detail-note-warning {
    border-color: rgba(212, 72, 99, 0.28);
    background: rgba(212, 72, 99, 0.08);
    color: #8f2137;
}

.gallery-modal[hidden] {
    display: none;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.gallery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 24, 45, 0.78);
    backdrop-filter: blur(6px);
}

.gallery-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: calc(100vh - 2rem);
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px 24px 8px 24px;
    background: rgba(14, 33, 58, 0.96);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
}

.gallery-modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-modal-image {
    width: 100%;
    max-height: calc(100vh - 5rem);
    object-fit: contain;
    display: block;
    border-radius: 4px 18px 4px 18px;
}

.dashboard-callout {
    margin-top: 0.8rem;
}

.dashboard-callout.vertical {
    display: grid;
    gap: 0.7rem;
}

.pulse-list.interactive li {
    padding: 0;
    overflow: hidden;
}

.summary-unified-list {
    margin-top: 0;
}

.summary-group-row {
    border: 0 !important;
    background: transparent !important;
    padding: 0.15rem 0 0 !important;
}

.summary-group-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(30, 164, 229, 0.2);
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    background: rgba(30, 164, 229, 0.08);
    color: var(--brand-deep);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.summary-metric-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.8rem 0.85rem;
    color: inherit;
    transition: background 0.18s ease, transform 0.18s ease;
}

.summary-metric-link:hover {
    background: rgba(30, 164, 229, 0.08);
    transform: translateY(-1px);
}

.summary-metric-copy {
    display: grid;
    gap: 0.18rem;
}

.summary-metric-copy strong {
    color: var(--text);
}

.summary-metric-copy small {
    color: var(--muted);
    line-height: 1.45;
}

@media (max-width: 1180px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        grid-template-rows: auto;
    }

    .content-shell,
    .app-main {
        min-width: 0;
    }

    .sticky-panel {
        position: static;
    }

    .topbar {
        position: static;
    }

    .topbar-row {
        padding: 0.95rem 1rem;
    }

    .app-main {
        padding: 1rem;
    }
}

@media (max-width: 960px) {
    .home-hero-grid,
    .home-hero-grid-simple,
    .board-grid,
    .auction-overview-grid,
    .success-grid,
    .featured-spotlight-grid {
        grid-template-columns: 1fr;
    }

    .listing-grid,
    .listing-grid-compact-home,
    .dense-listing-grid,
    .dashboard-stats,
    .dashboard-stats.wide,
    .feature-grid,
    .feature-grid-compact,
    .home-category-grid,
    .listing-type-toggle,
    .form-grid.two,
    .form-grid.three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .hero-kicker-row,
    .hero-market-head,
    .hero-trust-row,
    .hero-quick-links,
    .home-status-summary,
    .topbar-row,
    .topbar-actions,
    .section-heading,
    .action-row,
    .form-actions,
    .price-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search-home {
        grid-template-columns: 1fr;
    }

    .hero-search-actions {
        flex-direction: column;
    }
}
