[hidden] { display: none !important; }

@media (max-width: 700px) {
  .scenario-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .scenario-main .select-wrap {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
  .scenario-main select {
    width: 100%;
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .demo-tag { grid-column: 1; grid-row: 2; }
  .state-control {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    margin-left: 0;
    border-left: 0;
    padding-left: 0;
  }
  .scenario-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    justify-content: stretch;
  }
  .scenario-actions .btn {
    white-space: nowrap;
    padding: 8px 5px;
    font-size: 10px;
  }
}
