body{background:#fff;color:#212529;scroll-behavior:smooth}
.site-header{background:#fff;border-bottom:1px solid #e9ecef;position:sticky;top:0;z-index:1030}
.brand{display:flex;align-items:center;gap:.75rem}.brand img{height:80px;width:auto;object-fit:contain}
@media(min-width:768px){.brand img{height:100px}}
.site-title{font-weight:700;letter-spacing:.3px;margin:0;font-size:1.45rem}.site-subtitle{margin:0;color:#6c757d;font-size:.95rem}
.lang-switch .btn{padding:.25rem .6rem;border-radius:999px}.lang-switch .btn.active{background:#0d6efd;color:#fff}
.site-footer{background:#fff;border-top:1px solid #e9ecef}.footer-logos img{height:44px;width:auto;object-fit:contain}.footer-credit{font-size:.95rem;color:#495057}.footer-links a{color:#0d6efd;text-decoration:none}.footer-links a:hover{text-decoration:underline}
.color1{background-color:#f0eeeb}.color2{background-color:#d9e6f0}.color3{background-color:#f9f9f8}.color5{background-color:#d3d9ec}
.section-box{position:relative;padding:1rem;border-radius:10px;margin-bottom:1.5rem;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.section-title{font-weight:700;font-size:1.15rem;margin-bottom:.9rem;padding-bottom:.45rem;border-bottom:3px solid #cfcfcf}.color1 .section-title{border-bottom-color:#d4cdc5}.color2 .section-title{border-bottom-color:#5b88a5}.color3 .section-title{border-bottom-color:#bfc0bd}.color5 .section-title{border-bottom-color:#243a69}
.controls-panel{position:sticky;top:145px}.upload-zone{padding:1rem;background:#fff;border:1px dashed #9eabc2;border-radius:12px}
.accordion-item{border-color:#dee2e6}.accordion-button{font-weight:700}.accordion-button:not(.collapsed){background:#eef4fb;color:#212529;box-shadow:none}.form-label{font-size:.82rem;font-weight:600;color:#495057}
.steps-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:.4rem}.step-chip{position:relative}.step-chip input{position:absolute;opacity:0}.step-chip label{display:block;text-align:center;padding:.45rem .3rem;border:1px solid #adb5bd;border-radius:7px;background:#fff;color:#495057;font-size:.82rem;font-weight:700;cursor:pointer}.step-chip input:checked+label{background:#0d6efd;border-color:#0d6efd;color:#fff}
.metrics{display:grid;grid-template-columns:repeat(6,1fr);gap:.65rem}.metrics article{background:#fff;border:1px solid #e5e8ed;border-radius:10px;padding:.8rem;text-align:center;box-shadow:0 1px 3px rgba(0,0,0,.04)}.metrics span{display:block;color:#6c757d;font-size:.78rem;font-weight:700;letter-spacing:.06em}.metrics strong{display:block;color:#243a69;font-size:1.45rem;line-height:1.2;margin-top:.2rem}
.chart-wrap{background:#fff;border:1px solid #e0e4e8;border-radius:8px;overflow:hidden}.chart{display:block;width:100%;height:auto;min-height:360px;background:#fff}.chart.demag{min-height:300px}
.legend{display:flex;gap:1rem;flex-wrap:wrap;color:#495057;font-size:.85rem}.legend>span{display:flex;align-items:center;gap:.35rem}.legend i{display:inline-block;width:10px;height:10px;border:2px solid #0d6efd}.legend .square{background:#0d6efd}.legend .circle{border-radius:50%;background:#fff;border-color:#198754}.legend .dash{width:20px;height:0;border:0;border-top:2px dashed #c88719}
.format-code{display:block;background:#fff;border:1px solid #e4e7eb;border-radius:8px;padding:.8rem;color:#243a69;overflow:auto;white-space:nowrap}
.format-table-wrap{border:1px solid #dee2e6;border-radius:8px;background:#fff}.format-table{font-size:.88rem}.format-table thead th{background:#eef2f7;color:#243a69;white-space:nowrap}.format-table code{color:#243a69;font-weight:700}.format-example{background:#fff;border:1px solid #e4e7eb;border-radius:8px;padding:.9rem}.example-data-table{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.86rem;table-layout:fixed;min-width:570px}.example-data-table th,.example-data-table td{text-align:right;padding:.38rem .65rem;white-space:nowrap}.example-data-table th:first-child,.example-data-table td:first-child{text-align:left}.example-data-table thead th{color:#243a69;border-bottom:2px solid #cbd4df}.example-data-table tbody td{border-bottom:1px solid #edf0f3}
.specimen-picker{background:#fff;border:1px solid #dee2e6;border-radius:10px;padding:.85rem}.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.guide-step{margin-bottom:0;position:relative;padding-left:4rem}.guide-step h2{font-size:1.05rem;font-weight:700}.guide-step p{margin:0;color:#495057}.guide-number{position:absolute;left:1rem;top:1rem;width:2.2rem;height:2.2rem;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#243a69;color:#fff;font-weight:700}
svg text{font-family:Arial,sans-serif;fill:#53647a;font-size:14px}.axis{stroke:#8fa0b2;stroke-width:1}.grid{stroke:#e5ebf1;stroke-width:1}.series-h{fill:none;stroke:#0d6efd;stroke-width:2.5}.series-v{fill:none;stroke:#198754;stroke-width:2.5}.pca{stroke:#c88719;stroke-width:2;stroke-dasharray:7 5}.point-h{fill:#0d6efd}.point-v{fill:#fff;stroke:#198754;stroke-width:2}.demag-line{fill:none;stroke:#0d6efd;stroke-width:2.5}.norm-line{fill:none;stroke:#198754;stroke-width:2;stroke-dasharray:6 4}.point-demag{fill:#0d6efd}.point-norm{fill:#fff;stroke:#198754;stroke-width:2}
.interactive-point{cursor:crosshair}.chart-tooltip{position:fixed;z-index:2000;pointer-events:none;display:none;max-width:260px;padding:.55rem .7rem;border-radius:8px;background:rgba(24,36,56,.96);color:#fff;box-shadow:0 6px 18px rgba(0,0,0,.22);font-size:.82rem;line-height:1.45}.chart-tooltip strong{color:#fff}.nrm-label{fill:#243a69;font-weight:700;font-size:15px}
.saved-table{min-width:650px}.saved-table th{color:#243a69;white-space:nowrap}.saved-table td{vertical-align:middle}.saved-table .btn{padding:.15rem .45rem}
@media(max-width:991.98px){.controls-panel{position:static}.site-title{font-size:1.2rem}}
@media(max-width:767.98px){.metrics{grid-template-columns:repeat(3,1fr)}.chart{min-height:280px}}
@media(max-width:767.98px){.guide-grid{grid-template-columns:1fr}}
@media(max-width:575.98px){.metrics{grid-template-columns:repeat(2,1fr)}.site-title{font-size:1.05rem}.brand img{height:60px}}
