.composer-wrap {
  padding: 0 12px 12px;
  background: rgba(243, 242, 238, 0.92);
}

.composer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: 0 10px 28px rgba(23, 23, 20, 0.06);
}

#prompt {
  min-height: 76px;
  max-height: 260px;
  padding: 4px 6px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  resize: none;
  box-shadow: none;
  font-size: 16px;
  line-height: 1.55;
}

#prompt:focus {
  box-shadow: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.attachment-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attachment-tray.hidden {
  display: none;
}

.attachment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 104px;
  min-width: 0;
}

.attachment-thumb {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 16px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--surface-muted);
}

.attachment-file-icon {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(23, 23, 20, 0.08), rgba(23, 23, 20, 0.02)),
    var(--surface-muted);
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.attachment-meta {
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  word-break: break-word;
}

.attachment-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 999px;
  background: rgba(23, 23, 20, 0.82);
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.composer-note {
  flex: 1;
  min-width: 160px;
  font-size: 12px;
  line-height: 1.5;
}

.composer-actions {
  display: flex;
  gap: 8px;
}

#voiceInputBtn[aria-pressed="true"] {
  background: rgba(198, 67, 52, 0.14);
  color: #8e261f;
}

#voiceInputBtn[data-voice-phase="transcribing"] {
  opacity: 0.72;
}

#autoContinueBtn[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

.primary {
  background: var(--accent);
  color: #fff;
}

.primary[data-primary-action="interrupt"] {
  background: rgba(252, 234, 231, 0.92);
  color: var(--warn);
}

.primary[data-primary-action="steer"] {
  background: #111;
  color: #fff;
}

.secondary {
  background: var(--accent-soft);
  color: var(--text);
}

.ghost {
  background: var(--surface-muted);
  color: var(--text);
}

.danger {
  background: rgba(252, 234, 231, 0.92);
  color: var(--warn);
}
