:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #292b27;
  background: #f5f4ef;
  font-synthesis: none;
  --accent: #a14d36;
  --line: #deded4;
  --muted: #717369;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  max-width: 1200px;
  margin: auto;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
a {
  color: inherit;
  text-decoration: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}
.brand span {
  font-size: 18px;
  color: #292b27;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  margin-top: 5px;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
}
main {
  max-width: 1200px;
  min-height: 75vh;
  margin: 36px auto;
  padding: 0 28px;
}
h1 {
  font-size: 36px;
  letter-spacing: -1px;
  line-height: 1.25;
  margin: 0 0 12px;
}
h2 {
  font-size: 20px;
  margin: 0 0 20px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.8;
  color: var(--muted);
  font-size: 14px;
}
.eyebrow {
  color: var(--accent);
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 18px;
}
.hero {
  padding: 35px 0;
  max-width: 650px;
}
.hero h1 {
  font-size: 44px;
}
.grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
}
.card {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: 0 3px 18px #30271203;
}
.muted {
  color: var(--muted);
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 18px 0 7px;
}
input,
select,
textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #d5d7ce;
  border-radius: 8px;
  padding: 11px;
  font: inherit;
  font-size: 13px;
  color: inherit;
}
textarea {
  resize: vertical;
  min-height: 140px;
  font-family: monospace;
  font-size: 12px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #d3a995;
  outline-offset: 1px;
}
button,
.button {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  padding: 10px 17px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  display: inline-block;
}
button:hover {
  filter: brightness(0.95);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  background: #fffefa;
  color: #494c42;
  border-color: var(--line);
}
.danger {
  color: #af3131;
  background: #fff1ee;
}
.wide {
  width: 100%;
  margin-top: 20px;
}
.badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 11px;
  background: #efede4;
  color: #6b6c5e;
  white-space: nowrap;
}
.success {
  background: #e5f3e5;
  color: #397144;
}
.failed,
.review {
  background: #fbebe3;
  color: #a04932;
}
.processing,
.reserved {
  background: #e8eef6;
  color: #405d84;
}
.notice {
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  background: #f4eae3;
  margin: 18px 0;
  font-size: 13px;
  line-height: 1.7;
}
.steps {
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.steps li {
  margin: 24px 0;
  padding-left: 42px;
  position: relative;
  font-size: 14px;
}
.steps li:before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.steps small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.tabs button {
  background: transparent;
  color: #66695d;
  border-color: transparent;
}
.tabs button.active {
  background: #292e28;
  color: white;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.metric {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 21px;
}
.metric b {
  display: block;
  font-size: 32px;
  font-weight: 500;
  margin-top: 10px;
}
.metric span {
  font-size: 12px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.toolbar label {
  margin: 0;
  flex: 1;
  min-width: 130px;
}
.toolbar label input,
.toolbar label select {
  margin-top: 7px;
}
.toolbar button {
  white-space: nowrap;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  color: var(--muted);
  font-weight: 500;
  background: #f6f6f0;
}
td,
th {
  padding: 13px 10px;
  border-bottom: 1px solid #ecece4;
  white-space: nowrap;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 42px;
}
.mono {
  font-family: monospace;
  overflow-wrap: anywhere;
}
.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.login {
  max-width: 420px;
  margin: 80px auto;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 760px;
  width: calc(100% - 32px);
  padding: 25px;
}
dialog::backdrop {
  background: #18241a70;
}
.close {
  float: right;
  margin-bottom: 15px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f2f3ed;
  padding: 18px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.7;
}
.timeline {
  padding-left: 20px;
}
.timeline li {
  padding: 8px 0;
  font-size: 13px;
}
.timeline small {
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #2c332b;
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  max-width: 90%;
  z-index: 20;
  display: none;
}
footer {
  text-align: center;
  color: #8b8c80;
  padding: 30px;
  font-size: 11px;
  letter-spacing: 1px;
}
.hint {
  font-size: 12px;
  color: var(--muted);
}
.pager {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.plan-grid .card {
  padding: 20px;
}
@media (max-width: 760px) {
  header {
    padding: 20px;
  }
  nav {
    gap: 12px;
  }
  .brand small {
    display: none;
  }
  main {
    padding: 0 16px;
    margin-top: 20px;
  }
  .grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 34px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .card {
    padding: 20px;
  }
  .toolbar label {
    min-width: 110px;
  }
  h1 {
    font-size: 28px;
  }
  .brand span {
    font-size: 14px;
  }
}
