/* ============================================
   SOULIGN WEAVE — Components
   ============================================ */

/* ── Card (Kinfolk Flat Paper & Hairline Aesthetic) ── */
.card {
  background: rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-divider);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.card:hover {
  border-color: var(--border-input);
}

.card--interactive {
  cursor: pointer;
}

.card--interactive:active {
  background: rgba(0, 0, 0, 0.015);
}

.card__header {
  padding: var(--space-5) var(--space-5) var(--space-3);
  border-bottom: 1px solid var(--border-divider);
}

.card__body {
  padding: var(--space-5);
}

.card__footer {
  padding: var(--space-3) var(--space-5) var(--space-5);
}

/* ── Section Header ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
  letter-spacing: -0.01em;
}

.section-link {
  font-size: var(--text-sm);
  color: var(--accent-olive);
  font-weight: 500;
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.section-link:hover {
  color: var(--accent-olive-hover);
  background: var(--bg-subtle);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 24px;
  border-radius: var(--radius-xs);
  font-family: var(--font-korean-serif);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent-olive);
  color: #FFFFFF;
  border: 1px solid var(--accent-olive);
}

.btn--primary:hover {
  background: var(--accent-olive-hover);
  border-color: var(--accent-olive-hover);
}

.btn--primary:active {
  background: #3E4434;
}

/* Editorial NEXT -> button (강조색: 딥 올리브 #5A624D, 호버 #4B5240) */
.btn--editorial-next {
  background: #5A624D;
  color: #FFFFFF !important;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 12px 36px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn--editorial-next:hover {
  background: #4B5240;
}

.btn--editorial-next:active {
  background: #3E4434;
}

/* 모바일에서는 버튼이 화면 가로폭 전체로 늘어남 */
@media (max-width: 600px) {
  .btn--editorial-next {
    width: 100%;
  }
}

.btn--secondary {
  background: transparent;
  color: var(--text-body);
  border: 1px solid var(--border-divider);
}

.btn--secondary:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--border-input);
}

.btn--ghost {
  background: transparent;
  color: var(--text-body);
  border: 1px solid var(--border-divider);
}

.btn--ghost:hover {
  background: rgba(0, 0, 0, 0.03);
}

.btn--danger {
  background: var(--error);
  color: white;
}

.btn--sm {
  padding: 6px 14px;
  font-size: var(--text-sm);
}

.btn--lg {
  padding: 13px 30px;
  font-size: var(--text-md);
  letter-spacing: 0.06em;
}

.btn--full {
  width: 100%;
}

/* ── Input & Textarea (테두리: #C5C2BA, 플레이스홀더: #8A877E) ── */
.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.input-label {
  font-family: var(--font-korean-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-headline);
}

.input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--font-korean-serif);
  font-size: 14px;
  color: var(--text-body);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.input:focus {
  border-color: var(--accent-olive);
  background: #FFFFFF;
}

.input::placeholder {
  color: var(--text-placeholder); /* #8A877E */
  font-style: normal;
}

.textarea {
  resize: vertical;
  min-height: 105px;
  line-height: var(--leading-normal);
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--font-korean-serif);
  font-size: 14px;
  color: var(--text-body);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.textarea:focus {
  border-color: var(--accent-olive);
  background: #FFFFFF;
}

.textarea::placeholder {
  color: var(--text-placeholder); /* #8A877E */
}

/* ── Editorial Brand Banner (좌측 헤드라인 & 슬로건) ── */
.editorial-brand-banner {
  border-left: 1.5px solid var(--border-input);
  padding-left: var(--space-4);
  margin: var(--space-6) 0;
}

.editorial-brand-banner__label {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.editorial-brand-banner__title {
  font-family: var(--font-korean-serif);
  font-size: var(--text-korean-head); /* clamp(20px, 2.08vw, 30px) */
  font-weight: 400;
  color: var(--text-headline); /* #302B22 */
  line-height: 1.45;
  margin-bottom: var(--space-3);
}

.editorial-brand-banner__divider {
  width: 24px;
  height: 1px;
  background: var(--border-divider);
  margin-bottom: var(--space-3);
}

.editorial-brand-banner__slogan {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-quote); /* 14px */
  color: var(--text-secondary); /* #67645D */
  line-height: 1.55;
  letter-spacing: 0.02em;
}

/* 모바일에서는 좌측 인용구/배너 숨김 */
@media (max-width: 768px) {
  .editorial-brand-banner {
    display: none;
  }
}

.journey-editorial-wrap {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--space-4) 0 var(--space-10);
}

/* 작은 머리말: Cormorant Garamond 600, 대문자, 11px / 0.2em */
.journey-kicker {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-2);
  font-weight: 600;
}

/* YOUR SOULIGN JOURNEY: Cormorant Garamond 500, 대문자, 34px / 0.08em */
.journey-headline {
  font-family: var(--font-serif);
  font-size: var(--text-journey-title); /* clamp(22px, 2.36vw, 34px) */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-headline); /* #302B22 */
  text-align: center;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: var(--space-2);
}

.journey-subheadline {
  font-family: var(--font-korean-serif);
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 400;
  margin-bottom: var(--space-5);
}

