/* TMTD ACADEMY — styles for tmtd-viewer.js. Shared by the student, tutor portals; edit here. */
.rview-back{position:fixed;inset:0;background:rgba(11,43,92,.62);backdrop-filter:blur(4px);z-index:10000;
  display:none;align-items:center;justify-content:center;padding:22px;}
.rview-back.open{display:flex;}
.rview-box{background:#fff;border-radius:16px;width:100%;max-width:1020px;height:92vh;display:flex;flex-direction:column;
  overflow:hidden;box-shadow:0 24px 64px rgba(11,43,92,.34);}
.rview-head{display:flex;align-items:center;gap:12px;padding:13px 18px;border-bottom:1.5px solid var(--border);background:#fff;flex-shrink:0;}
.rview-ttl{font-family:'Fraunces',serif;font-size:16px;color:var(--navy);line-height:1.3;flex:1;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.rview-sub{font-size:11.5px;color:var(--muted);font-family:'DM Sans',sans-serif;margin-top:2px;font-weight:500;}
.rview-act{padding:8px 15px;border-radius:9px;font-size:12.5px;font-weight:700;cursor:pointer;
  font-family:'DM Sans',sans-serif;text-decoration:none;white-space:nowrap;border:1.5px solid var(--border);
  background:#fff;color:var(--navy);display:inline-flex;align-items:center;gap:6px;}
.rview-act.primary{background:var(--navy);color:#fff;border-color:var(--navy);}
.rview-act:hover{opacity:.88;}
.rview-x{width:36px;height:36px;border-radius:9px;border:1.5px solid var(--border);background:#fff;color:var(--navy);
  font-size:19px;line-height:1;cursor:pointer;flex-shrink:0;font-family:'DM Sans',sans-serif;}
.rview-body{flex:1;background:#f1f5f9;overflow:auto;display:flex;align-items:center;justify-content:center;min-height:0;}
.rview-body iframe{width:100%;height:100%;border:0;background:#fff;}
.rview-body img{max-width:100%;max-height:100%;object-fit:contain;display:block;}
.rview-body video{max-width:100%;max-height:100%;background:#000;}
.rview-msg{text-align:center;padding:44px 26px;color:var(--muted);font-size:13.5px;line-height:1.7;font-family:'DM Sans',sans-serif;}
@media(max-width:640px){
  .rview-back{padding:0;}
  .rview-box{height:100vh;max-width:100%;border-radius:0;}
  .rview-head{flex-wrap:wrap;gap:8px;padding:11px 13px;}
  .rview-ttl{flex:1 1 100%;order:1;white-space:normal;}
  .rview-act{order:2;flex:1;justify-content:center;padding:9px 10px;}
  .rview-x{order:3;}
}
