/* 파동 자동매매 모니터 시연 (wave) */
.wv {
  --bg: #ECEEE8;
  --surface: #FFFFFF;
  --text: #15191C;
  --muted: #59625D;
  --line: #D6DBD3;
  --line-soft: #E6E9E3;
  --primary: #133B3A;
  --accent: #B7791F;
  --ok: #2F7A4D;
  --warn: #A86512;
  --danger: #C0262D;
  --buy: #C0262D;
  --buy-tint: #FBE9E9;
  --sell: #1E55C4;
  --sell-tint: #E7EEFB;
  --mono: "Red Hat Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --r: 10px;
}
.wv *, .wv *::before, .wv *::after { box-sizing: border-box; }
.wv [hidden] { display: none !important; }
html:has(body.wv) { background: #ECEEE8; }
body.wv {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; word-break: keep-all;
}
:where(.wv) a { color: inherit; }
:where(.wv) button { font: inherit; color: inherit; }
.wv :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wv-num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.wv-muted { color: var(--muted); font-weight: 400; }
.wv-small { font-size: 13px; }
.wv-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

/* 띠 · 헤더 */
.wv-band { height: 28px; display: flex; align-items: center; justify-content: center; padding: 0 16px; background: #DDE2DA; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wv-top { background: var(--primary); color: #F4F1E8; position: sticky; top: 0; z-index: 20; }
.wv-top__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; min-height: 60px; display: flex; align-items: center; gap: 16px; }
.wv-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.wv-brand__mark { color: #0B2928; flex: none; }
.wv-brand__text { display: grid; line-height: 1.25; }
.wv-brand__name { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.wv-brand__sub { font-size: 12px; color: #B9C8C2; }
.wv-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.1); white-space: nowrap; }
.wv-pill i { width: 8px; height: 8px; border-radius: 50%; background: #5FD08C; box-shadow: 0 0 0 3px rgba(95,208,140,.25); }
.wv-pill--pause i { background: #F2C46B; box-shadow: 0 0 0 3px rgba(242,196,107,.25); }
.wv-pill--hold i { background: #F2A36B; box-shadow: 0 0 0 3px rgba(242,163,107,.25); }
.wv-nav { display: flex; margin-left: auto; align-self: stretch; }
.wv-nav__item { display: flex; align-items: center; padding: 0 14px; text-decoration: none; color: #B9C8C2; font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; }
.wv-nav__item:hover { color: #fff; }
.wv-nav__item.is-active { color: #fff; border-bottom-color: #F2C46B; }
.wv-reset { height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.28); background: transparent; color: #E9EFEC !important; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.wv-reset:hover { background: rgba(255,255,255,.08); }

.wv-main { max-width: 1200px; margin: 0 auto; padding: 20px 24px 40px; }
.wv-tabbar { display: none; }

/* 카드 · 공통 */
.wv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 16px; }
.wv-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wv-h1 { margin: 0; font-size: 16px; font-weight: 700; }
.wv-h1 .wv-muted { font-size: 13px; margin-left: 4px; }
.wv-h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.wv-h3 { margin: 18px 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.wv-tag { flex: none; font-family: var(--mono); font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--line-soft); color: var(--muted); }
.wv-link { font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; white-space: nowrap; }
.wv-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.wv-rule { display: inline-block; min-width: 34px; margin-right: 6px; padding: 1px 6px; border-radius: 5px; background: #EEF1EC; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; font-weight: 600; text-align: center; color: var(--primary); }

.wv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line); background: #F6F7F3; font-weight: 600; font-size: 14px; cursor: pointer; }
.wv-btn:hover { background: #EEF0EA; }
.wv-btn:disabled { opacity: .45; cursor: not-allowed; }
.wv-btn--block { width: 100%; }
.wv-btn--ghost { background: transparent; }
.wv-btn--primary { background: var(--primary); border-color: var(--primary); color: #fff !important; }
.wv-btn--primary:hover { background: #0E2E2D; }
.wv-btn--danger { color: var(--danger) !important; border-color: #E9B9BB; background: #FFF7F7; }
.wv-btn--danger:hover { background: #FDECEC; }
.wv-btn.is-on { background: #FFF4E0; border-color: #E8C27A; color: #7A4B06 !important; }

/* 상태 타일 */
.wv-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.wv-tile { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.wv-tile__k { font-size: 12px; color: var(--muted); font-weight: 600; }
.wv-tile__v { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.wv-tile__s { font-size: 12px; color: var(--muted); }
.wv-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.wv-dot--ok { background: var(--ok); }
.wv-dot--pause { background: #D99A1E; }
.wv-dot--hold { background: #DD7A2E; }

.wv-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.wv-mainc { min-width: 0; }
.wv-mainc .wv-card:last-child, .wv-side .wv-card:last-child { margin-bottom: 0; }
.wv-price-now { margin: 2px 0 0; display: flex; align-items: baseline; gap: 8px; }
.wv-price-now b { font-size: 26px; font-weight: 600; }
.wv-price-now .wv-muted { font-size: 12px; }

/* 차트 */
.wv-chart__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.wv-chart__svg { display: block; width: 100%; min-width: 600px; height: auto; font-family: var(--mono); }
.wv-grid line { stroke: var(--line-soft); stroke-width: 1; }
.wv-grid text { font-size: 10px; fill: var(--muted); }
.wv-gap text { font-family: var(--sans); font-size: 10px; fill: #7A6A44; font-weight: 600; }
.wv-area { stroke: none; }
.wv-price { fill: none; stroke: var(--primary); stroke-width: 1.6; stroke-linejoin: round; }
.wv-wave { fill: none; stroke: #E2A73F; stroke-opacity: .55; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.wv-wave__label { font-family: var(--sans); font-size: 11px; font-weight: 800; fill: var(--accent); text-anchor: middle; }
.wv-level { stroke-width: 1.2; stroke-dasharray: 3 3; }
.wv-level--entry { stroke: var(--buy); }
.wv-level--stop { stroke: #6B7280; }
.wv-mk { transition: opacity .25s ease, transform .25s ease; }
.wv-mk.is-off { opacity: 0; }
.wv-mk text { font-size: 9.5px; font-weight: 600; text-anchor: middle; }
.wv-mk--buy path { fill: var(--buy); }
.wv-mk--buy text { fill: var(--buy); }
.wv-mk--sell path { fill: var(--sell); }
.wv-mk--sell text { fill: var(--sell); }
.wv-mk--respond path { fill: var(--accent); }
.wv-mk--respond text { fill: var(--accent); }
.wv-mk--exit rect { fill: var(--text); }
.wv-mk--exit text { fill: var(--text); }
.wv-last rect { fill: var(--primary); }
.wv-last text { font-size: 10px; font-weight: 600; fill: #fff; }
.wv-playhead { stroke: var(--accent); stroke-width: 1.5; }
.wv-chart__foot { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.wv-chart__caption { margin: 0; font-size: 13px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wv-legend { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.wv-legend li { display: flex; align-items: center; gap: 6px; }
.wv-lg { display: inline-block; width: 12px; height: 12px; }
.wv-lg--buy { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--buy); }
.wv-lg--sell { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 10px solid var(--sell); }
.wv-lg--respond { width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); }
.wv-lg--exit { width: 10px; height: 10px; background: var(--text); border-radius: 2px; }
.wv-lg--wave { height: 5px; width: 18px; border-radius: 3px; background: #E2A73F; opacity: .6; }
.wv-lg--stop { height: 0; width: 18px; border-top: 2px dashed #6B7280; }

/* 포지션 · 제어 */
.wv-side-badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.wv-side-badge--buy { background: var(--buy-tint); color: var(--buy); }
.wv-side-badge--sell { background: var(--sell-tint); color: var(--sell); }
.wv-side-badge.is-none { background: var(--line-soft); color: var(--muted); }
.wv-kv { margin: 0; display: grid; gap: 0; }
.wv-kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.wv-kv dt { color: var(--muted); font-size: 13px; }
.wv-kv dd { margin: 0; text-align: right; font-size: 14px; }
.wv-pnl { font-weight: 600; }
.is-up { color: var(--buy); }
.is-down { color: var(--sell); }
.wv-next { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #FBF6EC; border: 1px solid #EBDDBE; font-size: 13px; }
.wv-next span { display: block; font-size: 12px; font-weight: 700; color: var(--warn); }
.wv-closed { padding: 14px; border-radius: 8px; background: #F4F5F1; text-align: center; }
.wv-closed__t { margin: 0; font-weight: 700; }
.wv-closed__s { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.wv-ctl { display: grid; gap: 8px; }
.wv-cmdlog { list-style: none; margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #F4F5F1; font-size: 13px; display: grid; gap: 4px; }
.wv-cmdlog span { color: var(--muted); margin-right: 8px; font-size: 12px; }

/* 최근 신호 · 기록 */
.wv-signals { list-style: none; margin: 0; padding: 0; }
.wv-sig { display: grid; grid-template-columns: 48px auto 1fr; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.wv-sig:last-child { border-bottom: 0; }
.wv-sig__t { color: var(--muted); font-size: 13px; }
.wv-sig--buy .wv-rule { color: var(--buy); background: var(--buy-tint); border-color: #F0C9CA; }
.wv-sig--sell .wv-rule { color: var(--sell); background: var(--sell-tint); border-color: #C9D7F3; }
.wv-sig--respond .wv-rule { color: var(--warn); background: #FBF3E4; border-color: #EBD7AE; }

.wv-page { max-width: 880px; margin: 0 auto; }
.wv-pagehead { margin: 4px 0 18px; }
.wv-title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.wv-lead { margin: 8px 0 0; color: var(--muted); max-width: 680px; }
.wv-sumrow { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wv-sumrow li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: grid; }
.wv-sumrow span { font-size: 12px; color: var(--muted); font-weight: 600; }
.wv-sumrow b { font-size: 22px; font-weight: 600; line-height: 1.3; }
.wv-sumrow em { font-style: normal; font-size: 12px; color: var(--muted); }
.wv-sumrow--sm li { background: #F6F7F3; }
.wv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.wv-chip { position: relative; }
.wv-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wv-chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; }
.wv-chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.wv-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.wv-cycle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px 8px; margin-bottom: 12px; scroll-margin-top: 80px; }
.wv-cycle__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.wv-cycle__st { margin-left: auto; font-size: 13px; color: var(--muted); }
.wv-cycle__st b { font-weight: 600; }
.wv-cycle__st--open { color: var(--buy); font-weight: 700; }
.wv-timeline { list-style: none; margin: 0; padding: 0; }
.wv-ev { position: relative; display: grid; grid-template-columns: 48px 40px 1fr; gap: 8px; align-items: baseline; padding: 8px 0 8px 14px; border-left: 2px solid var(--line); font-size: 14px; }
.wv-ev::before { content: ""; position: absolute; left: -5px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.wv-ev--signal::before { border-color: var(--primary); }
.wv-ev--fill::before { background: var(--primary); border-color: var(--primary); }
.wv-ev--warn { background: #FFF8EC; }
.wv-ev--warn::before { border-color: var(--warn); background: var(--warn); }
.wv-ev--ok::before { border-color: var(--ok); background: var(--ok); }
.wv-ev__t { color: var(--muted); font-size: 13px; }
.wv-ev__type { font-size: 12px; font-weight: 700; color: var(--muted); }
.wv-ev--link .wv-ev__type { color: var(--warn); }
.wv-ev--ok .wv-ev__type { color: var(--ok); }
.wv-empty { padding: 24px; text-align: center; color: var(--muted); }

/* 규칙표 */
.wv-stages { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: s; }
.wv-stages li { position: relative; display: grid; gap: 2px; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: #F8F9F6; }
.wv-stages b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); font-family: var(--mono); font-size: 12px; }
.wv-stages span { font-weight: 700; font-size: 14px; }
.wv-stages em { font-style: normal; font-size: 12px; color: var(--muted); }
.wv-stages .is-done b { background: var(--ok); color: #fff; }
.wv-stages .is-now { border-color: var(--accent); background: #FBF6EC; }
.wv-stages .is-now b { background: var(--accent); color: #fff; }
.wv-stages .is-now em { color: var(--warn); font-weight: 600; }
.wv-loop { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.wv-loop li { position: relative; display: grid; justify-items: center; padding: 12px 8px; border-radius: 8px; background: #F2F5F1; border: 1px solid var(--line); text-align: center; }
.wv-loop li b { font-size: 15px; }
.wv-loop li span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.wv-loop li:not(:last-child)::after { content: "→"; position: absolute; right: -18px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.wv-loop li:last-child::after { content: "↺ 탐색"; position: absolute; right: 8px; top: 6px; font-size: 10px; color: var(--accent); font-weight: 700; }
.wv-rules { margin-bottom: 16px; }
.wv-rulelist { display: grid; gap: 8px; }
.wv-ruleitem { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 8px; }
.wv-ruleitem--respond { border-left-color: var(--accent); }
.wv-ruleitem--exit { border-left-color: var(--text); }
.wv-ruleitem summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 14px; cursor: pointer; list-style: none; }
.wv-ruleitem summary::-webkit-details-marker { display: none; }
.wv-ruleitem summary::after { content: "+"; margin-left: 8px; font-weight: 700; color: var(--muted); }
.wv-ruleitem[open] summary::after { content: "−"; }
.wv-ruleitem__t { font-weight: 700; flex: 1; }
.wv-ruleitem__n { font-size: 12px; color: var(--muted); white-space: nowrap; }
.wv-ruleitem__c { margin: 0 14px 10px; font-size: 14px; }
.wv-params { margin: 0 14px 14px; display: grid; gap: 4px; padding: 10px 12px; border-radius: 6px; background: #F6F7F3; font-size: 13px; }
.wv-params div { display: flex; justify-content: space-between; gap: 12px; }
.wv-params dt { color: var(--muted); }
.wv-params dd { margin: 0; font-weight: 600; text-align: right; }
.wv-replay { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.wv-replay__row { display: grid; grid-template-columns: 110px 64px 1fr 1fr 120px; gap: 8px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.wv-replay__row--head { border-top: 0; background: #F2F4EF; font-size: 12px; font-weight: 700; color: var(--muted); }
.wv-replay__row--miss, .wv-replay__row--shift { background: #FFFAF0; }
.wv-replay__k { display: none; }
.wv-replay__note { grid-column: 1 / -1; margin: 0; padding: 8px 10px; border-radius: 6px; background: #fff; border: 1px dashed #E2C98E; font-size: 13px; color: #5B4A22; }
.wv-verdict { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 12px; }
.wv-verdict--ok { background: #E6F2EA; color: var(--ok); }
.wv-verdict--shift { background: #FBF0DC; color: var(--warn); }
.wv-verdict--miss { background: #FBE9E9; color: var(--danger); }

/* 안전장치 */
.wv-steppers { display: grid; gap: 0; margin-top: 6px; }
.wv-stepper { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.wv-stepper:last-child { border-bottom: 0; }
.wv-stepper__text b { font-size: 15px; }
.wv-stepper__text p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.wv-stepper__ctl { display: grid; grid-template-columns: 44px 72px 44px; grid-template-rows: auto auto; align-items: center; justify-items: center; }
.wv-stepper__ctl output { font-size: 18px; font-weight: 600; }
.wv-stepper__u { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.wv-sbtn { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: #F6F7F3; font-size: 20px; cursor: pointer; }
.wv-radios { display: grid; gap: 8px; margin-top: 10px; }
.wv-radio { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.wv-radio:has(input:checked) { border-color: var(--primary); background: #F1F6F4; }
.wv-radio input { margin-top: 4px; accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.wv-radio b { display: block; font-size: 14px; }
.wv-radio em { font-style: normal; font-size: 13px; color: var(--muted); }
.wv-toggles { display: grid; margin-top: 6px; }
.wv-toggle { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--line-soft); cursor: pointer; font-size: 14px; }
.wv-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wv-toggle i { flex: none; width: 44px; height: 26px; border-radius: 999px; background: #C9CFC7; position: relative; transition: background .15s; }
.wv-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.wv-toggle input:checked + i { background: var(--primary); }
.wv-toggle input:checked + i::after { transform: translateX(18px); }
.wv-toggle input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.wv-noti { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #F1F2EE; border: 1px solid var(--line); max-width: 380px; }
.wv-noti__app { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.wv-noti__app span { margin-left: auto; }
.wv-noti b { font-size: 14px; }
.wv-noti p { margin: 0; font-size: 13px; color: var(--muted); }
.wv-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.wv-role { padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: #F8F9F6; }
.wv-role b { font-size: 14px; }
.wv-role b span { margin-left: 4px; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--primary); color: #fff; font-weight: 600; }
.wv-role p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.wv-role.is-me { border-color: var(--primary); }
.wv-devices { list-style: none; margin: 12px 0 0; padding: 0; }
.wv-devices li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.wv-devices li:last-child { border-bottom: 0; }
.wv-devices div { flex: 1; display: grid; }
.wv-devices b { font-size: 14px; }
.wv-devices em { font-style: normal; font-size: 13px; color: var(--muted); }
.wv-dev { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: #EEF1EC; font-size: 12px; font-weight: 700; color: var(--primary); }
.wv-ok { font-size: 12px; font-weight: 700; color: var(--ok); white-space: nowrap; }
.wv-savebar { position: sticky; bottom: 12px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 10px 12px; border-radius: var(--r); background: rgba(255,255,255,.94); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(19,59,58,.1); margin-bottom: 16px; }
.wv-toast { margin: 0 auto 0 0; font-size: 13px; color: var(--ok); font-weight: 600; }

/* 대응표 · 확인 대화상자 */
.wv-fab { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--text); color: #fff !important; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.wv-dialog, .wv-confirm { border: 0; padding: 0; border-radius: 14px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.wv-dialog::backdrop, .wv-confirm::backdrop { background: rgba(10, 20, 20, .45); }
.wv-dialog__body { padding: 20px; }
.wv-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.wv-dialog__title { margin: 0; font-size: 20px; }
.wv-icon-btn { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; flex: none; }
.wv-mapping { margin: 0; padding: 0; list-style: none; counter-reset: m; }
.wv-mapping li { counter-increment: m; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.wv-mapping li span::before { content: counter(m) ". "; color: var(--muted); font-family: var(--mono); }
.wv-mapping a { font-weight: 700; color: var(--primary); text-decoration: none; white-space: nowrap; }
.wv-dialog__foot { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.wv-confirm__body { padding: 20px; margin: 0; }
.wv-confirm__body p { font-size: 14px; color: var(--muted); }
.wv-confirm__btns { display: flex; justify-content: flex-end; gap: 8px; }

.demo-notice { padding: 0 24px 32px; font-size: 12px; color: var(--muted); text-align: center; }

@media (max-width: 1080px) {
  .wv-nav { display: none; }
  .wv-pill { margin-left: auto; }
  .wv-grid2 { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .wv-mainc { display: contents; }
  .wv-mainc .wv-card { margin-bottom: 0; }
  .wv-card--chart { order: 1; min-width: 0; max-width: 100%; }
  .wv-side { order: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .wv-card--sig { order: 3; }
  .wv-side .wv-card { margin-bottom: 0; }
  .wv-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .wv-tab { display: grid; justify-items: center; gap: 2px; padding: 8px 0 6px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; min-height: 56px; }
  .wv-tab.is-active { color: var(--primary); }
  .wv-tab.is-active svg { stroke-width: 2.2; }
  .wv-fab { bottom: calc(72px + env(safe-area-inset-bottom)); right: 16px; }
  .wv-main { padding-bottom: 90px; }
  .wv-savebar { position: static; box-shadow: none; }
  .demo-notice { padding-bottom: 150px; }
}

@media (max-width: 760px) {
  body.wv { font-size: 15px; }
  .wv-top__inner { padding: 0 16px; min-height: 56px; gap: 10px; }
  .wv-brand__sub { display: none; }
  .wv-brand__name { font-size: 15px; }
  .wv-brand__mark { width: 30px; height: 30px; }
  .wv-pill { display: none; }
  .wv-reset { margin-left: auto; }
  .wv-reset { height: 32px; padding: 0 8px; font-size: 12px; }
  .wv-main { padding: 14px 16px 90px; }
  .wv-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wv-tile { padding: 10px 12px; }
  .wv-tile__v { font-size: 15px; }
  .wv-card { padding: 14px 14px; }
  .wv-side { grid-template-columns: 1fr; }
  .wv-price-now b { font-size: 22px; }
  .wv-chart__svg { min-width: 620px; }
  .wv-chart__foot { flex-wrap: wrap; }
  .wv-chart__caption { white-space: normal; flex-basis: 100%; }
  .wv-title { font-size: 22px; }
  .wv-sumrow { grid-template-columns: 1fr 1fr; }
  .wv-sumrow b { font-size: 20px; }
  .wv-cycle { padding: 12px 12px 6px; }
  .wv-ev { grid-template-columns: 44px 1fr; padding-left: 12px; }
  .wv-ev__type { grid-column: 2; grid-row: 1; }
  .wv-ev__x { grid-column: 1 / -1; padding-left: 0; }
  .wv-stages { grid-template-columns: 1fr 1fr; }
  .wv-loop { grid-template-columns: 1fr 1fr; gap: 12px 22px; }
  .wv-loop li:nth-child(2)::after { content: "↓"; right: 50%; top: auto; bottom: -15px; transform: translateX(50%); }
  .wv-loop li:nth-child(3)::after { content: "←"; right: auto; left: -18px; }
  .wv-loop li:nth-child(3) { order: 4; }
  .wv-loop li:nth-child(4) { order: 3; }
  .wv-loop li:nth-child(4)::after { content: "↑ 탐색"; right: auto; left: 50%; top: -15px; transform: translateX(-50%); font-size: 11px; }
  .wv-replay__row--head { display: none; }
  .wv-replay__row { grid-template-columns: 1fr auto; gap: 4px 8px; padding: 10px 12px; }
  .wv-replay__row > span:nth-child(1) { grid-column: 1; }
  .wv-replay__row > span:nth-child(2) { grid-column: 2; grid-row: 1; justify-self: end; }
  .wv-replay__row > span:nth-child(3), .wv-replay__row > span:nth-child(4) { grid-column: 1 / -1; font-size: 13px; }
  .wv-replay__row > span:nth-child(5) { grid-column: 1 / -1; }
  .wv-replay__k { display: inline-block; width: 64px; font-style: normal; color: var(--muted); font-size: 12px; }
  .wv-stepper { grid-template-columns: 1fr; gap: 8px; }
  .wv-stepper__ctl { justify-self: start; grid-template-columns: 44px 72px 44px auto; grid-template-rows: auto; column-gap: 0; }
  .wv-stepper__u { grid-column: auto; margin-left: 8px; }
  .wv-roles { grid-template-columns: 1fr; }
  .wv-savebar { position: static; box-shadow: none; }
  .wv-mapping li { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .wv *, .wv *::before, .wv *::after { animation: none !important; transition: none !important; }
}
