/* 홈(대시보드) 전용 스타일 (style.css 와 겹치지 않게 .dash- · .stage- 접두사만 사용)
   2026-11-11 정리: 지금 할 일과 곧 다가올 일정 위주 — 새 체험단 등록(주요 단추 하나) · 진행 3단계 요약 ·
   곧 방문해요 · 후기 작성 · (있을 때만) 예약을 잡아주세요. 비율 지표(예약율 · 작성율 · 취소율)는 인사이트 화면에서. */

.dash {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

/* ---------- 맨 윗줄: 화면에서 하나뿐인 주요 단추 ---------- */

.dash-toolbar {
  display: flex;
  justify-content: flex-end;
}
/* 새 체험단 등록 단추 모양은 목록과 같이 쓰도록 style.css 의 .cta-new 에 있습니다 */

/* ---------- 진행 3단계 요약: 선정 → 방문·체험 → 후기 작성 ---------- */
/* 한 줄 단계 표시. 숫자가 있는 단계만 체리색 점으로 표시합니다 (체리 = 진행 표시). 누르면 그 단계 목록으로. */

.stage-track {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
}
.stage-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.12s ease;
}
.stage-step:hover { background: var(--bg); }
.stage-step:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.stage-count {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--todo);
  font-variant-numeric: tabular-nums;
}
.stage-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  white-space: nowrap;
}
.stage-step.has-items .stage-count { color: var(--ink); }
.stage-step.has-items .stage-label { color: var(--ink); }
/* 단계 아이콘 (stages.js — 선정 달력 · 방문·체험 핀 · 후기 작성 문서). 체험단이 있는 단계만 체리색 (진행 표시) */
.stage-label svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.stage-step.has-items .stage-label svg { color: var(--cherry); }
.stage-arrow {
  display: flex;
  align-items: center;
  color: var(--todo);
  flex-shrink: 0;
}
.stage-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 단계별 묶음: 선정 · 방문·체험 · 후기 작성 ----------
   휴대폰 화면이 기본이라 넓은 화면에서도 한 줄로 쌓기만 합니다 (나란히 놓지 않음). */

/* 단계 묶음 = 카드가 아니라 '굵은 회색 띠로 나뉜 구역' (2026-11-11).
   카드 상자를 겹겹이 쌓지 않고, 묶음과 묶음 사이에 화면 폭 꽉 찬 8px 회색 띠를 둬서 한눈에 갈리게 합니다
   (휴대폰 앱에서 흔히 쓰는 구역 나누기). 묶음 안은 흰 바탕 그대로, 줄은 가는 선으로만. */
.dash-block {
  min-width: 0;
  margin: 0 calc(var(--main-pad, 14px) * -1); /* main 좌우 여백만큼 넓혀 띠가 화면 끝까지 */
  padding: 18px var(--main-pad, 14px) 8px;
  border-top: 8px solid var(--band);
}
.dash-block h3 {
  display: flex;
  align-items: center;
  gap: 7px;
}
.dash-node { display: flex; color: var(--todo); }
.dash-node svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dash-block.has-items .dash-node { color: var(--cherry); }

/* 섹션 제목은 줄(체험단명)보다 확실히 크고 굵게 — 같은 크기라 구분이 안 됐습니다 (2026-11-11) */
.dash-block h3 {
  margin: 0 0 6px;
  line-height: 24px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* 방문·체험 안의 작은 제목 (다녀오셨나요? · 방문 예정) */
.dash-sub {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.dash-sub .dash-count { font-size: 13px; }

.dash-count {
  display: inline-block;
  margin-left: 3px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.dash-count.is-urgent { color: var(--danger); }

/* 비어 있을 때 짧은 안내 한 줄 (큰 장식 카드는 만들지 않음) */
.dash-empty {
  margin: 6px 0 4px;
  font-size: 13px;
  color: var(--muted);
}

/* 처음 온 회원(체험단 0건) 안내 — style.css 의 .load-state 위에 카드 모양만 더합니다 */
.dash-first {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
}

.dash-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dash-items li + li { border-top: 1px solid var(--border); }

/* 한 줄 = 체험단명 | (표시) 날짜 D-n */
.dash-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 0;  /* 줄 높이 약 40px — 손가락으로 누르기 쉽게 */
  border: 0;
  background: transparent;
  font-family: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.dash-item:hover .dash-item-name { text-decoration: underline; }

.dash-item-name {
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-item-when {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-shrink: 0;
}

.dash-date {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.dash-dday {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dash-dday.is-urgent { color: var(--danger); }
.dash-dday.is-soon { color: var(--soon); }

/* '확정 전' 같은 작은 상태 표시 — 테두리만 (채우지 않음) */
.dash-tag {
  font-size: 11px;
  color: var(--muted);
  border: 1px dashed var(--todo);
  border-radius: 999px;
  padding: 0 6px;
  line-height: 1.6;
  white-space: nowrap;
}

/* '다녀오셨나요?' 줄 — 이름·날짜 왼쪽, 체크 단추 오른쪽 */
.dash-ask {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
}
.dash-ask-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.dash-ask-main .dash-item-name { display: block; max-width: 100%; }
.dash-ask-main:hover .dash-item-name { text-decoration: underline; }
/* 되돌리기 쉬운 확인이라 채우지 않고 테두리만 초록으로 */
.dash-ask-yes { width: 40px; height: 40px; color: var(--ok); border-color: #bcd3c1; }
.dash-ask-yes:hover { color: var(--ok); border-color: var(--ok); background: #f1f6f2; }

/* 'N건 모두 보기' — 일반 동작이라 글자 단추 */
.dash-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
  border: 0;
  background: transparent;
  padding: 6px 0;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.dash-more:hover { color: var(--ink); }
.dash-more svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- 좁은 화면 ---------- */

@media (max-width: 400px) {
  .stage-count { font-size: 20px; }
  .stage-label { font-size: 12.5px; }
}

/* ---------- 들여쓰기로 위계 나누기 (2026-11-11) ----------
   방문·체험 안의 작은 제목(다녀오셨나요? · 방문 예정) 아래 줄만 한 칸(12px) 더 들여씁니다. */
.dash-block > .dash-sub + .dash-items { margin-left: 12px; }
.dash-block .dash-items li + li { border-top: 1px solid var(--border); }
.dash-block > .dash-sub { margin-top: 12px; }
.dash-block > .dash-sub:first-of-type { margin-top: 6px; }
.dash-block > .dash-sub + .dash-items { margin-top: 4px; }

/* 띠가 곧 간격이라 묶음끼리는 붙이고, 단계 요약 아래만 띄웁니다 */
.dash > .dash-block + .dash-block { margin-top: -12px; }
.dash > .stage-track { margin-bottom: 4px; }
/* 마지막 묶음 아래도 띠로 닫아 끝이 분명하게 */
.dash > .dash-block:last-child { border-bottom: 8px solid var(--band); padding-bottom: 12px; }

/* 새 체험단 등록 — 단계 요약 카드 바로 아래, 칸 너비 꽉 차게 (2026-11-11) */
.dash-toolbar .btn.cta-new { width: 100%; justify-content: center; }

/* 묶음 제목 오른쪽 '>' — 그 단계 전체 목록으로 (2026-11-11) */
.dash-block h3 .dash-all {
  margin-left: auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.dash-block h3 .dash-all:hover { color: var(--ink); background: var(--bg); }
.dash-block h3 .dash-all svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* '더 보기 ⌄' / '접기 ⌃' */
.dash-more.is-open svg { transform: rotate(180deg); }
