/* Price Path — cùng họ candle-radar (nền kem, chữ Archivo/Source Serif) nhưng nhận diện TÍM + VÀNG
   theo logo monogram P. Thẻ trắng viền mảnh; nón xám-xanh 3 lớp; kịch bản A/B vàng. */
:root {
  --bg: #F7F4EC;
  --ink: #1F3A2E;
  --text: #3E4F47;
  --mute: #4B5A52;
  --line: #D9D3C3;
  --brand: #3B2A6B; --brand-gold: #E3B54D; --brand-soft: #EAE4F4; --brand-line: #C9BDE3;
  --sage: #E9EFE3; --sage-line: #C4D3BB;
  --blue: #E4EAF3; --blue-line: #C3CFE0;
  --blush: #F4E6E0; --blush-line: #E0C8BE;
  --peach: #F5EBDD; --peach-line: #E3D2B8;
  --strip: #E1E8DC; --strip-line: #B9C9B2;
  --sell: #9A3B2E;
  --up: #2E7D4F; --down: #B84A3A; --gold: #C99A2E; --cone: #1F3A2E;
  --sans: 'Archivo', Arial, Helvetica, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; overflow-x: hidden; }
a { color: var(--ink); }
button { font-family: inherit; }

main { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.panel { display: none; max-width: 520px; margin: 0 auto; }
.panel.on { display: block; }

/* header */
.head { padding: 20px 18px 10px; display: flex; flex-direction: column; gap: 4px; }
.head .row { display: flex; justify-content: space-between; align-items: center; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.title { font-size: clamp(24px, 7.5vw, 34px); font-weight: 900; line-height: 1; letter-spacing: -.02em; min-width: 0; }
.title.small { font-size: clamp(22px, 6.5vw, 30px); }
.sub { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--text); margin-top: 2px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }

/* dải trạng thái */
.strip { margin: 8px 18px 0; padding: 11px 14px; background: var(--strip); border: 1px solid var(--strip-line); border-radius: 12px; font-size: 12.5px; line-height: 1.45; color: var(--ink); }
.strip.narrow, .strip.wide { background: var(--blush); border-color: var(--blush-line); }
.strip.pending { background: var(--peach); border-color: var(--peach-line); }
.strip b { font-weight: 700; }
.strip a { text-decoration: underline; }

/* sắp xếp */
.sort { margin: 10px 18px 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sort .k { font-size: 11px; color: var(--mute); margin-right: 2px; }
.sort button { font-size: 12px; font-weight: 600; padding: 0 11px; min-height: 30px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; }
.sort button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* thẻ */
.cards { padding: 12px 18px 0; display: flex; flex-direction: column; gap: 12px; }
.card { border-radius: 14px; padding: 13px 14px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); background: #fff; }
.card.alert { border-color: var(--brand-line); box-shadow: 0 0 0 2px var(--brand-soft); }
.card.off { background: #EFECE4; opacity: .85; }
.card.info { background: var(--blue); border-color: var(--blue-line); }
.card.warn { background: var(--peach); border-color: var(--peach-line); }
.card .top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card .top .l { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.card .top .r { display: flex; align-items: baseline; gap: 6px; flex-shrink: 0; }
.card h3 { margin: 0; font-size: 19px; font-weight: 900; letter-spacing: -.01em; line-height: 1.1; }
.card h3 a, .card h3 button { color: inherit; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.card .name { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .px { font-size: 17px; font-weight: 700; }
.card .chg { font-size: 12px; font-weight: 700; }
.chg.up { color: var(--up); } .chg.down { color: var(--down); } .chg.flat { color: var(--mute); }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); white-space: nowrap; }
.chip.g { background: var(--sage); border-color: var(--sage-line); }
.chip.r { background: var(--blush); border-color: var(--blush-line); }
.chip.p { background: var(--peach); border-color: var(--peach-line); }
.chip.y { background: #FBF1D3; border-color: #E6CF8A; }
.chip.b { background: var(--blue); border-color: var(--blue-line); }
.chip.alert { background: var(--brand); border-color: var(--brand); color: var(--brand-gold); font-weight: 700; }
.chip.lv { background: var(--strip); border-color: var(--strip-line); color: var(--mute); }
.cone { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.cone svg { display: block; width: 100%; height: auto; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.g3 > div { display: flex; flex-direction: column; gap: 1px; }
.g3 .k { font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.g3 .v { font-size: 17px; font-weight: 700; }
.g3 .v.sm { font-size: 13px; font-weight: 600; padding-top: 3px; }
.g3 .m { font-size: 10.5px; color: var(--mute); }
.trust { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--text); flex-wrap: wrap; }
.warnline { font-size: 11px; color: var(--down); font-weight: 500; }
.disc { font-size: 10.5px; color: var(--mute); line-height: 1.35; border-top: 1px dashed var(--line); padding-top: 6px; }
.reason { font-size: 12px; color: var(--down); }
.more { font-size: 12px; color: var(--mute); }

/* tab Biểu đồ */
.ctrl { margin: 10px 18px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ctrl label { font-size: 12px; color: var(--mute); }
.ctrl select { font: inherit; font-size: 15px; font-weight: 700; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); min-height: 40px; max-width: 220px; }
.ctrl .sp { flex: 1; }
.ctrl .px { font-size: 18px; font-weight: 700; }
.chips.pad { margin: 8px 18px 0; }
.cone.big { margin: 10px 18px 0; }
.legend { margin: 6px 18px 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 10.5px; color: var(--mute); }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend i { display: inline-block; width: 14px; height: 8px; background: var(--cone); }
.legend i.o35 { opacity: .35; } .legend i.o2 { opacity: .2; } .legend i.o1 { opacity: .1; }
.legend i.med { height: 0; border-top: 1.5px dashed var(--cone); background: none; }
.legend i.sa { height: 0; border-top: 2px solid var(--brand-gold); background: none; }
.legend i.sb { height: 0; border-top: 2px dashed #8A6A1E; background: none; }
.tog { margin: 8px 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; min-height: 44px; }
.tog .t { display: flex; flex-direction: column; gap: 1px; }
.tog .t b { font-size: 13px; font-weight: 600; }
.tog .t span { font-size: 11px; color: var(--mute); }
.tg { width: 46px; height: 26px; border-radius: 999px; border: 0; position: relative; flex-shrink: 0; cursor: pointer; padding: 0; }
.tg::after { content: ''; position: absolute; top: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff; }
.tg.on { background: var(--up); } .tg.on::after { right: 3px; }
.tg.off { background: var(--line); } .tg.off::after { left: 3px; }
.tbl { margin: 12px 18px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; }
.tbl h4 { margin: 0 0 6px; padding: 0 6px; font-size: 12px; font-weight: 600; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { font-size: 10.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; padding: 4px 6px; font-weight: 500; text-align: right; }
.tbl th:first-child { text-align: left; }
.tbl td { padding: 8px 6px; text-align: right; border-top: 1px solid var(--line); }
.tbl td:first-child { text-align: left; font-weight: 600; }
.tbl td.c { text-align: center; }
.tbl .note { font-size: 11px; color: var(--mute); padding: 8px 6px 2px; line-height: 1.4; }
.g2 { margin: 12px 18px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.g2 > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.g2 .k { font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.g2 .v { font-size: 20px; font-weight: 700; }
.g2 .m { font-size: 11px; color: var(--text); }
.box { margin: 12px 18px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.box h4 { margin: 0; font-size: 13px; font-weight: 600; }
.box p { margin: 0; font-size: 12px; color: var(--text); line-height: 1.45; }
.box p.warn { color: var(--down); }

/* tab Vùng giá */
.cone.zone { margin: 10px 18px 0; }
.legend i.zb { background: var(--up); } .legend i.zs { background: var(--down); } .legend i.zx { background: #B8B3A6; }
.legend i.zpoc { height: 0; border-top: 2px solid var(--gold); background: none; }
.legend i.zva { background: var(--brand-gold); opacity: .18; }
.legend i.zpx { height: 0; border-top: 1.5px dashed var(--brand); background: none; }
.tbl h4 .n { font-weight: 400; color: var(--mute); }
.tbl td .z { font-size: 10.5px; color: var(--mute); font-weight: 400; display: block; }
.tbl td.share b { font-weight: 700; }
.tbl td.share.up b { color: var(--up); } .tbl td.share.down b { color: var(--down); }
.tbl.scroll, .tbl .scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl table.wide { min-width: 560px; }
.tbl table.wide.mkt { min-width: 0; }
.tbl table.wide th, .tbl table.wide td { white-space: nowrap; padding-left: 5px; padding-right: 5px; }
.tbl td.up { color: var(--up); font-weight: 600; } .tbl td.down { color: var(--down); font-weight: 600; }
.tbl tr.sum td { border-top: 2px solid var(--line); font-weight: 700; background: var(--strip); }
.tbl tr[data-zsym] { cursor: pointer; }
.tbl tr[data-zsym]:hover td { background: var(--strip); }
.tbl h4 .n { font-weight: 400; color: var(--mute); }
.tbl .fchart { padding: 2px 4px 6px; }
.tbl .fchart svg { width: 100%; height: auto; display: block; }
#z-mode { margin-top: 12px; }
.tbl .est { font-size: 10px; color: var(--mute); border: 1px dashed var(--line); border-radius: 999px; padding: 1px 6px; margin-left: 4px; }

/* lịch sử */
.verdict { margin: 12px 18px 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid; }
.verdict.ok { background: var(--sage); border-color: var(--sage-line); }
.verdict.narrow, .verdict.wide { background: var(--blush); border-color: var(--blush-line); }
.verdict.pending { background: var(--peach); border-color: var(--peach-line); }
.verdict .big { font-size: 26px; font-weight: 700; line-height: 1; white-space: nowrap; flex-shrink: 0; }
.verdict.ok .big { color: var(--up); } .verdict.narrow .big, .verdict.wide .big { color: var(--down); }
.verdict .t { display: flex; flex-direction: column; gap: 2px; }
.verdict .t b { font-size: 14px; font-weight: 600; }
.verdict .t span { font-size: 11px; color: var(--text); }
.gridwrap { display: grid; grid-template-columns: 24px minmax(0, 1fr); }
.gridwrap .lab { display: flex; flex-direction: column; padding-top: 14px; font-size: 9px; color: var(--mute); }
.gridwrap .lab span { height: 30px; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; }
.gridwrap .lab span.ok { color: var(--up); font-weight: 600; }
.leg3 { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text); line-height: 1.45; }
.leg3 div { display: flex; gap: 8px; }
.leg3 i { flex-shrink: 0; width: 14px; height: 14px; border-radius: 3px; margin-top: 2px; font-style: normal; color: #fff; font-size: 8px; text-align: center; line-height: 14px; }
.leg3 i.ok { background: var(--up); } .leg3 i.bad { background: var(--down); }
.alist { display: flex; gap: 4px; flex-wrap: wrap; }

/* cài đặt */
.sec { margin: 12px 18px 0; }
.sec .card h3 { font-size: 15px; font-weight: 700; }
.srow { display: flex; flex-direction: column; gap: 4px; }
.srow .l { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; font-size: 14px; }
.sec .h { font-size: 11px; color: var(--mute); line-height: 1.4; }
.pill { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.pill.on { background: var(--sage); border-color: var(--sage-line); color: var(--up); }
.pill.off { background: var(--blush); border-color: var(--blush-line); color: var(--down); }
.pill.n { background: var(--bg); border-color: var(--line); color: var(--ink); }
.btns { display: flex; gap: 8px; }
.btn { flex: 1; font-size: 14px; font-weight: 600; padding: 12px; border-radius: 10px; text-align: center; min-height: 44px; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn:disabled { opacity: .5; }
.state { font-size: 13px; color: var(--text); line-height: 1.4; }
.subcode { margin-top: 8px; font-size: 12px; color: var(--text); line-height: 1.45; }
.subcode textarea { width: 100%; height: 72px; margin-top: 8px; font-family: ui-monospace, Consolas, monospace; font-size: 10px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.foot { margin: 14px 18px 0; font-size: 11px; color: var(--mute); line-height: 1.5; }
.foot b { color: var(--down); }
.empty { margin: 16px 18px 0; padding: 18px; background: var(--peach); border: 1px solid var(--peach-line); border-radius: 14px; font-size: 14px; line-height: 1.5; color: var(--text); }
.empty b { display: block; color: var(--ink); font-size: 16px; font-weight: 900; margin-bottom: 4px; }
.err { margin: 16px 18px 0; padding: 14px; background: var(--blush); border: 1px solid var(--blush-line); border-radius: 12px; font-size: 13px; color: var(--sell); }

/* nav */
[hidden] { display: none !important; }
nav { border-top: 1px solid var(--line); background: var(--bg); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 8px 8px calc(12px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; width: 100%; }
nav button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; min-height: 44px; border-radius: 10px; background: transparent; border: 0; color: var(--mute); font-size: 11px; font-weight: 500; cursor: pointer; }
nav button svg { width: 22px; height: 22px; stroke: currentColor; }
nav button[aria-selected="true"] { background: var(--brand); color: #fff; font-weight: 700; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); opacity: 0; transition: .2s; background: var(--brand); color: #fff; padding: 12px 14px; border-radius: 12px; max-width: 340px; width: calc(100% - 36px); pointer-events: none; z-index: 9; }
.toast.on { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.toast b { display: block; font-size: 13px; }
.toast span { font-size: 12px; color: #E6DFF3; }

/* Sự kiện có lợi thế (E3, 23/09/2026) */
.evhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 14px 18px 0; }
.evhead h2 { margin: 0; font-size: 15px; font-weight: 900; color: var(--brand); }
.evhead span { font-size: 11px; color: var(--mute); }
.evcards { padding-top: 8px; }
.card.ev { border-color: var(--brand-gold); background: #FFFCF3; }
.chip.ev { background: #F6ECD2; border-color: var(--brand-gold); color: #5E4712; font-weight: 700; }
.box.evnone { margin-top: 8px; }
.box.evnone p.m { font-size: 11.5px; color: var(--mute); }
.box.evnone a { text-decoration: underline; }
.legend i.ev { background: #3B2A6B; }
.tbl td.l { text-align: left; }
.evsum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 4px 6px 8px; }
.evsum > div { display: flex; flex-direction: column; }
.evsum .k { font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: .03em; }
.evsum .v { font-size: 15px; font-weight: 700; }

/* Vùng giá · Dòng tiền chủ động (bản mẫu flow-view-lab, 25/09/2026) */
.fv-verdict { margin: 10px 18px 0; border-radius: 14px; padding: 14px; color: var(--ink); background: #fff; border: 1.5px solid var(--mute); border-left-width: 7px; }
.fv-verdict .k { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.fv-verdict .t { font-size: 21px; font-weight: 800; margin: 2px 0 6px; line-height: 1.2; }
.fv-verdict .d { font-size: 13px; line-height: 1.5; }
.fv-verdict .d + .d { margin-top: 4px; }
.fv-verdict .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.fv-verdict .chips span { background: #F4F1EA; color: var(--ink); border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 600; }
.fv-verdict .sep { color: var(--mute); font-weight: 400; }
.fv-card svg { display: block; width: 100%; height: auto; }
.fv-strip { display: flex; margin: 2px 4px 2px; }
.fv-strip span { display: inline-flex; align-items: center; justify-content: center; width: 4.4%; aspect-ratio: 1; margin: 0 .3%; border-radius: 4px; color: #fff; font-size: 12px; font-weight: 700; }
.fv-strip span.fe, .fv-row.fe { opacity: .5; }
.fv-ends { display: flex; justify-content: space-between; font-size: 10px; color: var(--mute); margin: 0 6px 6px; }
.fv-row { display: grid; grid-template-columns: 44px 1fr 58px; gap: 8px; align-items: center; padding: 7px 6px; border-top: 1px solid #EEEAE0; }
.fv-row .dt { font-size: 12px; color: var(--mute); }
.fv-row .dt small { display: block; font-size: 9.5px; }
.fv-row .lb { font-size: 13px; font-weight: 700; }
.fv-row .fs { font-size: 10.5px; color: var(--mute); margin-top: 2px; }
.fv-row .ch { text-align: right; font-size: 14px; font-weight: 700; }
.fv-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin-top: 4px; background: #E4E2DC; }
.fv-bar i { display: block; background: var(--up); }
.fv-bar i + i { flex: 1; background: var(--down); }
.fv-how { font-size: 12px; color: var(--text); background: #FAF8F2; border-radius: 10px; padding: 8px 10px; margin: 8px 4px 0; line-height: 1.5; }
.fv-how .up, .fv-row .up { color: var(--up); } .fv-how .down, .fv-row .down { color: var(--down); }
.fv-how .prop { color: #2E6B5E; } .fv-how .dist { color: #9A5A2E; } .fv-how .bal { color: #6B6A7A; }
.fv-leg { margin: 6px 4px 0; }
.legend i.fb { height: 0; border-top: 2px solid var(--up); background: none; }
.legend i.fs { height: 0; border-top: 2px dashed var(--down); background: none; }

/* Cá mập ẩn (tab algo) */
.al-card { padding: 0; gap: 0; overflow: hidden; }
.al-hd { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 13px 14px; background: none; border: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.al-hd:focus-visible, .al-ch:focus-visible, .al-det summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.al-n { font-size: 12.5px; font-weight: 600; display: flex; gap: 4px; align-items: baseline; flex-wrap: wrap; }
.al-more { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--brand); }
.al-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.al-cells div { background: var(--bg); border-radius: 8px; padding: 6px 7px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.al-cells span { font-size: 9.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .03em; line-height: 1.2; }
.al-cells b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); }
.al-body { border-top: 1px solid var(--line); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.al-lg { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--mute); }
.al-lg i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.al-chs { display: flex; flex-direction: column; gap: 6px; }
.al-ch { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; align-items: start; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px; font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.al-ch.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.al-sd { font-weight: 700; font-size: 12px; }
.al-m b, .al-v b { font-weight: 700; }
.al-v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.al-s { display: block; font-size: 11px; color: var(--mute); line-height: 1.4; margin-top: 2px; }
.al-tag { color: var(--brand); font-weight: 700; }
.al-rest { font-size: 12px; color: var(--mute); padding: 0 2px; line-height: 1.5; }
.al-det summary { font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink); }
.al-det[open] summary { margin-bottom: 4px; }
.al-hm { border-collapse: collapse; font-size: 10px; }
.al-hm th { font-weight: 500; color: var(--mute); padding: 0 1px 3px; writing-mode: vertical-rl; transform: rotate(180deg); height: 34px; }
.al-hm td { width: 18px; height: 16px; border: 1px solid var(--bg); padding: 0; }
.al-hm td:first-child { width: auto; font-weight: 700; color: var(--ink); padding-right: 6px; border: 0; background: none !important; white-space: nowrap; }

/* tab Order BK (job/smc.py → data/smc.json) */
.smc-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.smc-wrap svg { min-width: 100%; }
.smc-wrap text { fill: var(--mute); font: 10px var(--sans); }
.smc-wrap .lb { font-weight: 700; font-size: 10px; }
.smc-wrap .sw { font-size: 9px; }
#smcLayers button[aria-pressed="false"] { background: #fff; color: var(--mute); }
.smc-lg i { width: 14px; height: 9px; border-radius: 2px; }
.smc-lg i.sb-bull { background: rgba(46,125,79,.18); border: 1px solid var(--up); }
.smc-lg i.sb-bear { background: rgba(184,74,58,.18); border: 1px solid var(--down); }
.smc-lg i.sb-bb { background: none; border: 1px dashed var(--down); }
.smc-lg i.sb-fvg { background: rgba(59,111,209,.14); border: 1px solid #3B6FD1; }
.smc-lg i.sb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.smc-lg i.sb-dot.w { background: var(--gold); }
.tbl tr[data-smc] { cursor: pointer; }
.tbl tr[data-smc]:hover td, .tbl tr[data-smc].on td { background: var(--strip); }
.tbl td .chips { justify-content: flex-start; }

/* Cài đặt 02 · hướng dẫn Order BK */
.card.gl { gap: 6px; }
.gl details { border-top: 1px solid var(--line); padding-top: 8px; }
.gl summary { font-size: 14px; font-weight: 700; cursor: pointer; color: var(--ink); min-height: 28px; }
.gl summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.gl dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 10px; margin: 6px 0 4px; font-size: 12.5px; line-height: 1.45; color: var(--text); }
.gl dt { font-weight: 700; color: var(--ink); white-space: nowrap; }
.gl dt.u { color: var(--up); } .gl dt.d { color: var(--down); } .gl dt.y { color: #8A6A1E; } .gl dt.b { color: #3B6FD1; }
.gl dd { margin: 0; min-width: 0; }
.gl p, .gl li { font-size: 12.5px; line-height: 1.5; color: var(--text); margin: 6px 0; }
.gl ul { margin: 4px 0; padding-left: 18px; }
.gl-t { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 4px 0; }
.gl-t th { text-align: left; font-size: 10.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; padding: 4px 6px; }
.gl-t td { padding: 6px; border-top: 1px solid var(--line); vertical-align: top; }
.gl-t td.d { color: var(--down); font-weight: 600; } .gl-t td.u { color: var(--up); font-weight: 600; }
.gl .ex { background: var(--bg); border-radius: 8px; padding: 8px 10px; }
@media (max-width: 380px) { .gl dl { grid-template-columns: 1fr; } .gl dt { white-space: normal; } }
.smc-lg i.sb-cisd { height: 0; border: 0; border-top: 2px dotted var(--up); background: none; border-radius: 0; }
