/* front/assets/create/create.css (CREATE_V2_1130): Splash N Color Custom 3D Studio.
 * Matches Splash N Color's warm cream/blush/ink/gold editorial system, >=44px touch targets, 0px overflow 320px-1440px. */
.cr-page {
  --cr-ink: #231f20;
  --cr-muted: #5a5256;
  --cr-ground: #faf7f5;
  --cr-blush: #f3e0ed;
  --cr-gold: #e89923;
  --cr-gold-hover: #d88915;
  --cr-line: rgba(35, 31, 32, 0.14);
  color: var(--cr-ink);
  font-family: "Figtree", system-ui, -apple-system, sans-serif;
}
.cr-page [hidden] { display: none !important; }
.cr-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cr-wrap {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.cr-hero {
  padding: clamp(20px, 3.5vw, 42px) 0 clamp(24px, 4vw, 40px);
  background: linear-gradient(180deg, #fff 0%, var(--cr-ground) 100%);
  border-bottom: 1px solid var(--cr-line);
}
.cr-top-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 10px 16px; margin-bottom: 12px;
}
.cr-crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--cr-muted); margin: 0;
}
.cr-credits-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13.5px;
}
.cr-credit-pill, .cr-rebate-pill {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 36px; padding: 0 12px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--cr-line); font-weight: 700;
}
.cr-rebate-pill { background: #ecf7ef; border-color: #2f855a; color: #1b5e3a; }
.cr-credit-note { color: var(--cr-muted); font-weight: 650; }
.cr-signin-pill, .cr-pack-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--cr-ink); background: #fff9eb; color: var(--cr-ink);
  font: inherit; font-size: 13.5px; font-weight: 800; text-decoration: none; cursor: pointer;
}
.cr-signin-pill:hover, .cr-pack-btn:hover { background: var(--cr-gold); }
.cr-banner.-ok {
  margin: 0 0 14px; padding: 12px 16px; border-radius: 12px;
  background: #ecf7ef; border: 1.5px solid #2f855a; color: #1b5e3a; font-weight: 750;
}
.cr-gate-box {
  margin: 14px 0 0; padding: 16px 18px; border-radius: 16px; max-width: 760px;
  background: #fff9eb; border: 2px solid var(--cr-ink);
}
.cr-gate-msg { margin: 0 0 12px; font-size: 15.5px; font-weight: 750; line-height: 1.45; }
.cr-gate-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cr-gate-acts a { text-decoration: none; }

