/* ==========================================================================
   savetax 해커톤 디자인 시스템 v1 — 토큰 + 컴포넌트(st-*)
   원본: 디자인 시스템 tokens.json·components/bundle.css(2026-10-11). 변수 이름은 사이트의 옛 변수(--brand --line --ok --radius-md …)와
   부딪히지 않게 모두 --st-<토큰>이다. bundle.css는 var(--토큰) → var(--st-토큰)으로만 바꾸고 나머지는 그대로다.
   app.css·brand.css 다음에 읽는다. 화면 담당은 이 파일을 고치지 않는다.
   ========================================================================== */

:root {
  /* 색 */
  --st-paper: #ffffff;
  --st-paper-warm: #fffaf7;
  --st-paper-sunk: #f7f4f1;
  --st-paper-deep: #efeae5;
  --st-paper-glass: rgba(255, 255, 255, 0.86);
  --st-line: rgba(25, 23, 20, 0.10);
  --st-line-strong: #8f8881;
  --st-ink: #191714;
  --st-ink-2: #5f5a54;
  --st-ink-3: #77716a;
  --st-brand: #f36f3d;
  --st-brand-hover: #f6845a;
  --st-brand-display: #e85f2b;
  --st-brand-ink: #b8461d;
  --st-brand-soft: #fff0e8;
  --st-on-brand: var(--st-ink);
  --st-surface-ink: var(--st-ink);
  --st-on-ink: #ffffff;
  --st-on-ink-2: #c4bdb5;
  --st-ok: #1f6f50;
  --st-ok-soft: #e4f3ec;
  --st-warn: #9a5f0e;
  --st-warn-soft: #fdf1dc;
  --st-danger: #c23845;
  --st-danger-soft: #fdeaec;
  --st-info: #1f7193;
  --st-info-soft: #e3f1f7;
  --st-focus-ring: var(--st-brand-ink);
  --st-scrim: rgba(25, 23, 20, 0.42);
  --st-person-peach: #ffe3d6;
  --st-person-lilac: #e8e1ff;
  --st-person-mint: #d8f3e6;
  --st-person-butter: #fff0c2;
  --st-person-sky: #dcecff;
  --st-person-pink: #ffdbe7;
  --st-person-lime: #e9f5cf;
  --st-agent-cheek: #ffc1a3;
  --st-agent-mouth: #7a2a0c;
  /* 글꼴 */
  --st-font-sans: "Pretendard Variable", Pretendard, "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --st-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* 간격 */
  --st-space-1: 4px;
  --st-space-2: 8px;
  --st-space-3: 12px;
  --st-space-4: 16px;
  --st-space-5: 20px;
  --st-space-6: 24px;
  --st-space-8: 32px;
  --st-space-10: 40px;
  --st-space-12: 48px;
  --st-space-16: 64px;
  --st-space-24: 96px;
  /* 모서리 */
  --st-radius-xs: 6px;
  --st-radius-sm: 10px;
  --st-radius-md: 14px;
  --st-radius-lg: 20px;
  --st-radius-xl: 28px;
  --st-radius-pill: 999px;
  --st-radius-agent: 29.4%;
  /* 그림자 */
  --st-shadow-sm: 0 1px 2px rgba(25, 23, 20, 0.06), 0 1px 1px rgba(25, 23, 20, 0.04);
  --st-shadow-md: 0 14px 32px -16px rgba(25, 23, 20, 0.22), 0 2px 6px rgba(25, 23, 20, 0.05);
  --st-shadow-lg: 0 22px 44px -22px rgba(25, 23, 20, 0.40), 0 2px 8px rgba(25, 23, 20, 0.06);
  --st-shadow-agent: 0 12px 20px -10px rgba(234, 95, 44, 0.55);
  --st-shadow-focus: 0 0 0 2px #ffffff, 0 0 0 4px #b8461d;
  /* 크기 */
  --st-container: 1200px;
  --st-header-h: 72px;
  --st-control-h: 48px;
  --st-agent-xs: 20px;
  --st-agent-sm: 26px;
  --st-agent-md: 40px;
  --st-agent-lg: 64px;
  --st-agent-xl: 96px;
  /* 겹침 */
  --st-z-header: 50;
  --st-z-modal: 80;
  --st-z-toast: 95;
  /* 글자 단계(font 줄임 + 자간) */
  --st-type-display-xl: 900 88px/0.98 var(--st-font-sans);
  --st-type-display-xl-ls: -0.055em;
  --st-type-display: 800 64px/1.02 var(--st-font-sans);
  --st-type-display-ls: -0.05em;
  --st-type-number-xl: 800 56px/1 var(--st-font-sans);
  --st-type-number-xl-ls: -0.04em;
  --st-type-h1: 800 44px/1.12 var(--st-font-sans);
  --st-type-h1-ls: -0.04em;
  --st-type-h2: 800 32px/1.2 var(--st-font-sans);
  --st-type-h2-ls: -0.035em;
  --st-type-h3: 700 22px/1.32 var(--st-font-sans);
  --st-type-h3-ls: -0.025em;
  --st-type-title: 700 18px/1.4 var(--st-font-sans);
  --st-type-title-ls: -0.02em;
  --st-type-body-lg: 400 18px/1.7 var(--st-font-sans);
  --st-type-body-lg-ls: -0.012em;
  --st-type-body: 400 16px/1.65 var(--st-font-sans);
  --st-type-body-ls: -0.012em;
  --st-type-small: 500 14px/1.55 var(--st-font-sans);
  --st-type-small-ls: -0.01em;
  --st-type-caption: 600 12.5px/1.45 var(--st-font-sans);
  --st-type-caption-ls: 0.01em;
  --st-type-number: 700 16px/1.4 var(--st-font-sans);
  --st-type-number-ls: -0.02em;
  --st-type-code: 500 14px/1.6 var(--st-font-mono);
  --st-type-code-ls: -0.01em;
}

