/* Design tokens from docs/06-design-spec.md. Loaded first on every page; new or changed styles use only these. */
:root {
  /* 二、颜色 */
  --ds-ink: #1f2329;
  --ds-ink-2: #5c6470;
  --ds-ink-3: #8a919b;
  --ds-ink-4: #b4bac2;
  --ds-line: #eceef1;
  --ds-dash: #dde1e6;
  --ds-card: #ffffff;
  --ds-fill: #f4f6f8;
  --ds-paper: #fbfaf7;
  --ds-navy: #1f2d4a;
  --ds-link: #2c68e6;
  --ds-danger: #c2410c;
  --ds-danger-bg: #fbece4;
  --ds-error: #b34e43;
  --ds-bubble-mine: #e7eef6;
  --ds-bubble: #ffffff;
  --ds-scrim: rgba(17, 24, 39, 0.32);
  --ds-focus: rgba(44, 104, 230, 0.45);
  /* 列表与侧栏的选中态 (docs/06-design-spec.md 五) */
  --ds-selected: rgba(31, 45, 74, 0.08);
  /* 状态标签：完成、进行中、等待、结束 */
  --ds-done: #1f7a4d;
  --ds-done-bg: #e8f5ee;
  --ds-doing: #2c68e6;
  --ds-doing-bg: #eaf1fd;
  --ds-wait: #9a5b00;
  --ds-wait-bg: #fff3e0;
  --ds-ended: #8a919b;
  --ds-ended-bg: #f2f3f5;

  /* 三、字号阶梯 */
  --ds-text-11: 11px;
  --ds-text-12: 12px;
  --ds-text-13: 13px;
  --ds-text-14: 14px;
  --ds-text-16: 16px;
  --ds-text-20: 20px;
  --ds-font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* 四、间距与圆角 */
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 20px;
  --ds-space-6: 24px;
  --ds-radius-pill: 999px;
  --ds-radius-control: 8px;
  --ds-radius-button: 10px;
  --ds-radius-card: 12px;
  --ds-radius-sheet: 16px;

  /* 七、动效 */
  --ds-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ds-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ds-ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --ds-press: 120ms;
  --ds-pop: 180ms;
  --ds-sheet: 280ms;

  /* 七「弹簧」, as CSS linear() curves sampled from each spring, with how long each takes to settle */
  --ds-spring-tight: linear(0, 0.03, 0.1, 0.191, 0.288, 0.385, 0.475, 0.556, 0.628, 0.691, 0.745, 0.79, 0.828, 0.86, 0.887, 0.908, 0.926, 0.94, 0.952, 0.962, 0.969, 0.976, 0.98, 0.984, 0.988, 0.99, 0.992, 0.994, 0.995, 0.996, 0.997, 0.998, 1);
  --ds-spring-tight-ms: 190ms;
  --ds-spring-responsive: linear(0, 0.027, 0.094, 0.186, 0.29, 0.398, 0.503, 0.6, 0.688, 0.764, 0.829, 0.882, 0.925, 0.958, 0.983, 1.002, 1.014, 1.022, 1.027, 1.028, 1.028, 1.026, 1.024, 1.021, 1.018, 1.015, 1.012, 1.01, 1.007, 1.005, 1.004, 1.003, 1);
  --ds-spring-responsive-ms: 400ms;
  --ds-spring-elastic: linear(0, 0.042, 0.145, 0.283, 0.433, 0.58, 0.714, 0.827, 0.918, 0.986, 1.034, 1.064, 1.079, 1.084, 1.08, 1.071, 1.06, 1.047, 1.035, 1.024, 1.014, 1.007, 1.001, 0.997, 0.995, 0.993, 0.993, 0.993, 0.994, 0.995, 0.996, 0.997, 1);
  --ds-spring-elastic-ms: 660ms;
  --ds-spring-calm: linear(0, 0.028, 0.096, 0.189, 0.293, 0.399, 0.501, 0.595, 0.679, 0.752, 0.813, 0.864, 0.905, 0.937, 0.962, 0.981, 0.994, 1.004, 1.01, 1.013, 1.015, 1.015, 1.015, 1.013, 1.012, 1.01, 1.009, 1.007, 1.006, 1.005, 1.004, 1.003, 1);
  --ds-spring-calm-ms: 640ms;
}
