/* ===========================================================
   아리 — '오늘의 여정' (클린 화이트)
   원본 journey-clean.css 이식 — 모든 규칙을 .journeypage 아래로 스코프.
   토큰은 tokens.css(:root)에서 상속. body/topbar/:root 블록 제거.
   =========================================================== */

/* ===== 여정 페이지 컨테이너 ===== */
.journeypage .jx {
  max-width: 1620px;
  margin: 0 auto;
  padding: 0 26px 40px;
}

/* 에러/스켈레톤 */
.journeypage .jx-error {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1620px;
  margin: 40px auto;
  padding: 20px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--glass-hi);
  font-size: 14px;
  color: var(--ink-2);
}
.journeypage .jx-error button {
  margin-left: auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--on-fill);
  font-weight: 600;
  font-size: 13px;
}
.journeypage .jx-skeleton {
  min-height: 460px;
  background: var(--glass);
}

/* ===== 큰 글래스 패널 ===== */
.journeypage .jx-panel {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--glass-hi);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

/* ----- 패널 헤더 (라벨 + 사람 + 액션) ----- */
.journeypage .jx-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.journeypage .jx-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.journeypage .jx-label span {
  color: var(--muted);
  font-weight: 500;
}

.journeypage .jx-stack {
  display: flex;
  align-items: flex-end;
  margin-left: 6px;
}
.journeypage .jx-stack .av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-left: -10px;
  border: 2.5px solid var(--card);
  position: relative;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.14s;
}
.journeypage .jx-stack .av:first-child {
  margin-left: 0;
}
.journeypage .jx-stack .av:hover,
.journeypage .jx-stack .av.on {
  transform: translateY(-3px);
  z-index: 6;
}
.journeypage .jx-stack .av .cnt {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  border-radius: 999px;
  padding: 0 5px;
  min-width: 17px;
  text-align: center;
  border: 2px solid var(--card);
}
.journeypage .jx-stack .av .cnt.me {
  background: var(--blue);
}
.journeypage .jx-stack .av .cnt.tm {
  background: var(--coral);
}
.journeypage .jx-stack .more {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-left: -10px;
  border: 2.5px solid var(--card);
  background: var(--card-2);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.journeypage .jx-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.journeypage .jx-act {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  background: var(--glass-2);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.12s,
    color 0.16s;
}
.journeypage .jx-act .ic {
  width: 18px;
  height: 18px;
}
.journeypage .jx-act:hover {
  transform: translateY(-1px);
  color: var(--ink);
}
.journeypage .jx-act.fill {
  background: var(--fill);
  color: var(--on-fill);
  border-color: transparent;
}

/* ===== 보드 그리드 + 커넥터 ===== */
.journeypage .jx-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.journeypage .jx-svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.journeypage .jx-line {
  stroke-width: 2;
  opacity: 0.5;
  transition:
    opacity 0.22s,
    stroke-width 0.22s;
}
.journeypage .jx-dot {
  opacity: 0.65;
  transition:
    opacity 0.22s,
    r 0.2s;
}
.journeypage .jx-link path[stroke-dasharray]:not([stroke-dasharray="none"]) {
  animation: jxdash 1.1s linear infinite;
}
@keyframes jxdash {
  to {
    stroke-dashoffset: -16;
  }
}
.journeypage .jx-link.on .jx-line {
  opacity: 1;
  stroke-width: 2.8;
}
.journeypage .jx-link.on .jx-dot {
  opacity: 1;
  r: 4.4;
}
.journeypage .jx-link.off .jx-line {
  opacity: 0.1;
}
.journeypage .jx-link.off .jx-dot {
  opacity: 0.1;
}
@media (prefers-reduced-motion: reduce) {
  .journeypage .jx-link path {
    animation: none !important;
  }
}

/* ----- 컬럼 ----- */
.journeypage .jx-col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.journeypage .jx-chead {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 4px 2px;
}
.journeypage .jx-chead .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.journeypage .jx-chead .t {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.journeypage .jx-chead .n {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.journeypage .jx-cbody {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: var(--glass-2);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  padding: 13px;
}

/* ----- 흐름 카드 ----- */
.journeypage .fcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    transform 0.16s,
    box-shadow 0.16s,
    opacity 0.2s,
    outline-color 0.16s;
}
.journeypage .fcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.journeypage .fcard-row {
  display: flex;
  align-items: center;
  gap: 11px;
}
.journeypage .fc-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--card-2);
  color: var(--ink);
  border: 1px solid var(--line);
}
.journeypage .fc-ic .ic {
  width: 17px;
  height: 17px;
}
.journeypage .fc-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.journeypage .fc-who {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border: 2px solid var(--card);
  box-shadow: var(--shadow-sm);
}
.journeypage .fc-main {
  flex: 1;
  min-width: 0;
}
.journeypage .fc-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.journeypage .fc-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.journeypage .fc-time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  flex-shrink: 0;
}
.journeypage .mini {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--card-2);
  flex-shrink: 0;
  transition: color 0.15s;
}
.journeypage .mini .ic {
  width: 15px;
  height: 15px;
}
.journeypage .mini.ok {
  color: var(--green);
  background: color-mix(in oklab, var(--green) 14%, transparent);
}
.journeypage .mini.soon {
  width: auto;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--coral);
}
.journeypage .fcard-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.journeypage .fcard-foot .tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--card-2);
  border-radius: 999px;
  padding: 3px 9px;
}

