:root { --bg:#fff; --fg:#14171a; --muted:#4a5560; --accent:#0b62c4; --border:#8892a0; }
[data-theme="dark"] { --bg:#15202b; --fg:#f1f4f7; --muted:#b4bfca; --accent:#6bb5ff; --border:#8899a6; }
[data-theme="black"] { --bg:#000; --fg:#fff; --muted:#c0c8d0; --accent:#6bb5ff; --border:#8899a6; }
* { box-sizing:border-box; }
html, body { margin:0; min-height:100%; }
body { min-height:100vh; display:flex; flex-direction:column; background:var(--bg); color:var(--fg);
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif; }
main { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:2rem 1rem; }
.logo { width:96px; height:96px; color:var(--accent); }
h1 { font-size:clamp(2rem,8vw,3rem); margin:1rem 0 .5rem; }
p { font-size:1.15rem; color:var(--muted); margin:0; }
footer { display:flex; flex-wrap:wrap; gap:1rem; justify-content:center; padding:1rem; }
label { display:flex; align-items:center; gap:.5rem; font-size:.9rem; color:var(--muted); }
select { font:inherit; color:var(--fg); background:var(--bg); border:1px solid var(--border); border-radius:6px; padding:.4rem .6rem; min-height:44px; }
select:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }

.page { justify-content:flex-start; align-items:stretch; text-align:left; width:100%; max-width:640px; margin:0 auto; }
.page .logo-small { width:48px; height:48px; }
.page h1 { margin:.75rem 0 0; overflow-wrap:anywhere; }
.handle { margin:.1rem 0 1rem; }
.msg { font-size:1rem; margin:.5rem 0; min-height:1.2em; }
a { color:var(--accent); }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.compose { width:100%; max-width:560px; text-align:left; margin-top:1rem; }
.compose[hidden] { display:none; }
.compose label { display:block; }
textarea { width:100%; font:inherit; color:var(--fg); background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:.6rem; resize:vertical; }
textarea:focus-visible, button:focus-visible, a:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.compose-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-top:.5rem; }
.counter { color:var(--muted); font-variant-numeric:tabular-nums; }
.counter.over { color:#d62020; font-weight:700; }
[data-theme="dark"] .counter.over, [data-theme="black"] .counter.over { color:#ff7b7b; }
button { font:inherit; font-weight:600; min-height:44px; padding:.4rem 1.4rem; border-radius:999px; border:0; background:var(--accent); color:var(--bg); cursor:pointer; }
button:disabled { opacity:.45; cursor:not-allowed; }
.posts { list-style:none; margin:0 0 1rem; padding:0; }
.post { border-top:1px solid var(--border); padding:.9rem 0; }
.post-who { color:var(--muted); font-size:.9rem; }
.post-text { color:var(--fg); font-size:1.1rem; margin:.25rem 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.post-time { color:var(--muted); font-size:.85rem; }
