/* 리뷰 대응도우미 — 크기·모양은 docs/tools/review-helper/DESIGN-TOKENS.md 기준.
   색은 "사이트 값 우선"(2026-10-04 결정): 혜택on 무료도구 공통 토큰(--color-*, profit-drop-diagnosis 등과 같은 값)을 쓰고,
   대응 토큰이 없는 값과 도구 고유 의미색(주황 주의·초록 개인정보·노랑 빈칸·캡쳐 화면 어두운 배경)만 시안 값을 둔다. */
:root {
  --color-bg: #f2f3f5;
  --color-card: #ffffff;
  --color-text: #1c1c1e;
  --color-sub: #8a8f98;
  --color-accent: #1481fa;
  --color-accent-tint: #e7f1ff;
  --color-border: #e6e7eb;
  --shadow-card: 0 2px 14px rgba(20, 20, 30, 0.06);

  /* 이 도구 전용 — 사이트 토큰 값은 그대로 두고 WCAG AA(4.5:1)를 이 도구 안에서만 맞춘다(2026-10-04 결정).
     파랑 계열은 모두 사이트 파랑(#1481fa, 색상 211.6°)과 같은 색상·채도에서 명도만 바꾼 값. */
  --rh-sub: #686e77;            /* --color-sub 와 같은 색상, 흰 5.14 · bg 4.63 · tint 4.51 */
  --rh-accent-strong: #0572ec;  /* 흰 글자 대비 4.54 — 작은 흰 글씨의 배경, hover/active */
  --rh-accent-text: #056adb;    /* 파랑 글자 — 흰 5.13 · bg 4.62 · tint 4.50 */
  --rh-accent-border: #c3dffe;  /* 연한 테두리 */
  --rh-accent-soft: #9bc9fd;    /* 점선 테두리·비활성 버튼 */
  --rh-on-dark-sub: #c3dffe;    /* 캡쳐 화면(어두운 배경) 보조 글자, 13.96 */

  --primary: var(--color-accent);
  --primary-dark: var(--rh-accent-text);
  --primary-light: var(--color-accent-tint);
  --primary-border: var(--rh-accent-border);
  --text: var(--color-text);
  --muted: var(--rh-sub);
  --border: var(--color-border);
  --surface: var(--color-bg);
  --white: var(--color-card);
  --amber-bg: #FFF6E6;
  --amber-border: #FBE3B5;
  --amber-text: #7A4200;
  --amber-icon: #D97706;
  --green-bg: #EAF7F1;
  --green: #17835A;
  --rh-green-text: #167f57;     /* --green 과 같은 색상, 명도만 낮춤 — 초록 바탕 4.53 · 흰 4.99 */
  --blank-bg: #FFF1C2;
  --blank-text: #5C3D00;
  --dark: #0B0E1F;
  --toast: #1E2340;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.5;
}
button, input, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.rh-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ===== 상단 돌아가기 바 (기존 도구와 동일) ===== */
.tool-back-bar {
  display: block;
  padding: 10px 16px;
  background: #1F4E79;
  color: #fff;
  font-size: 0.85rem;
  text-decoration: none;
  text-align: center;
}
.tool-back-bar:hover { background: #17395c; }

/* ===== 상단 바 (h1) ===== */
.rh-topbar { background: var(--white); border-bottom: 1px solid var(--border); }
.rh-topbar-inner { max-width: 480px; margin: 0 auto; min-height: 56px; padding: 0 20px; display: flex; align-items: center; gap: 12px; }
.rh-logo { font-size: 20px; font-weight: 700; color: var(--text); }
.rh-logo span { color: var(--primary); }
.rh-topbar-divider { width: 1px; height: 18px; background: var(--border); }
.rh-title { margin: 0; font-size: 16px; font-weight: 600; }
.rh-topbar-note { margin: 0 0 0 auto; font-size: 13px; color: var(--muted); }

.rh-alert { max-width: 480px; margin: 12px auto 0; padding: 12px 16px; border-radius: 12px; background: var(--amber-bg); border: 1px solid var(--amber-border); color: var(--amber-text); font-size: 14px; font-weight: 700; }

/* ===== 앱 영역 (모바일: 한 화면씩) ===== */
.rh-app { max-width: 480px; margin: 0 auto; }
.rh-screen { min-height: 70vh; padding-bottom: 28px; }
.rh-screen--white { background: var(--white); }
.rh-screen--surface { background: var(--surface); }
.rh-screen--dark { background: var(--dark); color: var(--white); }
.rh-grid, .rh-col { display: block; }
.rh-only-desktop { display: none; }
.rh-empty { display: none; }

.rh-screen-head { display: flex; align-items: center; gap: 4px; padding: 12px 20px 8px 8px; }
.rh-back { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: none; background: transparent; color: var(--text); border-radius: 50%; cursor: pointer; }
.rh-h2 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.4; }
.rh-h2:focus, .rh-hero-title:focus { outline: none; }
.rh-body { padding: 4px 20px 0; display: flex; flex-direction: column; gap: 12px; }

