/* ============================================================
   심오피스 Gov · 디자인 시스템 (refined)
   고급 행정문서 / 인장(印章) 미학 / 진중한 진단 도구 톤
   - 명조 헤딩(Noto Serif KR 700/900) + 본문 Noto Sans KR
   - papyrus #f4efe4 + 묵흑 #1a1410 + 정부 네이비 #102a4c
   - 단도(丹) #7a1f20 인장 · 앤티크 골드 #a78550 휘장
   - 0~2px 각진 모서리, 가는 단선/이중선 디바이더, 그림자 최소
   ============================================================ */

:root {
  /* PALETTE — 깊이 있고 절제된 톤 */
  --c-bg: #f4efe4;          /* papyrus, 살짝 더 따뜻 */
  --c-surface: #fbf8f1;     /* light papyrus */
  --c-surface-2: #efe8d6;   /* warm card */
  --c-surface-3: #e7dfc9;   /* deeper card */
  --c-text: #1a1410;        /* 묵흑 (ink) */
  --c-text-2: #3a2f24;      /* secondary ink */
  --c-muted: #7d6f5d;       /* sumi (먹) */
  --c-line: #c4b89f;        /* byeoru (벼루) */
  --c-line-2: #e2d9bf;      /* soft divider */
  --c-line-strong: #8e7e62; /* 헤어라인 강조 */
  --c-primary: #102a4c;     /* deeper government navy */
  --c-primary-2: #081a31;   /* deep navy */
  --c-primary-3: #1c3d6b;   /* navy lift */
  --c-primary-soft: #dde2ec;/* navy mist */
  --c-warn: #8a6614;        /* antique gold-ink */
  --c-warn-soft: #efe5be;
  --c-error: #7a1f20;       /* dando (단도) — 인장 */
  --c-error-soft: #efd3cf;
  --c-ok: #1c5a37;          /* song-yeop (송엽) */
  --c-ok-soft: #d4e3cf;
  --c-focus: #a78550;       /* antique gold */
  --c-gold: #a78550;        /* refined gold */
  --c-gold-2: #836845;      /* darker gold */
  --c-gold-3: #c5a36c;      /* lighter gold */
  --c-seal: #7a1f20;

  /* RADIUS — 행정문서 각짐 */
  --r-sm: 0;
  --r-md: 1px;
  --r-lg: 2px;
  --r-pill: 999px;

  /* SHADOW — 거의 없음, 인쇄물처럼 */
  --shadow-1: 0 0 0 1px rgba(26,20,16,0.04);
  --shadow-2: 0 1px 0 rgba(26,20,16,0.06);
  --shadow-paper: inset 0 0 0 1px rgba(26,20,16,0.025), 0 1px 0 rgba(26,20,16,0.04);
  --shadow-elev: 0 2px 0 rgba(26,20,16,0.04), 0 0 0 1px rgba(26,20,16,0.05);

  /* SPACING — 8pt 그리드 */
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 56px;
  --space-2xl: 88px;
  --container: 920px;
  --container-wide: 1080px;

  /* TYPOGRAPHY */
  --font-sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-serif: 'Noto Serif KR', 'Nanum Myeongjo', 'Apple SD Gothic Neo', serif;
  --font-mono: 'JetBrains Mono', 'D2Coding', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* TRANSITIONS */
  --t-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

::selection { background: var(--c-primary); color: var(--c-bg); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--c-text);
  background:
    /* 미세 종이 결 — 두 방향 라이팅으로 papyrus 느낌 */
    radial-gradient(1200px 800px at 100% -10%, rgba(16,42,76,0.030), transparent 65%),
    radial-gradient(900px 700px at -10% 100%, rgba(122,31,32,0.025), transparent 65%),
    /* 미세 노이즈 — fine paper grain */
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 2px,
      rgba(26,20,16,0.008) 2px,
      rgba(26,20,16,0.008) 3px
    ),
    var(--c-bg);
  background-attachment: fixed;
  word-break: keep-all;
  letter-spacing: -0.005em;
  font-weight: 400;
}

/* HEADINGS — 명조(Noto Serif KR) 위계 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--c-text);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-sm);
  word-break: keep-all;
}
h1 {
  font-size: 32px; font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.28;
}
h2 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.32;
}
h3 {
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.022em;
}
h4 {
  font-size: 14.5px; font-weight: 700;
  letter-spacing: -0.018em;
}

p { margin: 0 0 var(--space-sm); }
strong { font-weight: 700; color: var(--c-text); }
em { font-style: italic; color: var(--c-text-2); }
small { font-size: 12.5px; color: var(--c-muted); }

/* LINKS — 절제된 밑줄, 호버 시 진해짐 */
a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--c-primary) 35%, transparent);
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
a:hover {
  color: var(--c-seal);
  text-decoration-color: var(--c-seal);
}

button, .btn, .link-btn { font-family: var(--font-sans); }

/* 활자 게이지 — 코드/숫자 */
code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0.02em;
  color: var(--c-text);
}

/* FOCUS — 앤티크 골드, 각진 외곽선 */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-line); border: 2px solid var(--c-bg); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--c-muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-md); }

/* SKIP LINK */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--c-primary); color: var(--c-bg);
  padding: 10px 16px; z-index: 100;
  font-family: var(--font-serif); letter-spacing: 0.02em;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ============================================================
   HEADER · 행정문서 표제 / 인장 워드마크 / 이중 인쇄선
   ============================================================ */
.site-header {
  background: var(--c-surface);
  position: sticky; top: 0; z-index: 50;
  /* 이중 인쇄선 — 굵은선 1px + 가는 골드 헤어라인 */
  box-shadow:
    inset 0 -1px 0 0 var(--c-line),
    0 1px 0 0 var(--c-bg),
    0 2px 0 0 var(--c-gold-3);
  backdrop-filter: saturate(1.05);
}
.header-inner {
  display: flex; align-items: center;
  gap: 28px;
  min-height: 64px;
  position: relative;
}

/* BRAND — 인장 점 + 명조 워드마크 + 영문 보조 */
.brand {
  display: inline-flex; align-items: center;
  gap: 12px;
  text-decoration: none; color: var(--c-text);
  flex: 0 0 auto;
  position: relative;
  padding-left: 18px;
}
.brand::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 10px; height: 10px;
  background: var(--c-seal);
  transform: translateY(-50%) rotate(45deg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 1px 0 rgba(0,0,0,0.05);
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 19px; font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--c-text);
  line-height: 1;
}
.brand-divider {
  display: inline-block;
  width: 1px; height: 18px;
  background: var(--c-line-strong);
  align-self: center;
}
.brand-suffix {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-muted);
  text-transform: uppercase;
  align-self: center;
  padding-top: 2px;
}

/* NAV */
.site-nav {
  display: flex; gap: 22px; align-items: center;
  flex: 1; min-width: 0;
}
.site-nav[hidden] { display: none; }
/* 시스템 관리자 모드 — 일반 메뉴 숨김, 우측에 콘솔 라벨 */
.site-nav.admin-mode > a,
.site-nav.admin-mode > select,
.site-nav.admin-mode > #profileNav,
.site-nav.admin-mode > #creditChip { display: none !important; }
.site-nav.admin-mode::before {
  content: '관리자 콘솔';
  margin-left: auto;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0.06em;
  padding: 4px 14px 4px 16px;
  border-left: 1px solid var(--c-line);
  position: relative;
}
.site-nav.admin-mode::after {
  content: '';
  position: absolute;
  left: -1px; top: 50%;
  width: 4px; height: 4px;
  background: var(--c-seal);
  transform: translate(0, -50%);
  border-radius: 50%;
}
.site-nav a {
  color: var(--c-text-2); text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500; font-size: 13.5px;
  padding: 10px 0; white-space: nowrap;
  letter-spacing: -0.005em;
  position: relative;
  transition: color var(--t-fast);
}
.site-nav a::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--c-primary);
  transform: scaleX(0); transform-origin: center;
  transition: transform var(--t-base);
}
.site-nav a:hover { color: var(--c-text); }
.site-nav a:hover::after { transform: scaleX(0.6); }
.site-nav a.is-active {
  color: var(--c-primary);
  font-weight: 700;
}
.site-nav a.is-active::after { transform: scaleX(1); }

/* 우측 그룹 — 계정 영역, 좌측에 헤어라인 */
.site-nav > #profileNav,
.site-nav > #logoutBtn:last-child {
  margin-left: 0;
  padding-left: 16px;
  border-left: 1px solid var(--c-line);
}
.site-nav > #profileNav { margin-left: auto; }
.site-nav.admin-mode > #logoutBtn { margin-left: 0; padding-left: 14px; }

