.progress-body {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 34px;
  align-items: center;
}

.ring-wrap {
  position: relative;
  width: 232px;
  height: 232px;
  display: grid;
  place-items: center;
}

.ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 18px rgb(255 34 49 / 35%));
}

.ring circle {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
}

.ring-track {
  stroke: rgb(255 255 255 / 7%);
}

.ring-value {
  stroke: url(#ringGrad);
  stroke-dasharray: 540.35;
  stroke-dashoffset: 540.35;
  transition: stroke-dashoffset 0.7s var(--ease-out);
}

.ring-center {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ring-center strong {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #ffb7bd 60%, #ff2231);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ring-center span {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.progress-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.meta-cell {
  padding: 13px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(255 255 255 / 4%), rgb(255 255 255 / 1%));
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.meta-cell:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
}

.meta-cell span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.meta-cell b {
  font-size: 21px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.meta-cell.ok b { color: var(--ok); }
.meta-cell.bad b { color: var(--bad); }

.bar-track {
  height: 10px;
  width: 100%;
  border-radius: 100px;
  background: rgb(255 255 255 / 6%);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}

.bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background:
    repeating-linear-gradient(115deg, rgb(255 255 255 / 16%) 0 10px, transparent 10px 20px),
    linear-gradient(90deg, #7c0a13, #ff2231 60%, #ff8d96);
  background-size: 40px 100%, 100% 100%;
  box-shadow: 0 0 18px rgb(255 34 49 / 55%);
  transition: width 0.6s var(--ease-out);
  animation: bar-stripes 0.85s linear infinite;
}

@keyframes bar-stripes {
  to { background-position: 40px 0, 0 0; }
}

.progress-ids {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.progress-ids b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.progress-ids code {
  color: var(--red-hot);
  font-size: 11px;
}

.console {
  margin-top: 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #060406;
  overflow: hidden;
}

.console-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(255 255 255 / 4%), transparent);
}

.console-head .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2b1f22;
}

.console-head .dot:first-child { background: #ff5f57; }
.console-head .dot:nth-child(2) { background: #ffbd2e; }
.console-head .dot:nth-child(3) { background: #28c840; }

.console-title {
  margin-left: 10px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.console-body {
  max-height: 216px;
  overflow-y: auto;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  color: var(--text-2);
  scrollbar-width: thin;
}

.log-line {
  display: flex;
  gap: 12px;
  animation: log-in 0.35s var(--ease-out) both;
}

@keyframes log-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}

.log-line .t {
  color: var(--dim);
  flex: none;
}

.log-line.ok .m { color: var(--ok); }
.log-line.bad .m { color: var(--bad); }
.log-line.warn .m { color: var(--warn); }
.log-line.info .m { color: var(--red-hot); }

.result-panel .border-glow-inner {
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 40px 30px;
}

.result-badge {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 40% 30%, #1a5c3c, #06210f);
  border: 1px solid rgb(56 215 138 / 40%);
  box-shadow: 0 0 30px rgb(56 215 138 / 30%);
  animation: badge-pop 0.65s var(--spring) both;
}

.result-badge svg {
  width: 34px;
  height: 34px;
  fill: var(--ok);
}

.result-panel.is-bad .result-badge {
  background: radial-gradient(circle at 40% 30%, #5c1a20, #21060a);
  border-color: rgb(255 77 94 / 40%);
  box-shadow: 0 0 30px rgb(255 77 94 / 30%);
}

.result-panel.is-bad .result-badge svg { fill: var(--bad); }

.result-panel.is-partial .result-badge {
  background: radial-gradient(circle at 40% 30%, #5c4416, #211705);
  border-color: rgb(255 176 32 / 40%);
  box-shadow: 0 0 30px rgb(255 176 32 / 30%);
}

.result-panel.is-partial .result-badge svg { fill: var(--warn); }
.result-panel.is-partial .result-grid > div:first-child b { color: var(--warn); }

@keyframes badge-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.result-panel h2 {
  font-size: 26px;
}

.result-panel p {
  color: var(--muted);
  max-width: 520px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(96px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 620px;
  margin-top: 6px;
}

.result-grid > div {
  padding: 15px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 3%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: result-cell 0.5s var(--ease-out) both;
}

.result-grid > div:nth-child(2) { animation-delay: 0.07s; }
.result-grid > div:nth-child(3) { animation-delay: 0.14s; }
.result-grid > div:nth-child(4) { animation-delay: 0.21s; }

@keyframes result-cell {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.result-grid span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.result-grid b {
  font-size: 23px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.result-grid > div:first-child b { color: var(--ok); }
.result-grid > div:nth-child(2) b { color: var(--bad); }

@media (max-width: 900px) {
  .progress-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .progress-meta { width: 100%; }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
}
