/* Restore the reference home layout shown on mobile, and its paired desktop dashboard. */
body[data-current-view="home"] #homeView > .generated-home,
body[data-current-view="home"] #homeView > .generated-desktop-workbench {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

body[data-current-view="home"] #homeView > .ref-home {
  display: block !important;
  height: auto !important;
  min-height: 100vh !important;
  overflow: visible !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

html body[data-current-view="home"] div.app-shell main.main section#homeView.view.active > div.ref-home,
html body[data-current-view="home"] div.app-shell main.main section#homeView.view > div.ref-home {
  display: block !important;
  height: auto !important;
  min-height: 100vh !important;
  overflow: visible !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

@media (max-width: 980px) {
  

  body[data-current-view="home"] .app-shell,
  body[data-current-view="home"] .main,
  body[data-current-view="home"] #homeView {
    display: block !important;
    margin: 0 !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    width: 100% !important;
  }

  html body[data-current-view="home"],
  html body[data-current-view="home"] .app-shell,
  html body[data-current-view="home"] .main,
  html body[data-current-view="home"] #homeView,
  html body[data-current-view="home"] #homeView > .ref-home {
    box-sizing: border-box !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    width: 100vw !important;
  }

  html body[data-current-view="home"] #homeView > .ref-home {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 390px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 100% !important;
  }

  html body[data-current-view="home"] #homeView > .ref-home > section,
  html body[data-current-view="home"] #homeView > .ref-home > header,
  html body[data-current-view="home"] #homeView > .ref-home > nav {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  html body[data-current-view="home"] #homeView > .ref-home > .ref-hero {
    border-left: 0 !important;
    border-radius: 0 !important;
    border-right: 0 !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
    max-width: calc(100% + 24px) !important;
    width: calc(100% + 24px) !important;
  }

  html body[data-current-view="home"] #homeView > .ref-home > .ref-topbar {
    align-items: center !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid rgba(210, 222, 234, 0.9) !important;
    box-sizing: border-box !important;
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    left: 50% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100vw !important;
    padding: 10px 12px !important;
    position: relative !important;
    transform: translateX(-50%) !important;
    width: 100vw !important;
  }

  html body[data-current-view="home"] #homeView > .ref-home > .ref-topbar h1 {
    font-size: 14px !important;
    line-height: 1.2 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-current-view="home"] #homeView > .ref-home .ref-top-actions {
    align-items: center !important;
    display: flex !important;
    gap: 8px !important;
    justify-content: flex-end !important;
    justify-self: end !important;
    margin-left: auto !important;
    min-width: max-content !important;
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
  }

  html body[data-current-view="home"] #homeView > .ref-home .ref-admin {
    align-items: center !important;
    color: inherit !important;
    cursor: pointer !important;
    display: flex !important;
    gap: 5px !important;
    min-width: 0 !important;
    text-decoration: none !important;
  }

  html body[data-current-view="home"] #homeView > .ref-home .ref-admin strong {
    display: block !important;
    font-size: 12px !important;
    max-width: 42px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-current-view="home"] #homeView > .ref-home .ref-bell {
    display: none !important;
  }

  html body[data-current-view="home"] #homeView > .ref-home > .ref-greeting,
  html body[data-current-view="home"] #homeView > .ref-home > .ref-greeting > div,
  html body[data-current-view="home"] #homeView > .ref-home > .ref-greeting h2,
  html body[data-current-view="home"] #homeView > .ref-home > .ref-greeting .ref-search {
    display: none !important;
  }

  body[data-current-view="home"] #homeView > .ref-home > .ref-topbar,
  body[data-current-view="home"] #homeView > .ref-home > .ref-greeting,
  body[data-current-view="home"] #homeView > .ref-home > .ref-hero,
  body[data-current-view="home"] #homeView > .ref-home > .ref-scene-grid,
  body[data-current-view="home"] #homeView > .ref-home > .ref-two-col,
  body[data-current-view="home"] #homeView > .ref-home > .ref-material-panel,
  body[data-current-view="home"] #homeView > .ref-home > .ref-news-panel,
  body[data-current-view="home"] #homeView > .ref-home > .ref-bottom-nav {
    display: revert !important;
    height: auto !important;
    min-height: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  body[data-current-view="home"] #homeView > .ref-home > .ref-scene-grid,
  body[data-current-view="home"] #homeView > .ref-home > .ref-two-col {
    display: grid !important;
  }

  body[data-current-view="home"] #homeView > .ref-home > .ref-scene-grid {
    gap: 10px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    width: 100% !important;
  }

  body[data-current-view="home"] #homeView > .ref-home .ref-scene-card {
    align-items: start !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    min-height: 108px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding: 16px 14px !important;
    width: 100% !important;
  }

  body[data-current-view="home"] #homeView > .ref-home > .ref-two-col {
    gap: 10px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body[data-current-view="home"] #homeView > .ref-home > .ref-two-col > *,
  body[data-current-view="home"] #homeView > .ref-home .ref-material-panel,
  body[data-current-view="home"] #homeView > .ref-home .ref-news-panel {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body[data-current-view="home"] #homeView > .ref-home .ref-scene-card > i {
    grid-column: 2 !important;
    grid-row: 2 / span 2 !important;
    justify-self: end !important;
    margin: 0 !important;
  }

  body[data-current-view="home"] #homeView > .ref-home .ref-scene-card > span,
  body[data-current-view="home"] #homeView > .ref-home .ref-scene-card > strong {
    grid-column: 1 !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    text-align: left !important;
  }

  body[data-current-view="home"] #homeView > .ref-home .ref-scene-ad {
    background: linear-gradient(180deg, #fff4f8 0%, #fff9fb 100%) !important;
    border-color: #ffc9da !important;
  }

  body[data-current-view="home"] #homeView > .ref-home .ref-scene-compare {
    background: linear-gradient(180deg, #f0f8ff 0%, #f8fcff 100%) !important;
    border-color: #b9dcff !important;
  }

  body[data-current-view="home"] #homeView > .ref-home .ref-scene-chat {
    background: linear-gradient(180deg, #f0fff7 0%, #f8fffb 100%) !important;
    border-color: #bcebd0 !important;
  }

  body[data-current-view="home"] #homeView > .ref-home .ref-scene-aesthetic {
    background: linear-gradient(180deg, #fff8e9 0%, #fffdf6 100%) !important;
    border-color: #ffe1a8 !important;
  }

  body[data-current-view="home"] #homeView > .ref-home > .ref-bottom-nav {
    align-items: center !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.2) !important;
    backdrop-filter: blur(14px) saturate(1.2) !important;
    background: rgba(255, 255, 255, 0.28) !important;
    border: 0 !important;
    border-radius: 0 !important;
    bottom: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    color: #7b8794 !important;
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    left: 50% !important;
    max-width: 366px !important;
    min-height: 64px !important;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) !important;
    position: fixed !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100vw - 24px) !important;
    z-index: 90 !important;
  }

  body[data-current-view="home"] #homeView > .ref-home > .ref-bottom-nav button {
    align-items: center !important;
    box-sizing: border-box !important;
    display: grid !important;
    gap: 3px !important;
    justify-items: center !important;
    min-width: 0 !important;
    padding: 7px 0 6px !important;
    text-align: center !important;
  }

  body[data-current-view="home"] #homeView > .ref-home > .ref-bottom-nav button span {
    color: currentColor !important;
    display: block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  body[data-current-view="home"] #homeView > .ref-home > .ref-bottom-nav i {
    align-items: center !important;
    background: none !important;
    color: currentColor !important;
    display: grid !important;
    font-style: normal !important;
    height: 18px !important;
    justify-items: center !important;
    line-height: 18px !important;
    width: 18px !important;
  }

  body[data-current-view="home"] #homeView > .ref-home > .ref-bottom-nav i::before {
    color: currentColor !important;
    display: block !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 18px !important;
  }

  body[data-current-view="home"] #homeView > .ref-home > .ref-bottom-nav .home::before { content: "⌂" !important; }
  body[data-current-view="home"] #homeView > .ref-home > .ref-bottom-nav .create::before { content: "+" !important; }
  body[data-current-view="home"] #homeView > .ref-home > .ref-bottom-nav .aesthetic::before { content: "✦" !important; }
  body[data-current-view="home"] #homeView > .ref-home > .ref-bottom-nav .works::before { content: "▦" !important; }
  body[data-current-view="home"] #homeView > .ref-home > .ref-bottom-nav .tasks::before { content: "≡" !important; }
  body[data-current-view="home"] #homeView > .ref-home > .ref-bottom-nav .assets::before { content: "▣" !important; }
  body[data-current-view="home"] #homeView > .ref-home > .ref-bottom-nav .mine::before { content: "●" !important; }

  body[data-current-view="home"] #homeView > .ref-home > .ref-bottom-nav button.active,
  body[data-current-view="home"] #homeView > .ref-home > .ref-bottom-nav button[data-go-view="home"] {
    color: #1257c8 !important;
  }

  body[data-current-view="home"] #homeView > .ref-home > .ref-bottom-nav i.assets {
    background: none !important;
  }

  body[data-current-view="home"] #homeView > .ref-home > .ref-bottom-nav i.assets::before {
    content: "▣" !important;
  }

  html body[data-current-view="home"] div.app-shell main.main section#homeView.view.active > div.ref-home > .desktop-dashboard {
    display: none !important;
  }
}

