/* ==========================================================================
   Neighbourhood Pro — docket app concept
   Only used by /concepts/home/app/. Shares no rules with local-concept.css
   or with the other concept app views.

   Palette and type are lifted deliberately from /assets/css/home-demo.css so
   the phone reads as the same product as the website. Contrast ratios in the
   comments are measured, not guessed.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --np-ink: #162337;          /* 15.79:1 on white                        */
  --np-ink-deep: #0d1626;     /* 17.3:1 on white — device bezel + strip  */
  --np-paper: #edf3f7;
  --np-paper-deep: #dde8f0;
  --np-card: #ffffff;
  --np-accent: #246bd4;       /*  5.08:1 on white                        */
  --np-accent-deep: #1f5cb8;  /*  6.40:1 on white — button surface       */
  --np-accent-ink: #1a56b0;   /*  6.99:1 on white, 6.25:1 on paper       */
  --np-accent2: #b9d5ff;      /* 10.55:1 on ink                          */
  --np-muted: #4d5f78;        /*  6.56:1 on white, 5.86:1 on paper       */
  --np-go: #1a6b43;           /*  6.51:1 on white                        */
  --np-warn: #7a4900;         /*  7.75:1 on white                        */
  --np-stop: #a52019;         /*  7.60:1 on white                        */
  --np-on-ink: #ffffff;
  --np-on-ink-soft: #b9cbe2;  /*  9.55:1 on ink                          */
  --np-line: rgba(22, 35, 55, 0.14);
  --np-line-strong: rgba(22, 35, 55, 0.28);
  --np-line-dark: rgba(185, 213, 255, 0.22);
  --np-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --np-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, monospace;
  --np-focus: #0f3f8f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--np-ink-deep);
  color: var(--np-ink);
  font-family: var(--np-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--np-focus);
  outline-offset: 2px;
  border-radius: 0.3rem;
}

.npa-device :focus-visible,
dialog :focus-visible {
  outline-color: var(--np-accent);
}

.npa-pitch :focus-visible,
.npa-notes :focus-visible {
  outline-color: var(--np-accent2);
}

/* ------------------------------------------------------------ utility --- */

.npa-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.npa-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.npa-icon--sm {
  width: 0.85rem;
  height: 0.85rem;
}

.npa-vh,
.npa-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.npa-skip {
  position: fixed;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 400;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: var(--np-accent2);
  color: var(--np-ink);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-240%);
  transition: transform 160ms ease;
}

.npa-skip:focus {
  transform: translateY(0);
}

.npa-fine {
  color: var(--np-muted);
  font-size: 0.71rem;
  line-height: 1.5;
}

.npa-fine--foot {
  padding-top: 0.7rem;
  margin-top: 0.3rem;
  border-top: 1px dashed var(--np-line);
}

.npa-h2 {
  margin-top: 0.35rem;
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.034em;
  line-height: 1.08;
  text-wrap: balance;
}

.npa-h3 {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--np-accent-ink);
}

