/* EG Hub shared page-header pieces (UI cleanup, 2026-10-29). One look for the
   top of every page: a small path, a title, one muted line, one visible
   secondary button, and a ⋯ menu for everything else. Built on the app's own
   tokens (style.css :root) so light, dark and auto themes all follow. */

/* ---- icons inside buttons and menus (stroke icons, never emoji) ---- */
.eg-i { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btn-with-icon { display: inline-flex; align-items: center; gap: 6px; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; padding: 6px 8px; }

/* ---- the path: "‹ All notes / Folder" ---- */
.page-path { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; min-width: 0;
  font-size: 12.5px; line-height: 1.4; color: var(--text-muted); margin: 0 0 8px; }
.page-path .page-path-link { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 0;
  margin: 0; background: transparent; border: 0; border-radius: 4px; color: var(--text-muted);
  font: inherit; cursor: pointer; text-decoration: none; }
.page-path .page-path-link:hover { color: var(--text); text-decoration: underline; }
.page-path .page-path-link:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.page-path .eg-i { width: 14px; height: 14px; }
.page-path-sep { color: var(--text-dim); opacity: 0.6; margin: 0 4px; }
.page-path-here { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28ch; }

/* ---- the one muted line under a title ---- */
.page-meta { color: var(--text-muted); font-size: 13px; line-height: 1.5; margin-top: 2px; }
.page-meta:empty { display: none; }

/* ---- people as name chips ---- */
.people-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.people-chips.hidden { display: none; }
.person-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 2px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg-alt);
  font-size: 12.5px; line-height: 1.5; color: var(--text); white-space: nowrap; text-decoration: none;
  max-width: 100%; }
