:root {
  --bg: #f6f8f5;
  --surface: #ffffff;
  --border: #dfe5dc;
  --text: #182019;
  --muted: #616e63;
  --accent: #9bce26;
  --accent-dark: #76a60d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

.hero {
  margin-bottom: 24px;
}

.badge {
  display: inline-block;
  background: #eaf4d3;
  color: #4d6e06;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.form-row label,
.rounds-box label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type="url"],
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

.controls-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-top: 14px;
}

.rounds-box {
  width: 220px;
}

.btn-primary {
  background: var(--accent);
  color: #111810;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }

.btn-secondary {
  background: #f1f4ef;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover { border-color: var(--accent-dark); }

.status-bar {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f2f7e8;
  color: #365005;
  font-size: 13px;
  font-weight: 500;
}

.status-bar.error {
  background: #fef2f2;
  color: #b91c1c;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.card-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.muted {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dl-actions {
  display: flex;
  gap: 8px;
}

.ai-summary {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f8faf6;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eef2eb;
  margin-right: 4px;
}

.hidden { display: none !important; }
