/* DUSOFFICE ONE – verbindliche, modulübergreifende Typografie */
:root{
  --duo-font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  --duo-font-display:28px;
  --duo-font-page:24px;
  --duo-font-section:20px;
  --duo-font-card:17px;
  --duo-font-body:16px;
  --duo-font-nav:15px;
  --duo-font-table:15px;
  --duo-font-control:14px;
  --duo-font-meta:14px;
  --duo-font-kpi:30px;
  --duo-line-body:1.5;
  --duo-line-list:1.4;
}
html,body.duo-shell{font-family:var(--duo-font-family)!important;font-size:var(--duo-font-body);font-variant-numeric:tabular-nums}
body.duo-shell :where(button,input,select,textarea,table){font-family:var(--duo-font-family)}
/* Let no late-loaded legacy module rule shrink readable work information. */
#duo-app :where(a,button,input,select,textarea,label,legend,p,li,dt,dd,th,td,small,time,span,strong,b,em,i,summary,code){font-size:max(14px,1em)!important}
body.duo-shell :where(p,li,dd,dt){font-size:var(--duo-font-body);line-height:var(--duo-line-body)}
body.duo-shell h1{font-size:var(--duo-font-display);font-weight:700;line-height:1.2}
body.duo-shell h2{font-size:var(--duo-font-page);font-weight:700;line-height:1.25}
body.duo-shell h3{font-size:var(--duo-font-section);font-weight:700;line-height:1.3}
body.duo-shell h4{font-size:var(--duo-font-card);font-weight:600;line-height:1.35}
body.duo-shell :where(.duo-page-header,.page-head,.page-header,.title-row,.hero,.module-hero) h1{font-size:var(--duo-font-display)!important;font-weight:700!important;line-height:1.2!important}
body.duo-shell :where(button,.button,.btn,a.button,input[type=submit],input[type=button]){font-size:var(--duo-font-control)!important;font-weight:600!important;line-height:1.25!important}
body.duo-shell :where(label,legend,.form-label){font-size:var(--duo-font-control)!important;font-weight:600!important;line-height:1.35!important}
body.duo-shell :where(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:var(--duo-font-body)!important;line-height:1.4!important}
body.duo-shell :where(small,.field-help,.help,.meta,time,.duo-eyebrow,.eyebrow,.ios-eyebrow){font-size:var(--duo-font-meta)!important;line-height:1.4!important}
body.duo-shell :where(.badge,.status,.pill,.tag,.task-state,.task-priority,.case-status,.customer-status,.relationship,.kind,.priority-chip,.campaign-status,.integrity-badge,.event-label,.protocol-badge){font-size:var(--duo-font-meta)!important;line-height:1.2!important}
body.duo-shell :where(table,.data-table){font-size:var(--duo-font-table)!important;line-height:var(--duo-line-list)!important}
body.duo-shell :where(table,.data-table) th{font-size:var(--duo-font-meta)!important;line-height:1.3!important}
body.duo-shell :where(table,.data-table) td{font-size:var(--duo-font-table)!important;line-height:var(--duo-line-list)!important}
body.duo-shell .duo-nav-item,body.duo-shell .duo-more>summary,body.duo-shell .ios-app-tab{font-size:var(--duo-font-nav)!important;font-weight:500!important;line-height:1.25!important}
body.duo-shell .duo-nav-badge{font-size:var(--duo-font-meta)!important}
body.duo-shell :where(.duo-shortcut-count,.kpi-value,.metric-value,.stat-value){font-size:var(--duo-font-kpi)!important;font-weight:700!important;font-variant-numeric:tabular-nums}
#duo-app :where(.chat-date-separator,.chat-modern .avatar){font-size:var(--duo-font-meta)!important;line-height:1.4!important}

/* Kunden, Aufgaben und Administration */
body.duo-shell.duo-customers :where(.customer-row,.customer-card,.customer-sheet,.customer-browser,.customer-directory-layout),
body.duo-shell :where(.task-row,.task-card,.tasks-table,.admin-grid,.admin-table){font-size:var(--duo-font-table)!important;line-height:var(--duo-line-list)!important}
body.duo-shell.duo-customers :where(.customer-name,.customer-company,.customer-sheet h1,.customer-row strong){font-size:var(--duo-font-card)!important;font-weight:700!important}
body.duo-shell.duo-customers .customer-sheet :where(.customer-status,.relationship,.read-only-badge,.customer-contact-source,.email-direction,.reader-direction),
body.duo-shell.duo-customers .collmex-grid small{font-size:var(--duo-font-meta)!important}