/* ---------- 글자 단계 ---------- */
.st-t-display-xl { font: var(--st-type-display-xl); letter-spacing: var(--st-type-display-xl-ls); }
.st-t-display { font: var(--st-type-display); letter-spacing: var(--st-type-display-ls); }
.st-t-number-xl { font: var(--st-type-number-xl); letter-spacing: var(--st-type-number-xl-ls); font-variant-numeric: tabular-nums; }
.st-t-h1 { font: var(--st-type-h1); letter-spacing: var(--st-type-h1-ls); }
.st-t-h2 { font: var(--st-type-h2); letter-spacing: var(--st-type-h2-ls); }
.st-t-h3 { font: var(--st-type-h3); letter-spacing: var(--st-type-h3-ls); }
.st-t-title { font: var(--st-type-title); letter-spacing: var(--st-type-title-ls); }
.st-t-body-lg { font: var(--st-type-body-lg); letter-spacing: var(--st-type-body-lg-ls); }
.st-t-body { font: var(--st-type-body); letter-spacing: var(--st-type-body-ls); }
.st-t-small { font: var(--st-type-small); letter-spacing: var(--st-type-small-ls); }
.st-t-caption { font: var(--st-type-caption); letter-spacing: var(--st-type-caption-ls); }
.st-t-number { font: var(--st-type-number); letter-spacing: var(--st-type-number-ls); font-variant-numeric: tabular-nums; }
.st-t-code { font: var(--st-type-code); letter-spacing: var(--st-type-code-ls); }

/* savetax 해커톤 디자인 시스템 — 컴포넌트 스타일. tokens.css 다음에 읽는다.
   모든 클래스는 st- 로 시작한다(지금 사이트의 .btn·.pill·.panel과 함께 있어도 부딪히지 않게 — 화면 단위로 옮긴다).
   값은 토큰(var(--…))에서만 읽는다. 움직임은 transform·opacity만, prefers-reduced-motion이면 멈춘다. */

/* ---------- 바탕 ---------- */
body {
  margin: 0; background: var(--st-paper); color: var(--st-ink);
  font-family: var(--st-font-sans); font-size: 16px; line-height: 1.65; letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.st-num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.st-em { color: var(--st-brand-display); }
.st-link { color: var(--st-brand-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.st-link:hover { text-decoration-color: var(--st-brand); }
.st-wrap { width: min(var(--st-container), calc(100% - 2 * var(--st-space-6))); margin-inline: auto; }
.st-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--st-space-3); }
.st-stack { display: grid; gap: var(--st-space-4); }
.st-demo { padding: var(--st-space-6); }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--st-focus-ring); outline-offset: 2px; }

