/* ---- Moved unchanged from admin.css (design spec P5) ---- */
    /* Publish-confirmation dialog (Task 23) */
    .publish-dialog-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }
    .publish-dialog {
      background: #fff;
      padding: 24px;
      border-radius: 8px;
      max-width: 520px;
      width: 92%;
      max-height: 90vh;
      overflow: auto;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    .publish-dialog h3 { margin: 0 0 12px; font-size: 1.05rem; }
    .publish-dialog p { margin: 4px 0; font-size: 0.92rem; }
    .publish-dialog .publish-preview-text {
      background: #f6f6f6;
      padding: 8px;
      border-radius: 4px;
      white-space: pre-wrap;
      font-family: inherit;
      margin: 4px 0 8px;
      font-size: 0.92rem;
    }
    .publish-dialog .publish-preview-label { margin: 12px 0 4px; }
    .publish-dialog .publish-empty-notice {
      margin: 12px 0;
      padding: 8px;
      background: #fff7e1;
      border: 1px solid #e6c977;
      border-radius: 4px;
    }
    .publish-dialog .publish-photo-strip { margin: 4px 0; }
    .publish-dialog .dialog-hint {
      font-size: 0.82rem;
      color: var(--muted, #666);
      font-style: italic;
    }
    .publish-dialog .publish-notice {
      margin-top: 12px;
      padding: 8px;
      background: #fff7e1;
      border: 1px solid #e6c977;
      border-radius: 4px;
      font-size: 0.9rem;
    }
    .publish-dialog .dialog-error {
      color: #b00020;
      margin: 8px 0;
      font-size: 0.9rem;
    }
    .publish-dialog .dialog-buttons {
      display: flex;
      gap: 8px;
      justify-content: flex-end;
      margin-top: 16px;
    }
    .publish-dialog .dialog-buttons button {
      padding: 6px 14px;
      font-size: 0.92rem;
      border-radius: 6px;
      cursor: pointer;
    }
    .publish-dialog .dialog-cancel {
      background: #eee;
      border: 1px solid #ccc;
      color: #333;
    }
    .publish-dialog .dialog-publish {
      background: #2e7d4f;
      color: #fff;
      border: none;
    }
    .publish-dialog .dialog-publish:disabled {
      background: #b8c9bd;
      cursor: not-allowed;
    }

/* ---- Additions (design spec P5) ---- */
/* Every addition is scoped to the publish overlay: the Mental Game tip-replace dialog (admin.css,
   dialog.tip-replace-dialog) reuses the .publish-dialog card and must not change. */
/* (a) The dialog is a white card in both themes, so its ink, font and line-height are its own. */
.publish-dialog-overlay .publish-dialog { color: #1a1a1a; font-family: inherit; line-height: 1.45; text-align: left; }
.publish-dialog-overlay .publish-dialog .dialog-hint { color: #5b5b5b; }
/* (b) Same buttons on every page. */
.publish-dialog-overlay .publish-dialog .dialog-buttons button { font-family: inherit; line-height: 1.3; }
.publish-dialog-overlay .publish-dialog .dialog-cancel:disabled { opacity: 0.6; cursor: not-allowed; }
/* (c) P13: a box still holds an unfinished dictation. The notice's amber, with a red edge. */
.publish-dialog-overlay .publish-dialog .publish-warning {
  margin-top: 12px;
  padding: 8px 10px;
  background: #fff7e1;
  border: 1px solid #e6c977;
  border-left: 4px solid #b3261e;
  border-radius: 4px;
  font-size: 0.9rem;
}
/* (d) Touch screens: 44px buttons, as the To Do dialog's buttons are today (and the admin dialog's were not). */
@media (pointer: coarse) {
  .publish-dialog-overlay .publish-dialog .dialog-buttons button { min-height: 44px; padding: 10px 18px; }
}

/* ---- Unpublished-notes reminder (spec 2026-10-14 D3, D6) ---- */
/* PROPOSED: the "not published" banner at the top of both lesson-note cards. Amber = "needs you", not an error. */
.note-unpublished-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin: 0 0 18px; padding: 10px 12px 10px 14px;
  background: #fff4d6; border: 1px solid #e3be5c; border-left: 5px solid #c98a00; border-radius: 8px;
  color: #573a00; font-size: 0.92rem; line-height: 1.4;
}
.note-unpublished-banner[hidden] { display: none; }
.note-unpublished-banner .note-unpublished-text { flex: 1 1 16rem; margin: 0; }
.note-unpublished-banner .note-unpublished-text strong { display: block; font-size: 0.98rem; }
.note-unpublished-banner button { flex: none; margin: 0; }
.admin-shared-notes-card .note-unpublished-banner .publish-shared-btn { margin-top: 0; }
#coach-todo-section .note-unpublished-banner { margin: 6px 0 14px; }
/* The To Do card follows the site theme; the admin card is pinned light in both themes, so its banner is too. */
[data-theme="dark"] #coach-todo-section .note-unpublished-banner {
  background: #3a2e10; border-color: #7a5e1a; border-left-color: #e0a800; color: #f5dc9a;
}
@media (max-width: 480px) { .note-unpublished-banner button { width: 100%; } }

/* PROPOSED: the status line under the boxes says the draft isn't published, with an amber dot instead of green.
   .is-saved is repeated so these outrank lesson-note-draft.css's green .is-saved dot, which both pages load after this file. */
.note-draft-status.is-saved.is-unpublished::before,
.admin-shared-notes-card .note-draft-status.is-saved.is-unpublished::before { background: #d08a00; }

/* PROPOSED: the leave prompt reuses the publish dialog's card and buttons. On a phone the three buttons stack full
   width, Publish now… on top (column-reverse keeps the DOM order Stay, Keep as draft, Publish now…). */
@media (max-width: 480px) {
  .publish-dialog-overlay .leave-dialog .dialog-buttons { flex-direction: column-reverse; }
  .publish-dialog-overlay .leave-dialog .dialog-buttons button { width: 100%; }
}
