/* ============================================================================
   Phoenix · 공통 App Shell CSS (v2)
   sidebar + topbar + 기본 레이아웃 — 모든 V2 페이지에서 import.
   ============================================================================ */

.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.sidebar {
  background: var(--surface-inverse);
  color: var(--fg-on-inverse);
  padding: var(--space-5) var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-4);
  position: sticky; top: 0; height: 100vh;
  border-right: 1px solid oklch(1 0 0 / 0.06);
}
.brand {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-2) var(--space-4);
  border-bottom: 1px solid oklch(1 0 0 / 0.06);
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-400), var(--brand-700) 60%, var(--gray-900));
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.08), var(--shadow-md);
}
.brand-mark svg { color: #fff; opacity: 0.95; }
.brand-name { font-size: var(--text-md); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); color: var(--fg-on-inverse); }
.brand-meta { display: block; font-size: var(--text-xs); color: var(--fg-on-inverse-muted); margin-top: 2px; }

.nav { display: flex; flex-direction: column; gap: var(--space-3); overflow-y: auto; }

/* ── Sidebar v3 — Pinned / Recently / All sections ─────────────── */
.nav-section {
  display: flex; flex-direction: column; gap: 2px;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid oklch(1 0 0 / 0.04);
}
.nav-section:last-child { border-bottom: 0; padding-bottom: 0; }
.nav-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: var(--space-2) var(--space-2) var(--space-1);
  font-size: var(--text-2xs); letter-spacing: var(--tracking-caps);
  text-transform: uppercase; font-weight: var(--weight-semibold);
  color: var(--fg-on-inverse-muted);
}
.nav-section-head small {
  font-size: 9px; color: oklch(1 0 0 / 0.30);
  font-weight: var(--weight-regular); text-transform: none;
  letter-spacing: var(--tracking-tight);
}
.nav-empty {
  font-size: 11px; color: oklch(1 0 0 / 0.30);
  padding: var(--space-2) var(--space-3);
  font-style: italic;
}

/* Child toggle (Dashboard → Layer 1~6 펼치기/접기) */
.nav-child-toggle {
  position: absolute;
  right: 6px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px;
  display: grid; place-items: center;
  background: transparent; border: 0;
  color: oklch(1 0 0 / 0.55);
  font-size: 11px; line-height: 1;
  cursor: pointer; border-radius: var(--radius-xs);
  transition: color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}
.nav-child-toggle:hover {
  background: oklch(1 0 0 / 0.10);
  color: oklch(1 0 0 / 0.95);
}
/* 자식 있는 항목: 핀은 토글 좌측에 배치 */
.nav-item-has-children .nav-item-pin { right: 28px; }
.nav-item-parent-active { background: oklch(1 0 0 / 0.04); color: oklch(1 0 0 / 0.85); }

/* 자식 메뉴 컨테이너 (들여쓰기 + 좌측 가이드라인) */
.nav-children {
  display: flex; flex-direction: column; gap: 1px;
  margin: 2px 0 4px 12px;
  padding-left: 12px;
  border-left: 1px solid oklch(1 0 0 / 0.08);
}
.nav-children .nav-item.nested { padding-left: var(--space-3); }

/* Pin button (☆ / ★) — 절대 배치로 라벨 폭 점유 안 함 */
.nav-item-pin {
  position: absolute;
  right: 6px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px;
  display: grid; place-items: center;
  background: transparent; border: 0;
  color: oklch(1 0 0 / 0.25);
  font-size: 13px; line-height: 1;
  cursor: pointer; border-radius: var(--radius-xs);
  transition: color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
  opacity: 0;
}
.nav-item:hover .nav-item-pin {
  opacity: 1;
  background: oklch(0.20 0.020 260 / 0.96);  /* 라벨 일부 가려도 가독성 유지 */
}
.nav-item-pin:hover {
  background: oklch(1 0 0 / 0.10) !important;
  color: oklch(0.85 0.150 80);  /* gold hover */
}
.nav-item-pin.on {
  opacity: 0.65;
  color: oklch(0.78 0.140 75);  /* gold star */
}
.nav-item-pin.on:hover { color: oklch(0.85 0.150 80); opacity: 1; }
.nav-item:hover .nav-item-pin.on { opacity: 1; }

/* Recent item — show timeAgo */
.nav-item-recent .nav-item-time {
  font-size: 10px;
  color: var(--fg-on-inverse-muted);
  font-feature-settings: "tnum" 1;
  flex-shrink: 0;
  min-width: 28px; text-align: right;
}

