:root {
  --bg: #060912;
  --panel: rgba(13, 20, 34, .86);
  --panel2: rgba(18, 29, 49, .9);
  --line: rgba(255,255,255,.11);
  --text: #eef6ff;
  --muted: #91a2ba;
  --green: #39d98a;
  --red: #ff4d5e;
  --blue: #3f8cff;
  --yellow: #ffd166;
  --violet: #b48cff;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
html { touch-action: none; overscroll-behavior: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Pretendard, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgba(54, 112, 255, .25), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(255, 93, 115, .16), transparent 30%),
    linear-gradient(180deg, #070a12 0%, #090d16 48%, #05070c 100%);
}
body, .shell, .chart-shell, .chart-scroll, canvas { overscroll-behavior: none; }
canvas, .chart-shell, .chart-scroll { touch-action: none; -webkit-user-select: none; user-select: none; }
.json-output { margin: 0; min-height: 100vh; padding: 18px; color: #eaf4ff; background: #050912; white-space: pre-wrap; font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.signal-flash { position: fixed; inset: 0; z-index: 99999; pointer-events: none; display: grid; place-items: center; opacity: 0; color: #fff; font-size: clamp(36px, 10vw, 128px); font-weight: 1000; letter-spacing: 0; text-align: center; text-shadow: 0 8px 40px rgba(0,0,0,.65); }
.signal-flash.buy { background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.20), transparent 32%), rgba(255, 33, 55, .78); }
.signal-flash.sell { background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.18), transparent 32%), rgba(25, 104, 255, .78); }
.signal-flash.is-active { animation: fullSignalFlash 0.5s ease-in-out 6; }
@keyframes fullSignalFlash { 0%, 100% { opacity: 0; } 45%, 65% { opacity: 1; } }
.shell { width: 100%; margin: 0 auto; padding: 6px 0 16px; }
.topbar { display: none; }
.eyebrow { margin: 0 0 4px; color: var(--blue); font-size: 11px; letter-spacing: 0; font-weight: 900; }
h1 { margin: 0; font-size: clamp(24px, 3vw, 42px); line-height: .98; letter-spacing: 0; }
h1 span { color: var(--green); }
h2, h3 { margin: 0; }
.top-actions { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); font-weight: 900; white-space: nowrap; }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 22px var(--green); }
.control-panel, .market-strip, .main-chart-card, .side-panel article, .bottom-grid article {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
}
.control-panel { display: grid; grid-template-columns: 300px 1fr; gap: 10px; align-items: end; padding: 8px; margin-bottom: 8px; }
.search-block label { display: block; color: var(--muted); font-weight: 900; margin-bottom: 8px; }
.search-row { display: grid; grid-template-columns: 1fr 64px; gap: 7px; align-items: center; }
input, select { width: 100%; height: 42px; color: var(--text); background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 13px; padding: 0 13px; font-size: 16px; outline: none; -webkit-user-select: text; user-select: text; touch-action: manipulation; }
.control-actions { display: none; }
button, .pill, .fav-pill, .prev-pill { height: 38px; border: 0; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text); padding: 0 12px; font-weight: 900; cursor: pointer; }
button:hover, .pill:hover, .fav-pill:hover, .prev-pill:hover, button.active { background: rgba(255,77,94,.22); }
.star-btn { width: 34px; height: 34px; padding: 0; font-size: 22px; line-height: 1; background: transparent; color: #cbd7e8; border: 1px solid transparent; }
.star-btn:hover, .star-btn.active { color: var(--yellow); background: rgba(255,209,102,.12); border-color: rgba(255,209,102,.24); }
.chart-star-btn { flex: 0 0 auto; align-self: flex-start; margin-left: auto; width: 40px; height: 40px; border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.chart-star-btn.active { text-shadow: 0 0 14px rgba(255,209,102,.72); }
.quick-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.favorite-list { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-weight: 900; min-height: 34px; }
.previous-top3 { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-height: 34px; color: #ffe3a3; font-weight: 950; }
.previous-top3 > b { flex: 0 0 auto; font-size: 12px; letter-spacing: 0; }
.previous-top3-list { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.prev-pill { height: 32px; background: rgba(255,209,102,.13); color: #ffe3a3; border: 1px solid rgba(255,209,102,.22); }
.prev-pill.sim-buy { background: rgba(255,77,94,.18); color: #ffdce1; border-color: rgba(255,77,94,.42); }
.signal-log-list { gap: 6px; }
.signal-log-row { width: 100%; min-height: 42px; padding: 7px 8px; border-radius: 10px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; text-align: left; }
.signal-log-row span { font-weight: 950; font-size: 12px; line-height: 1.05; }
.signal-log-row strong { font-weight: 850; font-size: 12px; line-height: 1.15; color: rgba(255,255,255,.92); }
.signal-log-row.buy-log { background: rgba(255,77,94,.16); color: #ff6b7a; border: 1px solid rgba(255,77,94,.42); }
.signal-log-row.sell-log { background: rgba(63,140,255,.16); color: #6aa8ff; border: 1px solid rgba(63,140,255,.42); }
.fav-empty { color: rgba(238,246,255,.48); font-size: 13px; }
.market-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 8px; margin-bottom: 10px; }
.strip-item { padding: 9px 11px; background: rgba(0,0,0,.22); border: 1px solid var(--line); border-radius: 14px; }
.strip-item.buy { border-color: rgba(255,77,94,.55); background: rgba(255,77,94,.13); }
.strip-item.sell { border-color: rgba(63,140,255,.55); background: rgba(63,140,255,.13); }
.strip-item span { color: var(--muted); font-size: 11px; font-weight: 900; }
.strip-item strong { display: block; margin-top: 2px; font-size: 18px; }
.strip-item.buy strong { color: var(--red); }
.strip-item.sell strong { color: var(--blue); }
.viewer-grid { display: block; }
.dashboard-panel { position: relative; display: grid; grid-template-columns: minmax(150px, max-content) minmax(0, 1fr) minmax(170px, max-content) minmax(190px, max-content); grid-template-rows: auto auto auto; gap: 8px 8px; align-items: center; padding: 10px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); }
.dashboard-head { grid-column: 1; grid-row: 1; display: inline-flex; width: fit-content; max-width: min(560px, 100%); align-self: center; justify-self: start; align-items: center; gap: 7px; margin: 0; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,209,102,.34); background: rgba(255,209,102,.12); color: inherit; text-align: left; white-space: nowrap; cursor: pointer; }
.dashboard-head b { font-size: 15px; font-weight: 1000; color: #eef6ff; }
.dashboard-head small { color: rgba(238,246,255,.55); font-weight: 850; }
.chart-summary-text { display: inline-block; min-width: 0; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(238,246,255,.74); font-size: 12px; font-weight: 900; }
.chart-summary-text strong { color: #ffe3a3; font-weight: 1000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-summary-text em { flex: 0 0 auto; color: #a8f0c8; font-size: 10px; font-style: normal; font-weight: 1000; }
.chart-summary-text span { flex: 0 1 auto; max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(238,246,255,.58); }
.chart-summary-text[data-status="running"] strong { color: #a8f0c8; }
.dashboard-performance { grid-column: 3; grid-row: 1; justify-self: end; height: 30px; display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 0 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: rgba(238,246,255,.86); font-size: 11px; font-weight: 1000; white-space: nowrap; overflow: hidden; }
.dashboard-performance[hidden] { display: none; }
.dashboard-performance span { display: inline-flex; align-items: center; gap: 3px; }
.dashboard-performance em { color: rgba(238,246,255,.58); font-style: normal; font-weight: 900; }
.dashboard-performance b { color: #ffe3a3; font-weight: 1000; }
.dashboard-performance .perf-source b { color: #a8f0c8; }
.dashboard-record-actions { grid-column: 4; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 5px; min-width: 0; }
.annual-ledger-btn { display: inline-flex; align-items: center; justify-content: center; height: 30px; border-radius: 8px; border: 1px solid rgba(64,216,137,.48); background: rgba(64,216,137,.13); color: #caffdf; padding: 0 10px; font-size: 11px; font-weight: 1000; text-decoration: none; white-space: nowrap; }
.annual-ledger-btn:hover, .annual-ledger-btn:focus-visible { background: rgba(64,216,137,.21); color: #fff; border-color: rgba(64,216,137,.78); outline: none; }
.trade-record-btn { height: 30px; max-width: 100%; border-radius: 8px; border: 1px solid rgba(255,209,102,.42); background: rgba(255,209,102,.13); color: #ffe3a3; padding: 0 10px; font-size: 11px; font-weight: 1000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trade-record-btn:hover, .trade-record-btn:focus-visible { background: rgba(255,209,102,.18); color: #fff4c8; border-color: rgba(255,209,102,.72); outline: none; }
.dashboard-grid { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.dashboard-market-divider { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 2px 0 1px; color: rgba(238,246,255,.72); font-size: 11px; font-weight: 1000; letter-spacing: .08em; }
.dashboard-market-divider::before, .dashboard-market-divider::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(238,246,255,.24), transparent); }
.dashboard-market-divider span { padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.06); }
.dashboard-market-divider.kosdaq { margin-top: 8px; color: #ffe3a3; }
.dashboard-market-divider.kosdaq::before, .dashboard-market-divider.kosdaq::after { background: linear-gradient(90deg, transparent, rgba(255,209,102,.42), transparent); }
.dashboard-server-time { grid-column: 1 / -1; grid-row: 3; margin-top: 0; text-align: right; color: rgba(238,246,255,.54); font-size: 11px; font-weight: 900; line-height: 1.2; display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.dashboard-server-time[data-state="pending"] { opacity: .68; }
.dashboard-last-session-banner { display: inline-flex; align-items: center; min-height: 22px; padding: 0 10px; margin-right: 6px; border-radius: 999px; border: 1px solid rgba(255,196,84,.4); background: rgba(255,196,84,.12); color: #ffd88a; font-size: 11px; font-weight: 1000; white-space: nowrap; letter-spacing: -.2px; }
.dashboard-scan-status { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-right: auto; color: rgba(238,246,255,.72); }
.dashboard-scan-status b { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: rgba(238,246,255,.88); font-size: 11px; font-weight: 1000; white-space: nowrap; }
.dashboard-scan-status b:first-child { color: #caffdf; border-color: rgba(65,217,139,.22); background: rgba(65,217,139,.075); }
.dashboard-scan-status b.winner-gate-badge.is-closed { color: #ffd7dd; border-color: rgba(255,93,115,.46); background: rgba(255,93,115,.12); }
.dashboard-scan-status b.winner-gate-badge.is-shadow { color: #ccecff; border-color: rgba(86,186,255,.48); background: rgba(86,186,255,.13); }
.dashboard-scan-status b.winner-gate-badge.is-continuity { color: #ffe3a3; border-color: rgba(255,209,102,.46); background: rgba(255,209,102,.12); }
.dashboard-scan-status b.winner-gate-badge.is-confirmed { color: #caffdf; border-color: rgba(65,217,139,.46); background: rgba(65,217,139,.12); }
.dashboard-server-started { white-space: nowrap; }
.llm-link-status { display: inline-flex; align-items: center; gap: 4px; color: #ffb8c0; font-weight: 1000; }
.llm-link-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 9px rgba(255,77,94,.45); }
.llm-link-status.ok { color: #caffdf; }
.llm-link-status.ok i { background: var(--green); box-shadow: 0 0 9px rgba(65,217,139,.55); }
.trade-record-panel[hidden], .chart-summary-panel[hidden] { display: none; }
.trade-record-panel, .chart-summary-panel { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 18px; background: rgba(1,5,12,.72); backdrop-filter: blur(8px); }
.trade-record-card { width: min(980px, 100%); max-height: min(760px, calc(100vh - 36px)); display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 8px; border: 1px solid rgba(255,255,255,.16); background: #08101d; box-shadow: 0 24px 90px rgba(0,0,0,.52); }
.chart-summary-card { width: min(760px, 100%); max-height: min(720px, calc(100vh - 36px)); display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; border-radius: 14px; border: 1px solid rgba(255,209,102,.22); background: #08101d; box-shadow: 0 24px 90px rgba(0,0,0,.58); }
.trade-record-head, .chart-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-bottom: 1px solid rgba(255,255,255,.10); }
.trade-record-head b, .chart-summary-head b { display: block; font-size: 17px; font-weight: 1000; }
.trade-record-head span, .chart-summary-head span { display: block; margin-top: 3px; color: rgba(238,246,255,.62); font-size: 12px; font-weight: 850; }
.trade-record-head button, .chart-summary-head button { flex: 0 0 auto; height: 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); }
.trade-record-list { overflow: auto; padding: 10px; display: grid; gap: 7px; }
.chart-summary-body { overflow: auto; padding: 14px; display: grid; gap: 12px; }
.chart-summary-main h3 { margin: 0; padding: 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(255,209,102,.18), rgba(255,255,255,.055)); color: #ffe3a3; font-size: 18px; line-height: 1.35; font-weight: 1000; word-break: keep-all; }
.chart-summary-section { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.045); }
.chart-summary-section > b { color: #eef6ff; font-size: 13px; font-weight: 1000; }
.chart-summary-section p { margin: 0; color: rgba(238,246,255,.82); font-size: 13px; line-height: 1.45; font-weight: 850; word-break: keep-all; }
.chart-summary-watch-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.chart-summary-watch { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; gap: 3px 8px; align-items: start; align-content: start; text-align: left; height: auto; min-height: 66px; padding: 10px; border-radius: 10px; border: 1px solid rgba(255,209,102,.20); background: rgba(255,209,102,.075); color: #eef6ff; }
.chart-summary-watch-star { position: absolute; right: 7px; top: 6px; z-index: 2; color: var(--yellow); font-size: 15px; line-height: 1; font-weight: 1000; text-shadow: 0 0 12px rgba(255,209,102,.65); pointer-events: none; }
.chart-summary-watch.is-major-watch .chart-summary-watch-star { opacity: .86; }
.chart-summary-nxt-star { position: absolute; right: 7px; top: 6px; z-index: 2; color: #73e6e1; font-size: 10px; line-height: 1; font-weight: 1000; text-shadow: 0 0 9px rgba(70,211,205,.46); pointer-events: none; }
.chart-summary-watch.is-nxt-watch { padding-right: 45px; border-color: rgba(70,211,205,.36); background: rgba(70,211,205,.08); }
.chart-summary-watch b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 1000; }
.chart-summary-watch small { color: rgba(238,246,255,.50); font-weight: 900; }
.chart-summary-watch em { grid-column: 1 / -1; color: rgba(238,246,255,.75); font-size: 12px; font-style: normal; font-weight: 850; line-height: 1.35; }
.chart-summary-watch i { grid-column: 1 / -1; display: flex; gap: 6px; color: rgba(238,246,255,.62); font-style: normal; font-size: 11px; font-weight: 1000; }
.chart-summary-watch .win { color: var(--red); } .chart-summary-watch .loss { color: var(--blue); }
.chart-summary-risk { border-color: rgba(63,140,255,.24); background: rgba(63,140,255,.075); }
.trade-record-tabs { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 0 7px; background: #08101d; }
.trade-record-tabs button { height: 34px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: rgba(238,246,255,.72); font-size: 12px; font-weight: 1000; }
.trade-record-tabs button.active { border-color: rgba(255,209,102,.56); background: rgba(255,209,102,.16); color: #ffe3a3; box-shadow: inset 0 0 0 1px rgba(255,209,102,.22); }
.trade-record-section { display: grid; gap: 7px; }
.trade-record-section[hidden] { display: none; }
.trade-record-section h3 { margin: 0; color: rgba(238,246,255,.74); font-size: 12px; font-weight: 1000; }
.trade-log-list { display: grid; gap: 6px; }
.trade-log-row { display: grid; grid-template-columns: 58px 48px minmax(120px, 1fr) 94px 70px; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); font-size: 12px; font-weight: 900; }
.trade-log-row b { color: #eef6ff; font-weight: 1000; }
.trade-log-row > span:nth-child(2) { justify-self: start; padding: 3px 7px; border-radius: 999px; font-weight: 1000; }
.trade-log-row.buy > span:nth-child(2) { color: #ffdce1; background: rgba(255,77,94,.22); }
.trade-log-row.sell > span:nth-child(2) { color: #d7e8ff; background: rgba(63,140,255,.22); }
.trade-log-row em { color: rgba(238,246,255,.52); font-style: normal; }
.trade-record-row { display: grid; grid-template-columns: minmax(96px, .8fr) 108px 116px minmax(150px, 1fr) 78px; gap: 9px; align-items: center; padding: 9px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); font-size: 12px; font-weight: 850; }
.trade-record-row b { font-size: 13px; font-weight: 1000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trade-record-row span { color: rgba(238,246,255,.74); line-height: 1.3; overflow-wrap: anywhere; }
.trade-record-row .record-pnl.win, .trade-log-row .record-pnl.win { color: var(--red); }
.trade-record-row .record-pnl.loss, .trade-log-row .record-pnl.loss { color: var(--blue); }
.trade-record-empty { margin: 0; padding: 16px; color: rgba(238,246,255,.62); font-weight: 900; }
.dashboard-test-row { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.test-mode-btn { height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,165,0,.78); background: linear-gradient(135deg, #ff9f1a, #ff6b00); color: #1a0b00; font-weight: 1000; box-shadow: 0 0 22px rgba(255,138,0,.28); }
.test-mode-btn.active { background: linear-gradient(135deg, #ff4d5e, #ff9f1a); color: #fff; animation: dashBuyBlink 1s ease-in-out infinite; }
.test-mode-btn.is-busy { opacity: .68; pointer-events: none; }
.dash-symbol { --dash-bg: rgba(255,255,255,.07); --dash-fg: #eaf4ff; --dash-border: rgba(255,255,255,.10); position: relative; height: 46px; min-height: 46px; border: 1px solid var(--dash-border); border-radius: 10px; background: var(--dash-bg); color: var(--dash-fg); padding: 4px 7px; text-align: center; cursor: pointer; overflow: hidden; text-shadow: 0 1px 2px rgba(0,0,0,.75); display: flex; flex-direction: column; justify-content: center; gap: 1px; line-height: 1.05; transition: border-color .12s ease, box-shadow .12s ease; }
.dash-topline { display: block; width: 100%; min-height: 20px; min-width: 0; }
.dash-day-candle { position: absolute; left: 1px; right: auto; top: 0; bottom: 0; z-index: 0; width: 20px; height: auto; display: block; pointer-events: none; opacity: .88; filter: drop-shadow(0 1px 3px rgba(0,0,0,.82)); }
.dash-day-candle svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dash-day-candle line { stroke: rgba(238,246,255,.72); stroke-width: 1.7; stroke-linecap: square; vector-effect: non-scaling-stroke; }
.dash-day-candle rect { fill: rgba(238,246,255,.48); stroke: rgba(238,246,255,.62); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dash-day-candle.up line, .dash-day-candle.up rect { stroke: #ff6b78; }
.dash-day-candle.up rect { fill: rgba(255,77,94,.84); }
.dash-day-candle.down line, .dash-day-candle.down rect { stroke: #5aa0ff; }
.dash-day-candle.down rect { fill: rgba(63,140,255,.84); }
.dash-day-candle.flat line, .dash-day-candle.flat rect { stroke: rgba(238,246,255,.48); fill: rgba(238,246,255,.30); }
.dash-name { position: relative; z-index: 1; display: block; min-width: 0; width: 100%; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 16px; text-align: center; font-weight: 1000; padding: 0 12px; background: linear-gradient(90deg, transparent 0%, rgba(8,12,22,.34) 18%, rgba(8,12,22,.44) 82%, transparent 100%); }
.dash-symbol.has-real-pnl .dash-name { padding-left: 7px; }
.dash-real-pnl { position: absolute; left: 3px; top: 3px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; max-width: 44px; height: 12px; padding: 0 3px; border-radius: 4px; border: 1px solid rgba(255,255,255,.16); background: rgba(6,10,18,.72); color: rgba(238,246,255,.86); font-size: 8px; line-height: 12px; font-weight: 1000; letter-spacing: 0; text-shadow: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.dash-real-pnl.up { color: #ffe0e5; border-color: rgba(255,77,94,.46); background: rgba(255,77,94,.22); }
.dash-real-pnl.down { color: #d9eaff; border-color: rgba(63,140,255,.46); background: rgba(63,140,255,.22); }
.dash-real-pnl.flat { color: #fff0bd; border-color: rgba(255,209,102,.42); background: rgba(255,209,102,.16); }
.dash-question-badge { position: absolute; right: 4px; bottom: 4px; z-index: 4; display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 14px; padding: 0 4px; border-radius: 4px; border: 1px solid rgba(255,255,255,.42); background: rgba(255,209,102,.96); color: #211600; font-size: 9px; line-height: 14px; font-weight: 1000; text-shadow: none; white-space: nowrap; pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.dash-question-badge.buy { color: #fff2f4; border-color: rgba(255,178,188,.62); background: rgba(255,77,94,.88); }
.dash-question-badge.sell { color: #edf6ff; border-color: rgba(171,207,255,.66); background: rgba(63,140,255,.88); }
.dash-summary-star { position: absolute; right: 4px; top: 3px; z-index: 5; color: var(--yellow); font-size: 14px; line-height: 1; font-weight: 1000; text-shadow: 0 0 10px rgba(255,209,102,.75), 0 1px 2px rgba(0,0,0,.75); pointer-events: none; }
.dash-symbol.is-summary-watch { border-color: rgba(255,209,102,.46); box-shadow: inset 0 0 0 1px rgba(255,209,102,.14); }
.dash-summary-nxt-mark { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 12px; color: #73e6e1; font-size: 8px; line-height: 12px; text-shadow: 0 0 8px rgba(70,211,205,.55), 0 1px 2px rgba(0,0,0,.75); white-space: nowrap; }
.dash-symbol.is-summary-nxt { border-color: rgba(70,211,205,.52); box-shadow: inset 0 0 0 1px rgba(70,211,205,.16); }
.dash-summary-risk-mark { width: 15px; height: 14px; color: #ff4d5e; font-size: 0; line-height: 1; text-shadow: none; display: inline-flex; align-items: center; justify-content: center; }
.dash-summary-risk-mark::before { content: ''; position: absolute; left: 0; top: 0; width: 0; height: 0; border-left: 7.5px solid transparent; border-right: 7.5px solid transparent; border-bottom: 14px solid #ff4d5e; filter: drop-shadow(0 0 8px rgba(255,77,94,.78)); }
.dash-summary-risk-mark::after { content: ''; position: absolute; left: 2.5px; top: 4px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid rgba(5,9,18,.96); }
.dash-summary-risk-mark b { position: relative; z-index: 1; margin-top: 4px; color: #ff4d5e; font-size: 8px; line-height: 8px; font-weight: 1000; font-family: Arial, sans-serif; text-shadow: 0 0 7px rgba(255,77,94,.82), 0 1px 1px rgba(0,0,0,.72); }
.dash-symbol.is-summary-risk { border-color: rgba(255,77,94,.52); box-shadow: inset 0 0 0 1px rgba(255,77,94,.18); }
.dash-symbol.is-summary-watch .dash-name { padding-right: 16px; }
.dash-symbol.is-summary-nxt .dash-name { padding-right: 34px; }
.dash-symbol.is-summary-risk .dash-name { padding-right: 16px; }
.dash-question-badge.is-fresh-question { animation: dashQuestionBadgeBlink .72s ease-in-out infinite; }
.dash-signal-label, .dash-signal-time { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 950; text-align: center; }
.dash-signal-label { min-height: 10px; font-size: 10px; line-height: 10px; opacity: .96; }
.dash-signal-time { min-height: 10px; font-size: 9px; line-height: 10px; opacity: .86; }
.dash-symbol.has-buy { --dash-bg: rgba(255,77,94,.20); --dash-fg: #ffdce1; --dash-border: rgba(255,77,94,.60); border-color: rgba(255,77,94,.60); box-shadow: none; }
.dash-symbol.has-sell { --dash-bg: rgba(63,140,255,.20); --dash-fg: #d7e8ff; --dash-border: rgba(63,140,255,.60); border-color: rgba(63,140,255,.60); box-shadow: none; }
.dash-symbol.is-opening-direction-muted:not(.has-buy):not(.has-sell) { --dash-bg: rgba(0,0,0,.82); --dash-fg: #d6dee8; background: var(--dash-bg); color: var(--dash-fg); }
.dash-symbol.has-buy.is-fresh-trade:not(:hover):not(:focus-visible) { animation: dashBuyBlink 1.15s ease-in-out infinite; }
.dash-symbol.has-sell.is-fresh-trade:not(:hover):not(:focus-visible) { animation: dashSellBlink 1.15s ease-in-out infinite; }
.dash-symbol.has-question-signal:not(.has-buy):not(.has-sell) { animation: none; border-color: var(--dash-border); box-shadow: none; }
.dash-symbol.has-buy .dash-signal-label, .dash-symbol.has-buy .dash-signal-time { color: #fff1f3; }
.dash-symbol.has-sell .dash-signal-label, .dash-symbol.has-sell .dash-signal-time { color: #edf5ff; }
.dash-symbol:hover, .dash-symbol:focus-visible { background: var(--dash-bg); color: var(--dash-fg); border-color: rgba(255,255,255,.92); box-shadow: inset 0 0 0 2px rgba(255,255,255,.72), 0 0 0 2px rgba(255,255,255,.20); outline: none; }
.dashboard-hover-pop { position: fixed; left: 0; top: 0; width: min(320px, calc(100vw - 24px)); z-index: 9999; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s ease, transform .12s ease; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(7, 12, 22, .96); box-shadow: 0 18px 46px rgba(0,0,0,.42); color: #eef6ff; }
.dashboard-hover-pop.is-visible { opacity: 1; transform: translateY(0); }
.dashboard-hover-pop.buy { border-color: rgba(255,77,94,.56); }
.dashboard-hover-pop.sell { border-color: rgba(63,140,255,.56); }
.dash-hover-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.dash-hover-top b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 1000; }
.dash-hover-top span { flex: 0 0 auto; color: rgba(238,246,255,.58); font-size: 11px; font-weight: 900; }
.dash-hover-signal { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; font-weight: 1000; }
.dash-hover-signal strong { padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.12); }
.dash-hover-signal.buy strong { background: rgba(255,77,94,.22); color: #ffdce1; }
.dash-hover-signal.sell strong { background: rgba(63,140,255,.22); color: #d7e8ff; }
.dash-hover-signal.none strong { color: rgba(238,246,255,.72); }
.dash-hover-signal em { color: rgba(238,246,255,.72); font-style: normal; }
.dash-hover-price { margin: 8px 0 0; color: rgba(238,246,255,.86); font-size: 12px; font-weight: 950; }
.dash-hover-price.up { color: #ffdce1; } .dash-hover-price.down { color: #d7e8ff; }
.dash-hover-entry { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.10); }
.dash-hover-entry span { color: rgba(238,246,255,.68); font-size: 11px; font-weight: 950; }
.dash-hover-entry b { color: #fff; font-size: 22px; line-height: 1; font-weight: 1000; text-align: center; }
.dash-hover-entry em { font-style: normal; font-size: 12px; font-weight: 1000; }
.dash-hover-entry.hot, .dash-hover-entry.good { border-color: rgba(255,77,94,.42); background: rgba(255,77,94,.13); }
.dash-hover-entry.hot em, .dash-hover-entry.good em { color: #ffdce1; }
.dash-hover-entry.watch { border-color: rgba(255,209,102,.34); background: rgba(255,209,102,.10); }
.dash-hover-entry.watch em { color: #ffe9ad; }
.dash-hover-entry.risk, .dash-hover-entry.block { border-color: rgba(63,140,255,.40); background: rgba(63,140,255,.13); }
.dash-hover-entry.risk em, .dash-hover-entry.block em { color: #d7e8ff; }
.dash-hover-reason { margin: 9px 0 0; color: #ffe8a8; font-size: 13px; font-weight: 900; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.dash-hover-evidence { display: grid; gap: 4px; margin-top: 8px; }
.dash-hover-evidence p { margin: 0; color: rgba(238,246,255,.82); font-size: 12px; font-weight: 800; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
@keyframes dashBuyBlink { 0%,100% { background: var(--dash-bg); box-shadow: 0 0 0 rgba(255,77,94,0); filter: brightness(1); } 50% { background: #ff2137; box-shadow: 0 0 20px rgba(255,77,94,.95), inset 0 0 0 2px rgba(255,255,255,.72); filter: brightness(1.08); } }
@keyframes dashSellBlink { 0%,100% { background: var(--dash-bg); box-shadow: 0 0 0 rgba(63,140,255,0); filter: brightness(1); } 50% { background: #1968ff; box-shadow: 0 0 20px rgba(63,140,255,.95), inset 0 0 0 2px rgba(255,255,255,.72); filter: brightness(1.08); } }
@keyframes dashQuestionBadgeBlink { 0%,100% { opacity: .72; transform: scale(.94); box-shadow: 0 2px 8px rgba(0,0,0,.32); } 50% { opacity: 1; transform: scale(1.16); box-shadow: 0 4px 12px rgba(0,0,0,.42); } }
body.dashboard-mode .trading-layout { display: none; }
body.chart-mode .dashboard-panel { display: none; }
.trading-layout { display: block; }
.menu-back-btn { height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); color: #eaf4ff; font-weight: 1000; }
.signal-sidebar { position: sticky; top: 6px; display: grid; gap: 8px; max-height: calc(100vh - 12px); overflow-y: auto; }
.signal-box { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025)); border-radius: 18px; padding: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.24); }
.signal-box > b { display: block; color: #ffe3a3; font-size: 14px; font-weight: 1000; letter-spacing: 0; }
.signal-box small { display: block; margin: 3px 0 8px; color: rgba(238,246,255,.55); font-weight: 850; font-size: 11px; }
.vertical-signal-list { display: grid; gap: 7px; }
.vertical-signal-list .prev-pill { width: 100%; height: auto; min-height: 38px; padding: 8px 10px; border-radius: 12px; text-align: left; white-space: normal; line-height: 1.25; }
.main-chart-card { padding: 3px; }
.chart-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 2px; }
.symbol-code { margin: 0 0 4px; color: var(--muted); font-weight: 900; }
.title-row { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; min-width: 0; }
.title-row h2 { flex: 0 0 auto; }
.title-labels { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-width: 0; overflow-x: auto; }
.title-label { flex: 0 0 auto; padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.07); color: #d8e6f7; font-size: 12px; font-weight: 950; white-space: nowrap; }
.title-price-box { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #eef6ff; font-weight: 1000; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.title-price-box b { font-size: 14px; line-height: 1; }
.title-price-box em { font-style: normal; font-size: 12px; line-height: 1; opacity: .95; }
.title-price-box.up { color: #ffdce1; border-color: rgba(255,77,94,.45); background: rgba(255,77,94,.14); }
.title-price-box.down { color: #d7e8ff; border-color: rgba(63,140,255,.45); background: rgba(63,140,255,.14); }
.title-label.buy { color: #ffb0b8; background: rgba(255,77,94,.14); }
.title-label.sell { color: #a9ccff; background: rgba(63,140,255,.14); }
.title-label.strong { box-shadow: 0 0 0 1px rgba(255,255,255,.20) inset; filter: saturate(1.2); }
.title-label.mid { opacity: .82; }
.title-label.weak { opacity: .48; }
.title-label.hot { color: #ffe3a3; background: rgba(255,209,102,.14); }
.title-label.entry.hot, .title-label.entry.good { color: #ffdce1; border-color: rgba(255,77,94,.42); background: rgba(255,77,94,.16); }
.title-label.entry.watch { color: #ffe9ad; border-color: rgba(255,209,102,.35); background: rgba(255,209,102,.12); }
.title-label.entry.risk, .title-label.entry.block { color: #d7e8ff; border-color: rgba(63,140,255,.38); background: rgba(63,140,255,.14); }
.title-label.live { color: #a8f0c8; background: rgba(57,217,138,.12); }
.title-label.closed, .title-label.calm { color: var(--muted); }
.title-row .favorite-list { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; min-width: 0; }
.chart-head h2 { font-size: 30px; letter-spacing: 0; }

.verdict { text-align: right; }
.verdict b { display: inline-block; padding: 10px 14px; border-radius: 999px; font-size: 15px; }
.verdict.safe b { color: var(--green); background: rgba(57,217,138,.12); }
.verdict.watch b, .verdict.neutral b { color: var(--yellow); background: rgba(255,209,102,.14); }
.verdict.danger b { color: var(--red); background: rgba(255,93,115,.14); }
.verdict p { max-width: 460px; margin: 9px 0 0; color: #d8e5f7; line-height: 1.45; }
.chart-shell { position: relative; border: 1px solid var(--line); border-radius: 18px; background: #060a12; overflow: hidden; }
.chart-question-toggle { position: absolute; top: 8px; right: 9px; z-index: 31; display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 4px 7px 4px 5px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(5,9,18,.76); color: #dce8ff; font-weight: 1000; font-size: 11px; letter-spacing: -.02em; box-shadow: 0 6px 20px rgba(0,0,0,.34); backdrop-filter: blur(8px); cursor: pointer; user-select: none; }
.chart-question-toggle input { width: 14px; height: 14px; accent-color: var(--green); margin: 0; }
.chart-question-toggle span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 999px; background: rgba(255,209,102,.18); color: var(--yellow); font-size: 13px; line-height: 1; }
.chart-question-toggle b { color: #ffffff; }
.chart-question-toggle em { min-width: 24px; font-style: normal; color: var(--green); text-align: center; }
.chart-shell[data-question-active="0"] .chart-question-toggle { opacity: .72; border-color: rgba(255,255,255,.11); }
.chart-shell[data-question-active="0"] .chart-question-toggle span { background: rgba(255,255,255,.08); color: var(--muted); }
.chart-shell[data-question-active="0"] .chart-question-toggle em { color: var(--muted); }
.chart-loading { position: absolute; inset: 0; z-index: 25; display: grid; place-content: center; gap: 12px; justify-items: center; background: radial-gradient(circle at center, rgba(16,24,40,.72), rgba(6,10,18,.92)); opacity: 0; pointer-events: none; transition: opacity .18s ease; color: #eaf4ff; font-weight: 1000; letter-spacing: -.02em; }
.chart-loading.is-visible { opacity: 1; pointer-events: auto; }
.chart-spinner { width: 54px; height: 54px; border-radius: 999px; border: 5px solid rgba(255,255,255,.18); border-top-color: #ff4d5e; border-right-color: #65a8ff; animation: chart-spin .78s linear infinite; box-shadow: 0 0 28px rgba(255,77,94,.18); }
@keyframes chart-spin { to { transform: rotate(360deg); } }
.chart-scroll { width: 100%; overflow-x: auto; overflow-y: hidden; background: #060a12; scrollbar-color: rgba(255,209,102,.8) rgba(255,255,255,.08); }
.chart-scroll::-webkit-scrollbar { height: 10px; }
.chart-scroll::-webkit-scrollbar-thumb { background: rgba(255,209,102,.85); border-radius: 999px; }
.chart-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,.08); }
canvas { width: 100%; height: clamp(560px, 72vh, 790px); display: block; border: 0; border-radius: 18px; background: #060a12; }
.fixed-price-axis, .fixed-flow-axis { position: absolute; inset: 0; z-index: 18; pointer-events: none; overflow: hidden; }
.fixed-price-pill { position: absolute; right: 8px; transform: translateY(-50%); padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(5,9,18,.86); background: rgba(238,246,255,.94); color: #07101f; font-size: 11px; line-height: 1; font-weight: 1000; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.30); }
.fixed-price-pill.buy { background: rgba(255,77,94,.94); color: #fff; }
.fixed-price-pill.sell { background: rgba(63,140,255,.94); color: #fff; }
.fixed-volume-bar { position: absolute; border: 1px solid rgba(255,255,255,.12); background: rgba(5,9,18,.22); box-sizing: border-box; }
.fixed-volume-bar i { position: absolute; top: 0; bottom: 0; display: block; }
.fixed-volume-bar .buy { left: 0; background: rgba(255,77,94,.22); }
.fixed-volume-bar .sell { background: rgba(63,140,255,.22); }
.fixed-volume-price { position: absolute; transform: translateY(-50%); padding: 2px 5px; border-radius: 6px; background: rgba(5,9,18,.72); color: rgba(238,246,255,.82); border: 1px solid rgba(255,255,255,.12); font-size: 9px; line-height: 1; font-weight: 950; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.fixed-volume-title { position: absolute; left: 22px; top: 47px; color: rgba(255,255,255,.78); font-size: 10px; line-height: 1; font-weight: 1000; text-shadow: 0 1px 3px rgba(0,0,0,.78); }
.chart-caption { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-weight: 800; font-size: 13px; margin-top: 5px; }
.chart-caption i { display: inline-block; width: 22px; height: 10px; border-radius: 999px; margin-right: 6px; }
.legend-buy { background: var(--red); } .legend-sell { background: var(--blue); } .legend-flow { background: var(--yellow); } .legend-price { background: #fff; }
.signal-hint { margin-top: 8px; display: grid; grid-template-columns: 120px 1fr; gap: 7px 12px; align-items: center; padding: 12px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(255,255,255,.92); color: #0a1220; box-shadow: 0 18px 45px rgba(0,0,0,.22); }
.hint-action { grid-row: 1 / span 2; display: grid; place-items: center; min-height: 64px; border-radius: 14px; background: #0a1220; color: #fff; font-size: 28px; font-weight: 1000; letter-spacing: 0; }
.hint-main { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hint-main b { font-size: 16px; letter-spacing: 0; }
.hint-main span { padding: 5px 9px; border-radius: 999px; background: #0a1220; color: #fff; font-size: 12px; font-weight: 950; }
.signal-hint p { margin: 0; color: #324057; font-size: 13px; font-weight: 800; line-height: 1.35; }
.signal-hint.buy { border-color: rgba(255,77,94,.42); }
.signal-hint.sell { border-color: rgba(63,140,255,.42); }
.signal-hint.neutral { border-color: rgba(255,209,102,.55); }
.signal-hint.buy .hint-action { background: var(--red); }
.signal-hint.sell .hint-action { background: var(--blue); }
.signal-hint.neutral .hint-action { background: var(--yellow); color: #271b00; }
.signal-hint.hidden { display: none; }
.side-panel { display: grid; gap: 10px; }
.side-panel article, .bottom-grid article { padding: 12px; }
.price-card .price { font-size: 28px; font-weight: 950; letter-spacing: 0; }
.price-card .change.up { color: var(--red); } .price-card .change.down { color: var(--blue); }
.price-card p { color: var(--muted); line-height: 1.5; margin-bottom: 0; }
.score-list { display: grid; gap: 13px; margin-top: 15px; }
.score-row { display: grid; grid-template-columns: 74px 1fr 38px; gap: 10px; align-items: center; color: var(--muted); font-weight: 900; }
.bar { height: 11px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; }
.mini-title { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }
.mini-title b { color: var(--yellow); font-size: 13px; }
.orderbook { display: grid; gap: 6px; }
.ob-row { position: relative; display: grid; grid-template-columns: 52px 1fr 50px; gap: 8px; overflow: hidden; padding: 9px; border-radius: 11px; background: rgba(255,255,255,.05); font-weight: 900; }
.ob-row i { position: absolute; inset: 0 auto 0 0; opacity: .17; z-index: 0; }
.ob-row.ask { color: #9ec4ff; } .ob-row.bid { color: #ff9aa5; }
.ob-row.ask i { background: var(--blue); } .ob-row.bid i { background: var(--red); }
.ob-row span { position: relative; z-index: 1; }
.bottom-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 14px; }
ul { margin: 14px 0 0; padding-left: 18px; color: #d6e3f4; line-height: 1.72; }
.badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.signal { padding: 10px 12px; border-radius: 13px; background: rgba(101,168,255,.14); color: #d8e8ff; font-weight: 900; }
footer { display: block; margin-top: 18px; padding: 12px 10px; text-align: center; color: #6f7d92; font-size: 11px; line-height: 1.55; }
@media (max-width: 1050px) {
  .viewer-grid, .bottom-grid, .control-panel { grid-template-columns: 1fr; display: grid; }
  .trading-layout { display: block; }
  .signal-sidebar { position: sticky; top: 4px; max-height: calc(100vh - 8px); grid-template-columns: 1fr; overflow-y: auto; }
  .signal-box { padding: 6px; border-radius: 12px; }
  .signal-box > b { font-size: 11px; }
  .signal-box small { display: none; }
  .vertical-signal-list { gap: 5px; }
  .vertical-signal-list .prev-pill { min-height: 30px; padding: 5px 6px; font-size: 10px; line-height: 1.15; overflow: hidden; }
  .signal-log-row { min-height: 36px; padding: 5px 6px; }
  .signal-log-row span { font-size: 10px; }
  .signal-log-row strong { font-size: 10px; }
  .market-strip { grid-template-columns: 1fr 1fr; }
  .top-actions { justify-self: start; }
}
@media (max-width: 900px) {
  .shell { width: 100%; padding-top: 6px; }
  .topbar { margin-bottom: 10px; }
  .eyebrow, .top-actions, .bottom-grid { display: none; }
  .control-panel { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 6px; margin-bottom: 6px; }
  .search-block label { display: none; }
  .quick-list { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 5px; padding-bottom: 2px; }
  .quick-list .pill, .favorite-list .fav-pill, .previous-top3 .prev-pill { flex: 0 0 auto; height: 30px; font-size: 11px; padding: 0 9px; }
  .favorite-list, .previous-top3-list { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 5px; font-size: 11px; }
  .previous-top3 { align-items: center; gap: 6px; overflow: hidden; }
  .signal-hint { grid-template-columns: 88px 1fr; padding: 9px; gap: 5px 8px; }
  .hint-action { min-height: 54px; font-size: 22px; border-radius: 12px; }
  input { height: 38px; font-size: 16px; padding: 0 10px; }
  .control-actions { display: none; }
  h1 { font-size: clamp(24px, 8vw, 38px); }
  .viewer-grid { display: block; }
  .dashboard-head { padding-right: 280px; }
  .dashboard-performance { top: 5px; right: 104px; height: 26px; gap: 5px; padding: 0 7px; font-size: 10px; }
  .trade-record-btn { top: 5px; right: 6px; height: 26px; padding: 0 8px; font-size: 10px; }
  .trade-record-panel, .chart-summary-panel { padding: 10px; }
  .trade-record-card { max-height: calc(100vh - 20px); }
  .chart-summary-card { max-height: calc(100vh - 20px); border-radius: 12px; }
  .trade-record-head, .chart-summary-head { padding: 10px; }
  .trade-record-head b, .chart-summary-head b { font-size: 15px; }
  .trade-record-head span, .chart-summary-head span { font-size: 11px; }
  .trade-record-list { padding: 8px; }
  .trade-log-row { grid-template-columns: 42px 38px minmax(70px, 1fr) 62px 52px; gap: 4px; font-size: 10px; padding: 7px 8px; }
  .trade-record-row { grid-template-columns: 82px 1fr; align-items: start; gap: 5px 8px; font-size: 11px; }
  .trade-record-row strong { grid-column: 2; }
  .dashboard-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
  .dashboard-server-time { margin-top: 6px; font-size: 10px; }
  .dash-symbol { height: 44px; min-height: 44px; font-size: 10px; border-radius: 8px; padding: 3px 3px; }
  .dash-topline { min-height: 18px; }
  .dash-day-candle { width: 17px; top: 0; bottom: 0; height: auto; }
  .dash-symbol.has-real-pnl .dash-name { padding-left: 7px; }
  .dash-real-pnl { left: 2px; top: 2px; max-width: 40px; height: 11px; padding: 0 2px; border-radius: 3px; font-size: 7.5px; line-height: 11px; }
  .dash-question-badge { right: 3px; bottom: 3px; min-width: 27px; height: 12px; padding: 0 3px; font-size: 7.5px; line-height: 12px; border-radius: 3px; }
  .dash-summary-star { right: 3px; top: 2px; font-size: 12px; }
  .dash-summary-nxt-mark { width: 29px; height: 11px; font-size: 7.5px; line-height: 11px; }
  .dash-symbol.is-summary-watch .dash-name { padding-right: 13px; }
  .dash-symbol.is-summary-nxt .dash-name { padding-right: 32px; }
  .dash-symbol.is-summary-risk .dash-name { padding-right: 13px; }
  .dash-signal-label { min-height: 9px; font-size: 9px; line-height: 9px; }
  .dash-signal-time { min-height: 9px; font-size: 8px; line-height: 9px; }
  .main-chart-card { padding: 3px; border-radius: 14px; }
  .chart-head { margin-bottom: 3px; flex-wrap: wrap; }
  .chart-head h2 { font-size: 24px; }

  .title-labels { gap: 4px; }
  .title-label { height: 28px; padding: 6px 8px; font-size: 10px; }
  .verdict p { display: none; }
  .chart-scroll { border-radius: 14px; }
  canvas { width: 100%; height: clamp(430px, 60vh, 560px); border-radius: 14px; }
  .chart-caption { margin-top: 4px; font-size: 11px; gap: 8px; }
  .position-hint { padding: 8px; }
  .side-panel { margin-top: 8px; }
  .side-panel .meter-card, .side-panel .price-card { display: none; }
  .side-panel article { padding: 10px; border-radius: 14px; }
  .orderbook { grid-template-columns: 1fr 1fr; gap: 5px; }
  .ob-row { grid-template-columns: 38px 1fr 34px; padding: 7px; font-size: 12px; }
}
@media (max-width: 560px) {
  .shell { width: 100%; padding-top: 5px; }
  body.dashboard-mode .shell { height: 100svh; padding: 4px; padding-bottom: max(4px, env(safe-area-inset-bottom)); overflow: hidden; }
  .topbar { margin-bottom: 10px; }
  h1 { font-size: 28px; }
  .eyebrow, .top-actions, .bottom-grid { display: none; }
  .market-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; padding: 5px; margin-bottom: 5px; }
  .strip-item { padding: 7px 8px; border-radius: 10px; }
  .strip-item span { font-size: 10px; }
  .strip-item strong { font-size: 14px; }
  .control-panel { display: grid; grid-template-columns: 1fr; gap: 5px; padding: 5px; margin-bottom: 5px; }
  .control-actions { display: none; }
  input { height: 36px; font-size: 16px; padding: 0 10px; }
  .dashboard-panel { margin: 0; }
  .chart-summary-panel { align-items: start; padding: 8px; padding-top: max(8px, env(safe-area-inset-top)); }
  .chart-summary-card { width: 100%; max-height: calc(100dvh - 16px); border-radius: 12px; border-color: rgba(255,209,102,.34); }
  .chart-summary-head { padding: 12px; }
  .chart-summary-head b { font-size: 20px; color: #f4f8ff; }
  .chart-summary-head span { font-size: 13px; color: rgba(238,246,255,.66); }
  .chart-summary-head button { height: 38px; padding: 0 14px; font-size: 14px; font-weight: 1000; color: #f4f8ff; background: rgba(255,255,255,.10); }
  .chart-summary-body { padding: 10px; gap: 10px; }
  .chart-summary-main h3 { padding: 12px; font-size: 16px; line-height: 1.4; color: #ffedb8; border-radius: 12px; }
  .chart-summary-section { padding: 10px; gap: 8px; border-radius: 12px; background: rgba(255,255,255,.06); }
  .chart-summary-section > b { font-size: 14px; color: #ffffff; }
  .chart-summary-section p { font-size: 13px; line-height: 1.45; color: #dfe8f6; }
  .chart-summary-watch-list { grid-template-columns: 1fr; gap: 7px; }
  .chart-summary-watch { min-height: 0; grid-template-columns: minmax(0, 1fr) auto; padding: 9px 10px; gap: 3px 7px; border-radius: 11px; border-color: rgba(255,209,102,.30); background: rgba(255,209,102,.08); overflow: hidden; }
  .chart-summary-watch.is-nxt-watch { padding-right: 48px; border-color: rgba(70,211,205,.40); background: rgba(70,211,205,.09); }
  .chart-summary-nxt-star { right: 8px; top: 8px; font-size: 10px; }
  .chart-summary-watch b { min-width: 0; color: #ffffff; font-size: 15px; line-height: 1.12; text-shadow: 0 1px 0 rgba(0,0,0,.45); }
  .chart-summary-watch small { justify-self: end; align-self: start; padding: 2px 5px; border-radius: 999px; color: #aeb8c7; background: rgba(0,0,0,.24); font-size: 10px; letter-spacing: .04em; }
  .chart-summary-watch em { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #dfe8f6; font-size: 12px; line-height: 1.32; }
  .chart-summary-watch i { font-size: 11px; line-height: 1.2; color: #c9d4e4; flex-wrap: wrap; }
  body.dashboard-mode .dashboard-panel { height: calc(100svh - 8px - env(safe-area-inset-bottom)); padding: 4px; border-radius: 10px; display: grid; grid-template-columns: minmax(86px, 118px) minmax(0, 1fr) 70px; grid-template-rows: 22px minmax(0, 1fr) 18px; gap: 2px 4px; align-items: stretch; overflow: hidden; }
  .dashboard-performance { position: static; grid-column: 2; grid-row: 1; width: auto; height: 20px; max-width: none; min-width: 0; gap: 3px; padding: 0 5px; font-size: 9px; overflow: hidden; justify-content: flex-start; }
  .dashboard-performance span { min-width: 0; width: 100%; }
  .dashboard-performance b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ffe3a3; }
  .dashboard-performance em { display: none; }
  .dashboard-record-actions { grid-column: 3; grid-row: 1; justify-self: end; gap: 2px; }
  .annual-ledger-btn { height: 20px; padding: 0 5px; font-size: 9px; }
  .trade-record-btn { position: static; height: 20px; width: 46px; max-width: 46px; padding: 0 4px; font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dashboard-head { position: static; grid-column: 1; grid-row: 1; flex: 0 0 auto; display: inline-flex; width: 100%; max-width: none; align-self: stretch; align-items: center; gap: 4px; height: 20px; margin: 0; padding: 0 6px; border-radius: 999px; overflow: hidden; }
  .dashboard-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 9px; line-height: 1; letter-spacing: -.2px; opacity: .92; white-space: nowrap; }
  .dashboard-head small { display: none; }
  .chart-summary-text { display: none; }
  .chart-summary-text strong, .chart-summary-text span, .chart-summary-text em { display: none; }
  .dashboard-grid { grid-column: 1 / -1; grid-row: 2; align-self: stretch; min-height: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: 7px repeat(6, minmax(0, 1fr)) 7px repeat(6, minmax(0, 1fr)); gap: 2px; }
  .dashboard-market-divider { margin: 0; gap: 5px; font-size: 7px; line-height: 7px; letter-spacing: .05em; }
  .dashboard-server-time { grid-column: 1 / -1; grid-row: 3; margin-top: 0; min-height: 16px; font-size: 7.5px; line-height: 1; opacity: .9; align-content: center; overflow: hidden; justify-content: flex-start; flex-wrap: nowrap; gap: 3px; }
  .dashboard-scan-status { gap: 2px; flex-wrap: nowrap; max-width: none; overflow: hidden; flex: 0 1 auto; margin-right: 0; }
  .dashboard-scan-status b { min-height: 14px; padding: 0 3px; font-size: 7.5px; letter-spacing: -.45px; }
  .dashboard-server-time .llm-link-status { display: inline-flex; height: 14px; gap: 2px; font-size: 7.5px; line-height: 1; flex: 0 0 auto; }
  .dashboard-server-time .llm-link-status i { width: 5px; height: 5px; }
  .dashboard-server-started { display: inline-flex; max-width: 58px; height: 14px; align-items: center; overflow: hidden; text-overflow: clip; white-space: nowrap; font-size: 7.5px; line-height: 1; color: rgba(238,246,255,.50); flex: 0 0 auto; }
  .dashboard-market-divider::before, .dashboard-market-divider::after { height: 1px; opacity: .34; }
  .dashboard-market-divider span { padding: 0 5px; border-width: 1px; line-height: 7px; }
  .dash-symbol { height: 44px; min-height: 44px; font-size: 9px; padding: 3px 3px; gap: 0; border-radius: 8px; }
  .dash-topline { display: block; min-height: 17px; width: 100%; min-width: 0; }
  .dash-day-candle { position: absolute; left: -1px; right: auto; top: 0; bottom: 0; width: 15px; height: auto; opacity: .84; z-index: 0; pointer-events: none; }
  .dash-name { position: relative; z-index: 1; min-height: 0; max-height: none; width: 100%; max-width: 100%; padding: 0 2px; white-space: nowrap; line-height: 12px; display: block; word-break: keep-all; overflow-wrap: normal; text-align: center; text-overflow: ellipsis; background: linear-gradient(90deg, transparent 0%, rgba(8,12,22,.42) 18%, rgba(8,12,22,.52) 82%, transparent 100%); }
  .dash-symbol.has-real-pnl .dash-name { padding-left: 3px; }
  .dash-real-pnl { max-width: 36px; height: 10px; font-size: 7px; line-height: 10px; }
  .dash-question-badge { right: 2px; bottom: 2px; min-width: 25px; height: 11px; padding: 0 2px; font-size: 7px; line-height: 11px; border-radius: 3px; }
  .dash-summary-star { right: 2px; top: 1px; font-size: 11px; }
  .dash-summary-nxt-mark { width: 27px; height: 10px; font-size: 7px; line-height: 10px; }
  .dash-symbol.is-summary-watch .dash-name { padding-right: 12px; }
  .dash-symbol.is-summary-nxt .dash-name { padding-right: 29px; }
  .dash-symbol.is-summary-risk .dash-name { padding-right: 12px; }
  .dash-name.short { font-size: 11px; letter-spacing: 0; }
  .dash-name.medium { font-size: 10px; letter-spacing: 0; }
  .dash-name.long { font-size: 8.5px; letter-spacing: 0; }
  .dash-signal-label { min-height: 8px; font-size: 7.5px; line-height: 8px; }
  .dash-signal-time { min-height: 7px; font-size: 7px; line-height: 7px; }
  .viewer-grid { display: block; }
  .main-chart-card { padding: 3px; border-radius: 14px; }
  .chart-head { flex-direction: column; gap: 4px; margin-bottom: 3px; }
  .title-row { width: 100%; gap: 5px 6px; flex-wrap: wrap; align-items: center; }
  .title-row h2 { min-width: 0; max-width: calc(100% - 76px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chart-head h2 { font-size: 20px; }
  .title-labels { flex: 0 0 100%; width: 100%; gap: 4px; overflow-x: auto; overflow-y: hidden; padding-bottom: 2px; }
  .title-label, .title-price-box { height: 24px; padding: 4px 6px; font-size: 9px; line-height: 1; }
  .title-price-box b { font-size: 11px; }
  .title-price-box em { font-size: 9px; }
  .symbol-code { font-size: 12px; }
  .verdict { text-align: left; }
  .verdict p { display: none; }
  .verdict b { padding: 7px 10px; font-size: 13px; }

  .chart-scroll { border-radius: 14px; }
  .chart-question-toggle { top: 7px; right: 7px; min-height: 25px; padding: 3px 6px 3px 4px; gap: 4px; font-size: 10px; }
  .chart-question-toggle input { width: 13px; height: 13px; }
  .chart-question-toggle span { width: 16px; height: 16px; font-size: 12px; }
  canvas { width: 100%; height: calc(100dvh - 112px); min-height: 520px; max-height: none; border-radius: 14px; }
  .chart-caption { font-size: 11px; gap: 8px; margin-top: 4px; }
  .chart-caption i { width: 14px; }

  .signal-hint { grid-template-columns: 78px 1fr; padding: 8px; }
  .hint-action { min-height: 50px; font-size: 20px; }
  .hint-main b { font-size: 14px; }
  .signal-hint p { font-size: 12px; }
  .side-panel { margin-top: 8px; grid-template-columns: 1fr; }
  .side-panel .meter-card, .side-panel .price-card { display: none; }
  .side-panel article { padding: 10px; border-radius: 14px; }
  .orderbook { grid-template-columns: 1fr 1fr; gap: 5px; }
  .ob-row { grid-template-columns: 38px 1fr 34px; padding: 7px; font-size: 12px; }
}
