/* V40 — School Official IEP & Tracker Templates */
.schoolforms-panel{--sf-navy:#173e57;--sf-blue:#a8c3e8;--sf-green:#bfdcab;--sf-soft:#f5f9fc;--sf-gold:#f4d76f}
.sf-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px;border:1px solid #d8e5ec;border-radius:20px;background:linear-gradient(135deg,#f8fbfd,#eef6fa);margin-bottom:16px}
.sf-hero h2{margin:0 0 6px;color:var(--sf-navy);font-size:22px}.sf-hero p{margin:0;color:#607786;line-height:1.7}.sf-badge{white-space:nowrap;background:#e7f5ef;color:#15735f;border:1px solid #c6e8dc;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:800}
.sf-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 16px}.sf-tabs button{border:1px solid #cfdde5;background:#fff;color:#36576a;border-radius:14px;padding:11px 16px;font-weight:800;cursor:pointer}.sf-tabs button.active{background:var(--sf-navy);color:#fff;border-color:var(--sf-navy)}
.sf-pane[hidden]{display:none!important}.sf-card{background:#fff;border:1px solid #dce7ed;border-radius:18px;padding:18px;margin-bottom:14px;box-shadow:0 7px 22px rgba(30,72,93,.05)}
.sf-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.sf-card-head h3{margin:0;color:var(--sf-navy);font-size:17px}.sf-card-head p{margin:5px 0 0;color:#728793;font-size:12px;line-height:1.6}.sf-section-chip{background:#eef5fb;color:#315f7c;border:1px solid #d4e4f0;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800}
.sf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.sf-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.sf-field{display:flex;flex-direction:column;gap:6px}.sf-field.wide{grid-column:1/-1}.sf-field label,.sf-label{font-weight:800;color:#345567;font-size:12px}.sf-field input,.sf-field select,.sf-field textarea{width:100%;border:1px solid #cad9e2;background:#fff;border-radius:11px;padding:10px 11px;font:inherit;color:#183d53;outline:none}.sf-field textarea{min-height:88px;resize:vertical;line-height:1.7}.sf-field input:focus,.sf-field select:focus,.sf-field textarea:focus{border-color:#4d8fae;box-shadow:0 0 0 3px rgba(77,143,174,.10)}
.sf-note{background:#fffaf0;border:1px solid #f0dfae;color:#725d20;border-radius:13px;padding:11px 13px;font-size:12px;line-height:1.7;margin:12px 0}.sf-note.ok{background:#effaf6;border-color:#cdeadd;color:#276b58}.sf-note b{color:inherit}
.sf-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-top:13px}.sf-actions button,.sf-actions a{appearance:none;text-decoration:none;border:0;border-radius:11px;padding:10px 14px;font:inherit;font-weight:800;cursor:pointer}.sf-primary{background:var(--sf-navy);color:#fff}.sf-secondary{background:#e9f2f7;color:#28536c}.sf-green{background:#168b74;color:#fff}.sf-danger{background:#fff0f0;color:#a13c3c;border:1px solid #f1cccc!important}.sf-actions button:disabled{opacity:.55;cursor:wait}
.sf-subject{border:1px solid #d7e4eb;border-radius:15px;margin:10px 0;background:#fbfdfe;overflow:hidden}.sf-subject>summary{list-style:none;cursor:pointer;padding:14px 16px;font-weight:900;color:#254e65;background:#f1f7fa;display:flex;align-items:center;justify-content:space-between}.sf-subject>summary::-webkit-details-marker{display:none}.sf-subject>summary:after{content:'＋';font-size:18px}.sf-subject[open]>summary:after{content:'−'}.sf-subject-body{padding:13px}.sf-term{border:1px solid #dfe8ed;border-radius:13px;padding:13px;margin:0 0 12px;background:#fff}.sf-term:last-child{margin-bottom:0}.sf-term-title{font-weight:900;color:#3d6376;margin-bottom:10px;display:flex;justify-content:space-between;align-items:center}.sf-term-title span{font-size:10px;background:#f3f6f8;border-radius:999px;padding:5px 8px;color:#788b95}
.sf-strength-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.sf-list-fields{display:grid;gap:8px}.sf-list-fields h4{margin:0 0 4px;color:#3b6275}
.sf-status{min-height:20px;font-size:12px;font-weight:700;color:#557786;margin-top:9px}.sf-status.success{color:#15735f}.sf-status.error{color:#a13c3c}
.sf-tracker-table-wrap{overflow:auto;border:1px solid #d9e5eb;border-radius:14px}.sf-tracker-table{border-collapse:collapse;min-width:1100px;width:100%;background:#fff}.sf-tracker-table th,.sf-tracker-table td{border-bottom:1px solid #e1e9ee;padding:9px 8px;text-align:center;font-size:11px;vertical-align:top}.sf-tracker-table th{background:#f4d76f;color:#283f4d;position:sticky;top:0;z-index:1}.sf-tracker-table td:nth-child(8),.sf-tracker-table td:nth-child(9),.sf-tracker-table td:nth-child(11){min-width:180px;text-align:start;white-space:pre-wrap}.sf-empty{padding:26px!important;color:#83949d!important;text-align:center!important}.sf-mini-btn{border:1px solid #e1caca;background:#fff6f6;color:#a13c3c;border-radius:8px;padding:5px 8px;cursor:pointer;font-size:11px;font-weight:800}
.sf-template-preview{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sf-template-tile{border:1px solid #dce8ee;border-radius:15px;padding:15px;background:linear-gradient(180deg,#fff,#f8fbfd)}.sf-template-tile strong{display:block;color:#244e66;margin-bottom:5px}.sf-template-tile small{color:#738994;line-height:1.55}
@media(max-width:980px){.sf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.sf-grid,.sf-grid.two,.sf-strength-grid,.sf-template-preview{grid-template-columns:1fr}.sf-hero{align-items:flex-start;flex-direction:column}.sf-card{padding:13px}.sf-tabs button{flex:1}}
@media print{.schoolforms-panel .sf-tabs,.schoolforms-panel .sf-actions{display:none!important}}


/* V41 — curriculum-linked IEP + roster/schedule linked tracker */
.sf-curriculum-linker{margin:12px 0 16px;padding:14px;border:1px solid #cfe1ea;border-radius:16px;background:linear-gradient(180deg,#fafdff,#f4f9fc)}
.sf-curriculum-linker h3,.sf-roster-box h4{margin:0;color:#173f59}.sf-curriculum-linker p,.sf-roster-box p{margin:4px 0 0;color:#6b7e8c;font-size:11px}
.sf-curriculum-path{margin:10px 0;padding:9px 11px;border-radius:10px;background:#eaf4f8;color:#31576d;font-size:10px;line-height:1.7;border:1px solid #d6e8ef}
.sf-roster-box{margin-bottom:13px;padding:12px;border:1px dashed #bfd6e1;border-radius:14px;background:#fbfdfe}
.curriculum-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.curriculum-grid .wide{grid-column:1/-1!important}
@media(max-width:900px){.curriculum-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){.curriculum-grid{grid-template-columns:1fr!important}}


/* V43 — multi-subject full-term IEP planner */
.sf-term-planner{margin:12px 0 18px;padding:16px;border:1px solid #bfdde4;border-radius:18px;background:linear-gradient(180deg,#fbfeff,#f2faf9);box-shadow:0 8px 24px rgba(23,62,87,.05)}
.sf-bulk-label{font-size:12px;font-weight:900;color:#31576d;margin:12px 0 8px}
.sf-subject-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.sf-subject-choice{cursor:pointer;border:1px solid #d6e4ea;border-radius:13px;background:#fff;padding:10px;display:flex;gap:9px;align-items:center;min-height:66px;transition:.15s}
.sf-subject-choice:has(input:checked){border-color:#168b74;background:#edf9f5;box-shadow:0 0 0 2px rgba(22,139,116,.08)}
.sf-subject-choice input{width:18px;height:18px;accent-color:#168b74}.sf-subject-choice span{display:flex;flex-direction:column;gap:3px}.sf-subject-choice b{font-size:11px;color:#234c63}.sf-subject-choice small{font-size:8.5px;color:#7c909b}
.sf-bulk-lessons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:13px}
.sf-bulk-subject-card{border:1px solid #d5e4ea;border-radius:16px;background:#fff;padding:12px;min-width:0}
.sf-bulk-subject-head{display:flex;justify-content:space-between;gap:10px;align-items:center;padding-bottom:9px;border-bottom:1px solid #e8eff2;margin-bottom:9px}.sf-bulk-subject-head b{display:block;color:#173f59}.sf-bulk-subject-head small{font-size:9px;color:#788c97}.sf-mini-action{border:1px solid #cfdee5!important;background:#f7fbfc!important;color:#315d73!important;padding:5px 7px!important;border-radius:8px!important;font-size:9px!important;margin-inline-start:3px}
.sf-unit-block{border:1px solid #e0eaee;border-radius:11px;margin:7px 0;overflow:hidden;background:#fbfdfe}.sf-unit-block>summary{cursor:pointer;list-style:none;padding:8px 10px;font-size:10px;font-weight:900;color:#315d73;background:#f3f8fa;display:flex;justify-content:space-between;gap:8px}.sf-unit-block>summary::-webkit-details-marker{display:none}.sf-unit-block>summary small{font-size:8px;color:#8799a1;font-weight:700}
.sf-lesson-list{display:grid;gap:4px;padding:7px}.sf-lesson-choice{display:flex;gap:7px;align-items:flex-start;padding:7px;border-radius:8px;cursor:pointer;font-size:9.5px;line-height:1.55;color:#345465}.sf-lesson-choice:hover{background:#f1f8fa}.sf-lesson-choice:has(input:checked){background:#eaf8f4;color:#155f50;font-weight:800}.sf-lesson-choice input{margin-top:3px;accent-color:#168b74;flex:0 0 auto}
.sf-goal-rule{margin-top:10px;padding:10px 12px;border:1px solid #cbe9dc;border-radius:12px;background:#effaf6;color:#276b58;font-size:11px;line-height:1.7}.sf-goal-rule strong{color:#0d735e}
.sf-goal-preview{margin-top:12px;border:1px solid #d9e6eb;border-radius:14px;background:#fff;padding:12px;max-height:420px;overflow:auto}.sf-goal-preview-sub{margin-bottom:13px}.sf-goal-preview-sub:last-child{margin-bottom:0}.sf-goal-preview-sub h4{margin:0 0 7px;color:#173f59;border-bottom:1px solid #e8eff2;padding-bottom:6px}.sf-preview-goal{display:grid;grid-template-columns:26px 1fr;gap:6px 8px;padding:8px;border-radius:9px}.sf-preview-goal:nth-child(even){background:#f8fbfc}.sf-preview-goal>span{grid-row:1/3;width:22px;height:22px;border-radius:50%;background:#e8f5f1;color:#168b74;display:grid;place-items:center;font-size:9px;font-weight:900}.sf-preview-goal p{margin:0;font-size:10px;font-weight:800;color:#294e61;line-height:1.65}.sf-preview-goal small{font-size:8px;color:#8a9aa2}
@media(max-width:1100px){.sf-subject-picker{grid-template-columns:repeat(3,minmax(0,1fr))}.sf-bulk-lessons{grid-template-columns:1fr}}
@media(max-width:650px){.sf-subject-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* V44 — clean official IEP workflow */
.sf-clean-iep{max-width:1320px;margin:0 auto}
.sf-clean-top{display:flex;align-items:center;gap:14px;justify-content:flex-start;margin:0 0 12px;padding:10px 12px;border:1px solid #d8e6ec;background:#f7fbfd;border-radius:14px;position:sticky;top:8px;z-index:7;box-shadow:0 5px 16px rgba(25,61,80,.07)}
.sf-clean-top>div{display:flex;flex-direction:column;gap:2px}.sf-clean-top b{font-size:13px;color:#173f57}.sf-clean-top small{font-size:9px;color:#718792}
.sf-back-btn{white-space:nowrap}
.sf-general-compact{grid-template-columns:repeat(4,minmax(0,1fr))}
.sf-general-compact .sf-field:has(textarea){grid-column:span 2}
.sf-curriculum-builder{border:1px solid #bcded6!important;box-shadow:0 10px 28px rgba(17,115,96,.08)!important}
.sf-plan-controls{margin-bottom:8px}
.sf-visible-lessons{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.sf-bulk-subject-card{background:#fff!important;border:1px solid #d4e4ea!important}
.sf-unit-block{background:#fff!important}
.sf-lesson-list{gap:6px!important}
.sf-lesson-choice{min-height:58px!important;border:1px solid #e0eaee!important;background:#fbfdfe!important;align-items:center!important;padding:9px 10px!important}
.sf-lesson-choice:hover{border-color:#8fcfc1!important;background:#f4fbf9!important}
.sf-lesson-choice:has(input:checked){border-color:#168b74!important;background:#eaf8f4!important;box-shadow:0 0 0 1px rgba(22,139,116,.08)}
.sf-lesson-choice input{width:17px!important;height:17px!important;margin:0!important}
.sf-lesson-text{display:flex!important;flex-direction:column!important;gap:3px!important;color:#234c63!important;min-width:0!important;opacity:1!important;visibility:visible!important}
.sf-lesson-text b{font-size:10.5px!important;line-height:1.55!important;color:#173f57!important;font-weight:800!important;display:block!important;white-space:normal!important}
.sf-lesson-text small{font-size:8px!important;color:#7c909b!important;display:block!important}
.sf-goals-card{border:1px solid #d9e6eb!important}
.sf-goal-preview{display:block!important;max-height:none!important;overflow:visible!important}
.sf-goal-preview-sub{border:1px solid #d8e5ea;border-radius:13px;padding:10px;margin:8px 0;background:#fbfdfe}
.sf-goal-preview-sub>h4{margin:0 0 9px;color:#17465f;font-size:12px;display:flex;justify-content:space-between}.sf-goal-preview-sub>h4 small{font-size:8px;color:#78909c}
.sf-selected-lesson{background:#fff;border:1px solid #e1eaee;border-radius:11px;padding:10px;margin:7px 0}
.sf-selected-lesson-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:7px}.sf-selected-lesson-title b{font-size:10.5px;color:#183f56}.sf-selected-lesson-title small{font-size:8px;color:#7d929c}
.sf-edit-goal{display:grid!important;grid-template-columns:72px 1fr!important;gap:8px!important;align-items:start!important;margin:6px 0!important}.sf-edit-goal>span{font-size:8.5px;font-weight:800;color:#617d8a;padding-top:8px}.sf-edit-goal textarea{min-height:64px!important;resize:vertical!important;background:#fcfeff!important;font-size:10px!important;line-height:1.6!important}
.sf-extra-details{padding:0!important;overflow:hidden}.sf-extra-details>summary{cursor:pointer;padding:14px 16px;font-size:11px;font-weight:900;color:#284f63;background:#f7fafb}.sf-extra-details[open]>summary{border-bottom:1px solid #dce7eb}.sf-extra-block{padding:13px 16px}.sf-extra-block+ .sf-extra-block{border-top:1px solid #edf2f4}
.sf-hidden-official-fields{display:none!important}
.sf-generate-card{position:sticky;bottom:8px;z-index:6;border-color:#a9d9cd!important;background:rgba(255,255,255,.97)!important;backdrop-filter:blur(8px)}
.sf-big-generate{font-size:12px!important;padding:13px 20px!important;min-width:290px}
#schoolforms .sf-curriculum-linker,#schoolforms .sf-term-planner{display:none!important}
@media(max-width:1000px){.sf-general-compact{grid-template-columns:repeat(2,minmax(0,1fr))}.sf-visible-lessons{grid-template-columns:1fr}}
@media(max-width:650px){.sf-general-compact{grid-template-columns:1fr}.sf-general-compact .sf-field:has(textarea){grid-column:auto}.sf-clean-top{position:relative;top:auto;align-items:flex-start;flex-direction:column}.sf-edit-goal{grid-template-columns:1fr!important}.sf-big-generate{min-width:0;width:100%}.sf-generate-card{position:relative;bottom:auto}}
