body { margin: 0; background: #f9f7f2; color: #172528; }
.spo { --accent: #b5392f; --line: #e6ddd3; box-sizing: border-box; max-width: 1200px; margin: auto; padding: 28px 24px 64px; font: 500 16px/1.6 Manrope, sans-serif; }
.spo *, .spo *::before, .spo *::after { box-sizing: border-box; }
.spo a { color: #96332a; text-underline-offset: .17em; }
.spo :focus-visible { outline: 3px solid #8e3b30; outline-offset: 3px; }
.spo-breadcrumbs { font-size: .86rem; color: #506063; margin-bottom: 20px; overflow-wrap: anywhere; }
.spo-breadcrumbs span { margin-right: 4px; }
.spo-hero { padding: clamp(24px, 5vw, 52px); background: #f5e8dc; border-radius: 22px; border: 1px solid #efdfd2; }
.spo h1, .spo h2 { font-family: Unbounded, Manrope, sans-serif; font-weight: 650; color: #172528; margin: 0 0 12px; line-height: 1.22; overflow-wrap: anywhere; }
.spo h1 { font-size: clamp(1.55rem, 3.9vw, 2.85rem); }
.spo h2 { font-size: clamp(1.02rem, 2.5vw, 1.45rem); }
.spo p { margin: 0 0 14px; }
.spo p:last-child { margin-bottom: 0; }
.spo-hero p { max-width: 68ch; }
.spo-panel, .spo-action { padding: clamp(17px, 3vw, 31px); border: 1px solid var(--line); background: #fff; border-radius: 18px; margin-top: 20px; min-width: 0; }
.spo-action { background: #faf0e7; }
.spo-cards, .spo-scores { list-style: none; padding: 0; margin: 18px 0; }
.spo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 12px; }
.spo-cards li { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.spo-cards span { display: block; font-size: .85rem; color: #536063; font-variant-numeric: tabular-nums; }
.spo-cards a { font-weight: 750; }
.spo-scroll { overflow-x: auto; }
.spo table { width: 100%; min-width: 680px; border-collapse: collapse; text-align: left; }
.spo th, .spo td { padding: 11px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spo thead { background: #f6f1eb; }
.spo small { display: block; color: #506063; font-size: .88rem; }
.spo-scores li { padding: 10px 0; border-top: 1px solid var(--line); }
.spo-calculator { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
.spo-result { background: #f4e9dc; }
.spo-result output { display: block; margin-bottom: 8px; color: #87392e; font: 650 clamp(2.1rem, 6vw, 4rem)/1.15 Unbounded, Manrope, sans-serif; font-variant-numeric: tabular-nums; }
.spo-grades, .spo-filters, .spo-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.spo label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; min-width: 0; }
.spo-grades label { flex: 1; }
.spo-filters label { flex: 1 1 160px; }
.spo input, .spo select { width: 100%; min-height: 46px; background: #fff; border: 1px solid #a7988c; color: #172528; border-radius: 9px; font: inherit; padding: 7px 10px; }
.spo input[aria-invalid="true"] { border-color: var(--accent); }
.spo-error { min-height: 1.7em; color: #96332a; padding-top: 4px; }
.spo-button, .spo-secondary { display: inline-flex; min-height: 45px; align-items: center; padding: 9px 16px; border-radius: 10px; font: 750 1rem/1.3 Manrope, sans-serif; cursor: pointer; }
.spo .spo-button { border: 1px solid var(--accent); color: #fff; background: var(--accent); text-decoration: none; margin-right: 8px; }
.spo-button:hover { filter: brightness(.9); }
.spo-secondary { border: 1px solid var(--line); background: #fff; color: #172528; }
#score-status { margin-top: 14px; }
@media (max-width: 630px) { .spo { padding: 20px 14px 40px; } .spo-calculator { grid-template-columns: 1fr; gap: 0; } }
