/* ===== The Notes section in EG PM's look: All Notes and Home (Jose 2026-11-23: "can we do
   All Notes too", then Home, after the agenda and My page: "keep it the same, just updating
   the code on the design for the UI").
   Restyle only, the same approach as the agenda (#882) and My page (#883): every rule is
   under #list-view (the All Notes list, its filters, toolbar, cards, list rows and empty
   state), #home-view (Home's "Coming up" feed and its Calendars menu) or the Notes header
   and tabs above both. EG Hub's top bar, sidebar, the note page and every other page are
   untouched. Markup, layout, order, text and behaviour are unchanged; no JS. Loaded last so
   equal-specificity rules win.
   Tokens: the shared EG PM block in oneonone.css ("Agenda in EG PM's look: tokens"), so all
   these screens use the same values: system font stack, ink #0f1114, lines #e5e7ea / #d2d5da,
   teal brand #17646f / #0d4f5a, 8px cards, 6px controls, pill chips. Light neutrals apply
   only in light; dark keeps EG Hub's dark surfaces and swaps indigo for the dark-tuned teal.
   Pills use an inset box-shadow for their 1px line (not a border), so no chip changes size.
   #list-view also serves the sidebar's person / tag / month / search lists and Shared with
   me (same element, same cards), so those lists get the same look. */

/* Tokens style.css builds from --accent etc. at :root resolve there, so say them again
   here, where the EG PM values are in scope. */
#list-view, #home-view {
  --section-label: var(--text-muted);
  --row-active: var(--accent-soft); --nav-active-text: var(--accent-on);
  --chip-bg: var(--bg-raised); --chip-fg: var(--text-muted); --chip-border: var(--border);
  --btn-secondary-bg: var(--ag-card-bg); --btn-secondary-bg-hover: var(--bg-raised); --btn-secondary-fg: var(--text);
  background: var(--bg);
  color: var(--text);
}

/* ---- Notes header and tabs (Home, All Notes and Shared with me) ---- */
#notes-section-header { background: var(--bg); border-bottom-color: var(--border); }
#notes-section-header h1 { font-weight: 700; letter-spacing: -.022em; color: var(--text); }
#notes-section-header .muted { color: var(--text-muted); }
#notes-section-tabs { background: var(--bg); border-bottom-color: var(--border); }
#notes-section-tabs .ptab { color: var(--text-muted); }
#notes-section-tabs .ptab:hover { color: var(--text); }
#notes-section-tabs .ptab.active { color: var(--text); border-bottom-color: var(--accent); }

/* ---- Filters: bordered white EG PM controls, teal when on ---- */
#list-view .nf-btn, #list-view .nf-find {
  background: var(--ag-card-bg); border-color: var(--ag-line-strong); border-radius: 6px; color: var(--text);
}
#list-view .nf-btn:hover, #list-view .nf-find:hover { background: var(--row-hover); border-color: var(--ag-line-strong); }
#list-view .nf-btn:focus-within, #list-view .nf-btn:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ag-ring);
}
#list-view .nf-btn.nf-on { background: var(--ag-brand-bg); border-color: var(--ag-brand-line); color: var(--ag-brand-fg); }
#list-view .nf-icon { color: var(--text-muted); }
#list-view .nf-on .nf-icon { color: var(--ag-brand-fg); }
#list-view .nf-chev { color: var(--ag-ink-4); }
#list-view .nf-time select { color: inherit; }
#list-view .nf-pop {
  background: var(--ag-card-bg); border-color: var(--ag-card-line); border-radius: 8px; box-shadow: 0 6px 16px rgba(15,17,20,.10);
}
#list-view .nf-pop input { border-color: var(--ag-card-line); border-radius: 6px; background: var(--ag-input-bg); color: var(--text); }
#list-view .nf-pop input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ag-ring); }
#list-view .nf-pop input::placeholder { color: var(--ag-ink-4); }
#list-view .nf-opt { border-radius: 6px; color: var(--text); }
#list-view .nf-opt:hover, #list-view .nf-opt:focus-visible { background: var(--row-hover); }
#list-view .nf-opt-on, #list-view .nf-opt-on:hover { background: var(--ag-brand-bg); color: var(--ag-brand-fg); }
#list-view .nf-opt-count { color: var(--ag-ink-4); }
#list-view .nf-opt-on .nf-opt-count { color: var(--ag-brand-fg); }
#list-view .nf-sep { background: var(--ag-card-line); }
#list-view .nf-clear, #list-view .nf-widen { color: var(--link); }
#list-view .nf-clear:hover, #list-view .nf-widen:hover { color: var(--link-hover); }
/* Find a meeting (hidden for everyone since 2026-11-02; styled so it matches if it returns). */
#list-view .nf-find.nf-find-open { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ag-ring); }
#list-view .nf-find .nf-spark, #list-view .nf-ai-icon { color: var(--accent); fill: var(--accent); }
#list-view .nf-find .nf-spark { fill: none; }
#list-view #nf-find-input::placeholder { color: var(--ag-ink-4); }
#list-view .nf-hit { border-radius: 999px; background: var(--ag-chip-bg); color: var(--ag-ink-4); box-shadow: inset 0 0 0 1px var(--ag-chip-line); }
#list-view .nf-hit-on { background: var(--ag-ok-bg); color: var(--ag-ok-fg); box-shadow: inset 0 0 0 1px var(--ag-ok-line); }
#list-view .nf-snippet { border-top-color: var(--ag-card-line); color: var(--text-muted); }
#list-view .nf-snippet mark { background: var(--ag-brand-bg); color: var(--ag-brand-fg); }
#list-view .nf-why { border-top-color: var(--ag-card-line); }

