:root {
  --os-ink: #111827;
  --os-muted: #64748b;
  --os-subtle: #94a3b8;
  --os-line: #e5e7eb;
  --os-soft: #f8fafc;
}

html { scroll-behavior: smooth; }

body {
  background: #fff;
  color: var(--os-ink);
}

button,
input,
textarea { font: inherit; }

.os-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 120px;
}

.os-page-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 5px; border: 1px solid var(--os-line); border-radius: 14px; background: #f8fafc; }
.os-page-switch a { min-width: 0; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 8px 13px; border-radius: 10px; color: #64748b; text-decoration: none; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.os-page-switch a > i { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; border-radius: 8px; background: #eef2f7; font-size: .72rem; }
.os-page-switch a > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.os-page-switch strong { color: inherit; font-size: .76rem; font-weight: 900; }
.os-page-switch small { overflow: hidden; color: #94a3b8; font-size: .61rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.os-page-switch a.is-active { background: #111827; color: #fff; box-shadow: 0 5px 14px rgba(15,23,42,.12); }
.os-page-switch a.is-active > i { background: rgba(255,255,255,.13); }
.os-page-switch a.is-active small { color: #cbd5e1; }

.os-hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--os-line);
  border-radius: 20px;
  background: #fff;
}

.os-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 62px);
}