/* ---------- 꼬마 에이전트·사람 ---------- */
.st-agent {
  position: relative; display: inline-block; flex: none; vertical-align: middle;
  width: var(--st-agent-md); height: var(--st-agent-md); border-radius: var(--st-radius-agent);
  background: var(--st-brand); box-shadow: var(--st-shadow-agent);
}
.st-agent > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.st-agent--xs { width: var(--st-agent-xs); height: var(--st-agent-xs); box-shadow: none; }
.st-agent--sm { width: var(--st-agent-sm); height: var(--st-agent-sm); }
.st-agent--lg { width: var(--st-agent-lg); height: var(--st-agent-lg); }
.st-agent--xl { width: var(--st-agent-xl); height: var(--st-agent-xl); }
.st-agent--flat { box-shadow: none; }
/* 콩콩: 착지할 때 납작, 뜰 때 길쭉(스쿼시&스트레치) — 바닥 가운데가 축 */
.st-agent--hop { transform-origin: 50% 100%; animation: st-hop 1.15s cubic-bezier(0.3, 0.7, 0.4, 1) infinite; animation-delay: var(--d, 0s); }
@keyframes st-hop {
  0%, 100% { transform: translateY(0) scale(1.1, 0.88); }
  12% { transform: translateY(0) scale(0.94, 1.08); }
  40% { transform: translateY(-38%) scale(0.96, 1.06); }
  62% { transform: translateY(0) scale(1.08, 0.9); }
  74% { transform: translateY(0) scale(1, 1); }
}
.st-agent--pop { animation: st-pop 0.62s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: var(--d, 0s); }
@keyframes st-pop { from { transform: scale(0.4); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }

.st-person {
  display: inline-grid; place-items: center; flex: none; vertical-align: middle;
  width: 40px; height: 40px; border-radius: 50%; background: var(--st-person-peach);
  font-size: 22px; line-height: 1; font-weight: 800; color: var(--st-ink); letter-spacing: -0.03em;
}
.st-person--sm { width: 28px; height: 28px; font-size: 15px; }
.st-person--lg { width: 56px; height: 56px; font-size: 31px; }
.st-person--xl { width: 88px; height: 88px; font-size: 48px; }
.st-person--peach { background: var(--st-person-peach); } .st-person--lilac { background: var(--st-person-lilac); }
.st-person--mint { background: var(--st-person-mint); } .st-person--butter { background: var(--st-person-butter); }
.st-person--sky { background: var(--st-person-sky); } .st-person--pink { background: var(--st-person-pink); }
.st-person--lime { background: var(--st-person-lime); }
/* 사람 + 짝 꼬마 에이전트(오른쪽 아래에 붙는다) — '사람도, 에이전트도' */
.st-pair { position: relative; display: inline-flex; flex: none; vertical-align: middle; }
.st-pair > .st-agent { position: absolute; right: -14%; bottom: -10%; width: 46%; height: 46%; box-shadow: 0 0 0 2px var(--st-paper); }
/* 여럿이 겹쳐 선 줄 */
.st-crowd { display: inline-flex; align-items: center; }
.st-crowd > * { box-shadow: 0 0 0 3px var(--st-paper); }
.st-crowd > * + * { margin-left: -12px; }
.st-crowd-more { display: inline-grid; place-items: center; height: 28px; padding: 0 10px; margin-left: 6px; border-radius: var(--st-radius-pill); background: var(--st-paper-sunk); color: var(--st-ink-2); font: 700 12.5px/1 var(--st-font-sans); }

/* ---------- 로고 ---------- */
.st-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--st-ink); text-decoration: none; white-space: nowrap; }
.st-logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--st-radius-agent); background: var(--st-brand); flex: none; }
.st-logo-mark svg { width: 21px; height: 21px; }
.st-logo-word { display: inline-flex; align-items: baseline; gap: 6px; font-size: 19px; line-height: 1; }
.st-logo-word b { font-weight: 800; letter-spacing: -0.045em; }
.st-logo-word span { font-weight: 500; font-size: 0.86em; letter-spacing: -0.03em; color: var(--st-ink-2); }

/* ---------- 버튼 ---------- */
.st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--st-space-2);
  height: var(--st-control-h); padding: 0 var(--st-space-6); border-radius: var(--st-radius-pill);
  border: 1px solid transparent; background: var(--st-paper); color: var(--st-ink);
  font: 700 16px/1 var(--st-font-sans); letter-spacing: -0.02em; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.15s, border-color 0.15s, box-shadow 0.2s;
}
.st-btn:active { transform: scale(0.96); }
.st-btn svg { width: 18px; height: 18px; flex: none; }
.st-btn .st-arrow { transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.st-btn:hover .st-arrow { transform: translateX(3px); }
.st-btn--primary { background: var(--st-brand); color: var(--st-on-brand); box-shadow: var(--st-shadow-agent); }
.st-btn--primary:hover { background: var(--st-brand-hover); }
.st-btn--secondary { border-color: var(--st-line-strong); }
.st-btn--secondary:hover { background: var(--st-paper-warm); border-color: var(--st-ink); }
.st-btn--ink { background: var(--st-surface-ink); color: var(--st-on-ink); }
.st-btn--ink:hover { box-shadow: var(--st-shadow-md); }
.st-btn--ghost { background: transparent; }
.st-btn--ghost:hover { background: var(--st-paper-sunk); }
.st-btn--danger { color: var(--st-danger); border-color: var(--st-danger); }
.st-btn--danger:hover { background: var(--st-danger-soft); }
.st-btn--sm { height: 36px; padding: 0 var(--st-space-4); font-size: 14px; }
.st-btn--lg { height: 56px; padding: 0 var(--st-space-8); font-size: 17px; }
.st-btn--block { width: 100%; }
.st-btn:disabled, .st-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }
/* 꺼진 주 버튼은 옅은 살구에 회색 글자(대비 낮음) 대신 움푹한 면 + 진한 회색 글자로 읽히게 한다. */
.st-btn--primary:disabled, .st-btn--primary[aria-disabled="true"] { opacity: 1; background: var(--st-paper-deep); border-color: var(--st-paper-deep); color: var(--st-ink-2); }

