/* ─────────────────────────── 버튼·입력 ─────────────────────────── */

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
label.button,
a.button {
  cursor: pointer;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  background: var(--fill);
  color: var(--text-2);
  font-size: var(--fs-ui);
  font-weight: 600;
  line-height: 20px;
  transition: background var(--fast), box-shadow var(--fast), transform var(--fast) var(--ease-out);
}
button:hover,
label.button:hover,
a.button:hover {
  background: var(--fill-2);
}
/* 파일 선택 칸을 감싼 버튼 모양 라벨(안의 input은 숨긴다)·버튼 모양 링크 */
label.button,
a.button {
  display: inline-block;
  text-decoration: none;
}
label.button:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: var(--shadow-press);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* 주 버튼: 빗썸 오렌지 + 검은 글자 (5.8:1) */
button.primary {
  font-family: var(--font-heading);
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 1px 2px rgb(184 72 0 / 24%);
}
button.primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 2px 6px -1px rgb(184 72 0 / 30%);
}
button.primary:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: inset 0 1px 3px rgb(124 49 0 / 30%);
}
button.big,
a.button.big {
  padding: 12px 22px;
  font-size: var(--fs-read);
  border-radius: var(--radius-sm);
}
button:disabled,
button:disabled:hover {
  background: var(--fill);
  color: var(--text-4);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
.icon {
  display: block;
  flex: none;
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  background: none;
  color: var(--text-2);
  font-weight: 500;
}
.link:hover {
  background: none;
  color: var(--text);
}
.iconbtn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 20px;
  line-height: 1;
}
.iconbtn:hover {
  background: var(--fill);
}
.danger {
  color: var(--red-text);
}
input,
textarea,
select {
  border: 1px solid var(--field);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  background: var(--paper);
  box-shadow: inset 0 1px 2px rgb(28 32 40 / 6%);
  max-width: 100%;
  min-width: 0;
  transition: border-color var(--fast), box-shadow var(--fast);
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px #ff6c0033;
}
textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  line-height: 1.6;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
label.field {
  display: grid;
  gap: 6px;
  font-size: var(--fs-ui);
  font-weight: 600;
  color: var(--text-2);
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stack {
  display: grid;
  gap: 16px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.actions.center {
  justify-content: center;
}
