:root{color-scheme:dark;--bg:#071521;--panel:#0b1d2b;--text:#deedf5;--muted:#7d9aab;--faint:#526f82;--line:rgba(136,183,203,.13);--teal:#60d4d0;--green:#58dda4;--red:#f27994}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}body{background:radial-gradient(ellipse at 50% -40%,rgba(32,80,105,.3),transparent 65%),var(--bg)}[hidden]{display:none!important}button,input,select{font:inherit}button,select{color:var(--muted);background:transparent;border:1px solid var(--line);border-radius:7px;min-height:34px}button{cursor:pointer;padding:7px 11px;font-size:11px;white-space:nowrap}button:hover{color:var(--text);border-color:rgba(96,212,208,.4);background:rgba(96,212,208,.04)}button:disabled{opacity:.3;cursor:default}button:focus-visible,select:focus-visible,input:focus-visible,#radar:focus-visible{outline:2px solid var(--teal);outline-offset:3px}input::placeholder{color:var(--faint)}button,input,select{-webkit-tap-highlight-color:transparent}.app{max-width:2200px;margin:auto;padding:0 32px}.masthead{height:85px;display:flex;align-items:center;justify-content:space-between;gap:24px}.identity{display:flex;align-items:center;gap:13px;min-width:0}.identity img{opacity:.9}h1{font-size:20px;font-weight:550;letter-spacing:1.5px;margin:0;white-space:nowrap}.date{font-size:11px;color:var(--muted);padding-left:14px;border-left:1px solid var(--line);white-space:nowrap;font-variant-numeric:tabular-nums}.updating{font-size:9px;color:var(--muted);white-space:nowrap}.search-wrap{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:8px;width:240px;height:36px;padding:0 11px}.search-wrap:focus-within{border-color:rgba(96,212,208,.45)}.search-wrap svg{width:15px;height:15px;stroke:var(--muted);stroke-width:1.5;fill:none;flex-shrink:0}.search-wrap input{background:transparent;border:0;outline:none;color:var(--text);width:100%;min-width:0;font-size:11px;height:100%}.search-wrap input:focus-visible{outline:none}.key-hint{border:1px solid var(--line);border-radius:3px;font-size:10px;color:var(--faint);padding:1px 5px}.workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}.workspace.has-detail{grid-template-columns:minmax(0,1.5fr) minmax(460px,1fr)}.radar-panel,.detail{border:1px solid var(--line);border-radius:13px;background:linear-gradient(150deg,rgba(19,48,64,.42),rgba(9,25,39,.4));overflow:hidden;min-width:0}.toolbar{padding:16px 20px 4px;display:flex;align-items:center;justify-content:space-between;gap:16px}.positions{display:flex;align-items:center;gap:5px}.positions button{border-color:transparent;display:flex;align-items:center;gap:7px;padding:7px 11px;font-size:11px}.positions button span{opacity:.6;font-size:10px;font-variant-numeric:tabular-nums}.positions button[aria-pressed=true]{color:var(--text);border-color:rgba(96,212,208,.25);background:rgba(96,212,208,.065)}i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#8fa6b8}.green{background:var(--green);box-shadow:0 0 6px rgba(88,221,164,.2)}.red{background:var(--red);box-shadow:0 0 6px rgba(242,121,148,.2)}.view-tools{display:flex;gap:8px;align-items:center}.view-tools select{font-size:10px;padding:4px 9px;max-width:115px}.view-tools button{display:flex;align-items:center;justify-content:center;width:34px;padding:7px}.view-tools svg{height:15px;width:15px;stroke:currentColor;stroke-width:1.5;fill:none;stroke-linejoin:round;stroke-linecap:round}.radar-stage{position:relative}#radar{height:calc(100svh - 205px);min-height:410px;max-height:1100px;width:100%;outline-offset:-4px}.empty{position:absolute;top:43%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:12px;color:var(--muted);font-size:11px;text-align:center;width:80%;pointer-events:none}.empty strong{font-size:14px;font-weight:500;color:var(--text)}.empty .empty-icon{color:var(--teal);opacity:.4;font-size:40px;margin-bottom:4px}.radar-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;color:var(--faint);font-size:10px;padding:9px 22px 17px;line-height:1.6}.radar-footer>span:first-child{display:flex;align-items:center;gap:6px}.signal-dot{width:4px;height:4px;background:var(--teal);margin-right:3px;opacity:.65}.mobile-hint{display:none}.site-footer{padding:16px 2px 18px;display:flex;justify-content:space-between;gap:16px;font-size:9px;color:var(--faint)}.site-footer a{color:inherit;text-decoration:none}.site-footer a:hover{color:var(--muted)}#message{font-size:11px;color:#d6bc8e;background:rgba(214,188,142,.04);border:1px solid rgba(214,188,142,.2);padding:10px 14px;border-radius:7px;margin-bottom:14px}.detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 18px 15px}.detail-head p{font-size:10px;color:var(--muted);margin:0 0 7px;font-variant-numeric:tabular-nums}.detail-head h2{margin:0;font-size:17px;font-weight:550;outline:none}.detail-head h2 small{font-size:11px;font-weight:400;color:var(--muted);margin-left:9px}.detail-actions{display:flex;align-items:center;gap:5px}.detail-actions button{font-size:15px;min-width:33px;padding:5px 8px}#close{font-size:22px;line-height:1}.detail-levels{display:flex;align-items:center;gap:22px;margin:0 18px;border-block:1px solid var(--line);padding:12px 0;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}.detail-levels strong{font-size:12px;color:var(--text);font-weight:400;margin-left:5px}#distance{margin-left:auto}.above{color:var(--green)}.below{color:var(--red)}#chart{width:100%;height:calc(100svh - 313px);min-height:340px}.chart-key{display:flex;gap:14px;padding:13px 18px 18px;color:var(--muted);font-size:9px;flex-shrink:0}.chart-key>span{display:flex;gap:5px;align-items:center}.chart-key i{width:10px;height:6px;border-radius:0;background:none}.chart-key .selected-center{border:1px solid var(--teal);background:rgba(96,212,208,.1)}.chart-key .other-center{border:1px solid var(--faint)}.chart-key .pen{height:2px;background:#65a9d7}.chart-key .tail{height:0;border-bottom:1px dashed #e4bc77}.backdrop{position:fixed;inset:0;z-index:30;background:rgba(1,9,16,.75);backdrop-filter:blur(4px)}#chartMessage{margin:0 18px 12px;color:var(--muted);font-size:11px;line-height:1.7}
@media(max-width:1279px){.workspace.has-detail{grid-template-columns:minmax(0,1fr)}.detail:not([hidden]){position:fixed;inset:16px 16px 16px auto;z-index:40;width:min(800px,calc(100% - 32px));background:#0a1c2b;display:flex;flex-direction:column}.detail-head,.detail-levels{flex-shrink:0}#chart{height:auto;flex:1;min-height:330px}}
@media(max-width:760px){.app{padding:0 16px}.masthead{height:80px;gap:16px}.identity{gap:9px}.identity img{width:23px;height:23px}h1{font-size:18px}.date{font-size:10px;padding-left:10px}.search-wrap{width:180px}.key-hint{display:none}.toolbar{padding:14px 14px 4px;gap:10px}.positions{gap:2px}.positions button{font-size:10px;padding:6px 8px;gap:5px}.positions button span{font-size:9px}.view-tools{gap:5px}.view-tools select{font-size:9px;padding:4px 6px;max-width:100px}.view-tools button{width:30px;min-height:31px}.radar-footer{padding:8px 16px 14px;font-size:9px}.desktop-hint{display:none}.mobile-hint{display:inline}#radar{height:calc(100svh - 190px);min-height:420px}.site-footer{font-size:8px}.updating{font-size:8px}}
@media(max-width:480px){.app{padding:0 10px}.masthead{height:auto;min-height:113px;align-items:start;flex-wrap:wrap;gap:12px;padding:17px 4px 14px}.identity{width:100%;gap:9px}h1{font-size:18px}.date{margin-left:auto;padding-left:12px;font-size:10px}.search-wrap{width:100%;height:32px}.toolbar{flex-wrap:wrap;padding:11px 10px 3px;gap:8px}.positions{gap:2px;flex:1}.positions button{padding:5px 7px;gap:4px;font-size:10px}.positions i{width:5px;height:5px}.positions button span{margin-left:1px;font-size:9px}.view-tools{gap:4px}.view-tools select{max-width:87px;font-size:9px;min-height:30px;padding-inline:4px}.view-tools button{width:28px;min-height:30px}#radar{height:calc(100svh - 245px);min-height:370px}.radar-footer{padding:9px 12px 13px;font-size:8px;gap:7px}.site-footer{font-size:8px;padding-top:13px}.detail:not([hidden]){inset:8px;width:calc(100% - 16px);border-radius:10px}.detail-head{padding:16px 13px 13px}.detail-head h2{font-size:15px}.detail-head p{font-size:9px}.detail-head h2 small{font-size:10px;margin-left:7px}.detail-actions button{min-width:31px;min-height:37px}.detail-levels{margin-inline:13px;gap:15px;font-size:9px;padding:11px 0}.detail-levels strong{font-size:11px}#chart{min-height:300px}.chart-key{padding-inline:13px;gap:11px;font-size:8px}.empty{font-size:10px}.empty strong{font-size:13px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Both navigation levels use named radar circles. */
.home-link{position:relative;z-index:50;display:flex;align-items:center;gap:13px;color:var(--text);text-decoration:none;border-radius:6px;flex-shrink:0}.home-link:hover{color:#fff}.home-link:focus-visible{outline:2px solid var(--teal);outline-offset:7px}
.industry-overview{border:1px solid var(--line);border-radius:13px;background:linear-gradient(145deg,rgba(19,48,64,.4),rgba(9,25,39,.4));overflow:hidden}.industry-head{display:flex;align-items:center;justify-content:space-between;padding:13px 23px 4px;gap:15px}.industry-head h2{font-size:12px;font-weight:450;color:var(--muted);margin:0}.industry-tools{display:flex;align-items:center;gap:13px;color:var(--faint);font-size:10px}.industry-tools button{width:31px;padding:3px;font-size:17px;min-height:30px}.industry-stage{position:relative}.industry-groups{width:100%;height:calc(100svh - 213px);min-height:505px;max-height:1100px}.industry-groups:focus-visible{outline:2px solid var(--teal);outline-offset:-4px}.industry-empty{position:absolute;top:45%;width:100%;text-align:center;color:var(--muted);font-size:12px;margin:0;pointer-events:none}.industry-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;color:var(--faint);font-size:10px;padding:6px 23px 18px}.industry-footer>span:first-child{display:flex;align-items:center;gap:7px}.industry-footer i{width:4px;height:4px;margin-left:9px}.industry-footer i:first-child{margin-left:0}
.industry-navigation{display:flex;align-items:center;gap:13px;padding:14px 20px 0;color:var(--faint);font-size:11px}.industry-navigation button{padding:4px 0;border:0;min-height:29px;background:transparent;font-size:10px}.industry-navigation select{font-size:12px;color:var(--text);border-color:transparent;padding:4px 20px 4px 0;max-width:230px;min-height:29px}.radar-panel:has(.industry-navigation) #radar{height:calc(100svh - 246px)}
@media(max-width:760px){.home-link{gap:9px}.industry-head{padding:13px 17px 3px}.industry-navigation{padding-inline:14px;gap:10px}.radar-panel:has(.industry-navigation) #radar{height:calc(100svh - 231px)}.industry-footer{padding-inline:17px;font-size:9px}.industry-tools{gap:8px}}
@media(max-width:480px){.industry-head{padding:12px 15px 3px}.industry-head h2{font-size:11px}.industry-tools{font-size:9px}.industry-groups{height:calc(100svh - 253px);min-height:520px}.industry-footer{font-size:8px;padding:7px 15px 16px;gap:9px}.industry-footer>span:first-child{gap:5px}.industry-footer i{margin-left:5px}.industry-navigation{padding:10px 12px 0;gap:10px}.industry-navigation select{max-width:185px;font-size:11px}.radar-panel:has(.industry-navigation) #radar{height:calc(100svh - 286px)}}
/* Keep the home action reachable while a K chart is open on smaller screens. */
@media(max-width:1279px){.detail:not([hidden]){top:70px}.backdrop{top:70px}}
@media(max-width:480px){.detail:not([hidden]){top:58px}.backdrop{top:58px}}

.brand-copy{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.brand-copy h1{line-height:1.2}.brand-subtitle{margin:0;color:var(--muted);font-size:10px;line-height:1.3;font-weight:400;letter-spacing:1.8px}@media(max-width:480px){.brand-subtitle{font-size:9px;letter-spacing:1.6px}}

/* Cutoff pen states share the same legend on industry and stock radars. */
.radar-legend{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:9px 22px;padding:10px 20px;color:var(--muted);font-size:10px;line-height:1.5}
.radar-legend span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.radar-legend i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#8fa6b8}
.radar-legend .state-advance{background:#60efac}.radar-legend .state-pullback{background:#cc94ff}.radar-legend .state-decline{background:#ff6a84}.radar-legend .state-rebound{background:#ffdf6c}
.phase-advance{color:#60efac}.phase-pullback{color:#cc94ff}.phase-decline{color:#ff6a84}.phase-rebound{color:#ffdf6c}.phase-inside{color:#8fa6b8}
@media(max-width:480px){.radar-legend{padding:8px 12px;gap:8px 16px;font-size:9px}}
.above-key{background:linear-gradient(135deg,#60efac 50%,#cc94ff 50%)}.below-key{background:linear-gradient(135deg,#ff6a84 50%,#ffdf6c 50%)}
/* The same breadcrumb stays visible on both industry and stock levels. */
#industryNavigation{flex-wrap:wrap;padding:0 2px 12px;gap:10px}#parentIndustry{font-size:12px;color:var(--text);opacity:1}#parentIndustry:disabled{cursor:default}#industryNavigation select{max-width:min(210px,45vw)}body:has(#industryNavigation:not([hidden])) .industry-groups{height:calc(100svh - 258px)}body:has(#industryNavigation:not([hidden])) #radar{height:calc(100svh - 268px)}
@media(max-width:480px){#industryNavigation{gap:8px}#industryNavigation button{font-size:10px}#industryNavigation select{font-size:11px}body:has(#industryNavigation:not([hidden])) .industry-groups{height:calc(100svh - 292px);min-height:440px}}

.detail-levels{flex-wrap:wrap;gap:10px 18px}.price-relation{font-size:10px;line-height:1.7;color:var(--muted);margin:9px 18px 2px;font-variant-numeric:tabular-nums}#cutoffPrice{color:var(--text);font-weight:600}@media(max-width:480px){.detail-levels{gap:9px 12px}.price-relation{font-size:9px}.industry-footer>span:first-child{max-width:62%;line-height:1.6}}

/* Independent radar and drawing snapshot times. */
.snapshot-times{display:grid;gap:5px;min-width:0}.snapshot-times .date{display:block;margin-left:0;line-height:1.45}
@media(max-width:480px){.snapshot-times{margin-left:auto;gap:3px}.snapshot-times .date{font-size:9px;padding-left:9px}}

/* The X axis uses the same metric at every classification depth. */
.radar-axis-control{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;color:var(--muted);font-size:11px}.radar-axis-control select{font:inherit;min-height:30px;padding:4px 7px;max-width:156px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:5px}.radar-axis-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:10px 0 14px}.radar-axis-toolbar>span{font-size:11px;color:var(--muted);line-height:1.6}.radar-toolbar{flex-wrap:wrap}@media(max-width:550px){.radar-axis-toolbar{gap:7px}.radar-axis-toolbar>span{flex-basis:100%}.radar-toolbar .gesture-hint{display:none}}

.selection-rules{margin:0 0 16px;padding:10px 14px;border:1px solid #234354;border-radius:12px;color:#b6ccd8;font-size:12px;line-height:1.7}.selection-rules summary{cursor:pointer;color:#cce8e8}.selection-rules p{margin:10px 0 0}.theme-evidence:empty{display:none}

.optional-chip-filter{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;margin:0 0 16px;padding:11px 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel);font-size:13px}.optional-chip-filter label{display:inline-flex;align-items:center;gap:8px;color:var(--text);cursor:pointer}.optional-chip-filter input{width:16px;height:16px;margin:0;accent-color:var(--teal)}.optional-chip-filter label:has(input:disabled){opacity:.5;cursor:default}.optional-chip-filter>span{color:var(--muted);font-size:12px}.chip-peak-evidence{padding:10px 12px;margin:10px 16px;border:1px solid var(--line);border-radius:8px;color:var(--muted);font-size:12px;line-height:1.7;overflow-wrap:anywhere}
