/* ===========================================================
   아리 — 여행·출장 도우미 (dash.css 토큰 위에 얹는 페이지 전용)
   =========================================================== */

/* ---------- 토글 스위치 ---------- */
.sw {
  width: 42px; height: 24px; border-radius: 999px;
  background: var(--card-3);
  border: 1px solid var(--line-2);
  position: relative; flex-shrink: 0;
  padding: 0;
  transition: background 0.18s, border-color 0.18s;
}
.sw::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s;
}
.sw.on { background: var(--green); border-color: var(--green); }
.sw.on::after { transform: translateX(18px); }

/* ---------- 히어로: 출장 개요 ---------- */
.tp-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.tp-title { font-family: var(--font-disp); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.tp-dates { font-size: 12.5px; color: var(--muted); }
.tp-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; }
.tp-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  background: var(--glass-2); border: 1px solid var(--glass-brd);
  padding: 6px 11px; border-radius: 999px;
}
.tp-tag .ic { width: 13px; height: 13px; color: var(--muted); }
.tp-tag.wx .ic { color: var(--amber); }

.tp-route { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.tp-leg {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--glass-2); border: 1px solid var(--glass-brd);
}
.tp-mode {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--blue);
  padding: 4px 10px; border-radius: 999px; flex-shrink: 0;
  white-space: nowrap;
}
.tp-mode .ic { width: 13px; height: 13px; }
.tp-st { display: flex; flex-direction: column; flex-shrink: 0; }
.tp-st b { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.tp-st span { font-size: 11px; color: var(--muted); font-family: var(--font-mono); margin-top: 1px; }
.tp-st.to { text-align: right; }
.tp-line { flex: 1; min-width: 24px; border-top: 2px dashed var(--line-2); position: relative; }
.tp-seat { font-size: 11px; color: var(--muted); flex-shrink: 0; text-align: right; line-height: 1.45; }
.tp-seat b { display: block; font-weight: 600; color: var(--ink-2); }
.tp-stay {
  display: flex; gap: 11px; align-items: center;
  margin-top: 9px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--glass-2); border: 1px solid var(--glass-brd);
}
.tp-stay .st-ic {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--violet) 14%, transparent);
  color: var(--violet);
}
.tp-stay .st-ic .ic { width: 16px; height: 16px; }
.tp-stay .st-body { flex: 1; min-width: 0; }
.tp-stay .st-name { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.tp-stay .st-desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tp-stay .st-conf {
  font-size: 10.5px; font-weight: 700; color: var(--green);
  background: color-mix(in oklab, var(--green) 13%, transparent);
  padding: 3px 9px; border-radius: 999px; flex-shrink: 0;
}

/* ---------- 아리가 미리 해둔 일 ---------- */
.pp-list { display: flex; flex-direction: column; }
.pp-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 0; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-2); line-height: 1.45;
}
.pp-row:first-child { border-top: none; padding-top: 2px; }
.pp-row .pp-ic {
  width: 20px; height: 20px; border-radius: 7px; flex-shrink: 0;
  display: grid; place-items: center; margin-top: 1px;
  background: color-mix(in oklab, var(--green) 14%, transparent);
  color: var(--green);
}
.pp-row.doing .pp-ic {
  background: color-mix(in oklab, var(--amber) 16%, transparent);
  color: var(--amber);
}
.pp-row .pp-ic .ic { width: 12px; height: 12px; }
.pp-note {
  margin-top: auto; padding-top: 12px;
  font-size: 11.5px; color: var(--muted); line-height: 1.5;
}

/* ---------- 일정표 ---------- */
.tp-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tp-tab {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--glass-2); border: 1px solid var(--glass-brd);
  padding: 8px 14px; border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.tp-tab.on { background: var(--fill); color: var(--on-fill); border-color: var(--fill); }