.rh-lead { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.rh-muted { color: var(--muted); }
.rh-small { font-size: 13px; line-height: 1.55; }
.rh-center { text-align: center; }
.rh-help { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.rh-note { margin: 0; padding: 0 4px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.rh-disclaimer { margin: 16px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }
.rh-warn { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--amber-bg); border: 1px solid var(--amber-border); color: var(--amber-text); font-size: 14px; font-weight: 700; }

/* ===== 버튼 ===== */
.rh-btn-primary, .rh-btn-secondary {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border-radius: 12px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.rh-btn-primary { min-height: 54px; border: none; background: var(--primary); color: var(--white); font-size: 19px; } /* 굵게 18.66px 이상 = WCAG 큰 글자(3:1) */
.rh-btn-primary:hover, .rh-btn-primary:active { background: var(--rh-accent-strong); }
.rh-btn-primary[aria-disabled="true"], .rh-btn-primary:disabled { background: var(--rh-accent-soft); cursor: not-allowed; }
.rh-btn-secondary { min-height: 48px; border: 1px solid var(--border); background: var(--white); color: var(--text); font-size: 15px; }
.rh-text-btn { align-self: flex-start; min-height: 44px; padding: 0; border: none; background: transparent; color: var(--rh-accent-text); font-size: 14px; font-weight: 700; cursor: pointer; }
.rh-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--rh-accent-text); font-size: 14px; font-weight: 700; }
.rh-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

/* ===== 카드·칩 ===== */
.rh-card {
  margin: 0; min-width: 0; padding: 18px; border-radius: 16px; background: var(--white);
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 12px;
}
fieldset.rh-card { display: block; }
fieldset.rh-card > * + * { margin-top: 12px; }
.rh-card-title { margin: 0; padding: 0; font-size: 15px; font-weight: 700; color: var(--text); }
legend.rh-card-title { float: left; width: 100%; }
legend.rh-card-title + * { clear: both; }
.rh-optional { font-weight: 400; color: var(--muted); font-size: 13px; }
.rh-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.rh-chip-grid { display: grid; gap: 8px; }
.rh-chip-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rh-chip-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rh-chip-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rh-chip {
  min-height: 48px; padding: 0 8px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--white); color: var(--text); font-size: 15px; cursor: pointer;
}
.rh-chip[aria-pressed="true"] { border: 1.5px solid var(--primary); background: var(--primary-light); color: var(--primary-dark); font-weight: 700; }
.rh-chip--pill { min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.rh-chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.rh-hscroll { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 6px; scrollbar-width: thin; }
.rh-hscroll .rh-chip { flex: 0 0 auto; }

/* ===== 입력 ===== */
.rh-field { display: flex; flex-direction: column; gap: 8px; }
.rh-field-head { display: flex; align-items: center; justify-content: space-between; }
.rh-field-head label { font-size: 15px; font-weight: 700; }
.rh-textarea, .rh-input {
  width: 100%; border: 1px solid var(--border); border-radius: 12px; background: var(--white);
  color: var(--text); font-size: 16px; line-height: 1.5;
}
.rh-textarea { min-height: 150px; padding: 14px 16px; resize: vertical; }
.rh-textarea--tall { min-height: 220px; }
.rh-input { min-height: 48px; padding: 0 14px; }
.rh-textarea:focus, .rh-input:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.rh-sample-btn { margin-top: -4px; }

.rh-info { display: flex; gap: 12px; padding: 16px; border-radius: 14px; background: var(--primary-light); font-size: 14px; line-height: 1.55; }
.rh-info p { margin: 0; }
.rh-info-title { font-weight: 700; color: var(--primary-dark); margin-bottom: 4px !important; }
.rh-info-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--rh-accent-strong); color: var(--white); font-weight: 700; font-style: italic; }
.rh-privacy { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--green-bg); color: var(--rh-green-text); font-size: 14px; font-weight: 700; line-height: 1.5; }

