/* CGP 공용 스킨 — 톤앤매너 토큰은 작업지시서 지정값 그대로 사용 */
:root {
  --brand:#0f5c47;
  --brand-dark:#093e2f;
  --brand-darker:#062e23;
  --brand-soft:#e6f2ed;
  --brand-line:#cfe3da;
  --accent:#c96a13;
  --accent-soft:#fdf0e1;
  --ink:#182923;
  --muted:#65766f;
  --muted-light:#8b9a94;
  --line:#dfe8e3;
  --line-strong:#c9d7d0;
  --bg:#f2f7f4;
  --card:#ffffff;
  --danger:#b4382f;
  --danger-soft:#fbeceb;
  --success:#1f7a55;
  --success-soft:#e8f5ee;
  --info:#2b5f8f;
  --info-soft:#eaf2fb;
  --warning:#9a6414;
  --warning-soft:#fcf4e2;
  --radius:14px;
  --radius-sm:9px;
  --shadow-sm:0 1px 2px rgba(20,46,36,.04);
  --shadow:0 10px 30px rgba(16,51,39,.07);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard','Noto Sans KR','Malgun Gothic',system-ui,sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

h1 { margin: 0 0 20px; font-size: 24px; line-height: 1.35; color: var(--ink); }
h2 { margin: 0 0 12px; font-size: 18px; line-height: 1.4; color: var(--ink); }
p { margin: 0 0 8px; }
a { color: var(--brand); text-decoration: underline; }
a:hover { color: var(--brand-dark); }

/* — 버튼: 기본은 --brand 배경, 보조는 흰 배경 + --line-strong 테두리 — */
button {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  min-height: 48px;
  min-width: 48px;
  padding: 0 20px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
/* 261114 · 기본 버튼(초록) hover — :where 로 낮춘 우선순위. 흰 바탕 · 테두리 버튼은 자기 hover 규칙이 이긴다 (글자 · 바탕 같은 색 방지) */
:where(button):hover:not(:disabled) { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
:where(button):active:not(:disabled) { background: var(--brand-darker); border-color: var(--brand-darker); color: #fff; }
button:disabled { opacity: .45; cursor: not-allowed; }
button.secondary { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
button.secondary:hover:not(:disabled) { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-dark); }

/* — 입력: 흰 배경, --line-strong 테두리, 누르는 영역 48px — */
input, select, textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  min-height: 48px;
  padding: 0 12px;
}
textarea { padding: 10px 12px; }
input[type="checkbox"], input[type="radio"] {
  width: 20px; height: 20px; min-height: 0; margin: 0;
  accent-color: var(--brand);
}
::placeholder { color: var(--muted-light); }
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* — 카드: 흰 배경, --line 테두리, --radius, --shadow-sm — */
.card, .doc-item, .cert {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
/* 261113 여백통일 B · 카드 안쪽 여백 공통화 (이전엔 화면마다 따로, 빠지면 테두리에 붙음) */
.card { padding: 20px 24px; }
@media (max-width: 600px) { .card { padding: 16px; } }
.cert.blurred { filter: blur(5px); }

/* — 표: 흰 배경 카드 위에 --line 칸선 — */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
th, td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; }
th { background: var(--brand-soft); color: var(--ink); font-weight: 700; }
tbody tr:last-child td { border-bottom: none; }

/* — 뱃지: 상태별 글자색 + -soft 배경 — */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.badge.pending, .badge.suspended { background: var(--info-soft); color: var(--info); }
.badge.reviewing { background: var(--info-soft); color: var(--info); }
.badge.issued, .badge.valid, .badge.approved { background: var(--success-soft); color: var(--success); }
.badge.rejected, .badge.expired { background: var(--danger-soft); color: var(--danger); }
.badge.soon, .badge.supplement { background: var(--warning-soft); color: var(--warning); }

/* — 배너: 기본 안내(경고 톤), ok=성공, bad=실패 — */
.banner {
  background: var(--warning-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 12px 0;
}
.banner.bad { background: var(--danger-soft); color: var(--danger); }
.banner.ok { background: var(--success-soft); color: var(--success); }

/* — 임박 강조 — */
.soon { color: var(--danger); font-weight: 700; }

/* — 진행 단계 (CGV-004) — */
.step i {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.step i.done { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-dark); }
.step i.current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }

/* — 촬영 프레임 · 진행률 · 사진 자리 — */
.frame {
  border: 2px dashed var(--brand);
  border-radius: var(--radius);
  background: var(--card);
}
.progress { background: var(--line); border-radius: 999px; }
.progress > i { background: var(--brand); border-radius: 999px; }
.photo { background: var(--brand-soft); border-color: var(--line); border-radius: var(--radius-sm); }

/* — 필터 패널 (ADM-010) — */
.filters {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* — 탭 (ADM-011) — */
.tab {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  padding: 8px 14px;
  min-height: 48px;
  font-weight: 600;
}
.tab.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); font-weight: 700; }

/* — 데모 계정 박스: --brand-soft 배경, 계정 버튼은 흰 카드 — */
.demo-box {
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 20px;
  color: var(--ink);
}
.demo-box ul { margin: 8px 0 0; padding-left: 20px; }
.demo-box li { margin-top: 6px; }
/* B-3 · 데모 버튼 — 48px 누름 영역, hover 시 --brand-soft 배경 + --brand-dark 문자 (명암비 4.5:1 초과) */
.demo-box button {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 4px 0 0;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--brand-line);
}
.demo-box button:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-color: var(--brand-line);
}

