.math-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.math-heading h1{font-size:clamp(26px,4vw,40px);margin:3px 0}.math-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px}.math-tabs button{text-align:left;padding:12px;font-weight:700}.math-tabs small{display:block;opacity:.65;font-size:11px;letter-spacing:.14em}.math-tabs [aria-pressed=true]{border-color:#54d8ce;background:#183e4b;color:#fff}.math-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:16px;align-items:start}.math-layout .panel{min-width:0;padding:20px}.math-layout h2{font-size:24px;margin:5px 0 12px}.math-layout p{line-height:1.55}.math-layout input[type=range]{width:100%;padding:0;margin:12px 0;accent-color:#ffc979;min-height:32px}.math-layout select{width:100%}.math-source{display:inline-block;padding:5px 9px;border:1px solid #577c93;border-radius:7px;font-size:12px;margin-bottom:10px}.math-chart{width:100%;height:auto;display:block;overflow:visible}.math-chart text{fill:currentColor;font-size:12px}.math-axis{stroke:#7993ac;fill:none}.math-bar{fill:#668ab5}.math-selected{fill:#ffc979}.math-cumulative{fill:none;stroke:#50d6d2;stroke-width:3}.math-mean{fill:none;stroke:#ffc979;stroke-width:3;stroke-dasharray:7 4}.math-normal{fill:none;stroke:#e9edff;stroke-width:2;stroke-dasharray:5 4}.math-result{border:1px solid #496c8c;border-radius:12px;padding:14px;margin:8px 0 16px}.math-result>strong{font-size:22px}.math-result p{margin:8px 0}.math-metrics{display:flex;flex-wrap:wrap;gap:20px}.math-metrics strong{display:block;font-size:26px}.math-metrics small{display:block}.math-think{border-left:3px solid #50d6d2;padding-left:12px}.math-prompt{font-size:19px}.math-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.math-choices button{font-size:22px;min-height:48px}.math-mission input{width:110px;min-width:0}.math-mission details{margin:12px 0}.math-next{margin-top:12px}#math-feedback{margin-top:14px}#math-progress{border-top:1px solid #496c8c;margin-top:24px;padding-top:12px}#math-progress p{margin:8px 0}#math-progress small{display:block}.math-card-list{max-height:340px;overflow:auto}.math-card-list>div{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #496c8c}.math-card-list img{width:35px;height:48px;object-fit:contain}.math-card-list span{flex:1}.math-card-list small{display:block;font-size:11px}@media(max-width:800px){.math-layout{grid-template-columns:1fr}.math-tabs button{padding:9px;font-size:13px}.math-heading{align-items:start}.math-heading .button{font-size:12px}.math-layout .panel{padding:15px}.math-mission{margin-bottom:20px}}@media(prefers-reduced-motion:reduce){.page-math *{scroll-behavior:auto;transition:none}}
.analysis-tabs{display:flex;gap:6px;margin:0 0 16px;border-bottom:1px solid #58b9da;padding-bottom:7px}.analysis-tabs a{border:1px solid transparent;border-radius:8px;padding:9px 14px;color:#b8d4ef;text-decoration:none;font-weight:700}.analysis-tabs a.active{background:#163c58;border-color:#55d8d5;color:white}.analysis-tabs a:hover{border-color:#55d8d5}

/* Unified analysis dashboard */
.page-analysis h1{font-size:28px;margin:0}.analysis-heading,.analysis-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.analysis-heading{margin-bottom:12px}.analysis-section-heading{margin-bottom:10px}.analysis-section-heading h2{font-size:18px;margin:0}.analysis-section-heading>span{font-size:11px;color:#b8d4ef}.analysis-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}.analysis-metrics>div{padding:12px;border:1px solid #577c93;border-radius:10px;background:#101c3cbb}.analysis-metrics strong{font-size:25px;display:block}.analysis-metrics span{font-size:12px;color:#b8d4ef}.analysis-overview{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.page-analysis .panel{padding:14px;min-width:0}.analysis-history{width:100%;display:block;max-height:170px}.analysis-history text{fill:#b8d4ef;font-size:12px}.analysis-card-list{max-height:225px;overflow:auto}.analysis-card{display:flex;align-items:center;gap:10px;padding:6px 0;text-decoration:none;color:inherit;border-bottom:1px solid #577c9344}.analysis-card>img,.analysis-card>.no-image{width:38px;height:53px;object-fit:contain;flex:none}.analysis-card>span{flex:1;min-width:0}.analysis-card strong,.analysis-card small{display:block}.analysis-card strong{font-size:13px}.analysis-card small{font-size:11px;color:#b8d4ef}.analysis-card b{font-size:14px;white-space:nowrap}.analysis-evidence{font-size:12px;margin-top:10px}.analysis-empty{font-size:13px;color:#b8d4ef}.analysis-labs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px}.embedded-math{min-width:0}.embedded-math .math-layout{display:block}.embedded-math .math-layout h2{font-size:18px;min-height:44px}.embedded-math .math-layout p{font-size:12px;line-height:1.4;margin:8px 0}.embedded-math .eyebrow{font-size:9px;letter-spacing:.06em}.embedded-math label{font-size:12px}.embedded-math select{font-size:12px;padding:6px}.embedded-math .math-result{padding:9px;margin:8px 0}.embedded-math .math-result>strong{font-size:17px}.embedded-math .math-result small{font-size:11px}.embedded-math .math-metrics{gap:12px}.embedded-math .math-metrics strong{font-size:20px}.embedded-math .math-source{font-size:10px;padding:4px;margin:3px 0}.embedded-math .math-think{font-size:12px}.embedded-math .math-mission{margin-top:8px}.embedded-math .math-mission summary{cursor:pointer;font-weight:700}.embedded-math .math-prompt{font-size:15px!important}.embedded-math #math-progress{margin-top:8px}.analysis-threshold input{max-width:110px}.analysis-threshold form{margin:12px 0}.analysis-threshold summary{cursor:pointer}.page-analysis .feature-note{font-size:11px}
@media(max-width:1050px){.analysis-labs{grid-template-columns:1fr}.embedded-math .math-layout{display:block}.embedded-math .math-layout h2{min-height:0}.embedded-math .math-mission{margin-top:8px}.embedded-math .math-chart{max-height:230px}}
@media(max-width:650px){.analysis-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.analysis-overview{grid-template-columns:1fr}.embedded-math .math-layout{display:block}.embedded-math .math-mission{margin-top:8px}.analysis-heading .button{font-size:11px}.analysis-section-heading>span{max-width:45%;text-align:right}.analysis-metrics strong{font-size:23px}}
.collection-value-histogram{width:100%;height:auto;max-height:300px;display:block;color:#d9e6fa}.collection-value-histogram text{fill:currentColor;font-size:12px}.collection-value-histogram [role=button]{cursor:pointer}.collection-value-histogram [role=button]:focus .math-bar{fill:#ffc979;stroke:white;stroke-width:2}.value-band-buttons{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:.6rem 0}.value-band-buttons button{padding:.6rem .3rem;font-size:12px;min-width:0}.value-band-buttons button strong{display:block}.value-band-buttons [aria-pressed=true]{border-color:#50d6d2;background:#163c58}.value-unpriced{display:flex;gap:.7rem;flex-wrap:wrap;padding:.8rem;margin:.8rem 0;border:1px dashed #7993ac;border-radius:.6rem}.value-unpriced span{font-size:12px}.value-band-detail h3{font-size:16px;margin:.7rem 0}.collection-analysis{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:12px}.collection-analysis .math-layout h2{min-height:0}@media(max-width:700px){.value-band-buttons{grid-template-columns:repeat(4,minmax(0,1fr))}.collection-analysis{grid-template-columns:1fr}.collection-value-histogram text{font-size:13px}}@media(max-width:430px){.value-band-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}}
