/* ==========================================================
   Colour Palette Studio — page-specific styles
   Builds on tokens from base.css (colour, radius, shadow, fonts).
   Single-viewport "studio" shell: three working columns instead
   of stacked marketing sections, in the site's existing light
   theme — no new visual language invented.
   ========================================================== */

.cp-btn-primary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  border: 0;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 1px 0 var(--red-dark), 0 4px 10px -4px rgba(230, 30, 40, 0.4);
}

.cp-btn-primary:hover { background: var(--red-dark); }
.cp-btn-primary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.cp-btn-block { width: 100%; text-align: center; }

/* ---- Hero: benefit pills + colour-code card deck ---- */
.cp-hero-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.375rem; }

.cp-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0.4rem 0.75rem 0.4rem 0.6rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}
.cp-hero-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pill-color, var(--red));
  flex-shrink: 0;
}

.cp-hero-deck {
  position: relative;
  height: 280px;
  max-width: 380px;
  margin: 0 auto;
}
.cp-hero-deck::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(230, 30, 40, 0.1) 0%, rgba(125, 65, 150, 0.06) 45%, transparent 72%);
  pointer-events: none;
}

.cp-hero-card {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 232px;
  padding: 0.875rem 1.125rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: cpHeroFloat 6s ease-in-out infinite;
}

.cp-hero-card-1 { transform: translate(-50%, -50%) translate(-56px, -50px) rotate(-9deg); z-index: 1; opacity: 0.92; animation-delay: -1.2s; }
.cp-hero-card-2 { transform: translate(-50%, -50%) translate(32px, -6px) rotate(6deg); z-index: 2; animation-delay: -3.4s; }
.cp-hero-card-3 {
  transform: translate(-50%, -50%) translate(-14px, 56px) rotate(-3deg);
  z-index: 3;
  box-shadow: 0 24px 48px -16px rgba(15, 23, 41, 0.28), var(--shadow-lg);
  animation-delay: 0s;
}

@keyframes cpHeroFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}

.cp-hero-swatch {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.4), 0 2px 6px -2px rgba(15, 23, 41, 0.3);
}

.cp-hero-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cp-hero-hex { font-family: var(--font-mono); font-weight: 700; font-size: 0.9375rem; color: var(--navy); }
.cp-hero-dest { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }

.cp-hero-copied {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--green);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 100px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 880px) {
  .cp-hero-deck { margin: 8px auto 0; }
}

@media (max-width: 540px) {
  .cp-hero-deck { height: 220px; max-width: 300px; }
  .cp-hero-card { width: 196px; padding: 0.75rem 0.875rem; gap: 0.625rem; }
  .cp-hero-swatch { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .cp-hero-card { animation: none; }
}

/* ---- Section shell: widen and de-pad so the tool reads as the page's
   main content, not a card floating inside a standard prose section ---- */
.cp-studio-sec { padding: 8px 24px 64px; }

.cp-studio-container {
  max-width: 1600px;
  margin-top: 0.5rem;
  --live-hue: var(--red);
}

@media (max-width: 720px) {
  .cp-studio-sec { padding: 8px 20px 64px; }
}

.cp-pane-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin: 0;
  display: block;
}

/* ---- Mode bar: full-width, first thing in the shell ---- */
.cp-mode-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.125rem 1.75rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.cp-mode-bar-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.cp-mode-toggle {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  gap: 3px;
}

.cp-mode-btn {
  appearance: none;
  border: 1.5px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate);
  padding: 0.625rem 1.375rem;
  min-height: 40px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out), transform 100ms var(--ease-out), border-color 180ms var(--ease-out);
}

.cp-mode-btn:active { transform: scale(0.97); }
.cp-mode-btn.is-active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 1px 0 var(--red-dark), 0 4px 10px -4px rgba(230, 30, 40, 0.4);
}
.cp-mode-btn:not(.is-active):hover { color: var(--navy); background: var(--bg); }

/* AI option keeps a gradient identity even before it's selected, so it
   doesn't read as just another grey pill next to Arup / Custom. */