.tp-ev-k {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--glass-2); border: 1px solid var(--glass-brd);
  color: var(--ink-2);
  margin-right: -4px;
}
.tp-ev-k .ic { width: 13px; height: 13px; }

/* ---------- 체크리스트 ---------- */
.tp-gp {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--muted);
  margin: 13px 0 8px;
}
.tp-gp:first-child { margin-top: 0; }
.tp-auto {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; color: var(--violet);
  background: color-mix(in oklab, var(--violet) 12%, transparent);
  padding: 1px 7px; border-radius: 999px;
  flex-shrink: 0;
}
.tp-auto .ic { width: 10px; height: 10px; }

/* ---------- 경비 ---------- */
.xp-rows { margin-top: 13px; display: flex; flex-direction: column; }
.xp-row {
  display: flex; gap: 9px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--line);
  font-size: 12.5px;
}
.xp-name { font-weight: 600; flex: 1; min-width: 0; }
.xp-amt { font-family: var(--font-mono); color: var(--ink-2); }
.xp-state {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  background: var(--card-2); color: var(--muted);
  flex-shrink: 0;
}
.xp-state.paid { color: var(--green); background: color-mix(in oklab, var(--green) 13%, transparent); }
.xp-state.hold { color: var(--amber); background: color-mix(in oklab, var(--amber) 15%, transparent); }

/* ---------- 다음 여행 · 가격 추적 ---------- */
.nx-when { font-size: 12px; color: var(--muted); margin: -8px 0 14px; }
.nx-price { font-family: var(--font-disp); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.nx-delta { font-size: 12px; color: var(--green); font-weight: 600; margin-top: 3px; }
.nx-hint { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.nx-spark { margin: 14px 0 4px; }
.nx-spark svg { width: 100%; height: 56px; display: block; overflow: visible; }
.nx-x { display: flex; justify-content: space-between; font-size: 10px; color: var(--faint); font-family: var(--font-mono); margin-top: 4px; }
.nx-watch {
  margin-top: auto; padding-top: 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--ink-2);
}
.nx-watch .ic { width: 15px; height: 15px; color: var(--coral); flex-shrink: 0; }
.nx-watch span { flex: 1; min-width: 0; line-height: 1.4; }

/* ---------- AI 플래너: 입력 안내 그리드 ---------- */
.pl-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.pl-cap {
  display: flex; gap: 11px; align-items: center;
  padding: 13px;
  border-radius: var(--radius-sm);
  background: var(--glass-2); border: 1px solid var(--glass-brd);
}
.pl-cap-ic {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--coral) 13%, transparent);
  color: var(--coral);
}
.pl-cap-ic .ic { width: 16px; height: 16px; }
.pl-cap b { font-size: 12.5px; font-weight: 700; display: block; letter-spacing: -0.01em; }
.pl-cap span { font-size: 11px; color: var(--muted); margin-top: 2px; display: block; }

