.gen-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 4.6rem);
  border: 0;
  background: #faf6f0;
}
.gen-native { padding: 18px 18px 48px; }
.gen-tool {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.gen-card {
  background: #fff;
  border: 1px solid #eadfce;
  border-radius: 18px;
  padding: 16px;
}
.gen-card h1 { margin: 0 0 6px; font-size: 1.45rem; }
.gen-lead { margin: 0 0 14px; color: #57534e; }
.gen-field { display: grid; gap: 4px; margin-bottom: 10px; font-weight: 650; font-size: 0.92rem; }
.gen-slider { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; margin-bottom: 12px; font-weight: 700; font-size: 0.9rem; }
.gen-slider input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: #e56b1f; }
.gen-slider output { color: #c45f1a; font-variant-numeric: tabular-nums; }
.gen-field input,
.gen-field select {
  font: inherit;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #eadfce;
  background: #fff;
  width: 100%;
}
.gen-view canvas#gen-view {
  width: 100%;
  height: 440px;
  display: block;
  background: #8f8f8f;
  border-radius: 16px;
}
#gen-flat {
  display: block;
  width: min(280px, 100%);
  height: auto;
  margin-top: 12px;
  background: #fff;
  border-radius: 12px;
  image-rendering: pixelated;
}
.gen-note { color: #57534e; font-size: 0.92rem; margin: 12px 0; }
.gen-warn { color: #9a3412; font-size: 0.92rem; margin: 0 0 12px; }
.gen-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gen-status { margin-top: 10px; color: #44403c; font-size: 0.9rem; }
.gen-tabs { display: none; }
.vnav-item.is-active { background: rgba(196, 95, 26, 0.12); color: #9a3412; font-weight: 700; }

@media (max-width: 900px) {
  .gen-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 12px;
    background: rgba(250, 246, 240, 0.96);
    position: sticky;
    top: 0;
    z-index: 6;
  }
  .gen-tabs button {
    flex: 0 0 auto;
    border: 1px solid #eadfce;
    background: #fff;
    border-radius: 999px;
    padding: 7px 11px;
    font: inherit;
    font-size: 0.82rem;
  }
  .gen-tabs button.is-on { background: #c45f1a; color: #fff; border-color: #c45f1a; }
  .gen-tool { grid-template-columns: 1fr; }
  .gen-frame { height: calc(100vh - 8.2rem); }
  .gen-view canvas#gen-view { height: 320px; }
}
