/* Keep charts first at every breakpoint; never use visual-only ordering that
   leaves keyboard navigation and screen-reader order inconsistent. */
.overview-body{display:flex!important;flex-direction:column!important;gap:20px;align-items:stretch}
.overview-body>.dashboard-charts{order:0;min-width:0;width:100%}
.overview-body>.signed-people-panel{order:1!important;min-width:0;width:100%;max-width:none}
.next-live-sessions{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.next-sessions-table{width:100%;min-width:1000px;border-collapse:collapse;text-align:left;font-size:12px;line-height:1.55}
.next-sessions-table th,.next-sessions-table td{vertical-align:top;padding:12px 10px;border-bottom:1px solid var(--line)}
.next-sessions-table th{color:var(--muted);font-weight:650}
.next-sessions-table small,.next-sessions-table strong{display:block}
.next-sessions-table td:nth-child(1){min-width:180px;max-width:260px;overflow-wrap:anywhere}
.next-sessions-table td:nth-child(2){max-width:300px;overflow-wrap:anywhere}
.next-sessions-table details{margin-top:5px;max-width:290px}
.next-sessions-table details p{font-size:11px;white-space:normal;word-break:break-word}
.next-session-ref{display:block;font-size:10px;color:var(--muted);overflow-wrap:anywhere}
.next-signout-notice{position:fixed;left:50%;top:20px;transform:translateX(-50%);z-index:1000;box-sizing:border-box;width:min(680px,calc(100vw - 32px));padding:18px 22px;background:var(--panel,#fff);color:var(--text,#222);border:1px solid var(--line,#ccc);border-radius:16px;box-shadow:0 12px 36px #0002}
.next-signout-notice strong{display:block;font-size:16px;margin-bottom:7px}
.next-signout-notice p{margin:0;font-size:14px;line-height:1.6}
.next-signature-preview{max-height:320px;overflow:auto;border:1px solid var(--line);border-radius:12px}
.next-signature-preview iframe{width:100%;min-height:190px;border:0}
.next-preferences select{width:100%}
select[data-iana-timezone]{font-family:inherit;max-width:100%;min-height:42px}
@media(max-width:700px){.next-signout-notice{top:10px;padding:14px 16px}.next-policy-panel{padding:18px}.dashboard-charts{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#chat-panel{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
html[data-next-reduced-motion=true] #chat-panel{animation:none!important;transition:none!important}

/* Application-owned labels for native upload controls; filenames are untouched. */
.pom-file-control{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;max-width:100%}
.pom-file-control .muted{overflow-wrap:anywhere}
.pom-native-file{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}

/* v19: an optional floating action bar in the existing conversation scroller. */
.profile-reading-preferences{border-top:1px solid var(--line);margin-top:12px;padding-top:20px}
.profile-reading-preferences h3{margin:0 0 8px}
.conversation-toolbar{gap:8px;padding:12px;margin-bottom:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);isolation:isolate}
.conversation-view[data-floating-toolbar="true"]>.conversation-toolbar{position:sticky;top:0;z-index:12;box-shadow:0 5px 18px #0002}
.conversation-view[data-floating-toolbar="true"] .conversation-live-notice{top:calc(var(--conversation-toolbar-height,60px) + 8px);z-index:11}
.conversation-view[data-floating-toolbar="true"] .message-card{scroll-margin-top:calc(var(--conversation-toolbar-height,60px) + 18px)}
@media(max-width:760px){.conversation-toolbar{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:10px;overscroll-behavior-x:contain;scrollbar-width:thin}.conversation-toolbar>button{flex-shrink:0;white-space:nowrap}}
