/* =============================================
   senior.css - 시니어 UI 핵심 스타일
   - 기본 글씨 18px (최소 16px)
   - 버튼 최소 높이 56px
   - 색 대비 WCAG AA (4.5:1 이상)
   - 하단 고정 탭 4개
   ============================================= */

/* ----- CSS 변수 ----- */
:root {
  --primary:     #137fec;
  --primary-dark:#0f6ad0;
  --secondary:   #27ae60;
  --danger:      #c0392b;
  --warning:     #e67e22;
  --bg:          #f5f7fa;
  --white:       #ffffff;
  --text:        #1a1a1a;
  --text-muted:  #6b7280;
  --border:      #e5e7eb;
  --shadow:      0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --radius:      12px;
  --tab-h:       70px;
}

/* ----- 리셋 & 베이스 ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  /* padding-bottom: 탭바 높이만큼 추가하는 구 방식 제거.
     앱쉘 레이아웃(body=flex column, 스크롤은 콘텐츠 div 안에서)으로 전환됨. */
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.2em; }

/* ----- 레이아웃 ----- */
.page-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
}
/* 모바일에서만 중앙 제한 — 데스크탑은 아래 media에서 해제 */

/* ----- 헤더 ----- */
.site-header {
  background: var(--primary);
  color: var(--white);
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.site-header .inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .site-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
}
.site-header .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header .user-name {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
}
.site-header .btn-logout {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}
.site-header .btn-logout:hover {
  background: rgba(255,255,255,0.35);
  text-decoration: none;
}

/* ----- 하단 탭 네비 ----- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tab-h);
  background: var(--white);
  border-top: 2px solid var(--border);
  display: flex;
  z-index: 200;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  gap: 4px;
  transition: color 0.15s, background 0.15s;
}
.bottom-nav a .icon {
  font-size: 26px;
  line-height: 1;
}
.bottom-nav a.active,
.bottom-nav a:hover {
  color: var(--primary);
  background: rgba(19,127,236,0.07);
  text-decoration: none;
}

/* ----- 페이지 제목 ----- */
.page-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--text);
  margin: 24px 0 16px;
}
.page-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: -8px;
  margin-bottom: 20px;
}

/* ----- 카드 ----- */
.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid #e8edf2;
  padding: 20px;
  margin-bottom: 16px;
}
.card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--text);
}

/* ----- 버튼 ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  gap: 8px;
  font-family: inherit;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  opacity: 0.88;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary  { background: var(--primary);   color: var(--white); }
.btn-success  { background: var(--secondary); color: var(--white); }
.btn-danger   { background: var(--danger);    color: var(--white); }
.btn-warning  { background: var(--warning);   color: var(--white); }
.btn-outline  { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-gray     { background: #e0e0e0; color: var(--text); }

.btn-sm {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 16px;
  border-radius: 8px;
}
.btn-lg {
  min-height: 66px;
  padding: 16px 32px;
  font-size: 22px;
  border-radius: 12px;
}
.btn-block { width: 100%; }

/* 전화 버튼 */
.btn-call {
  background: #27ae60;
  color: var(--white);
  min-height: 56px;
  font-size: 20px;
}
.btn-sms {
  background: #2980b9;
  color: var(--white);
  min-height: 56px;
  font-size: 20px;
}

/* ----- 폼 ----- */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--text);
}
.form-label .required {
  color: var(--danger);
  margin-left: 4px;
}
.form-control {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 18px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,95,168,0.2);
}
textarea.form-control {
  min-height: 100px;
  resize: vertical;
}
select.form-control { cursor: pointer; }

.form-hint {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 6px;
}
.form-error {
  font-size: 15px;
  color: var(--danger);
  margin-top: 6px;
  font-weight: bold;
}

/* 체크박스 / 라디오 */
.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.check-item input[type="checkbox"],
.check-item input[type="radio"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: var(--primary);
}
.check-item span { font-size: 18px; }

/* 시간 입력 */
.time-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.time-input-wrap .form-control {
  width: 80px;
  text-align: center;
}
.time-sep { font-size: 22px; font-weight: bold; color: var(--text-muted); }

