/* ============================================================
   notes.css - Notes (issue 574, REQ-0008): the nt-* rules.
   A note IS a Timeline comment entry (seed-tl-ev--comment from
   seed-timeline.css, unchanged); this file only adds what that entry
   lacks: the three-dot button, the folded run of Claude saves, the folded
   replaced note, the removed state with Restore, the "See all" link and
   the one-line Notes row. The list sheet is the shared modal-sheet +
   drawer-topbar + glass-seg + the existing "Add note" compose bar.
   Lifted from the approved mockup docs/design/mockups/claude-notes-section-574.html.
   --v2-* tokens only; no raw colours (Canopy v2 Hard Rule #1).
   ============================================================ */

.nt-body{position:relative;padding-right:36px}
.nt-more{position:absolute;top:-8px;right:-12px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:50%;background:none;color:var(--v2-text-tertiary);cursor:pointer;-webkit-tap-highlight-color:transparent}
.nt-more svg{width:22px;height:22px}
.nt-more:active{background:var(--v2-press-overlay)}
.nt-more:focus-visible,.nt-all:focus-visible,.nt-restore:focus-visible,.nt-line:focus-visible{outline:2px solid var(--v2-accent-botanical);outline-offset:2px;border-radius:var(--v2-radius-sm)}
.nt-run{cursor:pointer}
.nt-dot-stack{box-shadow:0 3px 0 -1px var(--v2-bg-card),0 3px 0 0 var(--v2-edge)}
.nt-run-more{display:inline-flex;align-items:center;gap:4px;margin-top:6px;font:600 13px/1.3 var(--v2-font-body);color:var(--v2-accent-botanical)}
.nt-run-more svg{width:14px;height:14px}
.nt-replaced{margin-top:2px}
.nt-replaced summary{display:inline-flex;align-items:center;gap:4px;min-height:44px;margin:-8px 0 -12px;font:500 12px/1.4 var(--v2-font-body);color:var(--v2-text-secondary);list-style:none;cursor:pointer}
.nt-replaced summary::-webkit-details-marker{display:none}
.nt-replaced summary svg{width:12px;height:12px}
.nt-replaced[open] summary{margin-bottom:0}
.nt-replaced p{margin:0;font:400 13px/1.5 var(--v2-font-body);color:var(--v2-text-tertiary);text-decoration:line-through}
.nt-text-removed{color:var(--v2-text-tertiary)}
.nt-dot-removed{color:var(--v2-text-tertiary);border-style:dashed}
.nt-restore{display:inline-flex;align-items:center;min-height:44px;margin:-4px 0 -12px -8px;padding:0 8px;border:0;background:none;font:600 13px/1 var(--v2-font-body);color:var(--v2-accent-botanical);cursor:pointer}
.nt-all{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0;border:0;background:none;font:600 13px/1.2 var(--v2-font-body);color:var(--v2-accent-botanical);cursor:pointer;-webkit-tap-highlight-color:transparent}
.nt-all svg{width:14px;height:14px}
.nt-tl-end{display:block;padding-left:110px;margin-top:2px}
.nt-line{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 0;border:0;border-top:1px solid var(--v2-border-soft);border-bottom:1px solid var(--v2-border-soft);background:none;text-align:left;font:inherit;color:var(--v2-text-primary);cursor:pointer;-webkit-tap-highlight-color:transparent}
.nt-line:active{background:var(--v2-press-overlay)}
.nt-line-ic{flex:none;width:28px;height:28px;box-sizing:border-box;border-radius:50%;border:1.5px solid var(--v2-edge);display:flex;align-items:center;justify-content:center;color:var(--v2-accent-botanical)}
.nt-line-ic svg{width:14px;height:14px}
.nt-line-text{flex:1;min-width:0}
.nt-line-title{display:block;font:600 15px/1.3 var(--v2-font-display);color:var(--v2-text-primary)}
.nt-line-sub{display:block;margin-top:2px;font:400 13px/1.4 var(--v2-font-body);color:var(--v2-text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nt-line-chev{flex:none;width:16px;height:16px;color:var(--v2-text-tertiary)}
.nt-sheet-body{overflow-y:auto;padding:16px 20px 32px}
.nt-seg{padding:0 20px 4px}
.nt-sub{margin:-8px 0 10px;text-align:center;font:400 13px/1.4 var(--v2-font-body);color:var(--v2-text-secondary)}
.nt-keep{margin:20px 0 0;font:400 12px/1.5 var(--v2-font-body);color:var(--v2-text-tertiary)}

/* Garden tab (issue 690): the line sits under "+ New Zone" and takes over the wrap's 80px tab-bar
   clearance (garden-grid.css .zone-card-add-wrap keeps 24px), as in docs/design/mockups/claude-notes-garden-574.html. */
.nt-garden{margin:0 16px;padding-bottom:80px}

/* The note composer (the Timeline's "Add note" sheet, seed-composer-* in style.css) opened outside the
   batch sheet: a full-screen layer above every sheet (stacked sheets sit at 1100). Taps pass through
   it except on the open composer. */
.nt-composer-host{position:fixed;inset:0;z-index:1150;pointer-events:none}

/* The replaced-note chevron is drawn once (pointing right) and turns down when the <details> is open. */
.nt-replaced summary svg{transition:transform var(--v2-transition-fast) var(--v2-ease-out)}
.nt-replaced[open] summary svg{transform:rotate(90deg)}
