/* css/app.css — 야호트래블 행사 화면 시제품. WebApp Common GUI 「화면」 규칙(레일 60 · 패널 240 · 헤더 48 · 사다리꼴 탭 · 960px)을 따른다.
   색 값은 쓰지 않고 tokens.css 의 역할 이름과 팔레트(--spN-*)만 쓴다. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-body); font-size: calc(15px * var(--font-scale, 1)); line-height: 1.55;
  background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
button { font: inherit; color: inherit; }
svg.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rail svg.ic { width: 24px; height: 24px; }
.ic-14 { width: 14px !important; height: 14px !important; vertical-align: -2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* 스크롤바 */
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--muted); }
::-webkit-scrollbar-button { display: none; }

/* ---------- 뼈대 ---------- */
.app { display: grid; grid-template-columns: var(--rail-w) auto 1fr; height: 100vh; overflow: hidden; }
.rail {
  background: var(--sunken); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; padding: 8px 0; gap: 4px; z-index: 2;
}
.rail .logo { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--fg); color: var(--bg); margin-bottom: 8px; text-decoration: none; }
.rail-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 0; background: transparent;
  color: var(--muted); cursor: pointer; text-decoration: none; transition: background var(--t-fast) ease;
}
.rail-btn:hover { background: var(--active); color: var(--fg); }
.rail-btn.on { background: var(--fg); color: var(--bg); }
.rail .spacer { flex: 1; }

.panel {
  width: var(--panel-w); background: var(--sunken); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden; transition: width var(--t-base) ease;
}
.app.panel-closed .panel { width: 0; border-right: 0; }
.panel-head { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 16px; font-weight: 700; flex: none; white-space: nowrap; }
.panel-body { flex: 1; overflow-y: auto; padding: 4px 8px 12px; min-width: calc(var(--panel-w) - 1px); }
.panel-foot { padding: 10px 16px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); white-space: nowrap; }
.panel-sec { font-size: 12px; color: var(--muted); padding: 12px 8px 4px; font-weight: 600; }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--r-md);
  border: 0; background: transparent; color: var(--fg); text-decoration: none; cursor: pointer; font-size: 14px;
}
.nav-item:hover { background: var(--active); }
.nav-item.on { background: var(--active); font-weight: 700; }
.nav-item small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }

.main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; position: relative; z-index: 0; }
.header {
  height: var(--header-h); flex: none; display: flex; align-items: stretch; gap: 8px; padding: 0 8px;
  background: var(--sunken); border-bottom: 1px solid var(--line); position: relative; z-index: var(--z-header);
}
.header .left, .header .right { display: flex; align-items: center; gap: 4px; flex: none; }
.header .title { font-weight: 700; font-size: 15px; white-space: nowrap; margin-left: 4px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: var(--r-md); border: 0; background: transparent; color: var(--fg);
  display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: var(--active); }
.icon-btn.on { background: var(--fg); color: var(--bg); }
.tabs-wrap { flex: 1; min-width: 0; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.tabs { position: relative; display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; margin-bottom: -1px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 100%, 0 100%);
  padding: 7px 20px 6px; background: var(--active); color: var(--muted); border: 0; cursor: pointer; white-space: nowrap;
  text-decoration: none; font-size: 14px;
}
.tab:visited { color: var(--muted); }
.tab.on { background: var(--bg); color: var(--fg); padding-top: 10px; font-weight: 700; }
.content { flex: 1; overflow-y: auto; }
.content-inner { max-width: var(--content-max); margin: 0 auto; padding: 20px max(16px, 2vw) 48px; }

.backdrop { display: none; }
@media (max-width: 560px) { .header .title { display: none; } }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .rail, .panel { position: fixed; top: 0; bottom: 0; z-index: var(--z-drawer); transform: translateX(-110%); transition: transform var(--t-base) ease; }
  .rail { left: 0; width: var(--rail-w); }
  .panel { left: var(--rail-w); width: var(--panel-w) !important; border-right: 1px solid var(--line) !important; transform: translateX(calc(-100% - var(--rail-w) - 10px)); }
  .app.drawer .rail, .app.drawer .panel { transform: none; }
  .app.drawer .backdrop { display: block; position: fixed; inset: 0; background: var(--scrim); z-index: var(--z-backdrop); }
  .tabs-wrap { justify-content: flex-start; }
  .content-inner { padding-top: 14px; }
}

