:root {
  --paper: #f3efe3;
  --paper-deep: #e4ddcc;
  --card: #fffdf6;
  --card-soft: #f8f2e5;
  --ink: #191a25;
  --muted: #70695e;
  --line: #2b2b36;
  --soft-line: #d5ccba;
  --accent: #3156c7;
  --accent-dark: #1f3b95;
  --accent-soft: #dce3ff;
  --coral: #ee8469;
  --coral-soft: #f7d4c8;
  --green: #236a58;
  --green-soft: #dcecdc;
  --stage: #171823;
  --stage-soft: #232534;
}

::selection { color: var(--card); background: var(--accent-dark); }
:focus-visible { outline-color: var(--accent); }
.site-footer :focus-visible,
.referral-card :focus-visible,
.share-prompt :focus-visible,
.preview-board :focus-visible { outline-color: var(--coral); }

body {
  background-image:
    linear-gradient(rgba(25, 26, 37, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 26, 37, .032) 1px, transparent 1px),
    radial-gradient(circle at 88% 7%, rgba(238, 132, 105, .18), transparent 26rem),
    radial-gradient(circle at 7% 32%, rgba(49, 86, 199, .1), transparent 28rem);
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.collage-mark {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  padding: 5px;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--coral);
}
.collage-mark i,
.collage-mark i:nth-child(1),
.collage-mark i:nth-child(4) {
  display: block;
  width: auto;
  height: auto;
  background: var(--card);
  border: 0;
  border-radius: 1px;
}
.collage-mark i:nth-child(1) { background: var(--coral); }
.collage-mark i:nth-child(2) { background: var(--accent); }
.collage-mark i:nth-child(3) { background: #d9d2bb; }
.collage-mark.small { width: 36px; height: 36px; padding: 4px; gap: 2px; box-shadow: none; }

.hero {
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr);
  gap: clamp(38px, 8vw, 104px);
  padding-block: clamp(54px, 8vw, 94px) 70px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(54px, 7.6vw, 92px);
  line-height: .98;
  letter-spacing: -.065em;
}
.hero h1 em { color: var(--accent); }
.hero h1 em::after {
  height: .24em;
  bottom: .04em;
  background: var(--coral);
  opacity: .38;
  transform: rotate(-1.1deg);
}
.hero .eyebrow span { color: var(--card); background: var(--accent); }
.hero-lead { max-width: 680px; }
.hero-facts span { background: rgba(255, 253, 246, .7); }

.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .95fr .7fr;
  grid-template-rows: 1.12fr .88fr;
  grid-template-areas:
    "sun sea city"
    "sun note city";
  gap: 8px;
  width: min(100%, 390px);
  justify-self: end;
  padding: 11px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 22px;
  box-shadow: 11px 11px 0 var(--accent);
  transform: rotate(1.2deg);
}
.hero-tile {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
}
.hero-tile > span {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 9px;
  color: rgba(255, 255, 255, .78);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .16em;
}
.tile-sun {
  grid-area: sun;
  min-height: 256px;
  background: linear-gradient(165deg, #f1c570 0 39%, #d68e67 40% 58%, #5d6e62 59% 100%);
}
.tile-sun b {
  position: absolute;
  width: 76px;
  height: 76px;
  left: 17%;
  top: 16%;
  background: #ffe9a7;
  border: 1.5px solid rgba(25, 26, 37, .5);
  border-radius: 50%;
  box-shadow: 0 0 0 15px rgba(255, 233, 167, .13);
}
.tile-sun i {
  position: absolute;
  inset: auto -12% 22% -12%;
  height: 36%;
  background: #45594f;
  clip-path: polygon(0 84%, 18% 55%, 36% 73%, 56% 31%, 77% 69%, 100% 48%, 100% 100%, 0 100%);
}
.tile-sun::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(14, 18, 16, .28));
}
.tile-sea {
  grid-area: sea;
  background: linear-gradient(180deg, #9ec6d3 0 46%, #3e7594 47% 68%, #e3cda1 69% 100%);
}
.tile-sea b {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 42%;
  height: 2px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 0 rgba(255, 255, 255, .32), 0 17px 0 rgba(255, 255, 255, .2);
  transform: rotate(-3deg);
}
.tile-sea i {
  position: absolute;
  width: 15px;
  height: 15px;
  right: 18%;
  top: 21%;
  background: var(--coral);
  border: 1px solid var(--ink);
  transform: rotate(12deg);
}
.tile-city {
  grid-area: city;
  background: linear-gradient(155deg, #2c3159, #161824 70%);
}
.tile-city b,
.tile-city i {
  position: absolute;
  bottom: 0;
  background: #e9c966;
  border: 1px solid #0d0e15;
}
.tile-city b { left: 12%; width: 26%; height: 61%; transform: skewY(-7deg); }
.tile-city i { right: 14%; width: 34%; height: 78%; background: #5778cf; transform: skewY(5deg); }
.tile-city::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(255, 245, 202, .2) 13px 14px);
  opacity: .5;
}
.tile-note {
  grid-area: note;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding: 13px;
  background: #f5ecd6;
}
.tile-note > span { position: static; color: var(--accent-dark); }
.tile-note strong { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); line-height: 1.06; letter-spacing: -.04em; }
.tile-note small { color: var(--muted); font-family: var(--font-mono); font-size: 7px; letter-spacing: .1em; }
.tape {
  position: absolute;
  z-index: 5;
  width: 66px;
  height: 22px;
  background: rgba(238, 132, 105, .72);
  border: 1px solid rgba(25, 26, 37, .16);
  box-shadow: 0 2px 6px rgba(25, 26, 37, .1);
}
.tape-a { left: -22px; top: 42px; transform: rotate(-44deg); }
.tape-b { right: -18px; bottom: 38px; transform: rotate(-39deg); background: rgba(49, 86, 199, .54); }