/* CREDIT CHIP — 활자 게이지 */
.nav-credit-chip {
  background: transparent;
  color: var(--c-primary) !important;
  padding: 6px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  margin-left: auto;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.nav-credit-chip:hover {
  color: var(--c-primary-2) !important;
  background: var(--c-surface-2);
  border-color: var(--c-line-strong);
}
.nav-credit-chip::after { display: none; }

/* 언어 셀렉트 — 베타에서 숨김 */
#langSelect { display: none; }

.link-btn {
  background: none; border: 0;
  color: var(--c-text-2); cursor: pointer;
  padding: 8px 0;
  font-family: var(--font-sans); font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color var(--t-fast);
}
.link-btn:hover { color: var(--c-seal); }

@media (max-width: 760px) {
  .header-inner { gap: 14px; min-height: 56px; }
  .brand { padding-left: 16px; gap: 10px; }
  .brand-name { font-size: 17px; }
  .brand-suffix, .brand-divider { display: none; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 12.5px; }
}

/* ============================================================
   FOOTER · 이중 인쇄선 + 활자 명조
   ============================================================ */
.site-footer {
  margin-top: var(--space-2xl);
  padding: var(--space-lg) 0 var(--space-md);
  background: var(--c-surface);
  font-size: 12.5px;
  color: var(--c-text-2);
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
  position: relative;
  box-shadow:
    inset 0 2px 0 0 var(--c-gold-3),
    inset 0 3px 0 0 var(--c-bg),
    inset 0 4px 0 0 var(--c-line);
}
.site-footer .container { position: relative; }
.site-footer p {
  margin-bottom: 6px; line-height: 1.7;
  text-align: center;
}
.site-footer p:first-child {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--c-text);
  letter-spacing: -0.015em;
}
.site-footer p:last-child {
  color: var(--c-muted);
  font-size: 11.5px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dotted var(--c-line);
  display: flex; gap: 8px; justify-content: center; align-items: center;
}
#canonInfo {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--c-muted);
}
.muted { color: var(--c-muted); }

/* MAIN */
main {
  min-height: calc(100vh - 72px - 220px);
  padding: var(--space-xl) 0 var(--space-lg);
}

/* ============================================================
   CARD · 행정문서 종이장 (헤어라인 + 인장 인덱스)
   ============================================================ */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: calc(var(--space-lg) + 4px) calc(var(--space-lg) + 8px);
  margin-bottom: var(--space-md);
  position: relative;
  box-shadow: var(--shadow-paper);
}
/* 카드 상단 골드 헤어라인 — 메인 카드만 */
.card:not(.auth-card):not(.landing-intro):not(.guide-card):not(.pay-section)::before {
  content: '';
  position: absolute;
  left: -1px; right: -1px; top: -1px;
  height: 2px;
  background: linear-gradient(90deg,
    var(--c-gold-2) 0%,
    var(--c-gold) 30%,
    var(--c-gold-3) 70%,
    var(--c-gold-2) 100%);
}
/* 카드 헤딩 — 인장 인덱스 (sealed numbering) */
.card:not(.auth-card):not(.landing-intro):not(.guide-card) > h1,
.card:not(.auth-card):not(.landing-intro):not(.guide-card) > h2 {
  position: relative;
  padding-left: 0;
}
.card:not(.auth-card):not(.landing-intro):not(.guide-card) > h1::before,
.card:not(.auth-card):not(.landing-intro):not(.guide-card) > h2::before {
  content: '';
  display: inline-block;
  width: 3px; height: 0.85em;
  background: var(--c-seal);
  margin-right: 12px;
  vertical-align: -0.04em;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 19px; font-weight: 700;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.025em;
}
.card-sub {
  color: var(--c-text-2); font-size: 13.5px;
  margin: -4px 0 var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--c-line-2);
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
  line-height: 1.7;
}

/* ============================================================
   FORMS · 행정 양식 톤
   ============================================================ */
.field { margin-bottom: var(--space-md); }
.field label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11.5px;
  color: var(--c-muted);
  margin-bottom: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.field .hint {
  color: var(--c-muted); font-size: 12.5px;
  margin-top: 8px; line-height: 1.65;
  letter-spacing: 0;
}
input[type="text"], input[type="email"], input[type="number"], input[type="password"],
input[type="search"], select, textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 11px 14px;
  line-height: 1.5;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  letter-spacing: -0.005em;
}
input[type="text"]:hover, input[type="email"]:hover, input[type="number"]:hover,
input[type="password"]:hover, select:hover, textarea:hover {
  border-color: var(--c-line-strong);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="number"]:focus,
input[type="password"]:focus, input[type="search"]:focus, select:focus, textarea:focus {
  border-color: var(--c-primary);
  box-shadow: inset 0 0 0 1px var(--c-primary);
  outline: none;
  background: var(--c-surface);
}
input::placeholder, textarea::placeholder {
  color: var(--c-muted);
  opacity: 0.65;
}
/* OTP 입력 — 활자 코드 톤, 인장 박스 */
input#otpCode, input[autocomplete="one-time-code"] {
  font-family: var(--font-mono);
  font-size: 24px; font-weight: 700;
  letter-spacing: 0.32em; text-align: center;
  padding: 14px 14px 14px 32px;
  color: var(--c-primary-2);
}

/* ============================================================
   BUTTON · 행정문서 활자 톤
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  background: var(--c-primary); color: #fff;
  border: 1px solid var(--c-primary);
  border-radius: var(--r-md);
  padding: 11px 24px;
  font-family: var(--font-sans);
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.005em;
  cursor: pointer; text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  position: relative;
  white-space: nowrap;
  /* 활자 인쇄 — 미세 inset */
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn:hover {
  background: var(--c-primary-2);
  color: #fff;
  border-color: var(--c-primary-2);
}
.btn:active {
  background: #040f1d;
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.2);
}
.btn-secondary {
  background: var(--c-surface);
  color: var(--c-primary);
  border: 1px solid var(--c-line-strong);
  box-shadow: inset 0 -1px 0 rgba(26,20,16,0.05);
}
.btn-secondary:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn-ghost {
  background: transparent;
  color: var(--c-text-2);
  border-color: transparent;
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--c-surface-2);
  color: var(--c-text);
}
.btn[disabled], .btn-secondary[disabled], .btn-ghost[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}
.btn[disabled]:hover { transform: none; background: var(--c-primary); }
.btn[hidden], .btn-secondary[hidden], .btn-ghost[hidden] { display: none !important; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ============================================================
   TAG / BADGE · 행정 활자 라벨
   ============================================================ */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-md);
  background: var(--c-primary-soft); color: var(--c-primary-2);
  border: 1px solid color-mix(in srgb, var(--c-primary) 18%, transparent);
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
  line-height: 1.5;
}
.tag-warn {
  background: var(--c-warn-soft); color: var(--c-warn);
  border-color: color-mix(in srgb, var(--c-warn) 28%, transparent);
}
.tag-ok {
  background: var(--c-ok-soft); color: var(--c-ok);
  border-color: color-mix(in srgb, var(--c-ok) 28%, transparent);
}
.tag-muted {
  background: var(--c-line-2); color: var(--c-muted);
  border-color: var(--c-line);
}
.tag-error {
  background: var(--c-error-soft); color: var(--c-error);
  border-color: color-mix(in srgb, var(--c-error) 28%, transparent);
}

/* ============================================================
   TABLE · 행정 명세표
   ============================================================ */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: var(--c-surface);
  font-variant-numeric: tabular-nums;
  border-top: 2px solid var(--c-text);
  border-bottom: 1px solid var(--c-line);
}
th, td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--c-surface-2);
  font-family: var(--font-serif);
  font-weight: 700; font-size: 12.5px;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-line-strong);
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
}
td {
  border-bottom: 1px solid var(--c-line-2);
  letter-spacing: -0.005em;
}
tbody tr { transition: background var(--t-fast); }
tbody tr:hover td {
  background: color-mix(in srgb, var(--c-surface-2) 65%, transparent);
}
tbody tr:last-child td { border-bottom: 0; }

/* GRID */
.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ============================================================
   PROGRESS · 진단 진행 게이지
   ============================================================ */
.progress {
  background: var(--c-line-2);
  border: 1px solid var(--c-line);
  border-radius: 0;
  height: 8px; margin: var(--space-md) 0;
  position: relative;
  overflow: hidden;
}
.progress:not(.progress-jumpable) > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-primary-3) 100%);
  border-radius: 0;
  transition: width .35s ease-out;
  position: relative;
}
.progress.progress-jumpable {
  display: flex; gap: 4px;
  height: 16px;
  background: transparent;
  border: 0;
}
.progress-seg {
  flex: 1; border-radius: var(--r-sm);
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  cursor: pointer; min-width: 0;
  border: 1px solid transparent;
  position: relative;
}
.progress-seg:hover {
  transform: scaleY(1.18);
  border-color: var(--c-line-strong);
}
.progress-seg-empty {
  background: #d6cfbf;
  border-color: #b6ae9d !important;
}
.progress-seg-partial {
  background: var(--c-gold);
  border-color: var(--c-gold-2);
}
.progress-seg-done {
  background: var(--c-primary);
  border-color: var(--c-primary-2);
}
.progress-seg.is-current {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
  z-index: 1;
}

/* ============================================================
   LIKERT · 진단 문항
   ============================================================ */
