/* Notices that arrive without a refresh: connection, teacher feedback, pictures and image-service faults. */
.notice-tray {
  position: fixed;
  top: 74px;
  left: 50%;
  z-index: 60;
  width: min(620px, calc(100vw - 24px));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  pointer-events: none;
}
.notice-tray:empty { display: none; }
.notice-tray > *, .dialog-notices > * { pointer-events: auto; }
.notice-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 16px;
  border: 1px solid #d8c9b2;
  border-left: 5px solid var(--warm, #a4472e);
  border-radius: 10px;
  background: #fffaf0;
  color: var(--ink, #292925);
  box-shadow: 0 10px 28px rgba(60, 40, 20, .18), 0 2px 6px rgba(60, 40, 20, .12);
  animation: notice-drop .32s ease-out;
}
.notice-card.notice-picture { border-left-color: var(--green, #516452); }
.notice-card.notice-problem { border-left-color: #b8742a; }
.notice-copy { flex: 1; min-width: 0; }
.notice-copy b { display: block; font-size: 15px; line-height: 1.45; }
.notice-copy b span { margin-left: 6px; font-weight: 600; color: var(--warm, #a4472e); }
.notice-copy p {
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notice-copy small { display: block; margin-top: 3px; color: var(--muted, #65655e); }
.notice-copy .notice-more { color: var(--warm, #a4472e); font-weight: 600; }
.notice-actions { display: flex; flex-direction: column; gap: 6px; flex: none; }
.notice-actions .btn {
  min-height: 34px;
  padding: 5px 14px;
  border: 1px solid #cdbda5;
  border-radius: 8px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
}
.notice-actions .btn.primary { border-color: var(--warm, #a4472e); background: var(--warm, #a4472e); color: #fff; }
.notice-connection {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #3b352d;
  color: #fff8ea;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(30, 20, 10, .25);
}
.notice-pulse { width: 9px; height: 9px; border-radius: 50%; background: #f2b84b; animation: notice-pulse 1s ease-in-out infinite alternate; }
.dialog-notices { display: grid; gap: 8px; margin: 0 0 12px; }
.dialog-notices .notice-card { box-shadow: none; animation: none; }
@keyframes notice-drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes notice-pulse { from { opacity: .35; } to { opacity: 1; } }
@media (max-width: 575px) {
  .notice-tray { top: 62px; }
  .notice-card { flex-wrap: wrap; }
  .notice-actions { flex-direction: row; width: 100%; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .notice-card, .notice-pulse { animation: none; }
}

/* A picture that did not come back: shown in the viewing area with what to do next. */
.studio-desk .failure-card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: min(440px, calc(100% - 28px));
  max-height: calc(100% - 20px);
  overflow: auto;
  transform: translate(-50%, -50%) rotate(-.6deg);
  padding: 20px 22px 18px;
  border-radius: 12px;
  border-top: 6px solid #b8742a;
  background: #fffaf0;
  color: var(--ink, #292925);
  box-shadow: 0 14px 34px rgba(60, 40, 20, .22);
  text-align: left;
}
.studio-desk .failure-card.failure-safety { border-top-color: var(--warm, #a4472e); }
.studio-desk .failure-card.failure-download { border-top-color: var(--green, #516452); }
.studio-desk .failure-card h3 { margin: 0 26px 6px 0; font-size: 18px; }
.studio-desk .failure-card p { font-size: 14.5px; line-height: 1.7; }
.studio-desk .failure-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.studio-desk .failure-actions .btn { min-height: 36px; }
.studio-desk .failure-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted, #65655e);
}
.studio-desk .failure-close:hover { background: rgba(0, 0, 0, .06); }

/* Story page: the assistant points to the storyboard page instead of writing shots here. */
.writing-next-step p { margin: 0 0 10px; }