/* ---------- 알약(상태칩) ---------- */
.st-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--st-radius-pill);
  background: var(--st-paper-sunk); color: var(--st-ink-2); font: 600 13px/1 var(--st-font-sans); letter-spacing: -0.01em; white-space: nowrap;
}
.st-pill > i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.st-pill--brand { background: var(--st-brand-soft); color: var(--st-brand-ink); }
.st-pill--ok { background: var(--st-ok-soft); color: var(--st-ok); }
.st-pill--warn { background: var(--st-warn-soft); color: var(--st-warn); }
.st-pill--danger { background: var(--st-danger-soft); color: var(--st-danger); }
.st-pill--info { background: var(--st-info-soft); color: var(--st-info); }
.st-pill--outline { background: var(--st-paper); color: var(--st-ink); box-shadow: inset 0 0 0 1px var(--st-line-strong); }
.st-pill--outline > i { background: var(--st-brand); }
.st-pill--live > i { background: var(--st-brand); animation: st-live 1.6s ease-out infinite; }
@keyframes st-live { from { box-shadow: 0 0 0 0 rgba(243, 111, 61, 0.55); } to { box-shadow: 0 0 0 7px rgba(243, 111, 61, 0); } }
.st-pill--lg { height: 36px; padding: 0 16px; font-size: 15px; }
.st-pill b { font-weight: 800; color: var(--st-ink); }

/* ---------- 헤더 ---------- */
.st-header {
  position: sticky; top: 0; z-index: var(--st-z-header); height: var(--st-header-h);
  display: flex; align-items: center; gap: var(--st-space-8); padding: 0 var(--st-space-6);
  background: var(--st-paper-glass); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--st-line);
}
.st-nav { display: flex; align-items: center; gap: var(--st-space-1); }
.st-nav a {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: var(--st-radius-pill);
  color: var(--st-ink-2); font: 600 15px/1 var(--st-font-sans); letter-spacing: -0.02em; text-decoration: none;
}
.st-nav a:hover { color: var(--st-ink); background: var(--st-paper-sunk); }
.st-nav a[aria-current="page"] { color: var(--st-ink); font-weight: 700; }
.st-nav a[aria-current="page"]::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; margin-left: -3px; border-radius: var(--st-radius-agent); background: var(--st-brand); }
.st-header-end { margin-left: auto; display: flex; align-items: center; gap: var(--st-space-2); }

/* ---------- 탭 ---------- */
.st-tabs { display: inline-flex; width: max-content; justify-self: start; gap: 2px; padding: 4px; border-radius: var(--st-radius-pill); background: var(--st-paper-sunk); max-width: 100%; overflow-x: auto; }
.st-tab {
  height: 36px; padding: 0 16px; border: 0; border-radius: var(--st-radius-pill); background: transparent; color: var(--st-ink-2);
  font: 600 14px/1 var(--st-font-sans); letter-spacing: -0.015em; white-space: nowrap; cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.st-tab:hover { color: var(--st-ink); }
.st-tab[aria-selected="true"] { background: var(--st-paper); color: var(--st-ink); font-weight: 700; box-shadow: var(--st-shadow-sm); }

/* ---------- 섹션 머리 ---------- */
.st-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--st-brand-ink); font: 700 14px/1 var(--st-font-sans); letter-spacing: -0.01em; }
.st-eyebrow::before { content: ''; width: 10px; height: 10px; border-radius: var(--st-radius-agent); background: var(--st-brand); }
.st-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--st-space-6); margin-bottom: var(--st-space-10); }
.st-sec-head h2 { margin: var(--st-space-3) 0 0; font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.st-sec-head p { margin: var(--st-space-3) 0 0; max-width: 620px; color: var(--st-ink-2); font-size: 18px; line-height: 1.7; }

/* ---------- 카드·패널 ---------- */
.st-card { position: relative; background: var(--st-paper); border: 1px solid var(--st-line); border-radius: var(--st-radius-lg); box-shadow: var(--st-shadow-sm); padding: var(--st-space-6); }
.st-card--hover { transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s; }
.st-card--hover:hover { transform: translateY(-3px); box-shadow: var(--st-shadow-md); }
.st-panel { background: var(--st-paper-warm); border-radius: var(--st-radius-xl); padding: var(--st-space-8); }

/* ---------- 큰 숫자 보드 ---------- */
.st-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); background: var(--st-paper); border: 1px solid var(--st-line); border-radius: var(--st-radius-xl); overflow: hidden; }
.st-stat { padding: var(--st-space-6) var(--st-space-8); }
.st-stat + .st-stat { box-shadow: inset 1px 0 0 var(--st-line); }
.st-stat-label { display: flex; align-items: center; gap: 8px; color: var(--st-ink-2); font: 600 14px/1.4 var(--st-font-sans); }
.st-stat-value { margin-top: var(--st-space-2); font: 800 44px/1.05 var(--st-font-sans); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: var(--st-ink); }
.st-stat-value small { margin-left: 4px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--st-ink-2); }
.st-stat-value.st-em { color: var(--st-brand-display); }
.st-stat-sub { margin-top: var(--st-space-2); color: var(--st-ink-3); font: 600 12.5px/1.45 var(--st-font-sans); }

