 .task-mobile-home-surface, .task-mobile-wizard, .task-mobile-wizard-navigation, .task-mobile-final-back, .task-mobile-view-header, .task-mobile-review { display: none; }

@media (max-width: 680px) {
  #tab-todos .task-mobile-nav-command,
  #tab-todos .todo-board-header,
  #tab-todos .todo-create-heading { display: none; }
  #tab-todos .todo-create-panel { padding: 0 12px 82px; background: #f6f8fc; }
  #tab-todos .task-mobile-wizard { position: sticky; top: 0; z-index: 38; margin: 0 -12px 10px; padding: 0; border: 0; border-radius: 0; background: rgba(255,255,255,.98); box-shadow: 0 1px 0 #e7ebf2; }
  #tab-todos .task-mobile-flow-header { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; min-height: 58px; align-items: center; padding: 4px 8px; }
  #tab-todos .task-mobile-flow-header button { display: grid; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; color: #0756d8; background: transparent; place-items: center; font-size: 19px; }
  #tab-todos .task-mobile-flow-header h1 { margin: 0; color: #12234b; font-size: 19px; }
  #tab-todos .task-mobile-wizard-progress { padding: 7px 14px 12px; }
  #tab-todos .todo-quick-template-bar { order: 2; margin: 0 -12px 12px; padding: 0 12px 6px; border: 0; border-radius: 0; background: transparent; }
  #tab-todos .todo-quick-template-bar[hidden] { display: none; }
  #tab-todos .todo-quick-template-bar > span { flex-basis: 100%; color: #123a82; font-size: 11px; text-transform: uppercase; }
  #tab-todos .todo-quick-template-bar button { min-height: 54px; border-radius: 12px; }
  #tab-todos .todo-form-layout { order: 3; }
  #tab-todos .task-mobile-wizard-navigation { position: fixed; z-index: 60; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); left: 0; padding: 10px 14px; border-top: 1px solid #dfe5ef; background: rgba(255,255,255,.98); box-shadow: 0 -8px 22px rgba(15,23,42,.08); }
  #tab-todos .todo-form > .action-row { position: fixed; z-index: 60; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); left: 0; display: none !important; grid-template-columns: .85fr 1.35fr; margin: 0; padding: 10px 14px; }
  #tab-todos .todo-form > .action-row.task-mobile-final-actions { display: grid !important; }
  #tab-todos .todo-form > .action-row.task-mobile-final-actions #saveTodoNewBtn,
  #tab-todos .todo-form > .action-row.task-mobile-final-actions #resetTodoBtn { display: none; }
  #tab-todos .todo-form > .action-row.task-mobile-final-actions .primary-btn { grid-column: 2; grid-row: 1; min-height: 48px; }
  #tab-todos .task-mobile-final-back { display: inline-flex; grid-column: 1; grid-row: 1; min-height: 48px; align-items: center; justify-content: center; gap: 7px; border: 1px solid #cad4e5; border-radius: 11px; color: #344054; background: #fff; font: inherit; font-weight: 800; }
  #tab-todos .task-mobile-review { display: grid; order: 4; gap: 11px; padding-bottom: 16px; }
  #tab-todos .task-mobile-review[hidden] { display: none; }
  #tab-todos .task-mobile-review > header { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 10px; padding: 14px; border: 1px solid #e0e6f0; border-radius: 14px; background: #fff; }
  #tab-todos .task-mobile-review > header > span { display: grid; width: 44px; height: 44px; border-radius: 12px; color: #fff; background: linear-gradient(135deg,#7657f8,#5034da); place-items: center; font-size: 20px; }
  #tab-todos .task-mobile-review h2 { margin: 0; color: #172b55; font-size: 16px; }
  #tab-todos .task-mobile-review header p { margin: 3px 0 0; color: #667085; font-size: 11px; }
  #tab-todos .task-mobile-review article { display: grid; gap: 10px; padding: 13px; border: 1px solid #dfe6f0; border-radius: 14px; background: #fff; }
  #tab-todos .task-mobile-review-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 9px; border-bottom: 1px solid #edf0f5; }
  #tab-todos .task-mobile-review-title > span { display: inline-flex; align-items: center; gap: 7px; color: #163978; font-weight: 850; }
  #tab-todos .task-mobile-review-title button { min-height: 36px; padding: 0 11px; border: 0; border-radius: 9px; color: #0756d8; background: #edf5ff; font: inherit; font-size: 11px; font-weight: 800; }
  #tab-todos .task-mobile-review article > div:not(.task-mobile-review-title) { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 8px; }
  #tab-todos .task-mobile-review article small { color: #667085; font-size: 11px; }
  #tab-todos .task-mobile-review article strong { min-width: 0; color: #243557; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
  #tab-todos .task-mobile-review-note { display: flex; gap: 8px; margin: 0; padding: 11px; border-radius: 11px; color: #1754b5; background: #eaf5ff; font-size: 11px; line-height: 1.4; }
  #tab-todos .task-mobile-view-header { position: sticky; top: 0; z-index: 38; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; min-height: 58px; align-items: center; gap: 7px; margin: -12px -12px 10px; padding: 5px 10px; border-bottom: 1px solid #e3e8f0; background: rgba(255,255,255,.98); }
  #tab-todos .task-mobile-view-header h1 { margin: 0; color: #12234b; font-size: 19px; }
  #tab-todos .task-mobile-view-header button { min-height: 40px; border: 0; border-radius: 10px; color: #0756d8; background: #edf5ff; font: inherit; font-weight: 800; }
  #tab-todos .task-mobile-view-header > button:first-child { width: 40px; padding: 0; background: transparent; font-size: 18px; }
  #tab-todos .task-mobile-new-fab { display: none; }
  #tab-todo-home .task-mobile-nav, #tab-todo-home .todo-home-shell { display: none; }
  #tab-todo-home .module-home-main-pane { padding: 0; background: #f4f7fc; }
  #tab-todo-home .task-mobile-home-surface { display: block; min-height: calc(100dvh - 58px); padding: 14px 14px calc(24px + env(safe-area-inset-bottom)); }
  .task-mobile-home-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 58px; min-height: 176px; align-items: end; overflow: hidden; padding: 50px 18px 20px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #244fd1, #183a9c); box-shadow: 0 12px 28px rgba(31, 69, 174, .24); }
  .task-mobile-home-hero::after { position: absolute; right: -35px; top: -45px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.1); content: ""; }
  .task-mobile-home-back { position: absolute; z-index: 2; top: 12px; left: 12px; display: grid; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); place-items: center; }
  .task-mobile-home-hero div { position: relative; z-index: 1; min-width: 0; }
  .task-mobile-home-hero div > span { font-size: 10px; font-weight: 850; letter-spacing: .09em; opacity: .82; }
  .task-mobile-home-hero h1 { margin: 6px 0 5px; font-size: 25px; line-height: 1.15; }
  .task-mobile-home-hero p { margin: 0; max-width: 240px; font-size: 12px; line-height: 1.4; opacity: .9; }
  .task-mobile-home-icon { position: relative; z-index: 1; display: grid; width: 54px; height: 54px; border-radius: 16px; color: #244fd1; background: #fff; place-items: center; font-size: 26px; }
  .task-mobile-home-actions { display: grid; gap: 10px; margin-top: 14px; }
  .task-mobile-home-actions > button { display: grid; grid-template-columns: 46px minmax(0, 1fr) 20px; min-height: 78px; align-items: center; gap: 11px; width: 100%; padding: 12px; border: 1px solid #dfe6f2; border-radius: 14px; color: #172033; background: #fff; text-align: left; box-shadow: 0 7px 18px rgba(30,50,95,.06); }
  .task-mobile-home-actions > button > i:first-child { display: grid; width: 46px; height: 46px; border-radius: 13px; color: #2458ed; background: #edf3ff; place-items: center; font-size: 20px; }
  .task-mobile-home-actions > button.is-primary > i:first-child { color: #087443; background: #e9f9f0; }
  .task-mobile-home-actions > button.is-due > i:first-child { color: #b54708; background: #fff4e5; }
  .task-mobile-home-actions > button.is-done > i:first-child { color: #067647; background: #ecfdf3; }
  .task-mobile-home-actions strong, .task-mobile-home-actions small { display: block; }
  .task-mobile-home-actions strong { font-size: 14px; }
  .task-mobile-home-actions small { margin-top: 4px; color: #667085; font-size: 11px; line-height: 1.35; }
  .task-mobile-home-actions > button > i:last-child { color: #98a2b3; }
  #tab-todos { width: 100%; max-width: 100%; margin: 0; padding: 0; overflow-x: clip; }
  #tab-todos .todo-board-shell { width: 100%; max-width: 100%; gap: 0; padding: 0; background: #f5f7fb; }
  #tab-todos .task-mobile-nav-command { position: sticky; top: 0; z-index: 40; margin: 0; border-width: 0 0 1px; border-radius: 0; }
  #tab-todos .todo-board-header { padding: 12px 14px; border-radius: 0; background: #fff; }
  #tab-todos .todo-board-title-wrap { width: 100%; }
  #tab-todos .todo-board-actions { display: none; }
  #tab-todos .todo-create-panel, #tab-todos .todo-view-panel { width: 100%; max-width: 100%; margin: 0; padding: 12px; border: 0; border-radius: 0; background: #f5f7fb; box-shadow: none; }
  #tab-todos .todo-create-heading { margin: 0 0 10px; padding: 12px; border: 1px solid #e1e7f0; border-radius: 13px; background: #fff; }
  #tab-todos .todo-create-heading h3 { font-size: 18px; }
  #tab-todos .todo-form { width: 100%; max-width: 100%; gap: 10px; }
  #tab-todos .task-mobile-wizard { display: block; padding: 12px; border: 1px solid #e1e7f0; border-radius: 13px; background: #fff; }
  #tab-todos .task-mobile-wizard-progress { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); }
  #tab-todos .task-mobile-wizard-progress::before { position: absolute; top: 15px; right: 16%; left: 16%; height: 2px; background: #dce3ef; content: ""; }
  #tab-todos .task-mobile-wizard-progress span { position: relative; z-index: 1; display: grid; justify-items: center; gap: 5px; color: #98a2b3; font-size: 10px; }
  #tab-todos .task-mobile-wizard-progress i { display: grid; width: 32px; height: 32px; border: 2px solid #dce3ef; border-radius: 50%; background: #fff; place-items: center; font-style: normal; font-weight: 850; }
  #tab-todos .task-mobile-wizard-progress .is-active { color: #2458ed; }
  #tab-todos .task-mobile-wizard-progress .is-active i { border-color: #2458ed; color: #fff; background: #2458ed; }
  #tab-todos .task-mobile-wizard-progress .is-complete i { border-color: #079455; color: #079455; }
  #tab-todos .task-mobile-wizard-navigation { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; padding: 2px 0; }
  #tab-todos .task-mobile-wizard-navigation[hidden] { display: none; }
  #tab-todos .task-mobile-wizard-navigation button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 7px; border: 1px solid #cfd8e7; border-radius: 11px; color: #344054; background: #fff; font: inherit; font-weight: 800; }
  #tab-todos .task-mobile-wizard-navigation button:last-child { border-color: #2458ed; color: #fff; background: #2458ed; }
  #tab-todos .task-mobile-wizard-navigation button:disabled { opacity: .45; }
  #tab-todos .todo-quick-template-bar { margin: 0; padding: 10px; border-radius: 13px; background: #fff; }
  #tab-todos .todo-form-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: 100%; }
  #tab-todos .todo-form-section, #tab-todos .todo-form-section-wide { grid-column: 1; width: 100%; min-width: 0; padding: 14px 12px; border-radius: 13px; }
  #tab-todos .todo-form-section-head { grid-template-columns: 36px minmax(0, 1fr); gap: 9px; margin-bottom: 12px; }
  #tab-todos .todo-form-section-head > span { width: 36px; height: 36px; }
  #tab-todos .todo-form-section-head h4 { font-size: 15px; }
  #tab-todos .todo-form-section-head p { font-size: 11px; line-height: 1.35; }
  #tab-todos .todo-section-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; }
  #tab-todos .todo-section-grid > *, #tab-todos .todo-section-span-2 { grid-column: 1 !important; width: 100%; min-width: 0; }
  #tab-todos .todo-section-grid input, #tab-todos .todo-section-grid select, #tab-todos .todo-section-grid textarea, #tab-todos .todo-estimated-time-field input, #tab-todos .todo-estimated-time-field select { width: 100%; min-width: 0; max-width: 100%; font-size: 16px; }
  #tab-todos .todo-section-grid input, #tab-todos .todo-section-grid select, #tab-todos .todo-estimated-time-field input, #tab-todos .todo-estimated-time-field select { min-height: 48px; }
  #tab-todos .todo-customer-ledger-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
  #tab-todos .todo-customer-ledger-head .todo-inline-action { width: auto; min-height: 38px; padding: 0 10px; font-size: 11px; }
  #tab-todos .todo-priority-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #tab-todos .todo-priority-option { width: 100%; min-height: 44px; }
  #tab-todos .todo-form-section-wide .todo-status-pill-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #tab-todos .todo-form-section-wide .todo-status-pill { width: 100%; min-width: 0; min-height: 44px; }
  #tab-todos .todo-form-section-wide .todo-status-pill:last-child { grid-column: 1 / -1; }
  #tab-todos .todo-checklist-input-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #tab-todos .todo-checklist-input-row input { min-height: 48px; font-size: 16px; }
  #tab-todos .todo-checklist-input-row .secondary-btn { width: 100%; min-height: 44px; justify-content: center; }
  #tab-todos .todo-checklist-row { grid-template-columns: 28px minmax(0, 1fr) 40px; width: 100%; }
  #tab-todos .todo-form > .action-row { position: sticky; z-index: 30; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 -12px -12px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #e1e7f0; background: rgba(255,255,255,.97); box-shadow: 0 -10px 24px rgba(15,23,42,.09); }
  #tab-todos .todo-form > .action-row .primary-btn { grid-column: 1 / -1; min-height: 50px; }
  #tab-todos .todo-form > .action-row .secondary-btn { min-height: 44px; }
  #tab-todos .todo-filter-surface { width: 100%; padding: 12px; border-radius: 13px; }
  #tab-todos .todo-search-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
  #tab-todos .todo-search-box, #tab-todos .todo-status-select, #tab-todos .todo-date-filter { grid-column: 1; width: 100%; min-width: 0; }
  #tab-todos .todo-search-box input, #tab-todos .todo-status-select select, #tab-todos .todo-date-filter input { width: 100%; min-width: 0; font-size: 16px; }
  #tab-todos .todo-quick-filters { margin-inline: -12px; padding: 2px 12px 5px; }
  #tab-todos .todo-stats-strip { margin-inline: -12px; padding: 2px 12px 5px; }
  #tab-todos .todo-stat-card { flex-basis: min(68vw, 230px); }
  #tab-todos .todo-list-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 12px 0 8px; }
  #tab-todos .todo-sort-control { grid-template-columns: 58px minmax(0, 1fr); }
  #tab-todos .todo-sort-control select { min-height: 44px; font-size: 16px; }
  #tab-todos .todo-task-group { width: 100%; min-width: 0; margin: 0 0 12px; }
  #tab-todos .todo-task-group-heading { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 10px; }
  #tab-todos .todo-task-group-heading small { white-space: normal; }
  #tab-todos .todo-task-list { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  #tab-todos .todo-task-card.task-mobile-compact { overflow: hidden; border-radius: 15px; box-shadow: 0 8px 22px rgba(23, 43, 86, 0.08); }
  #tab-todos .todo-card-header { display: grid; grid-template-columns: 42px minmax(0, 1fr) 38px; align-items: start; padding: 12px 11px 9px 16px; }
  #tab-todos .todo-card-title > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
  #tab-todos .todo-card-title h4 { width: 100%; margin: 0; font-size: 15px; line-height: 1.3; }
  #tab-todos .todo-status-badge { justify-self: start; }
  #tab-todos .todo-card-title p { margin-top: 5px; font-size: 12px; line-height: 1.4; }
  #tab-todos .todo-card-summary-row { gap: 7px; }
  #tab-todos .todo-summary-item { min-width: 0; padding: 9px; }
  #tab-todos .todo-summary-item strong, #tab-todos .todo-summary-item small { overflow-wrap: anywhere; }
  #tab-todos .todo-card-actions { padding: 9px 11px 12px 16px; }
  #tab-todos .todo-card-status-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #tab-todos .task-mobile-compact .todo-card-secondary-row, #tab-todos .task-mobile-compact .todo-card-checklist-panel, #tab-todos .task-mobile-compact .todo-card-staff-update, #tab-todos .task-mobile-compact .todo-repair-approval, #tab-todos .task-mobile-compact .todo-card-secondary-actions { display: none; }
  #tab-todos .task-mobile-compact.task-mobile-expanded .todo-card-secondary-row, #tab-todos .task-mobile-compact.task-mobile-expanded .todo-card-staff-update, #tab-todos .task-mobile-compact.task-mobile-expanded .todo-repair-approval, #tab-todos .task-mobile-compact.task-mobile-expanded .todo-card-secondary-actions { display: flex; }
  #tab-todos .task-mobile-compact.task-mobile-expanded .todo-card-checklist-panel { display: block; }
  #tab-todos .task-mobile-compact.task-mobile-expanded .todo-card-secondary-row, #tab-todos .task-mobile-compact.task-mobile-expanded .todo-card-secondary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #tab-todos .task-mobile-compact .todo-card-summary-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 0.85rem 0.8rem 1.05rem; }
  #tab-todos .task-mobile-compact .todo-card-summary-row > :nth-child(n+3) { display: none; }
  #tab-todos .task-mobile-compact.task-mobile-expanded .todo-card-summary-row > :nth-child(n+3) { display: grid; }
  #tab-todos .task-mobile-detail-toggle { grid-column: 1 / -1; display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border: 1px solid #dbe4f5; border-radius: 11px; color: #1749ad; background: #f4f7fd; font: inherit; text-align: left; }
  #tab-todos .task-mobile-detail-toggle span { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; } #tab-todos .task-mobile-detail-toggle small { color: #667085; font-size: 10px; }
  #tab-todos .task-mobile-new-fab { position: fixed; z-index: 32; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); display: inline-flex; min-height: 50px; align-items: center; gap: 8px; padding: 0 18px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #2458ed, #1745d2); box-shadow: 0 12px 26px rgba(36, 88, 237, 0.32); font: inherit; font-weight: 850; }
  .task-mobile-success-overlay { position: fixed; z-index: 10020; inset: 0; display: grid; padding: 14px; overflow-y: auto; background: #f4f7fc; }
  .task-mobile-success { position: relative; display: grid; align-content: center; gap: 14px; min-height: calc(100dvh - 28px); padding: 28px 18px calc(78px + env(safe-area-inset-bottom)); border-radius: 18px; background: #fff; text-align: center; }
  .task-mobile-success-close { position: absolute; top: 10px; right: 10px; display: grid; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; color: #667085; background: #f2f4f7; place-items: center; }
  .task-mobile-success-icon { display: grid; width: 64px; height: 64px; margin: 0 auto 4px; border-radius: 50%; color: #fff; background: #079455; place-items: center; font-size: 32px; }
  .task-mobile-success h1 { margin: 0; color: #087443; font-size: 23px; overflow-wrap: anywhere; }
  .task-mobile-success > p { margin: 0; color: #667085; font-size: 13px; line-height: 1.5; }
  .task-mobile-success > section { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
  .task-mobile-success > section > div { min-width: 0; padding: 12px; border: 1px solid #dfe8e4; border-radius: 11px; background: #f4fbf7; }
  .task-mobile-success > section small, .task-mobile-success > section strong { display: block; }
  .task-mobile-success > section small { color: #667085; font-size: 10px; }
  .task-mobile-success > section strong { margin-top: 4px; color: #172033; font-size: 12px; overflow-wrap: anywhere; }
  .task-mobile-success > footer { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 8px; }
  .task-mobile-success > footer button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 7px; border: 1px solid #1267ee; border-radius: 11px; color: #0756d8; background: #fff; font: inherit; font-weight: 800; }
  .task-mobile-success > footer button.is-primary { color: #fff; background: #1267ee; }
  .task-mobile-success > footer button:last-child { grid-column: 1 / -1; border-color: transparent; color: #475467; background: transparent; }
}

@media (max-width: 380px) {
  #tab-todos .todo-customer-ledger-head { grid-template-columns: minmax(0, 1fr); }
  #tab-todos .todo-customer-ledger-head .todo-inline-action { width: 100%; }
  #tab-todos .task-mobile-detail-toggle small { display: none; }
}

/* Native-style task list shell. All rules stay isolated to mobile/APK widths. */
@media (max-width: 680px) {
  #tab-todos .todo-view-panel { padding: 0 12px 84px; background: #f7f9fc; }
  #tab-todos .task-mobile-view-header { min-height: 76px; margin: 0 -12px; padding: 9px 12px; border: 0; color: #fff; background: linear-gradient(135deg, #2473e8, #1685ed); box-shadow: 0 4px 14px rgba(15, 91, 190, .22); }
  #tab-todos .task-mobile-view-header > button:first-child { color: #fff; }
  #tab-todos .task-mobile-view-header > div { min-width: 0; }
  #tab-todos .task-mobile-view-header h1 { color: #fff; font-size: 20px; line-height: 1.15; }
  #tab-todos .task-mobile-view-header p { margin: 3px 0 0; color: rgba(255,255,255,.9); font-size: 11px; }
  #tab-todos .task-mobile-view-header .task-mobile-view-new { display: inline-flex; min-height: 42px; align-items: center; gap: 6px; padding: 0 12px; color: #0756c9; background: #fff; box-shadow: 0 5px 13px rgba(10,62,139,.16); white-space: nowrap; }

  #tab-todos .task-mobile-status-summary { display: flex; gap: 8px; margin: 0 -12px; padding: 14px 12px 10px; overflow-x: auto; scrollbar-width: none; }
  #tab-todos .task-mobile-status-summary::-webkit-scrollbar { display: none; }
  #tab-todos .task-mobile-status-summary button { position: relative; flex: 0 0 126px; min-height: 78px; overflow: hidden; padding: 13px 12px; border: 1px solid #dce8f8; border-radius: 13px; color: #18233e; background: linear-gradient(135deg,#f6faff,#e8f3ff); font: inherit; text-align: left; }
  #tab-todos .task-mobile-status-summary button:nth-child(2) { border-color: #f8e3af; background: linear-gradient(135deg,#fffaf0,#fff0c9); }
  #tab-todos .task-mobile-status-summary button:nth-child(3) { border-color: #eadcfb; background: linear-gradient(135deg,#fbf7ff,#f0e4ff); }
  #tab-todos .task-mobile-status-summary button:nth-child(4) { border-color: #f7d9df; background: linear-gradient(135deg,#fff8f9,#ffe9ed); }
  #tab-todos .task-mobile-status-summary button:nth-child(5) { border-color: #d2f1e2; background: linear-gradient(135deg,#f1fff8,#dcf8ea); }
  #tab-todos .task-mobile-status-summary strong, #tab-todos .task-mobile-status-summary span { display: block; }
  #tab-todos .task-mobile-status-summary strong { font-size: 20px; line-height: 1; }
  #tab-todos .task-mobile-status-summary span { margin-top: 7px; color: #44516c; font-size: 12px; }
  #tab-todos .task-mobile-status-summary i { position: absolute; right: 12px; top: 13px; color: #3187e9; font-size: 21px; }
  #tab-todos .task-mobile-status-summary button:nth-child(2) i { color: #e6a700; }
  #tab-todos .task-mobile-status-summary button:nth-child(3) i { color: #8b52e8; }
  #tab-todos .task-mobile-status-summary button:nth-child(4) i { color: #e34b68; }
  #tab-todos .task-mobile-status-summary button:nth-child(5) i { color: #37ae7a; }

  #tab-todos .todo-filter-surface { margin-top: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
  #tab-todos .todo-search-grid { grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  #tab-todos .todo-search-box { grid-column: 1; min-height: 48px; border-radius: 12px; background: #fff; }
  #tab-todos .task-mobile-filter-toggle { grid-column: 2; display: inline-flex; min-width: 98px; min-height: 48px; align-items: center; justify-content: center; gap: 7px; padding: 0 10px; border: 1px solid #d7dfeb; border-radius: 12px; color: #25334f; background: #fff; font: inherit; font-weight: 750; }
  #tab-todos .task-mobile-filter-toggle i:last-child { font-size: 10px; transition: transform .18s ease; }
  #tab-todos.task-mobile-filters-open .task-mobile-filter-toggle i:last-child,
  #tab-todos .todo-view-panel.task-mobile-filters-open .task-mobile-filter-toggle i:last-child { transform: rotate(180deg); }
  #tab-todos .todo-status-select, #tab-todos .todo-date-filter { display: none; grid-column: 1 / -1; padding: 10px; border: 1px solid #dfe5ef; border-radius: 11px; background: #fff; }
  #tab-todos .todo-view-panel.task-mobile-filters-open .todo-status-select,
  #tab-todos .todo-view-panel.task-mobile-filters-open .todo-date-filter { display: grid; }
  #tab-todos .todo-quick-filters { gap: 8px; margin: 10px -12px 0; padding: 0 12px 9px; }
  #tab-todos .todo-filter-chip { min-height: 42px; padding: 0 15px; border-radius: 12px; background: #fff; white-space: nowrap; }
  #tab-todos .todo-filter-chip[data-todo-view-filter="all"]::after,
  #tab-todos .todo-filter-chip[data-todo-view-filter="overdue"]::after { display: grid; min-width: 23px; height: 23px; margin-left: 3px; border-radius: 50%; background: #e8edf5; content: var(--task-mobile-count, "0"); place-items: center; font-size: 10px; font-weight: 850; }
  #tab-todos .todo-filter-chip.active::after { color: #fff; background: #2a75df; }
  #tab-todos .todo-stats-strip { display: none; }
  #tab-todos .todo-list-heading { margin: 3px 0 9px; }
  #tab-todos .todo-list-heading h3 { font-size: 15px; }
  #tab-todos .todo-sort-control { display: none; }
  #tab-todos .todo-view-panel.task-mobile-filters-open .todo-sort-control { display: grid; padding: 10px; border: 1px solid #dfe5ef; border-radius: 11px; background: #fff; }
  #tab-todos .todo-task-group-heading { display: none; }
  #tab-todos .todo-task-group { margin-bottom: 8px; }

  #tab-todos .todo-task-card.task-mobile-compact { position: relative; margin-bottom: 10px; border: 1px solid #dce3ed; border-radius: 13px; background: #fff; box-shadow: 0 4px 13px rgba(31,52,92,.06); }
  #tab-todos .todo-task-card.task-mobile-compact .todo-task-accent { width: 5px; }
  #tab-todos .todo-task-card.task-mobile-compact .todo-card-header { grid-template-columns: minmax(0,1fr) 36px; padding: 13px 9px 7px 17px; }
  #tab-todos .todo-task-card.task-mobile-compact .todo-card-main-icon { display: none; }
  #tab-todos .todo-task-card.task-mobile-compact .todo-card-title > div { grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 8px; }
  #tab-todos .todo-task-card.task-mobile-compact .todo-card-title h4 { font-size: 15px; line-height: 1.3; }
  #tab-todos .todo-task-card.task-mobile-compact .todo-card-title p { display: -webkit-box; overflow: hidden; margin: 4px 0 0; color: #61708c; font-size: 12px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  #tab-todos .todo-task-card.task-mobile-compact .todo-status-badge { min-height: 28px; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
  #tab-todos .todo-task-card.task-mobile-compact .todo-card-summary-row { display: flex; flex-wrap: wrap; gap: 5px 12px; padding: 2px 12px 6px 17px; }
  #tab-todos .todo-task-card.task-mobile-compact .todo-summary-item { display: inline-flex; width: auto; min-height: 24px; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; }
  #tab-todos .todo-task-card.task-mobile-compact .todo-summary-item > i { font-size: 14px; }
  #tab-todos .todo-task-card.task-mobile-compact .todo-summary-item small { display: none; }
  #tab-todos .todo-task-card.task-mobile-compact .todo-summary-item strong { color: #53617b; font-size: 11px; font-weight: 650; }
  #tab-todos .todo-task-card.task-mobile-compact .todo-card-summary-row > :nth-child(1),
  #tab-todos .todo-task-card.task-mobile-compact .todo-card-summary-row > :nth-child(3) { display: inline-flex; }
  #tab-todos .todo-task-card.task-mobile-compact .todo-card-summary-row > :nth-child(2),
  #tab-todos .todo-task-card.task-mobile-compact .todo-card-summary-row > :nth-child(4) { display: none; }
  #tab-todos .todo-task-card.task-mobile-compact .todo-card-secondary-row { display: flex; flex-wrap: wrap; gap: 5px 12px; padding: 0 12px 8px 17px; }
  #tab-todos .todo-task-card.task-mobile-compact .todo-card-secondary-row > * { display: none; }
  #tab-todos .todo-task-card.task-mobile-compact .todo-card-secondary-row > :nth-child(2),
  #tab-todos .todo-task-card.task-mobile-compact .todo-card-secondary-row > :nth-child(3) { display: inline-flex; padding: 0; border: 0; color: #53617b; background: transparent; font-size: 11px; }
  #tab-todos .todo-task-card.task-mobile-compact .todo-card-actions { padding: 0 12px 10px 17px; }
  #tab-todos .todo-task-card.task-mobile-compact:not(.task-mobile-expanded) .todo-card-status-actions { display: none; }
  #tab-todos .todo-task-card.task-mobile-compact .task-mobile-detail-toggle { min-height: 36px; padding: 5px 9px; border: 0; color: #215cba; background: #f3f7fd; }
  #tab-todos .todo-task-card.task-mobile-compact .task-mobile-detail-toggle small { display: none; }
  #tab-todos .todo-task-card.task-mobile-overdue { border-color: #ffd0d8; }
  #tab-todos .todo-task-card.task-mobile-compact.task-mobile-expanded .todo-card-summary-row > * { display: inline-flex; }
  #tab-todos .todo-task-card.task-mobile-compact.task-mobile-expanded .todo-card-secondary-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; padding: 9px 12px 10px 17px; border-top: 1px solid #edf1f6; }
  #tab-todos .todo-task-card.task-mobile-compact.task-mobile-expanded .todo-card-secondary-row > * { display: inline-flex; min-width: 0; padding: 7px; border: 1px solid #e2e8f1; border-radius: 8px; background: #f8fafd; overflow-wrap: anywhere; }
  #tab-todos .todo-task-card.task-mobile-compact.task-mobile-expanded .todo-card-checklist-panel { display: grid; margin-top: 0; padding: 10px 12px 11px 17px; }
  #tab-todos .todo-task-card.task-mobile-compact.task-mobile-expanded .todo-card-status-actions,
  #tab-todos .todo-task-card.task-mobile-compact.task-mobile-expanded .todo-card-secondary-actions { display: grid; }
  #tab-todos .todo-task-card.task-mobile-compact.task-mobile-expanded .task-mobile-detail-toggle { border: 1px solid #cfe0fa; background: #eaf3ff; }
}
