:root { --bg:#f6f5f2; --card:#fff; --fg:#1d1d1f; --muted:#6b6b70; --line:#e3e1dc; --accent:#d6336c; --err:#b42318; --ok:#067647; --warn:#b54708; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#141416; --card:#1e1e21; --fg:#ececee; --muted:#9a9aa1; --line:#2e2e33; --accent:#f06595; --err:#f97066; --ok:#47cd89; --warn:#fdb022; }
}
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--fg); font:16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width:720px; margin:0 auto; padding:24px 16px 56px; }
header { display:flex; align-items:center; gap:12px; margin-bottom:40px; min-height:40px; }
header .brand { font-weight:700; font-size:18px; color:inherit; text-decoration:none; margin-right:auto; }
header img.av { width:32px; height:32px; border-radius:50%; }
header .who { color:var(--muted); font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:40vw; }
header form { margin:0; }
h1 { font-size:28px; margin:0 0 4px; letter-spacing:-.02em; }
p.lead { color:var(--muted); margin:0 0 28px; }
form.dl { display:flex; gap:8px; }
input { flex:1; min-width:0; padding:12px 14px; font:inherit; color:inherit; background:var(--card); border:1px solid var(--line); border-radius:10px; }
input:focus { outline:2px solid var(--accent); outline-offset:-1px; }
button, a.btn { display:inline-block; padding:12px 18px; font:inherit; font-weight:600; border:0; border-radius:10px; background:var(--accent); color:#fff; cursor:pointer; text-decoration:none; white-space:nowrap; }
button.ghost, a.ghost { background:transparent; color:var(--fg); border:1px solid var(--line); padding:7px 12px; font-weight:500; font-size:14px; }
button.small { padding:6px 10px; font-size:13px; font-weight:500; }
button.danger { background:transparent; color:var(--err); border:1px solid var(--line); }
button:disabled { opacity:.6; cursor:wait; }
.msg { margin-top:16px; min-height:24px; color:var(--muted); }
.msg.err { color:var(--err); }
.items { display:grid; gap:12px; margin-top:12px; }
.item { display:flex; gap:14px; align-items:center; padding:12px; background:var(--card); border:1px solid var(--line); border-radius:12px; }
.item img { width:84px; height:84px; object-fit:cover; border-radius:8px; background:var(--line); flex:none; }
.item .meta { flex:1; min-width:0; }
.item .t { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.item .s { color:var(--muted); font-size:14px; }
.notice { padding:20px; background:var(--card); border:1px solid var(--line); border-radius:12px; }
.notice h2 { margin:0 0 6px; font-size:18px; }
.notice p { margin:0; color:var(--muted); }
.google { display:inline-flex; align-items:center; gap:10px; background:var(--card); color:var(--fg); border:1px solid var(--line); }
.google svg { width:18px; height:18px; }
table { width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
th, td { text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); vertical-align:middle; font-size:14px; }
th { color:var(--muted); font-weight:500; }
tr:last-child td { border-bottom:0; }
td.u { display:flex; gap:10px; align-items:center; }
td.u img { width:28px; height:28px; border-radius:50%; flex:none; }
td.u .e { color:var(--muted); font-size:13px; }
td.act { white-space:nowrap; text-align:right; }
td.act form { display:inline; }
.badge { font-size:12px; font-weight:600; padding:2px 8px; border-radius:99px; border:1px solid currentColor; }
.badge.admin { color:var(--accent); } .badge.approved { color:var(--ok); } .badge.pending { color:var(--warn); } .badge.blocked { color:var(--muted); }
footer { margin-top:40px; color:var(--muted); font-size:13px; }
@media (max-width:560px) {
  form.dl { flex-direction:column; }
  .item { flex-wrap:wrap; }
  header .who { display:none; }
  th.hide, td.hide { display:none; }
  td.u { flex-wrap:wrap; }
}
td.act form + form { margin-left:6px; }
.narrow { max-width:380px; }
form.stack { display:grid; gap:14px; margin-top:8px; }
form.stack label { display:grid; gap:6px; font-size:14px; color:var(--muted); }
form.stack input { color:var(--fg); }
form.stack button { justify-self:start; }
a { color:var(--accent); }
a.btn { color:#fff; }
a.btn.ghost { color:var(--fg); }
a.ghost.big { padding:12px 18px; font-size:16px; font-weight:600; margin-left:6px; }
header a.who { color:var(--muted); text-decoration:none; }
header a.who:hover { color:var(--fg); }
.flash { padding:10px 14px; border-radius:10px; margin-bottom:20px; border:1px solid var(--line); background:var(--card); }
.flash.err { color:var(--err); border-color:currentColor; }
.flash.ok { color:var(--ok); border-color:currentColor; }
.notice.temp { margin-bottom:16px; }
.notice code { display:inline-block; margin-top:10px; padding:8px 12px; font-size:18px; background:var(--bg); border:1px solid var(--line); border-radius:8px; user-select:all; }
.e { color:var(--muted); font-size:13px; }
h2.sec { font-size:16px; margin:32px 0 4px; color:var(--muted); font-weight:600; }
.hint { color:var(--muted); font-size:14px; margin:4px 0 0; }
.item.hl { border-color:var(--accent); }
.item .thumb { position:relative; width:72px; height:96px; border-radius:8px; background:var(--line); flex:none; overflow:hidden; display:block; }
.item .thumb img { width:100%; height:100%; object-fit:cover; border-radius:0; }
.item .thumb span { position:absolute; right:4px; bottom:4px; font-size:11px; font-weight:600; color:#fff; background:rgba(0,0,0,.6); padding:0 5px; border-radius:4px; }
.item .thumb.spin::after { content:""; position:absolute; inset:0; margin:auto; width:22px; height:22px; border:3px solid var(--muted); border-top-color:transparent; border-radius:50%; animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.item .t { white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.item .e2 { color:var(--err); }
.item .acts { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
a.btn.small { padding:6px 10px; font-size:13px; font-weight:500; }
@media (max-width:560px) {
  .item .acts { width:100%; justify-content:stretch; }
  .item .acts > * { flex:1; text-align:center; padding:10px 8px; font-size:14px; }
  .item .acts > .danger { flex:0 0 auto; }
}
