:root { --footer-height: 48px; --wash: #ffffff; --paper: #ffffff; --ink: #252126; --muted: #665b61; --line: #eadfe3; --accent: #e8bac8; --accent-dark: #94546c; --accent-soft: #f8e9ef; }
:root[data-color-mode="dark"] { --wash: #09090c; --paper: #151316; --ink: #f1e9ed; --muted: #c0adb5; --line: #3c3037; --accent: #a88492; --accent-dark: #cfabb9; --accent-soft: #292027; background: var(--wash); }
html body[class], html[data-color-mode="dark"] body[class] { --wash: inherit; --paper: inherit; --ink: inherit; --muted: inherit; --line: inherit; --accent: inherit; --accent-dark: inherit; --accent-soft: inherit; background-color: var(--wash); color: var(--ink); }
html .site-header, html[data-color-mode="dark"] .site-header { background: transparent; background-color: transparent; box-shadow: none; border: 0; }
html[data-color-mode] .site-header .header-inner { background: transparent; }
html .model-grid.catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html .catalogue-grid .model-card .card-image { aspect-ratio: 4 / 3; }
html .crop-stage { aspect-ratio: 4 / 3; }
html .cover-upload-field .upload-preview { aspect-ratio: 4 / 3; width: min(100%, 360px); height: auto; max-height: none; min-height: 0; padding: 0; overflow: hidden; }
html .cover-upload-field .upload-preview img { width: 100%; height: 100%; object-fit: cover; }
html .admin-thumb { width: 64px; height: 48px; object-fit: cover; }
.card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 16px; }
html .card-title-row .card-name { margin: 0; min-width: 0; font-size: 15px; line-height: 26px; overflow-wrap: anywhere; }
.card-category { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 26px; padding: 2px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--accent-soft); color: var(--ink); font-size: 12px; line-height: 20px; }
@media (max-width: 760px) { .card-title-row { gap: 6px; } .card-category { padding-left: 6px; padding-right: 6px; font-size: 11px; } }
html .footer-socials { gap: 22px; margin: 48px auto 18px; padding: 18px 20px; }
html .social-link { width: 78px; gap: 10px; }
html .social-circle { width: 52px; height: 52px; }
html .social-circle svg { width: 24px; height: 24px; filter: drop-shadow(0 3px 3px rgb(37 21 29 / .25)); }
html[data-color-mode="dark"] .social-circle svg { filter: drop-shadow(0 3px 4px rgb(0 0 0 / .65)); }
html .site-footer, html[data-color-mode="dark"] .site-footer { height: calc(var(--footer-height) + env(safe-area-inset-bottom)); background: transparent; border: 0; box-shadow: none; overflow: visible; }
html .site-footer::before { content: ''; position: absolute; z-index: -1; top: -18px; left: 0; right: 0; height: calc(100% + 46px); background: var(--wash); filter: blur(14px); pointer-events: none; }
html .site-footer::after { content: ''; position: absolute; z-index: -2; top: -38px; left: 0; right: 0; height: calc(100% + 58px); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); mask-image: linear-gradient(to bottom, transparent, #000 62%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 62%); pointer-events: none; }
html .site-footer .footer-inner { height: var(--footer-height); max-width: 1256px; display: flex; align-items: center; justify-content: space-between; padding-top: 0; padding-bottom: 0; color: var(--ink); }
.footer-identity { display: flex; gap: 10px; align-items: center; }
.footer-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--accent-soft); display: grid; place-items: center; color: var(--ink); }
.footer-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.footer-avatar > span { font-size: 13px; font-weight: 700; }
.footer-name { font-size: 14px; font-weight: 600; }
.footer-back-to-top { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; flex-shrink: 0; }
.footer-back-to-top .icon { width: 21px; height: 21px; }
.footer-back-to-top:hover { background: var(--accent-soft); }
.footer-back-to-top:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: -4px; }
html .showcase-copy h1 { font-size: var(--home-title-size, 86px); }
html .showcase-text { font-size: var(--home-text-size, 15px); }
.home-font-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.font-control-inputs { display: flex; align-items: center; gap: 10px; }
.field .font-control-inputs input[type="range"] { padding: 0; width: 100%; min-width: 70px; border: 0; height: 30px; accent-color: var(--accent-dark); }
.field .font-control-inputs input[type="number"] { width: 74px; flex-shrink: 0; }
.font-control-inputs > span { font-size: 12px; color: var(--muted); }
.home-preview-viewport { width: 100%; overflow: hidden; border: 1px solid var(--line); margin-bottom: 20px; background: var(--wash); }
.home-preview-stage { width: 1080px; transform-origin: top left; background: var(--wash); padding: 24px 36px; }
.home-preview-stage { position: relative; isolation: isolate; }
.demo-background-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.home-preview-content .home-showcase { z-index: 1; }
.home-preview-background { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: .14; pointer-events: none; }
html[data-color-mode="dark"] .home-preview-background { filter: invert(1); }
.home-preview-stage .home-showcase { margin: 0; min-height: 470px; }
.home-preview-stage .showcase-copy { width: 52%; }
.home-preview-stage .showcase-media { width: 65%; }
.home-preview-stage .showcase-copy h1 { font-size: var(--home-title-size, 86px); }
.home-preview-stage .showcase-text { font-size: var(--home-text-size, 15px); max-width: 390px; }
@media (max-width: 760px) {
  html .showcase-copy h1 { font-size: max(24px, calc(var(--home-title-size, 86px) * .65)); }
  html .showcase-text { font-size: max(12px, calc(var(--home-text-size, 15px) * .8)); }
  .home-font-controls { grid-template-columns: 1fr; gap: 0; }
  .home-preview-stage .showcase-copy h1 { font-size: var(--home-title-size, 86px); }
  .home-preview-stage .showcase-text { font-size: var(--home-text-size, 15px); }
}
.header-menu-toggle { display:none; }
@media(max-width:760px) {
  .site-header .header-inner { position:relative; flex-wrap:nowrap; }
  .header-menu-toggle { display:grid; place-items:center; width:40px; height:40px; margin-left:auto; flex-shrink:0; padding:0; border:1px solid var(--line); border-radius:6px; background:var(--paper); color:var(--ink); cursor:pointer; }
  .site-header .header-actions { display:none; position:absolute; z-index:100; top:calc(100% - 8px); right:22px; min-width:142px; margin:0; padding:10px; flex-direction:column; align-items:stretch; gap:8px; flex-wrap:nowrap; border:1px solid var(--line); border-radius:10px; background:var(--paper); box-shadow:0 12px 30px rgb(0 0 0 / .13); }
  .site-header .is-menu-open .header-actions { display:flex; }
  .site-header:has(.is-menu-open) { z-index:100; }
  .site-header .header-actions > * { width:100%; justify-content:center; min-height:38px; margin:0; }
  html .home-page .home-showcase { aspect-ratio:16/9; height:auto; min-height:0; margin-top:76px; margin-bottom:32px; container-type:inline-size; }
  html .home-page .showcase-copy { width:68%; padding:0; }
  html .home-page .showcase-copy h1 { font-size:min(calc(var(--home-title-size,86px) * .45),11cqw); line-height:1.08; margin:0 0 3cqw; }
  html .home-page .showcase-subtitle { font-size:2.4cqw; margin:0 0 2.5cqw; }
  html .home-page .showcase-text { font-size:min(calc(var(--home-text-size,15px) * .72),3cqw); line-height:1.7; max-width:100%; }
  html .home-page .showcase-link { margin-top:3cqw; font-size:2.8cqw; gap:12px; padding-bottom:4px; }
  html .home-page .showcase-link .icon { width:14px; height:14px; }
  html .home-page .showcase-media .hero-controls { bottom:7px; right:5px; gap:5px; }
  html .home-page .showcase-media .hero-controls > button { width:25px; height:25px; }
  html .home-page .showcase-media .showcase-indicators button { width:12px; }
}