.npa-h4 {
  font-size: 0.86rem;
  font-weight: 780;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

/* ------------------------------------------------------------- layout --- */

/* Mobile order is pitch → phone → notes, so the device is one short scroll
   away instead of below a full column of copy. On wide screens the pitch and
   the notes stack back up into a single ink column beside it, and the DOM
   order still reads top-to-bottom. */
.npa-stage {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 62rem) {
  .npa-stage {
    grid-template-columns: minmax(22rem, 0.86fr) minmax(30rem, 1.14fr);
    grid-template-rows: auto 1fr;
  }

  .npa-pitch { grid-area: 1 / 1; }
  .npa-notes { grid-area: 2 / 1; }
  .npa-deck { grid-area: 1 / 2 / span 2 / 2; }
}

.npa-pitch,
.npa-notes {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: clamp(1.5rem, 4vw, 4rem);
  background: var(--np-ink);
  color: var(--np-on-ink);
}

.npa-pitch {
  justify-content: center;
  gap: 2.2rem;
  padding-bottom: clamp(1.2rem, 3vw, 2.5rem);
}

.npa-notes {
  justify-content: flex-end;
  padding-top: clamp(1.2rem, 3vw, 2.5rem);
}

.npa-notes__title {
  color: var(--np-accent2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.npa-notes__list {
  display: grid;
  gap: 0.7rem;
  margin-top: -0.9rem;
}

.npa-notes__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #e3ecf7;
  font-size: 0.83rem;
  line-height: 1.5;
}

.npa-notes__list .npa-icon {
  margin-top: 0.2rem;
  color: var(--np-accent2);
}

.npa-back {
  width: fit-content;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--np-on-ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.npa-back:hover {
  color: var(--np-accent2);
  text-decoration: underline;
}

.npa-pitch__copy {
  max-width: 34rem;
}

.npa-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--np-accent2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.npa-kicker::before {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.npa-pitch h1 {
  margin-top: 0.9rem;
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.npa-pitch__lede {
  max-width: 32rem;
  margin-top: 1.1rem;
  color: var(--np-on-ink-soft);
  font-size: 0.92rem;
}

.npa-pitch__link {
  width: fit-content;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--np-line-dark);
  border-radius: 999px;
  color: var(--np-on-ink);
  font-size: 0.8rem;
  font-weight: 720;
  text-decoration: none;
}

.npa-pitch__link:hover {
  background: rgba(185, 213, 255, 0.14);
}

.npa-pitch__fine {
  max-width: 34rem;
  color: var(--np-on-ink-soft);
  font-size: 0.72rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------- deck --- */

.npa-deck {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.1rem;
  padding: clamp(1.4rem, 3.4vw, 3rem) clamp(0.75rem, 3vw, 3rem);
  background:
    linear-gradient(rgba(22, 35, 55, 0.055) 1px, transparent 1px) 0 0 / 100% 1.75rem,
    linear-gradient(90deg, rgba(22, 35, 55, 0.055) 1px, transparent 1px) 0 0 / 1.75rem 100%,
    radial-gradient(circle at 50% 22%, #ffffff, var(--np-paper-deep) 78%);
}

.npa-device {
  position: relative;
  width: min(100%, 26rem);
  height: min(52rem, calc(100svh - 6.5rem));
  min-height: 40rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0.45rem solid var(--np-ink-deep);
  border-radius: 2.6rem;
  background: var(--np-paper);
  box-shadow: 0 32px 80px rgba(13, 22, 38, 0.32);
}

.npa-device__slit {
  position: absolute;
  top: 0.62rem;
  left: 50%;
  z-index: 6;
  width: 4.6rem;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(-50%);
}

.npa-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 1.55rem 0.85rem 0.65rem;
  background: var(--np-ink);
  color: var(--np-on-ink);
}

.npa-top__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.npa-top__mark {
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 0.5rem 0.5rem 0.5rem 0.16rem;
  background: var(--np-accent2);
  color: var(--np-ink);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.npa-top__brand > span:last-child {
  display: grid;
  min-width: 0;
}

.npa-top__brand strong {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.npa-top__brand small {
  overflow: hidden;
  color: var(--np-on-ink-soft);
  font-family: var(--np-mono);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.npa-urgent {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 190, 184, 0.5);
  border-radius: 999px;
  background: rgba(255, 138, 128, 0.16);
  color: #ffc9c4;              /* 8.34:1 on --np-ink */
  font-size: 0.72rem;
  font-weight: 780;
}

.npa-urgent:hover {
  background: rgba(255, 138, 128, 0.3);
  color: #ffe1de;
}

.npa-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  background: var(--np-ink-deep);
  color: var(--np-on-ink-soft);
  font-size: 0.66rem;
  font-weight: 700;
  text-align: center;
}

.npa-demo__dot {
  width: 0.38rem;
  height: 0.38rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #7ee2ab;
}

/* --------------------------------------------------------- file tabs ---- */

.npa-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.18rem;
  padding: 0.3rem 0.35rem 0;
  background: var(--np-ink);
}

.npa-tab {
  position: relative;
  min-height: 2.85rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.15rem;
  padding: 0.4rem 0.15rem 0.45rem;
  border-radius: 0.6rem 0.6rem 0 0;
  background: rgba(185, 213, 255, 0.1);
  color: #cfdcec;              /* 11.2:1 on --np-ink */
  font-size: 0.64rem;
  font-weight: 720;
  line-height: 1.1;
}

.npa-tab:hover {
  background: rgba(185, 213, 255, 0.2);
  color: #fff;
}

.npa-tab.is-active {
  background: var(--np-paper);
  color: var(--np-accent-ink);
}

.npa-tab .npa-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.npa-tab__badge {
  position: absolute;
  top: 0.16rem;
  right: 0.45rem;
  min-width: 1.05rem;
  height: 1.05rem;
  display: grid;
  place-items: center;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: var(--np-accent-deep);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
}

.npa-tab.is-active .npa-tab__badge {
  background: var(--np-accent-deep);
}

.npa-ticker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid var(--np-line);
  background: var(--np-paper-deep);
  color: var(--np-ink);
  font-size: 0.7rem;
  font-weight: 640;
}

.npa-ticker .npa-icon {
  color: var(--np-accent-ink);
}

.npa-ticker[data-stage="escalated"] {
  background: #fbe0dd;
  color: #7d1913;             /* 8.9:1 on #fbe0dd */
}

.npa-ticker[data-stage="escalated"] .npa-icon {
  color: #7d1913;
}

.npa-ticker[data-stage="working"] {
  background: #d8ecdf;
  color: #155836;             /* 7.5:1 on #d8ecdf */
}

.npa-ticker[data-stage="working"] .npa-icon {
  color: #155836;
}

.npa-screen {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.npa-screen::-webkit-scrollbar {
  width: 0.3rem;
}

.npa-screen::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--np-line-strong);
}

.npa-pad {
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem 0.85rem 2rem;
}

.npa-deck__note {
  max-width: 30rem;
  color: var(--np-muted);
  font-size: 0.74rem;
  line-height: 1.5;
  text-align: center;
}

.npa-deck__reset {
  padding: 0.25rem 0.1rem;
  color: var(--np-accent-ink);
  font-size: inherit;
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ------------------------------------------------------------ buttons --- */

.npa-btn {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--np-accent-deep);
  border-radius: 0.55rem;
  background: var(--np-accent-deep);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 730;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.npa-btn:hover {
  background: #17488f;
  border-color: #17488f;
}

.npa-btn:active {
  transform: scale(0.99);
}

.npa-btn--full {
  width: 100%;
}

.npa-btn--ghost {
  border-color: var(--np-line-strong);
  background: transparent;
  color: var(--np-accent-ink);
}

.npa-btn--ghost:hover {
  background: rgba(36, 107, 212, 0.09);
  border-color: var(--np-accent-deep);
  color: var(--np-accent-ink);
}

.npa-btn--light {
  border-color: var(--np-accent2);
  background: var(--np-accent2);
  color: var(--np-ink);
}

.npa-btn--light:hover {
  background: #d7e7ff;
  border-color: #d7e7ff;
  color: var(--np-ink);
}

.npa-btn--ghost-light {
  border-color: var(--np-line-dark);
  background: transparent;
  color: var(--np-accent2);
}

.npa-btn--ghost-light:hover {
  background: rgba(185, 213, 255, 0.16);
  border-color: var(--np-accent2);
  color: #d7e7ff;
}

/* -------------------------------------------------------- screen head --- */

.npa-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.npa-head__no {
  overflow: hidden;
  color: var(--np-muted);
  font-family: var(--np-mono);
  font-size: 0.7rem;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.npa-head__meta {
  margin-top: 0.4rem;
  color: var(--np-muted);
  font-size: 0.76rem;
}

.npa-head__window {
  width: 100%;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  margin-top: 0.6rem;
  border: 1px solid var(--np-line);
  border-radius: 0.55rem;
  background: var(--np-card);
  color: var(--np-ink);
  font-size: 0.77rem;
  font-weight: 640;
  text-align: left;
}

.npa-head__window:hover {
  border-color: var(--np-accent-deep);
  background: #e7f0fb;
}

.npa-head__window > .npa-icon {
  color: var(--np-accent-ink);
}

.npa-head__window > span:not(.npa-head__window-go) {
  min-width: 0;
  flex: 1 1 auto;
}

.npa-head__window-go {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.15rem;
  color: var(--np-accent-ink);
  font-size: 0.68rem;
  font-weight: 760;
}

.npa-stamp {
  flex: 0 0 auto;
  padding: 0.24rem 0.55rem;
  border-radius: 0.35rem;
  font-size: 0.63rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.npa-stamp[data-tone="cool"] { background: #dbe7fb; color: #14468f; }  /*  7.4:1 */
.npa-stamp[data-tone="go"]   { background: #d8ecdf; color: #155836; }  /*  7.5:1 */
.npa-stamp[data-tone="warn"] { background: #f7e5c6; color: #6b3f00; }  /*  7.9:1 */
.npa-stamp[data-tone="stop"] { background: #fbe0dd; color: #7d1913; }  /*  8.9:1 */

/* ----------------------------------------------------------- the band --- */

.npa-band {
  padding: 1rem 1rem 1.1rem;
  border-radius: 1rem;
  background: var(--np-ink);
  color: #fff;
}

.npa-band.is-settled {
  background: linear-gradient(150deg, #16324f, var(--np-ink) 62%);
  box-shadow: inset 0 0 0 1px rgba(185, 213, 255, 0.28);
}

.npa-band__label {
  color: var(--np-accent2);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.npa-band__figure {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-family: var(--np-mono);
  font-size: 1.85rem;
  font-weight: 620;
  letter-spacing: -0.045em;
}

.npa-band__figure > span[aria-hidden] {
  color: var(--np-on-ink-soft);
}

.npa-band__fixed {
  color: var(--np-accent2);
  font-family: var(--np-body);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.npa-band__typical {
  margin-top: 0.25rem;
  color: var(--np-on-ink-soft);
  font-size: 0.78rem;
}

.npa-scale {
  margin-top: 0.9rem;
}

.npa-scale__track {
  position: relative;
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(185, 213, 255, 0.18);
  overflow: hidden;
}

.npa-scale__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--lo);
  width: max(0.35rem, calc(var(--hi) - var(--lo)));
  border-radius: 999px;
  background: linear-gradient(90deg, #4b8ee8, var(--np-accent2));
  transition: left 420ms cubic-bezier(0.22, 0.8, 0.3, 1), width 420ms cubic-bezier(0.22, 0.8, 0.3, 1);
}

.npa-scale__mark {
  position: absolute;
  top: -0.15rem;
  bottom: -0.15rem;
  left: var(--mid);
  width: 2px;
  background: #fff;
  transition: left 420ms cubic-bezier(0.22, 0.8, 0.3, 1);
}

.npa-scale__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  color: var(--np-on-ink-soft);
  font-family: var(--np-mono);
  font-size: 0.65rem;
}

.npa-certainty {
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid var(--np-line-dark);
}

.npa-certainty__bar {
  height: 0.3rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(185, 213, 255, 0.2);
}

.npa-certainty__bar span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--np-accent2);
  transition: width 420ms cubic-bezier(0.22, 0.8, 0.3, 1);
}

.npa-certainty__text {
  margin-top: 0.45rem;
  color: var(--np-on-ink-soft);
  font-size: 0.75rem;
  line-height: 1.45;
}

.npa-certainty__text strong {
  color: #fff;
  font-weight: 760;
}

.npa-band__time {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-top: 0.75rem;
  margin-top: 0.8rem;
  border-top: 1px solid var(--np-line-dark);
  color: var(--np-on-ink-soft);
  font-size: 0.76rem;
  font-weight: 640;
}

/* --------------------------------------------------------- the ledger --- */

.npa-ledger,
.npa-decide,
.npa-replace,
.npa-record,
.npa-plan,
.npa-creds,
.npa-coverage,
.npa-invoices,
.npa-honest,
.npa-daysteps,
.npa-standdown,
.npa-who,
.npa-notecard {
  padding: 0.9rem 0.9rem 1rem;
  border: 1px solid var(--np-line);
  border-radius: 1rem;
  background: var(--np-card);
}

.npa-moves {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.npa-move + .npa-move {
  border-top: 1px dashed var(--np-line);
}

.npa-move__btn {
  width: 100%;
  min-height: 2.75rem;
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.15rem;
  border-radius: 0.5rem;
  text-align: left;
}

.npa-move__btn:not(.npa-move__btn--static):hover {
  background: rgba(36, 107, 212, 0.07);
}

.npa-move__amount {
  color: var(--np-accent-ink);
  font-family: var(--np-mono);
  font-size: 0.76rem;
  font-weight: 640;
  letter-spacing: -0.03em;
  text-align: right;
}

.npa-move.is-base .npa-move__amount {
  color: var(--np-ink);
}

.npa-move.is-open .npa-move__amount {
  color: var(--np-warn);
}

.npa-move.is-extra .npa-move__amount,
.npa-move.is-travel .npa-move__amount {
  color: var(--np-go);
}

.npa-move__why {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
  color: var(--np-muted);
  font-size: 0.73rem;
  line-height: 1.4;
}

.npa-move__why strong {
  color: var(--np-ink);
  font-size: 0.8rem;
  font-weight: 760;
}

.npa-move__src {
  color: var(--np-accent-ink);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
}

.npa-move__state {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--np-accent-ink);
  font-size: 0.68rem;
  font-weight: 760;
}

.npa-move.is-open .npa-move__state {
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  background: #fbeed3;
  color: #6b3f00;             /* 7.9:1 on #fbeed3 */
}

/* -------------------------------------------------------- the decision -- */

.npa-decide p,
.npa-replace p,
.npa-standdown p,
.npa-honest p {
  margin-top: 0.4rem;
  color: var(--np-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.npa-decide .npa-btn,
.npa-replace .npa-btn,
.npa-standdown .npa-btn,
.npa-honest .npa-btn,
.npa-notecard .npa-btn {
  margin-top: 0.75rem;
}

.npa-decide.is-ready {
  border-color: rgba(36, 107, 212, 0.4);
  box-shadow: 0 0 0 3px rgba(36, 107, 212, 0.1);
}

/* These read as sentences, not as section labels, so they drop the
   letter-spaced micro-caps treatment the other h3s use. */
.npa-decide .npa-h3,
.npa-replace .npa-h3,
.npa-standdown .npa-h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.2;
  text-transform: none;
  color: var(--np-ink);
}

.npa-decide.is-done {
  border-color: rgba(26, 107, 67, 0.4);
  background: #f2f9f4;
}

.npa-decide__stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  margin-bottom: 0.5rem;
  border-radius: 0.35rem;
  background: #d8ecdf;
  color: #155836;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.npa-replace {
  border-color: rgba(122, 73, 0, 0.35);
  background: #fffaf1;
}

.npa-replace__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  color: var(--np-warn);
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.npa-replace__act {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.npa-replace__act .npa-btn {
  margin-top: 0;
}

/* --------------------------------------------------------- disclosure --- */

.npa-details {
  border: 1px solid var(--np-line);
  border-radius: 1rem;
  background: var(--np-card);
}

.npa-details summary {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  padding: 0.6rem 0.9rem;
  color: var(--np-accent-ink);
  font-size: 0.78rem;
  font-weight: 740;
  cursor: pointer;
}

.npa-details__body {
  padding: 0 0.9rem 0.9rem;
}

.npa-details__title {
  margin-top: 0.6rem;
  color: var(--np-muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.npa-list {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  line-height: 1.45;
}

.npa-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--np-ink);
}

.npa-list li::before {
  position: absolute;
  top: 0.42rem;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  content: "";
}

.npa-list--yes li::before { background: var(--np-go); }
.npa-list--no li::before { background: var(--np-stop); }

.npa-notecard__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--np-accent-ink);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.npa-notecard__body {
  margin-top: 0.45rem;
  padding-left: 0.7rem;
  border-left: 3px solid var(--np-accent2);
  color: var(--np-ink);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* ------------------------------------------------------------ the day --- */

.npa-ribbon {
  padding: 1rem;
  border-radius: 1rem;
  background: var(--np-ink);
  color: #fff;
}

.npa-ribbon.is-escalated {
  background: linear-gradient(150deg, #4b1512, #1c1a22 70%);
}

.npa-ribbon__label {
  color: var(--np-accent2);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.npa-ribbon.is-escalated .npa-ribbon__label {
  color: #ffc9c4;
}

.npa-ribbon__figure {
  margin-top: 0.35rem;
  font-family: var(--np-mono);
  font-size: 1.35rem;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.npa-ribbon__track {
  position: relative;
  height: 2.4rem;
  margin-top: 0.9rem;
  border-radius: 0.5rem;
  background: repeating-linear-gradient(90deg, rgba(185, 213, 255, 0.16) 0 1px, transparent 1px 1.5rem), rgba(185, 213, 255, 0.09);
}

.npa-ribbon__window {
  position: absolute;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 33.333%;
  width: 33.333%;
  border-radius: 0.35rem;
  background: linear-gradient(90deg, #4b8ee8, var(--np-accent2));
}

.npa-ribbon.is-escalated .npa-ribbon__window {
  left: 0;
  width: 30%;
  background: linear-gradient(90deg, #ff8a80, #ffc9c4);
}

.npa-ribbon__now {
  position: absolute;
  top: -0.2rem;
  bottom: -0.2rem;
  left: var(--now);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(22, 35, 55, 0.5);
}

.npa-ribbon__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  color: var(--np-on-ink-soft);
  font-family: var(--np-mono);
  font-size: 0.65rem;
}

.npa-ribbon__fine {
  margin-top: 0.5rem;
  color: var(--np-on-ink-soft);
  font-size: 0.72rem;
  line-height: 1.45;
}

.npa-ribbon__act {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.npa-whocard {
  width: 100%;
  min-height: 2.75rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  margin-top: 0.6rem;
  border: 1px solid var(--np-line);
  border-radius: 0.65rem;
  background: var(--np-paper);
  text-align: left;
}

.npa-whocard:hover {
  border-color: var(--np-accent-deep);
  background: #e7f0fb;
}

.npa-whocard__mark {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 0.55rem 0.55rem 0.55rem 0.18rem;
  background: var(--np-ink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: -0.03em;
}

.npa-whocard__text {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.npa-whocard__text strong {
  font-size: 0.82rem;
  font-weight: 760;
}

.npa-whocard__text > span {
  color: var(--np-muted);
  font-size: 0.71rem;
  line-height: 1.35;
}

.npa-whocard__go {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--np-accent-ink);
  font-size: 0.68rem;
  font-weight: 760;
}

.npa-ribbon__act .npa-btn {
  padding-inline: 0.6rem;
  font-size: 0.76rem;
}

.npa-daysteps__note {
  margin-top: 0.45rem;
  color: var(--np-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.npa-steps {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.npa-step {
  position: relative;
  padding: 0.7rem 0.75rem 0.75rem 1.6rem;
  border: 1px solid var(--np-line);
  border-radius: 0.75rem;
  background: var(--np-paper);
}

.npa-step::before {
  position: absolute;
  top: 1rem;
  left: 0.6rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #b7c4d4;
  content: "";
}

.npa-step.is-done::before {
  background: var(--np-go);
}

.npa-step.is-done {
  border-color: rgba(26, 107, 67, 0.32);
  background: #f2f9f4;
}

.npa-step.is-key {
  border-color: rgba(36, 107, 212, 0.4);
}

.npa-step.is-key.is-done {
  border-color: rgba(26, 107, 67, 0.42);
}

.npa-step__when {
  color: var(--np-accent-ink);
  font-family: var(--np-mono);
  font-size: 0.68rem;
  font-weight: 640;
}

.npa-step__body h4 {
  margin-top: 0.25rem;
}

.npa-step__body p {
  margin-top: 0.25rem;
  color: var(--np-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.npa-step__icon {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  color: var(--np-accent-ink);
  opacity: 0.55;
}

.npa-step__done {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.45rem;
  color: #155836;
  font-size: 0.68rem;
  font-weight: 780;
}

.npa-figure {
  overflow: hidden;
  border: 1px solid var(--np-line);
  border-radius: 1rem;
  background: var(--np-card);
}

.npa-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.npa-figure figcaption {
  padding: 0.7rem 0.85rem 0.85rem;
  color: var(--np-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

/* ---------------------------------------------------------- the house --- */

.npa-plan__stage {
  position: relative;
  margin-top: 0.7rem;
  border: 1px solid var(--np-line);
  border-radius: 0.75rem;
  background: var(--np-paper);
}

.npa-cutaway {
  width: 100%;
  height: auto;
}

.npa-cut__hatch { stroke: rgba(22, 35, 55, 0.3); stroke-width: 1; }
.npa-cut__grade { stroke: var(--np-ink); stroke-width: 1.6; }
.npa-cut__roof,
.npa-cut__wall { fill: none; stroke: var(--np-ink); stroke-width: 1.8; stroke-linejoin: round; }
.npa-cut__slab { fill: none; stroke: var(--np-ink); stroke-width: 1.2; }
.npa-cut__part { fill: none; stroke: rgba(22, 35, 55, 0.45); stroke-width: 1; stroke-dasharray: 4 3; }
.npa-cut__fit { fill: none; stroke: rgba(22, 35, 55, 0.72); stroke-width: 1.1; stroke-linejoin: round; }
.npa-cut__pipe { fill: none; stroke: var(--np-accent); stroke-width: 2; stroke-linecap: round; }
.npa-cut__wire { fill: none; stroke: #9a5c00; /* 4.87:1 on --np-paper */ stroke-width: 2; stroke-dasharray: 6 3.5; stroke-linecap: round; }
.npa-cut__room { fill: var(--np-muted); font-family: var(--np-body); font-size: 11px; font-weight: 780; letter-spacing: 0.09em; text-transform: uppercase; }

.npa-pins {
  position: absolute;
  inset: 0;
}

.npa-pin {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.npa-pin__dot {
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(13, 22, 38, 0.4);
}

.npa-pin:hover .npa-pin__dot {
  transform: scale(1.25);
}

.npa-pin[data-status="job"] .npa-pin__dot { background: var(--np-accent-deep); }
.npa-pin[data-status="open"] .npa-pin__dot { background: var(--np-stop); }
.npa-pin[data-status="watch"] .npa-pin__dot { background: var(--np-warn); }
.npa-pin[data-status="ok"] .npa-pin__dot { background: var(--np-go); }

.npa-plan__key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin-top: 0.6rem;
}

.npa-key {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--np-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.npa-key::before {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  content: "";
}

.npa-key[data-status="job"]::before { background: var(--np-accent-deep); }
.npa-key[data-status="open"]::before { background: var(--np-stop); }
.npa-key[data-status="watch"]::before { background: var(--np-warn); }
.npa-key[data-status="ok"]::before { background: var(--np-go); }

.npa-plan .npa-fine {
  margin-top: 0.5rem;
}

.npa-record__note {
  margin-top: 0.4rem;
  color: var(--np-muted);
  font-size: 0.75rem;
}

.npa-rows {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.npa-row__btn {
  width: 100%;
  min-height: 2.75rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--np-line);
  border-radius: 0.65rem;
  background: var(--np-paper);
  text-align: left;
}

.npa-row__btn:hover {
  border-color: var(--np-accent-deep);
  background: #e7f0fb;
}

.npa-row.is-on .npa-row__btn {
  border-color: rgba(26, 107, 67, 0.4);
  background: #f2f9f4;
}

.npa-row.is-current .npa-row__btn {
  border-color: rgba(36, 107, 212, 0.4);
  background: #eaf1fc;
}

.npa-row__mark {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
}

.npa-row__mark[data-status="job"] { background: var(--np-accent-deep); }
.npa-row__mark[data-status="open"] { background: var(--np-stop); }
.npa-row__mark[data-status="watch"] { background: var(--np-warn); }
.npa-row__mark[data-status="ok"] { background: var(--np-go); }

.npa-row__text {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.npa-row__text strong {
  font-size: 0.79rem;
  font-weight: 750;
  line-height: 1.25;
}

.npa-row__text > span {
  color: var(--np-muted);
  font-size: 0.71rem;
  line-height: 1.35;
}

.npa-row__go {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--np-accent-ink);
  font-size: 0.68rem;
  font-weight: 760;
}

/* --------------------------------------------------------- the papers --- */

.npa-credlist {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.npa-cred {
  width: 100%;
  min-height: 2.75rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.6rem;
  border: 1px solid var(--np-line);
  border-radius: 0.65rem;
  background: var(--np-paper);
  text-align: left;
}

.npa-cred:hover {
  border-color: var(--np-accent-deep);
  background: #e7f0fb;
}

.npa-cred > .npa-icon:first-child {
  color: var(--np-accent-ink);
}

.npa-cred > span {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.npa-cred strong {
  font-size: 0.79rem;
  font-weight: 750;
}

.npa-cred span span {
  color: var(--np-muted);
  font-size: 0.71rem;
}

.npa-postcode {
  margin-top: 0.6rem;
}

.npa-postcode__label {
  display: grid;
  gap: 0.15rem;
  font-size: 0.79rem;
  font-weight: 740;
}

.npa-postcode__label span {
  color: var(--np-muted);
  font-size: 0.71rem;
  font-weight: 500;
}

.npa-postcode__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.npa-postcode__input {
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--np-line-strong);
  border-radius: 0.55rem;
  background: #fff;
  font-family: var(--np-mono);
  font-size: 0.86rem;
  font-weight: 620;
  text-transform: uppercase;
}

.npa-postcode__result {
  margin-top: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  font-size: 0.75rem;
  line-height: 1.45;
}

.npa-postcode__result[data-tone="ring"] { background: #d8ecdf; color: #15583e; }
.npa-postcode__result[data-tone="edge"] { background: #f7e5c6; color: #6b3f00; }
.npa-postcode__result[data-tone="out"] { background: #fbe0dd; color: #7d1913; }
.npa-postcode__result[data-tone="short"] { background: var(--np-paper); color: var(--np-muted); }

.npa-honest {
  border-color: rgba(122, 73, 0, 0.3);
  background: #fffaf1;
}

.npa-honest .npa-h3 {
  color: var(--np-warn);
}

/* -------------------------------------------------------------- modals -- */

dialog::backdrop {
  background: rgba(9, 15, 26, 0.62);
}

.npa-dialog,
.npa-alert {
  width: min(94vw, 24rem);
  max-height: min(88svh, 44rem);
  /* the `* { margin: 0 }` reset kills the UA's auto-centring for modals */
  margin: auto;
  padding: 0;
  overflow: hidden auto;
  border: 0;
  border-radius: 1.1rem;
  background: var(--np-card);
  color: var(--np-ink);
  box-shadow: 0 30px 70px rgba(9, 15, 26, 0.45);
}

.npa-dialog--wide {
  width: min(94vw, 34rem);
}

.npa-dialog__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem 0.6rem 1rem;
  border-bottom: 1px solid var(--np-line);
  background: var(--np-ink);
  color: #fff;
}

.npa-dialog__kicker {
  color: var(--np-accent2);
  font-size: 0.65rem;
  font-weight: 820;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.npa-dialog__close {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(185, 213, 255, 0.16);
  color: #fff;
}

.npa-dialog__close:hover {
  background: rgba(185, 213, 255, 0.32);
}

.npa-dialog__body {
  padding: 1rem;
}

.npa-dialog__body h2 {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.npa-dialog__help {
  margin-top: 0.45rem;
  color: var(--np-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.npa-dialog__fine {
  padding-top: 0.7rem;
  margin-top: 0.9rem;
  border-top: 1px dashed var(--np-line);
  color: var(--np-muted);
  font-size: 0.71rem;
  line-height: 1.5;
}

.npa-choices {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.npa-choice {
  width: 100%;
  min-height: 2.75rem;
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--np-line-strong);
  border-radius: 0.65rem;
  background: var(--np-paper);
  text-align: left;
}

.npa-choice:hover {
  border-color: var(--np-accent-deep);
  background: #e7f0fb;
}

.npa-choice.is-on {
  border-color: var(--np-accent-deep);
  background: #e2ecfb;
  box-shadow: inset 0 0 0 1px var(--np-accent-deep);
}

.npa-choice__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.npa-choice__top strong {
  font-size: 0.85rem;
  font-weight: 760;
  line-height: 1.25;
}

.npa-choice__delta {
  flex: 0 0 auto;
  color: var(--np-accent-ink);
  font-family: var(--np-mono);
  font-size: 0.76rem;
  font-weight: 640;
}

.npa-choice__note {
  color: var(--np-muted);
  font-size: 0.73rem;
  line-height: 1.4;
}

.npa-choice--clear {
  color: var(--np-muted);
  font-size: 0.75rem;
  font-weight: 640;
  text-align: center;
  background: transparent;
  border-style: dashed;
}

.npa-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.npa-facts div {
  padding: 0.5rem 0.6rem;
  border-radius: 0.55rem;
  background: var(--np-paper);
}

.npa-facts dt {
  color: var(--np-muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.npa-facts dd {
  margin: 0.2rem 0 0;
  font-family: var(--np-mono);
  font-size: 0.8rem;
  font-weight: 640;
}

.npa-facts dd[data-status="open"] { color: var(--np-stop); }
.npa-facts dd[data-status="watch"] { color: var(--np-warn); }
.npa-facts dd[data-status="ok"] { color: var(--np-go); }
.npa-facts dd[data-status="job"] { color: var(--np-accent-ink); }

.npa-detail__body {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  line-height: 1.55;
}

.npa-detail__last {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  color: var(--np-muted);
  font-size: 0.74rem;
}

.npa-detail__act {
  margin-top: 1rem;
}

.npa-detail__act .npa-fine {
  margin-top: 0.5rem;
}

.npa-invoice {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.npa-invoice li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--np-line);
  font-size: 0.79rem;
}

.npa-invoice b {
  font-family: var(--np-mono);
  font-weight: 640;
}

.npa-invoice .is-total {
  border-bottom: 0;
  font-weight: 800;
}

/* ------------------------------------------------------------- the board */

.npa-board {
  margin-top: 0.9rem;
}

.npa-board__scroll {
  overflow-x: auto;
  border: 1px solid var(--np-line);
  border-radius: 0.7rem;
}

.npa-board__hint {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  color: var(--np-muted);
  font-size: 0.72rem;
}

.npa-board table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
}

.npa-board th,
.npa-board td {
  padding: 0.2rem;
  border-bottom: 1px solid var(--np-line);
  text-align: center;
}

.npa-board thead th {
  padding: 0.45rem 0.2rem;
  background: var(--np-paper-deep);
  font-size: 0.66rem;
  font-weight: 800;
}

.npa-board thead th small {
  display: block;
  color: var(--np-muted);
  font-size: 0.6rem;
  font-weight: 600;
}

.npa-board tbody th {
  padding: 0.4rem 0.5rem;
  background: var(--np-paper);
  color: var(--np-ink);
  font-family: var(--np-mono);
  font-size: 0.66rem;
  font-weight: 620;
  text-align: left;
  white-space: nowrap;
}

.npa-cell {
  width: 100%;
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  padding: 0.3rem 0.2rem;
  border-radius: 0.4rem;
  font-size: 0.63rem;
  font-weight: 720;
}

.npa-cell[data-state="open"] { background: #dff0e6; color: #15583e; }
.npa-cell[data-state="one"] { background: #f7e5c6; color: #6b3f00; }
.npa-cell[data-state="full"],
.npa-cell[data-state="closed"],
.npa-cell[data-state="gone"] { background: var(--np-paper); color: var(--np-muted); cursor: not-allowed; }

.npa-cell:not(:disabled):hover {
  outline: 2px solid var(--np-accent-deep);
}

.npa-cell.is-on {
  background: var(--np-ink);
  color: #fff;
}

.npa-cell.is-on::after {
  content: " ✓";
}

/* -------------------------------------------------------------- routes -- */

.npa-route {
  padding: 0.85rem;
  margin-top: 0.9rem;
  border: 1px solid var(--np-line-strong);
  border-radius: 0.75rem;
  background: var(--np-paper);
}

.npa-route[data-level="stop"] { border-color: rgba(165, 32, 25, 0.45); background: #fdeeec; }
.npa-route[data-level="act"] { border-color: rgba(122, 73, 0, 0.45); background: #fdf4e6; }
.npa-route[data-level="care"] { border-color: rgba(36, 107, 212, 0.4); background: #eaf1fc; }
.npa-route[data-level="ok"] { border-color: rgba(26, 107, 67, 0.4); background: #eef7f1; }

.npa-route__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.npa-route[data-level="stop"] .npa-route__tag { color: #7d1913; }
.npa-route[data-level="act"] .npa-route__tag { color: #6b3f00; }
.npa-route[data-level="care"] .npa-route__tag { color: #14468f; }
.npa-route[data-level="ok"] .npa-route__tag { color: #15583e; }

.npa-route .npa-h3 {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--np-ink);
}

.npa-route > p {
  margin-top: 0.4rem;
  color: #35455c;             /* 8.3:1 on the lightest route background */
  font-size: 0.79rem;
  line-height: 1.5;
}

.npa-route__steps {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.7rem;
  padding-left: 1.1rem;
  list-style: decimal;
  color: #35455c;
  font-size: 0.77rem;
  line-height: 1.45;
}

.npa-route .npa-btn {
  margin-top: 0.8rem;
}

/* --------------------------------------------------------------- notes -- */

.npa-noteform {
  margin-top: 0.9rem;
}

.npa-noteform__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 740;
}

.npa-noteform__input {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--np-line-strong);
  border-radius: 0.55rem;
  background: var(--np-paper);
  font-size: 0.83rem;
  line-height: 1.45;
  resize: vertical;
}

.npa-noteform__count {
  margin-top: 0.3rem;
  color: var(--np-muted);
  font-family: var(--np-mono);
  font-size: 0.7rem;
  text-align: right;
}

.npa-noteform__act {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

/* --------------------------------------------------------------- alert -- */

.npa-alert {
  width: min(92vw, 21rem);
  padding: 1.4rem 1.2rem 1.2rem;
  text-align: center;
}

.npa-alert__mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  background: #d8ecdf;
  color: #15583e;
}

.npa-alert__mark[data-tone="stop"] {
  background: #fbe0dd;
  color: #7d1913;
}

.npa-alert__mark .npa-icon {
  width: 1.4rem;
  height: 1.4rem;
  stroke-width: 2.4;
}

.npa-alert__kicker {
  color: var(--np-accent-ink);
  font-size: 0.65rem;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.npa-alert h2 {
  margin-top: 0.35rem;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.npa-alert__copy {
  margin-top: 0.55rem;
  color: var(--np-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.npa-alert form {
  margin-top: 1.1rem;
}

/* --------------------------------------------------------------- toast -- */

.npa-toast {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  z-index: 300;
  max-width: min(92vw, 24rem);
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  background: var(--np-ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 680;
  text-align: center;
  box-shadow: 0 16px 40px rgba(9, 15, 26, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 1rem);
  transition: opacity 200ms ease, transform 200ms ease;
}

.npa-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.npa-noscript {
  padding: 1.2rem;
  margin: 1.2rem;
  border-radius: 0.8rem;
  background: var(--np-card);
  color: var(--np-ink);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------ narrower -- */

@media (max-width: 26rem) {
  .npa-move__btn {
    grid-template-columns: 3.9rem minmax(0, 1fr);
    grid-template-areas: "amount why" "state state";
    row-gap: 0.35rem;
  }

  .npa-move__amount { grid-area: amount; }
  .npa-move__why { grid-area: why; }

  .npa-move__state {
    grid-area: state;
    justify-self: start;
    margin-left: 4.5rem;
  }

  .npa-ribbon__act,
  .npa-replace__act {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 62rem) {
  .npa-device {
    height: min(48rem, calc(100svh - 4rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
