/* Desktop-only Intermodal controls layout. Mobile static behavior stays untouched. */
@media (min-width: 901px) {
  html.pgl-world-page body.b-refresh > .scene-tools {
    display: block !important;
    box-sizing: border-box;
    width: min(500px, calc(100vw - 124px)) !important;
    max-width: calc(100vw - 124px) !important;
    height: auto !important;
    min-height: 0 !important;
    right: max(88px, calc(72px + env(safe-area-inset-right, 0px))) !important;
    padding: 8px !important;
  }

  html.pgl-world-page body.b-refresh > .scene-tools > .scene-controls {
    display: block !important;
    width: 100%;
    min-width: 0;
  }

  html.pgl-world-page body.b-refresh > .scene-tools > .scene-controls > summary {
    display: flex !important;
    box-sizing: border-box;
    width: 100%;
    min-height: 34px;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0 8px 7px;
    border: 0;
    border-bottom: 1px solid rgba(20, 38, 42, .2);
    background: transparent;
    color: inherit;
    font: 700 12px/1 Arial, sans-serif;
    list-style: none;
    white-space: nowrap;
    cursor: pointer;
  }

  html.pgl-world-page body.b-refresh > .scene-tools > .scene-controls > summary::-webkit-details-marker {
    display: none;
  }

  html.pgl-world-page body.b-refresh > .scene-tools > .scene-controls > summary::after {
    content: "+";
    margin-left: 8px;
    color: #fc600a;
    font-size: 16px;
    line-height: 1;
  }

  html.pgl-world-page body.b-refresh > .scene-tools > .scene-controls[open] > summary::after {
    content: "−";
  }

  html.pgl-world-page body.b-refresh > .scene-tools > .scene-controls > .scene-controls__panel {
    display: grid !important;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    padding: 8px 0 0;
  }

  html.pgl-world-page body.b-refresh > .scene-tools .scene-controls__panel > .motion {
    position: relative !important;
    inset: auto !important;
    display: inline-flex !important;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    height: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0 5px;
    transform: none !important;
    font: 700 11px/1 Arial, sans-serif;
    white-space: nowrap;
  }

  html.pgl-world-page body.b-refresh > .scene-tools .scene-controls__panel > .time-mode {
    position: static !important;
    display: contents !important;
    width: auto;
    height: auto;
    min-width: 0;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  html.pgl-world-page body.b-refresh > .scene-tools .scene-controls__panel > .time-mode > button,
  html.pgl-world-page body.b-refresh > .scene-tools .scene-controls__panel > .horn {
    position: relative !important;
    inset: auto !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    height: 42px !important;
    min-height: 42px !important;
    flex: 0 1 auto !important;
    margin: 0;
    padding: 0 6px !important;
    overflow: hidden;
    font: 700 clamp(10px, .82vw, 12px)/1 Arial, sans-serif;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.pgl-world-page body.b-refresh > .scene-tools .scene-controls__panel > .horn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
  }

  html.pgl-world-page body.b-refresh > .scene-tools .scene-controls__panel .toggle {
    position: relative;
    inset: auto;
    flex: 0 0 30px;
    width: 30px;
    height: 16px;
    margin: 0;
    transform: none;
  }
}
