:root {
    color-scheme: only light;
    --page: #f7f8fc;
    --surface: #ffffff;
    --ink: #101828;
    --muted: #667085;
    --accent: #3157d5;
    --accent-strong: #2445b8;
    --accent-soft: #eef2ff;
    --accent-secondary: #0d9488;
    --accent-secondary-soft: #e8f7f5;
    --neutral: #eff2f7;
    --line: #e2e7f0;
    --shadow: 0 20px 54px rgba(20, 38, 76, 0.14);
    --radius-lg: 16px;
    --radius-md: 12px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    color-scheme: only light !important;
    background-color: #f7f8fc !important;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 280px;
    min-height: 100vh;
    background: #f7f8fc !important;
    color-scheme: only light !important;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.45;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: only light !important;
        --page: #f7f8fc;
        --surface: #ffffff;
        --ink: #101828;
        --muted: #667085;
        --accent: #3157d5;
        --accent-strong: #2445b8;
        --accent-soft: #eef2ff;
        --accent-secondary: #0d9488;
        --accent-secondary-soft: #e8f7f5;
        --neutral: #eff2f7;
        --line: #e2e7f0;
    }

    html,
    body {
        color-scheme: only light !important;
        background-color: #f7f8fc !important;
    }
}

html.browser-force-dark {
    background-color: #f7f8fc !important;
    filter: invert(1) hue-rotate(180deg);
}

html.browser-force-dark img,
html.browser-force-dark video,
html.browser-force-dark canvas,
html.browser-force-dark model-viewer,
html.browser-force-dark .language-flag,
html.browser-force-dark .color-dot {
    filter: invert(1) hue-rotate(180deg);
}

button,
input,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input {
    font: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(49, 87, 213, 0.34);
    outline-offset: 2px;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--ink);
    color: white;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.miniapp-window-bar[hidden] {
    display: none;
}

.miniapp-window-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    min-height: 36px;
    align-items: center;
    padding-left: max(12px, env(safe-area-inset-left));
    border-bottom: 1px solid #2b3948;
    background: #172431;
    color: #f4f7fb;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.2);
}

.miniapp-window-title {
    min-width: 0;
    margin-right: auto;
    overflow: hidden;
    font-size: 13px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.miniapp-window-controls {
    display: flex;
    flex: 0 0 auto;
    align-self: stretch;
    margin-left: 12px;
    margin-right: max(120px, env(safe-area-inset-right));
}

.miniapp-window-button {
    display: grid;
    width: 46px;
    min-height: 36px;
    place-items: center;
    padding: 0;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    background: transparent;
    color: #f4f7fb;
    cursor: pointer;
    font-family: "Segoe UI Symbol", "Segoe UI", sans-serif;
    font-size: 20px;
    line-height: 1;
}

.miniapp-window-button:hover,
.miniapp-window-button:focus-visible,
.miniapp-window-button[aria-pressed="true"] {
    background: rgba(255, 255, 255, 0.12);
}

.miniapp-window-close:hover,
.miniapp-window-close:focus-visible {
    background: #c42b1c;
}

.miniapp-fullscreen-icon {
    position: relative;
    width: 11px;
    height: 11px;
    border: 1.5px solid currentColor;
}

.miniapp-fullscreen-icon.is-restore {
    transform: translate(-2px, 2px);
}

.miniapp-fullscreen-icon.is-restore::after {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 8px;
    height: 8px;
    border: 1.5px solid currentColor;
    background: #172431;
    content: "";
}

html.telegram-miniapp .topbar {
    top: 36px;
}

.first-visit-tour[hidden] {
    display: none;
}

.first-visit-tour {
    position: fixed;
    inset: 0;
    z-index: 120;
    overflow: hidden;
    touch-action: none;
}

.tour-spotlight {
    position: fixed;
    z-index: 1;
    border: 2px solid #61b7f4;
    border-radius: 15px;
    background: transparent;
    box-shadow:
        0 0 0 4px rgba(79, 166, 230, 0.28),
        0 0 0 9999px rgba(2, 9, 18, 0.78);
    pointer-events: none;
    transition: inset 240ms ease, width 240ms ease, height 240ms ease;
}

.tour-card {
    position: fixed;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    z-index: 2;
    width: auto;
    max-width: 920px;
    margin: 0 auto;
    padding: 18px 20px 14px;
    border: 1px solid rgba(118, 154, 190, 0.3);
    border-radius: 15px;
    background: #223142;
    color: #f6f9fc;
    box-shadow: 0 18px 50px rgba(0, 7, 18, 0.42);
}

.tour-copy h2 {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.3;
}

.tour-copy p {
    margin: 6px 0 0;
    color: #aebed0;
    font-size: 13px;
    line-height: 1.55;
}

.tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
}

.tour-dots {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tour-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #607386;
    transition: width 180ms ease, background 180ms ease;
}

.tour-dot.is-active {
    width: 18px;
    background: #58a9e8;
}

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

.tour-skip,
.tour-next {
    min-height: 36px;
    padding: 7px 13px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
}

.tour-skip {
    background: transparent;
    color: #9fb0c2;
}

.tour-skip:hover,
.tour-skip:focus-visible {
    color: #ffffff;
}

.tour-next {
    min-width: 82px;
    background: #4d94d1;
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(19, 102, 176, 0.3);
}

.tour-next:hover,
.tour-next:focus-visible {
    background: #5ca7e5;
}

