:root {
  /* Apple HIG Inspired Vibrant Palette */
  --bg: #f2f2f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-3: #ebebf0;
  --line: #e5e5ea;
  --line-strong: #d1d1d6;

  --text: #1d1d1f;
  --text-2: #48484a;
  --muted: #6e6e73;
  --muted-2: #8e8e93;

  --navy: #1d1d1f;
  --navy-hover: #2c2c2e;
  --navy-soft: #ebebf0;

  /* Apple System Blue Primary Accent */
  --accent: #007aff;
  --accent-hover: #0066d6;
  --accent-soft: #e8f2ff;
  --accent-border: #bddbff;

  /* Apple Vibrant Semantic Finance Colors */
  --income: #248a3d;
  --income-bright: #34c759;
  --income-soft: #e9f9ee;
  --expense: #d70015;
  --expense-bright: #ff3b30;
  --expense-soft: #ffeceb;
  --transfer: #5856d6;
  --transfer-soft: #efeffe;
  --amber: #c96a00;
  --amber-bright: #ff9500;
  --amber-soft: #fff4e5;
  --purple: #af52de;
  --purple-soft: #f7ecfc;

  /* Typography — SF Pro / PingFang SC */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Radius & Apple Soft Elevation */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.035);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.075);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.16);

  /* Layout Dimensions */
  --sidebar-w: 248px;
  --topbar-h: 68px;
  --mobile-nav-h: 64px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.num {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
