* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: aliceblue;
}
.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}
.topbar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
h1 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.sub {
  color: gray;
  margin: 0;
  line-height: 1.45;
  max-width: 900px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 14px;
}
.tab {
  border: 1px solid white;
  background: rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.15s ease;
}
.tab.active {
  background: indigo;
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.22);
}
.grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
}
.stack {
  display: grid;
  gap: 16px;
}
.panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(228, 231, 236, 0.9);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  overflow: hidden;
}
.panel .hd {
  padding: 16px 18px 0;
}
.panel .bd {
  padding: 18px;
}
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: indigo;
  font-weight: 800;
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 12px;
}
h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid white;
  background: #fff;
  color: gray;
}
.pill.good {
  color: green;
  background: #ecfdf3;
  border-color: #abefc6;
}
.pill.warn {
  color: orange;
  background: #fffaeb;
  border-color: #fedf89;
}
.pill.danger {
  color: red;
  background: #fef3f2;
  border-color: #fecdca;
}
.def {
  background: linear-gradient(180deg, #fff, #fbfbff);
  border: 1px solid white;
  border-radius: 16px;
  padding: 14px 14px 10px;
}
.def p {
  margin: 0 0 8px;
  line-height: 1.55;
}
.def .note {
  color: gray;
  font-size: 13px;
  line-height: 1.45;
}
.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
button {
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s ease;
  font-family: inherit;
}
.primary {
  background: indigo;
  color: white;
}
.secondary {
  background: #fff;
  border: 1px solid white;
}
.danger-btn {
  background: #fee4e2;
  color: red;
}
button:hover {
  transform: translateY(-1px);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.timeline {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid white;
  border-radius: 14px;
  background: #fff;
}
.step.active {
  border-color: rgba(79, 70, 229, 0.42);
  background: white;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.08);
}
.step.done {
  opacity: 0.78;
}
.num {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f4f7;
  font-weight: 800;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
.step.active .num {
  background: indigo;
  color: white;
}
.s-title {
  font-weight: 800;
  margin-bottom: 4px;
}
.s-desc {
  color: gray;
  font-size: 13px;
  line-height: 1.4;
}
.s-tag {
  font-size: 12px;
  font-weight: 800;
  color: indigo;
  background: #eef2ff;
  padding: 6px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.card {
  background: #fff;
  border: 1px solid white;
  border-radius: 16px;
  padding: 14px;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: gray;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.kv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px dashed #eaecf0;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}
.kv:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.kv span:last-child {
  font-weight: 800;
}
.log {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  display: grid;
  gap: 8px;
}
.logline {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid black;
  background: #fcfcfd;
  line-height: 1.35;
}
.logline small {
  display: block;
  color: gray;
  margin-bottom: 3px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.recovery {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.recovery .line {
  padding: 10px 12px;
  border: 1px solid black;
  border-radius: 12px;
  background: #fff;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.35;
}
.footer {
  margin: 18px;
  padding: 8px;
  color: gray;
  font-size: 14px;
  line-height: 1.5;
}

.footer .left{
  float: left;
}
.footer .right{
  float: right;
}

.footer .right a{
  text-decoration: none;
  color: indigo;
  cursor: pointer;
  font-size: 16px;
}

.mono {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (max-width: 1040px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
