:root {
  --ref-font: 14px/1.5 MiSans, "Segoe UI", "Microsoft YaHei", sans-serif;
  --ref-bg: #fef5ff;
  --ref-card: #f6f0f9;
  --ref-bar: #fff;
  --ref-footer: #f7f3f8;
  --ref-ink: #1d1b20;
  --ref-muted: #625b71;
  --ref-primary: #6751a4;
  --ref-on-primary: #fff;
  --ref-soft: #e8def8;
  --ref-line: #cac4d0;
  --ref-green: #536525;
  --ref-orange: #795367;
  --ref-blue: #625b71;
  --ref-shadow: 0 1px 3px #0002, 0 2px 6px #0001;
}
:root[data-ref-theme="dark"] {
  color-scheme: dark;
  --ref-bg: #141218;
  --ref-card: #302c37;
  --ref-bar: #1e1e1e;
  --ref-footer: #211d25;
  --ref-ink: #e7e0ec;
  --ref-muted: #cac4d0;
  --ref-primary: #d0bcff;
  --ref-on-primary: #381e72;
  --ref-soft: #4a4458;
  --ref-line: #5d5866;
  --ref-green: #79d6bb;
  --ref-orange: #efb572;
  --ref-blue: #a1cae9;
  --ref-shadow: 0 1px 4px #0006;
}
/* These styles form the shared controls for the H5 home and dashboard. */
[data-reference-home] svg, [data-reference-dashboard] svg { width: 1.25em; height: 1.25em; fill: currentColor; flex-shrink: 0; vertical-align: middle; }
.ref-button, .ref-icon-button { font: inherit; text-decoration: none; cursor: pointer; }
.ref-icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 16px; padding: 0; }
.ref-icon-button:hover:not(:disabled) { background: var(--ref-soft); }
.ref-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; width: auto; border: 1px solid var(--ref-primary); border-radius: 5px; background: var(--ref-primary); color: var(--ref-on-primary); padding: 7px 15px; font-weight: 500; }
.ref-button-outline { background: transparent; color: var(--ref-primary); }
.ref-button:hover:not(:disabled) { filter: brightness(.94); }
.ref-button:disabled, .ref-icon-button:disabled { cursor: default; }
.ref-icon-button:disabled { opacity: .66; }
.ref-button:focus-visible, .ref-icon-button:focus-visible { outline: 2px solid var(--ref-primary); outline-offset: 3px; }