@media(max-width:760px) {
 .site-header .brand-artwork .wordmark-frame { width:76px; }
 .site-header .brand:not(.brand-artwork) .brand-logo { max-width:64px; max-height:36px; }
 .site-header .header-inner { padding-top:14px; padding-bottom:14px; }
 .header-menu-toggle { border:0; border-radius:0; background:transparent; width:34px; height:34px; }
 .site-header .header-actions { min-width:122px; padding:7px; gap:5px; border-radius:8px; }
 .site-header .header-actions > * { min-height:32px; font-size:11px; padding:6px 8px; }
 .site-header .header-color-mode { gap:5px; }
 .site-header .header-color-mode .mode-icon { width:15px; height:15px; }
 html .home-page .home-showcase { margin-top:20px; }
}

@media(max-width:760px) {
 .collection { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:10px; row-gap:12px; }
 .collection .section-heading, .collection .collection-heading-actions, .collection .collection-toolbar { display:contents; }
 .collection .section-heading > div:first-child { grid-column:1; grid-row:1; align-self:end; }
 .collection .section-heading h2 { font-size:16px; margin:4px 0 0; }
 .collection .catalogue-switch { grid-column:2; grid-row:1; justify-self:end; align-self:end; padding:0; font-size:16px; }
 .collection .category-tabs { grid-column:1/-1; grid-row:2; }
 .collection .search-box { grid-column:1; grid-row:3; width:100%; min-width:0; padding:7px; gap:5px; height:34px; }
 .collection .search-box input { width:100%; min-width:0; font-size:10px; }
 .collection .search-box .icon { width:14px; height:14px; }
 .collection .collection-controls { grid-column:2; grid-row:3; justify-content:flex-end; justify-self:end; gap:7px; margin-left:auto; }
 .collection .collection-controls .favorites-filter { font-size:10px; gap:4px; padding:0; white-space:nowrap; }
 .collection .collection-controls .favorites-filter .icon { width:14px; height:14px; }
 .collection .collection-controls select { font-size:10px; width:72px; padding:4px 0; }
 .collection .collection-controls .sort-direction { width:30px; height:34px; padding:5px; }
 .collection .results-line, .collection #model-grid, .collection #pagination { grid-column:1/-1; min-width:0; }
}
@media(max-width:760px) { .collection .search-box { margin:0; align-self:center; } .collection .collection-controls { width:auto; flex-wrap:nowrap; align-self:center; } }