/* ---- Toolbar: count and the card / list switch ---- */
#list-view #list-count { color: var(--text-muted); }
#list-view .list-toolbar .icon-btn { border-radius: 6px; color: var(--ag-ink-4); }
#list-view .list-toolbar .icon-btn:hover { background: var(--bg-raised); color: var(--text); }
#list-view .list-toolbar .icon-btn.active { background: var(--ag-brand-bg); color: var(--ag-brand-fg); }

/* ---- Cards (grid): white, 1px EG PM line, 8px radius, hairline shadow ---- */
#list-view .cards:not(.list-mode) .card {
  background: var(--ag-card-bg); border-color: var(--ag-card-line); border-radius: 8px; box-shadow: var(--ag-shadow);
}
#list-view .cards:not(.list-mode) .card:hover { border-color: var(--ag-line-strong); box-shadow: 0 2px 8px rgba(15,17,20,.06); }
#list-view .cards:not(.list-mode) .card-upcoming { border-color: var(--ag-line-strong); }
#list-view .card-title { color: var(--text); }
#list-view .card-date { color: var(--text-muted); }
#list-view .card-icon { color: var(--ag-ink-4); }
#list-view .card-meta { color: var(--ag-ink-4); }
#list-view .auto-share-hint { color: var(--text-muted); }

/* ---- Pills: EG PM chips (neutral outlined, tags keep their #; folder and Shared in teal) ---- */
#list-view .pill {
  border-radius: 999px; background: var(--ag-chip-bg); color: var(--ag-chip-fg); box-shadow: inset 0 0 0 1px var(--ag-chip-line);
}
#list-view .pill-ghost { border-color: var(--ag-chip-line); box-shadow: none; }
#list-view .tag-pills .pill { background: var(--ag-chip-bg); color: var(--ag-chip-fg); }
#list-view .tag-pills .pill::before { color: var(--ag-ink-4); opacity: 1; }
#list-view .pill.folder-pill { background: var(--ag-brand-bg); color: var(--ag-brand-fg); box-shadow: inset 0 0 0 1px var(--ag-brand-line); }
#list-view .chip-shared, #list-view .chip-shared:hover {
  border-color: var(--ag-brand-line); border-radius: 999px; background: var(--ag-brand-bg); color: var(--ag-brand-fg);
}
#list-view .pill-accent { background: var(--accent-fill); color: #fff; box-shadow: none; }
/* Capture warnings: amber for stalled, red for an error. */
#list-view .chip-attn, #list-view .chip-attn:hover {
  border-radius: 999px; background: var(--ag-warn-bg); color: var(--ag-warn-fg); box-shadow: inset 0 0 0 1px var(--ag-warn-line);
}
#list-view .chip-attn-error, #list-view .chip-attn-error:hover {
  background: var(--ag-risk-bg); color: var(--ag-risk-fg); box-shadow: inset 0 0 0 1px var(--ag-risk-line);
}

/* ---- List view: one EG PM card, hairline rows ----
   The frame's side lines are an inset outline, so the rows keep their exact width. */
#list-view .cards.list-mode {
  background: var(--ag-card-bg); border-top-color: var(--ag-card-line); border-bottom-color: var(--ag-card-line);
  border-radius: 8px; outline: 1px solid var(--ag-card-line); outline-offset: -1px; box-shadow: var(--ag-shadow);
}
#list-view .cards.list-mode a.card + a.card { border-top-color: var(--ag-card-line); }
#list-view .cards.list-mode a.card:first-child { border-radius: 8px 8px 0 0; }
#list-view .cards.list-mode a.card:last-child { border-radius: 0 0 8px 8px; }
#list-view .cards.list-mode a.card:only-child { border-radius: 8px; }
#list-view .cards.list-mode a.card:hover { background: var(--row-hover); }
#list-view .cards.list-mode a.card .card-date { color: var(--text-muted); }

