.egt-root {
  --egt-ink: #17171b;
  --egt-muted: #6b6972;
  --egt-line: rgba(23, 23, 27, 0.1);
  --egt-surface: #fff;
  --egt-canvas: #f4f1ed;
  --egt-hero-title-size: clamp(48px, 7vw, 88px);
  --egt-section-title-size: clamp(32px, 4.4vw, 52px);
  --egt-guide-title-size: clamp(32px, 4vw, 48px);
  position: relative;
  isolation: isolate;
  width: 100%;
  color: var(--egt-ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.egt-root,
.egt-root *,
.egt-root *::before,
.egt-root *::after {
  box-sizing: border-box;
}

.egt-root button,
.egt-root input,
.egt-root select {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.egt-root button,
.egt-root select {
  color: inherit;
}

.egt-root button,
.egt-root a,
.egt-root input,
.egt-root select {
  outline: none;
}

.egt-root :focus-visible {
  outline: 3px solid var(--egt-focus, #6f5cff);
  outline-offset: 3px;
}

.egt-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.egt-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .egt-root {
    --egt-hero-title-size: clamp(35px, 10.8vw, 48px);
    --egt-section-title-size: 30px;
    --egt-guide-title-size: 31px;
  }

  .egt-shell {
    width: min(100% - 24px, 1180px);
  }
}

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

.cc-root {
  --cc-ink: #18181b;
  --cc-line: #e4e4e7;
  --cc-muted: #71717a;
  min-height: 100vh;
  background: #fff;
  color: var(--cc-ink);
}
.cc-root * {
  box-sizing: border-box;
}
.cc-shell {
  width: calc(100% - 64px);
  max-width: 1400px;
  margin: auto;
  padding: 110px 0 72px;
}
.cc-hero {
  margin-bottom: 28px;
}
.cc-hero h1 {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1;
  letter-spacing: -0.055em;
}
.cc-hero h1:after {
  content: "";
  display: block;
  width: min(320px, 70%);
  height: 5px;
  margin-top: 18px;
  border-radius: 9px;
  background: linear-gradient(90deg, #111827, #8b5cf6, #f59e0b);
}
.cc-hero p {
  margin: 18px 0 0;
  color: var(--cc-muted);
  font-size: 17px;
}
.cc-nav {
  position: sticky;
  top: 14px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 9px 10px;
  border: 1px solid var(--cc-line);
  border-radius: 16px;
  background: #fffffff2;
  box-shadow: 0 12px 34px #18181b0d;
  backdrop-filter: blur(16px);
}
.cc-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cc-pair i {
  width: 34px;
  height: 34px;
  border: 3px solid white;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--cc-line);
}
.cc-pair i + i {
  margin-left: -14px;
}
.cc-pair span {
  display: grid;
  margin-left: 3px;
}
.cc-pair b {
  font-size: 13px;
}
.cc-pair small {
  color: var(--cc-muted);
  font-size: 10px;
}
.cc-pair .cc-pair-action {
  display: grid;
  width: 32px;
  min-height: 32px;
  margin-left: 4px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  background: #fff;
  color: var(--cc-ink);
}
.cc-pair .cc-pair-action + .cc-pair-action {
  margin-left: 0;
}
.cc-pair .cc-pair-action:hover {
  background: #f4f4f5;
}
.cc-nav > div:last-child {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: #f4f4f5;
}
.cc-nav button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #52525b;
  font: 600 12px sans-serif;
}
.cc-nav button[aria-current="page"] {
  background: var(--cc-ink);
  color: #fff;
}
.cc-nav svg {
  width: 15px;
  height: 15px;
}
.cc-studio {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--cc-line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 10px 36px #18181b08;
}
.cc-controls {
  padding: 26px;
  border-right: 1px solid var(--cc-line);
}
.cc-color-field {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 9px;
  margin-bottom: 12px;
}
.cc-color-field label {
  display: grid;
  gap: 5px;
  min-height: 62px;
  padding: 9px 13px;
  border: 1px solid var(--cc-line);
  border-radius: 13px;
  color: var(--cc-muted);
  font: 700 9px sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.cc-color-field label input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cc-ink);
  font: 700 17px monospace;
}
.cc-color-field > input {
  width: 52px;
  height: 62px;
  padding: 5px;
  border: 1px solid var(--cc-line);
  border-radius: 13px;
  background: white;
}
.cc-color-trigger {
  display: grid;
  width: 52px;
  height: 62px;
  padding: 5px;
  place-items: stretch;
  border: 1px solid var(--cc-line);
  border-radius: 13px;
  background: #fff;
}
.cc-color-trigger i {
  display: block;
  border-radius: 9px;
}
.cc-swap {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  background: #fafafa;
  font-weight: 650;
}
.cc-context {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--cc-line);
}
.cc-context > span {
  grid-column: 1/-1;
  color: var(--cc-muted);
  font-size: 11px;
  font-weight: 700;
}
.cc-context button {
  min-height: 38px;
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  background: white;
  font-size: 11px;
}
.cc-context button[aria-pressed="true"] {
  border-color: var(--cc-ink);
  background: var(--cc-ink);
  color: white;
}
.cc-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.cc-stage {
  min-width: 0;
  padding: 26px;
}
.cc-score {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border-radius: 18px;
}
.cc-score > span {
  font-size: 12px;
  font-weight: 650;
}
.cc-score > strong {
  margin: auto 0;
  font-size: clamp(70px, 8vw, 118px);
  line-height: 0.8;
  letter-spacing: -0.075em;
}
.cc-score strong small {
  font-size: 0.28em;
}
.cc-score > b {
  padding: 7px 10px;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-size: 11px;
}
.cc-live-type {
  max-width: 100%;
  margin: 0 0 14px;
  overflow: hidden;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-score > b[data-pass="false"] {
  border-color: #991b1b;
  color: #991b1b;
  background: #fee2e2;
}
.cc-results {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.cc-results > div {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  font-size: 10px;
}
.cc-results b {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 99px;
  color: #991b1b;
  background: #fee2e2;
  font-size: 9px;
}
.cc-results b[data-pass="true"] {
  color: #166534;
  background: #dcfce7;
}
.cc-preview {
  min-height: 430px;
  padding: 36px;
  border-radius: 18px;
  overflow: hidden;
}
.cc-preview small,
.cc-improve > small {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.15em;
}
.cc-preview h2 {
  max-width: 680px;
  margin: 70px 0 18px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}
.cc-preview p {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.6;
}
.cc-preview button {
  padding: 12px 17px;
  border: 0;
  border-radius: 9px;
  font-weight: 700;
}
.cc-room {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 8px;
  height: 150px;
  margin-top: 24px;
}
.cc-room i {
  border: 1px solid currentColor;
  border-radius: 8px;
  opacity: 0.5;
}
.cc-room i:nth-child(2) {
  opacity: 0.28;
}
.cc-room i:nth-child(3) {
  opacity: 0.12;
}
.cc-interior h2 {
  margin-top: 28px;
  font-size: 48px;
}
.cc-brand h2 {
  font-size: 84px;
}
.cc-editorial h2 {
  font-family: Georgia, serif;
  font-weight: 400;
}
.cc-improve h2 {
  margin: 14px 0 24px;
  font-size: 38px;
}
.cc-improve > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cc-improve article {
  display: flex;
  min-height: 215px;
  flex-direction: column;
  padding: 20px;
  border-radius: 15px;
}
.cc-improve article b {
  margin: auto 0;
  font: 700 22px monospace;
}
.cc-improve article small {
  font-size: 11px;
}
.cc-improve > .mesh-primary {
  margin-top: 14px;
}
.cc-improve > p {
  color: var(--cc-muted);
  font-size: 12px;
  line-height: 1.6;
}
.cc-pro-tools {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
}
.cc-pro-tools > span {
  margin-right: auto;
  color: var(--cc-muted);
  font-size: 12px;
}
.cc-pro-tools button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--cc-line);
  border-radius: 11px;
  background: white;
  font-weight: 650;
}
.cc-related,
.cc-guide {
  margin-top: 68px;
}
.cc-related h2,
.cc-guide h2 {
  font-size: 32px;
  letter-spacing: -0.04em;
}
.cc-related > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cc-related a {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--cc-line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}
.cc-related a > i {
  display: grid;
  height: 160px;
  place-items: center;
  background: #f4f4f5;
  font-style: normal;
  font-size: 58px;
  font-weight: 800;
}
.cc-related a > b,
.cc-related a > span {
  padding: 0 20px;
}
.cc-related a > b {
  padding-top: 18px;
  font-size: 18px;
}
.cc-related a > span {
  padding-top: 7px;
  padding-bottom: 20px;
  color: var(--cc-muted);
  font-size: 13px;
}
.cc-art-picker {
  background: linear-gradient(135deg, #fda4af, #a78bfa, #67e8f9) !important;
}
.cc-art-pair {
  display: flex !important;
  gap: 12px;
}
.cc-art-pair em {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #112a46;
}
.cc-art-pair em + em {
  background: #acc8e5;
}
.cc-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  padding-top: 42px;
  border-top: 1px solid var(--cc-line);
}
.cc-guide small {
  letter-spacing: 0.14em;
}
.cc-guide p {
  color: var(--cc-muted);
  font-size: 14px;
  line-height: 1.75;
}
.cc-guide ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cc-guide li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  font-size: 13px;
}
.cc-guide li span {
  color: var(--cc-muted);
}
.cc-dialog {
  display: grid;
  gap: 15px;
}
@media (min-width: 1600px) {
  .cc-shell {
    width: calc(100% - 96px);
    max-width: 1500px;
    padding-top: 122px;
  }
}
@media (max-width: 900px) {
  .cc-shell {
    width: calc(100% - 32px);
    padding-top: 92px;
  }
  .cc-studio {
    grid-template-columns: 1fr;
  }
  .cc-controls {
    border-right: 0;
    border-bottom: 1px solid var(--cc-line);
  }
  .cc-results {
    grid-template-columns: repeat(3, 1fr);
  }
  .cc-related > div {
    grid-template-columns: 1fr 1fr;
  }
  .cc-guide {
    grid-template-columns: 1fr;
  }
  .cc-preview h2 {
    margin-top: 40px;
  }
}
@media (max-width: 600px) {
  .cc-hero h1 {
    font-size: 38px;
  }
  .cc-hero p {
    font-size: 15px;
  }
  .cc-nav {
    align-items: stretch;
    flex-direction: column;
  }
  .cc-nav > div:last-child {
    width: 100%;
  }
  .cc-nav button {
    flex: 1;
    justify-content: center;
    padding: 7px;
  }
  .cc-stage,
  .cc-controls {
    padding: 18px;
  }
  .cc-results {
    grid-template-columns: 1fr 1fr;
  }
  .cc-results > div:last-child {
    grid-column: 1/-1;
  }
  .cc-score {
    min-height: 225px;
    padding: 22px;
  }
  .cc-score > strong {
    font-size: 68px;
  }
  .cc-context {
    grid-template-columns: 1fr 1fr;
  }
  .cc-pro-tools {
    overflow-x: auto;
  }
  .cc-pro-tools > span {
    display: none;
  }
  .cc-pro-tools button {
    flex: none;
  }
  .cc-related > div {
    grid-template-columns: 1fr;
  }
  .cc-preview {
    min-height: 360px;
    padding: 24px;
  }
  .cc-preview h2,
  .cc-interior h2 {
    font-size: 42px;
  }
  .cc-brand h2 {
    font-size: 52px;
  }
  .cc-improve > div {
    grid-template-columns: 1fr;
  }
  .cc-guide li {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* Two dominant color inputs, with secondary actions anchored to opposite corners. */
.cc-controls {
  grid-template-columns: 1fr 1fr;
  row-gap: 12px;
}
.cc-color-field:first-of-type {
  order: 1;
  grid-column: 1;
}
.cc-color-field:nth-of-type(2) {
  order: 2;
  grid-column: 2;
}
.cc-swap,
.cc-inspire {
  min-height: 38px;
  padding: 3px 6px;
  border: 0;
  background: transparent;
  color: var(--cc-ink);
  font-size: 12px;
  font-weight: 650;
}
.cc-swap {
  order: 3;
  justify-self: start;
}
.cc-inspire {
  order: 4;
  justify-self: end;
}
.cc-swap svg,
.cc-inspire svg {
  width: 32px;
  height: 32px;
  padding: 7px;
  border: 1px solid var(--cc-line);
  border-radius: 50%;
  background: #fff;
  transition:
    border-color 0.18s,
    transform 0.18s;
}
.cc-swap:hover,
.cc-inspire:hover {
  background: transparent;
}
.cc-swap:hover svg,
.cc-inspire:hover svg {
  border-color: var(--cc-ink);
  transform: translateY(-1px);
}
@media (max-width: 760px) {
  .cc-controls {
    grid-template-columns: 1fr 1fr;
  }
  .cc-color-field:first-of-type,
  .cc-color-field:nth-of-type(2) {
    grid-column: auto;
  }
  .cc-swap,
  .cc-inspire {
    width: auto;
    min-height: 38px;
  }
}
@media (max-width: 480px) {
  .cc-controls {
    grid-template-columns: 1fr 1fr;
  }
  .cc-color-field:first-of-type,
  .cc-color-field:nth-of-type(2) {
    grid-column: 1/-1;
  }
  .cc-swap {
    grid-column: 1;
  }
  .cc-inspire {
    grid-column: 2;
  }
}

/* Desktop/tablet control rail stays on one line. */
.cc-controls {
  grid-template-areas: "text swap background surprise";
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr) auto;
  align-items: center;
  column-gap: 14px;
}
.cc-controls > .cc-swap,
.cc-controls > .cc-inspire {
  height: 62px;
  min-height: 62px;
  padding: 8px 12px;
  border: 0 !important;
  border-radius: 10px;
  background: transparent !important;
  color: var(--cc-ink) !important;
}
.cc-controls > .cc-color-field,
.cc-controls > .cc-color-field label,
.cc-controls > .cc-color-field .cc-color-trigger {
  height: 62px;
  min-height: 62px;
}
.cc-controls > .cc-color-field {
  align-items: stretch;
}
.cc-controls > .cc-swap:hover,
.cc-controls > .cc-inspire:hover {
  background: #f4f4f5 !important;
}
@media (max-width: 700px) {
  .cc-controls {
    grid-template-areas:
      "text text"
      "background background"
      "swap surprise";
    grid-template-columns: 1fr 1fr;
  }
}

/* Equal-height alignment for the complete control rail. */
.cc-controls > .cc-swap,
.cc-controls > .cc-inspire,
.cc-controls > .cc-color-field,
.cc-controls > .cc-color-field label,
.cc-controls > .cc-color-field .cc-color-trigger {
  height: 62px;
  min-height: 62px;
}
.cc-controls > .cc-swap,
.cc-controls > .cc-inspire {
  padding: 8px 12px;
}
.cc-controls > .cc-color-field {
  align-items: stretch;
}

/* Keep the result dominant; color controls form one compact footer row. */
.cc-studio {
  display: flex;
  flex-direction: column;
}
.cc-stage {
  order: 1;
}
.cc-controls {
  order: 2;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-top: 1px solid var(--cc-line);
  border-right: 0;
  background: #fafafa;
}
.cc-controls-head {
  order: 5;
  height: 62px;
  align-self: center;
  margin: 0 !important;
}
.cc-color-field {
  margin: 0;
}
.cc-color-field:first-of-type {
  order: 1;
}
.cc-color-field:nth-of-type(2) {
  order: 3;
}
.cc-swap {
  order: 2;
  width: auto;
  min-height: 62px;
  padding: 0 18px;
  background: #fff;
}
.cc-save-icon {
  width: 52px;
  min-height: 62px !important;
  padding: 0 !important;
}

.cc-picker {
  --cc-ink: #18181b;
  --cc-line: #e4e4e7;
  --cc-muted: #71717a;
  z-index: 120;
  display: grid;
  width: 280px;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--cc-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 65px #18181b2b;
}
.cc-picker-head {
  display: flex;
  justify-content: space-between;
  color: var(--cc-muted);
  font-size: 11px;
}
.cc-picker-head b {
  color: var(--cc-ink);
  font-family: monospace;
}
.cc-wheel {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  box-shadow: inset 0 0 0 1px #00000014;
}
.cc-wheel:after {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: #fff;
  content: "";
}
.cc-wheel i {
  position: absolute;
  z-index: 2;
  top: 77px;
  left: 77px;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 5px #0008;
  transform-origin: 8px 8px;
}
.cc-wheel em {
  position: absolute;
  z-index: 1;
  inset: 43px;
  border-radius: 50%;
}
.cc-picker label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  color: var(--cc-muted);
  font-size: 10px;
}
.cc-picker label input {
  grid-column: 1/-1;
  width: 100%;
  accent-color: var(--cc-ink);
}
.cc-picker label b {
  color: var(--cc-ink);
}
.cc-picker > button:last-child {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: var(--cc-ink);
  color: #fff;
  font-weight: 700;
}
.cc-inspire {
  order: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 62px;
  padding: 0 18px;
  border: 1px solid var(--cc-ink);
  border-radius: 12px;
  background: #fff;
  color: var(--cc-ink);
  font-weight: 650;
}
.cc-inspire:hover {
  background: #f4f4f5;
}
.cc-inspire:focus-visible {
  outline: 3px solid #8b5cf64d;
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .cc-controls {
    grid-template-columns: 1fr 1fr;
    padding: 16px 18px;
  }
  .cc-swap {
    width: 100%;
    min-height: 44px;
  }
  .cc-save-icon {
    width: 100%;
    min-height: 44px !important;
  }
  .cc-inspire {
    min-height: 44px;
  }
}
@media (max-width: 480px) {
  .cc-controls {
    grid-template-columns: 1fr;
  }
  .cc-controls-head,
  .cc-color-field,
  .cc-swap,
  .cc-inspire {
    width: 100%;
  }
}

