/* Focused generator workspaces: desktop controls beside results, stacked on small screens. */
.gw {
  --gw-panel: #241d35;
  --gw-border: #655078;
  --gw-muted: #c2b7d4;
  color: #f4f0fa;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
}
.gw * { box-sizing: border-box; }
.gw .gw-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px;
  margin-bottom: 22px;
  border: 1px solid var(--gw-border);
  border-radius: 20px;
  background: linear-gradient(120deg, #392751, #211b32);
}
.gw .gw-eyebrow { color: #d7c4f4; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.gw h1 { margin: 12px 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.2; }
.gw h2 { margin: 0 0 16px; font-size: 21px; }
.gw p { line-height: 1.65; }
.gw .gw-badges, .gw .gw-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gw .gw-badges span { border: 1px solid #735b8e; padding: 5px 10px; border-radius: 20px; font-size: 12px; }
.gw .gw-steps { min-width: 190px; color: #e0d6ec; line-height: 2.2; }
.gw .gw-layout { display: grid; grid-template-columns: minmax(280px, 350px) minmax(0, 1fr); gap: 20px; align-items: start; }
.gw .gw-panel { min-width: 0; padding: 22px; background: var(--gw-panel); border: 1px solid var(--gw-border); border-radius: 15px; }
.gw label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.gw .gw-field { margin-bottom: 18px; }
.gw input, .gw select, .gw textarea {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  background: #171321;
  color: #f4f0fa;
  border: 1px solid #79688b;
  border-radius: 8px;
  font: inherit;
}
.gw textarea { min-height: 120px; resize: vertical; }
.gw button, .gw .gw-file-label {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #8c72a8;
  border-radius: 9px;
  background: #3b2c50;
  color: #fff;
  font: 600 14px system-ui;
  cursor: pointer;
  margin: 0;
}
.gw button:hover:not(:disabled), .gw .gw-file-label:hover { background: #563b73; }
.gw button:disabled { opacity: .45; cursor: not-allowed; }
.gw .gw-primary { background: #8050c6; border-color: #b398d9; min-width: 140px; }
.gw :focus-visible { outline: 3px solid #d2aaff; outline-offset: 3px; }
.gw .gw-file-label input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; padding: 0; }
.gw .gw-file-label:focus-within { outline: 3px solid #d2aaff; }
.gw .gw-status { margin: 0 0 20px; padding: 14px 18px; border: 1px solid #71588c; border-radius: 10px; background: #30233f; line-height: 1.5; }
.gw .gw-error { border-color: #f695a7; color: #ffcad3; }
.gw .gw-toolbar { display: grid; grid-template-columns: minmax(140px, 1fr) 140px 120px; gap: 12px; margin: 18px 0; }
.gw .gw-note { color: var(--gw-muted); font-size: 14px; line-height: 1.65; }
.gw .gw-results { max-height: 680px; overflow: auto; margin: 20px 0; min-height: 80px; }
.gw .gw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 14px; align-items: start; }
.gw .gw-card { border: 1px solid #6a527f; padding: 18px; border-radius: 12px; background: #1b1728; min-width: 0; }
.gw dl { margin: 0 0 18px; }
.gw dt { font-size: 12px; color: #cdb9e6; margin: 12px 0 5px; }
.gw dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.gw table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gw th, .gw td { text-align: left; padding: 12px; border-bottom: 1px solid #55425f; vertical-align: top; min-width: 120px; max-width: 480px; overflow-wrap: anywhere; white-space: pre-wrap; }
.gw th { background: #352747; position: sticky; top: 0; }
.gw .gw-pagination { justify-content: center; margin-top: 20px; }
.gw .gw-details { margin-top: 22px; }
.gw [hidden] { display: none !important; }
.gw:fullscreen { max-width: none; background: #15111e; overflow: auto; }
.gw:fullscreen .gw-hero { padding: 18px 24px; }
@media (max-width: 850px) {
  .gw { padding: 12px; }
  .gw .gw-layout { grid-template-columns: 1fr; }
  .gw .gw-hero { display: block; padding: 24px; }
  .gw .gw-steps { display: none; }
  .gw .gw-toolbar { grid-template-columns: 1fr 1fr; }
  .gw .gw-toolbar > div:first-child { grid-column: 1 / -1; }
  .gw .gw-panel { padding: 16px; }
}
/* Keep primary actions and reusable-settings actions visually separated. */
.gw #gwForm > .gw-actions,
.gw #gwForm + hr + .gw-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.gw #gwForm > .gw-actions { margin-top: 22px; }
.gw #gwForm + hr {
  display: block;
  height: 0;
  margin: 22px 0;
  border: 0;
  border-top: 1px solid #594366;
}
.gw #gwForm > .gw-actions button,
.gw #gwForm + hr + .gw-actions > * {
  min-width: 0;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
