:root { --bg: #fff; --bg-soft: #f6f7f9; --text: #14181f; --muted: #5b6472; --line: #e3e6ea; --accent: #009e51; --red: #d93025; --amber: #b26a00; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1216; --bg-soft: #161a20; --text: #e8ebef; --muted: #9aa4b2; --line: #262c35; --accent: #3ccb85; --red: #ff6b5f; --amber: #f0b44c; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 420px; }
header { border-bottom: 1px solid var(--line); padding: 14px 0; }
header .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.logo { display: inline-block; line-height: 0; }
.logo img { height: 34px; width: auto; }
header nav { display: flex; gap: 14px; flex: 1; flex-wrap: wrap; }
header form { margin: 0; }
h1 { font-size: 24px; line-height: 1.25; margin: 26px 0 6px; }
h2 { font-size: 17px; margin: 28px 0 8px; }
.muted { color: var(--muted); }
.card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 14px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.stats .card { margin: 0; }
.stats b { display: block; font-size: 24px; }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--bg-soft); }
tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); }
.ok { color: var(--accent); }
.bad { color: var(--red); }
.warn { color: var(--amber); }
label { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 4px; }
input[type=text], input[type=password] { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
input.short { max-width: 280px; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
button.ghost { background: transparent; color: var(--accent); }
a.button { display: inline-block; font-weight: 600; padding: 9px 16px; border-radius: 10px; background: var(--accent); color: #fff; }
a.button:hover { text-decoration: none; opacity: .92; }
input[type=file] { font: inherit; padding: 8px 0; max-width: 100%; }
button.danger { background: var(--red); border-color: var(--red); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row form { margin: 0; }
.notice { border-left: 3px solid var(--accent); padding: 10px 14px; background: var(--bg-soft); border-radius: 6px; margin: 14px 0; }
.notice.bad { border-color: var(--red); }
.secret { font: 600 18px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; user-select: all; }
footer { color: var(--muted); font-size: 13px; padding: 30px 0; }
