/* === CSS Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Korean UI: avoid orphan syllables (e.g. "다." alone on a line) */
.ui-message,
.toast,
.notice-popup,
.modal-sheet,
.nickname-modal,
.tx-badge,
.tx-item__payer,
.payer-circle__name,
.settle-panel__hint,
.settle-panel__title,
.empty-state__text,
.auth-form,
.card,
.book-item {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.tx-badge,
.tx-item__payer,
.payer-circle__name {
  white-space: nowrap;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
