/* ux2 (PRSXA + Pearl AI): answer tools in one More menu, top-bar tools in More on computers, archived chats. */
html body #app .pal-acts > .ux2-af{display:none !important}
html body #app .pal-acts > .ux2-af.ux2-unfold{display:inline-flex !important;position:fixed !important;margin:0 !important;opacity:0 !important;pointer-events:none !important;z-index:1}
html body #app .pal-acts > .ux2-amore[hidden]{display:none !important}
html body #app .pal-acts > .ux2-amore svg{flex:0 0 auto}
.ux2-amenu{max-height:min(420px,calc(100vh - 24px));overflow:auto}
/* ux2b-light: a light, compact menu like the rest of the answer tools */
.ppl-menu.ux2-amenu{min-width:184px;padding:4px;border-radius:12px;box-shadow:0 10px 30px rgba(15,21,36,.12)}
.ppl-menu.ux2-amenu button{height:34px;gap:10px;padding:0 10px;border-radius:8px;font-size:13.5px;font-weight:400;color:var(--app-text,#0f1524)}
.ppl-menu.ux2-amenu button svg{width:15px;height:15px;flex:0 0 15px;stroke-width:1.8}
@media (hover:none){.ppl-menu.ux2-amenu button{height:42px;font-size:14px}}
.ux2-amenu button.is-on{color:var(--accent,#3161E8)}

/* top bar on computers: Outline and Share stay, the rest is under More (pearl-polish.js ux2-desk) */
@media (min-width:821px){
  html.ux2-desk body #app #topbar .ppl-fold{display:none !important}
  html.ux2-desk body #app #topbar .ppl-fold.ppl-unfold{display:inline-flex !important;position:fixed;margin:0;opacity:0;pointer-events:none;z-index:1}
  html.ux2-desk body #app #topbar-actions #ppl-more{display:inline-flex;align-items:center;justify-content:center;width:38px;height:36px;padding:0}
  html.ux2-desk body #app #topbar-actions .ppl-new{display:none !important}
}

/* chat list: archived chats, search in messages too */
.ux2-arch{padding:0 !important}
.ux2-arch-t{display:flex;align-items:center;gap:6px;width:100%;padding:10px 12px 6px;border:0;background:transparent;color:inherit;font:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;text-transform:inherit;text-align:left;cursor:pointer;border-radius:8px}
.ux2-arch-t:hover{color:var(--app-text,#0f172a)}
.ux2-arch-t:focus-visible{outline:2px solid var(--accent,#3161E8);outline-offset:-2px}
.ux2-arch-t svg{transition:transform .15s ease}
.ux2-arch-t[aria-expanded="true"] svg{transform:rotate(90deg)}
.pas-item.ux2-is-arch .thread-title{opacity:.75}
.ux2-sall{display:flex;align-items:center;gap:8px;width:calc(100% - 16px);margin:6px 8px;padding:9px 12px;border:1px dashed var(--app-border,#d0d5dd);border-radius:10px;background:transparent;color:var(--app-text-dim,#475467);font:inherit;font-size:13px;font-weight:600;text-align:left;cursor:pointer}
.ux2-sall{border-style:solid}
.ux2-sall:hover{border-color:var(--accent,#3161E8);color:var(--app-text,#0f172a)}
.ux2-sall:focus-visible{outline:2px solid var(--accent,#3161E8);outline-offset:1px}
.ux2-sall span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-width:0;line-height:1.35;overflow-wrap:anywhere}
.ux2-sall svg{flex:0 0 auto;width:15px;height:15px}
@media (hover:none){.ux2-sall{min-height:42px}}
@media (prefers-reduced-motion:reduce){.ux2-arch-t svg{transition:none}}
