:root{--ink:#142823;--mute:#596b63;--edge:#dce2db;--bg:#f5f6f2;--red:#b83c37;--teal:#097976;font:16px/1.5 "Inter","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input{font:inherit;color:inherit}button,summary{cursor:pointer}button:focus-visible,input:focus-visible,summary:focus-visible,.plot:focus-visible{outline:2px solid var(--teal);outline-offset:2px}.shell{max-width:1430px;margin:auto;padding:0 clamp(16px,4vw,70px)}header{background:#102f29;color:white}.topline,.brand,.intro,.summary,.asideHead,.stockname,.price,.graphhead,.legend,footer,.detailhead{display:flex;align-items:center}.topline{height:64px;gap:36px}.brand{gap:10px;font-size:21px;letter-spacing:.04em;font-weight:750}.mark{display:grid;place-items:center;width:32px;height:32px;background:#c2e4be;color:#184b3e;font: bold 35px/.8 Georgia;border-radius:8px}.navbar{font-size:.9rem;color:#cbdbd1;border-left:1px solid #547267;padding-left:28px}.asof{margin-left:auto;font-size:.9rem;color:#deebe4}.asof time,#ticker,.price strong,.stats b,.val,.summary b,#readout{font-variant-numeric:tabular-nums}.intro{justify-content:space-between;gap:18px;padding:32px 0 24px}h1,h2,h3,p{margin:0}h1{font-size:clamp(29px,3vw,44px);line-height:1.18;letter-spacing:-.045em}.intro p{color:var(--mute);margin-top:8px;font-size:.94rem}.summary{gap:18px;font-size:.9rem;color:var(--mute)}.summary span,.legend span{display:inline-flex;align-items:center;gap:6px}.summary b{font-size:1.28rem;color:var(--ink)}.dot{display:inline-block;width:8px;height:8px;border-radius:50%}.red{background:var(--red)}.teal{background:var(--teal)}.layout{display:grid;grid-template-columns:minmax(230px,26%) minmax(0,1fr);gap:18px;align-items:start}aside,.detail{background:white;border:1px solid var(--edge);border-radius:12px;overflow:hidden}aside{padding:18px 12px 12px}.asideHead,.graphhead,.detailhead{justify-content:space-between}.asideHead{padding:0 5px}.asideHead h2,h3{font-size:1.06rem}.asideHead span,.legend,#ticker,footer{font-size:.86rem;color:var(--mute)}.search{display:flex;align-items:center;gap:5px;background:#f6f8f5;border:1px solid var(--edge);border-radius:6px;margin:14px 3px 9px;padding:5px 10px}.search input{background:transparent;border:0;width:100%;min-width:0;font-size:.9rem}.filters{display:flex;gap:4px}.filters button{border:0;border-radius:5px;background:transparent;color:var(--mute);padding:4px 11px;font-size:.875rem}.filters button[aria-pressed=true]{background:#e5eee5;color:#18493c;font-weight:650}#filters{margin:8px 3px}#list button{border:0;border-top:1px solid #eef1ed;background:white;width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:8px 10px;line-height:1.23}#list button[aria-current=true]{background:#eaf3ec;border-radius:6px;box-shadow:inset 3px 0 #34684e}#list button:hover{background:#f2f6f0}#list small{display:block;color:var(--mute);font-size:.78rem;margin-top:4px}#list .val{display:flex;align-items:center;gap:9px;font-weight:600}.empty{padding:18px;color:var(--mute)}.detail{padding:22px clamp(16px,2vw,32px) 16px}.detailhead{align-items:flex-start}.stockname{gap:12px}.stockname h2{font-size:1.6rem}#ticker{font-family:monospace}.price{gap:8px;margin-top:2px}.price strong{font-size:clamp(34px,4vw,52px);font-weight:650;letter-spacing:-.06em;line-height:1.25}.price span,.stats label{font-size:.88rem;color:var(--mute)}.price b{font-size:.88rem}.up{color:var(--red)}.down{color:var(--teal)}#badge{padding:4px 11px;font-size:.9rem;border-radius:6px;background:#faf0eb}#badge.down{background:#e4f3f1}.stats{display:grid;grid-template-columns:repeat(3,1fr);margin:16px 0 22px;background:#f6f8f4;padding:12px 0;border-radius:7px}.stats div{padding-left:18px;border-left:1px solid var(--edge)}.stats div:first-child{border:0}.stats b{display:block;font-size:1.18rem;margin-top:2px}.graphhead{gap:4px}.legend{gap:16px;margin:8px 0}.stroke{display:inline-block;height:3px;width:19px;border-radius:2px}.plot{height:clamp(280px,40vh,440px);position:relative}.plot canvas{width:100%;height:100%;display:block;touch-action:pan-y}#readout{display:flex;gap:4px 14px;flex-wrap:wrap;padding:10px 0 0;border-top:1px solid var(--edge);font-size:.85rem;color:var(--mute)}#readout strong{color:var(--ink)}footer{align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 1px 30px}footer details{max-width:410px;text-align:right}footer p{text-align:left;margin-top:7px}@media(max-width:760px){.topline{height:52px;gap:10px}.navbar{display:none}.intro{align-items:flex-start;flex-direction:column;padding:20px 0 12px;gap:8px}.intro p{display:none}.summary{gap:13px}.layout{display:flex;flex-direction:column;gap:10px}.layout>*{width:100%}aside{padding:10px}.asideHead{display:none}.search{margin:0 0 5px}#filters{margin:0 0 4px}#list{display:flex;overflow-x:auto;gap:4px}#list button{min-width:112px;width:auto;border:1px solid var(--edge);border-radius:6px;gap:10px}#list .val{font-size:.9rem}#list .val i{width:6px;height:6px}.detail{padding:14px}.stats{margin:12px 0}.plot{height:300px}footer{flex-wrap:wrap}.stockname{gap:7px}.asof{font-size:.8rem}}
[hidden]{display:none!important}#status:not(:empty){margin:0 0 14px;padding:9px 14px;border:1px solid var(--edge);border-radius:6px;color:#694d23;background:#fff8e9}
.scope{margin:12px 3px 0}.actions{display:flex;align-items:center;gap:8px}
#favorite,#pages button{background:white;border:1px solid var(--edge);border-radius:6px;padding:4px 9px;font-size:.86rem}#favorite[aria-pressed=true]{background:#fff5db;color:#885c05}
#pages{display:flex;align-items:center;gap:8px;padding:8px 4px;color:var(--mute);font-size:.8rem}#pages:empty{display:none}#pages button:disabled{opacity:.4}
#list{max-height:540px;overflow:auto}.ma-settings{border:0;margin:10px 0;padding:0}.ma-settings legend{font-size:.85rem;color:var(--mute)}#averages,#ma-values{display:flex;flex-wrap:wrap;gap:5px 13px;font-size:.82rem}#averages label{cursor:pointer;display:flex;align-items:center;gap:4px}#averages input{margin:0}#ma-values{margin-top:5px}#detail-msg:not(:empty){padding:10px;color:var(--mute)}
@media(max-width:760px){.actions{flex-direction:column;align-items:end}.detailhead{gap:6px}#list{max-height:unset}}
.stock-row{display:flex;align-items:stretch;border-top:1px solid #eef1ed}#list .stock-row button{border:0}#list .star{width:32px;min-width:32px;justify-content:center;padding:2px;color:#768377;font-size:1.13rem}#list .star[aria-pressed=true]{color:#a27212}
@media(max-width:760px){.stock-row{flex-shrink:0}}
#indicator-settings,.indicator-head,.indicator-head span{display:flex;align-items:center;flex-wrap:wrap;gap:5px 13px}
#indicator-settings label{font-size:.85rem;cursor:pointer}#indicator-settings input{accent-color:#34684e}
.indicator-pane{margin-top:14px;border-top:1px solid var(--edge);padding-top:9px}.indicator-head{justify-content:space-between;font-size:.85rem}
.indicator-pane canvas{display:block;width:100%;height:105px;touch-action:pan-y}
#boll-chart{height:155px}

.list-quote{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:2px 8px;margin-left:6px}
.quote-date,#close-date{white-space:nowrap;font-size:.78rem;font-weight:400;color:var(--mute);font-variant-numeric:tabular-nums}
.quote-date.older{color:#88591b}
.price{flex-wrap:wrap}
@media(max-width:1080px){.list-quote{flex-direction:column;align-items:flex-end}}

.date-tools,.study-panel .indicator-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.date-tools{font-size:.82rem;color:var(--mute);margin:6px 0}
#return-latest{font-size:.85rem;border:1px solid var(--edge);background:white;border-radius:5px;padding:3px 10px}
#return-latest:disabled{opacity:.5;cursor:default}
.study-panel{margin-top:20px;padding-top:14px;border-top:1px solid var(--edge);font-size:.88rem;font-variant-numeric:tabular-nums}
.study-panel h3{font-size:1rem}.study-panel time,.study-note{color:var(--mute);font-size:.8rem}
#bias-summary{margin:8px 0;font-weight:600}
#bias-levels>div{display:flex;justify-content:space-between;gap:4px 12px;flex-wrap:wrap;padding:5px 0;border-bottom:1px solid var(--edge)}
.study-note,.study-panel details{margin-top:8px}
#study-checks{display:grid;grid-template-columns:auto 1fr;gap:8px 14px}#study-checks dt{font-weight:600}#study-checks dd{margin:0}
@media(max-width:600px){#study-checks{display:block}#study-checks dt{margin-top:8px}}

.teacher-readings{display:grid;grid-template-columns:auto 1fr;gap:12px 18px}
.teacher-readings dt{font-weight:600}.teacher-readings dd{margin:0}
.teacher-readings small{display:block;color:var(--mute);font-size:.78rem;margin-top:3px}
@media(max-width:600px){.teacher-readings{display:block}.teacher-readings dt{margin-top:12px}}

.graphhead,#ranges,.legend{flex-wrap:wrap}#ranges button{white-space:nowrap}

#hover-bias,.marker-settings{display:flex;align-items:center;flex-wrap:wrap;gap:4px 13px;font-size:.82rem;color:var(--mute);margin:8px 0}
#hover-bias span:first-child{font-weight:600;color:var(--ink)}
.marker-settings input{accent-color:#34684e}

.summary,#filters{flex-wrap:wrap}.summary span,#filters button{white-space:nowrap}#badge.insufficient{background:#eef0ec;color:var(--mute)}
