/* Casty 공통 스타일 — 토큰(tokens.css)과 typography/radius/spacing 스케일 준수 */

* { box-sizing: border-box; }

/* hidden 속성은 무엇을 얹어도 이긴다.
   브라우저 기본값은 `[hidden]{display:none}` 인데 클래스 규칙이 더 세서
   `display` 를 주는 순간 조용히 덮인다. 그 자리마다 따로 되돌리다 보면
   반드시 하나를 빠뜨린다 — 실제로 결제 배너와 오류 줄과 푸터 회사 정보
   셋이 그렇게 늘 보이는 채로 있었다. 뿌리에서 한 번 막는다. */
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-1);
  font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* --- 인증 레이아웃 (로그인 · 최초 비밀번호 변경) --------------------------- */

.auth-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 26px;
}

.auth-logo { width: 96px; height: auto; }
/* 로고 파일 스왑 — 라이트(기본): casty_B(검정) / 다크: casty_W(흰색). 라이트가 기본이다(D-654) */
.logo-dark { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
[data-theme="dark"] .logo-light { display: none; }

/* 텍스트 로고 — cast + 민트 y (요청 ui 프로토타입) */
.auth-logo-text {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-1);
}
.auth-logo-text b { color: var(--pri); }

.auth-card {
  width: 100%;
  max-width: 392px;
  background: var(--card);
  border: 1px solid var(--w-08);
  border-radius: 18px;
  padding: 30px 28px;
}

.auth-title {
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.auth-desc {
  margin: -14px 0 24px;
  font-size: 13px;
  color: var(--text-3);
}

/* --- 폼 ------------------------------------------------------------------- */

.field-label {
  display: block;
  margin: 16px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.field {
  width: 100%;
  padding: 12px 14px;
  background: var(--w-03);
  border: 1px solid var(--w-12);
  border-radius: 10px;
  color: var(--text-1);
  font: inherit;
  font-size: 14px;
  outline: none;
}
.field::placeholder { color: var(--text-muted); }
.field:focus { border-color: var(--b-45); }

/* 인증 카드 안 폼 — 프로토타입 규격 (라벨 13px text-3 · 입력 높이 46px) */
.auth-card .field-label {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0;
}
.auth-card form > .field-label:first-child { margin-top: 0; }
.auth-card .field { height: 46px; padding: 0 14px; }
.auth-card .inline-error { min-height: 14px; margin-top: 8px; }
/* 비밀번호 규칙 안내 — 충족 시 민트 ✓ (프로토타입) */
.auth-card .hint.is-ok { color: var(--pri); }

.btn-primary {
  width: 100%;
  margin-top: 4px;
  padding: 12px;
  background: var(--pri);
  color: var(--on-brand);
  border: none;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:hover { background: var(--pri-hover); }
.btn-primary:disabled {
  background: var(--surface-disabled);
  color: var(--text-disabled);
  cursor: not-allowed;
}

.inline-error {
  min-height: 20px;
  margin-top: 12px;
  font-size: 12px;
}
.error-text { color: var(--danger); }

/* --- 카드 하단 보조 영역 ---------------------------------------------------- */

.auth-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
/* 구글로 계속하기 — 색은 구글 브랜드 가이드가 정한 값이라 테마를 따르지 않는다.
   그 값은 tokens.css 의 Platform brand 구역이 소유한다(인스타그램·스레드와 같은 자리). */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 16px; margin-bottom: 4px;
  background: var(--brand-google-bg); color: var(--brand-google-ink);
  font-size: 15px; font-weight: 500;
  border: 1px solid var(--brand-google-border);
  border-radius: 10px; text-decoration: none;
}
.btn-google:hover { background: var(--brand-google-hover); }
.btn-google img { flex: none; display: block; }

.auth-or {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 14px; color: var(--text-3); font-size: 13px;
}
.auth-or::before, .auth-or::after {
  content: ""; flex: 1; height: 1px; background: var(--b-12);
}

/* 이메일로 로그인 — 접어 둔다(기획 지시 2026-09-03). 구글이 정상 경로이고
   이 폼은 운영이 발급한 계정을 위한 자리라, 열어 두면 두 길이 같은 무게로
   보인다. 접는 줄 자체는 작고 조용하게 둔다. */
.auth-more { margin-top: 18px; }
.auth-more > summary {
  display: block;
  padding: 6px 0;
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.auth-more > summary::-webkit-details-marker { display: none; }
.auth-more > summary::after { content: " ▾"; font-size: 10px; }
.auth-more[open] > summary::after { content: " ▴"; }
.auth-more > summary:hover { color: var(--text-2); }
.auth-more > summary:focus-visible {
  outline: 2px solid var(--pri); outline-offset: 2px; border-radius: 6px;
}
.auth-more[open] > summary { margin-bottom: 6px; }

.link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--text-2);
  text-decoration: none;
  cursor: pointer;
}
.link:hover { color: var(--text-1); }

.foot-note {
  margin: 8px 0 0;
  color: var(--text-3);
}

/* ==========================================================================
 * 앱 셸 — 전역 레이아웃 (사이드바 · 상단바)  [화면정의서 공통 1]
 * ========================================================================== */

.app { display: flex; min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 220px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 12px;
  background: var(--sidebar);
  border-right: 1px solid var(--w-08);
}

.side-logo { display: block; padding: 4px 12px; }
.side-logo img { height: 20px; width: auto; display: block; }
.side-logo-text {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-1); text-decoration: none; line-height: 1.2;
}
.side-logo-text b { color: var(--pri); }

.side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  text-decoration: none;
}
.side-item:hover { background: var(--w-03); color: var(--text-1); }
.side-item.is-active { background: var(--b-08); color: var(--pri); }

.side-ico { width: 18px; flex: 0 0 18px; display: inline-flex; align-items: center; justify-content: center; }
.side-ico svg { width: 18px; height: 18px; }

.side-badge {
  margin-left: auto;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--w-08);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.side-collapse {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}
.side-collapse:hover { background: var(--w-03); color: var(--text-2); }

/* 접힘 상태 */
.app.is-collapsed .sidebar { width: 64px; padding: 20px 10px; }
.app.is-collapsed .side-label,
.app.is-collapsed .side-badge,
.app.is-collapsed .side-logo { display: none; }
.app.is-collapsed .side-item,
.app.is-collapsed .side-collapse { justify-content: center; padding: 10px; }
/* 사이드바 하단 — 최신 배포 공지 제목 (r02_v0.1.9-1) */
.side-version { padding: 6px 12px; font-size: 11px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app.is-collapsed .side-version { display: none; }

/* 접기 버튼 아이콘 — 펼침 ◀ / 접힘 ▶ (r02_v1.8_2-2) */
.side-collapse .ico-closed { display: none; }
.app.is-collapsed .side-collapse .ico-open { display: none; }
.app.is-collapsed .side-collapse .ico-closed { display: inline; }

.app-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  padding: 0 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--w-08);
}

/* 상단바 우측 묶음 — 매뉴얼 링크 + 계정 드롭다운 (계정 버튼과 같은 문법) */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.manual-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
}
.manual-link:hover { background: var(--w-03); }
.guide-ico {
  display: inline-flex;
  align-items: center;
  color: var(--text-3);
}

/* 발굴 현황 인디케이터 (Q5 가정 — 상단바 전역 배치) */
.job-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--w-12);
  border-radius: 20px;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  cursor: pointer;
}
.job-indicator:hover { border-color: var(--w-24); }
.job-indicator .caret { color: var(--text-muted); font-size: 10px; }

/* 진행 벨트 팝오버 (요청 ui 프로토타입) — 인디케이터 클릭으로 열림 */
.belt-wrap { position: relative; }
.belt-pop {
  display: none;
  position: absolute;
  right: 0; top: calc(100% + 10px);   /* 인디케이터가 우측 그룹에 있어 오른쪽 기준 정렬 */
  width: 360px;
  background: var(--surface-1);
  border: 1px solid var(--w-12);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 12px 40px var(--shadow-float);
  z-index: 60;
}
.belt-pop.open { display: block; }
.belt-h { font-size: 12px; color: var(--text-muted); padding: 6px 8px 8px; }
.belt-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 13px; color: var(--text-1);
  text-decoration: none;
}
a.belt-item:hover { background: var(--w-03); }
.belt-chs { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.belt-chs svg { width: 16px; height: 16px; display: block; }
.belt-kw { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.belt-item .st { margin-left: auto; flex: 0 0 auto; font-size: 12px; color: var(--text-3); }
.belt-item .st + form { flex: 0 0 auto; }
.belt-item:has(.belt-cancel) .st { margin-left: auto; }
.belt-cancel {
  border: 1px solid var(--w-16); background: none;
  color: var(--text-2); border-radius: 7px;
  padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer;
}
.belt-cancel:hover { border-color: var(--w-24); }
.belt-note {
  font-size: 12px; color: var(--text-muted);
  padding: 10px 8px 4px; margin-top: 4px;
  border-top: 1px solid var(--w-08);
  line-height: 1.5;
}
.job-indicator .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pri);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .3; } }

/* 계정 드롭다운 */
.dropdown { position: relative; }

.account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border: none;
  border-radius: 10px;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
}
.account-btn:hover { background: var(--w-03); }

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--b-12);
  color: var(--pri);
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 auto;
}

.caret { font-size: 10px; color: var(--text-muted); }

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  padding: 6px;
  background: var(--surface-1);
  border: 1px solid var(--w-12);
  border-radius: 12px;
  box-shadow: 0 12px 32px var(--shadow-menu);
  display: none;
  z-index: 40;
}
.dropdown.is-open .dropdown-menu { display: block; }

.menu-item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.menu-item:hover { background: var(--w-03); color: var(--text-1); }
.menu-item.is-danger { color: var(--danger); }
/* 로그아웃이 <a> 에서 POST 폼의 <button> 으로 바뀌었다(보안감사 2026-09-10
   발견 15). 위 .menu-item 규칙이 폭·정렬·배경·글꼴을 이미 <a>·<button> 둘
   다에 건다 — 여기선 브라우저 기본 버튼 여백만 지운다(button.pop-item 과
   같은 자리 패턴, 1920행 부근). */
