/* 공개 사이트(소개·데모·다운로드·로그인 결과). 앱 web/style.css 토큰과 같은 팔레트.
   CSP가 인라인 스타일을 막으므로 색·크기는 전부 여기에 둔다. .shell 아래는 앱 셸을 축소 재현한 데모용 스타일이다. */
:root {
  --bg: #161718; --panel: #1d1f22; --panel-2: #25282c; --line: #33373c;
  --text: #e7e8ea; --muted: #8f949b; --accent: #c9a961; --accent-dim: #3d3728; --danger: #ff6b6b;
  --gain: #3fb950; --loss: #e5534b;
  --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #008300; --c7: #9085e9; --c8: #e66767; --c0: #6b7280;
  --radius: 10px; --wrap: 1120px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
/* 한국어는 어절 단위로만 줄을 바꾼다(keep-all). 해시처럼 긴 영문은 넘칠 때만 끊는다 */
body { font: 15px/1.6 system-ui, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif; padding: 0 20px; overflow-x: hidden; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0 0 12px; }
code { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 13px; word-break: break-all; font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; }
pre { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: 13px; overflow-x: auto; font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; }
pre code { background: none; border: 0; padding: 0; }
.muted { color: var(--muted); }
.gain { color: var(--gain); }
.loss { color: var(--loss); }
.danger { color: var(--danger); }
.num, .tnum { font-variant-numeric: tabular-nums; }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--accent-dim); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #1a1a1a; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.big { padding: 12px 22px; font-size: 15px; border-radius: 10px; }
.btn.small { padding: 5px 12px; font-size: 13px; }
.btn svg { flex: 0 0 auto; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── 상단 내비게이션 ── */
.site-head { position: sticky; top: 0; z-index: 20; margin: 0 -20px; padding: 0 20px; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-head .in { max-width: var(--wrap); margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: baseline; gap: 8px; color: var(--text); font-weight: 650; font-size: 17px; letter-spacing: .3px; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); font-size: 15px; }
.brand-sub { color: var(--muted); font-size: 12.5px; font-weight: 400; position: relative; top: -1px; }
.site-nav { display: flex; gap: 2px; margin-left: auto; }
.site-nav a { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.site-nav a:hover { color: var(--text); text-decoration: none; background: var(--panel); }
.site-nav a.active { color: var(--text); background: var(--panel-2); }
.head-cta { flex: 0 0 auto; }

/* ── 히어로 ── */
.hero { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 76px 0 44px; text-align: center; }
.hero::before { content: ""; position: absolute; left: 50%; top: -80px; width: 900px; max-width: 140vw; height: 460px; transform: translateX(-50%); background: radial-gradient(ellipse 50% 55% at 50% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 72%); pointer-events: none; z-index: -1; }
.eyebrow { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; max-width: 100%; padding: 5px 12px 5px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 12.5px; }
.eyebrow b { color: var(--accent); font-weight: 600; background: var(--accent-dim); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.hero h1 { font-size: clamp(34px, 5.2vw, 52px); font-weight: 700; letter-spacing: -.015em; margin: 20px 0 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 660px; margin: 0 auto 28px; font-size: 17.5px; color: var(--muted); }
.hero .actions { justify-content: center; }
.hero-meta { margin: 16px 0 0; color: var(--muted); font-size: 13px; }

/* ── 앱 미리보기 창 ── */
.showcase { max-width: var(--wrap); margin: 0 auto; padding: 8px 0 24px; }
.window { position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(201, 169, 97, .06); overflow: hidden; }
.window::after { content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 40%); }
.caption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; }
.caption a { margin-left: 8px; }

/* ── 본문 섹션 ── */
.sec { max-width: var(--wrap); margin: 0 auto; padding: 72px 0 8px; }
.sec-head { max-width: 860px; margin-bottom: 30px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .kicker { color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; text-wrap: balance; }
.sec-head p { color: var(--muted); font-size: 16px; margin: 0; max-width: 720px; }
.sec-head.center p { margin-left: auto; margin-right: auto; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pillar { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 20px; overflow: hidden; }
.pillar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: .8; }
.pillar .n { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; margin-bottom: 8px; }
.pillar h3 { font-size: 18px; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 14px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; transition: border-color .15s, transform .15s; }
.feature:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.feature .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent); margin-bottom: 16px; }
.feature h3 { font-size: 16.5px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }
.feature .tag { display: inline-block; margin-top: 12px; font-size: 11.5px; color: var(--muted); background: var(--panel-2); border-radius: 999px; padding: 2px 9px; }

