:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-2: #22c55e;
  --danger: #ef4444;
  --border: #e2e8f0;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 10% 0%, #eef2ff 0%, #f8fafc 55%, #f5f7fb 100%);
  color: var(--text);
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.page {
  min-height: 100vh;
}

.hero {
  padding: 56px 24px 8px;
}

.hero__content {
  max-width: 960px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  color: var(--muted);
}

.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 64px;
  display: grid;
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 600;
}

input[type="text"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  padding: 12px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

button {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.status {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 600;
}

.status.success {
  background: #dcfce7;
  color: #166534;
}

.status.error {
  background: #fee2e2;
  color: #991b1b;
}

.output pre,
.log pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f8fafc;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  max-height: 480px;
  overflow: auto;
}

.log summary {
  cursor: pointer;
  color: var(--accent);
  margin-bottom: 8px;
}

.table {
  display: grid;
  gap: 8px;
}

.table__row {
  display: grid;
  grid-template-columns: 60px 1.6fr 0.6fr 0.6fr 1fr 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  font-size: 13px;
}

.table__head {
  font-weight: 600;
  color: var(--muted);
  background: #eef2ff;
}

.table a {
  color: var(--accent);
  text-decoration: none;
}

.muted {
  color: var(--muted);
}

.progress {
  width: 100%;
  background: #e2e8f0;
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  width: 0%;
  transition: width 0.4s ease;
}

.progress__label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.notice {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 14px;
}

.notice strong {
  font-weight: 600;
}
