/* CCC appearance UX. No :root/body/global-theme or public-profile overrides. */
.studio-editor .ccc-appearance-discover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 20px 20px;
  padding: 18px;
  border: 1px solid #346783;
  border-radius: 12px;
  background: #102232;
  color: #edf7ff;
}
.studio-editor .ccc-appearance-discover-copy { min-width: 0; }
.studio-editor .ccc-appearance-discover strong { font-size: 16px; line-height: 1.4; }
.studio-editor .ccc-appearance-discover p {
  max-width: 65ch;
  margin: 7px 0 0;
  color: #bad0e1;
  font-size: 13px;
  line-height: 1.65;
}
.studio-editor .ccc-appearance-open {
  flex: none;
  min-height: 46px;
  padding: 11px 15px;
  border: 1px solid #80d6ff;
  border-radius: 8px;
  background: #b9eaff;
  color: #071826;
  font: 600 13px/1.45 Inter, Arial, sans-serif;
  cursor: pointer;
  text-align: center;
}
.studio-editor .ccc-appearance-open:hover { background: #e4f7ff; }
.studio-editor .ccc-appearance-open:focus-visible {
  outline: 3px solid #b9eaff;
  outline-offset: 4px;
}
.studio-editor .ccc-appearance-tab { color: #bfeaff; }
.studio-editor .ccc-appearance-pane { scroll-margin-top: 112px; }
.studio-editor .ccc-appearance-pane .ccc-appearance-field {
  min-width: 0;
  padding: 14px;
  border: 1px solid #304a5d;
  border-radius: 10px;
  background: #0c1823;
}
.studio-editor .ccc-appearance-field-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  color: #edf7ff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.studio-editor .ccc-appearance-color-value {
  color: #b1cfdf;
  font: 12px/1.5 'IBM Plex Mono', 'Courier New', monospace;
}
.studio-editor .ccc-appearance-field .ccc-appearance-hint {
  color: #b2c5d4;
  font-size: 12px;
  line-height: 1.65;
}
.studio-editor .ccc-appearance-field input[type="color"] {
  width: 100%;
  height: 52px;
  min-height: 52px;
  padding: 4px;
  cursor: pointer;
}
.studio-editor .ccc-appearance-field select {
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  font-size: 16px;
}
.studio-editor .ccc-appearance-sample {
  min-width: 0;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #38556b;
  border-radius: 12px;
  background: #08131d;
  color: #edf7ff;
}
.studio-editor .ccc-appearance-sample-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 13px;
}
.studio-editor .ccc-appearance-sample-head h3 { margin: 0; font-size: 16px; line-height: 1.4; }
.studio-editor .ccc-appearance-local {
  color: #bed5e5;
  font: 10px/1.6 'IBM Plex Mono', 'Courier New', monospace;
  letter-spacing: .05em;
}
.studio-editor .ccc-appearance-canvas {
  position: relative;
  min-width: 0;
  padding: 26px 24px;
  border: 1px solid #415a6c;
  border-left: 5px solid var(--ccc-appearance-accent, #00a8ff);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--ccc-appearance-first, #080b10), var(--ccc-appearance-second, #101c2a));
  color: #f1f5fb;
  font-family: var(--ccc-appearance-font, 'Space Grotesk', Inter, Arial, sans-serif);
  overflow-wrap: anywhere;
}
.studio-editor .ccc-appearance-kicker {
  margin: 0 0 13px;
  color: inherit;
  font: 500 11px/1.5 var(--ccc-appearance-font, Inter, Arial, sans-serif);
  letter-spacing: .1em;
}
.studio-editor .ccc-appearance-name {
  margin: 0 0 12px;
  color: inherit;
  font: 600 clamp(24px, 3.4vw, 36px)/1.15 var(--ccc-appearance-font, Inter, Arial, sans-serif);
  letter-spacing: -.025em;
}
.studio-editor .ccc-appearance-sample-text {
  max-width: 54ch;
  margin: 0 0 20px;
  color: inherit;
  font: 400 15px/1.75 var(--ccc-appearance-font, Inter, Arial, sans-serif);
}
.studio-editor .ccc-appearance-accent-example {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--ccc-appearance-accent, #00a8ff);
  border-radius: 6px;
  color: var(--ccc-appearance-accent, #00a8ff);
  font: 600 13px/1.5 var(--ccc-appearance-font, Inter, Arial, sans-serif);
}
.studio-editor .ccc-appearance-scope,
.studio-editor .ccc-appearance-guidance,
.studio-editor .ccc-appearance-status {
  margin: 12px 0 0;
  color: #bdd0de;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.studio-editor .ccc-appearance-guidance-warning {
  padding: 10px 12px;
  border-left: 3px solid #f4c776;
  background: #332a17;
  color: #ffe3ab;
}
/* app.js can keep updating its original swatch. Hide only its redundant display. */
.studio-editor .ccc-appearance-pane > .form-grid > .theme-preview { display: none; }
@media (max-width: 760px) {
  .studio-editor .ccc-appearance-discover {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin: 0 14px 16px;
    padding: 16px;
  }
  .studio-editor .ccc-appearance-open { width: 100%; font-size: 14px; }
  .studio-editor .ccc-appearance-sample { padding: 12px; }
  .studio-editor .ccc-appearance-canvas { padding: 21px 16px; }
  .studio-editor .ccc-appearance-pane .ccc-appearance-field { padding: 12px; }
}
@media print {
  .studio-editor .ccc-appearance-discover,
  .studio-editor .ccc-appearance-sample { display: none; }
}