button.menu-item { margin: 0; }
button.menu-item::-moz-focus-inner { border: 0; padding: 0; }
.menu-divider { height: 1px; margin: 6px 0; background: var(--w-08); }

/* 본문 */
/* 본문 — 왼쪽에 붙이고 넓게 쓴다(기획 지시 2026-09-02).
   종전에는 1200px 로 묶어 가운데 정렬이라, 넓은 화면에서 좌우가 똑같이 비고
   본문은 늘 화면 한가운데 좁은 띠였다. 캐스팅 화면(.page.cast4)만 왼쪽 정렬에
   1680px 였는데, 그 골격을 전 화면 공통으로 올린다.
   오른쪽 여백은 캐스팅 화면의 안쪽 여백(24px)보다 넓게 48px 를 준다. */
.page { width: 100%; max-width: 1680px; margin: 0; padding: 32px 48px 100px 32px; }
/* 한 줄로 읽는 화면(약관 본문·긴 글)만 좁힌다. 두 칸 이상을 세우는 화면은
   기본 폭을 그대로 쓴다 — 좁혀 두면 칸이 서로를 밀어낸다. */
.page.is-narrow { max-width: 1080px; }
.page.is-wide { max-width: 1680px; }
.page.is-full { max-width: none; }
/* 리스트·캐스팅 기록은 확정 디자인(04.List·05.History)대로 화면 폭을 그대로 쓴다.
   이 두 규칙이 없어서 기본 1200px 가운데 정렬에 갇혀 있었다 (2026-08-26 기획 지적).
   리스트는 왼쪽 레일과 본문이 각자 패딩을 갖는 2단 구조라 여기서는 패딩을 주지 않는다 */
.page.is-list { max-width: none; margin: 0; padding: 0; }
.page.is-history { max-width: none; margin: 0; padding: 26px 24px 100px; }
/* 캐스팅 결과도 확정 디자인(03.Results)대로 전체 폭을 쓰는 2단 구조다. 조건 레일·본문이
   각자 패딩을 갖는다(results.html .rv4-side/.rv4-main) — 리스트와 같은 이유로 여기서는
   패딩을 주지 않는다 (2026-08-26 기획 지적) */
.page.is-results { max-width: none; margin: 0; padding: 0; }

.page-head { margin-bottom: 24px; }
.page-title { margin: 0 0 4px; font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.page-desc { margin: 0; font-size: 13px; color: var(--text-3); }

/* ==========================================================================
 * 공통 컴포넌트 — 버튼 · 폼 컨트롤 · 칩 · 토스트
 * ========================================================================== */

/* 버튼 크기는 3종뿐이다 — 기본(.btn) · 작게(.btn.sm) · 아이콘 전용(.btn.icon).
   padding·font-size·border-radius 는 여기 세 곳에서만 정의한다. 화면별 CSS 에서
   .btn 계열의 크기를 다시 재정의하지 않는다(2026-09-07 정리 — content-modal.css 에
   남아 있던 4번째 크기(.rv4-cm-acts .btn.brand, 10px 16px/13px/8px)는 실제로는
   어느 마크업도 물지 않는 죽은 규칙이라 지웠다).
   색·형태 변형(brand/ghost/danger/danger-ghost/is-saved/is-disabled/block 등)은
   이 크기와 직교한다 — 예: class="btn sm brand", class="btn icon" 처럼 자유 조합. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;      /* 기본 */
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn.brand { background: var(--pri); color: var(--on-brand); font-weight: 700; }
.btn.brand:hover { background: var(--pri-hover); }
.btn.ghost { background: none; border-color: var(--w-16); color: var(--text-2); }
.btn.ghost:hover { border-color: var(--w-34); color: var(--text-1); }
.btn.danger { background: var(--danger); color: var(--on-danger); font-weight: 700; }
.btn.danger-ghost { background: none; border-color: var(--danger-a50); color: var(--danger); }
.btn.sm { padding: 6px 12px; border-radius: 8px; font-size: 12px; }   /* 크기 2/3 — 작게(표·설정 등 조밀한 자리) */
.btn.icon { padding: 6px 10px; border-radius: 8px; font-size: 13px; background: none; border-color: var(--w-16); color: var(--text-3); }  /* 크기 3/3 — 아이콘 전용(정사각에 가까운 눌림 자리) */
.btn.icon:hover { color: var(--text-1); border-color: var(--w-34); }
.btn:disabled { background: var(--surface-disabled); border-color: transparent; color: var(--text-disabled); cursor: not-allowed; }
.btn.is-saved { background: var(--b-08); border-color: var(--b-25); color: var(--pri); }

/* Select */
.select {
  appearance: none;
  padding: 10px 36px 10px 12px;
  background: var(--w-03) var(--select-arrow) no-repeat right 12px center;
  border: 1px solid var(--w-12);
  border-radius: 10px;
  color: var(--text-1);
  font: inherit;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}
.select:focus { border-color: var(--b-45); }
.select option { background: var(--surface-select); }

/* Toggle switch */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  position: relative;
  width: 36px; height: 20px;
  border-radius: 20px;
  background: var(--w-16);
  transition: background .15s;
  flex: 0 0 auto;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--text-2);
  transition: left .15s, background .15s;
}
.switch input:checked + .track { background: var(--pri); }
.switch input:checked + .track::after { left: 18px; background: var(--on-brand); }

input[type="checkbox"] { accent-color: var(--pri); width: 16px; height: 16px; }

/* 필드 그룹 */
.fgroup { display: flex; flex-direction: column; gap: 6px; }
.fgroup > .flabel { font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.02em; }

/* 키워드 칩 (pill) */
/* 키워드 칩 — 중립 테두리형 (요청 ui 프로토타입) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--w-12);
  border-radius: 20px;
  background: none;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}
.chip .x {
  border: none; background: none; padding: 0;
  color: var(--pri); opacity: .7;
  font: inherit; font-size: 12px; cursor: pointer; line-height: 1;
}
.chip .x:hover { opacity: 1; }

/* 추천 키워드 */
.sugg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--w-12);
  border-radius: 20px;
  background: none;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.sugg:hover { border-color: var(--w-24); color: var(--text-1); }
.sugg .rank { font-size: 11px; font-weight: 700; color: var(--text-muted); }

/* 채널 칩(표시용) */
.ch {
  display: inline-flex;
  padding: 2px 6px;
  border-radius: 8px;
  background: var(--w-08);
  color: var(--text-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 추천 이유 칩 */

/* 토스트 — 상단 중앙 스택, 2~3초 자동 소멸.
   우하단에 두었더니 시선이 닿지 않아 알림을 놓쳤다 (2026-08-27 기획).
   화면 폭이 넓을수록 오른쪽 아래는 시야 밖이다 — 눈이 머무는 위쪽 가운데로 옮긴다. */
.toast-stack {
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--w-16);
  border-radius: 12px;
  background: var(--surface-tooltip);
  box-shadow: 0 12px 32px var(--shadow-menu);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
}
.toast::before { font-weight: 700; }
.toast.success::before { content: "✓"; color: var(--pri); }
.toast.info::before { content: "ⓘ"; color: var(--text-3); }
.toast.warn::before { content: "⚠"; color: var(--warning); }
/* 실패 — 서버가 왜 안 됐는지를 돌려주는 자리다. 종전에는 이 종류에 아무
   모양이 없어 성공과 같은 얼굴로 스쳐 지나갔다(기획 신고 2026-09-03). */
.toast.error::before { content: "!"; color: var(--danger); }
.toast.is-closable {
  pointer-events: auto;
  cursor: pointer;
  max-width: min(560px, calc(100vw - 48px));
  text-align: left;
}
.toast-stack .toast { animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* 스텝 인디케이터 (발굴 3스텝) */
/* 스텝퍼 — 카드형 (요청 ui 프로토타입) */
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 22px; }
.step {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 18px;
  background: var(--card);
  border: 1px solid var(--w-08);
  border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
}
.step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--surface-disabled);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}
.step.is-active { color: var(--text-1); }
.step.is-active .step-num { background: var(--pri); color: var(--on-brand); }
.step.is-done { color: var(--text-3); }
.step.is-done .step-num { background: var(--w-08); color: var(--text-2); }
.step-line { width: 34px; height: 1px; background: var(--w-12); flex: 0 0 auto; }

/* 패널(카드형 섹션) */
.panel { background: var(--card); border: 1px solid var(--w-08); border-radius: 16px; padding: 24px; }
.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 24px; }
.panel-foot .spacer { flex: 1; }

.sec-label { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.02em; }

.hint { font-size: 12px; color: var(--text-muted); }
.hint.warn { color: var(--warning); }

/* ==========================================================================
 * 발굴 3스텝 (A-1 ~ A-3)
 * ========================================================================== */

.step-panel[hidden] { display: none; }

/* STEP 1 — 라벨 행(좌 라벨 · 우 카테고리) + 칩이 안에 들어가는 키워드 입력 박스 (프로토타입) */
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sec-row .sec-label { margin: 0; }
.sec-row .select { min-width: 150px; }

.kw-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  min-height: 50px;
  margin-top: 12px;
  padding: 8px 14px;
  background: var(--w-03);
  border: 1px solid var(--w-12);
  border-radius: 10px;
}
.kw-box:focus-within { border-color: var(--b-45); }
.kw-chips { display: contents; }   /* 칩이 입력과 같은 줄에 흐르게 */
.kw-inline {
  flex: 1; min-width: 160px;
  border: none; background: none; outline: none;
  color: var(--text-1); font: inherit; font-size: 14px;
  padding: 6px 0;
}
.kw-inline::placeholder { color: var(--text-muted); }
.kw-clear {
  margin-left: auto;
  border: none; background: none; padding: 4px;
  color: var(--text-muted); font: inherit; font-size: 12px; cursor: pointer;
}
.kw-clear:hover { color: var(--text-1); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sugg-box { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--w-08); }

/* 채널 선택 (A-2) */
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.channel-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--w-08);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
}
.channel-opt:hover { border-color: var(--w-24); }
.channel-opt.is-on { border-color: var(--b-45); background: var(--b-12); }
.channel-opt input { position: absolute; opacity: 0; }

