/* /online-collage-maker/ only (like trends.css): the in-browser collage editor built by online.js into #editor.
   Desktop: preview left, controls right; below 961 px the preview sits on top. No animation. Tokens come from site.css. */
.oe-hero .lede { max-width: 62ch; }
.oe-wrap { padding-bottom: clamp(48px, 6vw, 88px); }
.oe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: clamp(20px, 3vw, 40px); align-items: start; }
/* Room for the editor before online.js runs. The note stays for a browser without JS, and online.js marks .is-unsupported
   (no canvas) so the note shows there too, without the empty box. */
@media (scripting: enabled) {
  .oe:not(.is-ready):not(.is-unsupported) { min-height: 560px; }
  .oe:not(.is-unsupported) .oe-note { display: none; }
}
.oe [hidden] { display: none !important; }
.oe-note { grid-column: 1 / -1; background: var(--surface); border-radius: 24px; padding: 24px; margin: 0; }
.oe-note a { font-weight: 600; }
.oe-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* preview */
.oe-view { min-width: 0; background: var(--surface); border-radius: 32px; padding: clamp(12px, 2.4vw, 28px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.oe-stage { position: relative; flex: none; max-width: 100%; box-shadow: var(--shadow-card); }
.oe-canvas { display: block; width: 100%; height: 100%; }
.oe-cells { position: absolute; inset: 0; }
.oe-cell { position: absolute; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; font: 500 14px/1.25 var(--sans); -webkit-tap-highlight-color: transparent; }
.oe-cell.is-full { cursor: grab; touch-action: none; } /* only a filled cell takes the finger: it moves the photo */
.oe-cell.is-full:active { cursor: grabbing; }
.oe-cell:focus-visible, .oe-cell.is-sel { outline: 2px solid transparent; outline-offset: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); z-index: 1; }
.oe-add { display: grid; justify-items: center; gap: 8px; padding: 8px; text-align: center; pointer-events: none; }
.oe-add svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--page); box-shadow: var(--shadow-card); fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.oe-cell.is-full .oe-add, .oe-cell.is-small .oe-add-t { display: none; }
.is-dark .oe-cell { color: rgba(255, 255, 255, .78); }
.oe-drop { position: absolute; inset: 0; display: none; place-items: center; background: rgba(255, 255, 255, .86); outline: 2px dashed var(--ink); outline-offset: -8px; font: 600 16px/1.2 var(--sans); pointer-events: none; }
.oe-stage.is-drop .oe-drop { display: grid; }
.oe-bar, .oe-celltools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.oe-zoom { font: 600 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.oe-celltools input[type="range"] { width: 140px; }
.oe-hint { margin: 0; font-size: 14px; color: var(--ink-2); text-align: center; }
.oe-err { width: 100%; color: #b3261e; font-size: 14px; text-align: center; }
.oe-err:empty { display: none; }
.oe-err p { margin: 0; overflow-wrap: anywhere; }

/* controls */
.oe-panel { display: grid; gap: 24px; min-width: 0; }
.oe-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.oe-group legend, .oe-slider label { padding: 0; margin-bottom: 8px; font: 600 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.oe-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.oe-layouts .oe-opts { display: grid; grid-template-columns: repeat(4, 56px); }
.oe-opt { position: relative; display: inline-flex; cursor: pointer; }
.oe-opt input:focus-visible + * { outline: 2px solid var(--ink); outline-offset: 3px; }
.oe-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--hairline); border-radius: 999px; font: 500 15px/1 var(--sans); white-space: nowrap; }
.oe-opt input:checked + .oe-chip { background: var(--ink); border-color: var(--ink); color: var(--page); }
.oe-thumb { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--page); }
.oe-thumb svg { display: block; width: auto; height: 40px; max-width: 40px; }
.oe-thumb rect { fill: #d4d4d4; }
.oe-opt input:checked + .oe-thumb { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.oe-opt input:checked + .oe-thumb rect { fill: var(--ink); }
.oe-swatch { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(10, 10, 10, .14); }
.oe-opt input:checked + .oe-swatch { box-shadow: inset 0 0 0 1px rgba(10, 10, 10, .14), 0 0 0 2px var(--page), 0 0 0 4px var(--ink); }
.oe-opt input:focus-visible + .oe-swatch { outline-offset: 6px; border-radius: 50%; }
.oe-sliders { display: grid; gap: 6px; }
.oe-slider { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
.oe-slider label { margin: 0; }
.oe-slider output { font: 500 14px/1 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.oe input[type="range"] { height: 44px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.oe-slider input[type="range"] { grid-column: 1 / -1; width: 100%; }
.oe-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.oe-btn, .oe-download { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font: 600 15px/1 var(--sans); cursor: pointer; }
.oe-btn { border: 1px solid var(--hairline); background: var(--page); color: var(--ink); }
.oe-download { flex: 1 1 auto; min-height: 52px; padding: 0 28px; border: 0; background: var(--ink); color: var(--page); font-size: 16px; }
.oe-btn:disabled, .oe-download:disabled { opacity: .35; cursor: default; }
.oe-status { margin: -12px 0 0; font-size: 14px; color: var(--ink-2); }
.oe-status:empty { display: none; }
.oe-bridge { display: grid; gap: 14px; justify-items: start; padding: 20px; border: 1px solid var(--hairline); border-radius: 20px; }
.oe-bridge p { margin: 0; font-weight: 500; }
.oe-bridge :is(.app-store-badge, .play-badge) img { height: 44px; }
.oe-bridge .store-qr { display: none; } /* the copied closing-card badges carry the QR to /download/ (2026-10-29); not beside 44 px badges */

@media (max-width: 960px) {
  .oe { grid-template-columns: minmax(0, 1fr); }
  .oe-view { border-radius: 24px; }
}
/* Windows high contrast: the selected chip, layout, colour and cell keep a visible mark; swatches keep their colours */
@media (forced-colors: active) {
  .oe-opt input:checked + .oe-chip, .oe-opt input:checked + .oe-thumb { outline: 3px solid Highlight; outline-offset: 2px; }
  .oe-swatch { forced-color-adjust: none; }
  .oe-opt input:checked + .oe-swatch { outline: 3px solid Highlight; outline-offset: 3px; }
  .oe-cell.is-sel, .oe-cell:focus-visible { outline: 3px solid Highlight; }
}