/* ---------- 순위표 ---------- */
.st-board { background: var(--st-paper); border: 1px solid var(--st-line); border-radius: var(--st-radius-xl); overflow: hidden; }
.st-board-head, .st-rank-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: var(--st-space-4); padding: 0 var(--st-space-6); }
.st-board-head { height: 44px; background: var(--st-paper-sunk); color: var(--st-ink-2); font: 600 12.5px/1 var(--st-font-sans); }
.st-rank-row { min-height: 72px; border-top: 1px solid var(--st-line); }
.st-rank-row.is-me { background: var(--st-brand-soft); }
.st-rank {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--st-radius-agent);
  background: var(--st-paper-sunk); color: var(--st-ink-2); font: 800 15px/1 var(--st-font-sans); font-variant-numeric: tabular-nums;
}
.st-rank--1 { background: var(--st-brand); color: var(--st-on-brand); box-shadow: var(--st-shadow-agent); }
.st-rank--2, .st-rank--3 { background: var(--st-brand-soft); color: var(--st-brand-ink); }
.st-who { display: flex; align-items: center; gap: var(--st-space-3); min-width: 0; }
.st-who-text { min-width: 0; }
.st-who-name { display: block; font: 700 16px/1.3 var(--st-font-sans); letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-who-sub { display: block; margin-top: 2px; color: var(--st-ink-3); font: 600 12.5px/1.4 var(--st-font-sans); }
.st-amount { font: 800 18px/1.2 var(--st-font-sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.st-amount small { display: block; margin-top: 2px; color: var(--st-ink-3); font: 600 12px/1.3 var(--st-font-sans); letter-spacing: 0; }

/* ---------- 실시간 피드(말풍선) ---------- */
.st-feed { display: grid; gap: var(--st-space-3); }
.st-feed-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--st-space-3); align-items: start; }
.st-bubble {
  position: relative; padding: 12px 16px; border-radius: 4px var(--st-radius-lg) var(--st-radius-lg) var(--st-radius-lg);
  background: var(--st-paper-sunk); min-width: 0;
}
.st-bubble-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.st-bubble-top b { font-weight: 700; letter-spacing: -0.02em; }
.st-bubble-top time { color: var(--st-ink-3); font: 600 12px/1 var(--st-font-sans); }
.st-bubble p { margin: 4px 0 0; color: var(--st-ink-2); font-size: 15px; line-height: 1.55; }
.st-bubble .st-row { margin-top: var(--st-space-2); gap: var(--st-space-2); }

/* ---------- 상품 카드 ---------- */
.st-product { display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: 0; }
.st-product-photo { position: relative; aspect-ratio: 4 / 3; background: var(--st-paper-sunk); display: grid; place-items: center; font-size: 56px; }
.st-product-photo img { width: 100%; height: 100%; object-fit: contain; }
.st-product-found { position: absolute; top: var(--st-space-3); right: var(--st-space-3); display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--st-radius-agent); background: var(--st-brand); box-shadow: var(--st-shadow-agent); transform: rotate(-8deg); }
.st-product-found svg { width: 24px; height: 24px; }
.st-product-body { display: grid; gap: var(--st-space-2); align-content: start; padding: var(--st-space-5) var(--st-space-6) var(--st-space-6); }
.st-product-title { margin: 0; font: 700 18px/1.4 var(--st-font-sans); letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-product-spec { margin: 0; color: var(--st-ink-3); font: 600 12.5px/1.45 var(--st-font-sans); }
.st-product-price { display: flex; align-items: baseline; gap: 6px; margin-top: var(--st-space-1); font: 800 22px/1.2 var(--st-font-sans); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.st-product-price small { color: var(--st-ink-3); font: 600 12.5px/1 var(--st-font-sans); letter-spacing: 0; }
.st-product-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--st-ink-2); font: 600 13px/1.4 var(--st-font-sans); }
.st-product-actions { display: flex; flex-wrap: wrap; gap: var(--st-space-2); margin-top: var(--st-space-2); }

/* ---------- 단계 ---------- */
.st-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--st-space-4); counter-reset: st-step; }
.st-step { position: relative; padding: var(--st-space-6); border-radius: var(--st-radius-lg); background: var(--st-paper); border: 1px solid var(--st-line); }
.st-step-no { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--st-radius-agent); background: var(--st-brand); color: var(--st-on-brand); font: 900 18px/1 var(--st-font-sans); box-shadow: var(--st-shadow-agent); }
.st-step h3 { margin: var(--st-space-4) 0 var(--st-space-2); font: 700 20px/1.32 var(--st-font-sans); letter-spacing: -0.025em; }
.st-step p { margin: 0; color: var(--st-ink-2); font-size: 15px; line-height: 1.6; }

