.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

#messageInput {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  writing-mode: horizontal-tb !important;
  overflow-x: hidden;
  overflow-y: auto;
}

.mode-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -3px 0 10px;
}

.mode-tabs button {
  border: 1px solid #303943;
  border-radius: 999px;
  background: #10151a;
  color: #9da8b3;
  padding: 6px 12px;
  font-size: 11px;
  line-height: 1.2;
}

.mode-tabs button:hover {
  border-color: #667842;
  color: #dce9ba;
}

.mode-tabs button.active {
  border-color: #758b3d;
  background: #273216;
  color: #e6f7ae;
}

.creative-options {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 0 10px;
}

.creative-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8f9aa5;
  font-size: 10px;
}

.creative-options select {
  border: 1px solid #303943;
  border-radius: 8px;
  background: #0e1317;
  color: #dce3e9;
  padding: 6px 24px 6px 8px;
  font-size: 11px;
}

.generation-card {
  margin-top: 12px;
  border: 1px solid #35412b;
  border-radius: 14px;
  background: #111712;
  overflow: hidden;
  max-width: 620px;
}

.generation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  color: #dfe9c0;
  font-size: 12px;
}

.generation-head span {
  color: #92a071;
  font-size: 10px;
}

.generation-progress {
  height: 3px;
  background: #20291a;
  overflow: hidden;
}

.generation-progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width .35s;
}

.generation-media {
  display: grid;
  place-items: center;
  min-height: 180px;
  background: #080b09;
}

.generation-media img,
.generation-media video {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #080b09;
}

.generation-pending {
  padding: 34px 18px;
  color: #9faa89;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}

.generation-error {
  padding: 18px;
  color: #ffb6b2;
  font-size: 12px;
  line-height: 1.7;
}

.generation-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 11px 14px;
  border-top: 1px solid #273020;
}

.generation-actions a {
  border: 1px solid #3b4930;
  border-radius: 8px;
  padding: 7px 10px;
  color: #cfdf9f;
  font-size: 11px;
}

@media (max-width: 650px) {
  .mode-tabs { margin-top: 0; }
  .creative-options { gap: 6px; }
  .creative-options label { flex: 1; min-width: 92px; }
  .creative-options select { width: 100%; padding-right: 18px; }
  .generation-media { min-height: 130px; }
}
