/* Keep established body/headings; all compact text uses a readable 14px minimum. */
:root{--vica-type-meta:14px;--vica-type-body:15px;--vica-type-section:20px;--vica-type-title:28px;--vica-font:"IBM Plex Sans",Arial,sans-serif}
:is(#app,#platform-dialog,#integration-dialog,#unsaved-choice,#setup-guide-dialog,#auth-page,#inbox-bulk-bar,.vica-select-menu,#toast),:is(#app,#platform-dialog,#integration-dialog,#unsaved-choice,#setup-guide-dialog,#auth-page,#inbox-bulk-bar,.vica-select-menu,#toast) *{font-family:var(--vica-font)!important;font-synthesis:none}
/* Preserve established body and heading sizes; raise only small captions and controls. */
#app :is(button,input,select,textarea),:is(#platform-dialog,#integration-dialog,#unsaved-choice,#setup-guide-dialog,#auth-page) :is(button,input,select,textarea){font-family:var(--vica-font)!important}
#app :is(.message-source,.message-row-heading time,.message-row-flags .vica-status,.messages-workflow,.messages-list-caption,.conversation-context summary,.conversation-identity .hint,.back-link,.hint,small),:is(#platform-dialog,#integration-dialog,#unsaved-choice,#setup-guide-dialog,#auth-page) :is(.hint,small,label,.btn,.text-btn){font-size:var(--vica-type-meta);line-height:1.5}
#app .conversation-navigation .back-link{display:inline-flex;align-items:center;gap:7px;min-height:40px;font-size:var(--vica-type-meta);font-weight:500;color:var(--business-primary,var(--ink));padding:5px 0}
#app #conversation-header-actions{max-width:60%;min-width:0}
#app .conversation-status-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
#app .conversation-status-controls>.vica-select{flex:0 1 230px;width:230px;min-width:160px}
#app .conversation-status-controls .vica-select-trigger{min-height:44px;font-size:var(--vica-type-meta)}
#app .conversation-status-controls>[data-workflow-action]{flex:0 0 auto;width:auto;min-height:44px;margin:0;white-space:nowrap;font-size:var(--vica-type-meta)}
#app .conversation-status-controls .conversation-status-reset,#app .conversation-status-controls .conversation-status-feedback{flex-basis:100%;font-size:var(--vica-type-meta)!important}
#app #conversation-runtime:empty,#app #vica-dialog-runtime:empty{display:none}
#app .conversation-composer-actions{justify-content:flex-end}
#app .conversation-composer-actions #conversation-runtime{margin-right:auto}
#auth-page :is(.hint,.eyebrow,.auth-footer,label,small){font-size:var(--vica-type-meta)}
@media(max-width:800px){#app #conversation-header-actions{max-width:100%;flex-basis:100%}#app .conversation-status-controls{justify-content:flex-start}#app .conversation-status-controls>.vica-select{flex:1 1 160px;width:auto;min-width:0}}
/* Leave room for the menu and account controls on the narrowest phones. */
@media(max-width:360px){#app .topbar{gap:8px;padding-inline:12px}#app .topbar h1{font-size:18px;overflow-wrap:normal;word-break:normal}}
#toast{inset:auto 25px 25px auto;margin:0;border:0;box-sizing:border-box;max-width:min(480px,calc(100vw - 32px))}
@media(max-width:760px){#toast{right:16px;bottom:max(16px,env(safe-area-inset-bottom));max-width:calc(100vw - 32px)}}
