:root {
  --bg: #0b0f17;
  --bg2: #111827;
  --card: #151c2a;
  --line: #222c3d;
  --text: #e8ecf3;
  --muted: #8b95a7;
  --gold: #f2c14e;
  --gold2: #c88a16;
  --up: #14b88a;
  --down: #f0455a;
  --purple: #9b6bff;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.gold { background: linear-gradient(180deg, #ffe08a, var(--gold2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; transition: transform .12s, filter .12s;
}
.btn:active { transform: scale(.98); }
.btn-gold { background: linear-gradient(180deg, #ffd970, var(--gold2)); color: #1a1205; }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold2); }
.btn-small { padding: 9px 14px; font-size: 13px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 20px;
  padding: 12px max(16px, calc((100% - 1120px) / 2));
  background: rgba(11, 15, 23, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero {
  max-width: 1120px; margin: 0 auto; padding: 64px 16px 40px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
.pill { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold); font-size: 13px; font-weight: 600; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.12; margin: 18px 0 16px; letter-spacing: -.02em; }
.lead { color: #c3cad7; font-size: 17px; max-width: 560px; }
.cta { display: flex; gap: 12px; margin: 26px 0 18px; flex-wrap: wrap; }
.trust { display: flex; gap: 18px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.trust li::before { content: "✓ "; color: var(--up); }

.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 300px; border-radius: 34px; padding: 16px 14px 14px;
  background: linear-gradient(180deg, #161e2e, #0f1522);
  border: 1px solid #2a3449; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 6px #0a0e15;
}
.phone-head { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 0 4px 8px; }
.phone-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); }
.phone-head .px { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--up); }
#heroChart { width: 100%; height: 230px; display: block; border-radius: 12px; background: #0c111b; }
.phone-flow { font-size: 12px; padding: 10px 4px; color: var(--muted); }
.phone-flow b { color: var(--up); }
.phone-bar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; }
.phone-bar span { padding: 10px; border-radius: 10px; font-weight: 700; font-size: 13px; text-align: center; }
.phone-bar .sell { background: var(--down); }
.phone-bar .buy { background: #2b6bf3; }
.phone-bar .lot { background: #1d2636; color: var(--text); }

/* ---------- sections ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 56px 16px; }
.section h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 6px; letter-spacing: -.01em; }
.sub { color: var(--muted); margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card .ico { font-size: 24px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(242, 193, 78, .1); color: var(--gold); }
.card h3 { margin: 14px 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.steps ol { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 6px; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1a1205; font-weight: 800; }
.steps span { color: var(--muted); font-size: 14px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 16px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.plan.hot { border-color: var(--gold2); box-shadow: 0 0 0 1px var(--gold2), 0 20px 50px rgba(200, 138, 22, .15); }
.plan .tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: #1a1205; background: var(--gold); padding: 4px 10px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 20px; }
.plan .price { font-size: 30px; font-weight: 800; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: #c3cad7; font-size: 14px; }
.plan li::before { content: "✓"; color: var(--up); margin-right: 8px; font-weight: 700; }
.plan .btn { margin-top: auto; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.footer { max-width: 1120px; margin: 0 auto; padding: 28px 16px 48px; border-top: 1px solid var(--line); color: #c3cad7; font-size: 13px; }

/* ---------- members ---------- */
.login { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 380px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px 22px; }
.login-card h1 { font-size: 28px; margin: 10px 0 2px; }
.login-card form { display: grid; gap: 10px; margin: 20px 0 8px; }
.login-card input {
  width: 100%; padding: 15px; border-radius: 12px; border: 1px solid var(--line); background: #0c111b; color: var(--text);
  font: 600 18px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; letter-spacing: .06em; text-transform: uppercase;
}
.login-card input:focus { outline: none; border-color: var(--gold2); }
.error { color: var(--down); min-height: 20px; font-size: 14px; margin: 4px 0 10px; }
.warn { color: #f5a524; background: rgba(245, 165, 36, .1); padding: 10px 12px; border-radius: 10px; font-size: 14px; }

.dash { max-width: 1180px; margin: 0 auto; padding: 14px 16px 48px; display: grid; gap: 12px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.head-right { display: flex; align-items: center; gap: 12px; }
.equity { font-variant-numeric: tabular-nums; font-size: 14px; text-align: right; }
.who { font-weight: 800; font-size: 20px; }
.acct { color: #8b95a7; font-size: 14px; }
.acct.real { color: var(--gold); }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 55px; z-index: 5; background: var(--bg); padding: 4px 0; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; background: var(--card); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 600 14px/1 "Be Vietnam Pro", system-ui, sans-serif; cursor: pointer; }
.tabs button.on { background: var(--gold); color: #1a1205; border-color: var(--gold); }
.tab { display: grid; gap: 12px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-width: 0; }
.panel h3 { margin: 2px 4px 10px; font-size: 16px; }
.panel h4 { margin: 16px 4px 8px; font-size: 14px; color: var(--muted); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.panel-head h3 { margin: 2px 4px; }

/* chart */
.chart-panel { padding: 10px; }
.chart-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.chart-title { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.sym-btn { background: none; border: 0; color: var(--text); font: 800 16px/1 "Be Vietnam Pro", system-ui, sans-serif; cursor: pointer; padding: 0; }
.sym-btn:not(:disabled)::after { content: " ▾"; color: var(--muted); font-size: 12px; }
.sym-btn:disabled { cursor: default; }
.chart-tools { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.chart-tools .tf { min-width: 0; flex: 1 1 auto; }
.live-price { margin-left: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tf { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tf button, .icon-btn { flex: none; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font: 600 12px/1 "Be Vietnam Pro", system-ui, sans-serif; cursor: pointer; }
.tf button.on { background: var(--gold); color: #1a1205; border-color: var(--gold); }
.icon-btn { font-style: italic; font-weight: 800; color: var(--gold); }
.icon-btn.plain { font-style: normal; font-size: 13px; color: var(--text); }
.flow { font-size: 12.5px; line-height: 1.45; padding: 2px 4px 6px; }
.warn-t { color: #f5a524; }
.chart-wrap { position: relative; height: min(62vh, 560px); min-height: 320px; }
#chart { position: absolute; inset: 0; }
.pill-pos { position: absolute; bottom: 38px; left: 8px; z-index: 3; display: flex; align-items: center; gap: 8px; background: rgba(12, 17, 27, .88);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 6px 5px 12px; font-size: 12.5px; font-variant-numeric: tabular-nums; backdrop-filter: blur(6px); }
.pill-pos .go { cursor: pointer; }
.pill-pos .x, .sel-bar button { background: #222c3d; color: var(--text); border: 0; border-radius: 999px; height: 24px; min-width: 24px; padding: 0 8px; cursor: pointer; font: 600 12px/1 "Be Vietnam Pro", system-ui, sans-serif; }
.pill-pos .x:hover, .sel-bar .danger { background: var(--down); color: #fff; }
.sel-bar { position: absolute; left: 8px; bottom: 38px; z-index: 4; display: flex; align-items: center; gap: 6px; white-space: nowrap; max-width: calc(100% - 16px); overflow-x: auto; scrollbar-width: none;
  background: rgba(12, 17, 27, .94); border: 1px solid var(--gold2); border-radius: 12px; padding: 5px 6px 5px 10px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sel-bar::-webkit-scrollbar { display: none; }
.sel-bar:not([hidden]) ~ .pill-pos, .chart-wrap:has(.sel-bar:not([hidden])) .pill-pos { display: none; }
.chart-wrap { -webkit-user-select: none; user-select: none; }
.sel-bar .muted { background: transparent; color: var(--muted); }
.chart-note { margin: 6px 4px 0; }

.ticket { margin-top: 10px; display: grid; gap: 6px; }
.trade-bar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; }
.tb { border: 0; border-radius: 12px; padding: 10px; color: #fff; cursor: pointer; display: grid; gap: 2px; font: 600 12px/1.2 "Be Vietnam Pro", system-ui, sans-serif; }
.tb b { font-size: 17px; font-variant-numeric: tabular-nums; }
.tb.sell { background: var(--down); }
.tb.buy { background: #2b6bf3; }
.tb:disabled { opacity: .6; }
.lots { display: flex; align-items: center; background: #0c111b; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lots button { background: none; border: 0; color: var(--text); width: 34px; height: 100%; font-size: 18px; cursor: pointer; }
.lots input { width: 62px; background: none; border: 0; color: var(--text); text-align: center; font: 700 16px/1 ui-monospace, Menlo, monospace; }
.lots input:focus { outline: none; }
.pending-toggle { margin: 2px 0; font-size: 13px; }
.pending { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.pending-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pend { color: #fff; border: 0; }
.pend.sell, .sellbg { background: var(--down); color: #fff; }
.pend.buy, .buybg { background: #2b6bf3; color: #fff; }

/* forms */
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fields:has(> label:only-child) { grid-template-columns: 1fr; }
.fields label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.fields input, .fields select { width: 100%; background: #0c111b; border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--text);
  font: 600 15px/1.1 "Be Vietnam Pro", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.fields input:focus, .fields select:focus { outline: none; border-color: var(--gold2); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 10px 2px; }
.wide { width: 100%; margin-top: 8px; }
.danger { color: var(--down); }
.btn.danger { border-color: rgba(240, 69, 90, .5); }
.row-btns { display: flex; gap: 8px; margin: 10px 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.chips button { background: #0c111b; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font: 600 12.5px/1 "Be Vietnam Pro", system-ui, sans-serif; cursor: pointer; }
.chips button.on, .chips button:hover { color: #1a1205; background: var(--gold); border-color: var(--gold); }
.toggles { display: grid; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); font-size: 14px; }
.toggle:first-child { border-top: 0; }
.switch { position: relative; flex: none; width: 46px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #2a3449; border-radius: 999px; transition: .15s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .15s; }
.switch input:checked + span { background: var(--up); }
.switch input:checked + span::after { transform: translateX(18px); }

/* lists */
.list { display: grid; }
.sig { display: grid; grid-template-columns: 4px 1fr auto; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--line); align-items: center; }
.sig:has(> .x) { grid-template-columns: 4px 1fr auto 30px; }
.sig:first-child { border-top: 0; }
.sig .bar { border-radius: 2px; align-self: stretch; }
.clickable { cursor: pointer; }
.clickable:hover { background: rgba(255, 255, 255, .02); }
.sig .x { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #0c111b; color: var(--muted); cursor: pointer; }
.sig .x:hover { background: var(--down); color: #fff; border-color: var(--down); }
.sig .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sig .sym { font-weight: 800; }
.side { font-size: 11px; font-weight: 800; color: #fff; padding: 2px 7px; border-radius: 999px; }
.side.buy { background: #2b6bf3; }
.side.sell { background: var(--down); }
.sig .lv { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.sig .copy { color: var(--purple); font-size: 12px; font-weight: 600; margin-top: 2px; }
.sig .copy.bad { color: #f5a524; }
.sig .right { text-align: right; font-variant-numeric: tabular-nums; }
.sig .move { font-weight: 700; }
.pos { color: #4c8dff; }
.neg { color: var(--down); }
.empty { color: var(--muted); padding: 10px 4px; }
.log .log-row { padding: 6px 4px; border-top: 1px solid var(--line); font-size: 13px; }
.log .log-row:first-child { border-top: 0; }
.kvs { display: grid; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--line); font-size: 14px; }
.kv:first-child { border-top: 0; }
.kv span { color: var(--muted); }
.kv b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.big { font-size: 26px; font-weight: 800; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.stat-line { background: #0c111b; border-radius: 10px; padding: 10px; font-size: 14px; margin: 8px 0; }

/* news */
.day { font-weight: 700; color: var(--gold); padding: 12px 4px 4px; text-transform: capitalize; }
.news-row { display: grid; grid-template-columns: 46px 10px 1fr; gap: 10px; align-items: start; padding: 9px 4px; border-top: 1px solid var(--line); }
.news-row.past { opacity: .75; }
.news-row .time { font-variant-numeric: tabular-nums; font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; display: inline-block; }
.dot.high { background: var(--down); }
.dot.med { background: #f5a524; }
.next { display: flex; gap: 10px; }
.headline { display: grid; gap: 2px; padding: 10px 4px; border-top: 1px solid var(--line); }
.headline:first-child { border-top: 0; }
.headline:hover b { color: var(--gold); }

/* sheet & toast */
dialog#sheet { width: min(520px, calc(100% - 24px)); max-height: 88vh; overflow: auto; background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 20px; padding: 20px 18px; }
dialog#sheet::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(2px); }
dialog#sheet h3 { margin: 0 30px 6px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sheet-x { position: absolute; right: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #222c3d; color: var(--text); cursor: pointer; }
#sheetBody { position: relative; }
.code { font: 800 26px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .08em; text-align: center; background: #0c111b; border: 1px dashed var(--gold2); border-radius: 14px; padding: 16px; margin: 12px 0; color: var(--gold); }
.sym-list { max-height: 50vh; overflow: auto; margin-top: 8px; }
.sym-row { display: grid; text-align: left; gap: 2px; background: none; border: 0; border-top: 1px solid var(--line); color: var(--text); padding: 10px 4px; cursor: pointer; font: inherit; }
.sym-row:hover b { color: var(--gold); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: #1d2636; border: 1px solid var(--line); color: var(--text);
  padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); max-width: calc(100% - 32px); }
.toast.bad { border-color: var(--down); color: #ffb3bd; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps ol { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .phone { width: 100%; max-width: 320px; }
  .chart-wrap { height: 58vh; }
  .fields, .fields.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields.three > label:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .who { font-size: 17px; }
  .equity { font-size: 12px; }
  .tabs { top: 52px; }
}

.remember { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--muted); font-size: 13px; }
.linkish { background: none; border: 0; color: var(--gold); font: inherit; font-size: 14px; cursor: pointer; margin: 0 0 12px; display: block; width: 100%; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: #0c111b; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.stat > span { display: block; color: var(--muted); font-size: 12px; }
.stat b { font-size: 18px; font-variant-numeric: tabular-nums; }
.member-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 4px; border-top: 1px solid var(--line); }
.member-row:first-child { border-top: 0; }
.badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; }
.badge.off { background: #f5a524; }
.badge.exp { background: var(--down); }
.badge.on { background: var(--up); }
.badge.mem { background: var(--purple); }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* drawings, chart menu, replay, indicator settings */
.draw-bar { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 6px; white-space: nowrap;
  max-width: calc(100% - 16px); overflow-x: auto; scrollbar-width: none; background: rgba(12, 17, 27, .94); border: 1px solid var(--line); border-radius: 12px; padding: 5px 8px; font-size: 12.5px; }
.draw-bar::-webkit-scrollbar { display: none; }
.draw-bar button, .draw-bar select { background: #222c3d; color: var(--text); border: 0; border-radius: 8px; height: 26px; min-width: 26px; padding: 0 8px; cursor: pointer; font: 600 12px/1 "Be Vietnam Pro", system-ui, sans-serif; }
.draw-bar select { min-width: 66px; padding: 0 4px; }
.draw-bar .sw { width: 20px; min-width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 2px solid transparent; }
.draw-bar .sw.on { border-color: #fff; }
.draw-bar .danger { background: rgba(240, 69, 90, .2); }
.draw-bar .muted { background: transparent; }
.draw-bar .rr { display: flex; align-items: center; gap: 4px; color: var(--muted); }
.draw-bar .rr input { width: 44px; height: 26px; background: #0c111b; border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-align: center; }
.ctx { position: fixed; z-index: 60; min-width: 230px; background: #1a2232; border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.ctx button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 9px 10px; border-radius: 8px; font: 500 14px/1.2 "Be Vietnam Pro", system-ui, sans-serif; cursor: pointer; }
.ctx button:hover { background: #26304a; }
.replay-bar { margin-top: 8px; display: grid; gap: 6px; background: #0c111b; border: 1px solid var(--gold2); border-radius: 12px; padding: 8px; }
.r-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.rb { background: #222c3d; color: var(--text); border: 0; border-radius: 8px; height: 32px; min-width: 32px; padding: 0 10px; cursor: pointer; font: 700 13px/1 "Be Vietnam Pro", system-ui, sans-serif; }
.rb.play { background: var(--gold); color: #1a1205; min-width: 44px; }
.replay-bar select, .replay-bar input { height: 32px; background: #151c2a; border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 0 8px; font: 600 13px/1 "Be Vietnam Pro", system-ui, sans-serif; }
.replay-bar input { width: 74px; }
.r-time { font-variant-numeric: tabular-nums; margin-left: auto; }
.r-pnl { margin-left: auto; font-variant-numeric: tabular-nums; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tool-grid button { display: flex; align-items: center; gap: 8px; text-align: left; background: #0c111b; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 9px 10px; cursor: pointer; font: 500 13px/1.2 "Be Vietnam Pro", system-ui, sans-serif; }
.tool-grid button:hover { border-color: var(--gold2); }
.tool-grid .ti { width: 20px; text-align: center; color: var(--gold); font-size: 15px; }
details.set { border-top: 1px solid var(--line); padding: 4px 0; }
details.set summary { cursor: pointer; font-weight: 700; padding: 10px 2px; }
details.set .toggle:first-child { border-top: 1px solid var(--line); }
.frow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--line); font-size: 14px; }
.frow input, .frow select, .srow input:not([type=checkbox]) { background: #0c111b; border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 7px 8px; font: 600 13px/1 "Be Vietnam Pro", system-ui, sans-serif; }
.frow input { width: 90px; text-align: right; }
.frow input[type=color], .srow input[type=color] { width: 42px; height: 32px; padding: 2px; }
.srow { display: flex; align-items: center; gap: 6px; padding: 7px 2px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.srow .w-time, .frow .w-time { width: 62px; text-align: center; }
.srow .w-name { width: 96px; }
.srow .w-lbl { width: 66px; }
@media (max-width: 520px) { .tool-grid { grid-template-columns: 1fr; } .r-time, .r-pnl { margin-left: 0; } }