/* ===== 처음 화면 ===== */
.rh-hero { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 26px 24px 0; }
.rh-hero-title { margin: 0; font-size: 28px; line-height: 1.4; font-weight: 700; }
.rh-hero-art { flex-shrink: 0; }
.rh-hero-desc { margin: 0; padding: 14px 24px 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.rh-entry { padding: 26px 20px 0; display: flex; flex-direction: column; gap: 14px; }
.rh-entry-card {
  display: flex; align-items: center; gap: 16px; padding: 22px 20px; border-radius: 18px;
  background: var(--primary-light); border: 1px solid var(--primary-border); color: var(--text); text-decoration: none;
}
.rh-entry-card--primary { background: var(--rh-accent-strong); border-color: var(--rh-accent-strong); color: var(--white); box-shadow: 0 6px 16px rgba(20, 129, 250, 0.25); }
.rh-entry-icon { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 14px; background: var(--primary); flex-shrink: 0; }
.rh-entry-card--primary .rh-entry-icon { border: 1.5px solid rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.16); }
.rh-entry-text { display: flex; flex-direction: column; gap: 4px; }
.rh-entry-text strong { font-size: 19px; }
.rh-entry-text span { font-size: 14px; line-height: 1.5; color: var(--rh-sub); }
.rh-entry-card--primary .rh-entry-text span { color: var(--white); }
#scrHome { padding-bottom: 0; display: flex; flex-direction: column; }
#scrHome .rh-disclaimer { padding: 0 24px 12px; margin-top: 28px; }

.rh-toast { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 20px 10px; padding: 12px 16px; border-radius: 12px; background: var(--toast); color: var(--white); font-size: 14px; line-height: 1.5; }
.rh-toast-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -10px -10px -10px 0; border: none; background: transparent; color: var(--white); font-size: 22px; cursor: pointer; }
.rh-tabbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--white); border-top: 1px solid var(--border); padding: 6px 8px 14px; }
.rh-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px;
  border: none; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer;
}
.rh-tab--hub { color: var(--text); font-weight: 700; }
.rh-badge { padding: 1px 8px; border-radius: 999px; background: var(--primary-light); color: var(--rh-sub); font-size: 11px; font-weight: 500; }

