/* Scoped to navigation and overlays. Never alter the Studio hero or chat layout. */
:is(.sc-mega,.sc-collection,.sc-product-dialog,.sc-zoom) { --sc-photo: radial-gradient(ellipse at 26% 12%,#f3fbf8 0%,transparent 65%),linear-gradient(145deg,#d5eeea,#e4ede8 52%,#c6e0da); }
html[data-public-chat-theme=night] :is(.sc-mega,.sc-collection,.sc-product-dialog,.sc-zoom) { --sc-photo: radial-gradient(ellipse at 42% 30%,#d9e8e4 0%,transparent 75%),linear-gradient(145deg,#7da7a5,#bed3cb 56%,#6b9795); }
.sc-mega, .sc-collection, .sc-product-dialog, .sc-zoom { --sc-ink: var(--v2-ink, #ecf6f2); --sc-muted: var(--v2-muted, #a2b9b2); --sc-panel: var(--v2-panel-solid, #102222); --sc-line: var(--v2-line, #29413c); --sc-accent: var(--v2-accent, #b9f227); color: var(--sc-ink); font-family: inherit; }
.sc-mega { position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 26px; border: 1px solid var(--sc-line); border-radius: 24px; background: var(--sc-panel); box-shadow: 0 25px 75px #0003; max-height: min(650px,75dvh); overflow: auto; overscroll-behavior: contain; }
.sc-mega[hidden], .sc-dialog-bar [hidden] { display: none; }
.sc-mega > header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 6px 22px; }
.sc-mega > header strong { font-size: 26px; letter-spacing: -.035em; font-weight: 550; }
.sc-mega .sc-kicker { margin-bottom: 8px; }
.sc-mega > header button { color: var(--sc-ink); background: none; border: 1px solid var(--sc-line); border-radius: 30px; padding: 10px 15px; font-size: 12px; }
.sc-mega-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px 16px; align-items: start; }
.sc-menu-group { border: 1px solid var(--sc-line); border-radius: 14px; overflow: hidden; }
.sc-menu-group summary { display: flex; gap: 10px; align-items: center; padding: 10px; cursor: pointer; list-style: none; }
.sc-menu-group summary::-webkit-details-marker { display: none; }
.sc-menu-group summary > a { flex: 1; font-size: 13px; font-weight: 550; line-height: 1.35; }
.sc-menu-group summary > a small { display: block; color: var(--sc-muted); font-size: 10px; font-weight: 400; margin-top: 4px; }
.sc-menu-group summary:hover, .sc-subcategories a:hover { background: color-mix(in srgb,var(--sc-accent),transparent 94%); }
.sc-category-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; flex: 0 0 44px; padding: 6px; overflow: hidden; border-radius: 10px; background: var(--sc-photo); color: #254135; }
.sc-category-icon img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.sc-menu-group .sc-chevron { width: 15px; }
.sc-menu-group[open] > summary > .sc-chevron { transform: rotate(180deg); }
.sc-subcategories { border-top: 1px solid var(--sc-line); padding: 5px; }
.sc-subcategories a { display: flex; align-items: center; gap: 9px; padding: 10px 9px; font-size: 12px; border-radius: 8px; }
.sc-subcategories small { margin-left: auto; color: var(--sc-muted); }
.sc-subcategories svg { width: 16px; height: 16px; color: var(--sc-muted); }
.sc-subcategories .sc-category-icon { width: 32px; height: 32px; min-width: 32px; flex-basis: 32px; padding: 4px; border-radius: 7px; }
.sc-dialog-bar .sc-back { display: flex; gap: 7px; width: auto; padding: 8px 12px; border-radius: 20px; font-size: 12px; }
.sc-creator-link { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; margin: 12px 0; padding: 16px 20px; border: 1px solid var(--sc-line); border-radius: 15px; font-size: 13px; }
.sc-creator-link:hover { border-color: var(--sc-accent); }
/* Loaded after the host Studio stylesheet. Original/chat/canvas layouts are preserved. */
:is(.sc-mega,.sc-collection,.sc-product-dialog,.sc-zoom) * { box-sizing: border-box; }
:is(.sc-mega,.sc-collection,.sc-product-dialog,.sc-zoom) button { font: inherit; cursor: pointer; }
:is(.sc-mega,.sc-collection,.sc-product-dialog,.sc-zoom) a { color: inherit; text-decoration: none; }
:is(.sc-mega,.sc-collection,.sc-product-dialog,.sc-zoom) svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:is(.sc-mega,.sc-collection,.sc-product-dialog,.sc-zoom) :focus-visible { outline: 3px solid var(--sc-accent); outline-offset: 4px; }
.sc-collection { padding: 5px 32px 30px; }
.sc-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding: 20px 0 32px; }
.sc-kicker { display: flex; align-items: center; gap: 9px; color: var(--sc-muted); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 17px; }
.sc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sc-accent); box-shadow: 0 0 0 5px color-mix(in srgb,var(--sc-accent),transparent 92%); }
.sc-heading h2 { font-size: clamp(30px,3.5vw,52px); max-width: 630px; line-height: 1.06; letter-spacing: -.055em; margin: 0; font-weight: 600; }
.sc-heading > p { max-width: 300px; margin: 0 0 4px; font-size: 14px; line-height: 1.65; color: var(--sc-muted); }
.sc-filters { display: flex; gap: 16px; align-items: center; padding: 13px; border: 1px solid var(--sc-line); border-radius: 20px; background: var(--sc-panel); }
.sc-search { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; padding-left: 8px; }
.sc-search input { width: 100%; min-width: 0; color: var(--sc-ink); background: none; border: 0; padding: 10px 0; font: inherit; font-size: 14px; }
.sc-search input::placeholder { color: var(--sc-muted); }
.sc-search-note { color: var(--sc-muted); font-size: 11px; line-height: 1.6; margin: 12px 3px; }
.sc-search-progress { display: flex; align-items: center; gap: 10px; color: var(--sc-ink); font-size: 13px; line-height: 1.5; }
.sc-search-progress:empty { display: none; }
.sc-search-progress.is-working::before { content: ''; width: 14px; height: 14px; flex: none; border: 2px solid var(--sc-line); border-top-color: var(--sc-accent); border-radius: 50%; animation: sc-spin 1s linear infinite; }
.sc-search-progress button { background: none; color: inherit; border: 0; text-decoration: underline; }
.sc-filter-submit:disabled { opacity: .55; cursor: wait; }
@keyframes sc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sc-search-progress.is-working::before { animation: none; } }
.sc-search kbd { color: var(--sc-muted); border: 1px solid var(--sc-line); border-radius: 6px; padding: 2px 7px; font: inherit; }
.sc-sort { display: flex; align-items: center; gap: 12px; border-left: 1px solid var(--sc-line); padding-left: 18px; font-size: 11px; color: var(--sc-muted); }
.sc-sort select { border: 0; border-radius: 8px; color: var(--sc-ink); background: var(--sc-panel); padding: 10px 4px; font: inherit; font-size: 12px; max-width: 190px; }
.sc-filter-submit { background: var(--sc-accent); color: #12251a; border: 0; border-radius: 12px; padding: 12px 17px; font-size: 12px !important; font-weight: 650 !important; }
.sc-categories { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 20px 0 8px; position: relative; }
.sc-categories button { display: flex; gap: 10px; align-items: center; min-width: 0; background: transparent; border: 1px solid var(--sc-line); color: var(--sc-ink); border-radius: 12px; padding: 7px 12px 7px 7px; font-size: 12px; text-align: left; }
.sc-categories button:hover { background: color-mix(in srgb,var(--sc-accent),transparent 94%); }
.sc-categories button[aria-pressed="true"] { border-color: var(--sc-accent); background: color-mix(in srgb,var(--sc-accent),transparent 88%); }
.sc-categories small { color: var(--sc-muted); font-size: 10px; }
.sc-category-picker { flex: 1 1 250px; max-width: 370px; }
.sc-category-picker > summary { display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; border: 1px solid var(--sc-line); border-radius: 14px; padding: 8px 13px 8px 8px; }
.sc-category-picker > summary::-webkit-details-marker { display: none; }
.sc-category-picker > summary > span:nth-child(2) { min-width: 0; flex: 1; }
.sc-category-picker > summary small { display: block; margin-bottom: 4px; }
.sc-category-picker > summary strong { font-size: 13px; font-weight: 550; }
.sc-category-picker[open] > summary { border-color: var(--sc-accent); }
.sc-category-picker[open] > summary > svg { transform: rotate(180deg); }
.sc-category-panel { position: absolute; left: 0; right: 0; z-index: 4; margin-top: 8px; padding: 18px; border: 1px solid var(--sc-line); border-radius: 18px; background: var(--sc-panel); box-shadow: 0 18px 50px #0003; max-height: min(530px,60dvh); overflow: auto; overscroll-behavior: contain; }
.sc-category-tree { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.sc-category-tree, .sc-category-tree ul { list-style: none; margin: 15px 0 0; padding: 0; }
.sc-category-tree ul { margin: 7px 0 0 12px; padding-left: 10px; border-left: 1px solid var(--sc-line); }
.sc-category-tree li { min-width: 0; }
.sc-category-tree li + li { margin-top: 5px; }
.sc-category-tree button { width: 100%; border-color: transparent; }
.sc-category-tree button > span:not(.sc-category-icon) { overflow-wrap: anywhere; }
.sc-category-tree button small { margin-left: auto; }
.sc-category-tree > li > button { font-weight: 600; border-color: var(--sc-line); }
.sc-category-tree ul .sc-category-icon { width: 32px; height: 32px; min-width: 32px; flex-basis: 32px; padding: 4px; }
.sc-category-children { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.sc-category-path button { border: 0; color: var(--sc-muted); }
.sc-result-info { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--sc-muted); padding: 12px 2px 20px; }
.sc-result-info strong { color: var(--sc-ink); }
.sc-result-info button { border: 0; color: inherit; background: transparent; }
.sc-result-info > span > span { margin: 0 10px; opacity: .4; }
.sc-freshness { margin: 0 0 18px; padding: 11px 14px; border-left: 2px solid #b3a355; background: color-mix(in srgb,#b3a355,transparent 93%); color: var(--sc-muted); font-size: 11px; line-height: 1.55; }
.sc-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 35px 20px; }
.sc-card { min-width: 0; animation: sc-reveal .4s ease both; }
.sc-card__visual { position: relative; display: block; aspect-ratio: 1 / 1.16; background: var(--sc-photo); border: 1px solid var(--sc-line); border-radius: 22px; overflow: hidden; color: #20382b !important; }
/* Main product surfaces follow the night theme; thumbnail/icon tiles stay light. */
html[data-public-chat-theme=night] :is(.sc-card__visual,.sc-product-stage,.sc-zoom) { background: radial-gradient(circle at 50% 44%,rgba(83,99,100,.32),transparent 64%),linear-gradient(180deg,#2a3435,#263031); }
html[data-public-chat-theme=night] .sc-product-stage { color: #bdc9c7; }
.sc-card__visual > img { display: block; width: 100%; height: 100%; padding: 14px 10px 30px; object-fit: contain; transition: transform .4s ease; }
.sc-card:hover .sc-card__visual > img { transform: scale(1.025); }
.sc-card__open { position: absolute; bottom: 13px; right: 13px; display: flex; align-items: center; gap: 10px; }
.sc-card__open > span { opacity: 0; font-size: 11px; padding: 5px 8px; border-radius: 8px; background: #ffffffed; transition: opacity .2s; }
.sc-card:hover .sc-card__open > span, .sc-card:focus-within .sc-card__open > span { opacity: 1; }
.sc-card__open b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: white; box-shadow: 0 2px 10px #0000000b; font-size: 19px; font-weight: 400; }
.sc-card__info { padding: 17px 3px 0; }
.sc-card__info > p { margin: 0 0 8px; color: var(--sc-muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.sc-card h3 { margin: 0; font-size: 17px; font-weight: 550; line-height: 1.25; letter-spacing: -.025em; }
.sc-card__bottom { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-top: 12px; }
.sc-card__bottom > span { color: var(--sc-muted); font-size: 10px; }
.sc-card__bottom strong { font-size: 15px; white-space: nowrap; font-weight: 600; }
.sc-card__bottom small { color: var(--sc-muted); font-size: 9px; font-weight: 400; }
.sc-empty { grid-column: 1 / -1; padding: 55px 24px; text-align: center; border: 1px dashed var(--sc-line); border-radius: 24px; }
.sc-empty > span { font-size: 36px; color: var(--sc-accent); }
.sc-empty h3 { font-size: 24px; margin: 12px; }
.sc-empty p { font-size: 14px; color: var(--sc-muted); }
.sc-status, .sc-dialog-status { font-size: 13px; color: var(--sc-muted); line-height: 1.5; }
.sc-status:empty, .sc-dialog-status:empty { display: none; }
.sc-status button { margin-left: 10px; color: var(--sc-ink); border: 0; border-bottom: 1px solid currentColor; background: none; }
.sc-more { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 35px; }
.sc-more button { display: flex; gap: 35px; padding: 16px 27px; color: var(--sc-ink); border: 1px solid var(--sc-line); border-radius: 100px; background: var(--sc-panel); font-size: 13px; }
.sc-more > span, .sc-catalog-footnote { font-size: 11px; color: var(--sc-muted); }
.sc-catalog-footnote { margin: 28px 0; }
.sc-studio-note { display: flex; gap: 20px; align-items: center; padding: 30px; margin-top: 25px; border: 1px solid var(--sc-line); border-radius: 24px; background: radial-gradient(ellipse at right,color-mix(in srgb,var(--sc-accent),transparent 92%),transparent 70%); }
.sc-studio-note > svg { color: var(--sc-accent); width: 33px; height: 33px; }
.sc-studio-note > div { display: flex; flex-direction: column; gap: 9px; }
.sc-studio-note strong { font-size: 20px; letter-spacing: -.025em; font-weight: 500; }
.sc-studio-note span { font-size: 12px; color: var(--sc-muted); }
.sc-studio-note button { margin-left: auto; flex-shrink: 0; display: flex; gap: 22px; padding: 12px 0; border: 0; background: none; color: var(--sc-ink); }
.sc-studio-note button span { color: var(--sc-ink); }
.sc-skeleton { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 24px 0; }
.sc-skeleton i { display: block; aspect-ratio: 1/1.2; border-radius: 22px; background: linear-gradient(120deg,var(--sc-panel),var(--sc-line),var(--sc-panel)); background-size: 200% 100%; animation: sc-shimmer 1.6s ease infinite; }
.sc-product-dialog { padding: 0; width: min(1220px,calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); border: 1px solid var(--sc-line); border-radius: 30px; background: var(--sc-panel); overflow: auto; overscroll-behavior: contain; box-shadow: 0 40px 120px #0006; }
.sc-product-dialog::backdrop, .sc-zoom::backdrop { background: #031713aa; backdrop-filter: blur(10px); }
.sc-product-dialog[open] { animation: sc-reveal .25s ease; }
[data-sc-dialog] { height: min(900px,calc(100dvh - 48px)); overflow: hidden; }
[data-sc-dialog][open] { display: flex; flex-direction: column; }
[data-sc-dialog] > .sc-dialog-bar, [data-sc-dialog] > .sc-dialog-status { flex: none; }
[data-sc-product-content] { display: flex; flex: 1; min-height: 0; }
html:has(.sc-product-dialog[open]) { overflow: hidden; }
.sc-dialog-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: var(--sc-panel); border-bottom: 1px solid var(--sc-line); }
.sc-wordmark { font-size: 22px; font-weight: 750; }
.sc-wordmark span { color: var(--sc-muted); font-weight: 300; margin: 0 9px; }
.sc-wordmark b { font-weight: 500; font-size: 12px; }
.sc-dialog-bar button { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--sc-line); border-radius: 50%; background: transparent; color: var(--sc-ink); }
.sc-dialog-status { padding: 16px 24px; }
.sc-product { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); grid-template-rows: minmax(0,1fr) auto; min-height: 0; width: 100%; }
.sc-product-body { display: contents; }
.sc-product-stage { grid-column: 1; grid-row: 1 / -1; position: relative; min-height: 0; background: var(--sc-photo); color: #294635; overflow: hidden; }
.sc-stage-caption { min-width: 0; margin-left: auto; font-size: 11px; line-height: 1.5; text-align: right; overflow-wrap: anywhere; }
.sc-stage-caption > span { margin: 0 6px; opacity: .4; }
.sc-product-image { display: block; border: 0; color: inherit; background: none; width: 100%; height: 100%; padding: 65px 30px 62px 83px; }
.sc-product-image > img { width: 100%; height: 100%; object-fit: contain; }
.sc-image-zoom { position: absolute; bottom: 46px; right: 22px; display: flex; align-items: center; gap: 8px; font-size: 11px; padding: 8px 12px; background: #fffe; color: #294635; border-radius: 20px; }
.sc-views { position: absolute; top: 85px; left: 18px; bottom: 95px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; scrollbar-width: none; }
.sc-views::-webkit-scrollbar { display: none; }
.sc-views button { background: var(--sc-photo); border: 1px solid #d2dacf; border-radius: 10px; padding: 2px; width: 52px; height: 62px; flex-shrink: 0; }
.sc-views button[aria-pressed="true"] { border: 2px solid #294b36; }
.sc-views img { width: 100%; height: 100%; object-fit: contain; }
.sc-stage-coordinate { position: absolute; bottom: 20px; left: 25px; right: 25px; display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .15em; opacity: .4; }
.sc-product-config { grid-column: 2; grid-row: 1; min-width: 0; min-height: 0; padding: 35px 38px 30px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scroll-padding-block: 18px; }
.sc-product-actions { grid-column: 2; grid-row: 2; display: grid; gap: 10px; padding: 18px 38px; border-top: 1px solid var(--sc-line); background: var(--sc-panel); box-shadow: 0 -10px 24px #00000008; }
.sc-product-actions .sc-plan, .sc-product-actions .sc-creator-link { margin: 0; min-height: 48px; padding: 12px 16px; }
.sc-product-actions .sc-plan-note { margin: 0; }
.sc-product-config h2 { margin: 0; font-size: clamp(27px,3vw,43px); line-height: 1.07; letter-spacing: -.045em; font-weight: 550; }
.sc-product-price { display: flex; align-items: baseline; gap: 12px; margin-top: 24px; }
.sc-product-price strong { font-size: 31px; font-weight: 500; letter-spacing: -.04em; }
.sc-product-price span { font-size: 11px; color: var(--sc-muted); }
.sc-price-note { color: var(--sc-muted); font-size: 11px; line-height: 1.65; margin: 9px 0 20px; }
.sc-choice { margin: 22px 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--sc-line); min-width: 0; }
.sc-choice legend { font-size: 12px; width: 100%; padding: 0; }
.sc-choice legend > b { font-size: 9px; color: var(--sc-muted); margin-right: 10px; }
.sc-choice legend > span { float: right; color: var(--sc-muted); font-size: 11px; max-width: 65%; text-align: right; }
.sc-colors { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; padding: 3px; }
.sc-colors a { width: 46px; height: 53px; flex: 0 0 46px; display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr); place-items: center; overflow: hidden; padding: 3px; border: 2px solid transparent; background: var(--sc-photo); color: #243929; border-radius: 9px; font-size: 9px; }
.sc-colors a[aria-current] { border-color: #77a921; outline: 1px solid #b9f227; }
.sc-colors img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; object-position: center; }
.sc-sizes { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 7px; }
.sc-sizes a { padding: 10px 13px; min-width: 43px; text-align: center; border: 1px solid var(--sc-line); border-radius: 9px; font-size: 12px; }
.sc-sizes a[aria-current] { background: var(--sc-ink); color: var(--sc-panel); border-color: var(--sc-ink); }
.sc-plan { display: flex; align-items: center; gap: 12px; width: 100%; padding: 18px 20px; border: 0; border-radius: 15px; background: var(--sc-accent); color: #14321b; font-size: 14px !important; font-weight: 650 !important; }
.sc-plan b { margin-left: auto; font-size: 21px; }
.sc-plan-note { color: var(--sc-muted); font-size: 10px; line-height: 1.6; margin: 12px 4px 24px; }
.sc-details { padding: 18px 0; border-top: 1px solid var(--sc-line); font-size: 12px; line-height: 1.7; }
.sc-details summary { display: flex; justify-content: space-between; cursor: pointer; font-weight: 550; list-style: none; font-size: 13px; }
.sc-details summary::-webkit-details-marker { display: none; }
.sc-details[open] summary span { transform: rotate(45deg); }
.sc-details p, .sc-details dl { margin: 14px 0 0; color: var(--sc-muted); white-space: pre-line; }
.sc-description { margin-top: 14px; color: var(--sc-muted); overflow-wrap: anywhere; }
.sc-description :is(p,div,ul,ol,dl,blockquote,table) { margin: 0 0 12px; white-space: normal; }
.sc-description :is(h2,h3,h4,h5,h6) { font-size: 14px; font-weight: 600; line-height: 1.5; letter-spacing: normal; color: var(--sc-ink); margin: 18px 0 10px; }
.sc-description :is(ul,ol) { padding-left: 20px; }.sc-description ul { list-style: disc; }.sc-description ol { list-style: decimal; }.sc-description li { margin: 4px 0; }
.sc-description a { text-decoration: underline; text-underline-offset: 3px; }.sc-description table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }.sc-description :is(td,th) { padding: 6px; border: 1px solid var(--sc-line); }
.sc-description>:first-child { margin-top: 0; }.sc-description>:last-child { margin-bottom: 0; }
.sc-details dt { color: var(--sc-ink); margin-top: 9px; }
.sc-details dd { margin: 3px 0; }
.sc-zoom { padding: 20px; width: min(1000px,94vw); height: 90dvh; max-height: 90dvh; border: 0; border-radius: 24px; background: var(--sc-photo); }
.sc-zoom img { width: 100%; height: 100%; object-fit: contain; }
.sc-zoom button { position: absolute; right: 15px; top: 15px; background: #e7eee3; color: #163322; border: 0; border-radius: 50%; width: 38px; height: 38px; font-size: 25px; }
@keyframes sc-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sc-shimmer { to { background-position: -200% 0; } }
@media (max-width: 1150px) {
    .sc-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .sc-product-config { padding: 28px 24px; }
    .sc-product-actions { padding-inline: 24px; }
    .sc-sort > span { display: none; }
}
@media (max-width: 760px) {
    .sc-category-picker { max-width: none; }
    .sc-category-tree { grid-template-columns: 1fr; gap: 15px; }
    .sc-category-panel { padding: 12px; }
    .sc-category-children .sc-category-icon { width: 32px; height: 32px; min-width: 32px; flex-basis: 32px; padding: 4px; }
    .sc-collection { padding: 15px 16px 40px; }
    .sc-heading { flex-direction: column; align-items: start; gap: 16px; }
    .sc-heading h2 { font-size: 37px; }
    .sc-heading > p { max-width: 430px; font-size: 13px; }
    .sc-filters { flex-wrap: wrap; gap: 5px; padding: 10px; }
    .sc-search { flex-basis: 100%; border-bottom: 1px solid var(--sc-line); margin-bottom: 4px; }
    .sc-sort { border: 0; padding: 0; flex: 1; }
    .sc-sort select { max-width: 100%; }
    .sc-filter-submit { padding: 10px 15px; }
    .sc-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 12px; }
    .sc-card__visual { border-radius: 17px; }
    .sc-card__visual > img { padding: 12px 4px 24px; }
    .sc-card h3 { font-size: 15px; }
    .sc-card__info > p { font-size: 8px; }
    .sc-card__bottom { flex-direction: column; align-items: start; }
    .sc-card__open > span { display: none; }
    .sc-card__open b { width: 29px; height: 29px; }
    .sc-studio-note { padding: 22px; flex-wrap: wrap; gap: 15px; }
    .sc-studio-note > div { flex: 1; }
    .sc-studio-note strong { font-size: 18px; }
    .sc-studio-note button { margin-left: 48px; }
    .sc-skeleton { grid-template-columns: repeat(2,1fr); }
    .sc-product-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 22px; }
    [data-sc-dialog] { height: calc(100dvh - 16px); }
    .sc-product { grid-template-columns: 1fr; }
    .sc-product-body { display: block; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
    .sc-product-stage { position: relative; top: 0; min-height: 380px; height: 48dvh; }
    .sc-product-image { padding: 50px 20px 48px 65px; }
    .sc-product-config { padding: 27px 23px; overflow: visible; }
    .sc-product-actions { grid-column: 1; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 12px 16px max(12px,env(safe-area-inset-bottom)); }
    .sc-product-actions .sc-plan, .sc-product-actions .sc-creator-link { gap: 8px; padding: 10px; font-size: 12px !important; line-height: 1.4; }
    .sc-product-actions .sc-plan b { display: none; }
    .sc-product-actions svg { width: 16px; height: 16px; }
    .sc-product-actions .sc-plan-note { grid-column: 1 / -1; font-size: 9px; }
    .sc-product-config h2 { font-size: 33px; }
    .sc-dialog-bar { padding: 10px 16px; }
}

@media (max-width: 1150px) { .sc-mega-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 760px) {
    .sc-mega { padding: 16px; border-radius: 18px; max-height: 65dvh; }
    .sc-mega-grid { grid-template-columns: 1fr; }
    .sc-mega > header { padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce) { .sc-card, .sc-product-dialog[open], .sc-skeleton i { animation: none; } .sc-card__visual > img { transition: none; } }
