.ct-dialog{width:min(1120px,calc(100vw - 40px));height:min(840px,calc(100dvh - 64px));max-width:none;max-height:none;padding:0;border:1px solid #e3e1ef;border-radius:18px;color:#262437;background:#fafaff;box-shadow:0 24px 80px #24204430}.ct-dialog::backdrop{background:#24203666}.ct-dialog[open]{display:flex;flex-direction:column}.ct-dialog [hidden]{display:none!important}.ct-head{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;padding:20px 28px;border-bottom:1px solid #eceaf3}.ct-head h2{margin:3px 0 0;font-size:22px}.ct-head small,.ct-help,.ct-meta{color:#817c90;font-size:12px;line-height:1.6}.ct-content{flex:1;min-height:0;overflow:auto;padding:24px 28px}.ct-status{padding:10px 28px;color:#625b9c;font-size:13px;min-height:20px;white-space:pre-wrap}.ct-button{border:1px solid #ddd9ea;border-radius:8px;background:white;color:#514967;min-height:36px;padding:8px 14px;cursor:pointer;font:inherit;font-size:13px}.ct-button:hover{border-color:#746be0;background:#f4f2ff}.ct-primary{background:#655ed8;color:white;border-color:#655ed8}.ct-primary:hover{background:#554fca;color:white}.ct-toolbar,.ct-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.ct-toolbar{margin-bottom:20px}.ct-toolbar p{flex:1;color:#817c90;font-size:13px}.ct-toolbar h3{flex:1;margin:0}.ct-task-list{display:grid;gap:16px}.ct-task,.ct-result{background:#fff;border:1px solid #e6e3ef;border-radius:12px;padding:20px}.ct-task-title{display:flex;justify-content:space-between;gap:24px}.ct-task h3{margin:10px 0;font-size:18px}.ct-task p{color:#70697e;white-space:pre-wrap;line-height:1.6}.ct-pill{display:inline-block;padding:4px 8px;border-radius:5px;background:#f0edff;color:#6960bc;font-size:12px}.ct-count{display:flex;flex-direction:column;align-items:flex-end;gap:4px;white-space:nowrap}.ct-count strong{font-size:24px}.ct-count span{font-size:12px;color:#817c90}.ct-actions{margin-top:14px}.ct-form{display:grid;gap:18px}.ct-form label,.ct-result label{display:grid;gap:7px;font-size:13px;color:#625a74}.ct-form input:not([type=checkbox]),.ct-form textarea,.ct-form select,.ct-result textarea{box-sizing:border-box;width:100%;border:1px solid #dfdaeb;border-radius:8px;background:#fff;padding:10px 12px;color:#30283f;font:inherit;font-size:14px}.ct-form input:focus,.ct-form textarea:focus,.ct-form select:focus,.ct-result textarea:focus{outline:2px solid #b8b0f5;outline-offset:1px}.ct-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ct-form fieldset{border:1px solid #e4e0ef;border-radius:12px;padding:18px}.ct-form legend{padding:0 8px;font-size:14px}.ct-roster{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}.ct-person{display:flex;gap:10px;align-items:center;background:white;padding:8px;border-radius:8px}.ct-person label{display:flex;align-items:center;white-space:nowrap;flex:1}.ct-person input[data-group-for]{max-width:100px}.ct-form footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #e7e4f0;padding-top:18px}.ct-empty{text-align:center;padding:60px 20px;color:#8a8398;line-height:1.8}.ct-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}.ct-result header{display:flex;justify-content:space-between;align-items:center;gap:10px}.ct-result h4{margin:0}.ct-result pre,.ct-analysis pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:13px;line-height:1.8;background:#f8f7fb;padding:12px;border-radius:8px}.ct-preview{border:1px solid #ded9eb;border-radius:12px;overflow:hidden;margin-top:20px}.ct-preview header{padding:12px;display:flex;align-items:center;justify-content:space-between;background:white}.ct-preview iframe{width:100%;height:60vh;display:block;border:0}.ct-analysis{margin-top:16px;font-size:13px}.ct-analysis summary{cursor:pointer;color:#6258b4}@media(max-width:640px){.ct-dialog{width:calc(100vw - 16px);height:calc(100dvh - 24px)}.ct-head,.ct-content{padding:16px}.ct-form-grid{grid-template-columns:1fr}.ct-form footer{align-items:flex-start;flex-direction:column}}

.ct-evidence-image{display:block;max-width:100%;max-height:300px;object-fit:contain;margin:12px 0}.ct-evidence-audio{display:block;width:min(100%,420px);margin:12px 0}.ct-evidence-link{display:block;margin:8px 0;color:#655ed8}
.ct-frame-evidence{margin:12px 0}.ct-frame-thumbnail{display:flex;align-items:center;justify-content:center;width:100%;height:180px;padding:0;overflow:hidden;border:1px solid #ded9eb;border-radius:10px;background:#f8f7fb;color:#817c90;cursor:pointer;font:inherit;font-size:13px}.ct-frame-thumbnail:hover{border-color:#746be0}.ct-frame-thumbnail-image{display:block;width:100%;height:100%;object-fit:contain}.ct-image-preview{position:fixed;inset:0;margin:auto;width:min(1100px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:16px;border:1px solid #e3e1ef;border-radius:14px;background:#fff}.ct-image-preview::backdrop{background:#242036aa}.ct-image-preview .ct-button{display:block;margin:0 0 12px auto}.ct-image-preview img{display:block;max-width:100%;max-height:calc(100dvh - 110px);object-fit:contain;margin:auto}

.ct-demo-notice{background:#f0edff;border-left:3px solid #7669d9;padding:10px 12px;color:#5b518e!important}.ct-analysis-metrics{display:flex;gap:24px;flex-wrap:wrap;margin:18px 0}.ct-analysis-metrics strong{font-size:22px;color:#655ed8}.ct-analysis h4{margin:18px 0 8px}.ct-analysis ul{padding-left:20px;line-height:1.8}.ct-analysis blockquote{margin:10px 0;padding:10px 14px;background:#f8f7fc;border-left:2px solid #d9d3ef;white-space:pre-wrap}.ct-analysis blockquote small{display:block;color:#888099;margin-top:5px}

/* Restore native dialog centering after the global margin reset. */
.ct-dialog{position:fixed;inset:0;margin:auto}
.history-removed-records{margin-top:24px}
.history-removed-records>summary{cursor:pointer;padding:12px 0;color:var(--text-2)}
body.ui-teacher .prep-library-card-head .prep-library-more-panel{top:calc(100% + 6px);bottom:auto}

/* Classroom publisher: preview first, optional settings progressively disclosed. */
.ct-dialog{width:min(1180px,calc(100vw - 32px));height:min(900px,calc(100dvh - 32px));background:#f6f7fb;border:0;border-radius:20px}.ct-head{padding:18px 26px}.ct-head h2{font-size:20px}.ct-content{padding:24px 28px}.ct-status:empty{display:none}.ct-publisher{display:block}.ct-publish-heading{align-items:flex-start;margin-bottom:24px}.ct-publish-heading>div{flex:1}.ct-publish-heading small,.ct-settings-pane>div>small{font-size:11px;color:#7560d8;letter-spacing:2px}.ct-publish-heading h3{font-size:24px;color:#282738;margin:7px 0}.ct-publish-heading p{margin:6px 0 0}.ct-publish-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:24px;align-items:start}.ct-source-pane{min-width:0}.ct-source-pane h4{margin:0;flex:1;font-size:15px;font-weight:600}.ct-kind-label{display:flex!important;align-items:center;gap:8px!important;font-size:12px!important}.ct-kind-label select{width:auto;font-size:12px;padding:7px 9px}.ct-frame-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ct-frame-card{min-width:0;display:block;text-align:left;padding:10px;border:1px solid #e9e7f0;border-radius:14px;background:white;font:inherit;cursor:pointer;color:#2d2a3c;transition:border-color .15s,box-shadow .15s}.ct-frame-card:hover{border-color:#9c8be0}.ct-frame-card[aria-pressed=true]{border:2px solid #7560d8;padding:9px;box-shadow:0 4px 18px #7560d817}.ct-frame-card strong{display:block;font-weight:600;font-size:14px;margin:12px 4px 4px}.ct-frame-card small{display:block;color:#888397;font-size:11px;margin:0 4px 5px}.ct-frame-card-preview{aspect-ratio:4/3;min-height:150px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:#f6f5fa;color:#898198;font-size:12px;overflow:hidden;text-align:center}.ct-frame-card-preview img,.ct-frame-card-preview iframe{width:100%;height:100%;border:0;display:block;object-fit:contain;pointer-events:none}.ct-frame-tools{justify-content:flex-end;margin-top:15px;gap:8px}.ct-frame-tools>span{flex:1}.ct-settings-pane{display:grid;gap:20px;background:#fff;padding:22px;border-radius:16px;min-width:0}.ct-settings-pane h4{font-size:20px;font-weight:600;margin:5px 0 0}.ct-field-label{font-size:13px;color:#625a74}.ct-settings-pane input:not([type=checkbox]),.ct-settings-pane textarea,.ct-settings-pane select{background:#f6f7fb;border:1px solid #eeecf4;padding:11px 12px}.ct-mode-switch{display:grid;grid-template-columns:1fr 1fr;padding:4px;background:#f6f7fb;border-radius:10px;gap:4px;margin-top:8px}.ct-mode-switch .ct-button{background:transparent;color:#817a92;border:0;padding:10px 8px;font-size:13px}.ct-mode-switch [aria-pressed=true]{background:white;color:#7354c1;box-shadow:0 2px 7px #2420360a}.ct-settings-pane details{border-top:1px solid #efecf5;padding-top:16px;min-width:0}.ct-settings-pane summary{display:flex;gap:6px;align-items:center;font-size:12px;color:#726a85;cursor:pointer;list-style:none}.ct-settings-pane summary::-webkit-details-marker{display:none}.ct-settings-pane summary:before{content:'＋';color:#7560d8;font-size:16px}.ct-settings-pane details[open]>summary:before{content:'−'}.ct-settings-pane summary span,.ct-settings-pane summary small{margin-left:auto;color:#938b9f;font-size:11px}.ct-settings-pane details>label,.ct-settings-pane details>.ct-toolbar{margin-top:14px}.ct-settings-pane .ct-roster{grid-template-columns:1fr;max-height:320px;overflow:auto;margin-top:12px;overscroll-behavior:contain}.ct-settings-pane .ct-person{padding:7px 0}.ct-settings-pane .ct-person input[data-group-for]{padding:5px 8px}.ct-settings-pane input[type=checkbox]{width:17px;height:17px;accent-color:#7560d8}.ct-group-controls{display:grid;gap:10px;padding:14px;border-radius:10px;background:#f8f6fd}.ct-group-controls .ct-help{margin:0}.ct-group-summary{color:#76698f;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.ct-publisher>footer{position:sticky;bottom:-24px;z-index:2;margin:24px -28px -24px;padding:16px 28px;background:#fff;border-top:1px solid #e9e5f0}.ct-publisher>footer .ct-primary{padding:12px 24px;border:0;border-radius:10px;min-height:44px;box-shadow:0 4px 12px #7560d826;background:#7560d8}.ct-publisher>footer .ct-primary:disabled{opacity:.5;cursor:default}.ct-frame-grid>.ct-help{grid-column:1/-1;min-height:200px;display:flex;align-items:center;justify-content:center}.ct-source-pane>[data-link]{padding:20px;background:white;border-radius:12px}@media(max-width:850px){.ct-publish-layout{grid-template-columns:1fr}.ct-settings-pane{gap:17px}.ct-frame-card-preview{min-height:140px;aspect-ratio:16/10}.ct-publish-heading h3{font-size:21px}}@media(max-width:640px){.ct-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px);border-radius:14px}.ct-publisher>footer{bottom:-16px;margin:20px -16px -16px;padding:14px 16px;flex-direction:column;gap:10px}.ct-publisher>footer button{width:100%}.ct-frame-grid{gap:10px}.ct-frame-card-preview{min-height:115px}.ct-settings-pane{padding:17px}.ct-kind-label{flex-wrap:wrap}.ct-publish-heading h3{font-size:20px}.ct-head{gap:10px}}@media(pointer:coarse){.ct-dialog button{min-height:44px}.ct-form input:not([type=checkbox]),.ct-form select,.ct-form textarea{font-size:16px}}@media(prefers-reduced-motion:reduce){.ct-frame-card{transition:none}}

.task-frame-preview-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(1120px,calc(100vw - 32px));height:min(780px,calc(100dvh - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid #e3e1ef;border-radius:16px;background:#fff;color:#37334b;overflow:hidden}
.task-frame-preview-dialog[open]{display:flex;flex-direction:column}
.task-frame-preview-dialog::backdrop{background:#24203688}
.task-frame-preview-dialog .task-frame-preview-head{display:flex;flex:none;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid #e9e6f2;margin:0}
.task-frame-preview-head strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}
.task-frame-preview-head .ct-button{flex:none;width:auto;min-width:90px;white-space:nowrap;font-size:13px;line-height:20px}
.task-frame-preview-content{flex:1;min-height:0;position:relative;overflow:hidden}
.task-frame-preview-canvas{display:block;width:100%;height:100%;border:0}
.ct-image-gallery{position:fixed;inset:0;margin:auto;width:100vw;height:100dvh;max-width:none;max-height:none;padding:0;border:0;background:#111;color:#fff}.ct-image-gallery::backdrop{background:#111}.ct-image-gallery header,.ct-image-gallery footer{display:flex;align-items:center;justify-content:space-between;padding:18px 28px;background:#171717}.ct-image-gallery main{display:flex;align-items:center;justify-content:space-between;gap:18px;height:calc(100dvh - 132px);padding:20px}.ct-gallery-stage{display:flex;align-items:center;justify-content:center;flex:1;height:100%;min-width:0;position:relative}.ct-gallery-stage img{max-width:100%;max-height:100%;object-fit:contain}.ct-gallery-stage p{position:absolute;color:#d2d2d2}.ct-gallery-nav{width:56px;height:56px;border:1px solid #ffffff55;border-radius:50%;background:#ffffff18;color:#fff;font-size:42px;line-height:1;cursor:pointer}.ct-gallery-nav:hover{background:#ffffff30}.ct-image-gallery .ct-button{color:#fff;background:#ffffff12;border-color:#ffffff44}
