.send {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
    padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
    background: #0f0f10;
    border-top: 2px solid var(--line2);
}

.send input, .send textarea { flex: 1; min-width: 0; }

.send textarea {
    resize: none;
    max-height: 120px;
    overflow-y: hidden;
    font: 16px/1.6 var(--serif);
}

.send button {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 34px;
    padding: 0;
}

.send-chip {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font: 11px var(--mono);
    color: var(--dim);
}

.send-chip[hidden] { display: none; }
.send-chip b { color: var(--accent); font-weight: 600; }

.send-files { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.send-files[hidden] { display: none; }

.send-file {
    position: relative;
    display: block;
    width: 54px;
    height: 54px;
    border: 1px solid var(--line2);
}

.send-file img { display: block; width: 100%; height: 100%; object-fit: cover; }

.send-file button {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 18px;
    height: 18px;
    padding: 0;
    font: 12px/1 var(--ui);
    color: #f0dcd8;
    background: var(--danger);
    border: 1px solid var(--danger);
}

.send-attach {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 34px;
    color: var(--dim);
    background: var(--panel);
    border: 1px solid var(--line2);
    cursor: pointer;
}

.send-attach:hover { color: var(--accent); border-color: var(--accent); }
.send-attach input { display: none; }

.send-note {
    flex-basis: 100%;
    font: 11px var(--mono);
    color: var(--dim);
}

.send.drag {
    background: #17130d;
    border-top-color: var(--accent);
}

.send.drag textarea,
.send.drag .send-attach {
    border-color: var(--accent);
}

