* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: #0b1020;
  color: #eef3ff;
}
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 8px 0 10px;
  font-size: 36px;
}
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .16);
  color: #9cc0ff;
  font-size: 13px;
  border: 1px solid rgba(59, 130, 246, .35);
}
.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 300px;
}
.card {
  background: #121a31;
  border: 1px solid #233155;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .24);
}
.top-grid { align-items: start; }
h2 { margin: 0 0 12px; font-size: 22px; }
.sub-title { margin-top: 18px; }
label {
  display: block;
  font-size: 14px;
  margin: 12px 0 8px;
  color: #cbd7f6;
}
input, textarea, button {
  width: 100%;
  border: 1px solid #304469;
  background: #0d1428;
  color: #f6f8ff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
}
textarea { resize: vertical; line-height: 1.55; }
button { cursor: pointer; font-weight: 700; }
button:hover { transform: translateY(-1px); }
button.primary { background: #2563eb; border-color: #2563eb; }
button.danger { background: #dc2626; border-color: #dc2626; }
button.ghost { background: transparent; }
button.small { width: auto; padding: 8px 12px; font-size: 13px; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compact-grid { margin-top: 6px; }
.action-grid { margin-top: 14px; }
.options {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.checkbox input { width: 16px; height: 16px; padding: 0; }
.muted { color: #9eb0d7; }
.small-text { font-size: 13px; }
.info-box, .preview-box, .log {
  border: 1px solid #26385d;
  background: #0d1428;
  border-radius: 16px;
  padding: 14px;
  white-space: pre-wrap;
}
.info-box + .info-box { margin-top: 12px; }
.preview-box { margin-top: 14px; }
.preview-title { color: #b8c8ee; font-size: 13px; margin-bottom: 10px; }
.preview-box pre, .log {
  margin: 0;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 1.5;
  overflow: auto;
}
.stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stats > div {
  border: 1px solid #26385d;
  background: #0d1428;
  border-radius: 16px;
  padding: 14px;
}
.stats span {
  display: block;
  color: #9eb0d7;
  font-size: 13px;
  margin-bottom: 8px;
}
.stats strong { font-size: 22px; }
.textarea-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.log { min-height: 180px; }
@media (max-width: 980px) {
  .hero, .grid.two, .grid.three, .stats, .hero-actions {
    grid-template-columns: 1fr;
    display: grid;
  }
  .hero { gap: 16px; }
}
