:root {
    --ink: #111827;
    --muted: #697386;
    --line: #e5dff2;
    --paper: #ffffff;
    --soft: #fff8fb;
    --coral: #ff4f79;
    --blue: #7c3aed;
    --green: #00a98f;
    --yellow: #f7b733;
    --aqua: #00c2a8;
    --violet: #7c3aed;
    --rose: #ff4f79;
    --lux: linear-gradient(135deg, #7c3aed 0%, #ff4f79 52%, #00c2a8 100%);
    --shadow: 0 22px 60px rgba(80, 37, 117, .13);
}

:root[data-theme="dark"] {
    --ink: #edf3f8;
    --muted: #b7c3d2;
    --line: #334056;
    --paper: #151f2c;
    --soft: #080d14;
    --coral: #ff6d91;
    --blue: #a78bfa;
    --green: #5bd2a8;
    --yellow: #ffd071;
    --aqua: #50e3cd;
    --violet: #a78bfa;
    --rose: #ff6d91;
    --lux: linear-gradient(135deg, #a78bfa 0%, #ff6d91 52%, #50e3cd 100%);
    --shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 14% 8%, rgba(124, 58, 237, .14), transparent 28%),
        radial-gradient(circle at 84% 18%, rgba(0, 194, 168, .12), transparent 26%),
        var(--soft);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] body {
    color-scheme: dark;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

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

.site-header {
    position: sticky;
    top: 10px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 20px;
    width: min(1180px, calc(100% - 40px));
    min-height: 70px;
    margin: 10px auto 0;
    padding: 0 22px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 20px 58px rgba(80, 37, 117, .14);
    backdrop-filter: blur(16px);
}

:root[data-theme="dark"] .site-header {
    background: rgba(15, 22, 30, .78);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
}

.brand-icon {
    display: block;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
}

.brand-word {
    color: var(--ink);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0;
}

:root[data-theme="light"] .brand-word {
    background: var(--lux);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-logo {
    width: 260px;
    height: auto;
}

.main-nav {
    display: flex;
    gap: 16px;
    color: var(--muted);
    font-weight: 750;
    margin-left: auto;
}

.main-nav a:hover,
.text-link:hover {
    color: var(--blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-select,
.theme-toggle {
    min-height: 36px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 800;
}

.language-select {
    width: 66px;
    padding: 0 8px;
}

.theme-toggle {
    width: 38px;
    cursor: pointer;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
}

.primary-button,
.secondary-button,
.ghost-button,
.mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.primary-button {
    color: white;
    background: var(--lux);
    box-shadow: 0 14px 30px rgba(255, 79, 121, .28);
}

.secondary-button {
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
}

.ghost-button {
    min-height: 38px;
    color: var(--muted);
    background: transparent;
}

.mini-button {
    min-height: 34px;
    padding: 0 12px;
    color: white;
    background: var(--lux);
    font-size: 14px;
}

.small {
    min-height: 36px;
    padding-inline: 13px;
}

.full {
    width: 100%;
}

.hero-section {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    align-items: center;
    gap: 48px;
    min-height: calc(100vh - 90px);
    padding: 48px 6vw 70px;
    background:
        radial-gradient(circle at 70% 18%, rgba(255, 79, 121, .13), transparent 26%),
        radial-gradient(circle at 92% 56%, rgba(0, 194, 168, .11), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, .86) 0%, rgba(255, 248, 251, .96) 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    right: clamp(18px, 5vw, 78px);
    top: 34px;
    width: clamp(118px, 18vw, 220px);
    aspect-ratio: 1;
    background: url("../icons/favicon.svg") center / contain no-repeat;
    opacity: .075;
    pointer-events: none;
}

.page-intro,
.dashboard {
    position: relative;
}

.page-intro::after,
.dashboard::after {
    content: "";
    position: absolute;
    right: 0;
    top: 34px;
    width: 96px;
    aspect-ratio: 1;
    background: url("../icons/favicon.svg") center / contain no-repeat;
    opacity: .08;
    pointer-events: none;
}

.page-intro > *,
.dashboard > * {
    position: relative;
    z-index: 1;
}

:root[data-theme="dark"] .hero-section {
    background:
        radial-gradient(circle at 70% 18%, rgba(255, 109, 145, .14), transparent 26%),
        radial-gradient(circle at 92% 56%, rgba(80, 227, 205, .1), transparent 22%),
        linear-gradient(180deg, #0d141f 0%, #080d14 100%);
}

.hero-copy h1,
.page-intro h1,
.product-info h1,
.dashboard h1 {
    margin: 10px 0 16px;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.02;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.hero-copy p,
.page-intro p,
.product-info p {
    max-width: 680px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.eyebrow {
    color: var(--rose);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-search {
    display: flex;
    max-width: 660px;
    margin: 28px 0 18px;
    padding: 7px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0 14px;
    outline: 0;
}

.hero-search input::placeholder,
input::placeholder,
textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 78%, transparent);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-preview {
    position: relative;
    overflow: hidden;
    padding: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.hero-preview img {
    width: 100%;
    border-radius: 8px;
}

.floating-stat {
    position: absolute;
    right: 30px;
    bottom: 30px;
    padding: 14px 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 30px rgba(23, 33, 43, .18);
}

.floating-stat strong {
    display: block;
    font-size: 24px;
}

.floating-stat span,
.muted {
    color: var(--muted);
}

.content-band,
.page-intro,
.dashboard,
.market-layout,
.product-detail,
.auth-layout,
.form-shell,
.seller-cta {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.content-band,
.dashboard,
.market-layout,
.product-detail,
.auth-layout,
.form-shell {
    padding: 54px 0;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2,
.seller-cta h2 {
    margin: 8px 0 0;
    font-size: 34px;
    line-height: 1.15;
}

.with-action {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.category-grid,
.product-grid,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-card,
.metric-grid article,
.table-panel,
.auth-card,
.filters-panel,
.purchase-box {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(27, 41, 57, .06);
}

.category-card {
    display: flex;
    justify-content: space-between;
    min-height: 86px;
    padding: 20px;
    gap: 12px;
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--rose) 42%, var(--line));
    box-shadow: 0 22px 52px rgba(124, 58, 237, .14);
}

.category-card strong {
    color: var(--green);
    white-space: nowrap;
}

.product-card {
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-image-link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: #e9eef5;
    overflow: hidden;
}

.protected-preview {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.protected-preview.large {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
}

.protected-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.96) contrast(.96);
}

.protected-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 18px),
        radial-gradient(circle, rgba(17, 24, 39, .22) 0 1px, transparent 1.4px);
    background-size: auto, 12px 12px;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.protected-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(124, 58, 237, .08), rgba(255, 79, 121, .08), rgba(0, 194, 168, .08));
    pointer-events: none;
}

.protected-preview.large::before {
    opacity: .78;
}

.watermark-text {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 140%;
    color: rgba(255, 255, 255, .38);
    font-size: clamp(18px, 3vw, 34px);
    font-weight: 950;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    transform: translate(-50%, -50%) rotate(-22deg);
    text-shadow: 0 2px 8px rgba(17, 24, 39, .26);
    pointer-events: none;
}

.preview-lock {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    padding: 6px 9px;
    color: #101820;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    color: white;
    background: rgba(17, 24, 39, .82);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.badge.inline {
    position: static;
    display: inline-flex;
    background: var(--blue);
}

.product-card-body {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.product-card h3 {
    min-height: 52px;
    margin: 4px 0 0;
    font-size: 18px;
    line-height: 1.35;
}

.product-meta,
.product-footer,
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-meta {
    color: var(--muted);
    font-size: 14px;
}

.product-footer strong {
    font-size: 24px;
}

.seller-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 54px;
    padding: 34px;
    color: white;
    background: var(--lux);
    border-radius: 22px;
}

:root[data-theme="dark"] .seller-cta {
    color: #101820;
    background: var(--green);
}

:root[data-theme="dark"] .seller-cta .eyebrow {
    color: #17352b;
}

.seller-cta .eyebrow {
    color: var(--yellow);
}

.page-intro.compact {
    padding: 48px 0 12px;
}

.page-intro.compact h1 {
    font-size: clamp(36px, 4vw, 54px);
}

.market-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.filters-panel {
    align-self: start;
    display: grid;
    gap: 16px;
    padding: 20px;
}

.filters-panel h2,
.table-panel h2 {
    margin: 0;
    font-size: 22px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 28%, transparent);
}

a:focus-visible,
button:focus-visible,
.product-image-link:focus-visible,
.category-card:focus-visible,
.chip:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 8px;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 22%, transparent);
}

.market-results {
    display: grid;
    gap: 18px;
}

.toolbar {
    padding: 14px 0;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 42px;
    align-items: start;
}

.product-preview-large {
    padding: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.product-preview-large img {
    width: 100%;
    border-radius: 8px;
}

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

.details-list div {
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.details-list dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.details-list dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.purchase-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
}

.purchase-box strong {
    font-size: 38px;
}

.form-shell {
    max-width: 860px;
}

.stacked-form,
.auth-card {
    display: grid;
    gap: 18px;
}

.stacked-form {
    padding: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 42px;
    align-items: center;
    min-height: calc(100vh - 160px);
}

.auth-copy h1 {
    margin: 10px 0 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.auth-card {
    padding: 24px;
}

.dashboard .section-heading h1 {
    font-size: clamp(34px, 4vw, 54px);
}

.metric-grid article {
    padding: 22px;
}

.metric-grid span {
    color: var(--muted);
    font-weight: 750;
}

.metric-grid strong {
    display: block;
    margin-top: 8px;
    font-size: 36px;
}

.table-panel {
    margin-top: 24px;
    padding: 22px;
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    margin-top: 16px;
}

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

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.status {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 900;
}

.status.ok {
    color: #0e684c;
    background: #dff7ee;
}

.status.review {
    color: #94610c;
    background: #fff0cf;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 34px 40px;
    color: #cdd7e1;
    background: var(--ink);
}

:root[data-theme="dark"] .site-footer {
    background: #070b10;
}

.site-footer p {
    margin: 6px 0 0;
}

.site-footer nav {
    display: flex;
    gap: 18px;
}

@media (max-width: 980px) {
    .site-header {
        position: sticky;
        width: min(100% - 28px, 1180px);
        min-height: 68px;
        padding: 0 16px;
    }

    .main-nav,
    .header-actions {
        display: none;
    }

    .site-header.menu-open .main-nav,
    .site-header.menu-open .header-actions {
        position: absolute;
        left: 20px;
        right: 20px;
        display: grid;
        background: var(--paper);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .site-header.menu-open .main-nav {
        top: 68px;
        padding: 18px;
        gap: 0;
        border-radius: 10px 10px 0 0;
        border-bottom: 0;
    }

    .site-header.menu-open .main-nav a {
        padding: 13px 4px;
        border-bottom: 1px solid var(--line);
    }

    .site-header.menu-open .header-actions {
        top: 288px;
        padding: 14px;
        grid-template-columns: 1fr 44px;
        border-radius: 0 0 10px 10px;
    }

    .site-header.menu-open .header-actions .ghost-button,
    .site-header.menu-open .header-actions .primary-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .language-select {
        width: 100%;
    }

    .menu-button {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    .hero-section,
    .product-detail,
    .auth-layout,
    .market-layout {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .product-grid,
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .site-header {
        top: 8px;
        width: min(100% - 20px, 1180px);
        min-height: 64px;
        margin-top: 8px;
        padding: 0 12px;
        border-radius: 14px;
    }

    .brand {
        gap: 8px;
        min-width: 0;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
    }

    .brand-word {
        font-size: 17px;
    }

    .menu-button {
        width: 40px;
        height: 40px;
    }

    .site-header.menu-open .main-nav {
        top: 64px;
        left: 10px;
        right: 10px;
    }

    .site-header.menu-open .header-actions {
        top: 284px;
        left: 10px;
        right: 10px;
    }

    .hero-section {
        min-height: auto;
        gap: 28px;
        padding: 34px 20px 42px;
    }

    .hero-section::before {
        top: 18px;
        right: 10px;
        width: 126px;
        opacity: .055;
    }

    .hero-copy h1,
    .page-intro h1,
    .product-info h1,
    .dashboard h1 {
        font-size: 34px;
        line-height: 1.08;
    }

    .hero-copy p,
    .page-intro p,
    .product-info p {
        font-size: 16px;
        line-height: 1.6;
    }

    .hero-search,
    .with-action,
    .seller-cta,
    .site-footer,
    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search {
        display: grid;
        gap: 8px;
        padding: 7px;
        box-shadow: 0 12px 26px rgba(27, 41, 57, .12);
    }

    .hero-search input {
        min-height: 44px;
        padding-inline: 14px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 320px;
    }

    .category-grid,
    .product-grid,
    .metric-grid,
    .details-list,
    .form-row {
        grid-template-columns: 1fr;
    }

    .section-heading h2,
    .seller-cta h2 {
        font-size: 28px;
    }

    .category-card {
        min-height: 76px;
        padding: 16px;
    }

    .product-card h3 {
        min-height: auto;
    }

    .product-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .product-footer {
        align-items: center;
    }

    .content-band,
    .page-intro,
    .dashboard,
    .market-layout,
    .product-detail,
    .auth-layout,
    .form-shell,
    .seller-cta {
        width: min(100% - 28px, 1180px);
    }

    .floating-stat {
        position: static;
        margin-top: 12px;
    }

    .seller-cta {
        padding: 24px;
    }

    .auth-layout {
        min-height: auto;
        padding-top: 36px;
    }

    .auth-copy h1 {
        font-size: 34px;
    }

    .table-panel {
        padding: 16px;
    }
}

@media (max-width: 420px) {
    .brand-word {
        max-width: 178px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero-section {
        padding-inline: 14px;
    }

    .hero-copy h1,
    .page-intro h1,
    .product-info h1,
    .dashboard h1 {
        font-size: 32px;
    }

    .primary-button,
    .secondary-button,
    .ghost-button,
    .mini-button {
        width: 100%;
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.main-nav a[aria-current="page"] {
    color: var(--blue);
    position: relative;
}

.main-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--lux);
    border-radius: 2px;
}

.search-bar {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(27, 41, 57, .06);
}

.search-bar input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    background: transparent;
    border: 0;
    padding: 0 12px;
}

.search-bar input:focus-visible {
    box-shadow: none;
    border-color: transparent;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 12px;
    color: var(--ink);
    background: color-mix(in srgb, var(--blue) 10%, var(--paper));
    border: 1px solid color-mix(in srgb, var(--blue) 25%, var(--line));
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    transition: background .15s ease;
}

.chip:hover {
    background: color-mix(in srgb, var(--rose) 14%, var(--paper));
}

.chip-x {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: var(--paper);
    background: var(--ink);
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
}

.range-label .range-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-label input[type="range"] {
    flex: 1;
    min-width: 0;
    min-height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.range-label output {
    min-width: 56px;
    padding: 4px 8px;
    color: var(--ink);
    background: color-mix(in srgb, var(--blue) 12%, var(--paper));
    border-radius: 6px;
    font-weight: 900;
    text-align: center;
}

.sort-label select {
    min-width: 180px;
}

.reset-link {
    justify-self: start;
    color: var(--muted);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.reset-link:hover {
    color: var(--rose);
}

.empty-state {
    display: grid;
    place-items: center;
    gap: 14px;
    padding: 80px 24px;
    text-align: center;
    color: var(--muted);
}

.empty-state h1,
.empty-state h2 {
    margin: 0;
    color: var(--ink);
    font-size: 28px;
}

.empty-state.subtle {
    padding: 48px 20px;
    background: color-mix(in srgb, var(--blue) 6%, var(--paper));
    border: 1px dashed color-mix(in srgb, var(--blue) 30%, var(--line));
    border-radius: 14px;
}

.field-error {
    display: block;
    min-height: 18px;
    color: var(--rose);
    font-size: 13px;
    font-weight: 700;
}

.form-banner {
    margin: 0 0 6px;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14px;
}

.form-banner[data-kind="error"] {
    color: #8a1336;
    background: color-mix(in srgb, var(--rose) 18%, var(--paper));
    border: 1px solid color-mix(in srgb, var(--rose) 40%, var(--line));
}

.form-banner[data-kind="success"] {
    color: #0e684c;
    background: color-mix(in srgb, var(--green) 18%, var(--paper));
    border: 1px solid color-mix(in srgb, var(--green) 40%, var(--line));
}

:root[data-theme="dark"] .form-banner[data-kind="error"] {
    color: #ffb3c7;
}

:root[data-theme="dark"] .form-banner[data-kind="success"] {
    color: #a8efd2;
}

.char-counter {
    justify-self: end;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.char-counter.near-limit {
    color: var(--rose);
}

.file-field input[type="file"] {
    padding: 8px;
}

.file-feedback {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 4px;
    padding: 0;
    list-style: none;
}

.tag-list a {
    display: inline-flex;
    padding: 4px 10px;
    color: var(--muted);
    background: color-mix(in srgb, var(--blue) 8%, var(--paper));
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.tag-list a:hover {
    color: var(--blue);
    border-color: color-mix(in srgb, var(--blue) 40%, var(--line));
}

@media (max-width: 620px) {
    .search-bar {
        flex-wrap: wrap;
    }

    .search-bar .primary-button {
        width: 100%;
    }

    .toolbar .sort-label select {
        width: 100%;
    }

    .empty-state {
        padding: 56px 16px;
    }
}