/* 채널 브랜드 아이콘 (요청 ui 프로토타입) — partials/channel_symbols.html의 #ig/#yt/#th와 함께 사용 */
.ch-icon {
  width: 18px; height: 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}
.ch-icon svg { width: 11px; height: 11px; fill: var(--white); }
.ch-icon.ig { background: var(--brand-instagram-bg); }
.ch-icon.yt { background: var(--brand-youtube); }
.ch-icon.th { background: var(--brand-threads-bg); border: 1px solid var(--w-24); }
.ch-name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.ch-sub { font-size: 11px; color: var(--text-muted); }
.ch-check { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--text-disabled); }
.channel-opt.is-on .ch-check { color: var(--pri); }

/* 발굴 조건 (A-3) */
.cond-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.cond-grid .fgroup.is-wide { grid-column: 1 / -1; }
.cond-grid .select { height: 46px; }
.fgroup.to-end { justify-content: flex-end; }

/* 광고 경험 세그먼트 (프로토타입 .seg) — radio 숨김 + :checked 강조 */
.seg {
  display: flex; gap: 4px;
  height: 46px; padding: 4px;
  background: var(--w-03);
  border: 1px solid var(--w-12);
  border-radius: 10px;
}
.seg-b { flex: 1; display: flex; align-items: center; justify-content: center; border-radius: 7px; font-size: 14px; color: var(--text-3); cursor: pointer; }
.seg-b input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg-b:has(input:checked) { background: var(--b-12); color: var(--pri); font-weight: 600; }

/* 이메일 있는 후보만 — 라벨+토글이 한 줄인 입력형 필드 (프로토타입 .tgfield) */
.tgfield {
  display: flex; align-items: center; justify-content: space-between;
  height: 46px; padding: 0 14px;
  background: var(--w-03);
  border: 1px solid var(--w-12);
  border-radius: 10px;
}
.tgfield .tg-label { font-size: 14px; color: var(--text-1); }
/* 판정 알고리즘 — 결과 판정 기준을 정하는 핵심 선택이라 강조 */
.fgroup.is-key > .flabel { color: var(--pri); }
.fgroup.is-key > .select { border-color: var(--pri); }
.fgroup.is-key > .select:focus { box-shadow: 0 0 0 3px var(--w-12); }
.toggle-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--w-12);
  border-radius: 10px;
  background: var(--w-03);
}
.toggle-line .t-label { font-size: 14px; color: var(--text-1); }

/* ==========================================================================
 * 수집 진행 (A-4)
 * ========================================================================== */

.prog-hero { text-align: center; padding: 40px 24px 32px; }
.spinner {
  width: 36px; height: 36px;
  margin: 0 auto 20px;
  border: 3px solid var(--w-12);
  border-top-color: var(--pri);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.prog-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.prog-sub { margin: 0; font-size: 13px; color: var(--text-3); }

/* 실패 상태 (요청 ui 프로토타입) — 경고 아이콘 + 다시 시도 */
.prog-fail-ico { color: var(--danger); margin-bottom: 10px; }
.prog-retry { margin-top: 20px; }

/* 로딩 스켈레톤 (요청 ui 프로토타입) — 진행 중 결과 카드 미리보기 */
.skel-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.skcard {
  background: var(--card);
  border: 1px solid var(--w-08);
  border-radius: 16px;
  padding: 18px 20px;
}
.skcard-head { display: flex; align-items: center; gap: 10px; }
.skcard-thumbs { display: flex; gap: 8px; margin-top: 14px; overflow: hidden; }
.skel { background: var(--w-08); border-radius: 8px; position: relative; overflow: hidden; }
.skel::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--w-12), transparent);
  animation: sk 1.3s infinite;
}
@keyframes sk {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.prog-channels { display: flex; flex-direction: column; gap: 16px; margin: 32px 0; }
.prog-row { display: flex; align-items: center; gap: 16px; }
.prog-row .p-name { width: 100px; flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--text-2); }
.prog-bar { flex: 1; height: 8px; border-radius: 6px; background: var(--w-08); overflow: hidden; }
.prog-fill { height: 100%; border-radius: 6px; background: var(--pri); }
/* 후보 검색 중 — 총량을 모르는 단계라 확정 진행률 대신 흐르는 바로 표시 */
.prog-row.is-searching .prog-fill {
  width: 35% !important;
  animation: prog-indet 1.4s ease-in-out infinite;
}
@keyframes prog-indet {
  0% { margin-left: 0; }
  50% { margin-left: 65%; }
  100% { margin-left: 0; }
}
.prog-row .p-state { width: 72px; flex: 0 0 auto; text-align: right; font-size: 12px; color: var(--text-3); }
.prog-row.is-done .p-state { color: var(--pri); }
.prog-row.is-wait .prog-fill { background: var(--w-16); }

.stat-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--w-08);
  border-radius: 8px;
  background: var(--w-03);
  font-size: 12px;
  color: var(--text-3);
}
.stat b { color: var(--text-1); font-weight: 700; }
.stat .dot { width: 6px; height: 6px; border-radius: 50%; }
.stat .dot.run { background: var(--pri); animation: pulse 1.4s ease-in-out infinite; }
.stat .dot.wait { background: var(--text-muted); }
.stat .dot.done { background: var(--pri); }
.stat .dot.fail { background: var(--danger); }

.queue-box { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--w-08); }
.queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--w-08);
  border-radius: 10px;
  background: var(--w-03);
  font-size: 13px;
  color: var(--text-2);
}
.queue-item .q-order { font-size: 11px; font-weight: 700; color: var(--text-muted); }

/* ==========================================================================
 * 캐스팅 진행 파셜 (partials/job_progress.html) — 인라인 style 정리(2026-09-07)
 * 애니메이션에 딸린 정적 클래스(.pj-skel·.pj-spinner·.pj-fill·.pj-arrived 의
 * 키프레임/그리드)는 discover_progress.html 의 페이지 레벨 <style> 에 그대로
 * 둔다 — 파셜이 3초 폴링으로 outerHTML 교체되는 동안에도 유지돼야 해서다.
 * 여기 있는 것들은 폴링과 무관한 순수 레이아웃/타이포로, 이 파일에 한 번만 둔다.
 * ========================================================================== */
.pj-title { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.25; letter-spacing: -0.025em; color: var(--text-1); }
.pj-title-icon { display: flex; align-items: center; gap: 12px; }
.pj-title-danger { margin: 10px 0 0; color: var(--danger); }
/* 부분 성공(2026-09-09) — failed 인데 결과가 있는 중간 상태. 완료(기본 --text-1)도
   완전 실패(--danger)도 아니게, 이미 있는 --warning 토큰(채널 0개·warn 토스트와 같은 계열)을 쓴다. */
