:root {
  --bg: #000000; --panel: #050506; --panel2: #0d0d0f; --line: #17171a; --line2: #242428; --text: #e8e8ea; --muted: #7d8189;
  --green: #22b39f; --red: #f0534f; --amber: #f2b33d; --blue: #5b93ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 13px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body { display: flex; flex-direction: column; overflow: hidden; }
button, select, input, textarea { font: inherit; color: var(--text); background: var(--panel2); border: 1px solid var(--line2); border-radius: 7px; padding: 6px 10px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); }
button { cursor: pointer; transition: border-color .15s, background .15s; }
button:hover { border-color: #34343a; background: #141417; }
button:disabled { opacity: .5; cursor: default; }
a { color: var(--muted); text-decoration: none; } a:hover { color: var(--text); }
.muted { color: var(--muted); } .small { font-size: 12px; } .err { color: var(--red); } .spacer { flex: 1; }
.pos { color: var(--green); } .neg { color: var(--red); }

header { display: flex; gap: 18px; align-items: center; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--panel); flex: none; }
.brand { font-weight: 700; letter-spacing: .2px; } .brand .muted { margin: 0 4px; }
header label { display: flex; gap: 6px; align-items: center; }

main { flex: 1; min-height: 0; display: grid; grid-template-columns: 440px minmax(0, 1fr) 380px; }
section { min-width: 0; min-height: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
#right { border-right: none; background: var(--panel); }
#left { background: var(--panel); }
.head { padding: 10px 12px; font-weight: 600; border-bottom: 1px solid var(--line); flex: none; }

/* market table */
.tablewrap, #left > table { overflow: auto; }
#left { overflow-y: auto; overflow-x: hidden; }
#coins { table-layout: fixed; }
#coins th:nth-child(1), #coins td:nth-child(1) { width: 22%; overflow: hidden; text-overflow: ellipsis; }
#coins th:last-child, #coins td:last-child { width: 100px; padding-right: 10px; }
.lefthead { display: flex; align-items: center; gap: 10px; }
.lefthead input { flex: 1; min-width: 0; padding: 4px 8px; font-weight: 400; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { padding: 6px 8px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font-weight: 500; font-size: 11.5px; position: sticky; top: 0; background: var(--panel); border-bottom: 1px solid var(--line); z-index: 1; }
td.c { font-weight: 600; }
#coins tbody tr { cursor: pointer; border-bottom: 1px solid #121214; }
#coins tbody tr:hover { background: #0f0f12; }
#coins tbody tr.sel { background: #101826; box-shadow: inset 3px 0 0 var(--blue); }
.pill { display: inline-block; min-width: 40px; padding: 1px 7px; border-radius: 10px; font-size: 11.5px; text-align: center; background: #151518; color: var(--muted); font-variant-numeric: tabular-nums; }
.pill.w { background: rgba(242,179,61,.16); color: var(--amber); }
.pill.h { background: rgba(240,83,79,.18); color: #ff8a86; font-weight: 600; }

/* chart */
#center { background: var(--bg); }
.chart-bar { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); flex: none; flex-wrap: wrap; }
.coin { font-size: 16px; }
.px { font-size: 16px; font-variant-numeric: tabular-nums; margin-right: 6px; }
.tf { display: flex; gap: 4px; }
.opts { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.opts label { display: flex; gap: 4px; align-items: center; cursor: pointer; }
.opts input { accent-color: var(--blue); margin: 0; }
.tf button { padding: 4px 10px; }
.tf button.on, .tabs button.on { border-color: var(--blue); background: rgba(91,147,255,.12); color: #fff; }
#chart { flex: 1; min-height: 320px; }
.legend { padding: 4px 14px 6px; flex: none; }
#sel-signal { padding: 6px 14px; flex: none; }
#sel-signal:empty { display: none; }
.decide { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); flex: none; background: var(--panel); }
.decide input { flex: 1; min-width: 80px; }
button.long { border-color: rgba(34,179,159,.6); color: #6fe3d2; } button.long:hover { background: rgba(34,179,159,.12); }
button.short { border-color: rgba(240,83,79,.6); color: #ff8a86; } button.short:hover { background: rgba(240,83,79,.12); }
#decide-msg:empty { display: none; }

/* right panel */
.tabs { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex: none; }
.tabs button { flex: 1; }
.tab { padding: 10px 12px; overflow: auto; flex: 1; min-height: 0; }
.tab[hidden] { display: none; }
.filters { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.filters select { flex: 1; min-width: 0; }
.filters label { white-space: nowrap; display: flex; gap: 4px; align-items: center; }
.sig { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; cursor: pointer; background: var(--panel2); }
.sig:hover { border-color: var(--line2); } .sig.sel { border-color: var(--blue); }
.sig .t { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.tag { display: inline-block; padding: 0 7px; border-radius: 4px; font-size: 11px; background: #232b36; color: #b9c2cd; margin-left: 4px; }
.tag.taken { background: rgba(34,179,159,.18); color: #7fe0d4; }
#question { width: 100%; resize: vertical; margin-bottom: 8px; }
#ask { width: 100%; margin-bottom: 12px; border-color: rgba(91,147,255,.6); }
.ai { border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 8px; background: var(--panel2); }
.ai .v { font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.ai ul { margin: 6px 0 6px 18px; padding: 0; }
.jrow { border-bottom: 1px solid var(--line); padding: 8px 0; }
#j-sum:empty { display: none; } #j-sum { margin-bottom: 8px; }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; z-index: 10; }
.overlay[hidden] { display: none; }
.card { background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; width: 300px; }
.card h2 { margin: 0 0 6px; font-size: 18px; }

::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #262e39; border-radius: 4px; } ::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 1250px) { main { grid-template-columns: 380px minmax(0, 1fr) 340px; } }
@media (max-width: 1000px) {
  body { overflow: auto; } main { display: flex; flex-direction: column; }
  section { border-right: none; border-bottom: 1px solid var(--line); } #left { max-height: 320px; } #chart { height: 400px; flex: none; } .tab { max-height: 520px; }
}

/* bot call in the table and the decision panel */
.bot { display: inline-block; min-width: 58px; text-align: left; padding: 1px 6px; border-radius: 10px; font-size: 11px; font-weight: 600; background: #151518; color: var(--muted); white-space: nowrap; }
.bot i { font-style: normal; font-weight: 500; opacity: .8; margin-left: 2px; }
.bot.long.near { color: #6fe3d2; background: rgba(34,179,159,.12); } .bot.short.near { color: #ff8a86; background: rgba(240,83,79,.12); }
.bot.long.fire { color: #0b0e13; background: var(--green); } .bot.short.fire { color: #0b0e13; background: var(--red); }
#decision { padding: 6px 14px; border-bottom: 1px solid var(--line); background: var(--panel); flex: none; }
.dline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 2px 0; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.chip { border: 1px solid transparent; cursor: pointer; padding: 1px 7px; min-width: 0; }
.chip.on { border-color: var(--blue); }
#decision:empty { display: none; }
.verdict { margin-bottom: 8px; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rule { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--panel2); font-size: 12px; line-height: 1.6; }
.rule.lead { border-color: rgba(91,147,255,.55); }
.rule .rt { font-size: 12.5px; margin-bottom: 2px; }
.ok { color: var(--green); font-weight: 700; } .no { color: #556070; font-weight: 700; }
@media (max-width: 1250px) { .rules { grid-template-columns: 1fr; } }

#calls-sum { margin-bottom: 10px; } #calls-sum .muted a { text-decoration: underline; }
table.sum { margin-top: 6px; font-size: 11px; border: 1px solid var(--line); border-radius: 8px; table-layout: fixed; }
table.sum td:first-child, table.sum th:first-child { width: 26%; overflow: hidden; text-overflow: ellipsis; }
table.sum th { position: static; background: var(--panel2); }
table.sum td, table.sum th { padding: 3px 4px; }

.aiw { margin-top: 4px; font-size: 11.5px; color: #c4ccd6; }
.aiw summary { cursor: pointer; list-style: none; } .aiw summary::-webkit-details-marker { display: none; }
.aiw .v { font-weight: 700; text-transform: uppercase; }
.aiw ul { margin: 4px 0 4px 16px; padding: 0; }

#conf-note { padding: 6px 14px; border-bottom: 1px solid var(--line); background: rgba(255,209,102,.06); color: #ffe3a3; flex: none; }
#conf-note:empty { display: none; }

.big { display: inline-block; padding: 2px 10px; border-radius: 7px; font-weight: 700; font-size: 13px; background: #151518; color: var(--muted); margin-right: 4px; }
.big.long.near { color: #6fe3d2; background: rgba(34,179,159,.15); } .big.short.near { color: #ff8a86; background: rgba(240,83,79,.15); }
.big.long.fire { color: #0b0e13; background: var(--green); } .big.short.fire { color: #0b0e13; background: var(--red); }
.bot b { font-weight: 700; margin: 0 2px; }

.chart-bar { flex-wrap: nowrap; }
.chart-bar #coin-px { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-bar .tf { flex: none; }
.optbar { padding: 6px 14px; border-bottom: 1px solid var(--line); flex: none; }
.mood { letter-spacing: .4px; cursor: pointer; border-bottom: 1px dotted currentColor; } .amber { color: var(--amber); }

/* phones: header on two short lines, one panel at a time with a tab bar at the bottom */
#mnav { display: none; }
@media (max-width: 760px) {
  html, body { height: 100%; overflow: hidden; font-size: 13px; }
  body { display: flex; flex-direction: column; }
  header { height: auto; flex-wrap: wrap; gap: 4px 10px; padding: 6px 10px; }
  .brand { font-size: 13px; }
  #mkt { order: 3; width: 100%; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #mkt .mk-more { display: none; }
  header .spacer, #upd, header label:has(#model) { display: none; }
  header label { font-size: 12px; }
  main { display: block; flex: 1; min-height: 0; }
  section { display: none !important; height: 100%; border: none; }
  body[data-view="left"] #left, body[data-view="center"] #center, body[data-view="right"] #right { display: flex !important; }
  #left { max-height: none; overflow-y: auto; }
  #coins th:last-child, #coins td:last-child { width: 108px; }
  #coins td, #coins th { padding: 9px 8px; }
  .chart-bar { padding: 6px 10px; gap: 8px; }
  .coin, .px { font-size: 14px; }
  #coin-px .small { display: none; }
  .tf button { padding: 3px 8px; }
  .optbar { padding: 4px 10px; overflow-x: auto; }
  .opts { flex-wrap: nowrap; white-space: nowrap; font-size: 12px; }
  #decision { padding: 4px 10px; font-size: 12px; }
  #decision .dline:not(:first-child) { display: none; }
  .chips { margin-left: 0; }
  .big { font-size: 12px; padding: 1px 8px; }
  #conf-note { padding: 4px 10px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #chart { flex: 1; min-height: 240px; height: auto; }
  .legend, #sel-signal { display: none; }
  .decide { padding: 6px 10px; gap: 6px; }
  .decide input { display: none; }
  .decide button { flex: 1; padding: 6px 4px; }
  #decide-msg { display: none; }
  .tab { max-height: none; }
  #mnav { display: flex; flex: none; border-top: 1px solid var(--line); background: var(--panel); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 6px; }
  #mnav button { flex: 1; padding: 8px; }
  #mnav button.on { border-color: var(--blue); background: rgba(91,147,255,.12); color: #fff; }
}

#ctx-note { padding: 5px 14px; border-bottom: 1px solid var(--line); background: var(--panel); flex: none; }
#ctx-note:empty { display: none; }
@media (max-width: 760px) { #ctx-note { padding: 4px 10px; font-size: 11.5px; } }

#mood-pop { position: fixed; z-index: 20; width: 370px; max-width: calc(100vw - 16px); background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.5; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
#mood-pop table { width: 100%; margin: 6px 0; font-size: 12px; } #mood-pop td { padding: 2px 0; white-space: normal; text-align: left; } #mood-pop td:first-child { color: var(--muted); padding-right: 10px; }

/* ---------- manual scalping (scalp.js, Dec 3 2026) */
#acct-strip { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#acct-strip b { font-variant-numeric: tabular-nums; }
#firing { padding: 10px 12px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#firing .fh { width: 100%; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.fire-pill { font-size: 13px; font-weight: 700; padding: 5px 10px; border: none; color: #0b0e13; }
.fire-pill.long { background: var(--green); } .fire-pill.short { background: var(--red); }
.fire-pill.long:hover { background: #2fd0b9; } .fire-pill.short:hover { background: #ff6b67; }
.fire-pill i { font-style: normal; font-weight: 500; opacity: .75; } .fire-pill .age { font-weight: 500; opacity: .75; }
.fire-pill.weak { background: #151518; color: var(--muted); }
#firing .weakline { width: 100%; } #firing .weakline a { margin-right: 6px; }
#alerts:empty { display: none; }
.alert { padding: 7px 14px; font-weight: 600; font-size: 13px; border-bottom: 1px solid var(--line); }
.alert.stop { background: rgba(240,83,79,.18); color: #ff8a86; } .alert.warn { background: rgba(242,179,61,.13); color: var(--amber); }
#ticket { padding: 8px 14px 10px; border-bottom: 1px solid var(--line); background: var(--panel2); flex: none; }
#ticket:empty { display: none; }
.tk-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-side { font-size: 17px; font-weight: 800; letter-spacing: .3px; padding: 3px 12px; border-radius: 7px; }
.tk-side.long { background: var(--green); color: #0b0e13; } .tk-side.short { background: var(--red); color: #0b0e13; } .tk-side.none { background: #151518; color: var(--muted); font-size: 14px; }
.tk-head .fires { color: #fff; letter-spacing: .5px; }
.tk-own { display: flex; gap: 4px; } .tk-own button { padding: 3px 10px; font-size: 12px; } .tk-own button.on { border-color: var(--blue); background: rgba(91,147,255,.15); }
.tk-edge { margin-top: 6px; font-size: 12px; color: var(--green); } .tk-edge.weak { color: var(--amber); }
.tk-grid { margin-top: 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 14px; }
.tk-grid > div { display: flex; flex-direction: column; min-width: 0; }
.tk-grid span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.tk-grid b { font-size: 14px; font-variant-numeric: tabular-nums; }
.tk-grid i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.tk-grid input { width: 50px; padding: 0 3px; font-size: 11px; }
.tk-foot { margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .tk-foot button { padding: 3px 10px; }
.acct-addr { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; } .acct-addr input { width: 100%; font-size: 12px; }
.acct-today { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 10px; }
.acct-today > div { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; display: flex; flex-direction: column; }
.acct-today span { font-size: 11px; color: var(--muted); } .acct-today b { font-size: 16px; font-variant-numeric: tabular-nums; } .acct-today i { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 400; }
.rules-box { margin-bottom: 10px; } .rules-box summary { cursor: pointer; color: var(--muted); }
.rules-in { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-top: 6px; }
.rules-in label { display: flex; flex-direction: column; font-size: 11px; color: var(--muted); } .rules-in input { padding: 3px 6px; }
.trip { padding: 6px 0; border-bottom: 1px solid #121214; cursor: pointer; } .trip > div:first-child { display: flex; gap: 6px; align-items: baseline; }
.trip.open { box-shadow: inset 3px 0 0 var(--blue); padding-left: 6px; } .trip:hover { background: #0f0f12; }
.tag.callok { color: var(--green); }
.pos-t tbody tr { cursor: pointer; }
@media (max-width: 1250px) { .tk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { #acct-strip { display: none; } #ticket { padding: 6px 10px; } .tk-side { font-size: 15px; } .tk-grid b { font-size: 14px; } #firing { padding: 8px 10px; } }
/* the ticket says the side and the strategy: the decision line above keeps only the strategy chips */
#decision .dline:first-child > span:first-child { display: none; }
@media (min-width: 1700px) { .tk-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
/* ---------- news (scalp.js) */
.badge { background: var(--amber); color: #0b0e13; border-radius: 8px; padding: 0 5px; font-size: 10.5px; font-weight: 700; margin-left: 3px; }
#newsbar:empty { display: none; }
#newsbar { padding: 6px 14px; border-bottom: 1px solid var(--line); background: rgba(242,179,61,.10); font-size: 13px; }
#newsbar a { color: var(--text, #e6edf3); text-decoration: none; } #newsbar a b { color: var(--amber); margin-right: 6px; letter-spacing: .5px; }
.news-ctl { display: flex; gap: 14px; margin-bottom: 8px; }
#news-words { width: 100%; font-size: 12px; margin: 6px 0; }
a.news { display: block; padding: 7px 0; border-bottom: 1px solid #121214; color: inherit; text-decoration: none; }
a.news:hover { background: #0f0f12; } a.news .nt { font-size: 13px; line-height: 1.35; }
a.news.hit { box-shadow: inset 3px 0 0 var(--amber); padding-left: 8px; } a.news.hit .nt { font-weight: 600; }

/* ---------- Dec 4 2026: black and calmer — the reading card, ghost buttons, fewer lines */
header { background: var(--bg); }
#left, #right { background: var(--bg); }
th { background: var(--bg); }
button.ghost { background: transparent; border-color: var(--line2); padding: 4px 10px; color: var(--muted); }
button.ghost.on, button.ghost:hover { color: var(--text); border-color: #3a3a40; }
.optbar { padding: 6px 14px 8px; border-bottom: 1px solid var(--line); }
#read { padding: 10px 16px 12px; border-bottom: 1px solid var(--line); flex: none; display: flex; flex-direction: column; gap: 5px; }
.rd-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.rd-head b { font-size: 13px; letter-spacing: .3px; }
.rd-line { display: flex; gap: 9px; align-items: baseline; font-size: 13px; line-height: 1.45; color: #c9ccd2; }
.rd-line b { color: var(--text); }
.rd-line b.pos { color: var(--green); } .rd-line b.neg { color: var(--red); }
.dot { flex: none; width: 7px; height: 7px; border-radius: 50%; transform: translateY(-1px); background: #4a4d55; }
.dot.pos { background: var(--green); } .dot.neg { background: var(--red); } .dot.warn { background: var(--amber); } .dot.mid { background: #4a4d55; }
.rd-so { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: #0b0b0d; border: 1px solid var(--line2); font-size: 13px; }
.rd-so .tk-own { display: flex; gap: 4px; align-items: center; color: var(--muted); }
.rd-so .tk-own button { padding: 2px 10px; }
#ticket { background: #070708; }
#firing { border-bottom: 1px solid var(--line); }
.fire-pill.weak { background: #151518; }
#coins th:nth-child(1), #coins td:nth-child(1) { width: 30%; }
#coins th:last-child, #coins td:last-child { width: 110px; }
.legend { padding: 8px 16px 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; color: #a5a9b0; }
.legend b { color: var(--text); font-weight: 600; margin-right: 4px; }
#newsbar { background: rgba(242,179,61,.07); }
.alert.warn { background: rgba(242,179,61,.08); } .alert.stop { background: rgba(240,83,79,.12); }
main { grid-template-columns: 360px minmax(0, 1fr) 360px; }
@media (max-width: 760px) { #read { padding: 8px 10px; } .rd-head .small { display: none; } }

[hidden] { display: none !important; }
.rules-sw { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; color: var(--muted); } .rules-sw label { display: flex; gap: 6px; align-items: center; }
/* the lean badge and the room bar (Dec 4 2026) */
.lean { font-size: 12px; font-weight: 800; letter-spacing: .5px; padding: 2px 9px; border-radius: 6px; margin-left: 6px; }
.lean.pos { background: var(--green); color: #000; } .lean.neg { background: var(--red); color: #000; }
.lean.pos.weak { background: rgba(34,179,159,.18); color: var(--green); } .lean.neg.weak { background: rgba(240,83,79,.18); color: var(--red); }
.lean.mid { background: #1a1a1e; color: #b9bcc3; }
.rd-why { margin-left: 8px; color: #a5a9b0; }
.rd-range { display: grid; grid-template-columns: auto minmax(120px, 1fr) auto; gap: 12px; align-items: center; margin: 6px 0 0 16px; }
.rr-lab { display: flex; flex-direction: column; font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; } .rr-lab.r { text-align: right; }
.rr-lab i { font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); }
.rr-bar { position: relative; display: flex; height: 8px; border-radius: 4px; overflow: visible; background: #111; }
.rr-dn, .rr-up { background: #26262b; } .rr-dn { border-radius: 4px 0 0 4px; } .rr-up { border-radius: 0 4px 4px 0; }
.rr-up.fav { background: rgba(34,179,159,.6); } .rr-dn.fav { background: rgba(240,83,79,.6); }
.rr-px { position: absolute; top: -4px; width: 3px; height: 16px; background: #fff; border-radius: 2px; transform: translateX(-50%); }
.rd-head .tk-own { display: flex; gap: 4px; align-items: center; color: var(--muted); } .rd-head .tk-own button { padding: 2px 10px; }
/* the OI key on the chart, and the hovered candle's reading (Dec 4 2026) */
#chart { position: relative; }
#oi-key { position: absolute; left: 8px; z-index: 3; pointer-events: none; font-size: 11.5px; color: #b9bcc3; background: rgba(0,0,0,.7); padding: 2px 6px; border-radius: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; max-width: calc(100% - 90px); }
#oi-key span { display: inline-flex; align-items: center; gap: 4px; } #oi-key i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
#oi-key b { color: var(--text); }

/* Dec 4: header search, foldable market list, slim room bar */
#hq { width: 150px; background: #111; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 5px 8px; font: inherit; font-size: 12.5px; }
#left-btn { font-size: 12.5px; }
body.noleft main { grid-template-columns: minmax(0, 1fr) 360px; }
body.noleft #left { display: none; }
.rd-range { grid-template-columns: auto minmax(80px, 1fr) auto; gap: 8px; margin: 4px 0 0 16px; max-width: 520px; }
.rr-lab { flex-direction: row; gap: 5px; align-items: baseline; font-size: 11.5px; }
.rr-lab i { font-size: 10.5px; }
.rr-bar { height: 5px; } .rr-px { top: -3px; height: 11px; width: 2px; }
@media (max-width: 760px) { #hq { width: 110px; } body.noleft #left { display: flex; } }

/* Dec 4 late: compact reading row */
#read { padding: 6px 14px; gap: 4px; }
#read .rd-head { align-items: center; margin: 0; cursor: pointer; min-width: 0; }
#read .rd-why { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
#read .rd-head .rd-range { margin: 0; width: 340px; flex: none; }
.rd-tog { color: var(--muted); font-size: 11px; margin-left: 4px; }
#read.open .rd-line { font-size: 12.5px; }
#newsbar { padding-top: 4px !important; padding-bottom: 4px !important; }
@media (max-width: 760px) { #read .rd-head .rd-range { width: 160px; } }
/* Dec 5: phone — one-row header (search + sound / alerts), the chart first */
@media (max-width: 760px) {
  html, body { height: 100dvh; }
  header { flex-wrap: nowrap; gap: 8px; padding: 6px 10px; }
  header .brand, #left-btn, #mkt { display: none; }
  #hq { flex: 1; width: auto; min-width: 0; font-size: 16px; padding: 6px 10px; }
  header label { font-size: 12px; white-space: nowrap; }
  #read .rd-why { display: none; }
  #read .rd-head .rd-range { width: auto; flex: 1; min-width: 120px; }
  #read .rd-head .spacer { display: none; }
}

/* Dec 6: manual orders bar */
#trade { border-bottom: 1px solid var(--line); padding: 6px 14px; font-size: 12.5px; }
#trade .tr-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#trade input { background: #111; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 4px 8px; font: inherit; width: 110px; }
#trade #tr-code { width: 80px; letter-spacing: 2px; }
#trade button { padding: 4px 10px; font-size: 12.5px; }
#trade button.on { border-color: var(--acc, #5b93ff); }
#trade .tr-long { background: rgba(34,179,159,.18); border-color: #22b39f; color: #3fd1bb; font-weight: 600; }
#trade .tr-short { background: rgba(240,83,79,.16); border-color: #f0534f; color: #ff7470; font-weight: 600; }
#trade .tr-close { border-color: #f0534f; color: #ff7470; }
#trade .tr-err { color: #ff7470; }
#trade .tr-lock { color: var(--muted); }
.tr-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.tr-dot.wait { background: #ffd166; } .tr-dot.on { background: #22b39f; box-shadow: 0 0 6px #22b39f; }
.tr-cfg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; align-items: center; }
.tr-cfg label { display: flex; gap: 5px; align-items: center; color: var(--muted); }
.tr-cfg input { width: 80px !important; }
@media (max-width: 760px) { #trade { padding: 6px 10px; } #trade input { width: 90px; font-size: 16px; } }