body.tour-is-open {
    overflow: hidden;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto auto minmax(260px, 1fr) auto;
    min-height: calc(76px + var(--safe-top));
    align-items: center;
    gap: 10px;
    padding: calc(8px + var(--safe-top)) clamp(16px, 2.5vw, 38px) 8px;
    border-bottom: 1px solid rgba(210, 219, 234, 0.82);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 30px rgba(25, 45, 82, 0.07);
    backdrop-filter: blur(18px) saturate(150%);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

.brand-symbol {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    flex: 0 0 52px;
}

.brand-symbol img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-family: "Segoe UI Rounded", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.brand-model {
    color: #0756ad;
}

.brand-free {
    color: #17baf2;
}

.catalog-switcher {
    position: relative;
}

.catalog-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border: 1px solid #d9e1fb;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    cursor: pointer;
    font-size: 15px;
    font-weight: 750;
}

.catalog-button:hover,
.catalog-button[aria-expanded="true"] {
    border-color: #b9c8f8;
    background: #e1e8ff;
    color: var(--accent-strong);
}

.catalog-button-icon {
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
}

.catalog-menu {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    z-index: 80;
    width: 250px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 16px 36px rgba(19, 31, 54, 0.18);
}

#header-categories {
    display: grid;
    gap: 3px;
}