.cc-type-controls,
.cc-repair-options,
.cc-option-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
  overflow-x: auto;
}
.cc-type-controls > span {
  margin-right: auto;
  color: var(--cc-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.cc-type-controls button,
.cc-repair-options button,
.cc-option-row button {
  flex: none;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  background: #fff;
  font: 650 10px sans-serif;
}
.cc-type-controls button[aria-pressed="true"],
.cc-repair-options button[aria-pressed="true"],
.cc-option-row button[aria-pressed="true"] {
  border-color: var(--cc-ink);
  background: var(--cc-ink);
  color: #fff;
}
.cc-repair-options {
  margin-top: -10px;
}
.cc-advanced {
  display: grid;
  gap: 14px;
}
.cc-advanced h3,
.cc-advanced p {
  margin: 0;
}
.cc-matrix-inputs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.cc-matrix-inputs input,
.cc-advanced textarea {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  font: 650 12px monospace;
}
.cc-advanced textarea {
  min-height: 110px;
  resize: vertical;
}
.cc-matrix {
  display: grid;
  gap: 4px;
}
.cc-matrix > div {
  display: grid;
  gap: 3px;
  min-height: 64px;
  place-content: center;
  border: 1px solid var(--cc-line);
  border-radius: 9px;
  text-align: center;
}
.cc-matrix b {
  font-size: 13px;
}
.cc-matrix span {
  color: var(--cc-muted);
  font-size: 9px;
}
.cc-vision-card {
  display: grid;
  min-height: 230px;
  align-content: center;
  justify-items: start;
  gap: 12px;
  padding: 28px;
  border-radius: 14px;
}
.cc-vision-card h3 {
  max-width: 430px;
  font-size: 34px;
}
.cc-vision-card button,
.cc-state-list button {
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
}
.cc-note {
  color: var(--cc-muted);
  font-size: 11px;
  line-height: 1.5;
}
.cc-batch-results,
.cc-state-list {
  display: grid;
  gap: 7px;
}
.cc-batch-results > div,
.cc-state-list > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  font-size: 10px;
}
.cc-batch-results i {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}
.cc-batch-results span,
.cc-state-list span {
  margin-right: auto;
}
.cc-batch-results b,
.cc-state-list b {
  color: #991b1b;
}
.cc-batch-results b[data-pass="true"],
.cc-state-list b[data-pass="true"] {
  color: #166534;
}
.cc-state-list button {
  min-width: 110px;
}
.cc-advanced pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  border-radius: 11px;
  background: #f4f4f5;
  font: 11px/1.7 monospace;
}
@media (max-width: 600px) {
  .cc-type-controls > span {
    display: none;
  }
  .cc-matrix-inputs {
    grid-template-columns: 1fr 1fr;
  }
}

