/* The desktop editor uses horizontal control strips so the timeline owns
   the remaining height. Touch layouts keep their existing arrangement. */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .app-shell {
    max-width: none;
  }

  .editor {
    display: grid;
    grid-template-columns:
      minmax(180px, 0.8fr) minmax(160px, 0.8fr)
      minmax(220px, 1fr) minmax(290px, 1.2fr);
    grid-template-rows: 60px 52px auto minmax(160px, 1fr) 64px 24px;
    min-height: 360px;
    padding: 0 12px;
  }

  .header {
    display: contents;
  }

  .header .brand {
    grid-area: 1 / 1 / 2 / 2;
    gap: 9px;
    min-width: 0;
    padding-left: 4px;
  }

  .header .brand h1 {
    font-size: 18px;
    letter-spacing: -0.4px;
    white-space: nowrap;
  }

  .brand-mark {
    width: 32px;
    height: 36px;
    border-radius: 10px;
  }

  .brand-mark svg {
    width: 22px;
    height: 22px;
  }

  .header-actions {
    grid-area: 1 / 4 / 2 / 5;
    justify-content: flex-end;
    gap: 6px;
  }

  .project-bar {
    grid-area: 1 / 2 / 2 / 4;
    min-width: 0;
    padding: 0 20px;
    gap: 12px;
  }

  .project-bar > div:first-child {
    min-width: 0;
  }

  .project-bar h2 {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.4;
  }

  .project-bar p {
    font-size: 11px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
  }

  .history {
    flex-shrink: 0;
    gap: 0;
  }

  .toolbar {
    grid-area: 2 / 1 / 3 / 3;
    padding: 4px 12px 4px 0;
    gap: 8px;
    min-width: 0;
    border-top: 1px solid #344454;
  }

  .add-audio {
    height: 44px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 9px;
  }

  .zoom-controls {
    gap: 0;
  }

  .edit-tools {
    grid-area: 2 / 3 / 3 / 5;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    padding: 4px 0 4px 12px;
    border-top: 1px solid #344454;
    background: transparent;
  }

  .edit-tools button {
    flex-direction: row;
    min-width: 84px;
    height: 44px;
    padding: 0 12px;
    gap: 7px;
    border-radius: 9px;
    font-size: 14px;
  }

  .edit-tools button svg {
    width: 20px;
    height: 20px;
  }

  .collaboration-status {
    grid-area: 3 / 1 / 4 / -1;
    margin-bottom: 4px;
  }

  .timeline {
    grid-area: 4 / 1 / 5 / -1;
    min-width: 0;
    min-height: 0;
    border-radius: 9px;
  }

  .transport {
    grid-area: 5 / 1 / 6 / 4;
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 18px;
    padding: 8px 16px 8px 4px;
  }

  .time-readout {
    flex-shrink: 0;
    margin: 0;
    gap: 8px;
    justify-content: flex-start;
  }

  .time-readout strong {
    font-size: 25px;
    letter-spacing: -1px;
  }

  .time-readout > span {
    font-size: 12px;
  }

  .time-readout small {
    display: none;
  }

  .transport-controls {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    gap: 8px;
  }

  .transport-controls > .icon-button,
  .nudge {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .nudge {
    gap: 1px;
  }

  .nudge svg {
    width: 18px;
    height: 18px;
  }

  .play-button {
    height: 46px;
    min-width: 64px;
    max-width: 112px;
    border-radius: 12px;
  }

  .split-button {
    flex-direction: row;
    height: 44px;
    width: 80px;
    flex-shrink: 0;
    gap: 6px;
    border-radius: 10px;
  }

  .split-button span {
    font-size: 14px;
  }

  .selection-bar {
    grid-area: 5 / 4 / 6 / 5;
    min-width: 0;
    padding: 8px 0 8px 12px;
    gap: 12px;
    background: transparent;
  }

  .selection-bar > span {
    font-size: 12px;
  }

  .mix-button {
    flex-shrink: 0;
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 10px;
  }

  .edition-bar {
    grid-area: 6 / 1 / 7 / -1;
    min-width: 0;
    padding: 0 4px 4px;
    font-size: 11px;
  }

  .edition-bar button {
    padding: 0;
    font-size: 11px;
  }

  .toast {
    bottom: 96px;
  }
}
