/* Moodboard collections use the same paper, type and elevation as handoff cards. */
.handoff-moodboard{--hm-ink:#242424;--hm-muted:#737373;--hm-paper:#fff;--hm-stage:#f0f0ee;color:var(--hm-ink);margin-top:33px;min-width:0;scroll-margin-top:24px}
.handoff-moodboard:empty{display:none}.handoff-moodboard *{box-sizing:border-box}.handoff-moodboard h2,.handoff-moodboard h3,.handoff-moodboard h4,.handoff-moodboard h5,.handoff-moodboard p{text-wrap:pretty;overflow-wrap:anywhere}.handoff-moodboard h2,.handoff-moodboard h3{text-wrap:balance}.handoff-moodboard button,.handoff-moodboard a{touch-action:manipulation}.handoff-moodboard button:focus-visible,.handoff-moodboard a:focus-visible{outline:2px solid #333;outline-offset:4px}
.hm-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 23px}.hm-intro h2{font:550 25px/1.25 var(--sans);letter-spacing:-.55px;margin:8px 0 0}.hm-status{font-size:11px;line-height:1.55;color:#666;display:flex;align-items:center;gap:9px;max-width:190px}
.handoff-moodboard .hm-screen.handoff-sheet,.handoff-moodboard .hm-inspiration.handoff-sheet{padding:28px 29px;margin:24px 0 0;background:var(--surface,#fff);border:0;border-radius:22px;box-shadow:var(--handoff-card-elevation,0 7px 24px #0000000c)}
.hm-screen-heading{margin-bottom:24px}.hm-screen-heading>span{font-size:9px;letter-spacing:.1em;color:#777}.hm-screen-heading h3{font:550 21px/1.3 var(--sans);letter-spacing:-.45px;margin:7px 0 0}.hm-section-label{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:17px}.hm-section-label h3{font:550 21px/1.3 var(--sans);letter-spacing:-.45px}.hm-section-label h4{font:400 16px/1.35 var(--sans);margin:0}
.hm-module{margin-top:29px}.hm-module:first-child{margin-top:0}.hm-module-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:14px}.hm-module-heading>div:first-child{min-width:0}.hm-module-heading h4{font:400 16px/1.3 var(--sans);margin:0}.hm-module-heading .approved-eyebrow{display:block;margin-bottom:8px}.hm-module-controls{display:flex;align-items:center;gap:13px;flex:none}.hm-module-controls>span{font-size:10px;line-height:1.5;color:#777}.hm-count-switch{display:inline-flex;padding:3px;background:#eee;border-radius:999px;gap:2px}.hm-count-switch button{min-width:35px;min-height:35px;border-radius:999px;font:500 11px/1 var(--sans);color:#565656;cursor:pointer}.hm-count-switch button[aria-pressed=true]{background:#252525;color:#fff}.hm-variants,.hm-inspiration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 19px;align-items:start}.hm-variants-4{grid-template-columns:repeat(2,minmax(0,1fr))}.hm-variants-6{grid-template-columns:repeat(3,minmax(0,1fr))}.hm-layout-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 23px;align-items:start}.hm-variant,.hm-layout,.hm-inspiration-grid>article{min-width:0}
.hm-artifact,.hm-layout-stage{background:var(--hm-stage);position:relative;border-radius:14px;min-height:180px;padding:16px;display:flex;align-items:center;justify-content:center;overflow:hidden}.hm-artifact img{width:100%;height:auto;max-height:235px;object-fit:contain;border-radius:7px;box-shadow:0 4px 12px #00000009;filter:none}.hm-variants-4 .hm-artifact img{max-height:310px}.hm-artifact-open{position:absolute;inset:0;z-index:1;cursor:zoom-in;border-radius:inherit}.hm-artifact-open:focus-visible{outline-offset:-4px!important}.hm-artifact-tools{position:absolute;right:8px;left:8px;bottom:8px;z-index:2;display:flex;justify-content:flex-end;gap:5px;opacity:0;transition:opacity .15s;pointer-events:none}.hm-artifact:hover .hm-artifact-tools,.hm-artifact:focus-within .hm-artifact-tools{opacity:1;pointer-events:auto}.hm-artifact-tools button,.hm-artifact-tools a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:#fff;color:#252525;padding:7px 10px;border-radius:99px;font-size:10px;line-height:1.3;text-decoration:none;box-shadow:0 3px 12px #00000012}.hm-artifact-tools button:hover,.hm-artifact-tools a:hover{background:#252525;color:#fff}
.hm-caption{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;padding:10px 1px 0;min-width:0}.hm-caption>div{min-width:0;flex:1}.hm-caption h5,.hm-caption h4{font:400 12px/1.45 var(--sans);margin:0}.hm-caption p{font-size:9px;line-height:1.5;color:#737373;margin-top:4px}.hm-reference-kind{display:block;font-size:9px;line-height:1.4;color:#777;margin-top:4px}
.hm-caption h5,.hm-caption h4{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.hm-layouts{margin-top:30px}.hm-layout-stage{padding:18px;min-height:280px;align-items:flex-start}.hm-layout-stage>div{width:100%}.hm-layout-stage .hm-artifact-open{width:100%}.hm-layout .hm-caption{align-items:center}.hm-collection-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:15px}.hm-collection-actions>.button{min-height:44px;padding:10px 17px;font-size:11px;border-radius:999px}.hm-collection-actions>.hm-generate-more{background:#252525;color:#fff}.hm-collection-actions>.hm-generate-more:hover{background:#444}.hm-collection-actions>.hm-generate-more:disabled{opacity:.65;cursor:progress}
.hm-inspiration-artifact{border-radius:14px;position:relative;padding:14px;min-height:170px;background:var(--hm-stage);overflow:hidden;display:flex;align-items:center;justify-content:center}.hm-inspiration-artifact img{width:100%;height:185px;object-fit:contain;border-radius:5px;filter:none}.hm-source-link{font-size:11px;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;flex:none}.hm-caption>.hm-source-link{font-size:19px;margin-top:-8px}.hm-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:19px}.hm-footer .hm-save-status{font-size:11px;color:#757575;line-height:1.6;min-height:20px;margin:0;text-align:left}.hm-footer>.button{font-size:11px;min-height:44px;border-radius:999px}.hm-footer:has(:only-child){justify-content:flex-start}.hm-notice{background:#ffffffb8;padding:22px;border-radius:18px;color:#686868;font-size:13px;line-height:1.6;display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.hm-notice .button{flex:none}.hm-board-loading{display:grid;grid-template-columns:1fr 1fr;gap:24px;background:var(--surface,#fff);padding:28px 29px;border-radius:22px;box-shadow:var(--handoff-card-elevation,0 7px 24px #0000000c)}.hm-skeleton{height:180px;border-radius:18px;display:block;background:linear-gradient(100deg,#e6e6e6 20%,#f4f4f4 40%,#e6e6e6 60%);background-size:200% 100%;animation:hm-shimmer 2s ease-in-out infinite}
.hm-preview-dialog{border:0;padding:0;border-radius:23px;background:#f7f7f5;color:#252525;max-width:1060px;width:calc(100% - 48px);max-height:calc(100dvh - 48px);box-shadow:0 20px 80px #00000030}.hm-preview-dialog::backdrop{background:#15151570;backdrop-filter:blur(5px)}.hm-preview-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:20px;position:sticky;top:0;background:#f7f7f5;padding:21px 26px;z-index:3;border-bottom:1px solid #dedede}.hm-preview-dialog>header span{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#747474}.hm-preview-dialog h2{font:400 25px/1.2 var(--serif);margin-top:8px;text-wrap:balance}.hm-preview-dialog [data-hm-close]{width:44px;height:44px;flex:none;display:grid;place-items:center;border-radius:50%;background:#e6e6e6;font:300 27px/1 Arial,sans-serif}.hm-preview-body{padding:25px}.hm-preview-crop{padding:24px;display:flex;align-items:center;justify-content:center;background:#e7e7e4;border-radius:16px}.hm-preview-crop img{max-width:100%;width:auto;height:auto;max-height:68vh;border-radius:8px}.hm-preview-tabs{display:flex;gap:7px;margin-bottom:18px}.hm-preview-tabs button{font-size:12px;border:1px solid #ccc;padding:10px 19px;min-height:44px;border-radius:99px}.hm-preview-tabs button[aria-pressed=true]{background:#252525;color:#fff;border-color:#252525}.hm-source-credit{display:flex;justify-content:space-between;align-items:flex-start;gap:22px;margin-top:19px;font-size:12px;line-height:1.65;color:#737373}.hm-source-credit p{max-width:740px}.hm-source-credit strong{font-weight:400;color:#252525}.hm-source-credit .hm-source-link{white-space:nowrap}.hm-context-stage{border-radius:15px;overflow:hidden;background:#e7e7e4}.hm-source-context{position:relative}.hm-source-context>img{width:100%;height:auto;display:block}.hm-source-context>span{position:absolute;border:2px solid #fff;box-shadow:0 0 0 9999px #16161666,0 0 0 2px #151515;pointer-events:none;border-radius:3px}.hm-layout-preview{background:#e7e7e4;border-radius:16px;padding:26px}.hm-layout-preview>div{max-width:850px;margin:auto}.hm-preview-note{font-size:12px;color:#737373;line-height:1.6;margin-top:18px}
@keyframes hm-shimmer{100%{background-position:-200% 0}}
@media(max-width:1000px){.hm-variants,.hm-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hm-artifact{padding:18px}.hm-caption{gap:8px}.hm-status{max-width:150px}}
@media(max-width:640px){.handoff-moodboard{margin-top:25px}.hm-intro{display:block;margin-bottom:20px}.hm-intro h2{font-size:23px}.hm-status{margin-top:13px;max-width:none;font-size:10px}.handoff-moodboard .hm-screen.handoff-sheet,.handoff-moodboard .hm-inspiration.handoff-sheet{padding:23px 20px;margin-top:20px;border-radius:20px}.hm-screen-heading{margin-bottom:21px}.hm-screen-heading h3,.hm-section-label h3{font-size:19px}.hm-section-label h4,.hm-module-heading h4{font-size:15px}.hm-module-controls>span{font-size:9px}.hm-module-heading{align-items:flex-start;flex-wrap:wrap}.hm-module-controls{width:100%;justify-content:space-between}.hm-variants,.hm-layout-grid,.hm-board-loading{grid-template-columns:1fr;gap:21px}.hm-inspiration-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 13px}.hm-artifact,.hm-layout-stage{padding:20px;border-radius:14px}.hm-artifact img{max-height:330px}.hm-artifact-tools{opacity:1;pointer-events:auto;bottom:9px;right:9px;left:auto}.hm-artifact-tools button{font-size:10px;padding:8px 13px;min-height:44px}.hm-artifact-tools a{display:none}.hm-caption h5,.hm-caption h4{font-size:12px}.hm-caption p{font-size:9px}.hm-inspiration-artifact{min-height:120px;padding:10px;border-radius:12px}.hm-inspiration-artifact img{height:120px}.hm-inspiration .hm-caption{gap:3px}.hm-inspiration .hm-caption h4{font-size:11px}.hm-inspiration .hm-caption p{font-size:8px}.hm-inspiration .hm-source-link{min-width:24px}.hm-notice,.hm-footer{align-items:flex-start;flex-direction:column}.hm-footer{gap:10px}.hm-preview-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:20px}.hm-preview-dialog>header{padding:17px}.hm-preview-dialog h2{font-size:22px}.hm-preview-body{padding:17px}.hm-preview-crop{padding:13px}.hm-source-credit{flex-direction:column;gap:7px;font-size:11px}.hm-source-credit .hm-source-link{font-size:11px}.hm-layout-preview{padding:14px}}
@media(max-width:360px){.handoff-moodboard .hm-screen.handoff-sheet,.handoff-moodboard .hm-inspiration.handoff-sheet{padding:22px 17px}.hm-inspiration-grid{grid-template-columns:1fr}.hm-inspiration-artifact img{height:170px}}
@media(prefers-reduced-motion:reduce){.hm-skeleton{animation:none}.hm-artifact-tools{transition:none}}

/* Side-by-side review: show two readable layouts and use the compact index to
   move through the five (or more) structures for each screen. */
.hm-layout-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;align-items:start}
.hm-layout-compare.is-single{grid-template-columns:minmax(0,1fr)}
.hm-layout-compare .hm-layout{min-width:0}
.hm-layout-compare .hm-layout-stage{height:auto;min-height:280px;padding:14px;align-items:flex-start;background:#f0f0ee;overflow:visible}
.hm-layout-compare .hm-layout-stage>div{width:100%;min-width:0}
.hm-layout-compare .hm-artifact-open{z-index:2;background:transparent}
.hm-layout-compare .hm-artifact-open::after{content:"View full layout ↗";position:absolute;right:10px;bottom:10px;padding:9px 12px;border-radius:99px;background:#fff;color:#303030;font:11px/1.2 var(--sans);box-shadow:0 2px 12px #00000014}
.hm-layout-compare .hm-artifact-open:hover::after,.hm-layout-compare .hm-artifact-open:focus-visible::after{background:#252525;color:#fff}
.hm-layout-compare .hm-layout .hm-caption{align-items:flex-end;gap:12px;padding:12px 2px 0}
.hm-layout-compare .hm-layout .hm-caption h5{font-size:13px;line-height:1.35}
.hm-layout-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:17px}
.hm-layout-option{min-width:0;min-height:48px;display:flex;align-items:center;gap:8px;padding:10px 11px;text-align:left;border-radius:10px;background:#f1f1ef;transition:background .15s,color .15s;cursor:pointer}
.hm-layout-option>span:first-child{flex:none;color:#777;font-size:10px}
.hm-layout-option strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:500}
.hm-layout-option:hover{background:#e4e4e1}
.hm-layout-option.is-active{background:#252525;color:#fff}
.hm-layout-option.is-active>span:first-child{color:#c9c9c9}
.hm-layout-saved{margin-left:auto;flex:none;font-size:9px;color:#666}
.hm-layout-option.is-active .hm-layout-saved{color:#d6d6d6}
@media(max-width:1000px){.hm-layout-options{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.hm-layout-compare{grid-template-columns:1fr;gap:25px}.hm-layout-compare .hm-layout-stage{height:auto;min-height:280px;padding:12px}.hm-layout-options{display:flex;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;padding-bottom:5px}.hm-layout-option{min-width:150px;scroll-snap-align:start}.hm-layout-compare .hm-layout .hm-caption h5{font-size:12px}}
@media(prefers-reduced-motion:reduce){.hm-layout-option{transition:none}}

/* The next moodboard section appears in place while archive matching continues. */
.hm-generation{margin:24px 0 0;padding:26px 29px;background:#fff;border-radius:22px;box-shadow:var(--handoff-card-elevation,0 7px 24px #0000000c)}
.hm-generation h3{font:500 20px/1.3 var(--sans);letter-spacing:-.35px;margin:7px 0 0}
.hm-generation-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:22px}
.hm-generation-tiles>div{padding:12px;background:#f0f0ee;border-radius:14px}
.hm-generation-tiles span,.hm-module-loading span{display:block;border-radius:8px;background:linear-gradient(100deg,#e3e3e0 20%,#f8f8f7 40%,#e3e3e0 60%);background-size:200% 100%;animation:hm-shimmer 2s ease-in-out infinite}
.hm-generation-image{height:150px}.hm-generation-line{height:12px;margin-top:11px;width:72%}.hm-generation-line.is-short{width:46%;margin-top:7px}
.hm-module-loading{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:18px}.hm-module-loading span{height:100px}
.hm-module-status{margin:12px 0 0;font-size:11px;line-height:1.5;color:#666}
.hm-screen .hm-layouts+.hm-modules{margin-top:32px}
.hm-footer>.button:disabled,.hm-notice .button:disabled{opacity:.6;cursor:progress}
@media(max-width:640px){.hm-generation{padding:22px 20px;border-radius:20px}.hm-generation h3{font-size:18px}.hm-generation-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hm-generation-tiles>div:nth-child(3){display:none}.hm-generation-image{height:110px}.hm-module-loading{grid-template-columns:repeat(2,minmax(0,1fr))}.hm-module-loading span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){.hm-generation-tiles span,.hm-module-loading span{animation:none}}

/* Let archive imagery occupy the full grid column at its own aspect ratio.
   The white handoff card supplies the surrounding surface; the thumbnail
   should not sit inside a second gray, padded card. */
.handoff-moodboard .hm-artifact,
.handoff-moodboard .hm-inspiration-artifact,
.handoff-moodboard .hm-layout-stage,
.handoff-moodboard .hm-layout-compare .hm-layout-stage{
  display:block;
  min-height:0;
  height:auto;
  padding:0;
  background:transparent;
  border:0;
  border-radius:12px;
  overflow:hidden;
}
.handoff-moodboard .hm-artifact img,
.handoff-moodboard .hm-inspiration-artifact img,
.handoff-moodboard .hm-variants-4 .hm-artifact img{
  display:block;
  width:100%;
  height:auto;
  max-height:none;
  object-fit:initial;
  border-radius:12px;
  box-shadow:none;
}
.handoff-moodboard .hm-layout-stage>div{width:100%}
.hm-preview-dialog .hm-preview-crop{
  padding:0;
  background:transparent;
}
.hm-preview-dialog .hm-preview-crop img{border-radius:12px}
@media(max-width:640px){
  .handoff-moodboard .hm-artifact,
  .handoff-moodboard .hm-inspiration-artifact,
  .handoff-moodboard .hm-layout-stage,
  .handoff-moodboard .hm-layout-compare .hm-layout-stage,
  .handoff-moodboard .hm-artifact img,
  .handoff-moodboard .hm-inspiration-artifact img{border-radius:10px}
}
