/* notes.css — the project's internal Notes pane in Communications
 * (Bundle 9 follow-on, spec B; the module is notes.js). Split out of
 * styles.css for the per-file upload ceiling, like clients.css and
 * quotes.css; index.html links it right after them. Rows reuse the
 * comment row shape (.row / .c-head / .c-time / .c-body) — only the
 * composer and the note actions are new shapes.
 *
 * Wave 10 — internal stays internal: everything in this pane is
 * crew-only, so it is drawn on the portal's "internal" surface — a
 * dashed hairline on a faint tint, the same mark Summary's notes
 * slot uses — so a note never reads like a chat message. No new
 * words; the empty-state line already says it. */

.note-composer {
  background: #f8f9fb; border: 1px dashed #cbd2da;
  border-radius: 12px; box-shadow: none;
  padding: 16px; margin-bottom: 16px;
}
.note-editing { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.note-input {
  display: block; width: 100%; padding: 10px 12px; resize: vertical;
  border: 1px solid #cbd2da; border-radius: 8px;
  font: inherit; font-size: 14px; line-height: 1.5; color: var(--ink); background: #fff;
}
.note-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 34, 53, .12); }
.note-err { margin: 8px 0 0; }
.note-composer-bar { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

/* The notes list: the one row shape, on the internal surface.
 * Scoped like styles.css's Wave 10 list rule so it outranks it. */
body.skin-billdr #app .note-list > .list { background: #f8f9fb; border: 1px dashed #cbd2da; box-shadow: none; }
body.skin-billdr #app .note-list > .list > .row { border-bottom-color: #e1e5ea; }
.note-body { line-height: 1.55; white-space: pre-wrap; }
.note-actions { margin: 8px 0 0; }
.note-actions .linkbtn { margin-right: 18px; }
.note-actions .linkbtn:last-child { margin-right: 0; }
.note-del { color: var(--danger); }

/* ---- Parity 3: the rich editor (inputs.js ixRichText) ---- */
.note-title { width: 100%; margin-bottom: 8px; }
.note-title-line { font-weight: 700; margin: 2px 0 4px; }
.ix-rich { border: 1px solid var(--line); border-radius: 10px; background: var(--card, #fff); }
.ix-rich-bar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ix-rich-btn { font: inherit; font-size: 13px; min-width: 30px; padding: 4px 7px; background: none; border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.ix-rich-btn:hover { border-color: var(--line); }
.ix-rich-zoom { font: inherit; font-size: 13px; margin-left: auto; }
.ix-rich-edit { min-height: 76px; padding: 10px 12px; outline: none; line-height: 1.55; overflow-wrap: anywhere; }
.ix-rich-edit:empty::before { content: attr(data-ph); color: var(--muted); pointer-events: none; }
.ix-rich-edit h1 { font-size: 22px; margin: 6px 0; }
.ix-rich-edit h2 { font-size: 18px; margin: 6px 0; }
.ix-rich-edit h3 { font-size: 15px; margin: 6px 0; }
.ix-rich-edit ul, .ix-rich-edit ol { margin: 4px 0 4px 18px; padding: 0; }
.note-rich { line-height: 1.55; }
.note-rich p, .note-rich div { margin: 0 0 6px; }
.note-rich h1 { font-size: 20px; margin: 6px 0; }
.note-rich h2 { font-size: 17px; margin: 6px 0; }
.note-rich h3 { font-size: 15px; margin: 6px 0; }
.note-rich ul, .note-rich ol { margin: 4px 0 4px 18px; padding: 0; }
.note-rich ul.ix-checks, .ix-rich-edit ul.ix-checks { list-style: none; margin-left: 2px; }
ul.ix-checks > li { position: relative; padding-left: 24px; }
ul.ix-checks > li::before { content: "☐"; position: absolute; left: 2px; top: 0; }
ul.ix-checks > li[data-checked="1"]::before { content: "☑"; }
ul.ix-checks > li[data-checked="1"] { color: var(--muted); text-decoration: line-through; }
.note-rich ul.ix-checks > li.note-check-live { cursor: pointer; }

/* ======================= DW2 P10 · project To-Dos / Checklists / Communications ======================= */
/* notes.css is the project-Communications sheet this package owns, so
 * the small structural pieces of P10's project-tab controls live here
 * (loaded globally, like every sheet).
 * Audience marks: status text, not buttons — no pointer, no hover. */
.aud-tab.soon.aud-status { cursor: default; border-style: dashed; }
.aud-tab.soon.aud-status:hover { color: var(--muted); }
body.skin-billdr #app .aud-tabs[aria-label="Conversation audience"] .aud-tab.soon.aud-status { color: var(--ds-muted); opacity: 1; font-weight: 500; }
body.skin-billdr #app .aud-tabs[aria-label="Conversation audience"] .aud-tab.soon.aud-status:hover { color: var(--ds-muted); }

/* All-comments index row actions: Reply · jump · ⋯ (own). */
.c-ix-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 8px 0 0; }
.c-ix-actions .linkbtn { display: inline-flex; align-items: center; gap: 4px; }
.c-ix-actions .c-ix-more { margin-left: auto; }
.c-ix-slot:not(:empty) { margin-top: 10px; }
body.skin-billdr #app .c-ix-actions .linkbtn { font-size: var(--ds-fs-sm); color: var(--ds-gold-ink); font-weight: 600; }
body.skin-billdr #app .c-ix-actions .linkbtn:hover { color: var(--ds-gold-ink-hover, var(--ds-gold-ink)); text-decoration: underline; }

/* ⋯ triggers on to-do rows, checklist heads and checklist items. */
.tk-more, .cl-more, .ci-more, .c-ix-more { flex: none; display: inline-flex; align-items: center; justify-content: center; }
.task-actions .tk-more { margin-left: auto; }
.mod-h.cl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mod-h.cl-head .cl-more { margin-left: auto; }
body.skin-billdr #app :is(.tk-more, .cl-more, .ci-more, .c-ix-more) { width: var(--ds-ctl-sm); min-height: var(--ds-ctl-sm); padding: 0; color: var(--ds-ink); border: 1px solid var(--ds-line); background: var(--ds-card); border-radius: var(--ds-r-sm); }
body.skin-billdr #app :is(.tk-more, .cl-more, .ci-more, .c-ix-more) .ico { width: 16px; height: 16px; }
body.skin-billdr #app :is(.tk-more, .cl-more, .ci-more, .c-ix-more):hover { color: var(--ds-ink); background: var(--ds-bg); border-color: var(--ds-line); }

/* wave228: voice clips in the Notes composer — the mic, the recording
 * state, the staged clip chip, and the clip row on a saved note. */
.note-composer-bar { align-items: center; flex-wrap: wrap; }
.note-grow { flex: 1; }
.note-mic { display: inline-flex; align-items: center; gap: 6px; }
.note-rec { display: inline-flex; align-items: center; gap: 8px; }
.note-rec-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #b3261e; animation: noteRecPulse 1.1s ease-in-out infinite; }
@keyframes noteRecPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.note-rec-time { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 34px; }
.note-clip { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.note-clip audio, .note-audio audio { height: 32px; max-width: 240px; }
.note-clip-label, .note-audio-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.note-audio { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.note-audio-host { display: inline-flex; align-items: center; }
