form.ovi-composer, #compose.ovi-composer, .ovi-room form.ovi-composer {
  display: block; position: relative; min-width: 0; margin: 8px 0 0; padding: 0; border: 0;
  --ovi-panel: var(--workspace-bg,#1e1c22);
  --ovi-edge: var(--workspace-line,#504953);
  --ovi-action: #ff60d3;
}
.ovi-composer[hidden], .ovi-composer [hidden] { display:none !important; }
.ovi-bar {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: end; gap: 2px;
  padding: 4px; border: 1px solid var(--ovi-edge); border-radius: 14px;
  background: color-mix(in srgb,var(--ovi-panel) 93%,currentColor);
}
.ovi-bar:focus-within { border-color: var(--ovi-action); }
form.ovi-composer .ovi-bar textarea {
  align-self:center; min-height: 36px; height: auto; max-height: 18dvh; padding: 8px 3px;
  border: 0; background: transparent; color: inherit; font: inherit; line-height:1.35;
  resize: none; field-sizing: content; outline: none;
}
.ovi-bar textarea::placeholder { opacity: .78; color: inherit; }
form.ovi-composer .ovi-bar button, .ovi-composer .ovi-picker button, .ovi-composer .ovi-tray button {
  font:inherit; border:0; background:transparent; color:inherit; cursor:pointer;
}
form.ovi-composer .ovi-bar button {
  width: 36px; height: 36px; display:grid; place-items:center; padding: 6px; border-radius: 10px;
}
form.ovi-composer .ovi-bar button:hover, .ovi-composer .ovi-picker button:hover {
  background:color-mix(in srgb, currentColor 12%, transparent);
}
form.ovi-composer .ovi-bar button[type=submit] {
  color: #20101c; background:var(--ovi-action);
}
.ovi-bar svg {width:20px;height:20px;}
.ovi-compose-note:empty {display:none;}
.ovi-composer .ovi-compose-note {font-size:.84rem;margin:5px 0;}
.ovi-bar .ovi-tray {grid-column:1/-1;display:flex;gap:8px;min-width:0;overflow-x:auto;padding:6px;border-bottom:1px solid var(--ovi-edge);}
.ovi-draft-file {position:relative;display:grid;gap:2px;width:120px;flex:none;min-width:0;padding:5px;
  background:var(--ovi-panel);border-radius:9px;}
.ovi-draft-file > img,.ovi-draft-file > picture,.ovi-draft-file > .ovi-file-kind {width:100%;height:74px;border-radius:5px;}
.ovi-draft-file img,.ovi-draft-file picture img {display:block;width:100%;height:74px;object-fit:contain;}
.ovi-draft-file .ovi-file-kind {display:grid;place-items:center;font-size:14px;font-weight:650;letter-spacing:.03em;color:inherit;background:color-mix(in srgb,currentColor 8%,transparent);}
.ovi-draft-file > span:not(.ovi-file-kind),.ovi-reply-draft span {min-width:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:.85rem;}
.ovi-draft-file small {font-size:.72rem;opacity:.78;}
form.ovi-composer .ovi-draft-file button {position:absolute;top:5px;right:5px;border:1px solid #797079;
  width:28px;height:28px;min-height:28px;padding:0;background:#252126;color:white;border-radius:50%;font-size:18px;}
form.ovi-composer .ovi-draft-file button:hover {background:#473b47;}
.ovi-reply-draft {grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;padding-inline:8px;
  border-inline-start:3px solid var(--ovi-action);background:color-mix(in srgb,var(--ovi-action) 8%,transparent);}
.ovi-composer .ovi-picker {
  box-sizing:border-box; margin:auto; width: min(340px,calc(100vw - 24px)); max-height:80dvh; padding:13px;
  border:1px solid #59505c; border-radius:16px; background:#242127; color:#fff7fc; box-shadow:0 10px 40px #0008;
}
.ovi-picker::backdrop {background:#0007;}
.ovi-composer .ovi-picker .ovi-picker-head {display:flex;align-items:center;justify-content:space-between;height:auto;border:0;padding:0 0 8px;background:transparent;}
.ovi-composer .ovi-picker .ovi-picker-head button {font-size:1.4rem;}
.ovi-kinds, .ovi-choices {display:flex;flex-wrap:wrap;gap:4px;}
.ovi-composer .ovi-kinds button {min-height:36px;padding:5px 9px;border-radius:8px;}
.ovi-composer .ovi-kinds button[aria-pressed=true] {background:#514250;color:white;}
.ovi-choices {margin-top:10px;}
.ovi-composer .ovi-choices button {min-height:40px;min-width:40px;padding:4px;border-radius:8px;font-size:1.35rem;}
.ovi-expression {display:block;}
.ovi-expression img {display:block;max-width:100%;height:auto;border-radius:10px;}
.ovi-choices img {width:78px;}
.ovi-attachment {margin:6px 0;min-height:34px;}
.ovi-attachment img,.ovi-attachment video {display:block;max-width:min(100%,480px);max-height:36vh;object-fit:contain;border-radius:8px;}
.ovi-attachment video {width:auto;height:auto;max-width:min(100%,480px);max-height:min(58dvh,540px);background:#141216;}
.ovi-draft-file video {display:block;width:100%;height:74px;object-fit:contain;border-radius:5px;}
.ovi-composer[data-file-over] .ovi-bar {outline:2px dashed #ff60d3;outline-offset:-2px;}
.ovi-attachment button {max-width:100%;overflow-wrap:anywhere;font:inherit;font-size:.88rem;color:inherit;background:transparent;border:1px solid currentColor;border-radius:8px;padding:6px 10px;cursor:pointer;}
@media(pointer:coarse) {form.ovi-composer .ovi-bar button {width:40px;height:42px;}}
