.ccp-app {
  --ccp-ink: var(--college-text, #111827);
  --ccp-muted: var(--college-muted, #566170);
  --ccp-line: var(--college-border, #D9E1EA);
  --ccp-soft: var(--college-surface, #F7F8FA);
  --ccp-white: var(--college-color-white, #FFFFFF);
  --ccp-blue: var(--college-brand-navy, #00235E);
  --ccp-blue-dark: var(--college-brand-navy-deep, #001845);
  --ccp-blue-soft: var(--college-surface-brand-soft, #F1F6FC);
  --ccp-yellow: var(--college-brand-yellow, #FFB600);
  --ccp-green: #087A55;
  --ccp-green-soft: #E7F8F0;
  --ccp-red: #B42336;
  --ccp-red-soft: #FFF0F2;
  --ccp-target-min: var(--college-target-min, 44px);
  --ccp-motion-fast: var(--college-motion-fast, 140ms);
  --ccp-motion-base: var(--college-motion-base, 180ms);
  --ccp-ease-standard: var(--college-ease-standard, cubic-bezier(.2, 0, 0, 1));
  --ccp-shadow: none;
  color: var(--ccp-ink);
  font-family: var(--college-font-body, inherit);
  font-size: 16px;
  line-height: 1.5;
  width: 100%;
}

.ccp-app *,
.ccp-app *::before,
.ccp-app *::after {
  box-sizing: border-box;
}

.ccp-app [hidden] {
  display: none !important;
}

.ccp-app button,
.ccp-app input {
  font: inherit;
}

.ccp-app button {
  color: inherit;
}

.ccp-visually-hidden {
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

.ccp-skip-link {
  background: var(--ccp-yellow);
  border-radius: 8px;
  color: #111a2d !important;
  font-size: 13px;
  font-weight: 800;
  left: 20px;
  padding: 10px 14px;
  position: fixed;
  top: 12px;
  transform: translateY(-180%);
  transition: transform var(--ccp-motion-fast) var(--ccp-ease-standard);
  z-index: 99999;
}

.ccp-skip-link:focus {
  outline: 3px solid #fff;
  transform: translateY(0);
}

.ccp-shell,
.ccp-results {
  background: var(--ccp-soft);
  border: 1px solid var(--ccp-line);
  border-radius: 24px;
  box-shadow: var(--ccp-shadow);
  margin: 20px auto;
  max-width: 1320px;
  overflow: hidden;
}

.ccp-start {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 66px clamp(20px, 6vw, 90px) 54px;
  text-align: center;
}

.ccp-start__heading h2 {
  color: var(--ccp-ink);
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.035em;
  margin: 0;
}

.ccp-start__heading p {
  color: var(--ccp-muted);
  font-size: 14px;
  margin: 7px 0 0;
}

.ccp-main-dropzone {
  align-items: center;
  background: #fff;
  border: 2px dashed #9fb1cc;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 30px;
  max-width: 700px;
  min-height: 160px;
  padding: 32px;
  transition: background var(--ccp-motion-base) var(--ccp-ease-standard), border-color var(--ccp-motion-base) var(--ccp-ease-standard);
  width: 100%;
}

.ccp-main-dropzone:hover,
.ccp-main-dropzone.is-dragging {
  background: var(--ccp-blue-soft);
  border-color: var(--ccp-blue);
}

.ccp-main-dropzone:focus-visible {
  background: var(--ccp-blue-soft);
  border-color: var(--ccp-blue);
  outline: 3px solid var(--college-focus-outline, var(--ccp-blue));
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--college-focus-halo, rgba(255, 182, 0, .38));
}


.ccp-main-dropzone__icon {
  align-items: center;
  background: var(--ccp-blue-soft);
  border-radius: 16px;
  color: var(--ccp-blue);
  display: flex;
  flex: 0 0 64px;
  height: 64px;
  justify-content: center;
}

.ccp-main-dropzone__icon svg {
  fill: none;
  height: 32px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 32px;
}

.ccp-main-dropzone > span:last-child {
  text-align: left;
}

.ccp-main-dropzone strong,
.ccp-main-dropzone small {
  display: block;
}

.ccp-main-dropzone strong {
  font-size: 18px;
}

.ccp-main-dropzone small {
  color: var(--ccp-muted);
  font-size: 12px;
  margin-top: 3px;
}

.ccp-paste-hint {
  align-items: center;
  color: var(--ccp-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 5px;
  justify-content: center;
  margin-top: 16px;
}

.ccp-paste-hint kbd {
  background: #fff;
  border: 1px solid #cbd4e1;
  border-bottom-width: 2px;
  border-radius: 5px;
  color: #3c4960;
  font-family: inherit;
  font-size: 10px;
  font-weight: 750;
  min-width: 24px;
  padding: 3px 6px;
}

.ccp-privacy-note {
  align-items: flex-start;
  color: var(--ccp-muted);
  display: flex;
  font-size: 11px;
  gap: 7px;
  margin: 36px 0 0;
  max-width: 610px;
  text-align: left;
}

.ccp-privacy-note svg,
.ccp-editor-footer svg {
  fill: none;
  flex: 0 0 auto;
  height: 17px;
  stroke: var(--ccp-green);
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 17px;
}

.ccp-privacy-note strong {
  color: #344258;
}

.ccp-error {
  background: var(--ccp-red-soft);
  border: 1px solid #f2c4ca;
  border-radius: 9px;
  color: var(--ccp-red);
  font-size: 12px;
  margin: 15px 0 0;
  padding: 9px 12px;
}

.ccp-editor-error {
  margin: 0 0 14px;
}

.ccp-editor {
  padding: 24px clamp(16px, 3vw, 38px) 34px;
}

.ccp-filebar {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ccp-line);
  border-radius: 14px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.ccp-filebar__identity {
  align-items: center;
  display: flex;
  gap: 11px;
  min-width: 0;
}

.ccp-filebar__identity img {
  background: #e8edf4;
  border-radius: 8px;
  height: 46px;
  object-fit: cover;
  width: 46px;
}

.ccp-filebar__identity div {
  min-width: 0;
}

.ccp-filebar__identity strong,
.ccp-filebar__identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ccp-filebar__identity strong {
  font-size: 13px;
}

.ccp-filebar__identity span {
  color: var(--ccp-muted);
  font-size: 10px;
  margin-top: 2px;
}

.ccp-filebar__actions {
  align-items: center;
  display: flex;
  gap: 7px;
}

.ccp-button,
.ccp-icon-button,
.ccp-text-button,
.ccp-segmented button {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.ccp-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  gap: 7px;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
}

.ccp-button svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
  width: 17px;
}

.ccp-button--primary {
  background: var(--ccp-blue);
  color: #fff !important;
}

.ccp-button--primary:hover,
.ccp-button--primary:focus-visible {
  background: var(--ccp-blue-dark);
}

.ccp-button--secondary {
  background: #fff;
  border-color: #cbd5e4;
  color: var(--ccp-blue-dark) !important;
}

.ccp-button--secondary:hover,
.ccp-button--secondary:focus-visible {
  background: var(--ccp-blue-soft);
  border-color: var(--ccp-blue);
}

.ccp-button:focus-visible,
.ccp-icon-button:focus-visible,
.ccp-text-button:focus-visible,
.ccp-segmented button:focus-visible,
.ccp-auto-palette button:focus-visible,
.ccp-color-values button:focus-visible,
.ccp-saved-palette button:focus-visible,
.ccp-tool-card summary:focus-visible,
.ccp-color-field button:focus-visible,
.ccp-swap-button:focus-visible {
  outline: 3px solid var(--college-focus-outline, var(--ccp-blue));
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--college-focus-halo, rgba(255, 182, 0, .38));
}

.ccp-button:disabled,
.ccp-text-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.ccp-icon-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ccp-line);
  border-radius: 9px;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.ccp-icon-button:hover {
  border-color: var(--ccp-red);
  color: var(--ccp-red);
}

.ccp-icon-button svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
  width: 18px;
}

.ccp-workspace {
  background: #fff;
  border: 1px solid var(--ccp-line);
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 365px;
  height: 640px;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.ccp-workspace::before {
  background: var(--ccp-yellow);
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.ccp-viewer-column {
  background: #eef2f7;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.ccp-viewer-toolbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--ccp-line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 58px;
  padding: 9px 13px;
}

.ccp-viewer-toolbar__hint {
  color: var(--ccp-muted);
  font-size: 10px;
}

.ccp-segmented {
  background: #edf1f7;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  display: inline-flex;
  gap: 3px;
  padding: 3px;
}

.ccp-segmented button {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #536176;
  font-size: 11px;
  font-weight: 760;
  min-height: 34px;
  padding: 6px 10px;
}

.ccp-segmented button.is-active {
  background: #fff;
  color: var(--ccp-blue-dark);
}

.ccp-canvas-viewport {
  align-items: flex-start;
  background-color: #edf1f5;
  background-image:
    linear-gradient(45deg, #e1e6ed 25%, transparent 25%),
    linear-gradient(-45deg, #e1e6ed 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e1e6ed 75%),
    linear-gradient(-45deg, transparent 75%, #e1e6ed 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  position: relative;
  scrollbar-color: #9aa8bc transparent;
  scrollbar-width: thin;
}

.ccp-canvas-stage {
  flex: 0 0 auto;
  line-height: 0;
  margin: 16px auto;
  position: relative;
}

.ccp-canvas-stage > canvas {
  box-shadow: 0 0 0 1px rgba(0, 35, 94, 0.10);
  cursor: crosshair;
  display: block;
  max-width: none !important;
  outline: none;
}

.ccp-canvas-stage > canvas:focus-visible {
  outline: 3px solid var(--college-focus-outline, var(--ccp-blue));
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--college-focus-halo, rgba(255, 182, 0, .38)), 0 0 0 1px rgba(0, 35, 94, 0.10);
}

.ccp-canvas-stage > canvas.is-upscaled {
  image-rendering: pixelated;
}

.ccp-canvas-viewport.is-pan-ready,
.ccp-canvas-viewport.is-pan-ready canvas {
  cursor: grab;
}

.ccp-canvas-viewport.is-panning,
.ccp-canvas-viewport.is-panning canvas {
  cursor: grabbing;
  user-select: none;
}

.ccp-magnifier {
  background: #fff;
  border: 3px solid #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(12, 28, 56, 0.38);
  line-height: 1;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 138px;
  z-index: 5;
}

.ccp-magnifier canvas {
  display: block;
  height: 132px;
  width: 132px;
}

.ccp-magnifier span {
  background: #101d34;
  color: #fff;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  padding: 7px;
  text-align: center;
}

.ccp-canvas-help {
  background: #fff;
  border-top: 1px solid var(--ccp-line);
  color: var(--ccp-muted);
  font-size: 10px;
  margin: 0;
  padding: 8px 13px;
  text-align: center;
}

.ccp-inspector {
  background: #fff;
  border-left: 1px solid var(--ccp-line);
  min-width: 0;
  overflow-y: auto;
  padding: 18px;
  position: relative;
}

.ccp-current-color {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 64px minmax(0, 1fr);
}

.ccp-current-color__swatch {
  background: #e6eaf1;
  border: 2px solid #fff;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--ccp-line);
  height: 64px;
  width: 64px;
}

.ccp-current-color__swatch.is-transparent {
  background-color: #fff !important;
  background-image:
    linear-gradient(45deg, #dce3ed 25%, transparent 25%),
    linear-gradient(-45deg, #dce3ed 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #dce3ed 75%),
    linear-gradient(-45deg, transparent 75%, #dce3ed 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.ccp-current-color .ccp-kicker {
  color: var(--ccp-muted);
  font-size: 9px;
  margin-bottom: 1px;
}

.ccp-current-color strong,
.ccp-current-color div > span:last-child {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ccp-current-color strong {
  font-size: 23px;
  letter-spacing: -0.035em;
}

.ccp-current-color div > span:last-child {
  color: var(--ccp-muted);
  font-size: 10px;
}

.ccp-color-values {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 17px;
}

.ccp-color-values button {
  background: var(--ccp-soft);
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  min-height: 74px;
  overflow: hidden;
  padding: 8px 6px;
  text-align: left;
}

.ccp-color-values button:hover:not(:disabled) {
  background: var(--ccp-blue-soft);
  border-color: var(--ccp-blue);
}

.ccp-color-values button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ccp-color-values span,
.ccp-color-values strong,
.ccp-color-values small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ccp-color-values span {
  color: var(--ccp-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ccp-color-values strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  margin-top: 4px;
}

.ccp-color-values small {
  color: var(--ccp-blue);
  font-size: 8px;
  margin-top: 4px;
}

.ccp-save-color {
  margin-top: 10px;
  width: 100%;
}

.ccp-palette-block {
  border-top: 1px solid var(--ccp-line);
  margin-top: 22px;
  padding-top: 20px;
}

.ccp-block-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.ccp-block-heading h2 {
  color: var(--ccp-ink);
  font-size: 14px;
  margin: 0;
}

.ccp-block-heading p {
  color: var(--ccp-muted);
  font-size: 9px;
  margin: 2px 0 0;
}

.ccp-text-button {
  background: transparent;
  border: 0;
  color: var(--ccp-blue);
  font-size: 10px;
  font-weight: 750;
  min-height: 32px;
  padding: 5px;
}

.ccp-auto-palette {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 11px;
}

.ccp-auto-palette button {
  background: #fff;
  border: 1px solid var(--ccp-line);
  border-radius: 9px;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.ccp-auto-palette button:hover {
  border-color: var(--ccp-blue);
}

.ccp-auto-palette button span {
  display: block;
  height: 38px;
}

.ccp-auto-palette button strong {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  padding: 6px;
  text-align: center;
}

.ccp-saved-palette {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.ccp-saved-palette > div {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
}

.ccp-saved-color {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid var(--ccp-line);
  border-radius: 9px 0 0 9px;
  cursor: pointer;
  display: grid;
  gap: 7px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  min-height: 44px;
  padding: 6px 8px;
  text-align: left;
}

.ccp-saved-color > span {
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--ccp-line);
  height: 26px;
  width: 26px;
}

.ccp-saved-color strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.ccp-saved-color small {
  color: var(--ccp-muted);
  font-size: 8px;
}

.ccp-remove-color {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ccp-line);
  border-left: 0;
  border-radius: 0 9px 9px 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
}

.ccp-remove-color:hover {
  color: var(--ccp-red);
}

.ccp-remove-color svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
  width: 16px;
}

.ccp-toast {
  background: #101d34;
  border-radius: 8px;
  bottom: 14px;
  color: #fff;
  font-size: 10px;
  left: 18px;
  opacity: 0;
  padding: 9px 11px;
  pointer-events: none;
  position: absolute;
  right: 18px;
  text-align: center;
  transform: translateY(7px);
  transition: opacity var(--ccp-motion-fast) var(--ccp-ease-standard), transform var(--ccp-motion-fast) var(--ccp-ease-standard);
  z-index: 8;
}

.ccp-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ccp-file-facts {
  background: #fff;
  border-block: 1px solid var(--ccp-line);
  border-inline: 0;
  border-radius: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 14px;
  overflow: hidden;
}

.ccp-file-facts > div {
  border-right: 1px solid var(--ccp-line);
  min-width: 0;
  padding: 14px 16px;
}

.ccp-file-facts > div:last-child {
  border-right: 0;
}

.ccp-file-facts span,
.ccp-file-facts strong {
  display: block;
}

.ccp-file-facts span {
  color: var(--ccp-muted);
  font-size: 9px;
  margin-bottom: 3px;
}

.ccp-file-facts strong {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ccp-tools {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.ccp-tool-card {
  background: #fff;
  border: 1px solid var(--ccp-line);
  border-radius: 12px;
  overflow: hidden;
}

.ccp-tool-card summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  list-style: none;
  min-height: 64px;
  padding: 10px 14px;
}

.ccp-tool-card summary::-webkit-details-marker {
  display: none;
}

.ccp-tool-card summary:hover {
  background: #fafbfd;
}

.ccp-tool-card summary > span:nth-child(2) strong,
.ccp-tool-card summary > span:nth-child(2) small {
  display: block;
}

.ccp-tool-card summary > span:nth-child(2) strong {
  font-size: 13px;
}

.ccp-tool-card summary > span:nth-child(2) small {
  color: var(--ccp-muted);
  font-size: 10px;
  margin-top: 2px;
}

.ccp-tool-card summary > svg {
  fill: none;
  height: 20px;
  stroke: var(--ccp-muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform var(--ccp-motion-base) var(--ccp-ease-standard);
  width: 20px;
}

.ccp-tool-card[open] summary > svg {
  transform: rotate(180deg);
}

.ccp-tool-icon {
  align-items: center;
  background: var(--ccp-blue-soft);
  border-radius: 10px;
  color: var(--ccp-blue-dark);
  display: flex;
  font-size: 14px;
  font-weight: 850;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.ccp-tool-icon svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 21px;
}

.ccp-tool-content {
  border-top: 1px solid var(--ccp-line);
  padding: 18px;
}

.ccp-contrast-tool {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
}

.ccp-contrast-inputs {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
}

.ccp-color-field > label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 7px;
}

.ccp-color-field > div {
  align-items: center;
  background: var(--ccp-soft);
  border: 1px solid var(--ccp-line);
  border-radius: 10px;
  display: grid;
  gap: 7px;
  grid-template-columns: 38px minmax(80px, 1fr) auto;
  padding: 6px;
}

.ccp-color-field input[type="color"] {
  background: transparent;
  border: 0;
  border-radius: 7px;
  height: 36px;
  padding: 0;
  width: 38px;
}

.ccp-color-field input[type="text"] {
  background: transparent;
  border: 0;
  color: var(--ccp-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  min-width: 0;
  outline: none;
  padding: 7px 3px;
  width: 100%;
}

.ccp-color-field input[aria-invalid="true"] {
  color: var(--ccp-red);
  text-decoration: underline wavy;
}

.ccp-color-field input[type="text"]:focus-visible,
.ccp-color-field input[type="color"]:focus-visible {
  outline: 3px solid var(--college-focus-outline, var(--ccp-blue));
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--college-focus-halo, rgba(255, 182, 0, .38));
}

.ccp-color-field button {
  background: #fff;
  border: 1px solid var(--ccp-line);
  border-radius: 7px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  min-height: 34px;
  padding: 5px 7px;
}

.ccp-swap-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ccp-line);
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.ccp-swap-button svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 19px;
}

.ccp-contrast-result {
  border: 1px solid currentColor;
  border-radius: 12px;
  min-height: 146px;
  padding: 16px;
}

.ccp-contrast-result > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.ccp-contrast-result > div span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ccp-contrast-result > div strong {
  font-size: 19px;
}

.ccp-contrast-result > p {
  font-size: 15px;
  font-weight: 700;
  margin: 12px 0;
}

.ccp-contrast-result ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ccp-contrast-result li {
  background: rgba(127, 127, 127, 0.16);
  border-radius: 99px;
  font-size: 8px;
  font-weight: 800;
  padding: 5px 7px;
}

.ccp-formula {
  align-items: center;
  background: var(--ccp-blue-soft);
  border-radius: 10px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 0 0 12px;
  padding: 11px 13px;
}

.ccp-formula strong {
  font-size: 13px;
}

.ccp-formula span {
  color: var(--ccp-muted);
  font-size: 10px;
}

.ccp-ppi-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ccp-ppi-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ccp-line);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: 48px minmax(105px, 0.6fr) minmax(130px, 1fr);
  padding: 10px;
}

.ccp-ppi-row > label {
  font-size: 11px;
  font-weight: 800;
}

.ccp-input-suffix {
  position: relative;
}

.ccp-input-suffix input {
  background: #f7f9fc;
  border: 1px solid var(--ccp-line);
  border-radius: 8px;
  color: var(--ccp-ink);
  height: 42px;
  padding: 0 38px 0 10px;
  width: 100%;
}

.ccp-input-suffix input:focus {
  border-color: var(--ccp-blue);
  outline: none;
}

.ccp-input-suffix input:focus-visible {
  outline: 3px solid var(--college-focus-outline, var(--ccp-blue));
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--college-focus-halo, rgba(255, 182, 0, .38));
}

.ccp-input-suffix input[aria-invalid="true"] {
  border-color: var(--ccp-red);
}

.ccp-input-suffix span {
  color: var(--ccp-muted);
  font-size: 9px;
  pointer-events: none;
  position: absolute;
  right: 9px;
  top: 14px;
}

.ccp-ppi-row > div:last-child strong,
.ccp-ppi-row > div:last-child small {
  display: block;
  white-space: nowrap;
}

.ccp-ppi-row > div:last-child strong {
  font-size: 12px;
}

.ccp-ppi-row > div:last-child small {
  color: var(--ccp-muted);
  font-size: 9px;
  margin-top: 2px;
}

.ccp-editor-footer {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 2px 0;
}

.ccp-editor-footer > span {
  align-items: center;
  color: var(--ccp-muted);
  display: flex;
  font-size: 10px;
  gap: 6px;
}

.ccp-results {
  background: #fff;
  padding: clamp(24px, 5vw, 64px);
}

.ccp-results__header {
  align-items: flex-end;
  border-bottom: 1px solid var(--ccp-line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-bottom: 20px;
}

.ccp-results__header .ccp-eyebrow {
  color: var(--ccp-blue);
}

.ccp-results__header h2 {
  color: var(--ccp-ink);
  font-size: clamp(29px, 4vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}

.ccp-result-grid {
  align-items: start;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.75fr);
}

.ccp-result-image {
  background: #e9eef5;
  border-radius: 14px;
  line-height: 0;
  overflow: hidden;
}

.ccp-result-image img {
  display: block;
  height: auto;
  width: 100%;
}

.ccp-result-grid aside {
  background: var(--ccp-soft);
  border: 1px solid var(--ccp-line);
  border-radius: 14px;
  padding: 22px;
}

.ccp-result-grid aside .ccp-kicker {
  color: var(--ccp-blue);
}

.ccp-result-grid aside h3 {
  font-size: 19px;
  margin: 0;
  overflow-wrap: anywhere;
}

.ccp-result-grid aside > p {
  color: var(--ccp-muted);
  font-size: 10px;
  margin: 4px 0 0;
}

.ccp-result-palette {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.ccp-result-palette > div {
  background: #fff;
  border: 1px solid var(--ccp-line);
  border-radius: 9px;
  overflow: hidden;
}

.ccp-result-palette span {
  display: block;
  height: 54px;
}

.ccp-result-palette strong {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  padding: 7px;
  text-align: center;
}

.ccp-results__privacy {
  color: var(--ccp-muted);
  font-size: 9px;
  margin: 18px 0 0;
  text-align: center;
}

.ccp-developer-credit {
  color: #7b8799;
  font-size: 10px;
  margin: 0;
  padding: 11px 20px 14px;
  text-align: center;
}

.ccp-developer-credit a {
  color: #536176;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #b8c2d0;
  text-underline-offset: 3px;
}

.ccp-developer-credit a:hover,
.ccp-developer-credit a:focus-visible {
  color: var(--ccp-blue-dark);
  text-decoration-color: currentColor;
}

.ccp-developer-credit a:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--ccp-yellow);
  outline-offset: 3px;
}


.ccp-developer-credit > span:not(.ccp-credit-separator) {
  color: var(--ccp-muted);
}

@media (max-width: 1000px) {
  .ccp-workspace {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .ccp-color-values {
    grid-template-columns: 1fr;
  }

  .ccp-color-values button {
    align-items: center;
    display: grid;
    gap: 7px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    min-height: 44px;
  }

  .ccp-color-values span,
  .ccp-color-values strong,
  .ccp-color-values small {
    margin: 0;
  }

  .ccp-contrast-tool {
    grid-template-columns: 1fr;
  }

  .ccp-ppi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .ccp-shell,
  .ccp-results {
    border-radius: 18px;
    margin: 10px auto;
  }

  .ccp-workspace {
    grid-template-columns: 1fr;
    height: auto;
  }

  .ccp-inspector {
    border-left: 0;
    border-top: 1px solid var(--ccp-line);
    overflow-y: visible;
  }

  .ccp-color-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ccp-color-values button {
    display: block;
    min-height: 74px;
  }

  .ccp-color-values strong,
  .ccp-color-values small {
    margin-top: 4px;
  }

  .ccp-canvas-viewport {
    flex: 0 0 470px;
    height: 470px;
    min-height: 0;
  }

  .ccp-file-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ccp-file-facts > div {
    border-bottom: 1px solid var(--ccp-line);
  }

  .ccp-file-facts > div:nth-child(3) {
    border-right: 0;
  }

  .ccp-file-facts > div:nth-child(n+4) {
    border-bottom: 0;
  }

  .ccp-result-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ccp-start {
    min-height: 490px;
    padding-top: 48px;
  }

  .ccp-main-dropzone {
    flex-direction: column;
    min-height: 210px;
  }

  .ccp-main-dropzone > span:last-child {
    text-align: center;
  }

  .ccp-editor {
    padding-inline: 10px;
  }

  .ccp-filebar {
    align-items: stretch;
    flex-direction: column;
  }

  .ccp-filebar__actions .ccp-button {
    flex: 1;
  }

  .ccp-viewer-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ccp-viewer-toolbar__hint {
    text-align: center;
  }

  .ccp-segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .ccp-canvas-viewport {
    flex-basis: 370px;
    height: 370px;
  }

  .ccp-color-values {
    grid-template-columns: 1fr;
  }

  .ccp-color-values button {
    align-items: center;
    display: grid;
    gap: 7px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    min-height: 48px;
  }

  .ccp-color-values strong,
  .ccp-color-values small {
    margin: 0;
  }

  .ccp-button,
  .ccp-icon-button,
  .ccp-text-button,
  .ccp-segmented button,
  .ccp-color-field button {
    min-height: var(--ccp-target-min);
  }

  .ccp-icon-button {
    height: var(--ccp-target-min);
    width: var(--ccp-target-min);
  }

  .ccp-color-field > div {
    grid-template-columns: var(--ccp-target-min) minmax(80px, 1fr) auto;
  }

  .ccp-color-field input[type="color"] {
    height: var(--ccp-target-min);
    width: var(--ccp-target-min);
  }

  .ccp-saved-palette > div {
    grid-template-columns: minmax(0, 1fr) var(--ccp-target-min);
  }

  .ccp-file-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ccp-file-facts > div,
  .ccp-file-facts > div:nth-child(3),
  .ccp-file-facts > div:nth-child(n+4) {
    border-bottom: 1px solid var(--ccp-line);
    border-right: 1px solid var(--ccp-line);
  }

  .ccp-file-facts > div:nth-child(even) {
    border-right: 0;
  }

  .ccp-file-facts > div:last-child {
    border-bottom: 0;
  }

  .ccp-contrast-inputs {
    grid-template-columns: 1fr 44px;
  }

  .ccp-color-field:last-child {
    grid-column: 1 / -1;
  }

  .ccp-ppi-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .ccp-ppi-row > div:last-child {
    grid-column: 1 / -1;
    padding-left: 56px;
  }

  .ccp-editor-footer,
  .ccp-results__header {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ccp-app *,
  .ccp-app *::before,
  .ccp-app *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .ccp-main-dropzone,
  .ccp-tool-card,
  .ccp-workspace,
  .ccp-filebar,
  .ccp-file-facts,
  .ccp-color-values button,
  .ccp-auto-palette button {
    border: 2px solid CanvasText;
  }

  .ccp-current-color__swatch,
  .ccp-auto-palette button span,
  .ccp-saved-color > span,
  .ccp-result-palette span {
    forced-color-adjust: none;
  }
}

@media print {
  .ccp-app.is-results-mode .ccp-results {
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
  }

  .ccp-app.is-results-mode .ccp-results__header .ccp-button {
    display: none !important;
  }
}