/* ---------- 공통 부품 ---------- */
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 28px 0 10px; }
h3 { font-size: 15px; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 16px; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.paper { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.kpi .label { font-size: 13px; color: var(--muted); }
.kpi .value { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.kpi .note { font-size: 12px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-decoration: none; color: var(--fg); font-size: 14px;
}
.btn:hover { background: var(--active); }
.btn.on, .btn.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 6px 12px; cursor: pointer; font-size: 14px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--fg); color: var(--bg); font-weight: 700; }

.badge { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--sunken); color: var(--muted); white-space: nowrap; font-weight: 600; }
.badge.p1 { background: var(--sp1-fill); color: var(--sp1-ink); border-color: transparent; }
.badge.p2 { background: var(--sp2-fill); color: var(--sp2-ink); border-color: transparent; }
.badge.p3 { background: var(--sp3-fill); color: var(--sp3-ink); border-color: transparent; }
.badge.p4 { background: var(--sp4-fill); color: var(--sp4-ink); border-color: transparent; }
.badge.p5 { background: var(--sp5-fill); color: var(--sp5-ink); border-color: transparent; }
.badge.est { border-style: dashed; background: transparent; }

/* 표 */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table.tbl { border-collapse: collapse; width: 100%; font-size: 14px; }
.tbl th, .tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: var(--sunken); font-weight: 700; font-size: 13px; white-space: nowrap; position: sticky; top: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--bg); }
.tbl tr.sum td { font-weight: 800; background: var(--sunken); border-top: 2px solid var(--fg); }
.tbl tr.cat td { background: var(--bg); font-weight: 700; font-size: 13px; color: var(--muted); }
.tbl .small { font-size: 12px; color: var(--muted); }
.down { color: var(--sp3-ink); font-weight: 700; }
.up { color: var(--alert); font-weight: 700; }

/* 막대 (예산 구성) */
.stack { display: flex; height: 18px; border-radius: var(--r-pill); overflow: hidden; border: 1px solid var(--line); }
.stack span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: 0; }

/* 알림 상자 */
.note-box { border: 1px solid var(--line); border-left: 4px solid var(--fg); border-radius: var(--r-md); padding: 10px 14px; background: var(--surface); margin: 8px 0; font-size: 14px; }
.note-box.warn { border-left-color: var(--alert); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  background: var(--fg); color: var(--bg); padding: 8px 16px; border-radius: var(--r-pill); font-size: 14px; z-index: 200;
  transition: opacity var(--t-base) ease, transform var(--t-base) ease;
}
.toast.show { opacity: 1; transform: translateX(-50%); }

/* 설정 팝오버 */
.pop {
  position: absolute; right: 8px; top: calc(var(--header-h) + 4px); width: 260px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 12px; display: none; z-index: 100;
}
.pop.open { display: block; }
.pop .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 14px; }
.pop .themes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.pop .themes button { padding: 6px 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); cursor: pointer; font-size: 12px; }
.pop .themes button.on { background: var(--fg); color: var(--bg); font-weight: 700; }
.modal-bg { position: fixed; inset: 0; background: var(--scrim); display: none; place-items: center; z-index: 150; }
.modal-bg.open { display: grid; }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; width: min(440px, 92vw); }

/* ---------- 일정 (타임라인) ---------- */
.day-head { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; }
.day-head:first-child { margin-top: 0; }
.day-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl li { display: grid; grid-template-columns: 92px 18px 1fr; gap: 8px; padding: 6px 0; align-items: start; }
.tl .time { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); padding-top: 1px; white-space: nowrap; }
.tl .pip { width: 12px; height: 12px; border-radius: 50%; margin: 4px auto 0; border: 2px solid var(--muted); background: var(--surface); position: relative; }
.tl li:not(:last-child) .pip::after { content: ""; position: absolute; left: 3px; top: 12px; width: 2px; height: 34px; background: var(--line); }
.tl .what { font-size: 14px; }
.tl .what .t { font-weight: 600; }
.tl .what .n { font-size: 12.5px; color: var(--muted); }
.tl li.kind-move .what .t { font-weight: 400; color: var(--muted); }
.tl li.now { background: var(--active); border-radius: var(--r-md); }
.tl li.past { opacity: .5; }