.pj-title-warn { margin: 10px 0 0; color: var(--warning); }
.pj-spin-ico { display: inline-flex; width: 18px; height: 18px; flex: 0 0 18px; }
.pj-spin-ico svg { width: 18px; height: 18px; }
.pj-sub { margin: 8px 0 0; font-size: 13px; color: var(--text-3); }
.pj-meta { margin: 6px 0 0; font-size: 12px; color: var(--text-muted); }
.pj-cta { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pj-fail-ico { display: inline-flex; width: 30px; height: 30px; color: var(--danger); }
.pj-fail-ico svg { width: 30px; height: 30px; }
.pj-warn-ico { display: inline-flex; width: 30px; height: 30px; color: var(--warning); }
.pj-warn-ico svg { width: 30px; height: 30px; }

.pj-avatars { display: flex; align-items: center; gap: 14px; margin: 22px 0 0; }
.pj-avatar-stack { display: flex; align-items: center; flex: 0 0 auto; margin-right: 12px; }
.pj-avatar { position: relative; width: 44px; height: 44px; flex: 0 0 44px; margin-right: -12px; border-radius: 50%; border: 2px solid var(--bg); background: var(--w-08); overflow: hidden; }
.pj-avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pj-avatar-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pj-found-text { font-size: 13px; color: var(--text-2); }
.pj-found-count { color: var(--text-1); font-weight: 500; }
.pj-elapsed { font-size: 12px; color: var(--text-muted); }

.pj-channels { display: flex; flex-direction: column; margin: 22px 0 0; }
/* .pj-row 는 세로로 쌓는다 — 기본 한 줄(.pj-row-main) 아래에 목표 대비 실제·
   오류 사유를 한 줄 더 붙일 수 있어야 한다(.pj-row-note, 기획 지시 2026-09-17).
   note가 없는 보통 줄은 지금과 똑같이 한 줄로 보인다. */
.pj-row { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 0; border-top: 1px solid var(--w-08); }
.pj-channels .pj-row:last-child { border-bottom: 1px solid var(--w-08); }
.pj-row-main { display: flex; align-items: center; gap: 14px; }
.pj-row-ico { width: 17px; height: 17px; flex: 0 0 17px; display: block; }
.pj-row-label { width: 80px; flex: 0 0 80px; font-size: 13px; color: var(--text-1); }
.pj-row-label.is-queued { color: var(--text-3); }
/* radius 6 — 높이 5px 라 half-height(2.5px)로 잘려 이전 3px 때와 렌더 결과는
   같다(이미 pill 이었다). 값만 스케일 안으로 맞춘다(F-7) */
.pj-row-track { flex: 1; height: 5px; border-radius: 6px; background: var(--w-08); overflow: hidden; }
/* .pj-fill 의 width 는 진행률(계산값)이라 인라인으로 남긴다 — 색만 클래스로 뺀다.
   .pj-row.is-searching .pj-fill 의 !important 폭/애니메이션은 위 설명대로 discover_progress.html 소관 */
.pj-fill { display: block; height: 100%; background: var(--pri); transition: width .6s ease; }
.pj-fill.is-failed { background: var(--danger); }
/* done인데 그 안에서 실제 수집 오류가 있었던 채널 — 실패(빨강)는 아니지만
   목표 미달과도 다르다. job-level 부분 성공 배지와 같은 --warning 계열. */
.pj-fill.is-warn { background: var(--warning); }
/* done인데 목표에 못 미친 채널(오류는 없음) — 경고가 아니라 "그만큼만 있었다"는
   중립 정보다. casty_list.css의 대기·중간 배지와 같은 --info 계열을 그대로 쓴다. */
.pj-fill.is-info { background: var(--info); }
.pj-row-status { flex: 0 0 118px; text-align: right; font-size: 12px; color: var(--text-3); }
.pj-row-status.is-done { color: var(--pri-text); }
.pj-row-status.is-failed { color: var(--danger); }
.pj-row-status.is-warn { color: var(--warning); }
.pj-row-status.is-info { color: var(--info); }
.pj-row-status.is-queued { color: var(--text-muted); }
/* 채널 줄 아래 보조 문구 — 실패 사유·미달 사유. 아이콘+간격(17+14)만큼 들여써
   라벨 시작과 맞춘다. 조용한 완료(목표 달성)에는 이 줄 자체가 없다. */
.pj-row-note { margin: 0 0 0 31px; font-size: 12px; line-height: 1.45; color: var(--text-muted); }
.pj-row-note.is-warn { color: var(--warning); }
.pj-row-note.is-danger { color: var(--danger); }

.pj-arrived-head { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 12px; }
.pj-arrived-title { font-size: 16px; font-weight: 600; color: var(--text-1); letter-spacing: -0.025em; }
.pj-arrived-sub { font-size: 12px; color: var(--text-muted); }
.pj-arrived-card { min-width: 0; }
.pj-arrived-thumb { position: relative; display: block; width: 100%; aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; background: var(--panel); }
.pj-arrived-scrim { position: absolute; inset: 0; background: var(--scrim); }
.pj-arrived-cap { position: absolute; left: 10px; right: 10px; bottom: 9px; display: flex; align-items: center; gap: 6px; }
.pj-arrived-ico { width: 14px; height: 14px; flex: 0 0 14px; display: block; }
.pj-arrived-handle { min-width: 0; font-size: 12px; font-weight: 500; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pj-cancel-inline { display: inline; margin-left: auto; }

/* ==========================================================================
 * 결과 (B-1 ~ B-3)
 * ========================================================================== */

.results { display: flex; gap: 24px; align-items: flex-start; }

.filters {
  position: sticky;
  top: 80px;
  width: 260px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-card { background: var(--card); border: 1px solid var(--w-08); border-radius: 16px; padding: 16px; }

/* 적용된 조건 카드 헤더 + 키워드 칩 (요청 ui 프로토타입) */
.phead { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); font-weight: 600; margin-bottom: 14px; }
.cond-kw-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.cond-kws { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cond-kws .chip { padding: 4px 10px; font-size: 12px; }
.cond-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }

.cond-list { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cond-list > div { display: flex; justify-content: space-between; gap: 12px; }
.cond-list dt { font-size: 12px; color: var(--text-muted); }
.cond-list dd { margin: 0; font-size: 12px; font-weight: 600; color: var(--text-2); text-align: right; }

.filter-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; font-size: 13px; color: var(--text-2); }
.filter-line label { display: flex; align-items: center; gap: 8px; cursor: pointer; }

/* 국가 필터 (v1.0.0-rc.2) — 라디오 목록, 선택 행 민트 틴트 */
.cfilter { display: flex; flex-direction: column; gap: 2px; }
.cfilter-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px; color: var(--text-2);
  cursor: pointer;
}
.cfilter-item input { accent-color: var(--pri); }
.cfilter-item:has(input:checked) { background: var(--b-08); color: var(--pri); font-weight: 600; }
.cfilter-item .cf-count { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.cfilter-item:has(input:checked) .cf-count { color: var(--pri); }
.cfilter-divider { height: 1px; background: var(--w-08); margin: 4px 0; }

.res-main { flex: 1; min-width: 0; }

.res-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.res-count { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.res-count b { color: var(--pri); }
.excluded-note { font-size: 12px; color: var(--text-3); }
.excluded-note::before { content: "✓ "; color: var(--pri); font-weight: 700; }
.res-head .spacer { flex: 1; }

.sort-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.sort-tab {
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
}
.sort-tab:hover { color: var(--text-1); }
.sort-tab.is-active { background: var(--b-12); color: var(--pri); }
.sort-note { margin: 0 0 16px; font-size: 11px; color: var(--text-muted); }

.creator-list { display: flex; flex-direction: column; gap: 16px; }

/* 크리에이터 카드 (B-3) */
.creator {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--w-08);
  border-radius: 16px;
}
.creator:hover { border-color: var(--w-16); }
/* 판정별 카드 테두리 — 추천 초록(민트) · 비추천 회색 2종 (2026-07-28 요청).
   hover 규칙보다 뒤에 두어 마우스를 올려도 판정 색이 유지된다. */
.creator.is-rec { border-color: var(--b-45); }
.creator.is-rejected { border-color: var(--w-24); }

/* 카드 헤더 (요청 ui 프로토타입) — 채널 아이콘 · @핸들 · 이메일 · 담기 */
.cc-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cc-handle { font-size: 16px; font-weight: 700; color: var(--text-1); }
.cc-email {
  border: none; background: none; padding: 0;
  font: inherit; font-size: 12px; color: var(--text-muted);
  cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cc-email:hover { color: var(--text-2); }
.cc-save {
  margin-left: auto;
  border: 1px solid var(--w-16); background: none;
  color: var(--text-2); border-radius: 9px;
  padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600;
  white-space: nowrap; cursor: pointer; flex: 0 0 auto;
}
.cc-save:hover { border-color: var(--w-24); }
.cc-save.is-saved { background: var(--b-12); color: var(--pri); border-color: var(--b-25); cursor: default; }

.handle { font-size: 15px; font-weight: 700; color: var(--text-1); }
.badge-dup { padding: 2px 8px; border: 1px solid var(--w-16); border-radius: 8px; font-size: 10px; font-weight: 600; color: var(--text-3); }

.pick { display: none; align-self: center; }
.creator-list.is-selecting .pick { display: block; }

/* 판정 배지 행 — 추천/비추천 rbadge + 사유 rchip */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rbadge { display: inline-block; border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 600; }
.rbadge.rec { background: var(--b-12); color: var(--pri); }
.rbadge.no { background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--warning); }
.rchip { font-size: 11px; padding: 4px 9px; border-radius: 7px; font-weight: 600; }
.rchip.rec { background: var(--b-08); color: var(--pri); }
.rchip.no { background: color-mix(in srgb, var(--warning) 12%, transparent); color: var(--warning); }

/* ⓘ 인포 툴팁 — data-tip 커스텀(app.js). title은 지연·타깃이 작아 안 뜨는 것처럼 보였다 */
.info-i {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
  font-size: 10px; font-style: normal; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: 1px;
  cursor: help;
}
[data-tip] { cursor: help; }
.tip-pop {
  position: fixed; z-index: 70;
  /* 화면이 260px 보다 좁으면 상자가 화면 밖으로 나가 오른쪽이 잘렸다(2026-08-27
     기획). 배치 스크립트는 화면 안으로 당기지만 폭 자체가 넘으면 소용이 없다. */
  max-width: min(260px, calc(100vw - 24px)); padding: 8px 11px;
  background: var(--surface-tooltip);
  border: 1px solid var(--w-16); border-radius: 8px;
  font-size: 11.5px; font-weight: 500; line-height: 1.55; color: var(--text-2);
  box-shadow: 0 6px 20px var(--shadow-tip);
  pointer-events: none;
}

.card-tabs {
  display: inline-flex;
  align-self: flex-start;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--w-08);
  border-radius: 10px;
  background: var(--w-03);
}
.card-tab {
  padding: 5px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
}
.card-tab.is-active { background: var(--card); border-color: var(--w-12); color: var(--text-1); }

/* 채널 탭 전환 패널 — 선택 채널의 칩·지표·콘텐츠 표시 */
.ch-panel { display: flex; flex-direction: column; gap: 16px; }
.ch-panel[hidden] { display: none; }

/* 결과 더보기 (Q7 — 20개씩) */
.load-more { display: flex; justify-content: center; margin-top: 16px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--w-08);
  border-radius: 12px;
  background: var(--w-03);
  overflow: hidden;
}
.metric { padding: 12px 11px; border-left: 1px solid var(--w-08); min-width: 0; }
.metric:first-child { border-left: none; }
.metric dt { font-size: 10.5px; color: var(--text-muted); white-space: nowrap; }
.metric dd { margin: 6px 0 0; font-size: 17px; font-weight: 700; color: var(--text-1); }
.metric dd.mint { color: var(--pri); }
.metric dd.warn { color: var(--warning); }
.metric dd small { font-size: 11px; font-weight: 600; color: var(--text-3); }
.metric dd small { font-size: 11px; font-weight: 500; color: var(--text-3); }
.metric dt .dt-note { color: var(--text-3); }
/* 카드 핸들 옆 (국가) 라벨 (r02_v0.1.9-3) */
.handle-line .country-tag { font-size: 11px; color: var(--text-3); }

