/* ==========================================================================
   AetherSpace — Responsive overrides
   ========================================================================== */

/* Large desktop: give the hero panels a touch more room */
@media (min-width: 1600px) {
  .workspace {
    padding: 30px 46px 70px;
  }
}

/* Tablet landscape / small desktop: tighten grid, ease curvature */
@media (max-width: 1180px) {
  .bento {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-areas:
      "overview overview overview overview code code code code"
      "tasks tasks tasks tasks board board board board"
      "media media media calendar calendar calendar team team"
      "analytics analytics analytics analytics analytics analytics team team";
  }

  [data-panel] .panel-tilt {
    --base-ry: 0deg !important;
  }
}

/* Tablet portrait: collapse dock into a top strip, single column-ish */
@media (max-width: 900px) {
  .body-row {
    flex-direction: column;
  }

  .dock {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 12px 16px;
  }

  .dock__group {
    flex-direction: row;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .dock__item {
    flex-shrink: 0;
  }

  .dock__spacer {
    display: none;
  }

  .dock__tooltip {
    display: none;
  }

  .workspace {
    padding: 18px 18px 50px;
    perspective: none;
  }

  .bento {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: minmax(220px, auto);
    grid-template-areas:
      "overview"
      "tasks"
      "code"
      "board"
      "media"
      "calendar"
      "analytics"
      "team";
  }

  .panel-tilt {
    transform: none !important;
  }

  .board-widget {
    grid-template-columns: repeat(4, minmax(200px, 1fr));
  }
}

/* Phones */
@media (max-width: 560px) {
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }

  .brand__sub {
    display: none;
  }

  .topbar__clock {
    display: none;
  }

  .topbar__section--greeting {
    flex: 1;
    min-width: 0;
    justify-content: center;
  }

  .chip--live {
    min-width: 0;
    overflow: hidden;
  }

  .chip--live span:not(.chip__dot) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .workspace__greeting h1 {
    font-size: 18px;
  }

  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .overview {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .metric-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
