/* ===== 顏色：改這一段就能換風格 ===== */
:root {
  --bg: #010816;
  --cyan: #35d0ff;
  --cyan-2: #1a9dff;
  --ice: #bff0ff;
  --text: #d8ecff;
  --muted: #7fa2c8;
  --dim: #4a6a92;
  --line: rgba(70, 170, 255, .26);
  --gold: #ffd166;
  --up: #ff4d6a;      /* 漲：紅（台灣習慣） */
  --down: #2ee6a6;    /* 跌：綠 */
  --warn: #ffb020;
  --num: 'Oswald', 'Rajdhani', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
  font-family: 'Noto Sans TC', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
.up { color: var(--up); }
.down { color: var(--down); }
.dim { color: var(--dim); }

/* ===== 1920×1080 畫布，等比縮放 ===== */
#viewport { position: fixed; inset: 0; overflow: hidden; background: var(--bg); }
#stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform: translate(-50%, -50%); transform-origin: center center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 48%, #0a2a5c 0%, #061a3d 30%, #030d22 65%, #010612 100%); }
#gl { position: absolute; inset: 0; width: 1920px; height: 1080px; display: block; cursor: grab; }
#gl:active { cursor: grabbing; }
#scan { position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(120, 200, 255, .025) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 4, 14, .75) 100%); }
#labels { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
#loading { position: absolute; left: 0; right: 0; top: 500px; text-align: center; font-size: 16px; letter-spacing: 3px; color: var(--ice);
  opacity: 0; transition: opacity .3s; pointer-events: none; text-shadow: 0 0 10px var(--cyan); }
#loading.on { opacity: 1; }

/* ===== 標題列 ===== */
#hdr { position: absolute; left: 0; top: 0; width: 1920px; height: 100px; z-index: 2;
  background: linear-gradient(180deg, rgba(3, 22, 58, .92), rgba(3, 18, 46, 0)); }
.hdr-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hdr-title { position: absolute; left: 560px; width: 800px; top: 6px; text-align: center; }
.hdr-title h1 { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 32px; font-weight: 900; letter-spacing: 6px; line-height: 50px;
  background: linear-gradient(180deg, #ffffff 20%, #9adfff 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(60, 170, 255, .55)); }
.hdr-sub { font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 7px; color: #6fb8ec; margin-top: 2px; }
.hdr-tabs { position: absolute; top: 14px; left: 24px; display: flex; gap: 6px; }
.hdr-tabs a { position: relative; display: block; padding: 0 22px; height: 32px; line-height: 32px; font-size: 15px; color: #9cc3e8;
  letter-spacing: 1px; cursor: pointer; }
.hdr-tabs a::before { content: ''; position: absolute; inset: 0; transform: skewX(-24deg);
  border: 1px solid rgba(70, 170, 255, .35); background: linear-gradient(180deg, rgba(20, 70, 150, .35), rgba(10, 30, 70, .2)); z-index: -1; }
.hdr-tabs a.on { color: #fff; font-weight: 700; }
.hdr-tabs a.on::before { background: linear-gradient(180deg, rgba(40, 140, 255, .75), rgba(20, 70, 170, .45)); border-color: #5fc8ff;
  box-shadow: 0 0 14px rgba(60, 170, 255, .6), inset 0 0 8px rgba(160, 230, 255, .4); }
.hdr-meta { position: absolute; right: 16px; top: 16px; display: flex; align-items: center; gap: 6px; }
.clock { font-family: var(--num); font-size: 17px; letter-spacing: .5px; color: #cfe8ff; }
.clock small { font-family: 'Noto Sans TC'; font-size: 13px; color: var(--muted); margin: 0 4px; }
.env { font-size: 12px; padding: 3px 8px; border: 1px solid rgba(255, 209, 102, .6); color: var(--gold); border-radius: 2px; letter-spacing: 1px; }
.mk { font-size: 12px; padding: 3px 8px; border: 1px solid rgba(70, 170, 255, .35); color: var(--muted); border-radius: 2px; white-space: nowrap; }
.mk.open { border-color: rgba(46, 230, 166, .6); color: var(--down); }
.mk.open::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--down);
  box-shadow: 0 0 8px var(--down); animation: pulse 1.2s infinite; }

/* ===== 面板 ===== */
.panel { position: absolute; z-index: 1; background: linear-gradient(180deg, rgba(6, 30, 70, .80), rgba(3, 16, 42, .74));
  border: 1px solid var(--line); box-shadow: inset 0 0 32px rgba(30, 120, 255, .13); backdrop-filter: blur(2px); }
.panel::before { content: ''; position: absolute; inset: -1px; pointer-events: none;
  --c: var(--cyan); --l: 16px; --w: 2px;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) left top / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--w) var(--l) no-repeat;
  filter: drop-shadow(0 0 4px rgba(53, 208, 255, .8)); }
.ph { position: relative; height: 36px; line-height: 36px; padding-left: 30px; font-size: 17px; font-weight: 700; letter-spacing: 2px;
  background: linear-gradient(90deg, rgba(30, 120, 255, .5), rgba(30, 120, 255, .08) 65%, transparent); color: #fff;
  text-shadow: 0 0 8px rgba(90, 190, 255, .7); white-space: nowrap; }
.ph::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(53, 208, 255, .15) 60%, transparent); }
.ph i { position: absolute; left: 10px; top: 11px; width: 10px; height: 14px; background: var(--cyan);
  clip-path: polygon(0 0, 100% 50%, 0 100%); box-shadow: 0 0 8px var(--cyan); }
.ph-en { margin-left: 12px; font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 3px; color: rgba(150, 200, 240, .45); text-shadow: none; }
.ph-right { position: absolute; right: 14px; top: 0; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); text-shadow: none; }
.chart { position: relative; }

/* 位置（1920×1080） */
#p-idx     { left: 24px;   top: 104px; width: 440px; height: 250px; }
#p-trend   { left: 24px;   top: 366px; width: 440px; height: 240px; }
#p-signal  { left: 24px;   top: 618px; width: 440px; height: 222px; }
#p-breadth { left: 24px;   top: 852px; width: 440px; height: 204px; }
#p-follow  { left: 500px;  top: 790px; width: 453px; height: 266px; }
#p-sell    { left: 967px;  top: 790px; width: 453px; height: 266px; }
#p-top     { left: 1456px; top: 104px; width: 440px; height: 380px; }
#p-movers  { left: 1456px; top: 496px; width: 440px; height: 236px; }
#p-world   { left: 1456px; top: 744px; width: 440px; height: 312px; }
#f-ind     { left: 500px;  top: 222px; width: 262px; }
#f-feed    { left: 1158px; top: 222px; width: 262px; }

/* 六角圖示 */
.hex { position: relative; flex: none; width: 46px; height: 52px; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: radial-gradient(circle at 50% 40%, rgba(80, 190, 255, .55), rgba(20, 80, 170, .35)); }
.hex::after { content: ''; position: absolute; inset: 2px; clip-path: inherit; background: rgba(4, 22, 56, .88); }
.hex svg { position: relative; z-index: 1; width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.8; filter: drop-shadow(0 0 4px rgba(53, 208, 255, .8)); }

