/* homeWorkspace.css */
.workspace-shell.shell {
  display: block;
  padding-top: 76px;
  min-height: 100vh;
}
.workspace-shell.shell > .main {
  width: 100%;
  min-width: 0;
  grid-column: auto;
  padding: 28px 36px;
}
.workspace-header {
  position: fixed;
  inset: 0 0 auto;
  height: 76px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}
.workspace-header button {
  font: inherit;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.workspace-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px !important;
  white-space: nowrap;
}
.workspace-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
#workspaceNavigation {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 100%;
  font-size: 14px;
}
#workspaceNavigation > button,
#workspaceNavigation summary {
  padding: 12px 0;
  white-space: nowrap;
}
#workspaceNavigation [aria-current=page] {
  font-weight: 750;
  color: var(--orange);
}
#workspaceNavigation details {
  position: relative;
}
#workspaceNavigation summary {
  cursor: pointer;
  list-style: none;
}
#workspaceNavigation summary::-webkit-details-marker {
  display: none;
}
#workspaceNavigation summary span {
  margin-left: 6px;
}
#workspaceNavigation details > div {
  position: absolute;
  top: 44px;
  left: -18px;
  min-width: 170px;
  display: grid;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 45px #0002;
}
#workspaceNavigation details button {
  text-align: left;
  padding: 12px;
  border-radius: 8px;
}
#workspaceNavigation details button:hover {
  background: var(--surface-soft);
}
.workspace-account {
  margin-left: auto;
  min-width: 0;
}
.workspace-account > button {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 190px;
}
.workspace-account [data-login-trigger] {
  background: var(--text);
  color: var(--surface);
  padding: 11px 18px;
  border-radius: 24px;
  font-size: 13px;
}
.workspace-account [hidden] {
  display: none !important;
}
#sideUserName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 110px;
}
.workspace-menu-toggle {
  display: none;
}
.workspace-shell #accountPanel {
  left: auto !important;
  right: 20px;
  top: 70px;
  bottom: auto !important;
  width: min(390px, calc(100vw - 32px));
  max-height: calc(100dvh - 90px);
  overflow: auto;
}
.workspace-shell #accountPanel:before {
  display: none;
}
#homeDashboardRoot {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  gap: 34px;
  color: var(--text);
}
.home-hero {
  position: relative;
  height: clamp(350px, 32vw, 480px);
  overflow: hidden;
  border-radius: 22px;
  background: #153642;
  color: #fff;
}
.home-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 51%;
}
.home-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #031e32c9,
      #031e3233 55%,
      transparent);
}
.home-hero-copy {
  position: absolute;
  z-index: 1;
  left: 5%;
  top: 14%;
  max-width: 65%;
}
.home-hero-copy > p:first-child {
  font-size: 10px;
  letter-spacing: .2em;
  color: #e4ebec;
}
.home-hero h1 {
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.16;
  letter-spacing: -.055em;
  font-weight: 550;
  margin: 22px 0;
}
.home-hero-description {
  font-size: 14px;
  color: #e3e9ec;
}
.home-hero-copy button {
  margin-top: 22px;
  background: #fff;
  color: #172b35;
  padding: 14px 25px;
  border: 0;
  border-radius: 30px;
  font-weight: 650;
  cursor: pointer;
}
.home-hero-copy button span {
  margin-left: 30px;
}
.home-hero-caption {
  position: absolute;
  z-index: 1;
  bottom: 22px;
  right: 28px;
  font-size: 10px;
  letter-spacing: .08em;
  color: #ffffffba;
}
.home-creation-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.home-creation-bar button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px 22px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.home-creation-bar button:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.home-creation-bar span {
  grid-row: 1/3;
  font-size: 27px;
}
.home-creation-bar strong {
  font-size: 14px;
}
.home-creation-bar small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
#homeDashboardRoot .home-dashboard-section {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
#homeDashboardRoot .home-dashboard-section header {
  margin-bottom: 14px;
}
#homeDashboardRoot h2 {
  font-size: 18px;
  font-weight: 600;
}
#homeDashboardRoot .home-dashboard-canvas-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
#homeDashboardRoot .home-dashboard-canvas-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
#homeDashboardRoot .home-canvas-open {
  display: flex;
  gap: 13px;
  align-items: center;
  width: 100%;
  padding: 6px 30px 6px 6px;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}
