/* popovers-notify.css — account/team/notify popovers (shared chrome), notifications panel, + button on nav item */

/* ───────── Popovers (account / team / notify share one chrome) ───────── */
.acct-menu,
#notifyPanel {
  position: fixed;
  z-index: 1000;
  padding: 0;
  background: var(--popover-bg);
  color: var(--text);
  border: 1px solid var(--popover-border);
  border-radius: var(--popover-radius);
  box-shadow: var(--popover-shadow);
  font-size: var(--popover-font);
  line-height: 16px;
  overflow: hidden;
}
.acct-menu[hidden],
#notifyPanel[hidden] { display: none; }

.acct-sep { height: 1px; background: var(--popover-sep); }
.acct-sec { padding: var(--popover-pad); }
.acct-item {
  width: 100%;
  height: var(--popover-item-h);
  padding: 0 var(--popover-item-pad-x);
  border-radius: var(--popover-item-radius);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: var(--popover-font);
}
.acct-item:hover { background: var(--hover); }
.acct-item .acct-ico { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }
.acct-item .acct-grow { flex: 1; min-width: 0; }

/* Account menu content */
#acctMenu .acct-top {
  padding: 14px 16px;
  display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; align-items: center;
  justify-items: start;
}
#acctMenu .acct-avatar {
  grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-red); color: #fff;
  font-size: 16px; font-weight: 500; line-height: 36px; text-align: center;
}
#acctMenu .acct-name { margin: 0; align-self: end; font-size: 13px; font-weight: 600; text-decoration: none; color: #111; }
#acctMenu .acct-email { align-self: start; font-size: 12px; margin-top: 1px; color: var(--text-secondary); }
#acctMenu .acct-row {
  height: var(--popover-item-h);
  padding: 0 4px 0 var(--popover-item-pad-x);
  display: flex; align-items: center; gap: 12px;
}
#acctMenu .acct-row .acct-ico { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }
#acctMenu .acct-row .acct-grow { flex: 1; }
#acctMenu .acct-sep-in { margin: 4px 4px; background: var(--popover-sep); }
#acctMenu .acct-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-red); flex-shrink: 0; margin-left: 4px;
}
.lang-seg {
  display: flex;
  padding: 2px;
  gap: 0;
  border-radius: 999px;
  background: #f2f2f4;
  border: 1px solid #e6e6ea;
  height: 28px;
}
.lang-seg button {
  min-width: 32px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  line-height: 22px;
  color: #6b6b73;
}
.lang-seg button.is-on {
  background: #fff;
  color: #111;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 0 0 0.5px rgba(0,0,0,0.04);
}

/* Team menu — same chrome as account; only content differs */
#teamMenu .t-ava {
  width: 18px; height: 18px; border-radius: 50%;
  color: #fff; font-size: 10px; font-weight: 600; line-height: 18px; text-align: center; flex-shrink: 0;
}
#teamMenu .t-name { flex: 1; min-width: 0; font-size: var(--popover-font); color: #111; overflow: hidden; text-overflow: ellipsis; }
#teamMenu .t-plus {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px dashed #b5b5bd; background: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
#teamMenu .t-new .t-name { color: var(--text-secondary); }
#teamMenu .t-new:hover .t-name { color: #111; }
#teamMenu .t-check { visibility: hidden; flex-shrink: 0; }
#teamMenu .acct-item.is-current .t-check { visibility: visible; }

/* ───────── Notifications panel ───────── */
.icon-btn.is-open { background: var(--hover); }
#notifyPanel {
  /* Notify has more content than account/team: not bound to sidebar width.
     Left edge stays aligned with the sidebar inset; it extends over the main pane. */
  width: 360px;
  max-height: min(560px, calc(100vh - 72px));
  display: flex; flex-direction: column;
}
.nt-head {
  flex-shrink: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--popover-sep);
}
.nt-title {
  font-size: 13px; font-weight: 600; color: #111; line-height: 20px;
}
.nt-list {
  flex: 1; min-height: 0;
  overflow-y: auto;
  padding: 4px 0;
}
.nt-item {
  width: 100%;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 10px;
  align-items: start;
  text-align: left;
  border: 0; background: transparent;
  cursor: pointer;
}
.nt-item:hover { background: #fafafa; }
.nt-ava {
  width: 24px; height: 24px; border-radius: 50%;
  color: #fff; font-size: 10px; font-weight: 600;
  line-height: 24px; text-align: center; flex-shrink: 0;
}
.nt-body { min-width: 0; }
.nt-row1 {
  display: flex; align-items: center; gap: 6px;
  min-height: 18px;
}
.nt-name {
  flex: 1; min-width: 0;
  font-size: 12px; font-weight: 600; color: #111;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nt-time { font-size: 11px; color: #8c8c8c; flex-shrink: 0; }
.nt-act {
  margin-top: 1px;
  font-size: 12px; color: #666; line-height: 16px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden;
}
.nt-empty {
  padding: 28px 16px; text-align: center;
  font-size: 12px; color: #8c8c8c;
}
.acct-item.two {
  height: 40px;
  align-items: center;
}
.acct-item.two .acct-ico { width: 16px; height: 16px; }
.acct-mini {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-red); color: #fff;
  font-size: 10px; font-weight: 500; line-height: 16px; text-align: center;
}
.acct-item .sub { color: var(--text-secondary); }
.acct-item.two .col { display: flex; flex-direction: column; justify-content: center; gap: 0; }

/* + button on nav item */
.nav-item { position: relative; }
.nav-item:has(.nav-add) { padding-right: 30px; }
.nav-add {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
}
.nav-add:hover { background: rgba(0,0,0,0.07); color: #111; }
