/* Shared by the standard and script-free student pages. Colors come from the classroom. */
.student-submit-app {
  box-sizing: border-box;
  min-height: 100vh;
  margin: 0;
  padding: 24px 20px 60px;
  color: #203d32;
  color: var(--ink, #203d32);
  background: #ecfbf7;
  background: var(--classroom-canvas, #ecfbf7);
  font: 16px/1.6 Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.student-submit-app *, .student-submit-app *::before, .student-submit-app *::after { box-sizing: border-box; }
.student-submit-app > * { max-width: 700px; margin-left: auto; margin-right: auto; }
.student-submit-app a { color: #176b57; color: var(--green, #176b57); text-decoration: none; }
.student-submit-app button, .student-submit-app input, .student-submit-app select, .student-submit-app textarea { font: inherit; }
.student-submit-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #638074; color: var(--muted, #638074); font-size: 13px; }
.student-submit-top a { flex: 0 0 auto; }
.student-submit-title { margin-top: 30px; margin-bottom: 22px; }
.student-submit-title h1 { margin: 0 0 8px; font-size: 28px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.student-submit-title p { margin: 0; color: #638074; color: var(--muted, #638074); font-size: 14px; }
.student-submit-form { margin-top: 0; padding: 28px; border: 1px solid #cfe2db; border-color: var(--line, #cfe2db); border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(24,35,31,.04); }
.student-submit-form fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.student-submit-form label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: inherit; font-size: 16px; font-weight: 700; }
.student-submit-form label b { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: #edf5f0; background: var(--soft, #edf5f0); color: #176b57; color: var(--green, #176b57); font-size: 14px; }
.student-submit-form select, .student-submit-form textarea { display: block; width: 100%; padding: 13px; border: 1px solid #cfe2db; border-color: var(--line, #cfe2db); border-radius: 10px; color: inherit; background: #fff; font-size: 16px; }
.student-submit-form select { min-height: 52px; margin-bottom: 26px; }
.student-submit-form textarea { min-height: 110px; line-height: 1.65; resize: vertical; }
.student-submit-form textarea::placeholder { color: #638074; color: var(--muted, #638074); opacity: .8; }
.student-file-field { padding: 18px; border: 1px dashed #cfe2db; border-color: var(--line, #cfe2db); border-radius: 12px; color: #176b57; color: var(--green, #176b57); background: #edf5f0; background: var(--soft, #edf5f0); }
.student-file-field > svg { display: block; margin-bottom: 12px; }
.student-file-field input { display: block; width: 100%; max-width: 100%; min-height: 44px; padding: 3px; border: 0; border-radius: 0; color: inherit; background: transparent; font-size: 14px; }
.student-file-field input::file-selector-button { margin-right: 12px; padding: 9px 14px; border: 1px solid #cfe2db; border-color: var(--line, #cfe2db); border-radius: 8px; background: #fff; color: #176b57; color: var(--green, #176b57); font: inherit; cursor: pointer; }
.student-file-field input::-webkit-file-upload-button { margin-right: 12px; padding: 9px 14px; border: 1px solid #cfe2db; border-color: var(--line, #cfe2db); border-radius: 8px; background: #fff; color: #176b57; color: var(--green, #176b57); font: inherit; cursor: pointer; }
.student-selected-file { display: block; margin-top: 10px; overflow-wrap: anywhere; font-size: 13px; }
.student-file-help { margin: 10px 0 22px; color: #638074; color: var(--muted, #638074); font-size: 13px; line-height: 1.7; }
.student-text-label span { color: #638074; color: var(--muted, #638074); font-size: 12px; font-weight: 400; }
.student-submit-app .student-submit-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; margin-top: 24px; padding: 12px 16px; border: 0; border-radius: 11px; background: #176b57; background: var(--green, #176b57); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.student-submit-app .student-submit-button:hover:not(:disabled) { background: #104c3f; background: var(--green-dark, #104c3f); transform: none; }
.student-submit-app .student-submit-button:disabled { opacity: .5; cursor: wait; }
.student-submit-message { padding: 13px 15px; border-radius: 10px; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.student-submit-message.is-error { color: #a13c2c; background: #fff0ed; }
.student-submit-message.is-success { border: 1px solid #cfe2db; border-color: var(--line, #cfe2db); color: #176b57; color: var(--green, #176b57); background: #edf5f0; background: var(--soft, #edf5f0); }
.student-submit-message a { text-decoration: underline; }
.student-upload-help { margin-top: 18px; color: #638074; color: var(--muted, #638074); font-size: 13px; }
.student-upload-help summary { cursor: pointer; }
.student-upload-help p { line-height: 1.8; }
.student-upload-help a { text-decoration: underline; }
.student-submitted-section { margin-top: 32px; }
.student-submitted-section > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.student-submitted-section h2 { margin: 0; font-size: 18px; }
.student-submitted-section h2 span { margin-left: 8px; color: #638074; color: var(--muted, #638074); font-size: 13px; font-weight: 500; }
.student-submit-app .button.subtle, .student-refresh { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 8px 12px; border: 1px solid #cfe2db; border-color: var(--line, #cfe2db); border-radius: 9px; background: #edf5f0; background: var(--soft, #edf5f0); color: #176b57; color: var(--green, #176b57); font-size: 13px; font-weight: 700; cursor: pointer; }
.student-submitted-item { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; padding: 16px; border: 1px solid #cfe2db; border-color: var(--line, #cfe2db); border-radius: 14px; background: #fff; }
.student-submitted-item > img, .student-text-thumb { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #edf5f0; background: var(--soft, #edf5f0); }
.student-text-thumb { display: flex; align-items: center; justify-content: center; color: #638074; color: var(--muted, #638074); font-size: 13px; }
.student-submitted-item > div:not(.student-text-thumb) { flex: 1; min-width: 0; }
.student-submitted-item h3 { margin: 0 0 6px; font-size: 16px; overflow-wrap: anywhere; }
.student-submitted-item span { display: flex; align-items: center; gap: 5px; color: #176b57; color: var(--green, #176b57); font-size: 12px; }
.student-empty { padding: 26px 18px; border: 1px dashed #cfe2db; border-color: var(--line, #cfe2db); border-radius: 14px; color: #638074; color: var(--muted, #638074); font-size: 14px; text-align: center; }
.mobile-upload-state { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 100px 12px; text-align: center; }
.student-submit-app select:focus, .student-submit-app textarea:focus, .student-submit-app input:focus, .student-submit-app button:focus-visible { outline: 2px solid #176b57; outline-color: var(--green, #176b57); outline-offset: 3px; }
@media (max-width: 520px) {
  .student-submit-app { padding: 20px 14px 40px; }
  .student-submit-form { padding: 22px 18px; }
  .student-submit-title { margin-top: 26px; }
  .student-submit-title h1 { font-size: 25px; }
  .student-submit-top { font-size: 12px; gap: 10px; }
  .student-submitted-item { padding: 12px; gap: 10px; flex-wrap: wrap; }
  .student-submitted-item > img, .student-text-thumb { width: 52px; height: 52px; }
  .student-submitted-item h3 { font-size: 15px; }
}
