:root {font:16px/1.45 "Inter",system-ui,sans-serif;color:#192f36;background:#eef4f3}
* {box-sizing:border-box}
body {margin:0}
.room,.login {background:white;border:1px solid #cdddda;border-radius:14px;margin:18px auto;max-width:860px;overflow:hidden}
.room {height:calc(100dvh - 36px);display:grid;grid-template-rows:auto 1fr auto}
header,footer,.tools {display:flex;align-items:center;justify-content:space-between;gap:10px}
header,#compor,.login {padding:16px 22px}
header {border-bottom:1px solid #d8e4e2}
h1 {font-size:1.45rem;margin:0;letter-spacing:-.03em}
small {color:#006655;letter-spacing:.12em;font-weight:750;font-size:.68rem}
label,.meta,#status,#fila {font-size:.84rem}
label {display:grid;gap:3px}
input,textarea {font:inherit;color:inherit;border:1px solid #afc5bf;border-radius:7px;padding:8px;background:white}
header input {width:150px}
button,.file {font:inherit;font-weight:600;cursor:pointer;color:#fff;background:#006855;border:0;border-radius:7px;padding:8px 14px}
button:disabled {opacity:.6;cursor:wait}
.plain,.mode,.copy {background:transparent;color:#005d4e;font-size:.86rem}
.mode[aria-pressed=true] {background:#d7f1e7}
.tools {justify-content:flex-start;flex-wrap:wrap;gap:3px}
.tools #anexar {margin-left:auto}
#historico {min-height:0;overflow:auto;background:#f5f8f7;padding:14px 20px}
#historico #vazio {text-align:center;color:#536b65}
#itens {display:flex;flex-direction:column;gap:9px}
article {align-self:flex-start;max-width:90%;min-width:130px;background:white;border:1px solid #d5e3df;border-radius:10px;padding:8px 12px}
article.meu {align-self:flex-end;background:#e1f4eb;border-color:#bedfce}
.meta {color:#465f59;display:flex;gap:12px;align-items:center;justify-content:space-between}
.corpo {white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}
pre {tab-size:4;overflow-x:auto;background:#172f33;color:#effbf7;padding:10px;border-radius:5px;font:13px/1.55 ui-monospace,monospace}
.file {display:inline-block;background:transparent;color:#006252;padding:4px 0;overflow-wrap:anywhere}
.copy {padding:3px 0}
#compor {border-top:1px solid #d8e4e2;display:grid;gap:7px}
textarea {width:100%;max-height:30vh;resize:vertical}
textarea.code {font:14px/1.5 ui-monospace,monospace;tab-size:4}
#fila div {display:flex;align-items:center;justify-content:space-between;overflow-wrap:anywhere}
#fila {max-height:15vh;overflow:auto}
.login {max-width:380px;margin:15vh auto}
.login form {display:grid;gap:15px;margin-top:20px}
@media(max-width:600px){.room {margin:0;height:100dvh;border:0;border-radius:0}header,#compor,#historico {padding:10px 12px}header input{width:110px}.mode,.plain {padding:7px}article {max-width:96%}}
