        :root {
            /* ===== NEUTRAL — Slate 10단계 (단일 진실원천) ===== */
            --slate-0:#ffffff; --slate-25:#fbfcfd; --slate-50:#f5f7f9; --slate-100:#eceff3;
            /* slate-400: 본문 대비 개선(기존 #9aa4b1 ~2.6:1 → 가독성 상향). 아이콘/3차텍스트 공용 앵커. */
            --slate-200:#dfe3e8; --slate-300:#cbd2da; --slate-400:#828c99; --slate-500:#6b7684;
            --slate-600:#48515e; --slate-700:#333d4b; --slate-800:#1f2630; --slate-900:#141a22;

            /* ===== PRIMARY — Indigo Ink (토스블루 탈피) ===== */
            --indigo-50:#eef1ff; --indigo-100:#dde3ff; --indigo-300:#94a4ff;
            --indigo-500:#4459e6; --indigo-600:#3445c9; --indigo-700:#2937a3;
            --indigo-glow:rgba(68,89,230,0.22);

            /* ===== ACCENT — Signal Teal (시그니처, 화면당 1~2회) ===== */
            --teal-50:#e6fbf6; --teal-300:#5fe3c4; --teal-500:#12c39a; --teal-600:#0fa583;
            --teal-glow:rgba(18,195,154,0.28);

            /* ===== SEMANTIC — 한국 관습(상승 빨강/하락 파랑) ===== */
            --up-500:#f0414f; --up-600:#d8323f; --up-tint:#fdecee; --up-glow:rgba(240,65,79,0.20);
            --down-500:#2f7ff0; --down-600:#1f63cc; --down-tint:#e9f2ff; --down-glow:rgba(47,127,240,0.18);
            --flat-500:#6b7684;
            --success-500:#0fa372; --warning-500:#f59e0b; --danger-500:#e23744;
            --orange-500:#ea580c; --orange-tint:#fff0e6;
            --success-tint:#e7f7ee; --warning-tint:#fff4e6;

            /* ===== 의미 별칭 — 스케일을 "참조만" (하위호환 + 누수 차단) ===== */
            --color-primary: var(--indigo-500);
            --color-primary-hover: var(--indigo-600);
            --color-primary-pressed: var(--indigo-700);
            --color-primary-tint: var(--indigo-50);
            --color-accent: var(--teal-500);
            --color-up: var(--up-500);   --color-up-tint: var(--up-tint);
            --color-down: var(--down-500); --color-down-tint: var(--down-tint);
            --color-flat: var(--flat-500);
            --color-success: var(--success-500); --color-warning: var(--warning-500); --color-danger: var(--danger-500);
            --color-elevated: var(--orange-500); --color-elevated-tint: var(--orange-tint);
            --color-success-tint: var(--success-tint); --color-warning-tint: var(--warning-tint);

            --bg-page: var(--slate-25);
            --bg-surface: var(--slate-0);
            --bg-subtle: var(--slate-50);
            --bg-hover: var(--slate-100);
            --text-strong: var(--slate-800);
            --text-primary: var(--slate-600);
            --text-secondary: var(--slate-500);
            --text-tertiary: var(--slate-400);
            --border: var(--slate-200);
            --border-strong: var(--slate-300);

            /* 기존 하위호환 별칭 유지 */
            --color-border: var(--border);
            --color-bg-light: var(--bg-subtle);
            --color-bg-white: var(--bg-surface);
            --color-text-primary: var(--text-primary);
            --color-text-secondary: var(--text-secondary);
            --color-text-tertiary: var(--text-tertiary);

            /* ===== Spacing: 8px 그리드 ===== */
            --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
            --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;

            /* ===== Radius ===== */
            --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-2xl: 24px; --r-full: 999px;

            /* ===== ELEVATION — 5단계 깊이 ===== */
            --elev-0: none;
            --elev-1: 0 1px 2px rgba(20,26,34,0.03), 0 1px 2px rgba(20,26,34,0.04);
            --elev-2: 0 1px 2px rgba(20,26,34,0.04), 0 4px 10px rgba(20,26,34,0.05);
            --elev-3: 0 2px 4px rgba(20,26,34,0.05), 0 10px 24px rgba(20,26,34,0.08);
            --elev-4: 0 8px 16px rgba(20,26,34,0.08), 0 24px 56px rgba(20,26,34,0.16);
            /* 하위호환 */
            --shadow-card: var(--elev-2);
            --shadow-hover: var(--elev-3);
            --shadow-pop: var(--elev-4);

            /* ===== SURFACE TREATMENT ===== */
            --surface-card: linear-gradient(180deg, #ffffff 0%, #fcfdfe 100%);
            --surface-hairline: inset 0 0 0 1px rgba(20,26,34,0.04);
            --surface-top-light: inset 0 1px 0 rgba(255,255,255,0.9);
            --surface-deep: radial-gradient(120% 140% at 0% 0%, #2b3566 0%, #1a2142 55%, #141a33 100%);
            --surface-deep-text: #eaedff;
            --surface-deep-glow: 0 8px 40px rgba(26,33,66,0.45);

            /* ===== Typography ===== */
            --font-sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", system-ui, sans-serif;
            --font-num: "Pretendard Variable", "SF Pro Display", -apple-system, var(--font-sans);
            --fs-display: 40px; --fs-h1: 28px; --fs-h2: 20px; --fs-h3: 16px;
            --fs-body: 15px; --fs-sm: 13px; --fs-xs: 12px; --fs-caption: 11px;
            --tracking-display: -0.035em; --tracking-tight: -0.02em;
            --lh-tight: 1.2; --lh-normal: 1.5; --lh-relaxed: 1.7;

            /* ===== Motion ===== */
            --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
            --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
            --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
            --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
            --ease-out-back: cubic-bezier(0.34, 1.4, 0.64, 1);
            --dur-fast: 0.12s; --dur: 0.18s; --dur-base: 0.18s; --dur-slow: 0.28s; --dur-slower: 0.4s;
            --flash-up: rgba(240,68,82,0.16);
            --flash-down: rgba(49,130,246,0.16);

            /* ===== Breakpoints (reference) ===== */
            --bp-mobile: 640px; --bp-tablet: 1024px;
            --sidebar-width: 240px;
            /* 모바일 바텀시트/탭바 계산용 토큰 */
            --tabbar-h: 56px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
            --z-tabbar: 60; --z-more-overlay: 70; --z-more-sheet: 71;

            accent-color: var(--indigo-500);
        }

        /* ===== DARK THEME — 의미 토큰만 재정의(전 화면 자동 적용) ===== */
        html[data-theme="dark"] {
            color-scheme: dark;
            /* 표면 */
            --bg-page:#0f1419; --bg-surface:#1a212c; --bg-subtle:#222b38; --bg-hover:#2a3441;
            /* 텍스트 */
            --text-strong:#e9edf2; --text-primary:#c3ccd6; --text-secondary:#97a2af; --text-tertiary:#8893a1;
            /* 경계 */
            --border:#2b3542; --border-strong:#3a4654;
            /* 의미색 — 다크 가독성 위해 약간 밝게, 틴트는 반투명 */
            --color-up:#ff5b66; --color-up-tint:rgba(240,65,79,0.18);
            --color-down:#5b9bff; --color-down-tint:rgba(47,127,240,0.20);
            --color-primary:#6f81ff; --color-primary-hover:#8593ff; --color-primary-pressed:#9aa6ff; --color-primary-tint:rgba(68,89,230,0.22);
            --color-accent:#22d3aa;
            --color-success:#2bbd86; --color-success-tint:rgba(15,163,114,0.20);
            --color-warning:#fbbf24; --color-warning-tint:rgba(245,158,11,0.18);
            --color-danger:#f2606c;
            --color-elevated:#fb8c4b; --color-elevated-tint:rgba(234,88,12,0.20);
            /* 표면 트리트먼트 */
            --surface-card:linear-gradient(180deg,#1d2531 0%,#1a212c 100%);
            --surface-hairline:inset 0 0 0 1px rgba(255,255,255,0.05);
            --surface-top-light:inset 0 1px 0 rgba(255,255,255,0.04);
            /* 그림자 — 다크에선 더 진하게 */
            --elev-1:0 1px 2px rgba(0,0,0,0.4),0 1px 3px rgba(0,0,0,0.5);
            --elev-2:0 2px 4px rgba(0,0,0,0.35),0 6px 16px rgba(0,0,0,0.5);
            --elev-3:0 4px 8px rgba(0,0,0,0.4),0 14px 32px rgba(0,0,0,0.55);
            --elev-4:0 8px 16px rgba(0,0,0,0.45),0 24px 56px rgba(0,0,0,0.65);
            --shadow-card:var(--elev-2); --shadow-hover:var(--elev-3); --shadow-pop:var(--elev-4);
            scrollbar-color: var(--slate-600) transparent;
        }
        html[data-theme="dark"] *::-webkit-scrollbar-thumb { background: var(--slate-600); background-clip: content-box; }
        html[data-theme="dark"] *::-webkit-scrollbar-thumb:hover { background: var(--slate-500); background-clip: content-box; }
        /* 시장 태그 다크 처리는 통합 .mkt-tag(아래 LIVING TERMINAL 섹션)로 일원화. */

        /* ===== 테마 토글 버튼 ===== */
        .sidebar-title-row { display:flex; align-items:center; justify-content:space-between; gap:var(--sp-2); }
        .theme-toggle { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border:1px solid var(--border); border-radius:var(--r-full); background:var(--bg-surface); color:var(--text-secondary); cursor:pointer; flex:0 0 auto; transition:color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
        .theme-toggle:hover { color:var(--text-strong); border-color:var(--border-strong); background:var(--bg-hover); }
        .theme-toggle svg { width:16px; height:16px; }
        .theme-toggle .tt-sun { display:none; }
        .theme-toggle .tt-moon { display:block; }
        html[data-theme="dark"] .theme-toggle .tt-sun { display:block; }
        html[data-theme="dark"] .theme-toggle .tt-moon { display:none; }

        /* ===== 접이식 카드(부차 섹션 밀도 축소) — 어느 페이지서나 재사용 ===== */
        .collapse-card { padding: 0; }
        .collapse-card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-4) var(--sp-5); font-size: var(--fs-sm); font-weight: 700; color: var(--text-strong); }
        .collapse-card > summary::-webkit-details-marker { display: none; }
        .collapse-card > summary::after { content: ""; margin-left: auto; flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid var(--text-tertiary); border-bottom: 2px solid var(--text-tertiary); transform: rotate(45deg); transition: transform var(--dur) var(--ease); }
        .collapse-card[open] > summary::after { transform: rotate(225deg); }
        .collapse-card > .collapse-body { padding: 0 var(--sp-5) var(--sp-5); }

        /* ===== 페이지 리드(부제) 공통 — 페이지별 *-lede 중복 통합 ===== */
        .page-lede { font-size: var(--fs-sm); color: var(--text-secondary); line-height: var(--lh-relaxed); margin: 0 0 var(--sp-5); max-width: 72ch; }
        .page-updated { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: var(--fs-caption, 11px); font-weight: 600; color: var(--text-tertiary); font-variant-numeric: tabular-nums; white-space: nowrap; }

        ::selection { background: var(--teal-glow); color: var(--text-strong); }
        /* 포커스링 단일 소스 — outline+offset(box-shadow는 .card{overflow:hidden}에 잘림).
           teal 솔리드로 가시성 확보, 전 인터랙티브 요소 공통. */
        :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: var(--r-sm); box-shadow: none; }
        :focus:not(:focus-visible) { outline: none; }
        * { scrollbar-width: thin; scrollbar-color: var(--slate-300) transparent; }
        *::-webkit-scrollbar { width: 10px; height: 10px; }
        *::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
        *::-webkit-scrollbar-thumb:hover { background: var(--slate-400); background-clip: content-box; }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
        body {
            font-family: var(--font-sans);
            background: var(--bg-page);
            color: var(--text-primary);
            font-size: var(--fs-body);
            line-height: var(--lh-normal);
            letter-spacing: -0.01em;
            -webkit-font-smoothing: antialiased;
            min-height: 100vh;
            /* 가로 오버플로우 차단 — 모바일에서 화면이 좌측으로 밀려 우측 빈공간
               생기던 문제(긴 콘텐츠/마퀴 등이 뷰포트보다 넓어질 때) 방지. */
            max-width: 100%; overflow-x: hidden;
            display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0;
        }
        /* 숫자는 고정폭으로 — 표·수익률이 흔들리지 않게 */
        .tnum, table td, .value, .ov-perf-pct, .nc-pct, .track-pct, .metric-card .value {
            font-feature-settings: "tnum" 1;
            font-variant-numeric: tabular-nums;
        }

        /* ===== Macro bar ===== */
        .macro-bar {
            grid-column: 1 / -1; grid-row: 1; background: var(--bg-surface);
            border-bottom: 1px solid var(--border); padding: 12px var(--sp-6);
            display: flex; gap: var(--sp-6); font-size: var(--fs-sm);
            overflow-x: auto; -webkit-overflow-scrolling: touch;
        }
        .macro-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
        .macro-label { font-size: var(--fs-xs); font-weight: 500; color: var(--text-tertiary); }
        .macro-value { font-size: var(--fs-sm); font-weight: 700; color: var(--text-strong); font-variant-numeric: tabular-nums; }
        .macro-change { font-size: var(--fs-xs); font-weight: 600; }

        /* ===== Sidebar (desktop) ===== */
        .sidebar {
            grid-row: 2; grid-column: 1; background: var(--bg-surface);
            border-right: 1px solid var(--border); padding: var(--sp-5) var(--sp-3); overflow-y: auto;
        }
        .sidebar-header { padding: 0 var(--sp-2) var(--sp-4); margin-bottom: var(--sp-3); }
        .sidebar-title { font-size: var(--fs-h3); font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; }
        /* 브랜드 로고(로고마크 + 워드마크) — 클릭 시 개요(/)로 이동 */
        .brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; border-radius: 10px; padding: 3px 6px; margin: -3px -6px; transition: background .15s; }
        .brand:hover { background: var(--color-primary-tint, rgba(68,89,230,0.10)); }
        .brand-logo { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--color-primary, #4459e6), #7b5bff); box-shadow: 0 2px 7px rgba(68,89,230,0.38); flex: 0 0 auto; }
        .brand-logo svg { width: 18px; height: 18px; }
        .brand-text { font-size: var(--fs-h3); font-weight: 800; color: var(--text-strong); letter-spacing: -0.03em; }
        .brand-text b { font-weight: 800; color: var(--color-primary); }
        .user-selector { width: 100%; padding: 11px 12px; margin-top: var(--sp-3); border: 1px solid var(--border); border-radius: var(--r-md); font-size: var(--fs-sm); font-family: inherit; background: var(--bg-surface); color: var(--text-strong); }
        .auth-box { margin-top: var(--sp-3); }
        .auth-who { font-size: var(--fs-xs); color: var(--text-primary); font-weight: 600; margin-bottom: 6px; }
        .auth-btn { display: block; text-align: center; padding: 10px 12px; border-radius: var(--r-md); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; min-height: 40px; box-sizing: border-box; }
        .auth-login { background: #5865F2; color: white; }
        .auth-login:hover { background: #4752c4; }
        .auth-logout { background: var(--bg-surface); color: var(--text-secondary); border: 1px solid var(--border); }
        .auth-logout:hover { background: var(--bg-subtle); }
        .auth-disabled { font-size: var(--fs-caption); color: var(--text-tertiary); }
        .sidebar nav { display: flex; flex-direction: column; gap: 2px; }
        .sidebar nav a {
            padding: 12px 14px; border-radius: var(--r-md);
            color: var(--text-secondary); font-size: var(--fs-sm); font-weight: 600;
            text-decoration: none; border-left: none;
            transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
        }
        .sidebar nav a:hover { background: var(--bg-subtle); color: var(--text-primary); }
        .sidebar nav a.active { background: var(--color-primary-tint); color: var(--color-primary); }
        .nav-group-label { padding: 14px 14px 5px; font-size: var(--fs-xs); font-weight: 700; color: var(--text-tertiary); letter-spacing: 0.04em; text-transform: uppercase; }
        .nav-group-label:first-child { padding-top: 2px; }
        .sidebar nav button.nav-push-toggle { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 6px; background: transparent; cursor: pointer; text-align: left; font-family: inherit; }
        .nav-push-toggle.nav-push-on { color: var(--color-primary); background: var(--color-primary-tint); }
        .sidebar nav button.nav-link { display: flex; align-items: center; gap: 10px; width: 100%; border: none; background: transparent; cursor: pointer; text-align: left; font-family: inherit; padding: 12px 14px; border-radius: var(--r-md); color: var(--text-secondary); font-size: var(--fs-sm); font-weight: 600; }
        .sidebar nav button.nav-link:hover { background: var(--bg-subtle); color: var(--text-primary); }

        /* ===== Main / layout ===== */
        /* overflow-y:auto 면 overflow-x 가 auto 로 계산돼 가로 스크롤이 생김 →
           명시적 hidden 으로 막음(개요 마퀴 등 넓은 콘텐츠가 화면 미는 문제). */
        main { grid-row: 2; grid-column: 2; padding: var(--sp-6); overflow-y: auto; overflow-x: hidden; min-width: 0; }
        .container { width: 100%; min-width: 0; max-width: 100%; }
        header { background: var(--bg-surface); padding: var(--sp-6); border-radius: var(--r-xl); margin-bottom: var(--sp-5); box-shadow: var(--elev-1), var(--surface-hairline); }
        h2 { font-size: var(--fs-h1); font-weight: 800; color: var(--text-strong); letter-spacing: var(--tracking-display); line-height: var(--lh-tight); margin-bottom: var(--sp-4); }
        h3 { font-size: var(--fs-h3); font-weight: 700; color: var(--text-strong); margin-bottom: var(--sp-3); }

        /* ===== Cards — elevation + 표면 질감(그라데이션·헤어라인·상단 하이라이트) ===== */
        .card { background: var(--bg-surface); padding: var(--sp-5); border-radius: var(--r-lg); box-shadow: var(--elev-1), var(--surface-hairline); border: none; overflow: hidden; }
        .card--lg { padding: var(--sp-6); border-radius: var(--r-xl); }
        .card--raised { box-shadow: var(--elev-2), var(--surface-hairline); }
        .card--flush { box-shadow: var(--surface-hairline); background: var(--bg-subtle); }
        .card--interactive { transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); cursor: pointer; }
        .card--interactive:hover { box-shadow: var(--elev-2), var(--surface-hairline); transform: translateY(-2px); }
        .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-5); }

        /* ===== DEEP HERO — 영웅 카드 1곳(딥 인디고 + 티얼 글로우 시그니처) ===== */
        .hero-deep { background: var(--surface-deep); color: var(--surface-deep-text); border-radius: var(--r-xl); box-shadow: var(--surface-deep-glow); position: relative; overflow: hidden; }
        .hero-deep::after { content:""; position:absolute; top:-40%; right:-15%; width:280px; height:280px; border-radius:50%; background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%); pointer-events:none; }

        /* ===== .num — 숫자 영웅화 (통화기호/부호 서브스케일) ===== */
        .num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-display); font-weight: 800; }
        .num--display { font-size: var(--fs-display); line-height: 1.1; }
        .num--lg { font-size: 28px; }
        .num--md { font-size: 20px; font-weight: 700; }
        .num .unit, .num .sign { font-size: 0.62em; font-weight: 700; opacity: 0.7; letter-spacing: 0; vertical-align: 0.06em; }
        .num.up { color: var(--color-up); } .num.down { color: var(--color-down); } .num.flat { color: var(--color-flat); }

        /* ===== .delta — 통일 수익률 칩 (CSS 삼각형 + 강변동 글로우, 제품 시그니처) ===== */
        .delta { display:inline-flex; align-items:center; gap:4px; padding:4px 9px 4px 7px; border-radius: var(--r-full); font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight:700; font-size: var(--fs-sm); letter-spacing: var(--tracking-tight); line-height:1; }
        .delta::before { font-size:0.7em; line-height:1; }
        .delta.up { color:var(--up-600); background:var(--up-tint); } .delta.up::before { content:"▲"; }
        .delta.down { color:var(--down-600); background:var(--down-tint); } .delta.down::before { content:"▼"; }
        .delta.flat { color:var(--flat-500); background:var(--bg-subtle); } .delta.flat::before { content:"–"; }
        .delta.up.is-strong { box-shadow: 0 0 0 3px var(--up-glow); }
        .delta.down.is-strong { box-shadow: 0 0 0 3px var(--down-glow); }

        /* ===== Metric cards (big numbers) ===== */
        .metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: var(--sp-4); margin-bottom: var(--sp-6); }
        .metric-card { background: var(--bg-surface); padding: var(--sp-5); border-radius: var(--r-lg); box-shadow: var(--elev-1), var(--surface-hairline); }
        .metric-card h3 { font-size: var(--fs-sm); font-weight: 500; color: var(--text-secondary); margin-bottom: var(--sp-2); }
        .metric-card .value { font-size: 28px; font-weight: 700; color: var(--text-strong); line-height: var(--lh-tight); letter-spacing: -0.02em; }
        .metric-card.highlight { background: var(--color-primary-tint); }
        .metric-card.highlight h3 { color: var(--text-secondary); }
        .metric-card.highlight .value { color: var(--color-primary); }

        /* ===== Buttons ===== */
        .btn {
            display: inline-flex; align-items: center; justify-content: center; gap: 6px;
            padding: 14px 20px; min-height: 48px;
            border: none; border-radius: var(--r-md);
            font-family: inherit; font-size: var(--fs-body); font-weight: 600;
            cursor: pointer; transition: background var(--dur) var(--ease), transform 0.08s var(--ease);
        }
        .btn:active { transform: scale(0.97); }
        .btn--primary { background: var(--color-primary); color: #fff; }
        .btn--primary:hover { background: var(--color-primary-hover); }
        .btn--primary:active { background: var(--color-primary-pressed); }
        .btn--secondary { background: var(--bg-subtle); color: var(--text-primary); }
        .btn--secondary:hover { background: var(--bg-hover); }
        .btn--ghost { background: transparent; color: var(--text-secondary); }
        .btn--block { width: 100%; }
        .btn--sm { padding: 8px 12px; min-height: 36px; font-size: var(--fs-sm); border-radius: var(--r-sm); }

        /* ===== Input / Select ===== */
        .input, .pf-add-form input, .edit-form input, .track-select {
            width: 100%; padding: 13px 14px; min-height: 48px;
            border: 1px solid var(--border); border-radius: var(--r-md);
            font-family: inherit; font-size: var(--fs-body); color: var(--text-strong);
            background: var(--bg-surface);
            transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
        }
        .input::placeholder { color: var(--text-tertiary); }
        .input:focus, .pf-add-form input:focus, .track-select:focus {
            outline: none; border-color: var(--color-primary);
            box-shadow: 0 0 0 3px var(--color-primary-tint);
        }

        /* ===== Filter chips / segments ===== */
        .chip-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }
        .chip {
            display: inline-flex; align-items: center; justify-content: center;
            padding: 10px 14px; min-height: 44px;
            border: none; border-radius: var(--r-sm);
            background: var(--bg-subtle); color: var(--text-secondary);
            font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
            transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
        }
        .chip:hover { background: var(--bg-hover); }
        .chip.active { background: var(--color-primary-tint); color: var(--color-primary); }

        /* 포커스 링은 위 전역 :focus-visible(outline+offset) 단일 규칙으로 통일.
           별도 box-shadow 링 정의는 제거(중복·overflow 잘림 방지). */

        /* ===== Badges ===== */
        .badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-sm); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
        .badge--blue  { background: var(--color-primary-tint); color: var(--color-primary); }
        .badge--up    { background: var(--color-up-tint);   color: var(--color-up); }
        .badge--down  { background: var(--color-down-tint); color: var(--color-down); }
        .badge--gray  { background: var(--bg-subtle); color: var(--text-secondary); }
        .badge--green { background: var(--color-success-tint); color: var(--color-success); }

        /* ===== Figures (numbers as hero) ===== */
        .figure { font-size: var(--fs-display); font-weight: 800; line-height: var(--lh-tight); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
        .figure--md { font-size: 24px; font-weight: 700; }
        .figure--sm { font-size: 18px; font-weight: 700; }
        .figure.up   { color: var(--color-up); }
        .figure.down { color: var(--color-down); }
        .figure.flat { color: var(--color-flat); }
        .pnl-positive { color: var(--color-up); font-weight: 700; }
        .pnl-negative { color: var(--color-down); font-weight: 700; }

        /* ===== Tables ===== */
        .table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: var(--sp-6); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
        .table-wrap > table { margin-bottom: 0; box-shadow: none; }
        table { width: 100%; border-collapse: collapse; background: var(--bg-surface); border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--sp-6); }
        table thead { background: transparent; }
        table th { padding: 14px 16px; text-align: left; font-size: var(--fs-xs); font-weight: 600; color: var(--text-tertiary); border-bottom: 1px solid var(--border); white-space: nowrap; }
        table td { padding: 16px; text-align: left; font-size: var(--fs-sm); color: var(--text-primary); border-bottom: 1px solid var(--border); }
        table tbody tr:last-child td { border-bottom: none; }
        table tbody tr { transition: background var(--dur) var(--ease); }
        table tbody tr:hover { background: var(--bg-subtle); }

        /* ===== Info box (soft) ===== */
        .info-box {
            background: var(--bg-subtle); border: none; border-left: none;
            border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-6);
            color: var(--text-secondary); font-size: var(--fs-sm); line-height: var(--lh-relaxed);
        }
        .info-box strong { color: var(--text-primary); }
        .info-box ul { padding-left: 18px; margin-top: var(--sp-2); }

        /* ===== State: skeleton ===== */
        .skel { position: relative; overflow: hidden; background: var(--bg-subtle); border-radius: 8px; display: inline-block; }
        .skel::after {
            content:""; position:absolute; inset:0; transform: translateX(-100%);
            background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
            animation: skel-shimmer 1.6s infinite;
        }
        @keyframes skel-shimmer { 100% { transform: translateX(100%); } }
        .skel-line { height: 12px; margin: 6px 0; }
        .skel-num  { height: 24px; width: 90px; }

        /* ===== State: value-change flash ===== */
        @keyframes value-flash { 0% { background: rgba(49,130,246,.18); } 100% { background: transparent; } }
        .value-flash { animation: value-flash .6s ease-out; border-radius: 6px; }

        /* ===== State: empty ===== */
        .empty-state { text-align:center; padding:40px 20px; }
        .empty-emoji { font-size:40px; margin-bottom:12px; opacity:.9; }
        .empty-title { font-size:15px; font-weight:700; color:var(--text-primary); margin-bottom:6px; }
        .empty-desc  { font-size:13px; color:var(--text-secondary); line-height:1.6; max-width:280px; margin:0 auto 14px; }
        .empty-cta   { display:inline-block; padding:9px 16px; background:var(--color-primary); color:#fff; border-radius:8px; font-size:13px; font-weight:600; text-decoration:none; }
        /* 섹션 라벨 — section_label 매크로(전 화면 공용, 복붙 제거) */
        .section-label { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--text-tertiary); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
        .section-label--mt { margin-top: 32px; }
        .section-label-ico { width: 15px; height: 15px; color: var(--text-tertiary); }
        .section-label-dim { color: var(--text-tertiary); font-weight: 600; }

        /* ===== State: toast ===== */
        .toast-wrap { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:2000; display:flex; flex-direction:column; gap:8px; align-items:center; }
        .toast { padding:11px 16px; border-radius:10px; font-size:13px; font-weight:600; color:#fff; box-shadow:0 4px 16px rgba(0,0,0,.18); opacity:0; transform:translateY(8px); transition:all .25s; }
        .toast.show { opacity:1; transform:translateY(0); }
        .toast.ok   { background: var(--color-down); }
        .toast.err  { background: var(--color-up); }

        /* ============================================================
           DATA VIZ — 인라인 SVG/CSS 7종 (외부 라이브러리 0)
           ============================================================ */
        /* 3.1 양방향 수익률 막대 (divbar) */
        .divbar { position: relative; height: 8px; border-radius: var(--r-full); background: var(--bg-subtle); overflow: hidden; }
        .divbar::before { content:""; position:absolute; left:50%; top:0; bottom:0; width:1px; background: var(--border-strong); z-index:1; }
        .divbar-fill { position:absolute; top:0; bottom:0; border-radius: var(--r-full); transition: width var(--dur) var(--ease), left var(--dur) var(--ease); }
        .divbar-fill.up { left:50%; background: var(--color-up); }
        .divbar-fill.down { right:50%; background: var(--color-down); }
        /* 3.2 SVG 스파크라인 */
        .spark { display:block; width:100%; height:28px; }
        .spark path { fill:none; stroke-width:1.6; vector-effect: non-scaling-stroke; }
        .spark .area { stroke:none; opacity:0.12; }
        .spark.up path { stroke: var(--color-up); } .spark.up .area { fill: var(--color-up); }
        .spark.down path { stroke: var(--color-down); } .spark.down .area { fill: var(--color-down); }
        /* 3.3 비중 도넛 (conic) */
        .donut { position:relative; width:132px; height:132px; border-radius:50%; }
        .donut::after { content:""; position:absolute; inset:22%; border-radius:50%; background: var(--bg-surface); }
        .donut-center { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; z-index:1; text-align:center; }
        .donut-center .dc-val { font-size: var(--fs-h3); font-weight:800; color: var(--text-strong); }
        .donut-center .dc-lbl { font-size: var(--fs-caption); color: var(--text-tertiary); }
        .donut-legend { display:flex; flex-direction:column; gap:6px; }
        .donut-leg-item { display:flex; align-items:center; gap:8px; font-size: var(--fs-sm); }
        .donut-leg-dot { width:10px; height:10px; border-radius:3px; flex:0 0 auto; }
        .donut-leg-pct { margin-left:auto; font-weight:700; font-variant-numeric: tabular-nums; color: var(--text-secondary); }
        /* 3.4 수평 비중/신뢰도 막대 (hbar) */
        .hbar { height:6px; border-radius: var(--r-full); background: var(--bg-subtle); overflow:hidden; }
        .hbar-fill { height:100%; border-radius: var(--r-full); transition: width var(--dur) var(--ease); }
        .hbar-fill.primary { background: var(--color-primary); }
        .hbar-fill.up { background: var(--color-up); }
        .hbar-fill.grad { background: linear-gradient(90deg, var(--color-warning), var(--color-success)); }
        /* 3.5 진입-손절-목표 레인지 바 (스윙) */
        .range-bar { position:relative; height:36px; margin:8px 0 14px; }
        .range-track { position:absolute; top:50%; left:0; right:0; height:6px; transform:translateY(-50%); border-radius: var(--r-full); background: linear-gradient(90deg, var(--color-down-tint), var(--bg-subtle), var(--color-up-tint)); }
        .range-stop, .range-target, .range-entry, .range-now { position:absolute; top:50%; transform:translate(-50%,-50%); }
        .range-stop, .range-target { width:2px; height:16px; border-radius:1px; }
        .range-stop { background: var(--color-down); } .range-target { background: var(--color-up); }
        .range-entry { width:2px; height:12px; background: var(--text-tertiary); }
        .range-now { width:12px; height:12px; border-radius:50%; background: var(--bg-surface); border:2.5px solid var(--color-primary); box-shadow: var(--elev-1); z-index:2; }
        .range-tick { position:absolute; top:calc(50% + 12px); transform:translateX(-50%); font-size:9px; font-weight:700; white-space:nowrap; }
        .r-badge { display:inline-block; font-size: var(--fs-caption); font-weight:700; color: var(--text-secondary); background: var(--bg-subtle); padding:2px 8px; border-radius: var(--r-sm); }
        /* 3.6 승/패 분포 스택 바 (winloss) */
        .winloss { display:flex; height:28px; border-radius: var(--r-sm); overflow:hidden; font-size: var(--fs-caption); font-weight:700; }
        .winloss .wl-seg { display:flex; align-items:center; justify-content:center; color:#fff; white-space:nowrap; }
        .winloss .wl-win { background: var(--color-up); } .winloss .wl-stop { background: var(--color-down); } .winloss .wl-hold { background: var(--text-tertiary); }
        /* 3.7 반원 게이지 */
        .gauge { width:120px; height:64px; }
        .gauge .g-track { fill:none; stroke: var(--bg-subtle); stroke-width:9; stroke-linecap:round; }
        .gauge .g-fill { fill:none; stroke-width:9; stroke-linecap:round; transition: stroke-dashoffset var(--dur) var(--ease); }

        /* ============================================================
           MOTION — 방향성 flash · 진입 stagger · 탭 인디케이터
           ============================================================ */
        /* 방향성 데이터 flash (상승 빨강 / 하락 파랑) */
        @keyframes flash-up { 0% { background: var(--flash-up); } 100% { background: transparent; } }
        @keyframes flash-down { 0% { background: var(--flash-down); } 100% { background: transparent; } }
        .flash-up { animation: flash-up .7s var(--ease-out); border-radius:6px; }
        .flash-down { animation: flash-down .7s var(--ease-out); border-radius:6px; }
        /* 진입 stagger fade-up */
        @keyframes enter-up { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }
        .stagger > * { opacity:0; animation: enter-up var(--dur-slow) var(--ease-out) forwards; animation-delay: calc(var(--i,0) * 40ms); }
        /* 데스크탑 nav active 좌측 바 */
        nav a.active { position: relative; }
        /* Lucide 아이콘 */
        .nav-ico { width:20px; height:20px; stroke-width:1.75; flex:0 0 auto; vertical-align:-0.2em; }
        .tab-ico svg, .mg-ico svg { width:22px; height:22px; stroke-width:1.75; }
        nav a { display:flex; align-items:center; gap:10px; }
        nav a .nav-ico { color: var(--slate-400); transition: color var(--dur) var(--ease); }
        nav a.active .nav-ico { color: var(--indigo-500); }

        /* ===== Mobile bottom tab bar + more sheet ===== */
        .tabbar { display: none; }
        .more-sheet, .more-overlay { display: none; }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
            .stagger > * { opacity: 1 !important; }
            .empty-emoji { animation: none !important; }
        }

        /* ===== Tablet/Mobile ===== */
        @media (max-width: 768px) {
            body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
            .macro-bar { gap: 18px; padding: 10px 14px; font-size: 12px; }

            /* 사이드바 숨김 (데스크탑 전용) — 모바일은 하단 탭바 */
            .sidebar { display: none; }

            main { grid-row: 2; grid-column: 1; padding: 16px 16px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
            header { padding: var(--sp-5); }
            h2 { font-size: 22px; }

            .grid-2 { grid-template-columns: minmax(0, 1fr); }
            .metrics { grid-template-columns: minmax(0, 1fr); }

            /* 하단 고정 탭바 */
            .tabbar {
                display: flex; flex-direction: row;
                position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
                background: rgba(255,255,255,0.92);
                backdrop-filter: saturate(180%) blur(12px);
                -webkit-backdrop-filter: saturate(180%) blur(12px);
                border-top: 1px solid var(--border);
                padding-bottom: env(safe-area-inset-bottom);
                height: calc(56px + env(safe-area-inset-bottom));
            }
            .tab {
                position: relative;
                flex: 1; min-width: 0; min-height: 56px;
                display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
                background: none; border: 0; cursor: pointer;
                text-decoration: none; color: var(--text-tertiary); font: inherit;
                transition: color var(--dur-base) var(--ease);
            }
            .tab.active { color: var(--color-primary); }
            .tab.active::before {
                content:""; position:absolute; top:0; left:50%; width:20px; height:3px;
                border-radius:0 0 3px 3px; background: var(--color-primary);
                transform: translateX(-50%) scaleX(0);
                animation: tab-bar-in var(--dur-slow) var(--ease-spring) forwards;
            }
            @keyframes tab-bar-in { to { transform: translateX(-50%) scaleX(1); } }
            .tab.active .tab-ico { animation: tab-pop var(--dur-slow) var(--ease-spring); }
            @keyframes tab-pop { 0% { transform: scale(1); } 50% { transform: scale(1.18); } 100% { transform: scale(1); } }
            .tab-ico { line-height: 1; display: flex; }
            .tab-ico svg { width: 22px; height: 22px; }
            .tab-lbl { font-size: 10px; font-weight: 600; }

            /* 더보기 시트 */
            .more-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: var(--z-more-overlay); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
            body.more-open .more-overlay { opacity: 1; pointer-events: auto; }
            /* flex column: 핸들+제목은 고정 헤더, 항목은 본문에서만 스크롤(transform이 sticky를 깨던 문제 해소). */
            .more-sheet {
                display: flex; flex-direction: column;
                position: fixed; left: 0; right: 0;
                bottom: calc(var(--tabbar-h) + var(--safe-b));
                z-index: var(--z-more-sheet);
                background: var(--bg-surface); border-top: 1px solid var(--border);
                border-radius: 16px 16px 0 0; box-shadow: 0 -8px 28px rgba(0,0,0,0.16);
                padding: 0;
                max-height: calc(100vh  - var(--tabbar-h) - var(--safe-b) - var(--safe-t) - 12px);
                max-height: calc(100svh - var(--tabbar-h) - var(--safe-b) - var(--safe-t) - 12px);
                transform: translateY(100%); opacity: 0; visibility: hidden;
                transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur) var(--ease-out), visibility 0s linear var(--dur-slow);
                will-change: transform;
            }
            @supports (height: 100dvh) { .more-sheet { max-height: calc(100dvh - var(--tabbar-h) - var(--safe-b) - var(--safe-t) - 12px); } }
            body.more-open .more-sheet { transform: translateY(0); opacity: 1; visibility: visible; transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur) var(--ease-out); }
            .more-sheet > .more-head { flex: 0 0 auto; padding: 10px 16px 8px; background: var(--bg-surface); border-radius: 16px 16px 0 0; }
            .more-sheet > .more-head::before { content: ""; display: block; width: 36px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: var(--border-strong); }
            .more-sheet > .more-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 16px calc(16px + var(--safe-b)); }
            .mg-sec-lbl { font-size: var(--fs-xs); font-weight: 700; color: var(--text-tertiary); letter-spacing: .04em; margin: 16px 2px 8px; }
            .mg-sec-lbl:first-child { margin-top: 2px; }
            .more-title { font-size: var(--fs-sm); font-weight: 700; color: var(--text-strong); margin: 0; text-align: left; }
            .more-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 0; }
            .more-grid a, .more-grid button.mg-btn {
                display: flex; flex-direction: column; align-items: center; gap: 6px;
                padding: 12px 8px; min-height: 58px; border-radius: var(--r-md);
                background: var(--bg-subtle); text-decoration: none; border: none; cursor: pointer;
                font-family: inherit;
                color: var(--text-primary); font-size: 12px; font-weight: 600; text-align: center;
            }
            .more-grid a .mg-ico, .more-grid button.mg-btn .mg-ico { font-size: 22px; }
            .more-sheet .user-selector { width: 100%; margin: 0 0 10px; }
            .more-sheet .auth-box { margin: 0; }
        }

        /* ===== Phone ===== */
        @media (max-width: 480px) {
            .macro-bar { gap: 14px; padding: 10px 12px; }
            main { padding: 14px 16px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
            .card { padding: var(--sp-4); }
            .section-label--mt { margin-top: var(--sp-6); }
            table th, td { padding: 12px; }
            h2 { font-size: 20px; }
            .metric-card .value { font-size: 26px; }
        }

/* ── UI/UX 패널: 공용 컴포넌트 추가 ───────────────────────────────────── */
/* 투자 면책 — disclaimer() 매크로용. 수익률/시그널 페이지 하단 일괄. */
.disclaimer {
    font-size: var(--fs-caption, 11px);
    line-height: 1.6;
    color: var(--text-tertiary);
    margin-top: var(--sp-5, 20px);
    padding-top: var(--sp-3, 12px);
    border-top: 1px solid var(--border);
}
/* 아이콘 버튼 터치 타깃 44px 보장 — 시각 크기 유지, 히트영역만 확장.
   삭제·닫기·토글 등 작은 아이콘 버튼 오탭 방지(모바일). */
.wl-rm-btn, .al-del-btn, .mk-chart-close, .cr-coin-toggle,
.pf-rvc-toggle, .al-delall, .al-del-btn, .nav-push-toggle {
    position: relative;
}
@media (hover: none) and (pointer: coarse) {
    .wl-rm-btn, .al-del-btn, .mk-chart-close {
        min-width: 44px; min-height: 44px;
    }
    .wl-rm-btn::after, .al-del-btn::after, .mk-chart-close::after {
        content: ""; position: absolute; inset: -8px;
    }
}

/* 발굴 세그먼트 탭(RB-10) — 오늘의 종목/신규 추천/채널 시그널 통합 네비 */
.disc-tabs { display: flex; gap: 6px; margin: 0 0 var(--sp-4, 16px); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.disc-tabs::-webkit-scrollbar { display: none; }
.disc-tab { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border-radius: 999px; font-size: var(--fs-sm, 14px); font-weight: 700; color: var(--text-secondary); background: var(--bg-subtle); text-decoration: none; white-space: nowrap; transition: background .12s, color .12s; }
.disc-tab:hover { color: var(--text-strong); }
.disc-tab.on { background: var(--color-primary); color: #fff; }

/* 연속 방문 streak 배지(RB-14) */
.ov-streak { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm, 13px); font-weight: 700; color: var(--text-secondary); background: var(--bg-subtle); border-radius: 999px; padding: 5px 13px; margin: 0 0 var(--sp-3, 12px); }
.ov-streak b { color: var(--text-strong); font-variant-numeric: tabular-nums; }
.ov-streak-fire { font-size: 14px; }
.ov-streak-best { color: var(--text-tertiary); font-weight: 600; }

/* ============================================================
   LIVING TERMINAL — 전역 컴포넌트 레이어 (인라인 style 회수 기준)
   ============================================================ */

/* ── 접근성: 본문 바로가기(키보드 첫 탭) ── */
.skip-link {
    position: fixed; top: 8px; left: 8px; z-index: 9999;
    transform: translateY(-150%); transition: transform var(--dur) var(--ease-out);
    background: var(--color-primary); color: #fff; font-weight: 700; font-size: var(--fs-sm);
    padding: 10px 16px; border-radius: var(--r-md); box-shadow: var(--elev-3); text-decoration: none;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid #fff; outline-offset: 2px; }

/* ── 통합 마켓 태그 — 화면별 .ec-tag/.sg-tag/.al-tag… 하드코딩 대체 ── */
.mkt-tag { display: inline-flex; align-items: center; flex: 0 0 auto; font-size: 10.5px; font-weight: 800;
    letter-spacing: 0.02em; padding: 2px 7px; border-radius: var(--r-full); line-height: 1.5; white-space: nowrap; }
.mkt-tag--kr { background: var(--up-tint); color: var(--up-600); }
.mkt-tag--us { background: var(--down-tint); color: var(--down-600); }
.mkt-tag--crypto { background: var(--orange-tint); color: var(--orange-500); }
html[data-theme="dark"] .mkt-tag--kr { background: rgba(240,65,79,0.18); color: #ff9aa3; }
html[data-theme="dark"] .mkt-tag--us { background: rgba(47,127,240,0.20); color: #9fc0ff; }
html[data-theme="dark"] .mkt-tag--crypto { background: rgba(234,88,12,0.22); color: #fbb37a; }

/* ── DEEP HERO — 화면 1개의 주인공(딥인디고 radial + teal glow). 전 화면 공용 ── */
.dhero { position: relative; overflow: hidden; border-radius: var(--r-xl);
    background: var(--surface-deep); color: var(--surface-deep-text);
    box-shadow: var(--surface-deep-glow); padding: var(--sp-6) var(--sp-6) var(--sp-5);
    margin-bottom: var(--sp-5); }
.dhero::after { content: ""; position: absolute; top: -45%; right: -12%; width: 300px; height: 300px;
    border-radius: 50%; background: radial-gradient(circle, var(--teal-glow) 0%, transparent 68%); pointer-events: none; }
.dhero > * { position: relative; z-index: 1; }
.dhero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--sp-6); align-items: center; }
.dhero-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs);
    font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal-300); margin-bottom: var(--sp-3); }
.dhero-eyebrow svg { width: 14px; height: 14px; }
.dhero-sub { font-size: var(--fs-sm); color: rgba(234,237,255,0.72); margin-bottom: 8px; line-height: var(--lh-normal); }
.dhero-num { display: block; font-family: var(--font-num); font-variant-numeric: tabular-nums;
    font-weight: 800; font-size: clamp(34px, 8vw, var(--fs-display)); line-height: 1.05;
    letter-spacing: var(--tracking-display); margin-bottom: var(--sp-3); }
.dhero-num .sign, .dhero-num .unit { font-size: 0.6em; font-weight: 700; opacity: 0.8; letter-spacing: 0; vertical-align: 0.06em; }
.dhero-num.up { color: #ff8a93; }      /* 딥 표면 가독 상승색(한국 관습 빨강 계열) */
.dhero-num.down { color: #87b4ff; }    /* 하락색(파랑 계열) */
.dhero-num.flat { color: var(--surface-deep-text); }
/* 데이터 0건 '막 시작' 헤드라인 — 큰 숫자 대신 안내 문구라 폰트 축소. */
.dhero-num--start { color: #eaedff; font-size: clamp(22px, 5.2vw, 30px); font-weight: 800; }
.dhero-foot { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.dhero-pill { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 11px; border-radius: var(--r-full);
    background: rgba(255,255,255,0.08); font-size: var(--fs-caption); color: rgba(234,237,255,0.82); }
.dhero-pill b { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 800; font-size: var(--fs-sm); color: #fff; }
.dhero-pill b.up { color: #ff8a93; } .dhero-pill b.down { color: #87b4ff; }
.dhero-cta { display: inline-flex; align-items: center; gap: 5px; margin-top: var(--sp-3);
    font-size: var(--fs-sm); font-weight: 700; color: #fff; text-decoration: none; }
.dhero-cta:hover { color: var(--teal-300); }
.dhero-cta .arw { transition: transform var(--dur) var(--ease); }
.dhero-cta:hover .arw { transform: translateX(3px); }
.dhero-aside { display: flex; flex-direction: column; gap: 6px; }
.dhero-aside .spark { height: 72px; }
.dhero-aside .spark.up path { stroke: #ff8a93; } .dhero-aside .spark.up .area { fill: #ff8a93; }
.dhero-aside .spark.down path { stroke: #87b4ff; } .dhero-aside .spark.down .area { fill: #87b4ff; }
.dhero-aside-cap { font-size: var(--fs-caption); color: rgba(234,237,255,0.55); text-align: center; }
@media (max-width: 760px) {
    .dhero { padding: var(--sp-5) var(--sp-5) var(--sp-4); }
    .dhero-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
}

/* ── 모의 자동매매 홈 요약 카드 (전 유저 발견성) ── */
.pt-home { display: block; text-decoration: none; color: inherit; margin-bottom: var(--sp-5); }
.pt-home:hover { box-shadow: var(--elev-2), var(--surface-hairline); }
.pt-home-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.pt-home-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--text-strong); }
.pt-home-eyebrow svg { width: 15px; height: 15px; stroke: var(--color-primary); }
.pt-home-state { font-size: var(--fs-xs); font-weight: 700; padding: 2px 9px; border-radius: var(--r-full); }
.pt-home-state.on { background: var(--color-up-tint); color: var(--color-up); }
.pt-home-state.off { background: var(--bg-subtle); color: var(--text-tertiary); }
.pt-home-stats { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-bottom: var(--sp-2); }
.pt-home-stat { display: flex; flex-direction: column; gap: 1px; }
.pt-home-stat b { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 800; font-size: var(--fs-lg); color: var(--text-strong); }
.pt-home-stat b.up { color: var(--color-up); } .pt-home-stat b.down { color: var(--color-down); }
.pt-home-stat i { font-size: var(--fs-xs); color: var(--text-tertiary); font-style: normal; }
.pt-home-sub { font-size: var(--fs-sm); color: var(--text-secondary); line-height: var(--lh-normal); }
.pt-home-sub .arw { color: var(--color-primary); font-weight: 700; }

/* ── 보조 KPI 타일 — 히어로 아래 '보조 지표' 등급(라이트 카드) ── */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-5); }
.kpi { background: var(--bg-surface); border-radius: var(--r-lg); box-shadow: var(--elev-1), var(--surface-hairline);
    padding: var(--sp-4); min-width: 0; }
.kpi-lbl { font-size: var(--fs-xs); font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.kpi-val { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 800;
    color: var(--text-strong); line-height: 1.1; letter-spacing: var(--tracking-tight); }
.kpi-val.up { color: var(--color-up); } .kpi-val.down { color: var(--color-down); }
.kpi-sub { font-size: var(--fs-caption); color: var(--text-tertiary); margin-top: 4px; }
