/* ===== TOKENS: the only file with colors and sizes (OneApps design system) ===== */
:root {
  /* Colors: light theme */
  --text: #2b2825;      --muted: #827a71;
  --accent: #b85b12;    --accent-soft: #fff0df;   --on-accent: #ffffff;
  --surface: #fbfaf8;   --card: #ffffff;          --line: #e7e1da;
  --rose: #bc6b79;  --sage: #639286;  --amber: #b88d48;  --blue: #708dba;  --gray: #827a71;
  --rose-soft: #faecee;  --sage-soft: #eaf3ee;  --amber-soft: #f8f1e4;  --blue-soft: #edf1f8;  --gray-soft: #efebe6;
  --purple: #8a79b5;  --teal: #4f9aa0;  --pink: #c9779f;  --olive: #8a8f4a;  --brown: #8b6a52;  --slate: #6b7a8c;
  --purple-soft: #f1eef8;  --teal-soft: #e8f4f5;  --pink-soft: #fbeaf2;  --olive-soft: #f2f3e4;  --brown-soft: #f3ece6;  --slate-soft: #eceff2;
  --button-dark: #2b2825;  --button-dark-text: #ffffff;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23827a71' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");   /* drop down arrow (same color as --muted) */
  --overlay: rgba(43, 40, 37, .28);
  --shadow: 0 8px 24px rgba(38, 31, 59, .12), 0 2px 6px rgba(38, 31, 59, .06);

  /* Sizes */
  --top-bar-height: 56px;   --sidebar-width: 220px;   --page-padding: 24px;
  --row-height: 44px;       --row-radius: 13px;       --control-radius: 10px;
  --dialog-radius: 20px;    --card-radius: 16px;      --section-gap: 18px;

  /* Text */
  --font-family: "Noto Sans SC", "Microsoft YaHei UI", "Segoe UI", system-ui, sans-serif;
  --font-size-title: 25px;  --font-size-dialog-title: 18px;  --font-size-body: 14px;
  --font-size-control: 12px;  --font-size-small: 11px;

  /* Motion */
  --duration-fast: 120ms;
}

:root[data-theme="dark"] {
  --text: #f4f0eb;      --muted: #b2a79b;
  --accent: #ffad61;    --accent-soft: #493221;   --on-accent: #2b2825;
  --surface: #262421;   --card: #302d29;          --line: #49423a;
  --rose: #e8a1b0;  --sage: #9ec8b9;  --amber: #e3be83;  --blue: #a7bedf;  --gray: #b2a79b;
  --rose-soft: #3b2c30;  --sage-soft: #2a3631;  --amber-soft: #393327;  --blue-soft: #2b3340;  --gray-soft: #3a3732;
  --purple: #b9aee0;  --teal: #8fcfd4;  --pink: #eea6c6;  --olive: #c3c77f;  --brown: #c9a98f;  --slate: #a4b2c3;
  --purple-soft: #302c3d;  --teal-soft: #263436;  --pink-soft: #3d2c35;  --olive-soft: #35362a;  --brown-soft: #38302a;  --slate-soft: #2c3138;
  --button-dark: #f4f0eb;  --button-dark-text: #2b2825;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b2a79b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --overlay: rgba(0, 0, 0, .5);
  --shadow: 0 8px 24px rgba(0, 0, 0, .32), 0 2px 6px rgba(0, 0, 0, .2);
}

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