/* Mobile/APK dashboard launcher. Desktop dashboard styles and markup remain authoritative. */
.dashboard-mobile-copy,
.dashboard-mobile-see-all {
  display: none;
}

@media (max-width: 680px) {
  body:has(#tab-dashboard.active) {
    background: #f4f7fc;
  }

  body:has(#tab-dashboard.active) .page-shell.workspace-mode.dashboard-view {
    padding: 0 0 calc(84px + env(safe-area-inset-bottom));
    background: #f4f7fc;
  }

  #tab-dashboard,
  #tab-dashboard .dashboard-shell {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #tab-dashboard .dashboard-shell-main {
    padding: 10px;
    gap: 10px;
    overflow: visible;
  }

  #tab-dashboard .dashboard-shell-head {
    padding: 0;
    border: 0;
    background: transparent;
  }

  #tab-dashboard .dashboard-shell-head > div:first-child {
    display: none;
  }

  #tab-dashboard .dashboard-app-welcome {
    width: 100%;
    min-height: 84px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    overflow: hidden;
    border: 1px solid #dce8f8;
    border-radius: 17px;
    background:
      radial-gradient(circle at 88% 12%, rgba(255,255,255,.9) 0 15%, transparent 16%),
      linear-gradient(135deg, #edf6ff 0%, #f5f8ff 62%, #e5f7ff 100%);
    box-shadow: 0 7px 20px rgba(37, 73, 142, .055);
  }

  #tab-dashboard .dashboard-app-welcome > div {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  #tab-dashboard .dashboard-app-welcome > div > span {
    color: #53678e;
    font-size: 11px;
    font-weight: 750;
  }

  #tab-dashboard .dashboard-app-welcome strong {
    overflow: hidden;
    color: #10255b;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #tab-dashboard .dashboard-app-welcome small {
    margin-top: 1px;
    color: #63769a;
    font-size: 11px;
    line-height: 1.25;
  }

  #tab-dashboard .dashboard-app-welcome-art {
    width: 72px;
    height: 58px;
    display: grid;
    place-items: center;
    position: relative;
    justify-self: end;
    border-radius: 17px;
    background: linear-gradient(145deg, #d8eaff, #eff7ff);
    color: #1670ea;
    font-size: 29px;
  }

  #tab-dashboard .dashboard-app-welcome-art i:last-child {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    position: absolute;
    right: 3px;
    bottom: 2px;
    border-radius: 9px;
    background: #fff;
    color: #7c43e8;
    font-size: 14px;
    box-shadow: 0 4px 11px rgba(49, 73, 131, .15);
  }

  #tab-dashboard .dashboard-mobile-actions,
  html.easemyway-native-app #tab-dashboard .dashboard-mobile-actions {
    display: grid !important;
    gap: 8px;
    margin: 0;
    padding: 11px 10px 10px;
    border: 1px solid #e0e7f2;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 6px 19px rgba(31, 53, 110, .05);
  }

  #tab-dashboard .dashboard-mobile-actions[hidden],
  html.easemyway-native-app #tab-dashboard .dashboard-mobile-actions[hidden] {
    display: none !important;
  }

  #tab-dashboard .dashboard-mobile-section-heading,
  #tab-dashboard .dashboard-shell-section-head {
    min-height: 28px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  #tab-dashboard .dashboard-mobile-section-heading > div {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  #tab-dashboard .dashboard-mobile-section-heading > div::before {
    content: "\f46d";
    color: #1564e8;
    font: 18px/1 bootstrap-icons;
  }

  #tab-dashboard .dashboard-mobile-eyebrow {
    display: none;
  }

  #tab-dashboard .dashboard-mobile-section-heading h3,
  #tab-dashboard .dashboard-shell-section-head h3 {
    margin: 0;
    color: #11275b;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
  }

  #tab-dashboard .dashboard-mobile-see-all {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0 3px 0 8px;
    border: 0;
    background: transparent;
    color: #145fe6;
    font-size: 12px;
    font-weight: 750;
  }

  #tab-dashboard .dashboard-mobile-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  #tab-dashboard .dashboard-mobile-action {
    min-width: 0;
    min-height: 80px;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: start;
    gap: 6px;
    padding: 5px 2px 3px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    text-align: center;
  }

  #tab-dashboard .dashboard-mobile-action > span {
    width: min(52px, 100%);
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(145deg, #e5f3ff, #f3f8ff);
    color: #1674e9;
    font-size: 22px;
  }

  #tab-dashboard .dashboard-mobile-action.tone-violet > span {
    background: linear-gradient(145deg, #eee3ff, #f8f1ff);
    color: #8444e8;
  }

  #tab-dashboard .dashboard-mobile-action.tone-green > span {
    background: linear-gradient(145deg, #ddf8e6, #effcf3);
    color: #0cac5b;
  }

  #tab-dashboard .dashboard-mobile-action > strong {
    min-width: 0;
    min-height: 30px;
    display: -webkit-box;
    overflow: hidden;
    color: #10275b;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #tab-dashboard .dashboard-shell-content-grid,
  #tab-dashboard .dashboard-shell-content-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #tab-dashboard .dashboard-mobile-today,
  html.easemyway-native-app #tab-dashboard .dashboard-mobile-today,
  #tab-dashboard .dashboard-shell-content-side {
    display: none !important;
  }

  #tab-dashboard .dashboard-shell-quick-card {
    display: grid;
    gap: 8px;
    padding: 11px 10px 10px;
    border: 1px solid #e0e7f2;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 6px 19px rgba(31, 53, 110, .05);
  }

  #tab-dashboard .dashboard-desktop-copy {
    display: none;
  }

  #tab-dashboard .dashboard-mobile-copy {
    display: inline;
  }

  #tab-dashboard .dashboard-shell-section-head h3::before {
    content: "\f3fc";
    margin-right: 7px;
    color: #1471e8;
    font: 18px/1 bootstrap-icons;
    vertical-align: -1px;
  }

  #tab-dashboard .dashboard-shell-manage-btn {
    min-height: 34px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: #145fe6;
    font-size: 0;
  }

  #tab-dashboard .dashboard-shell-manage-btn i {
    margin-right: 5px;
    font-size: 14px;
  }

  #tab-dashboard .dashboard-shell-manage-btn::after {
    content: "Edit";
    font-size: 12px;
    font-weight: 750;
  }

  #tab-dashboard .dashboard-shell-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 7px 5px;
    overflow: visible;
    padding: 0;
  }

  #tab-dashboard .dashboard-favourite-tile-wrap,
  html.easemyway-native-app #tab-dashboard .dashboard-favourite-tile-wrap,
  #tab-dashboard .dashboard-shell-quick-tile,
  html.easemyway-native-app #tab-dashboard .dashboard-shell-quick-tile {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 81px;
  }

  #tab-dashboard .dashboard-favourite-tile-wrap {
    display: flex;
  }

  #tab-dashboard .dashboard-favourite-tile-wrap .dashboard-shell-quick-tile,
  html.easemyway-native-app #tab-dashboard .dashboard-favourite-tile-wrap .dashboard-shell-quick-tile {
    width: 100%;
    min-width: 0;
  }

  #tab-dashboard .dashboard-shell-quick-tile {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 6px;
    padding: 4px 1px 2px;
    border: 0;
    border-radius: 12px;
    background: transparent !important;
    box-shadow: none;
    text-align: center;
  }

  #tab-dashboard .dashboard-shell-quick-tile > span {
    width: min(52px, 100%);
    height: 48px;
    border-radius: 13px;
    font-size: 21px;
  }

  #tab-dashboard .dashboard-shell-quick-tile > strong,
  html.easemyway-native-app #tab-dashboard .dashboard-shell-quick-tile > strong {
    min-height: 28px;
    display: -webkit-box;
    overflow: hidden;
    color: #10275b;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #tab-dashboard .dashboard-add-shortcut-tile > span {
    border: 1px dashed #b8ccf5;
    background: #f2f7ff;
  }

  #tab-dashboard .dashboard-favourite-remove {
    top: 0;
    right: 0;
    width: 22px;
    height: 22px;
  }

  #tab-dashboard .dashboard-favourite-order {
    left: 0;
    bottom: 26px;
  }

  #tab-dashboard .dashboard-favourite-order button {
    width: 23px;
    height: 23px;
  }

  #tab-dashboard .dashboard-shortcuts-editor {
    padding: 9px;
    border: 1px solid #dce6f5;
    border-radius: 12px;
    background: #f8fbff;
  }

  #tab-dashboard .dashboard-shortcuts-controls {
    display: grid;
    grid-template-columns: 1fr 68px 68px;
    gap: 6px;
  }

  #tab-dashboard .dashboard-shortcuts-controls select,
  #tab-dashboard .dashboard-shortcuts-action-btn {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    height: 40px;
    padding: 0 7px;
    font-size: 11px;
  }

  #tab-dashboard .dashboard-mobile-modules-heading {
    display: none;
  }

  #tab-dashboard .dashboard-shell-module-grid,
  html.easemyway-native-app #tab-dashboard .dashboard-shell-module-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #tab-dashboard .dashboard-shell-module-card,
  html.easemyway-native-app #tab-dashboard .dashboard-shell-module-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    position: relative;
    padding: 10px 9px 9px;
    overflow: hidden;
    border: 1px solid #e0e7f2;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 6px 19px rgba(31, 53, 110, .05);
  }

  #tab-dashboard .dashboard-shell-module-head,
  html.easemyway-native-app #tab-dashboard .dashboard-shell-module-head {
    min-height: 31px;
    padding: 0 58px 0 1px;
  }

  #tab-dashboard .dashboard-shell-module-head h3,
  html.easemyway-native-app #tab-dashboard .dashboard-shell-module-head h3 {
    color: #11275b;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
  }

  #tab-dashboard .dashboard-shell-module-head h3 i {
    width: 25px;
    height: 25px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf2ff;
    font-size: 14px;
  }

  #tab-dashboard .dashboard-shell-module-head-actions,
  #tab-dashboard .dashboard-shell-module-toggle,
  #tab-dashboard .dashboard-shell-module-count,
  html.easemyway-native-app #tab-dashboard .dashboard-shell-module-toggle {
    display: none !important;
  }

  #tab-dashboard .dashboard-shell-module-list,
  #tab-dashboard .dashboard-shell-module-list[hidden],
  html.easemyway-native-app #tab-dashboard .dashboard-shell-module-list,
  html.easemyway-native-app #tab-dashboard .dashboard-shell-module-list[hidden] {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px 5px;
    padding: 0;
  }

  #tab-dashboard .dashboard-shell-module-item,
  html.easemyway-native-app #tab-dashboard .dashboard-shell-module-item {
    min-width: 0;
    min-height: 82px;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: start;
    gap: 6px;
    padding: 4px 1px 2px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    text-align: center;
  }

  #tab-dashboard .dashboard-shell-module-item > span,
  html.easemyway-native-app #tab-dashboard .dashboard-shell-module-item > span {
    min-width: 0;
    display: contents;
    color: #10275b;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.25;
  }

  #tab-dashboard .dashboard-shell-module-item > span > i,
  html.easemyway-native-app #tab-dashboard .dashboard-shell-module-item > span > i {
    width: min(52px, 100%);
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 21px;
  }

  #tab-dashboard .dashboard-shell-module-item > i:last-child {
    display: none;
  }

  #tab-dashboard .dashboard-app-preview-hidden,
  #tab-dashboard .dashboard-app-search-hidden,
  #tab-dashboard .dashboard-app-card-filtered {
    display: none !important;
  }

  #tab-dashboard .dashboard-app-category-view-btn,
  html.easemyway-native-app #tab-dashboard .dashboard-app-category-view-btn {
    width: auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    position: absolute;
    top: 8px;
    right: 7px;
    margin: 0;
    padding: 0 3px 0 7px;
    border: 0;
    background: transparent;
    color: #145fe6;
    font-size: 11px;
    font-weight: 750;
  }

  #tab-dashboard .dashboard-app-category-view-btn[hidden] {
    display: none !important;
  }

  #tab-dashboard .dashboard-app-view-toolbar {
    padding: 2px 1px;
  }

  #tab-dashboard .dashboard-app-view-toolbar > div span {
    color: #6679a2;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  #tab-dashboard .dashboard-app-view-toolbar h2 {
    margin: 1px 0 0;
    color: #10255b;
    font-size: 21px;
  }

  #tab-dashboard .dashboard-app-modules-toolbar label {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 0 12px;
    border: 1px solid #dce4f2;
    border-radius: 13px;
    background: #fff;
    color: #7283a6;
  }

  #tab-dashboard .dashboard-app-modules-toolbar input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #142554;
    font: inherit;
  }

  #tab-dashboard .dashboard-app-modules-toolbar p {
    min-height: 13px;
    margin: 3px 1px 0;
    color: #6b7da3;
    font-size: 10px;
  }

  #tab-dashboard .dashboard-app-category-toolbar {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }

  #tab-dashboard .dashboard-app-category-toolbar > button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid #dce4f2;
    border-radius: 11px;
    background: #fff;
    color: #194ebd;
  }

  #tab-dashboard [data-app-view="modules"] .dashboard-app-modules-toolbar,
  #tab-dashboard [data-app-view="category"] .dashboard-app-category-toolbar {
    display: grid;
  }

  #tab-dashboard [data-app-view="modules"] .dashboard-shell-head,
  #tab-dashboard [data-app-view="modules"] .dashboard-mobile-actions,
  #tab-dashboard [data-app-view="modules"] .dashboard-shell-quick-card,
  #tab-dashboard [data-app-view="category"] .dashboard-shell-head,
  #tab-dashboard [data-app-view="category"] .dashboard-mobile-actions,
  #tab-dashboard [data-app-view="category"] .dashboard-shell-quick-card,
  #tab-dashboard [data-app-view="category"] .dashboard-locked-modules-card,
  #tab-dashboard [data-app-view="home"] .dashboard-app-view-toolbar,
  #tab-dashboard [data-app-view="home"] .dashboard-locked-modules-card {
    display: none !important;
  }

  #tab-dashboard .dashboard-locked-modules-card {
    margin-top: 0;
    padding: 10px;
    border-radius: 17px;
  }

  #tab-dashboard .dashboard-locked-modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
}

@media (max-width: 350px) {
  #tab-dashboard .dashboard-shell-main {
    padding: 8px 7px;
  }

  #tab-dashboard .dashboard-mobile-action-grid,
  #tab-dashboard .dashboard-shell-quick-grid,
  #tab-dashboard .dashboard-shell-module-list,
  #tab-dashboard .dashboard-shell-module-list[hidden] {
    gap: 6px 2px;
  }

  #tab-dashboard .dashboard-mobile-action > strong,
  #tab-dashboard .dashboard-shell-quick-tile > strong,
  #tab-dashboard .dashboard-shell-module-item > span {
    font-size: 9px;
  }

  #tab-dashboard .dashboard-mobile-action > span,
  #tab-dashboard .dashboard-shell-quick-tile > span,
  #tab-dashboard .dashboard-shell-module-item > span > i {
    width: 44px;
    height: 44px;
  }
}
