/* ===== Адаптивность ===== */
@media (max-width: 1180px) {
  .controls-panel { flex-basis: 330px; width: 330px; }
}

@media (max-width: 860px) {
  body { overflow: auto; height: auto; min-height: 100dvh; }
  .app-container { min-height: 100dvh; height: auto; }
  .md-top-app-bar { padding: 10px 14px; }
  .md-top-app-bar .actions { gap: 6px; }
  .md-top-app-bar .actions .md-btn-tonal span:last-child { display: none; }
  .main-workspace { flex-direction: column; height: auto; overflow: visible; }
  .controls-panel {
    width: 100%;
    flex: 0 0 auto;
    border-right: 0;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
  }
  .panel-scroll { max-height: none; overflow: visible; }
  .preview-stage { min-height: 64vh; height: 64vh; padding: 14px 14px 76px; }
  .stage-floating-bar { bottom: 12px; right: 12px; left: 12px; justify-content: space-between; }
  .md-fab { height: 44px; padding: 0 14px; font-size: 13px; }
  .variations-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .md-top-app-bar .brand .title { font-size: 15px; }
  .version-tag { display: none; }
  .panel-scroll { padding: 10px; gap: 10px; }
  .control-section { padding: 12px; }
  .segmented-grid { gap: 5px; }
  .quick-variant-row { grid-template-columns: repeat(2, 1fr); border-radius: 12px; }
  .preview-stage { min-height: 58vh; height: 58vh; padding-bottom: 76px; }
  .info-badge { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .md-fab span:last-child { display: none; }
}