:root {
  --bg: #0d0e10; --panel: #17191d; --panel2: #1f2227; --line: #2a2e35; --text: #e9eaec; --muted: #8b919b;
  --accent: #e5af3c; --accent-text: #171200; --ok: #3fb97a; --err: #e5604d; --info: #5b9bf0;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 "Segoe UI", system-ui, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header { display: flex; align-items: center; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--line);
  background: var(--panel); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
header .brand { font-weight: 700; font-size: 16px; padding: 14px 0; color: var(--text); }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { color: var(--muted); padding: 14px 12px; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--text); text-decoration: none; }
nav a.on { color: var(--text); border-bottom-color: var(--accent); }
.count { background: var(--err); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
main { max-width: 1080px; margin: 0 auto; padding: 24px 16px 80px; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 28px 0 10px; }
.sub { color: var(--muted); margin: 0 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; border: 1px solid; }
.flash.ok { background: #12281d; border-color: #1f5137; }
.flash.err { background: #2c1512; border-color: #6a2a20; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.grow { flex: 1; min-width: 220px; }
.right { margin-left: auto; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 15px; margin: 0; cursor: pointer; }
input[type=text], input[type=password], input[type=url], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 7px;
  padding: 8px 10px; font: inherit; color-scheme: dark; }
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; accent-color: var(--accent); }
.field { margin-bottom: 12px; }
button, .btn { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 7px;
  padding: 7px 13px; font: inherit; cursor: pointer; display: inline-block; white-space: nowrap; }
button:hover, .btn:hover { border-color: var(--muted); text-decoration: none; }
button.primary, .btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
button.danger { color: var(--err); }
button.link { background: none; border: none; padding: 0; color: var(--accent); }
form.inline { display: inline; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.tag.youtube { color: #ff6b6b; border-color: #5a2626; }
.tag.instagram { color: #e58ad0; border-color: #53294a; }
.tag.tiktok { color: #6fe0dc; border-color: #1f504e; }
.tag.ok { color: var(--ok); border-color: #1f5137; }
.tag.err { color: var(--err); border-color: #6a2a20; }
.tag.info { color: var(--info); border-color: #25446f; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.card .thumb { aspect-ratio: 4/5; background: #000 center/contain no-repeat; position: relative; display: block; }
.card .thumb .pick { position: absolute; top: 8px; left: 8px; }
.card .thumb .len { position: absolute; bottom: 8px; right: 8px; background: #000a; padding: 0 6px; border-radius: 5px; font-size: 12px; color: #fff; }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .title { font-weight: 600; overflow-wrap: anywhere; }
.post { display: flex; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.post:last-child { border-bottom: none; }
.post img { width: 54px; height: 68px; object-fit: cover; border-radius: 6px; background: #000; flex: none; }
.post .cap { color: var(--muted); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 3em; overflow: hidden; }
.post .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.list { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.bar { position: sticky; bottom: 0; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; margin-top: 16px; display: none; }
.bar.show { display: flex; }
details summary { cursor: pointer; color: var(--muted); }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
code { background: var(--panel2); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
video.player { width: 100%; max-height: 420px; background: #000; border-radius: 8px; }
.two { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.two img.preview { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } header { gap: 8px; padding: 0 12px; } nav a { padding: 10px 8px; } }
