/* Clear Path — Skincare Routine Order Builder (tool page only). Uses styles.css variables. */
.rb-layout { display: grid; gap: 1.5rem; padding-bottom: 2rem; }
@media (min-width: 980px) { .rb-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .rb-out-wrap { position: sticky; top: 5.5rem; } }
.rb-panel { background: var(--surface); border: 1px solid var(--mist); border-radius: var(--radius-lg); padding: clamp(1.1rem, 3vw, 1.6rem); box-shadow: var(--shadow-sm); min-width: 0; }
.rb-panel h2 { font-size: clamp(1.25rem, 3vw, 1.45rem); margin-top: 0; }
.rb-fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.rb-fieldset legend { font-weight: 700; padding: 0; margin-bottom: 0.55rem; }
.rb-fieldset .q-hint { margin: -0.25rem 0 0.6rem; font-size: 0.9rem; }
.rb-time.options { grid-template-columns: 1fr 1fr; }
.rb-checks.options { gap: 0.5rem; }
@media (min-width: 560px) { .rb-checks.options { grid-template-columns: 1fr 1fr; } }
.rb-panel .option { padding: 0.7rem 0.85rem; min-height: 48px; gap: 0.7rem; font-size: 0.97rem; }
.rb-panel .option .opt-label small { display: block; color: var(--stone); font-size: 0.84rem; line-height: 1.35; margin-top: 0.1rem; }
.rb-panel .option.is-disabled { opacity: 0.55; cursor: not-allowed; }
.rb-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.rb-out-title { margin-bottom: 0.3rem; }
.rb-summary { color: var(--stone); font-size: 0.95rem; }
.rb-steps { list-style: none; counter-reset: rb; padding: 0; margin: 1rem 0; }
.rb-step { counter-increment: rb; position: relative; padding: 0 0 1rem 2.6rem; margin: 0; border-left: 2px solid var(--sage-soft); margin-left: 0.85rem; padding-left: 1.75rem; }
.rb-step:last-child { border-left-color: transparent; }
.rb-step::before { content: counter(rb); position: absolute; left: -0.95rem; top: -0.1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--sage-deep); color: #fff; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }
.rb-step-title { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; margin-bottom: 0.35rem; }
.rb-item { background: var(--sage-wash); border-radius: var(--radius); padding: 0.65rem 0.85rem; margin-bottom: 0.5rem; }
.rb-item.is-suggested { background: #fff; border: 1.5px dashed var(--mist); }
.rb-item p { margin: 0 0 0.3rem; }
.rb-item > :last-child { margin-bottom: 0; }
.rb-name { font-weight: 700; }
.rb-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage-ink); background: var(--sage-soft); border-radius: 999px; padding: 0.1rem 0.5rem; vertical-align: 0.1em; }
.rb-note, .rb-extra, .rb-wait { font-size: 0.92rem; }
.rb-extra { color: var(--sage-ink); font-weight: 600; }
.rb-wait { background: var(--clay-soft); border-radius: var(--radius-sm); padding: 0.45rem 0.7rem; margin: 0 0 0.5rem; }
.rb-src { color: var(--stone); font-size: 0.85rem; white-space: nowrap; }
.rb-sub { font-size: 1.05rem; margin: 1.2rem 0 0.4rem; }
.rb-skipped { font-size: 0.92rem; padding-left: 1.1rem; }
.rb-cautions ul { padding-left: 1.1rem; margin: 0.3rem 0 0; }
.rb-cautions li { font-size: 0.93rem; }
.rb-fine { font-size: 0.86rem; color: var(--stone); margin-top: 1rem; margin-bottom: 0; }
@media print {
  .rb-form-wrap, .rb-actions, .page-hero .lede, .rb-after { display: none !important; }
  .rb-layout { display: block; }
  .rb-panel { box-shadow: none; border: 0; padding: 0; }
}