/* KI-Assistent: Antworten und Eingaben bleiben ohne Zoom lesbar. */
body.duo-shell.duo-research .assistant-header h1{font-size:var(--duo-font-card)!important}
body.duo-shell.duo-research .assistant-sidebar .sidebar-label,
body.duo-shell.duo-research .chat-row>a small,
body.duo-shell.duo-research .chat-menu-popover input,
body.duo-shell.duo-research .composer-options,
body.duo-shell.duo-research .composer-wrap>p,
body.duo-shell.duo-research .suggestions small,
body.duo-shell.duo-research .source-grid small,
body.duo-shell.duo-research .answer-meta{font-size:var(--duo-font-meta)!important;line-height:1.4!important}
body.duo-shell.duo-research .chat-row>a b{max-height:42px!important;font-size:var(--duo-font-nav)!important;line-height:21px!important}
body.duo-shell.duo-research :where(.user-message .bubble,.assistant-answer,.answer-content,.message-content){font-size:var(--duo-font-body)!important;line-height:var(--duo-line-body)!important}
body.duo-shell.duo-research :where(.new-chat,.attach-button,.search-only){font-size:var(--duo-font-control)!important}
body.duo-shell.duo-research .welcome-card h2{font-size:var(--duo-font-page)!important}
body.duo-shell.duo-research .welcome-card>p{font-size:var(--duo-font-body)!important;line-height:var(--duo-line-body)!important}

/* E-Mail: Liste, Nachricht, Antworteditor und KI-Auswertung. */
body.duo-shell.duo-mailbox :where(.mail-row-top b,.mail-row-content>strong,.mail-message h1,.mail-sender-line b){font-size:var(--duo-font-nav)!important;line-height:var(--duo-line-list)!important}
body.duo-shell.duo-mailbox .mail-message h1{font-size:var(--duo-font-page)!important;font-weight:700!important;line-height:1.25!important}
body.duo-shell.duo-mailbox :where(.mail-route-line,.mail-row-date,.mail-row-top time,.mail-pane-label,.mail-sender-line small,.mail-message small,.mail-reply-from-help,[data-reply-attachment-summary],.mail-reply-editor-footer small,.mail-context-ai-head small){font-size:var(--duo-font-meta)!important;line-height:1.4!important}
body.duo-shell.duo-mailbox :where(.mail-body,.mail-body p,.mail-body li,.mail-reply-editor,.mail-context-ai-output,.mail-context-ai-output p){font-size:var(--duo-font-body)!important;line-height:var(--duo-line-body)!important}
body.duo-shell.duo-mailbox :where(.mail-compact-list,.mail-list-pane,.mail-reading-pane,.mail-toolbar,.mail-reply){font-size:var(--duo-font-nav)!important;line-height:var(--duo-line-list)!important}

/* Dateifreigaben: keine Metadaten oder Aktionen unter 13 px. */
body.duo-shell .file-shares-page :where(.share-page-title small,.share-head-stats small,.share-master-head span,.share-state,.share-pin-state,.share-item-recipient,.share-item-meta i,.share-detail-title span,.share-detail-title p,.share-detail-facts small,.share-retention,.share-detail-tabs button span,.share-panel-heading>span,.share-file-name small,.share-file-add>span,.share-download-row small,.share-download-device,.share-download-ip,.share-edit-form label>small,.share-pin-panel-head>span,.share-pin-current,.share-remove-pin,.share-active-toggle,.share-delete-actions span small){font-size:var(--duo-font-meta)!important;line-height:1.4!important}
body.duo-shell .file-shares-page :where(.share-item-top>b,.share-search input,.share-file-name b,.share-download-row b){font-size:var(--duo-font-nav)!important;line-height:var(--duo-line-list)!important}
body.duo-shell .file-shares-page :where(.share-filters button,.share-detail-tabs button,.share-add-compact,.share-file-actions .button,.share-file-actions button,.share-file-add button,.share-edit-actions button,.share-delete-actions button){font-size:var(--duo-font-control)!important}
body.duo-shell .file-shares-page .share-panel-heading h3{font-size:var(--duo-font-section)!important}

/* Dashboard und kompakte Arbeitslisten */
body.duo-shell .duo-hero-copy h1{font-size:var(--duo-font-display)!important}
body.duo-shell .duo-hero-copy p{font-size:var(--duo-font-body)!important}
body.duo-shell :where(.duo-shortcut-copy strong,.duo-activity-copy strong){font-size:var(--duo-font-card)!important;line-height:1.3!important}
body.duo-shell :where(.duo-shortcut-copy small,.duo-activity-copy small,.duo-activity-row time){font-size:var(--duo-font-meta)!important;line-height:1.4!important}
body.duo-shell .duo-panel-head h2{font-size:var(--duo-font-section)!important}

@media(max-width:900px){
  :root{--duo-font-display:26px;--duo-font-page:23px;--duo-font-section:19px}
  body.duo-shell :where(table,.data-table){font-size:var(--duo-font-nav)!important}
}
