/* ============================================================
   Demo marking — shared across every interactive surface that
   runs on sample data (workbench, ART·13 bench, 24·72 clock).

   Two layers, deliberately hard to miss and hard to mistake for
   a live system:
     .demo-wm   — tiled diagonal DEMO watermark over the viewport
     .demo-chip — an explicit chip for the app's own top bar
   Both are inert (pointer-events: none) and print with the page.
   ============================================================ */

.demo-wm::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='190' viewBox='0 0 300 190'%3E%3Ctext x='150' y='104' fill='%230a1530' font-family='JetBrains Mono, Consolas, monospace' font-size='46' font-weight='700' letter-spacing='9' text-anchor='middle' transform='rotate(-24 150 95)'%3EDEMO%3C/text%3E%3Ctext x='150' y='132' fill='%230a1530' font-family='JetBrains Mono, Consolas, monospace' font-size='11' font-weight='700' letter-spacing='3.5' text-anchor='middle' transform='rotate(-24 150 95)'%3ESAMPLE DATA%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 420px 266px;
  opacity: 0.03;
}

/* When the data on screen is the user's own, "SAMPLE DATA" would be a lie —
   the page is still a demo (nothing is filed), so mark it DEMO and nothing more. */
.demo-wm.own-data::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='190' viewBox='0 0 300 190'%3E%3Ctext x='150' y='108' fill='%230a1530' font-family='JetBrains Mono, Consolas, monospace' font-size='46' font-weight='700' letter-spacing='9' text-anchor='middle' transform='rotate(-24 150 95)'%3EDEMO%3C/text%3E%3C/svg%3E");
}

/* dark chrome needs a light mark to stay legible */
.demo-wm.on-dark::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='190' viewBox='0 0 300 190'%3E%3Ctext x='150' y='104' fill='%23ffffff' font-family='JetBrains Mono, Consolas, monospace' font-size='46' font-weight='700' letter-spacing='9' text-anchor='middle' transform='rotate(-24 150 95)'%3EDEMO%3C/text%3E%3Ctext x='150' y='132' fill='%23ffffff' font-family='JetBrains Mono, Consolas, monospace' font-size='11' font-weight='700' letter-spacing='3.5' text-anchor='middle' transform='rotate(-24 150 95)'%3ESAMPLE DATA%3C/text%3E%3C/svg%3E");
  opacity: 0.05;
}

@media (prefers-reduced-motion: no-preference) {
  .demo-wm::after { animation: demoWmIn 0.5s ease both; }
  @keyframes demoWmIn { from { opacity: 0; } }
}

/* explicit, readable marker for the app's own chrome */
.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #e0ad00;
  background: #ffd617;
  color: #3a2c00;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.demo-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7a5c00;
}

@media print {
  .demo-wm::after { position: fixed; opacity: 0.09; }
}
