.ks-card{background:var(--bi-surface);border-radius:16px;box-shadow:0 4px 20px #00000014;overflow:hidden}.ks-mode-tabs{display:flex;gap:.5rem;padding:1rem 2rem 0}.ks-mode-tabs .ks-mode-btn{font-size:.95rem;padding:.45rem 1.1rem}.toolbar{background:linear-gradient(135deg,var(--bi-surface-2) 0%,var(--bi-border) 100%);padding:1.5rem 2rem;border-bottom:1px solid var(--bi-border)}.ks-toolbar-toggle{display:none;align-items:center;gap:.4rem;width:100%;margin-bottom:.6rem;padding:.5rem .8rem;border:1px solid var(--bi-border);border-radius:10px;background:var(--bi-surface);color:var(--bi-text);font-size:.95rem;font-weight:600;cursor:pointer}.ks-toolbar-toggle:focus-visible{outline:2px solid var(--brand-fill);outline-offset:2px}.ks-toolbar-summary{display:none;margin:0 0 .6rem;font-size:.85rem;color:var(--bi-text-muted)}.toolbar-row{display:flex;align-items:center;margin-bottom:1rem;flex-wrap:wrap;gap:1rem}.toolbar-row:last-child{margin-bottom:0}.tool-label{font-weight:600;color:var(--bi-text);min-width:80px;margin-right:.5rem}.tool-note{font-size:.82rem;color:var(--bi-text-muted)}.range-inputs{display:flex;align-items:center;gap:.5rem}.range-input{width:100px}.range-separator{color:var(--bi-text-muted);font-weight:500}.custom-num{width:80px;display:none}.custom-num.show{display:inline-block}.ks-select{width:auto;min-width:120px}.toolbar-actions{margin-left:auto;display:flex;gap:.75rem;flex-wrap:wrap}.grade-group,.ops-group{display:flex;flex-wrap:wrap;gap:.5rem}.grade-main{flex-wrap:wrap}.grade-main .btn-outline-primary{font-size:.875rem;padding:.375rem .75rem}.ks-hint-line{margin:0;padding:.6rem 2rem;font-size:.86rem;color:var(--bi-text-muted);background:var(--bi-surface);border-bottom:1px solid var(--bi-border)}.preview-container{padding:2rem;background:var(--bi-surface-2)}.ks-paper-stack{width:100%}.ks-paper-stack>.paper-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.ks-paper-slot{width:fit-content;max-width:100%;margin:0 auto 1.5rem}.ks-paper-slot:last-child{margin-bottom:0}.ks-paper-label{margin-bottom:.4rem;font-size:.82rem;line-height:1.4;text-align:center;color:var(--bi-text-muted);user-select:none}.ks-paper-frame{position:relative;margin:0 auto;overflow:hidden;border-radius:3px;background:#fff;box-shadow:0 8px 24px #0000002e}.ks-paper-frame>.ks-paper{position:absolute;top:0;left:0;transform-origin:top left;transform:scale(var(--ks-scale, 1))}.ks-paper{box-sizing:border-box;background:#fff!important;color:#000!important}.ks-paper--sheet{width:210mm;height:297mm;padding:12mm 10mm;border-radius:3px}.ks-paper .paper-title{position:relative;margin:0 0 .35rem!important;font-size:1.2rem!important;font-weight:600;line-height:1.25;text-align:center;color:#000!important}.ks-paper .paper-info{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;justify-content:center;gap:.35rem 1.2rem;margin:0 0 .5rem!important;padding-bottom:.3rem!important;font-size:.78rem!important;color:#000!important;border-bottom:1px solid #ccc!important}.ks-paper .question-list{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:0}.ks-paper .question-item{display:flex;align-items:center;width:33.333%!important;padding:.12rem .35rem!important;font-size:.9rem!important;color:#000!important;border-bottom:1px dashed #ccc!important;break-inside:avoid;page-break-inside:avoid}.ks-paper .question-item:nth-child(3n+1){padding-left:0!important}.ks-paper .question-item:nth-child(3n){padding-right:0!important}.ks-paper .question-item.is-expr{font-size:.75rem!important}.ks-paper .question-num{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:19px!important;height:19px!important;margin-right:.35rem!important;border:1px solid #888!important;border-radius:50%;background:#fff!important;color:#000!important;font-size:.68rem!important;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease}.ks-paper .question-num:hover,.ks-paper .question-num:focus-visible{border-color:var(--brand-fill)!important;box-shadow:0 0 0 2px rgba(var(--brand-rgb),.35);outline:none}.ks-paper .question-text{flex:1;font-family:Courier New,monospace;letter-spacing:.5px}.ks-practice-panel{padding:1.5rem 2rem;border-top:1px solid var(--bi-border);background:var(--bi-surface)}.ks-practice-head{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}.ks-timer{font-weight:600;color:var(--bi-text);font-variant-numeric:tabular-nums}.ks-timer.is-urgent{color:var(--bs-danger)}.ks-progress{color:var(--bi-text-muted);font-size:.9rem}.ks-practice-actions{margin-left:auto;display:flex;gap:.5rem}.ks-answer-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:.5rem 1rem}.ks-answer-item{display:flex;align-items:center;gap:.5rem;padding:.35rem .5rem;border-bottom:1px dashed var(--bi-border)}.ks-answer-num{min-width:2.2rem;color:var(--bi-text-muted);font-size:.9rem;cursor:pointer}.ks-answer-num:hover{color:var(--brand-ink)}.ks-answer-text{font-family:Courier New,monospace;letter-spacing:.5px;white-space:nowrap}.ks-answer-input{width:92px;margin-left:auto}.ks-answer-status{min-width:4.2rem;font-size:.85rem;color:var(--bi-text-muted)}.ks-answer-status.is-correct{color:var(--bs-success);font-weight:600}.ks-answer-status.is-wrong{color:var(--bs-danger);font-weight:600}.ks-stat-panel{margin-top:1.25rem;padding:1rem;border:1px solid var(--bi-border);border-radius:10px;background:var(--bi-surface-2)}.ks-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.75rem}.ks-stat-cell{display:flex;flex-direction:column;gap:.15rem}.ks-stat-label{font-size:.8rem;color:var(--bi-text-muted)}.ks-stat-value{font-weight:600;color:var(--bi-text)}.ks-stat-wrong{margin:1rem 0 0;padding-left:1.4rem;font-size:.9rem;color:var(--bi-text);columns:2}.ks-wrongbook{margin-top:1.25rem;border:1px solid var(--bi-border);border-radius:10px;overflow:hidden}.ks-wrongbook-toggle{width:100%;text-align:left;padding:.7rem 1rem;border:0;background:var(--bi-surface-2);color:var(--bi-text);font-weight:600;cursor:pointer}.ks-wrongbook-body{padding:.75rem 1rem;background:var(--bi-surface)}.ks-wrong-item{display:flex;justify-content:space-between;gap:1rem;padding:.3rem 0;border-bottom:1px dashed var(--bi-border);font-size:.92rem}.ks-wrong-meta{color:var(--bi-text-muted);font-size:.82rem;white-space:nowrap}.ks-empty{color:var(--bi-text-muted);font-size:.9rem;margin:0 0 .5rem}.ks-answer-box{padding:1rem 2rem 1.5rem;border-top:1px solid var(--bi-border);background:var(--bi-surface)}.ks-answer-toggle{border:1px solid var(--bi-border);background:var(--bi-surface-2);color:var(--bi-text);border-radius:8px;padding:.4rem .9rem;cursor:pointer}.ks-answer-toggle:hover{border-color:var(--brand-fill);color:var(--brand-ink)}.ks-answer-body{margin-top:.9rem}.ks-answers-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.35rem .75rem;font-size:.92rem;color:var(--bi-text)}.ks-answer-label{color:var(--bi-text-muted);margin-right:.25rem}.ks-print-host{display:none}@media print{body>*:not(.ks-print-host){display:none!important}.ks-print-host{display:block!important;background:#fff!important;color:#000!important}.ks-print-page{break-after:page;page-break-after:always;break-inside:avoid}.ks-print-page.ks-print-page--last{break-after:auto;page-break-after:auto}.ks-print-answers{break-before:page;page-break-before:always;break-inside:avoid}.ks-paper,.ks-print-page,.ks-print-answers,.ks-print-answer-block{background:#fff!important;color:#000!important}.ks-print-root{display:block!important}.ks-print-answers{display:none!important}body.ks-print-mode-sheet .ks-print-root{display:block!important}body.ks-print-mode-sheet .ks-print-answers,body.ks-print-mode-answers .ks-print-root{display:none!important}body.ks-print-mode-answers .ks-print-answers,body.ks-print-mode-both .ks-print-root,body.ks-print-mode-both .ks-print-answers{display:block!important}.ks-answers-grid{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:.1rem .5rem!important;font-size:.82rem!important;color:#000!important}}@page{size:A4 portrait;margin:12mm 10mm}@media (max-width: 992px){.toolbar-actions{margin-left:0;width:100%;justify-content:flex-start}.ks-answers-grid{grid-template-columns:repeat(3,1fr)}}@media (max-width: 576px){.toolbar{padding:1rem}.ks-toolbar-toggle{display:inline-flex}.ks-toolbar-summary{display:block}.toolbar.is-collapsed .ks-toolbar-body{display:none}.toolbar-row{flex-direction:column;align-items:flex-start}.tool-label{margin-bottom:.5rem}.btn-group{flex-wrap:wrap}.range-inputs{width:100%}.ks-mode-tabs{padding:.75rem 1rem 0;flex-wrap:wrap}.ks-practice-panel,.ks-answer-box,.ks-hint-line{padding-left:1rem;padding-right:1rem}.ks-answer-list{grid-template-columns:1fr}.ks-answers-grid{grid-template-columns:repeat(2,1fr)}.ks-stat-wrong{columns:1}.ks-answer-input{width:72px}}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.question-item:nth-child(-n+10){animation:fadeIn .3s ease forwards}.question-item:nth-child(1){animation-delay:.01s}.question-item:nth-child(2){animation-delay:.02s}.question-item:nth-child(3){animation-delay:.03s}.question-item:nth-child(4){animation-delay:.04s}.question-item:nth-child(5){animation-delay:.05s}.question-item:nth-child(6){animation-delay:.06s}.question-item:nth-child(7){animation-delay:.07s}.question-item:nth-child(8){animation-delay:.08s}.question-item:nth-child(9){animation-delay:.09s}.question-item:nth-child(10){animation-delay:.1s}
