  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { background: #0d1117; color: #e6edf3; font-family: 'Segoe UI', monospace; font-size: 13px; }
  #header { padding: 12px 16px; background: #161b22; border-bottom: 1px solid #30363d; display: flex; align-items: center; gap: 16px; }
  #header h1 { font-size: 15px; color: #58a6ff; }
  #stats { font-size: 12px; color: #8b949e; }
  #filter-bar { padding: 8px 16px; background: #161b22; border-bottom: 1px solid #30363d; display: flex; gap: 8px; align-items: center; }
  select, input { background: #21262d; border: 1px solid #30363d; color: #e6edf3; padding: 4px 8px; border-radius: 4px; font-size: 12px; }
  select:focus, input:focus { outline: none; border-color: #58a6ff; }
  #main { display: flex; flex-direction: column; height: calc(100vh - 90px - 70px); overflow: hidden; }
  #journal-bar { height: 70px; border-top: 1px solid #30363d; background: #161b22; padding: 6px 16px; display: flex; flex-direction: column; gap: 4px; }
  #journal-area { flex: 1; width: 100%; background: #0d1117; border: 1px solid #30363d; border-radius: 4px; color: #e6edf3; font-family: monospace; font-size: 11px; padding: 4px 6px; resize: none; outline: none; }
  #chart-wrap { flex: 0 0 55vh; border-bottom: 1px solid #30363d; position: relative; width: 100%; min-height: 150px; }
  #chart { width: 100%; height: calc(100% - 10px); position: absolute; top: 0; left: 0; right: 0; }
  #chart-resize { position: absolute; bottom: 0; left: 0; right: 0; height: 10px; cursor: ns-resize; background: #30363d; z-index: 10; display: flex; align-items: center; justify-content: center; }
  #chart-resize::after { content: '⋮'; color: #8b949e; font-size: 10px; }
  #chart-resize:hover { background: #58a6ff; }
  #list-wrap { flex: 0 0 auto; border-bottom: 1px solid #30363d; }
  #list-wrap table { width: 100%; border-collapse: collapse; table-layout: fixed; }
  #list-wrap thead tr { display: table; width: 100%; table-layout: fixed; }
  #list-wrap thead th { background: #161b22; padding: 6px 10px; text-align: left; color: #8b949e; font-weight: 600; border-bottom: 1px solid #30363d; font-size: 11px; overflow: hidden; }
  #list-wrap tbody { display: block; height: 140px; overflow-y: scroll; }
  #list-wrap tbody tr { display: table; width: 100%; table-layout: fixed; height: 35px; cursor: pointer; border-bottom: 1px solid #21262d; }
  #list-wrap tbody tr:hover { background: #1f2937; }
  #list-wrap tbody tr.selected { background: #1c2d3f; }
  tbody td { padding: 5px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .action-hold { color: #8b949e; }
  .action-long { color: #3fb950; font-weight: 600; }
  .action-short { color: #f85149; font-weight: 600; }
  .action-summary { color: #d2a8ff; }
  .conf { color: #e3b341; }
  #detail-wrap { flex: 1; overflow-y: auto; position: relative; border-top: 1px solid #30363d; }
  .overlay-btn { margin-left: 6px; padding: 2px 10px; border-radius: 4px; font-size: 11px; cursor: pointer; border: 1px solid #30363d; background: #21262d; color: #8b949e; }
  .overlay-btn.active { background: #1f6feb; color: #fff; border-color: #1f6feb; }
  #rsi-wrap { flex: 0 0 0px; border-bottom: 1px solid #30363d; position: relative; width: 100%; overflow: hidden; transition: flex 0.2s; }
  #rsi-chart { width: 100%; height: 100%; }
  #equity-wrap { flex: 0 0 120px; border-bottom: 1px solid #30363d; position: relative; width: 100%; overflow: hidden; transition: flex 0.2s; }
  #equity-chart { width: 100%; height: 100%; }
  #detail-resize { height: 10px; cursor: ns-resize; background: #30363d; display: flex; align-items: center; justify-content: center; }
  #detail-resize::after { content: '⋮'; color: #8b949e; font-size: 10px; }
  #detail-resize:hover { background: #58a6ff; }
  #detail { padding: 16px; }
  #detail h2 { font-size: 14px; color: #58a6ff; margin-bottom: 12px; }
  .meta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
  .meta-item { background: #21262d; border-radius: 4px; padding: 4px 8px; font-size: 11px; }
  .meta-item span { color: #8b949e; }
  .meta-item strong { color: #e6edf3; }
  .section { margin-bottom: 14px; }
  .section-title { font-size: 11px; color: #8b949e; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; border-bottom: 1px solid #21262d; padding-bottom: 4px; }
  .section-body { background: #161b22; border: 1px solid #30363d; border-radius: 6px; padding: 10px; white-space: pre-wrap; word-break: break-word; font-size: 12px; max-height: 200px; overflow-y: auto; color: #c9d1d9; }
  .section-body.response { max-height: 300px; }
  .section-body.user-prompt { max-height: 250px; }
  .reasoning { color: #c9d1d9; background: #0d1117; border-left: 3px solid #58a6ff; padding: 8px 10px; border-radius: 0 6px 6px 0; font-size: 12px; margin-top: 6px; white-space: pre-wrap; word-break: break-word; }
  .section-collapsible .section-title { cursor: pointer; user-select: none; }
  .section-collapsible .section-title::after { content: ' ▶'; font-size: 10px; color: #8b949e; }
  .section-collapsible.open .section-title::after { content: ' ▼'; }
  .section-collapsible .section-body { display: none; }
  .section-collapsible.open .section-body { display: block; }
  .empty { color: #8b949e; padding: 20px; text-align: center; }
  button { background: #21262d; border: 1px solid #30363d; color: #e6edf3; padding: 4px 10px; border-radius: 4px; font-size: 12px; cursor: pointer; }
  button:hover { background: #30363d; }
  #candle-loading { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: #8b949e; font-size: 12px; pointer-events: none; }
  .cfg-panel { position: absolute; z-index: 30; resize: both; overflow: auto; min-width: 240px; min-height: 140px; box-sizing: border-box; background: rgba(22,27,34,0.97); border: 1px solid #58a6ff; border-radius: 6px; padding: 0 10px 10px; font: 11px monospace; color: #e6edf3; }
  .cfg-head { display: flex; justify-content: space-between; align-items: center; cursor: move; padding: 6px 0; color: #8b949e; font-size: 10px; position: sticky; top: 0; background: rgb(22,27,34); user-select: none; z-index: 1; }
  .cfg-x { cursor: pointer; padding: 0 4px; }
  .cfg-x:hover { color: #f85149; }
  .cfg-body { display: flex; flex-direction: column; gap: 6px; }
  #tool-dock { position: absolute; top: 150px; left: 8px; z-index: 25; width: 44px; padding-bottom: 4px; gap: 4px; background: rgba(22,27,34,0.95); border: 1px solid #30363d; border-radius: 6px; display: flex; flex-direction: column; align-items: stretch; user-select: none; }
  #tool-dock.hidden { display: none; }
  .dock-grip { height: 12px; cursor: move; text-align: center; color: #6e7681; font-size: 10px; line-height: 12px; border-bottom: 1px solid #30363d; }
  .dock-sep { height: 1px; background: #30363d; margin: 0 6px; }
  .dock-btn { width: 36px; height: 36px; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: none; border: none; border-radius: 4px; color: #c9d1d9; padding: 0; cursor: pointer; }
  .dock-btn:hover { background: #30363d; }
  .dock-btn.active { background: #1f6feb; color: #fff; }
  #indicator-legend { position: absolute; top: 6px; left: 8px; z-index: 6; background: rgba(13,17,23,0.8); border: 1px solid #30363d; border-radius: 4px; padding: 4px 8px; font-size: 11px; display: flex; flex-direction: column; gap: 3px; }
  .ind-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #8b949e; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
  .ind-chip { background: none; border: none; color: #8b949e; padding: 0 2px; font-size: 11px; cursor: pointer; }
  .ind-chip:hover { background: none; color: #e6edf3; }
  #indicator-legend.collapsed { padding: 2px 6px; }
  .ind-row.na { opacity: 0.45; }
  .ind-row button:disabled { cursor: not-allowed; }
  .ind-count { color: #8b949e; font-size: 10px; margin-left: auto; padding-left: 6px; }
  .ind-row { display: flex; align-items: center; gap: 6px; }
  .ind-eye, .ind-bell { background: none; border: none; padding: 0 2px; font-size: 12px; }
  .ind-eye:hover, .ind-bell:hover { background: none; }
  .ind-eye.off, .ind-bell.off { opacity: 0.3; }
  .ind-swatch { width: 12px; height: 2px; }
  .ind-grip { cursor: grab; color: #6e7681; font-size: 11px; user-select: none; }
  .ind-name { cursor: pointer; }
  .ind-tfchip { color: #8b949e; font-size: 10px; border: 1px solid #30363d; border-radius: 8px; padding: 0 5px; }
  .ind-warn { color: #f85149; }
  .ind-add { margin-top: 2px; color: #8b949e; font-size: 10px; }
  .ind-add .ind-chip { border: 1px solid #30363d; border-radius: 3px; padding: 0 5px; }
  .ind-deleted summary { color: #8b949e; cursor: pointer; font-size: 10px; }
  .layer-row { border-radius: 3px; padding: 0 2px; }
  .layer-row.active { background: rgba(88,166,255,0.14); }
  .layer-row.muted { background: rgba(248,81,73,0.16); }
  .layer-row.muted .ind-name { text-decoration: line-through; }
  .layer-row.hidden-layer .ind-name { opacity: 0.45; }
  .layer-row.dragging { opacity: 0.4; }
  .layer-row.drop-before { box-shadow: 0 -2px 0 #58a6ff; }
  .layer-row.drop-end { box-shadow: 0 2px 0 #58a6ff; }
  .ind-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #6e7681; }
  .ind-dot.live { background: #3fb950; } .ind-dot.connecting { background: #d29922; } .ind-dot.error { background: #f85149; }
  #ind-dialog-bg { position: fixed; inset: 0; background: rgba(1,4,9,0.6); z-index: 50; display: flex; align-items: center; justify-content: center; }
  #ind-dialog { width: min(760px, 94vw); height: min(560px, 88vh); background: #161b22; border: 1px solid #30363d; border-radius: 8px; display: flex; flex-direction: column; font-size: 13px; color: #e6edf3; }
  .indd-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 16px; font-weight: 600; }
  .indd-body { flex: 1; display: flex; min-height: 0; }
  .indd-tabs { width: 150px; padding: 4px 8px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid #30363d; }
  .indd-tab { text-align: left; background: none; border: none; color: #8b949e; padding: 7px 10px; border-radius: 4px; font-size: 13px; cursor: pointer; }
  .indd-tab:hover { background: #21262d; color: #e6edf3; }
  .indd-tab.active { background: #1f6feb33; color: #58a6ff; }
  .indd-main { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 4px 12px 0; }
  #indd-search { background: #0d1117; border: 1px solid #30363d; color: #e6edf3; border-radius: 6px; padding: 8px 10px; font-size: 13px; margin-bottom: 6px; }
  .indd-list { flex: 1; overflow: auto; color-scheme: dark; }
  .indd-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid #21262d; }
  .indd-row:hover { background: #1c2128; }
  .indd-row .nm { font-weight: 600; }
  .indd-row .ds { color: #8b949e; font-size: 12px; margin-top: 2px; }
  .indd-row .grow { flex: 1; min-width: 0; }
  .indd-star { background: none; border: none; color: #6e7681; font-size: 15px; cursor: pointer; padding: 0 4px; }
  .indd-star.on { color: #e3b341; }
  .indd-act { background: #21262d; border: 1px solid #30363d; color: #e6edf3; border-radius: 4px; padding: 3px 10px; font-size: 12px; cursor: pointer; white-space: nowrap; }
  .indd-act:hover { background: #30363d; }
  .indd-act.on { color: #3fb950; }
  .indd-act:disabled { opacity: 0.4; cursor: not-allowed; }
  .indd-foot { display: flex; justify-content: flex-end; padding: 10px 16px; border-top: 1px solid #30363d; }
  #obj-panel { position: absolute; top: 6px; right: 88px; z-index: 6; width: 268px; max-height: calc(100% - 24px); display: flex; flex-direction: column; background: rgba(13,17,23,0.92); border: 1px solid #30363d; border-radius: 4px; font-size: 11px; }
  #obj-panel.collapsed { width: auto; }
  .ob-head { display: flex; align-items: center; gap: 6px; padding: 4px 8px; color: #8b949e; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
  .ob-title { flex: 1; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ob-title b { color: #e6edf3; text-transform: none; letter-spacing: 0; font-size: 11px; }
  .ob-body { overflow: auto; padding: 2px 6px 6px; color-scheme: dark; }
  .ob-row, .ob-group { display: flex; align-items: center; gap: 5px; padding: 2px 3px; border-radius: 3px; }
  .ob-row:hover, .ob-group:hover { background: #1c2128; }
  .ob-group { color: #e6edf3; font-weight: 600; margin-top: 2px; }
  .ob-row.in-group { margin-left: 16px; }
  .ob-name { flex: 1; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .ob-name input { width: 100%; background: #0d1117; border: 1px solid #388bfd; color: #e6edf3; font: 11px monospace; border-radius: 3px; padding: 0 3px; }
  .ob-grip { cursor: grab; color: #6e7681; user-select: none; }
  .ob-ic { width: 12px; text-align: center; }
  .ob-sec { color: #8b949e; font-size: 10px; margin: 6px 0 2px; letter-spacing: 0.5px; }
  .ob-line { display: flex; align-items: center; gap: 6px; }
  .ob-line input[type=range] { flex: 1; }
  .ob-foot { display: flex; align-items: center; gap: 6px; padding: 4px 3px 0; color: #6e7681; font-size: 10px; }
  .ob-end { height: 14px; border-radius: 3px; }
  .ob-empty { color: #6e7681; padding: 6px 3px; }
  .ob-row.drop-before, .ob-group.drop-before { box-shadow: 0 -2px 0 #58a6ff; }
  .ob-row.drop-after, .ob-group.drop-after { box-shadow: 0 2px 0 #58a6ff; }
  .ob-end.drop-into { box-shadow: 0 2px 0 #58a6ff; }
  .ob-group.drop-into, .ob-newgroup.drop-into, .layer-row.drop-into { outline: 1px dashed #58a6ff; background: rgba(88,166,255,0.14); }
  .ob-ghost { position: fixed; z-index: 60; pointer-events: none; background: #1f6feb; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 11px; opacity: 0.92; }
  .ind-row.selected { outline: 1px solid rgba(56,139,253,0.5); border-radius: 3px; }
  .ind-bell svg { vertical-align: -2px; }
  input[type=color].ob-color { width: 22px; height: 16px; padding: 0; border: 1px solid #30363d; background: none; border-radius: 3px; cursor: pointer; }
  #bottom-tabs { display: flex; align-items: center; gap: 4px; padding: 3px 8px 0; background: #161b22; border-bottom: 1px solid #30363d; min-height: 28px; }
  .bt-tab { background: none; border: none; border-bottom: 2px solid transparent; color: #8b949e; padding: 4px 12px; font-size: 12px; cursor: pointer; border-radius: 0; }
  .bt-tab:hover { color: #e6edf3; background: none; }
  .bt-tab.active { color: #e6edf3; border-bottom-color: #58a6ff; }
  #bt-strip { display: flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 11px; color: #8b949e; }
  .bt-grow { flex: 1; }
  .ob-rules { display: flex; gap: 2px; margin-left: auto; margin-right: 6px; }
  .ob-rules label { width: 22px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 3px; cursor: pointer; }
  .ob-rules label.lg { background: rgba(63,185,80,.18); } .ob-rules label.sh { background: rgba(248,81,73,.18); }
  .ob-rules input { margin: 0; cursor: pointer; }
  .ob-rulehead { display: flex; align-items: center; color: #8b949e; font-size: 9px; padding: 0 0 2px; }
  .ob-rulehead .ob-rules label { background: none; cursor: help; width: 22px; font-size: 9px; }
  .ob-rulehead .ob-rules label.lg { color: #3fb950; background: rgba(63,185,80,.18); } .ob-rulehead .ob-rules label.sh { color: #f85149; background: rgba(248,81,73,.18); }
  .bt-imp { position: fixed; inset: 0; z-index: 1000; background: rgba(1,4,9,.72); display: flex; align-items: center; justify-content: center; }
  .bt-imp[hidden] { display: none; }
  .bt-imp-box { background: #0d1117; border: 1px solid #30363d; border-radius: 8px; width: min(900px, 95vw); max-height: 90vh; display: flex; flex-direction: column; color: #c9d1d9; font-size: 12px; }
  .bt-imp-box > * { padding: 10px 14px; }
  .bt-imp-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #21262d; font-size: 14px; font-weight: 600; }
  .bt-imp-steps { display: flex; gap: 14px; color: #6e7681; border-bottom: 1px solid #21262d; }
  .bt-imp-steps .on { color: #58a6ff; font-weight: 600; }
  .bt-imp-steps .ok { color: #3fb950; }
  .bt-imp-body { overflow: auto; flex: 1; min-height: 120px; }
  .bt-imp-foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; border-top: 1px solid #21262d; }
  .bt-imp-drop { border: 2px dashed #30363d; border-radius: 8px; padding: 28px; text-align: center; color: #8b949e; }
  .bt-imp-opts { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
  .bt-imp-chips span { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 10px; background: #21262d; }
  .bt-imp table { width: 100%; border-collapse: collapse; margin-top: 8px; }
  .bt-imp th, .bt-imp td { text-align: left; padding: 3px 6px; border-bottom: 1px solid #161b22; white-space: nowrap; }
  .bt-imp .good { color: #3fb950; } .bt-imp .bad { color: #f85149; } .bt-imp .warn { color: #d29922; }
  .bt-imp-bar { height: 8px; border-radius: 4px; background: #21262d; overflow: hidden; margin: 10px 0; }
  .bt-imp-bar > div { height: 100%; background: #3fb950; transition: width .1s; }
  .bt-pill { background: #21262d; border: 1px solid #30363d; color: #c9d1d9; padding: 2px 10px; border-radius: 12px; font-size: 11px; cursor: pointer; }
  .bt-pill.active { background: #e6edf3; color: #0d1117; border-color: #e6edf3; }
  #bt-wrap { display: none; flex: 1 1 0; min-height: 0; overflow: auto; background: #0d1117; color-scheme: dark; padding: 6px 16px 16px; }
  #bt-empty { display: none; padding: 28px 8px; color: #8b949e; font-size: 13px; text-align: center; }
  #bt-empty button { margin-top: 8px; }
  .bt-sec { margin-bottom: 22px; }
  .bt-title { font-size: 16px; font-weight: 600; margin: 10px 0 8px; color: #e6edf3; display: flex; align-items: center; gap: 10px; }
  .bt-h { font-size: 12px; font-weight: 600; margin: 12px 0 4px; color: #e6edf3; }
  .bt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 24px; margin: 8px 0; }
  .bt-card .bt-lab { color: #8b949e; font-size: 11px; }
  .bt-card .bt-val { font-size: 17px; font-weight: 600; margin-top: 2px; }
  .bt-card .bt-sub, .bt-sub { color: #8b949e; font-size: 10px; font-weight: 400; }
  .bt-val small, .bt-sval small, td small { font-size: 10px; color: #8b949e; font-weight: 400; }
  .bt-pos { color: #089981 !important; } .bt-neg { color: #f23645 !important; }
  .bt-key .bt-val { font-size: 20px; }
  .bt-perfhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 10px 0 4px; font-size: 14px; }
  .bt-perfhead label { font-size: 11px; color: #c9d1d9; display: flex; align-items: center; gap: 4px; cursor: pointer; }
  #bt-perf { height: 300px; width: 100%; }
  .bt-svg { width: 100%; height: 190px; display: block; }
  .bt-srow { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 11px; }
  .bt-slabel { width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c9d1d9; }
  .bt-sbar { flex: 1; display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #21262d; }
  .bt-sbar i { display: block; height: 100%; }
  .bt-sval { width: 120px; text-align: right; font-weight: 600; }
  .bt-two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
  .bt-legend { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #8b949e; margin-top: 4px; }
  .bt-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
  .bt-donutwrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .bt-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
  .bt-tbl th { text-align: left; color: #8b949e; font-weight: 500; padding: 6px 8px; border-bottom: 1px solid #30363d; font-size: 11px; position: sticky; top: 0; background: #0d1117; }
  .bt-tbl td { padding: 5px 8px; border-bottom: 1px solid #21262d; vertical-align: middle; }
  .bt-r { text-align: right !important; }
  .bt-trade { cursor: pointer; }
  .bt-trade:hover td { background: #161b22; }
  .bt-num { color: #8b949e; width: 44px; }
  .bt-side.long { color: #58a6ff; font-weight: 600; } .bt-side.short { color: #f0883e; font-weight: 600; }
  .bt-tag { font-size: 9px; border: 1px solid #30363d; border-radius: 6px; padding: 0 4px; color: #8b949e; }
  .bt-empty-note { color: #6e7681; font-size: 11px; padding: 6px 0; }
  .bt-chip { border: 1px solid #30363d; border-radius: 8px; padding: 0 6px; font-size: 10px; }
  #main.bt-collapsed #list-wrap, #main.bt-collapsed #detail-resize, #main.bt-collapsed #detail-wrap, #main.bt-collapsed #bt-wrap { display: none !important; }
  #main.bt-collapsed #chart-wrap { flex: 1 1 auto !important; }
  #feed-tip { position: absolute; z-index: 7; pointer-events: none; display: none; background: rgba(13,17,23,0.92); border: 1px solid #30363d; border-radius: 4px; padding: 2px 6px; font-size: 11px; color: #e6edf3; white-space: nowrap; }
  #timeframe-bar { padding: 6px 16px; background: #161b22; border-bottom: 1px solid #30363d; display: flex; gap: 4px; align-items: center; }
  #timeframe-bar span { color: #8b949e; font-size: 11px; margin-right: 6px; }
  #tf-pop { display: none; position: absolute; top: 28px; left: 0; z-index: 40; min-width: 190px; max-height: 70vh; overflow: auto; background: #1c2128; border: 1px solid #30363d; border-radius: 8px; padding: 6px; box-shadow: 0 8px 24px rgba(1,4,9,0.6); }
  #tf-pop.open { display: block; }
  .tf-item { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: none; color: #e6edf3; padding: 6px 10px; border-radius: 4px; font-size: 13px; cursor: pointer; text-align: left; }
  .tf-item:hover { background: #30363d; }
  .tf-item .chk { width: 14px; color: #58a6ff; }
  .tf-item .nm { flex: 1; }
  .tf-item .key { color: #6e7681; font-size: 11px; }
  .tf-sep { height: 1px; background: #30363d; margin: 4px 0; }
  .tf-hint { color: #6e7681; font-size: 11px; padding: 4px 10px; }
  .tf-btn { background: #21262d; border: 1px solid #30363d; color: #8b949e; padding: 3px 8px; border-radius: 3px; font-size: 11px; cursor: pointer; }
  .tf-btn:hover { background: #30363d; }
  .tf-btn.active { background: #388bfd; border-color: #58a6ff; color: #fff; }
  /* Multi-select dropdown */
  .ms-wrap { position: relative; display: inline-block; }
  .ms-btn { background: #21262d; border: 1px solid #30363d; color: #e6edf3; padding: 4px 8px; border-radius: 4px; font-size: 12px; cursor: pointer; white-space: nowrap; }
  .ms-btn:focus { outline: none; border-color: #58a6ff; }
  .ms-dd { display: none; position: absolute; top: 100%; left: 0; z-index: 50; background: #161b22; border: 1px solid #30363d; border-radius: 6px; padding: 6px 0; min-width: 200px; max-height: 360px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
  .ms-dd.open { display: block; }
  .ms-dd label { display: flex; align-items: center; gap: 6px; padding: 3px 12px; cursor: pointer; font-size: 12px; color: #e6edf3; white-space: nowrap; }
  .ms-dd label:hover { background: #1f2937; }
  .ms-dd input[type="checkbox"] { accent-color: #58a6ff; cursor: pointer; flex-shrink: 0; }
  .ms-actions { padding: 2px 12px 4px; font-size: 11px; color: #8b949e; border-bottom: 1px solid #30363d; margin-bottom: 4px; }
  .ms-select-all, .ms-clear { cursor: pointer; color: #58a6ff; }
  .ms-select-all:hover, .ms-clear:hover { text-decoration: underline; }
  .ms-group-label { padding: 4px 12px 0; font-size: 10px; color: #8b949e; text-transform: uppercase; letter-spacing: 0.5px; border-top: 1px solid #21262d; margin-top: 2px; }
  .ms-group-label:first-of-type { border-top: none; margin-top: 0; }
