/* Shared secondary typography for the website and bundled mobile application.
   Keep the existing Arabic family; strengthen captions without scaling icons/headings. */
:root{--tw-caption-size:14px;--tw-helper-size:14px;--tw-secondary-ink:#49675f}
:root[data-theme=dark]{--tw-secondary-ink:#bdd5ce}
:root body :is(.language-select>span,.writing-language-bar>label,.writing-input-label,.assistant-input-label,.speaker-tag,.documents-language-bar>label,.setting-field,.setting-check){font-size:var(--tw-caption-size)!important;font-weight:600!important;line-height:1.55!important;color:var(--tw-secondary-ink)}
:root body :is(.language-select>span,.speaker-tag){height:auto!important;min-height:22px;margin-block:0 5px!important}
:root body :is(.writing-intro,.photo-intro,.photo-privacy,.photo-edit-hint,.photo-reading-note,.documents-hint,.assistant-language-help,.language-support-note,.pronunciation-note,.settings-note,.modal-note,.rates-disclaimer,.plan-note,.plan-terms,.plan-cycle,.plan-feedback,.tw-consent,.tw-password-hint,.tw-form-status,.tw-footer,.privacy-note,.privacy-note small,.side-tab small){font-size:var(--tw-helper-size)!important;font-weight:500!important;line-height:1.65!important;color:var(--tw-secondary-ink)}
:root body :is(#writing-status,.photo-status,#documents-status,#documents-audio-status,#assistant-status,#voice-picker-note,#account-billing-status,#account-load-status,#account-email,.rate-footer,.rate-footer #rate-status,.amount-block>small,.conversation-meta,.quick-heading>span,.eyebrow){font-size:var(--tw-helper-size)!important;font-weight:500!important;line-height:1.55!important}
:root body :is(#writing-count,#photo-filename){font-size:13px!important;font-weight:600!important;line-height:1.5!important;height:auto!important;min-height:20px}
:root body .recording-status{height:auto!important;min-height:22px!important;font-size:14px!important}
:root body .recording-status>span{font-size:14px!important;font-weight:500!important;line-height:1.5!important;max-height:none!important;white-space:normal!important;overflow:visible!important}
:root body .bottom-nav>button{font-size:13px!important;font-weight:600!important;line-height:1.5!important;min-width:0;padding-inline:2px!important;white-space:normal}
:root body :is(.theme-toggle-label,.offline-button-label,.account-header-label){font-size:13px!important;font-weight:600!important;line-height:1.5!important}
:root body #quota-bar [data-quota]{font-size:13px!important;font-weight:600;line-height:1.5}
:root body #quota-bar [data-quota] strong{font-size:14px!important;line-height:1.5}
:root body #quota-bar #quota-upgrade{font-size:14px!important;font-weight:700;flex-basis:64px;min-width:64px}
:root body .playback-controls :is(.speed-control,#playback-speed,#voice-open){font-size:14px!important;font-weight:600!important;line-height:1.5!important;height:auto!important;min-height:36px}
:root body .playback-controls :is(#replay,#replay span,#whatsapp-voice){font-size:14px!important;font-weight:600!important;line-height:1.5!important;white-space:normal!important;text-overflow:clip!important;overflow:visible!important;height:auto!important}
:root body :is(#writing-clear,#writing-phrases,#writing-copy,.photo-result-heading button,#photo-text-translate,.photo-camera-button,.photo-upload-button,.documents-result-heading button){font-size:14px!important;font-weight:600!important;line-height:1.5!important}
/* Secondary lines may wrap, so their containers must grow rather than clip. */
:root body :is(.photo-privacy,.photo-status,.photo-edit-hint,.documents-hint,.assistant-language-help,#writing-status,.rate-footer,.side-tab small){height:auto!important;max-height:none!important;white-space:normal}
:root body .amount-block{min-width:0}
:root body .currency-row{min-height:88px!important;height:auto!important;flex-shrink:0}
@media(max-width:359px){
 :root body #quota-bar{gap:0}
 :root body #quota-bar #quota-upgrade{flex-basis:58px;min-width:58px}
 :root body .bottom-nav>button{font-size:13px!important;letter-spacing:0}
 :root body .playback-controls .voice-main-actions{gap:6px}
 :root body .playback-controls :is(#replay,#whatsapp-voice){padding-inline:5px;gap:4px}
}
/* Keep larger voice captions inside a scrollable workspace above the tabs. */
:root:has(body[data-view=translator]:not(.welcome-open)){height:100%!important;overflow:hidden!important}
:root body[data-view=translator]:not(.welcome-open){position:fixed!important;inset:0;height:100%!important;min-height:0!important;overflow:hidden!important}
:root body[data-view=translator]:not(.welcome-open) .app-shell{position:fixed!important;inset-inline:0!important;top:var(--app-top,0px)!important;height:var(--app-height,100dvh)!important;min-height:0!important;overflow:hidden!important}
:root body[data-view=translator]:not(.welcome-open) .app-shell main{flex:1 1 0!important;min-height:0!important;height:auto!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding-bottom:6px!important}
:root body[data-view=translator]:not(.welcome-open) .workspace{display:flex;flex-direction:column;align-items:stretch;flex:1 0 auto!important;height:auto!important;min-height:100%!important;overflow:visible!important}
:root body[data-view=translator] #translator.active{flex:1 0 auto;width:100%;height:auto;overflow:visible}
/* Language captions remain visible even in the compact phone layout. */
:root body .language-select>span{display:block!important}
:root body #offline-open>span{font-size:13px!important;font-weight:600!important;line-height:1.5!important}
/* Generated language controls and tool-specific helper text use the same scale. */
:root body :is(.documents-languages>label>span,.documents-source-card>label,.assistant-toolbar>label>span,.assistant-composer-hint,#photo-empty p,.assistant-empty>p,.assistant-user>small,#assistant-image-name,#rate-label){font-size:14px!important;font-weight:500!important;line-height:1.55!important;color:var(--tw-secondary-ink);height:auto!important;max-height:none}
:root body :is(.language-picker-button>span,.language-picker-button,#writing-submit,#writing-listen,#documents-listen,#documents-attach,.clear-action,.assistant-empty>button,.assistant-examples>button,.assistant-copy,.assistant-download,#assistant-image-remove,.currency-choice strong){font-size:14px!important;font-weight:600!important;line-height:1.5!important}
:root body .language-picker-button{height:auto!important;min-height:46px}
:root body .language-picker-button>span{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;min-width:0}
:root body :is(.documents-result-heading h3,#assistant-title){font-size:16px!important;line-height:1.5!important;font-weight:600}
:root body .translator-card .mic-controls{height:auto!important;flex:0 0 auto!important}
:root body .translator-card .mic-button{height:auto!important;min-height:48px!important;font-size:14px!important;line-height:1.5!important}
:root body :is(#mic-a-label,#mic-b-label){font-size:14px!important;font-weight:600!important;line-height:1.5!important}