/* Group toggle button (collapsible header) */
.nav-group-wrap {
  display: flex; flex-direction: column;
  margin-bottom: var(--space-1);
}
.nav-group-toggle {
  display: flex; align-items: center; gap: 6px;
  width: 100%;
  padding: var(--space-2) var(--space-2) var(--space-1);
  background: transparent; border: 0;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  overflow: hidden;
}
.nav-group-toggle:hover { background: oklch(1 0 0 / 0.03); }
.nav-group-toggle .nav-group-line {
  font-size: var(--text-2xs); letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-on-inverse-muted);
  font-weight: var(--weight-semibold);
  flex-shrink: 0;
}
.nav-group-toggle .nav-group-desc {
  font-size: 10px;
  color: oklch(1 0 0 / 0.45);
  font-weight: var(--weight-regular);
  text-transform: none;
  letter-spacing: var(--tracking-tight);
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-group-chevron {
  color: oklch(1 0 0 / 0.30);
  font-size: 10px;
  flex-shrink: 0;
  transition: color var(--duration-fast) var(--ease-out);
}
.nav-group-toggle:hover .nav-group-chevron { color: oklch(1 0 0 / 0.65); }
.nav-group-body {
  display: flex; flex-direction: column; gap: 1px;
  padding-left: 0;
}

/* Stage indicator (4단계 진행 표시) */
.stage-bar {
  display: flex; align-items: center; gap: 4px;
  padding: var(--space-3);
  background: oklch(1 0 0 / 0.04);
  border-radius: var(--radius-md);
  font-size: var(--text-2xs);
  margin-bottom: var(--space-2);
}
.stage-step {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 6px;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}
.stage-step.stage-done { color: oklch(1 0 0 / 0.55); }
.stage-step.stage-current {
  background: var(--brand-500);
  color: #fff;
  font-weight: var(--weight-semibold);
}
.stage-step.stage-future { color: oklch(1 0 0 / 0.30); }
.stage-icon { font-size: 11px; line-height: 1; }
.stage-label { font-size: 10px; letter-spacing: var(--tracking-tight); }
.stage-arrow {
  color: oklch(1 0 0 / 0.20);
  font-size: 12px;
  font-weight: 700;
}

/* Nav group header (new structure with desc + ⓘ) */
.nav-group {
  display: flex; align-items: baseline; gap: 6px;
  padding: var(--space-3) var(--space-2) var(--space-1);
  flex-wrap: wrap;
}
.nav-group-line {
  font-size: var(--text-2xs); letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-on-inverse-muted);
  font-weight: var(--weight-semibold);
}
.nav-group-desc {
  font-size: 10px;
  color: oklch(1 0 0 / 0.45);
  font-weight: var(--weight-regular);
  text-transform: none;
  letter-spacing: var(--tracking-tight);
  margin-left: 2px;
}
.nav-group-info {
  margin-left: auto;
  width: 16px; height: 16px;
  display: grid; place-items: center;
  background: transparent;
  color: oklch(1 0 0 / 0.35);
  border: 0; border-radius: var(--radius-full);
  font-size: 11px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.nav-group-info:hover {
  color: oklch(1 0 0 / 0.85);
  background: oklch(1 0 0 / 0.08);
}
.nav-subgroup {
  font-size: var(--text-2xs); color: var(--fg-on-inverse-muted);
  padding: var(--space-1) var(--space-2);
  margin-left: var(--space-2);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-tight);
  display: flex; align-items: center; gap: var(--space-2);
}
.nav-subgroup::before { content: ""; width: 12px; height: 1px; background: oklch(1 0 0 / 0.10); }

.nav-item {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: oklch(1 0 0 / 0.72);
  text-decoration: none;
  font-size: var(--text-sm); font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-tight);
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
  position: relative;
  min-width: 0;
  height: 32px;
}
.nav-item.nested { padding-left: var(--space-7); }
.nav-item:hover { background: oklch(1 0 0 / 0.05); color: var(--fg-on-inverse); }
.nav-item[aria-current="page"] { background: oklch(1 0 0 / 0.08); color: #fff; }
.nav-item[aria-current="page"]::before {
  content: ""; position: absolute;
  left: -16px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px; border-radius: 2px; background: var(--brand-400);
}
.nav-item svg { flex-shrink: 0; opacity: 0.8; }
.nav-item-label {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-item .pill-new {
  flex-shrink: 0;
  font-size: 9px; letter-spacing: var(--tracking-caps);
  background: var(--brand-500); color: #fff;
  padding: 2px 6px; border-radius: var(--radius-full); font-weight: var(--weight-semibold);
}
.nav-item kbd {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: var(--text-2xs); color: var(--fg-on-inverse-muted);
  background: oklch(1 0 0 / 0.04); border: 1px solid oklch(1 0 0 / 0.06);
  border-radius: var(--radius-xs); padding: 1px 6px; font-weight: var(--weight-medium);
  min-width: 18px; text-align: center;
}

.sidebar-footer {
  margin-top: auto; padding-top: var(--space-4);
  border-top: 1px solid oklch(1 0 0 / 0.06);
  display: flex; align-items: center; gap: var(--space-3);
}
.avatar {
  width: 30px; height: 30px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-300), var(--accent-500));
  flex-shrink: 0;
}
.user-name { font-size: var(--text-sm); color: var(--fg-on-inverse); font-weight: var(--weight-medium); }
.user-role { display: block; font-size: var(--text-xs); color: var(--fg-on-inverse-muted); }
.icon-btn {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: transparent; color: var(--fg-on-inverse-muted);
  border: 0; cursor: pointer; margin-left: auto;
  transition: all var(--duration-fast) var(--ease-out);
}
.icon-btn:hover { background: oklch(1 0 0 / 0.06); color: var(--fg-on-inverse); }