/* ---- Today / Upcoming rows and buttons ---- */
#list-view .btn { border-radius: 6px; font-weight: 600; }
#list-view .upcoming-day-label { color: var(--text-muted); letter-spacing: .08em; border-bottom-color: var(--border); }
#list-view .upcoming-event { background: var(--ag-card-bg); border-color: var(--ag-card-line); border-radius: 8px; box-shadow: var(--ag-shadow); }
#list-view .upcoming-time { color: var(--text-muted); }

/* ---- Empty state: an EG PM card (inset line, so no size change) ---- */
#list-view .empty {
  background: var(--ag-card-bg); border-radius: 8px; box-shadow: inset 0 0 0 1px var(--ag-card-line); color: var(--text-muted);
}
#list-view .empty h3 { color: var(--text); letter-spacing: -.011em; }

/* ===== Home: the "Coming up" feed and the Calendars menu ===== */
#home-view .feed-section-label { color: var(--text); }
/* Calendars control: an EG PM chip; teal line when hovered or open. The calendar colour
   dots and swatches are each calendar's own colour (data), so they stay as they are. */
#home-view .cal-menu-summary { background: var(--ag-card-bg); border-color: var(--ag-chip-line); color: var(--ag-ink-2); }
#home-view .cal-menu-summary:hover, #home-view .cal-menu[open] .cal-menu-summary { border-color: var(--accent); color: var(--text); }
#home-view .cal-menu-count { color: var(--ag-ink-4); }
#home-view .cal-menu-panel {
  background: var(--ag-card-bg); border-color: var(--ag-card-line); border-radius: 8px; box-shadow: 0 6px 16px rgba(15,17,20,.10);
}
#home-view .cal-menu-head-title { color: var(--text); }
#home-view .cal-menu-head-hint, #home-view .cal-empty { color: var(--ag-ink-4); }
#home-view .cal-item { border-radius: 6px; }
#home-view .cal-item:hover { background: var(--row-hover); }
#home-view .cal-name { color: var(--text); }
#home-view .cal-item-off .cal-name { color: var(--ag-ink-4); }
#home-view .cal-grip { color: var(--ag-ink-4); }
#home-view .cal-eye { color: var(--text-muted); }
#home-view .cal-eye:hover { background: var(--bg-raised); color: var(--text); }
#home-view .cal-eye[aria-pressed="false"] { color: var(--ag-ink-4); }
#home-view .icon-btn { border-radius: 6px; color: var(--text-muted); }
#home-view .icon-btn:hover { background: var(--bg-raised); color: var(--text); }

/* Day groups and meeting rows: EG PM labels and hairline rows. */
#home-view #feed-home-upcoming .date-group-label { color: var(--text-muted); }
#home-view #feed-home-upcoming .upc-row { border-bottom-color: var(--ag-card-line); }
#home-view #feed-home-upcoming .upc-row:hover { background: var(--row-hover); border-color: var(--ag-card-line); }
#home-view #feed-home-upcoming .upc-when { color: var(--text-muted); }
#home-view .meeting-row-title { color: var(--text); }
#home-view .upc-people { color: var(--ag-ink-4); }
#home-view .auto-share-hint, #home-view .muted { color: var(--text-muted); }
#home-view .upc-reminders > summary { color: var(--text-muted); }
#home-view .upc-reminders > summary:hover { color: var(--link); }
#home-view .upc-reminders .meeting-row-title { color: var(--text-muted); }

/* Chips: EG PM pills. 1:1 stays neutral (as today); folder chips keep their colour slot,
   in EG PM's tints (Leadership teal, Merch green, 1:1s amber, Vendors red); the two
   extra hash slots (purple, sky) keep their own tint. */
#home-view .pill:not(.event-folder-chip) {
  border-radius: 999px; background: var(--ag-chip-bg); color: var(--ag-chip-fg); box-shadow: inset 0 0 0 1px var(--ag-chip-line);
}
#home-view .event-folder-chip:is([data-folder-color="leadership"], [data-folder-color="slot-0"]) {
  background: var(--ag-brand-bg); color: var(--ag-brand-fg); box-shadow: inset 0 0 0 1px var(--ag-brand-line);
}
#home-view .event-folder-chip:is([data-folder-color="merch"], [data-folder-color="slot-1"]) {
  background: var(--ag-ok-bg); color: var(--ag-ok-fg); box-shadow: inset 0 0 0 1px var(--ag-ok-line);
}
#home-view .event-folder-chip:is([data-folder-color="oneonones"], [data-folder-color="slot-2"]) {
  background: var(--ag-warn-bg); color: var(--ag-warn-fg); box-shadow: inset 0 0 0 1px var(--ag-warn-line);
}
#home-view .event-folder-chip:is([data-folder-color="vendors"], [data-folder-color="slot-3"]) {
  background: var(--ag-risk-bg); color: var(--ag-risk-fg); box-shadow: inset 0 0 0 1px var(--ag-risk-line);
}