/* 구분선: #D9D5CA */
.journey-divider {
  width: 36px;
  height: 1px;
  background: var(--border-divider);
  margin: 0 auto var(--space-8);
}

.journey-question {
  margin-bottom: var(--space-8);
}

/* 질문 (01. …): Noto Serif KR 500, 16px */
.journey-question__title {
  font-family: var(--font-korean-serif);
  font-size: var(--text-question); /* clamp(15px, 1.1vw, 16px) */
  font-weight: 500;
  color: var(--text-body); /* #4A4842 */
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.journey-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 2px;
}

/* 선택지·보조 문구: Noto Serif KR 400, 14px, #67645D */
.journey-option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-korean-serif);
  font-size: var(--text-option); /* 14px */
  font-weight: 400;
  color: var(--text-secondary); /* #67645D */
  user-select: none;
}

.journey-option-item:hover {
  color: var(--text-headline);
}

/* 체크박스: 테두리 #C5C2BA */
.journey-checkbox {
  width: 15px;
  height: 15px;
  border: 1px solid var(--border-input);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.journey-checkbox.checked,
.journey-option-item input[type="checkbox"]:checked + .journey-checkbox {
  background: var(--accent-olive);
  border-color: var(--accent-olive);
}

.journey-checkbox.checked::after,
.journey-option-item input[type="checkbox"]:checked + .journey-checkbox::after {
  content: '';
  width: 3.5px;
  height: 7px;
  border: solid white;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.journey-textarea {
  width: 100%;
  min-height: 95px;
  padding: 12px 14px;
  border: 1px solid var(--border-input); /* #C5C2BA */
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--font-korean-serif);
  font-size: var(--text-option); /* 14px */
  color: var(--text-body);
  line-height: var(--leading-normal);
  resize: vertical;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.journey-textarea:focus {
  background: #FFFFFF;
  border-color: var(--accent-olive);
}

.journey-textarea::placeholder {
  color: var(--text-placeholder); /* #8A877E */
}


/* ── Tags / Chips ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  cursor: default;
}

.tag--blue {
  background: var(--bg-subtle);
  color: var(--text-headline);
  border: 1px solid var(--border-divider);
}

.tag--joy {
  background: rgba(232,168,56,0.12);
  color: #8A6020;
  border: 1px solid rgba(232,168,56,0.3);
}

.tag--calm {
  background: rgba(154, 163, 135, 0.18);
  color: #4A5440;
  border: 1px solid rgba(154, 163, 135, 0.35);
}

.tag--growth {
  background: rgba(45,122,79,0.1);
  color: var(--success);
  border: 1px solid rgba(45,122,79,0.25);
}

.tag--struggle {
  background: rgba(139,90,43,0.1);
  color: var(--emotion-struggle);
  border: 1px solid rgba(139,90,43,0.25);
}

.tag--insight {
  background: rgba(123,94,167,0.1);
  color: var(--emotion-insight);
  border: 1px solid rgba(123,94,167,0.25);
}

/* ── Emotion Selector ── */
.emotion-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
}

.emotion-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--offwhite-3);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.emotion-btn:hover {
  border-color: var(--accent-olive);
  background: var(--bg-subtle);
}

.emotion-btn.selected {
  border-color: var(--accent-olive);
  background: rgba(90, 98, 77, 0.08);
  box-shadow: 0 0 0 1px var(--accent-olive);
}

.emotion-btn__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.emotion-btn__label {
  font-size: 10px;
  color: var(--gray-500);
  font-weight: var(--weight-medium);
  text-align: center;
}

/* ── Progress / Score Bar ── */
.score-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.score-bar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.score-bar__label {
  font-size: var(--text-sm);
  color: var(--gray-700);
  font-weight: var(--weight-medium);
}

.score-bar__value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-headline);
}

.score-bar__track {
  height: 6px;
  background: var(--border-divider);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #5A624D, #9AA387);
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Avatar / User Card ── */
.user-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.user-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text-headline);
  flex-shrink: 0;
  border: 1px solid var(--border-divider);
}

.user-card__info {
  flex: 1;
  min-width: 0;
}

.user-card__name {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-card__sub {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-top: 2px;
}

/* ── Status Indicator ── */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.status-dot--pending { background: var(--warning); }
.status-dot--done    { background: var(--success); }
.status-dot--error   { background: var(--error); }
.status-dot--active  { background: var(--accent-olive); }

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--offwhite-2);
  margin: var(--space-4) 0;
}

/* ── Loading Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--offwhite-2) 25%, var(--offwhite-1) 50%, var(--offwhite-2) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Pipeline Status ── */
.pipeline-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px var(--space-2);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pipeline-badge--pending {
  background: rgba(184,115,51,0.12);
  color: var(--warning);
  border: 1px solid rgba(184,115,51,0.25);
}

.pipeline-badge--processing {
  background: rgba(90, 98, 77, 0.12);
  color: var(--accent-olive);
  border: 1px solid rgba(90, 98, 77, 0.3);
  animation: pulse-badge 1.5s infinite;
}

