
.kb39{max-width:1260px;margin:auto;padding:30px 22px 74px;color:var(--bd-ink,#edf3ff)}
.kb39 *{box-sizing:border-box}.kb39 .intro{max-width:830px;color:#acbbd7;line-height:1.6;margin:8px 0 25px}
.kb39 h1{font-size:clamp(27px,3vw,40px);letter-spacing:-1px;margin-bottom:10px}.kb39 h2{font-size:20px;margin:0 0 16px}
.kb39 .stats{display:flex;flex-wrap:wrap;gap:10px;margin:17px 0 22px}.kb39 .stat{background:#17253e;border:1px solid #334869;border-radius:12px;padding:12px 18px;color:#cbd9f1}.kb39 .stat strong{color:white;font-size:22px;display:block}
.kb39 .layout{display:grid;grid-template-columns:315px minmax(0,1fr);gap:18px;align-items:start}
.kb39 .panel{background:#131e33;border:1px solid #334360;border-radius:17px;padding:21px;min-width:0}
.kb39 label{font-size:12px;font-weight:700;color:#bdcbed;display:block;margin:12px 0 5px}
.kb39 input,.kb39 select,.kb39 textarea{width:100%;background:#0d1528;border:1px solid #526a91;color:#f0f5ff;border-radius:9px;padding:11px;font:inherit;min-width:0}
.kb39 button,.kb39 .action{border-radius:9px;padding:10px 13px;border:1px solid #425c84;background:#253b5f;color:#f7fbff;cursor:pointer;font:inherit;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none}
.kb39 button:hover,.kb39 .action:hover{background:#34517f}.kb39 button:disabled{opacity:.45;cursor:not-allowed}.kb39 button.primary{background:#456ff2;border-color:#6c8cff}
.kb39 .row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.kb39 .form-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.kb39 .tiny{font-size:12px;color:#97a9c9;line-height:1.55}.kb39 .list{max-height:490px;overflow:auto;border:1px solid #314360;border-radius:11px;margin-top:12px}
.kb39 .entry{width:100%;background:transparent;text-align:left;border:0;border-bottom:1px solid #2b3b59;border-radius:0;display:block;padding:13px 12px}
.kb39 .entry:hover{background:#243955}.kb39 .entry.active{background:#294c83;border-left:3px solid #8acbef}.kb39 .entry strong{display:block;color:#fff;font-size:14px}.kb39 .entry small{display:block;color:#a7bad8;font-size:11px;margin-top:4px}
.kb39 .hint{border:1px solid #435b83;border-radius:10px;background:#182741;padding:11px 13px;font-size:13px;color:#cddaf3;margin:12px 0}
.kb39 .ref{line-height:2.05;letter-spacing:.15px;min-height:138px;max-height:225px;overflow:auto;border:1px solid #354d71;border-radius:13px;background:#091325;padding:15px 17px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:17px}
.kb39 .ref .correct{background:#124d3a;color:#bcfadd}.kb39 .ref .wrong{background:#79273a;color:#ffe1e7}.kb39 .ref .next{background:#f5d47f;color:#1b2340;outline:1px solid #ffe2a5}
.kb39 textarea{min-height:126px;resize:vertical;font-size:17px;line-height:1.5;margin-top:9px}
.kb39 .progress{height:9px;border-radius:10px;background:#08111e;overflow:hidden;margin:12px 0}.kb39 .progress div{height:100%;width:0;background:linear-gradient(90deg,#426de4,#47d4aa)}
.kb39 .metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.kb39 .metric{background:#1c2c48;border:1px solid #324969;border-radius:12px;text-align:center;padding:14px 8px}.kb39 .metric strong{font-size:24px;display:block;color:#fff}.kb39 .metric small{font-size:11px;color:#b2c6e5}
.kb39 .result{border:1px solid #397662;border-radius:13px;background:#122e30;padding:17px;margin-top:16px}.kb39 .result h3{margin:0 0 9px;font-size:18px;color:#dbffe7}.kb39 .result[hidden]{display:none}
.kb39 .history{font-size:13px;color:#c1d1ea}.kb39 .history>div{padding:9px 0;border-bottom:1px solid #30435e}
.kb39 .check{display:flex;align-items:center;gap:7px;color:#d1dcf1;font-size:12px;font-weight:500;margin:11px 0}.kb39 .check input{width:auto}
.kb39 .links{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px}.kb39 .links a{color:#aad7ff;text-decoration:underline;font-size:13px}
.kb39 .message{color:#ffd79d;font-size:13px;min-height:22px;margin:10px 0}
body[data-bd-theme=light] .kb39{color:#192b49}body[data-bd-theme=light] .kb39 .intro{color:#435774}body[data-bd-theme=light] .kb39 .panel,body[data-bd-theme=light] .kb39 .stat{background:#f6f9ff;color:#243c5c}body[data-bd-theme=light] .kb39 .stat strong{color:#172b49}body[data-bd-theme=light] .kb39 label{color:#314f73}body[data-bd-theme=light] .kb39 .hint{background:#e4eeff;color:#173455}body[data-bd-theme=light] .kb39 .entry strong{color:#233d60}body[data-bd-theme=light] .kb39 .entry.active strong{color:white}
@media(max-width:930px){.kb39 .layout{grid-template-columns:1fr}.kb39 .list{max-height:240px}}@media(max-width:580px){.kb39{padding:22px 11px 50px}.kb39 .panel{padding:14px}.kb39 .form-row{grid-template-columns:1fr 1fr}.kb39 .metrics{grid-template-columns:repeat(2,1fr)}.kb39 .ref{font-size:15px}.kb39 .row button{flex:1}}
@media print{#header,#footer,.kb39 .list,.kb39 .filters,.kb39 button,.kb39 textarea,.kb39 .links{display:none!important}.kb39{color:#000}.kb39 .panel{color:#000;background:#fff}}
