/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.relative{position:relative}.start{inset-inline-start:var(--spacing)}.table{display:table}}:root{--ink:#172237;--muted:#697386;--paper:#f6f3ed;--white:#fff;--line:#dedbd4;--purple:#6d5bd0;--purple-dark:#493b98;--purple-soft:#ebe8ff;--coral:#ef735b;--yellow:#f5c95b;--mint:#4eae93;--mint-soft:#e6f7f1}*{box-sizing:border-box}html{background:var(--paper);min-width:320px}body{background:radial-gradient(circle at 88% 10%, #6d5bd014, transparent 22rem), var(--paper);color:var(--ink);-webkit-font-smoothing:antialiased;margin:0;font-family:PingFang SC,Microsoft YaHei,Noto Sans CJK SC,Arial,sans-serif}button,input,textarea,select{color:inherit;font:inherit}button,select{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-offset:2px;outline:3px solid #6d5bd040}.app-shell{min-height:100vh}.topbar{z-index:20;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#f6f3edeb;justify-content:space-between;align-items:center;gap:24px;min-height:78px;padding:12px clamp(24px,4vw,64px);display:flex;position:sticky;top:0}.brand{align-items:center;gap:14px;display:flex}.brand-mark{border:2px solid var(--ink);background:var(--white);width:48px;height:48px;box-shadow:4px 4px 0 var(--yellow);grid-template-columns:1fr 1fr;display:grid;overflow:hidden;transform:rotate(-2deg)}.brand-mark span{border-right:1px solid var(--ink);border-bottom:1px solid var(--ink);color:var(--purple-dark);place-items:center;font-family:Georgia,serif;font-size:15px;font-weight:800;display:grid}.brand-mark span:nth-child(2n){border-right:0}.brand-mark span:nth-child(n+3){border-bottom:0}.eyebrow{color:var(--purple);letter-spacing:.13em;text-transform:uppercase;margin:0 0 3px;font-size:11px;font-weight:800}.brand h1{letter-spacing:.04em;margin:0;font-family:STKaiti,KaiTi,serif;font-size:25px;font-weight:900}.top-actions{align-items:center;gap:22px;display:flex}.save-state{color:var(--muted);align-items:center;gap:8px;font-size:12px;display:inline-flex}.save-state i{background:var(--mint);border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 4px #4eae9326}.ghost-button{border:1px solid var(--ink);background:0 0;border-radius:4px;align-items:center;gap:8px;min-height:40px;padding:0 16px;font-size:13px;font-weight:700;transition:background .16s,color .16s;display:inline-flex}.ghost-button:hover{background:var(--ink);color:var(--white)}.workspace{grid-template-columns:minmax(300px,390px) minmax(0,1fr);min-height:calc(100vh - 79px);display:grid}.control-panel{border-right:1px solid var(--line);background-color:#ffffff70;background-image:linear-gradient(#17223705 1px,#0000 1px),linear-gradient(90deg,#17223705 1px,#0000 1px),none;background-position:0 0,0 0,0 0;background-repeat:repeat,repeat,repeat;background-size:24px 24px;background-attachment:scroll,scroll,scroll;background-origin:padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box;padding:34px 32px 40px clamp(24px,4vw,58px)}.panel-heading{align-items:flex-start;gap:12px;margin-bottom:20px;display:flex}.panel-heading.compact{margin-bottom:18px}.step-number{color:var(--coral);flex:none;padding-top:2px;font-family:Georgia,serif;font-size:13px;font-style:italic;font-weight:800}.panel-heading h2{letter-spacing:-.02em;margin:0 0 5px;font-size:18px}.panel-heading p{color:var(--muted);margin:0;font-size:12px;line-height:1.6}.field-label,.form-grid label>span,.field-title-row>span,.field-title-row>label{color:#39445a;margin-bottom:8px;font-size:12px;font-weight:800;display:block}.example-field{position:relative}.example-field textarea{resize:vertical;background:var(--white);border:1px solid #c9c6c0;border-radius:5px;width:100%;padding:15px 52px 15px 15px;font-size:14px;font-weight:600;line-height:1.75;box-shadow:0 4px 16px #1722370a}.example-field textarea:focus{border-color:var(--purple)}.edit-badge{background:var(--purple-soft);color:var(--purple-dark);border-radius:3px;padding:3px 6px;font-size:9px;font-weight:800;position:absolute;top:10px;right:9px}.detected{color:var(--muted);align-items:center;gap:7px;margin:10px 0 0;font-size:11px;display:flex}.detected span{background:var(--mint-soft);color:#27775f;border-radius:50%;place-items:center;width:16px;height:16px;font-size:10px;font-weight:900;display:grid}.divider{background:var(--line);height:1px;margin:26px 0}.form-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.form-grid select,.range-selects select{background:var(--white);border:1px solid #c9c6c0;border-radius:4px;width:100%;height:40px;padding:0 34px 0 11px;font-size:12px;font-weight:700}.difficulty-block,.count-control{margin-top:22px}.field-title-row{justify-content:space-between;align-items:center;display:flex}.field-title-row strong{color:var(--purple-dark);font-size:12px}.range-track{justify-content:space-between;align-items:center;height:18px;margin:4px 6px 8px;display:flex;position:relative}.range-track:before{content:"";background:#d9d6cf;border-radius:3px;height:3px;position:absolute;left:0;right:0}.range-fill{z-index:1;background:var(--purple);border-radius:3px;height:3px;position:absolute}.range-track span{z-index:2;background:var(--paper);border:2px solid #bdb9b1;border-radius:50%;width:12px;height:12px;position:relative}.range-track span.active{border-color:var(--purple);background:var(--purple);box-shadow:0 0 0 3px var(--purple-soft)}.range-selects{grid-template-columns:1fr auto 1fr;align-items:end;gap:10px;display:grid}.range-selects>span{color:var(--muted);padding-bottom:11px;font-size:11px}.range-selects label{color:var(--muted);font-size:10px;font-weight:700}.range-selects select{height:36px;margin-top:4px;display:block}.count-control input[type=range]{appearance:none;background:linear-gradient(to right, var(--purple) 0 var(--range-progress), #d9d6cf var(--range-progress) 100%);border-radius:10px;width:100%;height:4px;margin:8px 0 0}.count-control input[type=range]::-webkit-slider-thumb{appearance:none;border:3px solid var(--white);background:var(--purple);width:17px;height:17px;box-shadow:0 0 0 1px var(--purple);border-radius:50%}.range-labels{color:#8b918f;justify-content:space-between;margin-top:6px;font-family:Georgia,serif;font-size:10px;display:flex}.generate-button{background:var(--ink);width:100%;min-height:48px;color:var(--white);box-shadow:5px 5px 0 var(--yellow);border:0;border-radius:4px;justify-content:center;align-items:center;gap:10px;margin-top:24px;font-size:14px;font-weight:800;transition:transform .15s,box-shadow .15s;display:flex}.generate-button:hover{box-shadow:3px 3px 0 var(--yellow);transform:translate(2px,2px)}.generate-button span{color:var(--yellow);font-size:18px}.generation-note{color:var(--muted);text-align:center;margin:12px 0 0;font-size:10px;line-height:1.5}.practice-area{width:100%;max-width:1000px;margin:0 auto;padding:38px clamp(24px,5vw,72px) 52px}.practice-header{justify-content:space-between;align-items:center;gap:24px;display:flex}.practice-header h2{margin:0;font-family:STKaiti,KaiTi,serif;font-size:clamp(24px,3vw,35px);line-height:1.3}.topic-chip{background:var(--purple-soft);color:var(--purple-dark);vertical-align:middle;border:1px solid #c9c4e9;border-radius:3px;margin-left:10px;padding:5px 8px;font-family:PingFang SC,Microsoft YaHei,sans-serif;font-size:10px;display:inline-block}.score-card{border-left:1px solid var(--line);flex:none;align-items:center;gap:12px;padding:8px 0 8px 18px;display:flex}.score-ring{background:conic-gradient(var(--purple) var(--progress), #dedbd4 var(--progress));border-radius:50%;place-items:center;width:50px;height:50px;display:grid;position:relative}.score-ring:before{background:var(--paper);content:"";border-radius:50%;width:39px;height:39px}.score-ring span{font-size:9px;font-weight:800;position:absolute}.score-card>div:last-child{flex-direction:column;display:flex}.score-card strong{font-family:Georgia,serif;font-size:20px}.score-card>div:last-child span{color:var(--muted);font-size:10px}.view-tabs{border-bottom:1px solid var(--line);gap:4px;margin:28px 0 16px;display:flex}.view-tabs button{color:var(--muted);background:0 0;border:0;padding:10px 18px 11px;font-size:12px;font-weight:700;position:relative}.view-tabs button.active{color:var(--ink)}.view-tabs button.active:after{background:var(--coral);content:"";height:3px;position:absolute;bottom:-1px;left:0;right:0}.question-nav{grid-template-columns:repeat(auto-fit,minmax(34px,1fr));gap:7px;margin-bottom:16px;display:grid}.question-nav button{min-width:30px;height:34px;color:var(--muted);background:#ffffff85;border:1px solid #d8d5ce;border-radius:3px;place-items:center;font-family:Georgia,serif;font-size:11px;font-weight:700;display:grid}.question-nav button.current{border-color:var(--ink);background:var(--ink);color:var(--white);box-shadow:2px 2px 0 var(--yellow)}.question-nav button.correct:not(.current){background:var(--mint-soft);color:#27775f;border-color:#7bc4ae}.question-nav button.wrong:not(.current){color:#aa4532;background:#fff0ed;border-color:#efa99a}.question-card{border:1px solid var(--line);border-top:4px solid var(--purple);background:linear-gradient(135deg, transparent 36px, #6d5bd008 36px), var(--white);border-radius:5px;min-height:375px;padding:clamp(24px,4vw,42px);position:relative;box-shadow:0 16px 42px #17223714}.question-card:before,.question-card:after{border:2px solid var(--coral);content:"";width:9px;height:9px;position:absolute;transform:rotate(45deg)}.question-card:before{top:19px;right:24px}.question-card:after{border-color:var(--yellow);width:5px;height:5px;top:27px;right:40px}.question-meta{color:var(--muted);align-items:center;gap:9px;font-size:10px;font-weight:700;display:flex}.level{border-radius:3px;align-items:center;min-height:22px;padding:0 7px;font-size:9px;font-weight:800;display:inline-flex}.level-1{background:var(--mint-soft);color:#27775f}.level-2{color:#996f00;background:#fff3d2}.level-3{color:#b14833;background:#ffebe7}.question-number{margin-left:auto;padding-right:28px;font-family:Georgia,serif}.question-prompt{letter-spacing:.03em;max-width:760px;margin:28px 0 34px;font-family:STKaiti,KaiTi,serif;font-size:clamp(20px,2.6vw,28px);font-weight:700;line-height:1.75}.answer-row>label{color:var(--muted);margin-bottom:9px;font-size:11px;font-weight:800;display:block}.answer-input-wrap{grid-template-columns:1fr auto;max-width:520px;display:grid}.answer-input-wrap input{background:#fcfbf8;border:1px solid #bbb7ae;border-right:0;border-radius:4px 0 0 4px;min-width:0;height:48px;padding:0 15px;font-size:15px;font-weight:700}.answer-input-wrap input.correct{border-color:var(--mint);background:var(--mint-soft)}.answer-input-wrap input.wrong{border-color:var(--coral);background:#fff7f5}.answer-input-wrap button{background:var(--purple);min-width:106px;color:var(--white);border:0;border-radius:0 4px 4px 0;font-size:12px;font-weight:800}.answer-input-wrap button:hover{background:var(--purple-dark)}.answer-input-wrap button:disabled{cursor:not-allowed;opacity:.45}.feedback{align-items:center;gap:8px;margin:10px 0 0;font-size:11px;font-weight:700;display:flex}.feedback span{border-radius:50%;place-items:center;width:19px;height:19px;display:grid}.correct-feedback{color:#27775f}.correct-feedback span{background:var(--mint-soft)}.wrong-feedback{color:#aa4532}.wrong-feedback span{background:#ffebe7}.learning-tools{flex-wrap:wrap;gap:18px;margin-top:25px;display:flex}.learning-tools button{color:#4f596c;background:0 0;border:0;align-items:center;gap:7px;padding:0;font-size:11px;font-weight:700;display:inline-flex}.learning-tools button span{width:20px;height:20px;color:var(--purple-dark);border:1px solid #bcb8af;border-radius:50%;place-items:center;font-family:Georgia,serif;display:grid}.learning-tools button:hover{color:var(--purple-dark)}.explanation-box{border-left:3px solid var(--yellow);background:#fffaf0;gap:12px;margin-top:18px;padding:14px 16px;display:grid}.explanation-box div{grid-template-columns:62px 1fr;gap:10px;display:grid}.explanation-box span{color:#987416;font-size:10px;font-weight:900}.explanation-box p{margin:0;font-size:12px;line-height:1.6}.card-footer{grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin-top:16px;display:grid}.card-footer button{background:0 0;border:1px solid #bbb7ae;border-radius:4px;width:max-content;min-height:38px;padding:0 14px;font-size:11px;font-weight:800}.card-footer button:disabled{cursor:not-allowed;opacity:.32}.card-footer p{color:var(--muted);text-align:center;margin:0;font-size:10px}.next-button{color:var(--white);justify-self:end;border-color:var(--ink)!important;background:var(--ink)!important}.sheet-view{border:1px solid var(--line);border-top:4px solid var(--purple);background:var(--white);border-radius:5px;box-shadow:0 16px 42px #17223712}.sheet-title{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-end;gap:18px;padding:26px 28px 20px;display:flex}.sheet-title h3{margin:8px 0 0;font-family:STKaiti,KaiTi,serif;font-size:24px}.sheet-title p{color:var(--muted);margin:0;font-size:10px}.sheet-title button{border:1px solid var(--ink);background:0 0;border-radius:3px;min-height:36px;padding:0 12px;font-size:10px;font-weight:800}.sheet-view ol{margin:0;padding:10px 28px 20px 58px}.sheet-view li{border-bottom:1px dashed #dedbd4;padding:17px 0 16px 7px;font-family:Georgia,STKaiti,KaiTi,serif;font-size:15px}.sheet-view li>div{align-items:flex-start;gap:9px;display:flex}.sheet-view li p{margin:0;line-height:1.7}.blank-line{color:var(--muted);margin-top:10px;font-family:PingFang SC,Microsoft YaHei,sans-serif;font-size:10px;display:block}.answer-key{background:#faf8f3;border:1px solid #d8d5ce;margin:0 28px 26px;padding:12px 14px;font-size:11px}.answer-key summary{cursor:pointer;font-weight:800}.answer-key p{color:var(--muted);margin:10px 0 0;line-height:1.8}.teacher-tip{background:#fffbdf;border:1px solid #d9d2a8;align-items:center;gap:12px;margin-top:24px;padding:14px 17px;display:flex}.teacher-tip>span{color:#806818;border:1px solid #a98b26;border-radius:50%;flex:none;place-items:center;width:30px;height:30px;font-family:Georgia,serif;font-weight:800;display:grid}.teacher-tip p{color:#6e5e27;margin:0;font-size:11px;line-height:1.6}.teacher-tip strong{color:#4f431d;display:block}@media (width<=900px){.workspace{grid-template-columns:1fr}.control-panel{border-right:0;border-bottom:1px solid var(--line);padding:28px clamp(20px,6vw,54px)}.practice-area{padding-top:30px}}@media (width<=620px){.topbar{padding:10px 18px}.brand-mark{width:40px;height:40px}.brand h1{font-size:20px}.save-state{display:none}.print-button{padding:0 10px;font-size:0}.print-button span{font-size:16px}.practice-header{align-items:flex-start}.practice-header h2{font-size:24px}.topic-chip{margin:8px 0 0;display:table}.score-card{padding-left:10px}.score-card>div:last-child{display:none}.question-card{min-height:360px;padding:24px 20px}.question-number{padding-right:18px}.question-prompt{margin:24px 0 28px;font-size:21px}.answer-input-wrap{grid-template-columns:1fr}.answer-input-wrap input{border-right:1px solid #bbb7ae;border-radius:4px 4px 0 0}.answer-input-wrap button{border-radius:0 0 4px 4px;min-height:42px}.card-footer{grid-template-columns:1fr 1fr}.card-footer p{display:none}.sheet-title{flex-direction:column;align-items:flex-start}}@media print{body{background:var(--white)}.topbar,.control-panel,.practice-header,.view-tabs,.question-nav,.question-card,.card-footer,.teacher-tip,.sheet-title button{display:none!important}.workspace{display:block}.practice-area{max-width:none;padding:0}.sheet-view{box-shadow:none;border:0;display:block!important}.sheet-view li{break-inside:avoid}.answer-key{display:none}}