/* 체크 카드(할 일) */
.journeypage .fcard.task {
  cursor: default;
}
.journeypage .fcheck {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid var(--line-2);
  display: grid;
  place-items: center;
  color: transparent;
  transition: all 0.14s;
}
.journeypage .fcheck .ic {
  width: 13px;
  height: 13px;
}
.journeypage .fcard.task.done .fcheck {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.journeypage .fcard.task.done .fc-title {
  color: var(--faint);
  text-decoration: line-through;
}

/* 강조 / 흐림 */
.journeypage .fcard.lit,
.journeypage .tile.lit {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  outline: 1.5px solid var(--blue);
  outline-offset: 1px;
}
.journeypage .tile.hi.lit {
  outline-color: rgba(255, 255, 255, 0.5);
}
.journeypage .fcard.mute,
.journeypage .tile.mute {
  opacity: 0.4;
}

/* ----- 마무리 타일 ----- */
.journeypage .tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.journeypage .tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 13px;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition:
    transform 0.16s,
    box-shadow 0.16s,
    opacity 0.2s,
    outline-color 0.16s;
}
.journeypage .tile:hover {
  transform: translateY(-2px);
}
.journeypage .tile .tic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--card-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.journeypage .tile .tic .ic {
  width: 16px;
  height: 16px;
}
.journeypage .tile .tt {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: auto;
}
.journeypage .tile .ts {
  font-size: 11px;
  color: var(--muted);
}
.journeypage .tile.hi {
  background: var(--fill);
  border-color: transparent;
  color: var(--on-fill);
  box-shadow: var(--shadow);
}
.journeypage .tile.hi .tic {
  background: rgba(255, 255, 255, 0.12);
  color: var(--lime);
  border-color: transparent;
}
.journeypage .tile.hi .ts {
  color: color-mix(in oklab, var(--on-fill) 60%, transparent);
}

/* ----- 단계 라벨 ----- */
.journeypage .jx-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.journeypage .jx-labels .cl {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.journeypage .jx-labels .cl span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

/* ----- 흐름 힌트 ----- */
.journeypage .jx-hint {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.journeypage .jx-hint .ic {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

/* ===== 페이지 헤더 (원본 .pagehead — 셸 공용이지만 여정 본문이 직접 렌더) ===== */
.journeypage .pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
}
.journeypage .ph-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.journeypage .ph-eyebrow .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-2);
}
.journeypage .ph-eyebrow .wx {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.journeypage .ph-eyebrow .wx .ic {
  width: 14px;
  height: 14px;
  color: var(--amber);
}
.journeypage .ph-title {
  font-family: var(--font-disp);
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 6px 0 0;
}
.journeypage .ph-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
  min-width: 260px;
}
.journeypage .ph-search .ic {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.journeypage .ph-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 13.5px;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}
.journeypage .ph-search input::placeholder {
  color: var(--faint);
}

