:root { color-scheme: dark; }
.nml-entry-welcome, .entry-unavailable {
  margin: 0;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 1.5rem;
  background: var(--c-bg, Canvas);
  color: var(--c-text, CanvasText);
  font-family: var(--font-ui, system-ui, sans-serif);
  text-align: center;
}
.nml-entry-welcome main { max-width: 42rem; }
.nml-entry-announcement { display: grid; justify-items: center; gap: clamp(1.5rem, 4vmin, 2.5rem); }
.nml-entry-logo { display: block; width: clamp(112px, 20vmin, 176px); height: auto; max-width: 100%; }
.nml-entry-welcome h1 { margin: 0; font-size: clamp(1.4rem, 3.5vw, 2.5rem); line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.nml-test-watermark {
  position: fixed;
  right: 20px;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: calc(var(--z-overlay, 100) - 1);
  color: var(--c-text, CanvasText);
  font-family: var(--font-ui, system-ui, sans-serif);
  font-size: 36px;
  line-height: 1.2;
  font-weight: 500;
  opacity: .35;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.nml-entry-en { display: none; }
html:lang(en) .nml-entry-zh { display: none; }
html:lang(en) .nml-entry-en { display: inline; }
/* Only the notification stack reserves space; the watermark never shrinks business layout. */
html[data-nml-entry="Test"] { --entry-toast-bottom-offset: max(80px, calc(env(safe-area-inset-bottom, 0px) + 64px)); }
@media (forced-colors: active) { .nml-test-watermark { color: CanvasText; opacity: 1; } }
@media (max-width: 240px) { .nml-test-watermark { right: 12px; font-size: 24px; } }