/* ----- 알림 배너 ----- */
.alert {
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 17px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-icon { font-size: 22px; flex-shrink: 0; }
.alert-success  { background: #d4edda; border-left: 5px solid #28a745; color: #155724; }
.alert-error    { background: #f8d7da; border-left: 5px solid #dc3545; color: #721c24; }
.alert-warning  { background: #fff3cd; border-left: 5px solid #ffc107; color: #856404; }
.alert-info     { background: #d1ecf1; border-left: 5px solid #17a2b8; color: #0c5460; }
.alert .close-btn {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  flex-shrink: 0;
}
.alert .close-btn:hover { opacity: 1; }

/* 알림 팝업 영역 */
#notification-area {
  position: fixed;
  top: 64px;
  right: 16px;
  width: min(340px, calc(100vw - 32px));
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notification-toast {
  background: var(--white);
  border-left: 5px solid var(--primary);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  padding: 14px 16px;
  animation: slideIn 0.3s ease;
}
.notification-toast .toast-title {
  font-weight: bold;
  font-size: 17px;
  margin-bottom: 4px;
}
.notification-toast .toast-msg {
  font-size: 16px;
  color: var(--text-muted);
}
.notification-toast .toast-close {
  float: right;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
  margin-left: 8px;
}
@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ----- 복약 체크 카드 ----- */
.med-check-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.med-check-card.checked {
  opacity: 0.65;
  background: #f0f0f0;
}
.med-check-info { flex: 1; min-width: 0; }
.med-check-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 2px;
}
.med-check-detail {
  font-size: 15px;
  color: var(--text-muted);
}
.med-check-btn {
  min-width: 80px;
  min-height: 52px;
  font-size: 17px;
  flex-shrink: 0;
}
.med-check-btn.done {
  background: #aaa;
  color: var(--white);
}

/* 슬롯 뱃지 */
.slot-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  margin-right: 4px;
}
.slot-morning { background: #fff3cd; color: #856404; }
.slot-lunch   { background: #d1ecf1; color: #0c5460; }
.slot-evening { background: #d6e8ff; color: #0d3f6d; }

/* ----- 연락처 카드 ----- */
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 26px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info { flex: 1; min-width: 0; }
.contact-name {
  font-size: 20px;
  font-weight: bold;
}
.contact-relation {
  font-size: 15px;
  color: var(--text-muted);
}
.contact-phone {
  font-size: 17px;
  color: var(--primary);
  font-weight: bold;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ----- 건강 기록 ----- */
.health-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.health-stat {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  text-align: center;
}
.health-stat .stat-label {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.health-stat .stat-val {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary);
}
.health-stat .stat-unit {
  font-size: 14px;
  color: var(--text-muted);
}

/* ----- 리스트 ----- */
.list-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.list-item-main { flex: 1; min-width: 0; }
.list-item-title {
  font-size: 19px;
  font-weight: bold;
}
.list-item-sub {
  font-size: 15px;
  color: var(--text-muted);
}
.list-item-actions {
  display: flex;
  gap: 8px;
}

/* ----- 빈 상태 ----- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 56px; margin-bottom: 12px; }
.empty-state .empty-text { font-size: 19px; margin-bottom: 20px; }

/* ----- 구분선 ----- */
.divider {
  border: none;
  border-top: 2px solid var(--border);
  margin: 20px 0;
}

/* ----- 반응형 ----- */
@media (max-width: 480px) {
  html { font-size: 17px; }
  .page-title { font-size: 24px; }
  .btn { font-size: 18px; }
  .health-row { grid-template-columns: 1fr; }
  .contact-card { flex-wrap: wrap; }
}

/* =============================================
   웰니스 섹션 스타일
   ============================================= */

/* 웰니스 허브 카드 그리드 */
.wellness-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.wellness-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 14px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.wellness-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
  text-decoration: none;
  color: var(--text);
}
.wellness-card .wc-icon { font-size: 40px; line-height: 1; }
.wellness-card .wc-label { font-size: 17px; font-weight: bold; }
.wellness-card .wc-sub { font-size: 13px; color: var(--text-muted); }

/* 기분 이모지 선택 버튼 */
.mood-btn-group {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.mood-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 4px;
  border: 3px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}
.mood-btn .mood-emoji { font-size: 32px; line-height: 1; }
.mood-btn .mood-label { font-size: 12px; color: var(--text-muted); font-weight: bold; }
.mood-btn.selected,
.mood-btn:focus {
  border-color: var(--primary);
  background: rgba(26,95,168,0.07);
  outline: none;
}

/* 감정 태그 다중 선택 */
.emotion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.emotion-tag {
  padding: 10px 18px;
  border: 2px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  font-family: inherit;
  color: var(--text);
}
.emotion-tag.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

/* 증상 선택 버튼 */
.symptom-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.symptom-btn {
  padding: 12px 20px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
  color: var(--text);
}
.symptom-btn.selected {
  border-color: var(--warning);
  background: #fff3e0;
  color: #7a3c00;
}

/* 심각도/수면질 슬라이더 */
.severity-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.severity-labels {
  display: flex;
  justify-content: space-between;
  font-size: 22px;
}
.severity-value {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: var(--primary);
  min-height: 32px;
}
input[type="range"].severity-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right, var(--secondary) 0%, var(--warning) 50%, var(--danger) 100%);
  outline: none;
  cursor: pointer;
}
input[type="range"].severity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* 운동 종류 버튼 */
.exercise-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.exercise-btn {
  padding: 12px 20px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
  color: var(--text);
}
.exercise-btn.selected {
  border-color: var(--secondary);
  background: #e8f5e9;
  color: #1b5e20;
}

/* 인지 게임 영역 */
.cognitive-game {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid #e8edf2;
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
}
.cognitive-game .game-number {
  font-size: 48px;
  font-weight: bold;
  letter-spacing: 0.15em;
  color: var(--primary);
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cognitive-game .game-input {
  font-size: 32px;
  text-align: center;
  letter-spacing: 0.1em;
  max-width: 260px;
  margin: 0 auto;
}
.cognitive-game .game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 320px;
  margin: 0 auto;
}
.cognitive-game .game-cell {
  padding: 16px 8px;
  border: 3px solid var(--border);
  border-radius: 10px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  background: var(--white);
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.cognitive-game .game-cell:hover {
  border-color: var(--primary);
  background: rgba(19,127,236,0.06);
}
.cognitive-game .game-cell.correct {
  border-color: var(--secondary);
  background: #e8f5e9;
}
.cognitive-game .game-cell.wrong {
  border-color: var(--danger);
  background: #fdecea;
}
.game-status {
  font-size: 17px;
  font-weight: bold;
  color: var(--text);
  margin: 8px 0 14px;
  min-height: 26px;
}
.game-level-badge {
  display: inline-block;
  background: #e8f0fe;
  color: #1565c0;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 12px;
}
.game-score-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #1b5e20;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: bold;
  margin-left: 8px;
  margin-bottom: 12px;
}

/* 게임 카드 내 배지 행 */
.game-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

/* 인지 점수 바 차트 */
.score-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  padding: 4px 0;
}
.score-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.score-bar {
  width: 100%;
  background: var(--primary);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.4s ease;
  opacity: 0.75;
}
.score-bar-label {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.score-bar-val {
  font-size: 12px;
  font-weight: bold;
  color: var(--primary);
}

/* 리포트 섹션 */
.report-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.report-stat {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  text-align: center;
}
.report-stat .rs-icon { font-size: 28px; margin-bottom: 4px; }
.report-stat .rs-label { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.report-stat .rs-val { font-size: 26px; font-weight: bold; color: var(--primary); }
.report-stat .rs-unit { font-size: 13px; color: var(--text-muted); }

/* 웰니스 오늘 요약 (대시보드용) */
.wellness-today {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.wellness-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: bold;
}
.wellness-pill.done { background: #e8f5e9; color: #1b5e20; }
.wellness-pill.todo { background: #f5f5f5; color: var(--text-muted); }

/* ===== 인지 훈련 도메인 탭 ===== */
.domain-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.domain-tabs::-webkit-scrollbar { display: none; }
.domain-tab {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: bold;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.domain-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ===== 주의력 게임 (attention_tap) ===== */
.attention-word-display {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
}
.attention-tap-btn {
  width: 100%;
  max-width: 280px;
  height: 72px;
  font-size: 22px;
  font-weight: bold;
  border-radius: 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  margin: 0 auto;
  display: block;
  transition: transform 0.1s, background 0.1s;
  font-family: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.attention-tap-btn:active {
  transform: scale(0.95);
  background: var(--primary-dark);
}
.attention-tap-btn:disabled {
  background: var(--border);
  cursor: not-allowed;
}
.reaction-display {
  font-size: 18px;
  color: var(--text-muted);
  margin-top: 8px;
}
.round-counter {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ===== 시공간 격자 게임 (spatial_grid) ===== */
.spatial-grid-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 320px;
  margin: 16px auto;
}
.spatial-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 3px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
  font-size: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.spatial-cell.highlight {
  background: var(--warning);
  border-color: var(--warning);
}
.spatial-cell.selected {
  background: var(--primary);
  border-color: var(--primary);
}
.spatial-cell.correct-cell {
  background: var(--secondary);
  border-color: var(--secondary);
}
.spatial-cell.wrong-cell {
  background: var(--danger);
  border-color: var(--danger);
}
.spatial-cell:disabled,
.spatial-cell[disabled] {
  cursor: default;
}

/* ===== 집행기능 역순 게임 (executive_reverse) ===== */
.exec-number-stream {
  font-size: 64px;
  font-weight: bold;
  color: var(--primary);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.1em;
}
.exec-input-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.exec-hint {
  font-size: 16px;
  color: var(--text-muted);
  padding: 10px;
  background: #f0f4ff;
  border-radius: 8px;
  margin-bottom: 8px;
}

/* ===== 자가 평가 (cognitive_assess) ===== */
.assess-question {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}
.assess-question .q-num {
  font-size: 14px;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 6px;
}
.assess-question .q-text {
  font-size: 18px;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.5;
}
.assess-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.assess-option input[type=radio] {
  display: none;
}
.assess-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border: 3px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  transition: all 0.15s;
  background: var(--bg);
  gap: 4px;
  min-height: 64px;
}
.assess-option input[type=radio]:checked + label {
  border-color: var(--primary);
  background: rgba(26,95,168,0.08);
  color: var(--primary);
}
.assess-result-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 20px;
}
.assess-result-card .risk-icon {
  font-size: 56px;
  margin-bottom: 12px;
}
.assess-result-card .risk-score {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 8px;
}
.assess-result-card .risk-level-normal  { color: var(--secondary); }
.assess-result-card .risk-level-caution { color: var(--warning); }
.assess-result-card .risk-level-high    { color: var(--danger); }
.assess-result-card .risk-msg {
  font-size: 18px;
  line-height: 1.6;
  margin-top: 12px;
  color: var(--text);
}
.assess-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}
.assess-history-row:last-child { border-bottom: none; }
.risk-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}
.risk-badge-normal  { background: #e8f5e9; color: #1b5e20; }
.risk-badge-caution { background: #fff3e0; color: #e65100; }
.risk-badge-high    { background: #fdecea; color: #b71c1c; }

/* ----- 유틸리티 ----- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-success{ color: var(--secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.gap-1  { gap: 8px; }
.gap-2  { gap: 16px; }
.flex-1 { flex: 1; }
.fw-bold { font-weight: bold; }

/* ===== 버튼식 선택 (인지 검사) ===== */
.choice-btn {
  min-height: 68px;
  border: 2.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  font-size: 19px;
  font-weight: bold;
  cursor: pointer;
  padding: 10px 6px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  font-family: inherit;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  line-height: 1.3;
}
.choice-btn:active { transform: scale(0.97); }
.choice-btn.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.choice-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.choice-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.choice-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.choice-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 20px;
}
.choice-section { margin-bottom: 6px; }
.choice-label {
  font-size: 17px;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 10px;
}
.mem-word-display {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.mem-word-chip {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary);
  background: #e8f0fb;
  border-radius: 10px;
  padding: 14px 22px;
}
.cog-countdown {
  font-size: 48px;
  font-weight: bold;
  color: var(--warning);
  text-align: center;
  margin: 12px 0;
  min-height: 64px;
}

/* ===== 숫자 패드 (계산 문제 직접 입력) ===== */
.numpad-wrap {
  max-width: 300px;
  margin: 12px auto 0;
}
.numpad-display {
  background: #f0f4ff;
  border: 2.5px solid var(--primary);
  border-radius: 12px;
  font-size: 42px;
  font-weight: bold;
  text-align: center;
  padding: 14px 12px;
  color: var(--primary);
  min-height: 76px;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.numpad-display.empty {
  font-size: 16px;
  font-weight: normal;
  color: var(--text-muted);
}
.numpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.numpad-btn {
  height: 72px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: background 0.1s, transform 0.08s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
}
.numpad-btn:active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(0.94);
}
.numpad-btn.del-btn {
  font-size: 20px;
  background: #fff0f0;
  border-color: #ffb3b3;
  color: #c0392b;
}
.numpad-btn.clear-btn {
  background: #f5f5f5;
  color: var(--text-muted);
  font-size: 16px;
}
.numpad-confirm-btn {
  width: 100%;
  height: 68px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  margin-top: 2px;
  transition: opacity 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.numpad-confirm-btn:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}
.calc-prev-item {
  font-size: 15px;
  color: var(--secondary);
  background: #e8f8ee;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.calc-sub-q-label {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  color: var(--text);
  margin: 8px 0 4px;
}
.calc-step-badge {
  display: inline-block;
  font-size: 13px;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  padding: 3px 11px;
  margin-right: 8px;
  font-weight: normal;
  vertical-align: middle;
}

/* ===== 검사 기록 탭 ===== */
.cog-hist-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--primary);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}
.cog-hist-tab {
  padding: 14px 8px;
  font-size: 15px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: #fff;
  color: var(--primary);
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}
.cog-hist-tab.active {
  background: var(--primary);
  color: #fff;
}
.cog-hist-tab-cnt {
  font-size: 12px;
  background: rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 2px 7px;
  font-weight: normal;
}
.cog-hist-tab.active .cog-hist-tab-cnt {
  background: rgba(255,255,255,0.3);
}

/* ===== 검사 기록 통계 ===== */
.cog-hist-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.cog-hist-stat {
  background: #fff;
  border-radius: 12px;
  padding: 14px 6px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.cog-hist-stat-val {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary);
  line-height: 1.2;
}
.cog-hist-stat-val span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: normal;
}
.cog-hist-stat-lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== 점수 추이 차트 ===== */
.cog-hist-chart {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-top: 8px;
}
.cog-hist-chart-ymax,
.cog-hist-chart-ymin {
  font-size: 12px;
  color: var(--text-muted);
  writing-mode: horizontal-tb;
  display: flex;
  align-items: flex-start;
  width: 20px;
  flex-shrink: 0;
}
.cog-hist-chart-ymin { align-items: flex-end; }
.cog-hist-chart-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.cog-hist-chart-col {
  flex: 1;
  min-width: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.cog-hist-chart-bar-wrap {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: flex-end;
}
.cog-hist-chart-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.3s;
}
.cog-hist-chart-score {
  font-size: 12px;
  font-weight: bold;
  color: var(--text);
}
.cog-hist-chart-date {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ===== 검사 기록 히스토리 ===== */
.cog-history-list { display:flex; flex-direction:column; gap:6px; }
.cog-history-row {
  display: grid;
  grid-template-columns: 38px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 15px;
  border: 2px solid transparent;
}
.cog-history-row.cog-history-current {
  background: #e8f0fb;
  border-color: var(--primary);
}
.cog-history-nth {
  font-size: 13px;
  font-weight: bold;
  color: var(--text-muted);
  text-align: center;
}
.cog-history-current .cog-history-nth { color: var(--primary); }
.cog-history-date { font-size: 14px; color: var(--text-muted); }
.cog-history-current .cog-history-date { color: var(--text); font-weight: bold; }
.cog-history-risk { font-size: 18px; text-align: center; }
.cog-history-score {
  font-size: 17px;
  font-weight: bold;
  color: var(--text);
  text-align: right;
  min-width: 52px;
}
.cog-history-score span { font-size: 13px; color: var(--text-muted); font-weight: normal; }
.cog-history-current .cog-history-score { color: var(--primary); }
.cog-trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 20px;
}
.cog-trend-up   { color: var(--secondary); background: #e8f8ee; }
.cog-trend-down { color: var(--danger);    background: #fdecea; }
.cog-trend-same { color: var(--text-muted); background: #f0f0f0; }

/* =============================================
   전문 인지 검사 (Tier1 선별 / Tier2 전문)
   ============================================= */

/* 검사 진행바 */
.cog-progress-wrap {
  background: var(--border);
  border-radius: 8px;
  height: 10px;
  margin: 12px 0 20px;
  overflow: hidden;
}
.cog-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 8px;
  transition: width 0.4s ease;
}
.cog-step-label {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* 검사 단계 카드 */
.cog-step {
  display: none;
}
.cog-step.active {
  display: block;
}
.cog-step-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  margin-bottom: 16px;
}
.cog-step-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 6px;
}
.cog-step-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.cog-words-highlight {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary);
  background: #e8f0fb;
  border-radius: 10px;
  padding: 14px 20px;
  text-align: center;
  letter-spacing: 0.15em;
  margin: 12px 0;
}
.cog-input-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.cog-input-row input,
.cog-input-row select,
.cog-input-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 18px;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s;
}
.cog-input-row input:focus,
.cog-input-row select:focus,
.cog-input-row textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.cog-input-label {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.cog-self-check-btn {
  width: 100%;
  min-height: 64px;
  font-size: 19px;
  font-weight: bold;
  border: 3px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cog-self-check-btn.checked {
  border-color: var(--secondary);
  background: #e8f5e9;
  color: #1b5e20;
}
.cog-self-check-btn.failed {
  border-color: var(--danger);
  background: #fdecea;
  color: #b71c1c;
}
.cog-nav-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.cog-nav-row .btn {
  flex: 1;
  min-height: 56px;
  font-size: 18px;
}

/* 결과 카드 */
.cog-result-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 20px;
}
.cog-result-icon { font-size: 60px; margin-bottom: 12px; }
.cog-result-score {
  font-size: 44px;
  font-weight: bold;
  color: var(--primary);
  line-height: 1.1;
}
.cog-result-score span { font-size: 22px; color: var(--text-muted); }
.cog-result-level {
  font-size: 26px;
  font-weight: bold;
  margin: 10px 0 6px;
}
.cog-result-msg {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}
.cog-level-normal   { color: var(--secondary); }
.cog-level-mild     { color: var(--warning); }
.cog-level-moderate { color: #e65100; }
.cog-level-severe   { color: var(--danger); }

/* 도메인별 점수 바 */
.cog-domain-score {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cog-domain-label {
  font-size: 15px;
  color: var(--text-muted);
  width: 90px;
  flex-shrink: 0;
  text-align: right;
}
.cog-domain-bar-wrap {
  flex: 1;
  background: #e0e0e0;
  border-radius: 6px;
  height: 16px;
  overflow: hidden;
}
.cog-domain-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 6px;
  transition: width 0.5s ease;
}
.cog-domain-val {
  font-size: 15px;
  font-weight: bold;
  color: var(--primary);
  width: 40px;
  flex-shrink: 0;
  text-align: left;
}

/* 3x3 패턴 격자 (시공간 구성) */
.cog-pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 200px;
  margin: 12px auto;
}
.cog-pattern-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 3px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 0;
  transition: background 0.15s, border-color 0.15s;
}
.cog-pattern-cell.filled {
  background: var(--primary);
  border-color: var(--primary);
}
.cog-pattern-ref {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 120px;
  margin: 0 auto 8px;
  pointer-events: none;
}
.cog-pattern-ref-cell {
  aspect-ratio: 1;
  border-radius: 5px;
  border: 2px solid var(--border);
  background: var(--white);
}
.cog-pattern-ref-cell.on {
  background: var(--warning);
  border-color: var(--warning);
}

/* 검사 배너 카드 */
.cog-banner-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cog-banner-info { flex: 1; min-width: 0; }
.cog-banner-title {
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 2px;
}
.cog-banner-sub {
  font-size: 14px;
  color: var(--text-muted);
}
.cog-banner-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  background: #e8f0fb;
  color: var(--primary);
  margin-bottom: 4px;
}

/* risk badge for pro results */
.risk-badge-normal   { background: #e8f5e9; color: #1b5e20; }
.risk-badge-mild     { background: #fff3e0; color: #e65100; }
.risk-badge-moderate { background: #fbe9e7; color: #bf360c; }
.risk-badge-severe   { background: #fdecea; color: #b71c1c; }

/* =============================================
   PC 2-column 레이아웃
   ============================================= */

/* 모바일/태블릿: 우측 패널 숨김 */
.sh-page-right { display: none; }

@media (min-width: 768px) {
  /* 2-column flex 레이아웃 */
  .sh-page-layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
  }
  /* 콘텐츠 영역: 가용 폭 전체 사용 */
  .sh-page-content {
    flex: 1;
    min-width: 0;
    max-width: none;
    margin: 0;
  }

  /* 페이지랩 넓이 해제 */
  .page-wrap {
    max-width: 100%;
    padding: 0;
  }

  /* 그리드 확장 */
  .health-row            { grid-template-columns: repeat(4, 1fr); }
  .wellness-grid         { grid-template-columns: repeat(4, 1fr); }
  .report-stat-grid      { grid-template-columns: repeat(4, 1fr); }

  /* 카드 패딩 여유 */
  .card { padding: 24px 28px; }

  /* 리스트 아이템 호버 */
  .list-item:hover {
    background: #f8fafc;
  }
}

/* PC(1100px+): 우측 패널 표시 */
@media (min-width: 1100px) {
  .sh-page-right {
    display: block;
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 88px; /* 헤더 64px + 여백 24px */
  }
  /* 우측 패널 카드 스타일 */
  .sh-rp-card {
    background: white;
    border-radius: 16px;
    border: 1.5px solid #e8eaed;
    padding: 18px;
    margin-bottom: 16px;
  }
  .sh-rp-title {
    font-size: 13px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
  }
  .sh-rp-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.12s;
    margin-bottom: 4px;
  }
  .sh-rp-link:hover {
    background: #f1f5f9;
    text-decoration: none;
  }
  .sh-rp-link .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }
}

/* =============================================
   데스크탑 / 태블릿 레이아웃 (≥ 768px)
   ============================================= */
@media (min-width: 768px) {

  /* 알림 토스트: 사이드바 오른쪽에 표시 */
  #notification-area {
    right: 24px;
    width: min(360px, calc(100vw - 260px));
  }

  /* 카드 hover lift (마우스 커서 환경) */
  .card:hover,
  .cognitive-game:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06);
  }

  /* 인지 게임: 너무 넓어지지 않도록 중앙 정렬 */
  .cognitive-game {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  /* 폼 입력 최대 너비 (너무 넓으면 입력이 불편함) */
  .cog-step-card {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  /* 결과 카드 중앙 */
  .cog-result-card {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  /* 웰니스 그리드: 좀 더 여유로운 패딩 */
  .wellness-card {
    padding: 24px 16px;
  }

  /* 버튼 hover: 데스크탑에서 살짝 어둡게 */
  .btn:hover {
    opacity: 0.85;
  }

  /* 슬롯 배지 hover */
  .cog-self-check-btn:hover:not(.checked):not(.failed) {
    border-color: var(--primary);
    background: rgba(19,127,236,0.04);
  }

  /* 도메인 탭: 마우스 커서 */
  .domain-tab {
    cursor: pointer;
  }
}

/* =============================================
   넓은 데스크탑 (≥ 1024px) — 2컬럼 카드 레이아웃
   ============================================= */
@media (min-width: 1024px) {
  /* 카드 그리드 gap 확장 */
  .wellness-grid    { gap: 18px; }
  .health-row       { gap: 18px; }
  .report-stat-grid { gap: 18px; }

  /* 폼 페이지: 좌우 여백으로 가독성 유지 */
  .sh-form-wrap {
    max-width: 720px;
    margin: 0 auto;
  }
}