/* 더보기 버튼 로딩 (2026-07-28) — 요청 중(htmx-request) 버튼 안에 스피너 표시 */
.load-more .btn .btn-spin { display: none; }
.load-more .btn.htmx-request { color: var(--text-muted); pointer-events: none; }
.load-more .btn.htmx-request .btn-spin {
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid var(--w-16);
  border-top-color: var(--pri);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.thumbs-cap { margin: 0 0 8px; font-size: 11px; color: var(--text-muted); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumb {
  position: relative;
  flex: 0 0 100px;
  height: 140px;
  display: flex;
  align-items: flex-end;
  padding: 8px;
  border: 1px solid var(--w-08);
  border-radius: 10px;
  background: var(--thumb-gradient);
  cursor: pointer;
}
.thumb:hover { border-color: var(--w-24); }
/* 대표 콘텐츠 썸네일 이미지 (r02_02) — 버튼을 꽉 채우고 조회수 배지는 그 위에 */
.thumb { overflow: hidden; }
.thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 이미지 로드 실패 안내(js castyImgFail, 기획 지시 2026-09-10) — onerror 여덟 자리가
   각자 this.remove()로 지우기만 해서 빈 칸이 남던 것을 한 곳으로 모았다. 칸이 클 때만
   문장을 얹는다 — 90px 이하 칸에 문장을 넣으면 한글이 한 자씩 쪼개져 보인다(실측 근거는
   JS 쪽 tier 주석). background로 항상 불투명하게 채운다 — 부모 배경이 none인 자리
   (.rv4-nc-media .thumb 등)에서도 완전히 빈 것처럼 안 보이게 하려는 것이다. */
.thumb-noimg {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-align: center; padding: 8px; font-size: 11px; color: var(--text-muted);
  background: var(--panel);
}
.thumb-noimg-ico { font-size: 18px; line-height: 1; filter: grayscale(1); opacity: .7; }
.thumb-noimg-msg { font-size: 12px; line-height: 1.3; color: var(--text-2); }
.thumb-noimg-sub { font-size: 11px; line-height: 1.3; color: var(--text-muted); }
/* medium 칸(132~140px 안팎 — 기록 미리보기 대표 콘텐츠·리스트 대표 썸네일)은 좁을 때
   높이가 74px까지 내려간다(유튜브 16:9). 한 줄만 얹으므로 sub 는 JS가 아예 안 만든다 —
   여기서는 아이콘·padding·글자 크기만 줄여서 그 한 줄이 잘리지 않게 한다. */
.thumb-noimg.is-medium { padding: 6px; gap: 2px; }
.thumb-noimg.is-medium .thumb-noimg-ico { font-size: 15px; }
.thumb-noimg.is-medium .thumb-noimg-msg { font-size: 11px; }
/* 52px 프로필 원형(content_modal.html .rv4-cm-avatar) — 이미지를 채우던 자리가 절대
   위치가 아니라 고정 크기 인라인 원이라 다른 칸과 같은 inset:0 을 쓸 수 없다. */
.thumb-noimg.is-avatar {
  position: static; width: 52px; height: 52px; flex: 0 0 52px;
  border-radius: 50%; padding: 0;
}
.thumb .views { position: relative; text-shadow: 0 1px 4px var(--shadow-thumb); }
.content-preview { overflow: hidden; }
.preview-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .views { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--white); }
/* 광고/협찬 게시물 배지 (QA 2026-08-01) — 스펙 B-3 대표 콘텐츠: ▶조회수·AD */
.thumb .ad-chip { padding: 1px 4px; border-radius: 6px; background: var(--warning); color: var(--on-brand); font-size: 10px; font-weight: 700; letter-spacing: .02em; }
/* 결과 화면 썸네일 스트립(templates/results.html .rv4-strip)에서는 이미지 위
   좌상단 오버레이로 얹는다 — 03.Results.dc.html 기준 어두운 반투명 칩 + 흰 글자
   (경고색 노랑이 아니다, 2026-08-26 기획 지적. --ink-80은 정본의 검정 반투명값과
   가장 가까운 기존 토큰이다 — tokens.css는 이 화면 소관 밖이라 새 토큰을 만들지 않았다) */
.rv4-strip .thumb .ad-chip { position: absolute; top: 5px; left: 5px; padding: 1px 4px; border-radius: 6px; background: var(--ink-80); color: var(--white); font-size: 10px; font-weight: 400; letter-spacing: normal; }
.thumb .ad {
  position: absolute;
  top: 6px; left: 6px;
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--ad-a85);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
}

/* 선택 모드 바 — 토스트와 같이 상단 중앙에 세운다 (2026-08-27 기획).
   토스트가 위로 올라온 뒤에도 이 바만 아래에 남으면 눈이 두 군데를 오간다.
   토스트(z-index 60)보다 낮게 두어 알림이 이 바에 가리지 않는다. */
.select-bar {
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  z-index: 40;
  display: none;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--surface-1);
  border: 1px solid var(--w-16);
  border-radius: 12px;
  box-shadow: 0 16px 40px var(--shadow-float);
  font-size: 13px;
  font-weight: 600;
}
.select-bar.is-on { display: flex; }
/* 선택 바가 떠 있는 동안에는 토스트를 그 아래로 내린다 — 둘 다 상단 중앙이라
   그대로 두면 알림이 선택 바를 덮는다. 「리스트에 추가」를 누른 직후가 바로
   둘이 동시에 보이는 순간이라 실제로 겹친다 (2026-08-27 기획) */
body:has(.creator-list.is-selecting) .toast-stack,
body:has(.select-bar.is-on) .toast-stack { top: 82px; }
/* 작업 공지 배너가 떠 있으면 둘 다 그만큼 내린다 — 배너도 화면 맨 위 한 줄이라
   그대로 두면 선택 바가 공지를 덮는다(같은 z-index 40) */
body:has(.work-banner) .select-bar { top: 64px; }
body:has(.work-banner) .toast-stack { top: 64px; }
body:has(.work-banner):has(.creator-list.is-selecting) .toast-stack,
body:has(.work-banner):has(.select-bar.is-on) .toast-stack { top: 126px; }
.creator-list.is-selecting + .select-bar { display: flex; }

/* 빈 상태 (I4 · I5 · I7 · I8) */
/* 빈 상태 — 프로토타입 emptybox: 영역을 채우는 중앙 정렬 카드 */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  min-height: 380px;
}
.empty .e-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--text-1); }
.empty .e-desc { margin: 10px 0 0; font-size: 13px; color: var(--text-3); max-width: 420px; line-height: 1.6; }
.empty .btn { margin-top: 20px; }
/* 결과 화면의 빈 상태는 우패널 전체 높이를 채운다 (프로토타입 scr-empty) */
.res-main .empty { min-height: calc(100vh - 200px); }

/* ==========================================================================
 * 컨택 후보 (C-1)
 * ========================================================================== */

.groups-layout { display: flex; gap: 24px; align-items: flex-start; }

.group-list {
  position: sticky;
  top: 80px;
  width: 300px;
  flex: 0 0 auto;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--w-08);
  border-radius: 16px;
}
.group-items { display: flex; flex-direction: column; gap: 2px; }
/* 리스트 행 + 케밥 메뉴 (요청 ui 프로토타입) */
.group-item-wrap { position: relative; display: flex; align-items: center; }
.group-item-wrap .group-item { flex: 1; min-width: 0; }
.kebab {
  border: none; background: none; padding: 4px;
  color: var(--text-muted); cursor: pointer; flex: 0 0 auto;
  border-radius: 6px; display: inline-flex;
}
.kebab:hover { color: var(--text-1); background: var(--w-03); }
.kebab-menu {
  display: none;
  position: absolute; right: 4px; top: calc(100% + 2px);
  width: 150px;
  background: var(--surface-1);
  border: 1px solid var(--w-12);
  border-radius: 10px;
  padding: 6px;
  z-index: 20;
  box-shadow: 0 10px 30px var(--shadow-float);
}
.kebab-menu.open { display: block; }
.kebab-menu button {
  display: block; width: 100%; text-align: left;
  border: none; background: none;
  padding: 9px 10px; border-radius: 7px;
  font: inherit; font-size: 13px; color: var(--text-2); cursor: pointer;
}
.kebab-menu button:hover { background: var(--w-03); color: var(--text-1); }
.kebab-menu button.dz { color: var(--danger); }
.group-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.group-item:hover { background: var(--w-03); color: var(--text-1); }
.group-item.is-active { background: var(--b-12); color: var(--pri); }
.group-item .g-count { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--text-muted); }
.group-item.is-active .g-count { color: var(--pri); }
.group-list-foot { display: flex; gap: 4px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--w-08); }

.group-main { flex: 1; min-width: 0; }
.group-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.group-title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.group-title b { color: var(--pri); font-weight: 700; }
.group-updated { margin: 4px 0 0; font-size: 12px; color: var(--text-muted); }
.group-actions { margin-left: auto; display: flex; gap: 8px; }

.member-list { display: flex; flex-direction: column; gap: 10px; }
.member {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--w-08);
  border-radius: 14px;
}
.member-row { display: flex; align-items: center; gap: 12px; }
.member-id { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.member-id .handle { font-size: 15px; }
.member-actions { display: flex; gap: 6px; flex: 0 0 auto; }

/* 이메일 복사 칩 (요청 ui 프로토타입) — 클릭 = 복사 + 토스트 */
.em-copy {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  background: var(--w-03);
  border: 1px solid var(--w-12);
  border-radius: 8px;
  font: inherit; font-size: 13px; color: var(--text-2);
  cursor: pointer;
}
.em-copy:hover { border-color: var(--w-24); }
.em-copy .cpi { color: var(--text-muted); display: inline-flex; }

/* 후보 메모 (I9 · T12) */
.memo { margin-left: 28px; font-size: 12px; }
.memo .memo-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: none;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 12px;
  color: var(--text-3);
  cursor: pointer;
}
.memo .memo-view:hover { background: var(--w-03); color: var(--text-1); }
.memo .memo-view.is-empty { color: var(--text-muted); }
.memo-edit { display: none; flex-direction: column; gap: 8px; max-width: 480px; }
.memo.is-editing .memo-view { display: none; }
.memo.is-editing .memo-edit { display: flex; }
.memo-edit textarea {
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  background: var(--w-03);
  border: 1px solid var(--b-25);   /* 편집 중 민트 테두리 (프로토타입) */
  border-radius: 10px;
  color: var(--text-1);
  font: inherit;
  font-size: 12px;
  resize: vertical;
  outline: none;
}
.memo-edit textarea:focus { border-color: var(--b-45); }
.memo-edit .memo-foot { display: flex; align-items: center; gap: 8px; }
.memo-edit .memo-count { font-size: 11px; color: var(--text-muted); margin-right: auto; }

/* ==========================================================================
 * 모달 (M1 ~ M7) · 콘텐츠 확대 (M2)
 * ========================================================================== */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--ink-82);
}
.backdrop.is-open { display: flex; }

/* 같은 모달인데 여는 방법이 둘이다. .backdrop 은 is-open 클래스로 열고,
   .modal-back 은 hidden 속성으로 닫는다. 뒤쪽에 규칙이 아예 없어서 무료
   캐스팅 소진 모달과 레일 잠금 모달이 화면에 안 떴다 — 결제로 가는 길을
   막고 있던 자리다. 여는 방법만 다르고 생김새는 같게 둔다. */
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--ink-82);
}