/* Stage 1 Concept Gallery */
.cr-concepts { padding: 28px 0 36px; background: var(--cr-ground); border-bottom: 1px solid var(--cr-line); }
.cr-concepts-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.cr-concepts-sub { margin: 6px 0 0; color: var(--cr-muted); max-width: 62ch; font-size: 15px; line-height: 1.45; }
.cr-concept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.cr-concept-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 2px solid var(--cr-ink); border-radius: 18px; background: #fff;
  box-shadow: 0 4px 14px rgba(35, 31, 32, 0.06);
}
.cr-concept-img { aspect-ratio: 1; background: #f6f2ef; overflow: hidden; }
.cr-concept-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cr-concept-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cr-concept-body strong { font-size: 16px; font-weight: 850; }
.cr-concept-body p { margin: 0 0 8px; font-size: 13.5px; color: var(--cr-muted); line-height: 1.4; flex: 1; }
.cr-build-concept { width: 100%; min-height: 46px; font-size: 14.5px; }

/* Conversational refinement bar & contextual AI nudge */
.cr-refine-bar {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px;
}
.cr-refine-bar input {
  flex: 1 1 260px; min-height: 48px; padding: 0 14px;
  border: 1.5px solid var(--cr-ink); border-radius: 14px; background: #fff;
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--cr-ink);
}
.cr-ai-nudge {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
  margin-bottom: 14px; padding: 12px 16px; border-radius: 14px;
  background: #fff9eb; border: 1.5px solid var(--cr-gold); font-size: 14px;
}
.cr-ai-nudge p { margin: 0; font-weight: 650; flex: 1 1 260px; line-height: 1.4; }
.cr-ai-nudge-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cr-size-chip {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--cr-line);
  font-size: 13px; font-weight: 800; color: var(--cr-ink); backdrop-filter: blur(4px);
  pointer-events: none;
}
.cr-canvas { transition: transform 0.08s ease-out, opacity 0.15s ease; }
.cr-canvas[data-loading="1"] { opacity: 0.45; cursor: progress; }
.cr-live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 750;
  background: #ecf7ef; color: #1b5e3a;
}
.cr-live-pill[data-state="busy"] { background: #fff4dd; color: #7a4b00; }
.cr-live-pill[data-state="error"] { background: #fff3f3; color: #7f1d1d; }
.cr-crumbs a { color: var(--cr-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.cr-eyebrow {
  margin: 0 0 6px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #7a4b00;
}
.cr-title {
  margin: 0;
  font-size: clamp(30px, 4.8vw, 52px);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1.06;
  max-width: 18ch;
}
.cr-sub {
  margin: 12px 0 22px;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.5; color: var(--cr-muted); max-width: 60ch;
}

/* Mode tabs */
.cr-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 8px;
  padding: 5px; border-radius: 16px;
  background: #efe8eb; margin-bottom: 16px;
}
.cr-tab {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 12px; background: transparent;
  color: var(--cr-ink); font: inherit; font-size: 15px; font-weight: 750;
  cursor: pointer; transition: background 0.15s, box-shadow 0.15s;
}
.cr-tab svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cr-tab[aria-selected="true"] {
  background: #fff; box-shadow: 0 2px 8px rgba(35, 31, 32, 0.1);
}

/* Prompt form */
.cr-prompt-form {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch;
  max-width: 860px;
}
.cr-prompt-field {
  flex: 1 1 320px;
  display: flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 4px 16px;
  background: #fff; border: 2px solid var(--cr-ink); border-radius: 16px;
  box-shadow: 0 4px 16px rgba(35, 31, 32, 0.06);
}
.cr-lead { font-weight: 850; font-size: 16px; white-space: nowrap; color: var(--cr-muted); }
.cr-prompt-field input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 17px; font-weight: 600; color: var(--cr-ink); min-height: 44px;
}
.cr-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border: 2px solid var(--cr-ink); border-radius: 16px;
  background: var(--cr-gold); color: var(--cr-ink);
  font: inherit; font-size: 16px; font-weight: 850; cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}
.cr-go:hover:not(:disabled) { background: var(--cr-gold-hover); }
.cr-go:disabled { opacity: 0.6; cursor: wait; }
.cr-go svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }

.cr-ideas {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 14px; max-width: 920px;
}
.cr-ideas-label { font-size: 14px; font-weight: 700; color: var(--cr-muted); margin-right: 4px; }
.cr-idea {
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--cr-line); border-radius: 999px;
  background: #fff; color: var(--cr-ink);
  font: inherit; font-size: 14px; font-weight: 650; cursor: pointer;
}
.cr-idea:hover { border-color: var(--cr-ink); background: var(--cr-blush); }