@media (min-width: 981px) {
  body[data-current-view="home"] .mobile-status-bar,
  body[data-current-view="home"] .mobile-app-header,
  body[data-current-view="home"] .mobile-bottom-nav,
  body[data-current-view="home"] .topbar {
    display: none !important;
  }




  html body[data-current-view="home"] div.app-shell > main.main > header.topbar,
  html body[data-current-view="home"] div.app-shell > main.main.main > header.topbar.topbar {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
  }

  body[data-current-view="home"] .app-shell,
  body[data-current-view="home"] #homeView {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  html body[data-current-view="home"] div.app-shell > main.main,
  html body[data-current-view="home"] div.app-shell > main.main.main {
    background: #f7faff !important;
    display: block !important;
    margin-left: 258px !important;
    min-height: 100vh !important;
    padding: 0 !important;
    width: calc(100vw - 258px) !important;
  }

  body[data-current-view="home"] #homeView > .ref-home > .ref-topbar,
  body[data-current-view="home"] #homeView > .ref-home > .ref-greeting,
  body[data-current-view="home"] #homeView > .ref-home > .ref-hero,
  body[data-current-view="home"] #homeView > .ref-home > .ref-scene-grid,
  body[data-current-view="home"] #homeView > .ref-home > .ref-two-col,
  body[data-current-view="home"] #homeView > .ref-home > .ref-material-panel,
  body[data-current-view="home"] #homeView > .ref-home > .ref-news-panel,
  body[data-current-view="home"] #homeView > .ref-home > .ref-bottom-nav {
    display: none !important;
  }

  body[data-current-view="home"] #homeView > .ref-home .desktop-dashboard,
  html body[data-current-view="home"] div.app-shell main.main section#homeView.view.active > div.ref-home > div.desktop-dashboard,
  html body[data-current-view="home"] div.app-shell main.main section#homeView.view > div.ref-home > div.desktop-dashboard,
  html body[data-current-view="home"] #homeView.view.active > .ref-home > .desktop-dashboard {
    display: block !important;
    height: auto !important;
    min-height: 100vh !important;
    opacity: 1 !important;
    padding: 28px 42px 34px !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  html body[data-current-view="home"] div.app-shell main.main section#homeView.view.active > div.ref-home {
    height: auto !important;
    min-height: 100vh !important;
    padding: 0 !important;
    width: 100% !important;
  }

  html body[data-current-view="home"] div.app-shell main.main section#homeView.view.active {
    display: block !important;
    min-height: 100vh !important;
    padding: 0 !important;
  }
}