.cc-studio {
  min-height: 0;
}
.cc-controls-head,
.cc-stage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.cc-controls-head {
  justify-content: space-between;
}
.cc-controls-head > span {
  color: var(--cc-muted);
  font: 700 10px sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cc-controls-head .cc-action-button {
  min-height: 36px;
  padding: 7px 11px;
}
.cc-stage-actions {
  justify-content: flex-end;
}
.cc-stage-actions > span {
  margin-right: auto;
  color: var(--cc-muted);
  font: 600 10px monospace;
}
.cc-stage-actions .cc-action-button {
  min-height: 36px;
  padding: 7px 11px;
}
.cc-preview-samples {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}
.cc-preview-samples span {
  font-size: 16px;
}
.cc-preview-samples b {
  font-size: 24px;
}
@media (max-width: 600px) {
  .cc-stage-actions > span {
    display: none;
  }
  .cc-stage-actions .cc-action-button {
    flex: 1;
  }
  .cc-preview-samples {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Unified action system and a workflow-local preview context. */
.cc-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.cc-action-button,
.cc-tool-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid var(--cc-line);
  border-radius: 11px;
  background: #fff;
  color: var(--cc-ink);
  font: 650 11px sans-serif;
  transition:
    border-color 0.18s,
    background 0.18s,
    transform 0.18s;
}
.cc-action-button:hover,
.cc-tool-button:hover {
  border-color: #a1a1aa;
  background: #fafafa;
  transform: translateY(-1px);
}
.cc-action-button:focus-visible,
.cc-tool-button:focus-visible {
  outline: 3px solid #8b5cf64d;
  outline-offset: 2px;
}
.cc-action-button svg,
.cc-tool-button svg {
  width: 15px;
  height: 15px;
}
.cc-pro-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px;
  border: 1px solid var(--cc-line);
  border-radius: 16px;
  background: #fafafa;
}
.cc-pro-tools > span {
  display: grid;
  margin-right: auto;
  padding: 0 8px;
}
.cc-pro-tools > span b {
  font-size: 12px;
}
.cc-pro-tools > span small {
  margin-top: 2px;
  color: var(--cc-muted);
  font-size: 9px;
}
.cc-pro-tools .cc-tool-button {
  min-height: 40px;
  padding: 8px 11px;
  color: #3f3f46;
  font-weight: 560;
}
.cc-advanced-trigger {
  min-width: 190px;
}
.cc-advanced-menu {
  --cc-ink: #18181b;
  --cc-line: #e4e4e7;
  z-index: 130;
  display: grid;
  width: 245px;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--cc-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 50px #18181b24;
}
.cc-advanced-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--cc-ink);
  font: 600 12px sans-serif;
  text-align: left;
}
.cc-advanced-menu button:hover,
.cc-advanced-menu button:focus-visible {
  background: #f4f4f5;
  outline: 0;
}
.cc-tool-button svg:last-child {
  width: 15px;
  margin-left: 0;
  color: inherit;
}
.cc-preview-wrap {
  display: grid;
  gap: 12px;
}
.cc-context {
  display: flex;
  width: fit-content;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  background: #f4f4f5;
}
.cc-context button {
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #52525b;
  font: 650 10px sans-serif;
}
.cc-context button[aria-pressed="true"] {
  background: #fff;
  color: var(--cc-ink);
  box-shadow: 0 1px 3px #18181b17;
}
.cc-preview {
  min-height: 380px;
}
@media (max-width: 900px) {
  .cc-pro-tools {
    overflow-x: auto;
  }
  .cc-pro-tools > span {
    display: none;
  }
  .cc-pro-tools .cc-tool-button {
    flex: none;
  }
}
@media (max-width: 600px) {
  .cc-context {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
  }
  .cc-context button {
    flex: none;
  }
}