/* Photo dropzone */
.cr-dropzone {
  max-width: 860px;
  padding: clamp(22px, 4vw, 36px) clamp(16px, 3vw, 28px);
  border: 2px dashed var(--cr-ink); border-radius: 22px;
  background: #fff; text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.cr-dropzone.is-over { background: var(--cr-blush); border-style: solid; }
.cr-drop-icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; background: var(--cr-blush); margin-bottom: 12px;
}
.cr-drop-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--cr-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cr-drop-title { margin: 0; font-size: clamp(19px, 2.5vw, 24px); font-weight: 850; letter-spacing: -0.02em; }
.cr-drop-sub { margin: 8px auto 18px; max-width: 52ch; font-size: 15px; line-height: 1.5; color: var(--cr-muted); }
.cr-drop-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.cr-quiet {
  min-height: 48px; padding: 0 18px;
  border: 1.5px solid var(--cr-ink); border-radius: 14px;
  background: #fff; color: var(--cr-ink);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.cr-quiet:hover { background: var(--cr-blush); }
.cr-drop-fine { margin: 14px 0 0; font-size: 13px; color: var(--cr-muted); }
.cr-fit-guard {
  margin: 14px 0 0; max-width: 780px; padding: 10px 14px;
  border-radius: 12px; background: #fff; border: 1px solid var(--cr-line);
  font-size: 13.5px; line-height: 1.5; color: var(--cr-muted);
}
.cr-fit-guard a { color: var(--cr-ink); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.cr-hero-catalog {
  margin: 14px 0 0; max-width: 780px; padding: 14px 16px;
  border-radius: 16px; background: #fff; border: 1.5px solid #2f7a4d55;
  box-shadow: 0 4px 16px rgba(35, 31, 32, 0.05);
}
.cr-hero-catalog-sub { margin: 4px 0 10px; font-size: 13px; color: var(--cr-muted); }
.cr-banner.-share { background: #fbf4e6; border: 1.5px solid #e89923; color: var(--cr-ink); }
.cr-banner.-share a { color: var(--cr-ink); font-weight: 800; text-decoration: underline; }
.cr-share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.cr-share-btn {
  min-height: 44px; padding: 0 16px; border: 1.5px solid var(--cr-line); border-radius: 12px;
  background: #fff; color: var(--cr-ink); font: inherit; font-size: 14px; font-weight: 750; cursor: pointer;
}
.cr-share-btn:hover { border-color: var(--cr-ink); background: var(--cr-blush); }
.cr-share-msg { font-size: 13px; color: var(--cr-muted); font-weight: 650; }
.cr-share-msg:empty { display: none; }

.cr-status {
  margin: 14px 0 0; padding: 12px 16px; border-radius: 12px;
  background: #fff3f3; border: 1.5px solid #c62828; color: #7f1d1d;
  font-weight: 700; max-width: 780px;
}

/* Loading state */
.cr-busy { padding: 36px 0; }
.cr-busy-card {
  display: flex; align-items: center; gap: 18px;
  padding: 24px; border-radius: 20px; background: #fff;
  border: 1.5px solid var(--cr-line); box-shadow: 0 8px 30px rgba(35, 31, 32, 0.06);
  max-width: 680px;
}
.cr-spinner {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 4px solid var(--cr-blush); border-top-color: var(--cr-gold);
  animation: cr-spin 0.8s linear infinite;
}
@keyframes cr-spin { to { transform: rotate(360deg); } }
.cr-busy-title { margin: 0; font-size: 20px; font-weight: 850; }
.cr-busy-sub { margin: 4px 0 0; color: var(--cr-muted); font-size: 15px; }

/* 3D Workbench */
.cr-workbench { padding: clamp(22px, 3.5vw, 38px) 0 48px; }
.cr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.cr-stage-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px;
  margin-bottom: 14px;
}
.cr-job-title { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.cr-job-title:focus { outline: none; }
.cr-badge.-beta {
  background: #fff6e6;
  border: 1.5px dashed #d97706;
  color: #92400e;
}
.cr-ruler-box {
  margin: 0 0 12px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1.5px solid #e5b869;
  background: #fffbeb;
}
.cr-ruler-head {
  display: block;
  font-size: 13px;
  font-weight: 850;
  color: #78350f;
  margin-bottom: 7px;
}
.cr-ruler-dims {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}
.cr-ruler-chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #e5c285;
  font-size: 12px;
  font-weight: 760;
  color: #231f20;
}
.cr-ruler-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #785111;
}
.cr-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: #e6f6ea; border: 1px solid #2b8a3e44; color: #165b26;
  font-size: 13px; font-weight: 800;
}