.modal {
  width: 100%;
  max-width: 420px;
  padding: 24px;
  background: var(--surface-1);
  border: 1px solid var(--w-12);
  border-radius: 16px;
}
.modal.is-wide { max-width: 760px; }
.modal.is-narrow { max-width: 340px; }   /* M8 세션 만료 등 단문 모달 */
.modal.is-half { max-width: 50vw; }
/* 공지 열람(로그인) — 화면의 가로·세로 50% 고정, 본문만 스크롤 */
.modal.is-notice { max-width: 50vw; height: 50vh; display: flex; flex-direction: column; }
.modal.is-notice .notice-body { flex: 1; min-height: 0; overflow-y: auto; }
.modal-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.modal-title { margin: 0; flex: 1; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.modal-x {
  border: none; background: none; padding: 2px 6px;
  color: var(--text-muted); font: inherit; font-size: 16px; cursor: pointer; line-height: 1;
}
.modal-x:hover { color: var(--text-1); }
.modal-desc { margin: 0; font-size: 13px; color: var(--text-3); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.modal-actions .to-left { margin-right: auto; }

/* M1 그룹 선택 */
.group-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.group-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--w-08);
  border-radius: 10px;
  background: var(--w-03);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
}
.group-opt:hover { border-color: var(--w-16); }
.group-opt .g-count { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--text-muted); }
.group-new { display: flex; align-items: center; gap: 10px; padding: 4px 0 0; }
.group-new .field { flex: 1; padding: 8px 12px; font-size: 13px; }

/* M2 콘텐츠 확대 */
.content-modal { display: flex; gap: 24px; }
.content-preview {
  position: relative;
  flex: 0 0 240px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--w-08);
  border-radius: 12px;
  background: var(--thumb-gradient);
  color: var(--text-faint);
  font-size: 12px;
}
.content-preview .ad {
  position: absolute;
  top: 10px; left: 10px;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--ad-a85);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
}
.content-detail { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content-meta { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.cd-cap { margin: 0 0 10px; font-size: 13px; color: var(--text-3); line-height: 1.7; }
.cd-title { margin: 0 0 10px; font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--text-1); }   /* 유튜브 영상 제목 (프로토타입) */
.content-title { margin: 0 0 12px; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.content-grid .metric { border: 1px solid var(--w-08); border-radius: 10px; background: var(--w-03); }
.content-nav { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.content-nav .spacer { flex: 1; }

/* ==========================================================================
 * 계정 (D-1)
 * ========================================================================== */

.account-grid { display: flex; flex-direction: column; gap: 24px; }
.kv-list { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.kv-list > div { display: flex; gap: 16px; align-items: baseline; }
.kv-list dt { width: 120px; flex: 0 0 auto; font-size: 12px; color: var(--text-muted); }
.kv-list dd { margin: 0; font-size: 14px; color: var(--text-1); }
.kv-list dd small { font-size: 11px; color: var(--text-muted); }

/* ── 이력 (history.html) ─────────────────────────────────────── */
.hist-list { margin-top: 12px; display: flex; flex-direction: column; }
/* 캐스팅 기록 행 (요청 ui 프로토타입) — 일시·키워드·채널 아이콘·집계·상태 */
.hist-row {
  display: grid;
  grid-template-columns: 150px 180px 110px 1fr 64px;
  gap: 12px;
  align-items: center;
  padding: 15px 8px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
}
.hist-row:hover { background: var(--w-03); color: var(--text-1); }
.hist-when { font-size: 13px; color: var(--text-3); }
.hist-kw { font-weight: 700; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-ch { display: inline-flex; gap: 4px; }
.hist-count { font-size: 13px; color: var(--text-muted); }
.hist-status { font-size: 12px; font-weight: 600; text-align: right; }
.hist-status.is-done { color: var(--pri); }
.hist-status.is-running, .hist-status.is-queued { color: var(--text-2); }
.hist-status.is-failed { color: var(--danger); }
.hist-status.is-canceled { color: var(--text-muted); }
.hist-status.is-canceled { color: var(--text-muted); }

/* ── 실험실 (lab.html) ───────────────────────────────────────── */
.lab-layout { display: flex; flex-direction: column; gap: 16px; }
.lab-list-panel > summary.lab-list-summary { display: flex; align-items: center; cursor: pointer; list-style: none; }
.lab-list-panel > summary::-webkit-details-marker { display: none; }
.lab-fold-hint { margin-left: auto; font-size: 11.5px; color: var(--text-muted); }
.lab-list-panel[open] .lab-fold-hint { transform: none; }
.lab-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.lab-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--w-06, var(--w-08)); background: var(--w-03); }
.lab-item.is-new { text-decoration: none; color: var(--pri); border-style: dashed; }
.lab-item.is-active { background: var(--b-08); }
.lab-item.is-builtin { color: var(--text-muted); }
.lab-item b { font-size: 13px; color: var(--text-1); display: block; }
.lab-item.is-builtin b { color: var(--text-3); }
.lab-item small { font-size: 11px; color: var(--text-muted); display: block; }
.lab-name { flex: 1; text-decoration: none; min-width: 0; }
.lab-head { display: grid; grid-template-columns: 220px 1fr; gap: 12px; margin: 12px 0 20px; }

/* 프로세스 단계 카드 */
.step { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--w-06, var(--w-08)); border-radius: 12px; background: var(--w-03); }
.step-no { font-size: 20px; color: var(--pri); line-height: 1.2; flex: 0 0 auto; }
.step-body { flex: 1; min-width: 0; }
.step-body h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--text-1); }
.step-body h3 small { display: block; font-size: 11.5px; font-weight: 400; color: var(--text-muted); margin-top: 2px; }
.step-arrow { text-align: center; color: var(--text-muted); font-size: 16px; margin: 6px 0; }
.step-hint { margin: 8px 0 0; font-size: 11.5px; color: var(--text-muted); }

/* 수식 + 인라인 입력 */
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; font-family: Consolas, "D2Coding", monospace; font-size: 13px; color: var(--text-2); line-height: 2; }
.formula b { color: var(--text-1); }
.f-input { padding: 3px 8px; font-size: 13px; font-family: inherit; text-align: right; border-color: var(--pri) !important; }
.f-sep { color: var(--text-muted); }
.f-note { font-family: inherit; font-size: 11.5px; color: var(--text-muted); }
.f-branch { padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.f-yes { background: var(--b-12); color: var(--pri); }
.f-no { background: var(--b-08); color: var(--text-2); }
.f-check { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; color: var(--text-1); }

/* ④ A/B 두 경로 나란히 */
.step-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.step-col { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--w-06, var(--w-08)); }
.step-col > b { font-size: 12.5px; color: var(--text-1); }
.step-col > small { font-size: 11px; color: var(--text-muted); }
.step-col.is-a { border-color: var(--b-25); }

/* ② 벤치마크 표 */
.bm-table { border-collapse: collapse; margin: 8px 0; }
.bm-table th, .bm-table td { padding: 5px 8px; font-size: 12px; color: var(--text-3); text-align: center; }
.bm-table th { font-weight: 600; }
.bm-table tr th:first-child { text-align: left; color: var(--text-2); }

/* 버전별 실제 설정값 — 전체 폭을 쓰는 자동 그리드(화면 검수 2번, 가운데 좁은
   기둥에 카드를 세로로 쌓지 않는다). 카드 수는 버전마다 다르다(상수 개수가
   다르므로) — auto-fill이 알아서 열 수를 맞춘다. */
.lab-const-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 10px; }
/* min-width: 0 — 그리드 아이템은 기본이 min-width: auto라, 안의 표(4개 체급 ×
   국내/해외 같은 넓은 표)가 240px 트랙보다 넓으면 트랙 자체가 넓어져 옆 카드를
   덮는다(체급 하한 있는 버전에서 TIKTOK_BENCHMARKS 카드가 실제로 이렇게
   깨졌다 — 화면 검수). min-width: 0으로 트랙 폭에 맞춰 줄어들게 하고, 표가
   그래도 넓으면 카드 안에서 가로로만 스크롤되게 한다(잘리지 않는다). */
.lab-const-item { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--w-06, var(--w-08)); background: var(--w-03); min-width: 0; overflow-x: auto; }
/* 체급×채널/국가 2단 표(table2d)는 칸이 여러 개라 기본 트랙 폭(240px)에
   묶어 두면 위 overflow-x 스크롤에 늘 숨어 있게 된다 — 옆 칸까지 걸쳐서
   표가 한눈에 보이게 한다. .is-wide 를 두 칸으로 거는 min-width:720px 규칙은
   F-8(2026-09-10)로 responsive.css 로 옮겼다 — 브레이크포인트를 한 파일에 모은다. */
.lab-const-item > b { display: block; font-size: 12px; font-family: Consolas, "D2Coding", monospace; color: var(--text-2); margin-bottom: 6px; }
.lab-const-item > p { margin: 0; font-size: 13px; color: var(--text-1); }
.lab-const-item .bm-table { margin: 0; }

/* ⑥ 조건 → 플래그 */
.cond { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 7px 0; font-size: 12.5px; color: var(--text-2); }
.cond-if { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: Consolas, "D2Coding", monospace; }
.flag { padding: 2px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 700; }
.flag.bad { background: var(--lab-red-a12); color: var(--danger); }
.flag.warn { background: var(--lab-amber-a18); color: var(--warning); }
.flag.good { background: var(--b-12); color: var(--pri); }
.flag.cond { background: var(--b-08); color: var(--text-2); }
.flag.hold { background: var(--w-03); color: var(--text-muted); border: 1px solid var(--w-06, var(--w-08)); }

