#pitchSlideDialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: #202932;
  color: #edf6fa;
}
#pitchSlideDialog::backdrop, #pitchCameraDialog::backdrop { background: #060c11dc; }
.pitch-toolbar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: #161f29;
  border-bottom: 1px solid #465b6c;
}
.pitch-toolbar h2 { margin: 0; font-size: clamp(18px, 2.2vw, 27px); }
.pitch-toolbar-actions, .pitch-image-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.pitch-toolbar-actions .btn, .pitch-image-tools .btn { margin: 0; }
.pitch-script { max-width: 1180px; margin: 0 auto; font-size: clamp(1rem, 1.5vw, 1.25rem); }
.pitch-script h3 { font-size: 1.2em; }
.pitch-script-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 4fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px;
  background: #203648;
  border: 1px solid #547084;
  border-radius: 8px;
}
.pitch-script-art {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 434 / 80;
  border-radius: 12px;
  background: url('/pitch-script-reference.png') 52.94% var(--art-y) / 107.84% auto no-repeat;
}
.pitch-script-art-caption {
  position: absolute;
  inset: 53% 4% 12% 30%;
  display: flex;
  align-items: center;
  padding-left: 2cqw;
  background: #fbf6e2;
  color: #091843;
  font-size: 4.5cqw;
  font-weight: 800;
}
.pitch-script-row:nth-of-type(4) .pitch-script-art-caption { background: #dcf6fc; }
.pitch-script-row:nth-of-type(1) { --art-y: 4.03%; }
.pitch-script-row:nth-of-type(2) { --art-y: 21.57%; }
.pitch-script-row:nth-of-type(3) { --art-y: 39.11%; }
.pitch-script-row:nth-of-type(4) { --art-y: 57.06%; }
.pitch-script-row:nth-of-type(5) { --art-y: 75.00%; }
.pitch-script-row:nth-of-type(6) { --art-y: 93.15%; }
.pitch-script label { display: grid; gap: 8px; min-width: 0; font-size: inherit; }
@media (max-width: 700px) {
  .pitch-script-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pitch-script-art { width: min(100%, 434px); }
}
.pitch-script textarea { box-sizing: border-box; width: 100%; padding: 10px; font: inherit; background: #102d3b; color: #f1f8ff; border: 1px solid #6d93a7; border-radius: 4px; }
.pitch-script textarea::placeholder { color: #a1b9c8; opacity: 1; }
.pitch-version-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.pitch-version-tabs .btn[aria-pressed="true"] {
  background: #2c5168;
  color: #fff;
  border-color: #83ccff;
}
.pitch-status { padding: 8px 24px 0; min-height: 1.5em; color: #ffd166; }
.pitch-editor { padding: 12px clamp(10px, 2vw, 24px) 24px; }
.pitch-preview { container-type: inline-size; width: min(100%, 1440px); margin: 0 auto; }
.pitch-slide.pitch-slide-editable { aspect-ratio: auto; grid-template-rows: auto auto auto; }
.pitch-inline-header { display: grid; grid-template-columns: auto minmax(0, 3fr) minmax(0, 1.3fr) minmax(5rem, .65fr); gap: 10px 16px; align-items: end; }
.pitch-inline-header > img { width: clamp(38px, 5.4cqw, 72px); align-self: center; }
.pitch-inline-header > label:last-child { grid-column: 2 / -1; }
.pitch-slide-editable label { display: grid; gap: 4px; min-width: 0; font-size: clamp(13px, 1.3cqw, 18px); color: #a4edf9; font-weight: 700; }
.pitch-slide-editable input:not([type=file]), .pitch-slide-editable textarea { box-sizing: border-box; min-width: 0; width: 100%; padding: 8px 10px; border: 1px solid #6895a5; border-radius: 5px; background: #102e3a; color: #fff; font: inherit; font-weight: 500; font-size: clamp(16px, 1.5cqw, 21px); }
.pitch-slide-editable textarea { resize: vertical; }
.pitch-slide-editable input::placeholder, .pitch-slide-editable textarea::placeholder { color: #829eac; opacity: 1; }
.pitch-field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.pitch-charity-row { grid-template-columns: minmax(0, 2fr) minmax(5.2rem, 1fr); }
.pitch-inline-features, .pitch-inline-prices { display: grid; align-content: start; gap: 8px; min-width: 0; }
.pitch-slide-editable .pitch-slide-details h3 { font-size: clamp(14px, 1.4cqw, 20px); }
.pitch-image-tools { justify-content: center; padding: 8px; border-top: 1px solid #367182; }
.pitch-image-tools .btn { font-size: 11px; padding: 7px; }
#pitchSlideDialog [hidden] { display: none; }
.pitch-slide {
  box-sizing: border-box;
  aspect-ratio: 16/9;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 1.35cqw;
  padding: 2.2cqw 3.2cqw;
  background: radial-gradient(ellipse at center, #075364 0%, #042b36 92%);
  color: #f3f9fb;
  font-size: 1.65cqw;
  line-height: 1.22;
  overflow-wrap: anywhere;
}
.pitch-slide-header { display: flex; flex-wrap: wrap; align-items: center; gap: .7cqw 2.2cqw; }
.pitch-slide-header img { width: 5.4cqw; height: 5.4cqw; object-fit: contain; }
.pitch-slide-header p { flex-basis: 100%; margin: 0; }
.pitch-product-title { flex: 1 1 40%; font-weight: 800; font-size: 2.5cqw; }
.pitch-label, .pitch-slide-details h3 { color: #76e3f7; text-transform: uppercase; font-size: 1.4cqw; font-weight: 800; letter-spacing: .05em; }
.pitch-slide-images { display: grid; grid-template: 1fr 1fr / 2.05fr 1fr; gap: .85cqw 1.8cqw; min-height: 0; }
.pitch-product-image {
  display: grid;
  place-items: center;
  min-height: 0;
  margin: 0;
  border: 1px solid #38a9c0;
  background: #09242d;
  overflow: hidden;
}
.pitch-image-content { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.pitch-slide-editable .pitch-slide-images { grid-template-rows: 1fr 1fr; }
.pitch-slide-editable .pitch-product-image { grid-template-rows: minmax(0, 1fr) auto; min-height: clamp(142px, 13cqw, 190px); }
.pitch-slide-editable .pitch-image-content img { max-height: 29cqw; }
.pitch-slide-editable .pitch-image-1 img, .pitch-slide-editable .pitch-image-2 img { max-height: 12cqw; }
.pitch-slide-editable .pitch-empty-image { font-size: clamp(13px, 1.6cqw, 20px); }
.pitch-product-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.pitch-image-0 { grid-row: span 2; }
.pitch-empty-image { font-size: 1.5cqw; color: #9dc0ce; }
.pitch-slide-details { display: grid; grid-template-columns: 2.05fr 1fr; gap: 1.8cqw; }
.pitch-slide-details h3, .pitch-slide-details p { margin: 0 0 .45cqw; }
.pitch-slide-details ul { margin: 0; padding-left: 2.05cqw; }
.pitch-slide-details li { margin-bottom: .3cqw; }
.pitch-presenting .pitch-editor { display: flex; justify-content: center; padding: 0 16px 16px; }
.pitch-presenting .pitch-preview { position: static; width: min(100%, calc((100dvh - 126px) * 16 / 9)); }
.pitch-presenting .pitch-empty-image { visibility: hidden; }
#pitchSlideDialog.pitch-fullscreen .pitch-toolbar { position: absolute; left: 0; right: 0; opacity: 0; }
#pitchSlideDialog.pitch-fullscreen .pitch-toolbar:hover, #pitchSlideDialog.pitch-fullscreen .pitch-toolbar:focus-within { opacity: 1; }
#pitchSlideDialog.pitch-fullscreen .pitch-status { display: none; }
#pitchSlideDialog.pitch-fullscreen .pitch-editor { height: 100%; align-items: center; padding: 0; }
#pitchSlideDialog.pitch-fullscreen .pitch-preview { width: min(100%, calc(100dvh * 16 / 9)); }
#pitchCameraDialog { width: min(680px, 94vw); background: #202932; color: #edf6fa; border: 1px solid #7895a8; }
#pitchCameraDialog video { display: block; width: 100%; max-height: 60dvh; background: #101820; }
.gallery-student-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 14px; margin-bottom: 12px; }
.gallery-student-header h2, .gallery-student-header p { margin: 0; }
.gallery-project-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .82rem; }
.gallery-project-links .btn { padding: 5px 8px; margin: 0; font-size: inherit; }
.gallery-project-links span { opacity: .8; padding: 5px 0; }
.gallery-slide-thumb { position: relative; display: grid; width: 100%; overflow: hidden; border: 1px solid #57899b; border-radius: 6px; }
.gallery-slide-mini { container-type: inline-size; overflow: hidden; }
.gallery-slide-mini .pitch-slide { overflow: hidden; }
.gallery-slide-caption { padding: 7px; border: 0; background: #193f50; color: #eafaff; font: inherit; cursor: pointer; }
.gallery-slide-caption::after { position: absolute; inset: 0; content: ''; }
.gallery-slide-thumb:focus-within, .gallery-slide-thumb:hover { outline: 2px solid #76e3f7; outline-offset: 2px; }
.gallery-slide-empty { display: grid; min-height: 92px; place-items: center; padding: 12px; border: 1px dashed #57899b; border-radius: 6px; }
.gallery-upload-tools { margin-top: 10px; }
.gallery-upload-tools summary { cursor: pointer; }
.gallery-upload-tools > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.gallery-upload-tools input { display: block; max-width: 100%; }
.gallery-upload-tools p:empty { display: none; }
.assignment-slide-card {
  position: relative;
  display: grid;
  width: min(100%, 1200px);
  margin: 18px auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #68bbce;
  border-radius: 10px;
}
.assignment-slide-preview { container-type: inline-size; overflow: hidden; }
.assignment-slide-preview .pitch-slide { overflow: hidden; }
.assignment-slide-open {
  padding: 12px;
  border: 0;
  background: #0d5062;
  color: #f2fcff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.assignment-slide-open::after { position: absolute; inset: 0; content: ''; }
.assignment-slide-card:hover, .assignment-slide-card:focus-within { outline: 2px solid #ffd166; outline-offset: 3px; }
.pitch-feedback-footer { width: min(100%, 1440px); margin: 16px auto 0; }
.pitch-tinkercad-link { margin-top: 16px; }
.pitch-feedback-footer { border: 1px solid #485362; }
.pitch-feedback-footer > summary { padding: 14px; cursor: pointer; font-weight: 800; color: #ffd166; }
.pitch-feedback-review { padding: 0 14px 14px; }
.pitch-feedback-review form {
  font-size: clamp(1rem, 1.35vw, 1.25rem);
}
.pitch-feedback-review :is(.self-section-title, .self-radio-row legend) {
  font-size: 1.15em;
}
.pitch-feedback-review .self-radio-row {
  min-inline-size: 0;
  margin: 16px 0;
  padding: 12px 16px 16px;
  border: 1px solid #547084;
  border-radius: 8px;
  background: #243442;
  color: #f1f8ff;
  color-scheme: dark;
}
.pitch-feedback-review .self-radio-row legend {
  padding: 3px 8px;
  border-radius: 5px;
  background: #243442;
  color: #f1f8ff;
}
.pitch-feedback-review .rubric-explanation { color: #d2e8fa; font-size: 1em; }
.pitch-feedback-review .self-radio-options { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.pitch-feedback-review .self-radio-options label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  font-size: 1.1em;
  font-weight: 700;
}
.pitch-feedback-review .self-radio-options input { accent-color: #83ccff; }
.pitch-feedback-review .project-review-comments textarea {
  background: #d7efff;
  border: 1px solid #80b7da;
  border-radius: 5px;
  padding: 10px;
  color: #102e42;
  font: inherit;
}
.pitch-feedback-review .project-review-comments textarea::placeholder { color: #3e5f76; opacity: 1; }
.pitch-feedback-footer > button { margin: 0 14px 14px; }
#staffSlideFeedback > button { margin-top: 8px; }
.project-review-comments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project-review-comments > div { display: flex; flex-direction: column; align-items: start; }
.project-review-comments label { display: flex; flex: 1; flex-direction: column; width: 100%; justify-content: end; }
.project-review-comments textarea { box-sizing: border-box; width: 100%; min-height: 8rem; }
.project-review-comments .btn { margin: 8px 0 4px; }
@media (max-width: 650px) { .project-review-comments { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .pitch-toolbar { padding: 12px 14px; }
  .pitch-slide-editable .pitch-inline-header { grid-template-columns: auto minmax(0, 1fr) minmax(4.2rem, .45fr); }
  .pitch-inline-header > label:nth-child(2) { grid-column: 2 / -1; }
  .pitch-inline-header > label:nth-child(3) { grid-column: 2; }
  .pitch-inline-header > label:last-child { grid-column: 1 / -1; }
  .pitch-slide-editable .pitch-slide-details { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pitch-slide-editable .pitch-slide-images { grid-template: auto auto / minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .pitch-slide-editable .pitch-image-0 { grid-row: auto; grid-column: 1 / -1; min-height: 165px; }
  .pitch-slide-editable .pitch-image-1 img, .pitch-slide-editable .pitch-image-2 img { max-height: 26cqw; }
}

.pitch-inline-features > label { display: grid; grid-template-columns: 1.5em minmax(0, 1fr); align-items: center; gap: 8px; }