/* ── Main + Topbar ───────────────────────────────────────────────────── */
.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-7);
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky; top: 0; z-index: var(--z-sticky);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.breadcrumb { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--fg-tertiary); }
.breadcrumb a { color: var(--fg-tertiary); text-decoration: none; }
.breadcrumb a:hover { color: var(--fg-secondary); }
.breadcrumb-sep { color: var(--gray-300); user-select: none; }
.breadcrumb-current { color: var(--fg-primary); font-weight: var(--weight-medium); }

.topbar-search { margin-left: var(--space-2); flex: 1; max-width: 360px; position: relative; }
.topbar-search input {
  width: 100%; height: 32px;
  padding: 0 var(--space-3) 0 32px;
  background: var(--bg-subtle); border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: inherit; font-size: var(--text-sm); color: var(--fg-primary);
  transition: all var(--duration-fast) var(--ease-out);
}
.topbar-search input::placeholder { color: var(--fg-tertiary); }
.topbar-search input:hover { background: var(--gray-100); }
.topbar-search input:focus-visible { background: var(--surface-1); border-color: var(--border-strong); box-shadow: var(--shadow-focus); }
.topbar-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--fg-tertiary); pointer-events: none; }
.topbar-search kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-sans); font-size: var(--text-2xs); color: var(--fg-tertiary);
  background: var(--surface-1); border: 1px solid var(--border-default);
  border-radius: var(--radius-xs); padding: 1px 5px; font-weight: var(--weight-medium);
}
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  height: 32px; padding: 0 var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--surface-1); color: var(--fg-primary);
  font-family: inherit; font-size: var(--text-sm);
  font-weight: var(--weight-medium); letter-spacing: var(--tracking-tight);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              transform var(--duration-instant) var(--ease-out);
  text-decoration: none;
}
.btn-secondary { border-color: var(--border-default); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--gray-50); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:active { transform: translateY(0.5px); box-shadow: var(--shadow-xs); }
.btn-primary {
  background: linear-gradient(180deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: 0 1px 0 inset oklch(1 0 0 / 0.16), 0 1px 2px oklch(0.20 0.020 260 / 0.20);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--brand-500), var(--brand-800));
  box-shadow: 0 1px 0 inset oklch(1 0 0 / 0.20), 0 2px 6px -1px oklch(0.30 0.180 265 / 0.30);
}
.btn-primary:active { transform: translateY(0.5px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost { color: var(--fg-secondary); }
.btn-ghost:hover { background: var(--gray-100); color: var(--fg-primary); }
.btn-icon { padding: 0; width: 32px; justify-content: center; }
.btn svg { flex-shrink: 0; }

/* ── Page header ─────────────────────────────────────────────────────── */
.page { padding: var(--space-7); max-width: 1440px; width: 100%; margin: 0 auto;
        display: flex; flex-direction: column; gap: var(--space-6); }

.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.page-title-block { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.page-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); color: var(--fg-tertiary);
  letter-spacing: var(--tracking-wide); font-weight: var(--weight-medium);
}
.page-eyebrow .dot {
  width: 6px; height: 6px; border-radius: var(--radius-full);
  background: var(--success-500);
  box-shadow: 0 0 0 3px oklch(0.66 0.150 152 / 0.18);
}
.page-eyebrow .badge-type {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--radius-full);
  background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--brand-200);
  font-size: var(--text-2xs); font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
}
.page-title {
  font-size: var(--text-3xl); font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tighter); line-height: var(--leading-tight);
  color: var(--fg-primary); margin: 0;
  display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap;
}
.page-title small { font-size: var(--text-md); font-weight: var(--weight-regular); color: var(--fg-tertiary); letter-spacing: var(--tracking-tight); }
.page-meta { display: flex; align-items: center; gap: var(--space-4); font-size: var(--text-sm); color: var(--fg-secondary); flex-wrap: wrap; }
.page-meta-item { display: inline-flex; align-items: center; gap: var(--space-2); }
.page-meta-item svg { color: var(--fg-tertiary); }
.page-actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

