/* Pixel Pet Studio v2.0.0-alpha.20.8
 * Desktop Workspace Rebalance
 * Desktop-only presentation. Mobile remains owned by /m/.
 */

@media (min-width: 1101px) {
  :root {
    --pps-desktop-tool-dock-h: 50px;
  }

  body.pps-shell.pps-desktop-workspace-v208 {
    --pps-bottom-toolbar-h: var(--pps-desktop-tool-dock-h);
  }

  body.pps-shell.pps-desktop-workspace-v208 .topbar {
    min-height: 48px;
    padding: 6px 10px;
    gap: 8px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .topbar-left,
  body.pps-shell.pps-desktop-workspace-v208 .topbar-center,
  body.pps-shell.pps-desktop-workspace-v208 .topbar-actions {
    gap: 6px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .topbar-center {
    margin-left: 8px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .chip {
    min-height: 30px;
    padding: 4px 10px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .primary {
    min-height: 30px;
    padding: 4px 13px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .layout {
    min-height: 0;
    grid-template-columns: clamp(218px, 14vw, 260px) minmax(0, 1fr);
    gap: 8px;
    padding: 8px 10px calc(var(--pps-desktop-tool-dock-h) + 8px);
    align-items: stretch;
  }

  body.pps-shell.pps-desktop-workspace-v208 .sidebar {
    gap: 8px;
    padding-right: 0;
    scrollbar-gutter: auto;
  }

  body.pps-shell.pps-desktop-workspace-v208 .panel {
    border-radius: 16px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .panel-header {
    min-height: 34px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .panel-header h3 {
    font-size: 12px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .panel-body {
    padding: 8px 10px 10px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-panel-toggle-v208 {
    width: 25px;
    height: 25px;
    padding: 0;
    border: 1px solid rgba(139, 223, 202, .2);
    border-radius: 8px;
    background: rgba(7, 25, 38, .72);
    color: #a9c9c2;
    cursor: pointer;
    display: grid;
    place-items: center;
    font: 800 12px/1 system-ui, sans-serif;
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-panel-toggle-v208:hover {
    color: #effff8;
    border-color: rgba(63, 224, 165, .55);
  }

  body.pps-shell.pps-desktop-workspace-v208 .panel.pps-panel-collapsed-v208 .panel-body {
    display: none !important;
  }

  body.pps-shell.pps-desktop-workspace-v208 .panel.pps-panel-collapsed-v208 {
    flex: 0 0 auto;
  }

  body.pps-shell.pps-desktop-workspace-v208 #inspector.panel-inspector:not(.is-floating) {
    max-height: calc(100dvh - 230px);
  }

  body.pps-shell.pps-desktop-workspace-v208 .stage-wrap {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: block;
    overflow: hidden;
  }

  body.pps-shell.pps-desktop-workspace-v208 .stage-frame {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    padding: 4px;
    border-radius: 20px;
  }

  body.pps-shell.pps-desktop-workspace-v208 #game {
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
    aspect-ratio: auto !important;
    border-radius: 16px;
  }

  body.pps-shell.pps-desktop-workspace-v208 #minimap {
    top: 58px;
    right: 10px;
    width: clamp(160px, 12vw, 210px);
    max-width: 210px;
  }

  body.pps-shell.pps-desktop-focus-v208 .layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.pps-shell.pps-desktop-focus-v208 .sidebar {
    display: none !important;
  }

  body.pps-shell.pps-desktop-focus-v208 .stage-frame {
    border-radius: 16px;
  }

  body.pps-shell.pps-desktop-focus-v208 #game {
    border-radius: 12px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-bottom-toolbar {
    height: var(--pps-desktop-tool-dock-h);
    min-height: var(--pps-desktop-tool-dock-h);
    overflow: visible;
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-bottom-toolbar__header {
    min-height: var(--pps-desktop-tool-dock-h) !important;
    height: var(--pps-desktop-tool-dock-h);
    padding: 6px 12px !important;
    border-bottom: 0;
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-toolbox-eyebrow {
    display: none;
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-toolbox-identity {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 10px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-bottom-toolbar__title {
    font-size: 13px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-toolbox-status {
    max-width: min(48vw, 620px);
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-toolbox-workspace {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    min-height: 0 !important;
    height: clamp(210px, 31vh, 310px);
    max-height: calc(100dvh - 120px) !important;
    grid-template-columns: 148px minmax(0, 1fr);
    background:
      linear-gradient(180deg, rgba(6, 22, 34, .985), rgba(3, 15, 26, .99));
    border-top: 1px solid rgba(139, 223, 202, .22);
    border-bottom: 1px solid rgba(139, 223, 202, .16);
    box-shadow: 0 -24px 60px rgba(0, 0, 0, .56);
    transform-origin: bottom;
    animation: ppsToolboxWorkspaceInV208 .16s ease-out both;
  }

  @keyframes ppsToolboxWorkspaceInV208 {
    from { opacity: 0; transform: translateY(10px) scaleY(.97); }
    to { opacity: 1; transform: translateY(0) scaleY(1); }
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-bottom-toolbar.collapsed .pps-toolbox-workspace {
    display: none !important;
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-bottom-toolbar__tabs {
    padding: 7px;
    gap: 3px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-tab-btn {
    min-height: 31px;
    padding: 5px 7px;
    grid-template-columns: 20px minmax(0, 1fr) auto;
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-toolbox-content {
    padding: 8px 10px 9px;
    gap: 7px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-toolbox-controls {
    grid-template-columns: minmax(120px, 1fr) minmax(220px, 360px) auto;
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-bottom-toolbar__tools {
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 6px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-tool-card {
    min-height: 58px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-tool-btn {
    padding: 7px 7px 7px 9px;
    grid-template-columns: 27px minmax(0, 1fr);
    column-gap: 7px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-tool-icon {
    width: 27px;
    height: 27px;
    font-size: 14px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-tool-description {
    font-size: 9px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-toolbox-icon-btn {
    height: 32px;
    min-width: 32px;
    border-radius: 10px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .pps-focus-btn.active {
    color: #061915;
    background: var(--pps-toolbox-accent);
    border-color: var(--pps-toolbox-accent);
  }
}

@media (min-width: 1101px) and (max-height: 720px) {
  body.pps-shell.pps-desktop-workspace-v208 .pps-toolbox-workspace {
    height: 205px;
  }

  body.pps-shell.pps-desktop-workspace-v208 .layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  body.pps-shell.pps-desktop-workspace-v208 .panel-body {
    padding-block: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.pps-shell.pps-desktop-workspace-v208 .pps-toolbox-workspace {
    animation: none !important;
  }
}
