/* ═══ Notes liées (rendez-vous & personnes) · façon Notes iOS ═══ */

.ntv-block { margin-top: 16px; }
.ntv-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 8px; }
.ntv-head b { font: 700 12.5px/1 'Inter', sans-serif; color: #FAFAFA; }
.ntv-head b em { font-style: normal; font-weight: 600; color: #8E8E96; }
.ntv-add {
  width: 27px; height: 27px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.10);
  color: var(--acc-bright, #00C49A); font: 600 15px/1 'Inter', sans-serif;
}
.ntv-list {
  border-radius: 14px; overflow: hidden;
  background: #1A1A1E; border: 1px solid rgba(255,255,255,0.08);
}
.ntv-row {
  display: flex; align-items: flex-start; gap: 10px; width: 100%;
  padding: 11px 13px; background: none; border: none; cursor: pointer; text-align: left;
}
.ntv-row + .ntv-row { border-top: 1px solid rgba(255,255,255,0.07); }
.ntv-row:active { background: rgba(255,255,255,0.04); }
.ntv-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.ntv-row .avatar { flex-shrink: 0; margin-top: 1px; }
.ntv-txt { flex: 1; min-width: 0; }
.ntv-txt b {
  display: block; font: 650 13px/1.35 'Inter', sans-serif; color: #FAFAFA;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ntv-txt em {
  display: block; margin-top: 2px; font: 400 11.5px/1.4 'Inter', sans-serif; font-style: normal; color: #8E8E96;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ntv-txt i {
  display: inline-block; margin-top: 5px; padding: 2.5px 7px; border-radius: 99px;
  font: 600 9px/1.2 'Inter', sans-serif; font-style: normal; letter-spacing: 0.03em;
  background: rgba(255,255,255,0.07); color: #A1A1AA;
}
.ntv-empty {
  display: block; width: 100%; padding: 13px; border-radius: 14px; cursor: pointer; text-align: left;
  background: rgba(255,255,255,0.03); border: 1px dashed rgba(255,255,255,0.14);
  font: 400 11.5px/1.4 'Inter', sans-serif; color: #71717A;
}

/* ── Vignettes pièces jointes (liste) ── */
.ntv-minis { display: flex; align-items: center; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.ntv-mini {
  display: inline-flex; align-items: center; gap: 4px; padding: 2.5px 7px; border-radius: 99px;
  font: 600 9px/1.2 'Inter', sans-serif; font-style: normal; letter-spacing: 0.03em;
  background: rgba(255,255,255,0.07); color: #A1A1AA;
}
.ntv-mini.aud { background: color-mix(in srgb, var(--acc-bright, #00C49A) 12%, transparent); color: var(--acc-bright, #00C49A); }

/* ── Éditeur plein écran ── */
.ntv-ed {
  position: absolute; inset: 0; z-index: 92;
  display: flex; flex-direction: column;
  background: #101013;
  animation: ntvUp 260ms cubic-bezier(0.2, 0, 0, 1);
}
@keyframes ntvUp { from { transform: translateY(46px); opacity: 0; } }
.ntv-ed-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 52px 16px 8px;
}
.ntv-ed-head b { font: 800 14px/1 'Inter', sans-serif; letter-spacing: -0.01em; color: #FAFAFA; }
.ntv-hbtn {
  min-width: 64px; padding: 8px 0; background: none; border: none; cursor: pointer;
  font: 550 13px/1 'Inter', sans-serif; color: #A1A1AA; text-align: left;
}
.ntv-hbtn.ok { text-align: right; font-weight: 750; color: var(--acc-bright, #00C49A); }
.ntv-hbtn.ok:disabled { opacity: 0.35; }
.ntv-ed-meta { text-align: center; padding: 0 18px 12px; font: 500 10.5px/1 'Inter', sans-serif; color: #71717A; }
.ntv-links {
  display: flex; align-items: center; gap: 7px;
  padding: 0 16px 8px; overflow-x: auto; scrollbar-width: none; flex-shrink: 0;
}
.ntv-links::-webkit-scrollbar { display: none; }
.ntv-linklbl { font: 600 10px/1 'Inter', sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: #71717A; flex-shrink: 0; }
.ntv-link {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  height: 30px; padding: 0 11px; border-radius: 99px; cursor: pointer; white-space: nowrap;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  font: 550 12px/1 'Inter', sans-serif; color: #D4D4D8;
}
.ntv-link.on {
  background: color-mix(in srgb, var(--acc-bright, #00C49A) 14%, transparent);
  border-color: color-mix(in srgb, var(--acc-bright, #00C49A) 55%, transparent);
  color: #FAFAFA;
}
.ntv-linkdot { width: 7px; height: 7px; border-radius: 50%; }
.ntv-linkhint { padding: 0 18px 10px; font: 400 10.5px/1.4 'Inter', sans-serif; color: #71717A; }
.ntv-ed textarea {
  flex: 1; margin: 2px 16px 10px; background: none; border: none; outline: none; resize: none;
  font: 400 15px/1.6 'Inter', sans-serif; color: #FAFAFA; caret-color: var(--acc-bright, #00C49A);
}
.ntv-ed textarea::placeholder { color: #71717A; }

/* ── Pièces jointes (éditeur) ── */
.ntv-atts { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 10px; flex-shrink: 0; max-height: 250px; overflow-y: auto; scrollbar-width: none; }
.ntv-atts::-webkit-scrollbar { display: none; }
.ntv-att {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 12px;
  background: #1A1A1E; border: 1px solid rgba(255,255,255,0.08);
}
.ntv-att-ic {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); color: #D4D4D8;
}
.ntv-att.img .ntv-att-ic { background: rgba(94, 158, 255, 0.13); color: #7FB1FF; }
.ntv-att-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ntv-att-txt b { font: 600 12px/1.3 'Inter', sans-serif; color: #FAFAFA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ntv-att-txt em { font: 400 10.5px/1.2 'Inter', sans-serif; font-style: normal; color: #71717A; }
.ntv-att-x {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: none; color: #A1A1AA; font: 400 14px/1 'Inter', sans-serif;
}

/* ── Mémo audio ── */
.ntv-aud { padding: 10px 11px; border-radius: 12px; background: #1A1A1E; border: 1px solid rgba(255,255,255,0.08); }
.ntv-aud-main { display: flex; align-items: center; gap: 10px; }
.ntv-aud-play {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--acc-bright, #00C49A) 15%, transparent);
  border: none; color: var(--acc-bright, #00C49A);
}
.ntv-aud-wave { flex: 1; display: flex; align-items: center; gap: 2.5px; height: 20px; overflow: hidden; }
.ntv-aud-wave i { flex: 1; max-width: 4px; border-radius: 99px; background: rgba(255,255,255,0.28); }
.ntv-aud-wave.live i { animation: ntvBounce 560ms ease-in-out infinite alternate; background: var(--acc-bright, #00C49A); }
@keyframes ntvBounce { to { transform: scaleY(0.35); } }
.ntv-aud-main > em { font: 500 10.5px/1 'SF Mono', ui-monospace, monospace; font-style: normal; color: #A1A1AA; }
.ntv-aud-trbtn {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 0;
  background: none; border: none; cursor: pointer;
  font: 650 10px/1 'Inter', sans-serif; letter-spacing: 0.07em; text-transform: uppercase; color: #8E8E96;
}
.ntv-aud-trbtn.on svg { transform: rotate(180deg); }
.ntv-aud-trbtn svg { transition: transform 180ms; }
.ntv-aud-tr { margin-top: 7px; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,0.04); font: 400 12px/1.55 'Inter', sans-serif; color: #C7C7CF; font-style: italic; }

/* ── Barre d'outils (photo / document / audio) ── */
.ntv-tools { display: flex; gap: 8px; padding: 0 16px 14px; flex-shrink: 0; }
.ntv-tools button {
  flex: 1; height: 40px; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  font: 600 12px/1 'Inter', sans-serif; color: #D4D4D8;
}
.ntv-tools button.mic {
  background: color-mix(in srgb, var(--acc-bright, #00C49A) 12%, transparent);
  border-color: color-mix(in srgb, var(--acc-bright, #00C49A) 40%, transparent);
  color: var(--acc-bright, #00C49A);
}

/* ── Enregistrement + transcription en direct ── */
.ntv-rec { margin: 0 16px 14px; padding: 12px 13px; border-radius: 14px; flex-shrink: 0;
  background: #1A1A1E; border: 1px solid color-mix(in srgb, var(--acc-bright, #00C49A) 35%, transparent); }
.ntv-rec-top { display: flex; align-items: center; gap: 8px; }
.ntv-rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #F26D6D; animation: ntvPulse 900ms ease-in-out infinite alternate; }
@keyframes ntvPulse { to { opacity: 0.25; } }
.ntv-rec-top b { flex: 1; font: 700 12px/1 'Inter', sans-serif; color: #FAFAFA; }
.ntv-rec-top em { font: 500 11px/1 'SF Mono', ui-monospace, monospace; font-style: normal; color: var(--acc-bright, #00C49A); }
.ntv-rec-tr { margin-top: 9px; font: 400 12.5px/1.55 'Inter', sans-serif; color: #C7C7CF; min-height: 38px; }
.ntv-rec-tr i { color: #71717A; }
.ntv-rec-trlbl { display: block; margin-bottom: 3px; font: 650 9px/1 'Inter', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: #71717A; }
.ntv-caret { display: inline-block; width: 2px; height: 12px; margin-left: 2px; vertical-align: -2px; background: var(--acc-bright, #00C49A); animation: ntvPulse 600ms step-end infinite alternate; }
.ntv-rec-stop {
  margin-top: 10px; width: 100%; height: 38px; border-radius: 11px; cursor: pointer;
  background: var(--acc, #00A37E); border: none; color: #FFFFFF;
  font: 700 12.5px/1 'Inter', sans-serif;
}
.ntv-ed-foot { display: flex; justify-content: center; padding: 0 16px 26px; }
.ntv-del {
  padding: 10px 16px; background: none; border: none; cursor: pointer;
  font: 600 12.5px/1 'Inter', sans-serif; color: #EC6F77;
}

/* Zone de note (création d'événement) */
.ag-notearea { resize: none; min-height: 58px; line-height: 1.5; }

/* ── Thème clair ── */
.hm.light .ntv-mini { background: rgba(15,15,16,0.06); color: #45454C; }
.hm.light .ntv-mini.aud { background: color-mix(in srgb, var(--acc, #00A37E) 11%, transparent); color: var(--acc, #00A37E); }
.hm.light .ntv-att, .hm.light .ntv-aud { background: #FFFFFF; border-color: rgba(15,15,16,0.09); }
.hm.light .ntv-att-ic { background: rgba(15,15,16,0.05); color: #45454C; }
.hm.light .ntv-att-txt b { color: #0F0F10; }
.hm.light .ntv-att-x { background: rgba(15,15,16,0.05); color: #6B6B73; }
.hm.light .ntv-aud-wave i { background: rgba(15,15,16,0.22); }
.hm.light .ntv-aud-wave.live i { background: var(--acc, #00A37E); }
.hm.light .ntv-aud-tr { background: rgba(15,15,16,0.04); color: #45454C; }
.hm.light .ntv-tools button { background: #FFFFFF; border-color: rgba(15,15,16,0.12); color: #2B2B31; }
.hm.light .ntv-tools button.mic { background: color-mix(in srgb, var(--acc, #00A37E) 9%, #FFFFFF); border-color: color-mix(in srgb, var(--acc, #00A37E) 40%, transparent); color: var(--acc, #00A37E); }
.hm.light .ntv-rec { background: #FFFFFF; }
.hm.light .ntv-rec-top b { color: #0F0F10; }
.hm.light .ntv-rec-tr { color: #45454C; }

/* ── Thème clair ── */
.hm.light .ntv-head b { color: #0F0F10; }
.hm.light .ntv-head b em { color: #6B6B73; }
.hm.light .ntv-add { background: #FFFFFF; border-color: rgba(15,15,16,0.12); color: var(--acc, #00A37E); }
.hm.light .ntv-list { background: #FFFFFF; border-color: rgba(15,15,16,0.08); }
.hm.light .ntv-row + .ntv-row { border-top-color: rgba(15,15,16,0.07); }
.hm.light .ntv-row:active { background: rgba(15,15,16,0.035); }
.hm.light .ntv-txt b { color: #0F0F10; }
.hm.light .ntv-txt em { color: #6B6B73; }
.hm.light .ntv-txt i { background: rgba(15,15,16,0.06); color: #45454C; }
.hm.light .ntv-empty { background: rgba(15,15,16,0.03); border-color: rgba(15,15,16,0.16); color: #8A8A93; }
.hm.light .ntv-ed { background: #F6F6F7; }
.hm.light .ntv-ed-head b { color: #0F0F10; }
.hm.light .ntv-hbtn { color: #6B6B73; }
.hm.light .ntv-hbtn.ok { color: var(--acc, #00A37E); }
.hm.light .ntv-link { background: #FFFFFF; border-color: rgba(15,15,16,0.12); color: #2B2B31; }
.hm.light .ntv-link.on {
  background: color-mix(in srgb, var(--acc, #00A37E) 10%, #FFFFFF);
  border-color: color-mix(in srgb, var(--acc, #00A37E) 50%, transparent);
  color: #0F0F10;
}
.hm.light .ntv-ed textarea { color: #0F0F10; caret-color: var(--acc, #00A37E); }

/* ── Groupes de notes (origine) ── */
.ntv-group {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px 4px;
}
.ntv-row + .ntv-group, .ntv-more + .ntv-group { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 2px; }
.ntv-group span {
  font: 600 9.5px/1 'Inter', -apple-system, sans-serif;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.ntv-group em {
  font: 600 9px/1 'Inter', -apple-system, sans-serif; font-style: normal;
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.09); color: rgba(255,255,255,0.55);
}
.ntv-group + .ntv-row { border-top: none; }
.ntv-more {
  display: block; width: 100%; text-align: left;
  border: none; background: transparent; cursor: pointer;
  padding: 8px 14px 10px 43px;
  font: 500 11.5px/1 'Inter', -apple-system, sans-serif;
  color: var(--acc-bright, #00C49A);
}
.hm.light .ntv-row + .ntv-group, .hm.light .ntv-more + .ntv-group { border-top-color: rgba(15,15,16,0.07); }
.hm.light .ntv-group span { color: #8A8A93; }
.hm.light .ntv-group em { background: rgba(15,15,16,0.06); color: #6B6B73; }
.hm.light .ntv-more { color: var(--acc, #00A37E); }

/* ── Mode compact (carte salon) · une ligne par note ── */
.ntv-row.dense { display: flex; align-items: center; gap: 8px; padding: 8.5px 13px; }
.ntv-row.dense .ntv-dot { width: 7px; height: 7px; margin: 0; flex: none; }
.ntv-dtitle {
  flex: 1; min-width: 0;
  font: 600 12.5px/1.3 'Inter', -apple-system, sans-serif; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ntv-dmini { display: flex; align-items: center; color: rgba(255,255,255,0.38); font-style: normal; flex: none; }
.ntv-dts {
  font: 400 10.5px/1 'Inter', -apple-system, sans-serif; font-style: normal;
  color: rgba(255,255,255,0.4); white-space: nowrap; flex: none;
}
.ntv-dts.call { color: var(--acc-bright, #00C49A); font-weight: 500; }
.ntv-more.dense { padding: 7px 13px 9px 28px; }
.hm.light .ntv-dtitle { color: #0F0F10; }
.hm.light .ntv-dmini { color: #8A8A93; }
.hm.light .ntv-dts { color: #8A8A93; }
.hm.light .ntv-dts.call { color: var(--acc, #00A37E); }
