:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0c1b2d;
  --panel-2: #10243a;
  --line: rgba(139, 197, 255, .18);
  --text: #eef6ff;
  --muted: #9ab0c7;
  --cyan: #60d9ff;
  --green: #4ade80;
  --yellow: #ffd166;
  --red: #ff6b75;
  --purple: #c9a1ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100dvh; background: radial-gradient(circle at 50% -10%, #153a57 0, var(--bg) 46%); color: var(--text); }
button, input { font: inherit; }
button { color: inherit; }
.mobile-shell { width: min(100%, 720px); min-height: 100dvh; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom)); overflow-x: hidden; }
.mobile-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; }
.brand-lockup, .strategy-name { display: flex; align-items: center; gap: 9px; }
.brand-icon { font-size: 28px; filter: drop-shadow(0 0 10px rgba(96, 217, 255, .5)); }
.brand-lockup h1 { margin: 0; font-size: 17px; letter-spacing: .05em; font-weight: 900; }
.brand-subtitle, .eyebrow { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.connection-state { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.connection-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.connection-state[data-state="online"] { color: var(--green); }
.connection-state[data-state="online"] .connection-dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.connection-state[data-state="offline"] { color: var(--red); }
.connection-state[data-state="offline"] .connection-dot { background: var(--red); box-shadow: 0 0 10px var(--red); }
.market-strip { display: grid; grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr)); gap: 7px; margin: 12px 0 10px; padding: 11px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg, rgba(18, 51, 77, .85), rgba(10, 26, 44, .85)); box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.price-block, .market-metric { min-width: 0; }
.price-block { text-align: center; }
.price-block strong { display: block; margin-top: 3px; font-size: clamp(21px, 6vw, 31px); line-height: 1.08; letter-spacing: -.035em; white-space: nowrap; }
.price-block .direction { margin: 6px auto 0; min-width: 84px; }
.market-metric { padding-left: 8px; border-left: 1px solid var(--line); }
.market-rsi-metric { text-align: center; }
.market-rsi-metric .eyebrow { text-align: center; }
.market-metric strong { display: block; margin-top: 8px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-rsi-metric strong { margin-top: 3px; font-size: clamp(25px, 8vw, 38px); line-height: 1; text-align: center; }
.market-time strong { font-size: 12px; }
.mobile-context-panel { margin: 0 0 10px; padding: 10px 12px; border: 1px solid rgba(139,197,255,.22); border-radius: 14px; background: rgba(12,27,45,.86); box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.mobile-context-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mobile-context-heading strong { min-width: 0; color: var(--muted); font-size: 11px; line-height: 1.15; letter-spacing: .03em; }
.mobile-context-heading > span { flex: 0 0 auto; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mobile-context-panel p { margin: 5px 0 4px; color: #c1d2e4; font-size: 10px; line-height: 1.3; }
.mobile-context-panel small { display: block; color: var(--muted); font-size: 8px; line-height: 1.3; }
.mobile-context-panel small strong { color: var(--text); font-size: inherit; }
.mobile-context-panel.leitura-alta { border-color: rgba(74,222,128,.72); background: linear-gradient(135deg,rgba(13,57,49,.9),rgba(10,30,42,.9)); box-shadow: 0 0 14px rgba(74,222,128,.16); }
.mobile-context-panel.leitura-alta .mobile-context-heading strong { color: var(--green); }
.mobile-context-panel.leitura-queda { border-color: rgba(255,107,117,.72); background: linear-gradient(135deg,rgba(73,24,35,.9),rgba(25,21,36,.9)); box-shadow: 0 0 14px rgba(255,107,117,.14); }
.mobile-context-panel.leitura-queda .mobile-context-heading strong { color: var(--red); }
.mobile-context-panel.leitura-cuidado { border-color: rgba(255,209,102,.68); background: linear-gradient(135deg,rgba(68,52,22,.84),rgba(20,29,41,.9)); }
.mobile-context-panel.leitura-cuidado .mobile-context-heading strong { color: var(--yellow); }
.mobile-context-panel.leitura-divergencia { border-color: rgba(201,161,255,.62); background: linear-gradient(135deg,rgba(47,31,68,.8),rgba(14,26,44,.9)); }
.mobile-context-panel.leitura-divergencia .mobile-context-heading strong { color: var(--purple); }
.market-visuals { display: grid; grid-template-columns: minmax(148px, 34%) minmax(0, 1fr); gap: 8px; margin: 0 0 10px; align-items: stretch; }
.mobile-thermometer-panel, .mobile-briga-box { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 15px; background: rgba(12, 27, 45, .82); }
.visual-title { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 5px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.visual-title strong { color: var(--cyan); font-size: 9px; white-space: nowrap; }
.thermo-period-control { display:flex; align-items:center; justify-content:center; gap:3px; margin:0 auto 3px; color:var(--muted); font-size:9px; }
.thermo-period-control input { width:35px; height:20px; padding:1px 2px; border:1px solid rgba(139,197,255,.3); border-radius:5px; background:rgba(4,14,25,.7); color:var(--text); font-size:9px; text-align:center; }
.thermo-period-control button { width:21px; height:20px; padding:0; border:1px solid rgba(139,197,255,.3); border-radius:5px; background:rgba(4,14,25,.7); font-size:10px; line-height:1; cursor:pointer; }
.thermo-mobile-stage { display:flex; align-items:flex-start; justify-content:center; gap:3px; min-height:366px; padding-top:2px; }
.thermo-ticks { display:flex; flex-direction:column; justify-content:space-between; width:34px; height:320px; margin-top:3px; color:#e2e8f0; font-size:8px; font-weight:900; text-align:right; text-shadow:0 0 5px rgba(226,232,240,.55); }
.mobile-thermo-glass { position:relative; display:flex; flex-direction:column; align-items:center; }
.mobile-thermo-stem { position:relative; z-index:2; width:48px; height:320px; padding:4px 4px 0; border:2px solid rgba(148,163,184,.7); border-bottom:none; border-radius:14px 14px 0 0; background:rgba(15,23,42,.74); display:flex; align-items:flex-end; overflow:visible; box-shadow:inset 0 0 12px rgba(0,0,0,.35), 0 0 10px rgba(96,217,255,.1); }
.mobile-thermo-stem::after { content:""; position:absolute; inset:0; z-index:5; pointer-events:none; border:1px solid rgba(255,255,255,.28); border-radius:9px 9px 0 0; background:repeating-linear-gradient(to top,transparent 0 calc(10% - 1px),rgba(255,210,210,.32) calc(10% - 1px) 10%),linear-gradient(135deg,rgba(255,255,255,.2),rgba(255,255,255,.03) 45%,rgba(255,255,255,.1)); box-shadow:inset 2px 2px 6px rgba(255,255,255,.16),inset -3px -5px 8px rgba(0,0,0,.28); }
.mobile-stem-fill { width:100%; height:50%; z-index:1; border-radius:10px 10px 0 0; background-image:linear-gradient(to top,#7f1d1d 0%,#8f1d1d 45%,#d97706 55%,#ffe600 100%); background-size:100% 320px; background-position:center bottom; box-shadow:0 0 10px var(--thermo-glow,rgba(255,230,0,.9)); transition:height .3s ease; }
.mobile-thermo-bulb { position:relative; z-index:2; width:82px; height:82px; margin-top:-17px; padding:8px; border:2px solid rgba(148,163,184,.7); border-radius:50%; background:#7f1d1d; box-shadow:0 0 18px rgba(255,42,42,.6), inset 0 0 12px rgba(0,0,0,.35); }
.mobile-thermo-bulb::before { content:""; position:absolute; top:-2px; left:19px; width:40px; height:9px; background:#7f1d1d; }
.mobile-thermo-bulb::after { content:""; position:absolute; inset:0; z-index:3; pointer-events:none; border:1px solid rgba(255,255,255,.25); border-radius:50%; background:linear-gradient(135deg,rgba(255,255,255,.2),rgba(255,255,255,.03) 58%,rgba(255,255,255,.12)); }
.mobile-bulb-fill { display:block; width:100%; height:100%; border-radius:50%; background:linear-gradient(to top,#ff2a2a,#e31b23); }
.mobile-thermo-bulb b { position:absolute; inset:0; z-index:4; display:grid; place-items:center; color:#fff; font-size:24px; font-weight:950; text-shadow:0 1px 5px #000; }
.mobile-thermo-range { position:absolute; left:-9px; right:-9px; z-index:7; height:8px; border-radius:4px; opacity:0; pointer-events:none; transition:bottom .25s ease,opacity .2s ease; }
.mobile-thermo-range span { position:absolute; white-space:nowrap; top:50%; transform:translateY(-50%); font-size:6.5px; font-weight:900; line-height:1.15; text-shadow:0 1px 3px #000; }
.mobile-thermo-range span b { font-size:7px; }
.mobile-thermo-range .thermo-periodo { font-size:8px; }
.mobile-thermo-range-top { background:#ff5b5b; color:#ff8a8a; box-shadow:0 0 7px #ff5b5b; }
.mobile-thermo-range-bottom { background:#4ade80; color:#86efac; box-shadow:0 0 7px #4ade80; }
.mobile-thermo-range-top span,.mobile-thermo-range-bottom span,.mobile-thermo-range.thermo-range-top-5 span,.mobile-thermo-range.thermo-range-bottom-5 span { right:calc(100% + 4px); text-align:right; }
.mobile-thermo-range.thermo-range-5m { height:6px; opacity:.7; }
.mobile-thermo-range.thermo-range-5m span,.mobile-thermo-range.thermo-range-10m span { left:calc(100% + 4px); right:auto; text-align:left; }
.mobile-thermo-range.thermo-range-10m { height:6px; opacity:.7; }
.mobile-thermo-range.visivel { opacity:1; }
.mobile-thermo-current-price { position:absolute; left:-7px; right:-7px; z-index:9; height:3px; border-radius:2px; background:#38bdf8; box-shadow:0 0 5px #38bdf8; opacity:0; transition:bottom .25s ease,opacity .2s ease; }
.mobile-thermo-current-price span { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); padding:3px 4px; border:1px solid rgba(125,211,252,.75); border-radius:5px; background:rgba(5,20,35,.94); color:#7dd3fc; font-size:8px; font-weight:900; white-space:nowrap; }
.mobile-thermo-current-price.visivel { opacity:1; }
.mobile-vwap-marker { position:absolute; left:-7px; right:-7px; z-index:10; height:3px; bottom:50%; background:repeating-linear-gradient(to right,#fff 0 3px,transparent 3px 6px); filter:drop-shadow(0 0 4px rgba(255,255,255,.9)); transition:bottom .25s ease; }
.preco-justo-badge { position:absolute; left:50%; bottom:calc(100% + 3px); transform:translateX(-50%) scale(.42); transform-origin:center bottom; display:flex; flex-direction:column; align-items:center; gap:2px; min-width:92px; padding:6px 7px; border:1px solid rgba(250,204,21,.68); border-radius:7px; background:linear-gradient(135deg,rgba(8,26,38,.94),rgba(14,48,54,.88)); box-shadow:0 0 9px rgba(250,204,21,.22); white-space:nowrap; }
.preco-justo-rotulo { color:#f8fafc; font-size:18px; font-weight:900; line-height:1; }
.preco-justo-valor { color:#e2e8f0; font-size:12px; font-weight:900; line-height:1; }
.mobile-aggression-stack { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); justify-items:end; gap:5px; width:100%; min-width:0; min-height:443px; }
.mobile-briga-box { width:calc(100% - 3px); height:443px; margin-left:auto; padding:6px 4px; border-color:rgba(96,217,255,.22); }
.mobile-briga-60-box { border-color:rgba(248,113,113,.28); }
.mobile-briga-header { min-height:25px; display:flex; align-items:center; justify-content:space-between; gap:2px; color:var(--muted); }
.agressores-logo { display:flex; align-items:center; gap:2px; color:#fff; font-size:8px; font-weight:950; line-height:.95; letter-spacing:.03em; }
.agressores-logo small { font-size:6px; }
.agressores-luvas { display:inline-flex; gap:0; font-size:10px; }
.agressores-luvas i + i { margin-left:-3px; }
.agressores-luvas i:first-child { filter:hue-rotate(185deg) saturate(1.8); }
.mobile-briga-header > b { overflow:hidden; color:var(--muted); font-size:5px; text-align:right; text-overflow:ellipsis; white-space:nowrap; }
.mobile-briga-header-info { display:flex; min-width:0; flex-direction:column; align-items:flex-end; justify-content:center; gap:2px; overflow:hidden; }
.mobile-briga-header-info b { overflow:hidden; max-width:100%; color:var(--muted); font-size:5px; text-align:right; text-overflow:ellipsis; white-space:nowrap; }
.mobile-briga-header-info small { max-width:100%; overflow:hidden; color:var(--muted); font-size:6px; line-height:1; text-align:right; text-overflow:ellipsis; white-space:nowrap; }
.mobile-briga-arena { position:relative; height:398px; margin-top:2px; padding-bottom:25px; }
.mobile-agressor-side { position:absolute; left:0; right:0; height:calc(50% - 12px); min-height:0; }
.mobile-agressor-vendedores { top:0; }
.mobile-agressor-compradores { top:calc(50% - 12px); }
.mobile-agressor-side strong { display:none; }
.mobile-agressor-side > span { position:absolute; left:50%; right:auto; z-index:4; width:calc(100% - 8px); transform:translateX(-50%); padding:4px 2px; border:1px solid rgba(248,113,113,.85); border-radius:6px; background:rgba(127,29,29,.98); color:#fff; font-size:15px; font-weight:950; line-height:1; text-align:center; text-shadow:0 0 6px rgba(255,255,255,.7); }
.mobile-agressor-vendedores > span { top:2px; }
.mobile-agressor-compradores > span { bottom:2px; border-color:rgba(59,130,246,.9); background:rgba(15,23,42,.98); }
.mobile-agressor-bar { position:absolute; left:50%; width:58px; overflow:hidden; border:1px solid rgba(255,255,255,.25); background:linear-gradient(180deg,rgba(15,23,42,.5),rgba(30,41,59,.18)); box-shadow:inset 0 0 9px rgba(0,0,0,.35),0 0 7px rgba(255,255,255,.08); }
.mobile-agressor-vendedores .mobile-agressor-bar { top:24px; height:calc(100% - 24px); transform:translateX(-50%) rotate(180deg); border-radius:0 0 10px 10px; }
.mobile-agressor-compradores .mobile-agressor-bar { bottom:24px; height:calc(100% - 24px); transform:translateX(-50%) rotate(180deg); border-radius:10px 10px 0 0; }
.mobile-agressor-bar i { position:absolute; left:0; right:0; width:100%; height:0; transition:height .35s ease; }
.mobile-agressor-vendedores .mobile-agressor-bar i { top:0; background:linear-gradient(180deg,#f87171 0%,#dc2626 55%,#7f1d1d 100%); box-shadow:0 0 10px #f87171; }
.mobile-agressor-compradores .mobile-agressor-bar i { bottom:0; background:linear-gradient(0deg,#082f75 0%,#2563eb 55%,#38bdf8 100%); box-shadow:0 0 10px #38bdf8; }
.mobile-briga-60-box .mobile-agressor-vendedores .mobile-agressor-bar i { background:linear-gradient(180deg,#ef4444 0%,#b91c1c 55%,#450a0a 100%); }
.mobile-briga-60-box .mobile-agressor-compradores .mobile-agressor-bar i { background:linear-gradient(0deg,#0f172a 0%,#3b82f6 55%,#bfdbfe 100%); }
.mobile-agressor-centro { position:absolute; left:0; right:0; bottom:0; height:23px; padding-top:2px; border-top:1px solid rgba(255,255,255,.2); text-align:center; }
.mobile-agressor-centro b { display:block; color:#e2e8f0; font-size:9px; line-height:1; white-space:nowrap; }
.mobile-agressor-centro span { display:block; font-size:17px; font-weight:950; line-height:1; }
.mobile-agressor-centro .briga-seta-compra { color:#7dd3fc; text-shadow:0 0 8px #38bdf8; }
.mobile-agressor-centro .briga-seta-venda { color:#f87171; text-shadow:0 0 8px #ef4444; }
.direction, .strategy-badge, .read-only-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.direction { width: max-content; margin-top: 4px; padding: 4px 8px; background: rgba(148,163,184,.14); color: var(--muted); font-size: 9px; }
.direction.buy { background: rgba(74, 222, 128, .16); color: var(--green); }
.direction.sell { background: rgba(255, 107, 117, .16); color: var(--red); }
.direction.market-open { background: rgba(74, 222, 128, .18); color: var(--green); box-shadow: 0 0 12px rgba(74,222,128,.58), inset 0 0 8px rgba(74,222,128,.14); }
.direction.market-closed { background: rgba(255, 107, 117, .18); color: var(--red); box-shadow: 0 0 12px rgba(255,107,117,.5), inset 0 0 8px rgba(255,107,117,.12); }
.mobile-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 12px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: rgba(6, 17, 30, .75); }
.tab-button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 900; cursor: pointer; }
.tab-button.is-active { background: var(--panel-2); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(96,217,255,.25); }
.tab-panel[hidden] { display: none; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin: 5px 2px 9px; }
.section-heading h2 { margin: 3px 0 0; font-size: 18px; letter-spacing: -.02em; }
.read-only-badge { border: 1px solid rgba(96,217,255,.22); padding: 5px 7px; color: var(--cyan); font-size: 8px; white-space: nowrap; }
.strategy-list { display: grid; gap: 8px; }
.strategy-card { position: relative; min-width: 0; padding: 11px 12px 10px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg, rgba(15, 35, 56, .97), rgba(8, 21, 36, .97)); box-shadow: 0 10px 23px rgba(0,0,0,.2); overflow: hidden; }
.strategy-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--cyan); }
.strategy-hold::before { background: var(--yellow); }
.strategy-terra::before { background: var(--green); }
.strategy-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto 34px; align-items: center; gap: 7px; }
.strategy-name { min-width: 0; font-size: 17px; font-weight: 950; letter-spacing: .04em; }
.strategy-symbol { font-size: 22px; }
.strategy-confidence { color: var(--cyan); font-size: 18px; font-weight: 950; }
.strategy-hold .strategy-confidence { color: var(--yellow); }
.strategy-terra .strategy-confidence { color: var(--green); }
.collapse-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: rgba(4, 14, 25, .7); color: var(--cyan); font-size: 20px; line-height: 1; cursor: pointer; }
.strategy-card.is-collapsed .collapse-button { transform: rotate(180deg); }
.strategy-card.is-collapsed > :not(.strategy-heading) { display: none; }
.strategy-state-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 9px; }
.strategy-direction { display: inline-flex; align-items: center; min-height: 22px; padding: 4px 8px; border-radius: 999px; background: rgba(148,163,184,.14); color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .07em; }
.strategy-direction.buy { background: rgba(74,222,128,.15); color: var(--green); }
.strategy-direction.sell { background: rgba(255,107,117,.15); color: var(--red); }
.strategy-badge { max-width: 66%; padding: 4px 7px; background: rgba(148,163,184,.12); color: var(--muted); font-size: 8px; text-align: right; }
.strategy-badge.active { background: rgba(74,222,128,.16); color: var(--green); }
.strategy-badge.warn { background: rgba(255,209,102,.16); color: var(--yellow); }
.strategy-badge.loss { background: rgba(255,107,117,.16); color: var(--red); }
.trade-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding-top: 9px; border-top: 1px solid var(--line); }
.trade-levels div { min-width: 0; }
.trade-levels span { display: block; color: var(--muted); font-size: 9px; font-weight: 700; }
.trade-levels strong { display: block; margin-top: 3px; color: var(--text); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trade-levels strong.gain { color: var(--yellow); }
.trade-levels strong.loss { color: var(--red); }
.strategy-reason { min-height: 28px; margin: 9px 0 5px; color: #c1d2e4; font-size: 11px; line-height: 1.35; }
.strategy-extra { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9px; font-weight: 700; }
.mobile-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(12, 27, 45, .75); color: var(--muted); font-size: 10px; font-weight: 800; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i { position: relative; display: block; width: 32px; height: 18px; flex: 0 0 32px; border-radius: 999px; background: #33475c; transition: .18s ease; }
.switch-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #d3dfeb; transition: .18s ease; }
.switch-row input:checked + i { background: var(--green); }
.switch-row input:checked + i::after { transform: translateX(14px); background: #07111f; }
.flow-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 9px; }
.flow-summary > div, .context-grid > div { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: rgba(12, 27, 45, .83); }
.flow-summary strong, .context-grid strong { display: block; margin-top: 6px; color: var(--cyan); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-note { margin: 0 0 9px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.flow-ladder { display: grid; gap: 5px; }
.flow-level { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid rgba(139,197,255,.11); border-radius: 10px; background: rgba(9, 23, 39, .8); font-size: 10px; }
.flow-level .flow-price { color: var(--text); font-weight: 900; }
.flow-level .flow-mark { color: var(--yellow); font-size: 9px; text-align: right; }
.flow-level .flow-force { width: 42px; height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--cyan) var(--force, 0%), rgba(139,197,255,.12) var(--force, 0%)); }
.empty-state { padding: 22px 10px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 11px; text-align: center; }
.chart-card { margin-bottom: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: rgba(12, 27, 45, .86); }
.chart-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.chart-title strong { color: var(--cyan); font-size: 14px; }
.chart-card canvas { display: block; width: 100%; height: 170px; }
.chart-note { margin: 2px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.context-card { padding: 15px; border: 1px solid rgba(74,222,128,.3); border-radius: 15px; background: linear-gradient(135deg, rgba(13, 57, 49, .85), rgba(10, 30, 42, .9)); }
.context-card strong { display: block; color: var(--green); font-size: 14px; }
.context-card p { margin: 7px 0; color: #c1d2e4; font-size: 11px; line-height: 1.4; }
.context-card small { color: var(--muted); font-size: 9px; }
.context-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: 9px; }
.mobile-footer { display: flex; justify-content: space-between; gap: 8px; margin: 15px 2px 0; color: #69839b; font-size: 9px; }
#last-error { color: var(--red); text-align: right; }
@media (min-width: 560px) { .strategy-list { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } .strategy-card { padding: 10px; } .strategy-name { font-size: 14px; } .strategy-symbol { font-size: 18px; } .strategy-confidence { font-size: 15px; } .trade-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; } .strategy-reason { min-height: 53px; } .mobile-controls { max-width: 420px; margin-left: auto; } }
@media (max-width: 360px) { .mobile-shell { padding-left: 10px; padding-right: 10px; } .market-strip { grid-template-columns: 1.3fr repeat(3, 1fr); padding: 9px; } .market-metric { padding-left: 5px; } .market-metric strong { font-size: 11px; } .trade-levels strong { font-size: 11px; } .mobile-controls { grid-template-columns: 1fr; } }