/* ===== 캡쳐 화면 ===== */
.rh-cap-head { position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 56px; }
.rh-cap-head .rh-h2 { color: var(--white); }
.rh-cap-close { position: absolute; left: 8px; top: 10px; width: 44px; height: 44px; border: none; background: transparent; color: var(--white); font-size: 28px; cursor: pointer; }
.rh-cap-frame { position: relative; margin: 8px 28px 0; min-height: 360px; display: flex; align-items: center; justify-content: center; padding: 18px; }
.rh-corner { position: absolute; width: 28px; height: 28px; border: 0 solid var(--white); }
.rh-corner--tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 8px; }
.rh-corner--tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 8px; }
.rh-corner--bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 8px; }
.rh-corner--br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 8px; }
.rh-cap-preview { max-width: 100%; max-height: 420px; border-radius: 8px; }
.rh-cap-empty { margin: 0; text-align: center; font-size: 15px; line-height: 1.6; color: var(--rh-on-dark-sub); }
.rh-cap-frame.is-drag { background: rgba(255, 255, 255, 0.08); }
.rh-cap-controls { display: flex; justify-content: center; gap: 16px; padding: 20px; }
.rh-cap-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 120px; min-height: 64px; padding: 8px 14px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white); font-size: 14px; font-weight: 700; cursor: pointer;
}
.rh-cap-btn--shutter { background: var(--rh-accent-strong); border-color: var(--rh-accent-strong); }
.rh-cap-btn:focus-within { outline: 2px solid var(--white); outline-offset: 2px; }
.rh-cap-pc { margin: 0; padding: 0 24px; text-align: center; font-size: 13px; color: var(--rh-on-dark-sub); }
.rh-sheet { margin-top: 20px; padding: 24px 20px 28px; border-radius: 24px 24px 0 0; background: var(--white); color: var(--text); display: flex; flex-direction: column; gap: 8px; }
.rh-sheet p { margin: 0; }
.rh-sheet-title { font-size: 17px; font-weight: 700; }
.rh-sheet-sub { font-size: 14px; color: var(--muted); }
.rh-sheet-warn { font-size: 13px; color: var(--amber-text); margin-bottom: 8px !important; }

.rh-ocr-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--amber-bg); border: 1px solid var(--amber-border); color: var(--amber-text); font-size: 13px; line-height: 1.5; font-weight: 700; }

/* PC 끌어다 놓기 칸 */
.rh-drop { padding: 16px; border-radius: 12px; border: 1.5px dashed var(--rh-accent-soft); background: var(--primary-light); text-align: center; }
.rh-drop > * + * { margin-top: 6px; }
.rh-drop.is-drag { border-color: var(--primary); }
.rh-drop-title { margin: 0; font-size: 14px; font-weight: 700; color: var(--primary-dark); }
.rh-drop-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--white); color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer; }
.rh-drop-btn:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.rh-drop-status { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text); font-weight: 700; }
.rh-drop-status:empty { display: none; }

/* ===== 분석 결과 ===== */
.rh-card--summary { background: var(--primary-light); border-color: var(--primary-border); box-shadow: none; }
.rh-sum-head { display: flex; align-items: center; gap: 12px; }
.rh-sum-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.rh-sum-title { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 700; color: var(--primary-dark); }
.rh-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rh-pills li { padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--primary-border); color: var(--primary-dark); font-size: 13px; font-weight: 500; }
.rh-sum-advice { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); }
.rh-status { color: var(--primary-dark); }
.rh-status.is-caution { color: var(--amber-text); }
.rh-sum-reason, .rh-sum-secondary { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.rh-sum-extra { margin: 0; font-size: 13px; line-height: 1.5; font-weight: 700; color: var(--amber-text); }
.rh-sum-disclaimer { margin: 0; padding-top: 10px; border-top: 1px solid var(--primary-border); font-size: 12px; line-height: 1.5; color: var(--muted); }
.rh-card--amber { background: var(--amber-bg); border-color: var(--amber-border); box-shadow: none; }
.rh-card--amber .rh-card-title { color: var(--amber-text); }
.rh-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rh-checks li { position: relative; padding-left: 30px; font-size: 14px; line-height: 1.55; }
.rh-checks li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 12px; height: 7px; border-left: 2.4px solid var(--amber-icon); border-bottom: 2.4px solid var(--amber-icon); transform: rotate(-45deg); }
.rh-policy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rh-policy-text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.rh-policy-text strong { font-size: 15px; }
.rh-policy-flag { color: var(--amber-text); font-weight: 700; }
.rh-more { display: flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--rh-accent-text); text-decoration: none; flex-shrink: 0; }
.rh-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.rh-step { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 4px 0; color: var(--text); text-decoration: none; }
.rh-step > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.5; }
.rh-step strong { font-size: 15px; }
.rh-step-no { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rh-accent-strong); color: var(--white); font-size: 14px; font-weight: 700; flex-shrink: 0; }

