:root{--paper:#fbfaf4;--line:#d5dfd5;--muted:#526a63;--mx:50vw;--my:25vh}body{background-color:var(--paper);isolation:isolate}body::before,.grid-halo{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background-image:linear-gradient(#528a7b 1px,transparent 1px),linear-gradient(90deg,#528a7b 1px,transparent 1px);background-size:28px 28px}body::before{opacity:.06}.grid-halo{opacity:0;mask-image:radial-gradient(circle 235px at var(--mx) var(--my),#000,transparent);transition:opacity .6s}.pointer-active .grid-halo{opacity:.3}header{background:#fbfaf4}header nav{gap:24px}main,footer{position:relative}a.catalog-note{display:inline-block;margin-top:22px}.subject-card{background:#fffefa}.subject-card .meta{font-size:14px}.helper,.source-detail,.status,.catalog-note,details p{font-size:14px}.sample-top,.tag,.sample-index,.smallnote{font-size:13px}.sample-structured{max-height:300px;line-height:1.55}.sample-structured strong{font-size:12px;letter-spacing:.7px;color:var(--teal)}.sample-structured p{margin:5px 0 15px}.hero{gap:55px}.subjects{grid-template-columns:repeat(3,minmax(0,1fr))}.subject-card h3{overflow-wrap:anywhere}.subject-card p{font-size:15px}.subject-card .meta{gap:8px}.legacy-links,.footer-links{display:flex;gap:20px;flex-wrap:wrap}.workspace{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}.form-panel,.result-panel{box-shadow:0 8px 25px #1d493706}.panel-label{font-size:13px}.field>label,.field legend{font-size:15px}.type-buttons{flex-wrap:wrap}.type-buttons button{flex:0 1 calc(50% - 4px);padding:10px;font-size:14px;text-align:center;line-height:1.35}.grade-buttons button{flex:1}.topic-list{max-height:270px}.topic-option{font-size:15px}.topic-option span{font-size:13px}.topic-info{padding:14px 16px;background:#f1f5ed;border-left:3px solid var(--teal);border-radius:4px;margin:0 0 25px;font-size:14px}.topic-info details{padding:10px 0}.topic-info summary{font-size:14px}.topic-info p{overflow-wrap:anywhere}.check-row{display:flex;align-items:flex-start;gap:11px;font-size:14px;line-height:1.55;padding:10px 4px;border-bottom:1px solid #e4e9e1;cursor:pointer}.check-row span{min-width:0;overflow-wrap:anywhere}.check-row input[type=checkbox]{width:18px;height:18px;flex-shrink:0;margin:4px 0 0;accent-color:var(--teal);padding:0}.goals-list,.scope-list{max-height:320px;overflow:auto;margin:8px 0 14px;padding:2px 5px}.scope-list{max-height:245px}.goals-list strong{color:var(--teal)}.source-warning{font-size:14px;background:#fff0df;padding:12px;border-radius:7px;color:#80512b}.minor-label{font-size:14px;display:block;margin-bottom:8px}.conditions{margin-bottom:24px}.conditions .field{margin-top:18px}.teacher-notes{padding:18px 16px;border:1px solid #dfd9c5;border-radius:10px;background:#fff9e9;margin-top:24px}.teacher-notes legend{padding:0 5px}.note-row{display:grid;grid-template-columns:22px minmax(0,1fr) 30px;gap:8px;align-items:start;margin:12px 0}.note-number{padding-top:12px;font-size:14px;color:#80663b}.note-row textarea{font-size:14px;background:#fffef8;resize:vertical}.remove-note{border:0;background:transparent;font-size:24px;color:#80663b;padding:5px 0;min-height:42px}.result-panel{max-height:calc(100vh - 40px);overflow:auto}.prompt-nav{display:flex;flex-wrap:wrap;gap:6px;margin:18px 0}.prompt-nav button{border:1px solid var(--line);background:#f3f6ee;color:var(--teal);font-size:13px;min-height:34px;padding:6px 10px;border-radius:20px}.prompt-sections details{padding:13px 0}.prompt-sections summary{font-size:13px;font-weight:700;letter-spacing:.45px;overflow-wrap:anywhere}.prompt-sections pre{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.7 'Golos Text',Arial,sans-serif;tab-size:2;color:#475b55;margin:12px 0}.prompt-output{height:390px;white-space:pre-wrap;tab-size:2;font-size:14px;line-height:1.65;margin-top:14px}.source-detail p{margin-top:9px}.result-actions{margin:18px 0 0}.btn{min-height:44px}.field input[type=number]{max-width:150px}.page-intro{max-width:770px;padding:45px 0 28px}.page-intro h1{font-size:clamp(32px,4vw,48px);letter-spacing:-1.5px;line-height:1.13;margin:12px 0 18px}.page-intro p{font-size:17px;color:var(--muted)}.faq-page{max-width:790px;padding-bottom:40px}.faq-page details{padding:22px 0}.faq-page summary{font-size:17px}.faq-page p{font-size:16px}.form-panel{background:#fffefa}.result-panel{background:#fffefa}.sr-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:850px){header nav{gap:15px}.subjects{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{gap:25px}.result-panel{padding:20px}.type-buttons button{font-size:14px}}
@media(max-width:650px){header{flex-wrap:wrap;gap:14px;padding:18px}header nav{width:100%;justify-content:space-between;gap:14px}header nav a{font-size:14px}header .btn{font-size:14px}.hero h1{font-size:42px}.hero{gap:25px}.subjects{grid-template-columns:1fr}.workspace{grid-template-columns:minmax(0,1fr)}.result-panel{position:static;max-height:none;overflow:visible}.form-panel,.result-panel{padding:21px}.note-row{grid-template-columns:18px minmax(0,1fr) 25px;gap:6px}.teacher-notes{padding:15px 10px}.type-buttons button{min-height:46px}.prompt-output{height:320px}.source-detail{overflow-wrap:anywhere}.sample-top{gap:8px}.page-intro{padding-top:30px}.footer-links{gap:14px}.grid-halo{display:none}}
@media(prefers-reduced-motion:reduce){.grid-halo{display:none}}
.tour-page{padding-bottom:30px}.tour-page .page-intro{padding-bottom:38px}.tour-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:35px;align-items:start;margin-bottom:65px}.tour-controls{display:flex;gap:14px;align-items:center;margin-bottom:23px}.tour-controls .btn{font-size:14px;padding:12px 18px}.tour-steps{list-style:none;padding:0;margin:0 0 25px}.tour-steps li{margin:0 0 7px}.tour-steps button{display:flex;gap:15px;width:100%;text-align:left;background:transparent;border:1px solid transparent;border-radius:9px;padding:14px 12px;color:#65776e;font-size:15px;line-height:1.4}.tour-steps b{font:13px/1.7 'Golos Text',Arial,sans-serif}.tour-steps small{display:block;font-size:13px;color:#718075;margin-top:5px}.tour-steps .active{background:#edf3e8;border-color:#ceddc9;color:var(--teal);font-weight:600}.tour-steps .done{color:#234f44}.tour-steps button:hover{background:#f2f5ec}.tour-screen{position:relative;min-width:0;overflow:hidden;border:1px solid #d7dfd1;border-radius:14px;background:#fffefa;box-shadow:0 18px 55px #345c3d12}.tour-top{display:flex;justify-content:space-between;gap:12px;padding:14px 22px;background:#edf2e7;border-bottom:1px solid #dbe3d6;font-size:12px;color:#5d7261}.tour-top>span:first-child{font-weight:700;display:flex;align-items:center;gap:8px;color:var(--teal)}.tour-top i{width:7px;height:7px;background:var(--teal);border-radius:50%}.tour-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.95fr);min-height:460px}.tour-form{padding:26px 23px;border-right:1px solid #e4e8dd}.tour-form h2{font-size:23px;letter-spacing:-.7px;line-height:1.2;margin:10px 0 25px}.tour-label{font-size:12px;font-weight:600;margin:18px 0 9px;color:#506752}.tour-grades{display:flex;gap:7px}.tour-grades span{flex:1;min-width:0;border:1px solid #dce3d5;padding:8px 0;text-align:center;border-radius:6px;font-size:13px}.tour-grades .active{background:var(--teal);color:white;border-color:var(--teal)}.mock-field,.mock-selected{font-size:13px;padding:11px 13px;border-radius:6px;border:1px solid #dce3d5;background:#fafcf5;color:#52705b}.demo-topic{border-left:3px solid #81a27d;background:#eff4e9;padding:13px 11px;margin-top:10px}.demo-topic strong{font-size:13px;line-height:1.4;display:block;color:var(--teal)}.demo-topic small{font-size:11px;color:#657964;display:block;line-height:1.4;margin:7px 0}.goal-chip{font-size:11px;display:inline-block;background:#dce9d5;color:#376235;padding:3px 8px;border-radius:20px}.mock-selected{background:var(--teal);color:white;border:0}.mock-number{border:1px solid #dce3d5;border-radius:6px;width:60px;padding:8px 15px;font-size:13px}.demo-notes{padding:1px 12px 8px;background:#fff5d9;border:1px solid #e6dcbf;border-radius:8px;margin-top:18px}.demo-notes .tour-label{color:#776036}.demo-notes p{font-size:12px;line-height:1.55;color:#725e3b;display:flex;gap:8px;margin:9px 0}.mock-create{margin-top:18px;background:var(--teal);color:white;border-radius:7px;padding:12px;display:flex;justify-content:space-between;font-size:13px}.tour-result{padding:28px 23px;background-color:#fbfcf5;background-image:linear-gradient(#45795808 1px,transparent 1px),linear-gradient(90deg,#45795808 1px,transparent 1px);background-size:22px 22px;min-width:0}.demo-empty{padding-top:90px;text-align:center;color:#6a7c64}.demo-empty>span{display:block;font-size:46px;color:#a5b699;margin-bottom:24px}.demo-empty h3{font-size:25px;color:#3f5b3b;letter-spacing:-.6px}.demo-empty p{font-size:13px;line-height:1.6;margin-top:15px}.tour-result h3{font-size:25px;margin:18px 0;letter-spacing:-.7px;line-height:1.15}.demo-prompt{background:#fffef9;border:1px solid #dce3d2;border-radius:9px;padding:18px;box-shadow:0 7px 15px #4b65300a}.demo-prompt strong{font-size:10px;line-height:1.6;letter-spacing:.5px;color:var(--teal);display:block}.demo-prompt p{font-size:12px;line-height:1.65;color:#576b4e;margin:7px 0 20px}.demo-prompt p:last-child{margin-bottom:0}.tour-caption{min-height:74px;border-top:1px solid #dbe3d4;background:#f0f5e7;font-size:13px;line-height:1.65;padding:16px 23px;color:#48603f}.tour-progress{height:4px;background:#e2e8d7}.tour-progress span{display:block;height:100%;background:#648157;transition:width .6s}.demo-cursor{position:absolute;left:0;top:0;z-index:5;width:28px;height:34px;pointer-events:none;filter:drop-shadow(0 2px 3px #16443744);transition:transform .65s cubic-bezier(.23,.84,.29,1)}.demo-cursor svg{width:28px;height:34px;fill:var(--teal);stroke:#fffefa;stroke-width:2}.demo-cursor i{position:absolute;width:35px;height:35px;left:-10px;top:-10px;border:2px solid #668859;border-radius:50%;opacity:0}.demo-cursor.clicking i{animation:cursor-click .65s ease-out}.example-next{border-top:1px solid #d9e1d1;border-bottom:1px solid #d9e1d1;padding:30px 0;display:flex;justify-content:space-between;gap:30px;align-items:center}.example-next h2{font-size:28px;letter-spacing:-.9px;margin:10px 0}.example-next p{font-size:15px;color:var(--muted)}.example-next .btn{flex-shrink:0}.example-detail{display:grid;grid-template-columns:1fr 1fr;gap:45px;padding:45px 0 20px}.example-detail h2{font-size:25px;letter-spacing:-.7px;margin:12px 0 18px}.example-detail p{font-size:15px;line-height:1.7;color:var(--muted)}.example-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;tab-size:2;font:13px/1.7 'Golos Text',Arial,sans-serif;padding:16px 0;color:#49603f}.full-example details{margin:16px 0}.fraction-demo{display:flex;align-items:center;gap:10px;margin:22px 0}.fraction-demo>div{flex:1;min-width:0}.fraction-demo strong{font-size:13px}.fraction-demo>b{font-size:18px;align-self:flex-end;padding-bottom:7px;color:#69805e}.fraction-bar{display:grid;grid-template-columns:repeat(6,1fr);gap:2px;margin-top:9px;height:34px}.fraction-bar i{background:#90aa70;border:1px solid #7d975e}.fraction-bar .blank{background:#f1f5e9;border-color:#c5d4b5}@keyframes cursor-click{0%{opacity:.8;transform:scale(.35)}100%{opacity:0;transform:scale(1.7)}}
@media(max-width:1000px){.tour-layout{grid-template-columns:235px minmax(0,1fr);gap:20px}.tour-inner{grid-template-columns:1fr}.tour-form{border-right:0;border-bottom:1px solid #e4e8dd}.tour-result{min-height:220px}.demo-empty{padding:20px 0}.demo-empty>span{margin-bottom:12px}.demo-empty h3 br{display:none}.demo-prompt{columns:1}.example-next{align-items:flex-start;flex-direction:column}}
@media(max-width:650px){.tour-layout{grid-template-columns:1fr;gap:22px;margin-bottom:35px}.tour-steps{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px}.tour-steps li{margin:0}.tour-steps li:last-child{grid-column:1/-1}.tour-steps button{height:100%;padding:11px 8px;gap:8px;font-size:13px}.tour-steps small{font-size:12px}.tour-guide>.helper{font-size:13px}.tour-controls{margin-bottom:18px}.tour-form,.tour-result{padding:22px}.tour-inner{grid-template-columns:1fr}.demo-cursor{display:none}.example-detail{grid-template-columns:1fr;gap:28px;padding-top:28px}.example-next .btn{width:100%;text-align:center}.example-next h2{font-size:25px}.tour-page .page-intro{padding-bottom:25px}.tour-page .page-intro h1{font-size:35px}.tour-result h3{font-size:24px}.tour-caption{font-size:13px;padding:15px 20px}}
@media(prefers-reduced-motion:reduce){.demo-cursor{display:none}.tour-progress span{transition:none}}

.contact-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:10px 0 25px}.contact-cards article{background:#fffefa;border:1px solid var(--line);border-radius:12px;padding:25px}.contact-cards h2{font-size:17px;line-height:1.5;letter-spacing:0;overflow-wrap:anywhere;margin:18px 0;color:#7c6a3e}.contact-cards p{font-size:14px;color:var(--muted)}#faq{scroll-margin-top:25px;margin-top:50px}.copy-hint{margin:10px 0}.result-actions{position:sticky;top:0;z-index:2;background:#fffefa;padding:12px 0;box-shadow:0 6px 8px #fffefa}.result-actions #copy{flex:1;min-width:200px}select{min-width:0;max-width:100%}@media(max-width:650px){.contact-cards{grid-template-columns:1fr}.result-actions #copy{width:100%;flex:auto}.result-actions #edit{font-size:14px}}

.textbook-calculation{background:#edf3e5;border:1px solid #d4dec9;border-radius:12px;padding:22px;margin:22px 0;font-size:24px;line-height:1.6;color:var(--teal)}.textbook-calculation span{display:block;font-size:14px;color:var(--muted);margin:14px 0}.textbook-calculation strong{color:#5f7f42}@media(max-width:650px){.textbook-calculation{font-size:22px;padding:18px}}
/* Publisher library */
.helper,.topic-option span,.source-detail,.check-row small{font-size:14px;line-height:1.6}.check-row small{display:block;color:var(--muted);margin-top:4px}.grade-buttons{flex-wrap:wrap}.grade-buttons button{min-width:44px}.topic-list{scrollbar-gutter:stable}.topic-option{font-size:15px}.form-panel select{font-size:15px}.generator-intro{padding-top:28px;padding-bottom:24px}.generator-intro h1{line-height:1.2}.error:empty{display:none}.subject-card:focus-visible{outline-offset:3px}.source-warning{overflow-wrap:anywhere}#combine-field{margin-top:14px}.prompt-sections pre{tab-size:2}.contact-cards h2{color:#655430}.book-card small{font-size:14px}
.library-page .page-intro{max-width:850px}.library-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:30px 0 42px}.library-steps article{border-top:1px solid var(--line,#d9d9d1);padding:18px 0}.library-steps span{color:#17645d;font-size:13px}.library-steps h2{font-size:19px;margin:8px 0}.library-steps p{font-size:14px;color:#666b63;line-height:1.65}.library-controls{display:grid;grid-template-columns:100px 1fr 1.4fr 1.4fr;gap:14px;padding:22px;border:1px solid #dedfd4;border-radius:16px;background:#fffdf6}.library-controls .field{margin:0}.library-controls input,.library-controls select{width:100%;min-width:0}.book-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:22px 0 50px}.book-card{display:flex;flex-direction:column;padding:26px;border:1px solid #dedfd4;border-radius:16px;background:rgba(255,253,246,.92);min-width:0}.book-card h2{font-size:24px;line-height:1.3;margin:12px 0}.book-meta{font-size:14px;line-height:1.65;color:#596259}.book-card .helper{line-height:1.65}.book-card details{margin:14px 0}.book-card summary{color:#17645d;font-size:14px;cursor:pointer}.book-actions{display:flex;gap:15px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-top:auto;padding-top:20px}.book-units{padding:0;list-style:none}.book-units li{margin:12px 0;padding:12px 0;border-bottom:1px solid #e5e7dc}.book-units a{font-size:14px;line-height:1.6}.book-units small{display:block;font-size:12px;color:#677367;margin-top:4px}.book-empty{grid-column:1/-1;padding:30px;border:1px dashed #acbcb1;border-radius:16px;line-height:1.7}.library-source{max-width:880px;margin-bottom:70px;line-height:1.8}.library-source h2{font-size:28px}.library-source p{color:#596259}.contact-cards code{overflow-wrap:anywhere}
@media(max-width:850px){.library-controls{grid-template-columns:1fr 1fr}.book-card{padding:22px}}
@media(max-width:550px){.library-steps,.library-controls,.book-list{grid-template-columns:1fr}.library-steps{gap:0}.book-card h2{font-size:22px}.book-actions{align-items:flex-start;flex-direction:column}.library-controls{padding:18px}.library-page .page-intro h1{font-size:36px}}