.cr-stage-col, .cr-buy-col { min-width: 0; }
.cr-viewer-shell {
  position: relative;
  width: 100%; max-width: 100%; min-width: 0;
  border-radius: 22px; overflow: hidden;
  border: 1.5px solid var(--cr-line);
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #f3edf0 100%);
  aspect-ratio: 4 / 3;
  min-height: 240px;
}
.cr-canvas { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.cr-canvas:active { cursor: grabbing; }
.cr-fallback-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cr-viewer-chip {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--cr-line);
  font-size: 13px; font-weight: 750; pointer-events: none;
}
.cr-viewer-chip i { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.25); background: #488ce4; }
.cr-viewer-bar {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  pointer-events: none;
}
.cr-viewer-hint {
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.88); font-size: 12px; font-weight: 700; color: var(--cr-muted);
}
.cr-viewer-btns { display: flex; gap: 6px; pointer-events: auto; }
.cr-vbtn {
  min-height: 36px; padding: 0 12px;
  border: 1px solid var(--cr-line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.94); color: var(--cr-ink);
  font: inherit; font-size: 13px; font-weight: 750; cursor: pointer;
}
.cr-vbtn[aria-pressed="true"] { background: var(--cr-ink); color: #fff; border-color: var(--cr-ink); }

/* Variations switcher */
.cr-variants-wrap { margin-top: 18px; }
.cr-sec-label { margin: 0 0 10px; font-size: 14px; font-weight: 800; color: var(--cr-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.cr-variants {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px;
}
.cr-var-btn {
  display: flex; flex-direction: column; text-align: left;
  padding: 10px; border-radius: 16px;
  border: 2px solid var(--cr-line); background: #fff; color: var(--cr-ink);
  font: inherit; cursor: pointer; transition: border-color 0.15s, transform 0.1s;
}
.cr-var-btn:hover { border-color: rgba(35, 31, 32, 0.45); }
.cr-var-btn[aria-pressed="true"] { border-color: var(--cr-ink); background: #fffaf2; box-shadow: 0 4px 14px rgba(35, 31, 32, 0.08); }
.cr-var-btn img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: #f7f3f5; margin-bottom: 8px; }
.cr-var-btn strong { font-size: 14px; font-weight: 850; line-height: 1.2; }
.cr-var-btn small { margin-top: 3px; font-size: 12px; line-height: 1.35; color: var(--cr-muted); }

/* Checks & Specs */
.cr-checks-card {
  margin-top: 18px; padding: 18px; border-radius: 18px;
  background: var(--cr-ground); border: 1px solid var(--cr-line);
}
.cr-checks-card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 850; }
.cr-specs {
  margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px;
}
.cr-specs dt { font-size: 12px; font-weight: 700; color: var(--cr-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.cr-specs dd { margin: 2px 0 0; font-size: 15px; font-weight: 800; }
.cr-check-note { margin: 12px 0 0; font-size: 13px; color: var(--cr-muted); line-height: 1.45; }

/* Right Buy Card */
.cr-buy-card {
  position: sticky; top: 18px;
  padding: clamp(18px, 2.5vw, 26px);
  border-radius: 22px; background: #fff;
  border: 1.5px solid var(--cr-line);
  box-shadow: 0 12px 36px rgba(35, 31, 32, 0.06);
}
.cr-sliders-wrap { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--cr-line); }
.cr-sliders-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.cr-sliders-head h3 { margin: 0; font-size: 16px; font-weight: 850; }
.cr-update-btn {
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--cr-ink); background: var(--cr-blush); color: var(--cr-ink);
  font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
}
.cr-sliders { display: grid; gap: 12px; }
.cr-slider-row { display: grid; gap: 4px; }
.cr-slider-top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.cr-slider-val { font-weight: 850; color: var(--cr-ink); }
.cr-slider-row input[type="range"] { width: 100%; accent-color: var(--cr-ink); height: 28px; cursor: pointer; }
.cr-slider-row input[type="text"] {
  width: 100%; box-sizing: border-box; min-height: 44px; padding: 0 12px;
  border: 1.5px solid var(--cr-ink); border-radius: 12px; font: inherit; font-size: 15px; font-weight: 700;
}

.cr-field { border: 0; margin: 0 0 16px; padding: 0; }
.cr-field legend, .cr-label { display: block; font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.cr-picked { font-weight: 600; color: var(--cr-muted); }

/* 44x44 Color Swatches */
.cr-swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.cr-swatch {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer; padding: 0;
}
.cr-swatch i {
  display: block; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid rgba(35, 31, 32, 0.25); transition: transform 0.12s, box-shadow 0.12s;
}
.cr-swatch[aria-pressed="true"] i {
  transform: scale(1.08);
  box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--cr-ink);
}

.cr-row2 { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; margin-bottom: 16px; }
.cr-pills { display: flex; gap: 6px; }
.cr-pill {
  flex: 1; min-height: 44px; padding: 0 12px;
  border: 1.5px solid var(--cr-line); border-radius: 12px;
  background: #fff; color: var(--cr-ink); font: inherit; font-size: 14px; font-weight: 750; cursor: pointer;
}
.cr-pill[aria-pressed="true"] { border-color: var(--cr-ink); background: var(--cr-blush); }

.cr-qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--cr-ink); border-radius: 12px; overflow: hidden;
}
.cr-qty button {
  width: 44px; height: 44px; border: 0; background: #fff; color: var(--cr-ink);
  font: inherit; font-size: 20px; font-weight: 700; cursor: pointer;
}
.cr-qty input {
  width: 44px; height: 44px; border: 0; text-align: center;
  font: inherit; font-size: 16px; font-weight: 800; color: var(--cr-ink);
}

.cr-price-box { padding: 14px 16px; border-radius: 16px; background: var(--cr-ground); margin-bottom: 14px; }
.cr-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cr-price { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; }
.cr-price-note { font-size: 13px; font-weight: 700; color: var(--cr-muted); }
.cr-ship-line { margin: 6px 0 0; font-size: 13px; color: var(--cr-muted); line-height: 1.4; }

.cr-add {
  width: 100%; min-height: 52px; border: 2px solid var(--cr-ink); border-radius: 16px;
  background: var(--cr-gold); color: var(--cr-ink);
  font: inherit; font-size: 17px; font-weight: 900; cursor: pointer;
}
.cr-add:hover:not(:disabled) { background: var(--cr-gold-hover); }
.cr-add:disabled { opacity: 0.6; cursor: wait; }

.cr-added {
  margin: 12px 0 0; padding: 10px 14px; border-radius: 12px;
  background: #e6f6ea; color: #165b26; font-size: 14px; font-weight: 750;
}
.cr-added a { color: inherit; font-weight: 900; text-decoration: underline; }
.cr-error { margin: 10px 0 0; color: #991b1b; font-size: 14px; font-weight: 750; }

.cr-promises {
  margin: 16px 0 0; padding: 14px 0 0 18px;
  border-top: 1px solid var(--cr-line);
  font-size: 13px; line-height: 1.5; color: var(--cr-muted);
  display: grid; gap: 6px;
}

/* ERGO_DEVICE_CAD_1201: Verified Device Spec Fit Card & Proven Catalog Matches */
.cr-concepts-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-fit-card {
  margin-bottom: 12px; padding: 12px 16px; border-radius: 14px;
  background: #edf7f1; border: 1.5px solid #2f855a; color: #16442b;
}
.cr-fit-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 14.5px; }
.cr-fit-pill {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
  background: #1b5e3a; color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
}
.cr-fit-dims { margin: 0 0 3px; font-size: 13.5px; font-weight: 700; }
.cr-fit-note { margin: 0; font-size: 12.5px; color: #245a3d; line-height: 1.4; }

.cr-catalog-box {
  margin-bottom: 14px; padding: 12px 14px; border-radius: 14px;
  background: #fff; border: 1.5px solid var(--cr-line);
}
.cr-catalog-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-bottom: 10px; font-size: 13.5px;
}
.cr-catalog-head a { color: var(--cr-ink); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.cr-catalog-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.cr-cat-item {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px;
  background: var(--cr-ground); border: 1px solid var(--cr-line); color: var(--cr-ink); text-decoration: none;
}
.cr-cat-item:hover { border-color: var(--cr-ink); background: #fff9eb; }
.cr-cat-item img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex: 0 0 46px; background: #eee; }
.cr-cat-item span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cr-cat-item strong { font-size: 13px; font-weight: 800; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-cat-item small { font-size: 11.5px; color: var(--cr-muted); font-weight: 650; }

/* Bottom explanation band */
.cr-how { padding: 38px 0 54px; background: var(--cr-ground); border-top: 1px solid var(--cr-line); }
.cr-how h2 { margin: 0 0 18px; font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: -0.03em; }
.cr-how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cr-how-item { padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--cr-line); }
.cr-how-item h3 { margin: 0 0 6px; font-size: 17px; font-weight: 850; }
.cr-how-item p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--cr-muted); }

@media (max-width: 900px) {
  .cr-grid { grid-template-columns: minmax(0, 1fr); }
  .cr-buy-card { position: static; }
  .cr-how-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .cr-row2 { grid-template-columns: minmax(0, 1fr); }
  .cr-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 6px; }
  .cr-tab { justify-content: center; padding: 0 10px; font-size: 13.5px; text-align: center; }
  .cr-prompt-form { flex-direction: column; }
  .cr-prompt-field { flex: 0 0 auto; width: 100%; }
  .cr-go { width: 100%; }
  .cr-variants { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
