/* Shared TradingView language for the four stock selection workflows. */
.selection-tv{--selection-row:48px;--selection-purple:#ce93d8;--selection-purple-bg:#ab47bc24}
:root[data-theme="light"] .selection-tv{--selection-purple:#7b3fb2;--selection-purple-bg:#f3e5f5;--ok-on:#087a66}
.selection-tv .card{border-radius:0;box-shadow:none}
.selection-tv .card-h{min-height:44px;padding:12px 16px;gap:12px}
.selection-tv .card-h h2{font-size:14px;font-weight:600}
.selection-tv .card-b{padding:16px}
.selection-tv .card-b.np{padding:0}
.selection-tv .meta,.selection-tv .slabel{font-size:11px;line-height:1.6}
.selection-tv .slabel{color:var(--tx2);font-weight:500}
.selection-tv .btn{min-height:32px;border-radius:4px;font-size:12px;box-shadow:none}
.selection-tv .btn.on:not(.pri){color:var(--accent-ink);background:var(--accent-bg);border-color:var(--accent)}
.selection-tv button:focus-visible,.selection-tv input:focus-visible,.selection-tv select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.selection-tv input[type="checkbox"]{accent-color:var(--accent);width:14px;height:14px;flex:none}
.selection-tv input:not([type="checkbox"]),.selection-tv select{min-width:0;max-width:100%;height:34px;border:1px solid var(--line);border-radius:4px;background:var(--card);color:var(--tx);padding:6px 10px;font:400 12px/1.4 var(--chart-font);font-variant-numeric:tabular-nums}
.selection-tv input::placeholder{color:var(--tx3)}
.selection-tv .selection-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.selection-tv [data-smode],.selection-tv .vtabs .btn{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--tx2);padding:8px 12px}
.selection-tv [data-smode].on,.selection-tv .vtabs .btn.on{border-bottom-color:var(--accent);color:var(--accent-ink);background:var(--accent-bg)}
.selection-tv .selection-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:16px;padding-top:12px;border-top:1px solid var(--line2)}
.selection-tv .filters{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 20px}
.selection-tv .fg{min-width:0;gap:6px}
.selection-tv .fg label{font-size:12px;font-weight:400;color:var(--tx2)}
.selection-tv .fg .row{gap:6px;min-width:0}
.selection-tv .fg .row input{min-width:0;flex:1;width:100%}
.selection-tv .presets{gap:8px;padding-top:12px;border-top:1px solid var(--line)}
.selection-tv .idctl{gap:12px}
.selection-tv .batchbar{gap:10px;padding:10px 14px;background:transparent;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;font-size:12px}
.selection-tv .batchbar .bcount{color:var(--tx2)}
.selection-tv .lagtip{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:10px 16px;color:var(--tx2);font-size:12px}
.selection-tv .vtabs{border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:0;gap:0}
.selection-tv #nlScreenBox{border-top-style:solid}
.selection-tv #nlScreenNote:empty,.selection-tv #advErr:empty,.selection-tv #advChips:empty{display:none}
.selection-tv .tag,.selection-tv .tagchip,.selection-tv .shist,.selection-tv .sic{border:0;border-radius:4px;background:transparent!important;padding:2px 6px;font-size:11px;line-height:1.5}
.selection-tv .tag,.selection-tv .tagchip,.selection-tv .shist{color:var(--tx3)}
.selection-tv .tag.g,.selection-tv .sic.s{background:var(--ok-bg)!important;color:var(--ok-on)!important}
.selection-tv .sic.g{background:var(--danger-bg)!important;color:var(--danger-on)!important}
.selection-tv .tag.z,.selection-tv .sic.m{background:var(--warn-bg)!important;color:var(--warn-on)!important}
.selection-tv .sic.w{background:var(--bg2)!important;color:var(--tx3)!important}
.selection-tv .tagchip,.selection-tv .shist{background:var(--accent-bg)!important;color:var(--accent-ink)}
.selection-tv table{width:100%;font-size:12px;font-variant-numeric:tabular-nums}
.selection-tv .tblw{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.selection-tv table th{height:40px;background:var(--card);border-bottom:1px solid var(--line);color:var(--tx3);font-size:11px;font-weight:400;padding:8px 12px}
.selection-tv table td{height:var(--selection-row);padding:8px 12px;border-bottom:1px solid var(--line2);white-space:nowrap;font-size:12px}
.selection-tv table tbody tr:hover{background:var(--bg2)}
.selection-tv .selection-symbol{display:flex;align-items:center;gap:8px;min-width:220px;text-align:left}
.selection-tv .selection-code{flex:none;padding:3px 6px;background:var(--bg2);border-radius:4px;font-size:12px;font-weight:600;color:var(--tx)}
.selection-tv .selection-name{min-width:0;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:400;color:var(--tx)}
.selection-tv .pager{padding:12px 16px;border-top:1px solid var(--line2);gap:12px}
.selection-tv .empty,.selection-tv .nbempty,.selection-tv .hist-empty{padding:28px 16px;color:var(--tx3);font-size:12px;line-height:1.8}
.selection-tv .selection-empty-actions{display:flex;justify-content:center;gap:8px;margin-top:12px;flex-wrap:wrap}
/* Beginner screener: compact presets, comparable rows, and inline explanations. */
#tab-newbie{--nb-quiet:color-mix(in srgb,var(--card) 72%,var(--bg2));--nb-selected:color-mix(in srgb,var(--card) 60%,var(--accent-bg))}
#tab-newbie .nb-panel{min-width:0;border-radius:4px}
#tab-newbie .card-h{justify-content:space-between;flex-wrap:wrap}
#tab-newbie .card-h h2{font-size:19px;margin:0}
#tab-newbie .nblead{margin:3px 0 0;padding:0;background:none;border:0;color:var(--tx2);font-size:12px;line-height:1.45}
#tab-newbie .nbpicks{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0;background:var(--nb-quiet)}
#tab-newbie .nbpicks>.nbempty,#tab-newbie .nbpicks>.load{grid-column:1/-1}
#tab-newbie .nbcard{
  display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;padding:10px 16px 9px;text-align:left;
  border:0;border-right:1px solid var(--line2);border-bottom:2px solid var(--line);border-radius:0;background:transparent;
  color:var(--tx);font:inherit;transform:none;box-shadow:none
}
#tab-newbie .nbcard:last-child{border-right:0}
#tab-newbie .nbcard:hover{background:var(--bg2)}
#tab-newbie .nbcard.on{border-bottom-color:var(--accent);background:var(--accent-bg);color:var(--accent-ink)}
#tab-newbie .nbcard:focus-visible{outline-offset:-2px}
#tab-newbie .nb-tab-name{display:flex;align-items:center;gap:7px;min-width:0}
#tab-newbie .nb-tab-name strong{font-size:13px;font-weight:600}
#tab-newbie .nbcard .ic svg{width:17px;height:17px}
#tab-newbie .nbcard[data-nbpick="steady"] .ic{color:var(--ok-on)}
#tab-newbie .nbcard[data-nbpick="rebound"] .ic{color:var(--warn-on)}
#tab-newbie .nbcard[data-nbpick="growth"] .ic{color:var(--accent-ink)}
#tab-newbie .nbcard[data-nbpick="hot"] .ic{color:var(--danger-on)}
#tab-newbie .nbcard .tl{font-size:11px;line-height:1.45;min-height:0;padding-left:24px;color:var(--tx3)}
#tab-newbie .nb-tab-risk{position:absolute;right:15px;top:11px;padding:0;font-size:10px;font-weight:400}
#tab-newbie .nb-scheme-summary{display:flex;align-items:center;justify-content:space-between;gap:8px 14px;padding:9px 16px;border-bottom:1px solid var(--line);color:var(--tx2);font-size:12px}
#tab-newbie .nb-scheme-summary[hidden]{display:none}
#tab-newbie .nb-scheme-summary p{margin:0}
#tab-newbie .nb-scheme-info{display:flex;gap:7px;align-items:center;flex-wrap:wrap;color:var(--tx3);font-size:11px}
#tab-newbie .nb-scheme-info span{white-space:nowrap}
#tab-newbie .nbrisk{padding:2px 6px;border-radius:3px;font-size:11px;font-weight:500}
#tab-newbie .nbresult-head{padding:10px 16px;margin:0;border:0;border-bottom:1px solid var(--line2)}
#tab-newbie .nbresult-head .nbrh-l,#tab-newbie .nbresult-head .nbrh-r{flex-wrap:wrap;gap:7px 12px}
#tab-newbie #nbResTitle{font-size:15px;font-weight:600;margin:0}
#tab-newbie .nbcount{font-size:11px;color:var(--tx3);line-height:1.55}
#tab-newbie .nbcount:empty{display:none}
#tab-newbie #newbieBatch{padding:5px 16px;margin:0;min-height:39px;border-top:0;background:var(--nb-quiet)}
#tab-newbie #newbieBatch .bcount{color:var(--accent-ink);font-weight:600}
#tab-newbie #newbieBatch button{min-height:28px}
#tab-newbie [data-barbatch]{color:var(--accent-ink)}
#tab-newbie .nb-order-note,.nb-swipe-hint{font-size:11px;color:var(--tx3)}
#tab-newbie .nb-swipe-hint{display:none}
#tab-newbie .nbtable-scroll{container-type:inline-size;scrollbar-width:thin;border-bottom:1px solid var(--line)}
#tab-newbie .nbtable-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
#tab-newbie .nbtable{min-width:980px;table-layout:fixed;border-collapse:separate;border-spacing:0;text-align:left}
#tab-newbie .nb-col-check{width:40px}
#tab-newbie .nb-col-rank{width:33px}
#tab-newbie .nb-col-price{width:9%}
#tab-newbie .nb-col-change{width:9%}
#tab-newbie .nb-col-score{width:11%}
#tab-newbie .nb-col-volume{width:8%}
#tab-newbie .nb-col-actions{width:94px}
#tab-newbie .nbtable th{height:34px;padding:5px 12px;background:var(--nb-quiet);white-space:nowrap}
#tab-newbie .nbtable th:not(.nb-number){text-align:left}
#tab-newbie .nbtable td{height:41px;padding:5px 12px}
#tab-newbie .nbtable th:first-child,#tab-newbie .nbrow td:first-child{padding-left:16px}
#tab-newbie .nbtable input{display:block;margin:0}
#tab-newbie .nbrow{display:table-row;position:static;padding:0;border:0;border-radius:0;background:var(--card);box-shadow:none;cursor:pointer}
#tab-newbie .nbrow:hover{background:var(--bg2);border:0}
#tab-newbie .nbrow.nb-selected,#tab-newbie .nbrow.nb-expanded{background:var(--nb-selected)}
#tab-newbie .nb-number{text-align:right}
#tab-newbie .nb-price,#tab-newbie .nb-change{font-weight:600}
#tab-newbie .nb-rank{font-size:11px;color:var(--tx3)}
#tab-newbie .nb-stock{display:flex;align-items:center;gap:8px;min-width:0}
#tab-newbie .nb-symbol,#tab-newbie .nb-company{border:0;background:transparent;padding:0;text-align:left;cursor:pointer}
#tab-newbie .nb-symbol{color:var(--accent-ink)}
#tab-newbie .nb-symbol:hover{text-decoration:underline;text-underline-offset:2px}
#tab-newbie .nb-stock .starbtn{border:0;background:transparent;padding:0;flex:none}
#tab-newbie .nb-stock .symbol-avatar{width:24px;height:24px;flex:none;font-size:10px}
#tab-newbie .nb-company{max-width:none;color:var(--tx2)}
#tab-newbie .nbscore{display:inline-flex;align-items:center;justify-content:flex-end;gap:8px;width:auto}
#tab-newbie .nbscore .num{font-size:12px;font-weight:600}
#tab-newbie .nbscore .bar{display:block;width:52px;height:3px;margin:0;border-radius:0}
#tab-newbie .nbscore .bar i{background:currentColor;border-radius:0}
#tab-newbie .nb-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}
#tab-newbie .nb-row-actions button{border:0;background:none;color:var(--tx2);padding:2px 0;font:inherit;font-size:11px;white-space:nowrap;cursor:pointer}
#tab-newbie .nb-row-actions button:hover{color:var(--accent-ink);text-decoration:underline}
#tab-newbie .nb-row-actions [data-nbai]{color:var(--selection-purple)}
#tab-newbie .nbtable .nb-detail-row td{padding:0;height:auto;background:var(--nb-quiet);white-space:normal}
#tab-newbie .nb-detail-content{position:sticky;left:0;max-width:100cqw;padding:10px 16px 12px 68px}
#tab-newbie .nb-detail-content h4{margin:0;font-size:12px;font-weight:600}
#tab-newbie .nbreasons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px 14px;margin:5px 0 7px;padding:0;border:0}
#tab-newbie .nbreasons li{margin:0;font-size:11px;padding-left:11px}
#tab-newbie .nbreasons li::before{left:0;color:var(--tx3);font-weight:400}
#tab-newbie .nbreasons .nbreason-warning{padding-left:0}
#tab-newbie .nbreasons .nbreason-warning::before{display:none}
#tab-newbie .nb-warning-label{padding:2px 5px;margin-right:4px;border-radius:3px;background:var(--warn-bg);color:var(--warn-on);font-size:10px}
#tab-newbie .nbtags{display:flex;flex-wrap:wrap;gap:5px}
#tab-newbie .nbtags .tag{font-size:10px}
#tab-newbie .nbai{margin:0;border:0;border-radius:0;background:transparent;word-break:break-word}
#tab-newbie .nbai .load{padding:10px 0;text-align:left}
#tab-newbie .nbai-st{background:transparent;color:var(--tx3);font-size:11px}
#tab-newbie .nbai-q:last-child{margin-bottom:0}
#tab-newbie .nbnote{margin:0;padding:8px 16px;border:0;border-bottom:1px solid var(--line);border-radius:0}
#tab-newbie #nbBaseline{margin:0;padding:0;border:0;border-radius:0;color:var(--tx2);background:var(--card)}
#tab-newbie .nbbl-h{margin:0;padding:8px 16px;background:var(--nb-quiet);border-block:1px solid var(--line);flex-wrap:wrap}
#tab-newbie .nbbl-h .q{margin-left:auto;font-size:11px}
#tab-newbie .nbbl-h .age{margin-left:0}
#tab-newbie .nbbl-duo{margin:0;gap:0;grid-template-columns:repeat(2,minmax(0,1fr))}
#tab-newbie .nbbl-c{border:0;border-radius:0;padding:9px 16px 10px;background:var(--card)}
#tab-newbie .nbbl-c+.nbbl-c{border-left:1px solid var(--line)}
#tab-newbie .nbbl-c .lb{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 8px}
#tab-newbie .nbbl-c .lb span{font-size:11px;color:var(--tx3)}
#tab-newbie .nbbl-v{margin-top:4px}
#tab-newbie .nbbl-v .n{font-size:22px;font-weight:600}
#tab-newbie .nbbl-v .vd{margin-left:2px;font-size:11px}
#tab-newbie .nbbl-track{height:3px;margin-top:6px;border-radius:0}
#tab-newbie .nbbl-track i{border-radius:0}
#tab-newbie .nbbl-track u{display:none}
#tab-newbie .nbbl-track s{top:-2px;height:7px}
#tab-newbie .nbbl-foot,#tab-newbie .nb-disclosure{margin:0;padding:8px 16px;border-top:1px solid var(--line2);color:var(--tx3);font-size:11px;line-height:1.55}
#tab-newbie .nbbl-daily{padding:6px 16px 8px;border-top:1px solid var(--line2);font-size:11px;color:var(--tx2)}
#tab-newbie .nbbl-daily summary{cursor:pointer}
@media(max-width:1150px){
  #tab-newbie .nb-swipe-hint{display:block;padding:4px 16px}
  #tab-newbie .nbreasons{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
  #tab-newbie .nbpicks{grid-template-columns:repeat(2,minmax(0,1fr))}
  #tab-newbie .nb-tab-risk{position:static;margin-left:24px}
  #tab-newbie .nb-scheme-summary{align-items:flex-start;flex-direction:column}
  #tab-newbie .nb-detail-content{padding-inline:12px}
}
@media(max-width:550px){
  #tab-newbie .nbreasons,#tab-newbie .nbbl-duo{grid-template-columns:1fr}
  #tab-newbie .nbbl-c+.nbbl-c{border-left:0;border-top:1px solid var(--line2)}
  #tab-newbie .nbbl-h .q{margin-left:0}
}
/* Strategy builder follows the workbench's flat toolbar and table surfaces. */
#tab-strategy .card{border-radius:4px;min-width:0}
#tab-strategy .card-h{display:flex;justify-content:space-between;flex-wrap:wrap}
#tab-strategy .strategy-heading h2{font-size:18px;line-height:1.35}
#tab-strategy .strategy-toolbar{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 24px;
  padding:10px 16px;border-bottom:1px solid var(--line);background:var(--bg2)
}
#tab-strategy :is(.strategy-market,.strategy-mode,.strategy-pool-feedback){
  display:flex;align-items:center;gap:8px;min-width:0
}
#tab-strategy .strategy-market{flex-wrap:wrap}
#tab-strategy :is(.strategy-market>label,.strategy-mode>span){color:var(--tx2);font-size:12px}
#stratPool{width:218px}
#tab-strategy .strategy-pool-feedback{font-size:11px;flex-wrap:wrap;color:var(--tx2)}
#stratPoolStatus::before{
  content:'';display:inline-block;width:6px;height:6px;margin-right:6px;
  border-radius:50%;vertical-align:2px;background:var(--tx3)
}
#stratPoolStatus[data-state="ready"]::before{background:var(--ok-on)}
#stratPoolStatus[data-state="unavailable"]{color:var(--warn-on)}
#stratPoolStatus[data-state="unavailable"]::before{background:currentColor}
#tab-strategy .strategy-segment{
  display:inline-flex;border:1px solid var(--line);background:var(--card);
  border-radius:5px;padding:2px;gap:2px
}
#tab-strategy .strategy-segment .btn{min-height:28px;padding:3px 9px;border:0;background:transparent}
#tab-strategy .strategy-segment .btn:hover{background:var(--bg2)}
#tab-strategy .strategy-segment .btn.on{background:var(--accent-bg);color:var(--accent-ink)}
#tab-strategy .strategy-builder{display:grid;grid-template-columns:minmax(0,1fr) 260px}
#tab-strategy .strategy-catalog{min-width:0}
#tab-strategy [data-tone="blue"]{--strat-ink:var(--accent-ink);--strat-tint:var(--accent-bg)}
#tab-strategy [data-tone="teal"]{--strat-ink:var(--ok-on);--strat-tint:var(--ok-bg)}
#tab-strategy [data-tone="orange"]{--strat-ink:var(--warn-on);--strat-tint:var(--warn-bg)}
#tab-strategy [data-tone="purple"]{--strat-ink:var(--selection-purple);--strat-tint:var(--selection-purple-bg)}
#tab-strategy .strategy-categories{
  display:flex;align-items:stretch;overflow-x:auto;padding:0 12px;
  border-bottom:1px solid var(--line);min-height:40px
}
#tab-strategy .strategy-categories[hidden]{display:none}
#tab-strategy .strategy-categories button{
  flex:none;padding:0 10px;min-height:40px;border:0;border-bottom:2px solid transparent;
  background:transparent;color:var(--tx2);font:500 12px var(--chart-font);cursor:pointer
}
#tab-strategy .strategy-categories button:hover{background:var(--bg2)}
#tab-strategy .strategy-categories button[data-tone]::before{
  content:'';display:inline-block;width:5px;height:5px;margin-right:6px;
  border-radius:50%;background:var(--strat-ink);vertical-align:2px
}
#tab-strategy .strategy-categories button[aria-pressed="true"]{
  border-bottom-color:var(--strat-ink,var(--accent));
  color:var(--strat-ink,var(--accent-ink));background:var(--strat-tint,var(--accent-bg))
}
#tab-strategy .strategy-catalog-list{
  min-height:310px;max-height:clamp(340px,44vh,490px);overflow-y:auto;
  scrollbar-gutter:stable;padding:0 12px 8px
}
#tab-strategy :is(.strategy-catalog-list,.strategy-categories button,.stratitem):focus-visible{outline-offset:-2px}
#tab-strategy .stratcat{margin:0}
#tab-strategy .stratcat h3{
  color:var(--strat-ink);background:var(--strat-tint);border-radius:3px;
  margin:10px 0 2px;padding:5px 10px;font-size:11px;font-weight:600;letter-spacing:normal
}
#tab-strategy .stratgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}
#tab-strategy .stratitem{
  width:100%;min-width:0;text-align:left;padding:10px 34px 10px 10px;
  border:0;border-bottom:1px solid var(--line2);border-radius:0;
  background:transparent;color:var(--tx);font:inherit;position:relative;overflow-wrap:anywhere
}
#tab-strategy .stratitem:hover{background:var(--bg2)}
#tab-strategy .stratitem::after{
  content:'';position:absolute;right:10px;top:13px;width:13px;height:13px;
  border:1px solid var(--tx3);border-radius:3px
}
#tab-strategy .stratitem.on{background:var(--strat-tint);border-bottom-color:var(--strat-ink)}
#tab-strategy .stratitem.on::after{background:var(--strat-ink);border-color:var(--strat-ink)}
#tab-strategy .stratitem.on::before{
  content:'';position:absolute;z-index:1;right:14px;top:16px;width:4px;height:7px;
  border:solid var(--card);border-width:0 2px 2px 0;transform:rotate(45deg)
}
#tab-strategy .stratitem .sn{display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:13px;font-weight:600}
#tab-strategy .stratitem .sd{display:block;font-size:12px;color:var(--tx2);line-height:1.5}
#tab-strategy .stratitem .shist{margin:0;color:var(--strat-ink);background:var(--strat-tint)!important}
#tab-strategy .stratitem.on .shist{background:var(--card)!important}
#tab-strategy .strategy-selection{
  display:flex;flex-direction:column;min-width:0;border-left:1px solid var(--line);
  background:color-mix(in srgb,var(--card) 72%,var(--bg2))
}
#tab-strategy .strategy-selection-head{
  min-height:41px;display:flex;align-items:center;gap:8px;padding:4px 12px;
  border-bottom:1px solid var(--line)
}
#tab-strategy :is(.strategy-selection-head,.strategy-tool-head) h3{margin:0;font-size:13px;font-weight:600}
#stratPicked{
  min-width:20px;text-align:center;padding:0 4px;border-radius:4px;color:var(--accent-ink);
  background:var(--accent-bg);font-size:11px;font-variant-numeric:tabular-nums
}
#tab-strategy #stratClear{
  margin-left:auto;border:0;background:transparent;color:var(--tx2);padding-inline:6px
}
#tab-strategy #stratClear:not(:disabled):hover{background:var(--bg2);color:var(--tx)}
#tab-strategy .strategy-picked-list{
  display:flex;flex-wrap:wrap;align-items:center;align-content:flex-start;gap:7px;
  overflow-y:auto;max-height:260px;padding:12px
}
#tab-strategy .strategy-picked-list p{margin:0;color:var(--tx2);font-size:12px}
#tab-strategy .strategy-picked-list button{
  display:flex;align-items:center;gap:5px;max-width:100%;min-height:30px;padding:3px 7px;
  border:0;border-radius:4px;background:var(--strat-tint);color:var(--strat-ink);
  text-align:left;font:500 12px var(--chart-font);cursor:pointer;overflow-wrap:anywhere
}
#tab-strategy .strategy-picked-list button:hover{box-shadow:inset 0 0 0 1px currentColor}
#tab-strategy .strategy-picked-list svg{flex:none;stroke-width:1.5;stroke-linecap:round}
#tab-strategy .strategy-submit{margin-top:auto;padding:12px;border-top:1px solid var(--line)}
#stratRunStatus{display:block;margin-bottom:6px;color:var(--tx2);font-size:11px;overflow-wrap:anywhere}
#stratRunStatus:empty{display:none}
#tab-strategy #stratRun{width:100%;min-height:36px}
:root:not([data-theme="light"]) #tab-strategy #stratRun:not(:disabled){
  background:var(--accent-ink);border-color:var(--accent-ink);color:var(--card)
}
:root:not([data-theme="light"]) #tab-strategy #stratRun:not(:disabled):hover{
  background:color-mix(in srgb,var(--accent-ink) 85%,var(--tx))
}
#tab-strategy #evalBtn[aria-expanded="true"]{background:var(--accent-bg);color:var(--accent-ink)}
#tab-strategy :is(.strategy-evaluation,#simBox){border-top:1px solid var(--line)}
#tab-strategy .strategy-evaluation{scroll-margin-top:104px}
#tab-strategy :is(.strategy-tool-head,.strategy-tool-controls){
  display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:10px 16px
}
#tab-strategy .strategy-tool-head{background:var(--bg2)}
#tab-strategy #evalClose{margin-left:auto}
#tab-strategy #evalMeta:empty{display:none}
#tab-strategy #evalBody>.load{margin-inline:16px}
#tab-strategy .strategy-tool-controls label{display:inline-flex;align-items:center;gap:8px}
#tab-strategy .strategy-method{padding:12px 16px;border-top:1px solid var(--line);color:var(--tx2);font-size:12px}
#tab-strategy .strategy-method summary{cursor:pointer}
#tab-strategy .strategy-method p{max-width:86ch;margin:10px 0 0;line-height:1.7}
#tab-strategy #simBody{padding:0 16px 12px}
#tab-strategy .strategy-sim-chart{display:block;width:100%;height:auto;margin:8px 0}
#tab-strategy .strategy-sim-legend{display:flex;flex-wrap:wrap;gap:8px 16px;color:var(--tx2);font-size:12px;margin:12px 0 4px}
#tab-strategy .strategy-sim-legend span::before{
  content:'';display:inline-block;width:14px;margin-right:6px;vertical-align:3px;
  border-top:2px solid var(--accent)
}
#tab-strategy .strategy-sim-legend span+span::before{border-top:2px dashed var(--tx3)}
#tab-strategy .strategy-result-meta{
  display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;color:var(--tx2);font-size:12px
}
#tab-strategy .strategy-result-meta strong{color:var(--tx);font-variant-numeric:tabular-nums}
#tab-strategy .strategy-result-pool{color:var(--tx);font-weight:500}
#tab-strategy .strategy-result-notice{
  padding:8px 16px;border-bottom:1px solid var(--line);color:var(--warn-on);
  background:var(--warn-bg);font-size:12px
}
#tab-strategy #strategyBatch{border-top:0}
#tab-strategy #stratBody td:last-child{white-space:normal;min-width:140px}
#tab-strategy #stratBody .tagchip{
  display:inline-block;margin:2px 4px 2px 0;background:var(--strat-tint)!important;
  color:var(--strat-ink);white-space:normal
}
#tab-strategy .strategy-stock-link{padding:2px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
#tab-strategy .strategy-stock-link:hover .selection-code{color:var(--accent-ink)}
#tab-strategy #stratBody .starbtn{
  display:inline-grid;place-items:center;width:28px;height:28px;padding:0;
  border:0;border-radius:4px;background:transparent;color:var(--tx2);opacity:1
}
#tab-strategy #stratBody .starbtn:hover{background:var(--bg2);color:var(--tx)}
#tab-strategy #stratBody .starbtn.on{color:var(--warn-on)}
#tab-strategy #patternScoreCard .card-b{padding:0}
#tab-strategy #patternScoreCard .psdims{grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:0}
#tab-strategy #patternScoreCard .psdim{
  border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);
  border-radius:0;background:var(--card);padding:12px 16px
}
#tab-strategy #patternScoreCard .psdim:last-child{border-right:0}
#tab-strategy #patternScoreCard .psdim .w{color:var(--accent-ink)}
#tab-strategy #patternScoreCard .psbar{height:3px;background:var(--line)}
#tab-strategy :is(.ps-controls,.strategy-pattern-threshold){
  display:flex;align-items:center;flex-wrap:wrap;gap:8px
}
#tab-strategy #patternScoreCard .ps-controls{padding:12px 16px;align-items:center;border-bottom:0}
#tab-strategy .strategy-pattern-threshold input{width:66px}
#tab-strategy :is(.ps-hint,.strategy-pattern-threshold label){color:var(--tx2);font-size:12px}
#tab-strategy #psOut:not(:empty){border-top:1px solid var(--line)}
#tab-strategy :is(#psOut .ps-summary,#psOut .strategy-pattern-note){padding:12px 16px;color:var(--tx2);font-size:12px}
@media(max-width:1000px){
  #tab-strategy .strategy-builder{grid-template-columns:minmax(0,1fr) 218px}
}
@media(max-width:760px){
  #tab-strategy .strategy-builder{display:block}
  #tab-strategy .strategy-selection{border-left:0;border-top:1px solid var(--line)}
  #tab-strategy .strategy-catalog-list{min-height:198px;max-height:340px}
  #tab-strategy .strategy-picked-list{max-height:126px}
  #tab-strategy .strategy-submit{display:flex;align-items:center;justify-content:space-between;gap:12px}
  #tab-strategy #stratRun{width:auto;margin-left:auto}
  #tab-strategy #stratRunStatus{margin:0}
}
@media(max-width:550px){
  #tab-strategy .strategy-catalog-list{max-height:282px}
  #tab-strategy .stratgrid{grid-template-columns:1fr}
  #tab-strategy #patternScoreCard .psdims{grid-template-columns:repeat(2,minmax(0,1fr))}
  #tab-strategy #patternScoreCard .psdim:nth-child(even){border-right:0}
  #tab-strategy .strategy-toolbar{padding-inline:12px}
  #tab-strategy #stratPool{width:auto;flex:1}
  #tab-strategy .strategy-pool-feedback{width:100%}
  #stratBody table,#stratBody tbody{display:block;min-width:0}
  #stratBody thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  #stratBody thead .selallrow{visibility:hidden}
  #stratBody tbody tr{
    display:grid;grid-template-columns:18px 28px minmax(0,1fr) auto;
    grid-template-areas:"check star symbol price" "rank . symbol change" ". . tags amount";
    gap:1px 5px;align-items:center;padding:9px 10px;border-bottom:1px solid var(--line2)
  }
  #tab-strategy #stratBody td{padding:0;height:auto;min-width:0;border:0;line-height:1.4}
  #tab-strategy #stratBody td:last-child{min-width:0}
  #stratBody td:nth-child(1){grid-area:check}
  #stratBody td:nth-child(2){grid-area:rank;font-size:10px}
  #stratBody td:nth-child(3){grid-area:star}
  #stratBody td:nth-child(4){grid-area:symbol}
  #stratBody td:nth-child(5){grid-area:price;font-weight:600}
  #stratBody td:nth-child(6){grid-area:change}
  #tab-strategy #stratBody td:nth-child(7){grid-area:amount;color:var(--tx2);font-size:10px}
  #stratBody td:nth-child(7)::before{content:'成交额 '}
  #stratBody td:nth-child(8){grid-area:tags}
  #tab-strategy #stratBody .strategy-stock-link{width:100%}
  #tab-strategy #stratBody .selection-symbol{
    display:grid;grid-template-columns:auto minmax(0,1fr);gap:1px 6px;min-width:0
  }
  #tab-strategy #stratBody .selection-symbol>.symbol-avatar{grid-row:span 2}
  #tab-strategy #stratBody .selection-code{grid-column:2;justify-self:start;padding:1px 4px}
  #tab-strategy #stratBody .selection-name{grid-column:2;font-size:11px;color:var(--tx2)}
  #tab-strategy #stratBody .tagchip{padding:1px 4px;font-size:10px}
}
@media(pointer:coarse){
  #tab-strategy :is(.strategy-categories button,.strategy-picked-list button,#stratRun){min-height:40px}
}
/* Conditions share the strategy workspace toolbar and market-data table. */
#tab-screen .card,#tab-history .card{min-width:0;border-radius:4px}
:is(#tab-screen,#tab-history) .screen-heading{
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap
}
#tab-screen .screen-workspace .screen-heading h2,#tab-history .screen-heading h2{font-size:18px}
#tab-screen :is(.screen-sort,.screen-result-meta),#tab-history .history-meta{
  display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;color:var(--tx2);font-size:12px
}
#tab-screen .screen-sort select{min-width:94px}
#tab-screen .screen-presets{
  display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;padding:10px 16px;
  background:var(--bg2);border-bottom:1px solid var(--line)
}
#tab-screen .screen-presets>span{color:var(--tx2);font-size:12px;margin-right:4px}
#tab-screen .screen-presets .btn{min-height:30px;background:var(--card)}
#tab-screen .screen-presets .btn:hover{border-color:var(--accent-line)}
#tab-screen .screen-presets .btn.on{background:var(--accent-bg)}
#tab-screen .screen-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line)}
#tab-screen .screen-group{min-width:0;background:var(--card);padding:14px 16px 16px}
#tab-screen .screen-group h3{
  color:var(--accent-ink);background:var(--accent-bg);border-radius:3px;
  margin:0 0 12px;padding:5px 8px;font-size:12px;font-weight:600
}
#tab-screen .screen-group+.screen-group h3{color:var(--ok-on);background:var(--ok-bg)}
#tab-screen .screen-group .filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#tab-screen .screen-field-label{font-size:12px;color:var(--tx2);font-weight:400}
#tab-screen .screen-group .row span{flex:none;color:var(--tx3)}
#tab-screen .screen-group .fg>.row input{width:0}
#tab-screen .screen-group .fg>input{width:100%}
#tab-screen .screen-tool{border-top:1px solid var(--line)}
#tab-screen .screen-tool summary{
  display:flex;align-items:center;gap:8px;min-height:42px;padding:8px 16px;
  cursor:pointer;font-size:13px;font-weight:500;list-style:none
}
#tab-screen .screen-tool summary::-webkit-details-marker{display:none}
#tab-screen .screen-tool summary::before{
  content:'';width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;
  flex:none;margin:0 4px 0 1px;transform:rotate(-45deg)
}
#tab-screen .screen-tool[open] summary::before{transform:rotate(45deg)}
#tab-screen .screen-tool summary:hover,#tab-screen .screen-tool[open] summary{background:var(--bg2)}
#tab-screen .screen-tool summary:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
#tab-screen .screen-tool summary span{color:var(--tx2);font-size:11px;font-weight:400}
#tab-screen .screen-tool-body{padding:12px 16px}
#tab-screen #advBox{grid-template-columns:minmax(110px,.9fr) minmax(88px,.6fr) minmax(0,1.4fr) auto;align-items:end;gap:8px}
#tab-screen #advAdd{min-height:34px}
#tab-screen #advErr,#tab-screen #nlScreenNote{margin-top:8px;font-size:12px;color:var(--tx2)}
#tab-screen #advErr{color:var(--warn-on)}
#tab-screen .screen-intent-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#tab-screen #nlScreenInput{min-width:min(100%,210px);flex:1}
#tab-screen .advchips{
  display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0;padding:10px 16px;
  border-top:1px solid var(--line)
}
#tab-screen .advchip.advx{
  display:inline-flex;align-items:center;gap:6px;min-height:30px;max-width:100%;margin:0;
  padding:4px 8px;border:0;border-radius:4px;color:var(--accent-ink);background:var(--accent-bg);
  font:500 12px var(--chart-font);opacity:1;cursor:pointer;overflow-wrap:anywhere
}
#tab-screen .advchip.advx:hover{box-shadow:inset 0 0 0 1px currentColor}
#tab-screen .screen-submit{
  display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 16px;
  border-top:1px solid var(--line);background:var(--bg2)
}
#tab-screen .screen-submit #screenConditionCount{margin-right:auto;color:var(--tx2);font-size:12px}
#tab-screen #f_run{min-width:92px}
:root:not([data-theme="light"]) #tab-screen #f_run:not(:disabled){
  background:var(--accent-ink);border-color:var(--accent-ink);color:var(--card)
}
:root:not([data-theme="light"]) #tab-screen #f_run:not(:disabled):hover{
  background:color-mix(in srgb,var(--accent-ink) 85%,var(--tx))
}
#tab-screen #screenNotice{
  padding:8px 16px;border-bottom:1px solid var(--line);color:var(--warn-on);
  background:var(--warn-bg);font-size:12px
}
#tab-screen .screen-result-meta strong{color:var(--tx);font-variant-numeric:tabular-nums}
#tab-screen .screen-result-meta time{margin-left:6px}
#tab-screen .screen-rank{color:var(--tx2)}
#tab-screen .screen-stock-link{padding:2px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
#tab-screen .screen-stock-link:hover .selection-code{color:var(--accent-ink)}
#tab-screen #screenBody .starbtn{
  display:inline-grid;place-items:center;width:28px;height:28px;padding:0;
  border:0;border-radius:4px;background:transparent;color:var(--tx2);opacity:1
}
#tab-screen #screenBody .starbtn:hover{background:var(--bg2);color:var(--tx)}
#tab-screen #screenBody .starbtn.on{color:var(--warn-on)}
#tab-screen .screen-minute .idctl{
  display:grid;grid-template-columns:minmax(130px,1fr) max-content minmax(84px,.6fr) minmax(124px,1fr) minmax(62px,.45fr) auto;
  gap:10px;align-items:end
}
#tab-screen .screen-minute .idctl .fg{min-width:0}
#tab-screen .screen-minute .idctl .row input{width:0;min-width:0}
#tab-screen .screen-minute #idPerBtns .btn{padding-inline:8px;white-space:nowrap}
#tab-screen .screen-minute #idScan{min-height:34px}
#tab-screen .screen-minute-preset-note{
  margin:8px 0 0;color:var(--tx2);font-size:12px;line-height:1.6;overflow-wrap:anywhere
}
#tab-screen :is(.screen-minute-preset-note,.idstatus):empty{display:none}
#tab-screen .screen-minute .mktbadge.live{background:var(--ok-bg);color:var(--ok-on)}
#tab-screen .screen-minute .mktbadge.live .dot{background:var(--ok-on)}
#tab-screen .screen-minute .card-b.np{border-top:1px solid var(--line)}
#tab-screen .screen-minute .idnote:empty{display:none}
#tab-screen .screen-minute .minute-bull{color:var(--ok-on);background:var(--ok-bg)!important}
#tab-screen .screen-minute .minute-bear{color:var(--danger-on);background:var(--danger-bg)!important}
/* Dated history groups retain the desktop ledger and stack on compact screens. */
#tab-history .history-toolbar{background:var(--bg2);border-bottom:1px solid var(--line);padding:0 12px}
#tab-history .hisfilter{flex-wrap:nowrap;gap:0;margin:0;overflow-x:auto}
#tab-history .hisfilter .btn{
  flex:none;border:0;border-bottom:2px solid transparent;border-radius:0;
  padding:8px 12px;background:transparent;color:var(--tx2);min-height:40px
}
#tab-history .hisfilter .btn:hover{background:var(--card)}
#tab-history .hisfilter .btn:focus-visible{outline-offset:-3px}
#tab-history .hisfilter .btn.on{border-bottom-color:var(--accent);color:var(--accent-ink);background:var(--accent-bg)}
#tab-history [data-hf="strategy"].on{border-color:var(--selection-purple);color:var(--selection-purple);background:var(--selection-purple-bg)}
#tab-history [data-hf="screen"].on{border-color:var(--ok-on);color:var(--ok-on);background:var(--ok-bg)}
#tab-history .hist-columns,#tab-history .histcard{
  display:grid;grid-template-columns:58px 88px minmax(0,1fr) 66px 224px;
  gap:12px;align-items:center;padding:8px 16px
}
#tab-history .hist-columns{color:var(--tx2);font-size:11px}
#tab-history .history-day h3{
  margin:0;padding:7px 16px;background:var(--bg2);border-block:1px solid var(--line);
  color:var(--tx2);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums
}
#tab-history .histcard{
  margin:0;border:0;border-bottom:1px solid var(--line2);border-radius:0;background:var(--card);min-height:53px
}
#tab-history .histcard:hover,#tab-history .histcard:focus-within{background:color-mix(in srgb,var(--card) 75%,var(--bg2))}
#tab-history .history-day .histcard:last-child{border-bottom:0}
#tab-history .hc-time,#tab-history .hc-n{margin:0;color:var(--tx2);font-size:12px;font-variant-numeric:tabular-nums}
#tab-history .hc-title{min-width:0;font-size:13px;font-weight:500;overflow-wrap:anywhere}
#tab-history .hc-mod{justify-self:start;padding:3px 6px;border-radius:4px;font-size:11px;font-weight:500}
#tab-history .hc-mod[data-module="newbie"]{background:var(--accent-bg);color:var(--accent-ink)}
#tab-history .hc-mod[data-module="strategy"]{background:var(--selection-purple-bg);color:var(--selection-purple)}
#tab-history .hc-mod[data-module="screen"]{background:var(--ok-bg);color:var(--ok-on)}
#tab-history .hc-actions{display:flex;gap:6px;flex-wrap:wrap}
#tab-history .hc-actions [data-act="perf"]{border-color:var(--accent-line);color:var(--accent-ink);background:var(--accent-bg)}
#tab-history .hc-actions [data-act="perf"]:hover{border-color:var(--accent)}
#tab-history .hist-empty{text-align:center;background:var(--card)}
:is(#tab-screen,#tab-history) .empty a,#tab-screen #advErr a{
  color:var(--accent-ink);text-decoration:underline;text-underline-offset:2px
}
:is(#perfModal,#simModal) .sim-summary{gap:0;border-block:1px solid var(--line)}
:is(#perfModal,#simModal) .sim-card{
  border:0;border-right:1px solid var(--line);border-radius:0;background:var(--card)
}
:is(#perfModal,#simModal) .sim-up{color:var(--ok-on)}
:is(#perfModal,#simModal) .sim-down{color:var(--danger-on)}
@media(max-width:1200px){.selection-tv .filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1024px){
  #tab-screen .screen-minute .idctl{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:890px){
  #tab-screen .screen-groups{grid-template-columns:1fr}
}
@media(max-width:800px){.selection-tv .filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){
  #tab-history .hist-columns{display:none}
  #tab-history .histcard{
    grid-template-columns:max-content minmax(0,1fr) auto;
    grid-template-areas:"source . time" "title title count" "actions actions actions";
    gap:7px;padding:10px 12px
  }
  #tab-history .history-day h3{padding-inline:12px}
  #tab-history .hc-time{grid-area:time;justify-self:end}
  #tab-history .hc-mod{grid-area:source}
  #tab-history .hc-title{grid-area:title}
  #tab-history .hc-n{grid-area:count;justify-self:end}
  #tab-history .hc-actions{grid-area:actions}
}
@media(max-width:550px){
  .selection-tv .card-h,.selection-tv .card-b{padding:12px}
  .selection-tv .card-b.np{padding:0}
  .selection-tv .filters{grid-template-columns:1fr;gap:12px}
  .selection-tv .batchbar{flex-wrap:wrap}
  #tab-screen :is(.screen-presets,.screen-group,.screen-tool-body,.screen-submit){padding-inline:12px}
  #tab-screen .screen-presets>span{flex-basis:100%}
  #tab-screen .screen-group .filters{grid-template-columns:1fr}
  #tab-screen .screen-group .fg{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr);align-items:center}
  #tab-screen #advBox,#tab-screen .screen-minute .idctl{grid-template-columns:repeat(2,minmax(0,1fr))}
  #tab-screen #nlScreenInput{flex-basis:100%}
  #tab-screen .screen-minute #idPerBtns{flex-wrap:wrap}
  #tab-screen .screen-minute #idPerBtns .btn{padding-inline:5px}
  #screenBody .screen-result-table,#idScanBody .screen-minute-table,
  :is(#screenBody,#idScanBody) tbody{display:block;min-width:0}
  :is(#screenBody,#idScanBody) thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
  #screenBody thead .selallrow{visibility:hidden}
  :is(#screenBody,#idScanBody) tbody tr{
    display:grid;
    align-items:center;gap:2px 5px;padding:9px 10px;border-bottom:1px solid var(--line2)
  }
  #screenBody tbody tr{
    grid-template-columns:18px 28px minmax(0,1fr) minmax(0,1fr) minmax(52px,auto);
    grid-template-areas:"check star symbol symbol price" "rank . symbol symbol change" ". . pe pb rating" ". . amount cap turnover"
  }
  #idScanBody tbody tr{
    grid-template-columns:22px minmax(0,1fr) minmax(0,1fr) minmax(68px,auto);
    grid-template-areas:"rank symbol symbol price" ". symbol symbol change" ". ratio surge position" ". averages flags flags"
  }
  #tab-screen :is(#screenBody,#idScanBody) td{padding:0;height:auto;min-width:0;border:0;line-height:1.4}
  #screenBody td:nth-child(1){grid-area:check}
  #screenBody td:nth-child(2){grid-area:rank;font-size:10px}
  #screenBody td:nth-child(3){grid-area:star}
  #screenBody td:nth-child(4){grid-area:symbol}
  #screenBody td:nth-child(5){grid-area:price;font-weight:600}
  #screenBody td:nth-child(6){grid-area:change}
  #screenBody td:nth-child(7){grid-area:pe}
  #screenBody td:nth-child(8){grid-area:pb}
  #screenBody td:nth-child(9){grid-area:cap}
  #screenBody td:nth-child(10){grid-area:amount}
  #screenBody td:nth-child(11){grid-area:turnover}
  #screenBody td:nth-child(12){grid-area:rating}
  #idScanBody td:nth-child(1){grid-area:rank}
  #idScanBody td:nth-child(2){grid-area:symbol}
  #idScanBody td:nth-child(3){grid-area:price;font-weight:600}
  #idScanBody td:nth-child(4){grid-area:change}
  #idScanBody td:nth-child(5){grid-area:ratio}
  #idScanBody td:nth-child(6){grid-area:surge}
  #idScanBody td:nth-child(7){grid-area:position}
  #idScanBody td:nth-child(8){grid-area:averages}
  #idScanBody td:nth-child(9){grid-area:flags}
  #tab-screen :is(#screenBody,#idScanBody) td[data-field]{text-align:left;font-size:11px;white-space:normal;overflow-wrap:anywhere}
  :is(#screenBody,#idScanBody) td[data-field]::before{content:attr(data-field);display:block;color:var(--tx2);font-size:10px}
  #tab-screen :is(#screenBody,#idScanBody) .screen-stock-link{width:100%}
  #tab-screen :is(#screenBody,#idScanBody) .selection-symbol{
    display:grid;grid-template-columns:auto minmax(0,1fr);gap:1px 6px;min-width:0
  }
  #tab-screen :is(#screenBody,#idScanBody) .selection-symbol>.symbol-avatar{grid-row:span 2}
  #tab-screen :is(#screenBody,#idScanBody) .selection-code{grid-column:2;justify-self:start;padding:1px 4px}
  #tab-screen :is(#screenBody,#idScanBody) .selection-name{grid-column:2;font-size:11px;color:var(--tx2)}
  #tab-history .history-toolbar{padding-inline:4px}
  #tab-history .hisfilter .btn{padding-inline:8px}
}
@media(pointer:coarse){
  :is(#tab-screen,#tab-history) :is(.screen-submit .btn,.hc-actions .btn){min-height:38px}
}
@media(prefers-reduced-motion:reduce){#tab-newbie .nbcard{transition:none}}
@media(max-width:550px){#tab-newbie .nbresult-head .nbrh-l{flex-wrap:wrap;gap:6px;width:100%}#tab-newbie .nbresult-head .nbcount{flex-basis:100%;line-height:1.6}}

#tab-newbie .nb-coverage:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  border-bottom: 1px solid var(--line);
}
#tab-newbie .nb-market-coverage {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding: 7px 12px;
  border-inline-end: 1px solid var(--line2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
#tab-newbie .nb-market-coverage small { color: var(--tx3); font-size: 11px; }
#tab-newbie .nb-ccy { color: var(--tx3); font-size: 10px; }
