/* 또렷길: 유도선 강조·경로 이탈 진동 내비게이션 시연 */

.nv {
  --bg: #0E1A22;
  --surface: #152530;
  --surface-2: #1B2F3C;
  --text: #E9F0F4;
  --muted: #9AACB8;
  --line: #27404F;
  --primary: #2F6BFF;
  --accent: #C6F432;
  --ok: #34D08A;
  --warn: #FFB020;
  --danger: #FF4A2B;
  --app-text: #12202A;
  --app-muted: #5D6B74;
  --app-line: #E1E6E9;
  --num: "Saira Semi Condensed", "Pretendard Variable", system-ui, sans-serif;

  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
.nv *, .nv *::before, .nv *::after { box-sizing: border-box; }
.nv button { font: inherit; color: inherit; cursor: pointer; }
.nv button:disabled { cursor: not-allowed; }
.nv a { color: inherit; }
.nv :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.nv-num { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.nv-eyebrow { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); }

/* 안내 띠·머리글 */
.nv-band {
  height: 28px; padding: 0 16px; display: flex; align-items: center; justify-content: center;
  background: #0A1319; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-bottom: 1px solid #1A2C37;
}
.nv-top { border-bottom: 1px solid var(--line); background: rgba(14, 26, 34, 0.96); }
.nv-top__inner { max-width: 1180px; margin: 0 auto; height: 58px; padding: 0 24px; display: flex; align-items: center; gap: 18px; }
.nv-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.nv-brand__mark { width: 32px; height: 32px; flex: none; }
.nv-brand__name { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.nv-brand__sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.nv-tabs { display: flex; gap: 4px; margin-left: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.nv-tabs__item { padding: 7px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.nv-tabs__item.is-on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px #35546A; }
.nv-top__tools { display: flex; gap: 6px; }
.nv-tool {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 11px;
  background: transparent; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--text);
}
.nv-tool svg { width: 17px; height: 17px; }
.nv-tool:hover { background: var(--surface); }
.nv-tool--map { display: none; }

.nv-main { max-width: 1180px; margin: 0 auto; padding: 22px 24px 40px; }

.nv-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; height: 46px; padding: 0 18px; border-radius: 23px;
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--accent); color: #142000;
  font-size: 14.5px; font-weight: 800; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
.nv-fab svg { width: 18px; height: 18px; }

.demo-notice { margin: 0; padding: 18px 16px 84px; text-align: center; font-size: 12px; color: var(--muted); }

/* 공고 대응표 */
.nv-dialog { border: 0; padding: 0; background: transparent; max-width: 640px; width: calc(100% - 32px); color: var(--text); }
.nv-dialog::backdrop { background: rgba(4, 10, 14, 0.66); }
.nv-dialog__body { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 18px; max-height: 84vh; overflow: auto; }
.nv-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.nv-dialog__title { margin: 0; font-size: 21px; }
.nv-icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; flex: none; }
.nv-icon-btn svg { width: 18px; height: 18px; }
.nv-mapping { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nv-mapping__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface-2); border-radius: 12px; }
.nv-mapping__need { font-weight: 700; font-size: 14.5px; }
.nv-mapping__show { font-size: 14px; color: var(--accent); text-decoration: none; font-weight: 600; }
.nv-dialog__foot { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }

/* 무대: 휴대폰 + 오른쪽 패널 */
.nv-stage {
  display: grid; grid-template-columns: 384px minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "phone sim" "phone panel"; column-gap: 36px; row-gap: 16px; align-items: start;
}
.nv-phone {
  grid-area: phone; position: sticky; top: 14px; width: 384px; height: clamp(600px, calc(100vh - 28px - 58px - 46px), 820px);
  padding: 10px 12px 14px; border-radius: 46px; background: #04080B;
  box-shadow: 0 0 0 2px #22343F, 0 30px 70px rgba(0, 0, 0, 0.5);
}
.nv-status { height: 24px; padding: 0 22px 0 26px; display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: 13px; }
.nv-status b { font-family: var(--num); font-weight: 700; font-size: 14px; }
.nv-status__icons { display: flex; gap: 6px; align-items: center; }
.nv-status__sig { width: 16px; height: 10px; background: linear-gradient(90deg, #fff 0 3px, transparent 3px 4.5px, #fff 4.5px 7.5px, transparent 7.5px 9px, #fff 9px 12px, transparent 12px 13.5px, #fff 13.5px); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.nv-status__bat { width: 24px; height: 11px; border: 1.5px solid #fff; border-radius: 3px; position: relative; }
.nv-status__bat::after { content: ""; position: absolute; inset: 1.5px 6px 1.5px 1.5px; background: #fff; border-radius: 1px; }
.nv-app {
  position: relative; height: calc(100% - 24px); border-radius: 34px; overflow: hidden; background: #EDF0E8;
  color: var(--app-text); isolation: isolate;
}
.nv-phone.is-shake { animation: nv-shake 0.11s linear infinite; }
@keyframes nv-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px) rotate(-0.4deg); } 75% { transform: translateX(3px) rotate(0.4deg); } }

