/* Rough notes: the coach-only scratch card (public/lesson-rough-notes.js) and its page banner.
   Design spec: docs/superpowers/specs/2026-10-21-rough-notes-design.md (R1, R4, R11, R13); the approved
   mockup's PROPOSED block (docs/superpowers/specs/2026-10-21-rough-notes-mockup.gen.mjs).
   The card keeps fixed light colors with pinned dark text in both themes, like the other note cards
   (.admin-shared-notes-card green, .admin-private-notes-card yellow); slate blue tells it apart from both.
   Contrast on #eef3fa: #1a1a1a 16:1, #2f4a6e 8.4:1, #4a5568 7:1, #8a4a00 6.2:1, #8a2a22 8.2:1.
   The banner follows the theme with its own tokens (account.html does not load admin.css), the values
   of admin.css's --amber-*. */
:root { --rough-banner-bg: #fff3cd; --rough-banner-tx: #7a5b00; --rough-banner-bd: #f4d97a; }
[data-theme="dark"] { --rough-banner-bg: #3a3016; --rough-banner-tx: #f0d488; --rough-banner-bd: #5c4a1e; }

.rough-notes-card { border: 1px solid #b9c7dc; background: #eef3fa; color: #1a1a1a; border-radius: 8px; padding: 12px; margin-top: 12px; }
.rough-notes-card h4 { margin: 0 0 4px; font-size: 0.95rem; color: #1a1a1a; }
.rough-notes-card .visibility-badge.rough { color: #2f4a6e; margin-left: 8px; font-weight: 500; font-size: 0.82rem; }
.rough-notes-hint { margin: 0 0 8px; font-size: 0.85rem; color: #4a5568; }
.rough-notes-text { display: block; width: 100%; min-height: 96px; box-sizing: border-box; padding: 8px; font: inherit; font-size: 1rem; line-height: 1.4; color: #1a1a1a; background: #fff; border: 1px solid #a9b9d1; border-radius: 6px; resize: none; overflow: hidden; }
.rough-notes-text:focus { outline: 2px solid #2f4a6e; outline-offset: 1px; }
.rough-notes-status { margin: 6px 0 0; font-size: 0.85rem; color: #2f4a6e; min-height: 1.2em; }
.rough-notes-status.is-waiting { color: #8a4a00; }
.rough-notes-status.is-error { color: #8a2a22; }
/* R4: after publishing, one tappable line; the first line of the text is previewed. */
.rough-notes-card.is-collapsed { padding: 0; }
.rough-notes-inner[hidden] { display: none; }
.rough-notes-toggle { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; background: transparent; color: #1a1a1a; font: inherit; text-align: left; cursor: pointer; }
.rough-notes-toggle strong { font-size: 0.95rem; flex: none; }
.rough-notes-toggle .rough-notes-peek { color: #4a5568; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rough-notes-toggle .rough-notes-chev { margin-left: auto; flex: none; color: #2f4a6e; }
/* R13: the page banner (AA in both themes). */
.rough-sync-banner { margin: 0 0 12px; border-radius: 12px; padding: 0.7rem 1rem; background: var(--rough-banner-bg); border: 1px solid var(--rough-banner-bd); color: var(--rough-banner-tx); font-size: 0.9rem; }
.rough-sync-banner p { margin: 0; font-weight: 600; }
.rough-sync-banner .rough-sync-why { font-weight: 400; margin-top: 4px; }
.rough-sync-banner textarea { display: block; width: 100%; box-sizing: border-box; margin: 8px 0; padding: 8px; font: inherit; font-size: 0.95rem; color: #1a1a1a; background: #fff; border: 1px solid var(--rough-banner-bd); border-radius: 6px; resize: none; }
.rough-sync-banner .rough-sync-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rough-sync-banner button { min-height: 44px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; border: 1px solid var(--rough-banner-tx); background: #fff; color: #1a1a1a; }
.rough-sync-banner button.danger { background: #8a3a2f; border-color: #8a3a2f; color: #fff; }
