/* V90 — AI Student Work Feedback */
.v90-feedback-panel{--v90-navy:#0b3558;--v90-teal:#0f7d7e;--v90-bg:#f4f8fa;--v90-line:#dbe6eb;--v90-muted:#73808c;direction:rtl}
.v90-feedback-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:4px 0 16px}.v90-feedback-title h1{margin:4px 0 6px;color:var(--v90-navy);font-size:28px}.v90-feedback-title p{margin:0;color:var(--v90-muted);line-height:1.8}.v90-kicker{font-size:10px;font-weight:900;letter-spacing:1.2px;color:var(--v90-teal)}
.v90-api-badge{padding:8px 11px;border-radius:999px;background:#fff7dc;border:1px solid #f0d98a;color:#725813;font-size:11px;font-weight:900;white-space:nowrap}.v90-api-badge.ok{background:#e8fbf4;border-color:#b8ead7;color:#176b55}.v90-api-badge.bad{background:#fff1f0;border-color:#f2c7c3;color:#9b2c2c}
.v90-flow{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;background:linear-gradient(135deg,#0b3558,#0f7d7e);color:#fff;border-radius:18px;padding:14px 16px;margin-bottom:16px;box-shadow:0 10px 28px rgba(11,53,88,.10)}.v90-flow span{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800}.v90-flow b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#fff;color:#0b5470}.v90-flow i{font-style:normal;opacity:.65}
.v90-feedback-grid{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);gap:16px;align-items:start}.v90-card{background:#fff;border:1px solid var(--v90-line);border-radius:20px;padding:18px;box-shadow:0 10px 30px rgba(23,56,72,.055);margin-bottom:16px}.v90-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.v90-card-head h2{margin:0 0 4px;color:var(--v90-navy);font-size:19px}.v90-card-head p{margin:0;color:var(--v90-muted);font-size:11px;line-height:1.6}.v90-card-head>span{font-size:10px;border-radius:999px;padding:5px 8px;background:#eef6f8;color:#287184;font-weight:900}
.v90-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v90-feedback-panel label{display:block;font-size:12px;font-weight:800;color:#334b5d;margin-bottom:10px}.v90-feedback-panel input,.v90-feedback-panel select,.v90-feedback-panel textarea{margin-top:6px;border:1px solid #cddce3;border-radius:12px;padding:10px 11px;background:#fff}.v90-feedback-panel textarea{min-height:82px;line-height:1.75}.v90-student-text{min-height:125px!important}
.v90-upload-zone{border:2px dashed #b8d3dc;background:#f8fcfd;border-radius:18px;padding:18px;text-align:center;margin:12px 0 14px;transition:.18s}.v90-upload-zone.drag{border-color:var(--v90-teal);background:#effbfa}.v90-upload-icon{font-size:30px;color:var(--v90-teal);margin-bottom:4px}.v90-upload-zone b,.v90-upload-zone span{display:block}.v90-upload-zone span{font-size:11px;color:var(--v90-muted);margin:5px 0 10px}.v90-upload-zone button{border:1px solid #cbdde3;background:#fff;color:var(--v90-navy);border-radius:10px;padding:8px 12px;font-weight:800}.v90-file-preview{border:1px solid #d9e5e9;border-radius:14px;background:#fbfdfd;padding:10px;margin:-4px 0 12px}.v90-file-preview img{max-width:100%;max-height:260px;object-fit:contain;border-radius:10px;display:block;margin:auto}.v90-file-row{display:flex;align-items:center;gap:10px;justify-content:space-between}.v90-file-meta{min-width:0}.v90-file-meta b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v90-file-meta span{font-size:10px;color:var(--v90-muted)}.v90-remove-file{border:0;background:#fff0f0;color:#a72d2d;border-radius:9px;padding:7px 9px;font-weight:900}
.v90-options{display:grid;gap:7px;border:1px solid #e0eaee;background:#f8fbfc;border-radius:14px;padding:10px;margin:10px 0}.v90-options label{display:flex;align-items:center;gap:8px;margin:0;font-weight:700}.v90-options input{width:auto;margin:0}.v90-primary{border:0!important;background:linear-gradient(135deg,#0b3558,#0d7180)!important;color:#fff!important;border-radius:12px!important;padding:12px 16px!important;font-weight:900!important;box-shadow:0 8px 18px rgba(11,53,88,.14)}.v90-primary:disabled{opacity:.55;cursor:not-allowed}.v90-status{font-size:11px;color:var(--v90-muted);margin-top:10px;min-height:18px}.v90-status.loading{color:#0e6f7a}.v90-status.error{color:#a32929}.v90-status.ok{color:#176b55}
.v90-empty-result{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px dashed #cfdee4;border-radius:16px;background:#fbfdfd;color:#81909a}.v90-empty-result>div{font-size:44px}.v90-empty-result b{color:#35566b;margin:6px 0}.v90-empty-result span{font-size:11px}.v90-result-summary{background:linear-gradient(135deg,#edfaff,#f7fffb);border:1px solid #d4e9ea;border-radius:15px;padding:13px;margin-bottom:12px}.v90-result-summary span{display:block;color:#0e7180;font-size:10px;font-weight:900;margin-bottom:5px}.v90-result-summary p{margin:0;line-height:1.9}.v90-result-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px}.v90-result-box{border:1px solid #dce7eb;border-radius:15px;padding:13px;margin:10px 0;background:#fbfdfe}.v90-result-box.good{background:#f2fcf8;border-color:#ccebdd}.v90-result-box.improve{background:#fffaf0;border-color:#f0dfb8}.v90-result-box.teacher{background:#f7f5ff;border-color:#ddd7f2}.v90-result-box h3,.v90-student-feedback h3{margin:0 0 8px;color:#1f536a;font-size:14px}.v90-result-box p{margin:0;line-height:1.8}.v90-result-list{margin:0;padding-right:20px;line-height:1.9}.v90-correction{border-bottom:1px dashed #d8e3e7;padding:7px 0}.v90-correction:last-child{border-bottom:0}.v90-correction b{color:#983131}.v90-student-feedback{border:2px solid #cfe5e7;border-radius:15px;padding:13px;background:#f7fcfc;margin:10px 0}.v90-student-feedback textarea{min-height:155px!important;background:#fff}.v90-score-box{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff4dc;border:1px solid #eed49a;border-radius:13px;padding:10px;margin:10px 0}.v90-score-box small{display:block;color:#846b36;width:100%}.v90-review-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.v90-review-actions button{border:1px solid #d1dfe4;background:#fff;color:#15435a;border-radius:11px;padding:10px 12px;font-weight:800}
.v90-history-card{margin-top:2px}.v90-history{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.v90-history-item{border:1px solid #dce7eb;border-radius:14px;padding:12px;background:#fbfdfe}.v90-history-item .top{display:flex;justify-content:space-between;gap:8px}.v90-history-item b{color:#174b65}.v90-history-item small{color:#83909a}.v90-history-item p{font-size:11px;line-height:1.6;color:#5f707b}.v90-history-empty{grid-column:1/-1;text-align:center;padding:24px;color:#87959e;border:1px dashed #d4e1e6;border-radius:14px}.v90-history-actions{display:flex;gap:6px}.v90-history-actions button{font-size:10px;border:1px solid #d5e2e6;background:#fff;border-radius:8px;padding:6px 8px}
@media(max-width:980px){.v90-feedback-grid{grid-template-columns:1fr}.v90-history{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.v90-feedback-title{flex-direction:column}.v90-feedback-title h1{font-size:23px}.v90-form-grid,.v90-result-columns{grid-template-columns:1fr}.v90-flow{justify-content:flex-start;overflow:auto;flex-wrap:nowrap}.v90-flow span{white-space:nowrap}.v90-history{grid-template-columns:1fr}.v90-card{padding:13px;border-radius:16px}.v90-review-actions button{flex:1 1 45%}}
@media print{#workfeedback .v90-upload-card,#workfeedback .v90-history-card,#workfeedback .v90-flow,#workfeedback .v90-feedback-title .v90-api-badge,#workfeedback .v90-review-actions{display:none!important}#workfeedback{display:block!important}.v90-feedback-grid{display:block}.v90-result-card{box-shadow:none;border:0}}
