:root {
  --bg: #071018;
  --card: #102033;
  --line: #1f3b57;
  --title: #f8fbff;
  --muted: #8aa4bb;
  --primary: #07c160;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: var(--font); background: var(--bg); color: #d7e6f2; }
body {
  background:
    radial-gradient(900px 420px at 8% -12%, rgba(7, 193, 96, 0.18), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(14, 165, 233, 0.12), transparent 50%),
    var(--bg);
}
a { color: var(--primary); text-decoration: none; }
.wrap { width: min(760px, 92%); margin: 0 auto; padding: 36px 0 64px; }
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 12px; }
.brand { font-size: 20px; font-weight: 800; color: var(--title); }
.sub { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.card {
  background: rgba(16, 32, 51, 0.94);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
}
label { display: block; font-size: 12px; font-weight: 700; margin: 0 0 6px; color: var(--title); }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #071018;
  color: var(--title);
  margin-bottom: 12px;
  font: inherit;
}
textarea { min-height: 76px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: none;
  cursor: pointer; font-weight: 700; font-family: inherit;
}
.btn-primary { background: var(--primary); color: #062913; }
.btn-ghost { background: transparent; color: var(--title); border: 1px solid var(--line); }
.btn-danger { background: #7f1d1d; color: #fecaca; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.linkbox {
  width: 100%; background: #071018; color: #f8fbff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; font-size: 14px; word-break: break-all;
}
.msg { min-height: 20px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.err { color: #fb7185; }
.ok { color: #34d399; }
.hidden { display: none; }
.result { margin-top: 8px; }
.admin-wrap { width: min(980px, 94%); }
.toolbar { display: grid; grid-template-columns: 1fr 160px; gap: 10px; margin-bottom: 12px; padding: 14px; }
.toolbar input, .toolbar select { margin: 0; height: 40px; }
.item { margin-bottom: 12px; }
.item-name { color: var(--title); font-weight: 700; margin-bottom: 6px; word-break: break-all; }
.tiny { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.empty { text-align: center; padding: 48px 12px; color: var(--muted); }
.login-card { width: min(100%, 380px); margin: 80px auto; }
.open-card { text-align: center; }
.open-cover { width: 88px; height: 88px; object-fit: cover; border-radius: 20px; margin: 0 auto 14px; background: #071018; border: 1px solid var(--line); display: block; }
.open-title { font-size: 22px; font-weight: 800; color: var(--title); margin: 0 0 8px; }
.open-desc { color: var(--muted); margin: 0 0 18px; }
.command { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (max-width: 720px) {
  .grid-2, .toolbar { grid-template-columns: 1fr; }
  .wrap { padding-top: 22px; }
}
