/* PC-only responsive fixes on top of the shadcn dashboard style. */

html,
body,
.app,
.main,
.workspace,
.content,
.view,
.panel,
.dashboard-hero,
.dashboard-workspace,
.dashboard-primary-column,
.dashboard-side-column {
  min-width: 0;
}

.content {
  overflow: auto;
}

.view.active {
  overflow: auto;
}

#dashboard.active,
#aiAssistant.active,
#float.active,
#bigscreen.active {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .app {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .sidebar {
    padding: var(--space-3) var(--space-2);
  }

  .brand h1,
  .brand p,
  .side-card {
    display: none;
  }

  .brand {
    padding: 0 0 var(--space-3);
  }

  .brand-lockup {
    justify-content: center;
  }

  .nav button {
    justify-content: center;
    font-size: 0;
  }

  .mark {
    margin: 0;
    font-size: var(--font-helper);
  }

  .content {
    padding: var(--space-3);
  }

  #dashboard.active {
    height: auto;
    min-height: 100%;
    grid-template-rows: auto auto;
    overflow: auto;
  }

  .dashboard-primary-column {
    grid-template-rows: auto auto auto auto;
  }

  .dashboard-workspace {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .dashboard-side-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .notice-card {
    display: none;
  }
}

@media (max-width: 980px) {
  .dashboard-hero {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .hero-action {
    grid-column: 1 / -1;
    flex-direction: row;
  }
}

@media (max-width: 860px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    max-height: 184px;
    overflow: auto;
  }

  .brand h1,
  .brand p {
    display: block;
  }

  .brand-lockup {
    justify-content: flex-start;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav button {
    font-size: 14px;
  }

  .content {
    height: auto;
  }

  .view.active,
  #dashboard.active {
    height: auto;
    overflow: visible;
  }

  .dashboard-hero,
  .dashboard-side-column,
  .script-row,
  .readiness-item {
    grid-template-columns: 1fr;
  }

  .hero-action {
    flex-direction: column;
  }
}

@media (max-width: 980px) and (max-height: 760px) {
  #dashboard.active {
    grid-template-rows: auto auto;
    overflow: auto;
  }

  .dashboard-hero {
    min-height: 0;
  }

  .dashboard-primary-column {
    grid-template-rows: auto auto auto auto;
  }

  .recent-scripts {
    min-height: 60px;
  }

  .dashboard-workspace {
    min-height: 0;
  }
}