.header-category-button {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    padding: 9px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.header-category-button:hover,
.header-category-button[aria-current="true"] {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.topbar-search {
    min-width: 0;
    height: 50px;
}

.topbar-search input {
    padding: 0 102px 0 18px;
}

.search-submit-icon {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    width: 62px;
    height: 100%;
    place-items: center;
    border-left: 1px solid var(--line);
    border-radius: 0 7px 7px 0;
    background: var(--neutral);
}

.topbar-search .search-icon {
    margin: 0;
}

.topbar-search .clear-search {
    right: 66px;
    width: 34px;
    height: 34px;
}

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

.about-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.about-link:hover,
.about-link:focus-visible {
    border-color: #b9c8f8;
    background: #f5f7ff;
    color: var(--accent-strong);
}

.about-link-icon {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.language-switcher {
    position: relative;
}

.language-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
}

.language-button:hover,
.language-button[aria-expanded="true"] {
    border-color: #b9c8f8;
    background: #f5f7ff;
}

.language-flag {
    position: relative;
    display: inline-block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    overflow: hidden;
    border: 1px solid rgba(20, 33, 58, 0.18);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(19, 31, 54, 0.18);
}

.flag-uz {
    background: linear-gradient(
        to bottom,
        #0099b5 0 30%,
        #ce1126 30% 34%,
        #ffffff 34% 64%,
        #ce1126 64% 68%,
        #1eb53a 68% 100%
    );
}

.flag-ru {
    background: linear-gradient(to bottom, #ffffff 0 33.33%, #1955a6 33.33% 66.66%, #d52b1e 66.66% 100%);
}

.flag-en {
    background:
        linear-gradient(45deg, transparent 46%, #c8102e 46% 54%, transparent 54%),
        linear-gradient(-45deg, transparent 46%, #c8102e 46% 54%, transparent 54%),
        linear-gradient(45deg, transparent 39%, #ffffff 39% 61%, transparent 61%),
        linear-gradient(-45deg, transparent 39%, #ffffff 39% 61%, transparent 61%),
        #012169;
}

.flag-en::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, transparent 34%, #ffffff 34% 66%, transparent 66%),
        linear-gradient(to bottom, transparent 34%, #ffffff 34% 66%, transparent 66%);
    content: "";
}

.flag-en::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, transparent 43%, #c8102e 43% 57%, transparent 57%),
        linear-gradient(to bottom, transparent 43%, #c8102e 43% 57%, transparent 57%);
    content: "";
}

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    width: max-content;
    min-width: 154px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 14px 32px rgba(19, 31, 54, 0.16);
}

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

.language-menu button {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.language-menu button:hover,
.language-menu button[aria-checked="true"] {
    background: #edf2ff;
    color: var(--accent-strong);
}

.saved-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 7px 9px 7px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-size: 14px;
    font-weight: 750;
}

.saved-button.has-items {
    border-color: #b9c8f8;
    background: #f5f7ff;
    color: var(--accent-strong);
}

.saved-icon {
    font-size: 21px;
    line-height: 1;
}

.saved-count {
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--neutral);
    color: var(--muted);
    font-size: 12px;
}

.saved-button.has-items .saved-count {
    background: var(--accent);
    color: white;
}

main {
    position: relative;
    width: min(2040px, calc(100% - clamp(32px, 5vw, 96px)));
    margin: 0 auto;
    padding: 28px 0 calc(64px + var(--safe-bottom));
}

.catalog-toolbar {
    margin-bottom: 26px;
    padding: 20px 22px 13px;
    border: 1px solid rgba(218, 225, 237, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 34px rgba(26, 46, 83, 0.06);
}

.toolbar-copy {
    margin-bottom: 14px;
}

.toolbar-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.catalog-intro {
    max-width: 920px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

h1,
h2,
h3,
p {
    text-wrap: pretty;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.18;
    letter-spacing: 0;
}

h1 {
    margin-bottom: 0;
    font-size: 36px;
}

.beta-label {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--accent-secondary-soft);
    color: var(--accent-secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.survey-invite {
    min-height: 34px;
    margin-left: auto;
    padding: 6px 12px;
    border: 1px solid #b9c8f8;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.survey-invite:hover,
.survey-invite:focus-visible {
    border-color: var(--accent);
    background: #e1e8ff;
}

.survey-invite:disabled {
    border-color: var(--line);
    background: var(--neutral);
    color: var(--muted);
    cursor: default;
}

.search-box {
    position: relative;
    display: flex;
    height: 52px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(49, 87, 213, 0.12);
}

.search-icon {
    position: relative;
    width: 16px;
    height: 16px;
    margin: 0 18px 0 20px;
    flex: 0 0 16px;
    border: 2px solid var(--muted);
    border-radius: 50%;
}

.search-icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2px;
    right: -5px;
    bottom: -2px;
    border-radius: 999px;
    background: var(--muted);
    transform: rotate(45deg);
    transform-origin: left center;
}

.search-box input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 48px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 16px;
}

.search-box input::placeholder {
    color: #98a2b3;
}

.search-box input::-webkit-search-cancel-button {
    display: none;
}

.clear-search {
    position: absolute;
    right: 6px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--neutral);
    color: #475467;
    cursor: pointer;
    font-size: 22px;
}

.filters {
    display: flex;
    gap: 8px;
    margin-top: 13px;
    padding: 1px 1px 7px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 1px;
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
}

.filters::after {
    content: "";
    flex: 0 0 1px;
}

.filters::-webkit-scrollbar {
    height: 4px;
}

.filters::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: #cbd5e1;
}

.filters::-webkit-scrollbar-button {
    display: none;
}

.filter-button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 9px 17px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: #344054;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(25, 45, 82, 0.035);
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.filter-button:hover {
    border-color: #b8c6ec;
    background: #f7f9ff;
    box-shadow: 0 6px 16px rgba(38, 70, 150, 0.08);
    transform: translateY(-1px);
}

.filter-button[aria-pressed="true"] {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
    box-shadow: 0 8px 18px rgba(49, 87, 213, 0.22);
}

.catalog-section {
    scroll-margin-top: 74px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: 27px;
}

.result-count {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 1.25vw, 26px);
}

.product-card,
.loading-card,
.error-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(25, 45, 82, 0.055);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-card-live {
    grid-column: auto;
    cursor: default;
}

.card-model-stage {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 0.68) 45%, transparent 72%),
        linear-gradient(145deg, #f5f7fb 0%, #e7ecf4 100%);
}

.card-model-stage::before {
    content: "360°";
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 5px 14px rgba(25, 45, 82, 0.09);
    color: #3157d5;
    font-size: 11px;
    font-weight: 800;
    pointer-events: none;
    backdrop-filter: blur(8px);
}

.card-model-viewer {
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: grab;
    touch-action: pan-y;
}

.card-model-viewer:active {
    cursor: grabbing;
}

.card-variant-next {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 12px;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0 0 3px 2px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 22px rgba(24, 39, 75, 0.2);
    color: #172033;
    font-family: Arial, sans-serif;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.card-variant-next:hover {
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(24, 39, 75, 0.27);
    transform: translateY(-50%) scale(1.05);
}

.card-variant-next:active {
    transform: translateY(-50%) scale(0.96);
}

.card-variant-next:focus-visible {
    outline: 3px solid rgba(53, 92, 222, 0.38);
    outline-offset: 3px;
}

.card-model-loader {
    display: grid;
    height: 100%;
    place-items: end center;
    padding: 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.model-load-panel {
    display: grid;
    width: min(250px, calc(100% - 20px));
    gap: 8px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(24, 39, 75, 0.15);
    color: var(--ink);
    text-shadow: none;
    backdrop-filter: blur(8px);
}

.model-load-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.model-load-label {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-load-value {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.model-load-track {
    display: block;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #dce3f1;
}

.model-load-fill {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3157d5, #4d7dff);
    box-shadow: 0 0 10px rgba(49, 87, 213, 0.28);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 140ms ease-out;
}

.card-model-loader .model-load-panel {
    width: min(220px, calc(100% - 8px));
    padding: 9px 10px;
}

.card-favorite {
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 10px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 5px 16px rgba(24, 39, 75, 0.16);
    color: #e11d48;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.card-favorite.is-saved {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #e11d48;
}

.card-favorite:hover {
    border-color: #fb7185;
    background: #fff7f8;
}

.card-details {
    width: 100%;
    border: 0;
    background: var(--surface);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.card-details:focus-visible {
    position: relative;
    z-index: 1;
}

.product-card:hover,
.product-card:focus-visible,
.product-card:has(:focus-visible) {
    z-index: 2;
    border-color: #aebeea;
    outline: 0;
    box-shadow:
        0 16px 34px rgba(24, 39, 75, 0.13),
        0 26px 56px rgba(49, 87, 213, 0.11);
    transform: translateY(-5px);
}

.product-card:active {
    box-shadow:
        0 2px 0 rgba(39, 73, 184, 0.3),
        0 8px 18px rgba(24, 39, 75, 0.18);
    transform: translateY(-1px);
}

.card-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--neutral);
}

.card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.product-card:hover .card-image img {
    transform: scale(1.02);
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    width: 100%;
    padding: 16px 16px 18px;
}

.card-body > span {
    display: block;
    min-width: 0;
}

.card-copy {
    display: grid;
    gap: 4px;
}

.card-body .card-brand-name {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.18;
}

.card-body .card-product-name {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.card-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.card-view-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f4f9;
    border: 1px solid #e2e8f0;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    width: fit-content;
}

.card-view-badge .view-badge-icon {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    opacity: 0.8;
    flex-shrink: 0;
}

.card-body h3 {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    font-size: 17px;
    font-weight: 750;
}

.card-body p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.card-room-action {
    display: grid;
    width: 100%;
    margin-top: auto;
    min-height: 44px;
    padding: 10px 14px;
    place-items: center;
    border: 1px solid #2445b8;
    border-bottom: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #3c64e1 0%, #3157d5 100%);
    box-shadow:
        0 2px 0 #203fa7,
        0 9px 20px rgba(49, 87, 213, 0.22);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    text-shadow: 0 1px 1px rgba(14, 31, 85, 0.22);
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-card:hover .card-room-action,
.product-card:focus-visible .card-room-action,
.product-card:has(:focus-visible) .card-room-action {
    background: var(--accent-strong);
    box-shadow: 0 2px 0 #19358f, 0 12px 24px rgba(49, 87, 213, 0.27);
    transform: translateY(-1px);
}

.product-card:active .card-room-action {
    box-shadow: 0 2px 0 #19358f, 0 6px 12px rgba(49, 87, 213, 0.2);
    transform: translateY(2px);
}

.loading-card,
.error-card,
.empty-state {
    grid-column: 1 / -1;
    min-height: 156px;
    padding: 48px 20px;
    color: var(--muted);
    text-align: center;
}

.empty-state {
    display: grid;
    place-content: center;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.empty-state h3 {
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 20px;
}

.empty-state p {
    margin: 0;
}

dialog {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
}

dialog::backdrop {
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(4px);
}

.product-dialog {
    width: min(1560px, calc(100vw - 24px));
    max-width: none;
    height: min(920px, calc(100dvh - 24px));
    max-height: none;
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.dialog-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(460px, 0.92fr);
    height: 100%;
}

.close-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-size: 27px;
    font-weight: 400;
}

.product-dialog .close-button {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(24, 39, 75, 0.12);
}

.product-dialog::backdrop {
    background: rgba(16, 24, 40, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (min-width: 981px) {
    .product-dialog {
        width: clamp(1000px, 94vw, 1840px);
        width: 94vw;
        height: clamp(600px, 94dvh, 1140px);
        height: 94dvh;
        max-width: 96vw;
        max-height: 96dvh;
        margin: auto;
        border-radius: 12px;
        background: #ffffff;
        color: var(--ink);
        border: 1px solid var(--line);
        box-shadow: 0 24px 64px rgba(20, 38, 76, 0.16), 0 0 0 1px rgba(20, 38, 76, 0.04);
    }

    .dialog-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 340px;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
        background: #ffffff;
    }

    .main-content-column {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-width: 0;
        overflow-y: auto;
        overflow-x: hidden;
        border-right: 1px solid var(--line);
        background: #ffffff;
    }

    .dominant-viewer-stage {
        position: relative;
        width: 100%;
        height: 62dvh;
        min-height: 460px;
        flex-shrink: 0;
        background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f1f5f9 100%);
        border-bottom: 1px solid var(--line);
        border-right: none;
        padding: 14px 16px;
    }

    .suggested-sidebar-desktop {
        display: flex;
        flex-direction: column;
        width: 340px;
        height: 100%;
        max-height: 100%;
        background: #f8fafc;
        overflow: hidden;
    }

    .suggested-carousel-mobile {
        display: none !important;
    }
}

/* Base Sketchfab-Style Components & Clean White Theme */
.main-content-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff;
}

.dominant-viewer-stage {
    position: relative;
    width: 100%;
    height: 62dvh;
    min-height: 460px;
    flex-shrink: 0;
    background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f1f5f9 100%);
    overflow: hidden;
    border-right: none;
    padding: 12px 16px;
}

.dominant-viewer-stage .main-media-wrap {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 10px;
    background: transparent;
}

.dominant-viewer-stage .detail-model-stage {
    position: absolute;
    inset: 0;
    background: transparent;
}

.dominant-viewer-stage .main-image-wrap {
    background: #f8fafc;
}

.dominant-viewer-stage .thumb-list {
    flex: 0 0 auto;
    padding: 6px 0 2px;
}

.structured-details-panel {
    padding: 28px 32px 48px;
    background: #ffffff;
    color: var(--ink);
    flex: 1 0 auto;
}

.product-dialog .close-button {
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--ink);
    box-shadow: 0 2px 10px rgba(24, 39, 75, 0.12);
    transition: background 0.2s ease, transform 0.15s ease;
}

.product-dialog .close-button:hover {
    background: #f1f5f9;
    color: var(--ink);
    border-color: #cbd5e1;
    transform: scale(1.05);
}

/* Suggested 3D Models Sidebar (Desktop) */
.suggested-sidebar-desktop {
    display: flex;
    flex-direction: column;
    width: 340px;
    height: 100%;
    max-height: 100%;
    background: #f8fafc;
    border-left: 1px solid var(--line);
    overflow: hidden;
}

.suggested-header-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 58px 14px 18px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    flex-shrink: 0;
}

.suggested-header-desktop h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 750;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.suggested-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid #dbe4fe;
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 700;
}

.suggested-list-desktop {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 12px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.suggested-list-desktop::-webkit-scrollbar {
    width: 5px;
}

.suggested-list-desktop::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

/* Suggested Card (Desktop & Mobile) */
.suggested-card {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    align-items: center;
    padding: 9px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.2s ease,
                border-color 0.2s ease,
                box-shadow 0.2s ease;
    user-select: none;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.suggested-card:hover {
    background: #ffffff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(49, 87, 213, 0.12);
}

.suggested-card:active {
    transform: scale(0.98);
    background: var(--accent-soft);
}

.suggested-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.suggested-thumb-wrap {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 8px;
    overflow: hidden;
    background: #eff2f7;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.suggested-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.suggested-card:hover .suggested-thumb {
    transform: scale(1.08);
}

.suggested-badge-3d {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
    border: 1px solid var(--line);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.suggested-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.suggested-card-category {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggested-card-title {
    margin: 0;
    font-size: 13px;
    font-weight: 650;
    color: var(--ink);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suggested-card-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.suggested-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--muted);
}

.suggested-view-icon {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Mobile Suggested Models Carousel */
.suggested-carousel-mobile {
    display: none;
    padding: 14px 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    box-sizing: border-box;
    width: 100%;
}

.suggested-header-mobile {
    margin-bottom: 10px;
}

.suggested-header-mobile h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 750;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.suggested-carousel-track {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 8px;
    width: 100%;
    box-sizing: border-box;
    scrollbar-width: none;
}

.suggested-carousel-track::-webkit-scrollbar {
    display: none;
}

.suggested-carousel-card {
    flex: 0 0 160px;
    max-width: 160px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    padding: 8px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    cursor: pointer;
    box-sizing: border-box;
    text-align: left;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.suggested-carousel-card:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 18px rgba(49, 87, 213, 0.1);
}

.suggested-carousel-card:active {
    transform: scale(0.97);
    background: var(--accent-soft);
}

.suggested-carousel-card .suggested-thumb-wrap {
    width: 100%;
    height: 100px;
    border-radius: 6px;
    margin-bottom: 6px;
    background: #eff2f7;
    border: 1px solid var(--line);
}

.suggested-carousel-card .suggested-card-title {
    font-size: 12px;
    line-height: 1.3;
    color: var(--ink);
}

/* Clean White Theme Typography & Details Scoped */
.structured-details-panel #detail-title {
    color: var(--ink);
}

.structured-details-panel #detail-category {
    color: var(--accent);
}

.structured-details-panel #detail-description {
    color: #475467;
}

.structured-details-panel .trust-badge {
    background: #f0faf4;
    border: 1px solid #cde7d9;
    color: #17613d;
}

.structured-details-panel .dimensions-section {
    background: #f7f9ff;
    border: 1px solid #d9e1f6;
}

.structured-details-panel .dimensions-section h3 {
    color: var(--muted);
}

.structured-details-panel #dimensions-value {
    color: var(--accent-strong);
    font-weight: 700;
}

.structured-details-panel .facts-section h3 {
    color: var(--ink);
}

.structured-details-panel .facts-list dt {
    color: var(--muted);
}

.structured-details-panel .facts-list dd {
    color: var(--ink);
}

.structured-details-panel .option-heading h3 {
    color: var(--ink);
}

.structured-details-panel #selected-color {
    color: var(--ink);
}

.structured-details-panel .color-swatch {
    border-color: #cbd5e1;
}

.structured-details-panel .color-swatch[aria-pressed="true"] {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(49, 87, 213, 0.3);
}

.structured-details-panel .viewer-card {
    background: #f7f9ff;
    border: 1px solid #d9e1f6;
    color: var(--ink);
}

.structured-details-panel .variant-button {
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--ink);
}

