/* Teacher review is a teaching workflow; these rules never affect home cards. */
body:not(#ctl-a):not(#ctl-b) #pgReview.on{display:block!important;max-width:1120px!important;margin-inline:auto!important}
#pgReview .tg-main{min-width:0}
#pgReview .tg-status-tabs,#pgReview .tg-list-tools,#pgReview .tg-student-nav,#pgReview .tg-photo-toolbar,#pgReview .tg-score-shortcuts,#pgReview .tg-score-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
#pgReview .tg-status-tabs{margin:0 0 14px}
#pgReview .tg-help,#pgReview .tg-save-state{font-size:13px;line-height:1.75;color:var(--muted,#667085);margin:10px 0 14px}
#pgReview .tg-list-tools{justify-content:space-between;margin-bottom:16px}
#pgReview .tg-list-tools label,#pgReview .tg-student-nav label{display:flex;align-items:center;gap:10px;min-width:0;max-width:100%}
#pgReview select{max-width:100%;min-width:0}
#pgReview .tg-assignment-list{display:grid;gap:10px}
body:not(#ctl-a):not(#ctl-b) #pgReview .tg-assignment{display:flex!important;justify-content:space-between;align-items:center;gap:16px;width:100%;height:auto!important;min-height:110px!important;padding:16px!important;text-align:left;background:#fff;border:1px solid var(--line,#e3e8ef);border-radius:14px;white-space:normal!important;box-shadow:none;font:inherit;cursor:pointer}
#pgReview .tg-assignment-copy{min-width:0;flex:1}
#pgReview .tg-assignment-copy>b{font-size:16px;line-height:1.7;color:var(--fg,#1e293b);overflow-wrap:anywhere}
#pgReview .tg-assignment-copy>small{display:block;font-size:13px;line-height:1.8;color:var(--muted,#667085)}
#pgReview .tg-assignment-go{flex:none;font-size:13px;color:var(--p40,#2457D6)}
#pgReview .tg-counts{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;color:var(--muted,#667085);line-height:1.8;margin-top:8px}
#pgReview .tg-counts b{font-weight:650;color:var(--fg,#1e293b);font-variant-numeric:tabular-nums}
#pgReview .tg-counts .tg-pending b{color:#a15c00}
#pgReview .tg-work-head{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:16px 0;padding-bottom:16px;border-bottom:1px solid var(--line,#e3e8ef)}
#pgReview .tg-work-head>div:not(.tg-counts){flex:1;min-width:150px}
#pgReview .tg-work-head h3{font-size:17px;line-height:1.5;margin:0;overflow-wrap:anywhere}
#pgReview .tg-work-head p{margin:4px 0;color:var(--muted,#667085);font-size:13px}
#pgReview .tg-work-head .tg-counts{margin:0}
#pgReview .tg-student-nav{margin-bottom:16px}
#pgReview .tg-student-nav label{flex:1 1 220px}
#pgReview .tg-student-nav select{flex:1}
#pgReview .tg-student-nav>span{font-size:13px;color:var(--muted,#667085)}
#pgReview .tg-batch{margin:0 10px 16px 0}
body:not(#ctl-a):not(#ctl-b) #pgReview .tg-question>summary{padding:14px 16px!important;justify-content:space-between}
#pgReview .tg-question .task-review-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
#pgReview .tg-question-points{color:var(--muted,#667085);font-size:13px}
body:not(#ctl-a):not(#ctl-b) #pgReview .tg-question-layout{display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr)!important;gap:22px;padding:18px!important}
#pgReview .tg-answer-column,#pgReview .tg-score-column{min-width:0}
#pgReview .tg-question-text,#pgReview .tg-reference,#pgReview .tg-student-answer{font-size:14px;line-height:1.85;overflow-wrap:anywhere;margin-bottom:14px}
#pgReview .tg-question-text>b,#pgReview .tg-reference>b,#pgReview .tg-student-answer>b{display:block;font-size:12px;font-weight:500;color:var(--muted,#667085);margin-bottom:4px}
#pgReview .tg-options{display:grid;gap:8px;list-style:none;padding:0;margin:12px 0}
#pgReview .tg-options>li{display:flex;gap:8px;align-items:baseline;min-width:0}
#pgReview .tg-options>li>b{flex:none;font-weight:600}
#pgReview .tg-options>li>div{min-width:0;overflow-wrap:anywhere}
#pgReview .tg-selected-option{margin:3px 0;overflow-wrap:anywhere}
#pgReview .tg-photo-toolbar{margin:8px 0}
#pgReview .tg-photo-frame{position:relative;height:260px;overflow:hidden;border:1px solid var(--line,#e3e8ef);border-radius:12px;background:#f7f9fc}
#pgReview .tg-question-text .tg-photo-frame:not(.is-expanded){height:180px}
#pgReview .tg-photo-frame.is-expanded{height:min(70vh,700px)}
body:not(#ctl-a):not(#ctl-b) #pgReview .tg-photo-frame>img{position:absolute!important;top:50%;left:50%;width:var(--tg-img-width,100%)!important;height:var(--tg-img-height,100%)!important;min-width:0!important;max-width:none!important;max-height:none!important;object-fit:contain!important;border-radius:0!important;margin:0!important;transform:translate(-50%,-50%) rotate(var(--tg-img-rotation,0deg));}
#pgReview .tg-score-column{padding-left:22px;border-left:1px solid var(--line,#e3e8ef)}
#pgReview .tg-review-note,#pgReview .tg-auto-result{font-size:13px;line-height:1.75;margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid var(--line,#e3e8ef);overflow-wrap:anywhere}
#pgReview .tg-review-note p,#pgReview .tg-auto-result p{margin:6px 0;white-space:pre-wrap}
#pgReview .tg-score-field,#pgReview .tg-comment-field{display:block;font-size:14px;line-height:1.7}
#pgReview .tg-score-field input{display:block;width:100%;max-width:180px;margin-top:8px;font:inherit}
#pgReview .tg-score-shortcuts{margin:10px 0 16px}
#pgReview .tg-comment-field textarea{display:block;box-sizing:border-box;width:100%;margin-top:8px;font:inherit;padding:10px;border:1px solid var(--line,#e3e8ef);border-radius:10px;resize:vertical}
#pgReview .tg-score-actions{margin-top:12px}
#pgReview .tg-ai-panel{border-top:1px solid var(--line,#e3e8ef);margin-top:20px;padding-top:8px;font-size:13px;line-height:1.8}
#pgReview .tg-ai-panel>summary{cursor:pointer;min-height:44px;line-height:1.8;padding:10px 0;color:var(--muted,#667085)}
#pgReview .tg-ai-panel p{white-space:pre-wrap;overflow-wrap:anywhere}
#pgReview .tg-ai-panel .btn{margin:6px 8px 0 0}
#pgReview .tg-reviews>summary{font-size:15px;line-height:1.8;min-height:44px;cursor:pointer;padding:8px 0}
body:not(#ctl-a):not(#ctl-b) #pgReview :is(.btn,select,input){min-height:44px!important;height:auto!important;white-space:normal!important;line-height:1.5!important}
body:not(#ctl-a):not(#ctl-b) #pgReview .btn{width:auto!important;max-width:100%;padding:9px 14px!important;font-size:14px!important;overflow-wrap:anywhere}
#pgReview :is(button,summary,select,input,textarea):focus-visible{outline:3px solid #8dabff;outline-offset:3px}
@media(max-width:760px){body:not(#ctl-a):not(#ctl-b) #pgReview .tg-question-layout{grid-template-columns:minmax(0,1fr)!important;gap:18px;padding:14px!important}#pgReview .tg-score-column{padding-left:0;padding-top:18px;border-left:0;border-top:1px solid var(--line,#e3e8ef)}#pgReview .tg-work-head{gap:10px}#pgReview .tg-work-head>button{flex-basis:100%}#pgReview .tg-counts{gap:12px}#pgReview .tg-assignment{gap:10px}#pgReview .tg-assignment-go{font-size:12px}}
@media(max-width:390px){#pgReview .tg-assignment{align-items:flex-start!important;flex-direction:column}#pgReview .tg-assignment-go{align-self:flex-end}#pgReview .tg-status-tabs{gap:6px}#pgReview .tg-student-nav>button{flex:1}#pgReview .tg-student-nav label{flex-basis:100%}}

#pgReview .tg-history{display:grid;gap:8px;margin:0 0 16px}
#pgReview .tg-hist{padding:12px 14px;background:#fff;border:1px solid var(--line,#e3e8ef);border-radius:12px}
#pgReview .tg-hist .h1{font-size:14px;font-weight:650;color:var(--fg,#1e293b);line-height:1.7}
#pgReview .tg-hist .h2{font-size:12.5px;color:var(--muted,#667085);line-height:1.8;margin-top:3px}
#pgReview .tg-hist .h3{font-size:13px;color:#475467;line-height:1.7;margin-top:6px;overflow-wrap:anywhere}
#pgReview .tg-hist .tag-ok{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;background:#e8f7ee;color:#12873f;font-size:12px;font-weight:650}
#pgReview .tg-hist .tag-no{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;background:#fdecea;color:#b42318;font-size:12px;font-weight:650}
#pgReview .tg-hist .tag-gone{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;background:#f2f4f7;color:#667085;font-size:12px;font-weight:650}

/* 20261125：一份作业一张卡，待处理申诉直接放进卡内，避免同一条记录渲染两次。 */
#pgReview .tg-assignment-card{background:#fff;border:1px solid var(--line,#e3e8ef);border-radius:14px;padding:14px 16px;box-shadow:none;min-width:0}
#pgReview .tg-assignment-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
#pgReview .tg-assignment-state{flex:none;font-size:12px;line-height:1.6;padding:1px 8px;border-radius:999px;background:#fef4e6;color:#a15c00;font-weight:650}
#pgReview .tg-appeal-list{display:grid;gap:8px;margin-top:12px}
#pgReview .tg-appeal{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;background:#f7f9fc;border:1px solid #e8ecf2;border-radius:10px;min-width:0}
#pgReview .tg-appeal-main{display:block;min-width:0;flex:1}
#pgReview .tg-appeal-main>b{display:block;font-size:13.5px;line-height:1.7;color:var(--fg,#1e293b);overflow-wrap:anywhere}
#pgReview .tg-appeal-main>span{display:block;font-size:12.5px;line-height:1.65;color:var(--muted,#667085);margin-top:2px;overflow-wrap:anywhere}
#pgReview .tg-appeal-state{flex:none;font-size:12px;color:#a15c00}
#pgReview .tg-appeal-state.is-done{color:#12873f}
#pgReview .tg-appeal-done{background:#fff}
#pgReview .tg-appeal-more{margin:0;font-size:12.5px;line-height:1.7;color:var(--muted,#667085)}
#pgReview .tg-assignment-foot{display:flex;justify-content:flex-end;margin-top:12px}
#pgReview .tg-back-link{flex:0 0 auto!important;display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:6px 8px!important;border:0;background:transparent;color:#2457D6;font:inherit;font-size:13px;cursor:pointer}
#pgReview .tg-empty-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:10px}
@media(max-width:760px){#pgReview .tg-work-head{display:block}#pgReview .tg-work-head>button.tg-back-link{flex-basis:auto!important;margin:0 0 4px;padding-left:0!important}#pgReview .tg-work-head>div:not(.tg-counts){min-width:0}#pgReview .tg-work-head .tg-counts{margin-top:8px}#pgReview .tg-assignment-card{padding:12px 14px}#pgReview .tg-assignment-foot .btn{width:100%!important}#pgReview .tg-appeal{align-items:flex-start}}

/* 20261125：状态不再用三档 tab，待处理与处理记录分成两个页面。 */
#pgReview .tg-list-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-left:auto}
#pgReview .tg-link{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:6px 2px;border:0;background:transparent;color:#2457D6;font:inherit;font-size:13px;cursor:pointer}
#pgReview .tg-list-back{margin:0 0 4px}

/* 20261125：筛选行收小，班级选择不再压过主操作；箭头与文字留出间距。 */
#pgReview .tg-list-tools label{gap:8px;font-size:13px;line-height:1.5}
html body:not(#gsxA):not(#gsxB) #pgReview .tg-list-tools>label>select{
  width:auto!important;max-width:150px!important;
  height:34px!important;min-height:34px!important;max-height:34px!important;
  padding:0 26px 0 9px!important;
  font-size:13px!important;line-height:normal!important;
  border-radius:8px!important;
  background-position:right 8px center!important;
  background-size:9px 5.5px!important;
}
#pgReview .tg-list-actions{gap:8px}
html body:not(#gsxA):not(#gsxB) #pgReview .tg-list-actions .btn{
  height:34px!important;min-height:34px!important;max-height:34px!important;
  padding:0 12px!important;font-size:13px!important;line-height:1.4!important;
}
#pgReview .tg-link{min-height:34px;font-size:13px;line-height:1.5;padding:4px 0}
#pgReview .tg-assignment-foot .btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px;min-width:104px!important}

/* 20261125：刷新统一用首页那条环形箭头图标，不再用文字按钮。 */
#pgReview .tg-icon-btn{
  width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;max-height:34px!important;
  padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border:1px solid var(--line,#e3e8ef)!important;border-radius:8px!important;background:#fff!important;
  color:#5A6577!important;line-height:1!important;cursor:pointer!important;
}
#pgReview .tg-icon-btn:hover{color:#2457D6!important;border-color:#C9D9F4!important;background:#F7FAFE!important}
#pgReview .tg-icon-btn svg{display:block!important}