/* ---------- 조사 진행 ---------- */
.pl-prog { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.pl-step {
  display: flex; gap: 12px; align-items: center;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: var(--glass-2); border: 1px solid var(--glass-brd);
  transition: opacity 0.25s, border-color 0.25s;
}
.pl-step.wait { opacity: 0.45; }
.pl-step.now { border-color: color-mix(in oklab, var(--coral) 36%, var(--glass-brd)); }
.pl-step-ic {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line);
  color: var(--ink-2);
}
.pl-step.done .pl-step-ic { background: var(--green); border-color: var(--green); color: #fff; }
.pl-step.now .pl-step-ic { color: var(--coral); }
.pl-step-ic .ic { width: 16px; height: 16px; }
.pl-step-body { flex: 1; min-width: 0; }
.pl-step-body b { font-size: 13px; font-weight: 700; display: block; letter-spacing: -0.01em; }
.pl-step-body span { font-size: 11.5px; color: var(--muted); margin-top: 2px; display: block; }
.pl-ok { font-size: 11px; font-weight: 700; color: var(--green); flex-shrink: 0; }
.pl-spin {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 2px solid var(--line-2); border-top-color: var(--coral);
  border-radius: 50%; animation: plspin 0.7s linear infinite;
}
@keyframes plspin { to { transform: rotate(360deg); } }

/* ---------- 결과: 액션 ---------- */
.pl-redo {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  background: var(--glass-2); border: 1px solid var(--glass-brd);
  padding: 7px 12px; border-radius: 999px;
  transition: background 0.14s;
}
.pl-redo:hover { background: var(--card-2); }
.pl-redo .ic { width: 13px; height: 13px; }
.pl-actions { display: flex; gap: 9px; margin-top: 18px; }
.pl-save {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; border-radius: 13px;
  background: var(--fill); color: var(--on-fill);
  font-size: 14px; font-weight: 600;
  transition: filter 0.14s;
}
.pl-save:hover { filter: brightness(1.1); }
.pl-save.done { background: var(--green); }
.pl-save .ic { width: 16px; height: 16px; }
.pl-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 13px 18px; border-radius: 13px;
  background: var(--glass-2); border: 1px solid var(--glass-brd);
  color: var(--ink-2); font-size: 13px; font-weight: 600;
  transition: background 0.14s;
}
.pl-ghost:hover { background: var(--card-2); }
.pl-ghost .ic { width: 15px; height: 15px; }
.pl-src {
  display: flex; gap: 8px; align-items: center;
  margin-top: 14px;
  font-size: 11.5px; color: var(--muted); line-height: 1.4;
}
.pl-src .ic { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- 결과: 옵션 (이동·숙소) ---------- */
.opt-sec {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--muted); margin: 6px 0 9px;
}
.opt-sec:not(:first-of-type) { margin-top: 16px; }
.opt-row {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 13px; margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: var(--glass-2); border: 1px solid var(--glass-brd);
}
.opt-row.pick {
  background: linear-gradient(100deg, color-mix(in oklab, var(--coral) 11%, transparent), transparent 70%), var(--glass-2);
  border-color: color-mix(in oklab, var(--coral) 30%, var(--glass-brd));
}
.opt-mode {
  font-size: 11px; font-weight: 700; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center; min-width: 44px;
}
.opt-mode.stay { min-width: 0; width: 32px; height: 32px; padding: 0; border-radius: 9px; color: var(--violet); }
.opt-mode.stay .ic { width: 15px; height: 15px; }
.opt-body { flex: 1; min-width: 0; }
.opt-name { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.opt-pick {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; color: #fff; background: var(--coral);
  padding: 1px 7px; border-radius: 999px;
}
.opt-pick .ic { width: 10px; height: 10px; }
.opt-desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.opt-price { text-align: right; flex-shrink: 0; }
.opt-price b { font-size: 14px; font-weight: 700; font-family: var(--font-mono); }
.opt-price span { display: block; font-size: 10.5px; color: var(--faint); margin-top: 1px; }

.ev-time.sm { padding-top: 0; }

/* ---------- 찜 · 가격 추적 ---------- */
.sv-note { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin: 0 0 12px; }
.sv-price { display: flex; align-items: baseline; gap: 10px; }
.sv-price .nx-price { margin: 0; }
.sv-delta {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 700;
}
.sv-delta .ic { width: 13px; height: 13px; }
.sv-delta.down { color: var(--green); }
.sv-delta.up { color: var(--coral); }

/* ---------- 토스트 ---------- */
.au-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 9px;
  padding: 13px 20px; border-radius: 999px;
  background: var(--fill); color: var(--on-fill);
  font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow); z-index: 80; max-width: 90vw;
  animation: toastin 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.au-toast .ic { width: 16px; height: 16px; color: var(--lime); flex-shrink: 0; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.send:disabled { opacity: 0.4; cursor: default; }

@media (max-width: 720px) {
  .pl-grid { grid-template-columns: 1fr; }
}