.pipeline-badge--done {
  background: rgba(45,122,79,0.1);
  color: var(--success);
  border: 1px solid rgba(45,122,79,0.25);
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* ── Calling Score Ring ── */
.score-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.score-ring__svg {
  transform: rotate(-90deg);
}

.score-ring__track {
  fill: none;
  stroke: var(--offwhite-2);
  stroke-width: 6;
}

.score-ring__fill {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-ring__text {
  position: absolute;
  text-align: center;
}

.score-ring__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-headline);
  line-height: 1;
  display: block;
}

.score-ring__label {
  font-size: var(--text-xs);
  color: var(--gray-500);
  font-weight: var(--weight-medium);
  display: block;
  margin-top: 2px;
}

/* ── Notification Item ── */
.notif-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--offwhite-2);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.notif-item:hover {
  background: var(--bg-subtle);
}

.notif-item__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-olive);
}

.notif-item__content {
  flex: 1;
}

.notif-item__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
}

.notif-item__desc {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-top: 2px;
  line-height: var(--leading-normal);
}

.notif-item__time {
  font-size: var(--text-xs);
  color: var(--gray-300);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Match Card ── */
.match-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--offwhite-2);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.match-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.match-card__score {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.match-score-bar {
  flex: 1;
  height: 4px;
  background: var(--offwhite-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.match-score-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #5A624D, #9AA387);
  border-radius: var(--radius-full);
}

.match-score-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-olive);
  white-space: nowrap;
}

/* ── Reflection Card ── */
.reflection-card {
  background: linear-gradient(145deg, #2D3B2F 0%, #394B3C 50%, #465A49 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  color: var(--offwhite-0);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reflection-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(163, 140, 109, 0.15) 0%, transparent 70%);
}

.reflection-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -20px;
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
}

.reflection-card__label {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-amber);
  margin-bottom: var(--space-2);
}

.reflection-card__title {
  font-family: var(--font-korean-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: var(--leading-tight);
  color: #FFFFFF;
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.reflection-card__body {
  font-family: var(--font-korean-serif), var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  z-index: 1;
}

.reflection-card__footer {
  margin-top: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-3);
}

.reflection-card__date {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
}

.reflection-card__btn {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-xs);
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(6px);
}

.reflection-card__btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ── KPI Grid ── */
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.kpi-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--offwhite-2);
  box-shadow: var(--shadow-xs);
}

.kpi-item__label {
  font-size: var(--text-xs);
  color: var(--gray-500);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-2);
}

.kpi-item__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-headline);
  line-height: 1;
}

.kpi-item__delta {
  font-size: var(--text-xs);
  margin-top: var(--space-1);
  font-weight: var(--weight-medium);
}

.kpi-item__delta--up   { color: var(--success); }
.kpi-item__delta--down { color: var(--error); }
.kpi-item__delta--flat { color: var(--gray-400); }

/* ── Journal List Item ── */
.journal-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--offwhite-2);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.journal-item:hover {
  border-color: var(--border-input);
  box-shadow: var(--shadow-sm);
}

.journal-item__date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
}

.journal-item__day {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-headline);
  line-height: 1;
}

.journal-item__month {
  font-size: var(--text-xs);
  color: var(--gray-400);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
}

.journal-item__divider {
  width: 1px;
  background: var(--offwhite-2);
  align-self: stretch;
}

.journal-item__content {
  flex: 1;
  min-width: 0;
}

.journal-item__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.journal-item__preview {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: var(--leading-normal);
}

.journal-item__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

/* ── Calling Score Detail ── */
.calling-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--offwhite-2);
}

.calling-row:last-child {
  border-bottom: none;
}

.calling-row__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--accent-olive);
}

.calling-row__info {
  flex: 1;
  min-width: 0;
}

.calling-row__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--gray-900);
}

.calling-row__bar {
  height: 4px;
  background: var(--offwhite-2);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 4px;
}

.calling-row__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #5A624D, #9AA387);
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.calling-row__score {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-headline);
  min-width: 36px;
  text-align: right;
}

/* ── Scroll Snap Carousel ── */
.carousel {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-2);
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar { display: none; }

.carousel__item {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ── Page Transition ── */
.screen {
  animation: screenIn var(--transition-slow) both;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Floating Action Hint ── */
.fab-hint {
  position: absolute;
  bottom: calc(var(--bottom-nav-height) + var(--space-4));
  right: var(--space-4);
  background: var(--accent-olive);
  color: white;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  animation: fadeInUp 0.4s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Modal / Sheet ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33, 33, 33, 0.45);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: overlayIn 0.25s ease;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.bottom-sheet {
  background: var(--offwhite-0);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-6) var(--space-5);
  width: 100%;
  max-width: var(--screen-max-width);
  max-height: 85dvh;
  overflow-y: auto;
  animation: sheetIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes sheetIn {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--offwhite-3);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-5);
}

/* ── Empty State ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-8);
  text-align: center;
  gap: var(--space-3);
}

.empty-state__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-olive);
  margin-bottom: var(--space-2);
}

.empty-state__title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
}

.empty-state__desc {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: var(--leading-loose);
}
