:root { --bg:#f6f7f9; --fg:#1b1f24; --card:#fff; --line:#d9dde3; --acc:#1f6feb; --err:#b42318; --ok:#067647; --mut:#6b7280; }
@media (prefers-color-scheme: dark) { :root { --bg:#14171a; --fg:#e6e8eb; --card:#1d2125; --line:#33383e; --acc:#4c8dff; --err:#ff8a80; --ok:#5dd39e; --mut:#98a0aa; } }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--fg); font:14px/1.45 system-ui,sans-serif; }
main { max-width:1050px; margin:0 auto; padding:16px; }
main.narrow { max-width:380px; margin-top:12vh; }
header { display:flex; justify-content:space-between; align-items:center; }
.card { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:16px; margin:16px 0; }
h1 { font-size:22px; } h2 { font-size:17px; margin-top:0; } h3 { font-size:14px; margin:18px 0 8px; }
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:7px 8px; border-bottom:1px solid var(--line); vertical-align:middle; }
th { font-size:12px; color:var(--mut); font-weight:600; }
.act { white-space:nowrap; text-align:right; } .act form { display:inline; }
.muted, .muted td { color:var(--mut); }
.sha, code, pre { font-family:ui-monospace,Consolas,monospace; font-size:12px; }
pre { background:var(--bg); padding:10px; border-radius:6px; overflow:auto; }
.tag { background:var(--line); border-radius:4px; padding:1px 6px; font-size:11px; }
input[type=text], input[type=password], input[type=file] { padding:7px 9px; border:1px solid var(--line); border-radius:6px; background:var(--bg); color:var(--fg); font:inherit; }
input[type=text], input[type=password] { width:100%; }
.row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; } .row input[type=text] { flex:1; min-width:200px; }
label { display:block; margin-bottom:10px; } label.inline { display:inline; margin:0; }
button { padding:8px 14px; border:0; border-radius:6px; background:var(--acc); color:#fff; font:inherit; cursor:pointer; }
button.sm { padding:4px 10px; background:var(--line); color:var(--fg); } button.danger { color:var(--err); }
.err { color:var(--err); } .ok { color:var(--ok); } .flash { margin:8px 0; font-weight:600; } .msg { margin-left:8px; }
.hint { color:var(--mut); font-size:12px; }
.key { border-color:var(--ok); } .key code { font-size:14px; word-break:break-all; user-select:all; }
@media (max-width:700px) { table, thead, tbody, tr, th, td { display:block; } thead { display:none; } td { border:0; padding:3px 0; } tr { border-bottom:1px solid var(--line); padding:8px 0; } .act { text-align:left; } }
