@font-face {
  font-family: "Grobold";
  src: url("assets/fonts/GROBOLD.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #17151d;
  --muted: #6f6a78;
  --line: #e7e3e9;
  --paper: #fffdfb;
  --soft: #f7f4f7;
  --pink: #f3428b;
  --pink-dark: #ca1765;
  --blue: #33a9e8;
  --yellow: #ffce3a;
  --green: #6bcf8e;
  --shadow: 0 20px 60px rgba(31, 24, 39, 0.09);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
.suggestion-panel { padding: 24px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.suggestion-panel h2 { margin: 0; }
.suggestion-panel > p { color: var(--muted); }
.suggestion-search-row { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid #b8b1be; border-radius: 18px; background: white; box-shadow: 0 4px 16px rgba(31,24,39,.04); }
.suggestion-search-row:focus-within, .suggestion-search-row.dragging { border-color: var(--pink-dark); box-shadow: 0 0 0 3px rgba(243,66,139,.12); }
.suggestion-search-row.dragging { background: #fff4f8; }
.suggestion-search-row input[type="search"] { flex: 1; width: 0; min-width: 0; padding: 13px 0; border: 0; background: transparent; font-size: 16px; outline: none; text-overflow: ellipsis; }
.search-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.photo-upload { position: relative; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: #8e5892; font-weight: 800; white-space: nowrap; cursor: pointer; }
.photo-upload:hover { background: #eee6f0; }
.photo-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-upload:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.suggestion-search-row svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.suggestion-search-row button { display: flex; align-items: center; justify-content: center; gap: 10px; flex-shrink: 0; background: var(--pink-dark); color: white; }
.suggestion-panel #suggestionStatus:empty, .suggestion-results:empty { display: none; }
.suggestion-filters { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.suggestion-filters label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.suggestion-filters .select-menu { min-width: 160px; }
.suggestion-filters .select-trigger { min-height: 40px; font-size: 13px; }
.suggestion-examples { display: flex; flex-wrap: wrap; gap: 14px; }
.suggestion-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.suggestion-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.suggestion-card h3 { margin: 12px 0 4px; }
.suggestion-card p { font-size: 13px; }
.suggestion-card a { text-decoration: none; display: inline-block; }
.suggestion-swatch { height: 68px; border-radius: 8px; border: 1px solid rgba(0,0,0,.1); }
.suggestion-panel :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.suggestion-panel button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 700px) {
  .suggestion-panel { padding: 18px; }
  .suggestion-search-row { flex-wrap: wrap; gap: 8px; padding: 8px; }
  .suggestion-search-row input[type="search"] { flex-basis: 100%; padding: 10px 4px; }
  .search-actions { width: 100%; }
  .search-actions > * { flex: 1; font-size: 13px; padding: 10px 8px; }
  .search-actions svg { display: none; }
  .suggestion-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .suggestion-results { grid-template-columns: 1fr; }
}
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: linear-gradient(180deg, #fffafc 0, #fff 34rem); }
body > header, body > footer { flex-shrink: 0; }
button, input, select { font: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.site-header { position: sticky; top: 0; z-index: 20; box-shadow: 0 8px 26px rgba(35, 26, 40, .08); }
.shipping-banner {
  height: 50px; padding: 10px 20px; display: grid; place-items: center; text-align: center;
  background: #965a9b; color: white; font-size: 15px; letter-spacing: .01em;
}
.shipping-banner strong { margin: 0 .22em; font-weight: 850; }
.store-nav {
  height: 86px; display: flex; justify-content: center;
  align-items: center; padding: 0; background: rgba(255,255,255,.97);
  border-bottom: 1px solid #ece8ee; backdrop-filter: blur(16px);
}
.nav-logo {
  position: relative; align-self: stretch; display: block; width: 210px; height: 116px; margin-bottom: -30px; overflow: hidden; z-index: 2;
  background: transparent;
}
.nav-logo img { position: absolute; width: 198px; max-width: none; height: 198px; left: 50%; top: 50%; transform: translate(-50%, -52%); }

main { flex: 1; width: 100%; max-width: 1380px; margin: 0 auto; padding: 0 22px 70px; }
.tool-intro { display: block; padding: 28px 2px 24px; }
h1 { margin: 0; font-size: clamp(32px, 4vw, 50px); letter-spacing: -.05em; line-height: 1; }
.usage-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.usage-step { position: relative; min-width: 0; min-height: 82px; display: flex; align-items: center; gap: 13px; padding: 16px 17px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(31, 24, 39, .05); overflow: hidden; }
.usage-step::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--pink); }
.usage-step:nth-child(2)::before { background: var(--blue); }
.usage-step:nth-child(3)::before { background: var(--yellow); }
.usage-step > span { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 13px; font-weight: 900; }
.usage-step strong { display: block; font-size: 14px; }
.usage-step p { margin: 3px 0 0; max-width: 290px; color: var(--muted); font-size: 12px; line-height: 1.35; }

.studio-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr); gap: 22px; align-items: start; }
.upload-panel, .workspace-card, .results-card { width: 100%; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.upload-panel { margin-bottom: 22px; padding: clamp(20px, 2.5vw, 32px); }
.workspace-card { padding: clamp(20px, 3vw, 38px); }
.results-card { min-height: 400px; padding: clamp(20px, 2.4vw, 32px); position: sticky; top: 158px; max-height: calc(100vh - 180px); overflow: auto; }
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.panel-heading h2, .results-header h2 { margin: 0; font-size: 23px; letter-spacing: -.03em; }
.panel-heading span { color: var(--muted); font-size: 12px; }

.upload-zone { position: relative; min-height: 116px; margin-top: 20px; border: 2px dashed #d8d1db; border-radius: 22px; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 22px; cursor: pointer; background: #fbf9fb; transition: .2s ease; }
.upload-zone:hover, .upload-zone.dragging { border-color: var(--pink); background: #fff4f8; transform: translateY(-1px); }
.upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone > span:last-child { display: flex; flex-direction: column; }
.upload-zone strong { font-size: 17px; }
.upload-zone small { margin-top: 4px; color: var(--muted); }
.upload-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: white; border: 1px solid var(--line); font-size: 25px; color: var(--pink-dark); }
.sample-row { margin: 18px 0 0; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.sample-buttons { display: flex; min-width: 0; max-width: 100%; gap: 8px; overflow-x: auto; padding: 3px; }
.sample-button { width: 50px; height: 50px; flex: 0 0 50px; padding: 0; border: 2px solid white; border-radius: 14px; background-size: cover; background-position: center; box-shadow: 0 0 0 1px var(--line); }
.sample-button:hover, .sample-button:focus-visible { box-shadow: 0 0 0 3px var(--pink); outline: none; }

.canvas-shell { position: relative; margin-top: 23px; border-radius: 22px; overflow: hidden; background: #211e25; min-height: 300px; line-height: 0; }
#photoCanvas { display: block; width: 100%; max-height: 68vh; min-height: 300px; object-fit: contain; cursor: crosshair; touch-action: none; }
#photoCanvas.dragging-pin { cursor: grabbing; }
.canvas-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); border-radius: 99px; padding: 11px 16px; color: white; background: rgba(20,18,23,.74); backdrop-filter: blur(10px); line-height: 1; font-size: 13px; font-weight: 750; pointer-events: none; transition: opacity .25s; }
.selection-tools { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.tool-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px; border: 1px solid #ece7ee; border-radius: 16px; background: linear-gradient(180deg, #faf8fa, #f6f2f6); }
.tool-row label { font-size: 13px; font-weight: 750; color: #504a56; }
.tool-row input { accent-color: var(--pink); width: 116px; }
.finish-control { display: flex; align-items: center; gap: 9px; }
.control-label { padding-left: 2px; color: #504a56; }
.select-shell { position: relative; display: block; min-width: 184px; }
.select-shell .select-menu { width: 100%; }
.text-button { border: 0; background: transparent; padding: 8px; font-weight: 800; color: #554f5c; }
.text-button.danger { color: #bd3260; }
.palette { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.selection-tools .tool-row { margin-top: 14px; }
.palette-chip { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 9px; background: white; }
.palette-chip.active { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(243, 66, 139, .12); }
.palette-select { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.palette-chip .swatch { height: 42px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.palette-select .swatch { display: block; width: 100%; }
.remove-color { position: absolute; top: 4px; right: 4px; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 1px solid rgba(0,0,0,.08); border-radius: 50%; background: rgba(255,255,255,.92); color: #5e5765; font-size: 16px; line-height: 1; box-shadow: 0 2px 7px rgba(24,18,28,.1); }
.remove-color:hover, .remove-color:focus-visible { background: var(--pink); color: white; outline: none; }
.palette-chip strong, .palette-chip small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-chip strong { margin-top: 8px; font-size: 12px; }
.palette-chip small { margin-top: 2px; color: var(--muted); font-size: 10px; text-transform: uppercase; }

.results-empty { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.results-empty h2 { margin: 0 0 7px; letter-spacing: -.03em; }
.results-empty p { max-width: 350px; margin: 0; color: var(--muted); line-height: 1.55; }
.results-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.secondary-button { border: 1px solid var(--line); border-radius: 12px; background: white; padding: 10px 12px; font-weight: 800; color: var(--ink); }
.prototype-warning { margin: 18px 0; border-left: 3px solid var(--yellow); background: #fff8dc; padding: 12px 13px; color: #6c5a17; font-size: 12px; line-height: 1.45; }
.match-group { border-top: 1px solid var(--line); padding: 20px 0 6px; }
.match-group:first-child { border-top: 0; }
.match-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.match-title > div { display: flex; gap: 10px; align-items: center; }
.match-swatch { width: 36px; height: 36px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.match-title h3 { margin: 0; font-size: 15px; }
.match-title p { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.match-index { font-size: 11px; font-weight: 850; color: var(--muted); }
.product-match { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 13px; margin-bottom: 6px; background: white; }
.product-match.best { border-color: #edb7ce; background: #fff9fb; }
.product-image { width: 52px; height: 52px; border-radius: 9px; object-fit: contain; background: #f7f7f7; }

.product-copy h4 { margin: 2px 0 3px; font-size: 12px; line-height: 1.2; }
.product-meta { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 9px; }
.stock { color: #197641; font-weight: 800; }
.stock.out { color: #9b3b53; }
.product-options { margin-top: 5px; }
.product-options summary { width: fit-content; cursor: pointer; color: #5e5765; font-size: 8px; font-weight: 850; list-style: none; }
.product-options summary::-webkit-details-marker { display: none; }
.product-options summary::after { content: " +"; color: var(--pink-dark); }
.product-options[open] summary::after { content: " −"; }
.option-links { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.option-chip { border: 1px solid #e3d9df; border-radius: 7px; background: white; color: var(--ink); padding: 4px 5px; font-size: 8px; font-weight: 800; line-height: 1; text-decoration: none; }
.option-chip:hover { border-color: var(--pink); color: var(--pink-dark); }
.product-action { text-align: right; }
.score { display: block; margin-bottom: 5px; color: #514b58; font-size: 9px; font-weight: 850; }
.shop-link { display: inline-block; border-radius: 8px; background: var(--ink); color: white; text-decoration: none; padding: 7px 8px; font-size: 9px; font-weight: 850; }
.unavailable-note { margin: 10px 0 6px; font-size: 11px; color: var(--muted); }
.feedback-row { display: flex; justify-content: flex-end; gap: 7px; margin-top: 9px; }
.feedback-button { border: 0; border-radius: 9px; background: var(--soft); color: #5e5765; padding: 7px 9px; font-size: 10px; font-weight: 750; }
.feedback-button.selected { background: #f4d9e5; color: #8f2052; }

.privacy-notice { margin: 0 0 22px; padding: 18px clamp(20px, 3vw, 28px); display: flex; align-items: flex-start; gap: 15px; border: 1px solid #cce6d7; border-radius: 20px; background: #f2faf5; color: #174f32; }
.privacy-notice-icon { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #dcefe4; font-size: 19px; }
.privacy-notice strong { display: block; margin-bottom: 3px; font-size: 16px; }
.privacy-notice p { margin: 0; line-height: 1.5; font-size: 13px; }
.privacy-share { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 12px; cursor: pointer; font-size: 12px; line-height: 1.45; color: #1f5c3c; }
.privacy-share input { width: 18px; height: 18px; margin-top: 1px; accent-color: #2f8f5b; }
.plan-copy { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.plan-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.plan-list li + li { margin-top: 8px; }
.plan-list code { font-size: 12px; }
footer { border-top: 1px solid var(--line); margin-top: 34px; padding: 22px max(22px, calc((100vw - 1380px)/2)); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
footer a { color: var(--pink-dark); font-weight: 750; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.checklist-page { max-width: 1100px; padding-top: 46px; }
.checklist-intro { display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: end; gap: 40px; margin-bottom: 28px; }
.checklist-intro p { max-width: 720px; margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.checklist-progress { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.checklist-progress strong, .checklist-progress span { display: block; }
.checklist-progress strong { font-size: 22px; }
.checklist-progress > span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.progress-track { height: 7px; margin-top: 13px; overflow: hidden; border-radius: 99px; background: var(--soft); }
.progress-track span { width: 0; height: 100%; border-radius: inherit; background: var(--pink); transition: width .2s ease; }
.checklist-sections { display: grid; gap: 18px; }
.checklist-card { padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 12px 38px rgba(31, 24, 39, .06); }
.checklist-card h2 { margin: 0 0 14px; font-size: 21px; letter-spacing: -.03em; }
.checklist-card label { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.checklist-card input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--pink); }
.checklist-card strong, .checklist-card small { display: block; }
.checklist-card strong { font-size: 14px; }
.checklist-card small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.checklist-card label:has(input:checked) strong { color: var(--pink-dark); }
.checklist-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 120px); z-index: 30; opacity: 0; background: var(--ink); color: white; padding: 12px 17px; border-radius: 99px; font-size: 13px; font-weight: 750; transition: .25s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1050px) {
  .store-nav { height: 82px; }
  .nav-logo { width: 142px; height: 94px; margin-bottom: -12px; }
  .nav-logo img { width: 148px; height: 148px; }
}
@media (max-width: 980px) {
  .studio-grid { grid-template-columns: 1fr; }
  .results-card { position: static; max-height: none; min-height: 420px; }
  .results-empty { min-height: 360px; }
  .usage-steps { grid-template-columns: repeat(3, minmax(170px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
}
@media (max-width: 640px) {
  .shipping-banner { height: 34px; padding: 7px 10px; font-size: 11px; }
  .store-nav { height: 70px; }
  .nav-logo { width: 118px; height: 78px; margin-bottom: -8px; }
  .nav-logo img { width: 132px; height: 132px; }
  main { padding: 0 12px 50px; }
  .tool-intro { padding: 23px 5px 15px; }
  .usage-steps { grid-template-columns: 1fr; overflow: visible; }
  .upload-panel, .workspace-card, .results-card { border-radius: 21px; padding: 17px; }
  .panel-heading { display: block; }
  .panel-heading span { display: block; margin-top: 4px; }
  .sample-row { align-items: flex-start; flex-direction: column; }
  .palette { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .tool-row { align-items: flex-start; }
  .finish-control { width: 100%; display: block; }
  .control-label { display: block; margin: 0 0 6px 2px; }
  .select-shell { width: 100%; }
  .product-match { grid-template-columns: 48px minmax(0,1fr); }
  .product-image { width: 48px; height: 48px; }
  .product-action { grid-column: 2; display: flex; justify-content: space-between; align-items: center; }
  .score { margin: 0; }
  footer { padding-inline: 18px; flex-direction: column; }
  .privacy-notice { margin: 0 0 18px; }
  .checklist-page { padding-top: 32px; }
  .checklist-intro { grid-template-columns: 1fr; gap: 20px; }
  .checklist-progress { width: 100%; }
  .checklist-card { border-radius: 20px; }
}

@media print {
  .site-header, footer, .checklist-actions { display: none; }
  body { background: white; }
  .checklist-page { max-width: none; padding: 0; }
  .checklist-intro { margin-bottom: 16px; }
  .checklist-sections { gap: 10px; }
  .checklist-card { break-inside: avoid; padding: 14px 18px; box-shadow: none; }
  .checklist-card label { padding: 8px 0; }
}

/* Customer workflow: readable controls and an undistorted sampling surface. */
.intro-copy { color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 650px; }
.photo-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.helper-copy { color: var(--muted); font-size: 13px; line-height: 1.5; }
.lighting-control { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.canvas-shell { min-height: 0; display: flex; justify-content: center; scroll-margin-top: 180px; }
#photoCanvas { width: auto; max-width: 100%; max-height: none; min-height: 0; object-fit: initial; flex: none; }
.canvas-hint { max-width: 90%; font-size: 12px; line-height: 1.4; text-align: center; }
button, .shop-link, .option-chip, .product-options summary { min-height: 44px; }
button:focus-visible, a:focus-visible, canvas:focus-visible, summary:focus-visible { outline: 3px solid var(--pink-dark); outline-offset: 3px; }
.upload-zone:focus-within { outline: 3px solid var(--pink-dark); outline-offset: 3px; }
button[aria-pressed="true"] { border-color: var(--pink-dark); }
.remove-color { width: 32px; height: 32px; min-height: 32px; }
.product-match { grid-template-columns: 64px minmax(0, 1fr); padding: 12px; gap: 12px; margin-bottom: 12px; }
.product-image { width: 64px; height: 72px; }
.product-copy h4 { font-size: 15px; line-height: 1.4; }
.product-meta { font-size: 12px; gap: 8px; }
.product-action { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.score { font-size: 12px; margin: 0; }
.shop-link { font-size: 13px; display: inline-flex; align-items: center; padding: 10px 14px; }
.product-options summary { font-size: 12px; display: flex; align-items: center; }
.option-chip { font-size: 12px; line-height: 1.4; display: inline-flex; align-items: center; padding: 8px; }
.feedback-button { font-size: 12px; }
.toast { max-width: calc(100vw - 24px); width: max-content; border-radius: 16px; text-align: center; }
@media (max-width: 640px) {
  .canvas-shell { scroll-margin-top: 124px; }
  .results-header { flex-wrap: wrap; }
  .photo-tools .secondary-button { flex: 1 1 auto; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.studio-grid { scroll-margin-top: 180px; }
@media (max-width: 640px) { .studio-grid { scroll-margin-top: 124px; } }

/* Handoff to the design page. */
.design-handoff { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 14px 14px 14px 18px; border: 1px solid #eadcec; border-radius: 16px; background: linear-gradient(180deg, #fdf9fd, #f8f1f8); }
.selection-tools .design-handoff { margin-top: 14px; }
#searchHandoff { margin: 18px 0 0; }
#searchHandoff:not([hidden]) + #suggestionStatus { margin-top: 18px; }
.handoff-swatches { display: flex; padding-left: 8px; }
.handoff-swatches i { width: 30px; height: 30px; margin-left: -8px; border: 2px solid white; border-radius: 50%; box-shadow: 0 1px 3px rgba(31,24,39,.12); }
.design-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 11px 18px; border-radius: 12px; background: #8e5892; color: white; font-weight: 800; text-decoration: none; white-space: nowrap; }
.design-cta:hover { background: #7a4a7e; }
.start-event { margin: -4px 0 28px; text-align: center; font-size: 14px; }
.start-event a { display: inline-block; padding: 12px 4px; color: #8e5892; font-weight: 800; text-decoration: none; }
.start-event a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 420px) {
  .design-handoff { flex-direction: column; align-items: stretch; }
  .design-cta { justify-content: center; }
}

/* Page transitions between Color Studio and Design Studio (see lib/page-transition.mjs). */
@media (prefers-reduced-motion: no-preference) {
  html.leaving main, html.leaving footer { animation: studio-leave .24s ease-in forwards; }
  html.arriving .tool-intro, html.arriving .suggestion-panel, html.arriving .start-event { animation: studio-enter .5s cubic-bezier(.2, .8, .2, 1) both; }
  html.arriving .suggestion-panel { animation-delay: .06s; }
  html.arriving .start-event { animation-delay: .12s; }
}
@keyframes studio-leave { to { opacity: 0; transform: translateY(-10px); } }
@keyframes studio-enter { from { opacity: 0; transform: translateY(14px); } }

/* The editor, new photos and suggestions ease in rather than flashing. */
.suggestion-card.skeleton { min-height: 214px; border-color: transparent; background: linear-gradient(100deg, #f6f2f6 30%, #fbf8fb 50%, #f6f2f6 70%) 0 0 / 300% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .studio-grid.revealing .workspace-card { animation: studio-enter .55s cubic-bezier(.2, .8, .2, 1) both; }
  .studio-grid.revealing .results-card { animation: studio-enter .55s .08s cubic-bezier(.2, .8, .2, 1) both; }
  #photoCanvas.revealing { animation: photo-in .45s ease-out both; }
  .suggestion-card:not(.skeleton) { animation: studio-enter .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * .06s); }
  .suggestion-card.skeleton { animation: shimmer 1.4s linear infinite; }
  .design-handoff { animation: studio-enter .45s .18s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes photo-in { from { opacity: 0; transform: scale(.985); } }
@keyframes shimmer { to { background-position: -300% 0; } }