/* Workbench */
.collage-workbench {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(360px, 1.07fr);
  gap: 30px;
  align-items: start;
  scroll-margin-top: 24px;
}
.composer-column,
.preview-column { min-width: 0; }
.composer-card { padding: clamp(20px, 3.3vw, 32px); border-radius: 20px; }
.composer-card .card-heading h2 { letter-spacing: -.04em; }
.composer-card .status-pill { background: var(--accent-soft); border-color: #aab8ec; }

.upload-zone {
  margin-top: 23px;
  padding: 14px;
  background:
    repeating-linear-gradient(135deg, rgba(49, 86, 199, .025) 0 8px, transparent 8px 16px),
    var(--card-soft);
  border: 1.5px dashed #988d7e;
  border-radius: 14px;
  transition: background .15s, border-color .15s, transform .15s;
}
.upload-zone.is-dragover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.upload-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  cursor: pointer;
}
.upload-main > span:last-child { display: grid; gap: 3px; }
.upload-main strong { font-size: 15px; }
.upload-main small { color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.upload-plus {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  background: var(--accent);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
}
.upload-plus i { position: absolute; width: 18px; height: 2px; background: var(--card); border-radius: 2px; }
.upload-plus i:last-child { transform: rotate(90deg); }
.upload-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--soft-line); }
.upload-actions .button { box-shadow: none; }
.upload-actions .text-button { color: var(--muted); }

.asset-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 10px;
}
.asset-heading > div { display: grid; gap: 2px; }
.asset-heading strong { font-size: 12px; }
.asset-heading span { color: var(--muted); font-size: 9.5px; }
.asset-heading > span { font-family: var(--font-mono); text-align: right; }
.image-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.image-item {
  min-width: 0;
  overflow: hidden;
  background: var(--card);
  border: 1.5px solid #8f8477;
  border-radius: 9px;
  transition: opacity .15s, transform .15s, border-color .15s;
}
.image-item.is-dragging { opacity: .42; transform: scale(.97); }
.image-item.is-drop-target { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.thumb-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper-deep);
  cursor: grab;
}
.thumb-wrap:active { cursor: grabbing; }
.thumb-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; }
.thumb-index {
  position: absolute;
  left: 6px;
  top: 6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--card);
  background: rgba(25, 26, 37, .82);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 9px;
  backdrop-filter: blur(4px);
}
.thumb-controls { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--soft-line); }
.thumb-controls button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 36px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--soft-line);
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
}
.thumb-controls button:last-child { border-right: 0; color: #a33d28; }
.thumb-controls button:hover:not(:disabled) { background: var(--accent-soft); }
.thumb-controls button:disabled { opacity: .28; cursor: not-allowed; }
.image-list-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 74px;
  padding: 14px;
  color: var(--muted);
  background: rgba(248, 242, 229, .62);
  border: 1px dashed var(--soft-line);
  border-radius: 9px;
  text-align: center;
}
.image-list-empty > span { color: var(--accent); font-family: var(--font-display); font-size: 26px; line-height: 1; }
.image-list-empty p { margin: 0; font-size: 10.5px; }

