/* Pages reveal the shared theme canvas; only their working modules become glass. */
:root {
  --glass-border:rgba(90,107,145,.10);
  --workspace-canvas:var(--theme-canvas);
  --workspace-solid:var(--paper,#fff);
  --workspace-surface:var(--workspace-solid);
  --workspace-border:var(--glass-border,var(--line,#dfe4ec));
  --workspace-highlight:rgb(255 255 255 / 90%);
  --workspace-shadow:var(--shadow-sm,0 10px 24px -18px rgb(35 47 105 / 45%)),inset 0 1px 0 var(--workspace-highlight);
  --workspace-blur:none;
  --workspace-radius:18px;
}
/* White-on-white needs a quiet contour, including legacy hard-coded borders.
   Backgrounds, blur, shadows and their existing hover motion stay component-owned. */
html:not([data-theme="dark"]) :where(.visit-row,.record-row,.stop-card,.pop) {
  border-color:var(--glass-border);
}
html[data-theme="dark"] {
  --workspace-highlight:rgb(255 255 255 / 6%);
}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  :root {
    --workspace-surface:var(--glass,linear-gradient(155deg,rgb(255 255 255 / 88%),rgb(255 255 255 / 62%)));
    --workspace-blur:blur(14px) saturate(1.05);
  }
}