/* 指數方塊 */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px 0; }
.tile { display: flex; align-items: center; gap: 10px; height: 92px; padding: 0 8px; cursor: pointer; border: 1px solid transparent; }
.tile:hover { background: rgba(40, 130, 255, .08); }
.tile.on { border-color: rgba(90, 190, 255, .5); background: linear-gradient(180deg, rgba(40, 130, 255, .18), rgba(40, 130, 255, .04)); }
.tile .lb { font-size: 13px; color: var(--muted); white-space: nowrap; }
.tile .v { white-space: nowrap; font-family: var(--num); font-size: 25px; font-weight: 500; color: #fff; line-height: 1.15; letter-spacing: .5px; }
.tile .d { font-family: var(--num); font-size: 13px; }
.tiles.four .tile { height: 92px; }

/* 圖例 */
.legend-inline { position: absolute; right: 14px; top: 44px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; z-index: 2; }
.lg { display: inline-block; width: 12px; height: 3px; margin-left: 8px; }
.lg.c1 { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.lg.c2 { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.lg.c3 { background: var(--up); height: 8px; width: 8px; }
.lg.c4 { background: var(--down); height: 8px; width: 8px; }

.split { display: flex; align-items: center; padding: 4px 8px 0 4px; }
.split2 { display: grid; grid-template-columns: 1fr 1fr; padding: 26px 6px 0; }
.temp { flex: 1; display: flex; flex-direction: column; align-items: center; }
.temp-stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; text-align: center; margin-top: -4px; }
.temp-stats div { font-size: 12px; color: var(--muted); }
.temp-stats b { display: block; font-family: var(--num); font-weight: 500; font-size: 20px; color: #fff; }
.temp-stats b.up { color: var(--up); } .temp-stats b.down { color: var(--down); }

/* ===== 中間 KPI ===== */
#kpis { position: absolute; z-index: 1; left: 500px; top: 104px; width: 920px; height: 96px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 12px;
  background: linear-gradient(90deg, rgba(20, 90, 200, .32), rgba(10, 40, 100, .08)); border-left: 2px solid var(--cyan); }
.kpi::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); }
.kpi .hex { width: 52px; height: 58px; }
.kpi .hex svg { width: 26px; height: 26px; }
.kpi .lb { font-size: 14px; color: #a9cdef; letter-spacing: 1px; white-space: nowrap; }
.kpi .v { font-family: var(--num); font-size: 32px; font-weight: 500; color: #fff; line-height: 1.1; letter-spacing: .5px; white-space: nowrap; }
.kpi .v small { font-family: 'Noto Sans TC'; font-size: 14px; color: var(--muted); margin-left: 3px; }
.delta { font-family: var(--num); font-size: 13px; padding: 0 5px; border-radius: 2px; margin-left: 6px; vertical-align: 3px; }
.delta.up { color: var(--up); background: rgba(255, 77, 106, .12); }
.delta.down { color: var(--down); background: rgba(46, 230, 166, .12); }

/* ===== 右欄 ===== */
.hot-list { padding: 8px 14px; }
.hot { display: grid; grid-template-columns: 26px 1fr 84px 34px; align-items: center; gap: 10px; height: 32px; cursor: pointer; }
.hot:hover .nm { color: #fff; }
.hot .rk { width: 22px; height: 18px; line-height: 18px; text-align: center; font-family: var(--num); font-size: 13px; color: #cfe8ff;
  background: rgba(70, 170, 255, .2); clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%); }
.hot:nth-child(1) .rk { background: linear-gradient(90deg, #d19a1c, var(--gold)); color: #1b1200; }
.hot:nth-child(2) .rk, .hot:nth-child(3) .rk { background: linear-gradient(90deg, #1a6dff, var(--cyan)); color: #001a33; }
.hot .nm { font-size: 13px; color: #cfe5fb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot .nm b { font-family: var(--num); font-weight: 500; color: #fff; margin-right: 6px; }
.bar { height: 5px; background: rgba(70, 170, 255, .12); position: relative; }
.bar b { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #1a6dff, var(--cyan)); box-shadow: 0 0 6px var(--cyan); }
.hot:nth-child(1) .bar b { background: linear-gradient(90deg, #d19a1c, var(--gold)); box-shadow: 0 0 6px var(--gold); }
.hot .n { font-family: var(--num); font-size: 17px; text-align: right; color: #fff; }

.movers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 8px 14px 0; }
.movers > div { min-width: 0; }
.mv-h { font-size: 12px; letter-spacing: 1px; margin-bottom: 2px; }
.mv { display: flex; justify-content: space-between; gap: 6px; height: 34px; align-items: center; border-bottom: 1px dashed rgba(90, 170, 255, .15); cursor: pointer; font-size: 13px; }
.mv span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #cfe5fb; }
.mv span:last-child { font-family: var(--num); font-size: 15px; }

.world { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; padding: 6px 14px 0; }
.kv { min-width: 0; display: flex; justify-content: space-between; align-items: baseline; height: 38px; font-size: 13px; color: var(--muted); border-bottom: 1px dashed rgba(90, 170, 255, .12); }
.kv span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv b { font-family: var(--num); font-weight: 500; font-size: 16px; }

/* 新聞・社群 */
.nw-tabs { display: flex; gap: 4px; top: 6px; }
.nw-tabs a { height: 24px; line-height: 22px; padding: 0 10px; font-size: 12px; border: 1px solid rgba(90, 180, 255, .35); color: #9cc3e8; cursor: pointer; }
.nw-tabs a.on { background: linear-gradient(180deg, rgba(40, 140, 255, .75), rgba(20, 70, 170, .45)); border-color: #5fc8ff; color: #fff; }
.newsbox { padding: 6px 14px 0; }
.nw-item { display: grid; grid-template-columns: 22px 1fr; column-gap: 6px; padding: 5px 0; border-bottom: 1px dashed rgba(90, 170, 255, .15); font-size: 13px; }
.nw-item a { color: #d6ebff; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.nw-item a:hover { color: #fff; text-decoration: underline; }
.nw-meta { grid-column: 2; font-size: 11px; color: var(--dim); }
.nw-meta em { font-style: normal; color: var(--cyan); margin-right: 6px; cursor: pointer; }
.nw-src { font-size: 11px; color: var(--dim); margin-bottom: 2px; }
.nw-soc { display: grid; grid-template-columns: 22px minmax(0, 1fr) 54px 50px; gap: 8px; align-items: center; height: 26px; font-size: 13px; cursor: pointer;
  border-bottom: 1px dashed rgba(90, 170, 255, .12); }
.nw-soc .rk { font-family: var(--num); color: var(--muted); font-size: 12px; }
.nw-soc .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #cfe5fb; }
.nw-soc .nm b { font-family: var(--num); font-weight: 500; color: #fff; margin-right: 6px; }
.nw-soc .n { text-align: right; font-family: var(--num); color: #fff; }
.nw-soc .chg { text-align: right; font-family: var(--num); }
.st { display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center; font-style: normal; font-size: 11px; margin-top: 1px; }
.st.pos { background: rgba(255, 77, 106, .2); color: var(--up); border: 1px solid rgba(255, 77, 106, .5); }
.st.neg { background: rgba(46, 230, 166, .15); color: var(--down); border: 1px solid rgba(46, 230, 166, .45); }
.st.neu { color: var(--dim); border: 1px solid rgba(127, 162, 200, .3); }
.d-news { list-style: none; margin-top: 4px; }
.d-news li { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; padding: 4px 0; font-size: 13px; border-bottom: 1px dashed rgba(90, 170, 255, .12); }
.d-news a { color: #d6ebff; text-decoration: none; }
.d-news a:hover { text-decoration: underline; color: #fff; }
.d-h .small { font-size: 11px; font-weight: 400; margin-left: 6px; }

/* ===== 中間浮動 ===== */
.float-box { position: absolute; z-index: 2; padding: 10px 12px 8px; background: linear-gradient(180deg, rgba(4, 22, 56, .82), rgba(4, 20, 50, .55));
  border-top: 1px solid rgba(90, 190, 255, .55); border-bottom: 1px solid rgba(90, 190, 255, .18); }
.fb-h { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 1px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.fb-h span.sub { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: auto; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--down); box-shadow: 0 0 8px var(--down); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.rg { display: grid; grid-template-columns: 18px 1fr 50px 52px; gap: 6px; align-items: center; height: 26px; font-size: 13px; }
.rg .i { font-family: var(--num); color: var(--muted); font-size: 12px; }
.rg .nm { color: #d6ebff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg .pb { height: 4px; background: rgba(70, 170, 255, .14); position: relative; }
.rg .pb b { position: absolute; top: 0; bottom: 0; }
.rg .pb b.up { left: 0; background: var(--up); box-shadow: 0 0 6px var(--up); }
.rg .pb b.down { left: 0; background: var(--down); box-shadow: 0 0 6px var(--down); }
.rg .n { font-family: var(--num); text-align: right; }
.feed { height: 330px; overflow: hidden; }
.fd { display: grid; grid-template-columns: 1fr auto; row-gap: 1px; padding: 6px 0; border-bottom: 1px dashed rgba(90, 170, 255, .15);
  animation: slideIn .45s ease; font-size: 12px; cursor: pointer; }
.fd .pl { color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd .tg { font-size: 11px; padding: 0 6px; border: 1px solid; height: 18px; line-height: 16px; }
.fd .tg.buy { color: var(--up); border-color: rgba(255, 77, 106, .6); background: rgba(255, 77, 106, .12); }
.fd .tg.sell { color: var(--down); border-color: rgba(46, 230, 166, .5); background: rgba(46, 230, 166, .1); }
.fd .dt { grid-column: 1 / 3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); background: rgba(53, 208, 255, .18); } to { opacity: 1; transform: none; } }

/* 地球上的標籤 */
.lbl { position: absolute; transform: translate(-50%, -100%); white-space: nowrap; pointer-events: none; transition: opacity .3s; }
.lbl .box { padding: 3px 9px 4px; background: linear-gradient(180deg, rgba(10, 60, 140, .85), rgba(6, 30, 80, .75)); border: 1px solid rgba(110, 210, 255, .7);
  box-shadow: 0 0 12px rgba(53, 208, 255, .45); font-size: 13px; color: #fff; }
.lbl .box b { font-family: var(--num); font-weight: 500; margin-left: 6px; }
.lbl.main .box { border-color: rgba(255, 209, 102, .85); box-shadow: 0 0 14px rgba(255, 209, 102, .5); font-size: 14px; }
.lbl .stem { width: 1px; height: 14px; margin: 0 auto; background: linear-gradient(180deg, rgba(110, 210, 255, .9), transparent); }

/* 切換鈕 */
#switcher { position: absolute; z-index: 2; left: 500px; width: 920px; top: 728px; display: flex; justify-content: center; align-items: center; gap: 18px; }
#switcher button { position: relative; width: 196px; height: 48px; border: 0; background: none; color: #a9cdef; font: 700 17px 'Noto Sans TC'; letter-spacing: 3px; cursor: pointer; }
#switcher button::before { content: ''; position: absolute; inset: 0; clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
  background: linear-gradient(180deg, rgba(20, 70, 150, .6), rgba(8, 30, 70, .6)); }
#switcher button::after { content: ''; position: absolute; inset: 1px; clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
  box-shadow: inset 0 0 0 1px rgba(90, 180, 255, .5); }
#switcher button span { position: relative; z-index: 1; }
#switcher button.on { color: #fff; text-shadow: 0 0 8px rgba(150, 220, 255, .9); }
#switcher button.on::before { background: linear-gradient(180deg, rgba(40, 150, 255, .85), rgba(14, 70, 180, .7)); filter: drop-shadow(0 0 10px rgba(53, 208, 255, .9)); }

/* 本月候選 */
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 12px 14px 0; }
.picks > p { grid-column: 1 / -1; color: var(--muted); font-size: 14px; padding-top: 30px; text-align: center; }
.pick { position: relative; padding: 10px 12px; height: 124px; cursor: pointer; overflow: hidden;
  background: linear-gradient(180deg, rgba(30, 110, 230, .18), rgba(10, 40, 100, .08)); border: 1px solid rgba(70, 170, 255, .22); }
.pick:hover { border-color: var(--cyan); }
.pick.first { background: linear-gradient(180deg, rgba(255, 209, 102, .12), rgba(30, 90, 200, .08)); border-color: rgba(255, 209, 102, .35); }
.pick .top { display: flex; align-items: baseline; justify-content: space-between; }
.pick .nm { font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .nm b { font-family: var(--num); font-weight: 500; margin-right: 6px; }
.pick .sc { font-family: var(--num); font-size: 30px; color: var(--gold); line-height: 1; }
.pick .sc small { font-size: 12px; color: var(--muted); font-family: 'Noto Sans TC'; margin-left: 2px; }
.pick .alloc { font-size: 13px; color: var(--ice); margin: 6px 0 4px; }
.pick .alloc b { font-family: var(--num); font-weight: 500; }
.pick .why { font-size: 12px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== 彈出層：完整排行、個股 K 線 ===== */
/* 彈窗：外框固定（最高到畫面高度），標題列不動，只有內容在框內捲動 */
.overlay { position: fixed; inset: 0; z-index: 20; background: rgba(0, 4, 14, .72); display: flex; justify-content: center; align-items: center;
  padding: 40px 16px; overflow: hidden; }
.overlay[hidden] { display: none; }
.sheet { position: relative; width: 100%; max-width: 1280px; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px);
  display: flex; flex-direction: column; }
.sheet > .ph, .pf-dialog > .ph { flex: none; }
.sheet > .sheet-body, .pf-dialog > .sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(90, 180, 255, .4) transparent; }
:is(.sheet, .pf-dialog) > .sheet-body::-webkit-scrollbar { width: 6px; }
:is(.sheet, .pf-dialog) > .sheet-body::-webkit-scrollbar-thumb { background: rgba(90, 180, 255, .4); border-radius: 3px; }
#rank-modal .filters { position: sticky; top: -14px; z-index: 2; margin: -14px -14px 10px; padding: 14px 14px 10px; background: #0a1c3c; }
.sheet.narrow { max-width: 920px; }
.sheet .x, .au-dialog .x { position: absolute; right: 10px; top: 0; height: 36px; border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.sheet .x:hover, .au-dialog .x:hover { color: #fff; }
.sheet-body { padding: 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.filters input { flex: 1 1 200px; height: 32px; padding: 0 10px; border: 1px solid rgba(90, 180, 255, .4); background: rgba(4, 22, 56, .8); color: var(--text); font: inherit; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 12px; border: 1px solid rgba(90, 180, 255, .3); background: rgba(20, 70, 150, .25); color: #9cc3e8; font-size: 13px; cursor: pointer; }
.chip.on { background: linear-gradient(180deg, rgba(40, 140, 255, .75), rgba(20, 70, 170, .45)); border-color: #5fc8ff; color: #fff; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px; border-bottom: 1px dashed rgba(90, 170, 255, .12); white-space: nowrap; font-size: 14px; }
.num { text-align: right; font-family: var(--num); }
tbody tr { cursor: pointer; }
tbody tr:hover { background: rgba(40, 130, 255, .1); }
.stock-code { font-family: var(--num); font-weight: 500; color: #fff; }
.stock-name { color: #cfe5fb; font-size: 13px; margin-left: 6px; }
.scorebar { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.scorebar .bar { flex: 1; }
.scorebar b { width: 30px; text-align: right; font-family: var(--num); font-weight: 500; color: #fff; }
.badge { display: inline-block; padding: 0 8px; height: 20px; line-height: 18px; font-size: 12px; border: 1px solid; }
.badge.buy { color: var(--up); border-color: rgba(255, 77, 106, .6); background: rgba(255, 77, 106, .12); }
.badge.sell { color: var(--down); border-color: rgba(46, 230, 166, .5); background: rgba(46, 230, 166, .1); }
.badge.hold, .badge.illiquid { color: var(--muted); border-color: rgba(127, 162, 200, .4); }
.mini { height: 28px; padding: 0 14px; background: rgba(20, 70, 150, .45); border: 1px solid rgba(90, 180, 255, .5); color: #cfe8ff; font-size: 13px; cursor: pointer; }
.mini:hover { background: rgba(40, 140, 255, .55); }

.d-sub { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.legend-k { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
#chart { height: 380px; margin-top: 6px; }
.breakdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.breakdown div { text-align: center; padding: 6px 0 4px; background: linear-gradient(180deg, rgba(40, 130, 255, .18), rgba(40, 130, 255, .04)); border: 1px solid rgba(70, 170, 255, .2); }
.breakdown b { display: block; font-family: var(--num); font-size: 24px; font-weight: 500; color: #fff; }
.breakdown div:first-child b { color: var(--gold); }
.breakdown span { font-size: 12px; color: var(--muted); }
.d-h { margin: 16px 0 6px; font-size: 14px; font-weight: 700; color: #fff; }
.reasons { list-style: none; }
.reasons li { padding: 5px 0; font-size: 14px; border-bottom: 1px dashed rgba(90, 170, 255, .12); }
.reasons li::before { display: inline-block; width: 22px; font-weight: 700; }
.reasons li.pos::before { content: "＋"; color: var(--up); }
.reasons li.neg::before { content: "－"; color: var(--down); }
.reasons li.neu::before { content: "・"; color: var(--muted); }
.hint { margin-top: 12px; font-size: 11px; color: var(--dim); line-height: 1.5; }

/* 基本面與籌碼數字 */
.facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.facts div { padding: 6px 8px; background: rgba(40, 130, 255, .08); border: 1px solid rgba(70, 170, 255, .16); min-width: 0; }
.facts span { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.facts b { font-family: var(--num); font-weight: 500; font-size: 17px; color: #fff; }
.facts b.up { color: var(--up); } .facts b.down { color: var(--down); }

/* 策略回測 */
.bt-gen { right: 48px; }
.bt-rule { font-size: 14px; color: var(--ice); line-height: 1.7; padding: 10px 12px; margin-bottom: 12px;
  background: linear-gradient(90deg, rgba(30, 120, 255, .18), transparent); border-left: 2px solid var(--cyan); }
.bt-rule b { color: #fff; }
.bt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bt-card { border: 1px solid var(--line); background: rgba(3, 16, 42, .6); padding: 10px 12px; min-width: 0; overflow-x: auto; }
.bt-card h3 { font-size: 15px; color: #fff; letter-spacing: 1px; margin-bottom: 4px; }
.bt-card h3 small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; letter-spacing: 0; }
.bt-chart { height: 260px; }
.bt-verdict { font-size: 13px; color: var(--ice); margin: 2px 0 4px; line-height: 1.6; }
.bt-verdict b { color: var(--warn); font-weight: 500; }
.bt-table { width: 100%; margin-top: 6px; }
.bt-table th, .bt-table td { padding: 5px 6px; font-size: 13px; }
.bt-table td.num b { font-weight: 500; color: #fff; }
.bt-table .win { color: var(--gold); }
.bt-dca { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; text-align: center; }
.bt-dca div { padding: 8px 4px; background: linear-gradient(180deg, rgba(40, 130, 255, .18), rgba(40, 130, 255, .04)); border: 1px solid rgba(70, 170, 255, .2); }
.bt-dca span { display: block; font-size: 12px; color: var(--muted); }
.bt-dca b { font-family: var(--num); font-weight: 500; font-size: 20px; color: #fff; }
.bt-notes { margin-top: 14px; padding-left: 18px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.bt-notes b { color: var(--warn); font-weight: 500; }
details.bt-more { margin-top: 12px; font-size: 13px; color: var(--muted); }
details.bt-more summary { cursor: pointer; color: #9cc3e8; }

/* 真實成績單 */
.sc-box { padding: 10px 12px; margin-bottom: 14px; border: 1px solid rgba(53, 208, 255, .45);
  background: linear-gradient(180deg, rgba(53, 208, 255, .1), rgba(30, 90, 200, .04)); }
.sc-h { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.sc-h small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.sc-picks span { margin-right: 12px; cursor: pointer; white-space: nowrap; }
.sc-picks b { font-family: var(--num); font-weight: 500; }
.sc-live { font-size: 11px; color: var(--gold); border: 1px solid rgba(255, 209, 102, .5); padding: 0 4px; }
.bt-table .lose { color: var(--muted); }

/* 我的持股 */
.pf-plan { padding: 12px 14px; margin-bottom: 14px; border: 1px solid rgba(255, 209, 102, .35);
  background: linear-gradient(180deg, rgba(255, 209, 102, .08), rgba(30, 90, 200, .06)); }
.pf-plan-h { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.pf-plan-h span { font-size: 12px; font-weight: 400; margin-left: 6px; }
.pf-step { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px dashed rgba(90, 170, 255, .15); font-size: 14px; }
.pf-step > b { font-size: 18px; color: var(--gold); }
.pf-step-t { font-weight: 700; color: #fff; margin-bottom: 2px; }
.pf-step ul { list-style: none; }
.pf-step li { padding: 2px 0; cursor: pointer; }
.pf-step li:hover { color: #fff; }
.pf-step li b { font-family: var(--num); font-weight: 500; color: var(--gold); font-size: 16px; }
.pf-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-bottom: 12px; }
.pf-card { padding: 10px 12px; background: linear-gradient(180deg, rgba(40, 130, 255, .16), rgba(40, 130, 255, .04)); border: 1px solid rgba(70, 170, 255, .22); }
.pf-card-h { font-weight: 700; color: #fff; margin-bottom: 4px; }
.pf-card div:not(.pf-card-h) { display: flex; justify-content: space-between; font-size: 13px; padding: 2px 0; color: var(--muted); }
.pf-card b { font-family: var(--num); font-weight: 500; font-size: 15px; color: #fff; }
.pf-card b.up { color: var(--up); } .pf-card b.down { color: var(--down); }
.pf-h { font-size: 14px; font-weight: 700; color: #fff; margin: 14px 0 6px; }
.pf-table { width: 100%; }
.pf-table td { font-size: 13px; }
.pf-table .small { font-size: 11px; }
.pf-table .acts { white-space: nowrap; text-align: right; }
.pf-table .acts .mini { height: 24px; padding: 0 8px; margin-left: 4px; }
.mini.ghost { background: none; border-color: rgba(127, 162, 200, .35); color: var(--muted); }
.adv { display: inline-block; padding: 0 8px; height: 20px; line-height: 18px; font-size: 12px; border: 1px solid; }
.adv.keep { color: var(--cyan); border-color: rgba(53, 208, 255, .5); background: rgba(53, 208, 255, .1); }
.adv.switch { color: var(--warn); border-color: rgba(255, 176, 32, .55); background: rgba(255, 176, 32, .1); }
.adv.neu { color: var(--muted); border-color: rgba(127, 162, 200, .4); }
.pf-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 8px; padding: 10px 12px; border: 1px dashed rgba(90, 170, 255, .3); }
.pf-add .pf-h { width: 100%; margin: 0; }
.pf-add label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.pf-add input { height: 30px; padding: 0 8px; border: 1px solid rgba(90, 180, 255, .4); background: rgba(4, 22, 56, .8); color: var(--text); font: inherit; font-size: 14px; }
.pf-add #pf-code { width: 240px; }
.pf-add #pf-shares, .pf-add #pf-price { width: 110px; }
.pf-add .mini { height: 30px; }
.pf-msg { font-size: 13px; color: var(--down); }
.pf-msg.bad { color: var(--up); }
.pf-quick { float: right; margin-top: -2px; }
.pick.held::after { content: "已持有"; position: absolute; right: 8px; bottom: 6px; font-size: 11px; color: var(--cyan);
  border: 1px solid rgba(53, 208, 255, .5); padding: 0 6px; background: rgba(4, 22, 56, .9); }

/* 一鍵下單 */
.pf-cash { float: right; font-size: 13px; font-weight: 500; color: var(--gold); }
.pf-exec { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 0 4px 36px; }
.big { position: relative; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  min-width: 230px; padding: 10px 18px; border: 1px solid; cursor: pointer; text-align: left; font: inherit; }
.big span { grid-row: 1 / 3; font-size: 18px; font-weight: 900; letter-spacing: 2px; color: #fff; }
.big small { font-size: 12px; color: var(--muted); }
.big b { font-family: var(--num); font-weight: 500; font-size: 22px; line-height: 1.1; }
.big.sell { border-color: rgba(46, 230, 166, .7); background: linear-gradient(180deg, rgba(46, 230, 166, .22), rgba(46, 230, 166, .06)); box-shadow: 0 0 14px rgba(46, 230, 166, .25); }
.big.sell b { color: var(--down); }
.big.buy { border-color: rgba(255, 77, 106, .75); background: linear-gradient(180deg, rgba(255, 77, 106, .25), rgba(255, 77, 106, .06)); box-shadow: 0 0 14px rgba(255, 77, 106, .3); }
.big.buy b { color: var(--up); }
.big:hover { filter: brightness(1.25); }
.pf-mode { font-size: 12px; padding: 2px 8px; border: 1px solid; }
.pf-mode.paper, .pf-mode-line.paper { color: var(--gold); border-color: rgba(255, 209, 102, .6); }
.pf-mode.live, .pf-mode-line.live { color: var(--up); border-color: rgba(255, 77, 106, .7); }
.pf-mode-line { display: inline-block; font-size: 13px; padding: 2px 10px; border: 1px solid; margin-bottom: 8px; }
.pf-confirm { position: fixed; inset: 0; z-index: 30; background: rgba(0, 4, 14, .75); display: flex; align-items: center; justify-content: center; padding: 40px 16px; overflow: hidden; }
.pf-confirm[hidden] { display: none; }
.pf-dialog { position: relative; width: 100%; max-width: 620px; background: #0d1b34; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px);
  display: flex; flex-direction: column; }
.pf-total { margin-top: 10px; font-size: 15px; text-align: right; }
.pf-total b { font-family: var(--num); font-weight: 500; font-size: 22px; color: #fff; }
.pf-dialog-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.pf-dialog-btns .mini { height: 36px; padding: 0 20px; font-size: 15px; }
.big-ok { background: linear-gradient(180deg, rgba(40, 150, 255, .85), rgba(14, 70, 180, .7)); border-color: #5fc8ff; color: #fff; font-weight: 700; }
.big-ok:disabled { opacity: .6; cursor: default; }
.pf-result { margin-top: 10px; font-size: 14px; }
.pf-result .ok { color: var(--down); font-weight: 700; }
.pf-result .bad { color: var(--up); }
.pf-result ul { list-style: none; margin-top: 4px; color: var(--text); }

/* 首頁：跟單區、建議賣出 */
.home-body { padding: 8px 14px 0; }
.hm-src { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-src b { font-family: var(--num); font-weight: 500; color: #fff; font-size: 14px; }
.hm-src b.keep { font-family: inherit; color: var(--cyan); }
.hm-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 44px 78px 64px; align-items: center; gap: 8px; height: 32px;
  font-size: 13px; border-bottom: 1px dashed rgba(90, 170, 255, .15); cursor: pointer; }
#sellbox .hm-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 70px 64px; }
.hm-row:hover .nm { color: #fff; }
.hm-row .rk { width: 20px; height: 18px; line-height: 18px; text-align: center; font-family: var(--num); font-size: 12px; color: #001a33;
  background: linear-gradient(90deg, #1a6dff, var(--cyan)); clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%); }
.hm-row .nm { color: #cfe5fb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-row .nm b { font-family: var(--num); font-weight: 500; color: #fff; margin-right: 6px; }
.hm-row .sc { font-family: var(--num); color: var(--gold); text-align: right; }
.hm-row .sc small { font-size: 10px; color: var(--muted); margin-left: 1px; }
.hm-row .qty { text-align: right; color: var(--muted); white-space: nowrap; }
.hm-row .qty b { font-family: var(--num); font-weight: 500; color: var(--gold); font-size: 15px; }
.hm-row .amt { text-align: right; font-family: var(--num); color: #fff; }
.hm-row .why { font-size: 12px; color: var(--warn); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-act { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.hm-act .big { min-width: 0; flex: 1; padding: 8px 14px; }
.hm-act .big span { font-size: 17px; }
.hm-act .big b { font-size: 21px; }
.hm-empty { color: var(--muted); font-size: 13.5px; line-height: 1.8; padding-top: 18px; text-align: center; }

/* ===== 手機／窄螢幕：改成直式堆疊，不載 3D 地球 ===== */
@media (max-width: 900px) {
  html, body { overflow: auto; height: auto; }
  #viewport { position: static; display: block; }
  #stage { position: relative; left: auto; top: auto; width: 100%; min-width: 0; height: auto; transform: none !important; overflow: visible; display: flex; flex-direction: column; gap: 12px; padding: 0 16px 24px; }
  #gl, #scan, #labels, #loading, .hdr-art { display: none; }
  #hdr, .panel, #kpis, .float-box, #switcher { position: relative; left: auto !important; top: auto !important; width: auto !important; height: auto !important; }
  #hdr { margin: 0 -16px; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
  .hdr-title, .hdr-tabs, .hdr-meta { position: static; width: auto; }
  .hdr-title h1 { font-size: 24px; letter-spacing: 3px; line-height: 32px; }
  .hdr-sub { letter-spacing: 3px; }
  .hdr-tabs { justify-content: center; }
  .hdr-meta { justify-content: center; flex-wrap: wrap; }
  #switcher button { width: 150px; }
  #kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 10px; min-width: 0; }
  .kpi .hex { display: none; }
  .kpi .v { font-size: 22px; }
  .kpi .v .delta { display: block; margin: 2px 0 0; width: fit-content; }
  .panel, #kpis, .float-box { min-width: 0; }
  .panel { padding-bottom: 12px; }
  .split { flex-direction: column; }
  .split2, .world { grid-template-columns: 1fr; }
  .picks { grid-template-columns: 1fr; }
  .pick { height: auto; }
  .tile { height: 72px; gap: 6px; padding: 0 4px; min-width: 0; }
  .tile .v { font-size: 20px; }
  .tile .hex { width: 36px; height: 42px; }
  .feed { height: auto; max-height: 330px; }
  .hide-sm { display: none; }
  .breakdown { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .bt-grid, .bt-dca { grid-template-columns: 1fr; }
  .sheet .ph-en { display: none; }
  .panel > .ph .ph-right { display: none; }
  .panel > .ph .ph-right.nw-tabs { display: flex; }
  .panel > .ph .ph-en { display: none; }
  .pf-add #pf-code { width: 100%; }
  .pf-exec { padding-left: 0; }
  .big { min-width: 0; width: 100%; }
  .pf-cash { float: none; display: block; margin-top: 4px; }
  .pf-add label { flex: 1 1 40%; }
  .pf-add #pf-shares, .pf-add #pf-price, .pf-add #pf-date { width: 100%; }
  .bt-table th, .bt-table td { padding: 5px 3px; font-size: 12px; }
  #chart { height: 300px; }
  .overlay, .pf-confirm { padding: 12px 8px; }
  .sheet, .pf-dialog { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
}

/* 登入 */
.auth-btn { background: none; cursor: pointer; font: inherit; font-size: 12px; padding: 3px 8px; }
.auth-btn:hover { border-color: #5fc8ff; color: #fff; }
.auth-btn.on { border-color: rgba(46, 230, 166, .6); color: var(--down); }
.au-dialog { max-width: 440px; }
.au-dialog p { font-size: 14px; line-height: 1.6; }
.au-form { display: flex; flex-direction: column; gap: 10px; }
.au-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.au-form input { height: 36px; padding: 0 10px; border: 1px solid rgba(90, 180, 255, .4); background: rgba(4, 22, 56, .8); color: var(--text); font: inherit; font-size: 16px; }
.au-form input#au-code { font-family: var(--num); font-size: 22px; letter-spacing: 6px; text-align: center; }
.au-form input#au-code::placeholder { font-family: inherit; font-size: 13px; letter-spacing: 0; color: var(--dim); }
.au-form a, .au-dialog .hint a { color: #7cc8ff; }
.au-steps { margin: 8px 0 8px 20px; font-size: 13px; line-height: 1.7; color: var(--text); }
.au-qr { display: flex; justify-content: center; margin: 8px 0; }
.au-qr img { width: 200px; height: 200px; background: #fff; padding: 8px; }
.au-secret { font-family: var(--num); color: var(--text); word-break: break-all; user-select: all; }
.hm-empty .mini { margin: 0 4px; }
.auth-wrap { position: relative; }
.auth-btn { max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.auth-btn.on::after { content: '▾'; display: inline-block; margin-left: 4px; font-size: 15px; line-height: 1; vertical-align: -1px; }
.au-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 220px; padding: 10px 0 6px; background: #0d1b34; border: 1px solid rgba(90, 180, 255, .5); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.au-menu[hidden] { display: none; }
.au-menu-email { padding: 0 14px; font-size: 13px; color: var(--text); word-break: break-all; }
.au-menu-note { padding: 2px 14px 8px; font-size: 11px; color: var(--dim); border-bottom: 1px solid rgba(90, 180, 255, .2); }
.au-menu button { display: block; width: 100%; margin-top: 6px; padding: 8px 14px; background: none; border: 0; color: #cfe8ff; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.au-menu button:hover { background: rgba(40, 140, 255, .3); color: #fff; }
.au-tabs { display: flex; margin-bottom: 14px; border-bottom: 1px solid rgba(90, 180, 255, .3); }
.au-tabs button { flex: 1; height: 38px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font: inherit; font-size: 15px; letter-spacing: 2px; cursor: pointer; }
.au-tabs button:hover { color: #fff; }
.au-tabs button.on { color: #fff; font-weight: 700; border-bottom-color: #5fc8ff; background: linear-gradient(180deg, rgba(40, 140, 255, 0), rgba(40, 140, 255, .18)); }
.au-form .pf-dialog-btns .big-ok { flex: 1; }

/* 評分依據 */
.how { font-size: 14px; line-height: 1.7; }
.how-lead { color: var(--text); }
.how-h { margin: 18px 0 8px; font-size: 15px; font-weight: 700; color: #fff; }
.how .dim { font-size: 12px; margin-top: 6px; }
.how-mix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.how-card { padding: 10px 12px; border: 1px solid rgba(90, 180, 255, .25); background: rgba(10, 40, 90, .3); }
.how-card b { font-size: 13px; color: #cfe8ff; }
.how-card small { display: block; margin-top: 4px; font-size: 11px; color: var(--dim); }
.how-bar { display: flex; gap: 2px; margin-top: 6px; }
.how-bar span { padding: 3px 6px; font-size: 11px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.how-bar .c1 { background: rgba(40, 140, 255, .7); }
.how-bar .c2 { background: rgba(46, 200, 160, .6); }
.how-bar .c3 { background: rgba(255, 190, 80, .6); }
.how-table { width: 100%; border-collapse: collapse; }
.how-table th, .how-table td { padding: 7px 10px; border-bottom: 1px solid rgba(90, 180, 255, .15); text-align: left; vertical-align: top; font-size: 13px; }
.how-table th { width: 110px; color: #9cc3e8; font-weight: 700; white-space: nowrap; }
.how-table td { color: var(--text); }
.how-table th.up { color: var(--up); }
.how-table th.down { color: var(--down); }
@media (max-width: 760px) { .how-mix { grid-template-columns: 1fr; } .how-table th { width: 84px; } }

/* 新聞情緒追蹤 */
.nt-progress { height: 6px; margin: 4px 0 2px; background: rgba(90, 180, 255, .15); }
.nt-progress span { display: block; height: 100%; background: linear-gradient(90deg, #2a8cff, #5fc8ff); }
.nt-progress-t { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.bt-table td small { display: block; font-size: 11px; color: var(--dim); font-weight: 400; }
.nt-cell b { font-family: var(--num); font-weight: 500; }
.nt-rev { color: var(--warn); }

/* 各區塊高度固定，清單在框內捲動（screen.js 的 lazyList 捲到底自動載入） */
#p-top, #p-movers, #p-world, #p-follow, #p-sell { display: flex; flex-direction: column; }
#top10, #p-movers .movers, #p-world .newsbox, #p-follow .home-body, #p-sell .home-body, #indList, #feed {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px;
  scrollbar-width: thin; scrollbar-color: rgba(90, 180, 255, .4) transparent; }
:is(#top10, #p-movers .movers, #p-world .newsbox, #p-follow .home-body, #p-sell .home-body, #indList, #feed)::-webkit-scrollbar { width: 6px; }
:is(#top10, #p-movers .movers, #p-world .newsbox, #p-follow .home-body, #p-sell .home-body, #indList, #feed)::-webkit-scrollbar-thumb { background: rgba(90, 180, 255, .4); border-radius: 3px; }
#indList { max-height: 318px; padding-right: 4px; }
#feed { height: 330px; flex: none; padding-right: 4px; }
#p-movers .movers { align-items: start; }
#p-movers .mv-h { position: sticky; top: 0; z-index: 1; background: #06214b; padding: 2px 0; }
@media (max-width: 900px) {
  #top10, #p-movers .movers, #p-world .newsbox, #p-follow .home-body, #p-sell .home-body { max-height: 420px; }
  #feed { height: auto; max-height: 330px; }
}

/* 未登入被鎖住的區塊：假的模糊列＋登入按鈕（真的資料不會送到瀏覽器） */
.lock { position: relative; min-height: 120px; }
.lk-fake { filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; }
.lk-row { display: flex; justify-content: space-between; height: 30px; align-items: center; font-size: 13px; color: #cfe5fb;
  border-bottom: 1px dashed rgba(90, 170, 255, .15); }
.lk-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 0 16px; font-size: 13.5px; color: #d6ebff; line-height: 1.6; }
.lk-over .mini { height: 32px; padding: 0 18px; font-size: 14px; }
.hot .bar.lk b { filter: blur(3px); opacity: .5; }
.hot .n { white-space: nowrap; }
.nw-lock { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 0 4px; font-size: 13px; color: var(--muted); }
#drawer.anon .member-only { display: none; }
#drawer.anon .lock { margin-top: 12px; }
td .lock { min-height: 260px; }

/* 首頁底部：今日可考慮買進、真實成績單 */
.pk-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 44px 86px; align-items: center; gap: 8px; min-height: 42px;
  border-bottom: 1px dashed rgba(90, 170, 255, .15); cursor: pointer; font-size: 13px; }
.pk-row .rk { width: 20px; height: 18px; line-height: 18px; text-align: center; font-family: var(--num); font-size: 12px; color: #001a33;
  background: linear-gradient(90deg, #1a6dff, var(--cyan)); }
.pk-row .nm { min-width: 0; color: #cfe5fb; }
.pk-row .nm b { font-family: var(--num); font-weight: 500; color: #fff; margin-right: 6px; }
.pk-row .nm small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-row .sc { font-family: var(--num); color: var(--gold); text-align: right; font-size: 17px; }
.pk-row .sc small { font-size: 10px; color: var(--muted); margin-left: 1px; }
.pk-row .px { text-align: right; font-family: var(--num); color: #fff; }
.pk-row .px small { display: block; font-size: 12px; }
#picks a, .sc-picks a { color: #7cc8ff; cursor: pointer; }
.hot-lk { cursor: default; }
.hot-lk .nm { filter: blur(4px); opacity: .6; user-select: none; }
.st-tag { font-style: normal; font-size: 11px; padding: 0 4px; border: 1px solid rgba(255, 209, 102, .5); color: var(--gold); }
.hot .n.lk-n { filter: blur(5px); opacity: .6; user-select: none; }
.pk-row.sell { grid-template-columns: minmax(0, 1fr) 44px 86px; }
.pk-row.sell .rk { display: none; }
.pk-row.sell .sc { color: var(--down); }
#sells a { color: #7cc8ff; cursor: pointer; }
/* 被鎖的名次：名次標籤照常顯示，名稱、分數模糊 */
.hot-lk .bar, .hot-lk .n { filter: blur(4px); opacity: .55; }
.ph-login { color: #7cc8ff; cursor: pointer; }
.ph-login:hover { color: #fff; }

/* 異常訊號、盤中即時價、訊號快報分頁 */
.al-tag { display: inline-block; font-style: normal; font-size: 11px; padding: 0 5px; margin: 2px 4px 0 0; border: 1px solid rgba(255, 190, 80, .5); color: var(--gold); background: rgba(255, 190, 80, .08); }
.d-alerts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 8px 0 0; font-size: 12px; }
.d-alerts:empty { display: none; }
.d-alerts .dim { margin-right: 4px; }
.live { color: #fff; }
.live b { font-family: var(--num); font-weight: 500; }
.live-dot.sm { display: inline-block; width: 6px; height: 6px; margin-right: 4px; vertical-align: middle; }
.fb-tabs { margin-left: auto; display: flex; gap: 4px; }
.fb-tabs a { font-size: 11px; font-weight: 400; letter-spacing: 0; padding: 1px 8px; border: 1px solid rgba(90, 180, 255, .35); color: #9cc3e8; cursor: pointer; }
.fb-tabs a.on { background: linear-gradient(180deg, rgba(40, 140, 255, .75), rgba(20, 70, 170, .45)); border-color: #5fc8ff; color: #fff; }
.fd .dt .al-tag { margin-top: 3px; }
.list-more { display: flex; justify-content: center; padding: 10px 0 4px; }
.list-more .mini { height: 30px; padding: 0 18px; }
.pk-row.alt .rk { background: rgba(90, 180, 255, .25); color: #cfe8ff; }
.pk-alt { font-style: normal; font-size: 11px; margin-left: 6px; padding: 0 4px; border: 1px solid rgba(127, 162, 200, .5); color: var(--muted); }

/* 面板標題的「依據」按鈕與說明彈窗 */
.ph-info { margin-left: 10px; font-size: 12px; font-weight: 400; letter-spacing: 0; color: #7cc8ff; cursor: pointer; border-bottom: 1px dashed rgba(124, 200, 255, .5); line-height: 1.2; }
.ph-info:hover { color: #fff; border-bottom-color: #fff; }
.info-dialog { max-width: 560px; }
.info-dialog .x { position: absolute; right: 10px; top: 0; height: 36px; border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.info-dialog .x:hover { color: #fff; }
.info-dialog p { font-size: 14px; line-height: 1.7; margin: 8px 0; color: var(--text); }
.info-dialog p.dim { font-size: 12.5px; color: var(--muted); }
.info-dialog b { color: #fff; }
.info-list { margin: 6px 0 10px 20px; font-size: 13.5px; line-height: 1.8; color: #cfe5fb; }
/* 新聞面板四個分頁：標題的英文小字讓位 */
#p-world > .ph .ph-en { display: none; }
#p-world .nw-tabs a { padding: 0 8px; }
/* 完整排行：未登入時一樣高（撐滿），篩選與搜尋禁用 */
/* 大彈窗一律固定最高（內容少也一樣高），小對話框（.pf-dialog）維持原本大小 */
.overlay .sheet { height: calc(100vh - 80px); height: calc(100dvh - 80px); }
#rank-modal.locked .table-wrap { height: calc(100% - 80px); overflow: hidden; }
#rank-modal.locked #rank, #rank-modal.locked #rank tbody, #rank-modal.locked #rank tbody tr, #rank-modal.locked #rank tbody td { height: 100%; }
#rank-modal.locked td .lock { height: 100%; }
.chip:disabled, #search:disabled { opacity: .4; cursor: not-allowed; }
.chip.on:disabled { background: rgba(20, 70, 150, .25); border-color: rgba(90, 180, 255, .3); color: #9cc3e8; }
@media (max-width: 900px) { .overlay .sheet { height: calc(100vh - 24px); height: calc(100dvh - 24px); } }
.nw-src { display: flex; justify-content: space-between; gap: 8px; }
.nw-legend { color: var(--dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-tabs a[hidden] { display: none; }

/* 全站說明提示（tooltip.js）：黑色半透明、小字、分段 */
.tip-box { position: fixed; z-index: 1000; max-width: 300px; padding: 8px 11px; background: rgba(0, 0, 0, .84); color: #fff;
  font-size: 12px; line-height: 1.65; letter-spacing: .2px; border-radius: 4px; box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
  pointer-events: none; white-space: normal; word-break: break-word; }
.tip-box[hidden] { display: none; }
.tip-box p { margin: 0; }
.tip-box p + p { margin-top: 6px; }
.panel:hover { z-index: 6; } /* 圖表提示框不被隔壁面板蓋住 */
#hdr:has(.au-menu:not([hidden])) { z-index: 7; } /* 帳號選單打開時蓋過面板（面板 hover 會升到 6） */
.chart-wrap { position: relative; }
.hot-zone { position: absolute; z-index: 2; }

/* 自選與警示 */
.w-tabs { display: flex; gap: 4px; padding: 10px 14px 0; flex: none; }
.w-tabs a { padding: 4px 14px; font-size: 13px; border: 1px solid rgba(90, 180, 255, .35); color: #9cc3e8; cursor: pointer; }
.w-tabs a.on { background: linear-gradient(180deg, rgba(40, 140, 255, .75), rgba(20, 70, 170, .45)); border-color: #5fc8ff; color: #fff; }
.w-note { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.w-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 14px; }
.w-add .pf-h { width: 100%; margin: 0; }
.w-add label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.w-add select, .w-add input { height: 30px; padding: 0 8px; border: 1px solid rgba(90, 180, 255, .4); background: rgba(4, 22, 56, .8); color: var(--text); font: inherit; font-size: 14px; }
.w-events { display: flex; flex-direction: column; }
.w-ev { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px dashed rgba(90, 170, 255, .15); font-size: 13.5px; cursor: pointer; }
.w-ev.new { color: #fff; }
.w-ev.new::before { content: "新"; align-self: flex-start; font-size: 10px; padding: 0 4px; margin-bottom: 2px; background: var(--up); color: #fff; }
.w-ev-t { font-size: 11px; color: var(--dim); }
#auth-badge { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--up); color: #fff; font-size: 10px; font-style: normal; line-height: 16px; text-align: center; }
#auth-badge[hidden] { display: none; }
.au-count { margin-left: 6px; padding: 0 5px; border-radius: 8px; background: var(--up); color: #fff; font-size: 10px; font-style: normal; }
#watch-modal .sheet { max-width: 860px; }
.w-add label[hidden] { display: none; }

/* logo 當遮罩，填跟標題文字同一組漸層（光暈由 h1 的 drop-shadow 一起套） */
.hdr-logo { width: 36px; height: 36px; flex: none; background: linear-gradient(180deg, #ffffff 20%, #9adfff 90%);
  -webkit-mask: url(logo.svg) center / contain no-repeat; mask: url(logo.svg) center / contain no-repeat; }
@media (max-width: 900px) { .hdr-logo { width: 26px; height: 26px; } .hdr-title h1 { gap: 8px; } }

/* 方案與價格 */
.pc-toggle { display: flex; justify-content: center; gap: 4px; margin: 4px 0 18px; }
.pc-toggle a { padding: 6px 18px; font-size: 14px; border: 1px solid rgba(90, 180, 255, .35); color: #9cc3e8; cursor: pointer; }
.pc-toggle a.on { background: linear-gradient(180deg, rgba(40, 140, 255, .75), rgba(20, 70, 170, .45)); border-color: #5fc8ff; color: #fff; }
.pc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pc-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: 1px solid rgba(90, 180, 255, .3); background: rgba(6, 30, 70, .55); }
.pc-card.featured { border-color: var(--gold); box-shadow: 0 0 18px rgba(255, 209, 102, .18); }
.pc-card.cur { border-color: #5fc8ff; }
.pc-h { font-size: 18px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.pc-badge { font-style: normal; font-size: 11px; padding: 1px 8px; background: var(--gold); color: #1b1200; font-weight: 700; }
.pc-price { font-family: var(--num); font-size: 34px; color: #fff; line-height: 1.1; }
.pc-price small { font-family: 'Noto Sans TC'; font-size: 13px; color: var(--muted); }
.pc-sub { font-size: 12.5px; color: var(--muted); min-height: 18px; }
.pc-card .mini { height: 38px; font-size: 15px; width: 100%; }
.pc-card .mini:disabled { opacity: .7; cursor: default; }
.pc-rows { border-top: 1px dashed rgba(90, 170, 255, .2); padding-top: 8px; }
.pc-rows div { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: 13.5px; color: var(--muted); }
.pc-rows b { color: #fff; font-weight: 500; }
.pc-feat { list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: #cfe5fb; line-height: 1.9; }
.pc-feat li { position: relative; padding-left: 20px; }
.pc-feat li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 5px; height: 10px; border: solid var(--down); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pc-guest { margin-top: 16px; padding: 10px 14px; font-size: 13px; color: var(--muted); border: 1px dashed rgba(90, 180, 255, .3); line-height: 1.7; }
.pc-guest b { color: #fff; }
@media (max-width: 900px) { .pc-grid { grid-template-columns: 1fr; } }
#watch-body a[data-view-price] { color: #7cc8ff; cursor: pointer; }
.d-hist { height: 170px; }
.d-hist p { padding: 8px 0; }
#drawer.anon .d-hist { display: none; }
#info-modal a[data-view-price] { color: #7cc8ff; cursor: pointer; }
/* 我的訂閱、結帳 */
.pc-mine { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 12px 16px; border: 1px solid rgba(95, 200, 255, .45); background: rgba(20, 70, 150, .25); }
.pc-mine > div { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pc-mine b { font-size: 18px; color: #fff; }
.pc-tag { font-size: 11px; padding: 1px 6px; border: 1px solid rgba(46, 230, 166, .5); color: var(--down); }
.pc-tag.test { border-color: rgba(255, 209, 102, .5); color: var(--gold); }
.pc-tag.off { border-color: rgba(127, 162, 200, .4); color: var(--muted); }
.co-plan { border: 1px solid rgba(90, 180, 255, .25); padding: 6px 12px; margin-bottom: 12px; }
.co-plan div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; color: var(--muted); }
.co-plan b { color: #fff; font-weight: 500; }
.co-opts { display: flex; flex-direction: column; gap: 8px; }
.co-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(90, 180, 255, .3); cursor: pointer; font-size: 14px; color: var(--text); }
.co-opt:has(input:checked) { border-color: #5fc8ff; background: rgba(40, 140, 255, .18); }
.co-opt b { margin-right: 10px; color: #fff; }
.co-opt small { color: var(--muted); margin-left: 4px; }
.co-test { margin-top: 12px; padding: 8px 12px; font-size: 13px; color: var(--gold); border: 1px dashed rgba(255, 209, 102, .45); }
.w-search { margin: 0 0 12px; flex-wrap: nowrap; }
.w-search input { flex: 1; height: 32px; padding: 0 10px; border: 1px solid rgba(90, 180, 255, .4); background: rgba(4, 22, 56, .8); color: var(--text); font: inherit; font-size: 14px; }
.w-ev-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 12px; }
.wt-btn { min-width: 38px; height: 22px; padding: 0 6px; font-size: 12px; border: 1px solid rgba(90, 180, 255, .45); background: none; color: #9cc3e8; cursor: pointer; }
.wt-btn:hover { border-color: #5fc8ff; color: #fff; }
.wt-btn.on { border-color: rgba(255, 209, 102, .6); color: var(--gold); }

.w-help { font-size: 13.5px; line-height: 1.8; }
.w-help h4 { margin: 16px 0 4px; font-size: 14.5px; color: #5fc8ff; }
.w-help p { margin: 0 0 6px; }
.w-help ul { margin: 0 0 6px; padding-left: 20px; }
.w-help li { margin-bottom: 4px; }

/* 帳戶設定：左邊選單、右邊內容 */
.acct-sheet { max-width: 960px; }
.acct-wrap { flex: 1; min-height: 0; display: flex; }
.acct-nav { flex: none; width: 190px; padding: 18px 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.acct-nav a { padding: 9px 14px; font-size: 14px; color: #9cc3e8; cursor: pointer; border-radius: 6px; }
.acct-nav a:hover { background: rgba(40, 140, 255, .12); color: #fff; }
.acct-nav a.on { background: rgba(40, 140, 255, .25); color: #fff; font-weight: 600; }
.acct-body { flex: 1; min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 28px 28px; }
.acct-body::-webkit-scrollbar { width: 6px; }
.acct-body::-webkit-scrollbar-thumb { background: rgba(90, 180, 255, .4); border-radius: 3px; }
.ac-title { margin: 0 0 16px; font-size: 20px; color: #fff; font-weight: 700; }
.ac-sub-h { margin: 22px 0 8px; font-size: 14px; font-weight: 700; color: #fff; }
.ac-group { border: 1px solid var(--line); background: rgba(3, 16, 42, .5); margin-bottom: 14px; }
.ac-group.ac-pad { padding: 14px 16px; }
.ac-row { display: flex; align-items: center; gap: 16px; padding: 13px 16px; font-size: 13.5px; line-height: 1.6; }
.ac-row + .ac-row { border-top: 1px solid rgba(70, 170, 255, .14); }
.ac-k { flex: none; width: 140px; color: var(--muted); }
.ac-v { flex: 1; min-width: 0; color: #e6f2ff; word-break: break-all; }
.ac-x { flex: none; display: flex; gap: 6px; }
.ac-ok { color: #3ddc97; font-weight: 600; }
.ac-plan { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); background: rgba(3, 16, 42, .5); }
.ac-plan.paid { border-color: rgba(95, 200, 255, .6); background: linear-gradient(135deg, rgba(20, 90, 200, .35), rgba(3, 16, 42, .5)); }
.ac-plan-l { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.ac-plan-l b { font-size: 24px; color: #fff; }
.ac-use + .ac-use { margin-top: 14px; }
.ac-use > div { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; color: #cfe8ff; }
.ac-use > i { display: block; height: 6px; background: rgba(90, 180, 255, .15); border-radius: 3px; overflow: hidden; }
.ac-use em { display: block; height: 100%; background: linear-gradient(90deg, #1e8cff, #5fc8ff); }
.ac-use em.full { background: var(--up); }
.ac-danger { margin-top: 22px; border-color: rgba(255, 77, 106, .75); background: rgba(255, 77, 106, .06); }
.ac-danger-t { color: #b9cbe0; }
.mini.danger { background: rgba(255, 77, 106, .14); border-color: rgba(255, 77, 106, .8); color: #ff8497; }
.mini.danger:hover { background: rgba(255, 77, 106, .85); border-color: #ff4d6a; color: #fff; }
.ac-pw label { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.ac-pw label > span { flex: none; width: 90px; }
.ac-pw label input { width: 280px; height: 32px; padding: 0 10px; background: rgba(0, 10, 30, .6); border: 1px solid var(--line); color: #fff; font-size: 13px; }
.ac-pw label input:focus { outline: none; border-color: #5fc8ff; }
.ac-pw-btns { display: flex; align-items: center; gap: 12px; padding-left: 102px; }
.pc-cur { font-size: 13.5px; margin-bottom: 12px; color: #cfe8ff; }
.pc-cur a { margin-left: 8px; color: #5fc8ff; cursor: pointer; }
@media (max-width: 720px) {
  .acct-wrap { flex-direction: column; }
  .acct-nav { width: auto; flex-direction: row; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .acct-nav a { white-space: nowrap; }
  .acct-body { padding: 16px; }
  .ac-row { flex-wrap: wrap; gap: 6px 12px; }
  .ac-k { width: 100%; }
  .ac-pw label input { width: 100%; min-width: 0; }
  .ac-pw-btns { padding-left: 0; }
}

/* 評分依據標題列右邊的「績效驗證」按鈕 */
.sheet > .ph .ph-btn { position: absolute; right: 48px; top: 50%; transform: translateY(-50%); height: 26px; padding: 0 14px; display: inline-flex; align-items: center; line-height: 1; font-size: 13px; font-weight: 500; letter-spacing: 1px; text-shadow: none; }
.how-link { color: #5fc8ff; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.how-link:hover { color: #fff; }

/* 後台「訂閱與自選警示」關閉：隱藏訂閱、自選、警示、匯出的入口 */
.no-tools .tool-only { display: none !important; }

.hdr-title h1 .hdr-name { margin-left: 14px; } /* 「股分」和「台美股監控中心」之間多空一點 */
@media (max-width: 900px) { .hdr-title h1 .hdr-name { margin-left: 6px; } }