.settings-block { margin-top: 26px; padding-top: 24px; border-top: 1px dashed var(--soft-line); }
.settings-title { align-items: center; }
.settings-title h3 { font-size: 18px; }
.layout-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.layout-option {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--card-soft);
  border: 1.5px solid #a99e8e;
  border-radius: 9px;
  text-align: left;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.layout-option:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.layout-option.is-active { color: var(--card); background: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--accent); }
.layout-option.is-active small { color: #bdb9b0; }
.layout-option:disabled { opacity: .52; cursor: not-allowed; }
.layout-option > span:last-child { display: grid; gap: 1px; min-width: 0; }
.layout-option strong { font-size: 11.5px; line-height: 1.35; }
.layout-option small { color: var(--muted); font-size: 8.5px; line-height: 1.35; }
.layout-option em[data-lock] { margin-left: 3px; background: var(--coral); color: var(--ink); }
.layout-icon {
  display: grid;
  gap: 2px;
  width: 40px;
  height: 40px;
  padding: 5px;
  background: var(--card);
  border: 1px solid #978b7b;
  border-radius: 5px;
}
.layout-option.is-active .layout-icon { border-color: #79796f; }
.layout-icon i { display: block; min-width: 0; min-height: 0; background: var(--accent); border-radius: 1px; }
.icon-row, .icon-column { grid-template-columns: repeat(3, 1fr); }
.icon-row i:nth-child(1) { background: var(--coral); }
.icon-row i:nth-child(3), .icon-column i:nth-child(3) { background: #d8c26b; }
.icon-column { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); }
.icon-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.icon-grid i:nth-child(1) { background: var(--coral); }
.icon-grid i:nth-child(4) { background: #d8c26b; }
.icon-long { grid-template-columns: 1fr; grid-template-rows: 1.2fr 1fr 1.45fr; }
.icon-long i:nth-child(1) { background: var(--coral); }
.icon-long i:nth-child(3) { background: #d8c26b; }

.adjust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.range-field > span { font-size: 11px; }
.range-field output { color: var(--accent-dark); }
.fit-field { grid-column: 1 / -1; }
.fit-field > span { margin-bottom: 6px; font-size: 11px; }
.fit-field select { min-height: 42px; padding-top: 9px; padding-bottom: 9px; font-size: 11.5px; }
.color-row { margin-top: 18px; padding-top: 17px; border-top: 1px dashed var(--soft-line); }
.color-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 9px; }
.color-heading strong { font-size: 11px; }
.color-heading span { color: var(--accent-dark); font-family: var(--font-mono); font-size: 10px; }
.color-controls { display: flex; align-items: center; gap: 11px; }
.color-controls input[type="color"] { flex: 0 0 auto; width: 48px; height: 42px; }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.swatch {
  width: 30px;
  height: 30px;
  padding: 0;
  background: var(--swatch);
  border: 1.5px solid #8d8274;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--card);
  cursor: pointer;
}
.swatch.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--card), 0 0 0 2px var(--accent); }

.size-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.size-chip {
  display: grid;
  place-items: center;
  gap: 1px;
  min-height: 54px;
  padding: 6px 4px;
  color: var(--ink);
  background: var(--card-soft);
  border: 1.5px solid #a99e8e;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.size-chip small { color: var(--muted); font-family: var(--font-sans); font-size: 8px; font-weight: 500; }
.size-chip.is-active { color: var(--card); background: var(--accent); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.size-chip.is-active small { color: #f0f2ff; }
.size-chip:disabled { opacity: .46; cursor: not-allowed; }
.size-chip em[data-lock] { margin-left: 1px; padding: 0 3px; background: var(--coral); color: var(--ink); }
#sizeNote { min-height: 34px; }

.run-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1.5px solid var(--ink);
}
.run-button { flex: 1 1 auto; min-height: 52px; color: var(--card); background: var(--accent); font-size: 15px; }
.run-button span { font-size: 20px; }
.run-side { flex: 0 1 150px; display: grid; gap: 2px; }
.run-side span { font-family: var(--font-mono); font-size: 9.5px; line-height: 1.4; }
.run-side small { color: var(--muted); font-size: 8.5px; line-height: 1.4; }

/* Preview */
.preview-column { display: grid; gap: 14px; }
.collage-preview-card {
  position: sticky;
  top: 18px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 20px;
  background: rgba(255, 253, 246, .97);
  box-shadow: 7px 7px 0 var(--accent);
}
.preview-topline { align-items: center; }
.preview-topline h2 { letter-spacing: -.035em; }
.preview-topline .status-pill { background: var(--coral-soft); border-color: #d8a798; }
.preview-board {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  margin-top: 18px;
  padding: 22px;
  overflow: hidden;
  background-color: var(--stage);
  background-image: radial-gradient(rgba(255, 255, 255, .13) .75px, transparent .75px);
  background-size: 13px 13px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  box-shadow: inset 0 0 0 5px var(--stage-soft);
}
.preview-board::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  pointer-events: none;
}
.preview-empty {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 260px;
  color: #d9d5ca;
  text-align: center;
}
.preview-empty strong { margin-top: 8px; color: #fff8ea; font-family: var(--font-display); font-size: 21px; letter-spacing: -.02em; }
.preview-empty p { margin: 0; color: #aaa9ae; font-size: 10.5px; line-height: 1.7; }
.preview-empty-icon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 72px;
  height: 72px;
  padding: 8px;
  background: #252736;
  border: 1px solid #555766;
  border-radius: 7px;
  transform: rotate(-3deg);
  box-shadow: 5px 5px 0 rgba(238, 132, 105, .58);
}
.preview-empty-icon i { background: #4c4e5e; border-radius: 1px; }
.preview-empty-icon i:nth-child(1) { background: var(--coral); }
.preview-empty-icon i:nth-child(4) { background: var(--accent); }
.preview-tape {
  position: absolute;
  z-index: 3;
  width: 62px;
  height: 20px;
  right: -15px;
  top: 17px;
  background: rgba(238, 132, 105, .7);
  transform: rotate(38deg);
  pointer-events: none;
}
#previewCanvas {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(60vh, 570px);
  border: 1px solid rgba(0, 0, 0, .32);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .3);
}
.preview-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .06em;
}
.preview-caption span:first-child { color: var(--accent-dark); font-weight: 700; }
#result {
  min-height: 48px;
  margin-top: 16px;
  padding: 11px 13px;
  background: #f4efe2;
  border: 1px dashed #afa38f;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}
#result:not(:empty) { color: var(--ink); }
#result.is-ready { background: var(--accent-soft); border-style: solid; border-color: #a4b4eb; box-shadow: inset 3px 0 0 var(--accent); }
#result.is-stale { color: var(--muted); background: #f4efe2; border-style: dashed; box-shadow: none; }
.result-meta { min-height: 18px; margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.export-actions { display: flex; gap: 8px; margin-top: 13px; }
.export-actions .button { min-height: 48px; }
.export-actions .button-dark { flex: 1.4; background: var(--ink); }
.export-actions .button-quiet { flex: .8; background: var(--card-soft); }
.privacy-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 15px 0 0;
  padding-top: 12px;
  color: var(--muted);
  border-top: 1px dashed var(--soft-line);
  font-size: 9.5px;
}
.privacy-line span { color: var(--green); font-size: 7px; }
.quick-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.quick-facts > div {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 1px 6px;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--soft-line);
  border-radius: 9px;
}
.quick-facts span { grid-row: 1 / 3; align-self: center; color: var(--accent-dark); font-family: var(--font-mono); font-size: 8px; }
.quick-facts strong { font-size: 10px; line-height: 1.3; }
.quick-facts small { color: var(--muted); font-size: 8px; line-height: 1.35; }

/* Suite features */
.suite-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 58px;
  color: #f7f1e5;
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 7px 7px 0 var(--coral);
}
.suite-strip article { position: relative; padding: 26px 28px; }
.suite-strip article + article { border-left: 1px solid #3d3e49; }
.suite-strip article::before { content: ""; position: absolute; left: 28px; top: 0; width: 44px; height: 3px; background: var(--coral); }
.suite-strip article:nth-child(2)::before { background: #d8c26b; }
.suite-strip article:nth-child(3)::before { background: #7a97e7; }
.suite-strip span { color: #9da3c8; font-family: var(--font-mono); font-size: 8px; letter-spacing: .15em; }
.suite-strip h2 { margin: 9px 0 8px; color: #fff9ee; font-family: var(--font-display); font-size: 23px; letter-spacing: -.025em; }
.suite-strip p { margin: 0; color: #b9b5ad; font-size: 11px; line-height: 1.75; }

.guide-shell, .faq-shell { margin-top: 62px; }
.how-to-grid li > span { color: var(--card); background: var(--accent); }
.faq-list summary::after { color: var(--accent-dark); }
.premium-map { box-shadow: 6px 6px 0 var(--accent); }
.premium-map .section-index { color: var(--accent-dark); }
.premium-map li span { color: var(--accent-dark); }
.unlock-section { margin-block: 56px; }
.referral-card { box-shadow: 7px 7px 0 var(--coral); }
.referral-dot { background: var(--coral); }
.referral-steps i.is-filled { background: var(--coral); }
.footer-brand strong { font-family: var(--font-display); font-size: 18px; letter-spacing: .04em; }
.site-footer .brand-mark.small { box-shadow: none; }

@media (max-width: 1000px) {
  .collage-workbench { grid-template-columns: 1fr; }
  .collage-preview-card { position: static; }
  .preview-board { min-height: 420px; }
  #previewCanvas { max-height: 560px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 42px; }
  .hero-collage { justify-self: start; width: min(100%, 360px); }
  .suite-strip { grid-template-columns: 1fr; }
  .suite-strip article + article { border-left: 0; border-top: 1px solid #3d3e49; }
}

@media (max-width: 700px) {
  .hero { gap: 34px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(46px, 12.8vw, 68px); }
  .hero-collage { width: min(100%, 330px); box-shadow: 8px 8px 0 var(--accent); }
  .hero-tile { min-height: 96px; }
  .tile-sun { min-height: 218px; }
  .composer-card, .collage-preview-card { padding: 18px; }
  .layout-option { grid-template-columns: 38px minmax(0, 1fr); padding: 7px 8px; }
  .layout-icon { width: 35px; height: 35px; }
  .adjust-grid { gap: 9px 13px; }
  .preview-board { min-height: 330px; padding: 17px; }
  #previewCanvas { max-height: 440px; }
  .suite-strip { margin-top: 44px; }
  .suite-strip article { padding: 22px; }
  .quick-facts { grid-template-columns: 1fr; }
  .quick-facts > div { grid-template-columns: 28px 1fr auto; grid-template-rows: auto; align-items: center; }
  .quick-facts span { grid-row: auto; }
  .quick-facts small { text-align: right; }
}

@media (max-width: 430px) {
  .hero-collage { grid-template-columns: 1.08fr .92fr .72fr; width: 100%; padding: 8px; gap: 6px; }
  .hero-tile { min-height: 82px; }
  .tile-sun { min-height: 184px; }
  .tile-note { padding: 9px; }
  .tile-note strong { font-size: 19px; }
  .tile-note small { display: none; }
  .upload-zone { padding: 11px; }
  .upload-main { gap: 10px; }
  .upload-plus { width: 42px; height: 42px; }
  .upload-main strong { font-size: 13.5px; }
  .upload-main small { font-size: 9.5px; }
  .upload-actions { align-items: stretch; flex-direction: column; gap: 3px; }
  .upload-actions .button, .upload-actions .text-button { width: 100%; }
  .asset-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .asset-heading > span { text-align: left; }
  .image-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-picker { grid-template-columns: 1fr; }
  .layout-option { min-height: 60px; grid-template-columns: 42px minmax(0, 1fr); }
  .layout-icon { width: 39px; height: 39px; }
  .adjust-grid { grid-template-columns: 1fr; }
  .fit-field { grid-column: auto; }
  .color-controls { align-items: flex-start; }
  .swatches { gap: 6px; }
  .swatch { width: 28px; height: 28px; }
  .run-actions { align-items: stretch; flex-direction: column; }
  .run-side { padding-left: 2px; }
  .preview-board { min-height: 280px; padding: 13px; }
  #previewCanvas { max-height: 360px; }
  .export-actions { flex-direction: column; }
  .export-actions .button { flex: none; width: 100%; }
  .suite-strip article { padding: 20px 18px; }
  .suite-strip h2 { font-size: 21px; }
}

@media (max-width: 700px), (pointer: coarse) {
  .thumb-controls button { min-height: 44px; }
  .swatch { width: 40px; height: 40px; flex: 0 0 auto; }
  .layout-option, .size-chip, .upload-main { touch-action: manipulation; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-collage { animation: collage-settle 6s ease-in-out infinite; }
  @keyframes collage-settle {
    0%, 100% { transform: rotate(1.2deg) translateY(0); }
    55% { transform: rotate(.7deg) translateY(-4px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-collage { transform: none; }
}
