:root {
    --bg: #f4f6fb;
    --card: #ffffff;
    --text: #1d2433;
    --muted: #5b6478;
    --accent: #c8431f;
    --accent-soft: #fdebe5;
    --line: #e2e6ef;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #12151c;
        --card: #1b2029;
        --text: #e8ebf2;
        --muted: #a2aabb;
        --accent: #ff7a52;
        --accent-soft: #3a2420;
        --line: #2c3340;
    }
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.65 "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }
.top, .bottom, main { max-width: 820px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
main.wide { max-width: 1200px; }
.top { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
.top nav a { margin-left: 12px; font-size: 14px; }
.top nav a[aria-current] { color: var(--text); font-weight: 700; text-decoration: none; }
main { padding-top: 12px; padding-bottom: 40px; }
h1 { font-size: 36px; line-height: 1.2; margin: 12px 0; }
h2 { font-size: 23px; line-height: 1.3; margin: 32px 0 10px; }
h3 { font-size: 18px; margin: 20px 0 4px; }
.lead { font-size: 20px; color: var(--muted); }
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 99px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}
.status { border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 12px 16px; }
.error { color: var(--accent); font-weight: 600; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 24px; }
.card, .cta, .interest { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card h2, .card h3 { margin-top: 10px; font-size: 20px; }
h2.group { margin-top: 48px; }
.related { columns: 2 220px; }
.cta { margin: 32px 0; }
.cta h2 { margin-top: 0; }
button {
    padding: 12px 24px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
@media (prefers-color-scheme: dark) { button { color: #12151c; } }
.interest label { display: block; margin-top: 16px; font-weight: 600; }
.interest fieldset { border: 0; padding: 0; margin: 0; }
.interest legend { font-weight: 600; padding: 0; }
.interest fieldset label, .interest .check { font-weight: 400; margin-top: 8px; }
.interest textarea, .interest input[type=email], .interest input[type=password] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
}
.interest small { display: block; margin-top: 8px; color: var(--muted); }
.interest button { margin-top: 18px; }
.hp { position: absolute; left: -9999px; }
.bottom { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 16px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--card); }
th, td { border: 1px solid var(--line); padding: 8px; text-align: left; }
@media (max-width: 480px) { h1 { font-size: 28px; } .lead { font-size: 18px; } }

/* Evaluation charts: validated categorical palette (dataviz reference instance), light and dark steps. */
:root {
    --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
    --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
}
@media (prefers-color-scheme: dark) {
    :root {
        --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
        --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
    }
}
.charts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); margin: 20px 0; }
.viz { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.viz figcaption { font-weight: 600; margin-bottom: 8px; }
.viz svg { display: block; width: 100%; max-width: 720px; height: auto; }
.viz text { font-size: 12px; fill: var(--muted); }
.viz .label { fill: var(--text); }
.viz .grid { stroke: var(--line); stroke-width: 1; }
.viz .axis { stroke: var(--muted); stroke-width: 1; }
.viz .hit { fill: transparent; }
.viz .hit:hover, .viz .row:hover .hit { fill: var(--line); fill-opacity: .45; }
.viz .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz .dot { stroke: var(--card); stroke-width: 2; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px; padding: 0; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 12px; height: 4px; border-radius: 2px; }
.bar.s1 { fill: var(--s1); }
.ln.s1 { stroke: var(--s1); } .dot.s1, .sw.s1 { fill: var(--s1); background: var(--s1); }
.ln.s2 { stroke: var(--s2); } .dot.s2, .sw.s2 { fill: var(--s2); background: var(--s2); }
.ln.s3 { stroke: var(--s3); } .dot.s3, .sw.s3 { fill: var(--s3); background: var(--s3); }
.ln.s4 { stroke: var(--s4); } .dot.s4, .sw.s4 { fill: var(--s4); background: var(--s4); }
.ln.s5 { stroke: var(--s5); } .dot.s5, .sw.s5 { fill: var(--s5); background: var(--s5); }
.ln.s6 { stroke: var(--s6); } .dot.s6, .sw.s6 { fill: var(--s6); background: var(--s6); }
.ln.s7 { stroke: var(--s7); } .dot.s7, .sw.s7 { fill: var(--s7); background: var(--s7); }
.ln.s8 { stroke: var(--s8); } .dot.s8, .sw.s8 { fill: var(--s8); background: var(--s8); }
.muted { color: var(--muted); }
.tip { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.tip summary { cursor: pointer; font-weight: 600; }
.tip dt { font-weight: 600; margin-top: 6px; }
.tip dd { margin: 0; color: var(--muted); }
