:root { --fg: #1d1d1f; --muted: #6e6e73; --line: #e3e3e8; --bg: #fff; --accent: #0a66c2; --err: #b3261e; }
@media (prefers-color-scheme: dark) {
  :root { --fg: #ececf1; --muted: #a1a1aa; --line: #34343c; --bg: #18181b; --accent: #6ab0ff; --err: #ff8a80; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg);
       font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 860px; margin: 0 auto; padding: 16px; }
a { color: var(--accent); }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 8px; hyphens: auto; overflow-wrap: anywhere; }
h2 { font-size: 1.1rem; margin: 28px 0 8px; }
.muted { color: var(--muted); font-size: .9rem; }
.error { color: var(--err); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px;
       border-bottom: 1px solid var(--line); }
.brand { font-weight: 600; text-decoration: none; color: var(--fg); }
button.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
button.link:hover { text-decoration: underline; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 16px; }
.tabs a { text-decoration: none; padding: 2px 0; border-bottom: 2px solid transparent; }
.tabs a:hover { text-decoration: underline; }
.tabs a.on { color: var(--fg); border-bottom-color: var(--fg); }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.list li > a { overflow-wrap: anywhere; }
video { width: 100%; max-height: 80vh; background: #000; border-radius: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; display: block; }
.text { white-space: pre-wrap; overflow-wrap: anywhere; }
.login { max-width: 320px; margin: 12vh auto 0; display: flex; flex-direction: column; gap: 12px; }
.login label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.login input { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px;
               background: var(--bg); color: var(--fg); }
.login button { font: inherit; padding: 9px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; cursor: pointer; }
@media (max-width: 480px) { h1 { font-size: 1.3rem; } }