/* Final layout contract: inputs share the first row, utilities sit apart. */
.cc-controls {
  grid-template-areas:
    "text background"
    "swap surprise";
  grid-template-columns: 1fr 1fr;
}
.cc-controls > .cc-color-field:first-of-type {
  grid-area: text;
  order: initial;
}
.cc-controls > .cc-color-field:nth-of-type(2) {
  grid-area: background;
  order: initial;
}
.cc-controls > .cc-swap {
  grid-area: swap;
  order: initial;
  justify-self: start;
}
.cc-controls > .cc-inspire {
  grid-area: surprise;
  order: initial;
  justify-self: end;
}
@media (max-width: 480px) {
  .cc-controls {
    grid-template-areas:
      "text text"
      "background background"
      "swap surprise";
    grid-template-columns: 1fr 1fr;
  }
}

/* Final responsive control rail. */
.cc-controls {
  grid-template-areas: "text swap background surprise";
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr) auto;
  align-items: center;
  column-gap: 14px;
}
.cc-controls > .cc-swap,
.cc-controls > .cc-inspire {
  min-height: 42px;
  padding: 4px 8px;
  border: 0 !important;
  border-radius: 10px;
  background: transparent !important;
  color: var(--cc-ink) !important;
}
.cc-controls > .cc-swap:hover,
.cc-controls > .cc-inspire:hover {
  background: #f4f4f5 !important;
}
@media (max-width: 700px) {
  .cc-controls {
    grid-template-areas:
      "text text"
      "background background"
      "swap surprise";
    grid-template-columns: 1fr 1fr;
  }
}

