/* =========================================================
   기본 요소 — 링크 / 폼 컨트롤 / 타이포 헬퍼
   ========================================================= */
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.row > * {
  flex: 1 1 auto;
}
.pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}
.spacer {
  height: 6px;
}

label {
  display: block;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 4px;
  color: var(--fg);
}

input[type="text"],
input[type="number"],
input[type="datetime-local"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
textarea {
  min-height: 120px;
  resize: vertical;
}

/* 커스텀 셀렉트 화살표 */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%237c8a78' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 1em;
  cursor: pointer;
  padding-right: 34px;
}

input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  padding: 3px;
}
input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: var(--font-mono);
}

/* 타이포 헬퍼 */
.mono {
  font-family: var(--font-mono);
}
.small {
  font-size: 12px;
}
.hint {
  font-size: 12px;
  color: var(--muted);
}
.status-ok {
  color: var(--ok);
}
.status-warn {
  color: var(--warn);
}
.status-err {
  color: var(--err);
}

footer {
  margin-top: 28px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}
