.standalone-homework-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 14px 0 16px;
  padding: 18px 20px;
  border: 1px solid rgba(91, 190, 111, .28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(42, 103, 61, .24), rgba(13, 29, 22, .82));
}

.standalone-homework-toolbar > div:first-child {
  display: grid;
  gap: 4px;
}

.standalone-homework-toolbar strong {
  font-size: 17px;
}

.standalone-homework-toolbar span {
  color: var(--muted, #aab8ae);
  font-size: 13px;
}

.standalone-homework-row small {
  line-height: 1.45;
}

.standalone-homework-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 8, 5, .72);
  backdrop-filter: blur(5px);
}

.standalone-homework-modal {
  position: relative;
  width: min(920px, 96vw);
  max-height: 92vh;
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(117, 179, 128, .28);
  border-radius: 20px;
  background: #102019;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
}

.standalone-homework-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  color: #f3faf5;
  background: rgba(255, 255, 255, .06);
  font-size: 24px;
  cursor: pointer;
}

.standalone-homework-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.standalone-homework-form-grid .field {
  margin: 0;
}

.standalone-homework-form-grid input,
.standalone-homework-form-grid select,
.standalone-homework-form-grid textarea {
  width: 100%;
}

.standalone-homework-title-field,
.standalone-homework-description-field,
.standalone-homework-call-field,
.standalone-homework-files-field,
.standalone-homework-checkbox {
  grid-column: 1 / -1;
}

.standalone-homework-description-field textarea {
  min-height: 150px;
  resize: vertical;
}

.standalone-homework-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
}

.standalone-homework-checkbox input {
  width: 18px;
  height: 18px;
}

.standalone-homework-files-field > label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.standalone-homework-file-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px dashed rgba(116, 205, 133, .45);
  border-radius: 13px;
  background: rgba(43, 105, 62, .12);
}

.standalone-homework-file-upload input {
  width: auto;
  max-width: 70%;
}

.standalone-homework-file-upload span {
  color: var(--muted, #aab8ae);
  font-size: 12px;
}

.standalone-homework-uploaded-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.standalone-homework-uploaded-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
}

.standalone-homework-uploaded-file > div {
  display: grid;
  gap: 2px;
}

.standalone-homework-uploaded-file span {
  color: var(--muted, #aab8ae);
  font-size: 12px;
}

.standalone-homework-uploaded-file button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  color: #ffb3b3;
  background: rgba(180, 50, 50, .14);
  font-size: 20px;
  cursor: pointer;
}

.standalone-homework-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.standalone-homework-modal-actions .danger {
  margin-right: auto;
  color: #ffabab;
  border-color: rgba(255, 100, 100, .32);
}





.student-homework-recipient {
  margin: -4px 0 10px;
  color: var(--muted, #88968d);
  font-size: 13px;
}

.standalone-homework-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.standalone-homework-info-grid span {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
}

.standalone-homework-info-grid b {
  color: var(--muted, #aab8ae);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.standalone-homework-file-list {
  display: grid;
  gap: 9px;
}

.standalone-homework-file-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(78, 163, 96, .25);
  border-radius: 11px;
  color: inherit;
  background: rgba(48, 118, 66, .1);
  text-decoration: none;
}

.standalone-homework-file-list a span {
  color: #7bd48e;
  font-size: 12px;
}

@media (max-width: 760px) {
  .standalone-homework-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .standalone-homework-toolbar .row-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .standalone-homework-modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .standalone-homework-modal {
    width: 100%;
    max-height: 94vh;
    padding: 20px 16px calc(22px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
  }

  .standalone-homework-form-grid {
    grid-template-columns: 1fr;
  }

  .standalone-homework-title-field,
  .standalone-homework-description-field,
  .standalone-homework-call-field,
  .standalone-homework-files-field,
  .standalone-homework-checkbox {
    grid-column: auto;
  }

  .standalone-homework-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .standalone-homework-modal-actions .danger {
    margin-right: 0;
  }

  .standalone-homework-info-grid {
    grid-template-columns: 1fr;
  }
}
