:root { --fr-navy:#102f4b; --fr-orange:#e97900; --fr-bg:#f4f7fb; }
html {scroll-behavior:smooth}
.fr-globalbar {background:var(--fr-navy);color:#fff;position:relative;z-index:30;font-family:Inter,Arial,sans-serif;font-size:13px;box-shadow:0 2px 6px rgba(16,47,75,.09)}
.fr-globalbar * {box-sizing:border-box}
.fr-top {max-width:1460px;margin:auto;display:flex;align-items:center;gap:12px;padding:10px 17px;flex-wrap:wrap}
.fr-logo {color:#fff;text-decoration:none!important;font-size:19px;font-weight:900;letter-spacing:.05em;white-space:nowrap;line-height:1.4}
.fr-logo span:nth-child(5n+1){color:#8ad1ff}.fr-logo span:nth-child(5n+2){color:#ffc861}.fr-logo span:nth-child(5n+3){color:#8fd8a9}.fr-logo span:nth-child(5n+4){color:#fda4b1}.fr-logo span:nth-child(5n){color:#cdb7ff}
.fr-tagline{color:#dce9f6;font-size:12px;flex:1;min-width:145px}
.fr-nav-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.fr-pill{display:inline-flex;align-items:center;justify-content:center;gap:5px;text-decoration:none!important;background:#ffffff1b;color:white!important;border:1px solid #ffffff55;border-radius:10px;padding:8px 11px;min-height:38px;font-weight:700;font-family:inherit;font-size:12px;cursor:pointer}
.fr-pill:hover,.fr-pill:focus-visible{background:#ffffff36;outline:2px solid #ffbf69;outline-offset:2px}
.fr-pill.main {background:var(--fr-orange);border-color:#ffb04d;color:#fff!important}
.fr-tools {background:#e8f0f8;color:#102f4b;padding:7px 17px;display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-family:Inter,Arial,sans-serif}
.fr-tools button {cursor:pointer;font:700 12px Inter,Arial,sans-serif;padding:6px 10px;border:1px solid #b5c9dc;border-radius:9px;background:#fff;color:#102f4b;min-height:33px}
.fr-tools button:hover,.fr-tools button:focus-visible{border-color:#e97900;outline:2px solid #e97900;outline-offset:1px}
.fr-tools .fr-progress {margin-left:auto;color:#29465e;font-size:12px;white-space:nowrap;font-weight:700}
.fr-note {background:#fff8e9;border:1px solid #f3d9a7;border-radius:12px;padding:12px 15px;color:#63410e;font:500 13px/1.5 Inter,Arial,sans-serif;margin:12px 0}
.fr-feature-panel {margin:16px 0 12px;padding:15px 17px;background:#fff;border:1px solid #dae5ee;border-radius:17px;box-shadow:0 5px 18px rgba(16,47,75,.06);font:500 14px/1.5 Inter,Arial,sans-serif}
.fr-feature-panel h3 {font:800 17px/1.3 Inter,Arial,sans-serif;margin:0 0 8px;color:#102f4b}
.fr-feature-panel p {margin:7px 0 12px}
.fr-feature-panel .fr-feature-actions {display:flex;gap:8px;flex-wrap:wrap}
.fr-feature-panel button {padding:10px 13px;background:#fff;color:#102f4b;border:1px solid #b9cfdf;border-radius:10px;cursor:pointer;font:700 13px Inter,Arial,sans-serif}
.fr-feature-panel button.fr-accent {background:var(--fr-orange);border-color:var(--fr-orange);color:#fff}
.fr-feature-panel button:focus-visible {outline:3px solid #e97900;outline-offset:3px}
.fr-feature-panel .fr-answer {display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 0}
.fr-feature-panel .fr-answer button {text-align:left;min-height:45px;white-space:normal}
.fr-feature-panel .fr-answer button.fr-correct{background:#dbf5e5;border-color:#168646}.fr-feature-panel .fr-answer button.fr-wrong{background:#ffebe7;border-color:#bd4c31}
.fr-feature-panel .fr-feedback {min-height:22px;font-weight:700}
.fr-feature-panel .fr-feedback.good {color:#16613b}.fr-feature-panel .fr-feedback.bad {color:#a23d2e}
.fr-progress-steps {font-size:13px;font-weight:600;color:#36556c}
.fr-feature-panel[hidden] {display:none}
.fr-globalbar .fr-skip{position:absolute;left:-9999px;top:0;background:#fff;color:#102f4b;padding:12px;z-index:80}.fr-globalbar .fr-skip:focus{left:8px}
body.fr-contrast {background:#fff!important;color:#111!important}
body.fr-contrast .panel,body.fr-contrast .fr-feature-panel {background:white!important;color:#111!important;border:2px solid #111!important}
body.fr-contrast .say,body.fr-contrast .sub,body.fr-contrast .note{color:#111!important}
body.fr-readable {letter-spacing:.025em!important;line-height:1.7!important}
body.fr-readable p,body.fr-readable button,body.fr-readable input {letter-spacing:.025em;line-height:1.65}
.fr-file-save {background:#e7eef8;border-color:#9eb6cf}
.file.selected {outline:3px solid #1c62c5!important;outline-offset:2px}
body .lesson:focus-visible,body button:focus-visible,body input:focus-visible,body a:focus-visible{outline:3px solid #e97900;outline-offset:2px}
body main{min-width:0}
body .panel{max-width:100%}
[hidden], .fr-feature-panel button[hidden] {display:none!important}
body.fr-junior .fr-label-school {color:#fff;margin-left:4px}
@media (max-width:700px){.fr-top{padding:9px 12px}.fr-tagline{display:none}.fr-nav-actions{width:100%}.fr-nav-actions .fr-pill{flex:1;padding:7px 5px}.fr-tools{padding:7px 11px}.fr-tools .fr-progress{width:100%;margin-left:0}.fr-feature-panel .fr-answer{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}body *,body *::before,body *::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media print{.fr-globalbar,.fr-tools,.fr-feature-panel{display:none!important}}
