/* 색과 글꼴은 투자·지출 앱과 같은 값을 쓴다. 앱 구분은 각 앱 아이콘 색이 맡는다. */
:root {
  color-scheme: light dark;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1b1f24;
  --muted: #6b7280;
  --faint: #9ca3af;
  --border: #e5e7eb;
  --soft: #f3f4f6;
  --focus: #2563eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --card: #181b21;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --faint: #6b7280;
    --border: #2a2f37;
    --soft: #20242b;
    --focus: #60a5fa;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

/* 휴대폰에서는 화면 폭, PC에서는 가운데 한 줄 */
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  display: grid;
  gap: 22px;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.brand {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.date {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.group { display: grid; gap: 8px; }

.label {
  margin: 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.list li + li { border-top: 1px solid var(--border); }

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 11px 14px;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* 휴대폰은 누른 줄에 hover가 남아 회색으로 보이므로, 마우스가 있는 기기에서만 hover 색을 쓴다. */
.row:active { background: var(--soft); }

@media (hover: hover) {
  .row:hover { background: var(--soft); }
}

.row:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.icon { flex: none; display: block; width: 36px; height: 36px; }

.text {
  flex: 1;
  min-width: 0;
  display: grid;
  line-height: 1.35;
}

.text b { font-size: 16px; font-weight: 600; }

.text span {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip {
  flex: none;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 600;
}

.go { flex: none; color: var(--faint); font-size: 22px; line-height: 1; }

.foot {
  margin: 0;
  color: var(--faint);
  font-size: 12.5px;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .row { transition: background-color 120ms ease; }
}