/* — 로그인 카드: 흰 카드 가운데 — */
.login-wrap {
  max-width: 480px;
  margin: 48px auto 64px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.login-wrap h1 { margin-bottom: 8px; }

/* — CGV 앱 셸: 상단 앱 바(화면 끝까지), 채널 단계, 하단 고정 버튼 — */
/* UI 고도화 B-1 · 앱 바는 좌우·상단 여백 0 으로 화면 끝까지 채운다 */
/* 261113 여백통일 B · CGV 앱 본문 = 세로 카드 열 (gap 16) */
.app { padding: 20px 20px 110px; display: flex; flex-direction: column; gap: 16px; }
/* UI 고도화 B-2 · PC(560px 초과)에서는 가운데 480px 앱 프레임 + 바깥 연녹색 배경 */
.cgv-frame { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--card); }
@media (min-width: 560px) {
  body.cgv-page { background: var(--brand-soft); }
  .cgv-frame { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
}
.cgv-appbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: var(--brand-darker);
  padding: 10px 14px;
}
.cgv-appbar .appbar-back {
  flex: 0 0 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 20px;
  text-decoration: none;
}
.cgv-appbar .appbar-back:hover { background: var(--brand-dark); color: #fff; }
/* UI 고도화 B-1 · 서비스명은 흰색 작은 글씨 (--brand-darker 위 명암비 14:1) */
.cgv-appbar .appbar-svc {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
}
.cgv-appbar .appbar-title { margin: 0; font-size: 18px; font-weight: 700; color: #fff; }
/* CGV 공통 앱바 로그아웃 — 스토리보드 미기재 (CR 대장 등재) · 어두운 앱바 위 고스트 버튼
   width/margin 은 화면별 `.scr-cgp-00X button { width:100% }` 를 이기도록 (0,2,0) 셀렉터 유지 */
.cgv-appbar .cgv-logout {
  width: auto;
  margin: 0 0 0 auto;
  background: transparent;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  padding: 8px 12px;
  box-shadow: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.cgv-appbar .cgv-logout:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.cgv-steps { display: flex; gap: 6px; margin: 0; }
.cstep {
  flex: 1;
  text-align: center;
  font-size: 14px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
}
.cstep.done { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-dark); }
.cstep.current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }

/* — CGV 하단 고정 주 버튼 — */
.cgv-actionbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 100%);
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(16,51,39,.06);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  z-index: 20;
}
.cgv-actionbar .hint { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.cgv-actionbar a.action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.cgv-actionbar a.action:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

/* — CGV 폼: 라벨은 입력칸 위 (A-2) — */
.app label { display: block; margin-top: 12px; }
.app label input[type="text"],
.app label input[type="tel"],
.app label input[type="number"],
.app label input[type="date"],
.app label textarea { display: block; width: 100%; margin-top: 4px; }
input[readonly] { background: var(--bg); }

/* — UI 고도화 A-1 · ADM PC 웹 셸: 화면 전체 높이 좌측 메뉴(264px 짙은 녹색) + 흰 상단 바 + 본문(최대 1440) — */
.adm-shell { display: flex; min-height: 100vh; align-items: stretch; }
.adm-side {
  flex: 0 0 264px;
  width: 264px;
  background: var(--brand-darker);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px;
  color: #fff;
}
.adm-side-head { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
.adm-logo { flex: 0 0 34px; display: block; }
.adm-side-svc { font-size: 15px; font-weight: 800; letter-spacing: .01em; color: #fff; line-height: 1.3; }
.adm-menu { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; flex: 1; }
.adm-menu a, .adm-menu .adm-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 16px;
}
.adm-menu a:hover { background: rgba(255,255,255,.1); color: #fff; }
.adm-menu a.active { background: rgba(255,255,255,.16); color: #fff; font-weight: 700; }
.adm-menu .adm-menu-item.soon { opacity: .45; cursor: default; }
.adm-user {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adm-user-name { font-size: 16px; font-weight: 700; color: #fff; }
.adm-user-role { font-size: 13px; color: rgba(255,255,255,.75); }
.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.adm-topbar h1 { margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); }
.adm-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 2px;
}
.adm-topbar-user { display: flex; align-items: center; gap: 12px; }
.adm-topbar-account { font-size: 16px; font-weight: 600; color: var(--ink); }
.adm-logout {
  background: var(--card);
  color: var(--brand-dark);
  border-color: var(--line-strong);
  min-height: 44px;
  font-size: 15px;
  padding: 0 16px;
}
.adm-logout:hover { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-dark); }
/* 261113 여백통일 B · ADM 본문 = 세로 카드 열 (gap 16) */
.adm-content { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.page-head-desc { font-size: 16px; color: var(--muted); margin: 0; }

/* — UI 고도화 A-2 · 대시보드 지표 카드 4종 (첫 카드 녹색 강조) — */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.metric-label { font-size: 15px; font-weight: 600; color: var(--muted); }
.metric-value { font-size: 30px; font-weight: 800; line-height: 1.1; color: var(--ink); }
.metric.primary { background: var(--brand); border-color: var(--brand); }
.metric.primary .metric-label { color: rgba(255,255,255,.85); }
.metric.primary .metric-value { color: #fff; }
.dash-cols { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; align-items: start; }
/* 261113 여백통일 B · 구분선·아래 여백 = ADM-011 기준값 (공통 승격) */
.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 0 0 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.card-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.card-head a { font-size: 15px; }
.card-head .section-desc { flex-basis: 100%; order: 2; }
/* 261113 여백통일 B · 표 전용 카드 예외 — 표가 카드 끝까지 차므로 해당 카드만 padding 0 (여백은 표 칸이 담당) */
.card[data-recent] { padding: 0; }
.card[data-recent] .card-head { padding: 20px 24px 12px; }
.card[data-recent] .empty-line { padding: 0 24px 20px; }
@media (max-width: 600px) {
  .card[data-recent] .card-head, .card[data-recent] .empty-line { padding-left: 16px; padding-right: 16px; }
}
.soon-list { list-style: none; margin: 0; padding: 0; }
.soon-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.soon-list li:last-child { border-bottom: none; }
.soon-list a { font-weight: 700; }
.soon-date { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.empty-line { color: var(--muted); font-size: 16px; padding: 8px 0; }

/* — UI 고도화 A-3 · 표 머리 고정 (스크롤 카드) — */
.table-scroll { max-height: 62vh; overflow: auto; border-radius: var(--radius); }
.table-scroll table { border: none; box-shadow: none; }
.table-scroll thead th { position: sticky; top: 0; z-index: 2; box-shadow: 0 1px 0 var(--line); }
.table-scroll tbody tr { cursor: pointer; }
.table-scroll tbody tr:hover { background: var(--brand-soft); }

/* — UI 고도화 A-3 · 빈 상태 안내 — */
.empty-state {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.empty-state svg { color: var(--muted-light); }
.empty-state p { margin: 0; font-size: 16px; color: var(--muted); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.btn-ghost:hover { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-dark); }

/* — UI 고도화 A-4 · 상세 2단 정보 행 — */
.info-rows { margin: 0; }
.info-rows > div {
  display: flex;
  gap: 12px;
  min-height: 40px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.info-rows > div:last-child { border-bottom: none; }
.info-label { flex: 0 0 96px; font-size: 15px; color: var(--muted); }
.info-value { font-size: 16px; font-weight: 600; color: var(--ink); }
.info-value code, .mono {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 15px;
  letter-spacing: .04em;
}
.doc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.doc-row:last-child { border-bottom: none; }
.doc-row .doc-name { font-size: 16px; font-weight: 600; }
.doc-row .badge { margin-left: auto; }
.doc-row .btn-ghost { min-height: 44px; }
.hist-item { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.hist-item:last-child { border-bottom: none; }
.hist-meta { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

/* — ADM 상세 2단: 내용 | 처리 패널 — */
.adm-cols { display: flex; gap: 16px; align-items: flex-start; }
/* 261113 여백통일 B · 카드 세로 열 공통 간격 (ADM-011 기준에서 승격) */
.adm-col-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.adm-col-side { flex: 0 0 320px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) {
  .adm-shell { flex-direction: column; }
  .adm-side { position: static; flex: none; width: 100%; height: auto; }
  .adm-topbar { padding: 12px 16px; }
  .adm-content { padding: 20px 16px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .dash-cols { grid-template-columns: 1fr; }
  .adm-cols { flex-direction: column; }
  .adm-col-side { flex: auto; width: 100%; }
}

/* — 로그인 카드 머리 (서비스명) — */
.login-svc {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

/* — 데모 계정 박스: 2묶음 + 설명 — */
.demo-group { margin-top: 10px; }
.demo-group-title { font-size: 14px; font-weight: 700; color: var(--brand-dark); }
.demo-desc { display: block; font-size: 14px; color: var(--ink); margin: 2px 0 6px; }

/* — hover · focus · active · disabled 통합 기준 — */
.tab:hover { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand-line); }

/* — 안내 · 오류 화면 — */
.guide-wrap {
  max-width: 560px;
  margin: 64px auto 80px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.guide-wrap .back { display: inline-block; margin-top: 16px; min-height: 48px; }

/* — 관리자 상단 밴드: --brand-darker 배경, 서비스명 + 화면 제목 — */
.admin-band {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  background: var(--brand-darker);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin: 0 0 20px;
}
.admin-band .svc {
  font-size: 14px;
  letter-spacing: .05em;
  color: var(--muted-light);
}
.admin-band h1 { margin: 0; font-size: 20px; font-weight: 700; color: #fff; }

/* — UI 고도화 C-1 · 로그인 2단: 왼쪽 브랜드 패널(깊은 녹) + 오른쪽 흰 폼 카드 — */
.login-split { display: grid; grid-template-columns: 1fr; }
.login-brand { display: none; }
@media (min-width: 900px) {
  .login-split { grid-template-columns: minmax(360px, 42%) 1fr; min-height: 100vh; }
  .login-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 48px 44px;
    background: linear-gradient(160deg, var(--brand-darker) 0%, var(--brand-dark) 70%, var(--brand) 100%);
    color: #fff;
  }
  /* 로그인 카드는 .login-main 과 .login-wrap 이 같은 요소(그리드 아이템) — flex row 로 만들면 자식들이 축소되므로
     카드 자체는 block 으로 두고 그리드 셀 안에서 safe center 로 세로 중앙정렬 */
  .login-main { background: #fff; align-self: safe center; }
}
/* — Claude 수정(261113) · 대표 요청: 로그인 왼쪽 브랜드 패널 재구성 —
   헤딩·부제 겹침(margin -16px) 해소, 사진 파일 부재로 빈 상자였던 자리를 진행 단계 카드로 교체 */
@media (min-width: 900px) {
  /* 오른쪽 카드가 길어도 브랜드 패널은 화면 높이에 고정되어 내용이 늘 보이게 */
  .login-brand { position: sticky; top: 0; height: 100vh; align-self: start; overflow-y: auto; justify-content: space-between; gap: 32px; padding: 56px 56px 32px; }
  /* 대표 제공 간병 현장 사진(261113) — 패널 좌우를 꽉 채우고(원본 비율 유지) 사진 아래쪽만 브랜드 녹색으로 녹인다.
     /css/** 만 공개 경로라 사진은 css/img 아래에 둔다 */
  .login-brand { background: var(--brand-darker); }
  .login-brand::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    aspect-ratio: 1024 / 572;
    background:
      linear-gradient(180deg, rgba(6,46,35,0) 45%, rgba(6,46,35,.55) 72%, var(--brand-darker) 100%),
      url("img/brand-caregiving.jpg") center / cover no-repeat;
    pointer-events: none;
  }
  .login-brand > * { position: relative; z-index: 1; }
  .login-brand .brand-inner { margin: auto 0 0; gap: 20px; }
  .login-brand .brand-headline { font-size: 30px; }
  .login-brand .brand-features { gap: 10px; }
}
.login-brand .brand-inner { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 460px; margin: auto 0 0; }
.login-brand .brand-mark { display: flex; align-items: center; gap: 12px; }
.login-brand .brand-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #8fd3b6;
}
.login-brand .brand-svc { font-size: 18px; font-weight: 700; letter-spacing: .02em; color: #fff; }
.login-brand .brand-headline { margin: 8px 0 0; font-size: 34px; line-height: 1.32; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.login-brand .brand-tag { margin: -12px 0 0; font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.80); }
.login-brand .brand-steps {
  padding: 20px 22px 18px; border-radius: var(--radius);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
}
.login-brand .brand-steps-title { margin: 0 0 16px; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.72); }
.login-brand .brand-steps ol { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.login-brand .brand-steps ol::before {
  content: ""; position: absolute; top: 17px; left: 12.5%; right: 12.5%; height: 2px; background: rgba(255,255,255,.22);
}
.login-brand .brand-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; text-align: center; color: rgba(255,255,255,.88); }
.login-brand .step-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 15px; font-weight: 700; color: #fff;
  background: var(--brand-darker); border: 2px solid rgba(255,255,255,.40);
}
.login-brand .brand-steps li.is-goal .step-dot { background: #8fd3b6; border-color: #8fd3b6; color: var(--brand-darker); }
.login-brand .brand-steps li.is-goal { color: #fff; font-weight: 700; }
.login-brand .brand-features { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.login-brand .brand-features li { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.92); }
.login-brand .feat-icon {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; background: rgba(143,211,182,.18); color: #8fd3b6;
}
.login-brand .brand-foot { margin: 0; font-size: 14px; color: rgba(255,255,255,.55); }

/* — UI 고도화 C-3 · 데모 계정 카드: 2열 격자, 카드 클릭 = ID·비밀번호 자동 입력 — */
.demo-hint { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.demo-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
@media (min-width: 560px) {
  .demo-grid { grid-template-columns: 1fr 1fr; }
}
.demo-grid .demo-group-title {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--brand-line);
}
.demo-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 10px 14px;
  text-align: left;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  cursor: pointer;
}
.demo-card b { font-size: 15px; font-weight: 700; color: var(--brand-dark); }
.demo-card small { font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.45; }
.demo-card:hover, .demo-card:focus-visible {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.demo-card.link {
  justify-content: center;
  align-items: center;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
  text-decoration: none;
}
.demo-card.link:hover { background: var(--brand-line); color: var(--brand-darker); }

/* — 폼통일 (261112) · 그린피아 폼 규칙 + CGP 접근성(16px 본문 · 48px 터치) 적용 — */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-top: 14px; }
.field-label {
  color: #33453e;
  font-weight: 650;
  font-size: 15px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.required-mark { color: var(--danger); }
.field-unit { color: var(--muted); font-size: 14px; font-weight: 400; }
.field-help { color: var(--muted); font-size: 14px; margin: 0; }
.field-error { color: var(--danger); font-weight: 600; font-size: 14px; margin: 0; }
.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 9px 12px;
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.input:hover, .select:hover, .textarea:hover { border-color: #a9beb4; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 92, 71, .12);
}
.input:disabled, .select:disabled, .textarea:disabled, .input[readonly], .select[readonly], .textarea[readonly] {
  background: #f1f5f3;
  color: var(--muted);
}
.input::placeholder, .textarea::placeholder { color: #65766f; }
.select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, #60746b 50%),
    linear-gradient(135deg, #60746b 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.is-invalid { border-color: var(--danger) !important; background-color: #fffafa; }
.is-hidden { display: none; }
input[type="date"].input { min-height: 48px; }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
/* 기간: 한 .field 안에 날짜 두 칸(동폭) */
.field-range { display: flex; align-items: center; gap: 8px; }
.field-range .input { flex: 1 1 0; min-width: 0; }
.field-range .range-sep { color: var(--muted); font-size: 14px; }
/* 입력 섹션: 카드 머리(제목 + 한 줄 설명) + 구분선 + 본문 */
.section-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.section-head h2 { margin-bottom: 4px; }
.section-desc { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
/* 입력 섹션 그리드 (제목+설명 카드 아래 2열) */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field-full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
/* 라디오·체크박스: 18px + 브랜드 색상 */
input[type="radio"], input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
  flex: 0 0 auto;
}
.field-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 16px;
  cursor: pointer;
}
/* 선택 카드 (간병인 유형 등): 48px 이상 */
.option-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .option-cards { grid-template-columns: 1fr; } }
.option-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 16px;
  cursor: pointer;
}
.option-card:hover { border-color: #a9beb4; }
.option-card:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
}
/* 필터 그리드 (ADM-010): 5열+버튼 → ≤1100px 3열 → ≤720px 1열 */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 13px 14px;
  padding: 18px 20px;
}
.filter-grid .field { margin-top: 0; }
.filter-actions { display: flex; gap: 10px; align-items: center; min-width: 180px; }
.filter-actions button, .filter-actions a {
  flex: 1;
  min-height: 48px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 16px;
}
@media (max-width: 1100px) {
  .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .filter-grid { grid-template-columns: 1fr; }
}
/* 버튼 통일: 48px + radius-sm */
.btn {
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  box-sizing: border-box;
}

/* — 화면별 규칙 (템플릿 <style> 에서 이동 — 값은 원본 그대로) — */
/* 화면: cgp-cgp-003 */
.scr-cgp-003 .doc-item { padding: 12px; margin-top: 12px; }
.scr-cgp-003 .frame { min-height: 160px; display: flex; align-items: center; justify-content: center; margin-top: 12px; }
.scr-cgp-003 button { width: 100%; margin-top: 12px; }
.scr-cgp-003 .progress { height: 8px; margin-top: 12px; }
.scr-cgp-003 .progress > i { display: block; height: 8px; width: 0%; }
/* 261114 · CGV-003 서류 카드 — 서류마다 카드 한 장 (이름 · 설명 · 상태 · 자기 버튼 · 자기 날짜) */
.scr-cgp-003 .doc-group { display: flex; flex-direction: column; gap: 12px; }
.scr-cgp-003 .doc-list { display: flex; flex-direction: column; gap: 14px; }
.scr-cgp-003 .doc-card { padding: 16px; margin-top: 0; display: flex; flex-direction: column; gap: 8px; }
.scr-cgp-003 .doc-card[data-optional="true"] { border-style: dashed; }
.scr-cgp-003 .doc-card-head { display: flex; align-items: center; gap: 8px; }
.scr-cgp-003 .doc-card-head h3 { margin: 0; font-size: 18px; font-weight: 700; }
.scr-cgp-003 .doc-card-head .badge { margin-left: auto; }
.scr-cgp-003 .doc-desc { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); }
.scr-cgp-003 .doc-flags { margin: 0; }
.scr-cgp-003 .doc-card .banner { margin: 4px 0; }
.scr-cgp-003 .doc-card .banner p { margin: 0 0 6px; }
.scr-cgp-003 .doc-notice-ver { font-size: 14px; color: var(--muted); }
.scr-cgp-003 .doc-notice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scr-cgp-003 .doc-notice-actions button { margin-top: 0; min-height: 48px; }
.scr-cgp-003 .doc-pick { display: grid; gap: 8px; }
.scr-cgp-003 .doc-pick button { margin-top: 0; min-height: 52px; font-size: 17px; }
.scr-cgp-003 .doc-frame { min-height: 96px; padding: 12px; text-align: center; font-size: 16px; }
.scr-cgp-003 .doc-dates .field { margin-top: 4px; }
/* CR-CGP-R-02 · 저장된 파일 칸 — 현재 파일 보기 · 다시 찍기 (AC-CGP-CGV-003-015) */
.scr-cgp-003 .doc-stored-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scr-cgp-003 .doc-stored-actions .btn, .scr-cgp-003 .doc-stored-actions button { margin-top: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; }
/* V32 · 범죄경력회보서 — 가 길(간편인증 큰 버튼) · 나 길(3단계 안내) */
.scr-cgp-003 .crim-simple { display: flex; flex-direction: column; gap: 8px; }
.scr-cgp-003 .crim-simple-btn { min-height: 56px; font-size: 18px; font-weight: 700; }
.scr-cgp-003 .crim-manual-link { font-size: 15px; }
.scr-cgp-003 .crim-form { display: flex; flex-direction: column; gap: 8px; }
.scr-cgp-003 .crim-form[hidden], .scr-cgp-003 [data-crim-wait][hidden], .scr-cgp-003 [data-crim-fail][hidden] { display: none !important; }
.scr-cgp-003 .crim-rrn { display: flex; align-items: center; gap: 8px; }
.scr-cgp-003 .crim-rrn .input { flex: 1; letter-spacing: 3px; }
.scr-cgp-003 .crim-guide { margin: 4px 0; padding-left: 22px; font-size: 15px; line-height: 1.6; }
.scr-cgp-003 .crim-guide li { margin-bottom: 4px; }
/* V32 · ADM-011 범죄경력회보서 확인 기록 */
.scr-adm-011 .crim-check-row { padding: 8px 0; border-bottom: 1px solid var(--line, #e5e7eb); font-size: 14px; }
.scr-adm-011 .crim-check-row:last-child { border-bottom: none; }
/* 화면: cgp-cgp-005 (261113 여백통일 B · margin-top 은 .app gap 로 중복 — 제거) */
.scr-cgp-005 .cert { padding: 20px; }
.scr-cgp-005 .cert.blurred { user-select: none; }
.scr-cgp-005 .photo { width: 80px; height: 100px; border-width: 1px; border-style: solid; }
/* CGV-005 · 등록증 — 사진 왼쪽 · 항목 오른쪽 (2026-11-15) */
.scr-cgp-005 .cert-body { display: flex; gap: 16px; align-items: flex-start; }
.scr-cgp-005 .cert-fields { flex: 1; min-width: 0; }
.scr-cgp-005 .cert-fields p { margin: 0 0 8px; overflow-wrap: anywhere; }
.scr-cgp-005 .photo { flex: 0 0 96px; width: 96px; height: 120px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.scr-cgp-005 .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scr-cgp-005 .photo-empty { margin: 0; padding: 6px; font-size: 13px; line-height: 1.4; text-align: center; color: var(--muted); }
.scr-cgp-005 .verify-code { font-size: 28px; letter-spacing: 4px; font-variant-numeric: tabular-nums; }
.scr-cgp-005 [data-offline][hidden], .scr-cgp-005 [data-verify-code][hidden] { display: none !important; }
/* 등록증 진위 확인 (/verify) */
.scr-verify .form-grid { margin-top: 16px; }
.scr-verify .banner p { margin: 0 0 6px; }
/* 화면: cgp-cgp-004 (261113 여백통일 B · 카드 padding/간격은 공통 규칙으로 이동 — 여기선 margin-top 중복 제거) */
.scr-cgp-004 .step { display: flex; gap: 8px; }
.scr-cgp-004 .step i { flex: 1; text-align: center; padding: 8px 0; font-style: normal; }
.scr-cgp-004 .step i.done { font-weight: 700; }
.scr-cgp-004 button { width: 100%; margin-top: 12px; }
/* 화면: cgp-adm-001 */
.scr-adm-001 label { margin-top: 16px; }
.scr-adm-001 button { width: 100%; }
.scr-adm-001 form button { margin-top: 12px; }
.scr-adm-001 #waiting { margin-top: 12px; }
.scr-adm-001 .demo-box { font-size: 14px; }
/* 화면: cgp-adm-011 */
.scr-adm-011 label { margin-top: 8px; }
.scr-adm-011 button { margin-top: 12px; margin-right: 8px; }
/* 261113 여백통일 A · 기준 화면 adm-011 (대표 승인값 — 공통으로 승격된 규칙은 제거하고 나머지만 유지) */
.scr-adm-011 .card-head h2{display:flex;align-items:center;gap:8px}
/* 261113 여백통일 B · 상세 화면 배너(동시충돌·오류) — 카드 열과 같은 간격 */
#detail { display: flex; flex-direction: column; gap: 16px; }
.scr-adm-011 .info-label{flex-basis:120px}
.scr-adm-011 [data-actions]{display:flex;gap:8px}
.scr-adm-011 [data-actions] .btn{flex:1;margin:0}
.scr-adm-011 .adm-col-side{position:sticky;top:24px}
/* 화면: cgp-com-006 */
.scr-com-006 label { margin-top: 16px; }
/* @AC AC-CGP-COM-006-905 — 탭 가능 요소의 터치 영역 48px 이상 (a.mini) */
.scr-com-006 a.mini { display: inline-block; min-height: 48px; line-height: 48px; font-size: 16px; }
.scr-com-006 #waiting { margin-top: 12px; }
.scr-com-006 .demo-box { font-size: 14px; }
/* 화면: cgp-cgp-002 (261113 여백통일 B · margin-top 은 .app gap 로 중복 — 제거) */
.scr-cgp-002 .step { border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; }
.scr-cgp-002 button { width: 100%; margin-top: 12px; }

/* ── 11단계 · C 증빙 화면 (ADM-070 ~ 090 · GRD-090 ~ 094) ── */
tr.row-blocked td { background: var(--danger-soft); }
tr.diff td { background: var(--warning-soft); font-weight: 600; }
.sticky-head th { position: sticky; top: 0; background: #fff; z-index: 1; }
.skeleton { min-height: 120px; border-radius: 12px; background: linear-gradient(90deg, #eef3f0 25%, #f7faf8 50%, #eef3f0 75%); }
.pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pager a { min-width: 36px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line, #dfe7e3); text-align: center; }
td.masked { font-family: ui-monospace, monospace; }

/* — 261114 로그인 재구성 · 실서비스형 카드 + 카드 밖 시험용 패널 (40~60대 기준: 큰 글자 · 큰 버튼 · 한 줄 안내) — */
.scr-com-006 .login-lead { margin: 0 0 20px; color: var(--muted); font-size: 17px; }
.scr-com-006 .login-form .field { margin-bottom: 16px; }
.scr-com-006 .field-label { font-size: 17px; font-weight: 700; }
.scr-com-006 .login-form .input { min-height: 56px; font-size: 18px; }
.btn.btn-lg { min-height: 56px; font-size: 18px; font-weight: 700; margin-top: 8px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 84px; }
.scr-com-006 .pw-wrap .pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: auto; min-width: 64px; min-height: 44px; margin: 0; padding: 0 12px;
  background: transparent; border: 0; color: var(--brand-dark); font-weight: 700; font-size: 16px;
}
.login-waiting { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--info-soft); color: var(--info); }
.login-error { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.login-links { display: flex; justify-content: center; margin-top: 16px; }
.login-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px; color: var(--brand-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 8px; color: var(--muted); font-size: 15px; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-alt { display: grid; gap: 10px; }
.btn-outline {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; margin: 0; padding: 0 16px; box-sizing: border-box;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn-outline:hover { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-dark); }
.btn-outline svg { flex: none; color: var(--brand); }
.scr-com-006 .login-alt button.btn-outline { margin: 0; }
.login-join { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.login-join p { margin: 0 0 10px; font-size: 17px; }
.login-join .btn-join { border-color: var(--brand); color: var(--brand-dark); font-weight: 800; font-size: 18px; }
.login-join small { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }

/* 시험용 패널 — 카드 밖. 좁은 화면은 카드 아래, 넓은 화면은 카드 오른쪽 */
.login-test { max-width: 480px; margin: 0 auto 48px; box-sizing: border-box; border-style: dashed; }
.login-test .test-badge { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border-radius: 999px; background: var(--warning-soft); color: var(--warning); font-size: 14px; font-weight: 700; }
.login-test .demo-card small { display: block; color: var(--muted); font-size: 14px; }
.login-test a.demo-card { display: block; min-height: 48px; margin-top: 4px; padding: 8px 12px; border: 1px solid var(--brand-line); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); text-decoration: none; box-sizing: border-box; }
.login-test a.demo-card:hover { background: var(--brand-soft); color: var(--brand-dark); }
@media (min-width: 900px) {
  .login-split.has-test-panel { grid-template-columns: minmax(340px, 38%) 1fr; }
  .login-split.has-test-panel .login-test { grid-column: 2; margin: 0 auto 48px; width: 100%; }
}
@media (min-width: 1360px) {
  .login-split.has-test-panel { grid-template-columns: minmax(340px, 34%) 1fr 340px; }
  .login-split.has-test-panel .login-test { grid-column: 3; grid-row: 1; align-self: start; margin: 48px 24px; position: sticky; top: 24px; }
}

/* — 회원 화면 언어 바꾸기 (한국어 | 中文) — 누르는 영역 48px · 40~60대가 찾기 쉽게 크게 —
   로그인 · 가입 · 안내 화면은 카드 머리(.login-svc) 오른쪽, 간병인 · 보호자 화면은 앱 바 둘째 줄 오른쪽 */
.login-svc { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; min-width: 48px; padding: 0 14px; box-sizing: border-box;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--brand-dark); text-decoration: none;
}
.lang-switch a:hover { background: var(--brand-soft); }
.lang-switch a.on { border-color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.lang-switch .lang-sep { color: var(--muted-light); font-weight: 400; }
.cgv-appbar { flex-wrap: wrap; }
.cgv-appbar .lang-switch { flex-basis: 100%; justify-content: flex-end; }
.cgv-appbar .lang-switch a { color: #fff; }
.cgv-appbar .lang-switch a:hover { background: rgba(255,255,255,.14); color: #fff; }
.cgv-appbar .lang-switch a.on { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.12); }
.cgv-appbar .lang-switch .lang-sep { color: rgba(255,255,255,.6); }
/* — 261114 · hover · 누름 색 통일 (대표 지적: 마우스를 올리면 글자와 버튼 색이 같아 글자가 안 보임) —
   초록 버튼: 더 진한 초록 + 흰 글자 / 흰 바탕 · 테두리 버튼: 연한 초록 + 진한 초록 글자. 모두 명암비 4.5:1 이상 */
a.btn, a.btn:visited { color: #fff; background: var(--brand); border: 1px solid var(--brand); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; }
a.btn:hover, a.btn:focus-visible { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }
a.btn:active { color: #fff; background: var(--brand-darker); }
.btn-ghost:hover:not(:disabled), .btn-outline:hover:not(:disabled), button.secondary:hover:not(:disabled),
.demo-card:hover:not(:disabled), .adm-logout:hover:not(:disabled), .tab:hover {
  background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-dark);
}
.btn-ghost:active:not(:disabled), .btn-outline:active:not(:disabled), button.secondary:active:not(:disabled),
.demo-card:active:not(:disabled), .adm-logout:active:not(:disabled) {
  background: var(--brand-line); border-color: var(--brand); color: var(--brand-darker);
}
.scr-com-006 .pw-wrap .pw-toggle:hover:not(:disabled), .scr-com-006 .pw-wrap .pw-toggle:active:not(:disabled) {
  background: var(--brand-soft); color: var(--brand-darker); border: 0;
}
.cgv-appbar .cgv-logout:hover:not(:disabled), .cgv-appbar .cgv-logout:active:not(:disabled) { color: #fff; }
a.btn-ghost:visited, a.btn-outline:visited { color: var(--brand-dark); }

/* CR-CGP-G-01 · 보호자 문자 링크 — 앱 바의 접수번호 줄 · 링크 첫 화면 */
.cgv-appbar .appbar-receipt { flex-basis: 100%; margin: 4px 0 0; color: #fff; font-size: 16px; }
.cgv-appbar .appbar-receipt b { font-size: 20px; letter-spacing: .03em; }
.cgv-appbar .appbar-receipt small { display: block; font-size: 14px; color: rgba(255,255,255,.85); }
.glink-wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 24px 16px; box-sizing: border-box; font-size: 18px; line-height: 1.6; }
.glink-wrap .btn, .glink-wrap button { min-height: 56px; min-width: 48px; font-size: 18px; width: 100%; box-sizing: border-box; }
.glink-wrap .glink-phone { font-size: 22px; font-weight: 700; letter-spacing: .05em; }

/* 261115 · CGV-002 중복 신청 — 기존 신청번호 · 상태 · 기존 건 보기 */
.existing-app { display: flex; flex-direction: column; gap: 12px; }
.existing-app .banner { margin: 0; }
.existing-app-info { margin: 0; }
.existing-app-info div { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.existing-app-info dt { width: 96px; color: var(--muted); }
.existing-app-info dd { margin: 0; font-weight: 700; }
.existing-app a.btn { min-height: 52px; font-size: 18px; }

/* — 간병인 관리 D2 (ADM-012 · 013 · 014) — 집계 카드를 누르면 그 조건으로 다시 조회. 만료 · 자동 정지는 경고 — */
a.metric { text-decoration: none; min-height: 48px; }
a.metric:hover { border-color: var(--brand); }
.metric.warn { border-color: var(--danger); background: var(--danger-soft); }
.metric.warn .metric-value, .metric.warn .metric-label { color: var(--danger); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
a.tab { display: inline-flex; align-items: center; text-decoration: none; }
.pager a.active { background: var(--brand-soft); border-color: var(--brand); font-weight: 700; }

/* — 간병일지 (V30 · CGV-060 ~ 064) — 40~60대 · 휴대폰: 본문 16px 이상 · 누르는 곳 48px 이상 · 주 버튼 하단 고정 — */
.cgv-appbar .appbar-break { flex-basis: 100%; height: 0; }
.cgv-appbar .appbar-carelog {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 16px; border-radius: var(--radius-sm);
  background: #fff; color: var(--brand-darker); font-size: 16px; font-weight: 700; text-decoration: none;
}
.cgv-appbar .appbar-carelog:hover, .cgv-appbar .appbar-carelog:visited { color: var(--brand-darker); background: var(--brand-soft); }
.cgv-appbar .appbar-carelog + .lang-switch { flex: 1 1 auto; flex-basis: auto; }
.cl-head { display: flex; flex-direction: column; gap: 4px; }
.cl-head .cl-date { font-size: 22px; font-weight: 800; margin: 0; }
.cl-head p { margin: 0; font-size: 16px; }
.cl-pick { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.cl-pick .field { flex: 1 1 200px; margin-top: 0; }
.cl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cl-stats div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 8px; text-align: center; }
.cl-stats b { display: block; font-size: 22px; }
.cl-stats span { font-size: 14px; color: var(--muted); }
.cl-stats div.cl-rate-below { border: 2px solid var(--danger); background: var(--danger-soft); }
.cl-stats div.cl-rate-below b, .cl-stats div.cl-rate-below span { color: var(--danger); }
.cl-days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cl-day {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  min-height: 56px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink); text-decoration: none; font-size: 16px;
}
a.cl-day:hover, a.cl-day:visited { color: var(--ink); border-color: var(--brand); }
.cl-day.missing { border: 2px solid var(--warning); background: var(--warning-soft); }
.cl-day .cl-day-date { font-weight: 800; min-width: 112px; }
.cl-day .cl-day-go { margin-left: auto; font-weight: 700; color: var(--brand-dark); }
.cl-day .cl-day-preview { flex-basis: 100%; color: var(--muted); font-size: 15px; }
.badge.missing { background: var(--warning-soft); color: var(--warning); }
.badge.written { background: var(--success-soft); color: var(--success); }
.badge.revised { background: var(--info-soft); color: var(--info); }
.badge.legacy, .badge.self { background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); }
.cl-time-grid { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; align-items: center; }
.cl-time-grid .select { min-height: 52px; font-size: 18px; width: 100%; }
.cl-time-locked { font-size: 20px; font-weight: 800; margin: 0; }
.cl-check { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 18px; cursor: pointer; background: #fff; }
.cl-check input[type="checkbox"] { width: 28px; height: 28px; flex: none; }
.cl-check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.cl-items { display: flex; flex-direction: column; gap: 8px; }
.cl-item-note { margin: -2px 0 4px 40px; }
.cl-item-note .input { width: 100%; }
.cl-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-presets button { min-height: 48px; font-size: 16px; }
.cl-note .textarea { width: 100%; min-height: 160px; font-size: 18px; line-height: 1.6; }
.cl-count { font-size: 15px; color: var(--muted); text-align: right; margin: 4px 0 0; }
.cl-late { border: 2px solid var(--warning); background: var(--warning-soft); }
.cl-changed { outline: 3px solid var(--accent); outline-offset: 2px; }
.cl-mark { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700; }
.cl-dl { margin: 0; }
.cl-dl div { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.cl-dl dt { flex: 0 0 120px; color: var(--muted); }
.cl-dl dd { margin: 0; font-weight: 700; }
.cl-done-list { list-style: none; margin: 0; padding: 0; }
.cl-done-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.cl-done-list li.not-done { color: var(--muted); }
.cl-done-list .cl-yes { color: var(--success); font-weight: 800; min-width: 52px; }
.cl-done-list .cl-no { color: var(--muted); min-width: 52px; }
.cl-fulltext { white-space: pre-wrap; word-break: break-word; font-size: 17px; margin: 0; }
.cl-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cl-diff > div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; }
.cl-diff .cl-before { background: var(--bg); }
.cl-diff .cl-after { background: var(--accent-soft); }
.cl-diff h3 { margin: 0 0 4px; font-size: 15px; color: var(--muted); }
@media (max-width: 380px) { .cl-diff { grid-template-columns: 1fr; } }
.cl-version { border-left: 4px solid var(--info); padding-left: 12px; margin: 12px 0; }
.cl-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.cgv-actionbar button.action { width: 100%; min-height: 52px; font-size: 18px; }

/* — 간병일지 출력물 (인쇄용 A4) — 협회 직인 · 로고 없음. 보험사 제출용이라 한국어 — */
.cl-print-tools { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px; background: var(--brand-soft); }
.cl-print-tools p { flex-basis: 100%; margin: 0; }
.cl-doc { max-width: 900px; margin: 0 auto; padding: 24px 16px; background: #fff; color: #000; font-size: 13px; line-height: 1.5; }
.cl-doc h1 { font-size: 22px; text-align: center; margin: 0 0 12px; }
.cl-doc h2 { font-size: 16px; margin: 16px 0 6px; }
.cl-doc table { width: 100%; border-collapse: collapse; margin: 0 0 8px; }
.cl-doc th, .cl-doc td { border: 1px solid #555; padding: 4px 5px; vertical-align: top; text-align: left; font-size: 12px; }
.cl-doc th { background: #eee; }
.cl-doc .cl-blank { display: inline-block; min-width: 160px; border-bottom: 1px solid #000; }
.cl-doc .cl-missing td { background: #f5f5f5; }
.cl-doc .cl-sign { margin-top: 24px; display: flex; justify-content: flex-end; gap: 12px; font-size: 14px; }
.cl-doc .cl-sign span { display: inline-block; min-width: 180px; border-bottom: 1px solid #000; }
.cl-doc .cl-disclaimer { margin-top: 16px; padding: 8px; border: 1px solid #555; font-size: 12px; }
.cl-doc .cl-note-cell { white-space: pre-wrap; word-break: break-word; }
@media print {
  @page { size: A4; margin: 14mm 10mm; @bottom-center { content: counter(page) " / " counter(pages) "쪽"; font-size: 10px; } }
  body { background: #fff; }
  .no-print { display: none !important; }
  .cl-doc { padding: 0; max-width: none; }
  .cl-doc tr { page-break-inside: avoid; }
}

/* 가입 화면 통일 (261116) — 회원가입 단계(COM-002 ~ 005 · 완료)를 간병인 앱 틀(cgv-frame · cgv-appbar · .app)로.
   화면 안 <style> 의 .signup-wrap 여백(24px 16px)보다 앱 본문 여백이 이긴다 (0,2,0) */
.app.signup-wrap { max-width: none; padding: 20px 20px 40px; }
.signup-page .signup-steps { display: flex; flex-wrap: nowrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.signup-page .signup-steps li {
  flex: 1 1 0; min-width: 0; text-align: center; font-size: 13px; line-height: 1.3; padding: 8px 4px;
  border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); color: var(--muted);
  word-break: keep-all;
}
.signup-page .signup-steps li.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.signup-page .signup-steps li:has(~ li.on) { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-dark); }
/* 아래 버튼 줄 — 「이전」 · 「다음」 나란히, 다음이 더 넓다 (누르는 영역 48px 이상) */
.signup-nav { display: flex; gap: 10px; margin-top: 20px; }
.signup-nav > * { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.signup-nav .btn-outline { flex: 0 0 34%; text-decoration: none; }
.signup-nav button, .signup-nav .btn { flex: 1 1 auto; width: auto; margin: 0; }
.signup-page .app h2 { font-size: 18px; }
.signup-nav[hidden] { display: none; }
.signup-nav a.btn { text-decoration: none; color: #fff; }
/* CR-CGP-I18N-02 · 앱 바 「설정」 — 로그아웃 왼쪽, 같은 고스트 모양 (누르는 영역 48px) */
.cgv-appbar .appbar-settings {
  margin-left: auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius-sm); color: #fff; font-size: 13px; text-decoration: none;
}
.cgv-appbar .appbar-settings:hover, .cgv-appbar .appbar-settings:visited { color: #fff; background: rgba(255,255,255,.14); }
.cgv-appbar .appbar-settings ~ .cgv-logout { margin-left: 0; }
/* 설정 화면 — 언어 고르기: 큰 버튼 두 개 */
.lang-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 8px; }
.lang-choice a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 72px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  color: var(--text, #111827); font-size: 20px; font-weight: 700; text-decoration: none;
}
.lang-choice a small { font-size: 14px; font-weight: 400; color: var(--muted); }
.lang-choice a.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-darker); }
.lang-choice a:visited { color: inherit; }

/* ── 13단계 · 출퇴근 체크 · 근태 이력 · 보호자 열람 · 청구 · 결제 (CGV-040 ~ 043 · GRD-052 · 053 · 070 · 071) ──
   본문 16px 이상 · 누르는 영역 48px(보호자 44px) 이상 · 명암비 4.5:1 이상(토큰 색) · 360px 폭에서 가로 스크롤 없음 */
.att-app { font-size: 16px; overflow-wrap: anywhere; }
.att-app button, .att-app .btn, .att-app a.btn-ghost, .att-app select, .att-app .input, .att-app .textarea { min-height: 48px; font-size: 16px; }
.att-clock { font-size: 40px; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--brand-darker); margin: 4px 0 0; }
.att-clock-label { font-size: 16px; color: var(--muted); margin: 0; }
.att-sticky { position: sticky; top: 0; z-index: 15; }
.att-kv { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: 6px 12px; margin: 0; }
.att-kv dt { color: var(--muted); font-size: 16px; }
.att-kv dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.att-status { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.att-status.in { color: var(--success); }
.att-status.out, .att-status.fail { color: var(--danger); }
.att-status.wait { color: var(--info); }
.att-under { color: var(--danger); font-weight: 700; }
.att-met { color: var(--success); font-weight: 700; }
.att-days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.att-days li > a, .att-days li > div {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); text-decoration: none;
}
.att-days li.today > a, .att-days li.today > div { border-color: var(--brand); box-shadow: inset 4px 0 0 var(--brand); }
.att-days .att-date { font-weight: 700; min-width: 128px; }
.badge.today { background: var(--brand); color: #fff; }
.badge.icon-exception { background: var(--warning-soft); color: var(--warning); }
.badge.icon-integrity { background: var(--danger-soft); color: var(--danger); }
.att-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.att-summary b { display: block; font-size: 24px; color: var(--brand-darker); }
.att-summary span { font-size: 16px; color: var(--muted); }
.att-notice { border: 2px solid var(--warning); background: var(--warning-soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.att-notice p { margin: 0 0 8px; }
.grd-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grd-pair > * { min-height: 48px; width: 100%; margin: 0; }
.grd-total { font-size: 28px; font-weight: 800; color: var(--brand-darker); }
.grd-formula { font-size: 18px; font-weight: 600; }
.att-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.att-table th, .att-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.att-remaining { font-size: 16px; color: var(--muted); }
.att-app .field-help, .att-app .badge { font-size: 16px; }

/* ── 14단계 · 보호자 가족간병 신청 (GRD-010 ~ 019) ──
   본문 16px 이상 · 누르는 영역 48px 이상(AC 는 44px) · 명암비 4.5:1 이상(토큰 색) · 360px 폭에서 가로 스크롤 없음 ·
   주 조작 버튼은 하단 고정(.cgv-actionbar) · 200% 확대에서도 한 줄로 흐르도록 고정 폭을 두지 않는다 */
.apl-app { font-size: 16px; overflow-wrap: anywhere; max-width: 100%; }
.apl-app button, .apl-app .btn, .apl-app a.btn-ghost, .apl-app .select, .apl-app .input, .apl-app .textarea { min-height: 48px; font-size: 16px; }
.apl-app .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: var(--radius-sm); background: var(--brand); border: 1px solid var(--brand); color: #fff; font-weight: 600; text-decoration: none; }
.apl-app .btn:disabled, .apl-app .btn[aria-disabled="true"], .apl-app .apl-disabled { background: var(--line); border-color: var(--line); color: var(--ink); cursor: not-allowed; pointer-events: none; }
.apl-app .field-help, .apl-app .field-error, .apl-app .badge, .apl-app .cstep { font-size: 16px; }
.apl-steps { flex-wrap: wrap; align-items: center; }
.apl-steps .cstep { min-height: 44px; display: flex; align-items: center; justify-content: center; }
.apl-step-count { flex-basis: 100%; text-align: right; font-weight: 700; color: var(--brand-dark); }
.apl-preview, .apl-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.apl-warning { border: 2px solid var(--warning); background: var(--warning-soft); color: var(--ink); border-radius: var(--radius-sm); padding: 12px 14px; }
.apl-warning p { margin: 0 0 8px; }
.apl-check, .apl-radio { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.apl-check input, .apl-radio input { width: 24px; height: 24px; flex: none; }
.apl-choices { border: 0; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.apl-sub { margin-top: 10px; padding-left: 12px; border-left: 3px solid var(--brand-line); }
.apl-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.apl-actions > * { min-height: 48px; width: 100%; }
.apl-summary { margin-top: 10px; padding: 10px 12px; background: var(--brand-soft); border-radius: var(--radius-sm); }
.apl-candidates { list-style: none; padding: 0; }
.apl-candidate { width: 100%; text-align: left; }
.apl-timeline { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.apl-excluded { background: var(--danger-soft); color: var(--danger); font-weight: 700; padding: 8px 12px; border-radius: var(--radius-sm); }
.apl-included { background: var(--success-soft); color: var(--success); font-weight: 700; padding: 8px 12px; border-radius: var(--radius-sm); }
.apl-pay-start { font-weight: 700; }
.apl-overall { font-size: 24px; font-weight: 800; color: var(--brand-darker); margin: 0 0 8px; }
.apl-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.apl-rule { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.apl-rule[data-grade-value="BLOCK"] { border: 2px solid var(--danger); }
.apl-rule[data-grade-value="WARN"] { border: 2px solid var(--warning); }
.apl-rule-id { font-variant-numeric: tabular-nums; }
.apl-receipt { font-size: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.apl-viewer { width: 100%; min-height: 420px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.apl-confirm { margin-top: 10px; }
.apl-dates p { display: flex; flex-direction: column; margin: 0; }
.apl-app progress { width: 100%; height: 16px; }
@media (max-width: 360px) {
  .apl-app { padding-left: 12px; padding-right: 12px; }
  .grd-pair, .apl-actions { grid-template-columns: 1fr; }
}

/* 15단계 — 간병인 홈 · 수당 · 서류 갱신 · 오프라인 상태 · 보호자 홈 · 진행 현황 · 계약 · 안내 (CGV-001 · 007 · 080 ~ 083 · 091 · GRD-001 · 002 · 050 · 051)
   본문 16px 이상 · 누르는 영역 48px(간병인) · 44px 이상(보호자) · 토큰 색(명암비 4.5:1) · 고정 폭 없이 줄바꿈(200% 확대 · 360px 폭) */
.s15-app { font-size: 16px; overflow-wrap: anywhere; max-width: 100%; }
.s15-app button, .s15-app .btn, .s15-app a.btn, .s15-app a.btn-ghost, .s15-app .select, .s15-app .input, .s15-app label.btn-ghost { min-height: 48px; font-size: 16px; }
.s15-app .field-help, .s15-app .badge, .s15-app dt, .s15-app dd, .s15-app li { font-size: 16px; }
.s15-app .btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: var(--radius-sm); background: var(--brand); border: 1px solid var(--brand); color: #fff; font-weight: 600; text-decoration: none; }
.s15-app .apl-disabled { background: var(--line); border-color: var(--line); color: var(--ink); cursor: not-allowed; pointer-events: none; }
.s15-app a.card { display: block; color: var(--ink); text-decoration: none; }
.s15-today { position: sticky; top: 0; z-index: 2; border: 2px solid var(--brand); }
.s15-formula { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.6; }
.s15-contract { white-space: pre-wrap; overflow-wrap: anywhere; word-break: keep-all; max-width: 100%; max-height: 50vh; overflow-y: auto; overflow-x: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--card); }
.s15-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.s15-steps li { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); }
.s15-steps li.done { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-dark); }
.s15-steps li.current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.s15-renew { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.grd-app button, .grd-app .btn, .grd-app a.btn-ghost, .grd-app a, .grd-app .input { min-height: 44px; }
@media (max-width: 360px) {
  .s15-app { padding-left: 12px; padding-right: 12px; }
  .s15-app .att-summary { grid-template-columns: 1fr; }
}

/* 17단계 · 공통 12화면 (CGP-COM-001 · 007 · 020 · 021 · 022 · 040 ~ 043 · 060 · 090 · 091) — AC-CGP-COM-0xx-900 ~ 905
   본문 16px 이상 · 누르는 영역 48px 이상 · 토큰 색(명암비 4.5:1 이상) · 고정 폭 없이 줄바꿈(200% 확대 · 시스템 최대 글자) */
.com-app { font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; word-break: keep-all; max-width: 100%; color: var(--ink); }
.com-app button, .com-app .btn, .com-app a.btn, .com-app a.btn-ghost, .com-app .input, .com-app .select, .com-app .textarea, .com-app summary { min-height: 48px; font-size: 16px; }
.com-app p, .com-app li, .com-app dt, .com-app dd, .com-app .field-help, .com-app .badge, .com-app label { font-size: 16px; }
.com-app .com-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.com-app .com-list > li { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--card); }
.com-app .com-list > li.unread { border-color: var(--brand); border-width: 2px; }
.com-app .com-list > li.pinned { background: var(--brand-soft); }
.com-app .com-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.com-app .com-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.com-app .com-hit { background: var(--accent-soft); color: var(--ink); font-weight: 700; padding: 0 2px; border-radius: 3px; }
.com-app .com-readonly { background: var(--bg); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; }
.com-app .com-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.com-app textarea.textarea { width: 100%; min-height: 160px; }
.com-app .badge.undecided { background: var(--warning-soft); color: var(--warning); }
@media (max-width: 360px) {
  .com-app { padding-left: 12px; padding-right: 12px; }
}

/* ── 18단계 · 설계사 화면 (CGP-AGT-001 ~ 013 · PC 웹) — 본문 16px · 명암비 4.5:1 이상(토큰 색) · 200% 확대에서 한 열로 접힌다 ── */
.agt-page { background: var(--bg); }
.agt-frame { max-width: 960px; margin: 0 auto; min-height: 100vh; }
.agt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: var(--brand-darker); color: #fff; padding: 12px 20px; }
.agt-bar .svc-name { color: #fff; font-weight: 700; }
.agt-bar h1 { color: #fff; font-size: 20px; margin: 0; flex: 1 1 auto; }
.agt-menu { display: flex; flex-wrap: wrap; gap: 4px 12px; width: 100%; }
.agt-menu a { color: #fff; text-decoration: none; padding: 8px 4px; min-height: 44px; display: inline-flex; align-items: center; }
.agt-menu a[aria-current="page"] { text-decoration: underline; font-weight: 700; }
.agt-bar .agt-logout { min-height: 44px; background: transparent; border: 1px solid #fff; color: #fff; box-shadow: none; }
.agt-app { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.agt-app .badge.undecided, .agt-app .badge.warn { background: var(--warning-soft); color: var(--warning); }
.agt-app .badge.ok { background: var(--success-soft); color: var(--success); }
.agt-app .badge.actor { background: var(--info-soft); color: var(--info); }
.agt-app label { display: block; font-weight: 600; margin: 12px 0 4px; }
.agt-app .input, .agt-app .select { width: 100%; max-width: 480px; }
.agt-app table { width: 100%; border-collapse: collapse; }
.agt-app th, .agt-app td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.agt-app .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 20px; }
.agt-app .row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.agt-app .scope-list li { margin-bottom: 6px; }
@media (max-width: 640px) {
  .agt-app table, .agt-app thead, .agt-app tbody, .agt-app tr, .agt-app th, .agt-app td { display: block; }
  .agt-app thead { display: none; }
}
