.mobile-app-header, .mobile-bottom-nav { display: none; }
dialog.mobile-sheet { width: min(100%, 580px); max-width: 100%; max-height: calc(100dvh - 20px); position: fixed; inset: auto 0 0; margin: 0 auto; border: 0; border-radius: 24px 24px 0 0; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); color: #17342f; box-shadow: 0 -12px 48px #0f3d4c26; }
dialog.mobile-sheet::backdrop { background: #102b294d; }
.mobile-sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.mobile-sheet-heading h2 { font-size: 21px; }
.mobile-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 14px; padding: 10px; color: #1b8068; background: #f0f7f4; }
.mobile-icon-button > .srv-icon { width: 24px; height: 24px; flex-basis: 24px; }
.mobile-icon-button[hidden] { display: none; }
.mobile-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mobile-service-grid > button { min-width: 0; min-height: 100px; border: 1px solid #e5eeea; border-radius: 16px; background: #f7faf8; color: #204239; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; font-size: 14px; font-weight: 600; }
.mobile-service-grid > button > .srv-icon { width: 26px; height: 26px; flex-basis: 26px; color: #258c70; }
.mobile-account-identity { display: flex; flex-direction: column; gap: 7px; padding-bottom: 20px; margin-bottom: 10px; border-bottom: 1px solid #e3ebe7; overflow-wrap: anywhere; }
.mobile-account-identity strong { font-size: 21px; }
.mobile-account-identity span, .mobile-account-identity small { color: #6c7e77; }
.mobile-account-actions { display: grid; gap: 8px; }
.mobile-account-actions > button { display: flex; justify-content: flex-start; gap: 12px; width: 100%; min-height: 54px; border: 0; border-radius: 12px; padding: 14px; background: #f6f9f7; color: #204239; text-align: left; }
.mobile-account-actions > .danger-text { color: var(--red); }
#mobileFiltersSheet .top-actions { display: grid; gap: 12px; margin-bottom: 18px; max-width: 100%; }
#mobileFiltersSheet .top-actions > select { width: 100%; min-width: 0; border-radius: 10px; min-height: 46px; font-size: 16px; }
#mobileFiltersSheet .top-actions > button { display: none !important; }
#mobileFiltersSheet .period-bar { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; border: 0; box-shadow: none; }
#mobileFiltersSheet .period-bar > * { grid-column: 1; width: 100%; min-width: 0; }
#mobileFiltersSheet .period-bar label { flex-wrap: wrap; }
#mobileFiltersSheet .period-bar input, #mobileFiltersSheet .period-bar select { flex: 1 1 140px; min-width: 0; max-width: 100%; border-radius: 10px; font-size: 16px; }
#mobileFiltersSheet .period-bar button { border-radius: 10px; }
.mobile-filter-done { width: 100%; min-height: 48px; border-radius: 12px; margin-top: 18px; }

@media (max-width: 1100px) {
  body.mobile-app-mode { background: #f5f8f6; color: #17342f; padding-top: 0; padding-bottom: 0; }
  .mobile-app-mode .app-shell { display: block; min-height: 0; overflow: visible; }
  .mobile-app-mode .sidebar { display: none; }
  .mobile-app-mode .workspace { padding: 16px 16px calc(100px + env(safe-area-inset-bottom)); overflow: visible; max-width: 1040px; margin: 0 auto; }
  .mobile-app-mode .view, .mobile-app-mode .panel { min-width: 0; max-width: 100%; }
  .mobile-app-mode .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .mobile-app-mode .table-wrap { max-width: 100%; overflow-x: auto; }
  .mobile-app-mode .workspace > .topbar, .mobile-app-mode .workspace > .period-bar { display: none; }
  .mobile-app-mode .mobile-app-header { display: block; position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid #e8eeea; padding: calc(14px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left)); }
  .mobile-header-inner { max-width: 1008px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
  .mobile-header-title { flex: 1; min-width: 0; }
  .mobile-header-title > span { display: block; color: #7a8b83; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 5px; }
  .mobile-header-title > h1 { font-size: 24px; line-height: 1.2; color: #135c47; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
  .mobile-header-actions { display: flex; align-items: center; gap: 7px; }
  .mobile-account-button { border-radius: 50%; background: #fff; border: 1px solid #dceae2; }
  .mobile-app-mode .mobile-bottom-nav { position: fixed; z-index: 100; bottom: 0; left: 0; right: 0; display: block; background: #fff; padding: 8px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border-top: 1px solid #e1eae4; box-shadow: 0 -4px 20px #1d4e3806; }
  .mobile-bottom-nav > div { max-width: 640px; margin: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .mobile-bottom-nav button { display: flex; flex-direction: column; gap: 5px; min-height: 52px; justify-content: center; align-items: center; border: 0; background: none; border-radius: 12px; color: #7c8982; font-size: 11px; font-weight: 600; padding: 7px 3px; }
  .mobile-bottom-nav button > .srv-icon { width: 23px; height: 23px; flex-basis: 23px; }
  .mobile-bottom-nav button.active { color: #15815e; background: #eef7f1; }
  .mobile-app-mode.locked .mobile-app-header, .mobile-app-mode.locked .mobile-bottom-nav { display: none; }
  .mobile-app-mode .panel, .mobile-app-mode .industry-card, .mobile-app-mode .kpi-card, .mobile-app-mode .activity-kpis article { border-radius: 16px; border-color: #e6ede8; box-shadow: 0 2px 10px #153f2805; }
  .mobile-app-mode .panel { padding: 16px; }
  .mobile-app-mode .panel-header { flex-wrap: wrap; gap: 12px; }
  .mobile-app-mode button.primary, .mobile-app-mode button.ghost, .mobile-app-mode .icon-button { border-radius: 10px; min-height: 42px; }
  .mobile-app-mode input, .mobile-app-mode select, .mobile-app-mode textarea { border-radius: 10px; font-size: 16px; }
  .mobile-app-mode .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mobile-app-mode .kpi-card strong, .mobile-app-mode .kpi strong { font-size: 21px; overflow-wrap: anywhere; }
  .mobile-app-mode .kpi { border-radius: 14px; min-width: 0; }
  .mobile-app-mode .table-wrap { border-radius: 12px; }
  .mobile-app-mode .thermometer { border-radius: 14px; }
  .mobile-app-mode .office-dialog { border-radius: 20px; }
  .mobile-app-mode .login-cover { background: #f5f8f6; padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); }
  .mobile-app-mode .login-panel { max-width: 460px; border: 1px solid #e3eae5; border-radius: 24px; box-shadow: 0 12px 40px #173c2710; }
  .mobile-app-mode .login-layout { grid-template-columns: 1fr; }
  .mobile-app-mode .login-copy { min-height: 0; padding: 24px 24px 4px; background: #fff; color: #135c47; }
  .mobile-app-mode .login-copy > h2, .mobile-app-mode .login-copy > p, .mobile-app-mode .login-benefits { display: none; }
  .mobile-app-mode .login-brand { flex-direction: row; align-items: center; gap: 14px; }
  .mobile-app-mode .login-brand .logo { width: 56px; height: 56px; }
  .mobile-app-mode .login-brand h1 { font-size: 23px; }
  .mobile-app-mode .login-brand p { color: #73827b; font-size: 12px; margin-top: 4px; line-height: 1.5; }
  .mobile-app-mode .login-form { padding: 24px; }
  .mobile-app-mode .login-form > button { min-height: 48px; border-radius: 12px; }
  .mobile-home { max-width: 1008px; margin: auto; }
  .mobile-period { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 0 0 16px; width: 100%; color: #78877f; font-size: 12px; text-align: left; }
  .mobile-period > span { flex: 1; min-width: 0; }
  .mobile-period > small { color: #208366; font-weight: 700; }
  .mobile-period > .srv-icon { color: #208366; }
  .mobile-summary { background: #fff; border: 1px solid #e4ece6; border-radius: 20px; padding: 19px; box-shadow: 0 3px 12px #18472c06; }
  .mobile-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .mobile-section-heading h2 { font-size: 17px; color: #334c40; }
  .mobile-section-heading > button, .mobile-goal-caption > button { border: 0; background: none; padding: 5px 0 5px 8px; color: #208366; font-size: 12px; font-weight: 700; }
  .mobile-section-heading > span { color: #8a958d; font-size: 11px; }
  .mobile-summary-caption { display: block; margin-top: 18px; font-size: 12px; color: #7a8a81; }
  .mobile-summary-value { display: block; font-size: 32px; letter-spacing: -1px; color: #17664e; margin: 5px 0; overflow-wrap: anywhere; }
  .mobile-summary > p { color: #8a968f; font-size: 11px; line-height: 1.5; }
  .mobile-summary-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #edf1ed; border-bottom: 1px solid #edf1ed; margin: 18px 0 12px; padding: 15px 0; }
  .mobile-summary-stats > button { border: 0; border-right: 1px solid #edf1ed; background: none; padding: 0 5px; min-height: 42px; display: flex; flex-direction: column; gap: 5px; color: #294a38; }
  .mobile-summary-stats > button:last-child { border-right: 0; }
  .mobile-summary-stats strong { font-size: 21px; }
  .mobile-summary-stats span { font-size: 11px; color: #859188; }
  .mobile-goal-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: #7a8a80; }
  .mobile-goal-track { height: 6px; border-radius: 4px; background: #edf3ed; overflow: hidden; margin-top: 8px; }
  .mobile-goal-track > div { height: 100%; background: #37a47b; border-radius: 4px; }
  .mobile-quick-title { margin: 24px 2px 13px; }
  .mobile-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mobile-quick-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 7px; min-width: 0; min-height: 137px; padding: 18px 15px; text-align: left; background: #fff; border: 1px solid #e5ece7; border-radius: 16px; box-shadow: 0 3px 10px #173b2504; color: #2e4d3a; }
  .mobile-quick-card > .srv-icon { width: 29px; height: 29px; flex-basis: 29px; color: #1f9470; margin-bottom: 5px; }
  .mobile-quick-card strong { font-size: 14px; line-height: 1.35; }
  .mobile-quick-card small { color: #8a958e; font-size: 10px; line-height: 1.4; }
  .mobile-management-title { margin: 26px 2px 13px; }
  .mobile-management-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mobile-management-card { display: flex; align-items: center; gap: 10px; padding: 17px 12px; min-width: 0; border: 1px solid #e5ece7; border-radius: 15px; background: white; color: #365341; text-align: left; }
  .mobile-management-card > .srv-icon { width: 24px; height: 24px; flex-basis: 24px; color: #278e6c; }
  .mobile-management-card strong { display: block; font-size: 13px; }
  .mobile-management-card small { display: block; font-size: 10px; color: #89958c; margin-top: 5px; line-height: 1.4; }
  .mobile-attention-card { display: flex; align-items: center; gap: 14px; margin-top: 21px; padding: 20px 17px; width: 100%; text-align: left; border: 1px solid #e6ebdd; border-radius: 17px; background: #f0f5e9; color: #4d653d; }
  .mobile-attention-card > .srv-icon { width: 30px; height: 30px; flex-basis: 30px; color: #6e9154; }
  .mobile-attention-card strong { display: block; font-size: 14px; }
  .mobile-attention-card small { display: block; font-size: 11px; line-height: 1.5; margin-top: 6px; color: #82916e; }
  .mobile-quick-card:active, .mobile-management-card:active { background: #f0f8f2; }
}
@media (min-width: 680px) and (max-width: 1100px) { .mobile-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mobile-summary { padding: 24px; } .mobile-summary-value { font-size: 40px; } .mobile-quick-card { min-height: 145px; padding: 20px; } .mobile-quick-card strong { font-size: 16px; } .mobile-quick-card small { font-size: 12px; } }
