/* 러닝핏 AI 리디자인 시안 (redesign) */

@property --pos {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

.rd {
  --bg: #F7F8F5;
  --surface: #FFFFFF;
  --line: #E3E6EC;
  --text: #14181F;
  --muted: #667085;
  --primary: #2447F9;
  --primary-press: #1A36D1;
  --primary-soft: #EEF2FF;
  --accent: #C6F432;
  --ok: #12B76A;
  --ok-ink: #067647;
  --ok-soft: #ECFDF3;
  --warn: #F79009;
  --warn-ink: #B54708;
  --warn-soft: #FFFAEB;
  --danger: #F04438;
  --danger-ink: #B42318;
  --danger-soft: #FEF3F2;
  --gray-1: #C9CDD3;
  --gray-2: #9AA0A8;
  --radius: 14px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-num: "Space Grotesk", "Pretendard Variable", Pretendard, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

.rd {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
:where(.rd) :where(p, h1, h2, h3, ol, ul) { margin: 0; }
:where(.rd) :where(ul, ol) { padding: 0; list-style: none; }
:where(.rd) :where(a) { color: inherit; }
:where(.rd) :where(button) { font: inherit; color: inherit; }
.rd [hidden] { display: none !important; }
.rd-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 안내 띠: 공용 partial 을 화면 맨 위 28px 띠로 */
.rd .demo-notice {
  order: -1;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #EDEFEA;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid var(--line);
}

/* ── 헤더 ─────────────────────────── */
.rd-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.rd-top__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.rd-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.rd-brand__mark { display: flex; }
.rd-brand__name { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.rd-brand__ver {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}
.rd-nav { display: flex; gap: 4px; margin-left: auto; padding: 4px; background: #ECEEE9; border-radius: 999px; }
.rd-nav__item {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 16px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
}
.rd-nav__item:hover { color: var(--text); }
.rd-nav__item.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(20, 24, 31, 0.08), 0 0 0 1px var(--line); }
.rd-top__reset { flex: none; }

.rd-main { flex: 1; padding: 32px 0 112px; }
.rd-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ── 공통 텍스트 ─────────────────── */
.rd-eyebrow {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.rd-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1.5px var(--text); }
.rd-h1 { font-size: 36px; line-height: 1.2; font-weight: 700; letter-spacing: -0.03em; margin-top: 8px; }
.rd-h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.rd-lead { color: var(--muted); margin-top: 8px; max-width: 640px; }
.rd-count { font-family: var(--font-num); font-size: 13px; font-weight: 600; background: var(--accent); color: var(--text); border-radius: 999px; padding: 1px 10px; }

.rd-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }

.rd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  white-space: nowrap;
}
.rd-chip--gray { background: #ECEEF1; color: #475467; }
.rd-chip--lime { background: var(--accent); color: var(--text); }

/* ── 버튼 ─────────────────────────── */
.rd-btn {
  --h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--h);
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.rd-btn--sm { --h: 36px; padding: 0 12px; font-size: 14px; }
.rd-btn--primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(36, 71, 249, 0.3); }
.rd-btn--primary:hover, .rd-btn--primary.is-hover { background: var(--primary-press); box-shadow: 0 0 0 4px rgba(36, 71, 249, 0.16); }
.rd-btn--primary.is-disabled, .rd-btn--primary:disabled { background: #D0D5DD; color: #fff; box-shadow: none; cursor: not-allowed; }
.rd-btn--secondary { background: var(--surface); color: var(--text); border-color: #D0D5DD; }
.rd-btn--secondary:hover { border-color: var(--text); }
.rd-btn--secondary:disabled { color: var(--gray-2); border-color: var(--line); cursor: default; }
.rd-btn--ghost { background: transparent; color: var(--text); border-color: var(--line); background: var(--surface); }
.rd-btn--ghost:hover { border-color: var(--text); }
.rd-btn--text { background: transparent; color: var(--primary); padding: 0 8px; }
.rd-btn--text:hover { background: var(--primary-soft); }
.rd-btn:focus-visible, .rd-nav__item:focus-visible, .rd-seg__item:focus-visible, .rd-pin:focus-visible, .rd-note:focus-visible, .rd-fab:focus-visible, .sw:focus-visible, .app-nav__item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--text);
}
.rd-btn__spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; }
.rd-btn.is-loading { background: var(--primary-press); cursor: progress; }
.rd-btn.is-loading .rd-btn__spin { display: inline-block; animation: rd-spin 0.8s linear infinite; }
@keyframes rd-spin { to { transform: rotate(360deg); } }

.rd-icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }

