:root {
  --bg: #071018;
  --surface: #0d1822;
  --surface-2: #111f2b;
  --line: #213241;
  --muted: #8094a5;
  --text: #edf5fa;
  --cyan: #2dd4bf;
  --blue: #59a7ff;
  --green: #35d487;
  --red: #ff6577;
  --amber: #f8b84e;
  --violet: #a78bfa;
  --shadow: 0 18px 45px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: radial-gradient(circle at 14% -20%, #15324a 0, transparent 32%), var(--bg); color: var(--text); font-family: Pretendard, "Noto Sans KR", Inter, system-ui, sans-serif; letter-spacing: -.015em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.topbar { height: 72px; position: sticky; top: 0; z-index: 20; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; background: rgba(7,16,24,.9); border-bottom: 1px solid rgba(93,130,154,.18); backdrop-filter: blur(18px); }
.brand-wrap, .top-actions, .market-tabs, .decision-top, .card-title, .panel-header, .chart-tools, .levels, .sizing-row, .search-bar, .dialog-head, .dialog-actions { display: flex; align-items: center; }
.brand-wrap { gap: 11px; min-width: 250px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #061018; font-weight: 900; font-size: 20px; background: linear-gradient(135deg, #70ffe7, #55aaff); box-shadow: 0 0 30px rgba(45,212,191,.2); }
.brand { font-weight: 850; letter-spacing: .12em; font-size: 15px; }
.brand-sub { color: var(--muted); font-size: 9px; letter-spacing: .16em; margin-top: 2px; }
.market-tabs { padding: 4px; gap: 3px; background: #0a141d; border: 1px solid var(--line); border-radius: 10px; }
.tab { min-width: 62px; padding: 8px 14px; color: var(--muted); border: 0; border-radius: 7px; background: transparent; }
.tab.active { background: #1b2a37; color: white; box-shadow: inset 0 0 0 1px #2d4354; }
.top-actions { gap: 8px; min-width: 350px; justify-content: flex-end; }
.mode-badge, .lock-badge { padding: 7px 10px; border: 1px solid #324453; color: #9db0be; background: #101c25; border-radius: 999px; font-size: 11px; }
.mode-badge.live { color: var(--green); border-color: rgba(53,212,135,.35); background: rgba(53,212,135,.08); }
.mode-badge.sample { color: var(--amber); border-color: rgba(248,184,78,.35); background: rgba(248,184,78,.08); }
.icon-btn, .chart-tools button, .pagination button { border: 1px solid var(--line); background: #101c26; color: var(--muted); border-radius: 9px; padding: 9px 12px; }
.primary-btn, .secondary-btn, .wide-btn { border-radius: 9px; padding: 10px 15px; border: 1px solid transparent; font-weight: 750; }
.primary-btn { color: #03100f; background: linear-gradient(135deg, #48dfca, #55a8ff); }
.secondary-btn { color: #c9d7e0; border-color: #304454; background: #12202c; }
.wide-btn { width: 100%; margin-top: 16px; color: #0b141a; background: #dcebf3; }
.wide-btn:disabled { color: #637583; background: #182733; cursor: not-allowed; }
.pulse-dot { width: 7px; height: 7px; display: inline-block; margin-right: 8px; border-radius: 50%; background: #071018; }
.shell { width: min(1500px, calc(100% - 40px)); margin: 24px auto 70px; }
.notice { display: flex; gap: 11px; align-items: center; padding: 12px 14px; border: 1px solid rgba(248,184,78,.22); color: #c9d5dc; background: rgba(248,184,78,.06); border-radius: 10px; font-size: 13px; }
.notice-icon { flex: 0 0 21px; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: #15100a; font-weight: 900; }
.notice button { margin-left: auto; border: 0; background: transparent; color: var(--amber); font-weight: 750; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 16px 0 32px; }
.stat-card { padding: 17px 18px; min-height: 102px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, rgba(17,31,43,.96), rgba(10,20,29,.96)); box-shadow: var(--shadow); }
.stat-card span, .stat-card small { display: block; color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; margin: 9px 0 5px; font-size: 22px; letter-spacing: -.03em; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 0 2px 14px; }
.eyebrow { margin: 0 0 5px; color: var(--cyan); font-size: 9px; font-weight: 850; letter-spacing: .18em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 24px; }
h2 { margin: 0; font-size: 17px; }
.updated { color: var(--muted); font-size: 11px; }
.decision-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; margin-bottom: 14px; }
.decision-card, .checklist-card, .panel { border: 1px solid var(--line); border-radius: 14px; background: rgba(13,24,34,.95); box-shadow: var(--shadow); }
.decision-card, .checklist-card { padding: 22px; }
.hero-decision { overflow: hidden; position: relative; background: radial-gradient(circle at 88% 4%, rgba(45,212,191,.12), transparent 30%), linear-gradient(145deg,#10212d,#0b1720); }
.decision-top { justify-content: space-between; }
.decision-top > div:first-child { display: grid; grid-template-columns: auto auto; gap: 4px 8px; align-items: center; }
.decision-top strong { font-size: 21px; }
.decision-top small { grid-column: 2; color: var(--muted); }
.market-pill { padding: 4px 7px; border-radius: 6px; color: var(--blue); background: rgba(89,167,255,.12); font-size: 10px; font-weight: 800; }
.score-ring { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--cyan) 0deg, #263846 0); position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 5px; background: #10202b; border-radius: 50%; }
.score-ring span, .score-ring small { z-index: 1; }
.score-ring span { align-self: end; font-size: 21px; font-weight: 850; }
.score-ring small { align-self: start; margin-top: -3px; color: var(--muted); font-size: 8px; }
.main-signal { display: inline-flex; align-items: center; margin: 18px 0 10px; padding: 7px 13px; border-radius: 7px; font-size: 13px; font-weight: 850; }
.main-signal.buy { color: var(--green); background: rgba(53,212,135,.11); border: 1px solid rgba(53,212,135,.22); }
.main-signal.watch { color: var(--amber); background: rgba(248,184,78,.1); border: 1px solid rgba(248,184,78,.22); }
.main-signal.sell { color: var(--red); background: rgba(255,101,119,.1); border: 1px solid rgba(255,101,119,.22); }
.main-signal.neutral { color: #9aafbd; background: rgba(128,148,165,.1); border: 1px solid rgba(128,148,165,.2); }
.live-quote { display: inline-flex; align-items: baseline; gap: 10px; margin-left: 9px; }
.live-quote span, .live-quote small { color: var(--muted); font-size: 10px; }
.live-quote strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.live-quote i { width: 6px; height: 6px; display: inline-block; margin-right: 3px; border-radius: 50%; background: #5d7180; }
.live-quote i.active { background: var(--green); box-shadow: 0 0 10px rgba(53,212,135,.6); }
.hero-decision > p { color: #b9c8d2; min-height: 22px; font-size: 14px; }
.levels { gap: 9px; padding-top: 16px; border-top: 1px solid var(--line); }
.levels > div { flex: 1; padding: 11px 12px; background: #0a141c; border: 1px solid #1b2b37; border-radius: 9px; }
.levels span, .sizing-row span, .sizing-row small { display: block; color: var(--muted); font-size: 10px; }
.levels strong { display: block; margin-top: 7px; font-size: 17px; }
.levels .danger strong { color: var(--red); }
.levels .success strong { color: var(--green); }
.sizing-row { gap: 14px; margin-top: 13px; }
.sizing-row strong { font-size: 18px; }
.sizing-row small { margin-left: auto; }
.card-title, .panel-header { justify-content: space-between; }
.count-badge { padding: 5px 9px; color: var(--cyan); background: rgba(45,212,191,.08); border: 1px solid rgba(45,212,191,.2); border-radius: 8px; font-size: 11px; }
.beginner-checks { margin: 16px 0 13px; padding: 0; list-style: none; }
.beginner-checks li { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid rgba(50,72,87,.55); }
.beginner-checks li > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: #182733; color: #8da1af; font-size: 10px; font-weight: 800; }
.beginner-checks li div { flex: 1; }
.beginner-checks strong, .beginner-checks small { display: block; }
.beginner-checks strong { font-size: 12px; }
.beginner-checks small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.beginner-checks b { color: #728794; font-size: 10px; }
.beginner-checks li.pass > span { background: rgba(53,212,135,.13); color: var(--green); }
.beginner-checks li.pass b { color: var(--green); }
.beginner-checks li.fail > span { background: rgba(255,101,119,.12); color: var(--red); }
.beginner-checks li.fail b { color: var(--red); }
.plain-guide { padding: 11px 12px; border-left: 3px solid var(--blue); background: rgba(89,167,255,.06); }
.plain-guide strong { font-size: 11px; color: var(--blue); }
.plain-guide p { margin: 5px 0 0; color: #a9bbc7; font-size: 11px; line-height: 1.55; }
.panel { margin-top: 14px; padding: 20px; }
.panel-header { margin-bottom: 16px; }
.panel-header small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.brief-panel { margin-top: -16px; margin-bottom: 30px; background: radial-gradient(circle at 90% 0, rgba(89,167,255,.08), transparent 28%), rgba(13,24,34,.95); }
.brief-quotes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.brief-card { min-width: 0; padding: 13px; border: 1px solid #203442; border-radius: 10px; background: #09151e; }
.brief-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.brief-card header div { min-width: 0; }
.brief-card header strong, .brief-card header small { display: block; }
.brief-card header strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.brief-card header small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.brief-card .source-tag { flex: 0 0 auto; max-width: 110px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 3px 5px; border-radius: 5px; color: #91a1af; background: #172733; font-size: 8px; text-decoration: none; }
.brief-card .quote-main { display: flex; align-items: baseline; gap: 8px; margin-top: 13px; }
.brief-card .quote-main b { font-size: 20px; font-variant-numeric: tabular-nums; }
.brief-card .quote-main span { font-size: 11px; font-weight: 750; }
.brief-card .proxy-line { display: flex; justify-content: space-between; gap: 8px; min-height: 26px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #192a35; color: #8298a6; font-size: 8px; }
.brief-card .proxy-line b { color: var(--cyan); font-size: 9px; }
.data-boundary { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 11px; padding: 9px 11px; color: #8296a3; border: 1px solid #1e303c; border-radius: 8px; background: #09131b; font-size: 9px; }
.data-boundary strong { color: #b9cbd5; }.data-boundary small { margin-left: auto; }.source-live { color: var(--cyan); }
.news-head { display: flex; align-items: end; justify-content: space-between; margin: 18px 1px 9px; }
.news-head h3 { margin: 0; font-size: 13px; }.news-head small, .news-head span { color: var(--muted); font-size: 9px; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.news-item { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; min-width: 0; padding: 10px; color: #c9d6de; text-decoration: none; border: 1px solid #1c2d38; border-radius: 8px; background: #0a151d; }
.news-item:hover { border-color: #36576a; background: #10212c; }
.news-category { padding: 4px 6px; color: var(--blue); border-radius: 5px; background: rgba(89,167,255,.08); font-size: 8px; }
.news-copy { min-width: 0; }.news-copy strong, .news-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.news-copy strong { font-size: 10px; }.news-copy small { margin-top: 3px; color: var(--muted); font-size: 8px; }.news-arrow { color: #5f7684; }
.legend, .chart-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: 10px; }
.legend i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; }
.legend .buy { background: var(--green); }.legend .watch { background: var(--amber); }.legend .wait { background: #607482; }
.table-wrap, .universe-table-wrap { overflow: auto; border: 1px solid #1d2c38; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; min-width: 920px; }
th { padding: 10px 12px; color: #6f8797; background: #0a141c; font-size: 9px; text-align: left; letter-spacing: .05em; text-transform: uppercase; }
td { padding: 12px; border-top: 1px solid #1c2b37; color: #c6d4dc; font-size: 12px; }
tbody tr:not(.empty-row) { transition: background .16s ease; }
tbody tr:not(.empty-row):hover { background: #132431; }
.signal-row { cursor: pointer; }
.rank { color: #6e8392; font-variant-numeric: tabular-nums; }
.stock-cell strong, .stock-cell small { display: block; }.stock-cell small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.score-bar { width: 96px; height: 5px; margin-top: 5px; background: #1e303c; border-radius: 9px; overflow: hidden; }.score-bar i { display: block; height: 100%; background: linear-gradient(90deg,var(--blue),var(--cyan)); }
.signal-chip { display: inline-block; padding: 5px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; }
.signal-chip.buy { color: var(--green); background: rgba(53,212,135,.1); }.signal-chip.watch { color: var(--amber); background: rgba(248,184,78,.1); }.signal-chip.sell { color: var(--red); background: rgba(255,101,119,.1); }.signal-chip.neutral { color: #8da1ae; background: #172630; }
.empty-row td, .empty-box { padding: 32px; color: #637986; text-align: center; }
.chart-panel { position: relative; }
.chart-controls { display: grid; justify-items: end; gap: 8px; }
.timeframe-tabs { display: flex; padding: 3px; border: 1px solid #263a48; border-radius: 8px; background: #09141c; }
.timeframe-tabs button { min-width: 47px; padding: 6px 9px; color: #748b99; border: 0; border-radius: 6px; background: transparent; font-size: 9px; }
.timeframe-tabs button.active { color: #051313; background: var(--cyan); font-weight: 800; }
.chart-key { display: inline-block; width: 16px; height: 2px; }.chart-key.close { background: #dceaf1; }.chart-key.vwap { background: var(--cyan); }.chart-key.ema9 { background: var(--blue); }.chart-key.ema21 { background: var(--violet); }
.canvas-wrap { height: 420px; position: relative; border: 1px solid #1b2c38; border-radius: 10px; overflow: hidden; background: #08131b; }
#priceChart { width: 100%; height: 100%; display: block; }
.chart-tooltip { position: absolute; z-index: 4; pointer-events: none; padding: 9px 10px; color: #dce8ef; background: rgba(5,12,17,.94); border: 1px solid #2b4353; border-radius: 7px; font-size: 10px; line-height: 1.55; box-shadow: var(--shadow); }
.chart-loading { position: absolute; z-index: 5; inset: 75px 20px 55px; display: grid; place-items: center; background: rgba(7,16,24,.75); color: var(--cyan); }
.chart-annotation { display: flex; gap: 14px; align-items: center; padding: 12px 2px 0; color: var(--muted); font-size: 10px; }.chart-annotation small { margin-left: auto; }.marker-buy { color: var(--green); }.marker-sell,.line-stop { color: var(--red); }.line-target { color: var(--green); }.live-candle-key { color: var(--amber); }
.analysis-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }.analysis-grid .panel { margin-top: 14px; }
.regime { color: var(--cyan); border: 1px solid rgba(45,212,191,.25); background: rgba(45,212,191,.07); border-radius: 7px; padding: 5px 8px; font-size: 10px; }
.factor-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.factor { display: grid; grid-template-columns: 10px 1fr auto; gap: 9px; align-items: center; padding: 10px; background: #0a151d; border: 1px solid #1a2a36; border-radius: 8px; }.factor i { width: 7px; height: 7px; border-radius: 50%; background: #647987; }.factor.pass i { background: var(--green); box-shadow: 0 0 10px rgba(53,212,135,.4); }.factor.fail i { background: var(--red); }.factor strong, .factor small { display: block; }.factor strong { font-size: 11px; }.factor small { margin-top: 2px; color: var(--muted); font-size: 9px; }.factor b { color: #79909e; font-size: 11px; }.factor.pass b { color: var(--green); }.factor.fail b { color: var(--red); }
.math-details { margin-top: 12px; color: var(--muted); font-size: 10px; }.math-details summary { cursor: pointer; color: #9eb0bc; }.math-details p { margin: 8px 0 0; line-height: 1.6; }
.pattern-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; padding: 11px; border: 1px solid rgba(167,139,250,.23); border-radius: 9px; background: rgba(167,139,250,.05); }
.pattern-card > div { padding-right: 7px; border-right: 1px solid #2b2c44; }.pattern-card > div:nth-child(3) { border-right: 0; }.pattern-card span,.pattern-card strong { display: block; }.pattern-card span { color: var(--muted); font-size: 8px; }.pattern-card strong { margin-top: 4px; font-size: 13px; }.pattern-card p { grid-column: 1 / -1; margin: 2px 0 0; color: #817f9d; font-size: 8px; line-height: 1.5; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.metric-grid > div { padding: 11px; background: #0a151d; border: 1px solid #1a2a36; border-radius: 8px; }.metric-grid span, .metric-grid strong { display: block; }.metric-grid span { color: var(--muted); font-size: 9px; }.metric-grid strong { margin-top: 6px; font-size: 16px; }
.equity-chart { width: 100%; height: 90px; margin-top: 12px; }.fine-print { margin: 8px 0 0; color: #637885; font-size: 9px; line-height: 1.5; }
.assistant-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }
.quick-prompts { display: flex; gap: 6px; flex-wrap: wrap; }
.quick-prompts button { padding: 6px 8px; color: #9cb1bd; border: 1px solid #263b48; border-radius: 7px; background: #0a151d; font-size: 9px; }
.chat-messages { height: 245px; overflow: auto; margin: 10px 0; padding: 10px; border: 1px solid #1c2d38; border-radius: 9px; background: #08131b; }
.chat-bubble { width: fit-content; max-width: 88%; margin: 6px 0; padding: 9px 11px; border-radius: 10px; white-space: pre-wrap; font-size: 10px; line-height: 1.55; }
.chat-bubble.assistant { color: #c8d7df; border: 1px solid #263f4d; background: #10212c; }.chat-bubble.user { margin-left: auto; color: #071314; background: #66dcca; }.chat-bubble.loading { color: var(--muted); }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }.chat-form textarea { min-height: 58px; resize: vertical; padding: 10px; color: #dbe8ee; border: 1px solid #293e4c; border-radius: 8px; outline: none; background: #09141c; }.chat-form textarea:focus { border-color: var(--cyan); }
.execution-status { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.execution-status > div { padding: 11px; border: 1px solid #1c2e39; border-radius: 8px; background: #09151d; }.execution-status span,.execution-status strong,.execution-status small { display: block; }.execution-status span,.execution-status small { color: var(--muted); font-size: 8px; }.execution-status strong { margin: 6px 0 4px; font-size: 13px; }
.execution-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 10px 0; }.danger-btn { padding: 10px 13px; color: #ffd5db; border: 1px solid rgba(255,101,119,.45); border-radius: 9px; background: rgba(255,101,119,.11); font-weight: 750; }
.warning-box { padding: 11px; color: #9fb0bb; border-left: 3px solid var(--amber); background: rgba(248,184,78,.055); }.warning-box strong { color: var(--amber); font-size: 10px; }.warning-box p { margin: 5px 0 0; font-size: 9px; line-height: 1.55; }
.decision-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.order-btn { color: var(--cyan); border: 1px solid rgba(45,212,191,.28); background: rgba(45,212,191,.07); }
.universe-head small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.search-bar { gap: 8px; margin-bottom: 11px; }.search-bar input { flex: 1; min-width: 220px; }.search-bar input, .search-bar select, .settings-form input, .settings-form select { border: 1px solid #283c4a; border-radius: 8px; padding: 10px 11px; color: #dbe7ed; outline: none; background: #0a151d; }.search-bar input:focus, .settings-form input:focus, .settings-form select:focus { border-color: var(--cyan); }
.universe-table-wrap { max-height: 430px; }.universe-table-wrap table { min-width: 760px; }.universe-table-wrap td { padding: 9px 12px; }.add-watch { border: 1px solid #315064; border-radius: 6px; background: #142633; color: var(--blue); padding: 5px 8px; font-size: 9px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; padding-top: 12px; color: var(--muted); font-size: 10px; }
.position-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 12px; }.position-card { padding: 13px; border: 1px solid #27404e; background: #0a151d; border-radius: 9px; }.position-card header { display: flex; justify-content: space-between; }.position-card small { color: var(--muted); }.position-levels { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin: 10px 0; }.position-levels span,.position-levels b { display: block; }.position-levels span { color: var(--muted); font-size: 8px; }.position-levels b { margin-top: 3px; font-size: 11px; }.close-paper { width: 100%; border: 1px solid rgba(255,101,119,.3); border-radius: 6px; padding: 6px; color: var(--red); background: rgba(255,101,119,.05); }
.compact table { min-width: 650px; }
.subheading { margin: 18px 0 9px; color: #aebfc9; font-size: 12px; }
dialog { width: min(600px, calc(100% - 30px)); padding: 0; color: var(--text); border: 1px solid #304655; border-radius: 15px; background: #0d1922; box-shadow: 0 30px 90px #000; } dialog::backdrop { background: rgba(1,5,8,.76); backdrop-filter: blur(5px); }.settings-form { padding: 22px; }.dialog-close { border: 0; color: var(--muted); background: transparent; font-size: 25px; }.settings-form > label, .form-grid label { display: grid; gap: 6px; color: #91a6b4; font-size: 10px; }.settings-form > label { margin-top: 16px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 12px; }.security-note { padding: 12px; margin-top: 15px; border: 1px solid rgba(89,167,255,.18); background: rgba(89,167,255,.05); border-radius: 8px; }.security-note strong { color: var(--blue); font-size: 10px; }.security-note p { margin: 5px 0 0; color: #8398a6; font-size: 10px; line-height: 1.5; }.security-note code { color: #bed8e7; }.dialog-actions { justify-content: flex-end; gap: 8px; margin-top: 18px; }
.switch-grid { padding-top: 12px; border-top: 1px solid #20313e; }.check-label { display: flex !important; grid-template-columns: auto 1fr; flex-direction: row; align-items: center; gap: 7px !important; }.check-label input { width: auto; padding: 0; accent-color: var(--cyan); }
.order-warning { margin-top: 12px; padding: 10px; color: #c5a96e; border: 1px solid rgba(248,184,78,.2); border-radius: 8px; background: rgba(248,184,78,.05); font-size: 9px; line-height: 1.5; }.full-action { width: 100%; margin-top: 13px; }.confirmation-box { display: grid; gap: 9px; margin-top: 12px; padding: 12px; border: 1px solid rgba(255,101,119,.28); border-radius: 9px; background: rgba(255,101,119,.05); }.confirmation-box span { color: #bd98a0; font-size: 9px; }.confirmation-box code { padding: 8px; color: #ffe1e5; border-radius: 6px; background: #190d12; font-size: 11px; user-select: all; }.confirmation-box input { padding: 10px; color: white; border: 1px solid #69404a; border-radius: 7px; background: #100b0f; }.preview-result { margin-top: 12px; color: #8297a4; font-size: 9px; line-height: 1.6; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: 420px; padding: 12px 15px; color: #dce7ed; background: #142633; border: 1px solid #345063; border-radius: 9px; box-shadow: var(--shadow); font-size: 12px; }.toast.error { border-color: rgba(255,101,119,.5); color: #ffc2ca; }
.hidden { display: none !important; }
.positive { color: var(--green) !important; }.negative { color: var(--red) !important; }
.mobile-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(420px, 100%); padding: 28px; border: 1px solid #2a4555; border-radius: 18px; background: rgba(13,25,34,.96); box-shadow: var(--shadow); }
.login-card h1 { margin: 8px 0; font-size: 27px; }.login-card p { color: #9eb2be; line-height: 1.65; font-size: 12px; }.login-card form { display: grid; gap: 10px; margin: 20px 0 12px; }.login-card input { width: 100%; padding: 14px; color: white; border: 1px solid #345264; border-radius: 9px; background: #08141b; font-size: 20px; letter-spacing: .25em; text-align: center; }.login-card small { color: #718794; line-height: 1.5; }.login-error { min-height: 20px; color: var(--red); font-size: 11px; }

@media (max-width: 1000px) {
  .topbar { padding: 0 15px; }.brand-wrap { min-width: auto; }.brand-sub { display: none; }.top-actions { min-width: auto; }.mode-badge { display: none; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }.decision-grid, .analysis-grid, .assistant-grid { grid-template-columns: 1fr; }.brief-quotes { grid-template-columns: repeat(2,1fr); }.canvas-wrap { height: 350px; }.shell { width: min(100% - 24px, 1500px); }
}
@media (max-width: 650px) {
  .topbar { height: auto; min-height: 65px; flex-wrap: wrap; gap: 8px; padding: 10px 12px; }.brand { font-size: 13px; }.market-tabs { order: 3; width: 100%; }.tab { flex: 1; }.primary-btn { padding: 9px 11px; }.stats-grid { gap: 8px; }.stat-card { padding: 13px; min-height: 88px; }.stat-card strong { font-size: 18px; }
  .decision-card,.checklist-card,.panel { padding: 15px; }.levels { display: grid; grid-template-columns: 1fr 1fr; }.factor-list { grid-template-columns: 1fr; }.brief-quotes,.news-grid { grid-template-columns: 1fr; }.canvas-wrap { height: 310px; }.chart-head { align-items: flex-start; }.chart-tools { display: none; }.chart-annotation { flex-wrap: wrap; }.chart-annotation small { width: 100%; margin-left: 0; }.search-bar { flex-wrap: wrap; }.search-bar input { width: 100%; flex-basis: 100%; }.search-bar select { flex: 1; }.position-cards { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; }.data-boundary small { width: 100%; margin-left: 0; }.decision-actions { grid-template-columns: 1fr; }
  body { padding-bottom: 18px; }.shell { width: calc(100% - 16px); }.panel-header { gap: 8px; }.panel-header h2 { font-size: 15px; }.top-actions { gap: 5px; }.top-actions .icon-btn { min-width: 40px; min-height: 40px; }.top-actions .primary-btn { min-height: 40px; }.tab, button { min-height: 40px; }
}
