/* 론델 헤어 시연(rollbrush). 차가운 진주 회색 바탕, 짙은 와인 주색, 강철 회색 보조색.
   카드·표는 모서리 0과 1px 선, 단추·칩·스위치만 완전히 둥글게 해 롤빗의 원과 맞춘다.
   외부 서체를 받지 않고 시스템 서체를 쓴다(영문 표시는 Optima 계열, 한글은 시스템 고딕). */

:root {
  --bg: #EEF0EF;
  --surface: #FAFBFA;
  --text: #1D1A1C;
  --primary: #4A1220;
  --primary-2: #5E1C2C;
  --accent: #6F7C85;
  --muted: #5F6468;
  --line: #D5D9D8;
  --ok: #2F6B4F;
  --warn: #8A5A00;
  --danger: #A3241C;
  --on-primary: #F4EEEF;
  --on-primary-muted: #D3C2C6;
  --f-display: "Optima", "Candara", "Segoe UI", "Gill Sans", "Trebuchet MS", sans-serif;
  --f-ko: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --s13: 13px; --s15: 15px; --s18: 18px; --s26: 26px; --s44: 44px;
  --gap: 80px;
  --pad: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.rb {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--s15)/1.6 var(--f-ko); word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
:where(.rb) a { color: inherit; }
:where(.rb) :where(button, input, select) { font: inherit; color: inherit; }
:where(.rb) button { cursor: pointer; }
.rb :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.rb [hidden] { display: none !important; }
.rb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rb-num { font-variant-numeric: tabular-nums; }
.rb-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: var(--s13); }
.rb-note { margin: 8px 0 0; color: var(--muted); font-size: var(--s13); }
.rb-note--box { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.rb-assume { margin: 6px 0 0; color: var(--muted); font-size: var(--s13); }
.rb-more { font-size: var(--s13); text-decoration: none; color: var(--muted); white-space: nowrap; }
.rb-more:hover { color: var(--text); text-decoration: underline; }

body[data-viewer="member"] .rb-only-guest,
body[data-viewer="guest"] .rb-only-member { display: none !important; }

/* ---------- 안내 띠·조작 줄 ---------- */

.rb-band {
  height: 28px; line-height: 28px; text-align: center; padding: 0 12px; text-overflow: ellipsis;
  background: var(--text); color: #EDEAEB; font-size: var(--s13); letter-spacing: .02em; white-space: nowrap; overflow: hidden;
}
.rb-ctrl { background: var(--surface); border-bottom: 1px solid var(--line); }
.rb-ctrl__inner {
  max-width: 1200px; margin: 0 auto; padding: 6px var(--pad); min-height: 44px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.rb-ctrl__group { display: inline-flex; align-items: center; gap: 8px; }
.rb-ctrl__label { font-size: var(--s13); color: var(--muted); white-space: nowrap; }
.rb-ctrl__reset {
  margin-left: auto; border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 5px 14px; font-size: var(--s13); white-space: nowrap;
}
.rb-ctrl__reset:hover { border-color: var(--text); }

.rb-seg { display: inline-flex; border: 1px solid var(--text); border-radius: 999px; padding: 2px; background: var(--surface); }
.rb-seg__btn {
  border: 0; background: transparent; border-radius: 999px; padding: 4px 14px; font-size: var(--s13); white-space: nowrap;
}
.rb-seg__btn[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.rb-seg--light { border-color: var(--line); }

.rb-switch {
  position: relative; width: 40px; height: 24px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--bg); padding: 0; flex: none;
}
.rb-switch__knob {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 999px; background: var(--accent);
  transition: transform .18s ease, background-color .18s ease;
}
.rb-switch[aria-checked="true"] { background: var(--primary); border-color: var(--primary); }
.rb-switch[aria-checked="true"] .rb-switch__knob { transform: translateX(16px); background: var(--surface); }

/* ---------- 헤더 ---------- */

.rb-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.rb-head__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); min-height: 64px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
}
.rb-brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.rb-brand__en { font-family: var(--f-display); font-size: 20px; letter-spacing: .26em; color: var(--primary); }
.rb-brand__ko { font-size: 12px; letter-spacing: .32em; color: var(--muted); font-weight: 300; }
.rb-nav { display: flex; justify-content: center; gap: 6px; }
.rb-nav__item {
  text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: var(--s15); letter-spacing: .04em; white-space: nowrap;
}
.rb-nav__item:first-child { font-family: var(--f-display); letter-spacing: .18em; }
.rb-nav__item:hover { background: var(--bg); }
.rb-nav__item.is-on { background: var(--primary); color: var(--on-primary); }
.rb-head__right { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.rb-login { font-size: var(--s13); white-space: nowrap; }
button.rb-login { border: 1px solid var(--text); background: transparent; border-radius: 999px; padding: 5px 14px; }
.rb-login b { font-weight: 600; }
.rb-login__pts { color: var(--muted); }
.rb-cartlink {
  display: inline-flex; align-items: center; gap: 6px; font-size: var(--s13); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.rb-cartlink b { min-width: 20px; height: 20px; border-radius: 999px; background: var(--primary); color: var(--on-primary); display: inline-grid; place-items: center; font-size: 12px; padding: 0 5px; }
.rb-head__tags { display: none; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad) 10px; gap: 8px; flex-wrap: wrap; }
body[data-tags="on"] .rb-head__tags { display: flex; }

/* ---------- 구현 방식 꼬리표 ---------- */

.rb-tag {
  display: none; align-items: center; gap: 6px; max-width: 100%;
  border: 1px solid var(--ok); color: var(--ok); background: var(--surface);
  border-radius: 999px; padding: 2px 10px 2px 3px; font-size: var(--s13); line-height: 1.4; text-decoration: none;
  margin: 0 0 12px;
}
body[data-tags="on"] .rb-tag { display: inline-flex; }
.rb-head__tags .rb-tag, .rb-tags-line .rb-tag { margin: 0; }
.rb-tag__no {
  flex: none; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--ok); color: var(--surface); font-size: 12px; font-variant-numeric: tabular-nums;
}
.rb-tag--app { border-color: var(--warn); color: var(--warn); }
.rb-tag--app .rb-tag__no { background: var(--warn); }
.rb-tag--dev { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.rb-tag--dev .rb-tag__no { background: var(--surface); color: var(--primary); }
.rb-tag--mix { border-color: var(--primary); color: var(--primary); background: linear-gradient(90deg, var(--surface) 0 60%, #F1E6E8 100%); }
.rb-tag--mix .rb-tag__no { background: var(--primary); }
.rb-tag:hover { text-decoration: underline; }
.rb-tags-line { display: none; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
body[data-tags="on"] .rb-tags-line { display: flex; }
.rb-first__video .rb-tag { border-color: var(--on-primary-muted); }

/* ---------- 본문 틀 ---------- */

.rb-main { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad) 40px; }
.rb-h { margin: 0; font-weight: 300; font-size: var(--s26); letter-spacing: .06em; line-height: 1.25; }
.rb-h__en { display: block; font-family: var(--f-display); font-size: var(--s13); letter-spacing: .3em; color: var(--accent); margin-bottom: 2px; }
.rb-h--sm { font-size: var(--s18); font-weight: 400; letter-spacing: .02em; }
.rb-h--sm small { font-size: var(--s13); color: var(--muted); font-weight: 400; margin-left: 6px; }
.rb-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rb-page { padding-top: 32px; }
.rb-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.rb-lead { margin: 0; color: var(--muted); font-size: var(--s13); }
.rb-eyebrow { margin: 0 0 2px; font-family: var(--f-display); font-size: var(--s13); letter-spacing: .14em; color: var(--accent); }
.rb-result { margin: 0 0 14px; color: var(--muted); font-size: var(--s13); }

.rb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--text); background: transparent; text-decoration: none; font-size: var(--s15); white-space: nowrap;
}
.rb-btn--ink { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.rb-btn--ink:hover { background: var(--primary-2); }
.rb-btn--line:hover { background: var(--bg); }
.rb-btn--line.is-on { background: var(--text); color: var(--surface); }
.rb-btn--block { display: flex; width: 100%; }
.rb-btn--kakao { background: #F2E04A; border-color: #F2E04A; color: #1D1A1C; }
.rb-btn--naver { background: #2F6B4F; border-color: #2F6B4F; color: #FAFBFA; }
.rb-btn[disabled] { opacity: .5; cursor: not-allowed; }
.rb-linkbtn { border: 0; background: none; padding: 0 2px; text-decoration: underline; color: var(--primary); font-size: var(--s13); }

.rb-chip {
  display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 6px 14px; font-size: var(--s13); white-space: nowrap; min-height: 34px;
}
.rb-chip:hover { border-color: var(--text); }
.rb-chip.is-on { background: var(--text); border-color: var(--text); color: var(--surface); }
.rb-chip .rb-num { color: inherit; opacity: .75; }
.rb-chip--sm { padding: 3px 12px; min-height: 30px; }
.rb-chip--danger { color: var(--danger); }
.rb-chip--danger:hover { border-color: var(--danger); }
.rb-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* ---------- 첫 화면 ---------- */

.rb-first {
  display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.3fr); gap: 28px; padding-top: 24px; align-items: start;
}
.rb-pgrid { display: grid; gap: 12px; }
.rb-pgrid:empty { min-height: 520px; border: 1px dashed var(--line); }
.rb-vrow__list:empty { min-height: 120px; }
.rb-vlist:empty { min-height: 480px; }
.rb-pgrid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rb-pgrid--shop { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rb-pgrid--shop:empty { min-height: 300px; }
.rb-pcard {
  display: grid; justify-items: start; gap: 2px; padding: 14px 16px 16px; border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; text-align: left; width: 100%; border-radius: 0;
}
.rb-pcard:hover { border-color: var(--text); }
.rb-pcard__art { justify-self: center; width: min(100%, 124px); aspect-ratio: 1; margin-bottom: 8px; color: var(--accent); }
.rb-art { width: 100%; height: 100%; display: block; }
.rb-art__ref { stroke: var(--accent); stroke-opacity: .55; }
.rb-art__bristle { stroke: var(--accent); stroke-width: 1; fill: none; }
.rb-art__barrel { fill: var(--surface); stroke: var(--text); stroke-width: 1; }
.rb-art__core { fill: var(--primary); }
.rb-art__hole { fill: var(--bg); }
.rb-art__no { font-family: var(--f-display); font-size: 15px; fill: var(--muted); letter-spacing: .08em; }
.rb-pcard__name { font-family: var(--f-display); font-size: var(--s18); letter-spacing: .04em; }
.rb-pcard__dia { font-size: var(--s13); color: var(--muted); }
.rb-pcard__price { font-family: var(--f-display); font-size: var(--s18); margin-top: 4px; }
.rb-pcard__price.is-struck { font-size: var(--s13); color: var(--muted); text-decoration: line-through; margin-top: 4px; }
.rb-pcard__member { display: inline-flex; align-items: baseline; gap: 6px; color: var(--primary); }
.rb-pcard__member span { font-size: var(--s13); }
.rb-pcard__member b { font-family: var(--f-display); font-size: var(--s18); font-weight: 600; }
.rb-pcard__earn { font-size: var(--s13); color: var(--ok); }
.rb-slots-note { margin: 12px 0 0; font-size: var(--s13); color: var(--muted); }
.rb-slots-note a { color: var(--primary); }

.rb-first__video { background: var(--primary); color: var(--on-primary); padding: 18px 20px 20px; }
.rb-sec-head--dark { margin-bottom: 8px; }
.rb-sec-head--dark .rb-h__en { color: var(--on-primary-muted); }
.rb-sec-head--dark .rb-more { color: var(--on-primary-muted); }
.rb-sec-head--dark .rb-more:hover { color: var(--on-primary); }
.rb-gate {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--on-primary-muted); font-size: var(--s13);
}
.rb-gate::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #E2B866; flex: none; }
.rb-gate.is-open::before { background: #9FD3B6; }
.rb-gate--light { border-color: var(--line); background: var(--surface); color: var(--text); margin: 0; }
.rb-gate--light::before { background: var(--warn); }
.rb-gate--light.is-open::before { background: var(--ok); }
.rb-vrow + .rb-vrow { margin-top: 14px; }
.rb-vrow__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.rb-vrow__head h3 { margin: 0; font-size: var(--s15); font-weight: 500; letter-spacing: .04em; }
.rb-vrow__head small { font-size: var(--s13); color: var(--on-primary-muted); font-weight: 400; margin-left: 4px; }
.rb-vrow__head a { font-size: var(--s13); color: var(--on-primary-muted); text-decoration: none; white-space: nowrap; }
.rb-vrow__head a:hover { color: var(--on-primary); text-decoration: underline; }
.rb-vrow__list { display: grid; gap: 10px; }
.rb-vrow--shorts .rb-vrow__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rb-vrow--care .rb-vrow__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rb-vrow--pro .rb-vrow__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rb-first__video .rb-vcard__title { color: var(--on-primary); font-size: var(--s13); -webkit-line-clamp: 2; }
.rb-first__video .rb-vcard--shorts .rb-thumb { aspect-ratio: 1 / 1; }
.rb-first__video .rb-vcard { gap: 6px; }
.rb-first__video .rb-vcard__sub { display: none; }
.rb-first__video .rb-vcard__meta { gap: 4px; }

.rb-board { margin-top: var(--gap); }
.rb-board__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); }
.rb-board__item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.rb-board__kind { font-size: var(--s13); border: 1px solid var(--accent); border-radius: 999px; padding: 1px 10px; color: var(--muted); }
.rb-board__kind--event { border-color: var(--primary); color: var(--primary); }
.rb-board__date { font-size: var(--s13); color: var(--muted); white-space: nowrap; }

/* ---------- 영상 카드 ---------- */

.rb-vcard { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rb-vcard__hit { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; border-radius: 0; }
.rb-vcard__hit::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rb-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(29, 26, 28, .14); }
.rb-vcard--shorts .rb-thumb, .rb-thumb--shorts, .rb-vd__thumb--shorts .rb-thumb { aspect-ratio: 4 / 5; }
.rb-thumb__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rb-thumb__ring { stroke: var(--primary); stroke-opacity: .42; }
.rb-thumb__dot { fill: var(--primary); }
.rb-tone-a .rb-thumb__bg { fill: #E8D9DC; }
.rb-tone-b .rb-thumb__bg { fill: #DED6D0; }
.rb-tone-b .rb-thumb__ring { stroke: #5B3A32; }
.rb-tone-c .rb-thumb__bg { fill: #CED6DA; }
.rb-tone-c .rb-thumb__ring { stroke: #36434B; }
.rb-tone-c .rb-thumb__dot { fill: #36434B; }
.rb-tone-d .rb-thumb__bg { fill: #F1EDE6; }
.rb-tone-d .rb-thumb__ring { stroke: var(--text); stroke-opacity: .35; }
.rb-tone-d .rb-thumb__dot { fill: var(--text); }
.rb-thumb__veil {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(29, 26, 28, .42) 0 1.5px, rgba(29, 26, 28, .16) 1.5px 8px);
}
.rb-vcard.is-locked .rb-thumb__veil { opacity: 1; }
.rb-thumb__type {
  position: absolute; left: 6px; top: 6px; font-size: 12px; line-height: 1; padding: 4px 8px; border-radius: 999px;
  background: rgba(250, 251, 250, .92); color: var(--text);
}
.rb-dur {
  position: absolute; right: 6px; top: 6px; font-family: var(--f-display); font-size: 12px; line-height: 1; letter-spacing: .04em;
  padding: 4px 8px; border-radius: 999px; background: var(--text); color: var(--surface); font-variant-numeric: tabular-nums;
}
.rb-vcard__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.rb-vcard__title {
  margin: 0; font-size: var(--s15); font-weight: 500; line-height: 1.4; letter-spacing: 0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.rb-vcard__sub { font-size: var(--s13); color: var(--muted); }
.rb-thumb .rb-acc { position: absolute; left: 6px; bottom: 6px; z-index: 1; max-width: calc(100% - 12px); }
.rb-acc {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 1.2; padding: 3px 8px 3px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); white-space: nowrap;
}
.rb-acc--member { color: var(--warn); }
.rb-acc--preview { color: var(--ok); padding-left: 8px; }
.rb-acc--preview::before { content: ""; width: 7px; height: 7px; border-radius: 999px; border: 1.5px solid currentColor; }
.rb-lock { width: 13px; height: 13px; flex: none; overflow: visible; }
.rb-lock__shackle { transform-box: fill-box; transform-origin: 100% 100%; transition: transform .3s ease; }
.rb-vcard--m:not(.is-locked) .rb-lock__shackle, .rb-vd .rb-lock__shackle { transform: translate(-1px, -2px) rotate(-30deg); }
.rb-vcard--m:not(.is-locked) .rb-acc--member { color: var(--ok); }
.rb-vcard.is-locked .rb-vcard__title { opacity: .9; }

/* 회원으로 바꾼 순간에만 자물쇠가 풀리는 움직임 */
@keyframes rb-shackle { 0% { transform: none; } 45% { transform: translateY(-2.5px); } 100% { transform: translate(-1px, -2px) rotate(-30deg); } }
@keyframes rb-veil { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rb-pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
body[data-anim="unlock"] .rb-vcard--m .rb-lock__shackle { animation: rb-shackle .7s ease both; }
body[data-anim="unlock"] .rb-vcard--m .rb-thumb__veil { animation: rb-veil .8s ease .15s both; }
body[data-anim="unlock"] .rb-vcard--m .rb-acc { animation: rb-pop .5s ease .2s both; }

.rb-star {
  position: absolute; z-index: 2; top: 4px; right: 4px; width: 40px; height: 40px; padding: 4px; border: 0; background: none; border-radius: 999px;
}
.rb-star svg { width: 32px; height: 32px; display: block; }
.rb-star__ring { fill: rgba(250, 251, 250, .94); stroke: var(--accent); stroke-width: 1; }
.rb-star__shape { fill: none; stroke: var(--text); stroke-width: 1.3; stroke-linejoin: round; }
.rb-star.is-on .rb-star__ring { fill: var(--primary); stroke: var(--primary); }
.rb-star.is-on .rb-star__shape { fill: var(--surface); stroke: var(--surface); }

/* ---------- 교육 영상 화면 ---------- */

.rb-vtools { border-top: 1px solid var(--text); padding-top: 16px; margin-bottom: 8px; }
.rb-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.rb-tab {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: transparent;
  border-radius: 999px; padding: 7px 16px; font-size: var(--s15); white-space: nowrap; min-height: 40px;
}
.rb-tab.is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.rb-tab .rb-num { font-size: var(--s13); opacity: .8; }
.rb-tab__lock { display: inline-flex; color: var(--warn); }
.rb-tab.is-on .rb-tab__lock { color: inherit; }
.rb-search { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rb-search__box {
  display: flex; align-items: center; gap: 8px; flex: 1 1 280px; max-width: 420px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; color: var(--muted);
}
.rb-search__box svg { width: 18px; height: 18px; flex: none; }
.rb-search__box input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; font-size: var(--s15); color: var(--text); }
.rb-search__hint { font-size: var(--s13); color: var(--muted); }
.rb-vlist { display: grid; gap: 36px; }
.rb-vgroup__title { margin: 0 0 12px; font-size: var(--s18); font-weight: 400; letter-spacing: .04em; }
.rb-vgroup__title small { font-size: var(--s13); color: var(--muted); margin-left: 6px; }
.rb-vgrid { display: grid; gap: 20px 16px; }
.rb-vgrid--shorts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.rb-vgrid--care, .rb-vgrid--pro { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rb-vcard--star .rb-dur { top: auto; bottom: 6px; }
.rb-empty { padding: 48px 16px; text-align: center; border: 1px dashed var(--accent); background: var(--surface); }
.rb-empty p { margin: 0 0 12px; }

/* 영상 상세 */
.rb-vd { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
.rb-vd--shorts { grid-template-columns: 220px minmax(0, 1fr); }
.rb-vd__thumb--shorts { max-width: 220px; }
.rb-vd .rb-acc--member { color: var(--ok); }
.rb-vd__meta { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--s13); color: var(--muted); }
.rb-vd__desc { margin: 0 0 16px; }
.rb-vd__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.rb-vd__product {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line);
  text-decoration: none; background: var(--bg);
}
.rb-vd__product small { display: block; font-size: var(--s13); color: var(--muted); }
.rb-vd__product b { display: block; font-family: var(--f-display); font-weight: 400; font-size: var(--s18); }
.rb-vd__pimg { width: 56px; height: 56px; }
.rb-vd__product:hover { border-color: var(--text); }

/* ---------- SHOP ---------- */

.rb-shop__body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.rb-cart { position: sticky; top: 16px; border: 1px solid var(--text); background: var(--surface); padding: 18px 20px 20px; scroll-margin-top: 16px; }
.rb-cart__title { margin: 0 0 12px; font-size: var(--s18); font-weight: 400; letter-spacing: .04em; }
.rb-cart__empty { margin: 0; color: var(--muted); font-size: var(--s13); }
.rb-lines { list-style: none; margin: 0 0 12px; padding: 0; }
.rb-line { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rb-line__art { width: 40px; height: 40px; }
.rb-line__name { font-size: var(--s15); line-height: 1.3; }
.rb-line__name small { display: block; font-size: var(--s13); color: var(--muted); }
.rb-line__rm { border: 0; background: none; font-size: 18px; color: var(--muted); width: 32px; height: 32px; border-radius: 999px; }
.rb-line__rm:hover { background: var(--bg); color: var(--danger); }
.rb-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.rb-qty button { width: 32px; height: 32px; border: 0; background: none; border-radius: 999px; font-size: 16px; }
.rb-qty button:hover { background: var(--bg); }
.rb-qty b { min-width: 22px; text-align: center; font-weight: 500; }
.rb-sum { margin: 0; }
.rb-sum__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; font-size: var(--s15); }
.rb-sum__row dt small { display: block; font-size: 12px; color: var(--muted); }
.rb-sum__row dd { margin: 0; text-align: right; white-space: nowrap; }
.rb-sum__row--muted dd { color: var(--muted); font-size: var(--s13); }
.rb-sum__row--input dd { display: inline-flex; gap: 6px; align-items: center; }
.rb-sum__row--input input {
  width: 96px; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; text-align: right; background: var(--bg);
  font-variant-numeric: tabular-nums;
}
.rb-sum__row--total { border-top: 1px solid var(--text); margin-top: 6px; padding-top: 12px; font-size: var(--s18); }
.rb-sum__row--total dd { font-family: var(--f-display); font-weight: 600; color: var(--primary); }
.rb-sum__row--earn { color: var(--ok); font-size: var(--s13); }
.rb-pay { border: 1px solid var(--line); margin: 12px 0; padding: 10px 14px; }
.rb-pay legend { font-size: var(--s13); color: var(--muted); padding: 0 4px; }
.rb-pay__opt { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.rb-pay__opt input { accent-color: var(--primary); width: 16px; height: 16px; }
.rb-pay__note { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

.rb-orders { margin-top: 32px; }
.rb-orders .rb-sec-head { margin-bottom: 10px; align-items: baseline; }
.rb-olist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rb-order { border: 1px solid var(--line); background: var(--surface); padding: 16px 18px; }
.rb-order__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 14px; }
.rb-order__no { font-family: var(--f-display); letter-spacing: .06em; }
.rb-order__date { font-size: var(--s13); color: var(--muted); }
.rb-order__label { flex: 1 1 200px; }
.rb-order__total { font-family: var(--f-display); font-size: var(--s18); font-weight: 600; }
.rb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rb-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: var(--s13); color: var(--muted); text-align: center; }
.rb-step::before { content: ""; position: absolute; top: 7px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.rb-step:first-child::before { display: none; }
.rb-step__dot { position: relative; width: 16px; height: 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); }
.rb-step.is-done::before, .rb-step.is-now::before { background: var(--primary); }
.rb-step.is-done .rb-step__dot { background: var(--primary); border-color: var(--primary); }
.rb-step.is-now { color: var(--text); font-weight: 600; }
.rb-step.is-now .rb-step__dot { border-color: var(--primary); box-shadow: inset 0 0 0 3px var(--surface); background: var(--primary); }
.rb-order__track { margin: 12px 0 0; font-size: var(--s13); color: var(--muted); }

/* 제품 상세 */
.rb-pd { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.rb-pd__art { width: 100%; aspect-ratio: 1; background: var(--bg); padding: 12px; }
.rb-pd__desc { margin: 0 0 12px; }
.rb-pd__buy { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.rb-pd__videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rb-pd__videos .rb-vcard--shorts .rb-thumb { aspect-ratio: 16 / 9; }
.rb-pd__tag { margin-top: 12px; }
.rb-reviews { list-style: none; margin: 0; padding: 0; }
.rb-reviews li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rb-reviews b { font-weight: 500; font-size: var(--s13); margin-left: 8px; }
.rb-reviews p { margin: 4px 0 0; }
.rb-reviews__score { color: var(--primary); letter-spacing: 2px; font-size: 12px; }
.rb-kv { margin: 0; display: grid; gap: 6px; }
.rb-kv > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.rb-kv dt { font-size: var(--s13); color: var(--muted); }
.rb-kv dd { margin: 0; }
.rb-kv dd small { color: var(--muted); font-size: 12px; }
.rb-kv b { font-family: var(--f-display); font-size: var(--s18); color: var(--primary); }

/* ---------- 관리자 ---------- */

.rb-atabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--text); padding-bottom: 12px; margin-bottom: 24px; }
.rb-atab { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 18px; min-height: 40px; white-space: nowrap; font-size: var(--s15); }
.rb-atab.is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.rb-apanel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

.rb-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: var(--s15); }
.rb-table th { text-align: left; font-weight: 500; font-size: var(--s13); color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--text); white-space: nowrap; }
.rb-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rb-table tr:last-child td { border-bottom: 0; }
.rb-table .rb-r { text-align: right; }
.rb-table small { color: var(--muted); font-size: 12px; }
.rb-table tr.is-bumped td { background: #F5ECEE; }
.rb-bump { display: inline-block; font-size: 12px; color: var(--primary); border: 1px solid var(--primary); border-radius: 999px; padding: 0 6px; margin-left: 4px; white-space: nowrap; }
.rb-rank { font-family: var(--f-display); font-size: var(--s18); width: 52px; }
.rb-rank__title { font-weight: 500; }
.rb-rank__acc { display: block; }
.rb-actions { white-space: nowrap; }
.rb-actions .rb-chip + .rb-chip { margin-left: 4px; }

.rb-pop { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rb-pop__side { display: grid; gap: 20px; }
.rb-bars { margin: 0; border: 1px solid var(--line); background: var(--surface); padding: 16px 18px; }
.rb-bars__title { font-size: var(--s15); margin-bottom: 12px; }
.rb-bars__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rb-bar { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) 64px; gap: 10px; align-items: center; padding: 4px 0; outline-offset: 4px; }
.rb-bar__label { font-size: var(--s13); }
.rb-bar__label small { color: var(--muted); margin-left: 2px; }
.rb-bar__track { height: 14px; display: block; }
.rb-bar__fill { display: block; height: 100%; background: var(--primary); border-radius: 0 4px 4px 0; transition: width .3s ease; }
.rb-bar__value { text-align: right; font-size: var(--s13); }
.rb-bar__tip {
  position: absolute; left: 96px; bottom: calc(100% + 2px); z-index: 3; pointer-events: none; opacity: 0; transform: translateY(4px);
  background: var(--text); color: var(--surface); font-size: 12px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; transition: opacity .12s, transform .12s;
}
.rb-bar:hover .rb-bar__tip, .rb-bar:focus .rb-bar__tip { opacity: 1; transform: none; }
.rb-bar:hover .rb-bar__fill, .rb-bar:focus .rb-bar__fill { background: var(--primary-2); }
.rb-bars__total { margin: 12px 0 0; font-size: var(--s13); color: var(--muted); }
.rb-favtop { border: 1px solid var(--line); background: var(--surface); padding: 16px 18px; }
.rb-favtop__title { margin: 0 0 8px; font-size: var(--s15); font-weight: 400; }
.rb-favtop ol { margin: 0; padding-left: 20px; }
.rb-favtop li { padding: 4px 0; }
.rb-favtop li b { float: right; font-weight: 500; }
.rb-favtop__name { font-size: var(--s15); }

.rb-vm { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.rb-form { border: 1px solid var(--text); background: var(--surface); padding: 18px 20px; display: grid; gap: 12px; }
.rb-form__title { margin: 0; font-size: var(--s18); font-weight: 400; }
.rb-field { display: grid; gap: 4px; border: 0; padding: 0; margin: 0; min-width: 0; }
.rb-field__label { font-size: var(--s13); color: var(--muted); padding: 0; }
.rb-field input[type="text"], .rb-field input[type="number"], .rb-field select {
  width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); background: var(--bg); border-radius: 0; font-size: var(--s15);
}
.rb-field input[readonly] { color: var(--muted); }
.rb-field__row { display: flex; gap: 6px; align-items: center; }
.rb-field__pair { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; }
.rb-radios { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-radio { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 8px; font-size: var(--s13); cursor: pointer; }
.rb-radio input { accent-color: var(--primary); margin: 0; }
.rb-radio small { color: var(--muted); }
.rb-radio:has(input:checked) { border-color: var(--primary); background: #F5ECEE; }
.rb-form__err { margin: 0; color: var(--danger); font-size: var(--s13); }
.rb-form__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rb-vm__preview { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 8px; border: 1px dashed var(--accent); background: var(--bg); }
.rb-vm__preview .rb-thumb { width: 104px; flex: none; }
.rb-vm__preview .rb-thumb--shorts { width: 56px; }
.rb-vm__ph { font-size: var(--s13); color: var(--muted); }
.rb-vm__id { font-size: var(--s13); }
.rb-vm__id small { display: block; color: var(--muted); }

.rb-pm { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.rb-form--narrow { position: sticky; top: 16px; }
.rb-slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rb-slot {
  position: relative; display: grid; justify-items: center; gap: 2px; padding: 12px 10px; border: 1px dashed var(--accent); background: transparent;
  text-align: center; color: var(--muted); min-height: 190px;
}
.rb-slot.is-on { border-style: solid; border-color: var(--line); background: var(--surface); color: var(--text); }
.rb-slot.is-new { border-color: var(--primary); }
.rb-slot__no { position: absolute; left: 8px; top: 6px; font-family: var(--f-display); font-size: var(--s13); color: var(--muted); }
.rb-slot__art { width: 84px; height: 84px; color: var(--accent); }
.rb-slot__name { font-size: var(--s13); font-weight: 500; }
.rb-slot.is-on .rb-slot__name { font-family: var(--f-display); font-size: var(--s15); font-weight: 400; }
.rb-slot__price { font-size: var(--s13); }
.rb-slot__state { font-size: 12px; color: var(--ok); border: 1px solid currentColor; border-radius: 999px; padding: 0 8px; }
.rb-slot__state--wait { color: var(--warn); }
.rb-slot .rb-chip { margin-top: 4px; }

.rb-mo { display: grid; gap: 32px; }
.rb-via { font-size: var(--s13); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }
.rb-sales { margin: 0; font-size: var(--s13); color: var(--muted); }
.rb-sales b { font-family: var(--f-display); font-size: var(--s18); color: var(--text); margin: 0 4px; }
.rb-status { font-size: var(--s13); white-space: nowrap; }
.rb-status--shipping { color: var(--primary); font-weight: 600; }
.rb-status--cancel { color: var(--muted); text-decoration: line-through; }
.rb-status--paid, .rb-status--ready { color: var(--warn); }
.rb-status--done { color: var(--ok); }

.rb-impl__big { border-bottom: 1px solid var(--line); padding: 4px 0 20px; margin-bottom: 16px; }
.rb-impl__num { margin: 0; font-weight: 300; font-size: var(--s26); letter-spacing: .02em; line-height: 1.35; }
.rb-impl__num .rb-num { font-family: var(--f-display); font-size: var(--s44); line-height: 1; }
.rb-impl__num b { font-weight: 400; color: var(--ok); }
.rb-impl__num b.rb-impl__dev { color: var(--primary); }
.rb-impl__sub { margin: 8px 0 0; color: var(--muted); font-size: var(--s13); }
.rb-table--impl td:first-child { font-family: var(--f-display); width: 48px; }
.rb-table--impl td:nth-child(2) { width: 24%; }
.rb-table--impl td:nth-child(3) { width: 150px; }
.rb-table--impl td:nth-child(5) { width: 150px; font-size: var(--s13); }
.rb-table--impl tr:target td { background: #F5ECEE; }
.rb-table--impl tr { scroll-margin-top: 80px; }
.rb-impl__group { display: block; font-size: 12px; color: var(--muted); }
.rb-impl__chk { display: block; margin-top: 2px; color: var(--warn); }
.rb-kind { display: inline-block; font-size: 12px; border-radius: 999px; padding: 1px 9px; border: 1px solid var(--ok); color: var(--ok); white-space: nowrap; margin: 0 4px 4px 0; }
.rb-kind--app { border-color: var(--warn); color: var(--warn); }
.rb-kind--dev { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.rb-check { display: inline-block; font-size: 12px; border-radius: 999px; padding: 0 8px; border: 1px dashed var(--warn); color: var(--warn); white-space: nowrap; }

.rb-later { margin-top: 32px; border-top: 1px solid var(--text); padding-top: 16px; }
.rb-later summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; list-style: none; margin-bottom: 16px; }
.rb-later summary::-webkit-details-marker { display: none; }
.rb-later summary::before { content: "−"; font-family: var(--f-display); width: 24px; height: 24px; border: 1px solid var(--text); border-radius: 999px; display: inline-grid; place-items: center; align-self: center; }
.rb-later:not([open]) summary::before { content: "+"; }
.rb-later summary small { color: var(--muted); font-size: var(--s13); }
.rb-later__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.rb-later__card { border: 1px solid var(--line); background: var(--surface); padding: 16px 18px; }
.rb-later__card h3 { margin: 0 0 10px; font-size: var(--s15); font-weight: 600; }
.rb-later__card dl { margin: 0; display: grid; gap: 8px; }
.rb-later__card dt { font-size: 12px; color: var(--muted); }
.rb-later__card dd { margin: 0; font-size: var(--s13); }
.rb-later__sub { margin: 0 0 10px; font-size: var(--s15); font-weight: 600; }

/* ---------- 대화상자·알림·고정 단추 ---------- */

.rb-dialog {
  border: 1px solid var(--text); padding: 0; background: var(--surface); color: var(--text);
  width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto;
}
.rb-dialog::backdrop { background: rgba(29, 26, 28, .5); }
.rb-dialog--sm { width: min(440px, calc(100vw - 32px)); }
.rb-dialog--sheet:not(.rb-dialog--video):not(.rb-dialog--product) { width: min(520px, calc(100vw - 32px)); }
.rb-dialog__body { padding: 20px 22px 22px; }
.rb-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.rb-dialog__title { margin: 0; font-size: var(--s18); font-weight: 500; line-height: 1.4; }
.rb-dialog__sub { margin: 20px 0 10px; font-size: var(--s15); font-weight: 600; }
.rb-dialog__sub small { color: var(--muted); font-weight: 400; }
.rb-dialog__foot { margin: 16px 0 0; font-size: var(--s13); color: var(--muted); }
.rb-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.rb-x { flex: none; width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; border-radius: 999px; display: grid; place-items: center; }
.rb-x:hover { border-color: var(--text); }
.rb-map { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); counter-reset: map; }
.rb-map li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--s13); }
.rb-map__show { color: var(--primary); }
.rb-map__show--off { color: var(--muted); }
.rb-diffs { margin: 0; padding-left: 18px; font-size: var(--s13); }
.rb-diffs li + li { margin-top: 6px; }
.rb-info { margin: 0 0 16px; }
.rb-join__lead { margin: 0 0 14px; }
.rb-join__btns { display: grid; gap: 8px; margin-bottom: 8px; }
.rb-yt__title { margin: 0 0 12px; font-weight: 600; }

.rb-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 20; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--text); background: var(--text); color: var(--surface); font-size: var(--s13); letter-spacing: .02em;
}
.rb-fab:hover { background: var(--primary); border-color: var(--primary); }
.rb-toast {
  position: fixed; left: 50%; bottom: 72px; transform: translateX(-50%); z-index: 30; max-width: calc(100vw - 32px);
  background: var(--text); color: var(--surface); padding: 10px 18px; border-radius: 999px; font-size: var(--s13); text-align: center;
}

.rb-foot { margin-top: var(--gap); border-top: 1px solid var(--line); background: var(--surface); padding-bottom: 72px; }
.rb-foot__inner { max-width: 1200px; margin: 0 auto; padding: 20px var(--pad) 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.rb-foot__name { font-family: var(--f-display); letter-spacing: .26em; color: var(--primary); }
.rb-foot__note { font-size: var(--s13); color: var(--muted); }
.demo-notice { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad) 12px; font-size: 12px; color: var(--muted); }

/* ---------- 폭별 ---------- */

@media (max-width: 1080px) {
  .rb-first { grid-template-columns: minmax(0, 1fr); }
  .rb-pgrid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rb-shop__body { grid-template-columns: minmax(0, 1fr) 320px; }
  .rb-pgrid--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-vm, .rb-pm { grid-template-columns: minmax(0, 1fr); }
  .rb-form--narrow { position: static; }
}

@media (max-width: 860px) {
  :root { --gap: 44px; --pad: 16px; }
  .rb-head__inner { grid-template-columns: auto 1fr; gap: 8px 12px; padding-top: 10px; padding-bottom: 0; min-height: 0; }
  .rb-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; margin: 0 -6px; padding-bottom: 8px; }
  .rb-head__right { grid-column: 2; grid-row: 1; }
  .rb-shop__body, .rb-pop { grid-template-columns: minmax(0, 1fr); }
  .rb-cart { position: static; }
  .rb-shop__list { display: contents; }
  .rb-pgrid--shop { order: 1; }
  .rb-cart { order: 2; }
  .rb-orders { order: 3; margin-top: 4px; }
  .rb-vgrid--shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rb-vgrid--care, .rb-vgrid--pro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-later__grid { grid-template-columns: minmax(0, 1fr); }
  .rb-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* 표는 카드 목록으로 */
  .rb-table, .rb-table tbody, .rb-table tr, .rb-table td { display: block; width: 100% !important; }
  .rb-table { border: 0; background: transparent; }
  .rb-table thead { display: none; }
  .rb-table tr { border: 1px solid var(--line); background: var(--surface); padding: 8px 12px; margin-bottom: 8px; }
  .rb-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 10px 12px; }
  .rb-table td { padding: 0; min-height: 0; width: auto !important; border: 0; text-align: left !important; }
  .rb-table td::before { content: attr(data-label); display: block; margin-bottom: 1px; font-size: 12px; line-height: 1.4; color: var(--muted); }
  .rb-table td:first-child, .rb-table td.rb-actions { grid-column: 1 / -1; }
  .rb-table td:first-child::before { display: none; }
  .rb-table tr:last-child td { border: 0; }
  .rb-actions .rb-chip + .rb-chip { margin-left: 0; }
  .rb-table td.rb-actions { display: flex; gap: 6px; flex-wrap: wrap; }
  .rb-table td.rb-actions::before { display: none; }
  .rb-table--methods td:first-child::before { display: block; }
  /* 인기 순위: 순위 · 제목 / 길이 · 조회 · 즐겨찾기 */
  .rb-table--rank tr { grid-template-columns: 30px minmax(0, 1fr) auto auto; column-gap: 12px; row-gap: 2px; align-items: baseline; }
  .rb-table--rank td::before { display: none; }
  .rb-table--rank td:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; font-family: var(--f-display); font-size: 22px; line-height: 1; }
  .rb-table--rank td:nth-child(2) { grid-column: 2 / -1; }
  .rb-table--rank .rb-rank__acc { display: block; }
  .rb-table--rank td:nth-child(3) { grid-column: 2; font-size: var(--s13); color: var(--muted); }
  .rb-table--rank td:nth-child(4), .rb-table--rank td:nth-child(5) { font-size: var(--s13); }
  .rb-table--rank td:nth-child(4)::before, .rb-table--rank td:nth-child(5)::before { display: inline; content: attr(data-short) " "; }
  /* 영상 관리: 제목 / 길이 · 카테고리 · 공개 범위 · 조회 / 수정·삭제 */
  .rb-table--videos tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
  .rb-table--videos td { font-size: var(--s13); color: var(--muted); }
  .rb-table--videos td:first-child { flex: 1 0 100%; font-size: var(--s15); color: var(--text); }
  .rb-table--videos td::before { display: none; }
  .rb-table--videos td:nth-child(3)::before, .rb-table--videos td:nth-child(4)::before { display: inline; content: "· "; }
  .rb-table--videos td:nth-child(5)::before { display: inline; content: "· 조회 "; }
  .rb-table--videos td.rb-actions { flex: 1 0 100%; padding-top: 4px; }
  .rb-table--videos td.rb-actions::before { display: none; }
  /* 구현 방식: 번호 · 항목 / 방식 / 방법과 이유 / 월 비용 */
  .rb-table--impl tr { grid-template-columns: 30px minmax(0, 1fr); gap: 6px 10px; }
  .rb-table--impl td { grid-column: 2; }
  .rb-table--impl td::before { display: none; }
  .rb-table--impl td:nth-child(1) { grid-column: 1; grid-row: 1 / span 4; font-size: 22px; line-height: 1.1; }
  .rb-table--impl td:nth-child(4) { font-size: var(--s15); }
  .rb-table--impl td:nth-child(5) { font-size: var(--s13); color: var(--muted); }
  .rb-table--impl td:nth-child(5)::before { display: inline; content: "월 비용 · "; font-size: inherit; }
}

@media (max-width: 600px) {
  .rb-hide-s { display: none; }
  .rb-ctrl__inner { gap: 8px 10px; padding-top: 6px; padding-bottom: 6px; }
  .rb-seg__btn { padding: 4px 10px; }
  .rb-ctrl__reset { padding: 5px 10px; }
  .rb-login__pts { display: none; }
  .rb-brand__en { font-size: 17px; letter-spacing: .2em; }
  .rb-nav__item { padding: 7px 12px; }
  .rb-first { padding-top: 16px; gap: 24px; }
  .rb-pgrid--home, .rb-pgrid--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rb-pcard { padding: 10px 12px 12px; }
  .rb-pcard__art { width: min(100%, 120px); }
  .rb-pgrid--home .rb-pcard { grid-template-columns: 50px minmax(0, 1fr); column-gap: 10px; align-items: center; align-content: center; padding: 10px; }
  .rb-pgrid--home .rb-pcard__art { grid-row: 1 / span 6; width: 50px; margin: 0; align-self: center; }
  .rb-pgrid--home .rb-pcard__name { font-size: var(--s15); }
  .rb-pgrid--home .rb-pcard__price { font-size: var(--s15); margin-top: 0; }
  .rb-pgrid--home .rb-pcard__member b { font-size: var(--s15); }
  .rb-pgrid--home .rb-pcard__dia, .rb-pgrid--home .rb-pcard__earn { font-size: 12px; }
  .rb-first__video { margin: 0 calc(var(--pad) * -1); padding: 16px var(--pad) 18px; }
  .rb-vrow__list {
    grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; padding-bottom: 6px; margin-right: calc(var(--pad) * -1); padding-right: var(--pad);
  }
  .rb-vrow--shorts .rb-vrow__list { grid-auto-columns: 31%; }
  .rb-vrow__list > * { scroll-snap-align: start; }
  .rb-tabs, .rb-atabs { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); }
  .rb-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); padding-bottom: 2px; }
  .rb-atabs { padding-bottom: 10px; }
  .rb-vgrid { gap: 16px 10px; }
  .rb-vgrid--shorts, .rb-vgrid--care, .rb-vgrid--pro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-vgrid--shorts .rb-thumb { aspect-ratio: 1 / 1; }
  .rb-vcard__title { font-size: var(--s13); }
  .rb-board__item { grid-template-columns: auto 1fr; }
  .rb-board__date { grid-column: 2; }
  .rb-vd, .rb-vd--shorts, .rb-pd { grid-template-columns: minmax(0, 1fr); }
  .rb-vd__thumb--shorts { max-width: 180px; }
  .rb-pd__art { max-width: 180px; }
  .rb-dialog { width: 100vw; max-width: 100vw; max-height: 88vh; margin: auto 0 0; border-left: 0; border-right: 0; border-bottom: 0; }
  .rb-dialog--sheet:not(.rb-dialog--video):not(.rb-dialog--product), .rb-dialog--sm { width: 100vw; }
  .rb-dialog__body { padding: 16px 16px 20px; }
  .rb-map li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .rb-line { grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 8px; }
  .rb-impl__num { font-size: var(--s18); }
  .rb-impl__num .rb-num { font-size: var(--s26); }
  .rb-bar { grid-template-columns: 84px minmax(0, 1fr) 56px; }
  .rb-bar__tip { left: 0; }
  .rb-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-slot { min-height: 170px; }
  .rb-field__pair { grid-template-columns: minmax(0, 1fr) 96px; }
  .rb-fab { right: 12px; bottom: 12px; }
  .rb-toast { bottom: 64px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .rb *, .rb *::before, .rb *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.rb-sum__row--input input::-webkit-outer-spin-button, .rb-sum__row--input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rb-sum__row--input input { -moz-appearance: textfield; appearance: textfield; }