.cp-mode-btn-ai:not(.is-active) {
  background: linear-gradient(var(--bg-alt), var(--bg-alt)) padding-box,
    linear-gradient(90deg, var(--red), #7d4196 60%, #1e9bd7) border-box;
  color: var(--navy);
}
.cp-mode-btn-ai:not(.is-active):hover {
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(90deg, var(--red), #7d4196 60%, #1e9bd7) border-box;
}
.cp-mode-btn-ai.is-active {
  background: linear-gradient(90deg, var(--red), #7d4196 60%, #1e9bd7);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(125, 65, 150, 0.4);
}

/* ---- Shell: three working columns ---- */
.cp-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 360px) 1fr minmax(320px, 380px);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-lg);
}

/* Live colour-reactive accent — the shell's own top edge follows
   whatever base colour is currently active, tying the chrome to the
   thing the tool is actually about. */
.cp-shell::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--live-hue, var(--red)), #7d4196, #1e9bd7);
  z-index: 2;
  transition: background 400ms var(--ease-out);
}

.cp-rail { background: var(--bg); padding: 1.5rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.cp-rail-left, .cp-rail-right { overflow-y: auto; }
.cp-rail-centre { background: var(--bg-alt); }
.cp-pane-title { margin-bottom: 0.25rem; }

.cp-rail-panel { display: flex; flex-direction: column; gap: 1rem; }
.cp-rail-panel[hidden] { display: none; }
.cp-rail-section { display: flex; flex-direction: column; gap: 0.5rem; }
.cp-rail-section[hidden] { display: none; }

.cp-rail-divider { height: 1px; background: var(--border); margin: -0.375rem 0; }

.cp-rail-hint { color: var(--muted); font-size: 0.875rem; margin: 0; line-height: 1.5; }

.cp-field-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0;
  display: block;
}

.cp-arup-swatches { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.cp-arup-swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 41, 0.1);
  cursor: pointer;
  padding: 0;
}

.cp-arup-swatch:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.cp-base-input-row { display: flex; align-items: center; gap: 0.75rem; }

.cp-hex-input {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 9ch;
}

.cp-hex-hint { color: var(--muted); font-size: 0.8125rem; }

.cp-wheel-wrap {
  display: flex;
  justify-content: center;
  padding: 0.5rem;
  position: relative;
}
.cp-wheel-wrap::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--live-hue, var(--red)) 0%, transparent 70%);
  opacity: 0.16;
  z-index: 0;
  transition: background 400ms var(--ease-out);
}

.cp-wheel {
  position: relative;
  z-index: 1;
  width: 196px;
  height: 196px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    hsl(0, 100%, 50%), hsl(60, 100%, 50%), hsl(120, 100%, 50%),
    hsl(180, 100%, 50%), hsl(240, 100%, 50%), hsl(300, 100%, 50%), hsl(360, 100%, 50%));
  cursor: crosshair;
  box-shadow: 0 0 0 1px rgba(15, 23, 41, 0.06), var(--shadow-lg);
}

.cp-wheel:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.cp-wheel-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 41, 0.4), var(--shadow-sm);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cp-hsl-sliders { display: flex; flex-direction: column; gap: 0.5rem; }

.cp-hsl-sliders label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--slate);
  gap: 0.75rem;
}

.cp-hsl-sliders input[type="range"] { flex: 1; }

.cp-harmony-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }

.cp-harmony-btn {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  padding: 0.45rem 0.6rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--slate);
  cursor: pointer;
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}

.cp-harmony-btn:hover { background: var(--bg-alt); color: var(--navy); }

.cp-harmony-btn.is-active {
  background: var(--red);
  border-color: var(--red-dark);
  color: #fff;
  box-shadow: 0 1px 0 var(--red-dark), 0 4px 10px -4px rgba(230, 30, 40, 0.4);
}

.cp-size-stepper { display: flex; align-items: center; gap: 0.5rem; }
.cp-size-stepper label { font-size: 0.8125rem; color: var(--slate); margin-right: 0.25rem; }

.cp-size-stepper button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 1.125rem;
  cursor: pointer;
}

