/* reset + 基礎排版（行動優先）*/
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: var(--lh);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
a {
  color: var(--c-teal);
  text-decoration: none;
}
button {
  font-family: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* 版面容器（LIFF 手機寬）*/
.app {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
}
.container {
  padding: var(--sp-4);
  flex: 1;
}
.stack > * + * {
  margin-top: var(--sp-3);
}

/* 工具 class */
.muted {
  color: var(--c-muted);
}
.text-sm {
  font-size: var(--fs-sm);
}
.text-xs {
  font-size: var(--fs-xs);
}
.strong {
  font-weight: 700;
}
.row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.row--between {
  justify-content: space-between;
}
.grow {
  flex: 1;
  min-width: 0;
}
.hidden {
  display: none !important;
}
