/* Snabil visual identity: compact teacher video beside the assessment form. */
.sl-peer-panel{direction:rtl;margin:8px 0 14px;border:1px solid #a38e5a;border-radius:18px;background:var(--card,#fff);color:inherit;padding:12px;max-width:100%;box-shadow:0 5px 18px #0002;min-width:0}
.sl-peer-panel button{border:1px solid #00808a;background:transparent;color:inherit;border-radius:11px;padding:7px 10px;cursor:pointer;font:inherit;font-weight:600;margin:3px}
.sl-peer-panel button:hover{background:rgba(0,128,138,.12)}
.sl-peer-panel button:disabled{opacity:.4}
.sl-peer-header{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap;margin-bottom:5px}
.sl-peer-header strong{font-size:15px}
.sl-peer-warning{font-size:11px;line-height:1.7;color:#ac5221;margin:4px 0}
.sl-peer-videos{position:relative;background:#081d1e;border-radius:14px;overflow:hidden;border:2px solid #d8bd88;margin:7px 0;width:100%}
.sl-peer-videos video:first-child{display:block;width:100%;aspect-ratio:16/9;max-height:280px;min-height:130px;background:#071315;object-fit:contain}
.sl-peer-videos video:nth-child(2){position:absolute;bottom:9px;inset-inline-end:9px;width:27%;max-width:140px;aspect-ratio:3/4;max-height:130px;object-fit:cover;background:#122c2e;border:2px solid #d8bd88;border-radius:11px;box-shadow:0 4px 16px #0008}
.sl-peer-status{font-size:12px;font-weight:600;line-height:1.6;margin:4px 0}
.sl-peer-waitrow{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid #8885}
.sl-peer-waitrow span{flex:1;min-width:150px;font-size:12px}
.sl-peer-outcome-search{display:grid;gap:3px;margin:6px 0}
.sl-peer-outcome-search label{font-size:12px;font-weight:600}
.sl-peer-outcome-search input{width:100%;min-height:37px;border:1px solid #7ba29b;border-radius:9px;background:transparent;color:inherit;font:inherit;padding:5px 10px}
html[data-sanabil-theme="dark"] .sl-peer-panel{background:#143633;color:#f1f4eb;border-color:#9d8859}
html[data-sanabil-theme="dark"] .sl-peer-panel button{color:#f4ede2}
html[data-sanabil-theme="dark"] .sl-peer-outcome-search input{background:#1b4540;border-color:#598981;color:#fff}
@media(min-width:900px){
.sl-peer-active{display:grid;grid-template-columns:minmax(285px,37%) minmax(0,1fr);gap:12px;align-items:start}
.sl-peer-active>.sl-session-head,.sl-peer-active>.sl-session-filter{grid-column:1/-1}
.sl-peer-active>.sl-peer-panel{grid-column:1;grid-row:3;position:sticky;top:10px;z-index:12;max-height:calc(100vh - 28px);overflow-y:auto}
.sl-peer-active>.sl-data{grid-column:2;grid-row:3;min-width:0}
.sl-peer-active>.sl-data .sl-student-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr))}
}
/* The original video stays in a height-preserving stage while docked.
   DO NOT make the entire panel sticky: it captures the viewport and
   collapses repeatedly during scroll on Chrome Android. */
.sl-peer-video-stage{display:flow-root;min-width:0}
.sl-peer-active>.sl-data{scroll-margin-top:12px}
@media(max-width:899px){
 .sl-peer-active>.sl-peer-panel{position:relative;top:auto;z-index:auto;overflow:visible}
 .sl-peer-active>.sl-data{position:relative;scroll-margin-top:12px}
 .sl-peer-floating .sl-peer-videos{
   position:fixed;
   inset-inline-end:10px;
   bottom:calc(102px + env(safe-area-inset-bottom, 0px));
   width:clamp(136px,40vw,188px);
   max-width:calc(100vw - 24px);
   margin:0;
   z-index:120;
   pointer-events:none;
   border-radius:12px;
   box-shadow:0 6px 20px #0009;
 }
 .sl-peer-floating .sl-peer-videos video:first-child{
   display:block;
   width:100%;
   height:auto;
   aspect-ratio:16 / 9;
   min-height:0;
   max-height:none;
   object-fit:cover;
 }
 .sl-peer-floating .sl-peer-videos video:nth-child(2){
   width:28%;
   max-width:55px;
   max-height:58px;
   bottom:4px;
   inset-inline-end:4px;
   border-width:1px;
 }
 .sl-peer-floating .sl-peer-videos:after{
   content:'تسميع مباشر';
   position:absolute;
   top:3px;
   inset-inline-start:5px;
   padding:1px 5px;
   border-radius:5px;
   background:#092323cf;
   color:#fff;
   font-size:9px;
   font-weight:600;
 }
}

@media(max-width:520px){
.sl-peer-panel{padding:8px}
.sl-peer-videos video:first-child{min-height:120px;max-height:220px}
.sl-peer-videos video:nth-child(2){width:25%;max-width:95px}
.sl-peer-panel .sl-peer-header{gap:3px}
.sl-peer-panel button{font-size:12px}
}

/* Actionable assignment anomalies, visible in teacher and circle administration. */
.sl-assignment-warning{border:1px solid #d8bd88;border-inline-start:5px solid #b68b38;border-radius:12px;background:#f9f4e9;color:#493a1c;padding:12px 15px;line-height:1.75;margin:10px 0}
.sl-assignment-warning strong{font-size:14px}
.sl-assignment-warning ul{margin:6px 0;padding-inline-start:21px}
.sl-assignment-warning li{font-size:12px;margin:4px 0}
.sl-assignment-warning p{font-size:11px;margin:6px 0 0}
html[data-sanabil-theme="dark"] .sl-assignment-warning{background:#293a35;color:#f7e8c7;border-color:#a59057}
