html.cq-rgb-sheet-open,
body.cq-rgb-sheet-open {
  overflow: hidden;
}

.cq-upload-file-chip {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(169, 81, 139, 0.08);
  border: 1px solid rgba(169, 81, 139, 0.16);
}

.cq-upload-file-chip__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.8);
  color: #a9518b;
  flex: 0 0 auto;
}

.cq-upload-file-chip__content {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.cq-upload-file-chip__eyebrow {
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(35, 26, 34, 0.52);
}

.cq-upload-file-chip__name {
  display: block;
  min-width: 0;
  max-width: 100%;
  font-size: 0.98rem;
  line-height: 1.28;
  font-weight: 700;
  color: #d8d8d8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cq-upload-file-remove {
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: rgba(30, 24, 29, 0.08);
  color: #191418;
  font-size: 0.98rem;
  font-weight: 600;
  flex: 0 0 auto;
  transition: background-color .18s ease, transform .18s ease;
}

.cq-upload-file-remove:hover {
  background: rgba(30, 24, 29, 0.12);
}

.cq-upload-file-remove:active {
  transform: translateY(1px);
}

:root[data-theme="dark"] .cq-upload-file-chip {
  background: linear-gradient(180deg, rgba(84, 58, 86, 0.78) 0%, rgba(60, 42, 64, 0.9) 100%);
  border-color: rgba(219, 145, 194, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .cq-upload-file-chip__icon {
  background: rgba(255, 255, 255, 0.16);
  color: #ffd4ec;
}

:root[data-theme="dark"] .cq-upload-file-chip__eyebrow {
  color: rgba(255, 232, 244, 0.7);
}

:root[data-theme="dark"] .cq-upload-file-chip__name {
  color: #ffffff !important;
  font-weight: 700;
}

:root[data-theme="dark"] .cq-upload-file-remove {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

:root[data-theme="dark"] .cq-upload-file-remove:hover {
  background: rgba(255, 255, 255, 0.24);
}

.cq-file-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.45;
  border: 1px solid transparent;
}

.cq-file-status[data-tone="success"] {
  background: rgba(27, 135, 84, 0.1);
  color: #155e3a;
  border-color: rgba(27, 135, 84, 0.22);
}

.cq-file-status[data-tone="warning"] {
  background: #f6e6b8;
  color: #5e4310;
  border-color: #e7c96d;
}

.cq-file-status[data-tone="error"] {
  background: rgba(185, 56, 56, 0.2);
  color: #ff0000;
  border-color: rgba(255, 0, 0, 0.22);
}

.cq-file-status[data-tone="info"] {
  background: rgba(61, 110, 181, 0.1);
  color: #ffffff;
  border-color: rgba(61, 110, 181, 0.22);
}

:root[data-theme="dark"] .cq-file-status[data-tone="success"] {
  background: linear-gradient(180deg, rgba(10, 73, 57, 0.86) 0%, rgba(8, 54, 43, 0.92) 100%);
  color: #74f0b8;
  border-color: rgba(67, 219, 154, 0.22);
}

:root[data-theme="dark"] .cq-file-status[data-tone="warning"] {
  background: linear-gradient(180deg, rgba(124, 94, 20, 0.94) 0%, rgba(97, 73, 15, 0.98) 100%);
  color: #fff1ad;
  border-color: rgba(255, 222, 120, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 244, 190, 0.1);
}

:root[data-theme="dark"] .cq-file-status[data-tone="error"] {
  background: linear-gradient(180deg, rgba(110, 24, 24, 0.9) 0%, rgba(80, 18, 18, 0.94) 100%);
  color: #ff9b9b;
  border-color: rgba(255, 120, 120, 0.28);
}

:root[data-theme="dark"] .cq-file-status[data-tone="info"] {
  background: linear-gradient(180deg, rgba(24, 54, 110, 0.88) 0%, rgba(18, 40, 82, 0.94) 100%);
  color: #d8e7ff;
  border-color: rgba(114, 159, 255, 0.24);
}

.cq-rgb-sheet[hidden] {
  display: none !important;
}

.cq-rgb-sheet {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.cq-rgb-sheet__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(180deg, rgba(34, 38, 53, 0.28) 0%, rgba(18, 20, 30, 0.52) 100%);
  backdrop-filter: blur(16px) saturate(135%);
}

.cq-rgb-sheet__dialog {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: min(88vh, 940px);
  max-height: min(98vh, 1080px);
  overflow: auto;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72) 0%, rgba(236, 242, 250, 0.6) 34%, rgba(214, 224, 241, 0.42) 100%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(176, 215, 255, 0.34), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(255, 182, 213, 0.24), transparent 34%);
  border-radius: 30px 30px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow:
    0 -22px 50px rgba(55, 73, 110, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  padding: 26px 16px 24px;
  margin: 0;
}

:root[data-theme="dark"] .cq-rgb-sheet__dialog {
  background:
    linear-gradient(155deg, rgba(54, 60, 84, 0.84) 0%, rgba(27, 33, 48, 0.88) 35%, rgba(17, 22, 35, 0.96) 100%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 26%),
    radial-gradient(circle at 82% 10%, rgba(116, 190, 255, 0.18), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(255, 91, 174, 0.14), transparent 30%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 -24px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.cq-rgb-sheet__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  color: rgba(40, 51, 73, 0.72);
  display: grid;
  place-items: center;
  backdrop-filter: blur(14px);
}

:root[data-theme="dark"] .cq-rgb-sheet__close {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

.cq-rgb-sheet__close svg {
  width: 18px;
  height: 18px;
}

.cq-rgb-sheet__top {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.cq-rgb-sheet__heading {
  display: grid;
  gap: 6px;
  padding-right: 42px;
}

.cq-rgb-sheet__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(53, 67, 95, 0.52);
}

.cq-rgb-sheet__title {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.08;
  font-weight: 700;
  color: #1f2d43;
}

:root[data-theme="dark"] .cq-rgb-sheet__eyebrow {
  color: rgba(255, 255, 255, 0.4);
}

:root[data-theme="dark"] .cq-rgb-sheet__title {
  color: #f6f8ff;
}

.cq-rgb-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: rgba(34, 48, 72, 0.92);
  backdrop-filter: blur(14px) saturate(135%);
}

.cq-rgb-badge__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  filter: brightness(0) saturate(100%) invert(87%) sepia(67%) saturate(861%) hue-rotate(334deg) brightness(104%) contrast(101%);
}

.cq-rgb-badge__text {
  min-width: 0;
  font-size: 0.78rem;
  line-height: 1.25;
  font-weight: 600;
}

:root[data-theme="dark"] .cq-rgb-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(244, 247, 255, 0.9);
}

.cq-rgb-note {
  display: grid;
  gap: 6px;
  padding: 2px 2px 0;
}

.cq-rgb-note__title {
  font-size: 0.98rem;
  line-height: 1.25;
  font-weight: 700;
  color: #24324b;
}

.cq-rgb-note__text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(43, 58, 84, 0.78);
}