/* ⑦ 액션 규칙 */
.action-rules { margin: 8px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.action-rules li { line-height: 2; }

/* 단계별 값 설명 (접이) */
.step-notes { margin-top: 8px; }
.step-notes summary { font-size: 11.5px; color: var(--text-muted); cursor: pointer; }
.step-notes ul { margin: 6px 0 0; padding-left: 18px; }
.step-notes li { font-size: 11.5px; color: var(--text-muted); margin: 3px 0; line-height: 1.5; }
.step-notes b { color: var(--text-3); }

/* 실험 */
.lab-exp-row { display: flex; gap: 10px; margin: 12px 0; align-items: center; }
.lab-exp-row .select { flex: 1; }
.exp-table { border-collapse: collapse; margin: 10px 0; font-size: 13px; }
.exp-table th, .exp-table td { padding: 6px 14px; text-align: center; color: var(--text-2); border: 1px solid var(--w-06, var(--w-08)); }
.exp-table th { color: var(--text-3); font-size: 12px; }
.exp-table td.is-diff { color: var(--pri); font-weight: 700; }
.exp-changed { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.exp-row { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; color: var(--text-2); padding: 6px 8px; border-radius: 8px; background: var(--w-03); }
.exp-row .handle { font-weight: 600; color: var(--text-1); }
.exp-row .ch { font-size: 11px; color: var(--text-muted); }

/* 단계 설명 문단 + 예시 계정 따라가기 */
.step-desc { margin: 0 0 10px; font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
.step-desc b { color: var(--text-2); }
.step-desc code { font-size: 11.5px; }
.step-example { margin: 10px 0 4px; padding: 8px 12px; border-radius: 8px;
  background: var(--b-08); border: 1px dashed var(--b-25);
  font-size: 12px; color: var(--text-3); line-height: 1.6; }
.step-example b { color: var(--pri); }
.step-example.is-intro { margin: 12px 0 16px; }

/* ── 실험실2 (lab2.html) — 프로세스 그래프 ─────────────────────── */
.lab2-head { display: flex; align-items: flex-start; gap: 20px; }
.lab2-picker { margin-left: auto; display: flex; flex-direction: column; gap: 4px; min-width: 220px; }

/* 실험실2 그래프 노드 카드 (SVG foreignObject 내부 HTML) */
.g-card { background: var(--surface-select); border: 1px solid var(--w-16); border-radius: 12px;
  padding: 10px 14px; height: 100%; box-sizing: border-box; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-2);
  text-align: center; }
.g-card.g-left { align-items: stretch; text-align: left; justify-content: flex-start; }
.g-card.g-q { background: var(--lab-amber-a08); border-color: var(--warning); font-weight: 700; color: var(--text-1); }
.g-card.g-a { border-color: var(--b-45); }
.g-card.g-fail { border-color: var(--lab-red-a50); }
.g-title { font-size: 13.5px; font-weight: 700; color: var(--text-1); }
.g-sub { font-size: 10.5px; color: var(--text-muted); }
.g-card small { font-size: 10.5px; color: var(--text-muted); }
.g-row { display: flex; align-items: center; gap: 8px; }
.g-row > b:first-child { flex: 0 0 168px; font-size: 11.5px; }
.g-row > span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.g-row > b:last-child { margin-left: auto; }
.g-check { display: inline-flex; align-items: center; gap: 6px; color: var(--text-1); font-size: 12px; }
.g-bm { border-collapse: collapse; margin-top: 4px; }
.g-bm th, .g-bm td { padding: 3px 6px; font-size: 11.5px; color: var(--text-3); text-align: center; }
.g-bm tr th:first-child { text-align: left; color: var(--text-2); }
.f-bad { color: var(--danger); } .f-wrn { color: var(--warning); } .f-gud { color: var(--pri); } .f-hld { color: var(--text-3); }

/* 알고리즘 그래프 — 노드 hover 설명 */
.g-i { font-size: 11px; color: var(--text-muted); cursor: help; }
.g-card[data-doc]:hover { border-color: var(--b-45); }
.g-docpanel { position: fixed; left: 0; top: 0; width: 460px; max-height: 60vh;
  overflow-y: auto; z-index: 50; background: var(--surface-tooltip); border: 1px solid var(--w-16);
  border-radius: 12px; padding: 14px 18px; box-shadow: 0 8px 30px var(--shadow-float);
  pointer-events: none; font-size: 12px; color: var(--text-2); line-height: 1.65; }
.g-docpanel h4 { margin: 0 0 8px; font-size: 13px; color: var(--pri); }
.g-docpanel p { margin: 6px 0; }
.g-docpanel b { color: var(--text-1); }

/* ── 요청 009: 진행 시간·상세 로그·우하단 진행 팝업 ─────────────── */
.prog-time { margin: 6px 0 0; font-size: 12.5px; color: var(--text-3); }
.job-log-box { margin-top: 18px; }
.job-log { margin: 10px 0 0; padding: 12px 14px; max-height: 320px; overflow-y: auto;
  background: var(--w-03); border: 1px solid var(--w-08); border-radius: 10px;
  font-family: Consolas, "D2Coding", monospace; font-size: 11.5px; line-height: 1.7;
  color: var(--text-3); white-space: pre-wrap; word-break: break-all; }


/* ── 요청 010: 이력 게시판 ─────────────────────────────────────── */
.hist-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hist-search { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.hist-search .field { width: 220px; padding: 8px 12px; }
.hist-row-wrap { display: flex; align-items: center; gap: 6px; }
.hist-row-wrap + .hist-row-wrap { border-top: 1px solid var(--w-08); }
.hist-row-wrap .hist-row { flex: 1; }
.hist-row-wrap .btn.icon.is-disabled { opacity: .35; cursor: not-allowed; }
.hist-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.job-log-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ── 알고리즘 이해하기 (lab_guide.html) — 화면 80% 폭 · 넉넉한 행간 ── */
.page.is-guide { max-width: 1680px; }
.lab-topbar { display: flex; justify-content: flex-end; }
.lab-intro { border-left: 3px solid var(--pri); font-size: 14px; }
.lab-intro > p { margin: 8px 0 0; color: var(--text-muted); line-height: 1.65; }
.guide .g-lead { font-size: 15px; color: var(--text-2); line-height: 2; margin: 14px 0 24px; }
.guide .g-step { margin: 32px 0; padding: 26px 30px; border: 1px solid var(--w-08); border-radius: 14px; background: var(--w-03); }
.guide .g-step h2 { margin: 0 0 16px; font-size: 18px; color: var(--text-1); }
.guide .g-step p { margin: 14px 0; font-size: 14.5px; color: var(--text-3); line-height: 2; }
.guide .g-step p b { color: var(--text-2); }
.guide .g-ex { padding: 12px 16px; border-radius: 10px; background: var(--b-08); border: 1px dashed var(--b-25); font-size: 14px; }
.guide .g-ex b { color: var(--pri); }
.guide .g-fig { display: block; width: 100%; height: auto; margin: 18px 0; }
.guide .g-flags { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.guide .g-flags > div { font-size: 14px; color: var(--text-3); line-height: 1.9; }
.guide .g-flags .flag { margin-right: 10px; }
.guide .panel-foot { margin-top: 32px; }
.gflow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 24px; }
.gflow-step { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--w-12); background: var(--surface-select); font-size: 14px; color: var(--text-2); }
.gflow-step b { color: var(--pri); }
.gflow-arrow { color: var(--text-muted); }

/* ── 사용자 관리 (/admin/users) ─────────────────────────────── */
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
/* 옵션 폼 2열 그리드 (요청 유튜브-API키-관리) — 좁은 화면에서는 1열로 접힘 */
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
/* max-width:720px 1열 규칙은 F-8(2026-09-10)로 responsive.css 로 옮겼다 */
.yt-key-add { display: flex; gap: 8px; margin-top: 16px; max-width: 560px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
/* 좁은 화면에서 열이 눌리면 셀 안 글자가 한 자씩 세로로 쪼개진다 — nowrap 으로
   표가 자연폭을 갖게 해 감싸는 .panel(overflow-x:auto)이 가로로 스크롤되게 한다 */
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; color: var(--text-2); border-bottom: 1px solid var(--w-08); white-space: nowrap; }
.admin-table th { font-size: 12px; font-weight: 600; color: var(--text-3); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .ta-r, .admin-table td:last-child { text-align: right; }
/* 마지막 열이 버튼이 아니라 설명문인 표 — 오른쪽 정렬을 푼다 (2026-09-10 화면
   검수: 채널별 공급자 표의 「근거」 문장이 통째로 오른쪽 끝에 붙어 있었다) */
.admin-table .ta-l, .admin-table td.ta-l:last-child { text-align: left; }
/* 메뉴관리 매트릭스 — 체크박스 칸 가운데 정렬 (td:last-child 우선순위보다 뒤에 둔다) */
.admin-table .ta-c, .admin-table td.ta-c:last-child { text-align: center; }
.admin-actions-cell { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; align-items: center; }
.admin-actions-cell form { margin: 0; }
/* 캐시 표의 보기·재수집·삭제 — 줄바꿈 없이 한 줄로 (2026-08-12 요청) */
.admin-actions-cell.is-row { flex-wrap: nowrap; justify-content: flex-start; }
.admin-actions-cell.is-row .btn { white-space: nowrap; }
.admin-off { color: var(--danger); }

/* ── 공지 — 로그인 페이지 리스트·모달, 공지 관리 유형 칩 ───────── */
.auth-notices { padding: 20px 24px; }
.notice-head { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--text-3); }
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-item {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 4px;
  background: none; border: 0; border-bottom: 1px solid var(--w-08);
  color: var(--text-2); font: inherit; font-size: 13px; text-align: left; cursor: pointer;
}
.notice-list li:last-child .notice-item { border-bottom: none; }
.notice-item:hover { color: var(--text-1); }
.notice-kind {
  flex: none; font-size: 11px; padding: 2px 8px; border-radius: 6px;
  background: var(--w-08); color: var(--text-2);
}
.notice-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-date { flex: none; font-size: 12px; color: var(--text-3); }
.notice-body { margin: 12px 0 0; white-space: pre-wrap; font-size: 13px; color: var(--text-2); line-height: 1.6; }
/* MD 렌더 본문 — pre-wrap이면 태그 사이 개행이 이중 여백이 되므로 해제 */
div.notice-body { white-space: normal; }
.notice-body :is(h1, h2, h3, h4) { margin: 14px 0 6px; font-size: 14px; font-weight: 700; color: var(--text-1); }
.notice-body p { margin: 8px 0; }
.notice-body ul, .notice-body ol { margin: 8px 0; padding-left: 20px; }
.notice-body code { padding: 1px 5px; border-radius: 6px; background: var(--w-08); font-size: 12px; }
.notice-body pre { padding: 10px 12px; border-radius: 8px; background: var(--w-08); overflow-x: auto; }
.notice-body a { color: var(--pri); }
.check-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--text-2); cursor: pointer; }
/* 작업 공지 배너 — 전 화면 상단 한 줄, 종료 전 작업 공지가 있을 때만 */
.work-banner {
  position: sticky; top: 0; z-index: 40;               /* 모달 백드롭(50) 아래 */
  padding: 9px 20px;
  background: color-mix(in srgb, var(--warning) 16%, var(--surface-1));
  border-bottom: 1px solid color-mix(in srgb, var(--warning) 45%, transparent);
  color: var(--warning); font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.work-banner-time { margin-left: 8px; font-weight: 400; opacity: .9; }

.lab-user-badge { flex: none; font-size: 12px; font-weight: 700; color: var(--pri); white-space: nowrap; }
/* ── 카테고리 관리 (/admin/categories) ─────────────────────── */
.cat-create { display: flex; gap: 8px; }
.cat-create .field { width: 220px; margin: 0; }
.cat-col-use { width: 56px; }
.cat-col-name { width: 160px; }
.cat-kws { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cat-kws form { margin: 0; display: inline-flex; }
.cat-kw-add { gap: 6px; }
.cat-kw-add .field { width: 130px; margin: 0; padding: 6px 10px; font-size: 12px; }

/* 일반 사용자 발굴 — 제목 옆 적용 중 알고리즘 표시: 발굴 (알고리즘명) */

.work-range { display: flex; align-items: center; gap: 8px; }
.work-range .field { flex: 1; margin: 0; }
/* 다크에서만 네이티브 달력 아이콘을 반전한다 — 라이트(기본)는 원본 그대로 */
.work-range input::-webkit-calendar-picker-indicator { cursor: pointer; }
[data-theme="dark"] .work-range input::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.7); }
.work-tilde { flex: none; color: var(--text-3); }

