:root{color-scheme:light;--ink:#17201d;--muted:#69736f;--line:#dfe5e1;--paper:#f4f6f3;--card:#fff;--red:#d94536;--red-soft:#fff0ed;--green:#167a57;--gold:#c68a20;--shadow:0 18px 45px rgba(25,45,37,.08)}
*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#edf2ed 0,#f8f7f3 300px);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}.shell{width:min(1480px,calc(100% - 32px));margin:auto;padding:38px 0 48px}.page-header,.control-row,.section-title{display:flex;align-items:center;justify-content:space-between;gap:20px}.page-header{margin-bottom:24px}.eyebrow{margin:0 0 7px;color:var(--green);font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}h1{margin:0;font-size:clamp(30px,4vw,48px);letter-spacing:-.04em}h2{margin:0;font-size:22px}.intro{max-width:720px;margin:10px 0 0;color:var(--muted)}.analysis-switch{display:inline-flex;margin-top:18px;border:1px solid var(--line);background:#fff}.analysis-switch-item{padding:9px 13px;color:var(--muted);font-size:13px;font-weight:750;text-decoration:none}.analysis-switch-item+.analysis-switch-item{border-left:1px solid var(--line)}.analysis-switch-item.active{background:var(--ink);color:#fff}.analysis-switch-item:focus-visible{outline:2px solid var(--green);outline-offset:2px}.back-link{align-self:flex-start;color:var(--ink);text-decoration:none;border-bottom:1px solid var(--ink);padding:6px 0}.control-panel,.rule-card,.data-section,.misses,.notes{background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.control-panel{padding:22px 24px;margin-bottom:28px}.control-row label{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;font-weight:700}select,button{font:inherit}select{min-width:145px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}button{border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);padding:9px 13px;cursor:pointer}button:hover{border-color:#93a49c}.primary{border-color:var(--ink);background:var(--ink);color:#fff;font-weight:800;padding:11px 18px}.time-output{display:flex;align-items:baseline;gap:12px;margin-left:auto}.time-output span{color:var(--muted);font-size:13px}.time-output strong{font-size:28px;font-variant-numeric:tabular-nums}input[type=range]{width:100%;margin:22px 0 4px;accent-color:var(--red)}.session-axis{display:flex;justify-content:space-between;color:var(--muted);font-size:11px}.quick-times{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.quick-times button.active{border-color:var(--red);background:var(--red-soft);color:var(--red);font-weight:800}.status{margin:16px 0 0;color:var(--muted)}.status.error{color:var(--red)}.coverage{color:var(--muted);font-size:13px}.metrics{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin:17px 0 24px}.metrics article{min-height:132px;padding:18px;background:var(--card);border:1px solid var(--line);border-radius:16px;display:flex;flex-direction:column}.metrics article.accent{background:var(--red-soft);border-color:#f0c7c0}.metrics span,.metrics small{color:var(--muted);font-size:12px}.metrics strong{margin:auto 0 6px;font-size:30px;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.accent strong{color:var(--red)}.rule-card{display:grid;grid-template-columns:260px 1fr;gap:18px 34px;padding:22px 24px;margin-bottom:24px}.rule-card ol{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none;counter-reset:rules}.rule-card li{counter-increment:rules;padding:9px 12px;border-radius:999px;background:#f0f4f1;font-size:13px}.rule-card li:before{content:counter(rules);display:inline-grid;place-items:center;width:20px;height:20px;margin-right:7px;border-radius:50%;background:var(--ink);color:#fff;font-size:11px}.rule-card>p{grid-column:1/-1;margin:0;padding-top:16px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}.data-section{padding:20px 22px;margin-bottom:20px}.section-title.compact{margin-bottom:15px}.section-title.compact span{color:var(--muted);font-size:13px}.table-wrap{overflow:auto;max-height:680px;border:1px solid var(--line);border-radius:12px}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}th{position:sticky;top:0;z-index:1;background:#f0f3f0;color:var(--muted);font-size:11px;text-align:right;padding:11px 10px;border-bottom:1px solid var(--line)}th:first-child,th:nth-child(2),td:first-child,td:nth-child(2){text-align:left}td{text-align:right;padding:11px 10px;border-bottom:1px solid #edf0ee;font-variant-numeric:tabular-nums}tr:last-child td{border-bottom:0}.stock strong{display:block;font-size:14px}.stock small{color:var(--muted)}.positive{color:var(--red);font-weight:750}.negative{color:var(--green);font-weight:750}.score{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:26px;border-radius:999px;background:var(--ink);color:#fff;font-weight:800}.hit,.miss,.gain{display:inline-block;padding:3px 7px;border-radius:999px;font-size:11px;font-weight:800}.hit,.gain{background:var(--red-soft);color:var(--red)}.miss{background:#edf0ee;color:var(--muted)}.two-column{display:grid;grid-template-columns:1.2fr .8fr;gap:20px}.two-column .data-section{min-width:0}.compact-table th,.compact-table td{padding:10px}.misses{padding:0 22px;margin-bottom:20px}.misses summary{cursor:pointer;padding:18px 0;font-weight:800}.chip-list{display:flex;flex-wrap:wrap;gap:8px;padding:0 0 20px}.chip-list span{padding:7px 10px;border:1px solid var(--line);border-radius:999px;font-size:12px}.notes{padding:22px;margin-bottom:20px}.notes ul{margin:12px 0 0;padding-left:20px;color:var(--muted);line-height:1.8;font-size:13px}footer{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;padding:10px 4px}
@media(max-width:1000px){.metrics{grid-template-columns:repeat(3,1fr)}.rule-card{grid-template-columns:1fr}.rule-card>p{grid-column:auto}.two-column{grid-template-columns:1fr}}
@media(max-width:680px){.shell{width:min(100% - 20px,1480px);padding-top:20px}.page-header,.control-row{align-items:flex-start;flex-direction:column}.back-link{position:absolute;right:14px;top:20px}.intro{padding-right:58px}.control-panel{padding:18px}.time-output{margin:0;width:100%;justify-content:space-between}.primary{width:100%}.metrics{grid-template-columns:repeat(2,1fr)}.metrics article{min-height:112px;padding:14px}.metrics strong{font-size:25px}.rule-card,.data-section{padding:18px}.section-title{align-items:flex-start}.coverage{text-align:right;max-width:150px}footer{flex-direction:column;gap:4px}}
.score-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:9px}.score-grid article{display:flex;min-height:92px;flex-direction:column;padding:13px;border:1px solid var(--line);border-radius:12px;background:#f8faf8}.score-grid span,.score-grid small{color:var(--muted);font-size:11px}.score-grid strong{margin:auto 0 3px;font-size:22px}.forward-heading{display:flex;justify-content:space-between;margin:20px 0 10px;font-size:13px;font-weight:800}.forward-heading small{color:var(--muted);font-weight:400}.hard-gates{grid-column:2;display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}.hard-gates li{counter-increment:none;padding:9px 12px;border:1px solid #efb8ae;border-radius:999px;background:var(--red-soft);color:var(--red);font-size:13px;font-weight:800}.hard-gates li:before{display:none}.rule-card ol{grid-column:2}.rule-card ol li{counter-increment:rules}.warning{color:var(--gold);font-weight:800}
.discovery-section{border-color:#d5dfd8}.research-note{margin:-3px 0 15px;color:var(--muted);font-size:13px}.rule-text{max-width:560px;white-space:normal!important;line-height:1.55;text-align:left!important}.examples-text{max-width:480px;white-space:normal!important;line-height:1.55;text-align:left!important}
.reverse-section{border-color:#cddbd2}.reverse-grid{display:grid;grid-template-columns:1fr;gap:22px}.reverse-grid h3{margin:0 0 10px;font-size:15px}.reverse-grid .table-wrap{max-height:470px}
@media(max-width:1000px){.rule-card ol,.hard-gates{grid-column:auto}}
@media(max-width:680px){.forward-heading{align-items:flex-start;flex-direction:column;gap:4px}.score-grid{grid-template-columns:repeat(2,1fr)}}
#rule-condition{margin:16px 0 0;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#f8faf8;color:var(--ink);font-weight:750;line-height:1.65}
.adopted-rule td{background:#fff6f3}.adopted-rule td:first-child{color:var(--red);font-weight:900}