/* ===== 하단 2열 ===== */
.journeypage .jx-bottom {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.journeypage .jx-bottom .card {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--glass-hi);
  padding: 22px;
}
.journeypage .jx-phead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.journeypage .jx-phead .pt {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.journeypage .jx-phead .ps {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}
.journeypage .jx-phead .pa {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* 작업 테이블 */
.journeypage .jtable {
  width: 100%;
  border-collapse: collapse;
}
.journeypage .jtable th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.journeypage .jtable th:last-child,
.journeypage .jtable td:last-child {
  text-align: right;
}
.journeypage .jtable td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: middle;
}
.journeypage .jtable tr:last-child td {
  border-bottom: none;
}
.journeypage .jtable tbody tr {
  transition: background 0.14s;
}
.journeypage .jtable tbody tr:hover,
.journeypage .jtable tbody tr.lit {
  background: var(--card-2);
}
.journeypage .t-subj {
  display: flex;
  align-items: center;
  gap: 11px;
}
.journeypage .t-subj .star {
  color: var(--faint);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.journeypage .t-subj .star.on {
  color: var(--amber);
}
.journeypage .t-subj .nm {
  font-weight: 600;
  letter-spacing: -0.01em;
}
.journeypage .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.journeypage .chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.journeypage .chip.done {
  color: var(--green);
  background: color-mix(in oklab, var(--green) 13%, transparent);
}
.journeypage .chip.sched {
  color: var(--blue);
  background: color-mix(in oklab, var(--blue) 12%, transparent);
}
.journeypage .chip.review {
  color: var(--violet);
  background: color-mix(in oklab, var(--violet) 14%, transparent);
}
.journeypage .chip.prog {
  color: var(--ink-2);
  background: var(--card-2);
}
.journeypage .t-date {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}
.journeypage .t-user {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.journeypage .t-user .ua {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.journeypage .t-user .un {
  font-size: 12.5px;
  color: var(--ink-2);
}

/* 반원 게이지 */
.journeypage .gauges {
  display: flex;
  gap: 14px;
}
.journeypage .gauge {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.journeypage .gauge svg {
  width: 100%;
  max-width: 160px;
  display: block;
  overflow: visible;
}
.journeypage .gauge .gval {
  font-family: var(--font-disp);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.journeypage .gauge .gunit {
  font-size: 12px;
  color: var(--muted);
}
.journeypage .gauge .glabel {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-top: 12px;
}
.journeypage .gauge .gsub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.journeypage .gauge-foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--glass-2);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.4;
}
.journeypage .gauge-foot .ic {
  width: 16px;
  height: 16px;
  color: var(--blue);
  flex-shrink: 0;
}

/* 진입 애니메이션 */
.journeypage .entered .jx-panel,
.journeypage .entered .jx-bottom .card {
  animation: jx-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.journeypage .entered .jx-bottom .card:nth-child(2) {
  animation-delay: 0.06s;
}
@keyframes jx-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .journeypage .entered .jx-panel,
  .journeypage .entered .jx-bottom .card {
    animation: none;
  }
}

/* ===== 반응형 ===== */
@media (max-width: 1200px) {
  .journeypage .jx-bottom {
    grid-template-columns: 1fr;
  }
  .journeypage .jx-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .journeypage .jx-labels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .journeypage .jx {
    padding: 0 14px 30px;
  }
  .journeypage .jx-board {
    grid-template-columns: 1fr;
  }
  .journeypage .jx-svg {
    display: none;
  }
  .journeypage .jx-labels {
    display: none;
  }
  .journeypage .gauges {
    flex-direction: column;
  }
}
