html.cq-rgb-sheet-open,
body.cq-rgb-sheet-open {
  overflow: hidden;
}
.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: var(--radius-pill);
  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;
  font-weight: 700;
  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.42);
}

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

.cq-rgb-advice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 120, 0.24);
  background:
    linear-gradient(180deg, rgba(212, 175, 120, 0.08), rgba(212, 175, 120, 0.03));
  color: rgba(43, 58, 84, 0.92);
}

:root[data-theme="dark"] .cq-rgb-advice {
  border-color: rgba(218, 184, 132, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    linear-gradient(90deg, rgba(218, 184, 132, 0.08), rgba(218, 184, 132, 0.025));
  color: rgba(244, 247, 255, 0.9);
}

.cq-rgb-advice__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(212, 175, 120, 0.14);
  border: 1px solid rgba(212, 175, 120, 0.22);
}

:root[data-theme="dark"] .cq-rgb-advice__icon {
  background: rgba(218, 184, 132, 0.12);
  border-color: rgba(218, 184, 132, 0.20);
}

.cq-rgb-advice__icon svg,
.cq-rgb-advice__icon .lucide {
  width: 16px;
  height: 16px;
  color: #d4af78;
}

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

.cq-rgb-advice__title {
  font-size: 0.84rem;
  line-height: 1.25;
  font-weight: 700;
  color: inherit;
}

.cq-rgb-advice__text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: inherit;
  opacity: 0.82;
}

.cq-rgb-advice__compare {
  margin: 4px 0 0;
  padding: 0;
  width: fit-content;
  max-width: 100%;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(140, 96, 32, 0.78);
  background: transparent;
  border: 0;
  border-radius: 0;
}

:root[data-theme="dark"] .cq-rgb-advice__compare {
  color: rgba(238, 210, 160, 0.72);
}

@media (min-width: 640px) {
  .cq-rgb-advice {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
  }
}

.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: 12px;
  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(20, 25, 39, 0.92) 0%, rgba(13, 18, 30, 0.94) 100%);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.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: 18px;
  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(154, 190, 178, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(23, 30, 43, 0.72), rgba(17, 23, 34, 0.86));
}

.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: 18px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(20, 24, 34, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  display: grid;
  place-items: center;
  pointer-events: none;
}

:root[data-theme="light"] .cq-proof-compare-ui__handle {
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(35, 40, 56, 0.18);
  box-shadow:
    0 6px 16px rgba(60, 70, 90, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.cq-proof-compare-ui__handle-grip {
  position: relative;
  width: 12px;
  height: 8px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.cq-proof-compare-ui__handle-grip::before,
.cq-proof-compare-ui__handle-grip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: translateY(-50%);
}

.cq-proof-compare-ui__handle-grip::before {
  left: 0;
  border-right: 4px solid rgba(255, 255, 255, 0.88);
}

.cq-proof-compare-ui__handle-grip::after {
  right: 0;
  border-left: 4px solid rgba(255, 255, 255, 0.88);
}

:root[data-theme="light"] .cq-proof-compare-ui__handle-grip::before {
  border-right-color: rgba(35, 40, 56, 0.82);
}

:root[data-theme="light"] .cq-proof-compare-ui__handle-grip::after {
  border-left-color: rgba(35, 40, 56, 0.82);
}

@media (max-width: 480px) {
  .cq-proof-compare-ui__handle {
    width: 16px;
    height: 48px;
  }
  .cq-proof-compare-ui__handle-grip {
    width: 10px;
    height: 7px;
  }
  .cq-proof-compare-ui__handle-grip::before,
  .cq-proof-compare-ui__handle-grip::after {
    border-top-width: 3.5px;
    border-bottom-width: 3.5px;
  }
  .cq-proof-compare-ui__handle-grip::before {
    border-right-width: 3.5px;
  }
  .cq-proof-compare-ui__handle-grip::after {
    border-left-width: 3.5px;
  }
}

.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: 16px;
}

.cq-rgb-actions .ds-btn {
  min-width: 0;
  min-height: 40px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.1;
  padding: 0 22px;
  justify-content: center;
  white-space: nowrap;
  box-shadow: none;
}

.cq-rgb-actions #cq-rgb-upload-cmyk,
.cq-rgb-actions #pdpRgbUploadCmyk,
.cq-rgb-actions .ds-btn--glass {
  flex: 0 0 auto;
  background: rgba(61, 69, 99, 0.42);
  border: 1px solid rgba(155, 166, 205, 0.32);
  color: rgba(244, 247, 255, 0.9);
  box-shadow: none;
}

.cq-rgb-actions #cq-rgb-continue,
.cq-rgb-actions #pdpRgbContinue {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(155, 166, 205, 0.32);
}

:root[data-theme="light"] .cq-rgb-actions #cq-rgb-upload-cmyk,
:root[data-theme="light"] .cq-rgb-actions #pdpRgbUploadCmyk,
:root[data-theme="light"] .cq-rgb-actions .ds-btn--glass {
  background: rgba(34, 48, 72, 0.04);
  border-color: rgba(34, 48, 72, 0.12);
  color: rgba(34, 48, 72, 0.78);
}

.cq-rgb-actions .ds-btn--glass:hover,
.cq-rgb-actions .ds-btn--glass:focus-visible,
.cq-rgb-actions #cq-rgb-upload-cmyk:hover,
.cq-rgb-actions #cq-rgb-upload-cmyk:focus-visible,
.cq-rgb-actions #pdpRgbUploadCmyk:hover,
.cq-rgb-actions #pdpRgbUploadCmyk:focus-visible {
  background: rgba(78, 88, 125, 0.5);
}

:root[data-theme="light"] .cq-rgb-actions .ds-btn--glass:hover,
:root[data-theme="light"] .cq-rgb-actions .ds-btn--glass:focus-visible {
  background: rgba(34, 48, 72, 0.08);
}

@media (min-width: 640px) {
  .cq-rgb-actions {
    justify-content: flex-end;
    gap: 12px;
  }

  .cq-rgb-actions .ds-btn {
    flex: 0 0 auto;
    min-height: 40px;
    min-width: 162px;
  }

  .cq-rgb-actions #cq-rgb-upload-cmyk,
  .cq-rgb-actions #cq-rgb-continue,
  .cq-rgb-actions #pdpRgbUploadCmyk,
  .cq-rgb-actions #pdpRgbContinue,
  .cq-rgb-actions .ds-btn--glass {
    min-width: 180px;
    max-width: 260px;
  }

}

@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;
    width: min(416px, calc(100% - 28px));
    height: min(64vh, 520px);
    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-alert {
    font-size: 0.94rem;
  }
}