/* ── Section header ──────────────────────────────────────────────────── */
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.section-title { font-size: var(--text-lg); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); color: var(--fg-primary); margin: 0; }
.section-subtitle { margin-top: 2px; font-size: var(--text-sm); color: var(--fg-tertiary); }

/* ── Panels ──────────────────────────────────────────────────────────── */
.panel {
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.panel-title { font-size: var(--text-md); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); margin: 0; }
.panel-subtitle { margin-top: 2px; font-size: var(--text-xs); color: var(--fg-tertiary); }

/* ── Tags ────────────────────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs); font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-tight);
  border: 1px solid;
}
.tag-success { background: var(--success-50); color: var(--success-600); border-color: oklch(0.66 0.150 152 / 0.22); }
.tag-warn { background: var(--warn-50); color: var(--warn-600); border-color: oklch(0.72 0.150 70 / 0.22); }
.tag-danger { background: var(--danger-50); color: var(--danger-600); border-color: oklch(0.62 0.220 25 / 0.22); }
.tag-info { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-200); }
.tag-neutral { background: var(--gray-100); color: var(--fg-secondary); border-color: var(--border-default); }

/* ── Data table (공통) ─────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th {
  text-align: left; padding: var(--space-2) var(--space-3);
  font-size: var(--text-2xs); letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--fg-tertiary); font-weight: var(--weight-semibold);
  border-bottom: 1px solid var(--border-default);
}
.data-table tbody td {
  padding: var(--space-3); font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-subtle); color: var(--fg-primary);
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--bg-subtle); }
.data-table td.tabular { font-feature-settings: "tnum" 1; text-align: right; color: var(--fg-secondary); }

/* ── Footnote ────────────────────────────────────────────────────────── */
.footnote {
  font-size: var(--text-xs); color: var(--fg-tertiary);
  line-height: var(--leading-snug);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border-left: 2px solid var(--brand-300);
}
.footnote code.inline {
  font-family: var(--font-mono); font-size: 11px;
  background: var(--gray-100); padding: 1px 5px; border-radius: 3px; color: var(--fg-secondary);
}

/* ── Segmented (시나리오 토글 등) ──────────────────────────────────── */
.segmented { display: inline-flex; background: var(--gray-100); border-radius: var(--radius-md); padding: 2px; }
.segmented button {
  border: 0; background: transparent;
  height: 26px; padding: 0 var(--space-3); border-radius: 6px;
  font-family: inherit; font-size: var(--text-xs);
  font-weight: var(--weight-medium); color: var(--fg-secondary);
  cursor: pointer; letter-spacing: var(--tracking-tight);
  transition: all var(--duration-fast) var(--ease-out);
}
.segmented button:hover:not([aria-pressed="true"]) { color: var(--fg-primary); }
.segmented button[aria-pressed="true"] {
  background: var(--surface-1); color: var(--fg-primary); box-shadow: var(--shadow-xs);
}

/* ── 차트 공통 axis ──────────────────────────────────────────────────── */
.axis-line { stroke: var(--border-default); stroke-width: 1; }
.grid-line { stroke: var(--border-subtle); stroke-width: 1; stroke-dasharray: 2 3; }
.axis-label { font-size: 10px; fill: var(--fg-tertiary); font-family: var(--font-sans); }

/* ── Native range slider (Stripe-grade) ──────────────────────────── */
input[type=range][data-slider] {
  -webkit-appearance: none; appearance: none; cursor: pointer; background: transparent;
}
input[type=range][data-slider]::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(to right,
    var(--brand-500) 0%, var(--brand-500) var(--fill, 0%),
    var(--gray-150) var(--fill, 0%), var(--gray-150) 100%);
  border-radius: var(--radius-full);
}
input[type=range][data-slider]::-moz-range-track { height: 4px; background: var(--gray-150); border-radius: var(--radius-full); }
input[type=range][data-slider]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: var(--radius-full);
  background: var(--surface-1); border: 2px solid var(--brand-600);
  box-shadow: var(--shadow-sm);
  margin-top: -5px;
  transition: transform var(--duration-instant) var(--ease-out);
}
input[type=range][data-slider]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type=range][data-slider]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: var(--radius-full);
  background: var(--surface-1); border: 2px solid var(--brand-600); box-shadow: var(--shadow-sm);
}
input[type=range][data-slider]:focus-visible { outline: none; }
input[type=range][data-slider]:focus-visible::-webkit-slider-thumb { box-shadow: var(--shadow-focus); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ── v0 잠정 워터마크 (ISS-079) — 전 화면 공통, 외부검증 전 표시 ── */
body::after {
  content: "v0 시안 · 외부검증 전 · 수치 잠정";
  position: fixed;
  bottom: 10px;
  right: 12px;
  z-index: 9999;
  background: rgba(146, 64, 14, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2px;
  padding: 4px 10px;
  border-radius: 9px;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
