:root {
  --bg: #10120e;
  --bg-2: #181b14;
  --line: #303628;
  --text: #ebe6d6;
  --muted: #9aa18c;
  --accent: #e2a31b;
  --up: #e15d4f;
  --down: #2faf78;
  --chip: #24281d;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; }
button, input, select { font: inherit; color: inherit; background: #12150f; border: 1px solid var(--line); border-radius: 6px; }
button { cursor: pointer; background: var(--accent); color: #1a1406; border: 0; padding: 10px 14px; font-weight: 700; }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 600; }
input, select { padding: 8px 10px; width: 100%; }
h2 { margin: 0; font-size: 16px; }
.top, .card-head, .row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.top { padding: 18px 28px 12px; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 14px; align-items: center; }
.brand em, .message, .muted { color: var(--muted); font-style: normal; }
.mark {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--accent); color: #1a1406; font-weight: 800;
}
.clock, .pills, .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.clock span, .pill {
  border: 1px solid var(--line); background: var(--chip); border-radius: 999px; padding: 4px 10px; font-size: 13px;
}
.pill.ready { color: var(--down); }
.pill.error { color: var(--up); }
.layout { display: grid; grid-template-columns: 360px 1fr; gap: 16px; padding: 16px 28px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.grid label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.grid .check { align-items: center; grid-template-columns: 18px 1fr; color: var(--text); }
.grid button { grid-column: 1 / -1; }
.table-wrap { overflow: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
.num { font-family: Consolas, "Cascadia Mono", monospace; }
.long { color: var(--up); }
.short { color: var(--down); }
.quotes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.quote { min-width: 180px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #12150f; }
.quote b { display: block; margin-bottom: 4px; }
.message { min-height: 1.2em; margin: 10px 0 0; }
@media (max-width: 980px) {
  .layout, .grid { grid-template-columns: 1fr; }
  .top { padding-left: 16px; padding-right: 16px; }
  .layout { padding: 16px; }
}
