html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}



/* =========================
   기본 리셋 및 타이포그래피
========================= */

/* =========================
   비공식 안내 배너
========================= */
.unofficial-notice {
  background-color: #fff3cd;
  border-bottom: 2px solid #ffc107;
  padding: 12px 20px;
  text-align: center;
}

.unofficial-notice p {
  margin: 0;
  color: #856404;
  font-size: 14px;
  font-weight: 500;
}


/* ===== 기본 리셋 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.logo img {
  height: 40px;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}


body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ===== 타이포그래피 ===== */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: var(--spacing-md);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  color: var(--color-text);
}

h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
}

h2 {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
}

h3 {
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
}

h4 {
  font-size: clamp(1rem, 3vw, 1.25rem);
}

p {
  margin-bottom: var(--spacing-lg);
}

/* ===== 링크 ===== */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-primary-hover);
}

/* ===== 버튼 리셋 ===== */
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ===== 입력 요소 ===== */
input,
select,
textarea {
  font-family: inherit;
  font-size: 16px; /* iOS에서 줌 방지 */
  line-height: inherit;
}

/* 숫자 입력 화살표 제거 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* ===== 이미지 ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== 리스트 ===== */
ul,
ol {
  list-style: none;
}

/* ===== 유틸리티 클래스 ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* ===== 사용자 선택 방지 ===== */
.no-select {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* 전체 페이지 드래그 방지 */
body {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* 입력 필드는 선택 허용 */
input,
textarea,
[contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

/* ===== 스크롤바 스타일 ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-light);
  border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* ===== 터치 디바이스 최적화 ===== */
@media (hover: none) and (pointer: coarse) {
  /* 터치 디바이스에서 호버 효과 비활성화 */
  button:hover,
  a:hover {
    transform: none;
  }
}

/* =========================
   도구 스펙 공통 컴포넌트
========================= */

/* 스펙 강조 행 */
.tool-spec-row {
  margin: 0 0 8px 0;
  border-radius: 6px;
  background-color: rgba(74, 144, 226, 0.06);
}

/* 실제 콘텐츠를 가운데로 모아줌 */
.setting-row-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
}

/* ===== 반응형 폰트 크기 ===== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
}