/* Night theme for the document pages (M3): the same design system (styles.css) in the world's evening palette, so a page
   opened from the world does not flash to paper white. Loaded after styles.css; token overrides first, then the few rules
   in styles.css that hard-code light values. */
:root {
  --ink: #ece8e0;
  --muted: rgba(236, 232, 224, 0.62);
  --paper: #141b27;
  --paper-2: #1a2330;
  --line: rgba(236, 232, 224, 0.14);
  --line-strong: rgba(236, 232, 224, 0.3);
  --glass: rgba(236, 232, 224, 0.06);
  --accent: #a3c4b3;
  --accent-soft: rgba(163, 196, 179, 0.14);
  --warm: #cbb08a;
  --danger: #d29c90;
  --dark: #0d121b;
  color-scheme: dark;
}

/* ---- rules that hard-code paper-white glass in styles.css */
.risk-layer { border-color: rgba(236, 232, 224, 0.26); background: linear-gradient(120deg, rgba(236, 232, 224, 0.13), rgba(236, 232, 224, 0.04));
  box-shadow: 0 22px 54px rgba(5, 8, 14, 0.35), inset 0 1px 0 rgba(236, 232, 224, 0.16); }
.risk-layer::before { background: linear-gradient(90deg, transparent, rgba(236, 232, 224, 0.12), transparent); }
.case-card { background: rgba(236, 232, 224, 0.04); box-shadow: 0 30px 80px rgba(5, 8, 14, 0.4); }
.policy-chip { background: rgba(26, 35, 48, 0.82); box-shadow: 0 18px 46px rgba(5, 8, 14, 0.4); }
.stage-button.active { background: rgba(236, 232, 224, 0.1); }
