/* Deliberately neutral review chrome: site colors remain the comparison subject. */
.copy-editor-link {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 899;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 14px;
  color: #191919;
  background: #ffffff;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  box-shadow: 0 3px 18px #00000024;
  font: 700 14px/1.4 Arial, Helvetica, sans-serif;
  text-decoration: none;
}
.copy-editor-link:hover {
  color: #191919;
  background: #f2f2f2;
}
.copy-editor-link:focus-visible {
  outline: 3px solid #1d5d9b;
  outline-offset: 3px;
}
.palette-debug {
  color-scheme: light;
  position: fixed;
  inset: auto max(18px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom)) auto;
  z-index: 900;
  color: #191919;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  letter-spacing: 0;
}
.palette-debug *,
.palette-debug *::before,
.palette-debug *::after {
  box-sizing: border-box;
}
.palette-debug [hidden] {
  display: none !important;
}
.palette-debug button {
  font-family: inherit;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.palette-debug button:focus-visible,
.palette-debug input:focus-visible,
.palette-debug summary:focus-visible,
.palette-debug textarea:focus-visible {
  outline: 3px solid #1d5d9b;
  outline-offset: 3px;
}
.palette-debug__launcher {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 9px 15px 9px 10px;
  background: #ffffff;
  color: #191919;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  box-shadow: 0 3px 18px #00000024;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
}
.palette-debug__launcher:hover {
  background: #f2f2f2;
}
.palette-debug__launcher-icon {
  display: grid;
  grid-template-columns: 12px 12px;
  gap: 2px;
}
.palette-debug__launcher-icon i {
  display: block;
  width: 12px;
  height: 12px;
  border: 1px solid #00000020;
}
.palette-debug__current {
  display: block;
  margin-top: 3px;
  color: #616161;
  font-size: 14px;
  font-weight: 400;
}
.palette-debug__panel {
  position: absolute;
  inset: auto 0 calc(100% + 10px) auto;
  width: min(390px, calc(100vw - 36px));
  max-height: calc(100vh - 104px);
  max-height: calc(100dvh - 104px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 20px;
  background: #ffffff;
  color: #191919;
  border: 1px solid #cecece;
  border-radius: 8px;
  box-shadow: 0 10px 45px #00000030;
  scrollbar-width: thin;
  scrollbar-color: #a5a5a5 #f0f0f0;
}
.palette-debug__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.palette-debug__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #616161;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.7px;
}
.palette-debug h2 {
  margin: 0;
  color: #191919;
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
  text-transform: none;
}
.palette-debug__close {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: -5px -6px 0 0;
  color: #444444;
  background: transparent;
  border: 0;
  border-radius: 3px;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}
.palette-debug__close:hover {
  background: #f0f0f0;
}
.palette-debug .palette-debug__intro {
  margin: 0 0 16px;
  color: #595959;
  font-size: 14px;
  line-height: 1.5;
}
.palette-debug__presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.palette-debug__preset {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  background: #ffffff;
  color: #292929;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}
.palette-debug__preset:hover {
  border-color: #696969;
}
.palette-debug__preset[aria-pressed="true"] {
  border-color: #191919;
  box-shadow: inset 0 0 0 1px #191919;
}
.palette-debug__swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 24px;
  overflow: hidden;
  border: 1px solid #00000015;
  border-radius: 2px;
}
.palette-debug__swatches i {
  display: block;
}
.palette-debug__selected {
  position: absolute;
  top: 12px;
  right: 12px;
  display: none;
  width: 18px;
  height: 18px;
  background: #ffffff;
  color: #191919;
  border-radius: 50%;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
}
.palette-debug__preset[aria-pressed="true"] .palette-debug__selected {
  display: block;
}
.palette-debug__custom {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 9px 12px;
  color: #292929;
  background: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}
.palette-debug__custom[aria-pressed="true"] {
  border-color: #191919;
  box-shadow: inset 0 0 0 1px #191919;
}
.palette-debug__custom:hover:not(:disabled) {
  background: #f2f2f2;
}
.palette-debug__custom:disabled {
  color: #737373;
  background: #f5f5f5;
  cursor: default;
}
.palette-debug .palette-debug__note {
  margin: 13px 0 10px;
  color: #595959;
  font-size: 14px;
  line-height: 1.4;
}
.palette-debug__values {
  display: block;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid #e7e7e7;
  border-bottom: 1px solid #e7e7e7;
}
.palette-debug__field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px 96px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 0;
}
.palette-debug__field label {
  margin: 0;
  color: #595959;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}
.palette-debug input.palette-debug__picker,
.palette-debug input.palette-debug__hex {
  display: block;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 8px 6px;
  color: #191919;
  background: #ffffff;
  border: 1px solid #b9b9b9;
  border-radius: 4px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: none;
}
.palette-debug input.palette-debug__picker {
  padding: 3px;
  cursor: pointer;
}
.palette-debug__picker::-webkit-color-swatch-wrapper {
  padding: 0;
}
.palette-debug__picker::-webkit-color-swatch,
.palette-debug__picker::-moz-color-swatch {
  border: 0;
  border-radius: 2px;
}
.palette-debug input[aria-invalid="true"] {
  border: 2px solid #a71919;
}
.palette-debug .palette-debug__advanced {
  padding: 0;
  border-top: 0;
  border-bottom: 1px solid #e7e7e7;
}
.palette-debug__advanced summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 12px 0;
  color: #191919;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.palette-debug__advanced summary span {
  grid-column: 1;
  color: #595959;
  font-weight: 400;
}
.palette-debug__advanced summary::after {
  grid-column: 2;
  grid-row: 1 / 3;
  color: #191919;
  font: 400 22px/1 Arial, sans-serif;
}
.palette-debug__advanced .palette-debug__values {
  padding-top: 0;
  border: 0;
}
.palette-debug__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.palette-debug__button {
  flex: 1;
  min-height: 38px;
  padding: 9px 10px;
  background: #191919;
  color: #ffffff;
  border: 1px solid #191919;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.palette-debug__button:hover {
  background: #393939;
}
.palette-debug__button--quiet {
  background: #ffffff;
  color: #333333;
  border-color: #d0d0d0;
}
.palette-debug__button--quiet:hover {
  background: #f1f1f1;
}
.palette-debug__fallback {
  display: block;
  margin-top: 12px;
  color: #595959;
  font-size: 14px;
}
.palette-debug__fallback textarea {
  display: block;
  width: 100%;
  margin: 5px 0 0;
  padding: 8px;
  color: #191919;
  background: #f4f4f4;
  border: 1px solid #cecece;
  border-radius: 3px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 14px;
  resize: vertical;
}
.palette-debug .palette-debug__status {
  min-height: 0;
  margin: 0;
  color: #595959;
  font-size: 14px;
  line-height: 1.4;
}
.palette-debug .palette-debug__status:not(:empty) {
  margin-top: 10px;
}
@media print {
  .copy-editor-link,
  .palette-debug {
    display: none !important;
  }
}
