/* Agent panel navigation: only what belongs to the agent, as one calm list. Three short groups by meaning
   (today: resumo, avisos / work: tarefas, rotinas / knowledge: biblioteca, memória) separated by space, not labels.
   Each row: drawn icon, name, live count at the right edge. Hover and the open item use surface tone, no borders. */
.p-nav { display:flex; flex-direction:column; gap:14px; margin-top:auto; padding-top:16px; }
.p-nav[hidden], .nav-list[hidden] { display:none; }
.nav-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
.nav-item { width:100%; min-height:44px; display:flex; align-items:center; gap:12px; padding:0 12px; border:0; border-radius:12px;
  background:transparent; color:var(--text); font:inherit; font-size:14px; text-align:left; cursor:pointer; }
.nav-item .i { flex:none; width:20px; height:20px; color:var(--text-2); }
.nav-item .nav-label { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.nav-item .nav-n, .nav-item .count { margin-left:auto; }
.nav-item .nav-n { color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; }
.nav-item:hover { background:var(--hover); }
.nav-item:focus-visible { outline:2px solid var(--focus); outline-offset:-2px; }
.nav-item[aria-expanded="true"], .nav-item.on { background:var(--surface-2); }

/* Account menu theme: one row that reads like the other items (same 13px type, 12px inset, 40px height), with the
   choice as a small segmented control on the right: a sunken tray, the chosen side raised on the menu surface. */
.menu-theme { display:flex; align-items:center; gap:8px; min-height:40px; padding:0 4px 0 12px; font-size:13px; color:var(--text); }
.menu-theme[hidden] { display:none; }
.menu-theme .grow { flex:1; }
.menu-theme .menu-item.seg { width:auto; flex:none; min-height:28px; padding:0 12px; border-radius:999px; justify-content:center;
  font-size:12px; color:var(--text-2); background:transparent; }
.menu-theme .menu-item.seg:first-of-type { margin-left:0; }
.menu-theme:has(.seg) { --tray:var(--surface-2); }
.menu-theme .seg-tray, .menu-theme .menu-item.seg:hover { background:transparent; }
.menu-theme .menu-item.seg:hover { color:var(--text); }
.menu-theme .menu-item.seg[aria-checked="true"] { background:var(--surface); color:var(--text); font-weight:600; box-shadow:0 1px 2px rgba(0,0,0,.18), inset 0 0 0 1px var(--border); }
.menu-theme .menu-item.seg:focus-visible { outline:2px solid var(--focus); outline-offset:1px; }
.menu-theme .menu-item.seg .check { display:none; }
.menu-theme .segs { display:inline-flex; gap:2px; padding:2px; border-radius:999px; background:var(--surface-2); }

/* Ilha: round status island in the agent-pill family (same height, surface and shadow). One icon; the tone carries
   the state, the words are in aria-label/title. Used beside the agent pill for the local AI (desktop only). */
.ilha { flex:none; display:inline-grid; place-items:center; width:44px; height:44px; margin-left:4px; padding:0; border:0;
  border-radius:50%; background:var(--ag-bg); box-shadow:var(--shadow-sm); color:var(--muted); cursor:pointer; pointer-events:auto; }
.ilha[hidden] { display:none; }
.ilha .i { width:20px; height:20px; }
.ilha:hover { filter:brightness(1.06); }
.ilha:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
.ilha[data-tom="ok"] { color:var(--tone-ok-fg); }
.ilha[data-tom="espera"] { color:var(--muted); }
.ilha[data-tom="carregando"] { color:var(--tone-gold-fg); }
.ilha[data-tom="carregando"] .i { animation:ilha-respira 1.6s ease-in-out infinite; }
.ilha[data-tom="erro"] { color:var(--tone-err-fg); }
@keyframes ilha-respira { 50% { opacity:.35; } }
@media (prefers-reduced-motion: reduce) { .ilha[data-tom="carregando"] .i { animation:none; } }