.os-kicker,
.os-section-kicker,
.os-picker-intro > span,
.os-compose-topline,
.os-builder-head > div > span {
  color: var(--os-subtle);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.os-hero h1 {
  margin: 11px 0 15px;
  font-size: clamp(3rem, 6vw, 5.1rem);
  font-weight: 950;
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.os-hero-copy p {
  max-width: 420px;
  margin: 0;
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.7;
  word-break: keep-all;
}

.os-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.os-primary-btn,
.os-secondary-btn,
.os-section-create {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.os-primary-btn {
  border: 1px solid #111827;
  background: #111827;
  color: #fff;
}

.os-secondary-btn,
.os-section-create {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
}

.os-hero-board {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-left: 1px solid var(--os-line);
  background: #f8fafc;
}

.os-hero-board::before {
  position: absolute;
  inset: 20px;
  border: 1px dashed #d8dee7;
  border-radius: 14px;
  content: "";
}

.os-hero-label {
  position: absolute;
  top: 34px;
  left: 38px;
  z-index: 4;
  color: #94a3b8;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.os-hero-product {
  position: absolute;
  z-index: 2;
}

.os-hero-product img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.os-hero-product--1 { width: 42%; height: 47%; left: 8%; top: 15%; transform: rotate(-2deg); }
.os-hero-product--2 { width: 36%; height: 41%; right: 7%; top: 8%; transform: rotate(2deg); }
.os-hero-product--3 { width: 39%; height: 38%; left: 15%; bottom: 6%; transform: rotate(1deg); }
.os-hero-product--4 { width: 37%; height: 42%; right: 9%; bottom: 6%; transform: rotate(-2deg); }

.os-guide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  padding: 22px 10px;
  border-bottom: 1px solid var(--os-line);
}

.os-guide > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 750;
}

.os-guide strong { color: #94a3b8; font-size: 0.66rem; letter-spacing: 0.08em; }
.os-guide > i { color: #cbd5e1; font-size: 0.62rem; }

.os-feed-section { padding-top: 16px; }

.os-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.os-section-head h1 {
  margin: 5px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 950;
  letter-spacing: -0.045em;
}

.os-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.os-feed-topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.os-feed-tabs { display: flex; align-items: center; gap: 4px; }
.os-feed-tabs button { min-height: 36px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: #64748b; font: inherit; font-size: .72rem; font-weight: 850; cursor: pointer; }
.os-feed-tabs button.is-active { background: #111827; color: #fff; }
.os-feed-topbar .os-feed-tabs { padding: 5px; border: 1px solid var(--os-line); border-radius: 12px; background: #fff; }
.os-feed-topbar .os-section-create { min-height: 42px; border-color: #111827; background: #111827; color: #fff; box-shadow: 0 7px 18px rgba(15, 23, 42, .12); }
.os-feed-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin-bottom: 10px; padding: 0 2px; border-bottom: 1px solid #eef2f6; }
.os-sort-select { display: flex; align-items: center; gap: 7px; color: #64748b; font-size: .66rem; font-weight: 800; }
.os-sort-select select { min-height: 36px; padding: 0 28px 0 11px; border: 1px solid #dbe3ec; border-radius: 9px; background: #fff; color: #111827; font: inherit; font-size: .72rem; font-weight: 800; }
.os-feed-status { min-height: 18px; margin: 0; color: #64748b; font-size: .7rem; font-weight: 800; }

.os-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 420px));
  gap: 16px;
  align-items: start;
  justify-content: start;
}

.os-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--os-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
}

.os-card-save { position: absolute; top: 12px; right: 12px; z-index: 30; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(203, 213, 225, .9); border-radius: 50%; background: rgba(255, 255, 255, .92); color: #475569; box-shadow: 0 4px 14px rgba(15, 23, 42, .08); cursor: pointer; backdrop-filter: blur(8px); }
.os-card-save.is-saved { border-color: #111827; background: #111827; color: #fff; }
.os-card-private { position: absolute; top: 12px; right: 12px; z-index: 30; min-height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; border: 1px solid #dbe3ec; border-radius: 999px; background: rgba(255,255,255,.94); color: #475569; font-size: .59rem; font-weight: 900; box-shadow: 0 4px 14px rgba(15,23,42,.07); backdrop-filter: blur(8px); }

.os-card-detail-link { display: block; color: inherit; text-decoration: none; }
.os-card-detail-link:focus-visible { outline: 2px solid #111827; outline-offset: -2px; }

.os-card-visual,
.os-card-collage,
.os-card-canvas,
.os-card-canvas-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #fff;
}

.os-card-visual {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-bottom: 1px solid var(--os-line);
}

.os-card-visual.has-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: auto;
  min-height: 0;
  aspect-ratio: 8 / 5;
  background: #f8fafc;
}

.os-card-image-panel {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.os-card-image-panel + .os-card-image-panel { border-left: 1px solid var(--os-line); }
.os-card-visual > .os-card-canvas,
.os-card-visual > .os-card-collage,
.os-card-visual > .os-card-canvas-image,
.os-card-image-panel > .os-card-canvas,
.os-card-image-panel > .os-card-collage,
.os-card-image-panel > .os-card-canvas-image { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; }

.os-card-canvas-image img,
.os-card-tryon > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.os-card-canvas-item {
  position: absolute;
  display: block;
}

.os-card-canvas-item img,
.os-collage-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.os-card-canvas-item.has-cutout img { mix-blend-mode: normal; }

.os-card-visual.has-tryon .os-card-tryon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 20;
  width: 38%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.14);
}

.os-card-visual.has-gallery { touch-action: pan-y; }
.os-card-gallery-track { position: absolute; inset: 0; display: flex; width: 100%; height: 100%; transition: transform .32s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.os-card-gallery-slide { position: relative; min-width: 100%; height: 100%; flex: 0 0 100%; overflow: hidden; background: #fff; }
.os-card-gallery-slide > .os-card-canvas,
.os-card-gallery-slide > .os-card-collage,
.os-card-gallery-slide > .os-card-canvas-image { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; }
.os-card-tryon-full { background: #f4f6f8; }
.os-card-tryon-full > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}
.os-card-gallery-label { position: absolute; top: 10px; left: 10px; z-index: 4; display: inline-flex; min-height: 24px; align-items: center; padding: 0 9px; border: 1px solid rgba(203, 213, 225, .86); border-radius: 999px; background: rgba(255, 255, 255, .9); color: #334155; font-size: .56rem; font-weight: 900; box-shadow: 0 3px 12px rgba(15, 23, 42, .07); backdrop-filter: blur(8px); }
.os-card-gallery-nav { position: absolute; top: 50%; z-index: 12; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid rgba(203, 213, 225, .9); border-radius: 50%; background: rgba(255, 255, 255, .92); color: #111827; font-size: .62rem; box-shadow: 0 4px 14px rgba(15, 23, 42, .1); cursor: pointer; transform: translateY(-50%); backdrop-filter: blur(8px); }
.os-card-gallery-nav.is-prev { left: 8px; }
.os-card-gallery-nav.is-next { right: 8px; }
.os-card-gallery-nav:disabled { opacity: .25; cursor: default; }
.os-card-gallery-dots { position: absolute; left: 50%; bottom: 11px; z-index: 13; display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: 0 3px 12px rgba(15, 23, 42, .08); transform: translateX(-50%); backdrop-filter: blur(8px); }
.os-card-gallery-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #cbd5e1; cursor: pointer; transition: width .2s ease, background .2s ease; }
.os-card-gallery-dots button.is-active { width: 18px; border-radius: 999px; background: #111827; }
.os-card-gallery-count { position: absolute; right: 10px; bottom: 12px; z-index: 12; padding: 4px 7px; border-radius: 999px; background: rgba(17, 24, 39, .82); color: #fff; font-size: .54rem; font-weight: 850; }

.os-card-tryon-badge {
  position: absolute;
  left: 7px;
  bottom: 7px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.86);
  color: #fff;
  font-size: 0.56rem;
  font-weight: 850;
}

.os-card-tryon-headwear {
  position: absolute;
  left: 50%;
  top: 0.4%;
  z-index: 2;
  width: 14.5%;
  height: 7.5%;
  transform: translateX(-50%);
  pointer-events: none;
}

.os-card-tryon-headwear img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  mix-blend-mode: multiply;
}

.os-tone-paper { background: #f7f7f5; }
.os-tone-mist { background: #eef2f4; }
.os-tone-charcoal { background: #272b31; }
.os-collage-item { display: block; overflow: hidden; background: rgba(255,255,255,.78); }
.os-layout-editorial .os-collage-item,
.os-layout-stack .os-collage-item { position: absolute; }
.os-layout-editorial .os-collage-item:nth-child(1) { width: 53%; height: 46%; left: 5%; top: 5%; }
.os-layout-editorial .os-collage-item:nth-child(2) { width: 43%; height: 40%; right: 4%; top: 12%; }
.os-layout-editorial .os-collage-item:nth-child(3) { width: 46%; height: 40%; left: 8%; bottom: 5%; }
.os-layout-editorial .os-collage-item:nth-child(4) { width: 44%; height: 43%; right: 4%; bottom: 4%; }
.os-layout-editorial .os-collage-item:nth-child(5) { width: 31%; height: 29%; left: 34%; top: 35%; z-index: 2; }
.os-layout-editorial .os-collage-item:nth-child(6) { width: 29%; height: 28%; right: 19%; bottom: 26%; z-index: 3; }
.os-layout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; }
.os-layout-stack .os-collage-item { width: 58%; height: 49%; left: 21%; top: 23%; }
.os-layout-stack .os-collage-item:nth-child(1) { transform: translate(-17%, -18%) rotate(-8deg); }
.os-layout-stack .os-collage-item:nth-child(2) { transform: translate(18%, -13%) rotate(8deg); }
.os-layout-stack .os-collage-item:nth-child(3) { transform: translate(-20%, 18%) rotate(6deg); }
.os-layout-stack .os-collage-item:nth-child(4) { transform: translate(19%, 19%) rotate(-6deg); }

.os-card-body { padding: 14px 15px 16px; }

.os-card-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: #94a3b8;
  font-size: 0.66rem;
}

.os-card-author { color: #475569; font-weight: 800; }
.os-card h3 { margin: 0; overflow: hidden; font-size: 0.98rem; font-weight: 900; letter-spacing: -0.025em; text-overflow: ellipsis; white-space: nowrap; }
.os-card-caption { display: -webkit-box; min-height: 35px; margin: 6px 0 0; overflow: hidden; color: #64748b; font-size: 0.73rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.os-card-products { display: flex; gap: 5px; margin-top: 11px; overflow: hidden; }
.os-card-products span { min-width: 0; overflow: hidden; color: #475569; font-size: 0.61rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.os-card-products span + span::before { margin-right: 5px; color: #cbd5e1; content: "+"; }
.os-card-view { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: #111827; font-size: .64rem; font-weight: 850; }
.os-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.os-card-saved-state { display: inline-flex; min-height: 20px; align-items: center; gap: 5px; padding-top: 11px; color: #64748b; font-size: .64rem; font-weight: 800; }

.os-empty {
  grid-column: 1 / -1;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.os-empty-copy { max-width: 420px; display: flex; flex-direction: column; align-items: center; padding: 36px; }
.os-empty-copy i { margin-bottom: 14px; color: #94a3b8; font-size: 1.5rem; }
.os-empty-copy h3 { margin: 0 0 7px; font-size: 1.2rem; font-weight: 900; }
.os-empty-copy p { margin: 0 0 18px; color: #64748b; font-size: 0.8rem; line-height: 1.55; }

.os-builder-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.48);
}

.os-builder-backdrop[hidden] { display: none; }

.os-builder {
  width: min(1180px, 100%);
  max-height: min(920px, calc(100vh - 36px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d9dee6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.os-builder-head {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px 10px 22px;
  border-bottom: 1px solid var(--os-line);
  background: #fff;
}

.os-builder-mode-label { flex: 0 0 auto; margin: 0; padding: 6px 9px; border: 1px solid #d9dee6; border-radius: 999px; background: #fff; color: #475569; font-size: .62rem; font-weight: 900; letter-spacing: -.01em; white-space: nowrap; }
.os-builder-meta { min-width: 0; flex: 1; display: grid; grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.2fr); gap: 8px; }
.os-builder-meta label { min-width: 0; }
.os-builder-meta input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid #d9dee6; border-radius: 9px; outline: none; background: #f8fafc; color: #111827; font: inherit; font-size: .76rem; box-sizing: border-box; }
.os-builder-meta label:first-of-type input { font-weight: 900; }
.os-builder-meta input:focus { border-color: #111827; background: #fff; box-shadow: 0 0 0 2px rgba(17,24,39,.06); }
.os-builder-close { width: 40px; height: 40px; border: 1px solid #d9dee6; border-radius: 50%; background: #fff; color: #111827; cursor: pointer; }
.os-builder-jumps { display: none; }
.os-builder-scroll { min-height: 0; flex: 1; display: flex; overflow: hidden; overscroll-behavior: contain; }

.os-builder-layout {
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(0, 1.1fr);
  width: 100%;
  flex: 1;
  min-height: 0;
}

.os-compose-panel,
.os-picker-panel { min-width: 0; padding: 20px; overflow-y: auto; overscroll-behavior: contain; background: #fff; }
.os-compose-panel { border-right: 1px solid var(--os-line); }

.os-canvas-toolbar { position: relative; z-index: 40; display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.os-compose-topline { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; margin: 0; }
.os-compose-topline strong { color: #111827; font-size: 0.74rem; letter-spacing: 0; }

.os-background-control { position: relative; }
.os-background-trigger { min-height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid #d9dee6; border-radius: 8px; background: #fff; color: #475569; font-size: .61rem; font-weight: 850; cursor: pointer; white-space: nowrap; }
.os-background-trigger.is-active { border-color: #111827; color: #111827; }
.os-background-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 80; width: 390px; padding: 12px; border: 1px solid #d9dee6; border-radius: 12px; background: rgba(255,255,255,.98); box-shadow: 0 16px 42px rgba(15,23,42,.16); backdrop-filter: blur(12px); }
.os-background-panel[hidden] { display: none; }
.os-background-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.os-background-panel-head strong { color: #111827; font-size: .76rem; font-weight: 900; }
.os-background-panel-head small { color: #94a3b8; font-size: .57rem; }
.os-background-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.os-background-option { position: relative; min-width: 0; height: 72px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; overflow: hidden; padding: 5px; border: 1px solid #dbe3ec; border-radius: 9px; background: #f8fafc; color: #475569; font: inherit; font-size: .55rem; font-weight: 850; text-align: center; cursor: pointer; box-sizing: border-box; }
.os-background-option.is-active { border-color: #111827; box-shadow: inset 0 0 0 1px #111827; color: #111827; }
.os-background-option.is-image { justify-content: flex-end; color: #fff; text-shadow: 0 1px 3px rgba(15,23,42,.65); }
.os-background-option.is-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.os-background-option.is-image::after { position: absolute; inset: 44% 0 0; background: linear-gradient(transparent, rgba(15,23,42,.55)); content: ""; }
.os-background-option.is-image span { position: relative; z-index: 2; }
.os-background-option.is-none i,
.os-background-option.is-upload > i { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: #64748b; }
.os-background-option.is-color input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.os-background-option.is-color span { display: flex; align-items: center; flex-direction: column; gap: 5px; pointer-events: none; }
.os-background-option.is-color span i { width: 30px; height: 30px; border: 3px solid #fff; border-radius: 50%; background: #e8e1d8; box-shadow: 0 0 0 1px #cbd5e1; }
.os-background-option.is-uploading { opacity: .55; pointer-events: none; }
.os-background-option.is-upload.has-image { background-position: center; background-size: cover; color: #fff; text-shadow: 0 1px 3px rgba(15,23,42,.75); }
.os-background-option.is-upload.has-image::after { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(15,23,42,.58)); content: ""; }
.os-background-option.is-upload.has-image > i,
.os-background-option.is-upload.has-image > span { position: relative; z-index: 2; }
.os-background-status { min-height: 16px; margin: 8px 0 0; color: #64748b; font-size: .57rem; font-weight: 750; }

.os-canvas-help {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  color: #64748b;
  font-size: 0.67rem;
}
.os-canvas-help-default { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-object-adjustments { min-width: 0; flex: 1; display: flex; align-items: center; gap: 8px; }
.os-object-adjustments[hidden] { display: none; }
.os-object-adjustments label { min-width: 94px; flex: 0 0 94px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; color: #475569; white-space: nowrap; writing-mode: horizontal-tb; }
.os-object-adjustments label > span { display: inline-block; flex: 0 0 auto; font-size: .59rem; font-weight: 850; line-height: 1; white-space: nowrap; writing-mode: horizontal-tb; }
.os-object-adjustments input[type="number"] { width: 42px; min-width: 42px; height: 22px; flex: 0 0 42px; padding: 0 3px; border: 0; border-radius: 5px; outline: none; background: #fff; color: #111827; font-size: .62rem; font-weight: 900; text-align: center; box-sizing: border-box; }
.os-object-adjustments input[type="number"]:focus { box-shadow: 0 0 0 1px #94a3b8; }
.os-object-adjustments input[type="number"]::-webkit-inner-spin-button { margin: 0; }
.os-object-adjustments > button { width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid #d9dee6; border-radius: 8px; background: #fff; color: #64748b; font-size: .62rem; cursor: pointer; }

.os-compose-preview {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d9dee6;
  border-radius: 10px;
  outline: none;
  background-color: #fff;
  background-image: linear-gradient(#f1f5f9 1px, transparent 1px), linear-gradient(90deg, #f1f5f9 1px, transparent 1px);
  background-size: 32px 32px;
  touch-action: none;
  user-select: none;
}
.os-compose-preview.has-background { background-size: cover; }

.os-compose-preview:focus-visible { box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12); }
.os-preview-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; color: #94a3b8; text-align: center; }
.os-preview-empty i { margin-bottom: 11px; font-size: 1.5rem; }
.os-preview-empty strong { color: #475569; font-size: 0.84rem; }
.os-preview-empty span { margin-top: 5px; font-size: 0.67rem; }

.os-canvas-cutout-loading { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 28px; background: rgba(248, 250, 252, .88); color: #475569; text-align: center; backdrop-filter: blur(5px); }
.os-canvas-cutout-icon { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; border: 1px solid #dbe3ec; border-radius: 15px; background: #fff; color: #111827; font-size: 1rem; box-shadow: 0 8px 22px rgba(15, 23, 42, .08); animation: osCutoutPulse 1.3s ease-in-out infinite; }
.os-canvas-cutout-loading strong { color: #111827; font-size: .88rem; font-weight: 950; }
.os-canvas-cutout-name { max-width: 250px; margin-top: 5px; overflow: hidden; font-size: .68rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.os-canvas-cutout-bar { position: relative; width: min(240px, 78%); height: 7px; margin-top: 17px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.os-canvas-cutout-bar i { position: absolute; inset: 0 auto 0 0; width: 45%; border-radius: inherit; background: #111827; animation: osCutoutBar 1.25s cubic-bezier(.45, 0, .55, 1) infinite; }
.os-canvas-cutout-loading small { margin-top: 10px; color: #64748b; font-size: .59rem; font-weight: 750; }
@keyframes osCutoutBar { 0% { transform: translateX(-110%); } 55% { width: 58%; } 100% { transform: translateX(245%); } }
@keyframes osCutoutPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

.os-canvas-item {
  position: absolute;
  cursor: grab;
  transform-origin: center;
  touch-action: none;
}

.os-compose-preview.is-interacting .os-canvas-item { cursor: grabbing; }
.os-canvas-item img { width: 100%; height: auto; display: block; pointer-events: none; mix-blend-mode: multiply; -webkit-user-drag: none; }
.os-canvas-item.has-cutout img { mix-blend-mode: normal; }
.os-canvas-item.is-active::before { position: absolute; inset: -5px; z-index: 3; border: 1px solid #111827; border-radius: 5px; content: ""; pointer-events: none; }

.os-canvas-remove,
.os-canvas-resize,
.os-canvas-rotate {
  position: absolute;
  z-index: 5;
  width: 22px;
  height: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid #111827;
  border-radius: 50%;
  background: #fff;
  color: #111827;
}

.os-canvas-item.is-active .os-canvas-remove,
.os-canvas-item.is-active .os-canvas-resize,
.os-canvas-item.is-active .os-canvas-rotate,
.os-canvas-item.is-active .os-canvas-layer-controls { display: flex; }
.os-canvas-remove { top: -15px; right: -15px; padding: 0; font-size: 0.58rem; cursor: pointer; }
.os-canvas-rotate { top: -15px; left: -15px; padding: 0; font-size: 0.55rem; cursor: grab; touch-action: none; }
.os-canvas-rotate:active { cursor: grabbing; }
.os-canvas-resize { right: -15px; bottom: -15px; cursor: nwse-resize; }
.os-canvas-resize::before { width: 7px; height: 7px; border-right: 2px solid #111827; border-bottom: 2px solid #111827; content: ""; }

.os-canvas-layer-controls {
  position: absolute;
  left: 50%;
  bottom: -17px;
  z-index: 6;
  display: none;
  align-items: center;
  overflow: hidden;
  border: 1px solid #111827;
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%) rotate(var(--os-counter-rotation, 0deg));
}
.os-canvas-layer-controls button { width: 25px; height: 23px; padding: 0; border: 0; background: #fff; color: #111827; font-size: 0.57rem; cursor: pointer; }
.os-canvas-layer-controls button + button { border-left: 1px solid #e2e8f0; }
.os-canvas-layer-controls button:hover:not(:disabled) { background: #f1f5f9; }
.os-canvas-layer-controls button:disabled { color: #cbd5e1; cursor: not-allowed; }

.os-tryon-maker { margin-top: 16px; overflow: hidden; border: 1px solid var(--os-line); border-radius: 10px; background: #fff; }
.os-tryon-summary { min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; list-style: none; cursor: pointer; user-select: none; }
.os-tryon-summary::-webkit-details-marker { display: none; }
.os-tryon-summary-icon { width: 32px; height: 32px; flex: 0 0 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: #f1f5f9; color: #475569; font-size: 0.72rem; }
.os-tryon-summary-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 3px; }
.os-tryon-summary-copy strong { display: flex; align-items: center; gap: 6px; color: #111827; font-size: 0.72rem; font-style: normal; font-weight: 900; }
.os-tryon-summary-copy em { padding: 2px 5px; border: 1px solid #d9dee6; border-radius: 999px; color: #64748b; font-size: 0.52rem; font-style: normal; font-weight: 850; }
.os-tryon-summary-copy small { overflow: hidden; color: #64748b; font-size: 0.6rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.os-tryon-summary-action { width: 24px; height: 24px; flex: 0 0 24px; display: inline-flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 0.58rem; transition: transform .18s ease; }
.os-tryon-maker[open] .os-tryon-summary-action { transform: rotate(180deg); }
.os-tryon-body { padding: 12px; border-top: 1px solid var(--os-line); background: #fafbfc; }
.os-tryon-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.os-tryon-head > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.os-tryon-head strong { font-size: 0.78rem; font-weight: 900; }
.os-tryon-head span { color: #64748b; font-size: 0.64rem; line-height: 1.4; }
.os-tryon-usage { flex: 0 0 auto; padding: 4px 7px; border: 1px solid #e2e8f0; border-radius: 999px; color: #64748b !important; font-weight: 800; }
.os-model-row { display: flex; gap: 7px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.os-model-option { position: relative; flex: 0 0 46px; width: 46px; height: 58px; padding: 0; overflow: hidden; border: 1px solid #d9dee6; border-radius: 8px; background: #fff; cursor: pointer; }
.os-model-option img { width: 100%; height: 100%; display: block; object-fit: cover; }
.os-model-option span { position: absolute; right: 3px; bottom: 3px; min-width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.9); color: #111827; font-size: 0.55rem; font-weight: 900; }
.os-model-option.is-selected { border-color: #111827; box-shadow: inset 0 0 0 1px #111827; }
.os-model-option.is-selected::after { position: absolute; top: 4px; left: 4px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: #111827; content: ""; }
.os-model-upload { position: relative; width: 54px; height: 58px; flex: 0 0 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; overflow: hidden; border: 1px dashed #cbd5e1; border-radius: 8px; background: #fff; color: #64748b; cursor: pointer; box-sizing: border-box; }
.os-model-upload:hover { border-color: #64748b; }
.os-model-upload-media { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 6px; background: #f1f5f9; font-size: 0.55rem; }
.os-model-upload-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.os-model-upload.has-image .os-model-upload-media { position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; }
.os-model-upload.has-image .os-model-upload-media i { display: none; }
.os-model-upload strong { position: relative; z-index: 1; font-size: 0.53rem; font-weight: 850; }
.os-model-upload.has-image strong { position: absolute; right: 3px; bottom: 3px; padding: 2px 4px; border-radius: 999px; background: rgba(255,255,255,.9); color: #111827; }
.os-model-upload.is-selected { border-style: solid; border-color: #111827; box-shadow: inset 0 0 0 1px #111827; }
.os-model-upload.is-selected::after { position: absolute; top: 4px; left: 4px; z-index: 2; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: #111827; content: ""; }
.os-model-upload-note { margin: 7px 0 0; color: #94a3b8; font-size: 0.58rem; line-height: 1.4; }
.os-tryon-generate { width: 100%; min-height: 38px; margin-top: 10px; border: 1px solid #111827; border-radius: 8px; background: #111827; color: #fff; font-size: 0.7rem; font-weight: 850; cursor: pointer; }
.os-tryon-generate:disabled { border-color: #e2e8f0; background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
.os-tryon-status { margin: 7px 0 0; color: #64748b; font-size: 0.63rem; line-height: 1.45; }
.os-tryon-result { position: relative; margin-top: 10px; overflow: hidden; border: 1px solid var(--os-line); border-radius: 9px; background: #f8fafc; }
.os-tryon-result[hidden] { display: none; }
.os-tryon-result img { width: 100%; max-height: 340px; display: block; object-fit: contain; }
.os-tryon-result span { position: absolute; left: 8px; bottom: 8px; padding: 5px 8px; border-radius: 999px; background: rgba(17,24,39,.86); color: #fff; font-size: 0.58rem; font-weight: 800; }

.os-picker-intro > span { letter-spacing: 0; }
.os-picker-intro h3 { margin: 5px 0 4px; font-size: 1.03rem; font-weight: 950; letter-spacing: -0.035em; }
.os-picker-intro p { margin: 0; color: #64748b; font-size: 0.7rem; }

.os-product-search {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 15px 0 12px;
  padding-left: 12px;
  border: 1px solid #d9dee6;
  border-radius: 9px;
  background: #fff;
}

.os-product-search i { color: #94a3b8; font-size: 0.76rem; }
.os-product-search input { min-width: 0; flex: 1; border: none; outline: none; background: transparent; color: #111827; font-size: 0.75rem; }
.os-product-search button { align-self: stretch; padding: 0 14px; border: none; border-left: 1px solid #e5e7eb; background: #fff; color: #334155; font-size: 0.69rem; font-weight: 850; cursor: pointer; }

.os-product-filter-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; overflow-x: auto; padding: 1px 0 3px; scrollbar-width: none; }
.os-product-filter-row::-webkit-scrollbar { display: none; }
.os-product-source-filter { flex: 0 0 auto; display: flex; gap: 6px; }
.os-product-source-filter button { min-width: max-content; min-height: 31px; padding: 0 10px; border: 1px solid #d9dee6; border-radius: 999px; background: #fff; color: #64748b; font-size: .65rem; font-weight: 850; cursor: pointer; }
.os-product-source-filter button.is-active { border-color: #111827; background: #111827; color: #fff; }

.os-category-filter { flex: 0 0 auto; display: flex; gap: 6px; margin: 0; padding: 0; scroll-snap-type: x proximity; }
.os-category-filter::-webkit-scrollbar { display: none; }
.os-category-chip { min-width: max-content; min-height: 31px; padding: 0 11px; border: 1px solid #d9dee6; border-radius: 999px; background: #fff; color: #64748b; font-size: 0.65rem; font-weight: 800; cursor: pointer; scroll-snap-align: start; }
.os-category-chip:hover { border-color: #94a3b8; color: #334155; }
.os-category-chip.is-active { border-color: #111827; background: #111827; color: #fff; }

.os-selected-strip { display: flex; gap: 6px; margin-bottom: 12px; padding-bottom: 3px; overflow-x: auto; }
.os-selected-strip[hidden] { display: none; }
.os-selected-chip { min-width: max-content; display: flex; align-items: center; overflow: hidden; border: 1px solid #d9dee6; border-radius: 999px; background: #fff; }
.os-selected-chip.is-active { border-color: #111827; }
.os-selected-chip > button { min-height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 4px; border: none; background: transparent; color: #475569; font-size: 0.62rem; font-weight: 750; cursor: pointer; }
.os-selected-chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.os-selected-chip .os-selected-remove { width: 26px; padding: 0; justify-content: center; border-left: 1px solid #eef2f7; color: #94a3b8; }

.os-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.os-product-pick { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; color: #111827; text-align: left; cursor: pointer; }
.os-product-pick.is-selected { border-color: #111827; box-shadow: inset 0 0 0 1px #111827; }
.os-product-pick-media { position: relative; display: block; aspect-ratio: 1; background: #f8fafc; }
.os-product-pick-media img { width: 100%; height: 100%; display: block; object-fit: contain; mix-blend-mode: multiply; }
.os-product-pick.has-cutout .os-product-pick-media img { mix-blend-mode: normal; }
.os-product-check { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d1d5db; border-radius: 50%; background: rgba(255,255,255,.94); color: #64748b; font-size: 0.58rem; }
.os-product-pick.is-selected .os-product-check { border-color: #111827; background: #111827; color: #fff; }
.os-product-pick.is-processing { cursor: wait; }
.os-product-pick.is-processing .os-product-pick-media img { opacity: .42; }
.os-cutout-progress,
.os-cutout-ready { position: absolute; left: 6px; bottom: 6px; padding: 4px 6px; border-radius: 999px; font-size: .5rem; font-weight: 850; }
.os-cutout-progress { background: rgba(17,24,39,.86); color: #fff; }
.os-cutout-ready { background: rgba(255,255,255,.92); color: #15803d; box-shadow: 0 1px 4px rgba(15,23,42,.08); }
.os-product-pick-copy { display: block; padding: 7px; }
.os-product-pick-brand,
.os-product-pick-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-product-pick-brand { color: #94a3b8; font-size: 0.54rem; font-weight: 800; }
.os-product-pick-name { margin-top: 2px; font-size: 0.64rem; font-weight: 750; }
.os-product-loading { grid-column: 1 / -1; padding: 34px 10px; color: #64748b; font-size: 0.76rem; text-align: center; }
.os-product-load-more,
.os-product-end { grid-column: 1 / -1; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 2px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; color: #64748b; font: inherit; font-size: .66rem; font-weight: 800; text-align: center; }
.os-product-load-more { cursor: pointer; }
.os-product-load-more:disabled { cursor: wait; opacity: .75; }
.os-product-end { border-style: dashed; }

.os-publish-fields {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 9px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--os-line);
  border-radius: 10px;
  background: #fafbfc;
}

.os-publish-fields-head { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.os-publish-fields-head strong { font-size: .75rem; font-weight: 900; }
.os-publish-fields-head span { color: #94a3b8; font-size: .59rem; }

.os-publish-fields label > span { display: block; margin-bottom: 6px; color: #475569; font-size: 0.68rem; font-weight: 850; }
.os-publish-fields label b { color: #ef4444; }
.os-publish-fields label em { margin-left: 4px; color: #94a3b8; font-size: 0.58rem; font-style: normal; font-weight: 750; }
.os-publish-fields input,
.os-publish-fields textarea { width: 100%; padding: 10px 11px; border: 1px solid #d9dee6; border-radius: 8px; outline: none; background: #fff; color: #111827; font-size: 0.75rem; box-sizing: border-box; resize: vertical; }
.os-publish-fields input:focus,
.os-publish-fields textarea:focus { border-color: #111827; box-shadow: 0 0 0 2px rgba(17,24,39,.07); }

.os-builder-footer {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid var(--os-line);
  background: #fff;
}

.os-visibility-control { flex: 0 0 auto; display: inline-flex; gap: 2px; margin: 0; padding: 3px; border: 1px solid #d9dee6; border-radius: 9px; background: #f8fafc; }
.os-visibility-control label { cursor: pointer; }
.os-visibility-control input { position: absolute; opacity: 0; pointer-events: none; }
.os-visibility-control span { min-height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border-radius: 6px; color: #64748b; font-size: .64rem; font-weight: 850; }
.os-visibility-control input:checked + span { background: #111827; color: #fff; box-shadow: 0 2px 7px rgba(15,23,42,.12); }

.os-login-note { margin-right: auto; color: #64748b; font-size: 0.7rem; }
.os-login-note[hidden] { display: none; }
.os-login-note a { color: #111827; font-weight: 850; }
.os-publish-status { min-width: 0; margin-left: auto; overflow: hidden; color: #94a3b8; font-size: 0.65rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.os-publish-status.is-ready { color: #15803d; }
.os-publish-status.is-generating { color: #b45309; }
.os-delete-btn { width: 56px; height: 38px; flex: 0 0 56px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 8px; border: 1px solid #fecaca; border-radius: 999px; background: #fff; color: #dc2626; font-size: .64rem; font-weight: 850; cursor: pointer; }
.os-delete-btn[hidden] { display: none; }
.os-delete-btn:disabled { opacity: .45; cursor: wait; }
.os-publish-btn { min-width: 170px; min-height: 42px; border: none; border-radius: 999px; background: #111827; color: #fff; font-size: 0.74rem; font-weight: 900; cursor: pointer; }
.os-publish-btn:disabled { background: #e5e7eb; color: #94a3b8; cursor: not-allowed; }

.os-builder.is-generating .os-builder-meta,
.os-builder.is-generating .os-builder-jumps,
.os-builder.is-generating .os-canvas-toolbar,
.os-builder.is-generating .os-compose-preview,
.os-builder.is-generating .os-product-search,
.os-builder.is-generating .os-product-filter-row,
.os-builder.is-generating .os-selected-strip,
.os-builder.is-generating .os-product-grid,
.os-builder.is-generating .os-model-row,
.os-builder.is-generating .os-model-upload-note { opacity: .52; }
.os-builder.is-generating .os-compose-preview,
.os-builder.is-generating .os-picker-panel { cursor: wait; }
.os-builder.is-generating [disabled] { cursor: wait; }

.os-mobile-create { position: fixed; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 89; min-width: 126px; height: 52px; display: none; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 2px solid #fff; border-radius: 999px; background: #111827; color: #fff; font-size: .74rem; font-weight: 900; box-shadow: 0 12px 30px rgba(15,23,42,.28); }
.os-mobile-create i { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: #111827; font-size: .62rem; }
.os-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 10100; max-width: min(420px, calc(100vw - 32px)); padding: 10px 15px; border-radius: 999px; background: #111827; color: #fff; font-size: 0.73rem; font-weight: 750; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s ease, transform .2s ease; }
.os-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .os-hero { grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); }
  .os-builder-layout { grid-template-columns: minmax(340px, .9fr) minmax(0, 1.1fr); }
  .os-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .os-page { padding: 12px 12px 110px; }
  .os-page-switch { gap: 5px; padding: 4px; border-radius: 12px; }
  .os-page-switch a { min-height: 46px; gap: 7px; padding: 6px 9px; }
  .os-page-switch a > i { width: 25px; height: 25px; flex-basis: 25px; }
  .os-page-switch strong { font-size: .7rem; }
  .os-page-switch small { font-size: .56rem; }
  .os-hero { min-height: 0; grid-template-columns: 1fr; border-radius: 14px; }
  .os-hero-copy { padding: 30px 22px 26px; }
  .os-hero h1 { font-size: clamp(3.1rem, 17vw, 5rem); }
  .os-hero-board { min-height: 310px; border-top: 1px solid var(--os-line); border-left: none; }
  .os-guide { justify-content: flex-start; gap: 10px; padding: 16px 4px; overflow-x: auto; }
  .os-guide > div { min-width: max-content; font-size: .68rem; }
  .os-feed-section { padding-top: 4px; }
  .os-feed-topbar { gap: 8px; margin-bottom: 8px; }
  .os-feed-topbar .os-feed-tabs { min-width: 0; flex: 1; padding: 4px; }
  .os-feed-tabs { display: grid; }
  .os-feed-tabs.is-one { grid-template-columns: 1fr; }
  .os-feed-tabs.is-two { grid-template-columns: repeat(2, 1fr); }
  .os-feed-tabs button { width: 100%; min-height: 36px; padding: 0 6px; font-size: .67rem; }
  .os-feed-topbar .os-section-create { min-width: 130px; min-height: 44px; padding: 0 11px; font-size: .68rem; white-space: nowrap; }
  .os-feed-meta { min-height: 42px; margin-bottom: 10px; }
  .os-sort-select { margin-left: auto; }
  .os-sort-select > i { font-size: .62rem; }
  .os-sort-select select { min-height: 34px; }
  .os-feed { grid-template-columns: 1fr; gap: 13px; }
  .os-card { display: block; border-radius: 12px; }
  .os-card-detail-link { display: block; min-width: 0; }
  .os-card-visual { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .os-card-visual.has-pair { aspect-ratio: 8 / 5; }
  .os-card-collage,
  .os-card-canvas,
  .os-card-canvas-image { min-height: 230px; aspect-ratio: auto; }
  .os-card-gallery-label { top: 8px; left: 8px; }
  .os-card-save { top: 9px; right: 9px; width: 34px; height: 34px; }
  .os-card-body { display: block; padding: 12px; }
  .os-card-caption { min-height: auto; }
  .os-card-products { display: flex; }
  .os-mobile-create { display: inline-flex; align-items: center; justify-content: center; }
  .os-builder-backdrop { align-items: stretch; padding: 0; }
  .os-builder { width: 100%; max-height: 100dvh; border: none; border-radius: 0; }
  .os-builder-head { min-height: 54px; gap: 5px; padding: 7px 8px; }
  .os-builder-mode-label { max-width: 62px; overflow: hidden; padding: 5px 6px; font-size: .54rem; text-overflow: ellipsis; }
  .os-builder-meta { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 5px; }
  .os-builder-meta input { height: 36px; padding: 0 8px; font-size: .65rem; }
  .os-builder-close { width: 36px; height: 36px; flex: 0 0 36px; }
  .os-builder-jumps { min-height: 44px; display: flex; gap: 6px; padding: 6px 12px; border-bottom: 1px solid var(--os-line); background: #fff; }
  .os-builder-jumps button { min-width: 0; flex: 1; min-height: 32px; border: 1px solid #d9dee6; border-radius: 999px; background: #fff; color: #475569; font-size: .65rem; font-weight: 850; }
  .os-builder-jumps button:first-child { border-color: #111827; background: #111827; color: #fff; }
  .os-builder-scroll { flex: 1; display: block; overflow-y: auto; scroll-behavior: smooth; }
  .os-builder-layout { height: auto; display: flex; flex: none; flex-direction: column; }
  .os-compose-panel { order: 1; display: flex; flex-direction: column; padding: 0; overflow: visible; border-right: none; border-bottom: 1px solid var(--os-line); }
  .os-picker-panel { order: 2; padding: 14px 12px; overflow: visible; }
  .os-canvas-toolbar { order: 1; min-height: 43px; gap: 7px; margin: 0; padding: 6px 8px; overflow: visible; }
  .os-compose-topline { gap: 5px; margin: 0; padding: 0; }
  .os-background-trigger { min-height: 28px; padding: 0 7px; }
  .os-background-trigger span { display: none; }
  .os-background-panel { left: -63px; width: calc(100vw - 16px); padding: 10px; box-sizing: border-box; }
  .os-background-options { gap: 5px; }
  .os-background-option { height: 66px; padding: 4px; font-size: .5rem; }
  .os-canvas-help { min-height: 0; margin: 0; padding: 0; overflow: hidden; }
  .os-object-adjustments { gap: 5px; }
  .os-object-adjustments label { min-width: 62px; flex-basis: 62px; gap: 4px; padding: 3px 4px; }
  .os-object-adjustments label > span { display: none; }
  .os-object-adjustments input[type="number"] { width: 42px; }
  .os-object-adjustments > button { width: 28px; height: 28px; flex-basis: 28px; }
  .os-compose-preview { order: 2; width: 100%; max-width: none; max-height: none; margin: 0; border-right: 0; border-left: 0; border-radius: 0; }
  .os-tryon-maker { order: 3; margin: 12px; }
  .os-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .os-builder-footer { min-height: 56px; display: flex; align-items: center; gap: 5px; padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px)); }
  .os-login-note { min-width: 0; margin: 0; overflow: hidden; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
  .os-visibility-control span { min-height: 30px; gap: 4px; padding: 0 7px; font-size: .6rem; }
  .os-publish-status { flex: 1 1 auto; margin: 0; font-size: .59rem; text-align: right; }
  .os-delete-btn { width: 54px; height: 36px; flex-basis: 54px; padding: 0 7px; }
  .os-publish-btn { min-width: 122px; min-height: 40px; flex: 0 1 170px; padding: 0 11px; font-size: .68rem; }
}

@media (max-width: 390px) {
  .os-hero-board { min-height: 285px; }
  .os-feed-topbar .os-section-create { min-width: 124px; padding: 0 9px; }
  .os-card-body { padding: 10px; }
  .os-card h3 { font-size: .86rem; }
  .os-card-caption { font-size: .67rem; }
  .os-canvas-help { align-items: flex-start; }
  .os-canvas-help > span { max-width: 210px; line-height: 1.35; }
}
