
.ai-teacher-page-body .portal-main{
  background: linear-gradient(180deg,#f6f7fb 0%,#f8fafc 100%);
}

.ai-teacher-room-page{
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 10px 40px;
  display: grid;
  gap: 20px;
}

.ai-room-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}
.ai-room-title-block h1{
  margin: 6px 0 8px;
  font-size: 2.25rem;
  line-height:1.1;
  font-weight:800;
  letter-spacing:-0.02em;
  color:#111827;
}
.ai-room-title-block p{
  margin:0;
  color:#667085;
  font-size:1rem;
}
.ai-room-eyebrow{
  margin:0;
  color:#5146e5 !important;
  font-size:.9rem !important;
  letter-spacing:.12em;
  font-weight:800;
}
.ai-room-header-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}
.ai-header-icon-btn{
  width:48px;height:48px;border-radius:14px;border:1px solid #dde3f0;background:#fff;color:#475467;
  box-shadow:0 6px 20px rgba(15,23,42,.05);
}
.ai-header-guide-btn,
.ai-summary-open-btn{
  min-height:48px;
}
.ai-header-cta{
  min-height:48px;
  padding:0 22px;
  border-radius:14px;
  box-shadow:0 12px 24px rgba(79,70,229,.24);
}

.ai-room-metric-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.ai-room-metric-card{
  position:relative;
  min-height:132px;
  padding:22px 22px 20px;
  border-radius:20px;
  background:#fff;
  border:1px solid #e7ebf4;
  box-shadow:0 8px 28px rgba(15,23,42,.05);
  overflow:hidden;
}
.ai-room-metric-label{display:block;font-size:.92rem;color:#475467;font-weight:700;margin-bottom:12px;}
.ai-room-metric-card b{display:block;font-size:2.2rem;font-weight:800;line-height:1;color:#111827;letter-spacing:-0.02em;}
.ai-room-metric-card small{display:block;margin-top:10px;color:#98a2b3;font-size:.9rem;}
.ai-room-metric-icon{
  position:absolute;right:22px;bottom:18px;width:56px;height:56px;border-radius:18px;
  display:grid;place-items:center;font-size:1.45rem;font-weight:800;opacity:.9;
  background:linear-gradient(180deg,#f7f5ff 0%,#f2f4f7 100%);color:#6d5efc;
}
.metric-total .ai-room-metric-icon{color:#22c55e;background:linear-gradient(180deg,#effcf5 0%,#f4f7f7 100%);}
.metric-ai .ai-room-metric-icon{color:#60a5fa;}

.ai-room-request-panel,
.ai-room-file-panel,
.ai-summary-card,
.ai-report-card{
  border-radius:24px;
  border:1px solid #e7ebf4;
  background:#fff;
  box-shadow:0 10px 30px rgba(15,23,42,.05);
}
.ai-room-request-panel{padding:18px 20px 16px;}
.ai-room-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:16px;
}
.ai-room-panel-head.inline h2,
.ai-room-panel-head.compact h2,
.ai-summary-card-head h2{
  margin:0;
  font-size:1.65rem;
  line-height:1.2;
  color:#111827;
  font-weight:800;
}
.ai-room-panel-head p,
.ai-summary-card-head p{margin:6px 0 0;color:#667085;font-size:.96rem;}
.ai-room-panel-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.ai-room-filter-chip,
.ai-room-period-chip{
  border:1px solid #dfe4ef;
  background:#fff;
  color:#667085;
  min-height:40px;
  padding:0 14px;
  border-radius:12px;
  font-weight:700;
}
.ai-room-filter-chip.active{background:#5b4ef7;color:#fff;border-color:#5b4ef7;box-shadow:0 8px 18px rgba(91,78,247,.22);}

.ai-room-request-list.compact-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.ai-room-request-item.mini-card{
  display:flex;
  align-items:center;
  gap:18px;
  padding:18px 20px;
  min-height:118px;
  border-radius:18px;
  border:1px solid #e6ebf5;
  background:#fff;
}
.ai-room-request-symbol{
  width:58px;height:58px;border-radius:18px;display:grid;place-items:center;
  background:linear-gradient(180deg,#efeaff 0%,#f6f5ff 100%);
  color:#695bff;font-size:1.35rem;font-weight:800;flex-shrink:0;
}
.growth-create .ai-room-request-symbol{background:linear-gradient(180deg,#eef5ff 0%,#f7fbff 100%);color:#4f85ff;}
.ai-room-request-copy h3{margin:0 0 8px;font-size:1.18rem;color:#111827;font-weight:800;}
.ai-room-request-copy p{margin:0;color:#667085;font-size:.95rem;line-height:1.55;}
.ai-room-link-btn{
  margin-top:10px;background:none;border:none;padding:0;color:#5b4ef7;font-weight:800;font-size:.95rem;
}

.ai-room-file-panel{padding:20px 20px 18px;}
.ai-room-file-table-head,
.ai-room-file-list .portal-record-item{
  display:grid;
  grid-template-columns:minmax(280px,1.9fr) minmax(220px,1.25fr) 92px 88px 96px 124px;
  gap:16px;
  align-items:center;
}
.ai-room-file-table-head{
  padding:0 10px 10px;
  color:#98a2b3;
  font-size:.83rem;
  font-weight:700;
}
.ai-room-file-list{display:grid;gap:10px;}
.ai-room-file-list .portal-record-item{
  margin:0;
  padding:16px 14px;
  border:1px solid #edf1f7;
  border-radius:16px;
  background:#fff;
}
.ai-room-file-main .portal-record-title{
  font-size:1rem;
  font-weight:800;
  color:#111827;
  line-height:1.35;
  margin-bottom:6px;
}
.ai-room-file-main .portal-record-meta{font-size:.87rem;color:#98a2b3;line-height:1.45;}
.ai-file-summary-label,.ai-file-metric-label{display:block;font-size:.76rem;color:#98a2b3;font-weight:700;margin-bottom:4px;}
.ai-file-summary-text{font-size:.92rem;color:#475467;line-height:1.45;}
.ai-file-metric strong{display:block;font-size:1rem;font-weight:800;color:#111827;}
.ai-file-metric .portal-badge{
  padding:7px 10px;border-radius:999px;font-size:.88rem;font-weight:800;display:inline-flex;justify-content:center;min-width:72px;
}
.ai-room-file-list .portal-btn.primary{
  min-height:42px;border-radius:12px;padding:0 16px;white-space:nowrap;justify-content:center;
}
.ai-room-file-list .portal-record-score,
.ai-room-file-list .portal-record-metric{display:flex;justify-content:flex-start;}
.ai-room-pagination-wrap{display:flex;justify-content:center;padding-top:10px;}
.ai-room-pagination{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.ai-room-page-btn{min-width:36px;height:36px;border-radius:10px;border:1px solid #e1e7f1;background:#fff;color:#667085;font-weight:800;}
.ai-room-page-btn.active{background:#5b4ef7;border-color:#5b4ef7;color:#fff;box-shadow:0 8px 16px rgba(91,78,247,.22);}
.ai-room-page-status{margin-left:8px;color:#98a2b3;font-size:.86rem;}
.ai-room-page-ellipsis{padding:0 4px;color:#98a2b3;font-weight:700;}

.ai-room-lower-grid{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);gap:18px;align-items:start;}
.ai-summary-card,.ai-report-card{padding:20px;}
.ai-summary-card-head,
.ai-report-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px;}
.ai-summary-card-head p{font-size:.92rem;}
.ai-summary-card-body{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;align-items:stretch;margin-bottom:18px;}
.ai-summary-score-box{
  border:1px solid #e7ebf4;border-radius:20px;padding:22px;background:linear-gradient(180deg,#fbfdff 0%,#f7f7ff 100%);
  display:flex;flex-direction:column;justify-content:center;min-height:220px;
}
.ai-summary-label{font-size:.86rem;color:#667085;font-weight:700;margin-bottom:10px;}
.ai-summary-score-box strong{font-size:3.1rem;line-height:1;font-weight:900;color:#111827;letter-spacing:-0.02em;}
.ai-summary-delta{margin-top:12px;font-size:1.05rem;font-weight:800;}
.ai-summary-delta.up{color:#10b981;}
.ai-summary-delta.down{color:#ef4444;}
.ai-summary-delta.neutral{color:#667085;}
.ai-summary-score-box small{margin-top:6px;color:#98a2b3;line-height:1.45;}
.ai-summary-chart-box{
  border:1px solid #e7ebf4;border-radius:20px;padding:18px 18px 14px;background:#fff;min-height:220px;
}
.ai-summary-chart-title{font-size:.9rem;font-weight:800;color:#475467;margin-bottom:6px;}
.ai-summary-trend .ai-trend-top{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px;}
.ai-summary-trend .ai-trend-top b{font-size:1rem;color:#111827;}
.ai-summary-trend .ai-trend-top span{font-size:.86rem;font-weight:800;}
.ai-summary-trend .ai-trend-top .good{color:#10b981;}
.ai-summary-trend .ai-trend-top .bad{color:#ef4444;}
.ai-summary-trend .ai-trend-svg{width:100%;height:auto;display:block;overflow:visible;}
.ai-summary-trend .ai-trend-svg line{stroke:#e5e7eb;stroke-width:1;}
.ai-summary-trend .ai-trend-svg polyline{stroke:#695bff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;}
.ai-summary-trend .ai-trend-svg circle{fill:#fff;stroke:#695bff;stroke-width:3;}
.ai-summary-trend .ai-trend-svg circle.outlier{stroke:#f97316;}
.ai-summary-trend .ai-trend-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#98a2b3;font-size:.82rem;}
.ai-summary-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.ai-summary-kpi-item{border:1px solid #eef2f7;border-radius:18px;padding:14px 14px 12px;background:#fff;}
.ai-summary-kpi-item span{display:block;color:#98a2b3;font-size:.79rem;font-weight:700;}
.ai-summary-kpi-item b{display:block;margin-top:8px;font-size:1.5rem;color:#111827;font-weight:800;line-height:1.1;}
.ai-summary-kpi-item small{display:block;margin-top:6px;font-size:.82rem;font-weight:700;}
.ai-summary-kpi-item small.up{color:#10b981;}.ai-summary-kpi-item small.down{color:#ef4444;}.ai-summary-kpi-item small.neutral{color:#98a2b3;}
.ai-summary-weekly-slot{margin-top:16px;display:grid;gap:10px;}
.ai-summary-weekly-note{border-radius:16px;background:#f8fafc;border:1px solid #e8edf5;padding:14px 16px;color:#475467;font-size:.9rem;line-height:1.5;}

.ai-report-tabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.ai-report-tab{
  min-height:36px;padding:0 14px;border:none;background:none;border-radius:999px;color:#667085;font-weight:800;
}
.ai-report-tab.active{background:#f0edff;color:#5b4ef7;box-shadow:inset 0 0 0 1px #ddd6fe;}
.ai-report-pane{display:none;}
.ai-report-pane.active{display:block;}
.ai-report-insight-list{display:grid;gap:12px;}
.ai-report-insight-item{border:1px solid #e8edf5;border-radius:18px;background:#fff;overflow:hidden;}
.ai-report-insight-item[open]{border-color:#d8d1ff;box-shadow:0 10px 22px rgba(91,78,247,.08);}
.ai-report-insight-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;cursor:pointer;list-style:none;}
.ai-report-insight-summary::-webkit-details-marker{display:none;}
.ai-report-insight-main{display:flex;align-items:flex-start;gap:14px;min-width:0;}
.ai-report-insight-icon{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:#f4f2ff;color:#695bff;font-weight:800;flex-shrink:0;}
.ai-report-insight-title{font-size:1rem;font-weight:800;color:#111827;display:block;}
.ai-report-insight-desc{display:block;margin-top:4px;color:#667085;font-size:.92rem;line-height:1.45;}
.ai-report-insight-link{color:#5b4ef7;font-weight:800;font-size:.88rem;white-space:nowrap;}
.ai-report-insight-body{padding:0 18px 18px 68px;color:#475467;font-size:.92rem;line-height:1.7;border-top:1px solid #f0f3f8;}

.ai-week-analysis-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.ai-mini-panel{border:1px solid #e8edf5;border-radius:18px;padding:16px;background:#fff;}
.ai-mini-panel.wide{grid-column:1 / -1;}
.ai-mini-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;}
.ai-mini-panel-head h3{margin:0;font-size:1rem;color:#111827;font-weight:800;}
.ai-mini-panel-head span{color:#98a2b3;font-size:.83rem;}
.ai-week-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;min-height:196px;align-items:end;}
.ai-week-bar{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;}
.ai-week-value{font-size:.75rem;color:#98a2b3;white-space:nowrap;}
.ai-week-track{width:100%;max-width:28px;height:100px;border-radius:999px;background:#eef2ff;position:relative;display:flex;align-items:flex-end;padding:4px;}
.ai-week-fill{width:100%;border-radius:999px;background:linear-gradient(180deg,#8b80ff 0%,#5b4ef7 100%);min-height:6px;}
.ai-week-bar.today .ai-week-track{box-shadow:0 0 0 2px #ddd6fe inset;}
.ai-week-label{font-size:.75rem;color:#667085;text-align:center;line-height:1.35;}
.ai-week-label small{display:block;color:#98a2b3;margin-top:2px;}
.ai-error-total{display:flex;flex-direction:column;gap:2px;margin-bottom:12px;}
.ai-error-total b{font-size:1.2rem;color:#111827;}
.ai-error-total span{font-size:.84rem;color:#98a2b3;}
.ai-error-bar-list{display:grid;gap:10px;}
.ai-error-label{display:flex;justify-content:space-between;gap:8px;font-size:.84rem;color:#667085;}
.ai-error-label b{color:#111827;}
.ai-error-track{height:9px;background:#f1f5f9;border-radius:999px;overflow:hidden;}
.ai-error-fill{height:100%;border-radius:999px;background:#cbd5e1;}
.ai-error-fill.wrong{background:#60a5fa;}.ai-error-fill.missing{background:#ef4444;}.ai-error-fill.added{background:#10b981;}.ai-error-fill.spacing{background:#f59e0b;}
.ai-weak-card{border:1px solid #eef2f7;border-radius:16px;padding:14px 16px;background:#fafbff;margin-bottom:12px;}
.ai-weak-tag{display:inline-flex;border-radius:999px;background:#ebe9fe;color:#5b4ef7;font-size:.78rem;font-weight:800;padding:4px 10px;margin-bottom:8px;}
.ai-weak-card strong{display:block;font-size:1rem;color:#111827;margin-bottom:6px;}
.ai-weak-card p{margin:0;color:#667085;font-size:.9rem;line-height:1.55;}
.ai-prescription-list{display:grid;gap:10px;}
.ai-weekly-prescription{display:grid;gap:10px;}
.ai-room-results-controls.compact{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-bottom:14px;}
.compact-report-list{max-height:500px;overflow:auto;padding-right:2px;}
.compact-report-list .ai-feedback-latest-panel,
.compact-report-list .ai-feedback-archive-panel{border:1px solid #e8edf5;border-radius:18px;background:#fff;padding:16px;}
.compact-report-list .ai-feedback-latest-panel{margin-bottom:12px;}
.compact-report-list .ai-feedback-section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;color:#111827;font-weight:800;}
.compact-report-list .ai-feedback-section-title span{font-size:.92rem;}
.compact-report-list .ai-feedback-section-title b{font-size:.82rem;color:#98a2b3;}
.compact-report-list .ai-feedback-archive-scroll{display:grid;gap:10px;max-height:340px;overflow:auto;padding-right:2px;}
.compact-report-list .ai-feedback-month-group{border:1px solid #eef2f7;border-radius:14px;padding:10px 12px;background:#fafbff;}
.compact-report-list .ai-feedback-month-group summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;font-weight:800;color:#475467;}
.compact-report-list .ai-feedback-month-list{display:grid;gap:10px;margin-top:10px;}
.compact-report-list .ai-feedback-card{border:1px solid #edf2f7;border-radius:16px;background:#fff;padding:14px;}

/* feedback cards tightening */
#aiTeacherFeedbackList .portal-empty{border-radius:16px;padding:18px;background:#fafbff;}
#aiTeacherFeedbackList .ai-feedback-header{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:flex-start;}
#aiTeacherFeedbackList .ai-feedback-title{font-size:1rem;font-weight:800;color:#111827;}
#aiTeacherFeedbackList .ai-feedback-meta{color:#98a2b3;font-size:.83rem;line-height:1.45;}
#aiTeacherFeedbackList .ai-feedback-body{font-size:.92rem;color:#475467;line-height:1.7;max-height:220px;overflow:auto;padding-right:4px;}
#aiTeacherFeedbackList .ai-feedback-actions{margin-top:12px;display:flex;flex-wrap:wrap;gap:8px;}
#aiTeacherFeedbackList .portal-btn{border-radius:12px;min-height:40px;}

@media (max-width: 1320px){
  .ai-room-file-table-head,
  .ai-room-file-list .portal-record-item{grid-template-columns:minmax(250px,1.7fr) minmax(200px,1.1fr) 80px 80px 88px 112px;gap:12px;}
}
@media (max-width: 1120px){
  .ai-room-header{flex-direction:column;}
  .ai-room-header-actions{width:100%;justify-content:flex-end;}
  .ai-room-metric-grid,
  .ai-room-lower-grid,
  .ai-room-request-list.compact-grid{grid-template-columns:1fr 1fr;}
  .ai-room-lower-grid{grid-template-columns:1fr;}
  .ai-summary-card-body{grid-template-columns:1fr;}
  .ai-summary-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 920px){
  .ai-room-metric-grid,
  .ai-room-request-list.compact-grid,
  .ai-week-analysis-grid{grid-template-columns:1fr;}
  .ai-room-file-table-head{display:none;}
  .ai-room-file-list .portal-record-item{grid-template-columns:1fr 1fr;}
  .ai-room-file-list .portal-record-item > *:nth-child(n+3){justify-self:start;}
  .ai-room-file-list .portal-record-item > .ai-file-action{grid-column:2;justify-self:end;align-self:end;}
}
@media (max-width: 640px){
  .ai-teacher-room-page{padding:20px 0 28px;gap:16px;}
  .ai-room-title-block h1{font-size:1.9rem;}
  .ai-room-header-actions{flex-wrap:wrap;justify-content:flex-start;}
  .ai-room-metric-grid{grid-template-columns:1fr;}
  .ai-summary-kpi-grid{grid-template-columns:1fr;}
  .ai-room-file-list .portal-record-item{grid-template-columns:1fr;}
  .ai-room-file-list .portal-record-item > .ai-file-action{grid-column:auto;justify-self:start;}
  .ai-room-results-controls.compact{justify-content:flex-start;}
}

/* ========================================================================
   AI 선생님 피드백방 최종 압축 레이아웃 v4
   - 시안과 동일한 정보 순서
   - 한 화면에 핵심 영역이 들어오도록 높이 압축
   - 상세 리포트는 카드 내부 스크롤/접기 방식으로 유지
   ======================================================================== */
body.ai-teacher-page-body .portal-main{
  padding:18px 26px 24px!important;
  background:
    radial-gradient(circle at 88% 0%,rgba(91,78,247,.055),transparent 25%),
    linear-gradient(180deg,#f7f8fc 0%,#f8fafc 100%)!important;
}
body.ai-teacher-page-body .ai-teacher-room-page{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  gap:14px!important;
}

/* header */
body.ai-teacher-page-body .ai-room-header{
  min-height:58px;
  align-items:flex-start;
  gap:20px;
}
body.ai-teacher-page-body .ai-room-title-block h1{
  margin:5px 0 7px;
  font-size:30px;
  line-height:1.08;
  font-weight:800;
  letter-spacing:-0.02em;
}
body.ai-teacher-page-body .ai-room-title-block>p:last-child{
  font-size:13px;
  line-height:1.45;
  font-weight:600;
}
body.ai-teacher-page-body .ai-room-eyebrow{
  font-size:12.8px!important;
  line-height:1;
  letter-spacing:.13em;
}
body.ai-teacher-page-body .ai-room-header-actions{gap:8px;padding-top:3px;}
body.ai-teacher-page-body .ai-header-guide-btn,
body.ai-teacher-page-body .ai-header-icon-btn,
body.ai-teacher-page-body .ai-header-cta{
  min-height:38px!important;
  height:38px;
  border-radius:11px!important;
  font-size:12.8px!important;
  font-weight:800!important;
}
body.ai-teacher-page-body .ai-header-guide-btn{padding:0 12px!important;gap:6px;}
body.ai-teacher-page-body .ai-header-guide-btn svg,
body.ai-teacher-page-body .ai-header-icon-btn svg{
  width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
body.ai-teacher-page-body .ai-header-icon-btn{width:38px;padding:0;display:grid;place-items:center;cursor:default;}
body.ai-teacher-page-body .ai-header-cta{padding:0 16px!important;gap:7px;box-shadow:0 8px 18px rgba(79,70,229,.2)!important;}

/* top summary */
body.ai-teacher-page-body .ai-room-metric-grid{gap:12px;}
body.ai-teacher-page-body .ai-room-metric-card{
  min-height:96px;
  padding:16px 58px 15px 17px;
  border-radius:16px;
  box-shadow:0 5px 18px rgba(15,23,42,.045);
}
body.ai-teacher-page-body .ai-room-metric-label{margin-bottom:8px;font-size:12.8px;font-weight:800;}
body.ai-teacher-page-body .ai-room-metric-card b{font-size:27px;line-height:1;margin:0;}
body.ai-teacher-page-body .ai-room-metric-card small{margin-top:8px;font-size:12.8px;line-height:1.35;}
body.ai-teacher-page-body .ai-room-metric-icon{
  right:15px;bottom:15px;width:43px;height:43px;border-radius:14px;font-size:17px;
}

/* quick feedback */
body.ai-teacher-page-body .ai-room-request-panel{padding:14px 16px 15px;border-radius:18px;}
body.ai-teacher-page-body .ai-room-panel-head{margin-bottom:11px;align-items:center;}
body.ai-teacher-page-body .ai-room-panel-head.inline{margin-bottom:10px;}
body.ai-teacher-page-body .ai-room-panel-head.inline>div{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;}
body.ai-teacher-page-body .ai-room-panel-head.inline h2,
body.ai-teacher-page-body .ai-room-panel-head.compact h2,
body.ai-teacher-page-body .ai-summary-card-head h2{font-size:18px;letter-spacing:-0.02em;}
body.ai-teacher-page-body .ai-room-panel-head p,
body.ai-teacher-page-body .ai-summary-card-head p{margin:0;font-size:12.8px;line-height:1.4;}
body.ai-teacher-page-body .ai-room-request-list.compact-grid{gap:11px;}
body.ai-teacher-page-body .ai-room-request-item.mini-card{
  min-height:74px;
  padding:12px 15px;
  gap:13px;
  border-radius:15px;
  background:linear-gradient(135deg,#fff 0%,#fbfaff 100%);
}
body.ai-teacher-page-body .ai-room-request-item.growth-create{background:linear-gradient(135deg,#fff 0%,#f8fbff 100%);}
body.ai-teacher-page-body .ai-room-request-symbol{width:42px;height:42px;border-radius:13px;font-size:16px;}
body.ai-teacher-page-body .ai-room-request-copy{min-width:0;}
body.ai-teacher-page-body .ai-room-request-copy h3{margin:0 0 4px;font-size:13px;line-height:1.3;}
body.ai-teacher-page-body .ai-room-request-copy p{
  font-size:12.8px;line-height:1.42;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body.ai-teacher-page-body .ai-room-link-btn{
  display:inline-flex;align-items:center;gap:5px;margin-top:5px;font-size:12.8px;line-height:1.2;cursor:pointer;
}
body.ai-teacher-page-body .ai-room-link-btn:disabled{color:#a8afbd;cursor:not-allowed;}

/* file feedback */
body.ai-teacher-page-body .ai-room-file-panel{padding:15px 16px 13px;border-radius:18px;}
body.ai-teacher-page-body .ai-room-panel-head.compact{margin-bottom:10px;}
body.ai-teacher-page-body .ai-room-panel-tools{gap:6px;}
body.ai-teacher-page-body .ai-room-filter-chip,
body.ai-teacher-page-body .ai-room-custom-filter{
  position:relative;
  min-height:31px;height:31px;padding:0 10px;border-radius:9px;font-size:12.8px;font-weight:800;
  border:1px solid #e0e5ee;background:#fff;color:#667085;
}
body.ai-teacher-page-body .ai-room-filter-chip{cursor:pointer;}
body.ai-teacher-page-body .ai-room-filter-chip.active,
body.ai-teacher-page-body .ai-room-custom-filter.active{background:#5b4ef7;color:#fff;border-color:#5b4ef7;box-shadow:0 5px 12px rgba(91,78,247,.18);}
body.ai-teacher-page-body .ai-room-custom-filter{display:inline-flex;align-items:center;gap:5px;overflow:hidden;cursor:pointer;}
body.ai-teacher-page-body .ai-room-custom-filter svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body.ai-teacher-page-body .ai-room-custom-filter select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;}
body.ai-teacher-page-body .ai-room-file-table-head,
body.ai-teacher-page-body .ai-room-file-list .portal-record-item{
  grid-template-columns:minmax(310px,1.75fr) minmax(185px,1.05fr) 76px 66px 78px 108px;
  gap:10px;
}
body.ai-teacher-page-body .ai-room-file-table-head{padding:0 10px 6px;font-size:12.8px;}
body.ai-teacher-page-body .ai-room-file-list{gap:6px;}
body.ai-teacher-page-body .ai-room-file-list .portal-record-item{
  min-height:46px;
  padding:8px 9px;
  border-radius:12px;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
body.ai-teacher-page-body .ai-room-file-list .portal-record-item:hover{border-color:#d6d0ff;box-shadow:0 5px 14px rgba(91,78,247,.06);transform:translateY(-1px);}
body.ai-teacher-page-body .ai-room-file-main{position:relative;min-width:0;padding-left:31px;}
body.ai-teacher-page-body .ai-room-file-main::before{
  content:"";position:absolute;left:0;top:50%;width:22px;height:27px;transform:translateY(-50%);
  border:1.5px solid #b9c8f5;border-radius:5px;background:linear-gradient(180deg,#f4f7ff,#eef3ff);
  box-shadow:inset -5px 0 0 rgba(120,145,235,.08);
}
body.ai-teacher-page-body .ai-room-file-main::after{
  content:"";position:absolute;left:6px;top:50%;width:10px;height:1.5px;background:#91a7ea;box-shadow:0 4px 0 #91a7ea,0 -4px 0 #91a7ea;
}
body.ai-teacher-page-body .ai-room-file-main .portal-record-title{margin-bottom:2px;font-size:12.8px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.ai-teacher-page-body .ai-room-file-main .portal-record-meta{font-size:12.8px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.ai-teacher-page-body .ai-file-summary-label,
body.ai-teacher-page-body .ai-file-metric-label{display:none;}
body.ai-teacher-page-body .ai-file-summary{min-width:0;}
body.ai-teacher-page-body .ai-file-summary-text{font-size:12.8px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.ai-teacher-page-body .ai-file-metric strong{font-size:12.8px;}
body.ai-teacher-page-body .ai-file-metric .portal-badge{min-width:58px;padding:5px 7px;font-size:12.8px;}
body.ai-teacher-page-body .ai-file-action{display:flex;justify-content:flex-end;}
body.ai-teacher-page-body .ai-room-file-list .portal-btn.primary{min-height:31px;height:31px;padding:0 10px;font-size:12.8px;border-radius:8px;}
body.ai-teacher-page-body .ai-room-pagination-wrap{padding-top:8px;}
body.ai-teacher-page-body .ai-room-pagination{gap:5px;}
body.ai-teacher-page-body .ai-room-page-btn{min-width:29px;height:29px;border-radius:8px;font-size:12.8px;}
body.ai-teacher-page-body .ai-room-page-status{font-size:12.8px;margin-left:4px;}

/* lower executive area */
body.ai-teacher-page-body .ai-room-lower-grid{gap:14px;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);align-items:stretch;}
body.ai-teacher-page-body .ai-summary-card,
body.ai-teacher-page-body .ai-report-card{
  min-width:0;
  min-height:278px;
  max-height:290px;
  padding:15px;
  border-radius:18px;
  overflow:hidden;
}
body.ai-teacher-page-body .ai-summary-card-head,
body.ai-teacher-page-body .ai-report-card-head{margin-bottom:10px;align-items:center;}
body.ai-teacher-page-body .ai-summary-open-btn{min-height:32px;height:32px;padding:0 10px!important;border-radius:8px!important;font-size:12.8px!important;}
body.ai-teacher-page-body .ai-summary-card-body{grid-template-columns:132px minmax(0,1fr);gap:10px;margin-bottom:10px;}
body.ai-teacher-page-body .ai-summary-score-box,
body.ai-teacher-page-body .ai-summary-chart-box{min-height:112px;border-radius:14px;padding:12px;}
body.ai-teacher-page-body .ai-summary-label{font-size:12.8px;margin-bottom:7px;}
body.ai-teacher-page-body .ai-summary-score-box strong{font-size:32px;}
body.ai-teacher-page-body .ai-summary-delta{margin-top:7px;font-size:12.8px;}
body.ai-teacher-page-body .ai-summary-score-box small{margin-top:3px;font-size:12.8px;line-height:1.3;}
body.ai-teacher-page-body .ai-summary-chart-title{font-size:12.8px;margin-bottom:2px;}
body.ai-teacher-page-body .ai-summary-trend .ai-trend-top{margin-bottom:2px;}
body.ai-teacher-page-body .ai-summary-trend .ai-trend-top b,
body.ai-teacher-page-body .ai-summary-trend .ai-trend-top span{font-size:12.8px;}
body.ai-teacher-page-body .ai-summary-trend .ai-trend-svg{max-height:74px;}
body.ai-teacher-page-body .ai-summary-trend .ai-trend-foot{font-size:12.8px;}
body.ai-teacher-page-body .ai-summary-kpi-grid{gap:7px;}
body.ai-teacher-page-body .ai-summary-kpi-item{min-width:0;padding:8px 9px;border-radius:11px;}
body.ai-teacher-page-body .ai-summary-kpi-item span{font-size:12.8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.ai-teacher-page-body .ai-summary-kpi-item b{margin-top:4px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.ai-teacher-page-body .ai-summary-kpi-item small{margin-top:3px;font-size:12.8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.ai-teacher-page-body .ai-summary-weekly-slot{display:none;}

body.ai-teacher-page-body .ai-report-tabs{gap:2px;}
body.ai-teacher-page-body .ai-report-tab{min-height:29px;height:29px;padding:0 10px;font-size:12.8px;border-radius:8px;cursor:pointer;}
body.ai-teacher-page-body .ai-report-card-head .portal-chip{min-height:27px;padding:0 8px;font-size:12.8px;}
body.ai-teacher-page-body .ai-report-pane.active{display:block;max-height:230px;overflow:auto;padding-right:2px;}
body.ai-teacher-page-body .ai-report-insight-list{gap:6px;}
body.ai-teacher-page-body .ai-report-insight-item{border-radius:11px;}
body.ai-teacher-page-body .ai-report-insight-summary{min-height:48px;padding:8px 10px;}
body.ai-teacher-page-body .ai-report-insight-main{gap:9px;align-items:center;}
body.ai-teacher-page-body .ai-report-insight-icon{width:29px;height:29px;border-radius:9px;font-size:12.8px;}
body.ai-teacher-page-body .ai-report-insight-main>div:last-child{min-width:0;}
body.ai-teacher-page-body .ai-report-insight-title{font-size:12.8px;}
body.ai-teacher-page-body .ai-report-insight-desc{margin-top:2px;font-size:12.8px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.ai-teacher-page-body .ai-report-insight-link{font-size:12.8px;}
body.ai-teacher-page-body .ai-report-insight-body{max-height:150px;overflow:auto;padding:9px 11px 10px 48px;font-size:12.8px;line-height:1.55;}
body.ai-teacher-page-body .ai-week-analysis-grid{gap:8px;}
body.ai-teacher-page-body .ai-mini-panel{padding:10px;border-radius:12px;}
body.ai-teacher-page-body .ai-mini-panel-head{margin-bottom:7px;}
body.ai-teacher-page-body .ai-mini-panel-head h3{font-size:12.8px;}
body.ai-teacher-page-body .ai-mini-panel-head span{font-size:12.8px;}
body.ai-teacher-page-body .ai-week-bars{min-height:138px;gap:5px;}
body.ai-teacher-page-body .ai-week-track{height:69px;max-width:20px;}
body.ai-teacher-page-body .ai-week-value,
body.ai-teacher-page-body .ai-week-label{font-size:12.8px;}
body.ai-teacher-page-body .ai-error-label{font-size:12.8px;}
body.ai-teacher-page-body .ai-error-track{height:6px;}
body.ai-teacher-page-body .ai-weak-card{padding:9px 10px;margin-bottom:7px;border-radius:10px;}
body.ai-teacher-page-body .ai-weak-tag{font-size:12.8px;padding:3px 7px;margin-bottom:5px;}
body.ai-teacher-page-body .ai-weak-card strong{font-size:12.8px;margin-bottom:3px;}
body.ai-teacher-page-body .ai-weak-card p{font-size:12.8px;line-height:1.4;}
body.ai-teacher-page-body .ai-prescription-list{gap:5px;}
body.ai-teacher-page-body .ai-room-results-controls.compact{margin-bottom:7px;gap:6px;}
body.ai-teacher-page-body .compact-report-list{max-height:196px;overflow:auto;}
body.ai-teacher-page-body .compact-report-list .ai-feedback-latest-panel,
body.ai-teacher-page-body .compact-report-list .ai-feedback-archive-panel{padding:9px;border-radius:11px;}
body.ai-teacher-page-body .compact-report-list .ai-feedback-archive-scroll{max-height:132px;}

/* guide dialog */
body.ai-teacher-page-body .ai-guide-dialog{
  width:min(520px,calc(100vw - 32px));padding:0;border:0;border-radius:20px;background:#fff;color:#172033;box-shadow:0 24px 70px rgba(15,23,42,.28);
}
body.ai-teacher-page-body .ai-guide-dialog::backdrop{background:rgba(15,23,42,.45);backdrop-filter:blur(3px);}
body.ai-teacher-page-body .ai-guide-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px 15px;border-bottom:1px solid #eef1f6;}
body.ai-teacher-page-body .ai-guide-dialog-head span{font-size:12.8px;color:#5b4ef7;font-weight:600;letter-spacing:.12em;}
body.ai-teacher-page-body .ai-guide-dialog-head h2{margin:5px 0 0;font-size:20px;letter-spacing:-0.02em;}
body.ai-teacher-page-body .ai-guide-close{width:32px;height:32px;border:0;border-radius:9px;background:#f4f5f8;color:#667085;font-size:20px;cursor:pointer;}
body.ai-teacher-page-body .ai-guide-steps{list-style:none;margin:0;padding:17px 22px 22px;display:grid;gap:10px;counter-reset:guide;}
body.ai-teacher-page-body .ai-guide-steps li{position:relative;padding:12px 14px 12px 48px;border:1px solid #e8ecf3;border-radius:13px;background:#fbfcfe;counter-increment:guide;}
body.ai-teacher-page-body .ai-guide-steps li::before{content:counter(guide);position:absolute;left:13px;top:12px;width:24px;height:24px;display:grid;place-items:center;border-radius:8px;background:#eeeaff;color:#5b4ef7;font-size:12.8px;font-weight:900;}
body.ai-teacher-page-body .ai-guide-steps b{display:block;font-size:12.8px;margin-bottom:3px;}
body.ai-teacher-page-body .ai-guide-steps span{display:block;color:#667085;font-size:12.8px;line-height:1.45;}

@media (max-width:1280px){
  body.ai-teacher-page-body .ai-room-file-table-head,
  body.ai-teacher-page-body .ai-room-file-list .portal-record-item{grid-template-columns:minmax(260px,1.5fr) minmax(150px,.9fr) 68px 58px 70px 98px;gap:8px;}
  body.ai-teacher-page-body .ai-room-file-main .portal-record-title{font-size:12.8px;}
}
@media (max-width:1080px){
  body.ai-teacher-page-body .ai-room-lower-grid{grid-template-columns:1fr;}
  body.ai-teacher-page-body .ai-summary-card,
  body.ai-teacher-page-body .ai-report-card{max-height:none;}
  body.ai-teacher-page-body .ai-report-pane.active{max-height:320px;}
}
@media (max-width:900px){
  body.ai-teacher-page-body .portal-main{padding:76px 16px 30px!important;}
  body.ai-teacher-page-body .ai-room-header{flex-direction:column;}
  body.ai-teacher-page-body .ai-room-header-actions{width:100%;justify-content:flex-start;flex-wrap:wrap;}
  body.ai-teacher-page-body .ai-room-metric-grid,
  body.ai-teacher-page-body .ai-room-request-list.compact-grid{grid-template-columns:1fr 1fr;}
  body.ai-teacher-page-body .ai-room-file-table-head{display:none;}
  body.ai-teacher-page-body .ai-room-file-list .portal-record-item{grid-template-columns:1fr 1fr;gap:8px;}
  body.ai-teacher-page-body .ai-file-action{justify-content:flex-start;}
}
@media (max-width:620px){
  body.ai-teacher-page-body .ai-room-metric-grid,
  body.ai-teacher-page-body .ai-room-request-list.compact-grid{grid-template-columns:1fr;}
  body.ai-teacher-page-body .ai-room-panel-head.compact{align-items:flex-start;flex-direction:column;}
  body.ai-teacher-page-body .ai-room-file-list .portal-record-item{grid-template-columns:1fr;}
  body.ai-teacher-page-body .ai-summary-card-body{grid-template-columns:1fr;}
  body.ai-teacher-page-body .ai-summary-kpi-grid{grid-template-columns:1fr 1fr;}
  body.ai-teacher-page-body .ai-summary-card,
  body.ai-teacher-page-body .ai-report-card{max-height:none;}
}

body.ai-teacher-page-body #aiTeacherWeeklyPrescription .ai-prescription-lead{
  display:flex;gap:8px;align-items:flex-start;padding:8px 9px;border:1px solid #eceff5;border-radius:10px;background:#fbfcff;
}
body.ai-teacher-page-body #aiTeacherWeeklyPrescription .ai-prescription-mark{
  flex:0 0 auto;width:20px;height:20px;display:grid;place-items:center;border-radius:7px;background:#eeeaff;color:#5b4ef7;font-size:12px;font-weight:900;
}
body.ai-teacher-page-body #aiTeacherWeeklyPrescription .ai-prescription-lead strong{display:block;font-size:12.8px;color:#172033;margin-bottom:2px;}
body.ai-teacher-page-body #aiTeacherWeeklyPrescription .ai-prescription-lead p{margin:0;color:#667085;font-size:12.8px;line-height:1.4;}
body.ai-teacher-page-body #aiTeacherWeeklyPrescription > ul.ai-prescription-list{
  list-style:none;margin:0;padding:0;display:grid;gap:4px;
}
body.ai-teacher-page-body #aiTeacherWeeklyPrescription > ul.ai-prescription-list li{
  display:flex;gap:7px;align-items:flex-start;color:#556176;font-size:12.8px;line-height:1.4;
}
body.ai-teacher-page-body #aiTeacherWeeklyPrescription > ul.ai-prescription-list li b{
  flex:0 0 auto;width:17px;height:17px;display:grid;place-items:center;border-radius:6px;background:#f1f3f7;color:#667085;font-size:12px;
}

body.ai-teacher-page-body .ai-room-metric-icon svg,
body.ai-teacher-page-body .ai-room-request-symbol svg{
  width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
body.ai-teacher-page-body .ai-room-request-symbol svg{width:20px;height:20px;}
body.ai-teacher-page-body .ai-report-card-head{
  padding-bottom:8px;
  border-bottom:1px solid #eef1f6;
}
body.ai-teacher-page-body .ai-report-insight-item:first-child{
  border-color:#d7d0ff;
  background:linear-gradient(135deg,#fff 0%,#fbfaff 100%);
}
body.ai-teacher-page-body .ai-report-insight-item:first-child .ai-report-insight-icon{
  background:linear-gradient(135deg,#cfc7ff,#a99dfc);
  color:#fff;
}

/* ========================================================================
   AI 선생님 피드백방 가독성 보정 v5
   - 이 페이지 내부 글자 크기 최소 12px 보장
   - 작은 메타/표/버튼/리포트 글자 계층 재정리
   ======================================================================== */
body.ai-teacher-page-body .ai-room-eyebrow,
body.ai-teacher-page-body .ai-room-metric-label,
body.ai-teacher-page-body .ai-room-metric-card small,
body.ai-teacher-page-body .ai-room-panel-head p,
body.ai-teacher-page-body .ai-summary-card-head p,
body.ai-teacher-page-body .ai-room-file-table-head,
body.ai-teacher-page-body .ai-file-summary-label,
body.ai-teacher-page-body .ai-file-metric-label,
body.ai-teacher-page-body .ai-room-page-status,
body.ai-teacher-page-body .ai-summary-label,
body.ai-teacher-page-body .ai-summary-score-box small,
body.ai-teacher-page-body .ai-summary-chart-title,
body.ai-teacher-page-body .ai-summary-trend .ai-trend-top b,
body.ai-teacher-page-body .ai-summary-trend .ai-trend-top span,
body.ai-teacher-page-body .ai-summary-trend .ai-trend-foot,
body.ai-teacher-page-body .ai-summary-kpi-item span,
body.ai-teacher-page-body .ai-summary-kpi-item small,
body.ai-teacher-page-body .ai-report-card-head .portal-chip,
body.ai-teacher-page-body .ai-mini-panel-head span,
body.ai-teacher-page-body .ai-week-value,
body.ai-teacher-page-body .ai-week-label,
body.ai-teacher-page-body .ai-error-label,
body.ai-teacher-page-body .ai-weak-tag,
body.ai-teacher-page-body #aiTeacherWeeklyPrescription .ai-prescription-mark,
body.ai-teacher-page-body #aiTeacherWeeklyPrescription .ai-prescription-lead p,
body.ai-teacher-page-body #aiTeacherWeeklyPrescription > ul.ai-prescription-list li,
body.ai-teacher-page-body #aiTeacherWeeklyPrescription > ul.ai-prescription-list li b{
  font-size:12.8px!important;
}
body.ai-teacher-page-body .ai-room-title-block>p:last-child,
body.ai-teacher-page-body .ai-room-request-copy p,
body.ai-teacher-page-body .ai-room-link-btn,
body.ai-teacher-page-body .ai-room-filter-chip,
body.ai-teacher-page-body .ai-room-custom-filter,
body.ai-teacher-page-body .ai-room-file-main .portal-record-meta,
body.ai-teacher-page-body .ai-file-summary-text,
body.ai-teacher-page-body .ai-file-metric strong,
body.ai-teacher-page-body .ai-file-metric .portal-badge,
body.ai-teacher-page-body .ai-room-page-btn,
body.ai-teacher-page-body .ai-summary-delta,
body.ai-teacher-page-body .ai-report-tab,
body.ai-teacher-page-body .ai-report-insight-desc,
body.ai-teacher-page-body .ai-report-insight-link,
body.ai-teacher-page-body .ai-report-insight-body,
body.ai-teacher-page-body .ai-mini-panel-head h3,
body.ai-teacher-page-body .ai-weak-card p,
body.ai-teacher-page-body #aiTeacherWeeklyPrescription .ai-prescription-lead strong{
  font-size:13px!important;
}
body.ai-teacher-page-body .ai-header-guide-btn,
body.ai-teacher-page-body .ai-header-icon-btn,
body.ai-teacher-page-body .ai-header-cta,
body.ai-teacher-page-body .ai-room-request-copy h3,
body.ai-teacher-page-body .ai-room-file-main .portal-record-title,
body.ai-teacher-page-body .ai-room-file-list .portal-btn.primary,
body.ai-teacher-page-body .ai-report-insight-title,
body.ai-teacher-page-body .ai-weak-card strong,
body.ai-teacher-page-body .ai-guide-steps b,
body.ai-teacher-page-body .ai-guide-steps span{
  font-size:14px!important;
}
body.ai-teacher-page-body .ai-summary-kpi-item b{
  font-size:16px!important;
}
body.ai-teacher-page-body .ai-room-panel-head.inline h2,
body.ai-teacher-page-body .ai-room-panel-head.compact h2,
body.ai-teacher-page-body .ai-summary-card-head h2{
  font-size:20px!important;
}
body.ai-teacher-page-body .ai-room-file-list .portal-record-item{
  min-height:58px;
}
body.ai-teacher-page-body .ai-room-file-main .portal-record-title,
body.ai-teacher-page-body .ai-room-file-main .portal-record-meta,
body.ai-teacher-page-body .ai-file-summary-text{
  line-height:1.45;
}
body.ai-teacher-page-body .ai-room-file-list .portal-btn.primary{
  min-height:40px;
  height:40px;
  padding:0 15px;
  border-radius:10px;
}
body.ai-teacher-page-body .ai-room-page-btn{
  min-width:34px;
  height:34px;
}
body.ai-teacher-page-body .ai-report-insight-summary{
  min-height:58px;
}
body.ai-teacher-page-body .ai-report-insight-body{
  line-height:1.65;
}


/* ========================================================================
   AI 선생님 피드백방 파일별 피드백 동선 보정 v7
   - 피드백 받기 옆에 피드백 보기 버튼 노출
   - 이미 생성된 기록은 재생성 금지: 피드백 완료 상태 고정
   - 피드백 내용은 큰 모달에서 확인
   ======================================================================== */
body.ai-teacher-page-body .ai-room-file-table-head,
body.ai-teacher-page-body .ai-room-file-list .portal-record-item{
  grid-template-columns:minmax(300px,1.55fr) minmax(175px,.9fr) 82px 68px 82px minmax(200px,.88fr)!important;
  gap:10px!important;
}
body.ai-teacher-page-body .ai-file-action{
  display:flex!important;
  align-items:center;
  justify-content:flex-end!important;
  gap:7px;
  min-width:0;
}
body.ai-teacher-page-body .ai-room-file-list .ai-file-action .portal-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  min-height:40px;
  padding:0 13px;
  border-radius:10px;
  font-family:var(--sorizava-font-sans,"Apple SD Gothic Neo",Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif);
  font-size:14px!important;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
  letter-spacing:-0.02em;
}
body.ai-teacher-page-body .ai-room-file-list .ai-file-action .portal-btn.primary.ai-feedback-create-btn{
  min-width:96px;
}
body.ai-teacher-page-body .ai-room-file-list .ai-file-action .portal-btn.secondary.ai-feedback-view-btn{
  min-width:96px;
  border:1px solid #d8d2ff;
  background:#fff;
  color:#5b4ef7;
  box-shadow:none;
}
body.ai-teacher-page-body .ai-room-file-list .ai-file-action .portal-btn.secondary.ai-feedback-view-btn:not(:disabled):hover{
  background:#f7f5ff;
  border-color:#9f93ff;
  box-shadow:0 8px 18px rgba(91,78,247,.13);
  transform:translateY(-1px);
}
body.ai-teacher-page-body .ai-room-file-list .ai-file-action .portal-btn:disabled,
body.ai-teacher-page-body .ai-room-file-list .ai-file-action .portal-btn[aria-disabled="true"]{
  cursor:not-allowed;
  transform:none!important;
}
body.ai-teacher-page-body .ai-room-file-list .ai-file-action .portal-btn.primary.ai-feedback-create-btn.is-complete{
  border:1px solid #d7dce8;
  background:#eef2f8;
  color:#667085;
  box-shadow:none;
}
body.ai-teacher-page-body .ai-room-file-list .ai-file-action .portal-btn.secondary.ai-feedback-view-btn:disabled{
  border-color:#e6eaf2;
  background:#f8fafc;
  color:#b4bdcc;
}
body.ai-teacher-page-body .ai-room-file-list .portal-record-item.has-ai-feedback{
  border-color:#dcd7ff;
  background:linear-gradient(135deg,#fff 0%,#fbfaff 100%);
}
body.ai-teacher-page-body .ai-room-file-list .portal-record-item.has-ai-feedback .ai-room-file-main::before{
  border-color:#a99dfc;
  background:linear-gradient(180deg,#f4f1ff,#eeebff);
}

body.ai-teacher-page-body .ai-feedback-viewer-dialog{
  width:min(980px,calc(100vw - 44px));
  max-width:980px;
  max-height:88vh;
  padding:0;
  border:0;
  border-radius:24px;
  background:#fff;
  color:#111827;
  box-shadow:0 28px 90px rgba(15,23,42,.32);
  overflow:hidden;
  font-family:var(--sorizava-font-sans,"Apple SD Gothic Neo",Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif);
}
body.ai-teacher-page-body .ai-feedback-viewer-dialog::backdrop{
  background:rgba(15,23,42,.52);
  backdrop-filter:blur(5px);
}
body.ai-teacher-page-body .ai-feedback-viewer-shell{
  display:flex;
  flex-direction:column;
  max-height:88vh;
  min-height:min(620px,88vh);
}
body.ai-teacher-page-body .ai-feedback-viewer-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:26px 30px 20px;
  border-bottom:1px solid #eef1f6;
  background:linear-gradient(135deg,#fff 0%,#f8f6ff 100%);
}
body.ai-teacher-page-body .ai-feedback-viewer-kind{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#eeeaff;
  color:#5b4ef7;
  font-size:13px;
  font-weight:900;
  letter-spacing:-0.02em;
}
body.ai-teacher-page-body .ai-feedback-viewer-head h2{
  margin:12px 0 7px;
  font-size:26px;
  line-height:1.25;
  font-weight:900;
  letter-spacing:-0.02em;
  color:#111827;
}
body.ai-teacher-page-body .ai-feedback-viewer-head p{
  margin:0;
  color:#667085;
  font-size:14px;
  line-height:1.5;
  font-weight:600;
}
body.ai-teacher-page-body .ai-feedback-viewer-close{
  flex:0 0 auto;
  width:42px;
  height:42px;
  border:1px solid #e1e7f1;
  border-radius:14px;
  background:#fff;
  color:#475467;
  font-size:26px;
  line-height:1;
  font-weight:700;
  cursor:pointer;
}
body.ai-teacher-page-body .ai-feedback-viewer-close:hover{
  background:#f7f5ff;
  border-color:#d8d2ff;
  color:#5b4ef7;
}
body.ai-teacher-page-body .ai-feedback-viewer-body{
  flex:1 1 auto;
  overflow:auto;
  padding:28px 34px;
  background:#fff;
  font-size:16px;
  line-height:1.82;
  color:#253047;
  white-space:normal;
}
body.ai-teacher-page-body .ai-feedback-viewer-body p{
  margin:0 0 18px;
  padding:0 0 18px;
  border-bottom:1px solid #f0f2f7;
}
body.ai-teacher-page-body .ai-feedback-viewer-body p:last-child{
  margin-bottom:0;
  padding-bottom:0;
  border-bottom:0;
}
body.ai-teacher-page-body .ai-feedback-viewer-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 30px;
  border-top:1px solid #eef1f6;
  background:#fbfcff;
}
body.ai-teacher-page-body .ai-feedback-viewer-foot span{
  color:#667085;
  font-size:14px;
  font-weight:700;
}
body.ai-teacher-page-body .ai-feedback-viewer-foot .portal-btn{
  min-height:42px;
  padding:0 22px;
  border-radius:12px;
  font-size:15px;
  font-weight:900;
}

@media (max-width:1280px){
  body.ai-teacher-page-body .ai-room-file-table-head,
  body.ai-teacher-page-body .ai-room-file-list .portal-record-item{
    grid-template-columns:minmax(260px,1.35fr) minmax(140px,.72fr) 70px 56px 70px minmax(184px,.82fr)!important;
    gap:8px!important;
  }
  body.ai-teacher-page-body .ai-room-file-list .ai-file-action .portal-btn{
    min-width:auto;
    padding:0 10px;
    font-size:13px!important;
  }
}
@media (max-width:900px){
  body.ai-teacher-page-body .ai-file-action{
    justify-content:flex-start!important;
    flex-wrap:wrap;
  }
  body.ai-teacher-page-body .ai-feedback-viewer-dialog{
    width:calc(100vw - 24px);
    max-height:90vh;
    border-radius:18px;
  }
  body.ai-teacher-page-body .ai-feedback-viewer-shell{min-height:min(560px,90vh);max-height:90vh;}
  body.ai-teacher-page-body .ai-feedback-viewer-head{padding:22px 20px 16px;}
  body.ai-teacher-page-body .ai-feedback-viewer-head h2{font-size:22px;}
  body.ai-teacher-page-body .ai-feedback-viewer-body{padding:22px 20px;font-size:15px;line-height:1.75;}
  body.ai-teacher-page-body .ai-feedback-viewer-foot{padding:15px 20px;flex-direction:column;align-items:stretch;}
}

/* AI 피드백 모달 구조화 보기 v3 */
body.ai-teacher-page-body .ai-feedback-viewer-body .ai-feedback-structured{gap:16px;}
body.ai-teacher-page-body .ai-feedback-viewer-body .ai-feedback-headline{font-size:17px;}
body.ai-teacher-page-body .ai-feedback-viewer-body .ai-feedback-overview-item{padding:14px 15px;}
body.ai-teacher-page-body .ai-feedback-viewer-body .ai-feedback-overview-item span{font-size:13px;}
body.ai-teacher-page-body .ai-feedback-viewer-body .ai-feedback-overview-item strong{font-size:15px;}
body.ai-teacher-page-body .ai-feedback-viewer-body .ai-feedback-section{padding:17px 18px;}
body.ai-teacher-page-body .ai-feedback-viewer-body .ai-feedback-section h3{font-size:16px!important;}
body.ai-teacher-page-body .ai-feedback-viewer-body .ai-feedback-section li{font-size:15px;line-height:1.72;}
body.ai-teacher-page-body .ai-feedback-viewer-body .ai-feedback-next-goal strong{font-size:15px;}

/* ========================================================================
   AI 선생님 피드백방 — 제공 시안 일치형 UI v6
   이 파일의 마지막 규칙으로 이 페이지에만 적용한다.
   ======================================================================== */
body.ai-teacher-page-body{
  --ai-purple:#5a3ff1;
  --ai-purple-dark:#4b32dd;
  --ai-purple-soft:#f0edff;
  --ai-border:#e7eaf2;
  --ai-text:#172033;
  --ai-muted:#7e889c;
  --ai-bg:#f6f7fb;
  background:var(--ai-bg)!important;
  color:var(--ai-text);
  font-family:var(--sorizava-font-sans,"Apple SD Gothic Neo",Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif);
}
body.ai-teacher-page-body #app-wrapper{display:flex!important;min-height:100vh;background:var(--ai-bg);}
body.ai-teacher-page-body .portal-main{
  flex:1!important;
  min-width:0!important;
  padding:18px 28px 34px!important;
  background:
    radial-gradient(circle at 88% 0%,rgba(91,78,247,.06),transparent 23%),
    linear-gradient(180deg,#f8f9fc 0%,#f5f7fb 100%)!important;
}
body.ai-teacher-page-body .ai-teacher-room-page{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  gap:11px!important;
}

/* shared sidebar: unified-sidebar.css 사용 */
/* header */
body.ai-teacher-page-body .ai-room-header{min-height:54px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0!important;}
body.ai-teacher-page-body .ai-room-title-block h1{margin:0 0 6px!important;color:#151c2b!important;font-size:27px!important;line-height:1.12!important;font-weight:800!important;letter-spacing:-0.02em!important;}
body.ai-teacher-page-body .ai-room-title-block p{margin:0!important;color:#7c8698!important;font-size:14px!important;font-weight:600!important;line-height:1.45!important;}
body.ai-teacher-page-body .ai-room-header-actions{display:flex;align-items:center;gap:10px;padding-top:1px!important;}
body.ai-teacher-page-body .ai-header-guide-btn,
body.ai-teacher-page-body .ai-header-cta{height:39px!important;min-height:39px!important;border-radius:10px!important;font-size:14px!important;font-weight:800!important;}
body.ai-teacher-page-body .ai-header-guide-btn{padding:0 15px!important;border:1px solid #e2e5ec!important;background:#fff!important;color:#303747!important;gap:8px!important;}
body.ai-teacher-page-body .ai-header-guide-btn svg{width:16px!important;height:16px!important;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body.ai-teacher-page-body .ai-header-cta{padding:0 17px!important;background:linear-gradient(135deg,#6749f4,#4c32e1)!important;border-color:transparent!important;color:#fff!important;box-shadow:0 8px 18px rgba(75,50,221,.22)!important;}

/* top period tabs */
body.ai-teacher-page-body .ai-period-tabs{display:flex;align-items:center;gap:6px;margin-top:-1px;}
body.ai-teacher-page-body .ai-period-tab{height:29px;padding:0 18px;border:1px solid #e4e6ee;border-radius:8px;background:#fff;color:#4f596c;font-size:13px;font-weight:800;box-shadow:0 2px 6px rgba(15,23,42,.03);}
body.ai-teacher-page-body .ai-period-tab.active{background:linear-gradient(135deg,#6849f5,#5035e4);border-color:transparent;color:#fff;box-shadow:0 7px 14px rgba(80,53,228,.22);}

/* shared card */
body.ai-teacher-page-body .ai-reference-card{
  border:1px solid var(--ai-border)!important;
  border-radius:11px!important;
  background:rgba(255,255,255,.97)!important;
  box-shadow:0 6px 18px rgba(28,38,58,.035)!important;
}
body.ai-teacher-page-body .ai-reference-card h2{margin:0;color:#1b2232;font-size:16px;font-weight:700;letter-spacing:-0.02em;}
body.ai-teacher-page-body .ai-reference-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 3px 8px;}
body.ai-teacher-page-body .ai-reference-section-head p{display:none;margin:3px 0 0;color:#8c95a7;font-size:13px;}

/* daily coaching */
body.ai-teacher-page-body .ai-daily-coaching-card{padding:10px 18px 9px!important;}
body.ai-teacher-page-body .ai-daily-coaching-card>h2{margin-bottom:7px;}
body.ai-teacher-page-body .ai-daily-coaching-grid{display:grid;grid-template-columns:minmax(430px,.95fr) minmax(420px,1.05fr);gap:26px;align-items:stretch;}
body.ai-teacher-page-body .ai-daily-coaching-left{display:grid;gap:8px;}
body.ai-teacher-page-body .ai-coach-stat-strip{min-height:54px;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;border:1px solid #e9ebf2;border-radius:9px;background:#fff;overflow:hidden;gap:0!important;}
body.ai-teacher-page-body .ai-coach-stat{position:relative;padding:10px 13px 9px 50px;display:flex;flex-direction:column;justify-content:center;}
body.ai-teacher-page-body .ai-coach-stat+.ai-coach-stat{border-left:1px solid #eceef4;}
body.ai-teacher-page-body .ai-coach-stat::before{content:"";position:absolute;left:15px;top:50%;width:26px;height:26px;transform:translateY(-50%);border-radius:8px;background:linear-gradient(135deg,#f2efff,#fbfaff);box-shadow:inset 0 0 0 1px #eeeafe;}
body.ai-teacher-page-body .ai-coach-stat:nth-child(1)::after{content:"▣";}
body.ai-teacher-page-body .ai-coach-stat:nth-child(2)::after{content:"◎";}
body.ai-teacher-page-body .ai-coach-stat:nth-child(3)::after{content:"⚑";}
body.ai-teacher-page-body .ai-coach-stat::after{position:absolute;left:21px;top:50%;transform:translateY(-50%);color:#654af0;font-size:16px;font-weight:900;}
body.ai-teacher-page-body .ai-coach-stat span{color:#8c95a8;font-size:12.8px;font-weight:700;line-height:1.2;}
body.ai-teacher-page-body .ai-coach-stat b{margin-top:2px;color:#202737;font-size:18px;font-weight:900;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.ai-teacher-page-body .ai-feedback-ready-banner{min-height:70px;padding:8px 18px;display:grid;grid-template-columns:60px minmax(0,1fr);align-items:center;gap:13px;border:1px solid #e5eee9;border-radius:9px;background:linear-gradient(110deg,#f2fbf6 0%,#fbfbff 74%,#f5f2ff 100%);}
body.ai-teacher-page-body .ai-ready-avatar{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#dff5e8 38%,#eefaf3 39% 62%,#e0f4e8 63%);overflow:hidden;}
body.ai-teacher-page-body .ai-ready-avatar img{width:47px;height:47px;object-fit:contain;}
body.ai-teacher-page-body .ai-ready-copy{display:grid;grid-template-columns:minmax(0,1fr) 245px;column-gap:14px;align-items:center;}
body.ai-teacher-page-body .ai-ready-copy strong{grid-column:1;color:#1e2535;font-size:17px;font-weight:900;line-height:1.25;}
body.ai-teacher-page-body .ai-ready-copy p{grid-column:1;margin:3px 0 0;color:#8891a3;font-size:12.8px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.ai-teacher-page-body .ai-ready-button{grid-column:2;grid-row:1 / span 2;height:30px!important;min-height:30px!important;border-radius:7px!important;font-size:13px!important;font-weight:900!important;justify-content:center!important;}
body.ai-teacher-page-body .ai-coach-summary-list{min-height:132px;border:1px solid #e9ebf2;border-radius:9px;background:#fff;overflow:hidden;}
body.ai-teacher-page-body .ai-coach-summary-row{min-height:43px;padding:7px 15px;display:grid;grid-template-columns:26px 72px minmax(0,1fr);gap:10px;align-items:center;}
body.ai-teacher-page-body .ai-coach-summary-row+.ai-coach-summary-row{border-top:1px solid #eceef4;}
body.ai-teacher-page-body .ai-coach-summary-icon{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;font-size:15px;font-weight:900;}
body.ai-teacher-page-body .ai-coach-summary-row.good .ai-coach-summary-icon{background:#eaf9f0;color:#16a365;}
body.ai-teacher-page-body .ai-coach-summary-row.bad .ai-coach-summary-icon{background:#fff1e9;color:#ef6b2f;}
body.ai-teacher-page-body .ai-coach-summary-row.task .ai-coach-summary-icon{background:#f0edff;color:#654af0;}
body.ai-teacher-page-body .ai-coach-summary-row b{font-size:13px;color:#343b4b;white-space:nowrap;}
body.ai-teacher-page-body .ai-coach-summary-row ul{margin:0;padding-left:14px;color:#5f697b;font-size:12.8px;line-height:1.65;display:grid;grid-template-columns:1fr;}
body.ai-teacher-page-body .ai-coach-summary-row li{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

/* file table */
body.ai-teacher-page-body .ai-room-file-panel{padding:10px 18px 8px!important;}
body.ai-teacher-page-body .ai-room-panel-tools{display:flex;gap:5px;align-items:center;}
body.ai-teacher-page-body .ai-room-filter-chip,
body.ai-teacher-page-body .ai-room-custom-filter{height:26px!important;min-height:26px!important;padding:0 9px!important;border:1px solid #e3e6ee!important;border-radius:7px!important;background:#fff!important;color:#697386!important;font-size:12.8px!important;font-weight:800!important;box-shadow:none!important;}
body.ai-teacher-page-body .ai-room-filter-chip.active,
body.ai-teacher-page-body .ai-room-custom-filter.active{background:#5a3ff1!important;border-color:#5a3ff1!important;color:#fff!important;}
body.ai-teacher-page-body .ai-room-custom-filter{position:relative;display:inline-flex;align-items:center;overflow:hidden;}
body.ai-teacher-page-body .ai-room-custom-filter select{position:absolute;inset:0;opacity:0;cursor:pointer;}
body.ai-teacher-page-body .ai-room-file-table-head,
body.ai-teacher-page-body .ai-room-file-list .portal-record-item{
  display:grid!important;
  grid-template-columns:minmax(260px,1.8fr) 130px 85px 90px minmax(190px,1.35fr) 100px 150px!important;
  gap:8px!important;
  align-items:center!important;
}
body.ai-teacher-page-body .ai-room-file-table-head{height:25px;padding:0 11px!important;color:#939bad!important;font-size:12.8px!important;font-weight:800!important;text-align:center;}
body.ai-teacher-page-body .ai-room-file-table-head span:first-child{text-align:left;}
body.ai-teacher-page-body .ai-room-file-list{display:grid!important;gap:0!important;border-top:1px solid #eceef4;}
body.ai-teacher-page-body .ai-room-file-list .portal-record-item{min-height:38px!important;padding:4px 10px!important;border:0!important;border-bottom:1px solid #eceef4!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;transform:none!important;}
body.ai-teacher-page-body .ai-room-file-list .portal-record-item:hover{background:#fbfbfe!important;}
body.ai-teacher-page-body .ai-room-file-main{position:relative;min-width:0;padding-left:30px!important;}
body.ai-teacher-page-body .ai-room-file-main::before{content:"▧"!important;position:absolute!important;left:3px!important;top:50%!important;transform:translateY(-50%)!important;width:20px!important;height:20px!important;border-radius:5px!important;display:grid!important;place-items:center!important;background:#f3f6fb!important;border:1px solid #dfe5ef!important;color:#8590a5!important;font-size:14px!important;box-shadow:none!important;}
body.ai-teacher-page-body .ai-room-file-main::after{display:none!important;}
body.ai-teacher-page-body .ai-room-file-main .portal-record-title{margin:0!important;color:#283043!important;font-size:13px!important;font-weight:600!important;line-height:1.25!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.ai-teacher-page-body .ai-file-date{color:#7e889b;font-size:12.8px;text-align:center;white-space:nowrap;}
body.ai-teacher-page-body .ai-file-type{display:flex;justify-content:center;}
body.ai-teacher-page-body .ai-file-type-chip{min-width:38px;padding:3px 8px;border-radius:999px;background:#eeeaff;color:#674af2;font-size:12.8px;font-weight:900;text-align:center;}
body.ai-teacher-page-body .ai-file-type-chip.editorial{background:#eaf4ff;color:#3380dd;}
body.ai-teacher-page-body .ai-room-file-score{display:flex;justify-content:center!important;}
body.ai-teacher-page-body .ai-file-metric .portal-badge{min-width:50px!important;padding:3px 8px!important;border-radius:999px!important;font-size:12.8px!important;font-weight:900!important;}
body.ai-teacher-page-body .ai-file-error-summary{color:#6f798d;font-size:12.8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;}
body.ai-teacher-page-body .ai-file-status{display:flex;justify-content:center;}
body.ai-teacher-page-body .ai-file-status-chip{min-width:60px;padding:3px 9px;border-radius:999px;background:#f1f2f6;color:#858ea0;font-size:12.8px;font-weight:900;text-align:center;}
body.ai-teacher-page-body .ai-file-status-chip.complete{background:#e9faf1;color:#25a66a;}
body.ai-teacher-page-body .ai-file-action{display:flex!important;justify-content:flex-end!important;gap:5px!important;}
body.ai-teacher-page-body .ai-room-file-list .portal-btn{height:25px!important;min-height:25px!important;padding:0 11px!important;border-radius:6px!important;font-size:12.8px!important;font-weight:900!important;white-space:nowrap!important;}
body.ai-teacher-page-body .ai-room-file-list .portal-btn.secondary{background:#fff!important;border:1px solid #b9adff!important;color:#5a3ff1!important;}
body.ai-teacher-page-body .ai-room-file-list .portal-btn.primary{background:linear-gradient(135deg,#6548f3,#4f35e4)!important;color:#fff!important;border:0!important;}
body.ai-teacher-page-body .ai-room-pagination-wrap{padding-top:6px!important;}
body.ai-teacher-page-body .ai-room-page-btn{min-width:26px!important;height:26px!important;border-radius:7px!important;font-size:12.8px!important;}
body.ai-teacher-page-body .ai-room-page-status{font-size:12.8px!important;}

/* weekly card */
body.ai-teacher-page-body .ai-weekly-summary-card{padding:10px 18px 8px!important;}
body.ai-teacher-page-body .ai-weekly-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:7px;}
body.ai-teacher-page-body .ai-weekly-summary-head p{margin:3px 0 0;color:#8b94a6;font-size:12.8px;}
body.ai-teacher-page-body .ai-weekly-feedback-button{height:26px!important;min-height:26px!important;padding:0 10px!important;border-radius:7px!important;font-size:12.8px!important;}
body.ai-teacher-page-body .ai-weekly-summary-grid{display:grid;grid-template-columns:190px minmax(360px,1.1fr) minmax(470px,1.25fr);gap:14px;align-items:stretch;}
body.ai-teacher-page-body .ai-weekly-score-panel{min-height:145px;padding:10px 10px 5px 2px;border-right:1px solid #eaecf2;display:flex;flex-direction:column;justify-content:center;}
body.ai-teacher-page-body .ai-weekly-score-panel .ai-summary-label{color:#5f697b;font-size:12.8px;font-weight:800;}
body.ai-teacher-page-body .ai-weekly-score-panel>strong{margin-top:7px;color:#161d2d;font-size:40px;font-weight:900;line-height:1;letter-spacing:-0.02em;}
body.ai-teacher-page-body .ai-summary-delta{margin-top:6px!important;font-size:13px!important;font-weight:900!important;}
body.ai-teacher-page-body .ai-summary-delta.up{color:#43b72f!important;}
body.ai-teacher-page-body .ai-summary-delta.down{color:#e05952!important;}
body.ai-teacher-page-body .ai-weekly-score-panel small{margin-top:3px;color:#9aa1b1;font-size:12.8px;line-height:1.35;}
body.ai-teacher-page-body .ai-pass-line{margin-top:auto;color:#727d91;font-size:12.8px;font-weight:800;}
body.ai-teacher-page-body .ai-weekly-chart-panel{min-width:0;padding:5px 7px;}
body.ai-teacher-page-body .ai-summary-chart-title{margin-bottom:4px;color:#545e71;font-size:12.8px!important;font-weight:800!important;}
body.ai-teacher-page-body .ai-summary-trend .ai-trend-top{margin-bottom:0!important;}
body.ai-teacher-page-body .ai-summary-trend .ai-trend-top b,
body.ai-teacher-page-body .ai-summary-trend .ai-trend-top span{font-size:12.8px!important;}
body.ai-teacher-page-body .ai-summary-trend .ai-trend-svg{height:105px!important;width:100%!important;}
body.ai-teacher-page-body .ai-summary-trend .ai-trend-foot{font-size:12.8px!important;}
body.ai-teacher-page-body .ai-weekly-detail-panel{display:grid;gap:6px;}
body.ai-teacher-page-body .ai-summary-kpi-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;}
body.ai-teacher-page-body .ai-summary-kpi-item{position:relative;min-height:57px;padding:8px 7px 7px 37px!important;border:1px solid #e7eaf1!important;border-radius:8px!important;background:#fff!important;}
body.ai-teacher-page-body .ai-summary-kpi-item::before{content:"";position:absolute;left:8px;top:9px;width:22px;height:22px;border-radius:7px;background:#eef6ff;}
body.ai-teacher-page-body .ai-summary-kpi-item:nth-child(1)::before{background:#e9faf1;}
body.ai-teacher-page-body .ai-summary-kpi-item:nth-child(3)::before{background:#fff1ea;}
body.ai-teacher-page-body .ai-summary-kpi-item:nth-child(4)::before{background:#f0edff;}
body.ai-teacher-page-body .ai-summary-kpi-item span{color:#687286;font-size:12.8px!important;font-weight:800!important;white-space:nowrap;}
body.ai-teacher-page-body .ai-summary-kpi-item b{margin-top:3px!important;color:#1a2131;font-size:18px!important;font-weight:900!important;line-height:1!important;white-space:nowrap;}
body.ai-teacher-page-body .ai-summary-kpi-item small{margin-top:3px!important;color:#9aa1b1!important;font-size:12.8px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.ai-teacher-page-body .ai-weekly-insight-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;}
body.ai-teacher-page-body .ai-weekly-insight-card{min-height:42px;padding:7px 9px 6px 34px;border:1px solid #e7eaf1;border-radius:8px;background:#fff;position:relative;overflow:hidden;}
body.ai-teacher-page-body .ai-weekly-insight-card::before{position:absolute;left:9px;top:8px;width:18px;height:18px;border-radius:6px;display:grid;place-items:center;font-size:12px;font-weight:900;}
body.ai-teacher-page-body .ai-weekly-insight-card.good{background:#f2fbf6;border-color:#dcefe4;}
body.ai-teacher-page-body .ai-weekly-insight-card.good::before{content:"✓";background:#e1f6e9;color:#18a260;}
body.ai-teacher-page-body .ai-weekly-insight-card.bad{background:#fff7f2;border-color:#f4e2d8;}
body.ai-teacher-page-body .ai-weekly-insight-card.bad::before{content:"!";background:#ffebe1;color:#ee7136;}
body.ai-teacher-page-body .ai-weekly-insight-card.solve{background:#f4f8ff;border-color:#dfe8f8;}
body.ai-teacher-page-body .ai-weekly-insight-card.solve::before{content:"↔";background:#e8f1ff;color:#3b79d9;}
body.ai-teacher-page-body .ai-weekly-insight-card.next{background:#f7f4ff;border-color:#e7def8;}
body.ai-teacher-page-body .ai-weekly-insight-card.next::before{content:"→";background:#eee8ff;color:#694cf0;}
body.ai-teacher-page-body .ai-weekly-insight-card b{display:block;margin-bottom:2px;color:#4c566a;font-size:12.8px;}
body.ai-teacher-page-body .ai-weekly-insight-card p{margin:0;color:#6f798c;font-size:12.8px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}

/* archive */
body.ai-teacher-page-body .ai-feedback-archive-card{padding:10px 18px 8px!important;}
body.ai-teacher-page-body .ai-feedback-archive-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:7px;}
body.ai-teacher-page-body .ai-feedback-archive-title-row{display:flex;align-items:center;gap:8px;}
body.ai-teacher-page-body .ai-feedback-archive-title-row .portal-chip{height:20px;padding:0 7px;border-radius:999px;background:#f1eeff;color:#654af0;font-size:11px;font-weight:900;}
body.ai-teacher-page-body .ai-feedback-filter-tabs{display:flex;align-items:center;gap:4px;margin-left:auto;}
body.ai-teacher-page-body .ai-feedback-filter-tab{height:24px;padding:0 11px;border:1px solid #e2e5ed;border-radius:7px;background:#fff;color:#657083;font-size:12.8px;font-weight:900;}
body.ai-teacher-page-body .ai-feedback-filter-tab.active{background:#5a3ff1;border-color:#5a3ff1;color:#fff;}
body.ai-teacher-page-body .ai-feedback-table-head,
body.ai-teacher-page-body .ai-feedback-history-row>summary{
  display:grid;grid-template-columns:115px 105px minmax(210px,1fr) minmax(300px,1.5fr) 62px;gap:8px;align-items:center;
}
body.ai-teacher-page-body .ai-feedback-table-head{height:23px;padding:0 10px;color:#949cad;font-size:11px;font-weight:800;text-align:left;border-bottom:1px solid #eceef4;}
body.ai-teacher-page-body .compact-report-list{max-height:none!important;overflow:visible!important;padding:0!important;}
body.ai-teacher-page-body .ai-feedback-history-row{border-bottom:1px solid #eceef4;background:#fff;}
body.ai-teacher-page-body .ai-feedback-history-row>summary{min-height:32px;padding:4px 10px;list-style:none;cursor:pointer;}
body.ai-teacher-page-body .ai-feedback-history-row>summary::-webkit-details-marker{display:none;}
body.ai-teacher-page-body .ai-feedback-history-row[open]{background:#fbfbfe;}
body.ai-teacher-page-body .ai-history-date{color:#727c90;font-size:12.8px;white-space:nowrap;}
body.ai-teacher-page-body .ai-history-type{display:inline-flex;width:max-content;padding:3px 8px;border-radius:999px;background:#f0edff;color:#654af0;font-size:12.8px;font-weight:900;}
body.ai-teacher-page-body .ai-history-type.week{background:#e9f4ff;color:#377fd8;}
body.ai-teacher-page-body .ai-history-type.file{background:#f3f1ff;color:#654af0;}
body.ai-teacher-page-body .ai-history-title{color:#303749;font-size:12.8px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.ai-teacher-page-body .ai-history-summary{color:#7a8497;font-size:12.8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.ai-teacher-page-body .ai-history-view{height:21px;padding:0 10px;border:1px solid #e1e4ec;border-radius:6px;background:#fff;color:#4f586b;font-size:11px;font-weight:900;}
body.ai-teacher-page-body .ai-history-detail{padding:10px 14px 12px;border-top:1px solid #eceef4;background:#fff;}
body.ai-teacher-page-body .ai-history-detail .ai-feedback-text{font-size:14px;line-height:1.65;color:#485266;}
body.ai-teacher-page-body .ai-feedback-more{display:flex;justify-content:center;padding-top:6px;}
body.ai-teacher-page-body .ai-feedback-more button{border:0;background:none;color:#5b42ee;font-size:12.8px;font-weight:900;}

/* guide */
body.ai-teacher-page-body .ai-guide-dialog{width:min(520px,calc(100vw - 30px));border:0;border-radius:18px;padding:20px;box-shadow:0 25px 80px rgba(15,23,42,.24);}
body.ai-teacher-page-body .ai-guide-dialog::backdrop{background:rgba(20,25,38,.35);backdrop-filter:blur(3px);}
body.ai-teacher-page-body .ai-guide-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:15px;}
body.ai-teacher-page-body .ai-guide-dialog-head span{color:#654af0;font-size:13px;font-weight:600;letter-spacing:.1em;}
body.ai-teacher-page-body .ai-guide-dialog-head h2{margin:4px 0 0;font-size:22px;}
body.ai-teacher-page-body .ai-guide-close{width:34px;height:34px;border:0;border-radius:9px;background:#f4f5f8;font-size:23px;}
body.ai-teacher-page-body .ai-guide-steps{margin:0;padding:0;list-style:none;display:grid;gap:8px;counter-reset:guide;}
body.ai-teacher-page-body .ai-guide-steps li{position:relative;padding:11px 12px 11px 46px;border:1px solid #e8ebf2;border-radius:11px;background:#fafbfe;counter-increment:guide;}
body.ai-teacher-page-body .ai-guide-steps li::before{content:counter(guide);position:absolute;left:12px;top:11px;width:23px;height:23px;border-radius:7px;display:grid;place-items:center;background:#eeeaff;color:#5a3ff1;font-size:13px;font-weight:900;}
body.ai-teacher-page-body .ai-guide-steps b{display:block;font-size:14px;margin-bottom:2px;}
body.ai-teacher-page-body .ai-guide-steps span{display:block;color:#727d90;font-size:13px;line-height:1.45;}

@media (max-width:1250px){
  body.ai-teacher-page-body .ai-daily-coaching-grid{grid-template-columns:1fr;gap:8px;}
  body.ai-teacher-page-body .ai-weekly-summary-grid{grid-template-columns:170px minmax(320px,1fr);}
  body.ai-teacher-page-body .ai-weekly-detail-panel{grid-column:1 / -1;}
  body.ai-teacher-page-body .ai-room-file-table-head,
  body.ai-teacher-page-body .ai-room-file-list .portal-record-item{grid-template-columns:minmax(230px,1.7fr) 110px 75px 78px minmax(160px,1fr) 88px 135px!important;}
}
@media (max-width:900px){
  body.ai-teacher-page-body .portal-main{padding:72px 14px 26px!important;}
  body.ai-teacher-page-body nav.ai-reference-sidebar,
  body.ai-teacher-page-body:has(nav.ai-reference-sidebar) nav.ai-reference-sidebar{position:fixed!important;transform:translateX(-102%)!important;width:250px!important;min-width:250px!important;}
  body.ai-teacher-page-body nav.ai-reference-sidebar.active,
  body.ai-teacher-page-body:has(nav.ai-reference-sidebar) nav.ai-reference-sidebar.active{transform:translateX(0)!important;}
  body.ai-teacher-page-body .ai-reference-sidebar .sidebar-close-btn{display:grid!important;}
  body.ai-teacher-page-body .ai-room-header{flex-direction:column;}
  body.ai-teacher-page-body .ai-room-header-actions{width:100%;justify-content:flex-start;flex-wrap:wrap;}
  body.ai-teacher-page-body .ai-ready-copy{grid-template-columns:1fr;}
  body.ai-teacher-page-body .ai-ready-button{grid-column:1;grid-row:auto;margin-top:7px;}
  body.ai-teacher-page-body .ai-room-file-table-head{display:none!important;}
  body.ai-teacher-page-body .ai-room-file-list .portal-record-item{grid-template-columns:1fr 1fr!important;padding:9px!important;gap:7px!important;border:1px solid #eceef4!important;border-radius:9px!important;margin-bottom:6px;}
  body.ai-teacher-page-body .ai-room-file-main{grid-column:1 / -1;}
  body.ai-teacher-page-body .ai-file-action{grid-column:1 / -1;justify-content:flex-start!important;}
  body.ai-teacher-page-body .ai-weekly-summary-grid{grid-template-columns:1fr;}
  body.ai-teacher-page-body .ai-weekly-score-panel{border-right:0;border-bottom:1px solid #eaecf2;}
  body.ai-teacher-page-body .ai-summary-kpi-grid{grid-template-columns:1fr 1fr!important;}
  body.ai-teacher-page-body .ai-feedback-table-head{display:none;}
  body.ai-teacher-page-body .ai-feedback-history-row>summary{grid-template-columns:90px 90px 1fr 58px;}
  body.ai-teacher-page-body .ai-history-summary{display:none;}
}
@media (max-width:620px){
  body.ai-teacher-page-body .portal-main{padding-left:10px!important;padding-right:10px!important;}
  body.ai-teacher-page-body .ai-coach-stat-strip{grid-template-columns:1fr!important;}
  body.ai-teacher-page-body .ai-coach-stat+.ai-coach-stat{border-left:0;border-top:1px solid #eceef4;}
  body.ai-teacher-page-body .ai-feedback-ready-banner{grid-template-columns:48px 1fr;padding:10px;}
  body.ai-teacher-page-body .ai-ready-avatar{width:44px;height:44px;}
  body.ai-teacher-page-body .ai-ready-avatar img{width:40px;height:40px;}
  body.ai-teacher-page-body .ai-coach-summary-row{grid-template-columns:25px 64px 1fr;padding:7px 9px;}
  body.ai-teacher-page-body .ai-summary-kpi-grid,
  body.ai-teacher-page-body .ai-weekly-insight-grid{grid-template-columns:1fr!important;}
  body.ai-teacher-page-body .ai-feedback-archive-head{align-items:flex-start;flex-direction:column;}
  body.ai-teacher-page-body .ai-feedback-filter-tabs{margin-left:0;flex-wrap:wrap;}
  body.ai-teacher-page-body .ai-feedback-history-row>summary{grid-template-columns:80px 1fr 52px;}
  body.ai-teacher-page-body .ai-history-type{display:none;}
}
html body.ai-teacher-page-body .ai-room-file-list button.portal-btn.primary,
html body.ai-teacher-page-body .ai-room-file-list button.portal-btn.secondary,
html body.ai-teacher-page-body .ai-room-file-list .portal-btn.primary,
html body.ai-teacher-page-body .ai-room-file-list .portal-btn.secondary{
  height:25px!important;
  min-height:25px!important;
  padding:0 11px!important;
  border-radius:6px!important;
  font-size:12.8px!important;
  line-height:1!important;
}
html body.ai-teacher-page-body .ai-feedback-history-row .ai-history-view{
  height:21px!important;
  min-height:21px!important;
  padding:0 10px!important;
  border-radius:6px!important;
  font-size:11px!important;
  line-height:1!important;
}


/* ========================================================================
   AI 피드백방 가독성·공통 메뉴 통일 v2
   - 본문 글자 크기: 기존 대비 3px 확대
   - 글꼴: Pretendard 단일화
   - 좌측 메뉴: 다른 페이지와 같은 공통 사이드바 사용
   ======================================================================== */
body.ai-teacher-page-body,
body.ai-teacher-page-body button,
body.ai-teacher-page-body input,
body.ai-teacher-page-body select,
body.ai-teacher-page-body textarea,
body.ai-teacher-page-body dialog,
body.ai-teacher-page-body .ai-teacher-room-page,
body.ai-teacher-page-body .ai-teacher-room-page * {
  font-family:var(--sorizava-font-sans,"Apple SD Gothic Neo",Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif);
}

/* 공통 사이드바의 데스크톱 본문 오프셋을 원래 규칙과 동일하게 복원 */
@media (min-width:901px){
  html body.ai-teacher-page-body #app-wrapper > main.main-content.portal-main{
    width:calc(100vw - var(--sori-sidebar-width,240px))!important;
    max-width:calc(100vw - var(--sori-sidebar-width,240px))!important;
    min-width:0!important;
    margin-left:var(--sori-sidebar-width,240px)!important;
    padding:24px 28px 40px!important;
    flex:0 0 auto!important;
  }
}
@media (max-width:900px){
  html body.ai-teacher-page-body #app-wrapper > main.main-content.portal-main{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    padding:72px 14px 28px!important;
  }
}

/* 커진 글자가 눌리거나 잘리지 않도록 카드·표·버튼 높이도 함께 정리 */
body.ai-teacher-page-body .ai-teacher-room-page{gap:16px!important;}
body.ai-teacher-page-body .ai-room-header{min-height:66px!important;}
body.ai-teacher-page-body .ai-header-guide-btn,
body.ai-teacher-page-body .ai-header-cta{height:44px!important;min-height:44px!important;padding-inline:18px!important;}
body.ai-teacher-page-body .ai-period-tab{height:36px!important;padding-inline:20px!important;}
body.ai-teacher-page-body .ai-reference-card{border-radius:14px!important;}
body.ai-teacher-page-body .ai-daily-coaching-card,
body.ai-teacher-page-body .ai-room-file-panel,
body.ai-teacher-page-body .ai-weekly-summary-card,
body.ai-teacher-page-body .ai-feedback-archive-card{padding:16px 20px 14px!important;}
body.ai-teacher-page-body .ai-daily-coaching-grid{gap:20px!important;}
body.ai-teacher-page-body .ai-coach-stat-strip{min-height:70px!important;}
body.ai-teacher-page-body .ai-coach-stat{padding:13px 14px 12px 54px!important;}
body.ai-teacher-page-body .ai-feedback-ready-banner{min-height:88px!important;padding:12px 18px!important;}
body.ai-teacher-page-body .ai-ready-copy{grid-template-columns:minmax(0,1fr) 250px!important;}
body.ai-teacher-page-body .ai-ready-button{height:38px!important;min-height:38px!important;}
body.ai-teacher-page-body .ai-coach-summary-list{min-height:166px!important;}
body.ai-teacher-page-body .ai-coach-summary-row{min-height:54px!important;padding:10px 15px!important;grid-template-columns:30px 88px minmax(0,1fr)!important;}
body.ai-teacher-page-body .ai-coach-summary-icon{width:28px!important;height:28px!important;}

body.ai-teacher-page-body .ai-room-filter-chip,
body.ai-teacher-page-body .ai-room-custom-filter{height:34px!important;min-height:34px!important;padding-inline:12px!important;}
body.ai-teacher-page-body .ai-room-file-table-head{height:34px!important;padding-inline:12px!important;}
body.ai-teacher-page-body .ai-room-file-list .portal-record-item{min-height:52px!important;padding:8px 12px!important;}
body.ai-teacher-page-body .ai-room-file-main{padding-left:34px!important;}
body.ai-teacher-page-body .ai-room-file-main::before{width:24px!important;height:24px!important;}
html body.ai-teacher-page-body .ai-room-file-list button.portal-btn.primary,
html body.ai-teacher-page-body .ai-room-file-list button.portal-btn.secondary,
html body.ai-teacher-page-body .ai-room-file-list .portal-btn.primary,
html body.ai-teacher-page-body .ai-room-file-list .portal-btn.secondary{
  height:34px!important;
  min-height:34px!important;
  padding:0 14px!important;
  border-radius:8px!important;
}
body.ai-teacher-page-body .ai-file-type-chip,
body.ai-teacher-page-body .ai-file-status-chip,
body.ai-teacher-page-body .ai-file-metric .portal-badge{padding:5px 10px!important;}
body.ai-teacher-page-body .ai-room-page-btn{min-width:32px!important;height:32px!important;}

body.ai-teacher-page-body .ai-weekly-summary-grid{grid-template-columns:210px minmax(360px,1.05fr) minmax(480px,1.25fr)!important;gap:18px!important;}
body.ai-teacher-page-body .ai-weekly-score-panel{min-height:180px!important;padding:14px 14px 8px 4px!important;}
body.ai-teacher-page-body .ai-summary-trend .ai-trend-svg{height:126px!important;}
body.ai-teacher-page-body .ai-summary-kpi-grid{gap:9px!important;}
body.ai-teacher-page-body .ai-summary-kpi-item{min-height:72px!important;padding:11px 9px 9px 42px!important;}
body.ai-teacher-page-body .ai-weekly-insight-grid{gap:9px!important;}
body.ai-teacher-page-body .ai-weekly-insight-card{min-height:58px!important;padding:10px 11px 9px 38px!important;}

body.ai-teacher-page-body .ai-feedback-filter-tab{height:34px!important;padding-inline:14px!important;}
body.ai-teacher-page-body .ai-feedback-table-head{height:32px!important;}
body.ai-teacher-page-body .ai-feedback-history-row>summary{min-height:44px!important;padding:7px 10px!important;}
html body.ai-teacher-page-body .ai-feedback-history-row .ai-history-view{
  height:31px!important;
  min-height:31px!important;
  padding:0 12px!important;
  border-radius:8px!important;
}

@media (max-width:1250px){
  body.ai-teacher-page-body .ai-weekly-summary-grid{grid-template-columns:190px minmax(320px,1fr)!important;}
  body.ai-teacher-page-body .ai-weekly-detail-panel{grid-column:1 / -1!important;}
}
@media (max-width:900px){
  body.ai-teacher-page-body .ai-ready-copy{grid-template-columns:1fr!important;}
  body.ai-teacher-page-body .ai-weekly-summary-grid{grid-template-columns:1fr!important;}
}


/* ========================================================================
   AI 피드백방 가독성 확대 v3 — 2026-07-29
   - 페이지 내 글자 크기 약 20% 확대
   - 기간 탭/보관함 필터/더보기 버튼의 서체 체계 통일
   - 더 이상 사용하지 않는 상단 주간 코칭 카드·배너 완전 숨김
   ======================================================================== */
body.ai-teacher-page-body .weekly-report-card,
body.ai-teacher-page-body .weekly-report-banner{
  display:none!important;
}

/* 공통 서체: 기간 탭·필터 탭·더보기 */
body.ai-teacher-page-body .ai-period-tab,
body.ai-teacher-page-body .ai-feedback-filter-tab,
body.ai-teacher-page-body .ai-feedback-more button{
  font-family:var(--sorizava-font-sans,"Apple SD Gothic Neo",Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif);
  font-weight:800!important;
  font-style:normal!important;
  font-synthesis:none!important;
  letter-spacing:-0.02em!important;
  line-height:1.2!important;
}

/* 헤더 */
body.ai-teacher-page-body .ai-room-title-block h1{font-size:32px!important;}
body.ai-teacher-page-body .ai-room-title-block p{font-size:17px!important;}
body.ai-teacher-page-body .ai-header-guide-btn,
body.ai-teacher-page-body .ai-header-cta{font-size:17px!important;height:48px!important;min-height:48px!important;}
body.ai-teacher-page-body .ai-period-tab{font-size:16px!important;height:43px!important;min-height:43px!important;padding-inline:24px!important;}

/* 공통 제목 */
body.ai-teacher-page-body .ai-reference-card h2{font-size:19px!important;}
body.ai-teacher-page-body .ai-reference-section-head p,
body.ai-teacher-page-body .ai-weekly-summary-head p{font-size:14px!important;}

/* 오늘의 AI 코칭 */
body.ai-teacher-page-body .ai-coach-stat span{font-size:14px!important;}
body.ai-teacher-page-body .ai-coach-stat b{font-size:22px!important;}
body.ai-teacher-page-body .ai-ready-copy strong{font-size:20px!important;}
body.ai-teacher-page-body .ai-ready-copy p{font-size:14px!important;}
body.ai-teacher-page-body .ai-ready-button{font-size:16px!important;height:42px!important;min-height:42px!important;}
body.ai-teacher-page-body .ai-coach-summary-row b{font-size:16px!important;}
body.ai-teacher-page-body .ai-coach-summary-row ul{font-size:14px!important;line-height:1.65!important;}

/* 파일별 피드백 */
body.ai-teacher-page-body .ai-room-filter-chip,
body.ai-teacher-page-body .ai-room-custom-filter{font-size:14px!important;height:41px!important;min-height:41px!important;padding-inline:15px!important;}
body.ai-teacher-page-body .ai-room-file-table-head{font-size:14px!important;height:41px!important;}
body.ai-teacher-page-body .ai-room-file-list .portal-record-item{min-height:62px!important;}
body.ai-teacher-page-body .ai-room-file-main .portal-record-title{font-size:16px!important;}
body.ai-teacher-page-body .ai-room-file-main .portal-record-meta,
body.ai-teacher-page-body .ai-file-date,
body.ai-teacher-page-body .ai-file-error-summary{font-size:14px!important;}
body.ai-teacher-page-body .ai-file-type-chip,
body.ai-teacher-page-body .ai-file-status-chip{font-size:13px!important;}
body.ai-teacher-page-body .ai-file-metric .portal-badge{font-size:14px!important;}
html body.ai-teacher-page-body .ai-room-file-list button.portal-btn.primary,
html body.ai-teacher-page-body .ai-room-file-list button.portal-btn.secondary,
html body.ai-teacher-page-body .ai-room-file-list .portal-btn.primary,
html body.ai-teacher-page-body .ai-room-file-list .portal-btn.secondary{
  font-size:13px!important;
  height:41px!important;
  min-height:41px!important;
  padding-inline:15px!important;
}
body.ai-teacher-page-body .ai-room-page-btn{font-size:14px!important;min-width:38px!important;height:38px!important;}
body.ai-teacher-page-body .ai-room-page-status{font-size:14px!important;}

/* 이번 주 종합 성적표 */
body.ai-teacher-page-body .ai-weekly-feedback-button{font-size:14px!important;height:38px!important;min-height:38px!important;padding-inline:14px!important;}
body.ai-teacher-page-body .ai-weekly-score-panel .ai-summary-label{font-size:14px!important;}
body.ai-teacher-page-body .ai-weekly-score-panel>strong{font-size:48px!important;}
body.ai-teacher-page-body .ai-summary-delta{font-size:16px!important;}
body.ai-teacher-page-body .ai-weekly-score-panel small{font-size:13px!important;}
body.ai-teacher-page-body .ai-pass-line{font-size:14px!important;}
body.ai-teacher-page-body .ai-summary-chart-title{font-size:14px!important;}
body.ai-teacher-page-body .ai-summary-trend .ai-trend-top b,
body.ai-teacher-page-body .ai-summary-trend .ai-trend-top span,
body.ai-teacher-page-body .ai-summary-trend .ai-trend-foot{font-size:13px!important;}
body.ai-teacher-page-body .ai-summary-kpi-item span{font-size:13px!important;}
body.ai-teacher-page-body .ai-summary-kpi-item b{font-size:22px!important;}
body.ai-teacher-page-body .ai-summary-kpi-item small{font-size:12.8px!important;}
body.ai-teacher-page-body .ai-weekly-insight-card b{font-size:13px!important;}
body.ai-teacher-page-body .ai-weekly-insight-card p{font-size:12.8px!important;line-height:1.45!important;}

/* 지난 피드백 보관함 */
body.ai-teacher-page-body .ai-feedback-archive-title-row .portal-chip{font-size:13px!important;height:25px!important;padding-inline:9px!important;}
body.ai-teacher-page-body .ai-feedback-filter-tab{font-size:14px!important;height:41px!important;min-height:41px!important;padding-inline:17px!important;}
body.ai-teacher-page-body .ai-feedback-table-head{font-size:13px!important;height:38px!important;}
body.ai-teacher-page-body .ai-feedback-history-row>summary{min-height:53px!important;padding:9px 12px!important;}
body.ai-teacher-page-body .ai-history-date{font-size:14px!important;}
body.ai-teacher-page-body .ai-history-type{font-size:13px!important;}
body.ai-teacher-page-body .ai-history-title{font-size:14px!important;}
body.ai-teacher-page-body .ai-history-summary{font-size:13px!important;}
html body.ai-teacher-page-body .ai-feedback-history-row .ai-history-view{
  font-size:13px!important;
  height:37px!important;
  min-height:37px!important;
  padding-inline:14px!important;
  /* [2026-08-10] '보기' 글자가 위로 붙던 문제: 세로 중앙 정렬 */
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
}
body.ai-teacher-page-body .ai-history-detail .ai-feedback-text{font-size:17px!important;}
body.ai-teacher-page-body .ai-feedback-more button{font-size:14px!important;padding:9px 12px!important;}

/* 피드백 전문 모달 */
body.ai-teacher-page-body .ai-feedback-viewer-head h2{font-size:31px!important;}
body.ai-teacher-page-body .ai-feedback-viewer-head p{font-size:17px!important;}
body.ai-teacher-page-body .ai-feedback-viewer-body{font-size:19px!important;line-height:1.8!important;}
body.ai-teacher-page-body .ai-feedback-viewer-foot span{font-size:17px!important;}
body.ai-teacher-page-body .ai-feedback-viewer-foot .portal-btn{font-size:18px!important;}
body.ai-teacher-page-body .ai-feedback-viewer-body .ai-feedback-headline{font-size:20px!important;}
body.ai-teacher-page-body .ai-feedback-viewer-body .ai-feedback-overview-item span{font-size:16px!important;}
body.ai-teacher-page-body .ai-feedback-viewer-body .ai-feedback-overview-item strong{font-size:18px!important;}
body.ai-teacher-page-body .ai-feedback-viewer-body .ai-feedback-section h3{font-size:19px!important;}
body.ai-teacher-page-body .ai-feedback-viewer-body .ai-feedback-section li{font-size:18px!important;}
body.ai-teacher-page-body .ai-feedback-viewer-body .ai-feedback-next-goal strong{font-size:18px!important;}

/* 사용 가이드 */
body.ai-teacher-page-body .ai-guide-dialog-head span{font-size:16px!important;}
body.ai-teacher-page-body .ai-guide-dialog-head h2{font-size:26px!important;}
body.ai-teacher-page-body .ai-guide-steps b{font-size:17px!important;}
body.ai-teacher-page-body .ai-guide-steps span{font-size:16px!important;}

@media (max-width:900px){
  body.ai-teacher-page-body .ai-room-title-block h1{font-size:29px!important;}
  body.ai-teacher-page-body .ai-room-title-block p{font-size:16px!important;}
  body.ai-teacher-page-body .ai-period-tab{font-size:15px!important;height:41px!important;padding-inline:18px!important;}
  body.ai-teacher-page-body .ai-feedback-filter-tab{font-size:13px!important;height:38px!important;padding-inline:13px!important;}
  body.ai-teacher-page-body .ai-feedback-viewer-body{font-size:18px!important;}
}
