﻿:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #d8dee8;
  --blue: #1769ff;
  --red: #c0362c;
  --green: #168a4a;
  --soft-blue: #eef4ff;
  --soft-green: #e9f8ef;
  --soft-red: #ffeceb;
  --soft-yellow: #fff8df;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
}
a { color: var(--blue); text-decoration: none; }
.preview-banner {
  min-height: 28px;
  background: var(--soft-yellow);
  border-bottom: 1px solid #f1d37a;
  color: #7a4b00;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { font-size: 20px; font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shell { max-width: 1400px; margin: 0 auto; padding: 18px 24px 32px; }
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  overflow: auto;
}
.tab {
  background: transparent;
  color: #344054;
  border-radius: 6px 6px 0 0;
  padding: 12px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.tab.active { background: #fff; color: #164da8; border-bottom-color: var(--blue); }
button {
  border: 0;
  border-radius: 6px;
  padding: 9px 13px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font: inherit;
}
button.secondary { background: #475467; }
button.danger { background: var(--red); }
button.success { background: var(--green); }
button.ghost { background: #fff; color: #344054; border: 1px solid var(--line); }
button:disabled { opacity: .55; cursor: not-allowed; }
.hidden { display: none !important; }
.login {
  max-width: 420px;
  margin: 86px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.login h1 { font-size: 22px; margin: 0 0 18px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.card { min-height: 150px; }
.panel { margin-top: 16px; }
.card h2, .panel h2 { font-size: 17px; margin: 0 0 12px; }
.muted, .message { color: var(--muted); font-size: 13px; }
.message { min-height: 22px; margin: 8px 0; }
.message.error { color: var(--red); }
.message.ok { color: var(--green); }
.metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 8px 0;
  font-size: 14px;
}
.metric strong { font-size: 15px; text-align: right; }
.address, .code { font-family: Consolas, monospace; }
.status-pill, .badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
  background: #eef2f6;
  color: #344054;
}
.badge.ok { background: var(--soft-green); color: var(--green); }
.badge.warn { background: var(--soft-yellow); color: #8a5a00; }
.badge.danger { background: var(--soft-red); color: var(--red); }
.badge.info { background: var(--soft-blue); color: #164da8; }
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.flow-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  position: relative;
  min-height: 78px;
}
.flow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 27px;
  color: #98a2b3;
  font-weight: 700;
}
.flow-title { font-weight: 700; margin-bottom: 8px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
label { display: block; color: #344054; font-size: 13px; margin: 10px 0 6px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}
th { color: #667085; background: #f9fafb; font-weight: 600; }
.copy { cursor: pointer; color: #164da8; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, .42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}
.modal {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 18px;
  box-shadow: 0 20px 50px rgba(16, 24, 40, .25);
}
.progress-list { list-style: none; padding: 0; margin: 12px 0; }
.progress-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid #eef2f6;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.done .dot { background: var(--green); }
.setting-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1050px) {
  .grid, .grid.two, .setting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .topbar-inner { align-items: flex-start; flex-direction: column; padding: 12px; }
  .shell { padding: 12px; }
  .grid, .grid.two, .setting-grid, .flow { grid-template-columns: 1fr; }
  .flow-step::after { display: none; }
  .card { min-height: unset; }
  th, td { font-size: 12px; padding: 8px; }
  .brand { font-size: 18px; }
}
