:root {
  --bg: #f5f7f9; --surface: #ffffff; --surface-soft: #f8fafb; --ink: #14212b;
  --muted: #70808d; --muted-2: #9aa7b1; --line: #e4e9ed; --navy: #112f3f;
  --teal: #087f73; --teal-soft: #e8f6f3; --green: #148a65; --green-soft: #eaf7f1;
  --red: #d9515d; --red-soft: #fff0f1; --amber: #b57913; --amber-soft: #fff7e7;
  --shadow: 0 10px 30px rgba(22, 42, 56, .07);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--bg); font-family: "Pretendard", "Noto Sans KR", "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; } button { color: inherit; } .app-shell { min-height: 100vh; }
.topbar { height: 72px; padding: 0 max(28px, calc((100vw - 1480px) / 2)); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 8; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--navy); font: 800 17px/1 ui-monospace,Consolas,monospace; box-shadow: inset 0 -8px 18px rgba(8,127,115,.3); }
.brand-copy { display: grid; gap: 2px; } .brand-copy strong { font-size: 14px; } .brand-copy small { color: var(--muted); font-size: 11px; }
.topbar-right { display: flex; align-items: center; gap: 18px; } .market-label { color: var(--muted); font-size: 12px; }
.system-pill { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 12px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #d9a33e; box-shadow: 0 0 0 4px rgba(217,163,62,.12); }
.system-pill.ok { color: var(--green); border-color: #cfe9df; background: var(--green-soft); } .system-pill.ok .pulse { background: var(--green); box-shadow: 0 0 0 4px rgba(20,138,101,.12); }
main, footer { width: min(1480px, calc(100% - 56px)); margin-inline: auto; }
.overview { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(380px,.7fr); gap: 48px; align-items: end; padding: 54px 0 34px; }
.eyebrow { margin: 0 0 12px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .17em; }
h1 { margin: 0; font-size: clamp(38px,4.2vw,62px); line-height: 1.08; letter-spacing: -.055em; } h1 span { color: var(--teal); }
.overview-copy > p:last-child { max-width: 720px; margin: 19px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.scan-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.scan-card-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; } .live-dot { display: flex; align-items: center; gap: 6px; }
.live-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.scan-card > strong { display: block; margin-top: 13px; color: var(--navy); font-size: 24px; letter-spacing: -.02em; }
.scan-card > p { margin: 7px 0 0; min-height: 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.scan-steps { display: flex; align-items: center; gap: 9px; margin-top: 22px; color: var(--muted); font-size: 10px; font-weight: 700; }
.scan-steps i { flex: 1; height: 1px; background: var(--line); position: relative; } .scan-steps i::after { content: ""; position: absolute; right: 0; top: -2px; border-left: 5px solid #c9d2d8; border-top: 2.5px solid transparent; border-bottom: 2.5px solid transparent; }
.strategy-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.strategy-tabs button { min-height: 76px; padding: 15px 17px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 15px; color: var(--muted); background: var(--surface); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.strategy-tabs button:hover { transform: translateY(-1px); border-color: #bfd6d2; box-shadow: 0 6px 18px rgba(22,42,56,.06); }
.strategy-tabs button.active { color: var(--navy); border-color: #7eb9b2; box-shadow: 0 0 0 3px rgba(8,127,115,.07); }
.strategy-tab-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--muted); background: #edf2f5; font: 800 12px/1 ui-monospace,Consolas,monospace; }
.strategy-tabs button.active .strategy-tab-icon { color: #fff; background: linear-gradient(145deg,var(--navy),var(--teal)); }
.strategy-tabs button > span:nth-child(2) { display: grid; gap: 5px; }
.strategy-tabs strong { color: var(--ink); font-size: 13px; }
.strategy-tabs small { color: var(--muted); font-size: 10px; }
.strategy-tabs i { color: var(--muted-2); font-size: 9px; font-style: normal; white-space: nowrap; }
.metrics { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.metrics article { min-height: 118px; padding: 19px; display: flex; align-items: flex-start; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.metric-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; font-size: 16px; font-weight: 800; }
.metric-icon.all { color: var(--navy); background: #edf2f5; } .metric-icon.buy,.metric-icon.good { color: var(--green); background: var(--green-soft); } .metric-icon.sell,.metric-icon.bad { color: var(--red); background: var(--red-soft); }
.metrics article > div { min-width: 0; } .metrics small { display: block; color: var(--muted); font-size: 11px; } .metrics strong { display: block; margin-top: 2px; font: 800 30px/1.15 ui-monospace,Consolas,monospace; }
.metrics p { margin: 5px 0 0; color: var(--muted-2); font-size: 10px; white-space: nowrap; }
.workspace { margin-top: 34px; } .section-heading { margin-bottom: 15px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
h2 { margin: 0; color: var(--navy); font-size: 27px; letter-spacing: -.035em; } .section-help { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.toolbar { display: flex; gap: 10px; align-items: center; }
.search { height: 38px; width: 180px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.search:focus-within { border-color: #7eb9b2; box-shadow: 0 0 0 3px rgba(8,127,115,.08); } .search svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.filters { display: flex; gap: 2px; padding: 3px; background: #e9eef1; border-radius: 10px; } .filters button { padding: 7px 11px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 11px; cursor: pointer; }
.filters button:hover { color: var(--ink); } .filters button.active { color: var(--navy); background: var(--surface); box-shadow: 0 1px 4px rgba(30,49,61,.1); font-weight: 800; }
.table-wrap { min-height: 280px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 4px 15px rgba(22,42,56,.035); } .table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 1160px; border-collapse: collapse; font-size: 12px; } th { padding: 12px 14px; text-align: left; color: var(--muted); background: var(--surface-soft); border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 700; letter-spacing: .035em; white-space: nowrap; }
td { padding: 14px; border-bottom: 1px solid #edf1f3; color: #40515d; white-space: nowrap; } tbody tr { cursor: pointer; transition: background .15s ease; } tbody tr:last-child td { border-bottom: 0; } tbody tr:hover { background: #f4faf9; }
.symbol-cell { display: flex; align-items: center; gap: 10px; } .mini-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: var(--teal); background: var(--teal-soft); font: 800 10px/1 ui-monospace,Consolas,monospace; }
.symbol { display: block; color: var(--ink); font: 800 13px/1 ui-monospace,Consolas,monospace; } .subdate { display: block; margin-top: 5px; color: var(--muted-2); font-size: 9px; }
.direction { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; } .direction::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; } .direction.buy { color: var(--green); } .direction.sell { color: var(--red); }
.value-up { color: var(--green); font-weight: 800; } .value-down { color: var(--red); font-weight: 800; } .flow { color: #5b6d78; font: 700 10px/1.5 ui-monospace,Consolas,monospace; }
.badge { display: inline-flex; padding: 5px 8px; border-radius: 7px; color: var(--amber); background: var(--amber-soft); font-size: 10px; font-weight: 700; } .badge.favorable { color: var(--green); background: var(--green-soft); } .badge.adverse { color: var(--red); background: var(--red-soft); }
.row-arrow { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: var(--muted-2); background: var(--surface-soft); font-size: 16px; }
.empty { min-height: 270px; display: grid; place-content: center; justify-items: center; text-align: center; padding: 30px; } .empty[hidden] { display: none; }
.empty-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 14px; color: var(--teal); background: var(--teal-soft); font-size: 25px; } .empty strong { font-size: 14px; } .empty p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
footer { margin-top: 27px; padding: 20px 0 34px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted-2); font-size: 10px; }
.detail { position: fixed; z-index: 20; top: 0; right: 0; width: min(740px,92vw); height: 100vh; padding: 0 34px 38px; overflow-y: auto; background: var(--bg); border-left: 1px solid var(--line); box-shadow: -24px 0 60px rgba(20,33,43,.16); transform: translateX(102%); transition: transform .25s ease; }
.detail.open { transform: translateX(0); } .detail-topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.close { width: 34px; height: 34px; border: 0; border-radius: 9px; color: var(--muted); background: #e9eef1; font-size: 23px; line-height: 1; cursor: pointer; } .close:hover { color: var(--ink); background: #dde5e9; }
.asset-header { display: grid; grid-template-columns: 50px minmax(0,1fr) auto; gap: 15px; align-items: start; padding: 27px 0 22px; }
.asset-avatar { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(145deg,var(--navy),var(--teal)); font: 800 15px/1 ui-monospace,Consolas,monospace; }
.asset-heading > div:first-child { display: flex; align-items: baseline; gap: 8px; } .asset-heading h2 { font-size: 23px; } .asset-heading > div:first-child span { color: var(--muted); font: 700 11px/1 ui-monospace,Consolas,monospace; }
.asset-heading > p { margin: 8px 0 0; max-width: 500px; color: var(--muted); font-size: 12px; line-height: 1.65; } .asset-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.asset-tags span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--surface); font-size: 9px; font-weight: 700; }
.status-badge { padding: 6px 9px; border-radius: 7px; color: var(--amber); background: var(--amber-soft); font-size: 10px; font-weight: 800; white-space: nowrap; } .status-badge.favorable { color: var(--green); background: var(--green-soft); } .status-badge.adverse { color: var(--red); background: var(--red-soft); }
.insight-card { display: flex; gap: 14px; padding: 17px; border: 1px solid #cee7e2; border-radius: 14px; background: var(--teal-soft); } .insight-card.sell { border-color: #f2d5d8; background: var(--red-soft); }
.insight-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--green); font-size: 18px; } .insight-card.sell .insight-icon { background: var(--red); }
.insight-card small { display: block; color: var(--muted); font-size: 9px; font-weight: 700; } .insight-card strong { display: block; margin-top: 3px; color: var(--navy); font-size: 14px; } .insight-card p { margin: 5px 0 0; color: #526570; font-size: 11px; line-height: 1.6; }
.chart-card { margin-top: 15px; padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); } .chart-head { display: flex; justify-content: space-between; align-items: start; } .chart-head div { display: grid; gap: 3px; }
.chart-head small { color: var(--muted); font-size: 10px; } .chart-head span { color: var(--ink); font-size: 12px; font-weight: 700; } .chart-head strong { font: 800 19px/1 ui-monospace,Consolas,monospace; } #priceChart { display: block; width: 100%; height: 250px; margin-top: 12px; }
.detail-section { margin-top: 21px; } .detail-section-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 10px; } .detail-section-title h3 { margin: 0; color: var(--navy); font-size: 14px; } .detail-section-title span { color: var(--muted-2); font-size: 9px; }
.detail-grid { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); } .detail-grid div { min-height: 75px; padding: 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-grid div:nth-child(3n) { border-right: 0; } .detail-grid div:nth-last-child(-n+3) { border-bottom: 0; } .detail-grid span { display: block; color: var(--muted); font-size: 9px; } .detail-grid strong { display: block; margin-top: 7px; color: var(--ink); font: 750 13px/1.2 ui-monospace,Consolas,monospace; }
.signal-note { margin-top: 15px; padding: 14px 16px; display: grid; gap: 4px; border-left: 3px solid var(--teal); border-radius: 0 10px 10px 0; color: var(--muted); background: var(--surface); font-size: 10px; line-height: 1.6; } .signal-note strong { color: var(--ink); }
.backdrop { position: fixed; z-index: 10; inset: 0; background: rgba(15,29,38,.38); backdrop-filter: blur(3px); }
@media (max-width:1080px) { .overview { grid-template-columns: 1fr; gap: 25px; } .metrics { grid-template-columns: repeat(3,1fr); } .topbar,main,footer { width: auto; } .topbar { padding-inline: 28px; } }
@media (max-width:760px) { .market-label { display:none; } .strategy-tabs { grid-template-columns:1fr; } .strategy-tabs button { grid-template-columns:38px minmax(0,1fr); } .strategy-tabs i { display:none; } main,footer { width: calc(100% - 28px); } .topbar { padding-inline:14px; } .overview { padding-top:34px; } h1 { font-size:38px; } .metrics { grid-template-columns:repeat(2,1fr); } .section-heading { align-items:stretch; flex-direction:column; } .toolbar { align-items:stretch; flex-direction:column; } .search { width:100%; } .filters { overflow-x:auto; } .detail { width:100%; padding-inline:20px; } .asset-header { grid-template-columns:46px minmax(0,1fr); } .asset-avatar { width:46px; height:46px; } .status-badge { grid-column:2; justify-self:start; } .detail-grid { grid-template-columns:repeat(2,1fr); } .detail-grid div:nth-child(3n) { border-right:1px solid var(--line); } .detail-grid div:nth-child(2n) { border-right:0; } .detail-grid div:nth-last-child(-n+3) { border-bottom:1px solid var(--line); } .detail-grid div:nth-last-child(-n+2) { border-bottom:0; } footer { flex-direction:column; } }