.cp-size-stepper input {
  width: 3rem;
  text-align: center;
  font-family: var(--font-mono);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.375rem 0;
}

/* ---- AI assist panel ---- */
.cp-ai-tabs { display: flex; gap: 0.4rem; }

.cp-ai-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 100px;
  cursor: pointer;
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}
.cp-ai-tab:hover { border-color: var(--navy); color: var(--navy); }
.cp-ai-tab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

.cp-ai-tab-panel[hidden] { display: none; }

.cp-ai-textarea {
  width: 100%;
  min-height: 76px;
  font: inherit;
  font-size: 0.875rem;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.625rem 0.75rem;
  resize: vertical;
  margin-top: 0.4rem;
}
.cp-ai-textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.cp-ai-examples { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }

.cp-ai-example-chip {
  appearance: none;
  border: 1px dashed var(--border);
  background: none;
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
  cursor: pointer;
}
.cp-ai-example-chip:hover { border-color: var(--navy); color: var(--navy); }

.cp-ai-generate-btn {
  appearance: none;
  width: 100%;
  border: 0;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  background: linear-gradient(90deg, var(--red), #7d4196 60%, #1e9bd7);
  box-shadow: 0 4px 14px -4px rgba(230, 30, 40, 0.4);
  transition: transform 100ms var(--ease-out), filter 200ms var(--ease-out);
  margin-top: 0.75rem;
}
.cp-ai-generate-btn:hover { filter: brightness(1.05); }
.cp-ai-generate-btn:active { transform: scale(0.98); }
.cp-ai-generate-btn.is-loading,
.cp-ai-generate-btn:disabled { cursor: progress; animation: cpAiPulse 900ms ease-in-out infinite; }
@keyframes cpAiPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.cp-ai-note { font-size: 0.75rem; color: var(--muted); margin: 0.5rem 0 0; line-height: 1.5; }

.cp-ai-toast {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--red-dark);
  margin: 0.5rem 0 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.cp-ai-toast.is-visible { opacity: 1; transform: translateY(0); }

.cp-ai-dropzone {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  color: var(--slate);
  font-size: 0.8125rem;
  font-weight: 600;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  margin-top: 0.4rem;
  transition: border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}
.cp-ai-dropzone svg { width: 22px; height: 22px; color: var(--muted); position: relative; z-index: 1; }
.cp-ai-dropzone-sub { font-size: 0.6875rem; font-weight: 500; color: var(--muted); position: relative; z-index: 1; }
.cp-ai-dropzone:hover, .cp-ai-dropzone.is-dragover { border-color: var(--red); color: var(--navy); }
.cp-ai-dropzone.has-image { color: #fff; }
.cp-ai-dropzone.has-image span#cpDropzoneLabel { position: relative; z-index: 1; }
.cp-ai-dropzone.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 41, 0.55);
}

/* ---- Centre: palette strip (full-height bars, hover reveals meta) ---- */
.cp-swatch-strip {
  display: flex;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 44px -18px rgba(15, 23, 41, 0.35), var(--shadow-md);
}

.cp-swatch {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  transition: flex-grow 220ms var(--ease-spring);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.35);
  opacity: 0;
  transform: translateY(10px);
  animation: cpSwatchIn 420ms var(--ease-out) forwards;
}
.cp-swatch:hover { flex-grow: 1.3; }
.cp-swatch:nth-child(1) { animation-delay: 0ms; }
.cp-swatch:nth-child(2) { animation-delay: 45ms; }
.cp-swatch:nth-child(3) { animation-delay: 90ms; }
.cp-swatch:nth-child(4) { animation-delay: 135ms; }
.cp-swatch:nth-child(5) { animation-delay: 180ms; }
.cp-swatch:nth-child(6) { animation-delay: 225ms; }
.cp-swatch:nth-child(7) { animation-delay: 270ms; }
.cp-swatch:nth-child(8) { animation-delay: 315ms; }
.cp-swatch:nth-child(9) { animation-delay: 360ms; }
.cp-swatch:nth-child(10) { animation-delay: 405ms; }