.likert {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px dashed var(--c-line);
  position: relative;
  counter-increment: likert-counter;
}
.likert:first-of-type { counter-reset: likert-counter; }
.likert:last-child { border-bottom: 0; }
.likert .q-text {
  grid-column: 1 / -1;
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 500; line-height: 1.75;
  color: var(--c-text);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  padding-left: 36px;
  position: relative;
  min-height: 28px;
}
.likert .q-text::before {
  content: counter(likert-counter, decimal-leading-zero);
  position: absolute;
  left: 0; top: 4px;
  color: var(--c-gold-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  padding: 2px 6px;
  border-radius: var(--r-md);
  line-height: 1.4;
}
.likert input[type="radio"] {
  width: 22px; height: 22px; cursor: pointer;
  accent-color: var(--c-primary);
  margin: 0;
}
.likert .opt {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer; padding: 14px 6px;
  border: 1px solid var(--c-line-2);
  background: var(--c-surface);
  border-radius: var(--r-md);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  position: relative;
}
.likert .opt:hover {
  background: var(--c-surface-2);
  border-color: var(--c-line-strong);
  transform: translateY(-1px);
}
.likert .opt:has(input:checked) {
  background: color-mix(in srgb, var(--c-primary) 6%, var(--c-surface));
  border-color: var(--c-primary);
  box-shadow: inset 0 0 0 1px var(--c-primary), 0 1px 0 rgba(16,42,76,0.05);
}
.likert .opt:has(input:checked)::after {
  content: '';
  position: absolute;
  top: 4px; right: 4px;
  width: 6px; height: 6px;
  background: var(--c-gold);
  transform: rotate(45deg);
}
.likert .opt span {
  font-size: 12.5px; color: var(--c-text-2);
  text-align: center; line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.likert .opt:has(input:checked) span {
  color: var(--c-primary-2);
  font-weight: 700;
}
@media (max-width: 720px) {
  .likert .q-text { font-size: 16px; padding-left: 32px; }
  .likert .opt span { font-size: 11px; }
  .likert input[type="radio"] { width: 28px; height: 28px; }
  .likert .opt { padding: 16px 4px; }
}

/* ============================================================
   SCORE BAR · 활자 게이지
   ============================================================ */
.score-bar {
  display: grid;
  grid-template-columns: 96px 1fr 110px;
  gap: var(--space-sm); align-items: center;
  padding: 10px 0;
  border-bottom: 1px dotted var(--c-line);
}
.score-bar:last-child { border-bottom: 0; }
.score-bar .name {
  font-family: var(--font-serif);
  font-weight: 500; font-size: 15px;
  letter-spacing: -0.015em;
  color: var(--c-text-2);
}
.score-bar.is-top .name {
  font-weight: 700;
  color: var(--c-primary-2);
}
.score-bar.is-top .name::after {
  content: '◆';
  color: var(--c-gold);
  font-size: 9px;
  margin-left: 6px;
  vertical-align: 0.18em;
}
.score-bar .bar {
  height: 12px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  border-radius: 0;
  overflow: hidden;
  position: relative;
}
.score-bar .bar::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg,
    transparent 0, transparent 9px,
    rgba(26,20,16,0.08) 9px, rgba(26,20,16,0.08) 10px);
  pointer-events: none;
  z-index: 2;
}
.score-bar .bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--c-primary-3) 0%, var(--c-primary) 100%);
  border-radius: 0;
  transition: width .6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; z-index: 1;
}
.score-bar.is-top .bar > span {
  background: linear-gradient(90deg, var(--c-gold-2) 0%, var(--c-primary-2) 100%);
}
.score-bar .val {
  text-align: right;
  color: var(--c-text-2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.score-bar.is-top .val {
  font-weight: 700;
  color: var(--c-primary-2);
}

/* ============================================================
   TOAST · 행정 통지
   ============================================================ */
.toast-region {
  position: fixed; right: 24px; bottom: 24px; z-index: 100;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--c-primary-2);
  color: var(--c-bg);
  padding: 14px 20px 14px 22px;
  border-radius: var(--r-md);
  border-left: 3px solid var(--c-gold);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 12px 28px rgba(8,26,49,0.28),
    0 2px 4px rgba(8,26,49,0.18);
  max-width: 400px;
  font-size: 13.5px;
  line-height: 1.65;
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
  animation: toast-in .28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes toast-in {
  from { transform: translate(20px, 4px); opacity: 0; }
  to { transform: translate(0, 0); opacity: 1; }
}
.toast.error {
  background: var(--c-error);
  border-left-color: var(--c-bg);
}

/* ============================================================
   ALERT · 행정 안내문
   ============================================================ */
.alert {
  padding: 16px 20px 16px 26px;
  border-radius: var(--r-md);
  margin-bottom: var(--space-md);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-text);
  font-size: 13.5px; line-height: 1.75;
  position: relative;
}
.alert::before {
  content: '';
  position: absolute;
  left: 10px; top: 22px;
  width: 6px; height: 6px;
  background: var(--c-text);
  transform: rotate(45deg);
}
.alert-info {
  background: var(--c-primary-soft);
  border-color: color-mix(in srgb, var(--c-primary) 24%, transparent);
  border-left-color: var(--c-primary);
  color: var(--c-primary-2);
}
.alert-info::before { background: var(--c-primary); }
.alert-warn {
  background: var(--c-warn-soft);
  border-color: color-mix(in srgb, var(--c-warn) 30%, transparent);
  border-left-color: var(--c-warn);
  color: var(--c-warn);
}
.alert-warn::before { background: var(--c-warn); }
.alert-error {
  background: var(--c-error-soft);
  border-color: color-mix(in srgb, var(--c-error) 30%, transparent);
  border-left-color: var(--c-error);
  color: var(--c-error);
}
.alert-error::before { background: var(--c-error); }
.alert-ok {
  background: var(--c-ok-soft);
  border-color: color-mix(in srgb, var(--c-ok) 28%, transparent);
  border-left-color: var(--c-ok);
  color: var(--c-ok);
}
.alert-ok::before { background: var(--c-ok); }
.alert strong {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ============================================================
   AUTH PAGE · 인증 카드 (정제)
   ============================================================ */
.auth-card {
  max-width: 460px;
  margin: var(--space-lg) auto;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-primary-2);
  position: relative;
  padding: calc(var(--space-lg) + 8px) calc(var(--space-lg) + 4px);
  box-shadow: 0 18px 40px -20px rgba(8,26,49,0.20);
}
.auth-card h1 {
  font-size: 32px;
  font-family: var(--font-serif);
  font-weight: 900;
  letter-spacing: -0.045em;
  margin: 0 0 12px;
  line-height: 1.2;
  color: var(--c-text);
}
.auth-card .card-sub {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--c-muted);
  border-bottom: 0;
  padding: 0 0 calc(var(--space-lg) - 4px);
  margin: 0 0 calc(var(--space-lg) - 4px);
  letter-spacing: -0.005em;
  position: relative;
  line-height: 1.7;
}
.auth-card .card-sub::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 1px;
  background: var(--c-gold);
}
/* 카드 내부 단일 버튼 — 풀너비 */
.auth-card .btn,
.auth-card .btn-secondary {
  width: 100%;
  padding: 14px 24px;
  font-size: 14px;
  margin-top: 4px;
}

/* ============================================================
   CANON BLOCK (admin/legacy)
   ============================================================ */
.canon-block dl { margin: 0; }
.canon-block dt {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--c-primary-2);
  margin-top: var(--space-md);
  letter-spacing: -0.018em;
  font-size: 14.5px;
  padding-left: 10px;
  border-left: 2px solid var(--c-gold);
}
.canon-block dd {
  margin: var(--space-xs) 0 0 12px;
  white-space: pre-wrap;
  line-height: 1.78;
  font-size: 13.5px;
  color: var(--c-text-2);
}
.canon-block ul {
  margin: var(--space-xs) 0;
  padding-left: 24px;
}

/* PEER MATRIX */
.peer-pair {
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-gold);
  border-radius: var(--r-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-sm);
  background: var(--c-surface);
}
.peer-pair h4 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-family: var(--font-serif);
  color: var(--c-primary-2);
  letter-spacing: -0.022em;
}

/* ============================================================
   조직 리포트 §3·§4 패턴 카드
   ============================================================ */
.rp-pair {
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--r-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  background: var(--c-surface);
}
.rp-pair-h {
  margin: 0 0 var(--space-md);
  padding-bottom: var(--space-xs);
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 700; color: var(--c-primary-2);
  border-bottom: 1px solid var(--c-line-2);
}
.rp-pair-type {
  font-size: 12px; font-weight: 500; color: var(--c-muted);
  margin-left: 6px;
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
.rp-pattern-item { margin-top: var(--space-md); }
.rp-pattern-item:first-of-type { margin-top: 0; }
.rp-pattern-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 15px; font-weight: 700; color: var(--c-primary);
  line-height: 1.5;
}
.rp-pattern-body {
  margin: 0; font-size: 14px; line-height: 1.75; color: var(--c-text);
}

/* ============================================================
   TEAM REPORT · 조직 진단 보고서 (10섹션)
   ============================================================ */
.team-report-view { max-width: 920px; margin: 0 auto; }
.team-report-view section { margin-bottom: var(--space-lg); }
.rep-h2 {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 700;
  color: var(--c-text);
  margin: 0 0 var(--space-md);
  letter-spacing: -0.03em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line-strong);
  position: relative;
  line-height: 1.3;
}
.rep-h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 56px; height: 3px;
  background: var(--c-seal);
}
.rep-h3 {
  font-family: var(--font-serif);
  font-size: 17.5px; font-weight: 700;
  color: var(--c-primary-2);
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.022em;
}
.rep-h4 {
  font-family: var(--font-serif);
  font-size: 15px; font-weight: 700;
  color: var(--c-primary);
  margin: 0 0 8px;
  letter-spacing: -0.018em;
}
.rep-body {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--c-text);
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.005em;
}

