﻿:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #dbe2ef;
  --text: #1f2937;
  --muted: #5b6472;
  --accent: #0f766e;
  --accent-2: #0ea5e9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #eef5ff 0%, #f9fbff 45%, #f3f7ff 100%);
  color: var(--text);
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
}

header h1 {
  margin-bottom: 8px;
}

header p {
  margin-top: 0;
  color: var(--muted);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

input,
button {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
}

button {
  cursor: pointer;
}

button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#statusText {
  color: var(--muted);
}

.progress-wrap {
  margin-top: 6px;
}

progress {
  width: 100%;
  height: 14px;
}

.freq-chart {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

#sourceText {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.bar-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fbfdff;
}

.bar-label {
  font-weight: 600;
  margin-bottom: 5px;
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.bar-value {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

.recommend-list {
  padding-left: 18px;
  margin-bottom: 0;
}

.recommend-list li {
  margin: 6px 0;
  font-weight: 600;
}

#drawSearchResult {
  margin-top: 4px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .container {
    padding: 14px;
  }

  .panel {
    padding: 12px;
  }
}
