@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --ink:      #141A2E;
  --ink-2:    #5A6178;
  --ink-3:    #8B92A5;
  --paper:    #EEF1F5;
  --card:     #FFFFFF;
  --yen:      #1F7A72;
  --yen-soft: #DCEDEB;
  --won:      #B8791F;
  --won-soft: #F5E9D4;
  --profit:   #1B6B45;
  --profit-soft: #DDEEE4;
  --alert:    #A93B2C;
  --alert-soft: #F7E2DE;
  --line:     #DCE0E6;
  --radius:   10px;
  --shadow:   0 1px 2px rgba(20,26,46,.06), 0 4px 14px rgba(20,26,46,.05);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }
input, select, textarea, button { font-family: inherit; font-size: 15px; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

/* ===== 헤더 ===== */
.hd {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.hd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 14px;
}
.hd-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hd-mark {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--yen-soft);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 2px 9px;
}
.hd-user { font-size: 12px; color: rgba(255,255,255,.6); }
.hd-user a { color: rgba(255,255,255,.85); margin-left: 10px; }

.hd-nav {
  display: flex;
  gap: 2px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.hd-nav::-webkit-scrollbar { display: none; }
.hd-nav a {
  flex: 0 0 auto;
  padding: 10px 14px 12px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.hd-nav a.on { color: #fff; border-bottom-color: var(--yen-soft); }

/* ===== 레이아웃 ===== */
.wrap { max-width: 980px; margin: 0 auto; padding: 16px 14px 60px; }

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 16px;
}
.page-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.page-sub { font-size: 13px; color: var(--ink-2); margin: 2px 0 0; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 24px 0 8px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
}

/* ===== 요약 통계 ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.stat {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}
.stat-label { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.stat-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.stat-note { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.stat-value.is-profit { color: var(--profit); }
.stat-value.is-loss   { color: var(--alert); }
.stat-value.is-yen    { color: var(--yen); }

/* ===== 통화 흐름 바 (시그니처) ===== */
.flow {
  margin-top: 10px;
}
.flow-bar {
  display: flex;
  height: 22px;
  border-radius: 5px;
  overflow: hidden;
  background: #E6E9EE;
}
.flow-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
}
.flow-jpy    { background: var(--yen); }
.flow-krw    { background: var(--won); }
.flow-profit { background: var(--profit); }
.flow-loss   { background: var(--alert); }
.flow-open   { background: repeating-linear-gradient(135deg, #C9CFD8 0 6px, #DDE2E9 6px 12px); }

.flow-key {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-2);
}
.flow-key span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.dot-jpy { background: var(--yen); }
.dot-krw { background: var(--won); }
.dot-profit { background: var(--profit); }
.dot-loss { background: var(--alert); }
.dot-open { background: #C9CFD8; }

/* ===== 목록 ===== */
.item {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 10px;
}
.item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.item-title { font-weight: 700; letter-spacing: -.015em; line-height: 1.35; }
.item-meta { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.item-figs {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 13px;
}
.fig-label { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.fig-value { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fig-value.is-profit { color: var(--profit); }
.fig-value.is-loss { color: var(--alert); }

.tag {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #EDF0F4;
  color: var(--ink-2);
  white-space: nowrap;
}
.tag-listing { background: var(--won-soft); color: var(--won); }
.tag-sold    { background: var(--profit-soft); color: var(--profit); }
.tag-hold    { background: var(--alert-soft); color: var(--alert); }
.tag-days    { background: var(--alert-soft); color: var(--alert); }

/* ===== 필터 ===== */
.filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ===== 폼 ===== */
.field { display: block; margin-bottom: 14px; }
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 5px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}
.field textarea { min-height: 80px; resize: vertical; }
.field-hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.fieldset-yen { border-left: 3px solid var(--yen); padding-left: 12px; }
.fieldset-won { border-left: 3px solid var(--won); padding-left: 12px; }

.money-input { position: relative; }
.money-input input { padding-left: 28px; }
.money-input::before {
  content: attr(data-cur);
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--ink-3);
  pointer-events: none;
}

/* ===== 버튼 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-danger  { background: #fff; border-color: var(--alert); color: var(--alert); }
.btn-block   { width: 100%; }
.btn-sm      { min-height: 36px; font-size: 13px; padding: 0 12px; }
.btn-row     { display: flex; gap: 8px; margin-top: 16px; }
.btn-row .btn { flex: 1; }

/* ===== 상세 ===== */
.detail-cost {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
.detail-cost th, .detail-cost td {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.detail-cost th { font-weight: 600; color: var(--ink-2); }
.detail-cost td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.detail-cost tr.is-sum th { font-weight: 800; color: var(--ink); }
.detail-cost tr.is-sum td { font-weight: 800; font-size: 16px; }
.detail-cost tr.is-sum th, .detail-cost tr.is-sum td { border-bottom: 2px solid var(--ink); }
.detail-cost tr.is-sub th { padding-left: 12px; font-weight: 400; color: var(--ink-3); font-size: 13px; }
.detail-cost tr.is-sub td { font-weight: 500; color: var(--ink-2); font-size: 13px; }

.target-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.target {
  background: var(--paper);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.target-rate { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.target-price {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

/* ===== 알림 / 빈 상태 ===== */
.notice { border-radius: 8px; padding: 13px 14px; margin-bottom: 14px; font-size: 14px; }
.notice-ok  { background: var(--profit-soft); color: var(--profit); }
.notice-err { background: var(--alert-soft); color: var(--alert); }
.notice p { margin: 6px 0 0; }
.notice-warn { font-weight: 700; }
.notice .btn { margin-top: 12px; }

.empty {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 20px;
  text-align: center;
}
.empty-title { font-weight: 700; margin-bottom: 4px; }
.empty-desc { font-size: 13px; color: var(--ink-2); margin-bottom: 16px; }

/* ===== 로그인 / 설치 ===== */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--ink);
  padding: 20px;
}
.auth-box {
  width: 100%;
  max-width: 360px;
  background: var(--card);
  border-radius: 14px;
  padding: 28px 24px;
}
.auth-mark {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--yen);
}
.auth-title { font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 6px; }
.auth-desc { font-size: 13px; color: var(--ink-2); margin: 0 0 20px; }

/* ===== 월별 순이익 차트 ===== */
.mchart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  align-items: end;
}
.mcol {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  padding: 4px 0 5px;
  border-radius: 6px;
  min-height: 108px;
}
.mcol.on { background: var(--paper); }
.mval {
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  height: 10px;
}
.mbar { width: 100%; max-width: 20px; border-radius: 3px 3px 0 0; display: block; }
.mbar-profit { background: var(--profit); }
.mbar-loss   { background: var(--alert); }
.mbar-zero   { background: #D8DDE4; }
.mlab { font-size: 10px; font-weight: 700; color: var(--ink-3); line-height: 1; }
.mcol.on .mlab { color: var(--ink); }

/* ===== 달력 ===== */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-head strong { font-size: 16px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  padding-bottom: 6px;
}
.cal-dow.sun { color: var(--alert); }
.cal-dow.sat { color: var(--yen); }

.cal-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  min-height: 44px;
  padding: 5px 0 4px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.cal-cell.is-empty { pointer-events: none; }
.cal-cell.today { background: var(--paper); }
.cal-cell.on { background: var(--ink); }
.cal-cell.on .cal-day { color: #fff; }

.cal-day {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.cal-day.sun { color: var(--alert); }
.cal-day.sat { color: var(--yen); }

.cal-dots { display: flex; gap: 2px; min-height: 6px; }
.cal-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.dot-bid    { background: var(--yen); }
.dot-arrive { background: var(--won); }
.dot-sold   { background: var(--profit); }

.cal-key {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
}
.cal-key span { display: inline-flex; align-items: center; gap: 5px; }

/* ===== 날짜별 그룹 ===== */
.day-group { margin-bottom: 16px; }
.day-date {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.day-date span { font-weight: 600; color: var(--ink-3); margin-left: 3px; }

.tag-bid    { background: var(--yen-soft); color: var(--yen); }
.tag-arrive { background: var(--won-soft); color: var(--won); }
.tag-sold   { background: var(--profit-soft); color: var(--profit); }

.notice-warn-box { background: var(--won-soft); color: var(--won); }

/* ===== 지갑 원장 ===== */
.led {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 13px 14px;
  margin-bottom: 8px;
  border-left: 3px solid var(--line);
}
.led-in  { border-left-color: var(--yen); }
.led-out { border-left-color: var(--ink-3); }

.led-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.led-title { font-weight: 700; font-size: 14px; letter-spacing: -.01em; line-height: 1.35; }
.led-title a { color: inherit; }
.led-meta { font-size: 12px; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }

.led-amt {
  flex: 0 0 auto;
  text-align: right;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.led-amt.is-in  { color: var(--yen); }
.led-amt.is-out { color: var(--ink); }
.led-amt span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); }

.led-bal {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.led-del {
  border: 0;
  background: none;
  color: var(--alert);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

/* ===== 결제 방식 선택 ===== */
.wallet-pick { display: grid; gap: 8px; }
.wpick {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.wpick:has(input:checked) { border-color: var(--yen); background: var(--yen-soft); }
.wpick input { margin-top: 3px; accent-color: var(--yen); flex: 0 0 auto; }
.wpick strong { display: block; font-size: 14px; letter-spacing: -.01em; }
.wpick em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* ===== 대시보드 지갑 스트립 ===== */
.wallet-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  border-left: 3px solid var(--yen);
}
.wallet-strip-val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--yen);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.wallet-strip-side {
  text-align: right;
  font-size: 12px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
}

/* ===== 사진 ===== */
.item-thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--paper);
  margin-right: 2px;
}

.photo-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.photo-strip::-webkit-scrollbar { display: none; }
.photo-item {
  flex: 0 0 auto;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
}
.photo-item img { display: block; width: 172px; height: 172px; object-fit: cover; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.photo-cell { position: relative; }
.photo-cell img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--paper);
}
.photo-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(20,26,46,.72);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

/* 상세 화면 — 대표 지정 버튼 */
.photo-badge {
  position: absolute;
  left: 4px;
  bottom: 4px;
  border: 0;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  background: rgba(20,26,46,.72);
  color: #fff;
  cursor: pointer;
}
.photo-badge.is-on { background: var(--profit); cursor: default; }

/* 등록 폼 — 대표 라디오 / 삭제 체크 */
.photo-cover, .photo-rm {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(20,26,46,.72);
  cursor: pointer;
  user-select: none;
}
.photo-cover { left: 4px; bottom: 4px; }
.photo-rm    { right: 4px; top: 4px; }
.photo-cover input, .photo-rm input { margin: 0; accent-color: #fff; }
.photo-cell:has(.photo-cover input:checked) img { outline: 3px solid var(--profit); outline-offset: -3px; }
.photo-cover:has(input:checked) { background: var(--profit); }
.photo-cell:has(.photo-rm input:checked) img { opacity: .35; }
.photo-rm:has(input:checked) { background: var(--alert); }

/* 업로드 미리보기 */
#photoPreview { margin-top: 10px; }
.photo-cell.is-new img { outline: 2px dashed var(--yen); outline-offset: -2px; }
.photo-newtag {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(20,26,46,.82);
  color: #fff;
}

.field input[type="file"] {
  padding: 9px;
  background: var(--paper);
  font-size: 14px;
}

/* ===== 가격 이력 ===== */
.price-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-left: 3px solid var(--won);
}
.price-sum-val {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--won);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.price-sum-side {
  text-align: right;
  font-size: 12px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
}

.plog { padding: 11px 0; border-bottom: 1px solid var(--line); }
.plog:last-child { border-bottom: 0; padding-bottom: 0; }
.plog:first-child { padding-top: 0; }
.plog-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plog-price {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.plog-delta {
  font-size: 12px;
  font-weight: 700;
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
.plog-delta.is-down { color: var(--alert); }
.plog-delta.is-up   { color: var(--profit); }
.plog-act { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.plog-edit { font-size: 12px; font-weight: 700; color: var(--yen); }
.plog-editing {
  background: var(--paper);
  border-radius: 8px;
  padding: 14px;
  margin: 4px 0;
}
.plog-editing .field:last-of-type { margin-bottom: 12px; }

.plog-meta { font-size: 12px; color: var(--ink-2); margin-top: 3px; font-variant-numeric: tabular-nums; }
.plog-chg {
  font-weight: 700;
  color: var(--profit);
  margin-left: 3px;
}
.plog-memo {
  font-size: 13px;
  color: var(--ink);
  margin-top: 5px;
  padding-left: 9px;
  border-left: 2px solid var(--line);
}

/* ===== 송장 ===== */
.track { padding: 12px 0; border-bottom: 1px solid var(--line); }
.track:first-child { padding-top: 0; }
.track:last-child { border-bottom: 0; padding-bottom: 0; }

.track-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.track-label { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.track-carrier {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--yen-soft);
  color: var(--yen);
}

.track-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.track-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
  word-break: break-all;
}
.track-act { display: flex; gap: 6px; flex: 0 0 auto; }
.track-hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

/* ===== 데스크톱 ===== */
@media (min-width: 720px) {
  body { font-size: 15px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .page-title { font-size: 24px; }
  .field-row { gap: 14px; }
  .item-figs { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
