* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, #060816, #0a1030);
  overflow: hidden;
}

.app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.header {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.title {
  font-size: 16px;
  font-weight: 750;
}

.subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.main {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 14px;
  padding: 14px;
  flex: 1;
  align-items: start;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.sidebar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 14px;
  backdrop-filter: blur(10px);
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
}

.stageWrap {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 12px;
  position: sticky;
  top: 14px;
  align-self: start;
}

.blockTitle {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 10px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.select,
.input {
  height: 34px;
  border-radius: 10px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.9);
  width: 100%;
}

input[type="checkbox"].input {
  height: 16px;
  width: 16px;
  padding: 0;
}

.button {
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 0 12px;
}

.buttonPrimary {
  border-color: rgba(120, 164, 255, 0.35);
  background: rgba(120, 164, 255, 0.25);
}

.buttonActive {
  border-color: rgba(120, 164, 255, 0.7);
  background: rgba(120, 164, 255, 0.22);
}

.buttonDanger {
  border-color: rgba(255, 88, 120, 0.35);
  background: rgba(255, 88, 120, 0.18);
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
  margin: 14px 0;
}

.hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: -6px;
  margin-bottom: 10px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
}

.assetList {
  display: grid;
  gap: 8px;
}

.assetItem {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.18);
}

.assetItemSelected {
  border-color: rgba(120, 164, 255, 0.55);
  background: rgba(120, 164, 255, 0.14);
}

.assetName {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smallButton {
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 0 10px;
}

.stage {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  background: radial-gradient(900px 550px at 40% 30%, rgba(120, 164, 255, 0.25), transparent 60%), rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.stageHint {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.status {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  min-height: 16px;
}

@media (max-width: 900px) {
  .main {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .row {
    grid-template-columns: 1fr;
  }
}