/* ---------- 말풍선 안내 ---------- */
.st-callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--st-space-3); align-items: start; max-width: 760px; }
.st-callout-bubble ul { margin: var(--st-space-1) 0 0; padding-left: 20px; display: grid; gap: var(--st-space-1); font-size: 15px; line-height: 1.6; color: var(--st-ink); }
.st-callout-bubble { position: relative; padding: var(--st-space-4) var(--st-space-5); border-radius: 4px var(--st-radius-xl) var(--st-radius-xl) var(--st-radius-xl); background: var(--st-brand-soft); color: var(--st-ink); }
.st-callout-bubble strong { display: block; margin-bottom: 2px; font-weight: 800; letter-spacing: -0.02em; }
.st-callout-bubble p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--st-ink); }
/* 말풍선 색은 팁·안내=brand-soft, 주의=warn, 안 돼요=danger 셋이다(파랑 안내를 따로 두지 않는다 — 통합 점검 3차). */
.st-callout--info .st-callout-bubble { background: var(--st-brand-soft); }
.st-callout--warn .st-callout-bubble { background: var(--st-warn-soft); }
.st-callout--danger .st-callout-bubble { background: var(--st-danger-soft); }
.st-callout-tag { display: inline-block; margin-bottom: 6px; font: 800 12.5px/1 var(--st-font-sans); letter-spacing: 0.01em; color: var(--st-brand-ink); }
.st-callout--info .st-callout-tag { color: var(--st-brand-ink); }
.st-callout--warn .st-callout-tag { color: var(--st-warn); }
.st-callout--danger .st-callout-tag { color: var(--st-danger); }
/* 꼬마 없는 말풍선 — 한 화면에 안내가 여럿일 때 꼬마는 셋까지만 */
.st-callout--quiet { grid-template-columns: minmax(0, 1fr); }
.st-callout--quiet .st-callout-bubble { border-radius: var(--st-radius-xl); }

/* ---------- 코드 블록 ---------- */
.st-code { border-radius: var(--st-radius-lg); background: var(--st-paper-sunk); overflow: hidden; }
.st-code-head { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: var(--st-space-3); padding: var(--st-space-2) var(--st-space-2) var(--st-space-2) var(--st-space-4); border-bottom: 1px solid var(--st-line); }
.st-code-head .st-tabs { background: transparent; padding: 0; }
.st-code-head .st-tab[aria-selected="true"] { background: var(--st-paper); }
.st-code pre { margin: 0; padding: var(--st-space-5) var(--st-space-6); overflow-x: auto;
  /* 가로로 더 있으면 오른쪽 가장자리에 그림자가 보인다 */
  background: linear-gradient(to right, var(--st-paper-sunk) 30%, rgba(247, 244, 241, 0)) left center / 32px 100% no-repeat local, linear-gradient(to left, var(--st-paper-sunk) 30%, rgba(247, 244, 241, 0)) right center / 32px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(25, 23, 20, 0.14), rgba(25, 23, 20, 0)) left center / 12px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(25, 23, 20, 0.14), rgba(25, 23, 20, 0)) right center / 12px 100% no-repeat scroll; font: 500 14px/1.7 var(--st-font-mono); color: var(--st-ink); tab-size: 2; }
.st-code .c { color: var(--st-ink-2); } .st-code .s { color: var(--st-brand-ink); } .st-code .k { color: var(--st-info); font-weight: 700; }
.st-inline-code { padding: 2px 6px; border-radius: var(--st-radius-xs); background: var(--st-paper-sunk); color: var(--st-ink); font: 500 0.88em/1 var(--st-font-mono); }

/* ---------- 입력 ---------- */
.st-field { display: grid; gap: var(--st-space-2); }
.st-label { font: 700 14px/1.3 var(--st-font-sans); letter-spacing: -0.015em; color: var(--st-ink); }
.st-label .st-req { color: var(--st-brand-ink); margin-left: 2px; }
.st-input {
  box-sizing: border-box; width: 100%; height: var(--st-control-h); padding: 0 var(--st-space-4); border-radius: var(--st-radius-md);
  border: 1px solid var(--st-line-strong); background: var(--st-paper); color: var(--st-ink); font: 500 16px/1 var(--st-font-sans); letter-spacing: -0.012em;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.st-input { height: auto; min-height: 120px; padding: var(--st-space-3) var(--st-space-4); line-height: 1.6; resize: vertical; }
.st-input::placeholder { color: var(--st-ink-3); }
.st-input:hover { border-color: var(--st-ink-2); }
.st-input:focus { outline: none; border-color: var(--st-brand-ink); box-shadow: 0 0 0 3px var(--st-brand-soft); }
.st-input[aria-invalid="true"] { border-color: var(--st-danger); }
.st-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--st-danger-soft); }
.st-input-wrap { position: relative; display: flex; align-items: center; }
.st-input-wrap > .st-prefix { position: absolute; left: var(--st-space-4); color: var(--st-ink-2); font: 700 16px/1 var(--st-font-sans); pointer-events: none; }
.st-input-wrap > .st-prefix + .st-input { padding-left: 38px; font-variant-numeric: tabular-nums; }
.st-hint { color: var(--st-ink-3); font: 600 12.5px/1.45 var(--st-font-sans); }
.st-error { display: flex; gap: 6px; align-items: flex-start; color: var(--st-danger); font: 600 13px/1.45 var(--st-font-sans); }