/* §1 표지 — 행정 발급 표지 */
.rep-cover {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: calc(var(--space-xl) + 4px) var(--space-lg);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-elev);
}
.rep-cover::before {
  content: '';
  position: absolute;
  top: 16px; left: 28px; right: 28px;
  height: 1px;
  background: var(--c-gold);
  box-shadow: 0 3px 0 var(--c-gold-2);
}
.rep-cover::after {
  content: '';
  position: absolute;
  bottom: 16px; left: 28px; right: 28px;
  height: 1px;
  background: var(--c-gold);
  box-shadow: 0 -3px 0 var(--c-gold-2);
}
/* 표지 인장 */
.rep-cover-seal {
  display: inline-block;
  margin-bottom: var(--space-md);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--c-muted);
  text-transform: uppercase;
  padding: 5px 16px;
  border: 1px solid var(--c-line);
  background: var(--c-surface-2);
}
.rep-cover-title {
  font-family: var(--font-serif);
  font-size: 42px; font-weight: 700;
  color: var(--c-text);
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.rep-cover-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--c-muted);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 14px 0 var(--space-md);
  font-weight: 600;
}
.rep-cover-org {
  font-family: var(--font-serif);
  font-size: 23px; font-weight: 700;
  color: var(--c-primary-2);
  margin: 0 0 6px;
  letter-spacing: -0.025em;
}
.rep-cover-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-muted);
  margin: 0;
  letter-spacing: 0.06em;
}
.rep-cover-desc {
  font-family: var(--font-serif);
  font-size: 14.5px;
  color: var(--c-text);
  margin: var(--space-md) auto;
  font-style: italic;
  line-height: 1.78;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line-2);
  border-left: 3px solid var(--c-gold);
  padding: 14px 22px;
  display: inline-block;
  max-width: 580px;
  letter-spacing: -0.012em;
  text-align: left;
}
.rep-disclaimer {
  margin-top: var(--space-lg);
  padding: 14px 18px;
  background: var(--c-warn-soft);
  border: 1px solid color-mix(in srgb, var(--c-warn) 32%, transparent);
  border-left: 3px solid var(--c-warn);
  border-radius: var(--r-md);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--c-warn);
  text-align: left;
  max-width: 640px;
  margin-left: auto; margin-right: auto;
  font-family: var(--font-sans);
}

/* 4축 */
.rep-axis-fill-good { background: var(--c-ok); }
.rep-axis-fill-fair { background: var(--c-warn); }
.rep-axis-fill-low  { background: var(--c-error); }
.rep-axis-good .rep-axis-score { color: var(--c-ok); }
.rep-axis-fair .rep-axis-score { color: var(--c-warn); }
.rep-axis-low  .rep-axis-score { color: var(--c-error); }

/* 강점/리스크 카드의 액션 칩 */
.rep-num-action {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--c-line-2);
  font-size: 12px;
}
.rep-num-action-tag {
  background: var(--c-primary); color: #fff;
  padding: 2px 8px; border-radius: var(--r-md);
  font-family: var(--font-mono); font-weight: 600;
  font-size: 10px; letter-spacing: 0.06em;
  margin-right: 8px;
}
.rep-num-action-text { color: var(--c-text-2); }

/* §2 명단 표 — 행정 인명부 */
.rep-roster {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--c-primary-2);
  border-bottom: 1px solid var(--c-line);
}
.rep-roster th {
  background: var(--c-primary);
  color: var(--c-bg);
  padding: 12px 14px;
  text-align: left;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
}
.rep-roster td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--c-line-2);
  font-size: 13.5px;
  vertical-align: middle;
}
.rep-roster tr:last-child td { border-bottom: 0; }
.rep-roster-leader {
  background: color-mix(in srgb, var(--c-gold) 10%, var(--c-surface));
  border-left: 3px solid var(--c-gold);
}
.rep-roster-leader td:first-child {
  font-family: var(--font-serif);
  font-weight: 700;
}
.rep-type-chip {
  padding: 3px 12px;
  border-radius: var(--r-md);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.005em;
  display: inline-block;
}

/* §3 분포 바차트 */
.rep-dist {
  display: grid; grid-template-columns: repeat(9, 1fr);
  gap: 8px; height: 220px; align-items: end;
  padding: var(--space-md) 0 0;
  border-bottom: 1px solid var(--c-line-2);
}
.rep-dist-col { display: flex; flex-direction: column; align-items: center; height: 100%; }
.rep-dist-bar {
  position: relative; width: 100%; height: 160px;
  background: var(--c-line-2);
  border-radius: 0;
  overflow: hidden;
}
.rep-dist-fill { position: absolute; left: 0; right: 0; }
.rep-dist-fill-1 { bottom: 0; }
.rep-dist-name {
  font-family: var(--font-serif);
  font-size: 13px; font-weight: 600;
  margin-top: 8px; color: var(--c-text);
}
.rep-dist-cnt {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--c-muted);
  margin-top: 2px; letter-spacing: 0.04em;
}

.rep-guide {
  background: var(--c-surface-2);
  border-left: 3px solid var(--c-primary);
  padding: var(--space-md);
  border-radius: var(--r-md);
  margin-top: var(--space-md);
}
.rep-guide h4 {
  margin: 0 0 8px; font-size: 14px;
  font-family: var(--font-serif); font-weight: 700;
  color: var(--c-primary-2);
}
.rep-guide ul { margin: 0; padding-left: 20px; }
.rep-guide li { font-size: 13px; line-height: 1.7; color: var(--c-text-2); margin-bottom: 4px; }

/* §4 4축 */
.rep-axes-intro {
  background: var(--c-primary-soft);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin: var(--space-md) 0;
  font-size: 14px; line-height: 1.7;
}
.rep-axes { margin: var(--space-md) 0; }
.rep-axis {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 14px;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--c-line-2);
}
.rep-axis:last-child { border-bottom: 0; }
.rep-axis-label {
  font-family: var(--font-serif);
  font-weight: 700; color: var(--c-text);
  line-height: 1.3; letter-spacing: -0.015em;
}
.rep-axis-def {
  font-size: 11px; font-weight: 400;
  color: var(--c-muted);
  margin-top: 4px; line-height: 1.5;
}
.rep-axis-bar {
  height: 12px; background: var(--c-line-2);
  border-radius: 0; overflow: hidden;
  position: relative;
}
.rep-axis-fill {
  height: 100%; background: var(--c-primary);
  border-radius: 0; transition: width .5s;
}
.rep-axis-score {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--c-text);
  font-weight: 700; letter-spacing: 0.02em;
}
.rep-axis-types {
  grid-column: 2 / 4;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--c-muted);
  letter-spacing: 0.02em;
}

.rep-diversity {
  background: var(--c-surface-2);
  border: 1px solid var(--c-line-2);
  border-left: 3px solid var(--c-gold);
  border-radius: var(--r-md);
  padding: var(--space-md) var(--space-lg);
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  margin-top: var(--space-md);
}
.rep-diversity-label {
  font-family: var(--font-serif);
  font-weight: 700; color: var(--c-primary-2); font-size: 14px;
}
.rep-diversity-value { color: var(--c-text); font-size: 14px; }
.rep-diversity-tag {
  background: var(--c-primary); color: var(--c-surface);
  padding: 3px 10px; border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
}

/* §6 강점/리스크 — 번호부 카드 */
.rep-num-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rep-num-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--r-md);
  padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) - 2px);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.rep-num-item:hover {
  background: var(--c-surface-2);
  border-left-color: var(--c-gold);
}
.rep-num-circle {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.1),
    0 1px 0 rgba(0,0,0,0.06);
}
.rep-num-title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--c-text);
  font-size: 16.5px;
  margin-bottom: 6px;
  letter-spacing: -0.022em;
  line-height: 1.45;
}
.rep-num-content {
  font-size: 14px;
  line-height: 1.78;
  color: var(--c-text-2);
  letter-spacing: -0.005em;
}

/* §7 리더 카드 */
.rep-leader-card {
  background: var(--c-surface-2);
  border-left: 3px solid var(--c-gold);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--r-md);
}

/* §8 그룹 카드 */
.rep-group {
  background: var(--c-surface);
  border: 1px solid var(--c-line-2);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--r-md);
  margin-bottom: var(--space-md);
}
.rep-group-note {
  margin-top: 10px; padding: 10px 14px;
  background: var(--c-warn-soft);
  border-radius: var(--r-md);
  font-size: 13px; line-height: 1.6;
}

/* §9 멤버 추천 */
.rep-member-rec {
  border-bottom: 1px solid var(--c-line-2);
  padding: var(--space-sm) 0;
}
.rep-member-rec:last-child { border-bottom: 0; }

/* §10 갈등 + 리더 메시지 */
.rep-dynamic {
  background: var(--c-surface-2);
  padding: var(--space-md);
  border-radius: var(--r-md);
  margin-bottom: var(--space-sm);
  border-left: 3px solid var(--c-warn);
}
.rep-dynamic-h {
  font-family: var(--font-serif);
  font-size: 13px; font-weight: 700;
  color: var(--c-warn); margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.rep-leader-msg {
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-primary);
}
.rep-tip {
  margin-top: var(--space-sm); padding: var(--space-sm) var(--space-md);
  background: var(--c-surface);
  border-radius: var(--r-md);
  border-left: 3px solid var(--c-primary);
}
.rep-actions { padding-left: 24px; }
.rep-actions li { font-size: 14px; line-height: 1.85; margin-bottom: 4px; }

@media (max-width: 720px) {
  .rep-dist { grid-template-columns: repeat(5, 1fr); height: auto; }
  .rep-axis { grid-template-columns: 80px 1fr auto; }
  .rep-cover-title { font-size: 28px; }
}

/* LOADING · 행정 처리 중 */
.loading {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  color: var(--c-muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14.5px;
  letter-spacing: -0.015em;
  position: relative;
}
.loading::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--c-gold);
  margin: 0 auto 16px;
  position: relative;
  animation: loading-pulse 1.4s ease-in-out infinite;
}
@keyframes loading-pulse {
  0%, 100% { transform: scaleX(0.4); opacity: 0.5; }
  50% { transform: scaleX(1.2); opacity: 1; }
}

/* ============================================================
   ONBOARDING · 발급 안내 도록
   ============================================================ */
