:root {
  --ink: #121212;
  --muted: #6c6f75;
  --line: #dfe2e6;
  --soft: #f5f6f7;
  --white: #ffffff;
  --acid: #d9ff45;
  --blue: #1463ff;
  --coral: #ff6b4a;
  --aqua: #60e1d2;
  --shadow: 0 12px 34px rgba(24, 30, 40, 0.1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}
button, input, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 18px; height: 18px; stroke-width: 1.8; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 66px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.brand img { width: 31px; height: 31px; object-fit: contain; }
.brand > span { font-size: 23px; font-weight: 800; line-height: 1; }
.brand small { align-self: flex-end; margin-bottom: 3px; color: var(--blue); font-size: 9px; font-weight: 800; }
.top-nav { display: flex; justify-content: center; gap: 28px; }
.top-nav a { color: #4d5158; font-weight: 650; text-decoration: none; }
.top-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn, .text-btn, .language-switcher button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}
.icon-btn { display: grid; width: 36px; padding: 0; place-items: center; border-radius: 6px; }
.text-btn { padding: 0 13px; border-color: var(--ink); border-radius: 6px; font-weight: 700; }
.language-switcher { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.language-switcher button { min-width: 34px; padding: 0 8px; border: 0; border-right: 1px solid var(--line); }
.language-switcher button:last-child { border-right: 0; }
.language-switcher button.active { background: var(--ink); color: var(--white); }

.trust-strip {
  display: flex;
  justify-content: center;
  gap: 30px;
  min-height: 39px;
  padding: 9px 24px;
  color: #45484e;
  background: var(--acid);
  font-size: 12px;
}
.trust-strip > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.trust-strip svg { width: 14px; height: 14px; }
.trust-strip b { color: var(--ink); }
.api-status { margin-left: 20px; }
#api-dot { width: 7px; height: 7px; border-radius: 50%; background: #ffb020; box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.2); }
#api-dot.online { background: #00a66a; box-shadow: 0 0 0 3px rgba(0, 166, 106, 0.18); }
#api-dot.offline { background: var(--coral); box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.18); }

main { max-width: 1500px; margin: 0 auto; padding: 20px 30px 80px; }
.studio-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 16px; }
.eyebrow { margin: 0 0 7px; color: var(--blue); font-size: 11px; font-weight: 800; }
.studio-heading h1 { margin: 0; font-size: clamp(29px, 2.5vw, 40px); line-height: 1.04; letter-spacing: 0; }
.studio-heading > p { max-width: 560px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.step-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid var(--line);
  list-style: none;
}
.step-bar li {
  position: relative;
  display: grid;
  grid-template-columns: 28px auto;
  align-items: center;
  min-height: 54px;
  padding: 9px 14px;
  border-right: 1px solid var(--line);
  cursor: pointer;
}
.step-bar li:last-child { border-right: 0; }
.step-bar li > span { grid-row: 1 / 3; display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: #e9ebee; font-size: 11px; font-weight: 800; }
.step-bar li b { font-size: 13px; }
.step-bar li small { max-width: 170px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.step-bar li.active { background: #f7f9ff; box-shadow: inset 0 -3px var(--blue); }
.step-bar li.active > span { background: var(--blue); color: var(--white); }
.step-bar li.done > span { background: var(--acid); color: var(--ink); }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 20px; align-items: start; }
.catalog-panel, .preview-panel { border: 1px solid var(--line); background: var(--white); }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.mode-tabs { display: flex; gap: 3px; }
.mode-tabs button, .segmented button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}
.mode-tabs button.active { border-color: var(--ink); background: var(--ink); color: var(--white); }
.search-box { display: flex; align-items: center; width: min(280px, 42%); height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.search-box svg { width: 16px; color: var(--muted); }
.search-box input { width: 100%; height: 100%; padding-left: 8px; border: 0; outline: 0; background: transparent; }

.catalog-view { display: none; min-height: 660px; padding: 14px; }
.catalog-view.active { display: block; }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.filter-row button, .refresh-button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: #4e5259;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.filter-row button.active { border-color: var(--blue); background: #edf3ff; color: var(--blue); }
.category-row { padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.result-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 30px; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.result-line > span:first-child { color: var(--ink); font-weight: 800; }
.link-button { padding: 0; border: 0; background: none; color: var(--blue); cursor: pointer; font-weight: 700; }

.style-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.garment-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.style-card, .garment-card, .fabric-card, .model-card, .scene-card, .case-card { position: relative; min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--white); cursor: pointer; text-align: left; }
.style-card:hover, .garment-card:hover, .fabric-card:hover, .model-card:hover, .scene-card:hover, .case-card:hover { border-color: #979ca4; }
.style-card.selected, .garment-card.selected, .fabric-card.selected, .model-card.selected, .scene-card.selected { border-color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.style-card .image-wrap { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #f8f8f8; }
.style-card img { width: 100%; height: 100%; object-fit: contain; }
.style-card .latest-tag { position: absolute; top: 5px; left: 5px; padding: 3px 5px; border-radius: 4px; background: var(--acid); font-size: 8px; font-weight: 900; }
.select-mark { position: absolute; top: 6px; right: 6px; display: none; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--blue); color: var(--white); }
.selected .select-mark { display: grid; }
.select-mark svg { width: 13px; height: 13px; stroke-width: 3; }
.style-card .card-copy { min-height: 49px; padding: 7px 8px 8px; }
.style-card strong { display: -webkit-box; overflow: hidden; font-size: 11px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.style-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.garment-card .garment-image { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #f2f2f0; }
.garment-card img { width: 100%; height: 100%; object-fit: cover; }
.garment-card .card-copy { display: block; min-height: 77px; padding: 7px 8px 8px; }
.garment-card strong { display: -webkit-box; min-height: 28px; overflow: hidden; font-size: 11px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.garment-card small { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.garment-card .card-copy > span { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 6px; }
.garment-card .card-copy b { color: var(--coral); font-size: 11px; }
.garment-card .card-copy em { overflow: hidden; color: var(--muted); font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.load-more { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 40px; margin-top: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); cursor: pointer; font-size: 12px; font-weight: 800; }
.load-more[hidden] { display: none; }

.fabric-toolbar { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.refresh-button { display: inline-flex; align-items: center; gap: 6px; }
.refresh-button svg { width: 14px; }
.fabric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.fabric-card .fabric-image { position: relative; aspect-ratio: 1; overflow: hidden; background: #eceff1; }
.fabric-card img { width: 100%; height: 100%; object-fit: cover; }
.fabric-card .card-copy { min-height: 62px; padding: 7px 8px 9px; }
.fabric-card strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.fabric-card small { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.fabric-card em { display: block; margin-top: 4px; color: var(--blue); font-size: 10px; font-style: normal; font-weight: 800; }
.skeleton { min-height: 180px; background: linear-gradient(90deg, #eff1f2 25%, #f9f9f9 45%, #eff1f2 65%); background-size: 240% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -240% 0; } }

.look-control { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.look-control h2, .section-title h2 { margin: 0 0 10px; font-size: 14px; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); }
.segmented button { min-width: 150px; border-radius: 5px; font-size: 12px; }
.segmented button.active { background: var(--ink); color: var(--white); }
.look-group { margin-top: 18px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.section-title h2 { margin: 0; }
.section-title span { color: var(--muted); font-size: 10px; }
.model-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.model-card { aspect-ratio: 3 / 4; background: var(--soft); }
.model-card img { width: 100%; height: 100%; object-fit: cover; }
.scene-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.scene-card { aspect-ratio: 4 / 3; }
.scene-card img { width: 100%; height: 100%; object-fit: cover; }
.scene-card span { position: absolute; inset: auto 0 0; padding: 16px 7px 7px; color: var(--white); background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: 10px; font-weight: 800; }
.asset-archive { margin-top: 12px; border-top: 1px solid var(--line); }
.asset-archive summary { display: flex; align-items: center; justify-content: space-between; min-height: 42px; cursor: pointer; color: var(--muted); font-size: 11px; font-weight: 800; list-style: none; }
.asset-archive summary::-webkit-details-marker { display: none; }
.asset-archive summary svg { width: 14px; transition: transform .2s ease; }
.asset-archive[open] summary svg { transform: rotate(180deg); }
.reference-card { cursor: default; }
.reference-card:hover { border-color: var(--line); }
.case-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.case-card { aspect-ratio: 4 / 5; cursor: default; background: var(--soft); }
.case-card img { width: 100%; height: 100%; object-fit: cover; }

.preview-panel { position: sticky; top: 84px; padding: 15px; box-shadow: var(--shadow); }
.preview-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.preview-head p { margin: 0 0 4px; color: var(--blue); font-size: 9px; font-weight: 900; }
.preview-head h2 { max-width: 250px; margin: 0; overflow: hidden; font-size: 17px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.preview-mode { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 9px; font-weight: 800; }
.preview-mode svg { width: 13px; }
.design-preview { position: relative; aspect-ratio: 3 / 4; max-height: 470px; overflow: hidden; border: 1px solid var(--line); background: #f4f4f2; }
.preview-empty { position: absolute; inset: 0; }
.preview-empty img { width: 100%; height: 100%; object-fit: cover; }
.preview-empty::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,10,10,.72)); }
.preview-empty div { position: absolute; z-index: 1; right: 18px; bottom: 17px; left: 18px; color: var(--white); }
.preview-empty b, .preview-empty span { display: block; }
.preview-empty b { margin-bottom: 3px; font-size: 16px; }
.preview-empty span { font-size: 11px; opacity: .82; }
.selected-style-preview, .generated-preview { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.generated-preview { object-fit: cover; }
.fabric-chip { position: absolute; right: 10px; bottom: 10px; left: 10px; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 9px; align-items: center; min-height: 62px; padding: 6px; border: 1px solid rgba(0,0,0,.12); border-radius: 6px; background: rgba(255,255,255,.94); box-shadow: 0 5px 18px rgba(0,0,0,.14); backdrop-filter: blur(10px); }
.fabric-chip img { width: 52px; height: 48px; border-radius: 4px; object-fit: cover; }
.fabric-chip small, .fabric-chip b { display: block; }
.fabric-chip small { margin-bottom: 3px; color: var(--muted); font-size: 8px; font-weight: 800; }
.fabric-chip b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.generation-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,.93); }
.spinner { width: 28px; height: 28px; border: 3px solid #dfe2e6; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.generation-state small { color: var(--muted); }
.selection-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 11px 0 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.selection-summary > div { min-width: 0; padding: 9px 8px; border-right: 1px solid var(--line); }
.selection-summary > div:first-child { padding-left: 0; }
.selection-summary > div:last-child { padding-right: 0; border-right: 0; }
.selection-summary span, .selection-summary b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selection-summary span { margin-bottom: 3px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.selection-summary b { font-size: 10px; }
.validation-message { min-height: 15px; margin: 0 0 7px; color: var(--coral); font-size: 10px; }
.primary-button, .secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 45px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 850;
}
.primary-button { border: 1px solid var(--ink); background: var(--ink); color: var(--white); }
.primary-button:hover { background: var(--blue); border-color: var(--blue); }
.primary-button:disabled { cursor: wait; opacity: .55; }
.secondary-button { margin-top: 7px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); }
.price-note { display: flex; gap: 6px; margin: 10px 2px 0; color: var(--muted); font-size: 9px; line-height: 1.35; }
.price-note svg { flex: 0 0 auto; width: 13px; color: #00a66a; }

.mobile-action-bar { display: none; }
dialog { width: min(460px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
dialog::backdrop { background: rgba(12, 15, 19, .58); backdrop-filter: blur(3px); }
.dialog-shell { position: relative; padding: 28px; }
.dialog-close { position: absolute; top: 12px; right: 12px; display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--white); cursor: pointer; }
.dialog-kicker { margin: 0 0 7px; color: var(--blue); font-size: 10px; font-weight: 900; }
.dialog-shell h2 { margin: 0 0 7px; font-size: 25px; }
.dialog-shell > p:not(.dialog-kicker):not(.form-error) { margin: 0 0 18px; color: var(--muted); line-height: 1.5; }
.dialog-shell > label, .form-grid label { display: grid; gap: 6px; margin-top: 13px; font-size: 11px; font-weight: 800; }
.dialog-shell input, .dialog-shell textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; outline: none; background: var(--soft); resize: vertical; }
.dialog-shell input:focus, .dialog-shell textarea:focus { border-color: var(--blue); background: var(--white); }
.dialog-shell .primary-button { margin-top: 18px; }
.dialog-link { display: block; margin-top: 14px; color: var(--blue); text-align: center; font-size: 11px; font-weight: 800; }
.form-error { min-height: 16px; margin: 9px 0 0; color: var(--coral); font-size: 10px; }
.consent-selection { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 16px 0; }
.consent-selection img { width: 100%; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 6px; object-fit: contain; }
.consent-selection img:last-child { object-fit: cover; }
.check-row { display: grid !important; grid-template-columns: 20px 1fr; align-items: start; gap: 9px !important; font-weight: 500 !important; line-height: 1.45; }
.check-row input { width: 17px; height: 17px; margin: 1px 0 0; padding: 0; accent-color: var(--blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-grid .full { grid-column: 1 / -1; }
.toast { position: fixed; z-index: 50; right: 22px; bottom: 22px; max-width: min(380px, calc(100vw - 32px)); padding: 11px 14px; border-radius: 6px; background: var(--ink); color: var(--white); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .style-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .garment-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .case-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .workspace { grid-template-columns: minmax(0, 1fr) 350px; }
  .top-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
}

@media (max-width: 860px) {
  .site-header { height: 58px; padding: 0 14px; }
  .brand > span { font-size: 20px; }
  .brand small, .header-actions .text-btn { display: none; }
  .icon-btn { width: 34px; }
  .language-switcher button { min-width: 31px; padding: 0 6px; }
  .trust-strip { justify-content: flex-start; gap: 18px; overflow-x: auto; padding: 8px 14px; scrollbar-width: none; }
  .trust-strip::-webkit-scrollbar { display: none; }
  .api-status { margin-left: 0; }
  main { padding: 18px 12px 104px; }
  .studio-heading { display: block; margin-bottom: 15px; }
  .studio-heading h1 { font-size: 30px; }
  .studio-heading > p { margin-top: 9px; font-size: 13px; }
  .step-bar { overflow-x: auto; grid-template-columns: repeat(4, minmax(135px, 1fr)); scrollbar-width: none; }
  .step-bar::-webkit-scrollbar { display: none; }
  .step-bar li { min-height: 54px; }
  .workspace { display: block; }
  .preview-panel { position: static; margin-top: 14px; box-shadow: none; }
  .catalog-panel { min-height: auto; }
  .catalog-view { min-height: 560px; }
  .mobile-action-bar { position: fixed; z-index: 25; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 72px; padding: 9px max(12px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -8px 28px rgba(0,0,0,.1); backdrop-filter: blur(14px); }
  .mobile-action-bar small, .mobile-action-bar b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-action-bar small { margin-bottom: 3px; color: var(--muted); font-size: 8px; }
  .mobile-action-bar b { font-size: 11px; }
  .mobile-action-bar button { display: inline-flex; align-items: center; gap: 6px; min-height: 45px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: var(--white); font-weight: 850; }
}

@media (max-width: 560px) {
  .site-header { padding-right: 8px; padding-left: 10px; }
  .brand { gap: 6px; }
  .brand img { width: 27px; height: 27px; }
  .brand > span { font-size: 18px; }
  .header-actions { gap: 5px; }
  .studio-heading h1 { font-size: 27px; }
  .studio-heading > p { line-height: 1.45; }
  .step-bar { margin-bottom: 10px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; gap: 8px; padding: 9px; }
  .mode-tabs { overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .mode-tabs::-webkit-scrollbar { display: none; }
  .mode-tabs button { flex: 0 0 auto; padding: 0 10px; }
  .search-box { width: 100%; }
  .catalog-view { min-height: 520px; padding: 9px; }
  .style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .garment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .garment-card .card-copy { min-height: 70px; padding: 6px; }
  .garment-card strong { min-height: 25px; font-size: 10px; }
  .garment-card .card-copy b { font-size: 10px; }
  .style-card .card-copy { min-height: 45px; padding: 6px; }
  .style-card strong { font-size: 10px; }
  .fabric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .fabric-card .card-copy { min-height: 57px; padding: 6px; }
  .fabric-card strong { font-size: 10px; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-row button { flex: 0 0 auto; }
  .result-line > span:last-child { max-width: 54%; text-align: right; }
  .model-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .segmented { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .segmented button { min-width: 0; padding: 0 8px; }
  .preview-panel { padding: 10px; }
  .design-preview { max-height: none; }
  .dialog-shell { padding: 24px 18px; }
  .form-grid { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .spinner, .skeleton { animation: none; }
}