/* ---------- 체크박스 ---------- */
.st-check { display: inline-flex; align-items: flex-start; gap: var(--st-space-3); cursor: pointer; font-size: 15px; line-height: 1.5; color: var(--st-ink); }
.st-check input { appearance: none; -webkit-appearance: none; margin: 1px 0 0; width: 22px; height: 22px; flex: none; border-radius: var(--st-radius-xs); border: 1.5px solid var(--st-line-strong); background: var(--st-paper); display: grid; place-items: center; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.st-check input::after { content: ''; width: 11px; height: 6px; border: solid var(--st-on-brand); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.st-check input:checked { background: var(--st-brand); border-color: var(--st-brand); }
.st-check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }

/* ---------- 검색창·칩 ---------- */
.st-search { display: flex; align-items: center; gap: var(--st-space-2); height: 64px; padding: 0 8px 0 var(--st-space-5); border-radius: var(--st-radius-pill); background: var(--st-paper); border: 1px solid var(--st-line); box-shadow: var(--st-shadow-md); }
.st-search svg { width: 22px; height: 22px; flex: none; color: var(--st-ink-2); }
.st-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--st-ink); font: 500 18px/1 var(--st-font-sans); letter-spacing: -0.015em; }
.st-search input::placeholder { color: var(--st-ink-3); }
.st-search input:focus { outline: none; }
.st-search:focus-within { border-color: var(--st-brand-ink); box-shadow: var(--st-shadow-md), 0 0 0 3px var(--st-brand-soft); }
.st-chips { display: flex; flex-wrap: wrap; gap: var(--st-space-2); }
.st-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: var(--st-radius-pill);
  border: 1px solid var(--st-line-strong); background: var(--st-paper); color: var(--st-ink); font: 600 14px/1 var(--st-font-sans); letter-spacing: -0.015em; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.st-chip:hover { background: var(--st-paper-warm); }
.st-chip:active { transform: scale(0.95); }
.st-chip[aria-pressed="true"] { background: var(--st-surface-ink); border-color: var(--st-surface-ink); color: var(--st-on-ink); }
.st-chip small { color: inherit; opacity: 0.7; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- 모달 ---------- */
.st-scrim { position: fixed; inset: 0; z-index: var(--st-z-modal); display: grid; place-items: center; padding: var(--st-space-6); background: var(--st-scrim); }
.st-dialog { position: relative; width: min(480px, 100%); padding: var(--st-space-8); border-radius: var(--st-radius-xl); background: var(--st-paper); box-shadow: var(--st-shadow-lg); }
.st-dialog > .st-agent { position: absolute; top: calc(-1 * var(--st-agent-md) + 6px); left: var(--st-space-8); }
.st-dialog h2 { margin: 0 0 var(--st-space-2); font: 800 22px/1.32 var(--st-font-sans); letter-spacing: -0.025em; }
.st-dialog p { margin: 0; color: var(--st-ink-2); font-size: 15px; line-height: 1.65; }
.st-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--st-space-2); margin-top: var(--st-space-6); }

