/* Loading Screen Editor — preview chrome around the live HUD */

.lse-app.de-app {
  grid-template-columns: 1fr min(380px, 34vw);
}

.lse-main.de-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px;
  gap: 10px;
  background: #0c0e12;
}

.lse-preview-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 10px;
}

.lse-preview {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 1280px;
  border: 1px solid #2a3140;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.lse-preview--ratio-16-9 {
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  height: auto;
  max-height: calc(100vh - 180px);
}

.lse-preview--ratio-16-10 {
  aspect-ratio: 16 / 10;
  flex: 0 0 auto;
  height: auto;
  max-height: calc(100vh - 180px);
}

.lse-preview--mobile {
  width: min(720px, 100%);
  aspect-ratio: 9 / 16;
  flex: 0 0 auto;
  max-height: calc(100vh - 180px);
}

.lse-preview--full {
  flex: 1 1 auto;
  aspect-ratio: auto;
  max-height: none;
}

.lse-preview .shrine-loading-hud {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

.lse-preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 0 4px;
}

.lse-toolbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #8b95a8;
}

.lse-toolbar__item .de-select {
  min-width: 148px;
}

.lse-sidebar .de-section {
  margin-bottom: 0;
}

.lse-save-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 4px;
  margin-top: 8px;
  background: linear-gradient(180deg, transparent, #10131a 24%);
}

.lse-control {
  margin-bottom: 10px;
}

.lse-control:last-child {
  margin-bottom: 0;
}

.lse-color-row {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 8px;
  align-items: center;
}

.lse-color-row input[type="color"] {
  width: 52px;
  height: 32px;
  padding: 0;
  border: 1px solid #2a3140;
  border-radius: 4px;
  background: #0f1218;
  cursor: pointer;
}

.lse-note {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.45;
  color: #8b95a8;
}

.de-textarea {
  width: 100%;
  min-height: 72px;
  padding: 8px 10px;
  border: 1px solid #2a3140;
  border-radius: 6px;
  background: #0f1218;
  color: #e8eaed;
  font: inherit;
  resize: vertical;
}

.de-textarea:focus {
  outline: none;
  border-color: #4a7cff;
  box-shadow: 0 0 0 2px rgba(74, 124, 255, 0.22);
}
