/* Composer, textarea, send control, dock hints */

.dock {
  flex-shrink: 0;
  padding: 0.65rem 1rem 0.85rem;
  border-top: 1px solid var(--stroke);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
  max-width: 52rem;
  width: 100%;
  margin: 0 auto;
}

.composer {
  display: flex;
  gap: 0.55rem;
  align-items: flex-end;
  padding: 0.55rem 0.55rem 0.55rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.2);
}

.composer-input {
  flex: 1;
  resize: none;
  min-height: var(--composer-textarea-min-h);
  max-height: var(--composer-textarea-max-h);
  padding: 0.7rem 0.5rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-y: auto;
}

@supports (field-sizing: content) {
  .composer-input {
    field-sizing: content;
    height: auto;
    min-height: var(--composer-textarea-min-h);
    max-height: var(--composer-textarea-max-h);
  }
}

.composer-input::placeholder {
  color: var(--text-faint);
}
.composer-input:focus {
  outline: none;
}
.composer:focus-within {
  border-color: rgba(232, 160, 136, 0.35);
  box-shadow:
    0 -8px 40px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(232, 160, 136, 0.12);
}

.send-btn {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(155deg, var(--accent) 0%, #c97a5c 100%);
  color: #1a1210;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out),
    filter var(--t-fast) var(--ease-out);
}
.send-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(232, 160, 136, 0.28);
  filter: brightness(1.03);
}
.send-btn:active:not(:disabled) {
  transform: translateY(0);
}
.send-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.send-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.send-glyph {
  display: block;
}

.dock-hint {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  color: var(--text-faint);
  text-align: center;
}

.dock-hint kbd {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.12rem 0.38rem;
  border-radius: 6px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  margin: 0 0.1rem;
}

.dock-api {
  margin: 0.45rem 0 0;
  font-size: 0.68rem;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.5;
  word-break: break-all;
}

.dock-api-label {
  display: inline-block;
  margin-right: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.62rem;
  color: var(--text-faint);
}

.dock-api code {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--ok);
}

.dock-api-sep {
  margin: 0 0.25rem;
  opacity: 0.5;
}
