.math-cycle,.math-portfolio{color:#18313b;background:#fff;border:1px solid #c8d9d5;border-radius:16px;max-width:900px;margin:1.5rem auto;padding:1.4rem}.math-cycle *,.math-portfolio *{box-sizing:border-box}.math-cycle header small{color:#346372;letter-spacing:.05em;font-weight:800}.math-cycle h2{margin:.35rem 0;font-size:clamp(1.5rem,3vw,2rem)}.math-cycle p{line-height:1.55}.math-cycle-list{gap:.65rem;margin:1.3rem 0;display:grid}.math-cycle button,.math-portfolio button{color:#18313b;min-height:44px;font:inherit;cursor:pointer;background:#fff;border:1px solid #9db9b8;border-radius:9px;padding:.7rem 1rem}.math-cycle button:disabled{opacity:.48;cursor:not-allowed}.math-cycle-list>button{text-align:left;align-items:center;gap:1rem;display:flex}.math-cycle-list>button[aria-pressed=true]{background:#eaf5f1;border:2px solid #087b7d}.math-cycle-list b{color:#fff;background:#087b7d;border-radius:7px;flex:none;place-items:center;width:2.6rem;height:2.6rem;display:grid}.math-cycle-list button>span:nth-child(2){flex:1}.math-cycle-list small{color:#436067;margin-top:.25rem;display:block}.math-student-task{border:1px solid #d5e2df;border-radius:12px;padding:1.1rem}.math-student-task>header{border-bottom:2px solid #087b7d;padding-bottom:.8rem}.math-student-task h2{margin-top:.4rem}.math-task-progress{color:#346372;margin:1rem 0;font-weight:700}.math-active-part{background:#f5f8f6;border-radius:12px;padding:1rem}.math-active-part h3{margin:0;font-size:1.35rem}.math-speech{flex-wrap:wrap;align-items:center;gap:.5rem;margin:1rem 0;display:flex}.math-speech button,.math-field button,.math-actions button:nth-child(2),.math-photo button{color:#fff;background:#087b7d;border-color:#087b7d}.math-field{margin:1.2rem 0}.math-field label{margin-bottom:.4rem;font-weight:700;display:block}.math-field>div{align-items:center;gap:.6rem;display:flex}.math-field input,.math-field textarea,.math-field select{color:#18313b;width:min(100%,30rem);min-height:44px;font:inherit;background:#fff;border:1px solid #9db9b8;border-radius:7px;padding:.65rem}.math-field input{max-width:12rem}.math-field select{max-width:20rem}.math-example{background:#eaf5f1;border-radius:8px;margin-top:1rem;padding:.7rem}.math-example summary{cursor:pointer;font-weight:700}.math-field button{margin-top:.5rem;display:block}.math-choice{align-items:center;gap:.6rem;padding:.55rem 0;display:flex}.math-choice input,.math-checks input{width:1.15rem;height:1.15rem}.math-step-buttons,.math-actions{flex-wrap:wrap;justify-content:space-between;gap:.7rem;margin:1rem 0;display:flex}.math-step-buttons button:last-child{color:#fff;background:#087b7d;border-color:#087b7d}.math-checks{border-top:1px solid #d5e2df;margin-top:1rem;padding-top:.5rem}.math-checks label{align-items:center;gap:.55rem;margin:.55rem 0;display:flex}.math-hint{background:#e4f1ed;border-left:4px solid #087b7d;padding:.75rem}.math-status{background:#e4f1ed;border-radius:7px;padding:.75rem}.math-photo{border-top:1px solid #d5e2df;margin-top:1rem}.math-photo form{flex-wrap:wrap;align-items:end;gap:.7rem;display:flex}.math-photo label{font-weight:700;display:block}.math-photo input{width:13rem;margin-top:.4rem;display:block}.math-frame-visual{background:#fff;border:1px solid #d2dfdc;border-radius:8px;margin:1rem 0;padding:.7rem}.math-frame-visual img,.math-ruler img{width:100%;height:auto;display:block}.math-scale-visual img{max-width:700px}.math-square-visual img{max-width:520px}.math-frame-visual figcaption{color:#48646a}.math-conversion{flex-wrap:wrap;gap:.6rem;margin:1rem 0;display:flex}.math-conversion strong{background:#e2f1ed;border-radius:6px;padding:.65rem}.math-ruler{background:#fff;max-width:600px;margin:1rem 0;padding:.25rem}.math-visual-note{background:#eaf5f1;border-left:4px solid #087b7d;padding:1rem}.math-graph-wrap{background:#fff;border:1px solid #c8d9d5;border-radius:8px;margin:1rem 0;padding:.75rem}.math-graph-scroll{width:100%;overflow-x:auto}.math-graph-scroll svg{width:100%;min-width:370px;max-width:700px;height:auto;display:block}.math-graph-line{stroke:#b5cbd1;stroke-width:1px}.math-graph-axis{stroke:#245a73;stroke-width:2.2px}.math-graph-title{fill:#245a73;font:700 13px Arial,sans-serif}.math-graph-number{fill:#245a73;font:13px Arial,sans-serif}.math-graph-hit{fill:#0000;cursor:pointer}.math-graph-hit:hover{fill:#a4d2ce55}.math-graph-point{fill:#087b7d;pointer-events:none}.math-graph-example-point{fill:#bd654a;pointer-events:none}.math-graph-note{color:#436067;font-size:.92rem}.math-graph-controls{flex-wrap:wrap;gap:.65rem;display:flex}.math-graph-controls label{gap:.3rem;min-width:8.5rem;font-weight:700;display:grid}.math-graph-controls select{min-height:44px;font:inherit;color:#18313b;background:#fff;border:1px solid #9db9b8;border-radius:6px;max-width:10rem;padding:.5rem}.math-graph-controls strong{padding:.5rem;font-size:.85rem}.math-bars-wrap{background:#fff;border:1px solid #c8d9d5;border-radius:8px;margin:1rem 0;padding:.75rem}.math-bars-controls{gap:.75rem;display:grid}.math-bars-row{background:#f5f8f6;border-radius:7px;flex-wrap:wrap;align-items:end;gap:.6rem;padding:.6rem;display:flex}.math-bars-row label{gap:.3rem;font-weight:700;display:grid}.math-bars-row input,.math-bars-row select{color:#18313b;width:min(100%,10rem);min-height:44px;font:inherit;background:#fff;border:1px solid #9db9b8;border-radius:6px;padding:.5rem}.math-bars-row button{min-height:44px}.math-portfolio details,.math-teacher-detail details{border:1px solid #d5e2df;border-radius:8px;margin:.8rem 0;padding:.8rem}.math-portfolio summary,.math-teacher-detail summary{cursor:pointer;font-weight:700}.math-portfolio-subtitle{color:#346372;font-weight:700}.math-portfolio-date{color:#436067;font-size:.9rem}.math-portfolio-part{background:#f5f8f6;border-radius:9px;margin:1.1rem 0;padding:1rem}.math-portfolio-part h3{margin:0;font-size:1.1rem}.math-portfolio-part>p{margin:.55rem 0}.math-portfolio-answer{overflow-wrap:anywhere;background:#fff;border-left:4px solid #087b7d;gap:.25rem;margin:.75rem 0;padding:.75rem;display:grid}.math-portfolio-answer span{color:#436067;font-size:.9rem}.math-print-page{display:none}@media (width<=600px){.math-cycle,.math-student-task{padding:.8rem}}@page math-lesson{size:A4 portrait;margin:14mm}@media print{body *{visibility:hidden!important}.math-print-page,.math-print-page *{visibility:visible!important}.math-print-page{page:math-lesson;color:#172f39;background:#fff;width:100%;margin:0;padding:0;font:11pt/1.35 Arial,sans-serif;position:absolute;top:0;left:0;display:block!important}.math-print-page header{border-bottom:2px solid #087b7d}.math-print-page h1{margin:.2rem 0;font-size:19pt}.math-print-page h2{margin:.45rem 0;font-size:12pt}.math-print-page section{break-inside:avoid;border-bottom:1px solid #c9dcd7;padding:.3rem 0}.math-print-page section p{margin:.3rem 0}.math-print-page .math-frame-visual{margin:.3rem 0;padding:.25rem}.math-print-page .math-frame-visual img{object-fit:contain;object-position:left;max-height:30mm}.math-print-page .math-scale-visual img{width:12cm;max-width:none;height:auto;max-height:none}.math-paper-field{margin:.3rem 0}.math-paper-field span{border-bottom:1px solid #798f8d;width:28%;display:inline-block}.math-paper-field span.wide{width:60%}.math-paper-field:has(span.wide){min-height:1.1rem}.math-sketch-space{color:#536a6f;border:1px solid #9db9b8;min-height:48mm;padding:.4rem}.math-print-page footer{margin-top:.5rem}.math-print-page footer span{margin-left:.7rem}}
