/* panel-project-picker.css — the "Project" button under the new-tab prompt bar
   and its menu (panel-project-picker.js).

   The row sits in .foot, under the bar, on the new-tab page only. It is NOT in
   the bar: the bar is glass, and its popovers are glass, and glass in glass
   drops its backdrop. The menu is `.ctx-menu.bar-pop`, so it is the same
   liquid-glass component the bar's + / Model / Effort menus use, with the same
   rows (.bp-row, .bp-search, .bp-sep). Only what is new is here. */
.proj-pick-row { display: none; }
.main.empty-mode .proj-pick-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 4px 0 4px; }
.main.px-incognito .proj-pick-row { display: none; }

#projPickBtn { max-width: 100%; color: var(--t-secondary); }
#projPickBtn.has-project { color: var(--t-primary); }
#projPickBtn .tb-label { overflow: hidden; text-overflow: ellipsis; max-width: 240px; }

.proj-pick-pop { width: 260px; max-width: calc(100vw - 16px); overflow-y: auto; }
.proj-pick-pop .bp-results { max-height: 232px; }
.proj-pick-pop .bp-row .bp-name { flex: 1 1 auto; }

/* The disclaimer, where it usually lives: the panel's bottom edge. On the
   new-tab page the bar is centred high in the column, so the sentence under it
   floated mid-screen. It leaves .foot's flow and is FIXED to the panel's bottom edge (not absolute: .foot is position: relative, so absolute anchored it to the centred block),
   inset from the corner controls (the newspaper slip on the right). */
.main.empty-mode .foot-disclaimer {
  position: fixed; left: 130px; right: 130px; bottom: 5px; margin: 0;
  pointer-events: none;
}
@media (max-width: 560px) {
  .main.empty-mode .foot-disclaimer { left: 16px; right: 16px; bottom: 5px; }
}
@media (max-height: 480px) {
  .main.empty-mode .foot-disclaimer { position: static; margin: 8px 0 0; }
}

/* The mirror of Project, on the right: New tab / New group / Incognito. */
#newMenuBtn { color: var(--t-secondary); }
.new-menu-pop { width: 200px; max-width: calc(100vw - 16px); }
.new-menu-pop .bp-row .bp-name { flex: 1 1 auto; }