.onboarding {
  max-width: 880px; margin: 0 auto;
  padding: var(--space-md) var(--space-sm);
  position: relative;
  animation: oi-fade .6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes oi-fade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.oi-credit-badge {
  position: absolute; top: 4px; right: 8px;
  background: var(--c-surface);
  color: var(--c-text-2);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-2);
}
.oi-credit-badge a {
  color: var(--c-primary);
  margin-left: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
}
.oi-section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--c-line-2);
  position: relative;
}
.oi-section:last-child { border-bottom: 0; }
.oi-h1 {
  font-family: var(--font-serif);
  font-size: 38px; line-height: 1.32; font-weight: 700;
  text-align: center;
  color: var(--c-text);
  margin: var(--space-md) 0 var(--space-md);
  letter-spacing: -0.04em;
  position: relative;
}
.oi-h1::after {
  content: '';
  display: block;
  width: 40px; height: 2px;
  background: var(--c-gold);
  margin: 18px auto 0;
}
.oi-h2 {
  font-family: var(--font-serif);
  font-size: 25px; font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
  position: relative;
  padding-bottom: 12px;
}
.oi-h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 2px;
  background: var(--c-seal);
}
.oi-h3 {
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 700;
  color: var(--c-primary-2);
  margin: var(--space-md) 0 var(--space-xs);
  letter-spacing: -0.02em;
}
.oi-lead {
  font-size: 16.5px; line-height: 1.85; color: var(--c-text-2);
  text-align: center; max-width: 640px;
  margin: 0 auto var(--space-md);
  letter-spacing: -0.01em;
  font-weight: 400;
}
.oi-body { font-size: 16px; line-height: 1.8; color: var(--c-text); margin-bottom: var(--space-sm); }
.oi-hero { text-align: center; padding-top: var(--space-md); }
.oi-hero-image { display: flex; justify-content: center; margin-bottom: var(--space-md); }
.oi-hero-image img {
  width: min(60%, 480px); height: auto; max-width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
}
.oi-cta-row {
  display: flex; gap: var(--space-md); justify-content: center;
  align-items: center; flex-wrap: wrap; margin-top: var(--space-md);
}
.oi-cta-final { padding: var(--space-md) 0 0; }
.btn-primary-lg, .btn-primary-xl {
  background: var(--c-primary); color: #fff;
  border: 1px solid var(--c-primary); border-radius: var(--r-md);
  font-family: var(--font-serif); font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: 0.01em;
  transition: background .15s, transform .05s;
}
.btn-primary-lg { padding: 14px 32px; font-size: 16px; }
.btn-primary-xl { padding: 18px 44px; font-size: 18px; }
.btn-primary-lg:hover:not(:disabled), .btn-primary-xl:hover:not(:disabled) {
  background: var(--c-primary-2);
}
.btn-primary-lg:disabled, .btn-primary-xl:disabled {
  background: var(--c-line); border-color: var(--c-line);
  color: var(--c-muted); cursor: not-allowed;
}
.oi-skip {
  color: var(--c-muted); background: none; border: 0;
  font-size: 14px; cursor: pointer; text-decoration: underline;
  font-family: var(--font-sans);
  padding: 8px 12px;
}
.oi-skip:hover { color: var(--c-text-2); }
.oi-types-grid {
  display: grid; grid-template-columns: repeat(9, 1fr); gap: var(--space-sm);
  margin-top: var(--space-md);
}
.oi-type-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--type-color);
  border-radius: var(--r-md);
  padding: var(--space-sm) var(--space-xs);
  text-align: center;
  transition: transform .15s;
}
.oi-type-card:hover { transform: translateY(-2px); }
.oi-type-name {
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 700; color: var(--c-text);
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}
.oi-type-short { font-size: 12px; color: var(--c-text-2); line-height: 1.5; }
@media (max-width: 720px) {
  .oi-types-grid { grid-template-columns: repeat(3, 1fr); }
}

.oi-benefits-row {
  display: flex; justify-content: space-around; gap: var(--space-md);
  margin: var(--space-lg) 0;
}
.oi-benefit {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--c-primary); flex: 1;
}
.oi-benefit-cap {
  font-family: var(--font-serif);
  font-size: 14px; color: var(--c-text-2); font-weight: 600;
}
.oi-use-cases { display: grid; gap: var(--space-md); margin-top: var(--space-md); }
.oi-use-case {
  background: var(--c-surface);
  border: 1px solid var(--c-line-2);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--r-md);
  padding: var(--space-md);
}
.oi-section-trust {
  background: var(--c-surface-2);
  border-radius: var(--r-lg);
  padding-left: var(--space-md); padding-right: var(--space-md);
}
.oi-trust-badges { display: grid; gap: var(--space-sm); margin-top: var(--space-md); }
.oi-trust-badge {
  display: flex; gap: var(--space-md); align-items: flex-start;
  background: var(--c-surface); padding: var(--space-md);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md);
}
.oi-trust-icon { color: var(--c-primary); flex: 0 0 auto; padding-top: 2px; }
.oi-trust-text { display: flex; flex-direction: column; gap: 4px; }
.oi-trust-text strong {
  font-family: var(--font-serif);
  color: var(--c-primary-2); font-size: 15px;
}
.oi-trust-body { font-size: 14px; color: var(--c-text-2); line-height: 1.7; }

.oi-process-steps {
  list-style: none; padding: 0; margin: var(--space-md) 0 0;
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-sm); flex-wrap: wrap;
}
.oi-step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 0 0 130px; text-align: center;
}
.oi-step-icon { color: var(--c-primary); }
.oi-step-label {
  font-family: var(--font-serif);
  font-size: 14px; font-weight: 600; color: var(--c-text);
}
.oi-step-arrow { color: var(--c-line); display: flex; align-items: center; }
@media (max-width: 720px) {
  .oi-process-steps { flex-direction: column; }
  .oi-step-arrow { transform: rotate(90deg); }
  .oi-benefits-row { flex-direction: column; }
}
.oi-final-cta {
  background: var(--c-surface);
  border: 1px solid var(--c-line-strong);
  text-align: center;
  border-radius: var(--r-lg);
  padding: calc(var(--space-xl) + 8px) var(--space-md);
  border-bottom: 0;
  width: 82%;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-elev);
}
.oi-final-cta::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 1px;
  background: var(--c-gold);
}
.oi-final-cta::after {
  content: '';
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 1px;
  background: var(--c-gold);
}

/* ============================================================
   "우리 조직" · 동료 카드 + 9유형 분포 도넛
   ============================================================ */
.team-section { padding: var(--space-sm) 0; }
.team-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--c-line);
}
.team-stat {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--c-text-2);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  letter-spacing: 0.04em;
}
.team-stat strong {
  font-family: var(--font-serif);
  color: var(--c-text);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.team-stat-sep {
  color: var(--c-line);
  font-weight: 300;
}

.team-distribution {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
}
.team-distribution::before {
  content: '';
  position: absolute;
  left: -1px; right: -1px; top: -1px;
  height: 2px;
  background: var(--c-gold);
  opacity: 0.6;
}
.team-donut {
  width: 168px; height: 168px;
  border-radius: 50%;
  flex: 0 0 auto;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(26,20,16,0.08),
    0 1px 0 rgba(26,20,16,0.04);
}
.team-donut-center {
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: var(--c-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: inset 0 0 0 1px var(--c-line-2);
}
.team-donut-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1;
  letter-spacing: -0.04em;
}
.team-donut-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--c-muted);
  margin-top: 6px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.team-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  flex: 1;
  align-content: center;
}
.team-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  white-space: nowrap;
  padding: 5px 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  transition: border-color var(--t-fast);
}
.team-legend-item:hover { border-color: var(--c-line); }
.team-legend-swatch {
  width: 10px; height: 10px;
  border-radius: 0;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
.team-legend-name {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.005em;
}
.team-legend-count {
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.team-legend-undiagnosed { opacity: 0.65; }
.team-legend-undiagnosed .team-legend-name { color: var(--c-muted); }

/* 동료/관리 디테일 모달 — 행정 발급 창구 */
.tm-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(8,26,49,0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: tm-overlay-in .15s ease-out;
}
@keyframes tm-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.tm-modal {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(8,26,49,0.32);
  animation: tm-fade .22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.tm-modal::before {
  content: '';
  position: absolute;
  left: -1px; right: -1px; top: -1px;
  height: 3px;
  background: linear-gradient(90deg,
    var(--c-primary-2) 0%,
    var(--c-primary) 50%,
    var(--c-gold) 100%);
  z-index: 1;
}
.tm-modal-wide { max-width: 620px; }
.tm-modal-body { overflow-y: auto; }
@keyframes tm-fade {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.tm-modal-header {
  padding: calc(var(--space-md) + 2px) var(--space-lg);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-surface);
  position: relative;
}
.tm-modal-header h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.028em;
  margin: 0;
  position: relative;
  padding-left: 14px;
}
.tm-modal-header h3::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 18px;
  background: var(--c-seal);
  transform: translateY(-50%);
}
.tm-modal-body { padding: var(--space-lg); }
.tm-modal-types {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
}
.tm-rank {
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--r-md);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.005em;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.12);
}
.tm-modal-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--c-line-2);
  display: flex;
  justify-content: flex-end;
  background: var(--c-surface-2);
  gap: 10px;
}

/* 기술 메타데이터 */
.rep-cover-tech {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-muted);
  cursor: help; opacity: 0.6;
  text-align: center;
  letter-spacing: 0.06em;
}
.rep-cover-tech:hover { opacity: 1; }

/* ============================================================
   HELP PAGE · 안내·자주 묻는 질문
   ============================================================ */