/* ---------- 지도 ---------- */
.map-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.map-body { position: relative; height: 550px; background: var(--bg); isolation: isolate; }
.map-body svg.map { width: 100%; height: 100%; display: block; }
.map-ctrl { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px; z-index: 500; }
.map-ctrl .icon-btn { width: 36px; height: 36px; }
.map-tip { position: absolute; left: 12px; bottom: 12px; background: var(--fg); color: var(--bg); padding: 4px 10px; border-radius: var(--r-sm); font-size: 13px; pointer-events: none; display: none; z-index: 500; }
.map-legend { position: absolute; right: 12px; bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 10px; font-size: 12px; z-index: 500; }
.map-legend div { display: flex; align-items: center; gap: 6px; }
.map-legend i { width: 18px; height: 4px; border-radius: 2px; display: inline-block; }
.map-src { position: absolute; left: 12px; top: 10px; font-size: 10px; color: var(--muted); max-width: 60%; z-index: 500; }
.map-card.full { position: fixed; inset: 0; z-index: 700; border-radius: 0; }
.main:has(.map-card.full) { z-index: 800; }
.map-card.full .map-body { height: 100vh; }
.map-land { fill: var(--surface); stroke: var(--line); stroke-width: 1.2; }
.map-sea { fill: var(--sunken); }
.map-road { fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.map-road.p { stroke: var(--line); stroke-width: .7; opacity: .8; }
.map-road.t { stroke: var(--muted); stroke-width: 1; opacity: .45; }
.map-road.m { stroke: var(--muted); stroke-width: 1.8; opacity: .6; }
.map-label { font-size: 11px; font-weight: 700; fill: var(--fg); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; pointer-events: none; }
.map-label.small { font-size: 10px; font-weight: 600; fill: var(--muted); }
.leaflet-host { position: absolute; inset: 0; }

/* =====================================================================
   v0.2 — 플랜 · 달력 · 지도 레일, 플랜 세 화면 (관리자 · TC · 고객)
   ===================================================================== */
.rail-btn { position: relative; }
.rail-lbl { display: none; }
.rail-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rail .who { font-size: 10px; color: var(--muted); text-align: center; line-height: 1.2; max-width: 56px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 960px) {
  .rail-btn { width: 52px; height: 52px; border-radius: var(--r-md); }
  .rail-lbl { display: block; position: absolute; bottom: 2px; left: 0; right: 0; font-size: 10px; text-align: center; }
  .rail-btn svg.ic { margin-top: -10px; }
}
.app.bare { grid-template-columns: 1fr; }
.header .brand { font-weight: 800; letter-spacing: .06em; font-size: 13px; margin-left: 6px; }

.inp, select.inp, textarea.inp {
  font: inherit; font-size: 14px; color: var(--fg); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 7px 10px; min-width: 0;
}
.inp:focus { outline: 2px solid var(--fg); outline-offset: -1px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.form label.full { grid-column: 1 / -1; }
.form .inp { width: 100%; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.modal.wide { width: min(720px, 94vw); max-height: 90vh; overflow-y: auto; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn.sm { padding: 4px 10px; font-size: 13px; }
.btn.danger { color: var(--alert); }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-lg); }

/* 로그인 */
.login { max-width: 380px; margin: 8vh auto 0; }
.login .card { display: grid; gap: 12px; }
.login .inp { width: 100%; font-size: 16px; padding: 10px 12px; }

/* 플랜 목록 */
.plan-row { display: grid; grid-template-columns: 6px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; text-decoration: none; color: inherit; }
.plan-row:hover { background: var(--active); }
.plan-row .bar6 { width: 6px; align-self: stretch; border-radius: 3px; }
.plan-row .t { font-weight: 700; font-size: 16px; }
.plan-row .m { font-size: 13px; color: var(--muted); }
.plan-row .dd { text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; }
.plan-row .dd b { display: block; font-size: 18px; color: var(--fg); }
.plan-list { display: grid; gap: 8px; }
.plan-list .card { padding: 0; overflow: hidden; }
.year-head { font-size: 13px; color: var(--muted); font-weight: 700; margin: 18px 0 6px; }

/* 달력 */
.cal-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-nav h1 { margin: 0 8px; min-width: 150px; text-align: center; }
.cal { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.cal-dow, .cal-week .cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow div { padding: 6px 8px; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--sunken); border-bottom: 1px solid var(--line); }
.cal-dow div:first-child, .cal-week .cells div:first-child .n { color: var(--alert); }
.cal-week { position: relative; border-bottom: 1px solid var(--line); }
.cal-week:last-child { border-bottom: 0; }
.cal-week .cells div { min-height: 96px; border-right: 1px solid var(--line); padding: 4px 6px; }
.cal-week .cells div:last-child { border-right: 0; }
.cal-week .cells .out { background: var(--bg); }
.cal-week .cells .out .n { opacity: .45; }
.cal-week .cells .n { font-size: 12px; font-weight: 700; }
.cal-week .cells .today .n { background: var(--fg); color: var(--bg) !important; border-radius: 999px; padding: 0 6px; }
.cal-bar { position: absolute; height: 22px; border-radius: 6px; font-size: 12px; font-weight: 700; padding: 2px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; text-decoration: none; border: 1px solid transparent; }
.cal-bar.cont-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cal-bar.cont-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal-bar:hover { outline: 2px solid var(--fg); }
@media (max-width: 560px) { .cal-week .cells div { min-height: 72px; padding: 2px 4px; } .cal-bar { font-size: 11px; height: 18px; padding: 1px 4px; } }

/* 일본 지도 */
.jp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.jp-head .now { flex: 1; min-width: 200px; text-align: center; }
.jp-head .now b { display: block; font-size: 17px; }
.jp-head .now span { font-size: 13px; color: var(--muted); }
.jp-wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 1100px) { .jp-wrap { grid-template-columns: 1fr; } }
.jp-map { position: relative; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; height: min(72vh, 640px); }
@media (max-width: 1100px) { .jp-map { height: 420px; } }
.jp-map svg { width: 100%; height: 100%; display: block; }
.jp-pref { fill: var(--surface); stroke: var(--line); stroke-width: .8; }
.jp-pref.on { stroke: var(--fg); stroke-width: 1.2; }
.jp-muni { stroke: var(--surface); stroke-width: .5; fill: var(--bg); }
.jp-inset { fill: none; stroke: var(--line); stroke-dasharray: 4 4; }
.jp-title { position: absolute; left: 12px; top: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }

/* 플랜 상세 */
.plan-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.subnav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; margin-bottom: 6px; position: sticky; top: -14px; z-index: 550; background: var(--bg); }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--fg); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.subnav a.on { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 700; }
.subnav a.sos { border-color: var(--alert); color: var(--alert); font-weight: 700; }
.subnav a.sos.on { background: var(--alert); color: #fff; }
.tl li { grid-template-columns: 92px 18px 1fr auto; }
.tl .tl-link { font-size: 12px; text-decoration: none; display: inline-flex; gap: 3px; align-items: center; padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--r-pill); white-space: nowrap; color: var(--fg); background: var(--surface); }
@media (max-width: 560px) { .tl li { grid-template-columns: 50px 14px 1fr auto; gap: 6px; } .tl .time { font-size: 12px; } }

