
body { background: var(--paper); color: var(--ink); font-family: var(--font-sans); }
.zn-display { font-family: var(--font-display); font-weight: 400; }
.zn-mono { font-family: var(--font-mono); font-variation-settings: "wdth" 87.5; font-variant-numeric: tabular-nums; }
.zn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); padding: var(--space-6); }

/* Button — violet with the riso offset */
.zn-button { font: inherit; font-size: 15px; font-weight: 700; line-height: 20px; display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease; }
.zn-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.zn-button--primary { background: var(--violet); color: var(--on-violet); box-shadow: var(--shadow-offset); }
.zn-button--primary:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 0 #BBA7E6; }
.zn-button--primary:active { transform: translate(3px, 3px); box-shadow: none; }
.zn-button--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.zn-button--secondary:hover { background: var(--paper-sunk); }
.zn-button--quiet { background: transparent; color: var(--violet); padding-inline: var(--space-2); }
.zn-button--quiet:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .zn-button { transition: none; } .zn-button--primary:hover, .zn-button--primary:active { transform: none; } }

/* Dark theme: violet turns light, so the lilac offset would vanish into the button
   (1.01:1). Use the fawn offset instead, and a lilac-wash hover that shows on night paper. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .zn-button--primary { box-shadow: var(--shadow-offset-fawn); }
  :root:not([data-theme="light"]) .zn-button--primary:hover { box-shadow: 2px 2px 0 0 #E9CDA6; }
  :root:not([data-theme="light"]) .zn-button--secondary:hover { background: var(--lilac-wash); }
}
:root[data-theme="dark"] .zn-button--primary { box-shadow: var(--shadow-offset-fawn); }
:root[data-theme="dark"] .zn-button--primary:hover { box-shadow: 2px 2px 0 0 #E9CDA6; }
:root[data-theme="dark"] .zn-button--secondary:hover { background: var(--lilac-wash); }

/* ASN / prefix chip */
.zn-chip { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px var(--space-2) 2px var(--space-2);
  border-radius: var(--radius-pill); background: var(--lilac-wash); color: var(--ink);
  font-family: var(--font-mono); font-variation-settings: "wdth" 87.5; font-variant-numeric: tabular-nums; font-size: 12.5px; line-height: 20px; font-weight: 450; }
.zn-chip__kind { color: var(--ink-muted); font-weight: 400; }
a.zn-chip { text-decoration: none; }
a.zn-chip:hover { box-shadow: inset 0 0 0 1.5px var(--violet); }
a.zn-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* BGP session status: dot + word, never colour alone */
.zn-status { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.zn-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.zn-status--up::before { background: var(--steppe); }
.zn-status--idle::before { background: var(--stamen); box-shadow: inset 0 0 0 1.5px var(--ink); }
.zn-status--down::before { background: transparent; box-shadow: inset 0 0 0 2.5px var(--rose); }
.zn-status--down { color: var(--rose); }