.help-page section { margin-bottom: var(--space-lg); }
.help-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.help-type-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md);
  padding: var(--space-md);
  position: relative;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.help-type-card:hover {
  border-color: var(--c-line-strong);
  transform: translateY(-2px);
}
.help-type-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--c-gold);
}
.help-type-cat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  background: var(--c-primary);
  color: var(--c-bg);
  padding: 3px 10px;
  border-radius: var(--r-md);
  margin-bottom: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.help-type-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 6px;
  letter-spacing: -0.022em;
}
.help-type-card p {
  font-size: 12.5px;
  color: var(--c-text-2);
  margin: 0;
  line-height: 1.7;
  letter-spacing: -0.005em;
}
@media (max-width: 720px) {
  .help-types-grid { grid-template-columns: 1fr; }
}

.help-faq-item {
  border-bottom: 1px solid var(--c-line-2);
  padding: var(--space-md) 0;
}
.help-faq-item:last-child { border-bottom: 0; }
.help-faq-q {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.022em;
  position: relative;
  padding-left: 24px;
}
.help-faq-q::before {
  content: 'Q.';
  position: absolute;
  left: 0; top: 0;
  color: var(--c-seal);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.help-faq-a {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--c-text-2);
  letter-spacing: -0.005em;
  padding-left: 24px;
  position: relative;
}
.help-faq-a::before {
  content: 'A.';
  position: absolute;
  left: 0; top: 0;
  color: var(--c-primary);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
}

/* ============================================================
   TEAM CARD GRID · 동료 인명 카드
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: var(--space-md);
}
.team-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--space-md) var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  cursor: pointer;
  position: relative;
}
.team-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-line-strong);
  box-shadow: var(--shadow-elev);
}
.team-card.is-me {
  border: 1px solid var(--c-primary);
  background: color-mix(in srgb, var(--c-primary) 4%, var(--c-surface));
  box-shadow: inset 0 0 0 1px var(--c-primary);
}
.team-card.is-me::before {
  content: '';
  position: absolute;
  top: -1px; left: 12px; right: 12px;
  height: 2px;
  background: var(--c-gold);
}
.team-card.is-pending {
  border-style: dashed;
  opacity: 0.62;
}

.team-card-ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.16),
    inset 0 0 0 4px rgba(0,0,0,0.04);
  position: relative;
}
.team-card-meta { text-align: center; line-height: 1.3; }
.team-card-name {
  font-family: var(--font-serif);
  font-weight: 700; font-size: 15px; color: var(--c-text);
  display: inline-flex; align-items: center; gap: 4px;
  flex-wrap: wrap; justify-content: center;
  letter-spacing: -0.01em;
}
.team-card-position {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--c-muted);
  margin-top: 2px; letter-spacing: 0.04em;
}
.team-card-badge {
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: var(--r-sm);
  line-height: 1.4; letter-spacing: 0;
}
.me-badge { background: var(--c-primary); color: #fff; }
.admin-badge {
  background: var(--c-warn-soft);
  color: var(--c-warn);
  border: 1px solid color-mix(in srgb, var(--c-warn) 40%, transparent);
}
.team-card-types {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--c-muted);
  display: flex; align-items: center; gap: 4px;
  flex-wrap: wrap; justify-content: center;
  margin-top: 2px; letter-spacing: 0.04em;
}
.team-card-rank1 {
  font-family: var(--font-serif);
  font-weight: 700; padding: 2px 8px;
  border-radius: var(--r-sm); font-size: 12px;
  letter-spacing: -0.01em;
}
.team-card-sep { color: var(--c-line); }
.team-card-rank2 { color: var(--c-text-2); font-weight: 500; }
.team-card-types.pending { color: var(--c-muted); font-style: italic; }

@media (max-width: 720px) {
  .team-distribution { flex-direction: column; align-items: stretch; gap: var(--space-md); }
  .team-donut { margin: 0 auto; }
}

/* 성향 사분면 */
.team-quadrant {
  background: var(--c-surface);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-lg);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
}
.team-quadrant-header { margin-bottom: var(--space-sm); }
.quad-wrap { width: 100%; display: flex; justify-content: center; }
.quad-svg { max-width: 100%; height: auto; }

/* ============================================================
   1순위 유형 진단결과 · 행정 발급 결과서 (.tr-*)
   ============================================================ */
.type-report {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--space-lg) calc(var(--space-lg) + 8px);
  margin: var(--space-md) 0;
  position: relative;
  box-shadow: var(--shadow-elev);
}
.type-report::before {
  content: '';
  position: absolute;
  left: -1px; right: -1px; top: -1px;
  height: 4px;
  background: linear-gradient(90deg,
    var(--type-color, var(--c-primary)) 0%,
    var(--type-color, var(--c-primary)) 75%,
    var(--c-gold) 75%,
    var(--c-gold) 100%);
}
.tr-section {
  margin: var(--space-lg) 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--c-line-2);
}
.tr-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.tr-section-title {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 700;
  color: var(--c-text);
  margin: 0 0 var(--space-md);
  letter-spacing: -0.028em;
  position: relative;
  padding-left: 18px;
  line-height: 1.35;
}
.tr-section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 4px; height: 20px;
  background: var(--type-color, var(--c-gold));
  box-shadow:
    0 6px 0 -1px color-mix(in srgb, var(--type-color, var(--c-gold)) 50%, transparent),
    0 11px 0 -2px color-mix(in srgb, var(--type-color, var(--c-gold)) 25%, transparent);
}

.tr-body { font-size: 15px; line-height: 1.85; color: var(--c-text); margin: 0 0 var(--space-sm); }
.tr-body:last-child { margin-bottom: 0; }
.tr-emph {
  font-family: var(--font-serif);
  font-weight: 700; color: var(--type-color, var(--c-primary-2));
  font-size: 16px;
}
.tr-prewrap { white-space: pre-wrap; }

/* §1 요약 — 발급 결과 표제 */
.tr-summary {
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}
.tr-summary::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--type-color, var(--c-primary));
}
.tr-summary::after {
  content: '진단결과';
  position: absolute;
  top: 14px; right: 18px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--c-muted);
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
}
.tr-summary-header {
  display: flex; gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-md);
  padding-right: 80px;
}
.tr-summary-badge {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto; color: #fff;
  font-family: var(--font-serif);
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.04em;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.12),
    inset 0 0 0 4px rgba(0,0,0,0.04),
    0 1px 0 rgba(0,0,0,0.06);
  position: relative;
}
.tr-summary-badge::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  opacity: 0.6;
}
.tr-summary-title { flex: 1; min-width: 0; }
.tr-summary-greet {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.tr-summary-type {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 28px; font-weight: 700;
  color: var(--c-text);
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.tr-summary-tagline {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px dotted var(--c-line);
  font-size: 14.5px;
  color: var(--c-text-2);
  line-height: 1.78;
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: -0.012em;
  position: relative;
  padding-left: 18px;
}
.tr-summary-tagline::before {
  content: '“';
  position: absolute;
  left: 0; top: 14px;
  color: var(--c-gold);
  font-size: 28px;
  line-height: 0;
  font-family: var(--font-serif);
  opacity: 0.55;
}

.tr-rank { display: flex; flex-direction: column; gap: var(--space-sm); }
.tr-rank-row {
  display: grid; grid-template-columns: auto auto 1fr; gap: 14px;
  align-items: start;
}
.tr-rank-num {
  width: 30px; height: 30px; border-radius: var(--r-md);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.tr-rank-label {
  font-family: var(--font-serif);
  font-weight: 700; color: var(--c-text);
  padding-top: 5px; letter-spacing: -0.01em;
}
.tr-rank-text { margin: 0; font-size: 14px; color: var(--c-text); padding-top: 6px; line-height: 1.7; }

/* §2 카테고리 — 3개 부문 */
.tr-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}
.tr-cat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  transition: all var(--t-base);
  position: relative;
}
.tr-cat-card.is-active {
  background: color-mix(in srgb, var(--type-color) 7%, var(--c-surface));
  border-color: var(--type-color, var(--c-primary));
  box-shadow: inset 0 0 0 1px var(--type-color, var(--c-primary));
}
.tr-cat-card.is-active::before {
  content: '';
  position: absolute;
  top: -1px; left: 16px; right: 16px;
  height: 2px;
  background: var(--type-color, var(--c-primary));
}
.tr-cat-name {
  font-family: var(--font-serif);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}
.tr-cat-card.is-active .tr-cat-name {
  color: var(--type-color, var(--c-primary-2));
}
.tr-cat-tagline {
  font-size: 12px;
  color: var(--c-text-2);
  line-height: 1.65;
  letter-spacing: -0.005em;
}

/* §3 9유형 표 */
.tr-types-table {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md); overflow: hidden;
  margin-top: var(--space-md);
}
.tr-types-row {
  display: grid; grid-template-columns: 80px 1fr;
  border-bottom: 1px solid var(--c-line-2);
}
.tr-types-row:last-child { border-bottom: 0; }
.tr-types-cat {
  background: var(--c-primary); color: var(--c-surface);
  font-family: var(--font-serif);
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -0.005em;
}
.tr-types-cells { display: grid; grid-template-columns: repeat(3, 1fr); }
.tr-types-cell {
  padding: 14px 12px;
  border-left: 1px solid var(--c-line-2);
  background: var(--c-surface);
}
.tr-types-cell.is-active {
  background: color-mix(in srgb, var(--type-color) 8%, var(--c-surface));
  position: relative;
}
.tr-types-cell.is-active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--type-color);
}
.tr-types-name {
  font-family: var(--font-serif);
  font-weight: 700; color: var(--c-text); margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
  letter-spacing: -0.015em;
}
.tr-types-cell.is-active .tr-types-name::before {
  content: '✦'; font-size: 12px;
  color: var(--c-gold); font-family: var(--font-serif);
}
.tr-types-desc { font-size: 12px; color: var(--c-text-2); line-height: 1.6; }

