.notes-slot { min-height: 17.5rem; }
.notes-panel { margin-top: 0; }
.notes-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.notes-count { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.notes-thread { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.65rem; min-height: 5.5rem; max-height: 16rem; overflow-y: auto; }
.notes-idle { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.note { background: var(--paper); border-radius: 0.6rem; padding: 0.7rem 0.8rem; box-shadow: var(--shadow); }
.note header { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; }
.note header b { font-size: 0.8rem; }
.note header time { font-family: var(--mono); font-size: 0.65rem; color: var(--muted); }
.note p { margin: 0.35rem 0 0; font-size: 0.85rem; line-height: 1.45; white-space: pre-wrap; }
.note-actions { display: flex; gap: 0.5rem; margin-top: 0.45rem; }
.note-act { border: 0; background: transparent; padding: 0; font-size: 0.7rem; color: var(--muted); cursor: pointer; }
.note-act.danger { color: #8a3a2a; }
.notes-form { display: grid; gap: 0.45rem; margin-top: 0.85rem; }
.notes-agent { display: grid; gap: 0.25rem; }
.notes-agent span { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.notes-author, .notes-input { width: 100%; border: 1px solid var(--line); border-radius: 0.5rem; background: var(--canvas); color: var(--ink); font: inherit; padding: 0.55rem 0.7rem; }
.notes-author { height: 2.35rem; font-size: 0.85rem; }
.notes-input { resize: vertical; min-height: 4.25rem; font-size: 0.85rem; }
.notes-send { justify-self: start; border: 0; border-radius: 0.5rem; background: var(--ink); color: var(--canvas); height: 2.35rem; padding: 0 0.9rem; font-size: 0.8rem; cursor: pointer; }
.bulk-btn.delete { background: transparent; color: #f3c2b6; box-shadow: inset 0 0 0 1px rgb(244 241 236 / 0.22); }
.row { cursor: pointer; }
.row-check, .row-tags .tag-mini { cursor: pointer; }
@media (min-width: 1024px) {
  .row-main { flex: 1; min-width: 0; }
  .row-tags { margin-left: auto; width: 10.5rem; flex-shrink: 0; }
}
@media (max-width: 1023px) {
  .mobile-bar { gap: 0.45rem; }
  .mobile-bar .search { flex: 1 1 0; min-width: 0; max-width: none; }
  .mobile-bar .search input { height: 2.5rem; padding: 0 0.7rem; font-size: 0.85rem; }
  #mobile-view {
    width: auto;
    min-width: 4.35rem;
    height: 2.5rem;
    padding: 0 0.7rem;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
  }
  .sheet {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 88dvh;
    padding: 0;
  }
  .sheet-stack {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
  }
  .sheet-stack > * { flex: none; width: 100%; }
  .sheet .notes-slot {
    min-height: 0;
    padding: 0.75rem 1.25rem 0;
  }
  .sheet .notes-panel {
    margin: 0;
    padding: 1rem 1rem 1.1rem;
    background: var(--canvas);
    color: var(--ink);
    border-radius: 0.9rem;
    box-shadow: var(--shadow);
  }
  .sheet .notes-thread { min-height: 0; max-height: none; overflow: visible; }
  .sheet .notes-idle,
  .sheet .notes-count,
  .sheet .note-act,
  .sheet .notes-agent span,
  .sheet .note header time { color: var(--muted); }
  .sheet .note { background: var(--paper); color: var(--ink); box-shadow: none; }
  .sheet .notes-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0.85rem 0 0;
  }
  .sheet .notes-author,
  .sheet .notes-input {
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
  }
  .sheet .notes-send {
    background: var(--accent);
    color: var(--ink);
    align-self: flex-start;
    margin-top: 0.15rem;
  }
  .sheet .sheet-tags {
    margin: 1rem 0 0;
    padding: 0.35rem 1.25rem 0;
    position: static;
    background: transparent;
    gap: 0.65rem;
  }
}