/* TC */
.simbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; margin-bottom: 12px; }
.simbar .clock { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 140px; }
.simbar input[type=range] { flex: 1; min-width: 140px; accent-color: var(--fg); }
.simbar .grp { display: flex; align-items: center; gap: 6px; }
.simbar[data-mode="live"] .sim-only { display: none !important; }
.now-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; align-items: start; }
@media (max-width: 1100px) { .now-grid { grid-template-columns: 1fr; } }
.now-card .kicker { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.now-card .big { font-size: 21px; font-weight: 800; margin: 2px 0; line-height: 1.3; }
.now-card .meta { font-size: 14px; color: var(--muted); }
.bar { height: 8px; border-radius: 999px; background: var(--sunken); overflow: hidden; margin-top: 10px; }
.bar span { display: block; height: 100%; background: var(--fg); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stat { background: var(--bg); border-radius: var(--r-md); padding: 8px 10px; }
.stat .v { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12px; color: var(--muted); }
.todo { margin: 10px 0 0; padding-left: 18px; font-size: 14px; }
.now-map .map-body { height: 380px; }
.full-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 12px; align-items: start; }
.full-grid .map-body { height: calc(100vh - 230px); min-height: 400px; }
.full-grid .side { max-height: calc(100vh - 230px); overflow-y: auto; }
@media (max-width: 1100px) { .full-grid { grid-template-columns: 1fr; } .full-grid .side { max-height: none; } .full-grid .map-body { height: 380px; } }
.call { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: inherit; }
.call .ic-wrap { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--bg); flex: none; }
.call.missing .ic-wrap { background: var(--sunken); color: var(--muted); }
.call .num { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.call small { display: block; color: var(--muted); font-size: 12px; }
.call b { font-size: 14px; }
.sos-sec { margin: 16px 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.flight-card { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; text-align: center; }
.flight-card .t { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.people .tbl td { vertical-align: middle; }
.people .nm { font-weight: 700; }

/* 고객 화면 */
.cust { max-width: 640px; margin: 0 auto; font-size: 16px; }
.cust .hero { border-radius: var(--r-lg); padding: 22px 20px; margin-bottom: 14px; }
.cust .hero h1 { font-size: 24px; line-height: 1.35; margin: 6px 0; }
.cust .hero p { margin: 8px 0 0; }
.cust h2 { font-size: 18px; margin: 26px 0 10px; }
.cust .hl { display: grid; gap: 10px; }
.cust .hl .card { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.cust .days { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.cust .days .d { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cust .days .d:last-child { border-bottom: 0; }
.cust .days .d .dl { font-weight: 800; }
.cust .days .d .dl small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.cust .days .m { font-size: 13px; color: var(--muted); margin-top: 4px; }
.cust details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 16px; margin: 8px 0; }
.cust details summary { font-weight: 700; cursor: pointer; }
.cust ul { padding-left: 20px; margin: 8px 0 0; }
.cust li { margin: 4px 0; }
.preview-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 14px; border: 1px dashed var(--line); border-radius: var(--r-lg); font-size: 13px; }

/* 서류 (인쇄) */
.doc { background: #fff; color: #111; max-width: 820px; margin: 0 auto; padding: 36px 40px; border: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; }
.doc h1 { text-align: center; font-size: 24px; letter-spacing: .3em; margin: 0 0 18px; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.doc th, .doc td { border: 1px solid #999; padding: 6px 8px; text-align: left; vertical-align: top; }
.doc th { background: #f1f1f1; white-space: nowrap; }
.doc td.num, .doc th.num { text-align: right; font-variant-numeric: tabular-nums; }
.doc .meta { display: flex; justify-content: space-between; font-size: 12px; color: #444; margin-bottom: 10px; }
.doc .co { margin-top: 24px; font-size: 12.5px; text-align: right; line-height: 1.7; }
.doc .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.doc .sign div { border-top: 1px solid #333; padding-top: 6px; font-size: 12.5px; }
.doc .total { font-size: 18px; font-weight: 800; }
.doc h2 { font-size: 15px; margin: 18px 0 6px; border-bottom: 2px solid #111; padding-bottom: 4px; }
.doc .small { font-size: 11.5px; color: #555; }
.doc-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.doc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.doc-cards .card { display: grid; gap: 6px; }
@media print {
  .rail, .panel, .header, .doc-tools, .subnav, .toast, .no-print { display: none !important; }
  .app, .main, .content { display: block !important; height: auto !important; overflow: visible !important; }
  .content-inner { max-width: none; padding: 0; }
  .doc { border: 0; padding: 0; max-width: none; }
  body { background: #fff; }
}
@media (max-width: 560px) { .subnav a { padding: 6px 11px; font-size: 13px; } .subnav { gap: 4px; } }
.jp-muni { stroke: var(--line); stroke-width: .6; fill: var(--surface); }
.jp-muni.on { stroke: var(--fg); stroke-width: 1; }
.jp-map svg { overflow: hidden; }
