/* Shared layout. Components, state colours and type come from the kit. */
.nth-phone {
  max-inline-size: 40rem;
  margin-inline: auto;
}
.nth-phone-main {
  min-inline-size: 0;
  padding: var(--sp-2) var(--sp-4) var(--sp-4);
}

/* G1: Five linked production-and-business briefs in the first phone view. */
.nth-brief {
  background: var(--surface);
  border: var(--border-w, 1px) solid var(--panel-border);
  border-radius: var(--radius-lg);
}
.nth-brief-section {
  padding: var(--sp-2) var(--sp-4);
}
.nth-brief-section + .nth-brief-section {
  border-block-start: var(--border-w) solid var(--panel-border);
}
.nth-brief-section h2 {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-lg);
}
.nth-brief-section h2 .icon { color: var(--muted); }
.nth-brief-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
}
.nth-brief-link {
  display: grid;
  align-content: center;
  min-block-size: var(--tap);
  min-inline-size: 0;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.nth-brief-link:hover { background: var(--surface-hover); }
.nth-brief-link strong {
  font: var(--heading-weight) var(--fs-lg)/1.15 var(--font-figure);
  font-variant-numeric: tabular-nums;
}
.nth-brief-link small {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.25;
}
.nth-brief-link .num-out { color: var(--danger); }
.nth-brief-link .num-warn { color: var(--warn); }
.nth-brief-link:focus-visible { outline-offset: 0; }
.nth-sample-line { margin: 0; }
.nth-dashboard-notes { margin-block-start: var(--sp-2); }
.nth-work-index { scroll-margin-top: var(--topbar-real-h); }

/* G2: Decorative stacked precast units for the sign-in identity. */
.nth-cast-mark {
  inline-size: min(50%, 12rem);
  block-size: auto;
  color: var(--primary);
}


/* ---- merged from _css-b1.css ---- */
/* Stage B1 uses the vendored kit and existing tenant shell without CSS additions. */


/* ---- merged from _css-b2.css ---- */
/* Space consecutive fields in short phone forms without changing kit controls. */
.nth-b2-field-stack {
  display: grid;
  gap: var(--sp-4);
  min-inline-size: 0;
}

/* Keep row-based kit arithmetic on a stocktake that reads as a count list. */
.nth-b2-count-grid {
  display: block;
  width: 100%;
}
.nth-b2-count-grid tbody {
  display: block;
}
.nth-b2-count-grid th {
  text-align: start;
}
.nth-b2-count-grid .count-row + .count-row {
  border-block-start: var(--border-w) solid var(--panel-border);
}


/* ---- merged from _css-b3.css ---- */
/* S40: keep the two permission columns equal and the area name dominant. */
.nth-b3-permission-col {
  inline-size: calc(4 * var(--sp-6));
}

/* S43c: two independent ledgers share the same landscape document. */
.nth-b3-debt-blocks {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: start;
  gap: var(--sp-4);
  margin-block-start: var(--sp-4);
}