.structured-details-panel .variant-button[aria-pressed="true"] {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.structured-details-panel .detail-views-badge {
    background: var(--accent-soft);
    border: 1px solid #dbe4fe;
    color: var(--accent-strong);
}

.structured-details-panel .icon-button {
    background: #ffffff;
    border: 1px solid var(--line);
    color: #24324d;
}

.structured-details-panel .icon-button:hover {
    background: #f4f6ff;
    border-color: #aebff4;
    color: var(--accent);
}

.structured-details-panel .compatibility-row {
    color: var(--muted);
}

.gallery-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 18px;
    border-right: 1px solid var(--line);
    background: var(--neutral);
}

.main-media-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #e9edf5;
}

.detail-model-stage,
.main-image-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #e9edf5;
}

.main-image-wrap > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image-wrap > img.contain {
    object-fit: contain;
    background: #ffffff;
}

.image-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: white;
    font-size: 12px;
    font-weight: 750;
}

.thumb-list {
    display: flex;
    flex: 0 0 68px;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 1px 6px;
}

.thumb-button {
    width: 64px;
    height: 64px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.model-thumb-button {
    flex: 0 0 64px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 16px;
    font-weight: 850;
}

.thumb-button[aria-current="true"] {
    border-color: var(--accent);
}

.thumb-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-panel {
    min-width: 0;
    padding: 64px 76px 36px 42px;
    overflow-y: auto;
}

.detail-heading-row {
    display: flex;
    min-height: 46px;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.detail-utility-actions {
    display: flex;
    gap: 8px;
}

.icon-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: #24324d;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.icon-button:hover,
.icon-button.is-saved {
    border-color: #aebff4;
    background: #f4f6ff;
    color: #3157d5;
}

#favorite-product {
    border-color: #fecdd3;
    background: #fff7f8;
    color: #e11d48;
}

#favorite-product:hover,
#favorite-product.is-saved {
    border-color: #fb7185;
    background: #fff1f2;
    color: #e11d48;
}