.egt-tool-page {
  width: 100%;
  min-height: 0;
  margin-top: 0;
  padding-top: calc(104px + env(safe-area-inset-top, 0px)) !important;
}

.egt-tool-page .egt-tool-shell {
  width: min(1440px, calc(100% - 48px)) !important;
  margin-inline: auto;
  padding-top: 0 !important;
}

.egt-tool-header {
  display: block;
  margin: 0;
  padding: 8px 0 18px;
}

.egt-tool-header h1 {
  max-width: 1020px;
  margin: 0;
  color: var(--egt-ink, #17171b);
  font-size: clamp(34px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.egt-tool-header__accent {
  display: block;
  width: min(336px, 34%);
  height: 6px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--egt-tool-accent);
}

.egt-tool-header p {
  max-width: 820px;
  margin: 8px 0 0;
  color: var(--egt-muted, #6b6972);
  font-size: 17px;
  line-height: 1.55;
}

.egt-tool-page.cpg-root,
.egt-tool-page.ip2-root {
  margin-top: 0;
  padding-top: calc(104px + env(safe-area-inset-top, 0px));
}

.egt-tool-page.ecm-root:not(.ecm-dialog) {
  padding-top: calc(104px + env(safe-area-inset-top, 0px));
}

.egt-tool-page .egt-tool-header {
  display: block !important;
  grid-template-columns: none !important;
  align-items: initial !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 8px 0 18px !important;
}

.egt-tool-page .egt-tool-header h1 {
  display: block !important;
  max-width: 1020px !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: clamp(34px, 3.2vw, 40px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.055em !important;
  line-height: 1 !important;
}

.egt-tool-page .egt-tool-header h1::after {
  display: none !important;
  content: none !important;
}

.egt-tool-page .egt-tool-header p {
  display: block !important;
  max-width: 820px !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  color: var(--egt-muted, #6b6972);
  font-size: 17px !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  line-height: 1.55 !important;
  text-align: left !important;
}

.egt-tool-page.egm2-root {
  width: min(1440px, calc(100% - 48px));
  padding-top: calc(104px + env(safe-area-inset-top, 0px));
}

.hxp-header-row {
  position: relative;
}

.hxp-header-row .egt-tool-header {
  padding-right: 64px;
}

.hxp-header-row .hxp-header-library {
  position: absolute;
  top: 8px;
  right: 0;
}

.egt-tool-page.inv-root {
  padding-top: calc(104px + env(safe-area-inset-top, 0px)) !important;
}

.egt-tool-page .egt-tool-shell.inv-shell {
  padding-top: 0 !important;
}

@media (max-width: 620px) {
  .egt-tool-page,
  .egt-tool-page.cpg-root,
  .egt-tool-page.ip2-root,
  .egt-tool-page.egm2-root {
    padding-top: calc(88px + env(safe-area-inset-top, 0px));
  }

  .egt-tool-page {
    padding-top: calc(88px + env(safe-area-inset-top, 0px)) !important;
  }

  .egt-tool-page.inv-root {
    padding-top: calc(88px + env(safe-area-inset-top, 0px)) !important;
  }

  .egt-tool-page .egt-tool-shell,
  .egt-tool-page.egm2-root {
    width: min(100% - 24px, 1440px);
  }

  .egt-tool-header {
    padding: 8px 0 16px;
  }

  .egt-tool-header h1 {
    font-size: 34px;
  }

  .egt-tool-header__accent {
    width: min(220px, 58%);
    height: 5px;
    margin-top: 10px;
  }

  .egt-tool-header p {
    margin-top: 8px;
    font-size: 15px;
  }
}

