/* กราฟระบบ — ใช้ทั้งในหน้าหอทำนาย (body.ftc-on) และหน้าเดี่ยว (body.ftc-page) · คลาสทุกตัวขึ้นต้น ftc- กันชนกับ CSS ของหอทำนาย */
:root{--ftc-panel:#0b232d;--ftc-raised:#102e39;--ftc-line:rgba(141,195,200,.2);--ftc-text:#edf5f2;--ftc-muted:#a9bdc1;--ftc-accent:#6bdad1;--ftc-buy:#22c7ee;--ftc-sell:#ff4f9a;--ftc-up:#54dca7;--ftc-down:#ff8288;--ftc-warn:#f3d27e}
.ftc-bar [hidden],.ftc-sheet [hidden],.ftc-stage [hidden],.ftc-toast[hidden],.ftc-sheet[hidden],.ftc-scrim[hidden]{display:none !important}
.ftc-ic{font-family:'Material Symbols Outlined';font-weight:normal;font-style:normal;font-size:18px;line-height:1;display:inline-block;-webkit-font-smoothing:antialiased;font-feature-settings:'liga'}

/* ── หน้าเดี่ยว ── */
body.ftc-page{margin:0;height:100vh;background:#06151e;color:var(--ftc-text);font:14px/1.5 Anuphan,sans-serif;display:flex;flex-direction:column;overflow:hidden}
body.ftc-page button,body.ftc-page select{font:inherit;color:inherit}
.ftc-page .top{height:52px;flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:0 12px;border-bottom:1px solid var(--ftc-line);background:#051820}
.ftc-page .back{display:flex;align-items:center;gap:4px;color:var(--ftc-muted);text-decoration:none;font-size:13px;min-height:44px}
.ftc-page #sym{background:var(--ftc-raised);border:1px solid var(--ftc-line);border-radius:8px;min-height:38px;padding:4px 8px;font-weight:700;font-size:15px;max-width:130px}
.ftc-page .quote{margin-left:auto;text-align:right;display:flex;flex-direction:column;line-height:1.15}
.ftc-page .quote strong{font:700 18px 'Space Mono',monospace}
.ftc-page .quote small{font-size:10px;color:var(--ftc-muted)}.ftc-page .quote small.live{color:var(--ftc-up)}.ftc-page .quote small.stale{color:var(--ftc-warn)}
.ftc-page .tfs{display:flex;gap:6px;overflow-x:auto;padding:7px 12px 0;scrollbar-width:none;background:#051820}
.ftc-page .chip{flex:0 0 auto;border:1px solid var(--ftc-line);background:transparent;border-radius:999px;padding:5px 11px;min-height:34px;font:12px 'Space Mono',monospace;color:var(--ftc-muted)}
.ftc-page .chip[aria-selected=true]{background:rgba(107,218,209,.14);border-color:var(--ftc-accent);color:var(--ftc-accent)}
.ftc-page .ftc-bar{background:#051820;border-bottom:1px solid var(--ftc-line)}
.ftc-page .ftc-stage{position:relative;flex:1 1 auto;min-height:0}
@media(min-width:900px){body.ftc-page.ftc-sheet-open{padding-right:420px}}

/* ── ในหน้าหอทำนาย: กราฟนี้แทนกราฟ SVG เดิม (เส้นสด/แท่งเทียน) — ซ่อน ไม่ลบ ── */
body.ftc-on #chart,body.ftc-on #chartEmpty,body.ftc-on #liveBadge,
body.ftc-on #liveCountdown,body.ftc-on #liveResult,body.ftc-on .view-toggle{display:none !important}
body.ftc-on .market-panel .chart-wrap{position:relative;min-height:440px}
body.ftc-on .market-panel .trade-hud{z-index:5}
body.ftc-on .ftc-stage{position:absolute;inset:0;z-index:1}
body.ftc-on .ftc-bar{border-bottom:1px solid var(--ftc-line)}
@media(max-width:900px){body.ftc-on .market-panel .chart-wrap{min-height:380px}}
@media(max-width:580px){body.ftc-on .market-panel .chart-wrap{min-height:340px}}
body.embedded.ftc-on .market-panel .chart-wrap{min-height:330px}
/* ผังเต็มจอของหอทำนาย (oracle-pro · body.pro): แถบระบบอยู่บนสุดของกราฟ · กราฟเริ่มใต้แถบ · กล่องไม้ที่ถือย้ายลงล่างซ้าย */
body.ftc-pro .pro-chart>.ftc-bar{position:absolute;top:0;left:0;right:0;z-index:6;height:46px;background:#10141f;border-bottom:1px solid #2a3047}
body.ftc-pro .pro-chart .chart-wrap{top:46px}
body.ftc-pro .trade-hud{top:auto !important;bottom:84px;left:12px}
body.ftc-pro .ftc-chip,body.ftc-pro .ftc-act{border-color:#2a3047}

/* ── แถบระบบ ── */
.ftc-bar{display:flex;align-items:center;gap:8px;padding:7px 12px;color:var(--ftc-text);font:14px/1.5 Anuphan,sans-serif}
.ftc-systems{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;flex:1;min-width:0}
.ftc-systems::-webkit-scrollbar{display:none}
.ftc-chip{flex:0 0 auto;border:1px solid var(--ftc-line);background:transparent;border-radius:999px;padding:4px 12px;min-height:34px;font:12px Anuphan,sans-serif;color:var(--ftc-muted);white-space:nowrap;cursor:pointer}
.ftc-chip[aria-selected=true]{background:rgba(107,218,209,.14);border-color:var(--ftc-accent);color:var(--ftc-accent);font-weight:600}
.ftc-kind{font-size:10px;opacity:.75;margin-left:5px}
.ftc-actions{display:flex;gap:6px;flex:0 0 auto}
.ftc-act{display:flex;align-items:center;gap:5px;min-height:34px;border:1px solid var(--ftc-line);background:var(--ftc-raised);border-radius:9px;padding:4px 10px;font:600 12px Anuphan,sans-serif;color:var(--ftc-text);cursor:pointer;white-space:nowrap}
.ftc-act .ftc-ic{color:var(--ftc-accent)}
.ftc-count{background:var(--ftc-accent);color:#03232a;border-radius:999px;font-size:11px;min-width:20px;padding:0 6px;line-height:20px;text-align:center}
@media(max-width:580px){.ftc-act span:not(.ftc-ic){display:none}.ftc-act{padding:4px 8px}}

/* ── กราฟ ── */
.ftc-chart{position:absolute;inset:0}
/* CSS ของหอทำนายตั้ง table/td ทั้งหน้า (table min-width 760px · td padding · td:nth-child(2) ไม่เกิน 340px) → กราฟเพี้ยน · ล้างเฉพาะในกราฟ */
.ftc-chart table{min-width:0 !important;width:auto}
.ftc-chart table,.ftc-chart tr,.ftc-chart td{padding:0 !important;margin:0 !important;border:0 !important;background:none !important;line-height:normal !important;font-size:inherit;max-width:none !important;overflow-wrap:normal !important}
.ftc-chart canvas{max-width:none !important}
.ftc-legend{position:absolute;left:10px;top:8px;z-index:3;pointer-events:none;font:11px/1.5 Anuphan,sans-serif;color:var(--ftc-muted);display:flex;flex-direction:column;gap:2px;max-width:calc(100% - 90px)}
.ftc-legend b{color:var(--ftc-text);font-size:12px}
.ftc-stats,.ftc-lines{display:flex;gap:10px;flex-wrap:wrap}
.ftc-stats b{font:11px 'Space Mono',monospace}
.ftc-lines i{display:inline-block;width:10px;height:2px;vertical-align:middle;margin-right:4px}
.ftc-empty{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;color:var(--ftc-muted);background:rgba(6,21,30,.85);font:14px Anuphan,sans-serif}
.ftc-empty a{color:var(--ftc-accent)}

/* ── แผ่นล่าง (มือถือ) / แผงขวา (คอม) ── */
.ftc-scrim{position:fixed;inset:0;z-index:2000;background:rgba(1,14,22,.55)}
.ftc-sheet{position:fixed;z-index:2001;left:0;right:0;bottom:0;max-height:88vh;display:flex;flex-direction:column;box-sizing:border-box;background:var(--ftc-panel);color:var(--ftc-text);border:1px solid var(--ftc-line);border-bottom:0;border-radius:16px 16px 0 0;box-shadow:0 -18px 60px #0009;font:14px/1.5 Anuphan,sans-serif;animation:ftcUp .2s ease-out}
.ftc-sheet *{box-sizing:border-box}
@keyframes ftcUp{from{transform:translateY(30px);opacity:.4}to{transform:none;opacity:1}}
@media(min-width:900px){
  .ftc-sheet{left:auto;right:0;top:0;bottom:0;width:420px;max-height:none;border-radius:0;border:0;border-left:1px solid var(--ftc-line);animation:none;box-shadow:-18px 0 50px #0006}
  .ftc-scrim{display:none !important}
}
.ftc-sheet button,.ftc-sheet input,.ftc-sheet select{font:inherit;color:inherit}
.ftc-sheet button{cursor:pointer}.ftc-sheet button:disabled{opacity:.45;cursor:not-allowed}
.ftc-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px 8px}
.ftc-sheet-head h2{margin:0;font-size:16px}
.ftc-x{border:0;background:none;color:var(--ftc-muted);min-width:44px;min-height:44px;margin:-10px -10px -10px 0}
/* flex:1 + min-height:0 = ให้เนื้อหาเลื่อนในแผงได้ (เดิมไม่มี → ค่าตั้งยาวล้นจอ เลื่อนบนคอมไม่ได้ · เจ้าของ 26/10) */
.ftc-sheet-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 16px calc(16px + env(safe-area-inset-bottom))}
.ftc-foot{position:sticky;bottom:0;margin:12px -16px 0;padding:4px 16px calc(14px + env(safe-area-inset-bottom));background:var(--ftc-panel);border-top:1px solid var(--ftc-line);z-index:2}
.ftc-field>span small{color:var(--ftc-muted);opacity:.7;font-size:11px;margin-left:4px}
.ftc-group{border:1px solid var(--ftc-line);border-radius:12px;margin:10px 0;padding:0 12px;background:rgba(16,46,57,.35)}
.ftc-group[open]{padding-bottom:6px}
.ftc-group summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;cursor:pointer;font-weight:700;font-size:13.5px;list-style:none}
.ftc-group summary::-webkit-details-marker{display:none}
.ftc-group summary::after{content:'expand_more';font-family:'Material Symbols Outlined';font-weight:normal;font-size:20px;color:var(--ftc-muted);transition:transform .15s}
.ftc-group[open] summary::after{transform:rotate(180deg)}
.ftc-group summary small{margin-left:auto;font-weight:400;font-size:11px;color:var(--ftc-muted)}
/* ปุ่มเลือกระบบ (แทนปุ่มเรียงแนวนอน) */
.ftc-pick{display:flex;align-items:center;gap:6px;min-height:34px;max-width:100%;border:1px solid var(--ftc-accent);background:rgba(107,218,209,.1);border-radius:9px;padding:4px 10px;font:12px Anuphan,sans-serif;color:var(--ftc-text);cursor:pointer;white-space:nowrap}
.ftc-pick .ftc-ic{color:var(--ftc-accent)}
.ftc-pick-label{color:var(--ftc-muted)}
.ftc-pick-name{font-weight:700;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ftc-pick-caret{margin-left:2px}
@media(max-width:580px){.ftc-pick-label{display:none}}
.ftc-search{width:100%;min-height:42px;margin:4px 0 8px;background:var(--ftc-raised);border:1px solid var(--ftc-line);border-radius:10px;padding:6px 12px}
.ftc-search:focus{outline:2px solid var(--ftc-accent);outline-offset:-1px}
.ftc-sys-list{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.ftc-sys{display:flex;align-items:stretch;border:1px solid var(--ftc-line);border-radius:12px;background:rgba(16,46,57,.35);overflow:hidden}
.ftc-sys.on{border-color:var(--ftc-accent);background:rgba(107,218,209,.08)}
.ftc-sys-main{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;border:0;background:none;padding:10px 12px;min-height:56px}
.ftc-sys-main:hover{background:rgba(107,218,209,.06)}
.ftc-sys-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.ftc-sys-top b{font-size:14px}
.ftc-sys-about{font-size:12px;color:var(--ftc-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ftc-sys-cfg{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:64px;border:0;border-left:1px solid var(--ftc-line);background:none;font-size:11px;color:var(--ftc-muted)}
.ftc-sys-cfg .ftc-ic{color:var(--ftc-accent)}
.ftc-sys-cfg:hover{background:rgba(107,218,209,.08)}
.ftc-tag{font-size:10.5px;border-radius:999px;padding:1px 8px;border:1px solid var(--ftc-line);color:var(--ftc-muted)}
.ftc-tag.signal{border-color:rgba(34,199,238,.5);color:var(--ftc-buy)}
.ftc-tag.zone{border-color:rgba(243,210,126,.5);color:var(--ftc-warn)}
.ftc-tag.now{border-color:var(--ftc-accent);color:var(--ftc-accent)}

.ftc-field{display:flex;flex-direction:column;gap:4px;margin:10px 0}
.ftc-field>span{font-size:12px;color:var(--ftc-muted)}
.ftc-field input,.ftc-field select{background:var(--ftc-raised);border:1px solid var(--ftc-line);border-radius:8px;min-height:42px;padding:6px 10px;width:100%}
.ftc-field input:focus,.ftc-field select:focus{outline:2px solid var(--ftc-accent);outline-offset:-1px}
.ftc-field input:disabled{opacity:.4}
.ftc-grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
.ftc-grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:0 8px}
.ftc-check{display:flex;align-items:center;gap:10px;min-height:42px;font-size:13px}
.ftc-check input{width:20px;height:20px;accent-color:var(--ftc-accent)}
.ftc-note{font-size:12px;color:var(--ftc-muted);margin:8px 0}
.ftc-warn{font-size:12px;color:var(--ftc-warn);margin:8px 0}
.ftc-err{font-size:12px;color:var(--ftc-down);margin:8px 0}
.ftc-seg{display:flex;gap:4px;flex-wrap:wrap}
.ftc-seg button{flex:1;min-height:38px;border:1px solid var(--ftc-line);background:transparent;border-radius:8px;font-size:12px;color:var(--ftc-muted);padding:4px 8px}
.ftc-seg button[aria-pressed=true]{border-color:var(--ftc-accent);color:var(--ftc-accent);background:rgba(107,218,209,.12)}
.ftc-primary{width:100%;min-height:48px;border:0;border-radius:10px;font-weight:700;font-size:15px;background:var(--ftc-accent);color:#03232a !important;margin-top:12px}
.ftc-primary.buy{background:var(--ftc-buy);color:#02202a !important}.ftc-primary.sell{background:var(--ftc-sell);color:#2a0215 !important}
.ftc-ghost{width:100%;min-height:44px;border:1px solid var(--ftc-line);border-radius:10px;background:transparent;margin-top:8px;color:var(--ftc-muted) !important}

.ftc-sig{border:1px solid var(--ftc-line);border-radius:12px;padding:14px;margin-top:4px}
.ftc-sig.BUY{border-color:var(--ftc-buy)}.ftc-sig.SELL{border-color:var(--ftc-sell)}
.ftc-side{font:700 26px 'Space Mono',monospace}
.ftc-sig.BUY .ftc-side{color:var(--ftc-buy)}.ftc-sig.SELL .ftc-side{color:var(--ftc-sell)}
.ftc-kv{display:grid;grid-template-columns:auto 1fr;gap:3px 14px;font-size:13px;margin:8px 0 0}
.ftc-kv dt{color:var(--ftc-muted)}.ftc-kv dd{margin:0;text-align:right;font-family:'Space Mono',monospace}

.ftc-zone{border:1px solid var(--ftc-line);border-radius:12px;padding:10px 12px;margin:8px 0}
.ftc-zone.on.BUY{border-color:var(--ftc-buy)}.ftc-zone.on.SELL{border-color:var(--ftc-sell)}
.ftc-zhead{display:flex;align-items:center;gap:10px;min-height:40px;font-size:13px}
.ftc-zhead input{width:20px;height:20px;accent-color:var(--ftc-accent)}
.ftc-tag{font:700 11px 'Space Mono',monospace;padding:1px 7px;border-radius:5px}
.ftc-zone.BUY .ftc-tag{background:rgba(34,199,238,.16);color:var(--ftc-buy)}.ftc-zone.SELL .ftc-tag{background:rgba(255,79,154,.16);color:var(--ftc-sell)}
.ftc-range{margin-left:auto;font:12px 'Space Mono',monospace;color:var(--ftc-muted);text-align:right;white-space:nowrap}
.ftc-dist{display:block;font:10px Anuphan,sans-serif;color:var(--ftc-muted)}
.ftc-opts{display:none}.ftc-zone.on .ftc-opts{display:block}
.ftc-fresh{font-size:10px;color:var(--ftc-warn);border:1px solid var(--ftc-warn);border-radius:5px;padding:0 5px}

table.ftc-orders{width:100%;min-width:0;border-collapse:collapse;font-size:12px;margin-top:10px;table-layout:fixed}
.ftc-orders th:first-child{width:25%}
.ftc-orders th:nth-child(2){width:15%}
.ftc-orders td,.ftc-orders th{white-space:normal;overflow-wrap:anywhere}
.ftc-orders th{text-align:left;color:var(--ftc-muted);font-weight:500;font-size:11px;padding:4px 3px;background:none;border-top:0;border-bottom:1px solid var(--ftc-line)}
.ftc-orders td{border-top:0}
.ftc-orders td{padding:5px 3px;border-bottom:1px solid rgba(141,195,200,.08);font:11px 'Space Mono',monospace;vertical-align:top}
.ftc-orders td.t{font-family:Anuphan,sans-serif}
.ftc-orders td:not(.t){white-space:nowrap;overflow-wrap:normal;font-size:10.5px;letter-spacing:-.2px}
.ftc-orders tr.bad td{color:var(--ftc-down)}
.ftc-orders .BUY{color:var(--ftc-buy)}.ftc-orders .SELL{color:var(--ftc-sell)}
.ftc-sum{display:flex;justify-content:space-between;font-size:13px;margin-top:8px}

.ftc-trade{border:1px solid var(--ftc-line);border-radius:12px;padding:10px 12px;margin:8px 0;display:grid;grid-template-columns:1fr auto;gap:2px 10px;font-size:12px}
.ftc-trade .s{font-weight:700}.ftc-trade .s.BUY{color:var(--ftc-buy)}.ftc-trade .s.SELL{color:var(--ftc-sell)}
.ftc-trade .m{color:var(--ftc-muted)}.ftc-trade .wide{grid-column:1/-1}
.ftc-trade .pnl{font-family:'Space Mono',monospace;text-align:right}
.ftc-trade .pnl.up{color:var(--ftc-up)}.ftc-trade .pnl.down{color:var(--ftc-down)}
.ftc-trade button{grid-column:2;grid-row:2 / span 2;align-self:center;border:1px solid var(--ftc-line);background:transparent;border-radius:8px;min-height:38px;padding:4px 12px;font-size:12px}
.ftc-trade button.arm{border-color:var(--ftc-down);color:var(--ftc-down)}

.ftc-toast{position:fixed;z-index:2002;left:50%;bottom:84px;transform:translateX(-50%);max-width:calc(100% - 32px);background:#0f2f3a;color:var(--ftc-text);border:1px solid var(--ftc-line);border-radius:10px;padding:10px 14px;font:13px Anuphan,sans-serif;box-shadow:0 10px 40px #0008}
.ftc-toast.bad{border-color:var(--ftc-down)}

/* ── 17/10 c: Jev แนะนำ SL/TP · เฝ้าระบบ · กราฟเต็มจอ + ช่องเล็ก ── */
.ftc-levels{margin-top:2px}
.ftc-jev{border:1px solid rgba(107,218,209,.35);background:rgba(107,218,209,.06);border-radius:12px;padding:10px 12px;margin:10px 0}
.ftc-jev-h{display:flex;justify-content:space-between;gap:8px;align-items:baseline;font-size:13px}
.ftc-jev-h b{color:var(--ftc-accent)}.ftc-jev-h span{font:11px 'Space Mono',monospace;color:var(--ftc-muted)}
.ftc-jev ul{margin:6px 0 0;padding-left:18px;font-size:12px;color:var(--ftc-text)}
.ftc-jev li{margin:2px 0}
.ftc-say{font-size:13px;margin:8px 0 2px;padding:8px 10px;border-radius:8px;background:rgba(6,21,30,.6);border-left:3px solid var(--ftc-accent)}
.ftc-seg button:disabled{opacity:.35}
.ftc-h3{font-size:13px;margin:16px 0 4px;color:var(--ftc-text)}
.ftc-watch{display:flex;align-items:center;gap:10px;border:1px solid var(--ftc-line);border-radius:10px;padding:6px 8px 6px 10px;margin:6px 0;font-size:13px}
.ftc-watch .ftc-tag{background:rgba(107,218,209,.14);color:var(--ftc-accent);white-space:nowrap}
.ftc-wname{flex:1;min-width:0}.ftc-wname small{margin-left:6px;font-size:10px;color:var(--ftc-muted)}
.ftc-mini{border:1px solid var(--ftc-line);background:transparent;border-radius:8px;min-height:36px;padding:2px 10px;font-size:12px;color:var(--ftc-muted) !important}
.ftc-on{color:var(--ftc-up)}.ftc-bad{color:var(--ftc-down)}
.ftc-act[data-act=full][aria-pressed=true]{border-color:var(--ftc-accent)}

/* เต็มจอ: กราฟ (พร้อมแถบระบบ + ปุ่ม TF) ปิดทับทั้งหน้า · แผงสัญญาณ/ไม้/หน้ายืนยัน/ตัวเด้ง ยังเปิดทับได้ */
body.ftc-full{overflow:hidden !important}
body.ftc-full.ftc-pro .pro-chart{position:fixed !important;inset:0;z-index:60;height:auto !important;min-height:0 !important;background:#06151e}
body.ftc-full:not(.ftc-pro):not(.ftc-page) .market-panel .chart-wrap{position:fixed !important;inset:0;z-index:60;min-height:0 !important;background:#06151e}
body.ftc-full.ftc-page .top{display:none}
body.ftc-full .room-pop{z-index:75 !important;top:54px !important;bottom:auto !important}   /* ตัวเด้งสัญญาณใหม่อยู่บน ไม่ทับช่องเล็กด้านล่าง */
body.ftc-full .toast{z-index:80}
body.ftc-full.pro-drawer-open .pro-drawer{display:flex;position:fixed;z-index:72;top:0;right:0;bottom:0;width:min(380px,100%);height:auto;border-radius:0;box-shadow:-18px 0 50px #0008}
@media(max-width:900px){
  body.ftc-full.pro-drawer-open .pro-drawer{top:auto;left:0;width:auto;height:min(72vh,600px);border-radius:16px 16px 0 0}
  body.ftc-full.ftc-pro .pro-chart .chart-wrap{bottom:calc(62px + env(safe-area-inset-bottom))}   /* แกนเวลาไม่ถูกช่องเล็กบัง */
  body.ftc-full .pro-tf{bottom:calc(132px + env(safe-area-inset-bottom))}   /* เหนือช่องเล็ก + แถบสัญญาณล่าสุด */
  body.ftc-full .room-pop{left:8px !important;right:8px !important;border-radius:14px !important}
}
.ftc-dock{position:fixed;z-index:70;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:flex-end;gap:6px;font:12px Anuphan,sans-serif;color:var(--ftc-text);pointer-events:none}
.ftc-dock[hidden]{display:none !important}
.ftc-dock>*{pointer-events:auto}
.ftc-dock-row{display:flex;gap:4px;padding:4px;border-radius:12px;background:rgba(11,35,45,.92);border:1px solid var(--ftc-line);box-shadow:0 8px 30px #0009;backdrop-filter:blur(6px)}
.ftc-dock-row button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:48px;min-height:46px;padding:2px 8px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--ftc-text);font:600 11px Anuphan,sans-serif;cursor:pointer;position:relative}
.ftc-dock-row button .ftc-ic{font-size:19px;color:var(--ftc-accent)}
.ftc-dock-row button small{font:10px 'Space Mono',monospace;opacity:.85}
.ftc-dock-row .buy{background:var(--ftc-buy);color:#02202a}.ftc-dock-row .sell{background:var(--ftc-sell);color:#2a0215}
.ftc-dock-row .ftc-count{position:absolute;top:2px;right:2px;font-size:10px;min-width:16px;line-height:16px;padding:0 4px}
.ftc-dock-sig{display:flex;align-items:center;gap:8px;max-width:min(340px,calc(100vw - 20px));padding:6px 6px 6px 12px;border-radius:12px;background:rgba(17,48,58,.95);border:1px solid var(--ftc-accent);box-shadow:0 8px 30px #0009}
.ftc-dock-sig[hidden]{display:none}
.ftc-dock-text{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ftc-dock-text .BUY{color:var(--ftc-buy)}.ftc-dock-text .SELL{color:var(--ftc-sell)}
.ftc-dock-sig button{border:1px solid var(--ftc-line);background:var(--ftc-raised);border-radius:8px;min-height:36px;padding:2px 12px;color:var(--ftc-text);font:600 12px Anuphan,sans-serif;cursor:pointer}
@media(max-width:580px){.ftc-dock{left:8px;right:8px;align-items:stretch}.ftc-dock-row{justify-content:space-between}.ftc-dock-row button{flex:1;min-width:0}.ftc-dock-sig{max-width:none}}
/* ป้ายแจ้งเตือนบนหน้าหอทำนาย (26/10 · iPhone ต้องเปิดจากไอคอนหน้าจอโฮม / ยังไม่เปิดแจ้งเตือน) */
.ftc-hint{margin:10px 0 14px;padding:12px 14px;border-radius:12px;background:var(--ftc-raised);border:1px solid rgba(107,218,209,.45);color:var(--ftc-text);font:14px/1.5 Anuphan,sans-serif}
.ftc-hint-row{display:flex;gap:10px;align-items:flex-start}.ftc-hint-row .ftc-ic{color:var(--ftc-accent);font-size:22px;flex:none;margin-top:1px}
.ftc-hint-row b{display:block;font-weight:600}.ftc-hint-row small{display:block;color:var(--ftc-muted);font-size:12.5px;margin-top:2px}
.ftc-hint-steps{margin:10px 0 0;padding-left:22px;color:var(--ftc-text);font-size:13.5px;line-height:1.7}.ftc-hint-steps b{color:var(--ftc-accent);font-weight:600;word-break:break-all}
.ftc-hint-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.ftc-hint-acts button{min-height:40px;width:auto;flex:0 1 auto;padding:0 14px}
.ftc-hint.float{position:fixed;left:10px;right:10px;bottom:76px;z-index:9000;margin:0;max-width:560px;max-height:calc(100dvh - 140px);overflow:auto;box-shadow:0 18px 40px rgba(0,0,0,.55)}
@media (min-width:900px){.ftc-hint.float{left:auto;right:16px;bottom:16px;width:420px}}
