.question-form { padding: 22px 22px 16px; border: 1px solid #d9e3e8; border-radius: 20px; background: #fff; box-shadow: 0 6px 28px #243e5006, 0 1px 3px #243e5005; transition: border-color .18s, box-shadow .18s; }
.question-form:focus-within { border-color: #91b7bb; box-shadow: 0 0 0 3px #25616b0a, 0 8px 28px #243e5008; }
.question-form textarea { display: block; width: 100%; height: 112px; min-height: 112px; max-height: 112px; padding: 0 0 12px; border: 0; border-radius: 3px; resize: none; overflow-y: auto; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.9; }
.question-form textarea::placeholder { color: var(--muted); opacity: 1; }
.question-form textarea:focus-visible { outline: 2px solid #91b7bb; outline-offset: 6px; }
.question-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 13px; border-top: 1px solid #edf1f3; }
.type-field { display: flex; align-items: center; gap: 11px; min-width: 0; }
.type-field label { flex-shrink: 0; color: var(--muted); font-size: 12px; }
.type-field select { max-width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid #e3e9ed; border-radius: 9px; color: var(--ink); background: #f7f9fa; font-size: 13px; cursor: pointer; }
.site-page .submit-button { min-width: 132px; min-height: 44px; padding: 10px 18px; border-radius: 10px; }
.submit-button .site-icon { width: 16px; height: 16px; }
.field-hint { margin: 13px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.workspace { margin-top: 22px; scroll-margin-top: 24px; }
.generation-state { padding: 20px; border: 1px solid #d8e5ee; border-radius: 14px; background: #f0f6f6; }
.generation-state.error { border-color: #edcfc4; background: #fdf5f1; }
.generation-progress-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 15px; }
.generation-progress-heading strong { font-size: 16px; }
.generation-progress-heading > span { color: var(--muted); font-size: 11px; }
.generation-progress > p, .generation-state > p { color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.generation-progress > p { margin: 8px 0; }
.generation-state > p { margin: 10px 0 0; }
.generation-progress .generation-summary { color: #3a6c89; }
.generation-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 16px 0; list-style: none; }
.generation-step { display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: center; gap: 4px 6px; min-width: 0; padding: 10px; border: 1px solid #dce5ec; border-radius: 7px; color: var(--muted); background: #fff; font-size: 11px; }
.generation-step.completed { color: #396e54; border-color: #d1e4d9; background: #f1f8f3; }
.generation-step.running { color: #356c98; border-color: #bdd7e8; background: #e7f2fa; }
.generation-step.failed { color: #a25440; border-color: #edcfc4; background: #fdf1ec; }
.step-mark { width: 14px; text-align: center; font-size: 13px; }
.generation-step small { display: block; grid-column: 2; font-size: 10px; }
.asset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.asset-card { min-width: 0; padding: 12px; border: 1px solid #dce7ee; border-radius: 7px; background: #fff; }
.asset-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.asset-card h3 { margin: 0; font-size: 12px; }
.asset-card strong { font-size: 11px; font-weight: 550; color: #3a6c89; }
.asset-card p { margin: 8px 0 0; font-size: 11px; color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; }
.asset-card .asset-retry { color: #866238; }
.asset-card details { margin-top: 10px; font-size: 11px; }
.asset-card summary { color: #3a6c89; cursor: pointer; }
.asset-card details ul { padding-left: 15px; overflow-wrap: anywhere; }
.asset-failure-notice, .error-note { padding: 10px 12px; border-radius: 7px; color: #974c36 !important; background: #fbefea; overflow-wrap: anywhere; }
.generation-liveness { margin: 12px 0 0 !important; font-size: 11px !important; }
.connection-note { margin-top: 12px; border: 1px solid #eadbbd; border-radius: 7px; padding: 10px 12px; color: #806539; background: #fffaed; font-size: 12px; line-height: 1.8; }
[data-requery] { margin: 4px 0 0 6px; padding: 5px 9px; border: 1px solid #dac99f; border-radius: 6px; color: #806539; background: #fff; }
.site-page .generated-game-link { display: inline-flex; align-items: center; justify-content: center; margin-top: 15px; padding: 10px 16px; border: 1px solid transparent; border-radius: 8px; color: #fff; background: var(--accent); font-size: 13px; font-weight: 600; }
.site-page .generated-game-link:hover { background: var(--accent-hover); }
.site-page .diagnostic-link { padding: 7px 11px; color: var(--muted); background: #fff; border-color: #dce4eb; font-size: 11px; }
.site-page .diagnostic-link:hover { background: #f5f7f9; border-color: #9ab6c9; }
@media (max-width: 640px) {
  .question-form { padding: 18px 16px 14px; border-radius: 16px; }
  .question-form textarea::placeholder { font-size: 14px; }
  .question-toolbar { gap: 10px; }
  .type-field { gap: 6px; }
  .type-field select { padding-inline: 6px; font-size: 12px; }
  .site-page .submit-button { min-width: 112px; padding-inline: 13px; font-size: 13px; }
  .field-hint { font-size: 11px; }
  .generation-state { padding: 16px 14px; }
  .generation-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .asset-grid { grid-template-columns: 1fr; }
}