/* ── 세그먼트 ───────────────────── */
.rd-seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.rd-seg__item {
  border: 0;
  background: transparent;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.rd-seg__item:hover { color: var(--text); }
.rd-seg__item.is-on { background: var(--text); color: #fff; }
.rd-seg--quiet .rd-seg__item.is-on { background: var(--accent); color: var(--text); }

.rd-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

/* ── 비교 프레임 ─────────────────── */
.rd-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(20, 24, 31, 0.04), 0 16px 40px -20px rgba(20, 24, 31, 0.2);
}
.rd-frame__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.rd-frame__dots { display: flex; gap: 6px; }
.rd-frame__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.rd-frame__title { font-size: 13px; font-weight: 600; color: var(--muted); flex: 1; text-align: center; }
.rd-frame__size { font-family: var(--font-num); font-size: 12px; color: var(--gray-2); }

.rd-stage {
  position: relative;
  container-type: inline-size;
  container-name: stage;
  border-radius: 0 0 17px 17px;
  user-select: none;
  -webkit-user-select: none;
}
.rd-pair { display: grid; border-radius: 0 0 17px 17px; overflow: hidden; }
.rd-layer { grid-area: 1 / 1; min-width: 0; }
.rd-layer--after { clip-path: inset(0 0 0 var(--pos)); }
.rd-stage.is-animating { transition: --pos 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }

.rd-stage__tag {
  position: absolute;
  bottom: 12px;
  z-index: 4;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  pointer-events: none;
}
.rd-stage__tag--before { left: 12px; background: #fff; color: #5B6068; border: 1px solid var(--gray-1); }
.rd-stage__tag--after { right: 12px; background: var(--text); color: var(--accent); }

.rd-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 44px;
  margin-left: -22px;
  z-index: 5;
  cursor: ew-resize;
  touch-action: none;
  display: flex;
  justify-content: center;
  outline: none;
}
.rd-handle__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--accent); box-shadow: 0 0 0 1px rgba(20, 24, 31, 0.5); }
.rd-handle__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(20, 24, 31, 0.25);
  transition: transform 0.15s;
}
.rd-handle:hover .rd-handle__knob, .rd-stage.is-dragging .rd-handle__knob { transform: scale(1.08); }
.rd-handle:focus-visible .rd-handle__knob { box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--primary); }