/* 화면 구성 안내: 도식 + 번호 설명 */
.layout-guide { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.layout-fig { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: grid; grid-template-columns: 34px 120px minmax(0, 1fr) 110px; grid-template-rows: 34px 260px; gap: 6px; aspect-ratio: auto; }
.lf { position: relative; border: 1px dashed var(--line); border-radius: 8px; background: var(--panel); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.lf .n { position: absolute; left: 6px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #1a1a1a; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.lf.top { grid-column: 1 / -1; justify-content: flex-start; padding-left: 34px; gap: 10px; }
.lf.top .badge { margin-left: auto; }
.lf.act { flex-direction: column; gap: 8px; padding-top: 30px; }
.lf.act i { width: 16px; height: 16px; border-radius: 5px; background: var(--panel-2); }
.lf.act i:first-of-type { background: var(--accent); }
.lf.side { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 30px 8px 8px; gap: 4px; }
.lf.side i { height: 14px; border-radius: 5px; background: var(--panel-2); }
.lf.side i:first-child { background: var(--accent-dim); }
.lf.page { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 30px 10px 10px; gap: 6px; }
.lf.page .row { display: flex; gap: 6px; }
.lf.page .row i { flex: 1; height: 34px; border-radius: 6px; background: var(--panel-2); }
.lf.page .row.tall i { height: 90px; }
.lf.page .row.tall i:first-child { flex: 1.6; }
.lf.ai { flex-direction: column; align-items: stretch; justify-content: flex-end; padding: 30px 8px 8px; gap: 5px; }
.lf.ai i { height: 22px; border-radius: 8px; background: var(--panel-2); }
.lf.ai i.me { background: var(--accent-dim); width: 70%; align-self: flex-end; }
.legend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.legend-list li { display: flex; gap: 12px; }
.legend-list .n { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #1a1a1a; font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.legend-list b { display: block; font-size: 15px; }
.legend-list span { color: var(--muted); font-size: 13.5px; }
.badge { display: inline-block; background: var(--accent-dim); color: var(--accent); border-radius: 999px; padding: 1px 9px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.badge.dim { color: var(--muted); background: var(--panel-2); }
.badge.pro { font-size: 9.5px; letter-spacing: .5px; padding: 1px 6px; font-weight: 700; }

.cta-band { max-width: var(--wrap); margin: 72px auto 0; padding: 40px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: radial-gradient(ellipse 60% 100% at 50% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--panel); text-align: center; }
.cta-band h2 { font-size: 26px; margin-bottom: 8px; text-wrap: balance; }
.cta-band p { color: var(--muted); margin-bottom: 20px; }
.cta-band .actions { justify-content: center; }

footer { max-width: var(--wrap); margin: 56px auto 0; padding: 22px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
footer .brand { font-size: 14px; }
footer nav { display: flex; gap: 16px; }
footer nav a { color: var(--muted); }
footer .right { margin-left: auto; }

/* ── 다운로드 페이지 ── */
.dl-hero { max-width: var(--wrap); margin: 0 auto; padding: 60px 0 20px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
.dl-hero h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: -.01em; margin-bottom: 12px; text-wrap: balance; }
.req-intro { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; }
.dl-hero .lead { color: var(--muted); font-size: 16.5px; margin-bottom: 24px; }
.dl-card { position: relative; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--panel)), var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 16px; padding: 22px 24px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.dl-card .os { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.dl-card .ver { font-size: 30px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.dl-card .ver small { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 10px; }
.dl-card .meta-row { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 18px; color: var(--muted); font-size: 13px; }
.dl-card .btn.primary { width: 100%; justify-content: center; }
.dl-card .alt { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.dl-card .alt a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.dl-card .alt a:hover { color: var(--accent); }
.dl-card .status { color: var(--muted); font-size: 14px; }
.dl-card .status.danger { color: var(--danger); }
.req { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.req li { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.req .ico { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px; background: var(--accent-dim); color: var(--accent); display: grid; place-items: center; }
.req b { display: block; font-size: 14.5px; }
.req span { color: var(--muted); font-size: 13px; }
.req-title { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 8px 0 10px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px 20px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -12px; left: 18px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #1a1a1a; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.step h3 { font-size: 16px; margin: 4px 0 8px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }
.step .fig { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 12px; color: var(--muted); font-size: 12.5px; display: flex; flex-direction: column; gap: 6px; }
.step .fig .bar { height: 8px; border-radius: 4px; background: var(--panel-2); position: relative; overflow: hidden; }
.step .fig .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 68%; background: var(--accent); border-radius: 4px; }
.step .fig .dlg { display: flex; align-items: center; gap: 8px; }
.step .fig .dlg b { color: var(--text); font-weight: 600; }
.step .fig .btnish { display: inline-block; padding: 2px 8px; border-radius: 5px; background: var(--panel-2); color: var(--text); font-size: 11.5px; }
.step .fig .btnish.on { background: var(--accent); color: #1a1a1a; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.panel h3 { font-size: 16px; margin-bottom: 8px; }
.panel p { color: var(--muted); font-size: 14px; }
.panel p:last-child { margin-bottom: 0; }
.hash { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; font-size: 13px; margin-top: 12px; }
.hash .k { color: var(--muted); white-space: nowrap; }
.hash code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hash .btn { padding: 3px 9px; font-size: 12px; }
.note { border-left: 3px solid var(--accent); background: var(--panel); padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); font-size: 14px; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.faq div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.faq b { display: block; margin-bottom: 4px; font-size: 14.5px; }
.faq span { color: var(--muted); font-size: 13.5px; }

/* 로그인 결과 등 단순 페이지 (Pages.cs) */
main.plain { max-width: 720px; margin: 0 auto; padding: 60px 0 40px; }
main.plain h1 { font-size: 30px; margin-bottom: 10px; }
main.plain .lead { color: var(--muted); font-size: 16px; margin-bottom: 18px; }

/* ── 데모 페이지 ── */
.demo-head { max-width: 1280px; margin: 0 auto; padding: 28px 0 14px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; }
.demo-head h1 { font-size: 24px; font-weight: 700; }
.demo-head p { color: var(--muted); margin: 0; font-size: 14px; }
.tour { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.tour button { background: var(--panel); border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: 12.5px; padding: 5px 10px 5px 6px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tour button i { width: 18px; height: 18px; border-radius: 50%; background: var(--panel-2); color: var(--text); font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.tour button:hover, .tour button.on { border-color: var(--accent); color: var(--text); }
.tour button.on i { background: var(--accent); color: #1a1a1a; }
.demo-wrap { max-width: 1280px; margin: 0 auto; }
.demo-wrap .window { height: min(780px, calc(100vh - 150px)); min-height: 560px; }
.demo-foot { max-width: 1280px; margin: 14px auto 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 13px; }
.demo-foot .spacer { flex: 1; }
.tour-tip { max-width: 1280px; margin: 10px auto 0; min-height: 22px; color: var(--accent); font-size: 13.5px; }

/* ── 앱 셸 재현 (.shell): 상단바 | 활동바 · 사이드바 · 페이지 · AI ── */
.shell { --sf: 12.5px; display: flex; flex-direction: column; height: 100%; min-height: 0; font-size: var(--sf); line-height: 1.45; background: var(--bg); color: var(--text); user-select: none; }
.showcase .shell { height: auto; }
.sh-top { display: flex; align-items: center; gap: 14px; padding: 7px 8px 7px 14px; background: var(--panel); border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.sh-brand { display: flex; align-items: baseline; gap: 7px; }
.sh-brand .mk { color: var(--accent); font-size: 13px; }
.sh-brand b { font-size: 14.5px; font-weight: 650; letter-spacing: .3px; }
.sh-brand .sub { color: var(--muted); font-size: 11px; }
.sh-crumb { flex: 1; min-width: 0; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-crumb b { color: var(--text); font-weight: 600; }
.sh-asof { display: inline-flex; align-items: center; gap: 2px; }
.sh-asof button { background: none; border: 0; color: var(--muted); width: 20px; height: 22px; border-radius: 5px; cursor: pointer; font: inherit; display: grid; place-items: center; }
.sh-asof button:hover { background: var(--panel-2); color: var(--accent); }
.sh-asof .badge { min-width: 78px; text-align: center; }
.sh-ico { width: 26px; height: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.sh-ico.on { border-color: var(--accent); color: var(--accent); }
/* 계정 버튼과 메뉴 — 앱 상단바 오른쪽 계정 메뉴의 축소판 */
.sh-acct { position: relative; }
.sh-acct-btn { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 6px 0 3px; border: 1px solid transparent; border-radius: 14px; background: none; color: var(--text); font: inherit; font-size: 11.5px; cursor: pointer; }
.sh-acct-btn:hover, .sh-acct-btn[aria-expanded="true"] { background: var(--panel-2); border-color: var(--line); }
.sh-acct-btn svg { color: var(--muted); flex: none; }
.sh-avatar { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #1a1a1a; font-size: 9.5px; font-weight: 700; }
.sh-menu { position: absolute; top: calc(100% + 5px); right: 0; z-index: 20; min-width: 200px; padding: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.sh-menu .mh { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.sh-menu .mh b { font-size: 12px; font-weight: 600; }
.sh-menu .mh span { color: var(--muted); font-size: 10.5px; }
.sh-menu button { display: block; width: 100%; padding: 6px 8px; border: 0; border-radius: 5px; background: none; color: var(--text); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.sh-menu button:hover { background: var(--panel-2); }
.sh-win { display: flex; margin-left: 6px; color: var(--muted); }
.sh-win span { width: 34px; height: 24px; display: grid; place-items: center; }
.sh-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 40px 176px minmax(0, 1fr); gap: 5px; padding: 8px 8px 8px 3px; }
.shell.ai-open .sh-body { grid-template-columns: 40px 176px minmax(0, 1fr) 300px; }
.sh-act { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px 0 4px; }
.sh-act .sp { flex: 1; }
.sh-act button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; position: relative; }
.sh-act button:hover { background: var(--panel-2); color: var(--text); }
.sh-act button.active { color: var(--accent); }
.sh-act button.active::before { content: ""; position: absolute; left: -3px; top: 8px; bottom: 8px; width: 2px; background: var(--accent); border-radius: 2px; }
.sh-act svg { width: 17px; height: 17px; }
.sh-side, .sh-page, .sh-ai { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-height: 0; display: flex; flex-direction: column; min-width: 0; }
.sh-side { padding: 10px 0 8px; }
.sh-side h2, .sh-sec h2 { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; padding: 0 12px 6px; }
.sh-side ul { list-style: none; margin: 0; padding: 0 5px; flex: 1; overflow-y: auto; }
.sh-side li { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 9px; border-radius: 6px; cursor: pointer; }
.sh-side li:hover { background: var(--panel-2); }
.sh-side li.active { background: var(--panel-2); color: var(--accent); font-weight: 600; }
.sh-foot { padding: 6px 12px 0; font-size: 10.5px; color: var(--muted); }
.sh-page { padding: 12px 16px 14px; overflow-y: auto; gap: 11px; }
.sh-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sh-head h1 { font-size: 17px; font-weight: 650; }
.sh-head .sp { flex: 1; }
.sh-head .btn, .sh-toolbar .btn { padding: 4px 10px; font-size: 11.5px; border-radius: 6px; }
.sh-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sh-toolbar .sp { flex: 1; }
.sh-toolbar .sel { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); font-size: 11.5px; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { background: var(--panel-2); border-radius: 8px; padding: 8px 11px; min-width: 0; }
.kpi-label { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase .kpi-value { font-size: 13.5px; }
.kpi-sub { color: var(--muted); font-size: 10.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: start; }
.s1 { grid-column: span 1; } .s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s6 { grid-column: span 6; }
.sh-card { background: var(--panel-2); border-radius: 8px; padding: 9px 11px; min-width: 0; }
.sh-card h2 { font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }
.sh-card h2 .r { float: right; text-transform: none; letter-spacing: 0; font-weight: 400; }
.mini { width: 100%; border-collapse: collapse; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.mini td, .mini th { padding: 2.5px 4px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); white-space: nowrap; }
.mini th { text-align: right; color: var(--muted); font-weight: 600; font-size: 10.5px; }
.mini th:first-child { text-align: left; }
.mini td.r { text-align: right; }
.mini tr:last-child td { border-bottom: 0; }
.mini tr.sum td { border-top: 1px solid var(--line); font-weight: 600; }
.mini .muted { color: var(--muted); }
.mini i.sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.kv { display: flex; justify-content: space-between; gap: 8px; padding: 2.5px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); font-size: 11.5px; }
.kv:last-child { border-bottom: 0; }
.kv b { font-variant-numeric: tabular-nums; }
.kv .muted { white-space: nowrap; }
.sh-sec { display: flex; flex-direction: column; gap: 6px; }
.sh-sec h2 { padding: 0; font-size: 11px; }
.tbl { overflow: auto; border: 1px solid var(--line); border-radius: 7px; }
table.grid { width: 100%; border-collapse: collapse; font-size: 11.5px; font-variant-numeric: tabular-nums; }
table.grid th, table.grid td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.grid th { color: var(--muted); font-weight: 600; font-size: 10.5px; background: var(--panel-2); position: sticky; top: 0; }
table.grid th.r, table.grid td.r { text-align: right; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tbody tr:hover td { background: color-mix(in srgb, var(--panel-2) 60%, transparent); }
table.grid .badge { font-size: 10px; padding: 0 7px; }
table.grid b { font-weight: 600; }
.mkt-rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.mkt { padding: 5px 10px; min-width: 0; border-left: 1px solid var(--line); }
.mkt:first-child { border-left: 0; }
.mkt-name { font-size: 10px; color: var(--muted); letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-val { display: flex; gap: 6px; align-items: baseline; white-space: nowrap; }
.mkt-val b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mkt-chg { font-size: 10.5px; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.tab { padding: 6px 10px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; font-size: 12px; }
.tab.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.opt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt div { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.opt div.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.opt b { display: block; margin-bottom: 3px; }
.opt span { color: var(--muted); font-size: 11.5px; }
.placeholder { margin: 40px auto; max-width: 420px; text-align: center; color: var(--muted); }
.placeholder h1 { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.placeholder .btn { margin-top: 12px; }
.sh-note { color: var(--muted); font-size: 11.5px; }
.sh-note b { color: var(--text); }
.src { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 4px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 9px; margin-left: 5px; vertical-align: 1px; }
.progress { display: grid; grid-template-columns: 90px minmax(0, 1fr) 76px 44px; gap: 8px; align-items: center; font-size: 11.5px; padding: 4px 0; }
.progress .bar { height: 5px; border-radius: 3px; background: var(--panel); overflow: hidden; }
.progress .bar i { display: block; height: 100%; border-radius: 3px; }
.progress .r { text-align: right; font-variant-numeric: tabular-nums; }
.progress .p { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress .lb { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress .lb i { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.chart { width: 100%; min-height: 40px; }
.chart svg { display: block; overflow: visible; }
.chart text { font-family: inherit; }
.hbar-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.hbar-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.sh-ai { padding: 0; }
.sh-ai .h { display: flex; align-items: center; gap: 6px; padding: 8px 10px 6px; border-bottom: 1px solid var(--line); }
.sh-ai .h h2 { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; flex: 0 0 auto; }
.sh-ai .h .sel { flex: 1; min-width: 0; }
.sh-ai .log { flex: 1; overflow-y: auto; padding: 8px 10px; display: flex; flex-direction: column; gap: 7px; }
.msg { max-width: 92%; padding: 6px 9px; border-radius: 10px; font-size: 11.5px; line-height: 1.5; }
.msg.user { align-self: flex-end; background: var(--accent-dim); border-bottom-right-radius: 3px; }
.msg.ai { align-self: flex-start; background: var(--panel-2); border-bottom-left-radius: 3px; }
.msg.ai ul { margin: 4px 0 0; padding-left: 16px; }
.msg.ai li { margin: 1px 0; }
.msg.notice { align-self: center; color: var(--muted); font-size: 10.5px; }
.sh-ai form { display: flex; flex-direction: column; gap: 5px; padding: 7px 10px 9px; border-top: 1px solid var(--line); }
.sh-ai textarea { resize: none; font: inherit; font-size: 11.5px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 5px 7px; height: 46px; }
.sh-ai .bar { display: flex; gap: 4px; align-items: center; }
.sh-ai .bar .sel { font-size: 10.5px; padding: 2px 6px; }
.sh-ai .bar .sp { flex: 1; }
.guide-fig { background: var(--panel-2); border-radius: 8px; padding: 12px; }
.guide-fig svg { display: block; width: 100%; height: auto; max-width: 520px; }
.guide-p { max-width: 640px; }
.guide-p p { margin-bottom: 8px; }
.import-box { border: 1px dashed var(--line); border-radius: 8px; padding: 22px; text-align: center; color: var(--muted); background: var(--panel-2); }
.import-box b { color: var(--text); display: block; margin-bottom: 4px; }

/* 투어 하이라이트: 셸 영역에 강조 테두리 */
.shell.hl-top .sh-top, .shell.hl-act .sh-act, .shell.hl-side .sh-side, .shell.hl-page .sh-page, .shell.hl-ai .sh-ai, .shell.hl-asof .sh-asof, .shell.hl-acct .sh-acct-btn { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); transition: box-shadow .2s; }
.shell.hl-act .sh-act { border-radius: 8px; }

/* ── 반응형 ── */
@media (max-width: 960px) {
  .features, .pillars, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-guide, .dl-hero, .two-col, .faq { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s1, .s2, .s3, .s4, .s6 { grid-column: span 2; }
  .s1 { grid-column: span 1; }
  .mkt-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mkt:nth-child(4) { border-left: 0; }
  .mkt:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .shell.ai-open .sh-body { grid-template-columns: 40px 176px minmax(0, 1fr); }
  .sh-ai { display: none; }
}
@media (max-width: 640px) {
  body { padding: 0 16px; }
  .site-head { margin: 0 -16px; padding: 0 16px; }
  .site-head .in { gap: 12px; }
  .brand-sub, .head-cta { display: none; }
  .site-nav a { padding: 6px 9px; font-size: 13.5px; }
  .hero { padding-top: 52px; }
  .features, .pillars, .steps, .kpis { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-body, .shell.ai-open .sh-body { grid-template-columns: minmax(0, 1fr); padding: 6px; }
  .sh-act, .sh-side, .sh-win, .sh-brand .sub, .sh-acct-btn .nm { display: none; }
  .sh-top { gap: 8px; padding-left: 10px; }
  .sh-crumb { font-size: 11px; }
  .sh-page { padding: 10px 12px; }
  .sh-grid { grid-template-columns: minmax(0, 1fr); }
  .s1, .s2, .s3, .s4, .s6 { grid-column: span 1; }
  .mkt-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mkt:nth-child(odd) { border-left: 0; }
  .mkt:nth-child(even) { border-left: 1px solid var(--line); }
  .mkt:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .layout-fig { grid-template-columns: 26px 70px minmax(0, 1fr); grid-template-rows: 30px 200px; }
  .lf.ai { display: none; }
  .cta-band { padding: 28px 20px; }
  .demo-wrap .window { height: auto; min-height: 0; }
  .demo-wrap .sh-page { max-height: 70vh; }
  .demo-head h1 { font-size: 20px; }
  .dl-card .ver { font-size: 26px; }
  .hash { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hash .btn { justify-self: start; }
}
