.rcw { --rcw-ink: #283b37; --rcw-paper: #faf5e9; --rcw-line: #a2a499; color: var(--rcw-ink); font: 16px/1.45 Georgia, serif; }
.rcw button,.rcw select,.rcw input { font: inherit; color: inherit; accent-color: var(--rcw-ink); }
.rcw button,.rcw select { cursor: pointer; }
.rcw button { min-height: 44px; border: 1px solid var(--rcw-line); background: transparent; padding: 8px 14px; border-radius: 3px; }
.rcw button:disabled { opacity: .45; cursor: default; }
.rcw :focus-visible { outline: 3px solid #285f75; outline-offset: 3px; }
.rcw ::selection { color: var(--rcw-paper); background: var(--rcw-ink); }
.rcw .rcw-trigger,.rcw .rcw-done { background: var(--rcw-ink); color: var(--rcw-paper); border-color: var(--rcw-ink); }
.rcw-caption { font: 12px/1.5 Arial,sans-serif; margin: 8px 0 0; }
.rcw-dialog { width: min(800px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 0; background: transparent; color: var(--rcw-ink); overflow: auto; overscroll-behavior: contain; scrollbar-color: #7b8a7c var(--rcw-paper); }
.rcw-dialog::backdrop { background: rgb(23 37 34 / .42); }
.rcw-sheet { position: relative; isolation: isolate; padding: 28px 32px 24px; background: var(--rcw-paper); border-radius: 8% 4% 7% 3% / 4% 8% 3% 6%; }
.rcw-sheet::before { content: ''; position: absolute; z-index: -1; inset: 0; background: var(--rcw-paint,#889583); opacity: .12; pointer-events: none; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600' preserveAspectRatio='none'%3E%3Cpath d='M0 0H800V34C690 10 650 83 571 51S466 16 405 58 322 10 240 40 150 8 89 51 23 70 0 92Z' fill='black'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat; }
.rcw-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.rcw-header h2 { font-size: clamp(24px,4vw,32px); font-weight: 400; line-height: 1.1; margin: 0; }
.rcw .rcw-close { display: grid; place-items: center; padding: 8px; flex: 0 0 44px; border: 0; }
.rcw-surfaces { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; border: 0; }
.rcw-surfaces legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rcw-surfaces label { display: flex; align-items: center; gap: 8px; min-height: 44px; box-sizing: border-box; padding: 8px 12px; border: 1px solid var(--rcw-line); border-radius: 3px; cursor: pointer; }
.rcw-surfaces label:has(input:checked) { border-color: var(--rcw-ink); background: #e4e6da; }
.rcw-surfaces input { margin: 0; }
.rcw-surfaces [data-chip] { width: 16px; height: 20px; border: 1px solid #53665c; }
.rcw-body { display: grid; grid-template-columns: minmax(0,1fr) 180px; gap: 28px; align-items: start; }
.rcw-choices { min-width: 0; }
.rcw-selects { display: grid; gap: 12px; }
.rcw-selects label,.rcw-sliders label { display: block; font: 13px/1.4 Arial,sans-serif; }
.rcw select,.rcw input[type=text] { display: block; width: 100%; min-height: 44px; padding: 8px; margin-top: 4px; box-sizing: border-box; border: 1px solid var(--rcw-line); border-radius: 2px; background: var(--rcw-paper); }
.rcw-palette { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.rcw .rcw-swatch { min-width: 0; padding: 4px; font: 12px/1.3 Arial,sans-serif; border-color: transparent; overflow-wrap: anywhere; }
.rcw .rcw-swatch[aria-pressed=true] { border-color: var(--rcw-ink); background: #e4e6da; }
.rcw-paint { display: block; width: 100%; height: 76px; margin-bottom: 8px; border-radius: 37% 27% 29% 21% / 13% 15% 12% 20%; }
.rcw-source { font: 12px/1.5 Arial,sans-serif; margin: 16px 0 0; }
.rcw-comparison { border-left: 1px solid var(--rcw-line); padding-left: 20px; font: 13px/1.4 Arial,sans-serif; }
.rcw-pair { display: flex; height: 126px; }
.rcw-pair > div { flex: 1; padding: 8px; }
.rcw-pair b { background: var(--rcw-paper); color: var(--rcw-ink); display: inline-grid; place-items: center; width: 24px; height: 24px; font: 13px Arial,sans-serif; }
.rcw-comparison p { margin: 8px 0 0; overflow-wrap: anywhere; }
.rcw-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid var(--rcw-line); margin-top: 24px; padding-top: 16px; }
.rcw-tools { display: flex; gap: 4px; flex-wrap: wrap; }
.rcw-tools button { font: 13px/1.3 Arial,sans-serif; padding: 8px 10px; }
.rcw-free { display: grid; grid-template-columns: minmax(120px,1fr) minmax(120px,1fr); gap: 16px; padding-top: 16px; }
.rcw-wheel { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; touch-action: none; cursor: crosshair; }
.rcw-wheel canvas { display: block; width: 100%; height: 100%; border-radius: 50%; }
.rcw-needle { position: absolute; width: 12px; height: 12px; border: 2px solid #fff; outline: 1px solid #243a32; border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.rcw-help { font: 11px/1.4 Arial,sans-serif; margin: 8px 0; }
.rcw-sliders { display: grid; gap: 8px; }
.rcw-sliders output { float: right; font-variant-numeric: tabular-nums; }
.rcw input[type=range] { display: block; margin: 0; width: 100%; height: 28px; }
.rcw-error { color: #8b3027; font: 12px/1.4 Arial,sans-serif; margin: 4px 0 0; }
.rcw [hidden] { display: none !important; }
.rcw-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width:600px) {
 .rcw select,.rcw input[type=text] {font-size:16px;min-width:0;}
 .rcw-sheet { padding: 20px 16px; }
 .rcw-header { margin-bottom: 16px; }
 .rcw-body { grid-template-columns: 1fr; gap: 16px; }
 .rcw-comparison { border-left: 0; border-top: 1px solid var(--rcw-line); padding: 16px 0 0; }
 .rcw-pair { height: 72px; }
 .rcw-comparison > p { display: inline-block; margin-right: 12px; }
 .rcw-footer { align-items: start; margin-top: 16px; }
 .rcw-tools { gap: 6px; }
 .rcw-tools button { min-height: 40px; }
 .rcw-surfaces { gap: 6px; }
 .rcw-surfaces label { padding: 8px; }
}
@media (max-height:450px) and (min-width:601px) {
 .rcw-sheet { padding: 16px 24px; }
 .rcw-header,.rcw-surfaces { margin-bottom: 12px; }
 .rcw-footer { margin-top: 16px; }
 .rcw-paint { height: 48px; }
 .rcw-wheel { max-width: 160px; }
}
@media (forced-colors: active) { .rcw-paint,.rcw-pair > div { forced-color-adjust: none; } .rcw-needle { forced-color-adjust: none; } }
