.gt-panel:has(.task-gallery){width:calc(100vw - 24px);max-width:none;height:calc(100dvh - 24px);max-height:none}.gt-panel:has(.task-gallery)>.gt-head{display:none}.gt-panel:has(.task-gallery)>.gt-body{padding:0;overflow:hidden}.task-gallery{height:100%;min-height:480px;display:flex;flex-direction:column;background:#efeff5;color:#29293d}.task-gallery button,.tg-student-viewer button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:30px;padding:4px 10px;border:1px solid #dddae9;border-radius:7px;background:#fff;color:inherit;cursor:pointer}.task-gallery svg,.tg-student-viewer svg{width:17px;height:17px;flex-shrink:0}.task-gallery button:disabled,.tg-student-viewer button:disabled{opacity:.35;cursor:default}.task-gallery button[aria-pressed=true]{background:#eee8fc;color:#6d50ba;border-color:#c8b8eb}.task-gallery>header,.tg-student-viewer>header{display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 14px;background:#fff;border-bottom:1px solid #dfdce9}.task-gallery h3{margin:0;font-size:16px}.tg-total{font-size:12px;color:#86829a}.tg-spacer{flex:1}.task-gallery>nav{display:flex;align-items:center;gap:5px;padding:8px 12px}.tg-filters{display:flex;gap:4px}.task-gallery .tg-icon{width:32px;padding:0}.tg-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(var(--tg-cols),minmax(0,1fr));grid-template-rows:repeat(var(--tg-cols),minmax(0,1fr));gap:7px;padding:0 10px 8px}.tg-grid>article{background:white;min-height:0;overflow:hidden;border:1px solid #ddd9e8;border-radius:7px;display:flex;flex-direction:column}.task-gallery .tg-card-head{border:0;border-bottom:1px solid #efedf5;border-radius:0;justify-content:space-between;flex-shrink:0;font-size:12px}.tg-card-head>span{margin-left:auto;color:#888197;font-size:11px}.tg-card-head svg{width:13px}.tg-card-answer{flex:1;min-height:0;overflow:auto;padding:0 8px}.tg-card-answer .gt-answer-heading,.tg-card-answer .gt-answer-actions,.tg-card-answer .gt-shared-note,.tg-card-answer .gt-small,.tg-card-answer .gt-answer-empty p{display:none}.tg-card-answer .gt-answer-content{height:100%;padding:0;display:flex;flex-direction:column}.tg-card-answer .ct-frame-evidence{flex:1;min-height:0;margin:0}.tg-card-answer .ct-frame-thumbnail{width:100%;height:100%;padding:0;border:0;background:#fff}.tg-card-answer img,.tg-student-viewer img{width:100%;height:100%;object-fit:contain!important;max-height:100%;aspect-ratio:auto!important}.tg-card-answer pre{white-space:pre-wrap;font-size:13px;line-height:1.6}.tg-card-answer .gt-answer-empty{height:100%;min-height:0;display:grid;place-content:center;font-size:12px;padding:8px}.task-gallery>footer,.tg-student-viewer>footer{display:flex;align-items:center;justify-content:center;gap:12px;padding:6px 14px;background:white;border-top:1px solid #dfdce9;font-size:12px;min-height:42px}.tg-student-viewer{width:calc(100vw - 24px);height:calc(100dvh - 24px);max-width:none;max-height:none;padding:0;border:0;border-radius:10px;background:#f1eff7;color:#29293d;overflow:hidden}.tg-student-viewer[open]{display:flex;flex-direction:column}.tg-student-viewer::backdrop{background:#24203399}.tg-student-viewer>main{flex:1;min-height:0;overflow:auto;background:white;margin:8px;padding:12px}.tg-student-viewer .gt-answer-heading{display:none}.tg-student-viewer .ct-frame-evidence,.tg-student-viewer .ct-frame-thumbnail{height:100%;max-height:calc(100dvh - 180px);background:white}.tg-student-viewer .gt-answer-content{height:calc(100% - 50px)}.tg-student-viewer pre{white-space:pre-wrap;font-size:18px;line-height:1.7}.tg-student-viewer .gt-answer-actions{display:flex;gap:10px}.tg-student-viewer .ct-evidence-image{max-height:65dvh}.tg-student-viewer iframe{width:100%;height:100%;border:0}

#body-monitor:has(.task-gallery){height:calc(100dvh - 130px);padding:0}.display-classroom-dialog:has(.task-gallery){width:calc(100vw - 24px);max-width:none;height:calc(100dvh - 24px)}.display-classroom-dialog:has(.task-gallery)>header{display:none}.display-classroom-dialog:has(.task-gallery)>main{height:100%;padding:0}.tg-card-answer:has(>img){overflow:hidden;padding:0}.tg-card-answer>img{display:block}.tg-card-answer>.monitor-caption{display:none}.tg-card-answer>.gt-answer-actions{display:none}.tg-card-answer .monitor-empty{min-height:0;height:100%;display:grid;place-content:center;font-size:12px}.tg-student-viewer>main:has(>img){padding:0;overflow:hidden}.tg-student-viewer .monitor-caption{display:none}
.tg-card-answer .gt-answer-content:has(.ct-frame-evidence)>pre{display:none}.tg-card-answer .gt-answer-content:has(.ct-frame-evidence)>.gt-draft-note{display:none}.task-gallery .tg-card-answer .ct-frame-thumbnail{border-radius:0}.tg-student-viewer .ct-frame-thumbnail{border:0;border-radius:0}.tg-student-viewer>header>span:not(.tg-spacer){font-size:12px;color:#878096}

.ct-dialog:has(.task-gallery){width:calc(100vw - 24px);max-width:none;height:calc(100dvh - 24px);max-height:none}.ct-dialog:has(.task-gallery)>.ct-head{display:none}.ct-dialog:has(.task-gallery)>.ct-content{padding:0;flex:1;min-height:0;overflow:hidden}

.task-gallery>header a{display:inline-flex;align-items:center;gap:5px;color:#7154ba;text-decoration:none;font-size:12px}.tg-instructions{position:relative;font-size:12px}.tg-instructions summary{cursor:pointer}.tg-instructions p{position:absolute;right:0;top:20px;z-index:2;width:min(320px,70vw);padding:14px;background:white;border:1px solid #ddd9e9;border-radius:8px;box-shadow:0 8px 24px #29203c20;white-space:pre-wrap}

.tg-card-answer:has(>iframe){padding:0;overflow:hidden}.tg-card-answer>iframe{display:block;width:100%;height:100%;border:0;pointer-events:none}.tg-empty{margin:0;padding:12px;color:#857d96;font-size:13px;line-height:1.6}

body.ui-display .gt-panel:has(.task-gallery),body.ui-display .ct-dialog:has(.task-gallery),body.ui-display .display-classroom-dialog:has(.task-gallery){position:fixed!important;inset:0!important;margin:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;border:0!important;border-radius:0!important;padding:0!important}body.ui-display .tg-student-viewer{inset:0;margin:0;width:100vw;height:100dvh;border-radius:0}.tg-answer-modes{display:flex;gap:4px;margin-right:12px}

.tg-material{display:none;flex:1;min-height:0;background:#fff}.tg-material iframe{display:block;width:100%;height:100%;border:0}.task-gallery[data-view=material]>.tg-material{display:block}.task-gallery[data-view=material]>nav,.task-gallery[data-view=material]>.tg-grid,.task-gallery[data-view=material]>footer{display:none}.task-gallery [data-material]{color:#7154ba;flex-shrink:0}

/* Display result pages fill the viewport from the first loading state. */
body.ui-display .display-student-monitor {
  position:fixed;
  inset:0;
  margin:0;
  box-sizing:border-box;
  width:100vw;
  height:100dvh;
  max-width:none;
  max-height:none;
  border:0;
  border-radius:0;
  padding:0;
}
body.ui-display .display-student-monitor[open] { display:flex; flex-direction:column; }
body.ui-display .display-student-monitor>main {
  flex:1;
  min-height:0;
  max-height:none;
  padding:0;
  overflow:hidden;
}
body.ui-display .gt-panel:has(.task-gallery),
body.ui-display .ct-dialog:has(.task-gallery),
body.ui-display .display-classroom-dialog:has(.task-gallery) {
  transform:none!important;
  box-sizing:border-box;
  min-height:0;
}
body.ui-display .display-classroom-dialog:has(.task-gallery)>main { max-height:none; min-height:0; }
body.ui-display .gt-panel:has(.task-gallery)>.gt-body { flex:1; min-height:0; }
body.ui-display .task-gallery { min-height:0; }
body.ui-display .student-monitor-viewer {
  inset:0;
  margin:0;
  width:100vw;
  height:100dvh;
  border:0;
  border-radius:0;
}
