/* DUSOFFICE ONE
   Central visual system for every authenticated CRM module.
   Functional module styles remain in place; this file deliberately loads last. */

:root {
  --duo-primary: #789a17;
  --duo-primary-hover: #648212;
  --duo-primary-soft: rgba(94, 142, 10, .075);
  --duo-bg: #f6f8f7;
  --duo-surface: #ffffff;
  --duo-surface-subtle: #f9fbfa;
  --duo-text: #202b29;
  --duo-muted: #66736d;
  --duo-border: #e3e8e6;
  --duo-border-strong: #d2dcd7;
  --duo-info: #2563eb;
  --duo-success: #16834a;
  --duo-warning: #d97706;
  --duo-critical: #dc3545;
  --duo-sidebar: 196px;
  --duo-topbar: 64px;
  --duo-page-x: 24px;
  --duo-page-y: 22px;
  --duo-section-gap: 18px;
  --duo-content-pad: 18px;
  --duo-radius: 10px;
  --duo-control-radius: 8px;
  --duo-shadow: 0 1px 2px rgba(24, 39, 34, .04);
}

html { background: var(--duo-bg); }
body.duo-shell {
  margin: 0;
  color: var(--duo-text);
  background: var(--duo-bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.duo-shell *, .duo-shell *::before, .duo-shell *::after { box-sizing: border-box; }
.duo-shell :where(h1,h2,h3,h4,p) { margin-top: 0; }
.duo-shell :where(h1,h2,h3,h4,strong,b) { color: var(--duo-text); }
.duo-shell h1 { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.025em; }
.duo-shell h2 { font-size: 18px; line-height: 1.35; font-weight: 700; letter-spacing: -.015em; }
.duo-shell h3 { font-size: 16px; line-height: 1.4; font-weight: 650; }
.duo-shell :where(p,.lead,.field-help,small) { color: var(--duo-muted); }
.duo-shell a { color: #236a9a; text-underline-offset: 2px; }
.duo-shell a:hover { color: #164d71; }

/* Permanent application navigation */
.duo-shell .ios-app-dock {
  position: fixed !important;
  inset: 0 auto 0 0 !important;
  z-index: 700 !important;
  width: var(--duo-sidebar) !important;
  height: 100dvh !important;
  padding: 18px 12px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-right: 1px solid var(--duo-border) !important;
  background: var(--duo-surface) !important;
  box-shadow: none !important;
}
.duo-shell .ios-dock-brand {
  position: relative !important;
  width: 100% !important;
  min-height: 52px !important;
  padding: 7px 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: var(--duo-text) !important;
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.duo-shell .ios-dock-brand > .duo-brand-mark {
  width: 40px !important;
  height: 32px !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto;
  color: #111827 !important;
  background: #fff !important;
  border: 2px solid var(--duo-primary) !important;
  border-radius: 2px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: -.04em !important;
}
.duo-shell .ios-dock-brand > .duo-brand-name { position: static !important; width: auto !important; height: auto !important; display: inline-flex !important; gap: 5px !important; align-items: baseline !important; color: #111827 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; font-size: 15px !important; font-weight: 500 !important; letter-spacing: -.025em !important; white-space: nowrap !important; }
.duo-shell .ios-dock-brand > .duo-brand-name b { color: #111827 !important; font-size: 12px !important; font-weight: 800 !important; }
.duo-shell .ios-app-dock > nav {
  min-height: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  gap: 2px !important;
  overflow: hidden auto !important;
  scrollbar-width: thin;
  scrollbar-color: #d7dfdb transparent;
}
.duo-shell .ios-app-tab,
.duo-shell .ios-dock-more > summary {
  position: relative !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 8px 10px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 11px !important;
  color: #34413d !important;
  text-decoration: none !important;
  border: 0 !important;
  border-radius: var(--duo-control-radius) !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: background .15s ease, color .15s ease !important;
  text-align: left !important;
}
.duo-shell .ios-app-tab:hover { background: #f3f6f4 !important; color: var(--duo-text) !important; }
.duo-shell .ios-app-tab.active,
.duo-shell .ios-dock-more.active > summary {
  color: #4d6c0c !important;
  background: var(--duo-primary-soft) !important;
  box-shadow: inset 3px 0 0 var(--duo-primary) !important;
}
.duo-shell .ios-tab-icon {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  display: grid !important;
  place-items: center !important;
  color: currentColor !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.duo-shell .ios-tab-icon svg { width: 20px !important; height: 20px !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.8 !important; stroke-linecap: round; stroke-linejoin: round; }
.duo-shell .ios-app-tab small { position: static !important; inset: auto !important; width: auto !important; height: auto !important; margin: 0 !important; display: block !important; min-width: 0; color: inherit !important; background: transparent !important; font-size: 13px !important; line-height: 1.2 !important; font-weight: 560 !important; letter-spacing: 0 !important; text-align: left !important; text-transform: none !important; white-space: nowrap; }
.duo-shell .ios-app-tab.active small { font-weight: 680 !important; }
.duo-shell .nav-badge {
  position: static !important;
  margin-left: auto !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 6px !important;
  display: inline-grid !important;
  place-items: center !important;
  color: #fff !important;
  background: var(--duo-critical) !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}
.duo-shell .nav-badge.hidden, .duo-shell .nav-badge[hidden] { display: none !important; }

/* Shared top bar and safe scrolling shell */
.duo-shell .ios-topbar {
  position: fixed !important;
  inset: 0 0 auto var(--duo-sidebar) !important;
  z-index: 650 !important;
  height: var(--duo-topbar) !important;
  min-height: var(--duo-topbar) !important;
  padding: 0 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: var(--duo-text) !important;
  background: rgba(255,255,255,.96) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--duo-border) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}
.duo-shell .ios-topbar-leading { min-width: 0; display: flex !important; align-items: center !important; gap: 14px !important; }
.duo-shell .ios-topbar-leading > strong { overflow: hidden; color: var(--duo-text) !important; font-size: 15px !important; font-weight: 680 !important; text-overflow: ellipsis; white-space: nowrap; }
.duo-shell .ios-back { display: inline-flex !important; align-items: center !important; gap: 5px !important; color: var(--duo-muted) !important; font-size: 13px !important; font-weight: 550 !important; text-decoration: none !important; }
.duo-shell .ios-back:hover { color: var(--duo-primary-hover) !important; }
.duo-shell .ios-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.duo-shell .header-actions { display: flex !important; align-items: center !important; gap: 8px !important; }
.duo-shell .header-user { display: inline-flex !important; align-items: center !important; gap: 8px !important; color: var(--duo-text) !important; font-size: 13px !important; }
.duo-shell .header-user i { width: 32px !important; height: 32px !important; display: grid !important; place-items: center !important; color: #4d6c0c !important; background: var(--duo-primary-soft) !important; border-radius: 50% !important; font-style: normal !important; font-weight: 700 !important; }
.duo-shell .header-logout { width: 36px !important; height: 36px !important; padding: 0 !important; display: grid !important; place-items: center !important; color: var(--duo-muted) !important; background: #fff !important; border: 1px solid var(--duo-border) !important; border-radius: var(--duo-control-radius) !important; box-shadow: none !important; }
.duo-shell .header-logout span { display: none !important; }
.duo-shell .header-logout svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.duo-shell .ios-context-nav {
  position: fixed !important;
  inset: var(--duo-topbar) 0 auto var(--duo-sidebar) !important;
  z-index: 640 !important;
  min-height: 46px !important;
  padding: 6px 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  overflow-x: auto !important;
  color: var(--duo-muted) !important;
  background: #fff !important;
  border-bottom: 1px solid var(--duo-border) !important;
  box-shadow: none !important;
}
.duo-shell .ios-context-nav a { flex: 0 0 auto; padding: 7px 11px !important; color: var(--duo-muted) !important; border-radius: 7px !important; font-size: 13px !important; font-weight: 600 !important; text-decoration: none !important; }
.duo-shell .ios-context-nav a.active { color: #4d6c0c !important; background: var(--duo-primary-soft) !important; }
.duo-shell > main:not(.login-main):not(.ai-embed-main) {
  position: relative !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 100dvh !important;
  margin: 0 0 0 var(--duo-sidebar) !important;
  padding: calc(var(--duo-topbar) + var(--duo-page-y)) var(--duo-page-x) 24px !important;
  overflow: visible !important;
  background: var(--duo-bg) !important;
}
.duo-shell:has(.ios-context-nav) > main:not(.login-main):not(.ai-embed-main) { padding-top: calc(var(--duo-topbar) + 46px + var(--duo-page-y)) !important; }

/* One workspace grid: operational pages use all space beside the navigation. */
.duo-shell :where(
  .duo-dashboard,
  .customer-directory,
  .customer-sheet,
  .mailbox-overview-page,
  .mail-unread-page,
  .mail-search-page,
  .customer-history-page,
  .files-page:not(.narrow),
  .task-crm-page,
  .chat-shell,
  .assistant-shell,
  .knowledge-page,
  .onboarding-admin,
  .employee-report-page,
  .onboarding-summary-page,
  .file-shares-page,
  .campaign-report-page,
  .email-protocol-page,
  .email-protocol-detail
) {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Core controls and content primitives */
.duo-shell :where(button,.button,input[type=submit],input[type=button],a.button,.btn,.files-button,.onboarding-primary,.onboarding-secondary) {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--duo-border-strong);
  border-radius: var(--duo-control-radius);
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}
.duo-shell :where(.primary,.button.primary,.btn-primary,.files-button.add,.onboarding-primary,button[type=submit]):not(.secondary):not(.danger):not(.danger-button):not(.header-logout):not(:where(.duo-logout-action,.crm-auth-card button)) {
  color: #fff;
  background: var(--duo-primary);
  border-color: var(--duo-primary);
}
.duo-shell :where(.primary,.button.primary,.btn-primary,.files-button.add,.onboarding-primary,button[type=submit]):not(.secondary):not(.danger):not(.danger-button):not(.header-logout):not(:where(.duo-logout-action,.crm-auth-card button)):hover {
  color: #fff;
  background: var(--duo-primary-hover);
  border-color: var(--duo-primary-hover);
}
.duo-shell :where(.secondary,.button.secondary,.btn:not(.btn-primary),.files-button.secondary,.onboarding-secondary) {
  color: #40514a !important;
  background: #fff !important;
  border-color: var(--duo-border-strong) !important;
}
.duo-shell :where(.secondary,.button.secondary,.btn:not(.btn-primary),.files-button.secondary,.onboarding-secondary):hover { background: #f7f9f8 !important; border-color: #bfcac5 !important; }
.duo-shell :where(.danger,.danger-button,.btn-danger-soft) { color: var(--duo-critical) !important; background: #fff !important; border-color: #f0b9bd !important; }
.duo-shell :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  color: var(--duo-text);
  background: #fff;
  border: 1px solid var(--duo-border-strong);
  border-radius: var(--duo-control-radius);
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
}
.duo-shell textarea { min-height: 110px; resize: vertical; }
.duo-shell :where(input,select,textarea):focus { outline: 2px solid rgba(37,99,235,.18); outline-offset: 1px; border-color: var(--duo-info); }
.duo-shell :where(label) { color: #46544f; font-size: 13px; font-weight: 600; }
.duo-shell :where(.card,.modal,.panel,.editor-card,.builder-card,.permission-card,.access-lock-card,.files-list,.files-preview,.mail-reply,.protocol-document) {
  background: var(--duo-surface);
  border: 1px solid var(--duo-border);
  border-radius: var(--duo-radius);
  box-shadow: var(--duo-shadow);
}
.duo-shell :where(.title-row,.security-heading,.ai-page-head,.onboarding-title-row,.employee-page-head,.mail-app-head,.customer-page-head,.files-hero) {
  margin: 0 0 16px !important;
  padding: 0 !important;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.duo-shell :where(.title-row,.security-heading,.ai-page-head,.onboarding-title-row,.employee-page-head,.mail-app-head,.customer-page-head,.files-hero) h1 { margin: 0 0 4px !important; }
.duo-shell :where(.title-row,.security-heading,.ai-page-head,.onboarding-title-row,.employee-page-head,.mail-app-head,.customer-page-head,.files-hero) p { margin: 0 !important; }
.duo-shell :where(.eyebrow,.ios-eyebrow,.customers-eyebrow,.onboarding-eyebrow,.mail-app-kicker,.security-eyebrow,.panel-kicker,.customer-kicker) {
  display: block;
  margin-bottom: 4px;
  color: #5c6c65 !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase !important;
}
.duo-shell .lead { margin: 3px 0 0; font-size: 14px !important; line-height: 1.5 !important; }
.duo-shell :where(.tabs,.mode-switch,.knowledge-view-switch,.share-filters,.customer-history-filters) { display: flex; align-items: center; gap: 4px; padding: 3px; overflow-x: auto; background: #edf1ef; border: 1px solid var(--duo-border); border-radius: var(--duo-control-radius); }
.duo-shell :where(.tabs,.mode-switch,.knowledge-view-switch,.share-filters,.customer-history-filters) > :where(a,button,label) { min-height: 32px; padding: 6px 11px; color: var(--duo-muted); background: transparent; border: 0; border-radius: 6px; box-shadow: none; font-size: 13px; font-weight: 620; white-space: nowrap; text-decoration: none; }
.duo-shell :where(.tabs,.mode-switch,.knowledge-view-switch,.share-filters,.customer-history-filters) > .active,
.duo-shell :where(.tabs,.mode-switch,.knowledge-view-switch,.share-filters,.customer-history-filters) > .is-active { color: var(--duo-text); background: #fff; box-shadow: 0 1px 2px rgba(24,39,34,.08); }
.duo-shell :where(.badge,.status,.task-state,.task-priority,.case-status,.customer-status,.relationship,.kind,.priority-chip,.campaign-status,.integrity-badge,.event-label,.protocol-badge) { display: inline-flex; align-items: center; width: max-content; min-height: 22px; padding: 3px 8px; color: #4b5853; background: #eef1f0; border: 0; border-radius: 999px; box-shadow: none; font-size: 11px; line-height: 1.2; font-weight: 650; }
.duo-shell :where(.verified,.success,.active,.done,.completed,.status-completed,.status-active) { --badge-tone: var(--duo-success); }
.duo-shell :where(.failed,.error,.critical,.overdue,.status-failed,.status-revoked) { --badge-tone: var(--duo-critical); }
.duo-shell :where(.warning,.pending,.waiting,.status-waiting) { --badge-tone: var(--duo-warning); }
.duo-shell :where(.badge,.task-state,.case-status,.protocol-badge)[class*="active"],
.duo-shell :where(.badge,.task-state,.case-status,.protocol-badge)[class*="done"],
.duo-shell :where(.badge,.task-state,.case-status,.protocol-badge).verified { color: #11683c; background: #e6f6ed; }
.duo-shell :where(.badge,.task-state,.case-status,.protocol-badge)[class*="fail"],
.duo-shell :where(.badge,.task-state,.case-status,.protocol-badge)[class*="overdue"] { color: #a72832; background: #fdebed; }
.duo-shell :where(.flash,.info-box,.info-note,.notice,.mail-search-warning,.system-update-reminder,.long-time-warning,.backup-reminder) { margin: 0 0 12px; padding: 12px 14px; color: #43524c; background: #f2f6f4; border: 1px solid var(--duo-border); border-left: 3px solid var(--duo-info); border-radius: var(--duo-control-radius); box-shadow: none; }
.duo-shell .flash.error { border-left-color: var(--duo-critical); background: #fdf1f2; }

/* Tables: consistent density without clipping */
.duo-shell .table-scroll { width: 100%; max-width: 100%; overflow: auto; border: 1px solid var(--duo-border); border-radius: var(--duo-radius); background: #fff; }
.duo-shell table { width: 100%; border-collapse: collapse; border-spacing: 0; color: var(--duo-text); background: #fff; font-size: 13px; }
.duo-shell thead { background: #f3f6f4; }
.duo-shell th { height: 38px; padding: 9px 12px; color: #5b6964; border: 0; border-bottom: 1px solid var(--duo-border); font-size: 11px; font-weight: 700; letter-spacing: .035em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.duo-shell td { min-height: 46px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--duo-border); vertical-align: middle; }
.duo-shell tbody tr:last-child td { border-bottom: 0; }
.duo-shell tbody tr:hover td { background: #fafcfb; }

/* Dashboard */
.duo-shell .duo-dashboard { display: grid; gap: var(--duo-section-gap); }
.duo-shell .duo-dashboard-hero { min-height: 98px; padding: var(--duo-content-pad) 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff; border: 1px solid var(--duo-border); border-radius: var(--duo-radius); }
.duo-shell .duo-dashboard-hero h1 { margin: 0 0 4px; font-size: 28px; }
.duo-shell .duo-dashboard-hero p { margin: 0; font-size: 15px; }
.duo-shell .ios-today { min-width: 190px; padding: 14px 16px; display: grid; gap: 2px; background: var(--duo-surface-subtle); border: 1px solid var(--duo-border); border-radius: var(--duo-radius); box-shadow: none; }
.duo-shell .ios-today small { font-size: 12px; }
.duo-shell .ios-today strong { font-size: 16px; }
.duo-shell .duo-dashboard-shortcuts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.duo-shell .duo-shortcut { min-width: 0; min-height: 88px; padding: 15px 16px; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 13px; color: var(--duo-text); background: #fff; border: 1px solid var(--duo-border); border-radius: var(--duo-radius); text-decoration: none; box-shadow: var(--duo-shadow); }
.duo-shell .duo-shortcut:hover { color: var(--duo-text); border-color: #cbd6d1; background: #fcfdfc; }
.duo-shell .duo-shortcut-icon { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: var(--duo-info); border-radius: 10px; }
.duo-shell .duo-shortcut:nth-child(2) .duo-shortcut-icon { background: #197f6c; }
.duo-shell .duo-shortcut:nth-child(3) .duo-shortcut-icon { background: #a56008; }
.duo-shell .duo-shortcut:nth-child(4) .duo-shortcut-icon { background: var(--duo-primary); }
.duo-shell .duo-shortcut-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.duo-shell .duo-shortcut-copy { min-width: 0; display: grid; gap: 3px; }
.duo-shell .duo-shortcut-copy strong { font-size: 15px; }
.duo-shell .duo-shortcut-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duo-shell .duo-shortcut-count { color: var(--duo-text); font-size: 24px; font-weight: 720; }
.duo-shell .duo-dashboard-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(320px,.75fr); gap: 16px; align-items: start; }
.duo-shell .duo-dashboard-panel { min-width: 0; padding: var(--duo-content-pad); background: #fff; border: 1px solid var(--duo-border); border-radius: var(--duo-radius); }
.duo-shell .duo-panel-head { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.duo-shell .duo-panel-head h2 { margin: 0; }
.duo-shell .duo-focus-list { display: grid; }
.duo-shell .duo-focus-row { min-height: 64px; padding: 11px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px; border-top: 1px solid var(--duo-border); text-decoration: none; }
.duo-shell .duo-focus-row:first-child { border-top: 0; }
.duo-shell .duo-focus-row strong,.duo-shell .duo-focus-row small { display: block; }
.duo-shell .duo-focus-row small { margin-top: 3px; }
.duo-shell .duo-workspace-links { display: grid; gap: 6px; }
.duo-shell .duo-workspace-link { min-height: 43px; padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--duo-text); border: 1px solid var(--duo-border); border-radius: 8px; text-decoration: none; }
.duo-shell .duo-workspace-link:hover { background: var(--duo-primary-soft); border-color: #d9e5be; color: #4d6c0c; }

/* Customer directory and record */
.duo-shell .customer-directory { padding: 0 !important; }
.duo-shell .customer-page-head { min-height: 72px !important; margin-bottom: 14px !important; align-items: center !important; }
.duo-shell .customer-page-title { display: flex !important; align-items: center !important; gap: 12px !important; }
.duo-shell .customer-page-title h1 { margin: 0 0 2px !important; }
.duo-shell .directory-symbol { width: 40px !important; height: 40px !important; color: #4d6c0c !important; background: var(--duo-primary-soft) !important; border: 0 !important; border-radius: 9px !important; }
.duo-shell .customer-directory-layout { min-height: calc(100dvh - 196px) !important; display: grid !important; grid-template-columns: 260px minmax(0,1fr) !important; gap: 16px !important; overflow: visible !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.duo-shell .customer-directory-sidebar { position: static !important; width: auto !important; min-width: 0 !important; max-height: none !important; padding: 16px !important; overflow: visible !important; background: #fff !important; border: 1px solid var(--duo-border) !important; border-radius: var(--duo-radius) !important; box-shadow: none !important; }
.duo-shell .customer-browser { min-width: 0 !important; background: #fff !important; border: 1px solid var(--duo-border) !important; border-radius: var(--duo-radius) !important; box-shadow: none !important; overflow: hidden !important; }
.duo-shell :where(.directory-type-option,.directory-filter-option,.directory-source-option) { min-height: 44px !important; padding: 9px 10px !important; border-radius: 8px !important; }
.duo-shell :where(.directory-type-option,.directory-filter-option,.directory-source-option).active { color: #4d6c0c !important; background: var(--duo-primary-soft) !important; border-color: #d8e4bc !important; }
.duo-shell .customer-search { padding: 12px !important; background: #fff !important; border-bottom: 1px solid var(--duo-border) !important; }
.duo-shell .customer-search form { display: flex !important; gap: 8px !important; }
.duo-shell .customer-list-header { min-height: 38px !important; padding: 8px 14px !important; background: #f3f6f4 !important; border-bottom: 1px solid var(--duo-border) !important; }
.duo-shell .customer-row { min-height: 58px !important; padding: 9px 14px !important; background: #fff !important; border: 0 !important; border-bottom: 1px solid var(--duo-border) !important; border-radius: 0 !important; box-shadow: none !important; }
.duo-shell .customer-row:hover { background: #fafcfb !important; }
.duo-shell .customer-row.active { background: #f6faf2 !important; box-shadow: inset 3px 0 0 var(--duo-primary) !important; }
.duo-shell .customer-open { white-space: nowrap !important; }
.duo-shell .customer-sheet { padding: 0 !important; }
.duo-shell .customer-commandbar { position: static !important; margin-bottom: 12px !important; padding: 0 !important; background: #fff !important; border: 1px solid var(--duo-border) !important; border-radius: var(--duo-radius) !important; box-shadow: none !important; }
.duo-shell :where(.customer-overview-grid,.customer-record-layout,.sheet-grid) { gap: 12px !important; }
.duo-shell :where(.customer-card,.customer-panel,.sheet-section,.record-section) { background: #fff !important; border: 1px solid var(--duo-border) !important; border-radius: var(--duo-radius) !important; box-shadow: none !important; }
.duo-shell .customer-form-card { max-width: 1100px !important; margin: 0 auto !important; padding: 22px !important; background: #fff !important; border: 1px solid var(--duo-border) !important; border-radius: var(--duo-radius) !important; box-shadow: none !important; }

/* Mailboxes: stable two/three-pane workspaces */
.duo-shell :where(.mailbox-overview-page,.mail-unread-page,.mail-search-page,.customer-history-page) { padding: 0 !important; }
.duo-shell .mail-app-head { min-height: 54px !important; margin-bottom: 12px !important; align-items: center !important; }
.duo-shell .mail-app-kicker { margin: 0 !important; }
.duo-shell :where(.mail-workspace,.mailbox-unified-layout,.mail-search-workspace,.customer-history-workspace) { min-width: 0 !important; height: calc(100dvh - 152px) !important; min-height: 620px !important; display: grid !important; overflow: hidden !important; background: #fff !important; border: 1px solid var(--duo-border) !important; border-radius: var(--duo-radius) !important; box-shadow: none !important; }
.duo-shell .mailbox-account-list-layout { grid-template-columns: 252px minmax(0,1fr) !important; }
.duo-shell .mail-message-workspace { grid-template-columns: 230px 360px minmax(0,1fr) !important; }
.duo-shell :where(.mail-nav-pane,.mail-list-pane,.mail-reader-pane,.mail-reading-pane,.mailbox-unified-aside,.mailbox-unified-accounts,.mailbox-unified-feed) { min-width: 0 !important; min-height: 0 !important; height: 100% !important; overflow: auto !important; background: #fff !important; border: 0 !important; border-right: 1px solid var(--duo-border) !important; border-radius: 0 !important; box-shadow: none !important; }
.duo-shell :where(.mail-reader-pane,.mail-reading-pane,.mailbox-unified-feed) { border-right: 0 !important; }
.duo-shell :where(.mail-nav-pane,.mailbox-unified-aside) { background: #f9fbfa !important; }
.duo-shell :where(.mail-pane-label,.mailbox-unified-aside header) { padding: 13px 14px !important; color: var(--duo-muted) !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: .04em !important; text-transform: uppercase !important; }
.duo-shell :where(.account-head,.account-folders a,.mailbox-switch-link) { min-height: 40px !important; margin: 0 7px !important; padding: 8px 10px !important; border-radius: 7px !important; }
.duo-shell :where(.account-head,.account-folders a).active { color: #4d6c0c !important; background: var(--duo-primary-soft) !important; }
.duo-shell :where(.compact-message-row,.mail-compact-row,.mailbox-unified-row,.mail-search-result,.mail-unread-row,.mailbox-feed-row) { min-height: 68px !important; padding: 10px 12px !important; background: #fff !important; border: 0 !important; border-bottom: 1px solid var(--duo-border) !important; border-radius: 0 !important; box-shadow: none !important; }
.duo-shell :where(.compact-message-row,.mail-compact-row,.mailbox-unified-row,.mail-search-result,.mail-unread-row,.mailbox-feed-row):hover { background: #fafcfb !important; }
.duo-shell :where(.compact-message-row,.mail-compact-row).selected { background: #f2f7ea !important; box-shadow: inset 3px 0 0 var(--duo-primary) !important; }
.duo-shell :where(.mail-reader-toolbar,.mail-toolbar,.message-toolbar) { position: sticky !important; top: 0 !important; z-index: 4 !important; min-height: 52px !important; padding: 8px 12px !important; background: rgba(255,255,255,.96) !important; border-bottom: 1px solid var(--duo-border) !important; box-shadow: none !important; }
.duo-shell :where(.mail-message-card,.mail-content-card,.mail-reading-card,.mail-message) { margin: 14px !important; padding: 20px !important; background: #fff !important; border: 1px solid var(--duo-border) !important; border-radius: var(--duo-radius) !important; box-shadow: none !important; }
.duo-shell .mail-reading-pane { display: flex !important; flex-direction: column !important; overflow: hidden !important; }
.duo-shell .mail-reader-scroll { min-height: 0 !important; flex: 1 1 auto !important; overflow: auto !important; background: #f8faf9 !important; }

/* Mail detail: keep all three desktop columns present and explicitly placed. */
@media (min-width:1051px) {
  body.duo-shell.ios-interface:has(.mail-message-workspace) > main {
    display: flex !important;
    flex-direction: column !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100dvh !important;
    min-height: 0 !important;
    margin-left: var(--duo-sidebar) !important;
    padding: calc(var(--duo-topbar) + var(--duo-page-y)) var(--duo-page-x) var(--duo-page-y) !important;
    overflow: hidden !important;
  }
  body.duo-shell .mail-message-workspace {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    grid-template-columns: 240px 380px minmax(0,1fr) !important;
  }
  body.duo-shell .mail-message-workspace > .mail-nav-pane {
    display: block !important;
    grid-column: 1 !important;
    width: auto !important;
    max-width: none !important;
  }
  body.duo-shell .mail-message-workspace > .mail-list-pane {
    display: block !important;
    grid-column: 2 !important;
    width: auto !important;
    max-width: none !important;
  }
  body.duo-shell .mail-message-workspace > .mail-reading-pane {
    display: flex !important;
    grid-column: 3 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  body.duo-shell .mail-reading-pane > .mail-toolbar,
  body.duo-shell .mail-reading-pane > .mail-reader-scroll,
  body.duo-shell .mail-reading-pane .mail-message {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  body.duo-shell .mail-reading-pane > .mail-toolbar {
    flex: 0 0 auto !important;
    overflow-x: auto !important;
  }
}
@media (min-width:1051px) and (max-width:1600px) {
  body.duo-shell .mail-message-workspace {
    grid-template-columns: 220px 350px minmax(0,1fr) !important;
  }
  body.duo-shell .mail-reading-pane > .mail-toolbar {
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
    overflow: visible !important;
  }
  body.duo-shell .mail-toolbar-navigation,
  body.duo-shell .mail-toolbar-main-actions {
    display: flex !important;
    flex-wrap: wrap !important;
  }
  body.duo-shell .mail-toolbar-main-actions {
    width: 100% !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
  }
  body.duo-shell .mail-reading-pane .mail-message > header {
    display: block !important;
  }
  body.duo-shell .mail-reading-pane .mail-sender-line {
    margin-top: 14px !important;
  }
}
.duo-shell .mailbox-avatar { color: #1c5c9d !important; background: #e7f0ff !important; border-radius: 9px !important; }
.duo-shell :where(.mail-global-search,.mail-search-page-form) input { min-width: 260px; }

/* Chat and AI */
.duo-shell .chat-shell { width: 100% !important; height: calc(100dvh - var(--duo-topbar) - (2 * var(--duo-page-y))) !important; min-height: 620px !important; display: grid !important; grid-template-columns: 270px minmax(0,1fr) !important; overflow: hidden !important; background: #fff !important; border: 1px solid var(--duo-border) !important; border-radius: var(--duo-radius) !important; box-shadow: none !important; }
.duo-shell .chat-sidebar { min-height: 0 !important; overflow: auto !important; background: #f9fbfa !important; border-right: 1px solid var(--duo-border) !important; }
.duo-shell .chat-main { min-width: 0 !important; min-height: 0 !important; }
.duo-shell :where(.channel-list a,.direct-list a) { min-height: 42px !important; margin: 2px 7px !important; padding: 8px 10px !important; border-radius: 7px !important; }
.duo-shell :where(.channel-list a,.direct-list a).active { background: var(--duo-primary-soft) !important; color: #4d6c0c !important; }
.duo-shell .assistant-shell { height: calc(100dvh - var(--duo-topbar) - (2 * var(--duo-page-y))) !important; min-height: 620px !important; overflow: hidden !important; background: #fff !important; border: 1px solid var(--duo-border) !important; border-radius: var(--duo-radius) !important; box-shadow: none !important; }
.duo-shell .assistant-sidebar { background: #f9fbfa !important; border-right: 1px solid var(--duo-border) !important; }
.duo-shell .assistant-main { background: #fff !important; }
.duo-shell .new-chat { color: #fff !important; background: var(--duo-primary) !important; border-color: var(--duo-primary) !important; border-radius: 8px !important; box-shadow: none !important; }

/* Knowledge, onboarding and time */
.duo-shell .knowledge-page,.duo-shell .onboarding-admin,.duo-shell .employee-report-page,.duo-shell .onboarding-summary-page { width: 100% !important; padding: 0 !important; }
.duo-shell .knowledge-commandbar,.duo-shell .knowledge-toolbar { background: #fff !important; border: 1px solid var(--duo-border) !important; border-radius: var(--duo-radius) !important; box-shadow: none !important; }
.duo-shell .knowledge-hero { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.duo-shell :where(.knowledge-card,.news-card,.article-card) { background: #fff !important; border: 1px solid var(--duo-border) !important; border-radius: var(--duo-radius) !important; box-shadow: none !important; }
.duo-shell .onboarding-stat-grid { gap: 8px !important; }
.duo-shell .ob-stat,.duo-shell .detail-summary > * { background: #fff !important; border: 1px solid var(--duo-border) !important; border-radius: var(--duo-radius) !important; box-shadow: none !important; }
.duo-shell .onboarding-case-row { min-height: 62px !important; background: #fff !important; border: 0 !important; border-bottom: 1px solid var(--duo-border) !important; border-radius: 0 !important; box-shadow: none !important; }
.duo-shell :where(.time-day-stats,.employee-kpis,.employee-report-stats,.stats) > * { background: #fff !important; border: 1px solid var(--duo-border) !important; border-radius: var(--duo-radius) !important; box-shadow: none !important; }

/* File shares, newsletter and administration */
.duo-shell .campaign-report-page,.duo-shell .email-protocol-page,.duo-shell .email-protocol-detail { width: 100% !important; padding: 0 !important; }
.duo-shell :where(.mailing-overview-stats,.campaign-report-summary,.protocol-stats,.server-overview-strip,.check-summary,.unsubscribe-summary) { display: grid !important; gap: 8px !important; }
.duo-shell :where(.mailing-overview-stats,.campaign-report-summary,.protocol-stats,.server-overview-strip,.check-summary,.unsubscribe-summary) > * { background: #fff !important; border: 1px solid var(--duo-border) !important; border-radius: var(--duo-radius) !important; box-shadow: none !important; }
.duo-shell .security-area-groups,.duo-shell .server-jump-nav,.duo-shell .mail-admin-shortcuts { background: #fff !important; border: 1px solid var(--duo-border) !important; border-radius: var(--duo-radius) !important; box-shadow: none !important; }
.duo-shell .user-grid { gap: 10px !important; }
.duo-shell .user-admin-card { box-shadow: none !important; }

/* Public/auth pages */
body.duo-shell > main.login-main { min-height: 100dvh; padding: 32px 20px; display: grid; place-items: center; background: var(--duo-bg); }
.duo-shell .login.card { width: min(440px,100%); padding: 28px; border: 1px solid var(--duo-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(24,39,34,.08); }
body.duo-shell > main.login-main:has(.crm-auth-card) {
  align-content: center;
  gap: 12px;
  background: #f3f7f5;
}
.duo-shell .login-main:has(.crm-auth-card) > .flash {
  width: min(460px,100%);
  margin: 0;
}
.duo-shell .crm-auth-card {
  width: min(460px,100%);
  display: grid;
  gap: 22px;
  padding: clamp(16px,4vw,26px);
  color: #1a3027;
  background: #fff;
  border: 1px solid #dce8df;
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(31,78,48,.09);
}
.duo-shell .crm-auth-head {
  padding: clamp(16px,4vw,24px);
  background: linear-gradient(112deg,#e9f5ed,#f6fbf8);
  border: 1px solid #d2e5d8;
  border-radius: 15px;
}
.duo-shell .crm-auth-logo {
  display: block;
  width: 156px;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}
.duo-shell .crm-auth-head h1 {
  margin: 0;
  color: #193528;
  font-size: clamp(27px,4vw,32px);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1.15;
}
.duo-shell .crm-auth-head p { margin: 8px 0 0; color: #526b5e; }
.duo-shell .crm-auth-card form {
  display: grid;
  gap: 15px;
  margin: 0;
}
.duo-shell .crm-auth-card label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #344e41;
  text-transform: none;
  letter-spacing: normal;
}
.duo-shell .crm-auth-card label > input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  color: #1a3027;
  border-color: #b9d0c2;
  border-radius: 11px;
}
.duo-shell .crm-auth-card label > input:focus {
  border-color: #498663;
  box-shadow: 0 0 0 3px rgba(73,134,99,.22);
}
body.duo-shell .crm-auth-card form > button {
  min-height: 46px;
  margin: 3px 0 0;
  color: #fff;
  background: #216447;
  border: 1px solid #246a48;
  border-radius: 11px;
  box-shadow: 0 6px 15px rgba(24,85,54,.14);
}
body.duo-shell .crm-auth-card form > button:hover {
  background: #18583d;
  border-color: #18583d;
}
.duo-shell .crm-auth-setup {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: #f3f7f5;
  border: 1px solid #dce8df;
  border-radius: 12px;
}
.duo-shell .crm-auth-setup img { width: 200px; max-width: 100%; height: auto; margin: 0 auto; }
.duo-shell .crm-auth-setup summary { color: #245a41; cursor: pointer; }
.duo-shell .crm-auth-setup p { margin: 8px 0 0; overflow-wrap: anywhere; }
.duo-shell a.crm-auth-back { justify-self: center; color: #245a41; text-underline-offset: 3px; }
.duo-shell .crm-auth-card :is(button,summary,a):focus-visible { outline: 3px solid #80ba91; outline-offset: 3px; }

/* Responsive rules */
@media (min-width: 881px) {
  body.duo-shell.ios-interface aside.ios-app-dock > nav > a.ios-app-tab {
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  body.duo-shell [data-customer-panel="emails"].active,
  body.duo-shell .customer-history-overview.active > .history-workbar {
    left: calc(var(--duo-sidebar) + var(--duo-page-x)) !important;
    right: var(--duo-page-x) !important;
  }
}
@media (min-width: 881px) and (max-width: 1500px) {
  .duo-shell .customer-directory-layout { grid-template-columns: 240px minmax(0,1fr) !important; }
  .duo-shell .customer-directory-layout :is(.customer-column-head,.customer-row) {
    grid-template-columns: minmax(210px,1.25fr) minmax(155px,1fr) minmax(96px,.65fr) 88px 72px 66px !important;
    gap: 10px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}
@media (max-width: 1180px) {
  :root { --duo-sidebar: 82px; }
  .duo-shell .ios-app-dock { padding-inline: 8px !important; }
  .duo-shell .ios-dock-brand { justify-content: center !important; }
  .duo-shell .duo-brand-name,.duo-shell .ios-app-tab small { display: none !important; }
  .duo-shell .ios-app-tab { justify-content: center !important; padding-inline: 8px !important; }
  .duo-shell .nav-badge { position: absolute !important; top: 3px !important; right: 7px !important; }
  .duo-shell .duo-dashboard-shortcuts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .duo-shell .mail-message-workspace { grid-template-columns: 205px 320px minmax(420px,1fr) !important; overflow-x: auto !important; }
  .duo-shell .customer-directory-layout { grid-template-columns: 230px minmax(0,1fr) !important; }
  .duo-shell .customer-directory-layout :is(.customer-column-head,.customer-row) { grid-template-columns: minmax(190px,1.2fr) minmax(150px,1fr) 86px 70px 62px !important; }
}
@media (max-width: 880px) {
  :root { --duo-sidebar: 0px; --duo-topbar: 58px; }
  .duo-shell .ios-app-dock { inset: auto 0 0 0 !important; width: 100% !important; height: 66px !important; padding: 7px 8px !important; flex-direction: row !important; border: 0 !important; border-top: 1px solid var(--duo-border) !important; }
  .duo-shell .ios-dock-brand { display: none !important; }
  .duo-shell .ios-app-dock > nav { flex-direction: row !important; overflow: auto hidden !important; }
  .duo-shell .ios-app-tab { width: 58px !important; min-width: 58px !important; min-height: 50px !important; }
  .duo-shell .ios-app-tab.active { box-shadow: inset 0 -3px 0 var(--duo-primary) !important; }
  .duo-shell .ios-topbar { left: 0 !important; padding: 0 14px !important; }
  .duo-shell .ios-context-nav { left: 0 !important; padding-inline: 14px !important; }
  .duo-shell > main:not(.login-main):not(.ai-embed-main) { margin-left: 0 !important; padding: calc(var(--duo-topbar) + 16px) 14px 88px !important; }
  .duo-shell:has(.ios-context-nav) > main:not(.login-main):not(.ai-embed-main) { padding-top: calc(var(--duo-topbar) + 62px) !important; }
  .duo-shell .header-user span { display: none; }
  .duo-shell .duo-dashboard-hero { min-height: auto; padding: 20px; }
  .duo-shell .duo-dashboard-hero h1 { font-size: 25px; }
  .duo-shell .duo-dashboard-grid,.duo-shell .customer-directory-layout { grid-template-columns: 1fr !important; }
  .duo-shell .customer-directory-sidebar { position: static !important; max-height: none !important; }
  .duo-shell :where(.mail-workspace,.mailbox-unified-layout,.mail-search-workspace,.customer-history-workspace) { height: auto !important; min-height: 0 !important; grid-template-columns: 1fr !important; overflow: visible !important; }
  .duo-shell :where(.mail-nav-pane,.mail-list-pane,.mail-reader-pane,.mail-reading-pane,.mailbox-unified-aside,.mailbox-unified-accounts,.mailbox-unified-feed) { height: auto !important; max-height: none !important; overflow: visible !important; border: 0 !important; border-bottom: 1px solid var(--duo-border) !important; }
  .duo-shell .mail-nav-pane { max-height: 320px !important; overflow: auto !important; }
  .duo-shell .files-browser { height: auto !important; min-height: 0 !important; grid-template-columns: 1fr !important; }
  .duo-shell .files-list,.duo-shell .files-preview { height: auto !important; max-height: none !important; }
  .duo-shell .chat-shell { height: auto !important; min-height: 700px !important; grid-template-columns: 220px minmax(0,1fr) !important; }
  .duo-shell .share-workspace { height: auto !important; min-height: 0 !important; grid-template-columns: 1fr !important; overflow: visible !important; }
  .duo-shell .share-master,.duo-shell .share-detail-stage { max-height: none !important; overflow: visible !important; border: 0 !important; border-bottom: 1px solid var(--duo-border) !important; }
}
@media (max-width: 680px) {
  .duo-shell .customer-directory-layout .customer-row { grid-template-columns: minmax(0,1fr) auto !important; }
}
@media (max-width: 620px) {
  .duo-shell .duo-dashboard-hero { align-items: flex-start; flex-direction: column; }
  .duo-shell .ios-today { min-width: 0; width: 100%; }
  .duo-shell .duo-dashboard-shortcuts { grid-template-columns: 1fr; }
  .duo-shell .duo-shortcut { min-height: 88px; }
  .duo-shell .title-row { flex-direction: column; }
  .duo-shell .chat-shell { grid-template-columns: 1fr !important; }
  .duo-shell .chat-sidebar { max-height: 260px !important; border: 0 !important; border-bottom: 1px solid var(--duo-border) !important; }
  .duo-shell .header-logout { display: none !important; }
  .duo-shell .customer-directory-layout .customer-row { grid-template-columns: minmax(0,1fr) auto !important; }
}

@media print {
  .duo-shell .ios-app-dock,.duo-shell .ios-topbar,.duo-shell .ios-context-nav,.duo-shell .global-ai-tab,.duo-shell .global-ai-panel { display: none !important; }
  .duo-shell > main:not(.login-main) { margin: 0 !important; padding: 0 !important; }
}

/* -------------------------------------------------------------------------
   DUSOFFICE ONE 2026 – binding system layer
   This is the single late-loading authority for the common application shell.
   Module styles may describe behavior; geometry, type, colour and controls are
   normalised here to the accepted dashboard reference.
   ------------------------------------------------------------------------- */
@font-face{font-family:Inter;src:url("./fonts/Inter-Regular.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Inter;src:url("./fonts/Inter-Medium.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:Inter;src:url("./fonts/Inter-SemiBold.woff2") format("woff2");font-weight:600 800;font-display:swap}

:root{
  --duo-primary:#5e8e0a;
  --duo-primary-hover:#4d7808;
  --duo-primary-soft:rgba(94,142,10,.075);
  --duo-bg:#f6f8fa;
  --duo-surface:#fff;
  --duo-surface-subtle:#f8fafc;
  --duo-text:#0b101c;
  --duo-muted:#69748a;
  --duo-border:#e4e9ef;
  --duo-border-strong:#d5dde6;
  --duo-info:#267ee8;
  --duo-success:#0b9870;
  --duo-warning:#e48a05;
  --duo-critical:#e34449;
  --duo-header:107px;
  --duo-sidebar:237px;
  --duo-page-x:19px;
  --duo-page-y:25px;
  --duo-context:52px;
  --duo-radius:12px;
  --duo-control-radius:9px;
  --duo-shadow:0 1px 2px rgba(25,38,55,.025),0 8px 28px rgba(25,38,55,.025);
}

html,body.duo-shell{min-width:320px;min-height:100%;background:var(--duo-bg)!important}
body.duo-shell{margin:0!important;overflow-x:hidden!important;color:var(--duo-text)!important;font:400 16px/1.45 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased}
body.duo-shell *,body.duo-shell *::before,body.duo-shell *::after{box-sizing:border-box}
body.duo-shell :where(h1,h2,h3,h4,strong,b){color:var(--duo-text)}
body.duo-shell :where(p,small,.muted,.hint,.field-help){color:var(--duo-muted)}
body.duo-shell :where(button,input,select,textarea){font:inherit;color:inherit}
body.duo-shell svg{display:block}

/* Shared full-width header */
body.duo-shell .duo-app-header,
body.duo-shell .ios-topbar{
  position:fixed!important;z-index:900!important;inset:0 0 auto 0!important;
  width:100%!important;height:var(--duo-header)!important;min-height:var(--duo-header)!important;
  display:grid!important;grid-template-columns:234px minmax(360px,725px) 1fr!important;
  align-items:center!important;column-gap:59px!important;padding:0 39px 0 37px!important;
  background:#fff!important;border:0!important;border-bottom:1px solid var(--duo-border)!important;
  box-shadow:none!important;backdrop-filter:none!important;
}
body.duo-shell .duo-mobile-menu{display:none}
body.duo-shell .duo-header-brand{width:234px;height:67px;display:flex;align-items:center;gap:7px;color:var(--duo-text)!important;text-decoration:none!important;white-space:nowrap}
body.duo-shell .duo-header-brand img{width:178px;height:67px;object-fit:contain;object-position:left center}
body.duo-shell .duo-brand-lockup{height:52px;display:flex;align-items:center;position:relative;padding-left:8px;color:#11151d;font-size:27px;line-height:1;letter-spacing:-.07em}
body.duo-shell .duo-brand-lockup::before{content:"";position:absolute;inset:0 auto 0 0;width:64px;border:2px solid var(--duo-primary);border-right:0}
body.duo-shell .duo-brand-lockup::after{content:"";position:absolute;top:0;left:62px;width:16px;height:2px;background:var(--duo-primary);box-shadow:0 50px 0 var(--duo-primary)}
body.duo-shell .duo-brand-box{z-index:1;font-weight:700;letter-spacing:-.06em}
body.duo-shell .duo-brand-office{z-index:1;margin-left:2px;color:#30343b;font-weight:400;letter-spacing:-.075em}
body.duo-shell .duo-header-brand>b{margin-left:2px;padding-top:4px;color:var(--duo-text)!important;font-size:21px;font-weight:600;letter-spacing:-.03em}
body.duo-shell .duo-global-search{position:relative;width:100%;max-width:725px;height:60px;margin:0}
body.duo-shell .duo-global-search svg{position:absolute;z-index:1;top:18px;left:22px;width:25px;height:25px;fill:none;stroke:#111a28;stroke-width:2.2;stroke-linecap:round}
body.duo-shell .duo-global-search input{width:100%!important;height:60px!important;min-height:60px!important;margin:0!important;padding:0 24px 0 64px!important;color:var(--duo-text)!important;background:var(--duo-bg)!important;border:1px solid #dfe5ec!important;border-radius:10px!important;outline:0;font-size:20px!important;box-shadow:none!important}
body.duo-shell .duo-global-search input::placeholder{color:#7b8699;opacity:1}
body.duo-shell .duo-global-search input:focus{border-color:#8dbc48!important;box-shadow:0 0 0 3px rgba(94,142,10,.12)!important}
body.duo-shell .duo-header-actions{position:relative;justify-self:end;display:flex;align-items:center;gap:32px}
body.duo-shell .duo-notifications,body.duo-shell .duo-profile{position:relative}
body.duo-shell .duo-notifications>summary,body.duo-shell .duo-profile>summary{list-style:none;cursor:pointer;user-select:none}
body.duo-shell .duo-notifications>summary::-webkit-details-marker,body.duo-shell .duo-profile>summary::-webkit-details-marker{display:none}
body.duo-shell .duo-notifications>summary{position:relative;width:61px;height:61px;display:grid;place-items:center;background:#fff;border:1px solid #e0e6ed;border-radius:10px}
body.duo-shell .duo-notifications>summary svg{width:27px;height:27px;fill:none;stroke:#1a2331;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.duo-shell .duo-notifications>summary b{position:absolute;top:10px;right:9px;width:12px;height:12px;min-width:0;overflow:hidden;padding:0;color:transparent!important;background:#ef242d;border:2px solid #fff;border-radius:999px;font-size:0}
body.duo-shell .duo-profile>summary{min-width:180px;height:62px;display:grid;grid-template-columns:55px 1fr 22px;align-items:center;gap:15px}
body.duo-shell .duo-profile>summary i{width:55px;height:55px;display:grid;place-items:center;color:#fff;background:#216447;border-radius:50%;font-size:18px;font-style:normal;font-weight:500}
body.duo-shell .duo-profile>summary span{font-size:20px;font-weight:500}
body.duo-shell .duo-profile>summary>svg{width:22px;height:22px;fill:none;stroke:#1b2533;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.duo-shell .duo-notifications[open]>summary { background: #e9f5ed; border-color: #b9d5c5; }
body.duo-shell .duo-header-popover {
  position: absolute;
  z-index: 920;
  top: calc(100% + 10px);
  right: 0;
  width: min(308px,calc(100vw - 28px));
}
body.duo-shell :is(.duo-header-popover,.duo-more-menu) {
  max-height: calc(100dvh - var(--duo-header) - 12px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  color: #1a3027;
  background: #fff;
  border: 1px solid #d2e5d8;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(31,78,48,.15);
  font-size: 14px;
}
body.duo-shell .duo-profile-menu { width: min(244px,calc(100vw - 28px)); }
body.duo-shell .duo-notification-menu>strong,
body.duo-shell .duo-profile-menu>div {
  margin-bottom: 5px;
  padding: 11px 12px;
  color: #193528;
  background: linear-gradient(112deg,#e9f5ed,#f6fbf8);
  border: 1px solid #dce8df;
  border-radius: 10px;
}
body.duo-shell .duo-notification-menu>strong { display: block; }
body.duo-shell .duo-profile-menu>div { display: flex; align-items: center; gap: 10px; }
body.duo-shell .duo-profile-menu>div i {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  color: #245a41;
  background: #dceee3;
  border-radius: 50%;
  font-style: normal;
  font-weight: 700;
}
body.duo-shell .duo-profile-menu>div span { display: grid; min-width: 0; overflow-wrap: anywhere; }
body.duo-shell .duo-profile-menu>div strong { color: #193528; }
body.duo-shell .duo-profile-menu>div small { color: #526b5e; }
body.duo-shell :is(.duo-header-popover,.duo-more-menu) :is(a,.duo-logout-action) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 12px;
  color: #1a3027;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}
body.duo-shell :is(.duo-header-popover,.duo-more-menu) a:hover { background: #edf6ef; }
body.duo-shell :is(.duo-header-actions,.duo-more-menu) :is(summary,a,button):focus-visible {
  outline: 3px solid #80ba91;
  outline-offset: 1px;
}
body.duo-shell .duo-notification-menu a>b {
  min-width: 25px;
  padding: 3px 6px;
  color: #245a41;
  background: #e8f3eb;
  border-radius: 999px;
  line-height: 1.25;
  text-align: center;
}
body.duo-shell .duo-notification-menu .duo-notification-warning { color: #754d1d; background: #fcf6ec; }
body.duo-shell .duo-notification-menu .duo-notification-warning:hover,
body.duo-shell .duo-notification-menu .duo-notification-warning>b { color: #754d1d; background: #f8edd9; }
body.duo-shell :is(.duo-profile-menu,.duo-more-menu) form { margin: 0; }
body.duo-shell :is(.duo-profile-menu,.duo-more-menu) .duo-logout-action { width: 100%; color: #963b38; }
body.duo-shell :is(.duo-profile-menu,.duo-more-menu) .duo-logout-action:hover { background: #fdf1ef; }

/* Unified primary navigation */
body.duo-shell .duo-sidebar,
body.duo-shell .ios-app-dock{
  position:fixed!important;z-index:800!important;inset:var(--duo-header) auto 0 0!important;
  width:var(--duo-sidebar)!important;height:auto!important;display:flex!important;flex-direction:column!important;
  padding:26px 12px 23px 20px!important;overflow:hidden!important;background:#fff!important;
  border:0!important;border-right:1px solid var(--duo-border)!important;box-shadow:none!important;
  scrollbar-width:thin;scrollbar-color:#dce2e8 transparent;
}
body.duo-shell .duo-sidebar>nav{min-height:0;flex:1 1 auto;display:grid!important;align-content:start;gap:2px!important;margin:0!important;padding:0 2px 0 0!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-width:thin;scrollbar-color:#dce2e8 transparent}
body.duo-shell .duo-nav-item{position:relative;width:100%;height:62px;min-height:62px;display:flex;align-items:center;gap:23px;padding:0 17px;color:#111824!important;background:transparent!important;border:0!important;border-radius:9px!important;box-shadow:none!important;text-decoration:none!important;font-size:20px;font-weight:400;line-height:1;white-space:nowrap}
body.duo-shell .duo-nav-item:hover{background:#f5f8f1!important}
body.duo-shell .duo-nav-item.active{color:#17210f!important;background:var(--duo-primary-soft)!important;font-weight:500!important;box-shadow:none!important}
body.duo-shell .duo-nav-icon{width:29px;height:29px;flex:0 0 29px;display:grid;place-items:center;color:currentColor;background:transparent;border:0;border-radius:0}
body.duo-shell .duo-nav-icon svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
body.duo-shell .duo-nav-item>span:last-of-type{min-width:0;overflow:hidden;text-overflow:ellipsis}
body.duo-shell .duo-nav-badge{position:static;margin-left:auto;min-width:24px;height:24px;display:inline-grid;place-items:center;padding:0 6px;color:#fff!important;background:#e93c50!important;border:2px solid #fff!important;border-radius:999px!important;font-size:11px;font-weight:600;line-height:1}
body.duo-shell .duo-nav-badge.hidden,body.duo-shell .duo-nav-badge[hidden]{display:none!important}
body.duo-shell .duo-more{position:relative;flex:0 0 auto;margin-top:12px;padding-top:12px;border-top:1px solid var(--duo-border);background:#fff}
body.duo-shell .duo-more>summary{height:52px;display:flex;align-items:center;gap:23px;padding:0 17px;list-style:none;border-radius:9px;cursor:pointer;font-size:20px}
body.duo-shell .duo-more>summary::-webkit-details-marker{display:none}
body.duo-shell .duo-more>summary:hover,
body.duo-shell .duo-more[open]>summary { color: #245a41; background: #e9f5ed; }
body.duo-shell .duo-more-menu {
  position: absolute;
  z-index: 910;
  bottom: calc(100% - 4px);
  left: 0;
  width: min(220px,100%);
  max-height: calc(100dvh - var(--duo-header) - 80px);
}

/* The desktop rail shares its width with content, context tabs and AI windows. */
#duo-app.duo-shell .duo-sidebar-toggle{display:flex;flex:0 0 40px;align-items:center;gap:8px;width:100%;min-height:40px;margin:0 0 10px;padding:8px 10px;color:#526174;background:#fff;border:1px solid #d5dde4;border-radius:8px;box-shadow:none;font-size:13px;line-height:1.3;text-align:left;cursor:pointer}
#duo-app.duo-shell .duo-sidebar-toggle>span{white-space:nowrap;font-size:13px!important}
body.duo-shell .duo-sidebar-toggle svg{flex:0 0 22px;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.duo-shell .duo-sidebar-toggle:hover{color:#1b2635;background:#f1f4f7;border-color:#a9b8c5}
body.duo-shell :is(.duo-sidebar-toggle,.duo-nav-item,.duo-more>summary):focus-visible{outline:3px solid #3e83a6;outline-offset:-3px}
body.duo-shell .duo-nav-tooltip{position:fixed;z-index:1400;max-width:240px;padding:8px 12px;border:1px solid #344253;border-radius:7px;background:#1b2635;color:#fff;box-shadow:0 4px 14px #17212f26;font-size:13px;line-height:1.4;pointer-events:none;overflow-wrap:anywhere}
body.duo-shell .duo-nav-tooltip[hidden]{display:none}
@media(min-width:901px){
  html.duo-nav-collapsed{--duo-sidebar:72px!important}
  html.duo-nav-collapsed #duo-app.duo-shell .duo-sidebar{padding:10px 6px!important}
  html.duo-nav-collapsed #duo-app.duo-shell .duo-sidebar>nav{padding:0!important;scrollbar-width:thin}
  html.duo-nav-collapsed #duo-app.duo-shell .duo-sidebar-toggle{justify-content:center;gap:0;padding:8px;margin-bottom:6px}
  html.duo-nav-collapsed #duo-app.duo-shell .duo-sidebar-toggle svg{transform:rotate(180deg)}
  html.duo-nav-collapsed #duo-app.duo-shell :is(.duo-nav-item,.duo-more>summary){height:44px!important;min-height:44px!important;justify-content:center;gap:0!important;padding:0!important;border-radius:8px!important}
  html.duo-nav-collapsed #duo-app.duo-shell :is(.duo-nav-icon,.duo-nav-icon svg){width:23px;height:23px;flex-basis:23px}
  html.duo-nav-collapsed #duo-app.duo-shell :is(.duo-nav-item>span:last-of-type,.duo-more>summary>span:last-of-type,.duo-sidebar-toggle>span){position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap!important}
  html.duo-nav-collapsed #duo-app.duo-shell .duo-nav-item:hover{background:#f0f3f6!important}
  html.duo-nav-collapsed #duo-app.duo-shell .duo-nav-item.active{color:#216447!important;background:#e6f1eb!important}
  html.duo-nav-collapsed #duo-app.duo-shell .duo-nav-badge{position:absolute;top:1px;right:0;min-width:18px;height:18px;margin:0;padding:0 4px;font-size:10px!important;line-height:1;border-width:1px!important}
  html.duo-nav-collapsed #duo-app.duo-shell .duo-more{margin-top:6px;padding-top:6px;border-top:0}
  html.duo-nav-collapsed #duo-app.duo-shell .duo-more-menu{position:fixed;left:calc(var(--duo-sidebar) + 8px);bottom:12px;width:220px}
}
@media(max-width:900px){body.duo-shell .duo-sidebar-toggle{display:none}}

/* Context navigation and content viewport */
body.duo-shell .duo-context-nav{position:fixed!important;z-index:850!important;inset:var(--duo-header) 0 auto var(--duo-sidebar)!important;min-height:var(--duo-context)!important;display:flex;align-items:center;gap:4px;padding:7px var(--duo-page-x)!important;overflow-x:auto;background:#fff!important;border-bottom:1px solid var(--duo-border)!important;box-shadow:none!important}
body.duo-shell .duo-context-nav a{flex:0 0 auto;padding:8px 12px;color:var(--duo-muted)!important;border-radius:8px;font-size:14px;font-weight:600;text-decoration:none}
body.duo-shell .duo-context-nav a.active{color:#426d08!important;background:var(--duo-primary-soft)!important}
body.duo-shell>main:not(.login-main):not(.ai-embed-main){position:relative!important;width:auto!important;min-width:0!important;max-width:none!important;min-height:100dvh!important;margin:0 0 0 var(--duo-sidebar)!important;padding:calc(var(--duo-header) + var(--duo-page-y)) var(--duo-page-x) 32px!important;overflow:visible!important;background:var(--duo-bg)!important}
body.duo-shell.has-context-nav>main:not(.login-main):not(.ai-embed-main){padding-top:calc(var(--duo-header) + var(--duo-context) + var(--duo-page-y))!important}

/* Common page language */
body.duo-shell :where(.duo-page,.page,.page-shell,.workspace-page,.admin-page,.settings-page,.form-page){width:100%;max-width:none;margin:0}
body.duo-shell :where(.duo-page-header,.page-head,.page-header,.title-row,.hero,.module-hero){min-height:92px;display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 20px;padding:21px 24px;background:#fff;border:1px solid var(--duo-border);border-radius:var(--duo-radius);box-shadow:var(--duo-shadow)}
body.duo-shell :where(.duo-page-header,.page-head,.page-header,.title-row,.hero,.module-hero) h1{margin:0;color:var(--duo-text);font-size:32px;line-height:1.15;font-weight:600;letter-spacing:-.035em}
body.duo-shell :where(.duo-page-header,.page-head,.page-header,.title-row,.hero,.module-hero) p{margin:5px 0 0;color:var(--duo-muted);font-size:16px}
body.duo-shell :where(.duo-eyebrow,.eyebrow,.ios-eyebrow){display:block;margin:0 0 4px;color:#527257;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
body.duo-shell :where(.duo-card,.card,.panel,.box,.content-card,.settings-card,.form-card){background:#fff;border:1px solid var(--duo-border);border-radius:var(--duo-radius);box-shadow:var(--duo-shadow)}
body.duo-shell :where(.duo-card,.card,.panel,.content-card,.settings-card,.form-card){padding:22px}
body.duo-shell :where(button,.button,.btn,a.button,input[type=submit],input[type=button]){min-height:42px;padding:9px 15px;color:#314052;background:#fff;border:1px solid var(--duo-border-strong);border-radius:var(--duo-control-radius);box-shadow:none;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer}
body.duo-shell :where(button,.button,.btn,a.button,input[type=submit],input[type=button]):hover{border-color:#b9c5d1;background:#f8fafb}
body.duo-shell :where(.primary,.button.primary,.btn-primary,button[type=submit].primary,.onboarding-primary){color:#fff!important;background:var(--duo-primary)!important;border-color:var(--duo-primary)!important}
body.duo-shell :where(.primary,.button.primary,.btn-primary,button[type=submit].primary,.onboarding-primary):hover{background:var(--duo-primary-hover)!important;border-color:var(--duo-primary-hover)!important}
body.duo-shell :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){min-height:42px;padding:9px 12px;color:var(--duo-text);background:#fff;border:1px solid var(--duo-border-strong);border-radius:var(--duo-control-radius);box-shadow:none;outline:none}
body.duo-shell :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea):focus{border-color:#75a72c;box-shadow:0 0 0 3px rgba(94,142,10,.12)}
body.duo-shell :where(table,.data-table){width:100%;border-collapse:separate;border-spacing:0;background:#fff}
body.duo-shell :where(table,.data-table) th{height:46px;padding:11px 14px;color:#596575;background:#f5f8fa;border-bottom:1px solid var(--duo-border);font-size:12px;font-weight:700;letter-spacing:.06em;text-align:left;text-transform:uppercase}
body.duo-shell :where(table,.data-table) td{min-height:58px;padding:13px 14px;color:var(--duo-text);background:#fff;border-bottom:1px solid var(--duo-border);vertical-align:middle}
body.duo-shell :where(table,.data-table) tr:hover td{background:#fafcfd}
body.duo-shell :where(.tabs,.segmented,.filter-tabs,.status-tabs){display:flex;align-items:center;gap:6px;flex-wrap:wrap}
body.duo-shell :where(.tabs,.segmented,.filter-tabs,.status-tabs) :where(a,button){min-height:40px;padding:8px 14px;color:#4d5b6c;background:#fff;border:1px solid var(--duo-border);border-radius:8px;text-decoration:none}
body.duo-shell :where(.tabs,.segmented,.filter-tabs,.status-tabs) :where(.active,[aria-current=page]){color:#446f09;background:var(--duo-primary-soft);border-color:#bcd69a}
body.duo-shell :where(.badge,.status,.pill,.tag){display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:600;line-height:1}
body.duo-shell :where(.modal,.dialog,[role=dialog]){color:var(--duo-text);background:#fff;border:1px solid var(--duo-border);border-radius:14px;box-shadow:0 24px 70px rgba(19,31,48,.18)}

/* Dashboard: reference geometry */
body.duo-shell .duo-dashboard{width:100%;display:grid;gap:0}
body.duo-shell .duo-dashboard-hero{height:144px;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:0 27px 0 35px;background:#fff;border:1px solid var(--duo-border);border-radius:var(--duo-radius);box-shadow:var(--duo-shadow)}
body.duo-shell .duo-hero-copy{min-width:0;transform:translateY(-3px)}
body.duo-shell .duo-hero-copy h1{margin:0;color:#05070b;font-size:42px;font-weight:600;line-height:1.14;letter-spacing:-.045em}
body.duo-shell .duo-hero-copy p{margin:7px 0 0;color:var(--duo-muted);font-size:22px;line-height:1.25;letter-spacing:-.02em}
body.duo-shell .duo-today{width:298px;height:91px;flex:0 0 298px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 20px 0 25px;background:#fff;border:1px solid #dfe5ec;border-radius:10px}
body.duo-shell .duo-today>span{display:grid;gap:2px}
body.duo-shell .duo-today small{color:var(--duo-muted);font-size:20px;line-height:1.1}
body.duo-shell .duo-today strong{font-size:23px;font-weight:600;line-height:1.15;letter-spacing:-.025em}
body.duo-shell .duo-today svg{width:38px;height:38px;fill:none;stroke:var(--duo-primary);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
body.duo-shell .duo-dashboard-shortcuts{height:123px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:23px}
body.duo-shell .duo-shortcut{min-width:0;display:grid;grid-template-columns:72px minmax(0,1fr) 15px;align-items:center;column-gap:23px;padding:0 15px 0 24px;color:var(--duo-text);background:#fff;border:1px solid var(--duo-border);border-radius:var(--duo-radius);box-shadow:var(--duo-shadow);text-decoration:none;transition:transform .15s,border-color .15s,box-shadow .15s}
body.duo-shell .duo-shortcut:hover{transform:translateY(-1px);border-color:#d4dce5;box-shadow:0 10px 25px rgba(20,32,48,.07)}
body.duo-shell .duo-shortcut-icon{width:72px;height:72px;display:grid;place-items:center;color:#fff;border-radius:12px}
body.duo-shell .duo-shortcut-icon svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
body.duo-shell .duo-shortcut-mail .duo-shortcut-icon,body.duo-shell .duo-shortcut-tasks .duo-shortcut-icon{background:#267ee8!important}
body.duo-shell .duo-shortcut-customers .duo-shortcut-icon{background:#ad5e02!important}
body.duo-shell .duo-shortcut-files .duo-shortcut-icon{background:#5c8b0b!important}
body.duo-shell .duo-shortcut-copy{min-width:0;display:grid;gap:4px}
body.duo-shell .duo-shortcut-copy strong{overflow:hidden;font-size:20px;font-weight:600;line-height:1.15;letter-spacing:-.02em;text-overflow:ellipsis;white-space:nowrap}
body.duo-shell .duo-shortcut-copy small{overflow:hidden;color:var(--duo-muted);font-size:18px;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}
body.duo-shell .duo-shortcut-copy small b{font-weight:400}
body.duo-shell .duo-shortcut-arrow{color:#566176;font-size:34px;font-weight:300;line-height:1}
body.duo-shell .duo-dashboard-grid{height:calc(100vh - var(--duo-header) - var(--duo-page-y) - 144px - 23px - 123px - 24px - 39px);min-height:520px;display:grid;grid-template-columns:minmax(0,1.37fr) minmax(390px,1fr);align-items:stretch!important;gap:20px;margin-top:24px}
body.duo-shell .duo-dashboard-panel{height:100%!important;min-width:0;min-height:0;overflow:hidden;background:#fff;border:1px solid var(--duo-border);border-radius:var(--duo-radius);box-shadow:var(--duo-shadow)}
body.duo-shell .duo-panel-head{height:81px;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 27px;border-bottom:1px solid var(--duo-border)}
body.duo-shell .duo-panel-head h2{margin:0;font-size:26px;font-weight:600;line-height:1.15;letter-spacing:-.035em}
body.duo-shell .duo-panel-head>a{display:flex;align-items:center;gap:12px;color:var(--duo-primary);font-size:17px;font-weight:600;text-decoration:none;white-space:nowrap}
body.duo-shell .duo-panel-head>a span{font-size:28px;font-weight:400}
body.duo-shell .duo-activity-list{height:calc(100% - 81px);display:grid;grid-template-rows:repeat(5,minmax(0,1fr));padding:0 27px}
body.duo-shell .duo-activity-row{min-width:0;display:grid;grid-template-columns:61px minmax(0,1fr) auto;align-items:center;gap:22px;color:var(--duo-text);border-bottom:1px solid var(--duo-border);text-decoration:none}
body.duo-shell .duo-activity-row:last-child{border-bottom:0}
body.duo-shell .duo-activity-icon{width:61px;height:61px;display:grid;place-items:center;color:#fff;border-radius:12px}
body.duo-shell .duo-activity-icon svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
body.duo-shell .duo-activity-icon.is-customer{background:#e89d05}body.duo-shell .duo-activity-icon.is-mail{background:#2389f9}body.duo-shell .duo-activity-icon.is-file{background:#ef3e43}body.duo-shell .duo-activity-icon.is-task{background:#05a56c}body.duo-shell .duo-activity-icon.is-chat{background:#858e9d}
body.duo-shell .duo-activity-copy{min-width:0;display:grid;gap:3px}
body.duo-shell .duo-activity-copy strong{overflow:hidden;font-size:20px;font-weight:600;line-height:1.18;letter-spacing:-.018em;text-overflow:ellipsis;white-space:nowrap}
body.duo-shell .duo-activity-copy small{overflow:hidden;color:var(--duo-muted);font-size:18px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
body.duo-shell .duo-activity-row time{color:var(--duo-muted);font-size:18px;white-space:nowrap}
body.duo-shell .duo-activity-empty{grid-row:1/-1;align-self:center;justify-self:center;display:grid;gap:5px;color:var(--duo-muted);text-align:center}
body.duo-shell .duo-ai-head{justify-content:flex-start}
body.duo-shell .duo-ai-head .duo-ai-mark{color:#6154dc;font-size:39px;line-height:1}
body.duo-shell .duo-ai-head h2{flex:1}
body.duo-shell .duo-ai-head>a{color:#263043;font-size:29px;line-height:1}
body.duo-shell .duo-ai-body{height:calc(100% - 81px);min-width:0;display:grid;grid-template-rows:auto 55px auto;align-content:start;gap:19px;padding:21px 27px 24px}
body.duo-shell .duo-ai-intro h3{margin:0;font-size:23px;font-weight:600;line-height:1.2;letter-spacing:-.025em}
body.duo-shell .duo-ai-intro p{margin:8px 0 0;color:var(--duo-muted);font-size:18px;line-height:1.45}
body.duo-shell .duo-ai-question{width:100%;height:55px;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 62px;gap:10px;margin:0}
body.duo-shell .duo-ai-question input{min-width:0;width:100%;height:55px;min-height:55px;padding:0 18px;color:var(--duo-text);background:var(--duo-bg);border:1px solid #dfe5ec;border-radius:9px;font-size:18px}
body.duo-shell .duo-ai-question button{width:62px;height:55px;min-height:55px;display:grid;place-items:center;padding:0;color:#fff;background:var(--duo-primary);border:0;border-radius:9px}
body.duo-shell .duo-ai-question button svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.duo-shell .duo-ai-actions{min-width:0;display:grid;grid-auto-rows:52px;gap:9px}
body.duo-shell .duo-ai-actions form{min-width:0;margin:0}
body.duo-shell .duo-ai-actions button{width:100%;height:52px;min-width:0;min-height:52px;display:flex;align-items:center;gap:17px;padding:0 17px;overflow:hidden;color:#273145!important;background:#fff!important;border:1px solid #dfe5ec!important;border-radius:9px;text-align:left;font-size:16px;line-height:1.18;white-space:nowrap}
body.duo-shell .duo-ai-actions button>span{width:25px;height:25px;flex:0 0 25px;display:grid;place-items:center}
body.duo-shell .duo-ai-actions svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}

/* Activity page */
body.duo-shell .duo-activity-feed-card{padding:0;overflow:hidden}
body.duo-shell .duo-activity-feed-row{min-height:84px;display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:18px;padding:12px 20px;color:var(--duo-text);border-bottom:1px solid var(--duo-border);text-decoration:none}
body.duo-shell .duo-activity-feed-row:last-child{border-bottom:0}
body.duo-shell .duo-activity-feed-row .duo-activity-icon{width:48px;height:48px;border-radius:10px}
body.duo-shell .duo-activity-feed-row>span:nth-child(2){min-width:0;display:grid;gap:3px}
body.duo-shell .duo-activity-feed-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.duo-shell .duo-activity-feed-row time{color:var(--duo-muted);white-space:nowrap}
body.duo-shell .duo-empty-state{display:grid;place-items:center;gap:5px;min-height:240px;padding:32px;color:var(--duo-muted);text-align:center}
body.duo-home:has(.backup-reminder) .duo-dashboard-grid,
body.duo-home:has(.system-update-reminder) .duo-dashboard-grid,
body.duo-home:has(.long-time-warning) .duo-dashboard-grid{height:calc(100vh - var(--duo-header) - var(--duo-page-y) - 144px - 23px - 123px - 24px - 39px - 68px)}

/* Notifications */
body.duo-shell :where(.chat-toast,.mail-toast,.task-notification-toast,.onboarding-notification-toast,.knowledge-toast){position:fixed!important;z-index:1100!important;top:calc(var(--duo-header) + 16px)!important;bottom:auto!important;right:20px!important;width:min(390px,calc(100vw - 32px))!important;padding:14px 16px!important;color:var(--duo-text)!important;background:#fff!important;border:1px solid var(--duo-border)!important;border-left:4px solid var(--duo-primary)!important;border-radius:10px!important;box-shadow:0 16px 40px rgba(20,32,48,.16)!important}

/* Compact height variants required by the supported desktop viewports */
@media(max-height:1000px) and (min-width:961px){
  :root{--duo-header:91px;--duo-sidebar:220px;--duo-page-x:18px;--duo-page-y:22px}
  body.duo-shell .duo-app-header,body.duo-shell .ios-topbar{grid-template-columns:220px minmax(350px,1fr) auto!important;column-gap:38px!important;padding:0 30px!important}
  body.duo-shell .duo-header-brand{width:220px;height:57px}body.duo-shell .duo-header-brand img{width:155px;height:57px}body.duo-shell .duo-header-brand b{font-size:18px}
  body.duo-shell .duo-global-search,body.duo-shell .duo-global-search input{height:51px!important;min-height:51px!important}body.duo-shell .duo-global-search input{padding-left:54px!important;font-size:17px!important}body.duo-shell .duo-global-search svg{top:15px;left:19px;width:22px;height:22px}
  body.duo-shell .duo-notifications>summary{width:52px;height:52px}body.duo-shell .duo-profile>summary{min-width:154px;height:53px;grid-template-columns:47px 1fr 18px;gap:12px}body.duo-shell .duo-profile>summary i{width:47px;height:47px}body.duo-shell .duo-profile>summary span{font-size:17px}
  body.duo-shell .duo-sidebar{padding:22px 10px 20px 17px!important}body.duo-shell .duo-nav-item{height:52px;min-height:52px;gap:16px;padding-inline:14px;font-size:17px}body.duo-shell .duo-nav-icon,body.duo-shell .duo-nav-icon svg{width:25px;height:25px;flex-basis:25px}body.duo-shell .duo-more{padding-top:16px}body.duo-shell .duo-more>summary{height:45px;gap:16px;padding-inline:14px;font-size:17px}
  body.duo-shell .duo-dashboard-hero{height:123px;padding-inline:30px 23px}body.duo-shell .duo-hero-copy h1{font-size:36px}body.duo-shell .duo-hero-copy p{font-size:19px}body.duo-shell .duo-today{width:288px;height:77px;flex-basis:288px;padding-inline:21px 17px}body.duo-shell .duo-today small{font-size:17px}body.duo-shell .duo-today strong{font-size:20px;white-space:nowrap}body.duo-shell .duo-today svg{width:32px;height:32px}
  body.duo-shell .duo-dashboard-shortcuts{height:105px;gap:17px;margin-top:20px}body.duo-shell .duo-shortcut{grid-template-columns:61px minmax(0,1fr) 15px;gap:16px;padding-inline:18px 15px}body.duo-shell .duo-shortcut-icon{width:61px;height:61px}body.duo-shell .duo-shortcut-icon svg{width:32px;height:32px}body.duo-shell .duo-shortcut-copy strong{font-size:17px}body.duo-shell .duo-shortcut-copy small{font-size:15px}
  body.duo-shell .duo-dashboard-grid{height:calc(100vh - var(--duo-header) - var(--duo-page-y) - 123px - 20px - 105px - 21px - 32px);min-height:420px;gap:17px;margin-top:21px}body.duo-shell .duo-panel-head{height:69px;margin-inline:23px}body.duo-shell .duo-panel-head h2{font-size:22px}body.duo-shell .duo-panel-head>a{font-size:15px}body.duo-shell .duo-activity-list{height:calc(100% - 69px);padding-inline:23px}body.duo-shell .duo-activity-row{grid-template-columns:52px minmax(0,1fr) auto;gap:18px}body.duo-shell .duo-activity-icon{width:52px;height:52px}body.duo-shell .duo-activity-copy strong{font-size:17px}body.duo-shell .duo-activity-copy small,body.duo-shell .duo-activity-row time{font-size:15px}
  body.duo-shell .duo-ai-body{height:calc(100% - 69px);grid-template-rows:auto 47px auto;gap:13px;padding:17px 23px 20px}body.duo-shell .duo-ai-intro h3{font-size:20px}body.duo-shell .duo-ai-intro p{font-size:15px}body.duo-shell .duo-ai-question{height:47px;grid-template-columns:minmax(0,1fr) 53px}body.duo-shell .duo-ai-question input,body.duo-shell .duo-ai-question button{height:47px!important;min-height:47px!important}body.duo-shell .duo-ai-actions{grid-auto-rows:40px;gap:7px}body.duo-shell .duo-ai-actions button{height:40px;min-height:40px;font-size:13px}
}
@media(max-height:820px) and (min-width:961px){
  :root{--duo-header:81px;--duo-sidebar:220px;--duo-page-x:15px;--duo-page-y:20px}
  body.duo-shell .duo-app-header,body.duo-shell .ios-topbar{grid-template-columns:220px minmax(320px,1fr) auto!important;column-gap:28px!important;padding-inline:25px!important}body.duo-shell .duo-header-brand{width:220px}body.duo-shell .duo-header-brand img{width:138px}body.duo-shell .duo-header-brand b{font-size:16px}body.duo-shell .duo-global-search,body.duo-shell .duo-global-search input{height:46px!important;min-height:46px!important}body.duo-shell .duo-global-search input{padding-left:50px!important;font-size:16px!important}body.duo-shell .duo-global-search svg{top:13px;width:20px;height:20px}body.duo-shell .duo-header-actions{gap:16px}body.duo-shell .duo-notifications>summary{width:46px;height:46px}body.duo-shell .duo-profile>summary{min-width:135px;grid-template-columns:42px 1fr 16px}body.duo-shell .duo-profile>summary i{width:42px;height:42px}body.duo-shell .duo-profile>summary span{font-size:16px}
  body.duo-shell .duo-sidebar{padding:18px 9px 16px 14px!important}body.duo-shell .duo-nav-item{height:45px;min-height:45px;gap:13px;padding-inline:12px;font-size:15px}body.duo-shell .duo-nav-icon,body.duo-shell .duo-nav-icon svg{width:22px;height:22px;flex-basis:22px}body.duo-shell .duo-more{padding-top:12px}body.duo-shell .duo-more>summary{height:41px;gap:13px;padding-inline:12px;font-size:15px}
  body.duo-shell .duo-dashboard-hero{height:109px;padding-inline:27px 20px}body.duo-shell .duo-hero-copy h1{font-size:32px}body.duo-shell .duo-hero-copy p{font-size:16px}body.duo-shell .duo-today{width:265px;height:69px;flex-basis:265px}body.duo-shell .duo-today small{font-size:15px}body.duo-shell .duo-today strong{font-size:18px;white-space:nowrap}body.duo-shell .duo-today svg{width:29px;height:29px}
  body.duo-shell .duo-dashboard-shortcuts{height:93px;gap:15px;margin-top:18px}body.duo-shell .duo-shortcut{grid-template-columns:53px minmax(0,1fr) 14px;gap:13px;padding-inline:15px 13px}body.duo-shell .duo-shortcut-icon{width:53px;height:53px;border-radius:10px}body.duo-shell .duo-shortcut-icon svg{width:28px;height:28px}body.duo-shell .duo-shortcut-copy strong{font-size:16px}body.duo-shell .duo-shortcut-copy small{font-size:13px}
  body.duo-shell .duo-dashboard-grid{height:calc(100vh - var(--duo-header) - var(--duo-page-y) - 109px - 18px - 93px - 18px - 32px);min-height:340px;gap:15px;margin-top:18px}body.duo-shell .duo-panel-head{height:58px;margin-inline:20px}body.duo-shell .duo-panel-head h2{font-size:19px}body.duo-shell .duo-panel-head>a{font-size:13px}body.duo-shell .duo-activity-list{height:calc(100% - 58px);padding-inline:20px}body.duo-shell .duo-activity-row{grid-template-columns:43px minmax(0,1fr) auto;gap:14px}body.duo-shell .duo-activity-icon{width:43px;height:43px;border-radius:9px}body.duo-shell .duo-activity-copy strong{font-size:15px}body.duo-shell .duo-activity-copy small,body.duo-shell .duo-activity-row time{font-size:12px}
  body.duo-shell .duo-ai-body{height:calc(100% - 58px);grid-template-rows:auto 41px auto;gap:10px;padding:10px 20px 12px}body.duo-shell .duo-ai-intro h3{font-size:17px}body.duo-shell .duo-ai-intro p{font-size:13px;line-height:1.25}body.duo-shell .duo-ai-question{height:41px;grid-template-columns:minmax(0,1fr) 47px}body.duo-shell .duo-ai-question input,body.duo-shell .duo-ai-question button{height:41px!important;min-height:41px!important}body.duo-shell .duo-ai-actions{grid-auto-rows:30px;gap:4px}body.duo-shell .duo-ai-actions button{height:30px;min-height:30px;font-size:11px}
  body.duo-home:has(.backup-reminder) .duo-dashboard-grid,body.duo-home:has(.system-update-reminder) .duo-dashboard-grid,body.duo-home:has(.long-time-warning) .duo-dashboard-grid{height:calc(100vh - var(--duo-header) - var(--duo-page-y) - 109px - 18px - 93px - 18px - 32px - 68px);min-height:330px}
}

@media(max-width:1180px) and (min-width:901px){
  :root{--duo-sidebar:220px;--duo-page-x:16px}
  body.duo-shell .duo-app-header,body.duo-shell .ios-topbar{grid-template-columns:220px minmax(300px,1fr) auto!important;column-gap:28px!important;padding-inline:24px!important}
  body.duo-shell .duo-header-brand{width:220px}body.duo-shell .duo-header-brand img{width:152px}
  body.duo-shell .duo-profile>summary{min-width:130px;grid-template-columns:48px 1fr}body.duo-shell .duo-profile>summary i{width:48px;height:48px}body.duo-shell .duo-profile>summary>svg{display:none}
  body.duo-shell .duo-nav-item{gap:13px;padding-inline:13px;font-size:17px}
  body.duo-shell .duo-dashboard-grid{grid-template-columns:minmax(0,1.25fr) minmax(350px,1fr)}
}

@media(max-width:900px){
  :root{--duo-header:76px;--duo-sidebar:0px;--duo-page-x:14px;--duo-page-y:14px}
  body.duo-shell .duo-app-header,body.duo-shell .ios-topbar{grid-template-columns:44px 180px minmax(0,1fr) auto!important;gap:12px!important;padding:0 14px!important}
  body.duo-shell .duo-mobile-menu{width:44px;height:44px;display:grid;place-items:center;padding:0;background:#fff;border:1px solid var(--duo-border);border-radius:9px}
  body.duo-shell .duo-mobile-menu svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  body.duo-shell .duo-header-brand{width:180px;height:50px;gap:5px}body.duo-shell .duo-header-brand img{width:120px;height:48px}body.duo-shell .duo-header-brand b{font-size:13px}
  body.duo-shell .duo-global-search{max-width:none;height:44px}body.duo-shell .duo-global-search input{height:44px!important;min-height:44px!important;padding-left:44px!important;font-size:15px!important}body.duo-shell .duo-global-search svg{top:12px;left:15px;width:20px;height:20px}
  body.duo-shell .duo-header-actions{gap:8px}body.duo-shell .duo-notifications>summary{width:44px;height:44px}body.duo-shell .duo-profile>summary{min-width:44px;height:44px;grid-template-columns:44px;gap:0}body.duo-shell .duo-profile>summary i{width:44px;height:44px}body.duo-shell .duo-profile>summary span,body.duo-shell .duo-profile>summary svg{display:none}
  body.duo-shell .duo-header-actions>details { position: static; }
  body.duo-shell .duo-sidebar{z-index:890!important;inset:var(--duo-header) auto 0 0!important;width:248px!important;padding:18px 12px!important;transform:translateX(-102%);transition:transform .18s ease;box-shadow:14px 0 35px rgba(20,32,48,.12)!important}
  body.duo-shell.duo-nav-open .duo-sidebar{transform:translateX(0)}
  body.duo-shell .duo-nav-item{height:50px;min-height:50px;gap:16px;padding-inline:14px;font-size:16px}
  body.duo-shell .duo-context-nav{left:0!important}
  body.duo-shell>main:not(.login-main):not(.ai-embed-main){margin-left:0!important;padding:calc(var(--duo-header) + var(--duo-page-y)) var(--duo-page-x) 24px!important}
  body.duo-shell.has-context-nav>main:not(.login-main):not(.ai-embed-main){padding-top:calc(var(--duo-header) + var(--duo-context) + var(--duo-page-y))!important}
  body.duo-shell .duo-dashboard-shortcuts{height:auto;grid-template-columns:repeat(2,minmax(0,1fr))}
  body.duo-shell .duo-shortcut{min-height:105px}
  body.duo-shell .duo-dashboard-grid{height:auto;min-height:0;grid-template-columns:1fr}
  body.duo-shell .duo-dashboard-panel{min-height:540px}
}

@media(max-width:640px){
  body.duo-shell .duo-app-header,body.duo-shell .ios-topbar{grid-template-columns:44px minmax(110px,1fr) auto!important}
  body.duo-shell .duo-global-search{display:none}
  body.duo-shell .duo-header-brand{width:180px}
  body.duo-shell .duo-dashboard-hero{height:auto;min-height:155px;align-items:flex-start;flex-direction:column;padding:22px}
  body.duo-shell .duo-hero-copy h1{font-size:30px}body.duo-shell .duo-hero-copy p{font-size:16px}
  body.duo-shell .duo-today{width:100%;height:70px;flex-basis:70px}
  body.duo-shell .duo-dashboard-shortcuts{grid-template-columns:1fr}
  body.duo-shell .duo-shortcut{min-height:100px}
  body.duo-shell .duo-activity-row{grid-template-columns:48px minmax(0,1fr)}body.duo-shell .duo-activity-row time{display:none}
  body.duo-shell :where(.duo-page-header,.page-head,.page-header,.title-row,.hero,.module-hero){align-items:flex-start;flex-direction:column}
  body.duo-shell .duo-activity-feed-row{grid-template-columns:48px minmax(0,1fr)}body.duo-shell .duo-activity-feed-row time{display:none}
}

/* Mail workspace 2026-10-26: one stable three-pane application on every mail route. */

@media (min-width:901px) {
  body.duo-shell:is(.duo-endpoint-mailbox-index,.duo-endpoint-mailbox-message,.duo-endpoint-mailbox-search,.duo-endpoint-mailbox-unread) {
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  body.duo-shell:is(.duo-endpoint-mailbox-index,.duo-endpoint-mailbox-message,.duo-endpoint-mailbox-search,.duo-endpoint-mailbox-unread) > main:not(.login-main) {
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
    height: 100dvh !important;
    min-height: 0 !important;
    margin-left: var(--duo-sidebar) !important;
    padding: calc(var(--duo-topbar) + 14px) 16px 14px !important;
    overflow: hidden !important;
  }
  body.duo-shell:has(.mail-management-workspace) {
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  body.duo-shell:has(.mail-management-workspace) > main:not(.login-main) {
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
    height: 100dvh !important;
    min-height: 0 !important;
    margin-left: var(--duo-sidebar) !important;
    padding: calc(var(--duo-topbar) + 14px) 16px 14px !important;
    overflow: hidden !important;
  }
}

.duo-shell .mail-three-pane-workspace {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  height: calc(100dvh - var(--duo-topbar) - 28px) !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 252px 380px minmax(0,1fr) !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid var(--duo-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 26px rgba(31,47,40,.06) !important;
}
.duo-shell .mail-three-pane-workspace > * {
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
}
.duo-shell .mail-management-workspace {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  height: calc(100dvh - var(--duo-topbar) - 28px) !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 252px minmax(0,1fr) !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid var(--duo-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 26px rgba(31,47,40,.06) !important;
}
.duo-shell .mail-management-workspace > .mail-workspace-sidebar {
  min-height: 0 !important;
  height: 100% !important;
}
.duo-shell .mail-management-content {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 20px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable !important;
  background: #f8faf9 !important;
}
.duo-shell .mail-management-content > :first-child { margin-top: 0 !important; }
.duo-shell .mail-management-content > :last-child { margin-bottom: 0 !important; }
.duo-shell .mail-workspace-sidebar {
  display: grid !important;
  grid-template-rows: auto minmax(0,1fr) auto !important;
  overflow: hidden !important;
  background: #f8faf9 !important;
  border-right: 1px solid var(--duo-border) !important;
}
.duo-shell .mail-sidebar-primary {
  display: grid !important;
  gap: 10px !important;
  padding: 14px 12px 12px !important;
  border-bottom: 1px solid var(--duo-border) !important;
  background: #fff !important;
}
.duo-shell .mail-compose-primary {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  color: #fff !important;
  background: var(--duo-primary) !important;
  border-color: var(--duo-primary) !important;
  border-radius: 8px !important;
}
.duo-shell .mail-sidebar-search {
  position: relative !important;
  display: block !important;
}
.duo-shell .mail-sidebar-search > span {
  position: absolute !important;
  top: 50% !important;
  left: 11px !important;
  z-index: 1 !important;
  transform: translateY(-50%) !important;
  color: var(--duo-muted) !important;
  font-size: 18px !important;
}
.duo-shell .mail-sidebar-search input {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 10px 0 34px !important;
  background: #f7f9f8 !important;
  border: 1px solid var(--duo-border) !important;
  border-radius: 8px !important;
  font-size: 13px !important;
}
.duo-shell .mail-sidebar-scroll {
  display: block !important;
  min-height: 0 !important;
  padding: 10px 8px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable !important;
}
.duo-shell :where(.mail-sidebar-all,.mail-workspace-sidebar .account-head) {
  box-sizing: border-box !important;
  min-height: 52px !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 9px !important;
  margin: 2px 0 !important;
  padding: 8px 9px !important;
  color: var(--duo-text) !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
}
.duo-shell :where(.mail-sidebar-all,.mail-workspace-sidebar .account-head):hover {
  background: #fff !important;
  border-color: var(--duo-border) !important;
}
.duo-shell :where(.mail-sidebar-all,.mail-workspace-sidebar .account-head).active {
  color: #46630c !important;
  background: var(--duo-primary-soft) !important;
  border-color: #d7e4bd !important;
}
.duo-shell .mail-sidebar-icon,
.duo-shell .mail-workspace-sidebar .mailbox-avatar {
  width: 32px !important;
  height: 32px !important;
  display: grid !important;
  place-items: center !important;
  color: #4f6f0d !important;
  background: #edf4df !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}
.duo-shell :where(.mail-sidebar-all,.mail-workspace-sidebar .account-head) > span:nth-child(2) {
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
}
.duo-shell :where(.mail-sidebar-all,.mail-workspace-sidebar .account-head) b {
  overflow: hidden !important;
  color: inherit !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.duo-shell :where(.mail-sidebar-all,.mail-workspace-sidebar .account-head) small {
  overflow: hidden !important;
  color: var(--duo-muted) !important;
  font-size: 10px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.duo-shell :where(.mail-sidebar-all,.mail-workspace-sidebar .account-head) em {
  min-width: 23px !important;
  padding: 3px 6px !important;
  color: #4e6719 !important;
  background: #e5edda !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-style: normal !important;
  font-weight: 800 !important;
  text-align: center !important;
}
.duo-shell .mail-sidebar-section-label {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 17px 8px 6px !important;
  color: var(--duo-muted) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
}
.duo-shell .mail-sidebar-section-label b {
  display: grid !important;
  place-items: center !important;
  min-width: 22px !important;
  height: 22px !important;
  background: #edf0ee !important;
  border-radius: 999px !important;
  font-size: 10px !important;
}
.duo-shell .mail-workspace-sidebar .account-folders {
  display: grid !important;
  gap: 2px !important;
  margin: 3px 0 8px 42px !important;
}
.duo-shell .mail-workspace-sidebar .account-folders a {
  box-sizing: border-box !important;
  min-height: 34px !important;
  display: grid !important;
  grid-template-columns: 20px minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 6px 8px !important;
  color: #4e5b54 !important;
  text-decoration: none !important;
  border-radius: 7px !important;
}
.duo-shell .mail-workspace-sidebar .account-folders a:hover,
.duo-shell .mail-workspace-sidebar .account-folders a.active {
  color: #48620f !important;
  background: #edf4e3 !important;
}
.duo-shell .mail-workspace-sidebar .account-folders b { font-size: 12px !important; }
.duo-shell .mail-sidebar-footer {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px 12px !important;
  padding: 10px 12px !important;
  background: #fff !important;
  border-top: 1px solid var(--duo-border) !important;
}
.duo-shell .mail-sidebar-footer a {
  color: #53615a !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.duo-shell .mail-three-pane-workspace > .mail-list-pane {
  display: grid !important;
  grid-template-rows: 58px minmax(0,1fr) !important;
  overflow: hidden !important;
  background: #fff !important;
  border-right: 1px solid var(--duo-border) !important;
}
.duo-shell .mail-three-pane-workspace .mail-list-head {
  position: relative !important;
  top: auto !important;
  z-index: 4 !important;
  box-sizing: border-box !important;
  height: 58px !important;
  min-height: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 9px 12px !important;
  color: var(--duo-text) !important;
  background: #fff !important;
  border-bottom: 1px solid var(--duo-border) !important;
  box-shadow: none !important;
}
.duo-shell .mail-three-pane-workspace .mail-list-head > div:first-child {
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
}
.duo-shell .mail-three-pane-workspace .mail-list-head .mail-pane-label {
  padding: 0 !important;
  color: var(--duo-text) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.duo-shell .mail-three-pane-workspace .mail-list-head > div:first-child > b {
  overflow: hidden !important;
  color: var(--duo-muted) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.duo-shell .mail-three-pane-workspace .mail-list-controls { display: flex !important; gap: 5px !important; }
.duo-shell .mail-three-pane-workspace :where(.mail-refresh,.mail-page-button) {
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  color: #526059 !important;
  background: #fff !important;
  border: 1px solid var(--duo-border) !important;
  border-radius: 7px !important;
  text-decoration: none !important;
}
.duo-shell .mail-three-pane-workspace .mail-compact-list {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable !important;
}
.duo-shell .mail-three-pane-workspace > .mail-list-pane > .mail-compact-list {
  align-self: stretch !important;
  height: 100% !important;
  max-height: 100% !important;
}
.duo-shell .mail-message-workspace > .mail-list-pane > .mail-compact-list {
  height: calc(100% - 58px) !important;
  max-height: calc(100% - 58px) !important;
}
.duo-shell .mail-search-unified-workspace .mail-search-results { display: block !important; }
.duo-shell .mail-three-pane-workspace .mail-compact-row {
  position: relative !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  min-height: 82px !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0,1fr) !important;
  align-items: start !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 11px 12px !important;
  color: var(--duo-text) !important;
  text-decoration: none !important;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid var(--duo-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.duo-shell .mail-three-pane-workspace .mail-compact-row:hover { background: #f8faf9 !important; }
.duo-shell .mail-three-pane-workspace .mail-compact-row.unread {
  padding-left: 9px !important;
  background: #f7faef !important;
  border-left: 3px solid var(--duo-primary) !important;
}
.duo-shell .mail-three-pane-workspace .mail-compact-row.selected {
  background: #eef5e4 !important;
  box-shadow: inset 3px 0 0 var(--duo-primary) !important;
}
.duo-shell .mail-three-pane-workspace .mail-list-avatar {
  width: 36px !important;
  height: 36px !important;
  display: grid !important;
  place-items: center !important;
  color: #41670f !important;
  background: #edf4df !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}
.duo-shell .mail-three-pane-workspace .mail-row-content {
  min-width: 0 !important;
  display: grid !important;
  gap: 3px !important;
}
.duo-shell .mail-three-pane-workspace .mail-row-top {
  min-width: 0 !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 8px !important;
}
.duo-shell .mail-three-pane-workspace .mail-row-top b,
.duo-shell .mail-three-pane-workspace .mail-row-content > strong {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.duo-shell .mail-three-pane-workspace .mail-row-top b { font-size: 12px !important; }
.duo-shell .mail-three-pane-workspace .mail-row-top time {
  flex: 0 0 auto !important;
  color: var(--duo-muted) !important;
  font-size: 9px !important;
}
.duo-shell .mail-three-pane-workspace .mail-row-content > strong {
  color: #28332e !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
.duo-shell .mail-three-pane-workspace .mail-route-line {
  display: block !important;
  overflow: hidden !important;
  color: var(--duo-muted) !important;
  font-size: 9px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.duo-shell .mail-three-pane-workspace .mail-unread-marker {
  position: absolute !important;
  right: 9px !important;
  bottom: 9px !important;
  width: 7px !important;
  height: 7px !important;
  background: var(--duo-primary) !important;
  border-radius: 50% !important;
}
.duo-shell .mail-three-pane-workspace .mail-list-empty {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 24px !important;
  color: var(--duo-muted) !important;
  text-align: center !important;
}
.duo-shell .mail-three-pane-workspace .mail-list-empty > span {
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  color: #587b16 !important;
  background: var(--duo-primary-soft) !important;
  border-radius: 11px !important;
}
.duo-shell .mail-three-pane-workspace .mail-list-empty h3 { margin: 2px 0 0 !important; color: var(--duo-text) !important; font-size: 16px !important; }
.duo-shell .mail-three-pane-workspace .mail-list-empty p { max-width: 280px !important; margin: 0 !important; font-size: 11px !important; line-height: 1.45 !important; }
.duo-shell .mail-three-pane-workspace :where(#mail-list-bulk-delete-form,#unread-delete-form) {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: 44px minmax(0,1fr) !important;
  overflow: hidden !important;
}
.duo-shell .mail-search-reading-pane {
  position: relative !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  background: #fbfcfb !important;
}
.duo-shell .mail-search-preview-empty {
  min-height: 0 !important;
  flex: 1 1 auto !important;
  display: grid !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 22px !important;
  padding: 24px !important;
  overflow: auto !important;
}
.duo-shell .mail-search-preview-empty[hidden] { display: none !important; }
.duo-shell .mail-search-preview-frame {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  border: 0 !important;
  background: #fff !important;
}
.duo-shell .mail-search-export {
  width: min(560px,90%) !important;
  padding: 12px 14px !important;
  background: #fff !important;
  border: 1px solid var(--duo-border) !important;
  border-radius: 9px !important;
}
.duo-shell .mail-search-export summary {
  color: #4e6817 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}
.duo-shell .mail-search-export form { display: grid !important; gap: 10px !important; padding-top: 12px !important; }
.duo-shell .mail-search-export form > p { margin: 0 !important; color: var(--duo-muted) !important; font-size: 12px !important; }
.duo-shell .mail-search-export form > div { display: grid !important; gap: 5px !important; max-height: 230px !important; overflow: auto !important; }
.duo-shell .mail-search-export label {
  display: grid !important;
  grid-template-columns: 20px minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 7px 8px !important;
  background: #f8faf9 !important;
  border-radius: 7px !important;
}
.duo-shell .mail-search-export label span { min-width: 0 !important; display: grid !important; }
.duo-shell .mail-search-export label b,
.duo-shell .mail-search-export label small { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.duo-shell .mail-search-export label b { font-size: 12px !important; }
.duo-shell .mail-search-export label small { color: var(--duo-muted) !important; font-size: 10px !important; }
.duo-shell .mail-workspace-notice { display: none !important; }
.duo-shell .mail-three-pane-workspace .mail-list-bulk-toolbar {
  box-sizing: border-box !important;
  min-height: 44px !important;
  padding: 6px 9px !important;
  gap: 8px !important;
  background: #f8faf9 !important;
}
.duo-shell .mail-three-pane-workspace .mail-list-bulk-toolbar label span { display: none !important; }
.duo-shell .mail-three-pane-workspace .mail-list-bulk-toolbar > span { font-size: 10px !important; }
.duo-shell .mail-three-pane-workspace .mail-list-bulk-toolbar button {
  min-height: 30px !important;
  padding: 5px 8px !important;
  font-size: 10px !important;
}
.duo-shell .mail-three-pane-workspace .mail-compact-select-row {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 36px minmax(0,1fr) !important;
}
.duo-shell .mail-three-pane-workspace .mail-compact-selector { min-width: 0 !important; }
.duo-shell .mail-three-pane-workspace > .mail-reading-pane {
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 0 !important;
}
.duo-shell .mail-reader-empty {
  align-items: center !important;
  justify-content: center !important;
  background: #fbfcfb !important;
}
.duo-shell .mail-empty-reader-card {
  width: min(380px,76%) !important;
  display: grid !important;
  justify-items: center !important;
  gap: 7px !important;
  color: var(--duo-muted) !important;
  text-align: center !important;
}
.duo-shell .mail-empty-reader-card > span {
  width: 52px !important;
  height: 52px !important;
  display: grid !important;
  place-items: center !important;
  color: #587b16 !important;
  background: var(--duo-primary-soft) !important;
  border-radius: 14px !important;
  font-size: 23px !important;
}
.duo-shell .mail-empty-reader-card h2 { margin: 7px 0 0 !important; color: var(--duo-text) !important; font-size: 21px !important; }
.duo-shell .mail-empty-reader-card p { margin: 0 !important; font-size: 13px !important; line-height: 1.5 !important; }
.duo-shell .mail-message-workspace .mail-toolbar {
  position: relative !important;
  top: auto !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 52px !important;
  padding: 8px 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  background: #fff !important;
  border-bottom: 1px solid var(--duo-border) !important;
  scrollbar-width: thin !important;
}
.duo-shell .mail-message-workspace .mail-reader-scroll {
  min-height: 0 !important;
  flex: 1 1 auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #f8faf9 !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable !important;
}
.duo-shell .mail-message-workspace .mail-message,
.duo-shell .mail-message-workspace .mail-reply,
.duo-shell .mail-message-workspace .mail-linked-tasks {
  max-width: 980px !important;
  margin: 14px auto !important;
  border-color: var(--duo-border) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
.duo-shell .mail-context-ai-panel,
.duo-shell .mail-context-ai-head,
.duo-shell .mail-context-ai-scroll,
.duo-shell .mail-context-ai-intro,
.duo-shell .mail-ai-open {
  background-image: none !important;
}

@media (max-width:1500px) {
  .duo-shell .mail-three-pane-workspace { grid-template-columns: 230px 340px minmax(0,1fr) !important; }
  .duo-shell .mail-message-workspace .mail-toolbar { flex-wrap: nowrap !important; }
  .duo-shell .mail-message-workspace .mail-toolbar-main-actions { width: auto !important; flex-wrap: nowrap !important; }
}
@media (max-width:1100px) {
  .duo-shell .mail-three-pane-workspace { grid-template-columns: 220px 320px minmax(0,1fr) !important; }
  .duo-shell .mail-message-workspace .mail-toolbar :where(.customer-history-button,.mail-contact-create-menu) { display: none !important; }
}
@media (max-width:900px) {
  .duo-shell .mail-three-pane-workspace {
    height: auto !important;
    min-height: calc(100dvh - 88px) !important;
    grid-template-columns: 1fr !important;
    overflow: visible !important;
  }
  .duo-shell .mail-workspace-sidebar { height: auto !important; max-height: 390px !important; }
  .duo-shell .mail-sidebar-scroll { max-height: 250px !important; }
  .duo-shell .mail-three-pane-workspace > .mail-list-pane { height: min(620px,70dvh) !important; border-right: 0 !important; border-bottom: 1px solid var(--duo-border) !important; }
  .duo-shell .mail-three-pane-workspace > .mail-reading-pane { min-height: 520px !important; }
  .duo-shell .mail-management-workspace {
    height: auto !important;
    min-height: calc(100dvh - 88px) !important;
    grid-template-columns: 1fr !important;
    overflow: visible !important;
  }
  .duo-shell .mail-management-content { overflow: visible !important; }
}

@media print{
  body.duo-shell .duo-app-header,body.duo-shell .duo-sidebar,body.duo-shell .duo-context-nav,body.duo-shell .global-ai-tab,body.duo-shell .global-ai-panel{display:none!important}
  body.duo-shell>main:not(.login-main){margin:0!important;padding:0!important}
}

/* Dashboard 2026-10-26: kompakte Arbeitsübersicht statt eingebettetem Groß-Chat. */
body.duo-shell.duo-home>main:not(.login-main){overflow:auto!important}
body.duo-shell .duo-dashboard{display:grid!important;gap:16px!important}
body.duo-shell .duo-dashboard-hero{height:auto!important;min-height:104px!important;padding:20px 24px!important}
body.duo-shell .duo-hero-copy{transform:none!important}
body.duo-shell .duo-today{width:270px!important;height:66px!important;flex-basis:270px!important;padding:10px 16px!important}
body.duo-shell .duo-today small{font-size:14px!important}
body.duo-shell .duo-today strong{font-size:17px!important}
body.duo-shell .duo-today svg{width:30px!important;height:30px!important}
body.duo-shell .duo-dashboard-shortcuts{height:auto!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin:0!important}
body.duo-shell .duo-shortcut{min-height:112px!important;grid-template-columns:48px minmax(0,1fr) 14px!important;gap:13px!important;padding:14px 15px!important}
body.duo-shell .duo-shortcut-icon{width:48px!important;height:48px!important;border-radius:10px!important}
body.duo-shell .duo-shortcut-icon svg{width:25px!important;height:25px!important}
body.duo-shell .duo-shortcut-copy{grid-template-columns:1fr auto!important;align-items:baseline!important;gap:3px 8px!important}
body.duo-shell .duo-shortcut-copy strong{grid-column:1/-1!important}
body.duo-shell .duo-shortcut-count{font-size:30px!important;line-height:1!important}
body.duo-shell .duo-shortcut-copy small{align-self:end!important;padding-bottom:2px!important}
body.duo-shell .duo-shortcut-arrow{font-size:24px!important}
body.duo-shell .duo-dashboard-workspace{min-height:430px;display:grid;grid-template-columns:minmax(270px,.78fr) minmax(430px,1.42fr) minmax(280px,.8fr);gap:14px;align-items:stretch}
body.duo-shell .duo-dashboard-panel{height:auto!important;min-height:0!important;overflow:hidden!important}
body.duo-shell .duo-panel-head{height:auto!important;min-height:70px!important;margin:0 18px!important;padding:13px 0!important}
body.duo-shell .duo-panel-head>div{min-width:0}
body.duo-shell .duo-panel-head .duo-eyebrow{margin-bottom:2px!important}
body.duo-shell .duo-panel-head>a{font-size:14px!important}
body.duo-shell .duo-priority-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:14px 18px;border-bottom:1px solid var(--duo-border)}
body.duo-shell .duo-priority-summary>span{min-width:0;padding:10px;border:1px solid var(--duo-border);border-radius:9px;background:var(--duo-surface-subtle)}
body.duo-shell .duo-priority-summary>span:nth-child(1){border-color:#f1c9c9;background:#fff5f5}
body.duo-shell .duo-priority-summary>span:nth-child(1) b{color:#bf3434}
body.duo-shell .duo-priority-summary>span:nth-child(2){border-color:#efd6ad;background:#fff9ef}
body.duo-shell .duo-priority-summary>span:nth-child(2) b{color:#a96508}
body.duo-shell .duo-priority-summary>span:nth-child(3){border-color:#cbdceb;background:#f5f9fd}
body.duo-shell .duo-priority-summary>span:nth-child(3) b{color:#2e6d9b}
body.duo-shell .duo-priority-summary b,body.duo-shell .duo-priority-summary small{display:block}
body.duo-shell .duo-priority-summary b{font-size:26px;line-height:1;font-weight:700}
body.duo-shell .duo-priority-summary small{margin-top:5px;font-size:14px!important}
body.duo-shell .duo-priority-list{max-height:330px;overflow:auto;padding:6px 18px 14px}
body.duo-shell .duo-priority-list>a{min-height:62px;display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:11px;color:var(--duo-text);border-bottom:1px solid var(--duo-border);text-decoration:none}
body.duo-shell .duo-priority-list>a:last-child{border-bottom:0}
body.duo-shell .duo-priority-list>a span:nth-child(2){min-width:0;display:grid;gap:2px}
body.duo-shell .duo-priority-list strong{overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}
body.duo-shell .duo-priority-list small{overflow:hidden;font-size:14px!important;text-overflow:ellipsis;white-space:nowrap}
body.duo-shell .duo-priority-dot{width:8px;height:8px;border-radius:50%;background:#84908c}.duo-shell .duo-priority-dot.is-high{background:var(--duo-warning)}.duo-shell .duo-priority-dot.is-urgent{background:var(--duo-critical)}
body.duo-shell .duo-activity-list{height:auto!important;display:block!important;padding:0 18px 10px!important}
body.duo-shell .duo-activity-row{min-height:66px!important;grid-template-columns:38px minmax(0,1fr) auto!important;gap:12px!important}
body.duo-shell .duo-activity-icon{width:38px!important;height:38px!important;border-radius:9px!important;font-size:18px;font-weight:700}
body.duo-shell .duo-quick-ai{padding-bottom:17px}
body.duo-shell .duo-quick-ai .duo-panel-head button{width:38px;height:38px;min-height:38px;padding:0;color:#fff;background:var(--duo-primary);border:0;font-size:19px}
body.duo-shell .duo-quick-ai>p{margin:14px 18px;color:var(--duo-muted);font-size:15px;line-height:1.5}
body.duo-shell .duo-quick-ai-actions{display:grid;gap:8px;padding:0 18px}
body.duo-shell .duo-quick-ai-actions button{width:100%;min-height:48px;display:flex;align-items:center;gap:10px;padding:8px 11px;color:var(--duo-text)!important;background:#fff!important;border:1px solid var(--duo-border)!important;border-radius:9px;font-size:14px;text-align:left;box-shadow:none!important}
body.duo-shell .duo-quick-ai-actions button:hover{color:#405d14!important;border-color:#b9ce9a!important;background:var(--duo-primary-soft)!important}
body.duo-shell .duo-quick-ai-actions button span{color:var(--duo-primary);font-size:17px}
body.duo-shell .duo-compact-empty{padding:32px 12px;color:var(--duo-muted);text-align:center}
body.duo-shell .duo-compact-empty strong,body.duo-shell .duo-compact-empty span{display:block}.duo-shell .duo-compact-empty span{margin-top:4px;font-size:14px}
@media(max-width:1500px){body.duo-shell .duo-dashboard-workspace{grid-template-columns:minmax(280px,.85fr) minmax(430px,1.4fr)}body.duo-shell .duo-quick-ai{grid-column:1/-1}body.duo-shell .duo-quick-ai-actions{grid-template-columns:repeat(4,1fr)}}
@media(max-width:1100px){body.duo-shell .duo-dashboard-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.duo-shell .duo-dashboard-workspace{grid-template-columns:1fr}body.duo-shell .duo-quick-ai{grid-column:auto}body.duo-shell .duo-quick-ai-actions{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){body.duo-shell .duo-dashboard-hero{align-items:flex-start!important;flex-direction:column!important}body.duo-shell .duo-today{width:100%!important;flex-basis:auto!important}body.duo-shell .duo-dashboard-shortcuts{grid-template-columns:1fr!important}body.duo-shell .duo-quick-ai-actions{grid-template-columns:1fr}}

/* Desktop dashboard: one natural page scroll, never clipped nested lists. */
@media(min-width:901px){
  body.duo-shell.duo-home{height:auto!important;min-height:100dvh!important;overflow-x:hidden!important;overflow-y:auto!important}
  body.duo-shell.duo-home>main:not(.login-main){box-sizing:border-box!important;height:auto!important;min-height:100dvh!important;overflow:visible!important}
  body.duo-shell.duo-home .duo-dashboard{height:auto!important;min-height:0!important;grid-template-rows:auto auto auto!important;overflow:visible!important}
  body.duo-shell.duo-home .duo-dashboard-workspace{height:auto!important;min-height:430px!important;grid-template-columns:minmax(220px,.78fr) minmax(360px,1.42fr) minmax(230px,.8fr)!important;overflow:visible!important}
  body.duo-shell.duo-home .duo-quick-ai{grid-column:auto!important}
  body.duo-shell.duo-home :where(.duo-priority-list,.duo-activity-list,.duo-quick-ai-actions){min-height:0!important;max-height:none!important;overflow:visible!important}
  body.duo-shell.duo-home .duo-priority-list{max-height:none!important}
}

/* Leerer Mail-Lesebereich als kompakte, klar erkennbare Auswahlhilfe. */
.duo-shell .mail-reader-empty{background:#f4f7f5!important}
.duo-shell .mail-empty-reader-card{box-sizing:border-box!important;width:min(430px,calc(100% - 48px))!important;padding:30px 32px!important;gap:9px!important;color:#536274!important;background:#fff!important;border:1px solid #dce4df!important;border-radius:16px!important;box-shadow:0 8px 28px rgba(24,39,34,.07)!important}
.duo-shell .mail-empty-reader-card>span{width:56px!important;height:56px!important;color:#477f08!important;background:#edf5e5!important;border:1px solid #d4e3c7!important;border-radius:15px!important}
.duo-shell .mail-empty-reader-card>span svg{width:27px!important;height:27px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.duo-shell .mail-empty-reader-card h2{margin:8px 0 0!important;font-size:22px!important}
.duo-shell .mail-empty-reader-card p{max-width:340px!important;color:#5f6e7c!important;font-size:15px!important;line-height:1.5!important}