/* ---------- 토스트 ---------- */
.st-toasts { position: fixed; right: var(--st-space-5); bottom: var(--st-space-5); z-index: var(--st-z-toast); display: grid; gap: var(--st-space-2); }
.st-toast { display: flex; align-items: center; gap: var(--st-space-3); min-width: 260px; max-width: 400px; padding: 12px 18px 12px 12px; border-radius: var(--st-radius-md); background: var(--st-surface-ink); color: var(--st-on-ink); font: 600 14px/1.45 var(--st-font-sans); box-shadow: var(--st-shadow-lg); animation: st-toast-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.st-toast small { display: block; color: var(--st-on-ink-2); font-weight: 500; }
@keyframes st-toast-in { from { transform: translateY(16px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 빈 화면·오류·로딩 ---------- */
.st-empty { display: grid; justify-items: center; gap: var(--st-space-3); padding: var(--st-space-12) var(--st-space-6); text-align: center; }
.st-empty h3 { margin: var(--st-space-2) 0 0; font: 700 20px/1.32 var(--st-font-sans); letter-spacing: -0.025em; }
.st-empty p { margin: 0; max-width: 360px; color: var(--st-ink-2); font-size: 15px; line-height: 1.6; }
.st-empty .st-btn { margin-top: var(--st-space-2); }
.st-think { position: relative; display: inline-block; }
.st-think::before { content: attr(data-say); position: absolute; right: -18px; top: -16px; display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 9px; border-radius: var(--st-radius-pill); background: var(--st-paper); box-shadow: var(--st-shadow-md); color: var(--st-ink); font: 900 18px/1 var(--st-font-sans); }
.st-loading { display: inline-flex; align-items: flex-end; gap: 6px; height: 48px; }
.st-loading-text { color: var(--st-ink-3); font: 600 13px/1.4 var(--st-font-sans); }
.st-skeleton { border-radius: var(--st-radius-sm); background: linear-gradient(90deg, var(--st-paper-deep) 25%, var(--st-paper-sunk) 50%, var(--st-paper-deep) 75%); background-size: 200% 100%; animation: st-shimmer 1.4s linear infinite; }
@keyframes st-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- 푸터 ---------- */
.st-footer { background: var(--st-paper-warm); border-top: 1px solid var(--st-line); padding: var(--st-space-16) 0 var(--st-space-8); color: var(--st-ink-2); }
.st-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--st-space-10); }
.st-footer h4 { margin: 0 0 var(--st-space-3); color: var(--st-ink); font: 700 14px/1 var(--st-font-sans); }
.st-footer a:not(.st-logo) { display: block; padding: 6px 0; color: var(--st-ink-2); text-decoration: none; font-size: 15px; }
.st-footer a:not(.st-logo):hover { color: var(--st-brand-ink); }
.st-footer-desc { margin: var(--st-space-4) 0 0; max-width: 360px; font-size: 14px; line-height: 1.6; }
.st-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--st-space-4); margin-top: var(--st-space-12); padding-top: var(--st-space-6); border-top: 1px solid var(--st-line); font-size: 13px; color: var(--st-ink-3); }

/* ---------- 홈 첫 화면 ---------- */
.st-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: var(--st-space-12); padding: var(--st-space-16) 0; }
.st-hero h1 { margin: var(--st-space-5) 0 0; font: 900 clamp(48px, 7vw, 88px)/0.98 var(--st-font-sans); letter-spacing: -0.055em; text-wrap: balance; }
.st-hero-lead { margin: var(--st-space-6) 0 0; max-width: 520px; color: var(--st-ink-2); font-size: 18px; line-height: 1.7; }
.st-hero-lead b { color: var(--st-ink); }
.st-hero .st-row { margin-top: var(--st-space-8); }
.st-hero-meta { display: flex; flex-wrap: wrap; gap: var(--st-space-2); margin-top: var(--st-space-6); }
.st-cloud { position: relative; aspect-ratio: 1 / 0.92; }
.st-cloud > * { position: absolute; }
.st-word { display: inline-block; animation: st-blur-in 0.62s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: var(--d, 0s); }
@keyframes st-blur-in { from { opacity: 0; filter: blur(14px); transform: translateY(18px); } to { opacity: 1; filter: none; transform: none; } }

/* ---------- 마무리 행동 띠 ---------- */
.st-band { position: relative; padding: var(--st-space-16) var(--st-space-8); border-radius: var(--st-radius-xl); background: var(--st-surface-ink); color: var(--st-on-ink); text-align: center; }
.st-band h2 { margin: 0; font: 900 clamp(36px, 5vw, 64px)/1.02 var(--st-font-sans); letter-spacing: -0.05em; text-wrap: balance; }
.st-band h2 .st-em { color: var(--st-brand); }
.st-band p { margin: var(--st-space-4) auto 0; max-width: 520px; color: var(--st-on-ink-2); font-size: 18px; line-height: 1.65; }
.st-band .st-row { justify-content: center; margin-top: var(--st-space-8); }
.st-band-perch { position: absolute; left: 50%; top: 0; display: flex; gap: var(--st-space-2); transform: translate(-50%, -78%); }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 720px) {
  .st-wrap { width: calc(100% - 2 * var(--st-space-4)); }
  .st-header { gap: var(--st-space-3); padding: 0 var(--st-space-4); }
  .st-nav { display: none; }
  .st-hero { grid-template-columns: 1fr; gap: var(--st-space-8); padding: var(--st-space-10) 0; }
  .st-footer-grid { grid-template-columns: 1fr; gap: var(--st-space-8); }
  .st-stat + .st-stat { box-shadow: inset 0 1px 0 var(--st-line); }
  .st-board-head, .st-rank-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--st-space-3); padding: 0 var(--st-space-4); }
  .st-band { padding: var(--st-space-12) var(--st-space-5); }
  .st-sec-head h2 { font-size: 26px; }
  .st-search { height: 56px; }
}
@media (pointer: coarse), (max-width: 720px) { .st-btn--sm, .st-chip, .st-tab { min-height: 44px; } .st-btn--sm { min-width: 44px; } input[type='range'] { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) {
  .st-agent--hop, .st-agent--pop, .st-pill--live > i, .st-toast, .st-word, .st-skeleton { animation: none; }
  .st-btn, .st-card--hover, .st-chip, .st-check input::after { transition: none; }
}
