/* Restricted to moderation reports and their case dialog. */
.report-workbench,.report-case{min-width:0;box-sizing:border-box}
.report-workbench .report-filters,.report-case .report-decision,.report-case .report-assign{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;padding:12px;border:1px solid #dce4ef;border-radius:12px;background:#f7f9fc;margin:12px 0;align-items:end;min-width:0}
.report-workbench .report-filters>label:first-child,.report-workbench .report-filters>.report-actions{grid-column:1/-1}
.report-workbench label,.report-case label{display:grid;gap:6px;margin:0;min-width:0;font-size:14px;font-weight:600}
.report-workbench :is(input,select,button),.report-case :is(input,select,textarea,button){box-sizing:border-box;min-width:0;min-height:44px;margin:0;font-size:16px;line-height:1.4;padding:10px 12px}
.report-workbench :is(input,select),.report-case :is(input,select,textarea){width:100%;border:1px solid #d5dfed;border-radius:9px;background:#fff}
.report-workbench select[hidden],.report-case select[hidden]{display:none}
.report-workbench .catalog-choice-toggle,.report-case .catalog-choice-toggle{width:100%;text-align:left;padding-right:30px;white-space:normal;overflow-wrap:anywhere}
.report-workbench .report-actions,.report-case .report-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:10px 0}
.report-workbench .button-link,.report-case .button-link{display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box}
.report-workbench .report-list{display:grid;gap:10px}
.report-workbench .report-row{border:1px solid #dce4ef;background:white;border-radius:12px;padding:12px;min-width:0}
.report-workbench .report-row-heading{display:flex;align-items:start;justify-content:space-between;flex-wrap:wrap;gap:10px}
.report-workbench h2{font-size:18px;margin:0;line-height:1.4}
.report-workbench .report-row p,.report-case p{font-size:15px;line-height:1.5;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.report-workbench .report-badge,.report-case .report-badge{font-size:13px;line-height:1.4;color:#1b5186;background:#eaf2fc;padding:6px 9px;border-radius:8px;box-sizing:border-box;max-width:100%}
.report-workbench .report-note,.report-case .report-note{color:#627187;font-size:14px}
.report-workbench .report-error,.report-case .report-error{color:#a12727;overflow-wrap:anywhere;white-space:pre-wrap}
.report-case .report-error:empty{display:none}
dialog.report-case{width:min(620px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:16px;margin:auto;overflow:auto;overscroll-behavior:contain;scroll-padding:12px;border:1px solid #dce4ef;border-radius:14px}
.report-case h2{font-size:21px;line-height:1.35;margin:0 0 10px}
.report-case h3{font-size:18px;margin:0}
.report-case .report-decision{grid-template-columns:minmax(0,1fr)}
.report-case .report-assign{grid-template-columns:minmax(0,1fr) auto}
.report-case textarea{resize:vertical;min-height:100px}
.report-case :is(.report-evidence,.report-history){padding:10px 12px;margin:10px 0;border:1px solid #dce4ef;border-radius:10px;min-width:0}
.report-case summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600;font-size:15px;line-height:1.4}
.report-case .report-history>article{border-top:1px solid #e0e6ef;padding:10px 0;min-width:0}
.report-case .report-photos{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.report-case .report-photos img{width:72px;height:72px;object-fit:cover;border-radius:8px}
@media(min-width:900px){.report-workbench .report-filters{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){dialog.report-case{padding:12px}.report-case .report-assign{grid-template-columns:minmax(0,1fr)}.report-workbench .report-row-heading{display:grid}.report-workbench .report-badge{justify-self:start}}
.report-case .report-close{position:sticky;bottom:-12px;z-index:2;background:white;border:1px solid #d4dfed;margin-top:10px}
.report-case>.report-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.report-case>.report-actions>button{font-size:15px;white-space:normal}
.report-case>.report-actions>button:last-child:nth-child(odd){grid-column:1/-1}
@media(max-width:760px){
 body.staff-mode .workspace-page:has(>#adminPage:not([hidden]))>.workspace-nav,body.staff-mode .workspace-page:has(>#trustPage.report-workbench:not([hidden]))>.workspace-nav{display:none!important}
 #adminPage .admin-page-header{margin:0 0 12px}
}
body.staff-mode:has(#adminPage:not([hidden])) #mode,body.staff-mode:has(#trustPage.report-workbench:not([hidden])) #mode{font-size:13px;line-height:1.4;padding:8px 10px;margin-bottom:12px}
#adminPage .admin-result-metrics{min-width:0;overflow:hidden}
body #adminPage{padding-left:0}

/* Staff report queue: explicit spacing avoids inherited form margins. */
body.staff-console #trustPage.report-workbench .report-filters{gap:10px;padding:10px;margin:10px 0;align-items:end}
body.staff-console #trustPage.report-workbench .report-filters>label{display:grid;gap:6px;margin:0;line-height:1.35;font-size:14px}
body.staff-console #trustPage.report-workbench .report-filters :is(input,.catalog-choice-toggle){box-sizing:border-box;min-height:44px;height:auto;margin:0;padding:8px 10px;font-size:16px;line-height:1.35}
body.staff-console #trustPage.report-workbench .report-filters .catalog-choice-toggle{padding-right:30px;white-space:normal}
body.staff-console #trustPage.report-workbench .report-filters>.report-actions{margin:0;gap:10px}
body.staff-console #trustPage.report-workbench :is(.report-actions>button,.report-actions>.button-link,.report-row>button){min-height:44px!important;height:auto;box-sizing:border-box}
body.staff-console #trustPage.report-workbench .report-list{gap:8px}
body.staff-console #trustPage.report-workbench .report-list>.report-note{margin:2px 0 4px;line-height:1.4}
body.staff-console #trustPage.report-workbench .report-row{display:grid;gap:6px;padding:10px}
body.staff-console #trustPage.report-workbench .report-row-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px}
body.staff-console #trustPage.report-workbench .report-row h2{font-size:16px;line-height:1.35;margin:0;overflow-wrap:anywhere}
body.staff-console #trustPage.report-workbench .report-row .report-badge{max-width:142px;padding:4px 7px;font-size:12px;line-height:1.4}
body.staff-console #trustPage.report-workbench .report-row>p{margin:0;font-size:14px;line-height:1.4}
body.staff-console #trustPage.report-workbench .report-row>button{justify-self:start;margin:0}
body.staff-console dialog.report-case .report-photos img{display:block;width:96px;height:auto;max-height:112px;object-fit:contain}
