.rb { max-width: 56rem; margin: 0 auto; }
.rb-lead { font-size: 1.125rem; margin: 0 0 1.5rem; }
.rb-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 2.5rem 1rem; text-align: center; border: 2px dashed #9ca3af; border-radius: .75rem; background: #f9fafb; }
.rb-over { border-color: #7c3aed; background: #f5f3ff; }
.rb-busy { opacity: .6; pointer-events: none; }
.rb-pick { display: inline-block; min-height: 44px; touch-action: manipulation; padding: .75rem 2rem; border-radius: 999px; background: #7c3aed; color: #fff; font-weight: 600; font-size: 1.125rem; cursor: pointer; }
.rb-pick:focus-within { outline: 3px solid #c4b5fd; outline-offset: 2px; }
.rb-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.rb-quiet { color: #4b5563; font-size: .875rem; margin: 0; }
.rb-options { display: grid; gap: 1.25rem; margin: 1.5rem 0 0; }
@media (min-width: 48rem) { .rb-options { grid-template-columns: 2fr 3fr; gap: 1.5rem; } }
.rb-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.rb-legend { padding: 0; margin: 0 0 .5rem; font-size: .875rem; font-weight: 600; color: #374151; }
.rb-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.rb-seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rb-opt { position: relative; display: block; cursor: pointer; }
.rb-opt > label { display: block; cursor: pointer; }
/* The radio stays in the accessibility tree; the face after it carries the
   look, so checked and focus need only the sibling selector (no :has). */
.rb-opt-in { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.rb-face { display: flex; flex-direction: column; justify-content: center; gap: .125rem; min-height: 3rem; height: 100%; box-sizing: border-box; padding: .5rem .75rem; border: 1px solid #d1d5db; border-radius: .75rem; background: #fff; line-height: 1.25; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.rb-opt:hover .rb-face { border-color: #a78bfa; }
.rb-opt-in:checked + .rb-face { border-color: #7c3aed; background: #f5f3ff; box-shadow: inset 0 0 0 1px #7c3aed; }
.rb-opt-in:focus-visible + .rb-face { outline: 3px solid #c4b5fd; outline-offset: 2px; }
.rb-opt-in:disabled + .rb-face { opacity: .5; cursor: not-allowed; }
.rb-opt-main { font-weight: 600; color: #111827; font-size: .9375rem; }
.rb-opt-sub { font-size: .8125rem; color: #4b5563; }
.rb-face--dot { justify-content: flex-start; align-items: center; gap: .375rem; min-height: 3.75rem; padding: .625rem .5rem .5rem; text-align: center; font-weight: 600; color: #111827; font-size: .875rem; }
.rb-dot { flex: none; box-sizing: border-box; width: 1.25rem; height: 1.25rem; border-radius: 999px; border: 1px solid #d1d5db; }
.rb-dot--white { background: #fff; }
.rb-dot--checker { background: conic-gradient(#d1d5db 25%, #fff 0 50%, #d1d5db 0 75%, #fff 0) 0 0 / 8px 8px; }
.rb-dot--gap { visibility: hidden; }
/* The swatch is its own control, laid over the Colour card's empty dot. */
.rb-swatch { position: absolute; top: .6875rem; left: 50%; transform: translateX(-50%); z-index: 1; padding: 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; overflow: hidden; }
.rb-swatch::-webkit-color-swatch-wrapper { padding: 0; }
.rb-swatch::-webkit-color-swatch { border: 0; border-radius: 999px; }
.rb-swatch::-moz-color-swatch { border: 0; border-radius: 999px; }
.rb-hint { margin-top: .5rem; }
/* The top anchor ad: Setupad sets position:fixed inline, which on a phone drew
   it over the drop zone. Here it sits in the flow and keeps its own height. */
#colormagic_app_anchor_top_responsive.rb-ad-top { position: static !important; transform: none !important; left: auto !important; top: auto !important; z-index: auto !important; width: 100% !important; max-width: none !important; min-height: 60px; overflow: hidden; margin: 0 0 1rem; padding: 5px 0 !important; border: 0 !important; background: none !important; text-align: center; }
/* Desktop creatives are up to 1000 px wide and the column is about 736 px:
   the slot breaks out of the column to the page width, centred. */
@media (min-width: 48rem) { #colormagic_app_anchor_top_responsive.rb-ad-top { min-height: 100px; width: calc(100vw - 2rem) !important; margin-left: calc(50% - 50vw + 1rem) !important; } }
.rb-status { min-height: 1.5rem; margin: .75rem 0 0; }
.rb-bar { width: 100%; height: .5rem; }
.rb-stage { margin-top: 1.5rem; }
.rb-checker { display: inline-block; max-width: 100%; border-radius: .5rem; line-height: 0; background: conic-gradient(#e5e7eb 25%, #fff 0 50%, #e5e7eb 0 75%, #fff 0) 0 0 / 20px 20px; }
.rb-canvas { max-width: 100%; max-height: 70vh; height: auto; border-radius: .5rem; }
.rb-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.rb-button { padding: .625rem 1.25rem; border-radius: 999px; border: 1px solid #6b7280; background: #fff; color: #111827; font-weight: 600; cursor: pointer; }
.rb-button--primary { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.rb-guide h2 { margin: 2rem 0 .75rem; font-size: 1.5rem; font-weight: 700; }
.rb-guide p, .rb-guide li { margin-bottom: .75rem; }
.rb-guide ul { list-style: disc; padding-left: 1.25rem; }
.rb-faq { border-top: 1px solid #e5e7eb; padding: 1rem 0; }
.rb-faq h3 { font-weight: 600; margin-bottom: .25rem; }
