/* --------- composer (post form) --------- */
.composer {
  margin-top: 24px;
  padding: 18px;
  background: #0d1424;
  border: 4px solid var(--line);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.55);
}

.composer-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field--grow { flex: 1 1 100%; }

.field-label {
  font-family: var(--pixel);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.pixel-input,
.pixel-area {
  font-family: var(--body);
  font-size: 14px;
  color: var(--text);
  background: #060a12;
  border: 3px solid var(--line);
  padding: 10px 11px;
  outline: none;
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.6);
  transition: border-color 90ms linear, background 90ms linear;
  width: 100%;
}

.pixel-input { width: 190px; }
.pixel-area { resize: vertical; min-height: 78px; line-height: 1.5; }

.pixel-input:focus,
.pixel-area:focus {
  border-color: var(--cyan);
  background: #08101c;
}

.pixel-input::placeholder,
.pixel-area::placeholder { color: #55688a; }

.composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.swatches {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 26px;
  height: 26px;
  padding: 0;
  cursor: pointer;
  border: 3px solid var(--line);
  background: var(--sw);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
  transition: transform 60ms steps(2), border-color 60ms linear;
}

.swatch:hover { transform: translateY(-2px); }

.swatch[aria-pressed='true'] {
  border-color: var(--text);
  outline: 2px solid var(--sw);
  outline-offset: 2px;
}

.counter {
  font-family: var(--pixel);
  font-size: 8px;
  color: var(--muted);
  margin-left: 4px;
}

.counter.is-full { color: var(--gold); }

.composer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hint {
  font-size: 11.5px;
  color: #6d7f9e;
}

.hint b { color: var(--cyan); font-weight: 700; }

.toast {
  margin-top: 12px;
  padding: 9px 12px;
  font-size: 12.5px;
  border-left: 4px solid var(--lime);
  background: #101b14;
  color: #b7ffcb;
}

.toast.is-error {
  border-color: #ff5a6e;
  background: #1b0e12;
  color: #ffb3bd;
}

.toast[hidden] { display: none; }

.shake { animation: shake 260ms steps(2); }

@keyframes shake {
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

@media (max-width: 560px) {
  .composer { padding: 14px; }
  .pixel-input { width: 100%; }
  .field--name { flex: 1 1 100%; }
  .composer-actions { width: 100%; justify-content: space-between; }
}