/* ===== 답변 초안 ===== */
.rh-banner { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--primary-light); color: var(--primary-dark); font-size: 14px; line-height: 1.55; font-weight: 700; }
.rh-banner.is-caution { background: var(--amber-bg); color: var(--amber-text); border: 1px solid var(--amber-border); }
.rh-preview { padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); white-space: pre-line; font-size: 16px; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
.rh-preview mark { background: var(--blank-bg); color: var(--blank-text); border-radius: 4px; padding: 1px 4px; font-weight: 500; }
.rh-blank-inputs { display: flex; flex-direction: column; gap: 12px; }
.rh-blank { display: flex; flex-direction: column; gap: 4px; }
.rh-blank label { font-size: 14px; font-weight: 700; }
.rh-blank .rh-help { font-size: 12px; }

/* ===== 신고 전 체크리스트 ===== */
.rh-check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rh-check-row { padding: 12px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--border); }
.rh-check-row label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-size: 14px; line-height: 1.55; cursor: pointer; }
.rh-check-row input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--primary); }
.rh-basis { margin: 2px 0 0 34px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.rh-basis-unverified { color: var(--amber-text); }
.rh-tip { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--amber-bg); border: 1px solid var(--amber-border); color: var(--amber-text); font-size: 14px; line-height: 1.55; font-weight: 700; }
.rh-official { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rh-official li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.rh-official-text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.rh-official-text strong { font-size: 14px; color: var(--text); }

/* ===== 도구 아래 정적 콘텐츠 ===== */
.tool-disclaimer { max-width: 880px; margin: 24px auto 0; padding: 0 20px; font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
.rh-static { max-width: 880px; margin: 0 auto; padding: 8px 20px 24px; font-size: 15px; line-height: 1.75; }
.rh-static section { margin-top: 28px; padding: 22px 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--border); }
.rh-static h2 { margin: 0 0 12px; font-size: 19px; }
.rh-static h3 { margin: 18px 0 6px; font-size: 16px; }
.rh-static p { margin: 0 0 10px; }
.rh-static-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.rh-type-list { margin: 0; }
.rh-type-list dt { margin-top: 12px; font-weight: 700; }
.rh-type-list dd { margin: 2px 0 0; color: var(--text); }
.rh-faq { border-top: 1px solid var(--border); }
.rh-faq:first-of-type { border-top: none; }
.rh-faq summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.rh-faq p { margin: 0 0 14px; color: var(--text); }

.app-footer { text-align: center; font-size: 0.82rem; color: var(--muted); padding: 24px 16px 8px; max-width: 880px; margin: 0 auto; }
.app-footer p { margin: 4px 0; }

/* ===== 태블릿(가운데 정렬) ===== */
@media (min-width: 481px) and (max-width: 959px) {
  .rh-app { margin-top: 16px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); }
}

/* ===== PC 3열 (≥ 960px) ===== */
@media (min-width: 960px) {
  .rh-topbar-inner { max-width: none; min-height: 64px; padding: 0 32px; }
  .rh-logo { font-size: 24px; }
  .rh-alert { max-width: none; margin: 12px 32px 0; }
  .rh-app { max-width: 1440px; }
  .rh-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; padding: 24px 32px 32px; }
  .rh-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .rh-only-desktop { display: block; }
  .rh-only-mobile { display: none !important; }
  .rh-empty { display: block; padding: 40px 20px; border-radius: 16px; border: 1.5px dashed var(--primary-border); background: var(--white); color: var(--muted); text-align: center; font-size: 15px; }
  .rh-screen { min-height: 0; padding-bottom: 0; background: transparent; }
  .rh-screen-head { padding: 0 0 10px; }
  .rh-back { display: none; }
  .rh-body { padding: 0; }
  .rh-actions--split { flex-direction: row; }
  .rh-actions--split > * { flex: 1; }
  .rh-actions--split .rh-btn-primary { min-height: 52px; }
  .rh-actions--split .rh-btn-secondary { min-height: 52px; }
}
