.cp {
  color: var(--ink, #20261e);
  width: min(100%, 36rem);
  margin: 0 auto;
  padding: 0 0 2rem;
}
.cp [hidden] {
  display: none !important;
}
.cp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.cp-date {
  margin: 0 0 0.3rem;
  color: var(--muted, #62685c);
  font-size: 0.84rem;
}
.cp h1 {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.cp button {
  font: inherit;
  font-weight: 600;
  color: inherit;
  border: 1px solid #c9cdbf;
  background: transparent;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}
.cp button:focus-visible,
.cp input:focus-visible {
  outline: 3px solid #829539;
  outline-offset: 3px;
}
.cp .cp-primary {
  color: #1e2419;
  background: var(--accent, #dcf578);
  border-color: var(--accent, #dcf578);
}
.cp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  gap: 0.4rem;
}
.cp-steps li {
  border-top: 3px solid #d5d8cb;
  padding-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted, #62685c);
}
.cp-steps .cp-stored {
  border-color: #92ac61;
}
.cp-steps .cp-selected {
  border-color: var(--ink, #20261e);
  color: var(--ink, #20261e);
  font-weight: 700;
}
.cp-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 38vh);
  width: min(100%, 48svh);
  aspect-ratio: 3/4;
  margin: 0 auto;
  background: #22261e;
  color: white;
  border-radius: 1rem;
}
.cp-frame video,
.cp-frame .cp-ghost,
.cp-flash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cp-frame video {
  transform: none;
}
.cp-ghost {
  opacity: 0.35;
  pointer-events: none;
}
.cp-guides {
  position: absolute;
  inset: 8%;
  pointer-events: none;
}
.cp-guides i {
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid #ffffffa6;
}
.cp-guides i:nth-child(1) {
  left: 0;
  top: 0;
  border-right: 0;
  border-bottom: 0;
}
.cp-guides i:nth-child(2) {
  right: 0;
  top: 0;
  border-left: 0;
  border-bottom: 0;
}
.cp-guides i:nth-child(3) {
  left: 0;
  bottom: 0;
  border-right: 0;
  border-top: 0;
}
.cp-guides i:nth-child(4) {
  right: 0;
  bottom: 0;
  border-left: 0;
  border-top: 0;
}
.cp-cue {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 1.4rem);
  padding: 0.48rem 0.7rem;
  border-radius: 0.6rem;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.3;
  background: #1b201bea;
  color: white;
}
.cp-cue[data-level="good"] {
  color: #dcf578;
}
.cp-count {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  background: #20261edc;
}
.cp-flash {
  pointer-events: none;
  opacity: 0;
  background: #fff;
}
.cp-slider {
  display: flex;
  margin: 0.6rem auto 0;
  gap: 0.65rem;
  width: min(100%, 27rem);
  align-items: center;
  min-height: 44px;
  font-size: 0.82rem;
}
.cp-slider input {
  flex: 1;
  min-width: 0;
  accent-color: #607331;
}
.cp-slider output {
  width: 3.2em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cp-tools,
.cp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.cp-tools {
  margin-top: 0.75rem;
  justify-content: center;
}
.cp-panel {
  padding: 1.15rem;
  border-radius: 1rem;
  border: 1px solid #d3d7c9;
}
.cp-panel [data-message] {
  margin: 0;
  line-height: 1.5;
}
.cp-actions:not(:empty) {
  margin-top: 1rem;
}
.cp-compare {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.cp-compare figure {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.cp-compare img {
  width: 100%;
  display: block;
  max-height: 46vh;
  object-fit: contain;
  border-radius: 0.55rem;
  background: #252920;
}
.cp-compare figcaption {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted, #62685c);
}
@media (prefers-reduced-motion: reduce) {
  .cp-flash {
    display: none;
  }
}
