/* FIS shared design tokens — navy + gold, light & dark */
:root {
  --navy-900: #0f2740;
  --navy-800: #14304d;
  --navy-700: #1c3c5e;
  --navy-600: #244a70;
  --navy-500: #2f5a84;
  --gold: #e8a317;
  --gold-soft: #f0b840;
  --gold-dark: #c8890b;
  --white: #ffffff;
  --ink: #14304d;

  /* semantic (dark default) */
  --bg: #14304d;
  --bg-header: #14304d;
  --panel: #1e3d5c;
  --panel-2: #24466a;
  --card: #ffffff;
  --card-ink: #14304d;
  --card-muted: #6b7f95;
  --rate-chip: #ffffff;
  --text: #ffffff;
  --text-muted: #9db2c8;
  --accent: #e8a317;
  --accent-ink: #14304d;
  --border: rgba(232, 163, 23, 0.55);
  --divider: rgba(255, 255, 255, 0.12);
  --input-bg: #ffffff;
  --input-ink: #14304d;
  --tabbar-bg: #e8a317;
  --tabbar-ink: #14304d;
  --tabbar-inactive: rgba(20, 48, 77, 0.6);
  --danger: #d9534f;
  --pos: #2fae66;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, "Segoe UI", "PingFang HK", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

/* ---- Light theme: Heritree (承瑞信誠) brand palette — cream + gold + espresso
   brown, taken from the 承瑞 client seminar deck. ---- */
:root[data-theme="light"] {
  --bg: #fbf5ea;          /* cream */
  --bg-header: #fbf5ea;
  --panel: #fffdf9;       /* card cream-white */
  --panel-2: #f3e7ce;     /* soft gold panel */
  --card: #fffdf9;
  --card-ink: #3a2914;    /* brown ink */
  --card-muted: #a98f6a;  /* muted tan */
  --rate-chip: #f3e7ce;   /* soft gold — visible light card on the cream panel */
  --text: #3a2914;
  --text-muted: #6b5537;  /* muted brown */
  --accent: #c08a2a;      /* Heritree gold */
  --accent-ink: #33240f;  /* espresso — text on gold */
  --border: #e4d3ae;
  --divider: #e4d3ae;
  --input-bg: #fffdf9;
  --input-ink: #3a2914;
  --tabbar-bg: #33240f;   /* espresso brown bar */
  --tabbar-ink: #e0b24a;  /* gold active */
  --tabbar-inactive: #b79a63;
  --pos: #2f8f5b;
  --danger: #b5482a;
  --shadow: 0 6px 18px rgba(51, 36, 15, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }
