/* 상태 패널 · 통계 카드 · 입력 기록 */

.stats {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.card h3 {
  margin: 0 0 12px;
  font-size: 12px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* 마지막 입력 키 */
.bigkey {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  min-height: 38px;
  word-break: break-all;
}
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 16px;
  margin: 12px 0 0;
  font-size: 13.5px;
}
.kv dt { color: var(--text-dim); }
.kv dd { margin: 0; font-family: var(--mono); color: var(--text); }

/* 진행률 / 카운트 */
.big {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
}
.big b { color: var(--accent); font-weight: 700; }
.progress {
  height: 10px;
  border-radius: 99px;
  background: var(--panel-inset);
  border: 1px solid var(--border);
  overflow: hidden;
  margin: 12px 0 10px;
}
.progress i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  transition: width 0.25s ease;
}
.card .hint { font-size: 12.5px; color: var(--text-dim); margin: 8px 0 0; }
.card .row-end { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }

/* 입력 기록 */
.history {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 18px;
  max-height: 240px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 13px;
}
.history .row {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(42, 48, 64, 0.6);
}
.history .row:last-child { border-bottom: none; }
.history time { color: var(--text-dim); font-size: 12px; }
.history .dir { color: var(--accent); width: 12px; }
.history .chip { color: var(--text); font-weight: 600; }
.history .val { color: var(--text-dim); }
.history .tag {
  font-size: 10.5px;
  color: var(--danger);
  border: 1px solid rgba(240, 85, 95, 0.4);
  border-radius: 99px;
  padding: 0 7px;
}
.history .empty { color: var(--text-dim); padding: 10px 0; border: none; }

@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr; }
}
