/* The workbench creation form; editor and admin controls keep their own layout. */
#create {
  container: creation / inline-size;
  max-width: 720px;
}

#create h1 { font-size: 32px; line-height: 1.4; letter-spacing: -.8px; }
#create .hero-description { margin-top: 10px; font-size: 14px; color: #7b807c; }

#create .prompt-composer {
  margin-top: 26px;
  padding: 20px 16px 14px;
  border: 1px solid #e3e8e3;
  border-radius: 20px;
  background: #fafbf9;
  box-shadow: 0 6px 28px #263c2105;
}
#create .prompt-composer:focus-within {
  border-color: #a5b5a7;
  box-shadow: 0 0 0 3px #64816b0b;
}
#create textarea {
  min-height: 88px;
  height: 88px;
  max-height: 184px;
  padding: 0 4px;
  font-size: 16px;
  line-height: 1.7;
  color: #28322b;
}
#create textarea::placeholder { color: #929992; }
#create .composer-bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e9ede7;
}
#create .dimension-picker { gap: 2px; padding: 3px; border-radius: 12px; background: #eef1eb; }
#create .dimension-picker span {
  min-height: 38px;
  padding: 8px 11px;
  gap: 6px;
  border-radius: 9px;
  color: #7b837b;
  font-size: 13px;
  white-space: nowrap;
}
#create .dimension-picker input:checked + span {
  color: #354739;
  background: #fff;
  box-shadow: 0 1px 4px #263c2110;
}
#create .dimension-picker label:hover span { color: #354739; }
#create .dimension-picker input:focus-visible + span { outline-color: #71957c; outline-offset: 1px; }
#create .dimension-picker .icon { width: 16px; height: 16px; }
#create .creation-model-row {
  justify-content: flex-end;
  flex-wrap: nowrap;
  min-width: 0;
  gap: 0;
  padding: 0;
}
#create .creation-model-row > .studio-select {
  flex: 0 1 205px;
  width: 100%;
  max-width: 205px;
  margin: 0;
}
#create .creation-model-row .studio-select-trigger {
  min-height: 44px;
  gap: 8px;
  padding: 10px 11px;
  border-color: transparent;
  border-radius: 11px;
  background: transparent;
  color: #657367;
  font-size: 12px;
}
#create .creation-model-row .studio-select-trigger:hover:not(:disabled) { background: #f0f3ed; border-color: #e1e7dc; }
#create .creation-model-row .studio-select-trigger[aria-expanded="true"] { background: #fff; border-color: #a5b5a7; }
#create .create-button {
  display: inline-flex;
  grid-column: -2 / -1;
  width: auto;
  height: 44px;
  min-height: 44px;
  padding: 0 15px;
  gap: 8px;
  border-radius: 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
#create .create-button:disabled { background: #e3e7e1; color: #969e93; opacity: 1; }
#create .create-button .icon { width: 17px; height: 17px; }
#create .idea-suggestions { flex-wrap: wrap; gap: 8px; margin-top: 18px; }
#create .idea-suggestions button {
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border-color: #e9ede7;
  border-radius: 20px;
  color: #737c72;
  font-size: 12px;
  white-space: nowrap;
}
#create .idea-suggestions button:hover { border-color: #d6dfd1; background: #f6f8f3; color: #354739; }
#create .idea-suggestions button .icon { width: 15px; height: 15px; color: inherit; }

@container creation (max-width: 560px) {
  #create .composer-bottom { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  #create .dimension-picker { grid-column: 1 / -1; justify-self: start; }
  #create .creation-model-row { justify-content: flex-start; }
  #create .creation-model-row .studio-select-trigger { padding-left: 8px; }
}

@media (max-width: 767px) {
  #create h1 { font-size: 27px; letter-spacing: -.6px; }
  #create .hero-description { margin-top: 8px; font-size: 13px; }
  #create .prompt-composer { margin-top: 22px; padding: 18px 13px 12px; border-radius: 18px; }
  #create .idea-suggestions { gap: 6px; margin-top: 14px; }
  #create .idea-suggestions button { gap: 5px; min-height: 44px; padding: 8px 10px; font-size: 11px; }
}

@media (max-width: 370px) {
  #create h1 { font-size: 25px; }
  #create .idea-suggestions button { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) { #create .prompt-composer { transition: none; } }
