/* ONE header for the right-hand panels (notifications and messages): the same height, title, line and close button, so clicking from one to the other changes nothing but the content. */
.ch-phead { flex: none; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 4px 6px 4px 18px; border-bottom: 1px solid var(--msg-border); background: var(--msg-surface); color: var(--msg-text); font-size: 20px; font-weight: 700; line-height: 1.2; }
.ch-phead > b, .ch-phead > span:first-child { flex: 1; min-width: 0; font-weight: 700; }
.ch-phead-x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--msg-text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ch-phead-x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .ch-phead-x:hover { background: var(--msg-hover); } }
.ch-phead-x:focus-visible { outline: 2px solid var(--msg-ring); outline-offset: -2px; }
/* a phone: the title bar of a full-screen panel is a sticky bar at the very top. iPhone Safari colours the strip behind its clock from a fixed or sticky bar
   there (the notifications panel had it, the messages panel did not and its strip stayed black, owner 2026-11-10) */
@media (max-width: 899px) { .ch-phead { position: sticky; top: 0; z-index: 2; } }
