/* Shared desktop density for the current authenticated workspace shell.
   Mobile keeps its existing readable type and tap-target geometry. */
@media (min-width: 761px) {
  :root { --workspace-density: .9; }

  .sidebar,
  .ai-modern .sidebar,
  .ai-modern .sidebar:hover,
  .ai-modern .sidebar:focus-within {
    inset: 16px auto 16px 16px;
    width: 189px;
    padding: 14px 10px 11px;
    border-radius: 22px;
  }
  body > main,
  .ai-modern main { margin-left: 221px; }
  .brand { padding-bottom: 13px; }
  .brand img { width: 34px; height: 34px; }
  .product-nav { gap: 2px; margin-top: 6px; }
  .nav-label { margin: 12px 8px 5px; font-size: 8px; line-height: 11px; }
  .product-nav > a,
  .product-nav summary,
  .ai-modern .product-nav > a,
  .ai-modern .product-nav summary,
  .ai-modern .sidebar:hover .product-nav > a,
  .ai-modern .sidebar:hover .product-nav summary,
  .ai-modern .sidebar:focus-within .product-nav > a,
  .ai-modern .sidebar:focus-within .product-nav summary {
    height: 36px;
    padding-right: 8px !important;
    padding-left: 8px !important;
    gap: 8px !important;
    border-radius: 10px;
    font-size: 11px;
    line-height: 16px;
  }
  .product-nav > a > span,
  .product-nav summary > span { width: 18px; min-width: 18px; height: 18px; }
  .product-nav svg { width: 18px; height: 18px; }
  .account-control > .account,
  .account { padding: 6px; gap: 9px; }
  .account > span:first-child { width: 31px; height: 31px; }
  .account b { font-size: 11px; line-height: 15px; }
  .account small { font-size: 9px; line-height: 13px; }

  .nav-collapsed .sidebar,
  .ai-modern.nav-collapsed .sidebar,
  .ai-modern.nav-collapsed .sidebar:hover,
  .ai-modern.nav-collapsed .sidebar:focus-within { width: 65px !important; padding: 14px 9px !important; }
  .nav-collapsed .brand { width: 43px; height: 49px; padding-bottom: 13px; }
  .nav-collapsed .brand img { width: 34px; height: 34px; }
  .nav-collapsed .product-nav > a,
  .nav-collapsed .product-nav summary,
  .ai-modern.nav-collapsed .sidebar:hover .product-nav > a,
  .ai-modern.nav-collapsed .sidebar:hover .product-nav summary,
  .ai-modern.nav-collapsed .sidebar:focus-within .product-nav > a,
  .ai-modern.nav-collapsed .sidebar:focus-within .product-nav summary {
    width: 43px;
    height: 36px;
    padding: 0 !important;
    justify-content: center;
    gap: 0 !important;
  }
  .nav-collapsed .account-control,
  .nav-collapsed .account-control > .account { width: 43px; }
  .nav-collapsed .account-control > .account { height: 43px; grid-template-columns: 31px 126px auto; }
  .nav-collapsed main,
  .ai-modern.nav-collapsed main { margin-left: 97px !important; }

  .topbar { height: 67px; padding-right: 27px; padding-left: 27px; }
  .topbar button,
  .topbar a { font-size: 12.5px; line-height: 18px; }
  .assistant-home { max-width: 882px; padding: 38px 32px 22px; }
  .orb { width: 58px; height: 58px; }
  .assistant-home h1 { margin: 9px 0 22px; font-size: 34px; }
  .composer label { padding: 18px; }
  .composer textarea { height: 72px; font-size: 14px; line-height: 22px; }
  .composer footer { padding: 11px 13px; }
  .starter { margin-top: 23px; }
  .starter > div { gap: 12px; }
  .starter button { min-height: 101px; padding: 14px; }
  .starter strong { margin-top: 13px; font-size: 12px; line-height: 16px; }
  .starter small { font-size: 11px; line-height: 16px; }
  .trust { margin-top: 18px; font-size: 11px; line-height: 16px; }

  .ai-modern .studio-dashboard { padding: 22px 27px 25px !important; }
  .v3-toolbar { height: 49px; }
  .v3-grid { gap: 13px; }
  .v3-card { border-radius: 18px; }
  .v3-hero,
  .v3-performance,
  .v3-attention,
  .v3-workflow,
  .v3-events,
  .v3-ai-insight,
  .v3-activity,
  .v3-goals { padding: 18px 16px; }

  .calendar-actions { height: 76px !important; }
  .calendar-actions + .calendar-shell { min-height: calc(100% - 76px); }
  .calendar-shell { padding: 0 25px 25px; }
  .calendar-toolbar { height: 52px; }
  .calendar-ai { min-height: 65px; padding: 13px 49px 13px 16px; }
  .calendar-metrics { min-height: 70px; margin: 11px 0 13px; padding: 11px 16px; }
  .calendar-metrics article { height: 43px; padding: 0 20px; }
  .calendar-body { height: 702px; grid-template-columns: minmax(648px, 1fr) 279px; }

  .tasks-shell { padding: 39px 31px 43px; }
  .page-heading h1 { margin-top: 10px; font-size: 31px; line-height: 34px; }
  .page-heading p { font-size: 13.5px; line-height: 19px; }
  .task-toolbar { margin-top: 22px; }
  .metric-grid { gap: 13px; margin-top: 16px; }
  .workspace-grid { gap: 13px; margin-top: 13px; }

  .gallery-shell,
  .clients-shell { padding: 23px 31px 43px; }
  .gallery-heading,
  .clients-heading { min-height: 49px; }
  .gallery-overview,
  .client-overview { gap: 14px; }
  .gallery-story,
  .gallery-performance,
  .relationship-story,
  .relationship-performance { min-height: 351px; }
  .gallery-story,
  .relationship-story { padding: 31px 32px; }
  .gallery-performance,
  .relationship-performance { padding: 27px 31px; }
  .gallery-story h1,
  .relationship-story h1 { margin: 24px 0 16px; font-size: 33px; }
  .gallery-workspace,
  .client-workspace { margin-top: 14px; padding: 20px 21px 25px; }

  .guide { height: calc(100% - 74px); padding: 27px; }
  .guide-intro { margin-bottom: 23px; }
  .guide-intro h2 { font-size: 31px; }
  .palette-layout { gap: 13px; padding: 13px; border-radius: 22px; }
  .palette-copy { padding: 25px 23px; }
  .swatches { grid-template-rows: 234px 212px; gap: 8px; }
  .swatch { padding: 22px; border-radius: 15px; }
  .usage,
  .rules { margin-top: 41px; }
  .role-grid article { min-height: 189px; padding: 16px; }
}