/* 지도 */
.nv-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.m-land { fill: #EDF0E8; }
.m-water, .m-pond { fill: #BCD7EA; }
.m-park { fill: #CDE5BF; }
.m-field { fill: #E7DEC9; }
.m-bld { fill: #DADFD6; }
.m-case, .m-road, .m-center { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-case { stroke: #C7CED3; }
.m-case--big { stroke: #DDBF77; }
.m-road { stroke: #FFFFFF; }
.m-road--big { stroke: #FFF2C6; }
.m-center { stroke: #E2B54A; stroke-width: 1.3; stroke-dasharray: 14 12; }
.m-labels text, .m-area { font-family: "Pretendard Variable", Pretendard, sans-serif; font-weight: 650; text-anchor: middle; paint-order: stroke; stroke: rgba(255, 255, 255, 0.92); stroke-linejoin: round; }
.m-labels text { fill: #4A5862; }
.m-area { fill: #4C7A3F; font-weight: 700; }
.m-area--water { fill: #2F6487; }
.m-poi__label { font-size: 12.5px; font-weight: 700; fill: #22303A; paint-order: stroke; stroke: #fff; stroke-width: 3.4px; stroke-linejoin: round; font-family: "Pretendard Variable", Pretendard, sans-serif; }
.rt { fill: none; stroke-linecap: round; stroke-linejoin: round; display: none; }
.nv-map.has-route .rt-case, .nv-map.has-route .rt-main { display: inline; }
.nv-map.has-route.is-em .rt-outline, .nv-map.has-route.is-em .rt-flow { display: inline; }
.rt-outline { stroke: rgba(6, 18, 40, 0.3); }
.rt-case { stroke: #FFFFFF; }
.rt-flow { stroke: rgba(255, 255, 255, 0.95); }
.m-car__halo { fill: rgba(47, 107, 255, 0.18); }
.m-car__dot { fill: var(--primary); stroke: #fff; stroke-width: 3; }
.m-car__arrow { fill: var(--primary); stroke: #fff; stroke-width: 3; stroke-linejoin: round; display: none; }
.nv-app[data-state="drive"] .m-car__dot { display: none; }
.nv-app[data-state="drive"] .m-car__arrow { display: inline; }
.nv-app[data-state="drive"] .m-labels, .nv-app[data-state="drive"] .m-area, .nv-app[data-state="drive"] .m-poi { display: none; }
.nv-app[data-state="preview"] .m-poi, .nv-app[data-state="arrived"] .m-poi { opacity: 0.45; }
.nv-app[data-state="preview"] .m-poi__label, .nv-app[data-state="arrived"] .m-poi__label { display: none; }
.nv-app.is-off .nv-turn { visibility: hidden; }
.nv-app.is-off .m-car__arrow { fill: #E5332A; }
.nv-app.is-off .m-car__halo { fill: rgba(229, 51, 42, 0.22); }

/* 앱 화면 공통 */
.nv-search, .nv-preview, .nv-turn, .nv-side, .nv-speed, .nv-roadnow, .nv-eta, .nv-arrived { display: none; }
.nv-app[data-state="search"] .nv-search { display: block; }
.nv-app[data-state="preview"] .nv-preview { display: block; }
.nv-app[data-state="drive"] .nv-turn { display: grid; }
.nv-app[data-state="drive"] .nv-side { display: flex; }
.nv-app[data-state="drive"] .nv-speed, .nv-app[data-state="drive"] .nv-roadnow { display: flex; }
.nv-app[data-state="drive"] .nv-eta { display: grid; }
.nv-app[data-state="arrived"] .nv-arrived { display: block; }
.nv-app[data-state="drive"] .nv-roadnow:empty { display: none; }

.nv-round {
  width: 46px; height: 46px; border-radius: 15px; border: 0; background: #fff; color: var(--app-text);
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(15, 30, 40, 0.18); flex: none;
}
.nv-round svg { width: 21px; height: 21px; }
.nv-btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 20px; border-radius: 14px; border: 0; font-weight: 800; font-size: 16px; text-decoration: none; }
.nv-btn--go { background: var(--primary); color: #fff; }
.nv-btn--go:hover { background: #2559DD; }
.nv-btn--ghost { background: #EEF2F5; color: var(--app-text); height: 44px; font-size: 14.5px; width: 100%; }
.nv-btn--inline { margin-top: 14px; }

/* 1. 검색 */
.nv-search { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.nv-search__bar { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; pointer-events: auto; }
.nv-search__box {
  flex: 1; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; background: #fff; border-radius: 16px;
  box-shadow: 0 6px 20px rgba(15, 30, 40, 0.16); border: 2px solid transparent;
}
.nv-search__box:focus-within { border-color: var(--primary); }
.nv-search__box svg { width: 20px; height: 20px; color: var(--app-muted); flex: none; }
.nv-search__box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16.5px; color: var(--app-text); }
.nv-search__box input::placeholder { color: #8796A0; }
.nv-search__box input::-webkit-search-cancel-button { -webkit-appearance: none; }
.nv-search__panel {
  position: absolute; top: 74px; left: 12px; right: 12px; pointer-events: auto; background: #fff; border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 30, 40, 0.16); padding: 10px 6px 6px; max-height: calc(100% - 150px); overflow: auto;
}
.nv-search__cap { margin: 2px 12px 4px; font-size: 12.5px; font-weight: 700; color: var(--app-muted); }
.nv-results { list-style: none; margin: 0; padding: 0; }
.nv-results__none { padding: 10px 12px 14px; font-size: 14px; color: var(--app-muted); }
.nv-result {
  width: 100%; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; text-align: left;
  min-height: 58px; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent;
}
.nv-result:hover { background: #F2F5F7; }
.nv-result__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--pc); color: #fff; }
.nv-result__icon svg { width: 20px; height: 20px; }
.nv-result__text { display: grid; min-width: 0; }
.nv-result__text b { font-size: 15.5px; font-weight: 700; }
.nv-result__text small { font-size: 12.5px; color: var(--app-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-result__km { font-size: 15px; font-weight: 700; color: var(--app-muted); }
.nv-here {
  position: absolute; left: 12px; bottom: 14px; margin: 0; display: inline-flex; align-items: center; gap: 6px; pointer-events: auto;
  padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.95); font-size: 13px; font-weight: 600; box-shadow: 0 4px 12px rgba(15, 30, 40, 0.14);
}
.nv-here svg { width: 16px; height: 16px; color: var(--primary); }

/* 2. 경로 미리보기 */
.nv-preview { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.nv-preview__back { position: absolute; top: 12px; left: 12px; pointer-events: auto; }
.nv-preview__sheet {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: auto; background: #fff; border-radius: 24px 24px 0 0;
  padding: 18px 18px 18px; box-shadow: 0 -8px 26px rgba(15, 30, 40, 0.16);
}
.nv-preview__name { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.nv-preview__addr { margin: 2px 0 10px; font-size: 13px; color: var(--app-muted); }
.nv-preview__sum { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.nv-preview__time { font-size: 32px; font-weight: 700; color: var(--primary); line-height: 1.1; }
.nv-preview__dist { font-size: 16px; font-weight: 700; }
.nv-preview__eta { font-size: 14px; color: var(--app-muted); }
.nv-preview__eta b { font-size: 16px; color: var(--app-text); }
.nv-preview__via { margin: 8px 0 14px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--app-muted); }
.nv-preview__via svg { width: 16px; height: 16px; flex: none; color: var(--primary); }
.nv-preview__row { display: flex; gap: 10px; align-items: center; }
.nv-preview__row .nv-btn--go { flex: 1; }

.nv-switch-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--app-line);
  background: #fff; font-size: 14px; font-weight: 700; color: var(--app-text); white-space: nowrap;
}
.nv-switch-btn--bare { height: 44px; padding: 0 4px; border: 0; }
.nv-switch { position: relative; width: 42px; height: 26px; border-radius: 13px; background: #C5CDD3; display: inline-block; transition: background 0.15s; flex: none; }
.nv-switch > i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
[aria-pressed="true"] > .nv-switch { background: var(--primary); }
[aria-pressed="true"] > .nv-switch > i { transform: translateX(16px); }

/* 3. 주행 안내 */
.nv-turn {
  position: absolute; top: 10px; left: 10px; right: 10px; z-index: 4; grid-template-columns: 56px 1fr; gap: 4px 12px; align-items: center;
  padding: 12px 14px; border-radius: 20px; background: #10283A; color: #fff; box-shadow: 0 8px 22px rgba(5, 15, 25, 0.35);
}
.nv-turn__icon { width: 56px; height: 56px; color: #fff; }
.nv-turn__main { min-width: 0; }
.nv-turn__dist { margin: 0; font-size: 34px; font-weight: 700; line-height: 1.05; }
.nv-turn__road { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: #D5E3EC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-turn__next { grid-column: 1 / -1; justify-self: start; margin: 4px 0 0; padding: 3px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.12); font-size: 12.5px; font-weight: 600; }

.nv-off {
  position: absolute; top: 10px; left: 10px; right: 10px; z-index: 6; display: flex; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 20px; background: #E5332A; color: #fff; box-shadow: 0 10px 26px rgba(120, 10, 0, 0.4);
}
.nv-off[hidden] { display: none; }
.nv-off__icon { width: 44px; height: 44px; flex: none; animation: nv-wiggle 0.18s linear infinite; }
@keyframes nv-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
.nv-off__title { margin: 0; font-size: 20px; font-weight: 800; }
.nv-off__sub { margin: 2px 0 0; font-size: 13.5px; color: #FFE2DE; }
.nv-app.is-off::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 5px #FF3B1F, inset 0 0 70px rgba(255, 59, 31, 0.5); animation: nv-pulse 0.6s ease-in-out infinite alternate;
}
@keyframes nv-pulse { from { opacity: 0.55; } to { opacity: 1; } }

.nv-side { position: absolute; right: 10px; top: 132px; z-index: 4; flex-direction: column; gap: 10px; align-items: flex-end; }
.nv-em-btn {
  width: 78px; display: grid; justify-items: center; gap: 2px; padding: 9px 6px 8px; border: 0; border-radius: 16px; background: #fff;
  box-shadow: 0 4px 14px rgba(15, 30, 40, 0.2); font-size: 11.5px; font-weight: 700; color: var(--app-text); line-height: 1.25;
}
.nv-em-btn svg { width: 28px; height: 28px; color: #9AA7B0; }
.nv-em-btn b { margin-top: 2px; padding: 1px 8px; border-radius: 7px; background: #E6EBEE; color: var(--app-muted); font-size: 11.5px; }
.nv-em-btn[aria-pressed="true"] svg { color: var(--primary); }
.nv-em-btn[aria-pressed="true"] b { background: var(--primary); color: #fff; }

.nv-speed {
  position: absolute; left: 12px; bottom: 92px; z-index: 4; width: 64px; height: 64px; border-radius: 50%; background: #fff;
  flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(15, 30, 40, 0.2); border: 3px solid #E3E8EB;
}
.nv-speed b { font-size: 24px; line-height: 1; font-weight: 700; }
.nv-speed span { font-size: 10px; color: var(--app-muted); font-weight: 600; }
.nv-roadnow {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 90px; z-index: 4; margin: 0; padding: 6px 14px; border-radius: 12px;
  background: rgba(16, 40, 58, 0.92); color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap;
}
.nv-eta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; grid-template-columns: repeat(3, 1fr) auto; gap: 4px; align-items: center;
  padding: 12px 12px 14px 16px; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -6px 20px rgba(15, 30, 40, 0.14);
}
.nv-eta__cell { display: grid; line-height: 1.2; }
.nv-eta__cell b { font-size: 21px; font-weight: 700; }
.nv-eta__cell span { font-size: 11.5px; color: var(--app-muted); font-weight: 600; }
.nv-eta__stop { height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: #EEF2F5; font-weight: 700; font-size: 14px; }

/* 4. 도착 */
.nv-arrived {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 20px 20px 20px; background: #fff; border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 26px rgba(15, 30, 40, 0.16); text-align: center;
}
.nv-arrived__icon { width: 46px; height: 46px; color: #E5332A; }
.nv-arrived__title { margin: 4px 0 0; font-size: 20px; font-weight: 800; }
.nv-arrived__name { margin: 0 0 12px; color: var(--app-muted); font-size: 14px; }
.nv-arrived__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; text-align: left; }
.nv-arrived__stats div { padding: 10px 12px; border-radius: 12px; background: #F2F5F7; }
.nv-arrived__stats dt { font-size: 12px; color: var(--app-muted); font-weight: 600; }
.nv-arrived__stats dd { margin: 0; font-size: 20px; font-weight: 700; }
.nv-arrived .nv-btn { width: 100%; }

/* 설정 */
.nv-settings {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; max-height: 84%; display: flex; flex-direction: column;
  background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -12px 34px rgba(10, 20, 30, 0.3);
}
.nv-settings[hidden] { display: none; }
.nv-settings__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px 20px; }
.nv-settings__title { margin: 0; font-size: 18px; font-weight: 800; }
.nv-icon-btn--light { border-color: var(--app-line); color: var(--app-text); }
.nv-settings__body { overflow: auto; padding: 0 18px 18px; }
.nv-set { padding: 12px 0 14px; border-top: 1px solid var(--app-line); }
.nv-set:first-child { border-top: 0; }
.nv-set__row { display: flex; justify-content: space-between; align-items: center; }
.nv-set__label { margin: 0; font-size: 16px; font-weight: 800; }
.nv-set__sub { margin: 10px 0 6px; font-size: 12.5px; font-weight: 700; color: var(--app-muted); }
.nv-set__preview { width: 100%; height: auto; display: block; margin-top: 4px; background: #EDF0E8; border-radius: 12px; }
.nv-pv-label { font-size: 10px; font-weight: 700; fill: #5D6B74; }
.nv-set__note { margin: 10px 0 10px; font-size: 12.5px; color: var(--app-muted); }
.nv-settings.is-em-off [data-action*="setWidth"], .nv-settings.is-em-off [data-action*="setColor"] { opacity: 0.55; }
.nv-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: #EEF2F5; }
.nv-seg__item { height: 40px; border: 0; border-radius: 9px; background: transparent; font-size: 14px; font-weight: 700; color: var(--app-muted); }
.nv-seg__item.is-on { background: var(--app-text); color: #fff; }
.nv-swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.nv-swatch {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; border-radius: 12px; border: 2px solid var(--app-line);
  background: #fff; font-size: 14px; font-weight: 700; color: var(--app-text);
}
.nv-swatch i { width: 22px; height: 22px; border-radius: 7px; background: var(--sw); flex: none; }
.nv-swatch.is-on { border-color: var(--sw); box-shadow: inset 0 0 0 1px var(--sw); }

.nv-toast {
  position: absolute; left: 50%; bottom: 140px; transform: translateX(-50%); z-index: 30; max-width: calc(100% - 32px);
  padding: 10px 16px; border-radius: 14px; background: rgba(12, 22, 30, 0.92); color: #fff; font-size: 13.5px; font-weight: 600; text-align: center;
}
.nv-toast[hidden] { display: none; }
.nv-toast.is-in { animation: nv-toast-in 0.2s ease-out; }
@keyframes nv-toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.nv-app[data-state="search"] .nv-toast { bottom: 64px; }

/* 시연 조작 */
.nv-sim {
  grid-area: sim; padding: 14px 16px; border-radius: 18px; background: #12222C; border: 1.5px dashed #4E6A2A;
}
.nv-sim__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.nv-sim__tag { flex: none; padding: 3px 9px; border-radius: 8px; background: var(--accent); color: #142000; font-size: 12px; font-weight: 800; }
.nv-sim__hint { margin: 0; font-size: 14px; color: var(--text); font-weight: 600; }
.nv-sim__meter { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.nv-sim__meter b { color: var(--text); font-size: 14.5px; }
.nv-sim__meter.is-over b { color: #FF8A73; }
.nv-sim__btns { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.nv-simbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 46px; padding: 0 10px; border-radius: 12px;
  border: 1px solid #36505F; background: var(--surface-2); font-size: 14px; font-weight: 700; white-space: nowrap;
}
.nv-simbtn svg { width: 18px; height: 18px; flex: none; }
.nv-simbtn--main { background: var(--accent); border-color: var(--accent); color: #142000; }
.nv-simbtn:disabled { opacity: 0.4; }
.nv-simbtn:not(:disabled):hover { filter: brightness(1.08); }

/* 오른쪽 패널 */
.nv-panel { grid-area: panel; display: grid; gap: 16px; min-width: 0; }
.nv-card { padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.nv-card__title { margin: 0 0 12px; font-size: 16.5px; font-weight: 800; }
.nv-card__note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.nv-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nv-step {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 12px 12px 12px;
  border-radius: 14px; background: var(--surface-2); border: 1px solid transparent; scroll-margin-top: 90px;
}
.nv-step.is-now { border-color: var(--accent); }
.nv-step__n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #25404F; font-family: var(--num); font-size: 16px; }
.nv-step__n svg { display: none; width: 18px; height: 18px; }
.nv-step.is-now .nv-step__n { background: var(--accent); color: #142000; }
.nv-step.is-done .nv-step__n { background: var(--ok); color: #05250F; }
.nv-step.is-done .nv-step__n b { display: none; }
.nv-step.is-done .nv-step__n svg { display: block; }
.nv-step__title { margin: 0; font-size: 15px; font-weight: 800; }
.nv-step__state { display: none; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: rgba(52, 208, 138, 0.16); color: var(--ok); font-size: 11.5px; font-style: normal; font-weight: 700; }
.nv-step.is-done .nv-step__state { display: inline-block; }
.nv-step__desc { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.nv-step__act { height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid #3B5868; background: transparent; font-size: 13px; font-weight: 700; white-space: nowrap; }
.nv-step.is-now .nv-step__act { background: var(--accent); border-color: var(--accent); color: #142000; }

.nv-meter__row { display: flex; justify-content: space-between; margin: 0; font-size: 14px; }
.nv-meter__row b { font-size: 22px; font-weight: 700; }
.nv-meter__row--sub { font-size: 13px; color: var(--muted); }
.nv-meter__row--sub b { font-size: 15px; color: var(--text); }
.nv-meter__bar { position: relative; height: 10px; margin: 8px 0; border-radius: 5px; background: #0E1A22; overflow: hidden; }
.nv-meter__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ok); border-radius: 5px; transition: width 0.15s; }
.nv-meter__bar i.is-over { background: var(--danger); }
.nv-meter__bar em { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--warn); left: 40%; }
.nv-log { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.nv-log__empty { font-size: 13px; color: var(--muted); }
.nv-log__item { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--surface-2); border-left: 3px solid #4A6677; font-size: 13px; }
.nv-log__item span { color: var(--muted); font-size: 13px; }
.nv-log__item p { margin: 0; }
.nv-log__item--warn { border-left-color: var(--warn); }
.nv-log__item--danger { border-left-color: var(--danger); background: rgba(255, 74, 43, 0.12); }
.nv-log__item--ok { border-left-color: var(--ok); }
.nv-log__item--info { border-left-color: var(--primary); }
.nv-vibe { margin: 0; font-size: 14px; color: var(--muted); }

/* 접수용 결과물 */
.nv-plan { max-width: 1080px; margin: 0 auto; }
.nv-plan__head { padding: 8px 0 6px; }
.nv-plan__title { margin: 0; font-size: 30px; letter-spacing: -0.02em; }
.nv-plan__lead { margin: 8px 0 0; color: var(--muted); max-width: 700px; }
.nv-plan__sec { margin-top: 26px; scroll-margin-top: 20px; }
.nv-plan__h { margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.nv-plan__note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.nv-plan__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; }
.nv-deliver { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nv-deliver__item { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.nv-deliver__icon { width: 30px; height: 30px; color: var(--accent); }
.nv-deliver__title { margin: 10px 0 4px; font-weight: 800; font-size: 16px; }
.nv-deliver__body { margin: 0; font-size: 13.5px; color: var(--muted); }
.nv-criteria { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nv-criteria__btn {
  width: 100%; display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; text-align: left; padding: 13px 14px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px;
}
.nv-criteria__box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #4A6677; display: grid; place-items: center; }
.nv-criteria__box svg { width: 16px; height: 16px; opacity: 0; }
.nv-criteria__btn.is-on { border-color: #2E6B4C; }
.nv-criteria__btn.is-on .nv-criteria__box { background: var(--ok); border-color: var(--ok); color: #05250F; }
.nv-criteria__btn.is-on .nv-criteria__box svg { opacity: 1; }
.nv-scenario { margin: 0; padding: 16px 18px 16px 36px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; font-size: 14.5px; }
.nv-scenario li::marker { color: var(--accent); font-family: var(--num); font-weight: 700; }
.nv-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.nv-day { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--primary); }
.nv-day--later { border-top-color: #4A6677; background: transparent; border-style: dashed; border-top-style: solid; }
.nv-day__label { margin: 0 0 8px; display: grid; }
.nv-day__label span { font-size: 17px; font-weight: 700; }
.nv-day__label em { font-style: normal; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.nv-day__items { margin: 0; padding-left: 16px; display: grid; gap: 6px; font-size: 13.5px; color: #CFDAE1; }

@media (prefers-reduced-motion: reduce) {
  .nv-phone.is-shake, .nv-off__icon, .nv-app.is-off::after, .nv-toast.is-in { animation: none; }
  .nv-switch, .nv-switch > i, .nv-meter__bar i { transition: none; }
}

/* 태블릿 이하: 앱을 화면 폭에 맞춘다 */
@media (max-width: 420px) {
  .nv-brand__name { display: none; }
}

@media (max-width: 959px) {
  .nv-top__inner { padding: 0 16px; height: 54px; gap: 10px; }
  .nv-brand__sub { display: none; }
  .nv-tabs__item { padding: 6px 10px; font-size: 13.5px; }
  .nv-tool { padding: 0 10px; }
  .nv-tool span { display: none; }
  .nv-tool--map { display: inline-flex; }
  .nv-tool--map span { display: inline; }
  .nv-fab { display: none; }
  .nv-main { padding: 0 0 20px; }
  .nv--plan .nv-main { padding: 16px 16px 20px; }
  .nv-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "phone" "sim" "panel"; row-gap: 0; }
  .nv-phone {
    position: relative; top: 0; width: 100%; height: calc(100svh - 28px - 54px - 124px); min-height: 520px; max-height: 820px;
    padding: 0; border-radius: 0; background: none; box-shadow: none;
  }
  .nv-status { display: none; }
  .nv-app { height: 100%; border-radius: 0; }
  .nv-sim { margin: 0; border-radius: 0; border-width: 0 0 1.5px; padding: 10px 16px 12px; }
  .nv-sim__head { margin-bottom: 8px; }
  .nv-sim__meter { margin: 0 0 8px; font-size: 12.5px; }
  .nv-sim__meter b { font-size: 13.5px; }
  .nv-sim__hint { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nv-simbtn { height: 44px; font-size: 13px; gap: 5px; padding: 0 6px; }
  .nv-simbtn svg { width: 16px; height: 16px; }
  .nv-panel { padding: 16px; }
  .nv-step { grid-template-columns: 34px 1fr; }
  .nv-step__act { grid-column: 2; justify-self: start; }
  .nv-plan__grid { grid-template-columns: 1fr; gap: 0; }
  .nv-deliver { grid-template-columns: 1fr 1fr; }
  .nv-days { grid-template-columns: 1fr 1fr; }
  .nv-plan__title { font-size: 25px; }
  .demo-notice { padding-bottom: 30px; }
}

@media (max-width: 560px) {
  .nv-top__inner { gap: 8px; }
  .nv-tabs__item { padding: 6px 9px; font-size: 13px; }
  .nv-tool { height: 38px; }
  .nv-brand__name { font-size: 17px; }
  .nv-deliver, .nv-days { grid-template-columns: 1fr; }
  .nv-mapping__row { grid-template-columns: 1fr; gap: 4px; }
  .nv-turn__dist { font-size: 30px; }
  .nv-sim__btns { grid-template-columns: 1.25fr 1fr 1fr; gap: 6px; }
}