/* 상단바 크레딧 잔액 배지 — 전 화면 상시 노출(화면정의서 v1.1.0 §1).
   구독과 충전을 합친 숫자 하나다. 나눠 보는 자리는 구독 관리 한 곳. */
.credit-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  /* --line·--surface 는 이 토큰 체계에 없는 이름이다 — 실존 토큰으로 잡는다
     (2026-09-01 검수 P1: 미선언 토큰이라 테두리·배경이 통째로 사라졌다) */
  border: 1px solid var(--w-12); background: var(--card);
  color: var(--text-1); text-decoration: none; font-size: 13px;
}
.credit-badge:hover { border-color: var(--pri); }
.credit-label { color: var(--text-muted); }
.credit-value { font-weight: 600; font-variant-numeric: tabular-nums; }

/* 요금제 카드 두 장(S-18) */
.plan-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan-card.is-current { border-color: var(--pri); }
.plan-name { font-size: 18px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.plan-price { font-size: 22px; font-weight: 700; margin: 0; }
.plan-price small { font-size: 13px; font-weight: 400; color: var(--text-muted); }
/* .plan-credits 와 .plan-hint 는 요금제 카드가 체크 항목 줄로 바뀌면서
   쓰는 곳이 없어졌다(2026-09-01). 규칙만 남으면 다음 사람이 되살린다. */

/* 충전 수량 스피너(S-21) — 직접 타이핑할 수 없다 */
/* 수량 조절은 .qty-stepper 로 옮겼다(billing.css). 여기 있던 .spinner 규칙은
   위쪽 로딩 회전 원(771행)과 같은 이름이라 둘이 겹쳐 컨트롤이 뭉개졌다. */

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn.is-disabled { opacity: .5; pointer-events: none; }
.inline-list { display: flex; gap: 16px; list-style: none; padding: 0; margin: 0 0 6px; }

/* 추천 레일 잠금(화면정의서 §1) — 값 자리를 비우지 않고 자물쇠로 채운다 */
/* ⚠ 버튼 초기화는 잠금 클래스가 아니라 버튼 자체에 건다. 종전에는 .is-locked
   가 이 초기화를 들고 있어서, 크레딧을 내고 잠금이 풀리는 순간 화면이 브라우저
   기본 버튼으로 돌아갔다 — 회색 상자가 생기고 이름 자리가 밀렸다. 잠금은 풀려도
   요소는 그대로 button 이다(2026-09-03 기획 지적). */
button.pop-item, button.pop-hero {
  cursor: pointer; border: 0; background: none; text-align: left; width: 100%;
  font: inherit; color: inherit; padding: 0;
}
/* 잠금이 풀린 카드는 더 누를 것이 없다 */
button.pop-item:not(.is-locked), button.pop-hero:not(.is-locked) { cursor: default; }
.pop-stats.is-locked { color: var(--text-muted); }
/* 잠긴 계정 — 이름 자리에만 자물쇠가 선다. 지표는 잠긴 채로도 보인다
   (기획 지시 2026-09-02). 무엇을 사는지 알아야 열어 볼 이유가 생긴다. */
.pop-lock { margin-right: 4px; font-size: 11px; }
.pop-open {
  display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 600;
  color: var(--pri-text);
}
.pop-hero-meta .pop-open { color: var(--white); }
.pop-item.is-locked:hover .pop-handle, .pop-hero.is-locked:hover .pop-handle { text-decoration: underline; }

/* 결제 배너는 partials/billing_banner.html 과 billing.css 로 옮겼다.
   여기 있던 .pay-banner 규칙은 쓰는 마크업이 없어져 지웠다. */
.err.inline.is-blocked { margin: 12px 20px; }

/* ── 정의가 없던 공통 클래스 ─────────────────────────────────────────────
   결제·내 계정·어드민 화면이 오래 쓰고 있었는데 규칙이 어디에도 없어
   아무 꾸밈 없이 서 있었다. 쓰던 자리의 의도대로 채운다. */
.muted { color: var(--text-muted); }
.sm { font-size: 12px; }
.err { color: var(--danger); font-size: 13px; }
.err.inline { display: block; margin: 8px 0 0; }
.badge {
  display: inline-flex; align-items: center; padding: 2px 8px;
  border-radius: 8px; background: var(--b-12); color: var(--pri);
  font-size: 11px; font-weight: 600;
}
.notice {
  margin: 0 0 16px; padding: 12px 16px; border-radius: 10px;
  background: var(--w-03); border: 1px solid var(--w-12);
  color: var(--text-2); font-size: 13px; line-height: 1.6;
}
/* 경고는 위험색까지 가지 않는다. 지금 막힌 것이 아니라 할 일이 있다는 뜻이다 */
.notice.warn {
  background: color-mix(in srgb, var(--warning) 12%, var(--surface-1));
  border-color: color-mix(in srgb, var(--warning) 40%, transparent);
  color: var(--text-1);
}
.check { display: flex; align-items: center; gap: 8px; margin: 16px 0; font-size: 13px; }
.pager { display: flex; gap: 8px; margin-top: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 8px 4px; text-align: left; border-bottom: 1px solid var(--w-08); }
.table th { color: var(--text-muted); font-weight: 600; font-size: 12px; }

/* 세션 만료 안내는 첫 캐스팅 안내(tour.css z-index 2147483000)보다 위에 선다.
 * 안내가 열려 있는 동안 세션이 끊기면, 안내에 가려 만료 창이 보이지도 눌리지도
 * 않았다(코드리뷰 지적 2026-08-31). 로그인이 끊긴 사실이 안내보다 급하다.
 * 안내의 클릭 차단막도 이 창을 막지 못한다 — 위에 그려진 것이 클릭을 먼저 받는다. */
#modal-session { z-index: 2147483200; }

/* ─── 밑줄 탭 — 결과 화면의 추천·비추천과 설정 화면의 계정·결제가 같이 쓴다.
   원래 results.html 안에 있던 것을 옮겼다(2026-09-02). 같은 모양을 두 곳에
   각자 적으면 한쪽만 손보는 날이 온다. 클래스 이름은 결과 화면이 쓰던 것을
   그대로 둔다 — 이름을 바꾸면 이 규칙을 쓰는 자리를 전부 같이 고쳐야 한다. */
.rv4-tabs{display:flex;align-items:flex-end;gap:12px 24px;flex-wrap:wrap;border-bottom:1px solid var(--w-08);margin-bottom:16px}
.rv4-tab{display:inline-flex;align-items:center;gap:7px;padding:13px 0;border-bottom:2px solid transparent;font-size:15px;font-weight:500;color:var(--text-muted);white-space:nowrap;flex:0 0 auto}
.rv4-tab:hover{color:var(--text-2)}
.rv4-tab.is-active{border-bottom-color:var(--pri);color:var(--pri-text)}
.rv4-tab b{font-size:13px;font-weight:500}

/* ─── 움직임을 줄여 달라는 환경 — F-9 (2026-09-10)
   spin(.spinner·.btn-spin)·pulse(.dot 류)·sk(스켈레톤 shimmer)·prog-indet(진행바
   불확정)·toast-in 에는 대응이 없었다. login.css(.scan-dot·.scan-fill 등)가 같은
   문제를 푼 방식을 따른다 — 움직임을 통째로 지우지 않고, 멈춰도 뜻이 남는 값으로
   바꾼다.
   ⚠ 스피너만 다르게 다룬다 — 회전을 아예 멈추면 테두리 원 하나만 남아 「돌고
   있음」이 전혀 안 보인다(다른 넷과 달리 멈췄을 때 대신 보여줄 정적 표현이 없다).
   그래서 animation 을 지우지 않고 느리게만 돌린다(1s → 3s). 나머지 넷은 각자
   멈춰도 뜻이 남는 자리(펄스 점 → 중간 밝기로 고정, 스켈레톤 반짝임 → 반짝임만
   빼고 자리표시자 배경은 남음, 진행바 불확정 → 오가는 대신 중간 지점에 고정,
   토스트 등장 → 슬라이드 없이 바로 보임)가 있어 login.css의 scan-bar와 같은
   방식(고정값)으로 정지한다. */
@media (prefers-reduced-motion: reduce) {
  .spinner,
  .load-more .btn.htmx-request .btn-spin {
    animation-duration: 3s;
  }
  .job-indicator .dot,
  .stat .dot.run {
    animation: none;
    opacity: .65;
  }
  .skel::after {
    animation: none;
  }
  .prog-row.is-searching .prog-fill {
    animation: none;
    margin-left: 30%;
  }
  .toast-stack .toast {
    animation: none;
  }
}
