/* Smart Teacher V52.20 - scoped styles only for the supervisory AI analyzer/config. */
.ai-product-card-v5220{margin:18px 0}.ai-product-grid-v5220{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;gap:12px;align-items:end}.ai-product-state-v5220{margin-top:12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ai-shell-v5220{padding-bottom:34px}.ai-hero-v5220{margin-bottom:18px}.ai-grid-v5220{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:18px;align-items:start}.ai-panel-v5220{min-height:560px}.ai-panel-head-v5220{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.ai-panel-head-v5220 h3{margin:0}.ai-textarea-v5220{min-height:300px;resize:vertical;line-height:1.9}.ai-attach-v5220{display:flex;align-items:center;justify-content:center;gap:10px;min-height:92px;border:1px dashed rgba(112,155,255,.55);border-radius:18px;cursor:pointer;padding:16px;text-align:center;background:rgba(87,132,255,.06);transition:.2s}.ai-attach-v5220:hover{transform:translateY(-1px);border-color:rgba(112,155,255,.9);background:rgba(87,132,255,.1)}.ai-attach-plus-v5220{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:50%;font-size:25px;background:linear-gradient(135deg,#2d7cff,#8057ff);color:#fff}.ai-file-chip-v5220{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding:12px 14px;border:1px solid rgba(112,155,255,.22);border-radius:14px;background:rgba(255,255,255,.04)}.ai-file-info-v5220{min-width:0;display:flex;flex-direction:column}.ai-file-info-v5220 strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-action-row-v5220{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.ai-action-row-v5220 .primary{flex:1;min-width:180px}.ai-response-v5220{white-space:pre-wrap;word-break:break-word;overflow:auto;min-height:455px;max-height:70vh;padding:18px;border:1px solid rgba(112,155,255,.22);border-radius:16px;background:rgba(6,15,37,.38);line-height:1.95;text-align:right;font-family:inherit}.ai-message-v5220{margin-top:12px;padding:10px 12px;border-radius:12px;font-size:.94rem}.ai-message-v5220.success{background:rgba(41,189,126,.13);color:#7be0ae}.ai-message-v5220.error{background:rgba(239,82,94,.13);color:#ff9ca4}.ai-message-v5220.working{background:rgba(73,130,255,.13);color:#9fbcff}.ai-locked-v5220{max-width:720px;margin:35px auto;text-align:center}.ai-locked-v5220 h2{margin-top:0}.ai-copy-icon-v5220{font-size:1.05rem;margin-inline-end:4px}.ai-subtitle-v5220{max-width:780px}.ai-hint-v5220{margin-top:7px;font-size:.88rem;opacity:.78}
@media (max-width:900px){.ai-grid-v5220{grid-template-columns:1fr}.ai-panel-v5220{min-height:0}.ai-response-v5220{min-height:360px}.ai-product-grid-v5220{grid-template-columns:1fr 1fr}.ai-product-grid-v5220 .btn{grid-column:1/-1}}
@media (max-width:560px){.ai-product-grid-v5220{grid-template-columns:1fr}.ai-panel-v5220{padding:14px}.ai-textarea-v5220{min-height:240px}.ai-response-v5220{min-height:320px}.ai-panel-head-v5220{align-items:flex-start;flex-direction:column}.ai-action-row-v5220{flex-direction:column}.ai-action-row-v5220 .btn{width:100%}}


/* V52.24 - Render the visit report like the ministry-style table: item at the far right, score at the far left. */
.ai-response-v5220{white-space:normal!important;word-break:normal;overflow:visible!important;min-height:455px;max-height:none!important;padding:0!important;background:rgba(6,15,37,.38)!important;color:#eef4ff!important;border:1px solid rgba(112,155,255,.22);border-radius:16px;text-align:right;font-family:inherit;direction:rtl}
.ai-report-doc-v5224{background:transparent;color:#eef4ff;padding:18px 22px 26px;min-width:0}
.ai-report-table-wrap-v5224{width:100%;overflow-x:auto;margin:0 0 20px}
.ai-report-table-v5224{width:100%;border-collapse:collapse;table-layout:fixed;direction:ltr;background:transparent;color:#eef4ff;font-size:1rem}
.ai-report-table-v5224 th,.ai-report-table-v5224 td{border-bottom:1px solid rgba(255,255,255,.12);padding:15px 0;vertical-align:middle;background:transparent}
.ai-report-table-v5224 thead th{font-weight:800;border-bottom:1px solid rgba(255,255,255,.22);padding-top:4px;padding-bottom:11px;color:#fff}
.ai-report-score-head-v5224,.ai-report-score-v5224{width:116px;text-align:left!important;padding-left:0!important;padding-right:18px!important;direction:ltr}
.ai-report-score-head-v5224{text-align:center!important;padding-right:0!important}
.ai-report-score-v5224{font-size:1.04rem;font-weight:700}
.ai-report-item-head-v5224,.ai-report-item-v5224{text-align:right!important;direction:rtl;padding-right:0!important;padding-left:18px!important}
.ai-report-item-head-v5224{font-size:1.03rem}
.ai-report-item-inner-v5224{display:flex;flex-direction:row;justify-content:flex-start;align-items:baseline;gap:4px;direction:rtl;text-align:right;min-width:0}
.ai-report-item-number-v5224{font-weight:800;white-space:nowrap;flex:0 0 auto}
.ai-report-item-name-v5224{min-width:0;line-height:1.75}
.ai-report-meta-v5224{margin:18px 0 22px;display:grid;gap:5px;direction:rtl;text-align:right}
.ai-report-meta-row-v5224{line-height:1.8}
.ai-report-section-v5224{margin-top:22px;direction:rtl;text-align:right}
.ai-report-heading-v5224{font-size:1.08rem;margin:0 0 10px;font-weight:900;color:#fff}
.ai-report-paragraph-v5224{margin:0 0 12px;line-height:2;color:#e7edf8}
.ai-report-empty-section-v5224{min-height:4px;margin:0 0 12px;line-height:1.9;color:#9eacc3}
.ai-report-empty-v5224,.ai-report-loading-v5224,.ai-report-error-v5224{min-height:455px;display:grid;place-items:center;padding:20px;color:#9eacc3;background:transparent;text-align:center}
.ai-report-loading-v5224{color:#9fbcff}.ai-report-error-v5224{color:#ff9ca4}
.ai-report-fallback-v5224{white-space:pre-wrap;word-break:break-word;margin:0;padding:18px;background:transparent;color:#eef4ff;font-family:inherit;direction:rtl;text-align:right}
@media(max-width:700px){.ai-report-doc-v5224{padding:14px 14px 22px}.ai-report-table-v5224{font-size:.93rem}.ai-report-score-head-v5224,.ai-report-score-v5224{width:86px}.ai-report-table-v5224 th,.ai-report-table-v5224 td{padding-top:12px;padding-bottom:12px}.ai-report-item-name-v5224{line-height:1.65}.ai-report-empty-v5224,.ai-report-loading-v5224,.ai-report-error-v5224{min-height:320px}}

/* V52.33: supervisory analyzer attachment controls only. */
.ai-notes-toolbar-v5220{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;flex-wrap:wrap}
.ai-notes-toolbar-v5220 label{margin:0}
.ai-clear-notes-v5220{display:inline-flex;align-items:center;gap:6px;cursor:pointer;border:1px solid rgba(173,188,207,.3);border-radius:9px;color:#e6eaf2;background:transparent;padding:7px 11px;font:inherit;font-size:.83rem;transition:background .2s,border-color .2s}
.ai-clear-notes-v5220:hover,.ai-clear-notes-v5220:focus-visible{border-color:rgba(235,116,116,.8);background:rgba(235,116,116,.12)}
.ai-attach-v5220{display:flex;justify-content:flex-start;text-align:right;min-height:83px;border:1px dashed rgba(169,188,210,.5);border-radius:12px;background:rgba(119,141,172,.06);padding:14px 16px;transform:none;gap:13px}
.ai-attach-v5220:hover{transform:none;border-color:rgba(152,185,225,.9);background:rgba(110,144,190,.11)}
.ai-attach-icon-v5220{flex-shrink:0;width:42px;height:42px;border-radius:10px;border:1px solid rgba(160,181,210,.35);background:rgba(124,154,192,.11);display:grid;place-items:center;color:#c6d9f1}
.ai-attach-description-v5220{display:flex;flex-direction:column;min-width:0;flex:1;gap:3px}
.ai-attach-description-v5220 strong{font-size:.98rem}
.ai-attach-description-v5220 .ai-hint-v5220{margin:0;line-height:1.65;color:#a8b8cc;opacity:1}
.ai-attach-select-v5220{white-space:nowrap;align-self:center;border:1px solid rgba(170,190,218,.45);border-radius:8px;padding:8px 12px;font-size:.84rem;font-weight:700;color:#e9f0fb;background:rgba(144,165,197,.12)}
.ai-attachments-list-v5220{display:grid;gap:10px;margin-top:13px}
.ai-attachments-list-v5220[hidden]{display:none}
.ai-attachments-heading-v5220{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.89rem;color:#dfe7f2}
.ai-attachments-heading-v5220 span{color:#a7b7ca;font-size:.83rem}
.ai-attachments-items-v5220{display:grid;gap:8px}
.ai-attachment-row-v5220{display:flex;align-items:center;gap:11px;padding:10px;border:1px solid rgba(168,188,209,.23);border-radius:10px;background:rgba(255,255,255,.035);min-width:0}
.ai-attachment-preview-v5220{flex:0 0 54px;width:54px;height:54px;border:1px solid rgba(164,187,216,.23);border-radius:8px;background:rgba(142,164,192,.1);object-fit:cover;display:grid;place-items:center;color:#b5cbe5}
.ai-attachment-details-v5220{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.ai-attachment-details-v5220 strong{font-size:.86rem;overflow-wrap:anywhere;line-height:1.4}
.ai-attachment-details-v5220 small{color:#a7b7ca;font-size:.77rem}
.ai-attachment-actions-v5220{display:flex;gap:6px;align-items:center;flex-shrink:0}
.ai-attachment-action-v5220{display:inline-flex;align-items:center;justify-content:center;gap:5px;cursor:pointer;font:inherit;font-size:.78rem;padding:7px 9px;border-radius:8px;color:#d9e5f5;border:1px solid rgba(164,187,216,.35);background:transparent}
.ai-attachment-action-v5220:hover,.ai-attachment-action-v5220:focus-visible{background:rgba(122,150,193,.16);border-color:rgba(164,187,216,.7)}
.ai-attachment-action-v5220.ai-attachment-remove-v5220{color:#ffb9be}
.ai-attachment-action-v5220.ai-attachment-remove-v5220:hover{background:rgba(221,74,87,.15);border-color:rgba(221,74,87,.65)}
@media(max-width:650px){.ai-attach-v5220{align-items:flex-start;flex-wrap:wrap}.ai-attach-select-v5220{margin-right:55px}.ai-attachment-row-v5220{flex-wrap:wrap}.ai-attachment-actions-v5220{margin-inline-start:auto}.ai-attachment-details-v5220{flex-basis:calc(100% - 68px)}}
@media(max-width:650px){
  .ai-attach-v5220{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;justify-content:stretch;gap:10px 12px}
  .ai-attach-icon-v5220{grid-column:1;grid-row:1}
  .ai-attach-description-v5220{grid-column:2;grid-row:1;width:100%;min-width:0}
  .ai-attach-select-v5220{grid-column:1/-1;margin:0;justify-self:stretch;text-align:center}
}

/* V60: official three-column rubric layout; existing color theme unchanged. */
.ai-report-table-v5224{direction:rtl!important}
.ai-report-number-head-v60,.ai-report-number-v60{width:52px;text-align:center!important;direction:ltr;font-weight:700}
.ai-report-score-head-v5224,.ai-report-score-v5224{width:112px;text-align:center!important;padding-right:8px!important;padding-left:8px!important}
.ai-report-item-head-v5224,.ai-report-item-v5224{padding-right:10px!important;padding-left:10px!important}
.ai-report-verification-v60{padding:12px 14px;margin:12px 0;border:1px solid rgba(245,194,96,.4);border-radius:9px;color:#ffdf9f;background:rgba(125,82,30,.12);font-size:.92rem;line-height:1.8}
@media(max-width:700px){.ai-report-number-head-v60,.ai-report-number-v60{width:35px}.ai-report-score-head-v5224,.ai-report-score-v5224{width:79px}}

/* V67 — only the supervisory analysis teacher-gender choice. */
.ai-gender-selector-v67{border:1px solid var(--border,rgba(164,187,216,.35));border-radius:11px;padding:10px 13px;margin:3px 0 14px;min-width:0}
.ai-gender-selector-v67 legend{font-size:.96rem;font-weight:700;padding:0 6px}
.ai-gender-options-v67{display:flex;flex-wrap:wrap;gap:10px;margin:5px 0 7px}
.ai-gender-choice-v67{display:flex;align-items:center;gap:9px;min-width:128px;padding:10px 16px;border:1px solid rgba(157,181,207,.4);border-radius:10px;background:rgba(125,156,189,.055);cursor:pointer;font-weight:600}
.ai-gender-choice-v67:has(input:checked){border-color:var(--primary,#328adc);background:rgba(51,147,230,.15)}
.ai-gender-choice-v67:focus-within{outline:2px solid var(--primary,#328adc);outline-offset:2px}
.ai-gender-choice-v67 input{accent-color:var(--primary,#328adc);margin:0;width:17px;height:17px}
.ai-gender-icon-v67{font-size:1.3rem;line-height:1}
.ai-gender-hint-v67{margin:0;font-size:.83rem;line-height:1.65}

/* V81 official supervision rubric reach ranges (displayed and exported). */
.ai-report-score-v5224{min-width:145px;line-height:1.55}.ai-report-score-scope-v81{display:block;font-size:.78em;font-weight:400;color:#52657b;line-height:1.5}.ai-report-rubric-note-v81{font-size:.82rem;color:#52657b;margin:5px 0 14px;line-height:1.7}
