/* ===========================================================
   아리 — '오늘의 여정' (클린 화이트)  ·  dash.css 위에 로드
   하루를 4단계 흐름으로 보여주고 작업·사람·미팅을 베지어로 연결.
   토큰은 모두 dash.css(:root)에서 상속 — 같은 글래스/잉크/라운드 언어.
   =========================================================== */

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

/* ===== 큰 글래스 패널 ===== */
.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;
}

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

.jx-stack { display: flex; align-items: flex-end; margin-left: 6px; }
.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;
}
.jx-stack .av:first-child { margin-left: 0; }
.jx-stack .av:hover, .jx-stack .av.on { transform: translateY(-3px); z-index: 6; }
.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);
}
.jx-stack .av .cnt.me { background: var(--blue); }
.jx-stack .av .cnt.tm { background: var(--coral); }
.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);
}

.jx-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.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;
}
.jx-act .ic { width: 18px; height: 18px; }
.jx-act:hover { transform: translateY(-1px); color: var(--ink); }
.jx-act.fill { background: var(--fill); color: var(--on-fill); border-color: transparent; }

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

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

/* ----- 흐름 카드 ----- */
.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;
}
.fcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.fcard-row { display: flex; align-items: center; gap: 11px; }
.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);
}
.fc-ic .ic { width: 17px; height: 17px; }
.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;
}
.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);
}
.fc-main { flex: 1; min-width: 0; }
.fc-title { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.fc-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.fc-time { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink-2); flex-shrink: 0; }
.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;
}
.mini .ic { width: 15px; height: 15px; }
.mini.ok { color: var(--green); background: color-mix(in oklab, var(--green) 14%, transparent); }
.mini.soon {
  width: auto; padding: 0 9px; font-size: 11px; font-weight: 700;
  color: #fff; background: var(--coral);
}
.fcard-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.fcard-foot .tag {
  font-size: 11px; font-weight: 600; color: var(--ink-2);
  background: var(--card-2); border-radius: 999px; padding: 3px 9px;
}

/* 체크 카드(할 일) */
.fcard.task { cursor: default; }
.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;
}
.fcheck .ic { width: 13px; height: 13px; }
.fcard.task.done .fcheck { background: var(--green); border-color: var(--green); color: #fff; }
.fcard.task.done .fc-title { color: var(--faint); text-decoration: line-through; }

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

/* ----- 마무리 타일 ----- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.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;
}
.tile:hover { transform: translateY(-2px); }
.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); }
.tile .tic .ic { width: 16px; height: 16px; }
.tile .tt { font-size: 12.5px; font-weight: 600; line-height: 1.3; margin-top: auto; }
.tile .ts { font-size: 11px; color: var(--muted); }
.tile.hi { background: var(--fill); border-color: transparent; color: var(--on-fill); box-shadow: var(--shadow); }
.tile.hi .tic { background: rgba(255,255,255,0.12); color: var(--lime); border-color: transparent; }
.tile.hi .ts { color: color-mix(in oklab, var(--on-fill) 60%, transparent); }

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

/* ----- 흐름 힌트 ----- */
.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; }
.jx-hint .ic { width: 15px; height: 15px; color: var(--blue); }

/* ===== 하단 2열 ===== */
.jx-bottom { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-top: 18px; }
.jx-phead { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.jx-phead .pt { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.jx-phead .ps { font-size: 12px; color: var(--muted); margin-top: 1px; }
.jx-phead .pa { margin-left: auto; display: flex; gap: 8px; }

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

/* 반원 게이지 */
.gauges { display: flex; gap: 14px; }
.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;
}
.gauge svg { width: 100%; max-width: 160px; display: block; overflow: visible; }
.gauge .gval { font-family: var(--font-disp); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.gauge .gunit { font-size: 12px; color: var(--muted); }
.gauge .glabel { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 12px; }
.gauge .gsub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.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; }
.gauge-foot .ic { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }

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

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