/* View titles other than the document h1. Sizes follow the previous h1 rules. */
.auth-panel .view-title { margin: 0.67em 0 1.5rem; overflow-wrap: anywhere; font-size: clamp(1.7rem, 4vw, 1.9rem); line-height: 1.2; text-wrap: balance; font-weight: 700; }
.inbox-sidebar .view-title { font-size: 1.25rem; margin: 0; font-weight: 700; }
/* WCAG 2.5.8: disclosure summaries are a 24px target. */
#room-about > summary,
#account-settings > summary,
.agent-advanced > summary,
.agent-invite-instructions > summary,
.inbox-gmail summary,
#agent-local-client > summary { display: flex; align-items: center; min-width: 24px; min-height: 24px; }
.button.destructive { color: var(--red); background: var(--panel); border: 1px solid var(--red); }
.deletion-summary { white-space: pre-wrap; }
.deletion-summary pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.inbox-unread { font-weight: 700; }
.inbox-thread-depth-0 { margin-left: 0; }
.inbox-thread-depth-1 { margin-left: 16px; }
.inbox-thread-depth-2 { margin-left: 32px; }
.inbox-thread-depth-3 { margin-left: 48px; }
.inbox-thread-depth-4 { margin-left: 64px; }
.inbox-thread-depth-5 { margin-left: 80px; }
.inbox-thread-depth-6 { margin-left: 96px; }
@media (max-width: 940px) {
  .app-shell:has(> #workspace-nav:not([hidden])) { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
}
.join-page { max-width: 34rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.join-card { background: var(--card, #fff); border: 1px solid var(--border, #e2e2e2); border-radius: 12px; padding: 1.5rem; }
.join-card h2 { font-size: 1.35rem; margin: 0 0 .5rem; font-weight: 650; }
/* The error screen reads as an error state at a glance, not just another card. */
#join-error-title { color: var(--red); }
.join-card p { margin: .5rem 0; }
.join-permissions { margin: .5rem 0; padding-left: 1.25rem; }
.join-permissions li { margin: .2rem 0; }
.join-secret-row { display: flex; gap: .5rem; margin: .75rem 0; }
/* min-width: 0 lets the flex item shrink below its intrinsic ~20ch width so
   the access-key row cannot overflow the card on narrow viewports or under
   enlarged text (same overflow class .key-field already guards). */
.join-secret-row input { flex: 1; min-width: 0; font-family: monospace; }
.join-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
/* M-01 (mobile onboarding): the request-access door's primary control must
   meet the coarse-pointer touch floor. The door moved from the signed-in
   Rooms panel disclosure to the join page (issue 3293 consolidation); the
   floor follows the door — a bare .button renders ~34px tall. */
#join-request-submit { min-height: 44px; }
h1.join-brand { text-align: center; margin: 0 0 1.5rem; font-size: 1rem; font-weight: 650; opacity: .85; }
/* BU-14: claim-card headings carry tabindex="-1" as the programmatic focus
   target after board re-renders (src/board-ui.js focus stick) and for j/k
   keyboard card navigation (src/board-keyboard.mjs). Keep the ring visible
   so keyboard users can see where focus landed. */
.claim-card h4:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: .3rem; }

/* Keep the permissions disclosure tappable beside the browser join action. */
.join-permissions-details > summary { min-height: 24px; }

/* The Advanced browser join disclosure is a touch and keyboard action. */
#join-browser-alternative > summary { box-sizing: border-box; min-height: 44px; padding-block: .5rem; cursor: pointer; }

/* Standalone links under the sign-in forms (Back to log in, What is Project
   Room) are 17px tall by default. Give touch users a 44px target. */
@media (pointer: coarse) {
  .join-card .form-hint a { display: inline-flex; align-items: center; min-height: var(--control-min-target-coarse); }
}
