dialog.ps-art-view[open]{display:block;position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;padding:0;border:0;border-radius:0;margin:0;background:#f5f4ef}
.ps-art-view iframe{display:block;width:100%;height:100%;border:0}
.ps-origin{display:inline-flex;align-items:center;align-self:center;white-space:nowrap;border-radius:6px;padding:4px 8px;font:650 12px/1.35 system-ui;color:#256344;background:#edf5ee}
.cs-art-tools,.dr-stage-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
:is(.cs-art-tools,.dr-stage-tools) button:is([data-art-file],[data-studio-view]){min-height:42px;padding:8px 14px;border:1px solid #d8ddd6;border-radius:10px;background:white;color:#354039;font:650 14px/1.35 system-ui;cursor:pointer}
:is(.cs-art-tools,.dr-stage-tools) button[data-studio-view]{color:#fff;background:#266745;border-color:#266745}
.ps-file-status:empty{display:none}.ps-file-status{color:#98462e;font-size:14px}
.cs-art-stage[role=button],.dr-stage [role=button]{cursor:zoom-in}
.classroom-studio .cs-art-stage,.dr-stage .dr-solo{display:grid;place-items:center;min-height:120px;padding:clamp(8px,1.5vw,20px);background:#f3f3ef;border:0;border-radius:14px}
.classroom-studio .cs-art-stage img.cs-full-image,.dr-stage .dr-solo img{width:auto;height:auto;max-width:100%;max-height:62dvh;object-fit:contain;margin:0}
.ps-replacement[open]{position:fixed;inset:0;margin:auto;width:min(400px,calc(100vw - 32px));height:fit-content;max-height:94dvh;padding:24px;border:1px solid #d9dfd6;border-radius:18px;background:white;color:#292e28;box-shadow:0 16px 55px #19292238;font:500 15px/1.55 system-ui}
.ps-replacement::backdrop{background:#17261d83}
.ps-replacement h2{font-size:21px;line-height:1.35;margin:0 0 9px}.ps-replacement p{margin:0 0 20px;color:#505850}
.ps-replacement footer{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.ps-replacement button{padding:9px 14px;min-height:44px;border-radius:10px;border:1px solid #d3d8d1;background:#fff;color:#343c34;font:650 15px system-ui;cursor:pointer}
.ps-replacement button[value=replace]{background:#216944;color:white;border-color:#216944}
.cs-upload-dialog.classroom-studio{width:min(760px,95vw)}
.cs-upload-dialog.classroom-studio .cs-modal-body{padding:clamp(14px,2vw,28px)}
.cs-simple-upload{gap:14px}
.cs-upload-dialog .cs-upload-video{border-radius:12px;background:#f7f8f4;padding:14px 16px}
.cs-upload-dialog .cs-choice{border:1px solid #daddd4;min-height:116px;border-radius:13px}
.cs-upload-dialog .cs-choice.is-main{background:#f5f8f1;border:1px solid #b6c9b4}
.cs-upload-dialog .cs-choice small{display:none}
.cs-photo-ready:not([hidden]){display:grid;justify-items:center;gap:12px;min-width:0;width:100%;margin:0;padding:0;border-radius:8px;background:transparent}
.cs-modal #diagramUploadArea #diagramUploadPreview:not([hidden]){display:block;width:auto;height:auto;max-width:100%;max-height:min(45dvh,480px);aspect-ratio:auto;object-fit:contain;margin:0 auto;border:0;border-radius:4px;padding:0;background:white}
.cs-upload-dialog .cs-replace{border-width:1px;font-size:14px}
.cs-modal[data-pencil-preview] .cs-simple-upload-footer{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}
.cs-upload-dialog .cs-simple-upload-footer{border-top:1px solid #e6e8e1;padding-top:14px}
.cs-upload-dialog .cs-simple-upload-footer .cs-primary{border:1px solid #216944;border-radius:12px;color:white;background:#216944;min-height:46px}
@media(max-width:540px){
  .cs-modal.cs-upload-dialog[open]{display:flex;flex-direction:column;position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;padding:0}
  .cs-modal.cs-upload-dialog>header{flex:none}
  .cs-modal.cs-upload-dialog .cs-modal-body{display:flex;flex:1;min-height:0;overflow-y:auto;padding:14px}
  .cs-modal.cs-upload-dialog .cs-simple-upload{display:flex;flex-direction:column;flex:1;min-width:0}
  .cs-upload-dialog .cs-simple-upload-footer{margin-top:auto;padding-bottom:max(4px,env(safe-area-inset-bottom))}
  .cs-upload-dialog .cs-simple-upload:has(.cs-photo-ready:not([hidden])) #diagramUploadArea{display:grid;align-content:center;flex:1;min-height:min-content}
  .cs-upload-dialog .cs-photo-ready{padding:0}
  .cs-upload-dialog .cs-choice{display:flex;align-items:center;min-height:56px;gap:12px;padding:8px 14px}
  .cs-upload-dialog .cs-choice-ico{width:38px;height:38px}
  .cs-upload-dialog .cs-choice strong{align-self:center}
  .cs-upload-dialog .cs-choices{grid-template-columns:1fr;gap:7px}
  .cs-upload-dialog .cs-upload-video{padding:11px 13px}
  .cs-modal #diagramUploadArea #diagramUploadPreview:not([hidden]){max-height:40dvh}
}