a.person-chip:hover { border-color: var(--accent); }
.person-chip small { color: var(--text-muted); font-size: 11px; }
.person-av { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; font-size: 10px; font-weight: 600; color: #fff; flex-shrink: 0; letter-spacing: 0; }
.person-av.av-1 { background: #6366f1; }
.person-av.av-2 { background: #0f766e; }
.person-av.av-3 { background: #b45309; }
.person-av.av-4 { background: #be185d; }
button.person-more { cursor: pointer; padding: 2px 10px; background: var(--bg-raised); color: var(--text-muted);
  font-family: inherit; }
button.person-more:hover { color: var(--text); }
.people-chips:not(.expanded) .person-chip.person-extra { display: none; }
.people-chips.expanded button.person-more { display: none; }

/* ---- the ⋯ menu ---- */
.menu-wrap { position: relative; display: inline-flex; }
.action-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; width: 244px; max-width: calc(100vw - 20px);
  padding: 5px; background: var(--bg-alt); border: 1px solid var(--btn-secondary-border); border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14); text-align: left; }
.action-menu[hidden], .action-menu.hidden { display: none; }
.action-menu .am-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; margin: 0;
  background: transparent; border: 0; border-radius: 5px; color: var(--text); font: inherit; font-size: 13px;
  line-height: 1.4; text-align: left; cursor: pointer; text-decoration: none; }
.action-menu .am-item:hover, .action-menu .am-item:focus { background: var(--accent-soft); color: var(--accent-on); outline: none; }
.action-menu .am-item[disabled] { opacity: 0.5; cursor: default; }
.action-menu .am-item[hidden] { display: none; }
.action-menu .am-sub { margin-left: auto; padding-left: 8px; color: var(--text-muted); font-size: 11.5px;
  max-width: 11ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-menu .am-item:hover .am-sub, .action-menu .am-item:focus .am-sub { color: inherit; }
.action-menu .am-sep { border: 0; border-top: 1px solid var(--border); margin: 5px 2px; }
.action-menu .am-sep[hidden] { display: none; }
.action-menu .am-danger { color: var(--danger-text); }
.action-menu .am-danger:hover, .action-menu .am-danger:focus { background: rgba(185, 28, 28, 0.10); color: var(--danger-text); }
.action-menu .am-note { padding: 6px 9px; font-size: 11.5px; line-height: 1.45; color: var(--text-muted); }
.action-menu .am-note:empty { display: none; }
.action-menu .am-toggle { margin-left: auto; width: 26px; height: 15px; border-radius: 999px; background: var(--btn-secondary-border);
  position: relative; flex-shrink: 0; transition: background 0.12s; }
.action-menu .am-toggle::after { content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px;
  border-radius: 50%; background: #fff; transition: transform 0.12s; }
.action-menu [aria-checked="true"] .am-toggle { background: var(--accent-fill); }
.action-menu [aria-checked="true"] .am-toggle::after { transform: translateX(11px); }
.action-menu .am-check { margin-left: auto; width: 14px; height: 14px; }
.action-menu [aria-checked="false"] .am-check { visibility: hidden; }
.action-menu .am-head { display: flex; align-items: center; gap: 6px; padding: 6px 9px 4px; font-size: 11.5px;
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }

/* ---- one quiet line inside a panel, with a text-link action ---- */
.inline-notice { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 10px;
  font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }
.inline-notice.hidden { display: none; }
.inline-notice.is-error { color: var(--warn-text); }
.inline-notice .link-btn { padding: 0; background: transparent; border: 0; color: var(--link); font: inherit;
  font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.inline-notice .link-btn:hover { color: var(--link-hover); }
.inline-notice .link-btn[disabled] { opacity: 0.5; cursor: default; }
.inline-notice .link-btn[hidden] { display: none; }

/* Phone: chips carry first names only, and the whole path/people block gets tighter. */
.person-chip .pc-first { display: none; }
@media (max-width: 600px) {
  .person-chip .pc-full { display: none; }
  .person-chip .pc-first { display: inline; }
  .people-chips { gap: 5px; margin-top: 8px; }
  .page-path-here { max-width: 20ch; }
}

/* ---- one header for every page (UI cleanup 2026-10-29) ----
   Every page opens the same way: an optional path, a 22px title, one muted
   line, and the page's one secondary button with a ⋯ menu for the rest. The
   older .person-header (h1) and .objectives-header (h2) families get the note
   page's title and muted-line sizes, and a path row when they have one. */
.person-header { flex-wrap: wrap; row-gap: 0; padding: 14px 24px; }
.person-header > .page-path { flex: 0 0 100%; margin: 0 0 8px; }
.person-meta h1, .header-left h2, .person-title {
  margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; color: var(--text); }
.person-meta .muted, .header-left > .muted { font-size: 13px; line-height: 1.5; margin-top: 2px; }
.objectives-header .page-path { margin-bottom: 8px; }

/* a header's icon-only button (gear, ⋯) uses the one secondary look */
.topbar .icon-btn .eg-i, .nav-gear .eg-i { width: 16px; height: 16px; }
.nav-gear { display: inline-flex; align-items: center; }

/* summary follow-up buttons (Schedule follow-up, Add to EG PM): the secondary look, not a dashed one-off */
.btn-sm.btn-with-icon .eg-i { width: 13px; height: 13px; }
.pill .eg-i { width: 12px; height: 12px; margin-right: 2px; }
.wl-pri-flag .eg-i { width: 13px; height: 13px; }
.wl-pri-list li.flagged .wl-pri-flag { color: var(--danger-text); }
.todo-act .eg-i { width: 14px; height: 14px; vertical-align: -2px; }
.todo-vis-badge .eg-i, .wl-other-flags .eg-i, .oo1-chip .eg-i, .cf-booked .eg-i { width: 12px; height: 12px; vertical-align: -1px; }
.wl-nudge-trigger .eg-i { width: 12px; height: 12px; vertical-align: -1px; }

/* ---- one page gutter ----
   Pages started their content at 16, 20, 24 or 52px from the sidebar, so the
   left edge jumped as you moved between them. Desktop pages now share 24px,
   the same as the note page; phones keep their own tighter padding. */
:root { --page-x: 24px; }
@media (min-width: 901px) {
  .list-view, .home-view { padding-left: var(--page-x); padding-right: var(--page-x); }
  .person-tabs, .tabs { padding-left: var(--page-x); padding-right: var(--page-x); }
  .person-panels, .tab-panel, .settings-section { padding-left: var(--page-x); padding-right: var(--page-x); }
  .main #view-weekly-logs, .main .plan-page, .main .wlog-page, .main .comp-page, .main .brain-page { padding-left: var(--page-x); padding-right: var(--page-x); }
  .main .admin-view { padding-left: var(--page-x); padding-right: var(--page-x); }
  .main .ptx { padding-left: 0; padding-right: 0; }
  .main .plan-view.active > .plan-page { padding-left: var(--page-x); padding-right: var(--page-x); }
  .main #view-settings, .main #view-github { padding: 14px var(--page-x) 24px; }
  .main .leadership-view { padding: 0 0 24px; }
  .main .lt-teamsearch-wrap { margin: 4px var(--page-x) 16px }
}

@media (max-width: 900px) {
  .main #view-settings, .main #view-github { padding: 12px 16px 24px; }
}
