/* Compact composer actions keep the idea itself in the foreground. */
.composer-toolbar {
  margin-top: 6px;
}
.composer-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}
.attach-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.attach-button::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}
.attachment-picker {
  position: relative;
}
.attachment-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -3px;
  z-index: 20;
  width: 260px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow:
    0 6px 24px #202d2715,
    0 1px 3px #202d2708;
}
.attachment-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 61px;
  padding: 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  color: var(--ink);
  font-size: 13px;
}
.attachment-menu button:hover,
.attachment-menu button:focus-visible {
  background: #f5f3eb;
  outline: none;
}
.attachment-menu svg {
  flex-shrink: 0;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.attachment-menu small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--muted);
}
.attach-button:hover {
  background: #f5f2ec;
  border-color: #aeaaa1;
}
.composer-toolbar .submit-button {
  position: relative;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 10px;
  flex-shrink: 0;
}
.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.attachment-item {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #faf9f6;
}
.attachment-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}
.attachment-pdf {
  display: grid;
  place-items: center;
  background: #dde5d9;
  color: var(--brand);
  font-size: 9px;
  font-weight: 600;
}
.attachment-name {
  font-size: 11px;
  max-width: 175px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.attachment-remove {
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
}
.attachment-remove:hover {
  background: #ebe8df;
  color: var(--ink);
}
.attachment-help,
.attachment-error {
  font-size: 10px;
  line-height: 1.6;
  margin: 12px 0 0;
  color: var(--muted);
}
.attachment-error {
  color: var(--brand);
}
@media (max-width: 760px) {
  .composer-tools {
    gap: 10px;
  }
  .attachment-name {
    max-width: 160px;
  }
  .attachment-remove {
    width: 36px;
    min-height: 44px;
  }
}
.idea-composer {
  background: #fff;
  border: 1px solid #d8e0d6;
  border-radius: 18px;
  padding: 20px 22px 16px;
  box-shadow:
    0 8px 30px #324f3810,
    0 2px 5px #324f3805;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.idea-composer:focus-within {
  border-color: #92ac98;
  box-shadow: 0 8px 35px #324f3820;
}
.composer-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#design-idea {
  width: 100%;
  display: block;
  border: 0;
  outline: none;
  resize: vertical;
  min-height: 68px;
  background: transparent;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  padding: 0;
}
#design-idea::placeholder {
  color: #92988f;
}
.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
}
.composer-tools {
  flex-direction: row-reverse;
  gap: 10px;
}
.composer-hint {
  font-size: 11px;
  color: #939a92;
}
.composer-toolbar .submit-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.submit-button > span {
  display: none;
}
.submit-button svg {
  width: 19px;
  height: 19px;
}
.attach-button {
  border-color: #e3e6e0;
  width: 32px;
  height: 32px;
}
.attachment-menu {
  top: auto;
  bottom: calc(100% + 12px);
}
.new-landing .composer-wrap {
  z-index: 5;
  text-align: left;
}
.new-landing .new-composer {
  padding: 20px 22px 16px;
}
.new-landing .new-composer textarea {
  min-height: 68px;
  font-size: 15px;
  line-height: 1.7;
}
.new-landing .composer-toolbar .submit-button {
  border-radius: 50%;
}
.new-landing .attachment-menu {
  background: #fff;
  top: auto;
  bottom: calc(100% + 12px);
}
.new-landing .attachment-help,
.new-landing .attachment-error {
  margin-top: 12px;
  font-size: 11px;
}
.attachment-remove svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
@media (max-width: 640px) {
  .new-landing .new-composer {
    padding: 16px;
  }
  .new-landing .new-composer textarea {
    font-size: 16px;
  }
  .attach-button {
    width: 40px;
    height: 40px;
  }
  .new-landing .composer-toolbar .submit-button {
    width: 40px;
    height: 40px;
  }
}