@keyframes cpSwatchIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.cp-swatch-colour { flex: 1; width: 100%; border: 0; cursor: pointer; display: block; }

.cp-swatch-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.cp-swatch:hover .cp-swatch-meta,
.cp-swatch:focus-within .cp-swatch-meta { opacity: 1; transform: translateY(0); }

.cp-swatch-hex { font-family: var(--font-mono); font-size: 0.75rem; color: var(--navy); }
.cp-swatch-lock { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 0; font-size: 0.75rem; }
.cp-swatch-lock.is-locked { color: var(--red); font-weight: 600; }

.cp-purpose-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

.cp-chip {
  font-size: 0.8125rem;
  padding: 0.45rem 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
}

.cp-chip:hover { background: var(--bg); border-color: var(--navy); }

/* ---- Right rail: export tabs ---- */
.cp-output-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.cp-tab-btn {
  font-size: 0.8125rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  color: var(--slate);
  cursor: pointer;
}

.cp-tab-btn.is-active { background: var(--bg-alt); color: var(--navy); font-weight: 600; }

.cp-tab-panel { display: none; }
.cp-tab-panel.is-active { display: block; }

.cp-output-code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--navy);
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 1rem;
  max-height: 260px;
  overflow: auto;
}

.cp-output-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }

/* ---- Bottom drawers: contrast checker + AI critique ---- */
.cp-utility-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 0 1.25rem;
  height: 48px;
}

.cp-utility-toggles { display: flex; gap: 0.25rem; }

.cp-drawer-toggle {
  appearance: none;
  border: none;
  background: none;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.625rem;
  border-radius: 8px;
}
.cp-drawer-toggle:hover { background: var(--bg-alt); color: var(--navy); }
.cp-drawer-toggle.is-open { color: var(--red); }
.cp-drawer-toggle svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
.cp-drawer-toggle.is-open svg { transform: rotate(180deg); }

.cp-drawer {
  grid-column: 1 / -1;
  overflow: hidden;
  max-height: 0;
  transition: max-height 260ms var(--ease-out);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.cp-drawer.is-open { max-height: 360px; overflow-y: auto; }

.cp-contrast-checker { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; padding: 1.25rem 1.5rem; }

.cp-contrast-sample {
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.125rem;
  border: 1px solid var(--border);
}

.cp-contrast-result { font-family: var(--font-mono); font-size: 0.9375rem; }

.cp-contrast-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.cp-contrast-badge.is-pass { background: var(--green-light); color: var(--green); }
.cp-contrast-badge.is-fail { background: var(--red-light); color: var(--red-dark); }

/* ---- AI critique drawer ---- */
.cp-critique-inner { padding: 1.25rem 1.5rem; }

.cp-critique-score {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--navy);
}
.cp-critique-score-num { font-size: 1.75rem; font-weight: 800; color: var(--red); }

.cp-critique-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 640px;
}
.cp-critique-item { display: flex; gap: 0.625rem; align-items: flex-start; font-size: 0.8125rem; line-height: 1.5; color: var(--slate); }
.cp-critique-item.is-good { color: var(--navy); }
.cp-critique-icon { flex-shrink: 0; }

.cp-png-canvas {
  max-width: 100%;
  display: block;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cp-office-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin-bottom: 1rem; }
.cp-office-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border-light); }

.cp-prompt-textarea { width: 100%; min-height: 120px; border: 1px solid var(--border); resize: vertical; }

/* ---- Responsive ---- */
@media (max-width: 1180px) {
  .cp-shell { grid-template-columns: 1fr; }
  .cp-swatch-strip { height: 200px; }
}

@media (max-width: 640px) {
  .cp-swatch-strip { flex-direction: column; height: auto; }
  .cp-swatch { min-height: 56px; }
  .cp-swatch:hover { flex-grow: 1; }
  .cp-harmony-types { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .cp-harmony-btn, .cp-swatch, .cp-swatch-meta, .cp-drawer, .cp-drawer-toggle svg,
  .cp-shell::before, .cp-wheel-wrap::before { transition: none; }
  .cp-swatch { animation: none; opacity: 1; transform: none; }
}
