/* Lățimea vitrinei, zoomul și lista de scurtături din editorul vizual de temă (I1-T, T-5). Se încarcă înaintea lui admin-theme-editor.css, deci câștigă prin specificitate; totul e sub .te. */

/* Iframe-ul are lățimea logică a dispozitivului (variabilele le scrie theme_editor/viewport.js) și e scalat din colțul de sus. Fără
   chenar: cu border și box-sizing: border-box viewportul din iframe ar avea 1278 px, nu 1280. */
.te .te-stage[data-device] { position: relative; display: block; overflow: auto; }
.te .te-stage[data-device] iframe {
  position: absolute;
  left: var(--te-x, 0);
  top: var(--te-y, 0);
  width: var(--te-vw, 100%);
  height: var(--te-vh, 100%);
  max-width: none;
  transform: scale(var(--te-scale, 1));
  transform-origin: 0 0;
  border: 0;
  box-shadow: 0 0 0 1px var(--te-border-strong);
}

/* Sub 900 px panourile sunt stivuite: vitrina are o înălțime proprie (iframe-ul e absolut, deci n-ar da una). */
@media (max-width: 900px) {
  .te .te-stage[data-device] { flex: none; height: calc(70vh + 1rem); }
}

/* Zoomul, ultimul rând din meniul „Mai multe” */
.te .te-zoom { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.25rem 0.625rem; }
.te .te-bar label[for="te-zoom"] { color: var(--te-text); font-size: 0.875rem; font-weight: 600; margin: 0; }
.te .te-bar select#te-zoom {
  flex: 1;
  width: auto;
  min-height: 2rem;
  padding: 0 0.5rem;
  background: #fff;
  color: #1b211d;
  border: 1px solid var(--te-border-strong);
  border-radius: 6px;
  font: inherit;
  font-size: 0.875rem;
}
.te .te-bar select#te-zoom:focus-visible { outline: 2px solid var(--te-accent); outline-offset: 2px; }

/* Lista de scurtături */
.te .te-dialog kbd {
  display: inline-block;
  min-width: 1.5rem;
  padding: 0 0.375rem;
  border: 1px solid var(--te-border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--te-surface-2);
  color: var(--te-text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}
.te .te-keys { margin: 0.75rem 0; display: grid; gap: 0.5rem; }
.te .te-keys > div { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); gap: 0.75rem; align-items: baseline; }
.te .te-keys dt { font-weight: 600; }
.te .te-keys dd { margin: 0; }
.te .te-key-option { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.5rem; align-items: center; margin: 1rem 0; }
.te .te-key-option label { margin: 0; }
.te .te-key-option small { grid-column: 2; color: var(--te-muted); }