.share-icon {
    width: 21px;
    height: 21px;
}

.detail-category-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 7px;
}

.detail-category-wrap .eyebrow {
    margin: 0;
}

.detail-views-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid #dbe4fe;
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
}

.detail-views-badge .view-badge-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    flex-shrink: 0;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--accent-secondary);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.detail-panel > h2 {
    margin-bottom: 12px;
    font-size: 38px;
}

.detail-copy {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 15px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -8px 0 18px;
}

.trust-badge {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid #cde7d9;
    border-radius: 999px;
    background: #f0faf4;
    color: #17613d;
    font-size: 12px;
    font-weight: 750;
}

.dimensions-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 15px 16px;
    border: 1px solid #d9e1f6;
    border-radius: 8px;
    background: #f7f9ff;
}

.dimensions-section h3,
.dimensions-section p {
    margin: 0;
}

.dimensions-section h3 {
    margin-bottom: 4px;
    font-size: 13px;
}

.dimensions-section p {
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.scale-lock {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 13px;
    font-weight: 850;
}

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

.facts-section > h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.facts-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.facts-list > div {
    min-width: 0;
    padding: 12px 14px 13px 0;
}

.facts-list > div:nth-child(even) {
    padding-left: 14px;
    border-left: 1px solid var(--line);
}

.facts-list dt {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.facts-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 700;
}

.option-section {
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.option-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.option-heading h3 {
    margin-bottom: 12px;
    font-size: 17px;
}

.option-heading strong {
    color: var(--muted);
    font-size: 13px;
}

.color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.color-button[aria-pressed="true"] {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.color-dot {
    width: 23px;
    height: 23px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 50%;
    background: var(--swatch);
}

.viewer-card {
    margin: 22px 0 18px;
    padding: 17px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.viewer-copy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.viewer-copy h3,
.viewer-copy p {
    margin: 0;
}

.viewer-copy h3 {
    font-size: 16px;
}

.viewer-copy p {
    color: var(--muted);
    font-size: 13px;
}

.viewer-icon {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: var(--neutral);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 850;
}

.variant-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.variant-heading h3,
.variant-heading strong {
    margin: 0;
}

.variant-heading h3 {
    font-size: 17px;
}

.variant-heading strong {
    color: var(--muted);
    font-size: 14px;
}

.variant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.variant-button,
.model-control {
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-size: 14px;
    font-weight: 750;
}

.variant-button[aria-pressed="true"] {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-strong);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.model-stage {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f4f6fa;
    box-shadow: inset 0 -1px 0 rgba(16, 24, 40, 0.04);
}

model-viewer {
    display: block;
    width: 100%;
    height: 100%;
    background: #f4f6fa;
}

model-viewer::part(default-ar-button) {
    display: none;
}

.ar-variant-controls {
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: calc(20px + env(safe-area-inset-bottom));
    display: none;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    width: min(320px, calc(100% - 24px));
    min-height: 52px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(18, 24, 38, 0.82);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    transform: translateX(-50%);
    backdrop-filter: blur(10px);
}

#product-model[ar-status="session-started"] > .ar-variant-controls:not([hidden]) {
    display: grid;
}

.ar-variant-controls[data-loading="true"] {
    opacity: 0.72;
}

.ar-variant-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0 0 3px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.ar-variant-button:disabled {
    cursor: wait;
    opacity: 0.45;
}

.ar-variant-button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: -3px;
}

.ar-variant-name {
    min-width: 0;
    overflow: hidden;
    padding-inline: 8px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-poster {
    display: grid;
    height: 100%;
    place-items: end center;
    padding: 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.model-controls {
    display: flex;
    margin-top: 10px;
}

.model-control {
    width: 100%;
    border-color: var(--accent);
    color: var(--accent-strong);
}

.model-control[aria-pressed="false"] {
    border-color: var(--line);
    color: var(--ink);
}

.model-status {
    min-height: 20px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.detail-actions {
    position: sticky;
    z-index: 3;
    bottom: 0;
    margin-top: 18px;
    padding: 12px 0 calc(8px + var(--safe-bottom));
    background: var(--surface);
    box-shadow: 0 -12px 24px rgba(24, 39, 75, 0.08);
}

.compatibility-row {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.compatibility-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
}

.compatibility-row.is-ready .compatibility-dot {
    background: #22a06b;
}

.compatibility-row.is-unavailable .compatibility-dot {
    background: #98a2b3;
}

.has-telegram-main-button .detail-actions .primary-action {
    display: none;
}

.has-telegram-main-button .detail-actions {
    padding-bottom: calc(72px + var(--safe-bottom));
}

.primary-action {
    width: 100%;
    min-height: 54px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
}

.primary-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    background: var(--accent);
    color: white;
}

.primary-action:hover {
    background: var(--accent-strong);
}

.primary-action:disabled {
    background: #a7b0c0;
    cursor: not-allowed;
}

.ios-quick-look {
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.ios-quick-look img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
}

.ios-quick-look::after {
    position: relative;
    z-index: 1;
    content: "▣  " attr(data-label);
}

.ios-quick-look[aria-disabled="true"] {
    background: #a7b0c0;
    cursor: wait;
    pointer-events: none;
}

.privacy-note {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.toast {
    position: fixed;
    right: 16px;
    bottom: calc(16px + var(--safe-bottom));
    z-index: 80;
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px 16px;
    border-radius: 8px;
    background: #111827;
    color: white;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.saved-dialog {
    width: min(760px, calc(100vw - 24px));
    max-width: none;
    max-height: min(820px, calc(100dvh - 24px));
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.saved-shell {
    max-height: min(820px, calc(100dvh - 24px));
    padding: 24px;
    overflow-y: auto;
}

.saved-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.saved-header h2,
.saved-header p {
    margin-bottom: 0;
}

.saved-header h2 {
    margin-top: 4px;
    font-size: 28px;
}

.saved-help {
    margin: 8px 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.saved-list {
    display: grid;
    gap: 10px;
}

.saved-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 42px 38px;
    gap: 10px;
    min-height: 76px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.saved-item > img {
    width: 76px;
    height: 64px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--neutral);
}

.saved-item-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: start;
    gap: 4px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}

.saved-item-copy strong {
    overflow-wrap: anywhere;
}

.saved-item-copy span {
    color: var(--muted);
    font-size: 12px;
}

.compare-check,
.saved-remove {
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
}

.compare-check {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 20px;
}

.compare-check[aria-pressed="true"] {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.saved-remove {
    width: 34px;
    height: 34px;
    border: 0;
    background: var(--neutral);
    color: var(--muted);
    font-size: 20px;
}

.saved-empty {
    display: grid;
    min-height: 150px;
    place-content: center;
    gap: 5px;
    padding: 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
}

.saved-empty strong {
    color: var(--ink);
}

.saved-footer {
    position: sticky;
    bottom: -24px;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
    margin: 20px -24px -24px;
    padding: 14px 24px calc(14px + var(--safe-bottom));
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.secondary-action {
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-weight: 750;
}

.secondary-action:disabled {
    color: #98a2b3;
    cursor: not-allowed;
}

.compact-action {
    min-height: 48px;
}

.compare-panel {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.compare-panel > h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

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

.compare-column {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.compare-column img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: 6px;
    background: var(--neutral);
}

.compare-column h4 {
    margin: 12px 0;
    overflow-wrap: anywhere;
    font-size: 16px;
}

.compare-column p {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.compare-column p span {
    color: var(--muted);
}

.compare-column .secondary-action {
    width: 100%;
    margin-top: 10px;
}

.guide-dialog,
.feedback-dialog {
    width: min(520px, calc(100vw - 24px));
    max-width: none;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.guide-shell,
.feedback-shell {
    position: relative;
    padding: 28px;
}

.guide-shell > .close-button,
.feedback-shell > .close-button {
    position: absolute;
    top: 18px;
    right: 18px;
}

.guide-shell h2,
.feedback-shell h2 {
    margin: 6px 48px 20px 0;
    font-size: 26px;
}

.guide-steps {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.guide-steps li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.guide-steps li > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 850;
}

.guide-steps p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.guide-preference {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 14px;
}

.guide-preference input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.feedback-shell {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
}

.feedback-shell fieldset {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.feedback-shell legend {
    margin-bottom: 9px;
    font-size: 15px;
    font-weight: 750;
}

.feedback-options,
.rating-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feedback-options button,
.rating-options button {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-weight: 700;
}

.feedback-options button[aria-pressed="true"],
.rating-options button[aria-pressed="true"] {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-strong);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.rating-options button {
    width: 44px;
    padding-inline: 0;
}

.feedback-comment {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 750;
}

.feedback-comment span {
    color: var(--muted);
    font-weight: 500;
}

.feedback-shell textarea {
    width: 100%;
    min-height: 88px;
    margin-bottom: 14px;
    padding: 11px 12px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.project-survey-dialog {
    width: min(560px, calc(100vw - 24px));
}

.project-survey-dialog .feedback-shell h2 {
    margin-bottom: 8px;
}

.survey-intro {
    margin: 0 36px 22px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.project-survey-dialog legend {
    display: flex;
    align-items: center;
    gap: 9px;
}

.survey-question-number {
    display: inline-grid;
    width: 25px;
    height: 25px;
    place-items: center;
    flex: 0 0 25px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 850;
}

.survey-rating {
    flex-wrap: nowrap;
}

.survey-rating button {
    flex: 1 1 44px;
    max-width: 58px;
}

.survey-scale-labels {
    display: flex;
    max-width: 306px;
    justify-content: space-between;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.survey-improvement-options button {
    flex: 1 1 145px;
}

@media (min-width: 2200px) {
    .product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (min-width: 1800px) and (max-width: 2199px) {
    .product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (min-width: 1400px) and (max-width: 1799px) {
    .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1140px) {
    .topbar {
        grid-template-columns: auto auto minmax(160px, 1fr) auto;
        gap: 8px;
        padding-inline: 16px;
    }

    .saved-label {
        display: none;
    }
}

@media (max-width: 980px) {
    .topbar {
        grid-template-columns: auto auto minmax(190px, 1fr) auto;
        padding-inline: 14px;
    }

    .brand-wordmark {
        font-size: 25px;
    }

    .brand-symbol {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .catalog-button {
        padding-inline: 13px;
    }

    .saved-label {
        display: none;
    }

    h1 {
        font-size: 28px;
    }

    .section-heading h2 {
        font-size: 22px;
    }

    .detail-panel > h2 {
        font-size: 30px;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 13px;
    }

    .product-dialog {
        width: 100vw;
        height: 100dvh;
        max-width: 100vw;
        max-height: 100dvh;
        margin: 0;
        border: none;
        overflow-y: auto;
        border-radius: 0;
    }

    .dialog-shell {
        display: block;
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
    }

    .main-content-column {
        height: auto;
        min-height: 100%;
        overflow: visible;
        border-right: none;
    }

    .dominant-viewer-stage {
        height: min(52dvh, 420px);
        min-height: 320px;
        border-bottom: 1px solid var(--line);
    }

    .suggested-sidebar-desktop {
        display: none !important;
    }

    .suggested-carousel-mobile {
        display: block;
    }
}

@media (max-width: 840px) {
    .topbar {
        grid-template-columns: auto 50px minmax(140px, 1fr) auto;
        gap: 8px;
        padding-inline: 12px;
    }

    .about-link {
        display: none;
    }

    .brand-wordmark {
        font-size: 22px;
    }

    .catalog-button {
        width: 50px;
        justify-content: center;
        padding: 0;
    }

    .catalog-button > span:last-child {
        display: none;
    }

    .product-dialog {
        width: 100vw;
        height: 100dvh;
        max-height: none;
        margin: 0;
        overflow-y: auto;
        border-radius: 0;
    }

    .dialog-shell {
        display: block;
        height: auto;
        min-height: 100%;
    }

    .gallery-panel {
        height: min(58dvh, 520px);
        padding: calc(10px + var(--safe-top)) 10px 10px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .thumb-list {
        flex: 0 0 62px;
        margin: 0;
    }

    .thumb-button {
        flex: 0 0 60px;
        width: 60px;
        height: 54px;
    }

    .detail-panel {
        padding: 28px 22px calc(30px + var(--safe-bottom));
        overflow: visible;
    }

    .product-dialog .close-button {
        top: calc(16px + var(--safe-top));
        right: 16px;
    }
}

@media (max-width: 620px) {
    .miniapp-window-controls {
        margin-right: max(96px, env(safe-area-inset-right));
    }

    .tour-card {
        padding: 16px 15px 12px;
        border-radius: 13px;
    }

    .tour-copy h2 {
        font-size: 16px;
    }

    .tour-copy p {
        font-size: 12px;
    }

    .tour-footer {
        gap: 10px;
    }

    .tour-skip,
    .tour-next {
        min-height: 38px;
        padding-inline: 11px;
        font-size: 12px;
    }

    .topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: calc(112px + var(--safe-top));
        gap: 7px 10px;
        padding: calc(7px + var(--safe-top)) 12px 9px;
    }

    .brand {
        min-width: 0;
    }

    .catalog-switcher {
        display: none;
    }

    .topbar-search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        height: 44px;
    }

    .brand-wordmark {
        gap: 4px;
        font-size: 23px;
    }

    .brand-symbol {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .saved-button {
        min-height: 40px;
        padding: 6px 7px;
    }

    .language-button {
        min-height: 40px;
        padding: 6px 8px;
    }

    .about-link {
        min-height: 40px;
        padding: 6px 8px;
    }

    .saved-label {
        display: none;
    }

    main {
        width: calc(100% - 16px);
        padding-top: 16px;
    }

    .catalog-toolbar {
        margin-bottom: 13px;
        padding: 14px 14px 8px;
        border-radius: 14px;
    }

    .toolbar-heading {
        margin-bottom: 5px;
    }

    .toolbar-copy {
        margin-bottom: 11px;
    }

    .catalog-intro {
        font-size: 13px;
        line-height: 1.45;
    }

    h1 {
        font-size: 26px;
    }

    .filters {
        width: calc(100% + 12px);
        margin-top: 11px;
        margin-right: -12px;
        padding-right: 12px;
    }

    .filter-button {
        min-height: 44px;
        padding-inline: 16px;
    }

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

    .section-heading h2 {
        font-size: 20px;
    }

    .result-count {
        font-size: 13px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .product-card-live {
        grid-column: auto;
    }

    .card-model-stage {
        aspect-ratio: 1 / 1;
    }

    .card-model-stage::before {
        top: 8px;
        left: 8px;
        padding: 4px 7px;
        font-size: 9px;
    }

    .card-favorite {
        top: 8px;
        right: 8px;
        width: 34px;
        height: 34px;
        border-width: 1px;
        box-shadow: 0 3px 10px rgba(24, 39, 75, 0.14);
        font-size: 19px;
    }

    .card-variant-next {
        right: 8px;
        width: 34px;
        height: 34px;
        padding: 0 0 2px 1px;
        box-shadow: 0 4px 12px rgba(24, 39, 75, 0.16);
        font-size: 24px;
    }

    .product-card {
        border-radius: 8px;
    }

    .card-body {
        gap: 8px;
        padding: 9px 9px 11px;
    }

    .card-room-action {
        width: calc(100% - 12px);
        min-height: 30px;
        margin-right: auto;
        margin-left: auto;
        padding: 5px 6px;
        border-radius: 5px;
        box-shadow: 0 2px 0 #19358f, 0 4px 8px rgba(49, 87, 213, 0.17);
        font-size: 11.5px;
        line-height: 1.15;
    }

    .product-card:hover .card-room-action,
    .product-card:focus-visible .card-room-action,
    .product-card:has(:focus-visible) .card-room-action {
        box-shadow: 0 2px 0 #19358f, 0 5px 9px rgba(49, 87, 213, 0.18);
    }

    .product-card:active .card-room-action {
        box-shadow: 0 1px 0 #19358f, 0 3px 6px rgba(49, 87, 213, 0.16);
        transform: translateY(1px);
    }

    .card-body h3 {
        font-size: 15px;
    }

    .card-body .card-brand-name {
        font-size: 15px;
    }

    .card-body .card-product-name {
        font-size: 11px;
    }

    .card-body p {
        font-size: 12px;
    }

    .gallery-panel {
        height: min(43dvh, 370px);
    }

    .detail-panel {
        padding: 25px 18px calc(28px + var(--safe-bottom));
    }

    .detail-panel > h2 {
        font-size: 29px;
    }

    .detail-heading-row {
        min-height: 42px;
    }

    .dimensions-section {
        align-items: start;
    }

    .facts-list {
        grid-template-columns: 1fr;
    }

    .facts-list > div:nth-child(even) {
        padding-left: 0;
        border-left: 0;
    }

    .option-heading {
        align-items: start;
        flex-direction: column;
        gap: 0;
    }

    .option-heading strong {
        margin: -7px 0 11px;
    }

    .saved-dialog,
    .guide-dialog,
    .feedback-dialog {
        width: 100vw;
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
    }

    .saved-shell,
    .feedback-shell {
        max-height: 100dvh;
        padding: calc(20px + var(--safe-top)) 16px calc(20px + var(--safe-bottom));
    }

    .guide-shell {
        padding: calc(24px + var(--safe-top)) 18px calc(24px + var(--safe-bottom));
    }

    .saved-item {
        grid-template-columns: 62px minmax(0, 1fr) 42px 34px;
        gap: 7px;
    }

    .saved-item > img {
        width: 62px;
        height: 58px;
    }

    .saved-footer {
        bottom: calc(-20px - var(--safe-bottom));
        grid-template-columns: 1fr;
        margin: 18px -16px calc(-20px - var(--safe-bottom));
        padding: 12px 16px calc(12px + var(--safe-bottom));
    }

    .compare-grid {
        gap: 8px;
    }

    .compare-column {
        padding: 8px;
    }

    .compare-column h4 {
        font-size: 14px;
    }

}

@media (max-width: 520px) {
    .about-link {
        width: 40px;
        justify-content: center;
        padding-inline: 5px;
    }

    .about-link-label {
        display: none;
    }
}

@media (max-width: 400px) {
    .miniapp-window-title {
        display: none;
    }

    .miniapp-window-controls {
        margin-right: max(82px, env(safe-area-inset-right));
    }

    .language-current {
        display: none;
    }

    .language-button {
        width: 40px;
        justify-content: center;
        padding-inline: 5px;
    }
}

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