:root{color-scheme:light dark;--base:#fbfaf6;--text:#1f2722;--muted:#55635a;--line:#d3dbd2;--panel:#fff;--accent:#14564b}
@media(prefers-color-scheme:dark){:root{--base:#18211d;--text:#edf3ed;--muted:#b9c7bf;--line:#46584f;--panel:#212e28;--accent:#9fe2cf}}
*{box-sizing:border-box}html,body{height:100%}
body{margin:0;background:var(--base);color:var(--text);font:1rem/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;display:flex;flex-direction:column}
header{display:flex;flex-wrap:wrap;gap:.3rem 1rem;align-items:baseline;padding:.5rem 1rem;border-bottom:1px solid var(--line);background:var(--panel)}
header h1{font:600 1.05rem/1.3 Georgia,serif;margin:0;flex:1 1 20rem;overflow-wrap:anywhere}
header .from{color:var(--muted);font-size:.85rem;flex-basis:100%;margin:0}
a{color:var(--accent)}button,select{font:inherit;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:.35rem;padding:.25rem .6rem;cursor:pointer}
main{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1rem}
video{max-width:100%;max-height:calc(100vh - 9rem);background:#000;border-radius:.4rem}
audio{width:min(40rem,100%)}
.msg{color:var(--muted);min-height:1.5em;margin:.6rem 0 0;text-align:center}
.bar{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