:root[data-theme="dark"] .cq-rgb-note__title {
  color: #f8fbff;
}

:root[data-theme="dark"] .cq-rgb-note__text {
  color: rgba(232, 238, 255, 0.76);
}

.cq-rgb-file {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

:root[data-theme="dark"] .cq-rgb-file {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.cq-rgb-file__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: #f7cce7;
  flex: 0 0 auto;
}

.cq-rgb-file__icon svg {
  width: 22px;
  height: 22px;
}

.cq-rgb-file__content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.cq-rgb-file__eyebrow {
  font-size: 0.76rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

:root[data-theme="dark"] .cq-rgb-file__eyebrow {
  color: rgba(255, 255, 255, 0.42);
}

.cq-rgb-file__name {
  display: block;
  min-width: 0;
  max-width: 100%;  
  line-height: 1.24;
  color: #f8fbff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--small);
  font-weight: var(--font-weight-semibold);
}

.cq-rgb-file__name--inline {
  display: none;
}

.cq-rgb-file,
.cq-rgb-file__icon,
.cq-rgb-file__content,
.cq-rgb-file__eyebrow {
  display: none;
}

.cq-rgb-compare {
  display: grid;
  gap: 18px;
}

.cq-proof-card {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34) 0%, rgba(235, 241, 250, 0.22) 100%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 26%);
  box-shadow:
    0 18px 42px rgba(91, 111, 152, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

:root[data-theme="dark"] .cq-proof-card {
  background: linear-gradient(180deg, rgba(30, 34, 48, 0.84) 0%, rgba(17, 20, 31, 0.92) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cq-proof-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 0;
  border-radius: inherit;
}

.cq-proof-card__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;

}

.cq-proof-card__title-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.78);
  color: #221a1f;
  flex: 0 0 auto;
}

:root[data-theme="dark"] .cq-proof-card__title-icon {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(230, 220, 230, 0.9);
}

.cq-proof-card__title-icon svg {
  width: 22px;
  height: 22px;
}

.cq-proof-card__title {
  margin: 0;
  line-height: 1.2;
  text-transform: uppercase;
  font-size: var(--small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.cq-proof-card__chips,
.cq-proof-chip {
  display: none !important;
}

.cq-proof-card__canvas {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
}

:root[data-theme="dark"] .cq-proof-card__canvas {
  background: transparent;
}

.cq-proof-card__header--minimal {
  padding: 16px 16px 0;
}

.cq-proof-card__canvas--compare {
  min-height: 0;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  margin: 0 14px 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.48), transparent 40%),
    linear-gradient(180deg, rgba(220, 228, 243, 0.34), rgba(194, 205, 228, 0.18));
}

