.mw-home,.mw-bottom {display:none;}
@media(max-width:700px){
 #appScreen .mw-home .mw-fiscal-summary{grid-column:1/-1;background:linear-gradient(130deg,#102444,#082c70);border-radius:14px;padding:18px;color:#fff;display:grid;grid-template-columns:42px 1fr;gap:5px 12px;align-items:center;}
 .mw-fiscal-summary>span{grid-row:1/4;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#ffffff18;color:#d7e8ff;}
 #appScreen .mw-home .mw-fiscal-summary h3{font-size:16px!important;color:#fff!important;margin:0!important;}
 #appScreen .mw-home .mw-fiscal-summary p{display:flex;align-items:center;gap:6px;font-size:12px!important;color:#fff!important;margin:0!important;}
 .mw-fiscal-summary small{font-size:10px;color:#c6d5ed;}
 #appScreen #dashboardView .mw-home .mw-indicator{align-items:center!important;text-align:center!important;gap:5px!important;min-height:170px!important;border-radius:12px!important;}
 #appScreen #dashboardView .mw-indicator-icon{width:40px;height:40px;border-radius:50%;margin-bottom:4px;}
 #appScreen #dashboardView .mw-indicator>b{font-size:11px;color:var(--home-muted,#65748b);font-weight:500;}
 #appScreen #dashboardView .mw-indicator-state{font-size:17px;font-weight:750;}
 #appScreen #dashboardView .mw-indicator-state>i{display:none;}
 #appScreen #dashboardView .mw-indicator-action{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--home-blue,#0865e8);margin-top:auto;padding-top:5px;font-weight:650;}
 .mw-indicator-action svg{width:13px;height:13px;}
 #appScreen #dashboardView .mw-home .mw-indicator[data-mw-action="module:declarations"]{grid-column:1/-1;min-height:150px!important;}
 #appScreen #dashboardView .mw-indicator.danger{background:linear-gradient(180deg,#fff4f5,var(--home-surface,#fff))!important;}
 html[data-theme=dark] #appScreen #dashboardView .mw-indicator.danger{background:linear-gradient(180deg,#34202c,var(--home-surface))!important;}
}
@media(max-width:700px){
  html:has(#appScreen.mobile-workspace-enabled) {--mobile-header-height:64px;}
  #appScreen.mobile-workspace-enabled #dashboardView>:not(.mw-home),
  #appScreen.mobile-workspace-enabled .mobile-quickbar,
  #appScreen.mobile-workspace-enabled [data-mobile-firm-root] {display:none!important;}
  #appScreen.mobile-workspace-enabled #dashboardView>.mw-home {display:block!important;width:100%;min-width:0;padding:12px 16px 24px;box-sizing:border-box;color:var(--home-text,#16243c);}
  #appScreen.mobile-workspace-enabled #dashboardView {padding:0!important;}
  #appScreen.subscription-locked :is(.mw-bottom,.mw-home) {display:none!important;}
  #appScreen.mobile-workspace-enabled .shell #liquidTopNav.liquid-topnav {height:calc(64px + env(safe-area-inset-top))!important;grid-template-columns:minmax(0,1fr) 44px 44px!important;grid-template-rows:44px!important;gap:8px!important;border-bottom:1px solid var(--home-border,#dce4ef)!important;background:var(--home-surface,#fff)!important;}
  #appScreen.mobile-workspace-enabled #liquidTopNav :is(.liquid-menu-toggle,.global-top-search,.oa-launch,.workspace-breadcrumb,#workspacePeriod) {display:none!important;}
  #appScreen.mobile-workspace-enabled #liquidTopNav #globalTaxpayer {grid-area:1/1!important;}
  #appScreen.mobile-workspace-enabled #liquidTopNav #globalTaxpayerToggle {background:var(--home-surface,#fff)!important;border-color:var(--home-border,#dce4ef)!important;color:var(--home-text,#16243c)!important;border-radius:12px!important;}
  #appScreen.mobile-workspace-enabled #liquidTopNav #globalTaxpayerToggle :is(b,small,i) {color:inherit!important;}
  #appScreen.mobile-workspace-enabled #liquidTopNav .liquid-account-short {grid-area:1/2!important;width:44px!important;height:44px!important;min-height:44px!important;min-width:44px!important;margin:0!important;padding:0!important;}
  body:has(#appScreen.mobile-workspace-enabled) .user-notification-center .notification-bell {width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;}
  #appScreen.mobile-workspace-enabled #globalTaxpayerMenu :is(.workspace-firm-option,.workspace-change-option,[data-add-global-company],[data-manage-global-company]) {display:none!important;}
  #appScreen.mobile-workspace-enabled #globalTaxpayerMenu {max-width:calc(100vw - 24px)!important;max-height:70dvh!important;overflow-y:auto!important;}
  #appScreen.mobile-workspace-enabled .shell-main,#appScreen.mobile-workspace-enabled.workspace-modern .shell .shell-main {padding-top:calc(76px + env(safe-area-inset-top))!important;padding-bottom:calc(88px + env(safe-area-inset-bottom))!important;}
  body:has(#appScreen.mobile-workspace-enabled) #toast.toast {inset:auto 16px calc(88px + env(safe-area-inset-bottom)) 16px!important;transform:none!important;width:auto!important;max-width:none!important;pointer-events:none!important;}
  #appScreen.mobile-workspace-enabled .mw-bottom {display:grid!important;grid-template-columns:repeat(var(--mw-tabs,5),minmax(0,1fr));position:fixed!important;inset:auto 0 0!important;z-index:270;height:calc(76px + env(safe-area-inset-bottom));padding:6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:var(--home-surface,#fff);border-top:1px solid var(--home-border,#dce4ef);box-sizing:border-box;gap:2px;}
  #appScreen.mobile-workspace-enabled .mw-bottom>button {display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-width:0!important;width:100%!important;height:62px!important;min-height:62px!important;padding:6px 1px!important;margin:0!important;border:0!important;border-radius:12px!important;aspect-ratio:auto!important;background:transparent!important;box-shadow:none!important;color:var(--home-muted,#65748b)!important;font:550 10px/1.25 Inter,system-ui,sans-serif!important;text-transform:none!important;white-space:normal!important;}
  #appScreen.mobile-workspace-enabled .mw-bottom>button[aria-current] {color:var(--home-blue,#0865e8)!important;background:var(--global-blue-soft,#edf4ff)!important;}
  .mw-bottom svg {width:23px;height:23px;flex:none;}
  #appScreen .mw-home :is(h1,h2,h3,p) {margin:0;}
  #appScreen .mw-home .mw-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px;}
  #appScreen .mw-home .mw-heading small {font-size:10px;letter-spacing:.09em;color:var(--home-muted,#65748b);}
  #appScreen .mw-home h1 {font-size:25px!important;line-height:1.25!important;margin:5px 0!important;}
  #appScreen .mw-home .mw-heading p {font-size:12px;color:var(--home-muted,#65748b);}
  #appScreen .mw-home button {box-sizing:border-box!important;min-width:0!important;margin:0!important;box-shadow:none!important;text-transform:none!important;letter-spacing:normal!important;white-space:normal!important;font-family:Inter,system-ui,sans-serif!important;color:inherit;}
  #appScreen .mw-home .mw-refresh,#appScreen .mw-certificate header>button {display:grid!important;place-items:center!important;width:44px!important;height:44px!important;min-height:44px!important;flex:none;padding:10px!important;border:1px solid var(--home-border,#dce4ef)!important;border-radius:12px!important;background:var(--home-surface,#fff)!important;aspect-ratio:auto!important;}
  .mw-home svg {width:22px;height:22px;flex:none;}
  .mw-section-heading {display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:20px 0 12px;}
  #appScreen .mw-section-heading h2 {font-size:15px!important;line-height:1.4!important;}
  .mw-section-heading>span {font-size:10px;color:var(--home-muted,#65748b);}
  .mw-indicators {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  #appScreen #dashboardView .mw-indicator {display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:8px!important;width:100%!important;min-height:162px!important;height:auto!important;padding:16px 12px!important;border:1px solid var(--home-border,#dce4ef)!important;border-radius:16px!important;background:var(--home-surface,#fff)!important;text-align:left!important;}
  .mw-indicator-icon {display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--home-bg,#f4f7fb);color:var(--home-muted,#65748b);}
  .mw-indicator b {font-size:14px;}
  .mw-indicator-state {display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;}
  .mw-indicator-state>i {width:7px;height:7px;border-radius:50%;background:#8292a9;flex:none;}
  .mw-indicator.good .mw-indicator-state>i {background:#15965b;}.mw-indicator.warning .mw-indicator-state>i {background:#d98a05;}.mw-indicator.danger .mw-indicator-state>i {background:#de3a45;}
  .mw-indicator.good .mw-indicator-icon {background:#eaf8f0;color:#137c49;}.mw-indicator.warning .mw-indicator-icon {background:#fff5e4;color:#9b6507;}.mw-indicator.danger .mw-indicator-icon {background:#fff0f1;color:#bd293b;}
  .mw-indicator small {font-size:10px;line-height:1.5;color:var(--home-muted,#65748b);overflow-wrap:anywhere;}
  .mw-shortcuts,.mw-consultations {display:grid;gap:10px;}
  #appScreen #dashboardView .mw-action {display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;width:100%!important;min-height:80px!important;height:auto!important;padding:16px!important;border:1px solid var(--home-border,#dce4ef)!important;border-radius:14px!important;background:var(--home-surface,#fff)!important;text-align:left!important;}
  .mw-action>svg:first-child {color:var(--home-blue,#0865e8);}.mw-action>svg:last-child {width:16px;height:16px;color:var(--home-muted,#65748b);}
  .mw-action>span {flex:1;min-width:0;}.mw-action b {display:block;font-size:14px;}.mw-action small {display:block;font-size:11px;line-height:1.5;margin-top:4px;color:var(--home-muted,#65748b);}
  #appScreen #dashboardView .mw-more-link {display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;width:100%!important;height:48px!important;min-height:48px!important;margin-top:20px!important;padding:10px!important;background:transparent!important;border:0!important;border-radius:10px!important;font-size:12px!important;color:var(--home-muted,#65748b)!important;}
  .mw-empty,.mw-certificate {padding:20px 16px;border:1px solid var(--home-border,#dce4ef);border-radius:16px;background:var(--home-surface,#fff);}
  .mw-empty {display:grid;justify-items:start;gap:12px;}.mw-empty>svg {width:36px;height:36px;color:var(--home-blue,#0865e8);}
  #appScreen .mw-empty h2 {font-size:20px!important;}.mw-empty p,.mw-note {font-size:13px;line-height:1.6;color:var(--home-muted,#65748b);}
  #appScreen .mw-empty button {height:48px!important;min-height:48px!important;padding:10px 16px!important;background:var(--home-blue,#0865e8)!important;color:white!important;border:0!important;border-radius:12px!important;font-size:13px!important;}
  .mw-certificate {margin-top:16px;}.mw-certificate header,.mw-certificate header>span {display:flex;align-items:center;gap:10px;}.mw-certificate header>span {flex:1;min-width:0;}
  #appScreen .mw-certificate h3 {font-size:16px!important;line-height:1.4!important;}.mw-certificate p {font-size:13px;margin-top:12px!important;}.mw-certificate dl {display:grid;gap:12px;}.mw-certificate dl>div {display:flex;justify-content:space-between;gap:12px;font-size:12px;}.mw-certificate dt {color:var(--home-muted,#65748b);}.mw-certificate dd {margin:0;text-align:right;font-weight:600;}.mw-certificate small {font-size:11px;line-height:1.6;color:var(--home-muted,#65748b);}
  /* Billing keeps its own four sections as local tabs, above the persistent app bar. */
  #appScreen.mobile-workspace-enabled #billingWorkspace .bm-app {display:flex;flex-direction:column;padding-bottom:16px!important;}
  #appScreen.mobile-workspace-enabled #billingWorkspace .bm-bottom {position:static!important;inset:auto!important;order:1!important;width:100%!important;height:auto!important;min-height:60px!important;padding:6px 12px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;border:0!important;}
  #appScreen.mobile-workspace-enabled #billingWorkspace .bm-top {order:0;}#appScreen.mobile-workspace-enabled #billingWorkspace .bm-body {order:2;}
  #appScreen.mobile-workspace-enabled #billingWorkspace .bm-bottom button {height:56px!important;min-height:56px!important;font-size:10px!important;gap:4px!important;}
  html[data-theme=dark] .mw-indicator.good .mw-indicator-icon {background:#193d30;color:#83e2b0;}html[data-theme=dark] .mw-indicator.warning .mw-indicator-icon {background:#47371d;color:#f4c575;}html[data-theme=dark] .mw-indicator.danger .mw-indicator-icon {background:#48232e;color:#ff9eac;}
}
dialog.mw-more-sheet {box-sizing:border-box;width:min(600px,100vw);max-width:100vw;max-height:85dvh;margin:auto auto 0;inset:auto 0 0;padding:0 0 env(safe-area-inset-bottom);border:1px solid var(--global-border,#dce4ef);border-radius:22px 22px 0 0;background:var(--global-surface,#fff);color:var(--global-text,#16243c);}
dialog.mw-more-sheet::backdrop {background:#0b173d80;backdrop-filter:blur(3px);}
dialog.mw-more-sheet>header {display:flex;align-items:center;gap:16px;justify-content:space-between;padding:22px 20px 16px;}
dialog.mw-more-sheet h2 {font-size:22px;margin:4px 0 0;}dialog.mw-more-sheet header small {font-size:10px;letter-spacing:.08em;color:var(--global-muted,#65748b);}
dialog.mw-more-sheet header>button {display:grid;place-items:center;width:44px;height:44px;padding:10px;border:1px solid var(--global-border,#dce4ef);border-radius:12px;background:transparent;color:inherit;}
dialog.mw-more-sheet svg {width:21px;height:21px;flex:none;}
dialog.mw-more-sheet .mw-more-search {display:flex;align-items:center;gap:10px;margin:0 20px 12px;padding:0 12px;border:1px solid var(--global-border,#dce4ef);border-radius:12px;}
dialog.mw-more-sheet input {width:100%;min-width:0;height:46px;padding:8px 0;border:0!important;box-shadow:none!important;background:transparent!important;color:inherit;font-size:16px;}
dialog.mw-more-sheet .mw-more-list {padding:0 20px 20px;display:grid;gap:4px;max-height:58dvh;overflow-y:auto;}
dialog.mw-more-sheet .mw-more-list>button {display:flex;align-items:center;gap:12px;width:100%;min-height:64px;margin:0;padding:12px 2px;border:0;border-bottom:1px solid var(--global-border,#dce4ef);border-radius:0;background:transparent;color:inherit;text-align:left;font-family:Inter,system-ui,sans-serif;}
dialog.mw-more-sheet .mw-more-list>button[hidden] {display:none!important;}
dialog.mw-more-sheet .mw-more-list>button>span {flex:1;min-width:0;}dialog.mw-more-sheet b {font-size:13px;}dialog.mw-more-sheet .mw-more-list small {display:block;font-size:11px;margin-top:4px;color:var(--global-muted,#65748b);}