/* §5 성숙/미성숙, §12 스트레스 */
.tr-mature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md);
}
.tr-mature-col {
  border-radius: var(--r-md); padding: var(--space-md);
  border: 1px solid var(--c-line-2);
  background: var(--c-surface);
}
.tr-mature-good { border-left: 3px solid var(--c-ok); }
.tr-mature-bad { border-left: 3px solid var(--c-warn); }
.tr-stress-trig { border-left: 3px solid var(--c-error); }
.tr-stress-behav { border-left: 3px solid var(--c-warn); }
.tr-mature-h {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-serif);
  font-size: 15px; font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.015em;
}

.tr-list { list-style: none; margin: 0; padding-left: 0; counter-reset: tr-counter; }
.tr-list li {
  position: relative; padding: 6px 0 6px 30px;
  line-height: 1.7; font-size: 14px;
}
.tr-list-numbered li::before {
  counter-increment: tr-counter;
  content: counter(tr-counter, decimal-leading-zero);
  position: absolute; left: 0; top: 6px;
  color: var(--type-color, var(--c-primary));
  font-family: var(--font-mono);
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.04em;
}
.tr-list:not(.tr-list-numbered) li::before {
  content: '·';
  position: absolute; left: 10px; top: 4px;
  color: var(--type-color, var(--c-primary));
  font-weight: 700; font-size: 18px;
}

/* §7 키워드 */
.tr-keywords { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--c-line-2); }
.tr-keywords-h {
  font-family: var(--font-serif);
  font-weight: 700; color: var(--c-primary-2);
  margin-bottom: 10px; font-size: 14px;
}
.tr-keywords-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tr-chip {
  background: var(--c-surface);
  color: var(--c-primary-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 5px 12px;
  font-family: var(--font-serif);
  font-size: 13px; font-weight: 500;
  letter-spacing: -0.005em;
}

/* §9 자주 하는 말 */
.tr-phrases { margin-top: var(--space-md); padding: var(--space-md); background: var(--c-surface-2); border: 1px solid var(--c-line-2); border-radius: var(--r-md); }
.tr-phrases-h {
  font-family: var(--font-serif);
  font-weight: 700; color: var(--c-primary-2);
  margin-bottom: 10px; font-size: 14px;
}
.tr-phrases-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tr-phrase-chip {
  background: var(--c-surface); color: var(--c-text);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 6px 12px;
  font-family: var(--font-serif);
  font-size: 13px; font-style: italic;
  letter-spacing: -0.005em;
}

/* §13 성장 방법 */
.tr-growth-list { display: flex; flex-direction: column; gap: var(--space-md); margin-top: var(--space-md); }
.tr-growth-item {
  display: grid; grid-template-columns: 56px 1fr; gap: var(--space-md);
  background: var(--c-surface);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md); padding: var(--space-md);
}
.tr-growth-num {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  color: #fff;
  font-family: var(--font-serif);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em;
}
.tr-growth-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 16px; font-weight: 700; color: var(--c-primary-2);
  letter-spacing: -0.015em;
}
.tr-growth-body { min-width: 0; }

/* §14 명언 · 인용 카드 */
.tr-quote {
  margin-top: var(--space-lg);
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: calc(var(--space-lg) + 6px) var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tr-quote::before {
  content: '“';
  position: absolute;
  left: 22px; top: 14px;
  color: var(--c-gold-2);
  font-family: var(--font-serif);
  font-size: 80px;
  line-height: 0.9;
  opacity: 0.18;
  font-weight: 700;
}
.tr-quote::after {
  content: '”';
  position: absolute;
  right: 22px; bottom: 6px;
  color: var(--c-gold-2);
  font-family: var(--font-serif);
  font-size: 80px;
  line-height: 0.9;
  opacity: 0.18;
  font-weight: 700;
}
.tr-quote-h {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--c-muted);
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding: 0 14px;
}
.tr-quote-h::before, .tr-quote-h::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 16px; height: 1px;
  background: var(--c-gold);
}
.tr-quote-h::before { right: 100%; }
.tr-quote-h::after { left: 100%; }
.tr-quote-text {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.85;
  color: var(--c-primary-2);
  font-weight: 500;
  white-space: pre-wrap;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .tr-categories { grid-template-columns: 1fr; }
  .tr-mature-grid { grid-template-columns: 1fr; }
  .tr-types-row { grid-template-columns: 60px 1fr; }
  .tr-types-cells { grid-template-columns: 1fr; }
  .tr-types-cell { border-left: 0; border-top: 1px solid var(--c-line-2); }
  .tr-rank-row { grid-template-columns: auto 1fr; }
  .tr-rank-row .tr-rank-text { grid-column: 1 / -1; }
  .tr-growth-item { grid-template-columns: 48px 1fr; }
  h1 { font-size: 24px; }
  h2 { font-size: 19px; }
}

/* ============================================================
   LANDING · 발급 카드 좌 / 안내 우
   원칙: 장식 한 카테고리당 하나, 격자 정렬, 충분한 여백
   ============================================================ */
.landing {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
  margin: var(--space-lg) 0;
}
.landing-auth {
  margin: 0;
  max-width: none;
}
/* eyebrow — 모노 캡스 한 줄, 장식선 없음 */
.landing-auth .landing-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--c-muted);
  letter-spacing: 0.24em;
  margin: 0 0 18px;
  display: block;
  text-transform: uppercase;
}
.landing-auth h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 900;
  margin: 0 0 14px;
  letter-spacing: -0.045em;
  line-height: 1.18;
  color: var(--c-text);
}
.landing-auth .card-sub {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--c-muted);
  line-height: 1.7;
}

/* 우측 안내 — 단순한 좌선, 격자 정렬 리스트 */
.landing-intro {
  background: transparent;
  border: 0;
  padding: 4px 0 4px var(--space-lg);
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-text-2);
  position: relative;
}
.landing-intro::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--c-line);
}
.landing-intro h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 18px;
  letter-spacing: -0.035em;
  line-height: 1.3;
}
.landing-intro p {
  margin: 0 0 18px;
  font-size: 14px;
  letter-spacing: -0.005em;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.8;
  color: var(--c-text-2);
}
.landing-intro ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: intro-counter;
}
.landing-intro li {
  position: relative;
  padding: 0 0 0 38px;
  font-size: 13.5px;
  line-height: 1.72;
  letter-spacing: -0.005em;
  counter-increment: intro-counter;
  font-family: var(--font-sans);
  color: var(--c-text);
  word-break: keep-all;
}
.landing-intro li::before {
  content: counter(intro-counter, decimal-leading-zero);
  position: absolute;
  left: 0; top: 3px;
  width: 24px;
  text-align: left;
  color: var(--c-gold-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.landing-intro strong {
  color: var(--c-seal);
  font-weight: 700;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.landing-contact {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--c-line-2);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
  color: var(--c-muted);
}
.landing-contact a {
  font-weight: 600;
  color: var(--c-primary);
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
}
.landing-sep {
  color: var(--c-line);
  font-weight: 300;
}

@media (max-width: 760px) {
  .landing {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .landing-intro {
    padding: var(--space-md) 0 0;
  }
  .landing-intro::before {
    left: 0; right: 0; top: 0; bottom: auto;
    width: 100%; height: 1px;
  }
}

/* 진단 시작 페이지 · 안내 카드 */
.guide-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--r-md);
  padding: 20px 24px;
  box-shadow: none;
  position: relative;
}
.guide-card-h {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px dotted var(--c-line);
  color: var(--c-text);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.022em;
  position: relative;
  padding-left: 14px;
}
.guide-card-h::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 4px; height: 16px;
  background: var(--c-primary);
}
.guide-card > div {
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--c-text-2);
  letter-spacing: -0.005em;
}

/* ============================================================
   결제 페이지 · 분배 결제 합계 명세
   ============================================================ */
.pay-summary {
  margin-top: 18px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--r-md);
  padding: 18px 22px;
  display: grid;
  gap: 10px;
}
.pay-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
}
.pay-sum-label {
  color: var(--c-text-2);
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
}
.pay-sum-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.pay-summary-total {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line-strong);
  font-size: 14.5px;
}
.pay-summary-total .pay-sum-label {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.015em;
}
.pay-summary-total .pay-sum-num {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-primary-2);
  letter-spacing: -0.025em;
}
.pay-summary-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--c-muted);
  display: flex;
  gap: 6px;
  align-items: center;
}
.pay-sum-valid { color: var(--c-ok); font-weight: 600; }
.pay-sum-invalid { font-weight: 500; }

/* ============================================================
   워크숍 신청 · 커리큘럼 카드
   ============================================================ */
