@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
:root{--green:#176a50;--ink:#182b28;--muted:#7e8b86;--line:#e5eae5}*{box-sizing:border-box}body{margin:0;background:#f6f8f4;color:var(--ink);font:14px 'DM Sans',-apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif}button,input,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:7px;padding:10px 15px;background:white;color:var(--ink)}button:hover{border-color:var(--green);color:var(--green)}aside{width:222px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:34px 24px}.brand{font-size:23px;color:var(--green);text-decoration:none;white-space:nowrap}aside small{font-size:11px;line-height:3;color:var(--muted)}nav{display:grid;gap:9px;margin-top:50px}nav button{text-align:left;border:0;background:transparent;padding:14px 10px}nav .active{background:#eaf2eb;color:var(--green);font-weight:600}.sidebottom{position:absolute;bottom:26px;font-size:12px}.dot{display:inline-block;width:7px;height:7px;background:#378667;border-radius:50%;margin-right:5px}main{margin-left:222px;padding:0 42px;max-width:1800px}header{height:80px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:12px}.muted{color:var(--muted)}.badge{font-size:10px;letter-spacing:.5px;border:1px solid #dce4d7;background:#f0f4e9;color:#648052;border-radius:5px;padding:5px 9px}.intro{padding:44px 0 25px;display:flex;justify-content:space-between;align-items:center}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:var(--green)}h1{font-size:34px;letter-spacing:-1px;margin:13px 0}h1 span{color:#71a285}p{color:var(--muted);line-height:1.8}.primary{background:var(--green);color:white;border:0;padding:14px 22px}.primary:hover{background:#12543f;color:white}.notice{font-size:11px;color:#8a7951;border:1px solid #e9e3d3;background:#faf7ed;padding:12px 15px;border-radius:6px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:24px 0}.stat{background:white;border:1px solid var(--line);border-radius:9px;padding:20px}.stat small{color:var(--muted)}.stat strong{font-size:29px;display:block;margin:12px 0 7px;letter-spacing:-1px}.stat em{font-size:11px;color:var(--green);font-style:normal}.workspace{border:1px solid var(--line);background:#fff;border-radius:10px;overflow:hidden}.section-title{display:flex;justify-content:space-between;align-items:center;padding:23px 24px 10px}h2{font-size:18px;margin:0 0 8px}.section-title h2 .badge{margin-left:10px;vertical-align:middle}.section-title p{font-size:12px;margin:0}.filters{display:flex;gap:12px;padding:18px 24px}.segments{display:flex;background:#f2f5f0;border-radius:7px;padding:3px}.segments button{border:0;background:transparent;padding:8px 15px;font-size:12px}.segments .selected{background:white;color:var(--green);box-shadow:0 1px 5px #dbe2d5}input,select{border:1px solid var(--line);border-radius:6px;background:white;padding:10px;font-size:12px;color:var(--ink)}#search{flex:1;min-width:120px}.filterline{padding:0 24px 18px;display:flex;align-items:center;gap:12px;font-size:11px;color:var(--muted)}.filterline label{display:flex;align-items:center;gap:8px}#min{padding:0;width:100px;accent-color:var(--green)}#count{margin-right:auto}.import{cursor:pointer;color:var(--green)}.filterline button{font-size:11px;padding:5px 9px}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap}th{background:#f7f9f5;font-size:11px;text-align:left;color:var(--muted);font-weight:500;padding:14px 20px}td{padding:16px 20px;border-top:1px solid #f0f2ee;font-size:13px}.company{border:0;padding:0;text-align:left;background:none;font-weight:600}.symbol{display:block;font-size:10px;color:var(--muted);margin-top:5px}.tag{font-size:10px;background:#f0f4ed;padding:4px 7px;border-radius:4px;color:#61795b}.up{color:#d83b42}.down{color:#278461}.flat{color:#7e8b86}.score{display:inline-flex;align-items:center;gap:10px;font-size:18px;font-weight:700;color:var(--green)}.bar{height:4px;background:#edf1e9;width:45px;border-radius:5px}.bar i{display:block;background:#6e9d75;height:100%}.star{padding:0;border:0;font-size:21px;color:#9aa39a}.star.on{color:#b79645}.tablefoot{display:flex;justify-content:space-between;padding:15px 24px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}.bottom{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:30px;margin:36px 0}.bottom article{padding:10px 0}.bottom h2{font-size:23px;line-height:1.6;margin-top:10px}.bottom h3{font-size:13px}.bottom p{font-size:11px}.bottom article>b{color:#9bac94;font-size:20px}footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:22px 0;font-size:10px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:14px;padding:30px;max-width:620px;width:90%;box-shadow:0 20px 100px #102a2333}dialog::backdrop{background:#152d2766}.close{float:right;font-size:20px;padding:0 8px}.factors{display:grid;grid-template-columns:1fr 1fr;gap:12px}.factors div{background:#f3f6ef;padding:15px;border-radius:8px}.factors strong{display:block;font-size:22px;margin-top:8px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:12px 22px;border-radius:8px;display:none}@media(min-width:1500px){main{padding:0 65px}}@media(max-width:1050px){aside{width:180px;padding:30px 14px}main{margin-left:180px;padding:0 22px}.filters{flex-wrap:wrap}.bottom{gap:18px}.stats{gap:10px}td,th{padding:13px}.intro h1{font-size:27px}}@media(max-width:760px){aside{position:static;width:100%;padding:15px;display:flex;align-items:center;justify-content:space-between}aside small,.sidebottom{display:none}nav{display:flex;margin:0;gap:1px}nav button{font-size:11px;padding:9px}.brand{font-size:17px}main{margin:0;padding:0 16px}header{height:55px}.intro{padding:26px 0;gap:12px}.intro h1{font-size:24px}.intro p{font-size:11px}.primary{white-space:nowrap;padding:12px}.stats{grid-template-columns:1fr 1fr}.stat{padding:15px}.bottom{grid-template-columns:1fr 1fr}.filters,.filterline{padding-left:15px;padding-right:15px}.filterline{flex-wrap:wrap}.section-title{padding:18px 15px}.section-title .badge{display:none}.tablefoot span{display:none}footer{gap:15px}}

/* Phone layout: thumb-friendly navigation, stacked filters and stock cards. */
@media(max-width:760px){
 body{padding-bottom:calc(76px + env(safe-area-inset-bottom));-webkit-text-size-adjust:100%}
 aside{padding:18px 18px 14px;border-right:0;border-bottom:1px solid var(--line)}
 .brand{font-size:22px}
 nav{position:fixed;inset:auto 0 0;z-index:20;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:9px 12px calc(9px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -5px 22px #182b2808}
 nav button{min-height:48px;text-align:center;font-size:12px;padding:10px 3px;white-space:nowrap;border-radius:9px}
 main{min-width:0;padding:0 16px}header{height:50px;font-size:11px;gap:8px}.badge{white-space:nowrap}
 .intro{display:block;padding:26px 0 20px}.intro h1{font-size:clamp(23px,6.4vw,32px);letter-spacing:-.8px;line-height:1.4}.intro p{font-size:13px;margin:8px 0 17px}.primary{width:100%;min-height:48px;font-size:15px}
 .notice{font-size:12px;line-height:1.8;padding:12px 14px}.stats{gap:10px;margin:16px 0}.stat{min-width:0;padding:16px 13px}.stat small{font-size:12px}.stat strong{font-size:28px;margin:9px 0}.stat em{font-size:11px;line-height:1.6;display:block}
 .section-title{align-items:flex-start;gap:10px;padding:18px 15px 6px}.section-title h2{font-size:19px}.section-title p{font-size:12px;line-height:1.7}.section-title>button{flex-shrink:0;min-height:44px;padding:10px;font-size:12px}
 .filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:15px}.segments{grid-column:1/-1}.segments button{flex:1;min-height:44px;font-size:14px;padding:10px 3px}
 #search{grid-column:1/-1;width:100%;min-width:0}input,select{font-size:16px;min-height:46px;max-width:100%}select{width:100%;min-width:0}
 .filterline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:0 15px 16px;font-size:12px}.filterline label:first-child{grid-column:1/-1;min-height:40px}#min{flex:1;min-height:30px;width:auto;min-width:0}#minLabel{min-width:24px;text-align:right}#count{grid-column:1/-1;margin:0}.filterline .import,.filterline button{min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;font-size:12px;justify-content:center}.filterline .import{background:#f3f7f0}
 .tablewrap{overflow:visible;padding:0 12px 12px;background:#f6f8f4}table,tbody{display:block;width:100%;white-space:normal}thead{display:none}
 #rows tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:14px 8px;background:white;border:1px solid var(--line);border-radius:10px;padding:14px;margin-top:12px;align-items:center}
 #rows td{display:block;min-width:0;border:0;padding:0;font-size:14px}
 #rows td:nth-child(1){grid-column:1/3;grid-row:1}.company{font-size:16px;line-height:1.5;min-height:44px;overflow-wrap:anywhere;width:100%}.symbol{font-size:11px;margin-top:2px}
 #rows td:nth-child(7){grid-column:3;grid-row:1;justify-self:end}.star{width:44px;height:44px;font-size:26px;display:grid;place-items:center}
 #rows td:nth-child(2){grid-column:1;grid-row:2;font-weight:600;font-size:17px;overflow-wrap:anywhere}
 #rows td:nth-child(3){grid-column:2;grid-row:2;font-size:15px}
 #rows td:nth-child(4){grid-column:3;grid-row:2;justify-self:end}
 #rows td:nth-child(2)::before,#rows td:nth-child(3)::before,#rows td:nth-child(4)::before{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-bottom:5px}
 #rows td:nth-child(2)::before{content:'价格'}#rows td:nth-child(3)::before{content:'日涨跌'}#rows td:nth-child(4)::before{content:'综合评分'}
 .score{font-size:23px;gap:0}.score .bar{display:none}#rows td:nth-child(5){grid-column:1/3;grid-row:3}.tag{font-size:11px;display:inline-block;line-height:1.6}
 #rows td:nth-child(6){grid-column:3;grid-row:3;justify-self:end;max-width:100%;font-size:10px}#rows td:nth-child(6) svg{width:100%;max-width:80px}
 #rows td[colspan]{grid-column:1/-1!important;grid-row:auto!important;padding:24px 0!important;line-height:1.8}
 .tablefoot{padding:13px 15px;font-size:11px;line-height:1.8}.bottom{grid-template-columns:1fr;gap:0;margin:26px 0 18px}.bottom article{padding:16px 0;border-bottom:1px solid var(--line)}.bottom article:first-child{padding-top:0}.bottom h2{font-size:23px}.bottom p{font-size:12px;margin:8px 0}.bottom h3{font-size:15px;margin:8px 0}.bottom article>b{font-size:17px}
 footer{display:block;font-size:11px;line-height:1.9;padding:16px 0}footer span{display:block}
 dialog{width:calc(100% - 24px);max-width:560px;max-height:calc(100dvh - 32px);overflow-y:auto;padding:22px 18px;overscroll-behavior:contain}dialog h1{font-size:26px;margin-right:38px;overflow-wrap:anywhere}dialog p{font-size:13px;line-height:1.9;overflow-wrap:anywhere}.close{width:44px;height:44px;font-size:27px;position:sticky;top:0;background:#fff;z-index:1}.factors{gap:9px}.factors div{padding:12px;font-size:12px;min-width:0}.factors strong{font-size:18px;overflow-wrap:anywhere}
 #toast{bottom:calc(90px + env(safe-area-inset-bottom));max-width:calc(100% - 32px);width:max-content;font-size:13px;line-height:1.6;text-align:center}
}
@media(min-width:761px) and (max-width:1100px){.filters{display:grid;grid-template-columns:1fr 1fr}.segments,#search{grid-column:1/-1}.segments button{flex:1}.filterline{flex-wrap:wrap}}

/* Warm sand and terracotta palette; market red/green remain semantic. */
:root{--green:#9b5238;--ink:#45352c;--muted:#927f70;--line:#e9ddcf}
body{background:#f8f3eb}aside{background:#fffaf3}.brand{color:#9b5238}nav .active{background:#f3e4d5;color:#915033}.dot{background:#b77852}.badge{background:#f4e9d6;border-color:#e7d8bc;color:#917047}.primary{background:#9b5238}.primary:hover{background:#7c3e29}.notice{background:#fff4df;border-color:#edddbd;color:#947044}.stat,.workspace{background:#fffdf8}.stat em{color:#a46c46}.segments{background:#f4ede3}.segments .selected{background:#fffdf8;box-shadow:0 1px 5px #e5d7c5}input,select,button{background:#fffdf8}th{background:#f7efe4}td{border-top-color:#f0e7db}.tag{background:#f6ebdc;color:#9a714d}.bar{background:#eee2d3}.bar i{background:#c0926c}.star{color:#b5a38f}.star.on{color:#b78636}.bottom article>b{color:#bc9b7c}dialog{background:#fffaf3;box-shadow:0 20px 100px #50352133}dialog::backdrop{background:#49322566}.factors div{background:#f5eadd}.up{color:#d83b42}.down{color:#278461}.flat{color:#927f70}
@media(max-width:760px){nav{background:#fffaf3;box-shadow:0 -5px 22px #49322508}.filterline .import{background:#f8eddf}.tablewrap{background:#f7f0e7}#rows tr{background:#fffdf8}.close{background:#fffaf3}}

/* Compact phone stock rows keep all metrics visible with less vertical space. */
@media(max-width:760px){
 .tablewrap{padding:0 8px 8px}
 #rows tr{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(0,.8fr) 36px;gap:5px 7px;padding:10px;margin-top:7px;border-radius:7px}
 #rows td:nth-child(1){grid-column:1/3;grid-row:1}.company{font-size:14px;min-height:0;line-height:1.35}.symbol{display:inline;font-size:10px;margin:0 0 0 6px;white-space:nowrap}
 #rows td:nth-child(7){grid-column:4;grid-row:1/3;align-self:center}.star{width:36px;height:44px;font-size:23px}
 #rows td:nth-child(2){grid-column:1;grid-row:2;font-size:15px;line-height:1.5}
 #rows td:nth-child(3){grid-column:2;grid-row:2;font-size:13px;line-height:1.5}
 #rows td:nth-child(4){grid-column:3;grid-row:1/3;justify-self:end;align-self:center;text-align:right}
 #rows td:nth-child(2)::before,#rows td:nth-child(3)::before{display:none}
 #rows td:nth-child(4)::before{content:'评分';font-size:9px;margin-bottom:2px}.score{font-size:20px}
 #rows td:nth-child(5){grid-column:1/3;grid-row:3}.tag{font-size:9px;padding:2px 5px;line-height:1.3}
 #rows td:nth-child(6){grid-column:3/5;grid-row:3;line-height:1;height:16px}.tablewrap svg{height:16px!important;width:65px!important;vertical-align:top}
 #rows td[colspan]{grid-column:1/-1!important;grid-row:auto!important}
}

.data-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:14px 0}.data-controls button{font-size:12px;min-height:40px}.data-controls .selected{background:#f3e4d5;border-color:#bd9278;color:#915033}#quoteStatus{font-size:11px;color:var(--muted)}select:disabled,input:disabled{opacity:.55;cursor:not-allowed}@media(max-width:760px){#quoteStatus{width:100%}#rows td:nth-child(6){height:auto;line-height:1.4;font-size:9px;white-space:normal;max-width:120px}.data-controls button{flex:1;padding:10px 4px}}

.timing-panel{border-top:1px solid var(--line);padding-top:20px;margin-top:18px}.timing-panel h2{line-height:1.7}.timing-panel ul{padding-left:20px;line-height:1.9;font-size:13px}.timing-panel summary{cursor:pointer;min-height:40px;padding:10px 0;color:var(--green)}.timing-panel a{color:#9b5238}.timing-note{padding:10px;background:#f7ecdb;border-radius:7px}.timing-buy{background:#fbe5df;color:#ac392b}.timing-reduce{background:#e3f1e8;color:#247448}.timing-hold{background:#f3e5ce;color:#906a29}.timing-unknown{background:#eeece8;color:#82796f}.timing-wait{background:#f4eee4;color:#8b7965}@media(max-width:760px){.timing-panel .factors strong{font-size:16px}#timingFilter{grid-column:1/-1}}