.rd-pin {
  position: absolute;
  z-index: 6;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(36, 71, 249, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rd-pin::after { content: ""; position: absolute; inset: -8px; }
.rd-pin.is-on { background: var(--accent); color: var(--text); border-color: var(--text); }

.rd-bubble {
  position: absolute;
  z-index: 7;
  background: var(--text);
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 16px 32px -8px rgba(20, 24, 31, 0.45);
}
.rd-bubble__title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rd-bubble__no { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--text); font-family: var(--font-num); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rd-bubble__row { font-size: 13px; line-height: 1.5; color: #D0D5DD; display: flex; gap: 8px; }
.rd-bubble__row + .rd-bubble__row { margin-top: 6px; }
.rd-bubble__row b { flex: none; font-weight: 700; color: #fff; width: 16px; }
.rd-bubble__row:last-child b { color: var(--accent); }

.rd-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.rd-note {
  width: 100%;
  height: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s;
}
.rd-note:hover { border-color: var(--gray-2); }
.rd-note.is-on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.rd-note__no { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-num); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rd-note.is-on .rd-note__no { background: var(--accent); color: var(--text); box-shadow: 0 0 0 2px var(--text); }
.rd-note__title { font-weight: 700; font-size: 16px; }
.rd-note__text { font-size: 14px; color: var(--muted); }

/* ── Before: 가상의 기존 화면 ──────── */
.bf { background: #F1F2F4; color: #4A4F57; font-size: 12px; min-height: 100%; font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; }
.bf-top { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #DADDE1; border-bottom: 1px solid var(--gray-1); }
.bf-logo { font-weight: 700; color: #5B6068; }
.bf-top__menu { color: #7C828B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-body { display: grid; grid-template-columns: 150px 1fr; min-height: 100%; }
.bf-side { background: #E4E6E9; border-right: 1px solid var(--gray-1); padding: 12px 0; }
.bf-side li { padding: 7px 16px; color: #6B7079; }
.bf-side li.is-on { background: var(--gray-2); color: #fff; font-weight: 700; }
.bf-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bf-title { font-size: 16px; font-weight: 700; color: #4A4F57; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.bf-title small { font-size: 11px; font-weight: 400; color: #8B9099; }
.bf-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bf-b { display: inline-block; padding: 5px 10px; font-size: 12px; }
.bf-b--1 { background: #E9EBEE; border: 1px solid var(--gray-2); border-radius: 0; color: #5B6068; }
.bf-b--2 { background: #7E848D; color: #fff; border-radius: 4px; font-weight: 700; padding: 7px 14px; }
.bf-b--3 { border: 1px solid #7E848D; border-radius: 20px; color: #5B6068; background: #fff; }
.bf-b--4 { color: #6B7079; text-decoration: underline; }
.bf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bf-stat { background: #fff; border: 1px solid var(--gray-1); padding: 8px 10px; display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.bf-stat span { color: #7C828B; }
.bf-stat b { font-size: 14px; color: #4A4F57; }
.bf-box { background: #fff; border: 1px solid var(--gray-1); }
.bf-box__h { background: #E4E6E9; padding: 6px 10px; font-weight: 700; border-bottom: 1px solid var(--gray-1); }
.bf-box p, .bf-pre { padding: 10px; margin: 0; color: #5B6068; }
.bf-pre { font-family: ui-monospace, Menlo, monospace; font-size: 12px; white-space: pre-wrap; line-height: 1.7; }
.bf-table { width: 100%; border-collapse: collapse; background: #fff; }
.bf-table th, .bf-table td { border: 1px solid var(--gray-1); padding: 5px 8px; text-align: center; }
.bf-table th { background: #E4E6E9; font-weight: 700; color: #5B6068; }
.bf-scroll { overflow: hidden; }
.bf-red { color: #D23C3C; }
.bf-green { color: #2E9B4E; }
.bf-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: #fff; border: 1px solid var(--gray-1); padding: 10px; }
.bf-field { display: flex; flex-direction: column; gap: 3px; }
.bf-field span { color: #7C828B; }
.bf-field i { font-style: normal; border: 1px solid var(--gray-1); padding: 4px 6px; background: #FAFAFB; color: #4A4F57; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── After: 비교용 시안 화면 ─────── */
.af { background: var(--bg); min-height: 100%; display: grid; grid-template-columns: 168px 1fr; }
.af-side { background: var(--surface); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.af-side__logo { display: flex; padding: 0 8px 12px; }
.af-side__item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.af-side__item.is-on { background: var(--primary-soft); color: var(--primary); }
.af-main { padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.af-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.af-kicker { font-size: 13px; color: var(--muted); }
.af-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.af-actions { display: flex; align-items: center; gap: 8px; }
.af-link { font-size: 14px; font-weight: 600; color: var(--primary); padding: 8px; }
.af-primary { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.af-primary--block { width: 100%; margin-top: 4px; }
.af-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.af-metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.af-metric__label { font-size: 13px; color: var(--muted); font-weight: 500; }
.af-metric__value { font-family: var(--font-num); font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin-top: 4px; }
.af-metric__value small { font-size: 18px; margin-left: 2px; color: var(--muted); font-weight: 500; }
.af-metric__value--text { font-family: var(--font); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-top: 8px; }
.af-metric__delta { font-family: var(--font-num); font-size: 13px; font-weight: 600; margin-top: 4px; }
.af-metric__delta span { font-family: var(--font); color: var(--muted); font-weight: 400; }
.af-tone--up { color: var(--ok-ink); }
.af-tone--down { color: var(--danger-ink); }
.af-tone--flat { color: var(--text); }
.af-spark { width: 100%; max-width: 160px; height: 32px; margin-top: 6px; display: block; }
.af-ai { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.af-ai__head { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.af-ai__text { font-size: 14px; color: #344054; }
.af-ai__badge, .rd-ai__badge {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--text);
  color: var(--accent);
  border-radius: 6px;
  padding: 2px 6px;
  flex: none;
}
.af-ai__badge--sm, .rd-ai__badge--sm { font-size: 10px; padding: 1px 5px; }
.af-ai__basis { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.af-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gray-1); }
.af-bar { display: grid; grid-template-columns: 110px 1fr 44px auto; align-items: center; gap: 12px; font-size: 14px; }
.af-bar__name { font-weight: 600; }
.af-bar__track { height: 8px; background: #EEF0F3; border-radius: 999px; overflow: hidden; }
.af-bar__fill { display: block; height: 100%; border-radius: 999px; }
.af-bar__val { font-family: var(--font-num); font-weight: 600; text-align: right; }
.af-fill--help { background: var(--danger); }
.af-fill--watch { background: var(--warn); }
.af-fill--ok { background: var(--ok); }
.af-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px 2px 7px; border-radius: 999px; white-space: nowrap; }
.af-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.af-badge--help { background: var(--danger-soft); color: var(--danger-ink); }
.af-badge--watch { background: var(--warn-soft); color: var(--warn-ink); }
.af-badge--ok { background: var(--ok-soft); color: var(--ok-ink); }
.af-gen { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.af-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.af-card__h { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.af-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.af-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.af-chip { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: #344054; }
.af-chip.is-on { background: var(--primary); color: #fff; border-color: var(--primary); }
.af-segs { display: grid; grid-template-columns: repeat(3, 1fr); background: #F2F4F7; border-radius: 10px; padding: 3px; }
.af-segs span { text-align: center; font-size: 13px; font-weight: 600; padding: 6px 0; color: var(--muted); border-radius: 8px; }
.af-segs span.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(20, 24, 31, 0.12); }
.af-more { font-size: 13px; color: var(--muted); padding: 6px 0; border-top: 1px dashed var(--line); margin-top: 6px; }
.af-results { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.af-q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.af-q__meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.af-q__text { font-weight: 600; font-size: 15px; }
.af-q__why { font-size: 13px; color: #344054; background: #F8FAEB; border-radius: 8px; padding: 6px 10px; display: flex; gap: 8px; align-items: center; }
.af-tag { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 6px; background: #F2F4F7; color: #344054; }
.af-student { display: flex; align-items: center; gap: 12px; }
.af-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 17px; }

/* 비교 프레임이 좁을 때(모바일) */
@container stage (max-width: 760px) {
  .bf-body { grid-template-columns: 1fr; }
  .bf-side { display: none; }
  .bf-top__menu { display: none; }
  .af { grid-template-columns: 1fr; }
  .af-side { flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; overflow: hidden; }
  .af-side__logo { padding: 0 6px 0 0; }
  .af-side__item { padding: 6px 8px; font-size: 13px; }
  .af-side__item svg { display: none; }
  .af-gen { grid-template-columns: 1fr; }
  .af-main { padding: 16px; }
}
@container stage (max-width: 520px) {
  .bf { font-size: 11px; }
  .bf-main { padding: 10px; gap: 8px; }
  .bf-stat { flex-direction: column; gap: 0; padding: 6px; }
  .bf-stat b { font-size: 12px; }
  .bf-form { grid-template-columns: repeat(2, 1fr); }
  .bf-table th, .bf-table td { padding: 4px 3px; }
  .bf-table--wide { font-size: 10px; }
  .bf-table--wide th:nth-child(n+8), .bf-table--wide td:nth-child(n+8) { display: none; }
  .af-side__item:not(.is-on) { display: none; }
  .af-metrics { grid-template-columns: 1fr; gap: 8px; }
  .af-metric { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; padding: 12px 14px; }
  .af-metric__label { grid-column: 1; }
  .af-metric__value { grid-column: 2; grid-row: 1 / span 2; font-size: 28px; margin: 0; }
  .af-metric__value--text { font-size: 16px; }
  .af-metric__delta { grid-column: 1; margin: 0; }
  .af-spark { grid-column: 1; max-width: 120px; height: 24px; margin: 0; }
  .af-bar { grid-template-columns: 1fr auto auto; gap: 6px 10px; }
  .af-bar__track { grid-column: 1 / -1; grid-row: 2; }
  .af-bar__name { grid-row: 1; }
  .af-head { align-items: flex-start; flex-direction: column; }
  .af-title { font-size: 20px; }
}

/* ── 카드 · AI 블록 (실제 화면·가이드 공통) ── */
.rd-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.rd-card__title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.rd-ai { border-left: 4px solid var(--accent); }
.rd-ai__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rd-ai__title { font-weight: 700; font-size: 17px; flex: 1; min-width: 180px; }
.rd-ai__text { font-size: 15px; color: #344054; margin-top: 10px; }
.rd-ai__basis { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 12px; flex-wrap: wrap; }
.rd-ai--block { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px; }
.rd-ai__actions { display: flex; gap: 6px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.rd-ai__state { font-size: 13px; font-weight: 600; color: var(--ok-ink); }
.rd-ai__state.is-on::before { content: "✓ "; }

/* ── 리디자인 후 동작 화면(/after) ── */
.rd-device {
  container-type: inline-size;
  container-name: app;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 24, 31, 0.04), 0 24px 48px -28px rgba(20, 24, 31, 0.25);
  margin: 0 auto;
  transition: max-width 0.3s;
  max-width: 1180px;
}
.rd-device.is-mobile { max-width: 390px; border: 10px solid var(--text); border-radius: 40px; }
.app { display: grid; grid-template-columns: 220px 1fr; min-height: 640px; background: var(--bg); }
.app-side { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 20px; }
.app-side__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; padding: 0 6px; }
.app-nav { display: flex; flex-direction: column; gap: 4px; }
.app-nav__item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; background: transparent; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; text-align: left; }
.app-nav__item:hover { background: #F2F4F7; color: var(--text); }
.app-nav__item.is-on { background: var(--primary-soft); color: var(--primary); }
.app-side__me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 6px 0; border-top: 1px solid var(--line); }
.app-side__me b { display: block; font-size: 14px; }
.app-side__me small { color: var(--muted); font-size: 13px; }
.app-main { padding: 28px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.app-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.app-kicker { font-size: 13px; color: var(--muted); }
.app-class { position: relative; display: inline-flex; align-items: center; }
.app-class select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 2px 30px 2px 0;
  min-height: 44px;
  cursor: pointer;
  border-radius: 8px;
}
.app-class select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.app-class svg { position: absolute; right: 4px; pointer-events: none; color: var(--muted); }
.app-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-metric__label { font-size: 13px; color: var(--muted); font-weight: 500; }
.app-metric__value { font-family: var(--font-num); font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin-top: 6px; }
.app-metric__value small { font-size: 18px; margin-left: 2px; color: var(--muted); font-weight: 500; }
.app-metric__delta { font-family: var(--font-num); font-size: 13px; font-weight: 600; margin-top: 6px; }
.app-metric__delta span { font-family: var(--font); color: var(--muted); font-weight: 400; }
.app-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
.app-weak__list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.app-bar { display: grid; grid-template-columns: 120px 1fr 92px 80px; gap: 12px; align-items: center; font-size: 15px; }
.app-bar .af-badge { justify-self: start; }
.app-bar__name { font-weight: 600; }
.app-bar__track { height: 10px; background: #EEF0F3; border-radius: 999px; overflow: hidden; }
.app-bar__fill { display: block; height: 100%; border-radius: 999px; }
.app-bar__val { font-family: var(--font-num); font-weight: 600; font-size: 14px; white-space: nowrap; }
.app-weak__cta { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.app-hint { font-size: 13px; color: var(--muted); }
.app-count { font-family: var(--font-num); font-size: 13px; background: var(--danger-soft); color: var(--danger-ink); border-radius: 999px; padding: 0 9px; }
.app-students__list { margin-top: 12px; }
.app-student { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.app-student:last-child { border-bottom: 0; }
.app-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.app-avatar--me { background: var(--accent); color: var(--text); }
.app-student__name { flex: 1; font-weight: 600; display: flex; flex-direction: column; }
.app-student__name small { font-weight: 400; color: var(--muted); font-size: 13px; }
.app-student__score { font-family: var(--font-num); font-weight: 600; color: var(--danger-ink); }
.app-questions { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.app-questions__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.app-questions__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.app-q { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.app-q.is-new { animation: none; }
.app-q__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.app-q__no { font-family: var(--font-num); font-weight: 700; color: var(--text); width: 22px; height: 22px; border-radius: 6px; background: #F2F4F7; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.af-tag--기초 { background: var(--ok-soft); color: var(--ok-ink); }
.af-tag--표준 { background: var(--primary-soft); color: var(--primary); }
.af-tag--심화 { background: #F4EBFF; color: #6941C6; }
.app-q__text { font-weight: 600; font-size: 15px; }
.app-q__why { font-size: 13px; color: #344054; background: #F8FAEB; border-radius: 8px; padding: 8px 10px; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.app-q__why b { font-weight: 700; }
.app-q--skeleton { gap: 10px; }
.sk { display: block; height: 12px; border-radius: 6px; background: #EEF0F3; animation: rd-pulse 1s ease-in-out infinite alternate; }
.sk--s { width: 30%; }
.sk--l { width: 90%; height: 16px; }
.sk--m { width: 65%; }
@keyframes rd-pulse { from { opacity: 1; } to { opacity: 0.45; } }
.app-empty { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px dashed #D0D5DD; border-radius: var(--radius); background: var(--surface); }
.app-empty p { display: flex; flex-direction: column; }
.app-empty b { font-size: 15px; }
.app-empty span { font-size: 14px; color: var(--muted); }
.app-empty--inline { flex-direction: column; text-align: center; border-style: dashed; }
.app-tabbar { display: none; }

@container app (max-width: 760px) {
  .app { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .app-main { padding: 20px 16px; gap: 16px; }
  .app-head { align-items: flex-start; }
  .app-class select { font-size: 22px; }
  .app-metrics { grid-template-columns: 1fr; gap: 10px; }
  .app-metric { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 14px 16px; }
  .app-metric__label { grid-column: 1; }
  .app-metric__value { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 32px; }
  .app-metric__delta { grid-column: 1; margin: 0; }
  .app-grid { grid-template-columns: 1fr; }
  .app-bar { grid-template-columns: 1fr auto auto; gap: 6px 10px; }
  .app-bar__track { grid-column: 1 / -1; grid-row: 2; }
  .app-weak__cta .rd-btn { width: 100%; }
  .app-questions { padding: 16px; }
  .app-questions__head .rd-btn { width: 100%; }
  .app-questions__list { grid-template-columns: 1fr; }
  .app-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: var(--surface); }
  .app-tabbar__item { border: 0; background: transparent; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); cursor: pointer; }
  .app-tabbar__item.is-on { color: var(--primary); }
  .app-empty { flex-direction: column; text-align: center; }
}

/* ── 컴포넌트 가이드(/system) ───── */
.rd-subnav {
  position: sticky;
  top: 69px;
  z-index: 10;
  display: flex;
  gap: 4px;
  padding: 8px 0;
  margin-bottom: 8px;
  background: var(--bg);
  overflow-x: auto;
  scrollbar-width: none;
}
.rd-subnav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.rd-subnav a:hover { color: var(--text); border-color: var(--text); }
.rd-section { padding: 32px 0 8px; scroll-margin-top: 128px; }
.rd-section__lead { color: var(--muted); margin: 8px 0 20px; max-width: 720px; }

.sw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sw { display: flex; flex-direction: row; align-items: stretch; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden; cursor: copy; }
.sw:hover { border-color: var(--gray-2); }
.sw__chip { width: 96px; flex: none; min-height: 112px; display: flex; align-items: flex-end; padding: 10px 12px; border-right: 1px solid var(--line); }
.sw__aa { font-family: var(--font-num); font-weight: 700; font-size: 22px; }
.sw__meta { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sw__name { font-weight: 700; font-size: 15px; }
.sw__name code { font-family: var(--font-num); font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.sw__hex { font-family: var(--font-num); font-size: 13px; font-weight: 600; }
.sw__use { font-size: 13px; color: var(--muted); }
.sw__cr { font-family: var(--font-num); font-size: 12px; color: var(--text); margin-top: 6px; background: #F2F4F7; align-self: flex-start; padding: 1px 8px; border-radius: 999px; }

.ty-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ty-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: baseline; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ty-row:last-child { border-bottom: 0; }
.ty-row__spec { font-family: var(--font-num); font-size: 13px; color: var(--muted); }
.ty-row__spec b { color: var(--text); font-size: 15px; }
.ty-row__spec small { display: block; font-family: var(--font); font-size: 13px; }
.ty-row__sample { letter-spacing: -0.02em; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.ty-row__sample--latin { font-family: var(--font-num); }

.sp-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sp-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 20px; }
.sp-row { display: grid; grid-template-columns: 32px 168px 1fr; align-items: center; gap: 12px; padding: 8px 0; }
.sp-row__px { font-family: var(--font-num); font-weight: 600; }
.sp-row__bar { height: 16px; background: var(--primary); border-radius: 4px; max-width: 100%; }
.sp-row:nth-child(odd) .sp-row__bar { background: var(--accent); box-shadow: inset 0 0 0 1px rgba(20, 24, 31, 0.35); }
.sp-row__use { font-size: 14px; color: var(--muted); }
.sp-radius { display: flex; gap: 16px; align-items: flex-end; justify-content: space-around; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.sp-radius__item { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sp-radius__box { width: 88px; height: 88px; border: 2px solid var(--primary); border-radius: 14px; background: var(--primary-soft); }
.sp-radius__box--btn { height: 44px; border-radius: 10px; }
.sp-radius__box--chip { height: 32px; border-radius: 999px; background: var(--accent); border-color: var(--text); }

.cp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.cp { display: flex; flex-direction: column; gap: 16px; }
.cp--wide { grid-column: 1 / -1; }
.cp__title { font-size: 18px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.cp__title small { font-size: 13px; font-weight: 500; color: var(--muted); }
.cp__rule { font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }
.cp-states { display: flex; flex-wrap: wrap; gap: 16px; }
.cp-state { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cp-state small { font-size: 12px; color: var(--muted); font-family: var(--font-num); }
.cp-try { padding: 12px; background: var(--bg); border-radius: 12px; }
.rd-field { display: flex; flex-direction: column; gap: 6px; }
.rd-field__label { font-size: 13px; font-weight: 600; }
.rd-input { min-height: 44px; border: 1px solid #D0D5DD; border-radius: 10px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--text); background: var(--surface); width: 100%; }
.rd-input:focus, .rd-input.is-focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(36, 71, 249, 0.14); }
.rd-input.is-error { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.12); }
.rd-field__help { font-size: 13px; color: var(--muted); }
.rd-field__err { font-size: 13px; color: var(--danger-ink); font-weight: 500; }
.cp-metric { padding: 16px; }
.cp-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cp-tr { display: grid; grid-template-columns: 1fr 1.3fr 60px 100px; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cp-tr:last-child { border-bottom: 0; }
.cp-tr:not(.cp-tr--head):hover { background: #F9FAFB; }
.cp-tr--head { background: #F9FAFB; font-size: 13px; color: var(--muted); font-weight: 600; }
.cp-num { font-family: var(--font-num); font-weight: 600; }

.sch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.sch__head, .sch__row { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: center; }
.sch__head { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sch__head-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.sch__days, .sch__track { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; }
.sch__days span { text-align: center; font-family: var(--font-num); font-size: 12px; font-weight: 600; color: var(--muted); }
.sch__days span.is-buffer { color: var(--gray-2); }
.sch__row { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.sch__row:last-child { border-bottom: 0; }
.sch__text { display: flex; flex-direction: column; gap: 2px; }
.sch__text b { font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sch__text small { font-size: 13px; color: var(--muted); }
.sch__d { font-family: var(--font-num); font-weight: 600; color: var(--primary); }
.sch__tag { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.sch__tag--visit { background: var(--accent); color: var(--text); }
.sch__tag--ship { background: var(--text); color: #fff; }
.sch__track { height: 20px; }
.sch__bar { height: 20px; border-radius: 6px; background: var(--primary); }
.sch__bar--visit { background: var(--accent); box-shadow: inset 0 0 0 1.5px var(--text); }
.sch__bar--ship { background: var(--text); }
.sch__bar--buffer { background: repeating-linear-gradient(135deg, #E3E6EC 0 6px, #F2F4F7 6px 12px); box-shadow: inset 0 0 0 1px #D0D5DD; }

/* ── 공고 대응표 버튼과 시트 ────── */
.rd-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  height: 44px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 24px -6px rgba(20, 24, 31, 0.45);
}
.rd-fab svg { color: var(--accent); }
.rd-sheet {
  border: 0;
  padding: 0;
  border-radius: 20px;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 32px 64px -16px rgba(20, 24, 31, 0.4);
}
.rd-sheet::backdrop { background: rgba(20, 24, 31, 0.45); }
.rd-sheet__body { padding: 24px; }
.rd-sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.rd-sheet__title { font-size: 24px; font-weight: 700; margin-top: 4px; letter-spacing: -0.02em; }
.rd-map { counter-reset: map; display: flex; flex-direction: column; }
.rd-map__row { counter-increment: map; display: grid; grid-template-columns: 28px 1fr; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rd-map__row::before { content: counter(map); grid-row: span 2; font-family: var(--font-num); font-weight: 700; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 12px; box-shadow: 0 0 0 1.5px var(--text); }
.rd-map__need { font-weight: 700; font-size: 15px; }
.rd-map__show { color: var(--primary); font-size: 14px; font-weight: 600; text-decoration: none; }
.rd-map__show:hover { text-decoration: underline; }
.rd-sheet__foot { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

.rd-toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 50;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 12px 28px -8px rgba(20, 24, 31, 0.45);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.rd-toast::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }

/* ── 반응형 ─────────────────────── */
@media (max-width: 960px) {
  .rd-notes { grid-template-columns: 1fr; }
  .sw-grid { grid-template-columns: repeat(2, 1fr); }
  .cp-grid { grid-template-columns: 1fr; }
  .sp-wrap { grid-template-columns: 1fr; }
  .sch__head, .sch__row { grid-template-columns: 1fr; gap: 8px; }
  .sch__head-label { display: none; }
}
@media (max-width: 760px) {
  .rd-top__inner { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .rd-brand__ver { display: none; }
  .rd-top__reset { margin-left: auto; }
  .rd-nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  .rd-nav__item { flex: 1; justify-content: center; padding: 8px 6px; font-size: 13px; }
  .rd-main { padding: 20px 0 104px; }
  .rd-wrap { padding: 0 16px; }
  .rd-h1 { font-size: 28px; }
  .rd-h2 { font-size: 20px; }
  .rd-pagehead { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
  .rd-toolbar .rd-seg:first-child { width: 100%; }
  .rd-toolbar .rd-seg:first-child .rd-seg__item { flex: 1; padding: 0 8px; }
  .rd-frame__size { display: none; }
  .rd-frame { border-radius: 16px; }
  .rd-subnav { top: 105px; }
  .rd-section { scroll-margin-top: 160px; }
  .rd-preview-toggle { display: none; }
  .rd-device { border-radius: 16px; }
  .rd-fab { right: 16px; bottom: 16px; }
  .rd-sheet { margin: auto auto 0; width: 100vw; max-width: 100vw; border-radius: 20px 20px 0 0; }
  .sw-grid { grid-template-columns: 1fr; }
  .sw__chip { min-height: 96px; width: 84px; }
  .ty-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; }
  .sp-row { grid-template-columns: 28px 1fr; }
  .sp-row__use { grid-column: 2; }
  .cp-tr { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .cp-tr--head { display: none; }
  .cp-tr span:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 13px; }
  .cp-tr span:nth-child(3) { grid-column: 2; grid-row: 1; }
  .cp-tr span:nth-child(4) { grid-column: 2; grid-row: 2; }
  .rd-card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-stage.is-animating { transition: none; }
  .rd-btn.is-loading .rd-btn__spin, .sk { animation: none; }
  .rd-device, .rd-btn, .rd-note, .rd-handle__knob { transition: none; }
}