.workshop-page { max-width: 920px; margin: 0 auto; }
.ws-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-elev);
}
.ws-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--c-gold);
  z-index: 2;
}
.ws-card-h {
  background:
    linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-2) 100%);
  color: var(--c-bg);
  padding: 22px 26px;
  position: relative;
}
.ws-card-h::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}
.ws-card-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.42;
}
.ws-card-sub {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(243,239,228,0.82);
  letter-spacing: -0.005em;
}
.ws-card-meta {
  margin-top: 10px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.ws-tag {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--r-md);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0;
}
.ws-tag-time {
  background: var(--c-gold);
  color: #fff;
  border-color: var(--c-gold);
}
.ws-modules {
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.ws-module {
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md);
  background: var(--c-surface);
  overflow: hidden;
}
.ws-module-h {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-line-2);
}
.ws-module-num {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  background: var(--c-primary); color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
}
.ws-module-titles {
  flex: 1; min-width: 0;
  font-size: 14px; color: var(--c-text);
}
.ws-module-method {
  flex: 0 0 auto;
  font-size: 11px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  padding: 3px 10px;
  border-radius: var(--r-md);
  color: var(--c-text-2);
  white-space: nowrap;
}
.ws-module-items {
  margin: 0; padding: 12px 18px 14px 32px;
  list-style: disc;
}
.ws-module-items li {
  font-size: 13px; line-height: 1.7;
  color: var(--c-text);
  margin-bottom: 4px;
}
.ws-card-foot {
  padding: 16px 20px;
  background: var(--c-surface-2);
  border-top: 1px solid var(--c-line-2);
  display: flex; flex-direction: column; gap: 8px;
}
.ws-foot-row {
  font-size: 13px; line-height: 1.7;
  color: var(--c-text);
}
.ws-foot-row strong { color: var(--c-primary); }

/* ============================================================
   업무 케미 — 동료 모달 안
   ============================================================ */
.tm-chem {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line-2);
}
.tm-chem-h {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-primary-2);
  margin-bottom: 12px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}
.tm-chem-h strong { color: var(--c-text); }
.tm-chem-loading {
  font-size: 13px;
  color: var(--c-muted);
  font-style: italic;
}
.tm-chem-item {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line-2);
  border-left: 3px solid var(--c-gold);
  border-radius: var(--r-md);
}
.tm-chem-item:last-child { margin-bottom: 0; }
.tm-chem-cat {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  padding: 2px 9px;
  border-radius: var(--r-md);
  margin-bottom: 6px;
  letter-spacing: 0;
}
.tm-chem-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 6px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.tm-chem-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--c-text-2);
}

/* Collapsible 결제 섹션 — 행정 구분 details */
.pay-section {
  padding: 0;
  overflow: hidden;
  border-top: 2px solid var(--c-text);
}
.pay-section:not(:first-of-type) { margin-top: var(--space-md); }
.pay-section > .pay-section-h {
  list-style: none;
  cursor: pointer;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  transition: background var(--t-fast);
  border-radius: 0;
}
.pay-section > .pay-section-h::-webkit-details-marker { display: none; }
.pay-section > .pay-section-h::before {
  content: '＋';
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--c-primary);
  width: 22px;
  text-align: center;
  flex: 0 0 auto;
  transition: transform var(--t-base), color var(--t-fast);
}
.pay-section[open] > .pay-section-h::before {
  content: '−';
  color: var(--c-seal);
  transform: scale(1.1);
}
.pay-section > .pay-section-h:hover { background: var(--c-surface-2); }
.pay-section[open] > .pay-section-h {
  border-bottom: 1px solid var(--c-line-strong);
  background: var(--c-surface-2);
}
.pay-section-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.025em;
  flex: 1;
  min-width: 0;
}
.pay-section-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--c-muted);
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}
.pay-section-body {
  padding: 26px 28px 28px;
  animation: pay-section-open .25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pay-section-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
/* 카드 내장 인장은 details 구조에선 미적용 */
.card.pay-section > h1::before, .card.pay-section > h2::before { display: none; }

/* 결제 완료 결과 카드 — toast보다 오래 노출 */
.pay-result {
  margin-top: 20px;
  padding: 20px 22px;
  background: var(--c-ok-soft);
  border: 1px solid color-mix(in srgb, var(--c-ok) 30%, transparent);
  border-left: 4px solid var(--c-ok);
  border-radius: var(--r-md);
  animation: pay-result-fade-in .35s ease-out;
}
@keyframes pay-result-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.pay-result-h {
  font-weight: 700; font-size: 16px;
  color: var(--c-ok);
  margin-bottom: 8px;
}
.pay-result-body {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.7;
}
.pay-result-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.02em;
}
.pay-result-emails {
  margin-top: 10px;
  font-size: 13px;
}
.pay-result-emails summary {
  cursor: pointer;
  color: var(--c-text-2);
  user-select: none;
  padding: 4px 0;
}
.pay-result-emails ul {
  margin: 8px 0 0;
  padding-left: 22px;
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
}

/* 엑셀 업로드 행 — 명단 입력란 위에 배치 */
.pay-upload-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.pay-upload-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-2);
}
.pay-upload-row .btn-row .btn-secondary {
  font-size: 13px;
  padding: 8px 14px;
}

/* ============================================================
   관리자 콘솔 · 대시보드·탭·KPI·상세 모달
   ============================================================ */
.admin-tabs {
  display: flex; flex-wrap: wrap; gap: 0;
  border-bottom: 1px solid var(--c-line-strong);
  margin-bottom: var(--space-md);
  position: relative;
}
.admin-tab {
  background: transparent;
  border: 0;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-text-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  letter-spacing: -0.005em;
  position: relative;
}
.admin-tab:hover {
  color: var(--c-text);
  background: var(--c-surface-2);
}
.admin-tab.is-active {
  color: var(--c-primary);
  font-family: var(--font-serif);
  font-weight: 700;
  border-bottom-color: var(--c-primary);
  letter-spacing: -0.015em;
}
.admin-tab.is-active::before {
  content: '';
  position: absolute;
  left: 18px; right: 18px;
  top: 0;
  height: 1px;
  background: var(--c-gold);
  opacity: 0.6;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.admin-kpi {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 16px 20px;
  position: relative;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.admin-kpi::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--c-primary);
}
.admin-kpi:hover {
  border-color: var(--c-line-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-elev);
}
.admin-kpi-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--c-muted);
  margin-bottom: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.admin-kpi-value {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.035em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.admin-kpi-sub {
  margin-top: 6px;
  font-size: 11px;
  color: var(--c-muted);
  font-family: var(--font-sans);
  letter-spacing: 0;
}

.admin-detail-row {
  margin: 16px 0;
  padding-bottom: 14px;
  border-bottom: 1px dotted var(--c-line);
  font-size: 13.5px;
}
.admin-detail-row:last-child { border-bottom: 0; }
.admin-detail-row > strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 12.5px;
  color: var(--c-primary);
  margin-bottom: 6px;
  letter-spacing: 0;
  font-weight: 700;
}
.admin-detail-list {
  margin: 4px 0 0;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-text);
}
.admin-detail-list li { margin-bottom: 3px; }
.admin-detail-list em {
  color: var(--c-muted);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

/* 조직도 트리 행 */
.org-tree-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--c-line-2);
  transition: background var(--t-fast);
}
.org-tree-row:hover { background: var(--c-surface-2); }
.org-tree-row strong {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-text);
}
.org-tree-indent {
  font-family: var(--font-mono);
  white-space: pre;
  color: var(--c-line);
  flex: 0 0 auto;
  font-size: 12px;
}
.org-tree-meta {
  color: var(--c-muted);
  font-size: 11.5px;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.org-tree-id {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--c-text-2);
  background: var(--c-line-2);
  padding: 2px 8px;
  border-radius: var(--r-md);
  margin-left: auto;
  letter-spacing: 0.02em;
}
.org-tree-row .link-btn {
  font-size: 11.5px;
  padding: 4px 10px;
  font-weight: 600;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  color: var(--c-primary);
  transition: background var(--t-fast), color var(--t-fast);
}
.org-tree-row .link-btn:hover {
  background: var(--c-primary);
  color: #fff;
}
.org-tree-toggle {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-primary);
  padding: 0;
  border-radius: var(--r-md);
  transition: background var(--t-fast);
}
.org-tree-toggle:hover { background: var(--c-surface-2); }
.org-tree-toggle.is-leaf {
  color: var(--c-line);
  cursor: default;
  background: transparent !important;
}
.org-tree-row.is-match {
  background: color-mix(in srgb, var(--c-gold) 16%, var(--c-surface));
  border-left: 3px solid var(--c-gold);
  padding-left: 7px;
}
.org-tree-row.is-match strong { color: var(--c-primary-2); }

/* 조직 picker · 검색 자동완성 */
.org-picker {
  position: relative;
}
.org-picker input {
  font-family: var(--font-sans);
  font-size: 13.5px;
}
.org-picker-dropdown {
  position: absolute;
  top: calc(100% + 4px); left: 0; right: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  max-height: 280px;
  overflow-y: auto;
  z-index: 1100;
  box-shadow: 0 8px 24px rgba(8,26,49,0.18), 0 0 0 1px rgba(8,26,49,0.04);
}
.org-picker-dropdown[hidden] { display: none; }
.org-picker-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--c-line-2);
  transition: background var(--t-fast);
  font-size: 13px;
}
.org-picker-item:last-child { border-bottom: 0; }
.org-picker-item:hover { background: var(--c-surface-2); }
.org-picker-item strong {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--c-text);
}
.org-picker-path {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-muted);
  letter-spacing: 0.02em;
}
.org-picker-empty {
  padding: 14px;
  text-align: center;
  color: var(--c-muted);
  font-size: 12.5px;
  font-style: italic;
}
.admin-bulk-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  padding: 14px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-gold);
  border-radius: var(--r-md);
  margin-bottom: var(--space-md);
}

/* ============================================================
   PRINT — 인쇄 시 잉크 톤 자연스럽게
   ============================================================ */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .toast-region, .btn-row, button { display: none !important; }
  .card, .rep-cover, .type-report, .tr-summary { box-shadow: none; border-color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  h1, h2, h3 { color: #000; page-break-after: avoid; }
}
