:root {
  --bg: #0b0f17;
  --card: #121a27;
  --card2: #0f1622;
  --text: #e7eefc;
  --muted: #9cb0d1;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #7c5cff;
  --accent2: #34d399;
  --danger: #ff6b6b;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(124, 92, 255, 0.25), transparent),
              radial-gradient(900px 500px at 90% 10%, rgba(52, 211, 153, 0.18), transparent),
              var(--bg);
  color: var(--text);
  line-height: 1.55;
}

code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 26px 18px 44px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

h1 {
  font-size: 26px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 16px;
  margin: 0 0 14px;
  color: #dfe9ff;
  letter-spacing: -0.01em;
}

.muted { color: var(--muted); }
.req { color: var(--danger); }

.pill {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

.card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0;
  box-shadow: var(--shadow);
}

.grid { display: grid; gap: 14px; }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
@media (max-width: 820px) {
  .row { grid-template-columns: 1fr; }
}

.field span { display: block; margin-bottom: 6px; font-weight: 650; }
.field small { display: block; margin-top: 6px; }

textarea, input, select {
  width: 100%;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

textarea:focus, input:focus, select:focus {
  border-color: rgba(124, 92, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.hintRow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.kbd {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  padding: 2px 8px;
  border-radius: 999px;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn, button {
  appearance: none;
  border: 1px solid rgba(124, 92, 255, 0.55);
  background: rgba(124, 92, 255, 0.16);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 80ms ease, background 120ms ease, border-color 120ms ease, opacity 120ms ease;
}

.btn:hover, button:hover {
  border-color: rgba(124, 92, 255, 0.9);
  background: rgba(124, 92, 255, 0.25);
}

.btn.secondary, button.secondary {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}

.btn:active, button:active {
  transform: translateY(1px);
}

.btn[disabled], button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background: rgba(0,0,0,0.18);
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  flex: 0 0 auto;
}
.status.loading .dot { background: rgba(124, 92, 255, 0.95); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18); }
.status.success .dot { background: rgba(52, 211, 153, 0.95); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16); }
.status.error .dot { background: rgba(255, 107, 107, 0.95); box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.14); }

.results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.resultItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.16);
}

.resultLeft { display: grid; gap: 4px; }
.resultTitle { font-weight: 800; }
.resultMeta { font-size: 12px; color: var(--muted); }

.linkBtn {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(52, 211, 153, 0.12);
}
.linkBtn:hover {
  border-color: rgba(52, 211, 153, 0.95);
  background: rgba(52, 211, 153, 0.22);
}

.footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 10px 0 2px;
}