.cq-proof-card__canvas--compare.is-hinting .cq-proof-layer--screen,
.cq-proof-card__canvas--compare.is-hinting .cq-proof-compare-ui__line,
.cq-proof-card__canvas--compare.is-hinting .cq-proof-compare-ui__handle {
  transition: clip-path 360ms cubic-bezier(0.22, 1, 0.36, 1), left 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] .cq-proof-card__canvas--compare {
  background: radial-gradient(circle at top, rgba(169, 255, 187, 0.18), transparent 48%), linear-gradient(180deg, rgba(14, 18, 28, 0.35), rgba(14, 18, 28, 0.68));
}

.cq-proof-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cq-proof-layer__media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cq-proof-layer__media.cq-proof-card__canvas {
  min-height: 100%;
}

.cq-proof-layer--print {
  z-index: 1;
}

.cq-proof-layer--screen {
  z-index: 2;
  clip-path: inset(0 50% 0 0 round 0);
}

.cq-proof-layer__label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #263550;
  font-size: 0.8rem;
  line-height: 1;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.cq-proof-layer__label--print {
  left: auto;
  right: 10px;
}

:root[data-theme="dark"] .cq-proof-layer__label {
  background: rgba(19, 24, 35, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f7fbff;
}

.cq-proof-compare-ui {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  cursor: ew-resize;
}

.cq-proof-compare-ui__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.3);
}

.cq-proof-compare-ui__handle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fbff 0%, #cdd4e5 100%);
  border: 3px solid rgba(35, 40, 56, 0.9);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.cq-proof-compare-ui__handle-grip {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(35, 40, 56, 0.88);
  box-shadow: -8px 0 0 rgba(35, 40, 56, 0.38), 8px 0 0 rgba(35, 40, 56, 0.38);
}

.cq-proof-media {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.cq-proof-media--pdf {
  border: 0;
  background: rgba(255, 255, 255, 0.06);
}

.cq-proof-media--print {
  filter: saturate(0.54) contrast(0.88) brightness(0.9) sepia(0.1);
}

.cq-proof-placeholder {
  min-height: 220px;
  width: 100%;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.cq-proof-placeholder__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #f2cbe1;
}

.cq-proof-placeholder__icon svg {
  width: 24px;
  height: 24px;
}

.cq-proof-placeholder__title {
  font-size: 1rem;
  line-height: 1.25;
  color: #f6f8ff;
}

.cq-proof-placeholder__text {
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
  max-width: 28ch;
}

.cq-rgb-alert[hidden] {
  display: none !important;
}

.cq-rgb-actions {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.cq-rgb-actions .ds-btn {
  min-width: 0;
  min-height: 50px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
  padding: 0 12px;
  justify-content: center;
  white-space: nowrap;
}

.cq-rgb-actions .ds-btn:not(.ds-btn--secondary) {
  order: 2;
  flex: 3 1 0;
  background: var(--color-acento);
  border-color: transparent;
  box-shadow: 0 16px 28px color-mix(in srgb, var(--color-acento) 28%, transparent);
}

.cq-rgb-actions .ds-btn:not(.ds-btn--secondary):hover,
.cq-rgb-actions .ds-btn:not(.ds-btn--secondary):focus-visible {
  background: var(--color-acento-hover, var(--color-acento));
}

.cq-rgb-actions .ds-btn.ds-btn--secondary {
  order: 1;
  flex: 2 1 0;
  background: rgba(255, 255, 255, 0.38);
  color: #24324b;
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

:root[data-theme="dark"] .cq-rgb-actions .ds-btn.ds-btn--secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.18);
}

@media (min-width: 768px) {
  .cq-rgb-sheet {
    align-items: center;
    padding: 24px;
  }

  .cq-rgb-sheet__dialog {
    width: min(920px, calc(100vw - 48px));
    max-width: 920px;
    min-height: 0;
    max-height: calc(100vh - 48px);
    border-radius: 30px;
    padding: 20px 20px 18px;
    overflow: auto;
  }

  .cq-rgb-sheet__close {
    top: 14px;
    right: 14px;
  }

  .cq-rgb-sheet__top {
    gap: 8px;
    margin-bottom: 12px;
  }

  .cq-proof-card__canvas {
    min-height: 0;
  }

  .cq-proof-card__canvas--compare {
    aspect-ratio: 4 / 5;
    height: min(56vh, 620px);
    margin: 0 auto 16px;
  }

  .cq-proof-layer__media,
  .cq-proof-media,
  .cq-proof-media--pdf {
    object-fit: contain;
    object-position: center center;
    display: block;
    margin: 0 auto;
  }

  .cq-proof-layer__media {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .cq-proof-media,
  .cq-proof-media--pdf {
    width: 100%;
    max-width: 100%;
    height: 100%;
  }

  .cq-rgb-note__title {
    font-size: 0.94rem;
  }

  .cq-rgb-note__text {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .cq-rgb-alert {
    font-size: 0.94rem;
  }
}
