.route-levels-dialog.studio-dialog { width: min(790px,calc(100% - 24px)); }
.levels-editor { display: grid; gap: 11px; min-width: 0; color: #283d32; }
.levels-editor p,.levels-editor h3 { margin: 0; }
.levels-editor h3 { margin-top: 4px; font-size: 15px; color: var(--ink); }
.levels-editor .levels-metadata { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(190px,100%),1fr)); gap: 8px 13px; }
.levels-editor .field { margin: 0; }
.levels-editor .levels-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.levels-editor .levels-table th { text-align: left; padding: 7px 3px; vertical-align: bottom; }
.levels-editor .levels-table input { width: 100%; min-width: 0; border: 1px solid var(--line-mid); border-radius: 4px; padding: 5px; min-height: 34px; color: var(--ink); background: #fffefa; font: inherit; }
.levels-editor .levels-table td { border-top: 1px solid var(--line); padding: 6px 3px; font-variant-numeric: tabular-nums; }
.levels-editor .levels-table td:nth-child(n+5) { white-space: nowrap; }
.levels-editor .levels-tag { width: 20%; }
.levels-editor .levels-status { padding: 8px 11px; border-left: 3px solid #658473; background: #edf2eb; line-height: 1.5; }
.levels-editor .levels-chart { width: 100%; background: #f9faf6; border: 1px solid #ccd5ca; }
.levels-editor .levels-chart:empty { display: none; }
.levels-editor .levels-chart svg { display: block; width: 100%; height: auto; }
.levels-editor .levels-sample { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.levels-editor .levels-sample label { width: min(220px,100%); }
.levels-editor .levels-readout { align-self: center; font-size: 12px; }
.levels-editor .button { justify-self: start; }
.levels-editor .levels-editor-downloads { display: flex; flex-wrap: wrap; gap: 8px; }
.levels-editor .levels-stale { padding: 8px; border-left: 3px solid #a2562d; background: #fbf1df; }
.levels-editor .levels-delete { border-top: 1px solid var(--line); padding-top: 8px; color: #813d2c; }
.levels-editor .levels-delete > * { margin-bottom: 5px; }
.levels-editor .levels-delete summary { cursor: pointer; }
@media (max-width:640px) {
  .route-levels-dialog.studio-dialog { padding: 15px; }
  .levels-editor .levels-table,.levels-editor .levels-table tbody { display: block; }
  .levels-editor .levels-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .levels-editor .levels-table tr { border: 1px solid var(--line-mid); border-radius: 5px; padding: 8px; display: grid; gap: 5px 10px; grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 9px; }
  .levels-editor .levels-table td { display: grid; align-content: start; gap: 2px; padding: 0; border: 0; }
  .levels-editor .levels-table td::before { content: attr(data-col); color: var(--muted); font-size: 11px; }
  .levels-editor .levels-table .levels-tag { width: auto; }
  .levels-editor .levels-table .levels-remove { grid-column: 1/-1; justify-self: start; }
  .levels-editor .levels-table .button { min-height: 36px; }
  .levels-editor .levels-metadata { grid-template-columns: 1fr; }
}
