:root {
  --ink: #171a19;
  --ink-2: #232726;
  --paper: #f3f1eb;
  --white: #fff;
  --muted: #777d79;
  --line: rgba(23, 26, 25, .12);
  --accent: #ef5b3c;
  --acid: #dffd48;
  --shadow: 0 24px 70px rgba(18, 23, 21, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.site-header { position: sticky; z-index: 50; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; height: 76px; align-items: center; padding: 0 clamp(22px, 5vw, 78px); color: #fff; background: rgba(20,23,22,.96); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; }
.brand-mark { position: relative; display: block; width: 58px; height: 32px; overflow: hidden; flex: 0 0 auto; border: 1px solid rgba(230,178,74,.35); border-radius: 6px; background: #fff; }
.brand-mark img { position: absolute; top: 50%; left: 0; display: block; width: 100%; height: auto; transform: translateY(-50%); }
.brand > span:last-child { display: grid; }
.brand strong { font-family: Manrope, sans-serif; font-size: 16px; letter-spacing: -.03em; }
.brand small { margin-top: 1px; color: #878f8b; font-size: 8px; letter-spacing: .15em; text-transform: uppercase; }
.main-nav { display: flex; height: 100%; align-items: center; gap: 30px; }
.nav-link { position: relative; display: grid; height: 100%; place-items: center; color: #858d89; font-size: 12px; font-weight: 700; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--acid); content: ""; }
.api-status { display: flex; align-items: center; justify-self: end; gap: 9px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: rgba(255,255,255,.035); }
.api-status > span { width: 7px; height: 7px; border-radius: 50%; background: #e4a73e; box-shadow: 0 0 0 4px rgba(228,167,62,.1); }
.api-status[data-state="connected"] > span { background: #62cc82; box-shadow: 0 0 0 4px rgba(98,204,130,.1); }
.api-status[data-state="offline"] > span { background: #8e9692; box-shadow: 0 0 0 4px rgba(142,150,146,.1); }
.api-status p { display: grid; margin: 0; }
.api-status small { color: #6e7772; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.api-status strong { margin-top: 2px; font-size: 9px; }

.hero { display: flex; max-width: 1460px; align-items: end; justify-content: space-between; gap: 50px; margin: auto; padding: 66px clamp(22px, 5vw, 78px) 36px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #747b77; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.eyebrow > span { width: 22px; height: 2px; background: var(--accent); }
.eyebrow.light { color: #868e8a; }
.eyebrow.light > span { background: var(--acid); }
.hero h1, .catalogue-intro h2, .prompt-copy h2 { margin: 16px 0 0; font-family: Manrope, sans-serif; font-size: clamp(44px, 5.4vw, 76px); line-height: .98; letter-spacing: -.067em; }
.hero h1 em, .catalogue-intro h2 em, .prompt-copy h2 em { color: var(--accent); font-family: Georgia, serif; font-weight: 400; }
.hero-copy > p { max-width: 660px; margin: 20px 0 0; color: #717773; font-size: 14px; line-height: 1.65; }
.workspace-section { padding: 0 clamp(22px, 5vw, 78px) 94px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 360px; max-width: 1380px; min-height: 680px; margin: auto; overflow: hidden; border-radius: 20px; box-shadow: var(--shadow); }
.image-workspace { position: relative; min-width: 0; min-height: 680px; overflow: hidden; color: #fff; background: radial-gradient(circle at 48% 45%, #303635 0, #171b1a 53%, #111413 100%); }
.image-workspace::after { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, black, transparent 70%); pointer-events: none; content: ""; }
.image-workspace.dragging { box-shadow: inset 0 0 0 3px var(--acid); }
.workspace-topbar { position: absolute; z-index: 7; top: 22px; right: 24px; left: 24px; display: flex; align-items: center; justify-content: space-between; }
.workspace-label { display: flex; align-items: center; gap: 7px; color: #8c9490; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.workspace-label span { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 4px rgba(223,253,72,.1); }
.comparison-tabs { display: flex; padding: 3px; border: 1px solid rgba(255,255,255,.1); border-radius: 99px; background: rgba(7,9,9,.5); backdrop-filter: blur(8px); }
.comparison-tabs button { padding: 7px 11px; border: 0; border-radius: 99px; color: #858d89; background: transparent; font-size: 8px; font-weight: 800; cursor: pointer; }
.comparison-tabs button.active { color: #121514; background: #fff; }

.upload-empty { position: relative; z-index: 3; display: grid; height: 100%; min-height: 680px; padding: 88px 46px 34px; grid-template-rows: 1fr auto; }
.upload-dropzone { display: flex; min-height: 400px; align-items: center; justify-content: center; flex-direction: column; border: 1px dashed rgba(255,255,255,.22); border-radius: 17px; color: #fff; background: rgba(255,255,255,.025); cursor: pointer; transition: border .2s, background .2s, transform .2s; }
.upload-dropzone:hover { border-color: var(--acid); background: rgba(223,253,72,.035); transform: translateY(-2px); }
.upload-icon { display: grid; width: 68px; height: 68px; margin-bottom: 19px; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; color: var(--acid); background: rgba(255,255,255,.045); }
.upload-icon svg { width: 28px; }
.upload-dropzone strong { font-family: Manrope, sans-serif; font-size: 20px; letter-spacing: -.03em; }
.upload-dropzone > span:not(.upload-icon) { margin-top: 7px; color: #929a96; font-size: 11px; }
.upload-dropzone small { margin-top: 19px; color: #646c68; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.photo-requirements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.08); }
.photo-requirements p { display: grid; grid-template-columns: auto 1fr; gap: 2px 9px; margin: 0; padding: 13px; background: rgba(20,23,22,.95); }
.photo-requirements p > span { grid-row: 1 / span 2; color: var(--acid); font-size: 8px; font-weight: 800; }
.photo-requirements strong { font-size: 9px; }
.photo-requirements small { color: #737b77; font-size: 7px; }

.image-preview { position: absolute; z-index: 3; inset: 0; background: #0e1110; }
.image-preview > img { width: 100%; height: 100%; object-fit: contain; }
.preview-vignette { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.22), transparent 25%, transparent 70%, rgba(0,0,0,.55)); pointer-events: none; }
.preview-info { position: absolute; z-index: 4; bottom: 23px; left: 25px; display: flex; align-items: center; gap: 10px; }
.preview-colour { width: 27px; height: 27px; border: 4px solid rgba(255,255,255,.15); border-radius: 50%; background: var(--accent); background-clip: padding-box; }
.preview-info p { display: grid; margin: 0; }
.preview-info small { color: #8f9793; font-size: 7px; font-weight: 800; letter-spacing: .14em; }
.preview-info strong { margin-top: 3px; font-size: 10px; }
.preview-actions { position: absolute; z-index: 5; top: 71px; right: 23px; display: flex; gap: 7px; }
.replace-photo, .download-result { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; color: #d6dad8; background: rgba(9,11,10,.6); font-size: 8px; font-weight: 700; cursor: pointer; backdrop-filter: blur(8px); }
.replace-photo svg, .download-result svg { width: 14px; }

.generation-overlay { position: absolute; z-index: 12; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; background: rgba(12,15,14,.88); backdrop-filter: blur(12px); }
.ai-orbit { position: relative; display: grid; width: 94px; height: 94px; margin-bottom: 24px; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.ai-orbit::before { position: absolute; inset: 9px; border: 1px dashed rgba(223,253,72,.4); border-radius: 50%; animation: rotate 7s linear infinite; content: ""; }
.ai-orbit span { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--acid); }
.ai-orbit span:nth-child(1) { top: 8px; }
.ai-orbit span:nth-child(2) { right: 11px; bottom: 19px; }
.ai-orbit span:nth-child(3) { bottom: 19px; left: 11px; }
.ai-orbit svg { width: 29px; color: #fff; }
.generation-overlay > strong { font-family: Manrope, sans-serif; font-size: 18px; }
.generation-overlay > p { margin: 7px 0 21px; color: #929a96; font-size: 10px; }
.progress-track { width: min(340px, 65%); height: 3px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.1); }
.progress-track span { display: block; width: 0; height: 100%; background: var(--acid); transition: width 1s ease; }
@keyframes rotate { to { transform: rotate(360deg); } }

.workflow-panel { min-width: 0; color: var(--ink); background: #fff; }
.workflow-heading { display: flex; align-items: center; justify-content: space-between; padding: 25px 23px 20px; border-bottom: 1px solid #eceeeb; }
.workflow-heading > div { display: grid; }
.workflow-heading > div span { color: var(--accent); font-size: 7px; font-weight: 800; letter-spacing: .16em; }
.workflow-heading h2 { margin: 5px 0 0; font-family: Manrope, sans-serif; font-size: 20px; letter-spacing: -.04em; }
.model-pill { padding: 6px 8px; border-radius: 6px; color: #57605b; background: #eef0ec; font-size: 7px; font-weight: 800; }
.workflow-step { padding: 19px 22px; border-bottom: 1px solid #eceeeb; }
.step-heading { display: grid; grid-template-columns: 21px 1fr auto; align-items: center; gap: 8px; }
.step-heading > span { color: #b2b8b4; font-family: Manrope, sans-serif; font-size: 9px; font-weight: 800; }
.step-heading p { display: grid; margin: 0; }
.step-heading strong { font-size: 11px; }
.step-heading small { margin-top: 2px; color: #9ba19d; font-size: 8px; }
.step-heading i { display: grid; width: 17px; height: 17px; place-items: center; border: 1px solid #dfe2dd; border-radius: 50%; }
.workflow-step.completed .step-heading i { border-color: var(--acid); background: var(--acid); }
.workflow-step.completed .step-heading i::after { width: 6px; height: 3px; border-bottom: 1.5px solid #1a1e1c; border-left: 1.5px solid #1a1e1c; transform: rotate(-45deg); content: ""; }
.inline-upload { display: grid; grid-template-columns: 39px 1fr auto; width: 100%; align-items: center; gap: 9px; margin-top: 13px; padding: 9px; border: 1px solid #e1e3df; border-radius: 10px; text-align: left; background: #f8f8f5; cursor: pointer; }
.inline-upload > span { display: grid; width: 39px; height: 37px; place-items: center; border-radius: 7px; color: #747c78; background: #e8e9e5; }
.inline-upload > span svg { width: 17px; }
.inline-upload p { display: grid; min-width: 0; margin: 0; }
.inline-upload strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.inline-upload small { margin-top: 3px; color: #929995; font-size: 7px; }
.inline-upload > svg { width: 13px; color: #9ea4a0; }
.catalogue-search { display: flex; height: 40px; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid #e1e3df; border-radius: 9px; background: #f7f7f4; }
.catalogue-search svg { width: 15px; color: #8b928e; }
.catalogue-search input { width: 100%; border: 0; outline: 0; color: inherit; background: transparent; font-size: 9px; }
.compact-search { margin-top: 13px; }
.series-chips { display: flex; gap: 5px; margin: 10px 0; overflow-x: auto; scrollbar-width: none; }
.series-chips::-webkit-scrollbar { display: none; }
.series-chips button { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #e1e3df; border-radius: 99px; color: #858c88; background: #fff; font-size: 7px; font-weight: 800; cursor: pointer; }
.series-chips button.active { border-color: var(--ink); color: #fff; background: var(--ink); }
.swatch-list { display: grid; gap: 5px; min-height: 218px; }
.swatch-row { display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 9px; padding: 6px; border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.swatch-row:hover, .swatch-row.active { border-color: #dcdfda; background: #f5f5f1; }
.swatch-chip { position: relative; width: 35px; height: 35px; overflow: hidden; border: 1px solid rgba(0,0,0,.07); border-radius: 7px; background: var(--swatch); }
.swatch-chip::after { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.6), transparent 37%, rgba(0,0,0,.17)); content: ""; }
.swatch-row > span:nth-child(2) { display: grid; min-width: 0; }
.swatch-row strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.swatch-row small { margin-top: 3px; color: #949a97; font-size: 6px; }
.swatch-row > svg { width: 12px; color: #adb2af; }
.empty-message { margin: 30px 5px; color: #969c98; font-size: 8px; }
.see-all-button { display: flex; width: 100%; align-items: center; justify-content: center; gap: 5px; margin-top: 8px; padding: 9px; border: 1px solid #dfe1dc; border-radius: 8px; background: transparent; font-size: 8px; font-weight: 800; cursor: pointer; }
.see-all-button span { color: #9ca19e; font-weight: 500; }
.see-all-button svg { width: 12px; }
.generate-step { border-bottom: 0; }
.generate-button { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; margin-top: 13px; padding: 13px; border: 0; border-radius: 9px; color: #1a1e1c; background: var(--acid); font-size: 10px; font-weight: 800; cursor: pointer; box-shadow: 0 9px 24px rgba(178,203,32,.18); }
.generate-button svg { width: 17px; }
.generate-button:disabled { color: #a6aba8; background: #eceeeb; box-shadow: none; cursor: not-allowed; }
.generate-note { display: flex; gap: 7px; margin: 10px 0 0; color: #949a97; font-size: 7px; line-height: 1.45; }
.generate-note svg { width: 13px; flex: 0 0 auto; color: #7b837f; }

.catalogue-section { padding: 92px clamp(22px, 5vw, 78px) 105px; color: #fff; background: #171a19; }
.catalogue-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; max-width: 1380px; align-items: end; gap: 50px; margin: auto auto 35px; }
.catalogue-intro h2 { font-size: clamp(40px, 4.6vw, 62px); }
.catalogue-intro > a { display: flex; align-items: center; justify-self: end; gap: 12px; margin-bottom: 6px; padding: 12px 15px; border: 1px solid #4d5551; border-radius: 9px; color: #f0f2f1; background: rgba(255,255,255,.035); font-size: 13.5px; font-weight: 800; transition: border-color .2s ease, background .2s ease; }
.catalogue-intro > a:hover { border-color: #747d78; background: rgba(255,255,255,.07); }
.catalogue-intro > a svg { width: 21px; }
.catalogue-card { max-width: 1380px; margin: auto; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; background: #222625; }
.catalogue-toolbar { display: grid; grid-template-columns: minmax(260px,1fr) 230px auto; align-items: center; gap: 12px; padding: 17px; border-bottom: 1px solid rgba(255,255,255,.07); }
.catalogue-toolbar .catalogue-search { border-color: rgba(255,255,255,.09); color: #fff; background: #191c1b; }
.catalogue-toolbar input::placeholder { color: #6f7773; }
.catalogue-toolbar select { height: 40px; padding: 0 11px; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; outline: 0; color: #c3c9c6; background: #191c1b; font-size: 8px; }
.catalogue-toolbar > p { margin: 0; color: #7e8682; font-size: 8px; text-align: right; }
.catalogue-toolbar > p strong { color: #fff; }
.catalogue-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: rgba(255,255,255,.07); }
.finish-card { position: relative; min-width: 0; padding: 11px; border: 0; background: #222625; text-align: left; cursor: pointer; }
.finish-card:hover { background: #292e2c; }
.finish-card.active::before { position: absolute; z-index: 3; inset: 7px; border: 1px solid var(--acid); border-radius: 9px; pointer-events: none; content: ""; }
.finish-sample { position: relative; display: block; height: 120px; overflow: hidden; border-radius: 7px; background: var(--finish-bg); }
.finish-sample::before { position: absolute; inset: -30%; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.58) 44%, transparent 58%), radial-gradient(circle at 80% 75%, rgba(0,0,0,.3), transparent 42%); transform: rotate(-8deg); content: ""; }
.finish-sample::after { position: absolute; right: -20%; bottom: 14%; width: 85%; height: 22%; border-radius: 50%; background: rgba(255,255,255,.26); filter: blur(8px); transform: rotate(-15deg); content: ""; }
.finish-card[data-finish="Satin"] .finish-sample::before { opacity: .45; filter: blur(5px); }
.finish-card[data-finish="Colour shift"] .finish-sample { background: linear-gradient(135deg, var(--finish-bg), var(--finish-2)); }
.finish-meta { display: grid; min-height: 55px; padding: 9px 3px 1px; }
.finish-meta small { color: #7c8480; font-size: 6px; font-weight: 800; letter-spacing: .09em; }
.finish-meta strong { margin-top: 4px; color: #d6dad8; font-size: 8px; line-height: 1.3; }
.finish-meta span { margin-top: 4px; color: #777f7b; font-size: 6px; }
.series-index { border-top: 1px solid rgba(255,255,255,.07); }
.series-index summary { display: flex; align-items: center; justify-content: space-between; padding: 17px 19px; list-style: none; cursor: pointer; }
.series-index summary::-webkit-details-marker { display: none; }
.series-index summary > span { display: grid; }
.series-index summary strong { font-size: 8px; }
.series-index summary small { margin-top: 3px; color: #747b78; font-size: 7px; }
.series-index summary svg { width: 14px; color: #7b827f; transition: transform .2s; }
.series-index[open] summary svg { transform: rotate(180deg); }
.series-index-grid { display: grid; grid-template-columns: repeat(4,1fr); padding: 0 14px 17px; }
.series-index-item { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 8px; border-bottom: 1px solid rgba(255,255,255,.055); color: #868d89; font-size: 7px; }
.series-index-item span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.series-index-item span:last-child { display: grid; min-width: 23px; height: 23px; place-items: center; border-radius: 50%; color: #bac0bd; background: rgba(255,255,255,.055); }

.prompt-section { display: grid; grid-template-columns: .78fr 1.22fr; max-width: 1380px; gap: 70px; margin: auto; padding: 104px clamp(22px, 5vw, 78px); }
.prompt-copy h2 { font-size: clamp(40px, 4.5vw, 62px); }
.prompt-copy > p { max-width: 450px; margin: 20px 0 26px; color: #737a76; font-size: 11px; line-height: 1.65; }
.prompt-rules { display: grid; gap: 9px; }
.prompt-rules p { display: flex; align-items: center; gap: 11px; margin: 0; padding: 10px 12px; border: 1px solid #dedfd9; border-radius: 9px; background: #eceae4; font-size: 9px; font-weight: 600; }
.prompt-rules span { color: var(--accent); font-size: 7px; font-weight: 800; }
.prompt-card { min-width: 0; overflow: hidden; border-radius: 15px; color: #d8dcda; background: #1d211f; box-shadow: var(--shadow); }
.prompt-card-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.07); background: #252a28; }
.prompt-card-top p { display: flex; align-items: center; gap: 8px; margin: 0; }
.lock-dot { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 7px; color: var(--acid); background: rgba(223,253,72,.08); }
.lock-dot svg { width: 14px; }
.prompt-card-top strong { font-size: 8px; letter-spacing: .08em; }
.prompt-card-top small { padding: 3px 5px; border-radius: 4px; color: #7f8783; background: #171a19; font-size: 6px; }
.prompt-card-top button { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; color: #aeb4b1; background: transparent; font-size: 7px; cursor: pointer; }
.prompt-card-top button svg { width: 12px; }
.prompt-card pre { max-height: 480px; margin: 0; padding: 21px; overflow: auto; color: #adb4b0; font: 9px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.prompt-variables { display: flex; flex-wrap: wrap; gap: 6px; padding: 13px 16px; border-top: 1px solid rgba(255,255,255,.07); }
.prompt-variables span { padding: 5px 7px; border: 1px solid rgba(223,253,72,.14); border-radius: 5px; color: #aabb50; background: rgba(223,253,72,.04); font: 7px ui-monospace, monospace; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 29px clamp(22px, 5vw, 78px); color: #fff; background: #101312; }
.site-footer > p { max-width: 560px; margin: 0; color: #818985; font-size: 8px; line-height: 1.5; text-align: right; }

.result-dialog { position: relative; width: min(460px, calc(100vw - 32px)); padding: 34px; border: 0; border-radius: 17px; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.35); text-align: center; }
.result-dialog::backdrop { background: rgba(8,11,10,.72); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; top: 14px; right: 14px; display: grid; width: 31px; height: 31px; padding: 0; place-items: center; border: 1px solid #e1e3df; border-radius: 50%; background: transparent; cursor: pointer; }
.dialog-close svg { width: 14px; }
.setup-icon { display: grid; width: 58px; height: 58px; margin: auto; place-items: center; border-radius: 50%; color: #252a27; background: var(--acid); }
.setup-icon svg { width: 26px; }
.result-dialog h2 { margin: 18px 0 9px; font-family: Manrope, sans-serif; font-size: 23px; letter-spacing: -.04em; }
.result-dialog > p { margin: 0; color: #777e7a; font-size: 10px; line-height: 1.55; }
.result-dialog code { display: block; margin: 20px 0 12px; padding: 12px; border-radius: 8px; color: #d8ddd9; background: #1c201e; font: 9px/1.8 ui-monospace, monospace; text-align: left; }
.result-dialog > small { color: #9aa09d; font-size: 8px; }
.toast { position: fixed; z-index: 90; right: 24px; bottom: 24px; display: flex; min-width: 280px; align-items: center; gap: 11px; padding: 13px 15px; border-radius: 11px; color: #fff; background: #222625; box-shadow: 0 18px 45px rgba(0,0,0,.24); opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #1b1f1d; background: var(--acid); }
.toast > span svg { width: 15px; stroke-width: 2.4; }
.toast p { display: grid; margin: 0; }
.toast strong { font-size: 9px; }
.toast small { margin-top: 3px; color: #a0a7a3; font-size: 7px; }

@media (max-width: 1100px) {
  .workspace { grid-template-columns: minmax(0,1fr) 330px; }
  .catalogue-grid { grid-template-columns: repeat(4,1fr); }
  .catalogue-intro { grid-template-columns: minmax(0, 1fr) auto; }
  .series-index-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; height: 68px; }
  .main-nav { display: none; }
  .api-status p { display: none; }
  .api-status { width: 35px; height: 35px; justify-content: center; padding: 0; border-radius: 50%; }
  .hero { align-items: flex-start; flex-direction: column; padding-top: 48px; }
  .workspace { grid-template-columns: 1fr; }
  .image-workspace, .upload-empty { min-height: 610px; }
  .workflow-panel { min-height: 700px; }
  .catalogue-intro { grid-template-columns: 1fr; gap: 24px; }
  .catalogue-intro > a { justify-self: start; }
  .catalogue-toolbar { grid-template-columns: 1fr 1fr; }
  .catalogue-toolbar > p { grid-column: 1 / -1; text-align: left; }
  .catalogue-grid { grid-template-columns: repeat(3,1fr); }
  .series-index-grid { grid-template-columns: repeat(2,1fr); }
  .prompt-section { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 560px) {
  .site-header { padding: 0 16px; }
  .hero, .workspace-section, .catalogue-section, .prompt-section { padding-right: 16px; padding-left: 16px; }
  .hero h1 { font-size: 42px; }
  .workspace { border-radius: 15px; }
  .image-workspace, .upload-empty { min-height: 520px; }
  .upload-empty { padding: 77px 15px 20px; }
  .upload-dropzone { min-height: 305px; }
  .upload-icon { width: 57px; height: 57px; }
  .upload-dropzone strong { font-size: 17px; }
  .photo-requirements { display: none; }
  .preview-actions { top: 66px; right: 14px; }
  .replace-photo, .download-result { font-size: 0; }
  .replace-photo svg, .download-result svg { width: 15px; }
  .workflow-panel { min-height: 0; }
  .catalogue-toolbar { grid-template-columns: 1fr; }
  .catalogue-toolbar > p { grid-column: auto; }
  .catalogue-grid { grid-template-columns: repeat(2,1fr); }
  .finish-sample { height: 106px; }
  .series-index-grid { grid-template-columns: 1fr; }
  .prompt-card pre { max-height: 390px; font-size: 8px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer > p { text-align: left; }
  .toast { right: 13px; bottom: 13px; left: 13px; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Upload + complete catalogue + Codex CLI workflow */
.api-status { color: #fff; cursor: pointer; }
.api-status[data-state="ready"] > span { background: #62cc82; box-shadow: 0 0 0 4px rgba(98,204,130,.1); }
.api-status[data-state="missing"] > span { background: #ef7258; box-shadow: 0 0 0 4px rgba(239,114,88,.1); }

.type-select { width: 100%; height: 39px; margin-top: 13px; padding: 0 31px 0 10px; border: 1px solid #e1e3df; border-radius: 9px; outline: 0; color: #343936; background: #f7f7f4; font-size: 8px; font-weight: 700; cursor: pointer; }
.photo-swatches { max-height: 262px; min-height: 212px; margin-top: 9px; overflow: auto; scrollbar-color: #d8dbd6 transparent; scrollbar-width: thin; }
.photo-chip { background: #e7e8e4; }
.photo-chip img { width: 100%; height: 100%; object-fit: cover; }
.photo-chip::after { background: linear-gradient(120deg, rgba(255,255,255,.28), transparent 45%); }
.preview-colour { display: grid; overflow: hidden; place-items: center; background: #323735; }
.preview-colour img { width: 100%; height: 100%; object-fit: cover; }

.complete-toolbar { grid-template-columns: minmax(260px, 1fr) auto auto; }
.complete-toolbar > p { min-width: 108px; }
.sync-button { display: flex; height: 40px; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid rgba(223,253,72,.2); border-radius: 9px; color: #dffd48; background: rgba(223,253,72,.045); font-size: 8px; font-weight: 800; cursor: pointer; }
.sync-button svg { width: 14px; }
.sync-button:hover { background: rgba(223,253,72,.09); }
.sync-button:disabled { opacity: .55; cursor: wait; }
.sync-button.loading svg { animation: rotate 1.2s linear infinite; }
.catalogue-meta { display: flex; align-items: center; gap: 18px; padding: 11px 17px; border-bottom: 1px solid rgba(255,255,255,.07); color: #747c78; background: #1d211f; font-size: 7px; }
.catalogue-meta span:first-child { margin-right: auto; }
.catalogue-meta strong { color: #cdd2cf; }

.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.07); }
.type-card { min-width: 0; padding: 12px; border: 0; color: #fff; background: #222625; text-align: left; cursor: pointer; }
.type-card:hover { background: #292e2c; }
.type-preview { display: grid; height: 112px; overflow: hidden; grid-template-columns: repeat(5, 1fr); border-radius: 8px; background: #151817; }
.type-preview img { width: 100%; height: 100%; object-fit: cover; }
.type-preview img:only-child { grid-column: 1 / -1; }
.type-card-copy { display: grid; min-height: 78px; padding: 12px 4px 3px; }
.type-card-copy small { color: #717975; font-size: 6px; font-weight: 800; letter-spacing: .13em; }
.type-card-copy strong { margin-top: 5px; color: #e1e4e2; font-family: Manrope, sans-serif; font-size: 10px; line-height: 1.25; }
.type-card-copy > span { display: flex; align-items: center; gap: 5px; margin-top: 8px; color: #8b938f; font-size: 7px; }
.type-card-copy svg { width: 11px; }

.type-detail-heading { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 22px; padding: 20px; border-bottom: 1px solid rgba(255,255,255,.07); background: #1d211f; }
.type-detail-heading > button { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #b9bfbc; background: transparent; font-size: 8px; cursor: pointer; }
.type-detail-heading > button svg { width: 13px; }
.type-detail-heading > div { display: grid; }
.type-detail-heading small { color: var(--acid); font-size: 6px; font-weight: 800; letter-spacing: .14em; }
.type-detail-heading h3 { margin: 4px 0 0; font-family: Manrope, sans-serif; font-size: 20px; letter-spacing: -.04em; }
.type-detail-heading p { margin: 4px 0 0; color: #7e8682; font-size: 8px; }
.type-detail-heading > a { display: flex; align-items: center; gap: 6px; padding-bottom: 5px; border-bottom: 1px solid #4c5450; color: #aeb5b1; font-size: 8px; font-weight: 700; }
.type-detail-heading > a svg { width: 12px; }
.colour-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(255,255,255,.07); }
.colour-card { position: relative; min-width: 0; padding: 10px; border: 0; color: #fff; background: #222625; text-align: left; cursor: pointer; }
.colour-card:hover { background: #292e2c; }
.colour-card.active::before { position: absolute; z-index: 3; inset: 6px; border: 1px solid var(--acid); border-radius: 9px; pointer-events: none; content: ""; }
.colour-photo { display: grid; height: 180px; overflow: hidden; place-items: center; border-radius: 7px; color: #646c68; background: #151817; font-size: 7px; }
.colour-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.colour-card:hover .colour-photo img { transform: scale(1.025); }
.colour-copy { display: grid; min-height: 75px; padding: 10px 4px 3px; }
.colour-copy small { overflow: hidden; color: #717975; font-size: 6px; font-weight: 800; letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
.colour-copy strong { margin-top: 5px; color: #f1f3f2; font-family: Manrope, sans-serif; font-size: 11px; }
.colour-copy span { margin-top: 4px; color: #909894; font-size: 7px; line-height: 1.35; }
.catalogue-empty { grid-column: 1 / -1; margin: 0; padding: 50px 20px; color: #7b837f; background: #222625; font-size: 9px; text-align: center; }

@media (max-width: 1100px) {
  .type-grid { grid-template-columns: repeat(3, 1fr); }
  .colour-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 820px) {
  .complete-toolbar { grid-template-columns: 1fr auto; }
  .complete-toolbar .catalogue-search { grid-column: 1 / -1; }
  .complete-toolbar > p { grid-column: auto; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .colour-grid { grid-template-columns: repeat(3, 1fr); }
  .type-detail-heading { grid-template-columns: auto 1fr; }
  .type-detail-heading > a { display: none; }
}

@media (max-width: 560px) {
  .complete-toolbar { grid-template-columns: 1fr; }
  .complete-toolbar .catalogue-search { grid-column: auto; }
  .complete-toolbar > p { display: none; }
  .sync-button { justify-content: center; }
  .catalogue-meta { flex-wrap: wrap; gap: 8px 14px; }
  .catalogue-meta span:first-child { width: 100%; margin-right: 0; }
  .type-grid { grid-template-columns: 1fr; }
  .type-preview { height: 132px; }
  .colour-grid { grid-template-columns: repeat(2, 1fr); }
  .colour-photo { height: 145px; }
  .type-detail-heading { grid-template-columns: 1fr; gap: 13px; }
  .type-detail-heading > button { width: max-content; }
  .generation-overlay { padding: 22px; text-align: center; }
}

/* Full black interface */
body { color: #f4f4f2; background: #000; }
.site-header { background: rgba(0,0,0,.96); border-bottom-color: #202020; }
.hero { color: #f7f7f5; }
.eyebrow, .eyebrow.light { color: #8e9692; }
.hero-copy > p { color: #9da39f; }
.workspace { border: 1px solid #202020; background: #000; box-shadow: 0 26px 80px rgba(0,0,0,.7); }
.image-workspace { background: radial-gradient(circle at 48% 45%, #1d211f 0, #090b0a 55%, #000 100%); }
.workflow-panel { color: #f2f3f1; background: #000; }
.workflow-heading, .workflow-step { border-bottom-color: #222; }
.model-pill { color: #b1b7b3; background: #151716; }
.step-heading > span { color: #666d69; }
.step-heading small, .inline-upload small, .swatch-row small, .generate-note { color: #858c88; }
.step-heading i { border-color: #3a3e3b; background: #050505; }
.inline-upload, .catalogue-search, .type-select { border-color: #292d2b; color: #e8eae8; background: #0b0d0c; }
.inline-upload > span { color: #a0a6a2; background: #171a18; }
.inline-upload > svg, .catalogue-search svg, .swatch-row > svg { color: #737a76; }
.catalogue-search input::placeholder { color: #666d69; }
.type-select option { color: #e8eae8; background: #080908; }
.series-chips button { border-color: #292d2b; color: #9ca29e; background: #080908; }
.series-chips button.active { border-color: #565e59; color: #fff; background: #202321; }
.swatch-row:hover, .swatch-row.active { border-color: #343936; background: #121513; }
.swatch-chip { border-color: rgba(255,255,255,.12); }
.see-all-button { border-color: #303532; color: #e4e7e5; background: #080a09; }
.see-all-button:hover { border-color: #535b56; background: #111411; }
.generate-button:disabled { color: #626864; background: #171a18; }
.catalogue-section { background: #000; border-top: 1px solid #1d1f1e; }
.catalogue-card { border-color: #242725; background: #070807; }
.catalogue-toolbar { border-bottom-color: #202321; background: #050605; }
.catalogue-toolbar .catalogue-search, .catalogue-toolbar select { border-color: #292d2b; background: #0b0d0c; }
.catalogue-meta, .type-detail-heading { background: #050605; }
.type-grid, .colour-grid, .catalogue-grid { background: #222522; }
.type-card, .colour-card, .finish-card, .catalogue-empty { background: #080908; }
.type-card:hover, .colour-card:hover, .finish-card:hover { background: #111411; }
.type-preview, .colour-photo { background: #020302; }
.site-footer { background: #000; border-top: 1px solid #202020; }
.result-dialog { color: #f3f4f2; background: #080a09; border: 1px solid #292d2b; }
.dialog-close { border-color: #353a37; color: #d7dbd8; }
.result-dialog > p { color: #969d99; }
.toast { border: 1px solid #303431; background: #090b0a; }
.comparison-tabs button.active { color: #fff; background: #242825; }
.customer-share { width: min(390px, 100%); align-self: flex-start; padding: 14px; border: 1px solid #292d2b; border-radius: 13px; background: #080a09; box-shadow: 0 20px 55px rgba(0,0,0,.35); }
.customer-share-heading { display: flex; align-items: center; gap: 10px; }
.customer-share-heading > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--acid); background: rgba(223,253,72,.07); }
.customer-share-heading svg { width: 17px; }
.customer-share-heading p { display: grid; margin: 0; }
.customer-share-heading small { color: #747c78; font-size: 7px; font-weight: 800; letter-spacing: .14em; }
.customer-share-heading strong { margin-top: 3px; color: #f3f5f3; font: 700 12px Manrope, sans-serif; }
.customer-share-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-top: 12px; }
.customer-share-action > a { min-width: 0; overflow: hidden; padding: 10px 11px; border: 1px solid #242825; border-radius: 8px; color: #aeb5b1; background: #030403; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.customer-share-action > a:hover { border-color: #4b524e; color: #fff; }
.customer-share-action > button { display: flex; align-items: center; gap: 6px; padding: 0 11px; border: 1px solid rgba(223,253,72,.28); border-radius: 8px; color: #dffd48; background: rgba(223,253,72,.06); font-size: 8px; font-weight: 800; cursor: pointer; }
.customer-share-action > button:hover { background: rgba(223,253,72,.12); }
.customer-share-action > button svg { width: 13px; }

@media (max-width: 820px) {
  .customer-share { width: 100%; }
}