#homeDashboardRoot .home-dashboard-canvas-preview {
  position: relative;
  flex: 0 0 100px;
  width: 100px;
  height: 76px;
  min-height: 76px;
  border-radius: 11px;
  overflow: hidden;
  background: var(--surface-soft);
}
#homeDashboardRoot .home-canvas-details {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 0;
}
#homeDashboardRoot .home-canvas-details strong {
  font-size: 13px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
}
#homeDashboardRoot .home-canvas-details small {
  font-size: 10px;
  color: var(--muted);
}
#homeDashboardRoot .canvas-card-more {
  position: absolute;
  right: 6px;
  top: 27px;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
}
#homeDashboardRoot .home-dashboard-state {
  padding: 18px;
  min-height: 70px;
}
.home-scenes > header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 4px 0 20px;
}
.home-scenes header p {
  font-size: 9px;
  letter-spacing: .17em;
  color: var(--muted);
  margin: 0 0 10px;
}
.home-scenes header h2 {
  font-size: 25px !important;
  margin: 0;
}
.home-scenes header > span {
  font-size: 12px;
  color: var(--muted);
}
.home-scene-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}
.home-scene-grid article {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 330px;
  background: #575042;
  color: white;
}
.home-scene-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-scene-grid article:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 25%, #0009);
}
.home-scene-grid article > div {
  position: absolute;
  bottom: 24px;
  left: 25px;
  right: 20px;
  z-index: 1;
}
.home-scene-grid small {
  font-size: 10px;
  letter-spacing: .13em;
}
.home-scene-grid h3 {
  font-size: 24px;
  font-weight: 550;
  margin: 12px 0;
}
.home-scene-grid p {
  font-size: 12px;
  margin: 0;
  color: #ffffffbf;
}
.home-scene-story img {
  object-position: 75% 50%;
}
.home-discover {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0 15px;
  border-top: 1px solid var(--line);
  margin-top: 5px;
}
.home-discover small {
  color: var(--muted);
  font-size: 11px;
}
.home-discover button {
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.workspace-shell.shell.canvas-mode {
  height: 100dvh;
  min-height: 0;
  padding-top: 76px;
}
.workspace-shell.shell.canvas-mode > .main {
  height: calc(100dvh - 76px);
  padding: 0;
}
@media (max-width: 1000px) {
  .workspace-header {
    gap: 28px;
    padding: 0 24px;
  }
  #workspaceNavigation {
    gap: 18px;
  }
  .workspace-shell.shell > .main {
    padding: 22px;
  }
  .home-creation-bar button {
    padding: 16px 12px;
  }
}
@media (max-width: 820px) {
  #homeDashboardRoot .home-dashboard-canvas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace-header {
    height: 64px;
    gap: 16px;
    padding: 0 18px;
  }
  .workspace-shell.shell {
    padding-top: 64px;
  }
  .workspace-menu-toggle {
    display: block;
    margin-left: auto;
  }
  .workspace-account {
    margin-left: 0;
  }
  .workspace-account > button {
    max-width: 140px;
  }
  #workspaceNavigation {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    height: auto;
    padding: 15px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    align-items: stretch;
    gap: 6px;
  }
  #workspaceHeader[data-menu-open] #workspaceNavigation {
    display: grid;
  }
  #workspaceNavigation > button {
    text-align: left;
  }
  #workspaceNavigation details > div {
    position: static;
    box-shadow: none;
    margin: 5px 0;
  }
  .home-creation-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-scenes header > span {
    display: none;
  }
  .home-scene-grid article {
    height: 270px;
  }
  .home-scene-grid h3 {
    font-size: 20px;
  }
  .workspace-shell.shell.canvas-mode {
    padding-top: 64px;
  }
  .workspace-shell.shell.canvas-mode > .main {
    height: calc(100dvh - 64px);
  }
}
@media (max-width: 430px) {
  .workspace-shell.shell > .main {
    padding: 14px;
  }
  #homeDashboardRoot {
    gap: 25px;
  }
  .home-hero {
    height: 390px;
    border-radius: 17px;
  }
  .home-hero-copy {
    top: 12%;
    left: 7%;
    max-width: 85%;
  }
  .home-hero-copy h1 {
    font-size: 45px;
  }
  .home-hero-description {
    font-size: 12px;
    max-width: 220px;
    line-height: 1.7;
  }
  .home-hero > img {
    object-position: 62%;
  }
  .home-hero-caption {
    font-size: 8px;
    right: 17px;
  }
  .workspace-brand strong {
    font-size: 18px;
  }
  .workspace-brand img {
    width: 25px;
    height: 25px;
  }
  .workspace-account [data-login-trigger] {
    padding: 9px 12px;
    font-size: 12px;
  }
  #sideUserName {
    display: none;
  }
  #homeDashboardRoot .home-dashboard-canvas-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-creation-bar small {
    font-size: 10px;
  }
  .home-creation-bar button {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .home-scene-grid {
    grid-template-columns: 1fr;
  }
  .home-scenes header h2 {
    font-size: 22px !important;
  }
  .home-discover {
    align-items: start;
    gap: 12px;
    flex-direction: column;
  }
  .home-discover h2 {
    font-size: 17px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-creation-bar button:hover {
    transform: none;
  }
}
.workspace-shell.shell.canvas-mode > .main {
  min-height: 0;
}
.workspace-shell.shell.canvas-mode #view-canvas.active,
.workspace-shell .immersive-canvas-shell {
  height: calc(100dvh - 76px);
}
@media (max-width: 820px) {
  .workspace-shell.shell.canvas-mode #view-canvas.active,
  .workspace-shell .immersive-canvas-shell {
    height: calc(100dvh - 64px);
  }
}
