/*
 * Native Stack chrome on top of vendor/ui tokens and bundle.css.
 */

html, body { min-height: 100%; }
html { background: var(--tracing); }

.ns-shell { min-height: 100vh; }

.turbo-progress-bar { background: var(--clay); height: 2px; }

.ns-shell a:not([class]) { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.ns-shell a.ns-btn, .ns-shell a.ns-tile, .ns-shell a.ns-family-btn { text-decoration: none; }
.ns-shell a.ns-btn-primary { color: var(--on-clay); }
.ns-table .ns-cell-primary a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ns-table .ns-cell-primary a:hover { text-decoration: underline; }

.ns-page {
  width: min(72rem, 100%);
  margin-inline: auto;
  padding: var(--space-8) var(--space-6) var(--space-12);
}
/* Dashboards use the whole window. */
.ns-page-wide { width: 100%; }

.ns-family-home .ns-display {
  font-size: 40px;
  line-height: 40px;
  margin: 0 0 var(--space-2);
}

.ns-family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.ns-sign-in-page {
  min-height: calc(100vh - var(--space-12));
  display: flex;
  align-items: center;
  justify-content: center;
}

.ns-sign-in-card {
  width: 100%;
  max-width: 22rem;
  padding: var(--space-8);
  background: var(--paper);
  border: 1px solid var(--dust);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.ns-sign-in-mark {
  width: 40px;
  height: 40px;
  display: block;
  margin-bottom: var(--space-4);
}

.ns-sign-in-card .ns-display {
  margin: 0 0 var(--space-6);
}

.ns-sign-in-card .ns-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ns-sign-in-password-row {
  justify-content: space-between;
  align-items: baseline;
}

.ns-sign-in-submit {
  margin-top: var(--space-2);
  width: 100%;
}

.ns-sign-in-alert,
.ns-sign-in-notice {
  margin: 0 0 var(--space-4);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 18px;
}

.ns-sign-in-alert {
  background: var(--clay-tint);
  color: var(--clay-deep);
}

.ns-sign-in-notice {
  background: var(--tracing);
  color: var(--ink-soft);
}

.ns-bar-tools {
  margin-left: auto;
}

.ns-table td.ns-num, .ns-table td .ns-unknown { white-space: nowrap; }

@media (max-width: 720px) {
  .ns-pagehead-actions { margin-left: 0; flex-wrap: wrap; width: 100%; }
  .ns-record-fields, .ns-project-facts .ns-record-fields { grid-template-columns: 1fr 1fr; }
  .ns-record-field:nth-child(2n) { border-right: 0; }
  .ns-bar-tools .ns-actor { gap: 0; padding-right: 0; }
  .ns-bar-actor-email { display: none; }
  .ns-table-phone td[data-label="Project"]::before { display: none; }
  /* Mobile schedule rendering is a later issue (#66 scope: desktop only). */
  .ns-schedule-wrap { display: none; }
}

.ns-jobs-filters {
  margin: var(--space-4) 0 var(--space-4);
  flex-wrap: wrap;
}

.ns-jobs-filters a.ns-filter {
  text-decoration: none;
}

.ns-money-input { position: relative; display: block; }
.ns-money-prefix { position: absolute; left: var(--space-3); top: 0; height: 38px; display: flex; align-items: center; color: var(--ink-mute); pointer-events: none; }
.ns-money-input .ns-input { padding-left: var(--space-6); width: 100%; }
/* Same affordance with the symbol after the number: "55 %". */
.ns-unit-input { position: relative; display: block; }
.ns-unit-suffix { position: absolute; right: var(--space-3); top: 0; height: 38px; display: flex; align-items: center; color: var(--ink-mute); pointer-events: none; }
.ns-unit-input .ns-input { padding-right: var(--space-6); width: 100%; }
.ns-textarea { height: auto; min-height: 84px; resize: vertical; font-family: inherit; line-height: 1.4; padding-top: var(--space-2); }
.ns-record-description { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); white-space: pre-line; }

.ns-project-form { max-width: 40rem; display: flex; flex-direction: column; gap: var(--space-6); margin-top: var(--space-4); }
.ns-form-section { padding: var(--space-5); border: 1px solid var(--dust); background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.ns-form-section .ns-title-sm { margin-bottom: var(--space-4); }
.ns-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); }
.ns-form-grid .ns-span-2 { grid-column: span 2; }
.ns-form-actions { display: flex; gap: var(--space-3); align-items: center; }
.ns-form-errors { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--clay-tint); color: var(--clay-deep); font-size: 13px; line-height: 18px; }
.ns-form-errors p { margin: 0; }
.ns-input-invalid { border-color: var(--clay-deep); }
.ns-field-error { color: var(--clay-deep); font-size: 13px; line-height: 18px; }
@media (max-width: 720px) {
  .ns-form-grid { grid-template-columns: 1fr; }
  .ns-form-grid .ns-span-2 { grid-column: auto; }
}

.ns-empty {
  padding: var(--space-8) var(--space-6);
  border: 1px dashed var(--dust-deep);
  border-radius: var(--radius-lg);
  text-align: center;
}

.ns-empty .ns-title-sm {
  margin-bottom: var(--space-1);
}

.ns-title-sm {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  line-height: 22px;
  margin: 0 0 var(--space-2);
}

/*
 * Standins for primitives the kit (vendor/ui) doesn't have yet. Tokens only,
 * no invented colour/radius/shadow -- this is composition, not a second
 * design language. Move into vendor/ui and delete from here once it exists
 * there; flagged on the PR, no write/issue access to Native-Stack-LLC/ui to
 * file it directly.
 */
.ns-chrome-float {
  position: fixed;
  top: var(--space-3);
  right: var(--space-4);
  display: flex;
  gap: var(--space-2);
  z-index: var(--z-chrome, 10);
}

.ns-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--dust);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
}
.ns-icon-btn:hover { background: var(--tracing); }
.ns-icon-btn .ns-actor-avatar { width: 20px; height: 20px; font-size: 10px; }

.ns-chrome-float .ns-family-menu { top: 44px; right: 0; left: auto; }

.ns-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  border: 1px solid var(--dust);
  background: var(--paper);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.ns-chip-btn:hover { background: var(--tracing); }
.ns-chip-btn-empty { border-style: dashed; color: var(--ink-mute); }

.ns-card-centered .ns-record-head { justify-content: center; text-align: center; }
.ns-card-centered .ns-record-field { text-align: center; }
/* Ten facts: five across so they fall in two even rows at desktop widths. */
.ns-project-facts .ns-record-fields { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.ns-disclosure { position: relative; display: inline-block; }
.ns-disclosure > summary { list-style: none; cursor: pointer; }
.ns-disclosure > summary::-webkit-details-marker { display: none; }
.ns-disclosure-panel {
  position: absolute;
  top: 44px;
  left: 0;
  z-index: var(--z-sheet, 20);
  background: var(--paper);
  border: 1px solid var(--dust);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-toast);
  padding: var(--space-3);
  min-width: 220px;
}

/* Inside a card (ns-record clips with overflow: hidden, so a floating
   popover gets cut off) the panel grows the card instead of floating. */
.ns-disclosure-inline .ns-disclosure-panel {
  position: static;
  box-shadow: none;
  margin-top: var(--space-3);
  min-width: 0;
  width: 100%;
}

.ns-projects-index { width: min(40rem, 100%); margin-inline: auto; }
.ns-projects-actions { display: flex; justify-content: center; gap: var(--space-2); margin: var(--space-3) 0 var(--space-8); }
.ns-projects-feed { display: flex; flex-direction: column; gap: var(--space-4); }

/* The schedule chart (#66): a Gantt of the same list as the feed below it.
   No vendor/ui primitive for this (flagged, same as .ns-record-* companions
   above) -- tokens only. Wider than the feed's own column on purpose: the
   chart is the overview, the feed is the detail.

   One scroll box, both axes. Rows are flex lines so the label can be
   position: sticky against the row (a grid cell would clamp it to its own
   area). Day width is a custom property set inline from the view; 16px is
   the floor where a two-digit date still reads, and shows ~2.5 months at
   1440 wide. Height caps at about nine rows so the feed stays near the fold. */
.ns-schedule-wrap { width: min(80rem, 100%); margin: 0 auto var(--space-12); }
.ns-schedule-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-bottom: var(--space-3); padding-right: 7rem; /* clear the floating app/account buttons */ }
.ns-schedule-title { font-size: 16px; font-weight: 600; margin: 0; color: var(--ink); }

.ns-schedule {
  --label-width: 220px;
  --row-height: 44px;
  --axis-height: 40px;
  --footer-height: 52px;
  position: relative;
  max-height: calc(var(--axis-height) + var(--footer-height) + var(--row-height) * 9);
  overflow: auto;
  border: 1px solid var(--dust);
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  font-variant-numeric: tabular-nums;
}
.ns-schedule-row, .ns-schedule-axis { display: flex; align-items: stretch; width: max-content; min-width: 100%; }
.ns-schedule-row { height: var(--row-height); }
.ns-schedule-axis { height: var(--axis-height); position: sticky; z-index: 3; background: var(--paper); }
.ns-schedule-axis-top { top: 0; border-bottom: 1px solid var(--dust-deep); }
.ns-schedule-axis-bottom { bottom: 0; height: var(--footer-height); border-top: 1px solid var(--dust-deep); }
.ns-schedule-total { display: flex; flex-direction: column; justify-content: center; padding: 0 var(--space-3); gap: 2px; }
.ns-schedule-month span { display: flex; flex-direction: column; gap: 2px; }
.ns-schedule-month-label { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.ns-schedule-profit { font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ns-schedule-loss { color: var(--clay-deep); }

.ns-schedule-label, .ns-schedule-corner {
  position: sticky; left: 0; z-index: 2;
  flex: 0 0 var(--label-width); width: var(--label-width);
  background: var(--paper); border-right: 1px solid var(--dust-deep);
}
.ns-schedule-label { display: flex; align-items: center; padding: 0 var(--space-3); border-bottom: 1px solid var(--dust); min-width: 0; }
.ns-schedule-label .ns-schedule-link { display: flex; flex-direction: column; min-width: 0; width: 100%; text-decoration: none; color: inherit; }
.ns-schedule-label .ns-schedule-link:hover .ns-schedule-name { color: var(--link); }
.ns-schedule-name, .ns-schedule-address { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-schedule-name { font-size: 13px; font-weight: 600; line-height: 18px; color: var(--ink); }
.ns-schedule-address { font-size: 11px; line-height: 14px; color: var(--ink-mute); }

.ns-schedule-track { position: relative; flex: 0 0 var(--track-width); width: var(--track-width); border-bottom: 1px solid var(--dust); }
.ns-schedule-axis .ns-schedule-track { display: flex; border-bottom: 0; }
.ns-schedule-row:last-of-type .ns-schedule-track, .ns-schedule-row:last-of-type .ns-schedule-label { border-bottom: 0; }

.ns-schedule-day { flex: 0 0 var(--day-width); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.ns-schedule-dow { font-size: 9px; line-height: 10px; color: var(--ink-mute); text-transform: uppercase; }
.ns-schedule-date { font-size: 10px; line-height: 12px; font-weight: 600; color: var(--ink-soft); }
.ns-schedule-day.ns-schedule-weekend { background: var(--aggregate-tint); }
.ns-schedule-day.ns-schedule-today { background: var(--clay-tint); }
.ns-schedule-day.ns-schedule-today .ns-schedule-date, .ns-schedule-day.ns-schedule-today .ns-schedule-dow { color: var(--clay-deep); }

.ns-schedule-shade { position: absolute; top: 0; bottom: 0; width: var(--day-width); pointer-events: none; }
.ns-schedule-shade.ns-schedule-weekline { width: 0; border-left: 1px solid var(--dust); }
.ns-schedule-week { flex: 0 0 calc(var(--day-width) * 7); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-left: 1px solid var(--dust); }
.ns-schedule-week:first-child { border-left: 0; }
.ns-schedule-week.ns-schedule-today { background: var(--clay-tint); }
.ns-schedule-week.ns-schedule-today .ns-schedule-date, .ns-schedule-week.ns-schedule-today .ns-schedule-dow { color: var(--clay-deep); }
.ns-schedule-wrap-weeks { width: 100%; margin: 0; }
.ns-schedule-wrap-weeks .ns-schedule { --label-width: 180px; --row-height: 36px; max-height: calc(var(--axis-height) + var(--footer-height) + var(--row-height) * 8); }
.ns-schedule-wrap-weeks .ns-schedule-address { display: none; }
.ns-schedule-wrap-weeks .ns-schedule-bar { height: 14px; }
.ns-schedule-shade.ns-schedule-weekend { background: var(--aggregate-tint); opacity: 0.6; }
.ns-schedule-shade.ns-schedule-today { background: none; border-left: 2px solid var(--clay); width: 0; margin-left: calc(var(--day-width) / 2 - 1px); }

.ns-schedule-bar {
  position: absolute; top: 50%; transform: translateY(-50%);
  height: 20px; border-radius: var(--radius-sm); box-sizing: border-box;
  display: block; text-decoration: none;
}
.ns-schedule-bar:hover, .ns-schedule-bar:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
/* Only prospective work charts here; one solid bar in the suite's colour. */
.ns-schedule-bar { background: var(--sand); }

.ns-schedule-month { flex: 0 0 auto; display: flex; align-items: center; padding-left: var(--space-2); border-left: 1px solid var(--dust); font-size: 12px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; overflow: clip; }
.ns-schedule-month:first-child { border-left: 0; }
.ns-schedule-month > span { position: sticky; left: calc(var(--label-width) + var(--space-2)); }

/* Quiet scrolling: panels that scroll keep a thin thumb that only shows
   while the pointer is over them, no track, no arrows. Firefox through
   scrollbar-width/color, WebKit through the pseudo-elements. Content still
   scrolls by wheel, trackpad, and touch everywhere. */
.ns-scroll-quiet { scrollbar-width: thin; scrollbar-color: transparent transparent; transition: scrollbar-color 160ms ease; }
.ns-scroll-quiet:hover { scrollbar-color: var(--dust-deep) transparent; }
.ns-scroll-quiet::-webkit-scrollbar { width: 6px; height: 6px; }
.ns-scroll-quiet::-webkit-scrollbar-track { background: transparent; }
.ns-scroll-quiet::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.ns-scroll-quiet:hover::-webkit-scrollbar-thumb { background: var(--dust-deep); }
.ns-scroll-quiet::-webkit-scrollbar-corner { background: transparent; }

/* The Preconstruction home (#75 layout test): board on top, then the
   week-scale schedule two-thirds wide with what needs attention beside it. */
.ns-home { display: flex; flex-direction: column; gap: var(--space-6); }
.ns-home-bar { display: flex; align-items: center; gap: var(--space-3); padding-right: 7rem; /* clear the floating app/account buttons */ }
.ns-home-title { font-size: 22px; margin: 0; }
.ns-home-search { position: relative; flex: 1; display: flex; justify-content: center; }
.ns-home-search .ns-input { width: 20rem; }

/* The search palette (#77). Kit gap: no palette, results-panel, kbd, or <mark>
   primitive in vendor/ui yet; tokens only here. */
.ns-palette { background: var(--paper); border: 1px solid var(--dust); border-radius: var(--radius-lg); box-shadow: var(--shadow-sheet); overflow: hidden; padding: 0; color: var(--ink); }
.ns-palette-centered { width: 640px; max-width: calc(100vw - 32px); margin: 72px auto; }
.ns-palette-centered::backdrop { background: rgba(0, 0, 0, .28); }
.ns-palette-anchored { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: 640px; max-width: calc(100vw - 48px); z-index: var(--z-sheet, 30); }
.ns-palette-box { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--dust); }
.ns-palette-box .ns-input { flex: 1; border: 0; box-shadow: none; height: 32px; font-size: 16px; padding: 0; }
.ns-palette-box .ns-input:focus { outline: none; }
.ns-kbd { font: inherit; font-size: 11px; line-height: 16px; padding: 0 6px; border: 1px solid var(--dust-deep); border-radius: var(--radius-sm); color: var(--ink-mute); background: var(--tracing); white-space: nowrap; cursor: default; }
.ns-palette-chips { display: flex; gap: var(--space-1); padding: var(--space-2) var(--space-4); overflow-x: auto; border-bottom: 1px solid var(--dust); }
.ns-palette-chips .ns-filter { flex: 0 0 auto; text-decoration: none; }
.ns-palette-list { max-height: 60vh; overflow-y: auto; padding: var(--space-1) 0; }
.ns-palette-group { display: flex; align-items: baseline; gap: var(--space-1); padding: var(--space-3) var(--space-4) var(--space-1); }
.ns-palette-group .ns-label { padding: 0; margin: 0; display: inline; }
.ns-hit { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2) var(--space-4); color: inherit; text-decoration: none; }
.ns-hit:hover, .ns-hit[aria-selected="true"] { background: var(--tracing); }
.ns-hit-name { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-hit-why { font-size: 12px; line-height: 16px; color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-hit mark { background: var(--sand-tint); color: inherit; padding: 0 1px; border-radius: 2px; }
.ns-palette-hint, .ns-palette-absent { padding: var(--space-3) var(--space-4); margin: 0; }
.ns-palette-none { padding: var(--space-4); }
.ns-palette-none-title { font-size: 14px; font-weight: 600; }
.ns-palette-none .ns-small { margin: 4px 0 0; }
.ns-palette-foot { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-4); border-top: 1px solid var(--dust); background: var(--tracing); }

.ns-pipeline { display: flex; align-items: stretch; gap: var(--space-2); }
.ns-pipeline-stage { flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) var(--space-4); background: var(--paper); border: 1px solid var(--dust); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); min-width: 0; }
.ns-pipeline-name { font-size: 12px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-pipeline-value { font-size: 22px; line-height: 28px; font-weight: 600; color: var(--ink); }
.ns-pipeline-count { font-size: 12px; color: var(--ink-mute); }
.ns-pipeline-arrow { align-self: center; color: var(--dust-deep); font-size: 18px; }
.ns-pipeline-total { background: var(--sand-tint); border-color: var(--sand); margin-left: var(--space-2); }
.ns-board-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-3); }
.ns-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.ns-board-heading { font-size: 13px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.02em; margin: 0 0 var(--space-2); padding: 0 var(--space-1); }
.ns-board-column { border-radius: var(--radius-lg); transition: background-color 120ms ease; }
.ns-board-column-over { background: var(--sand-tint); box-shadow: inset 0 0 0 2px var(--sand); }
.ns-board-cards { display: flex; flex-direction: column; gap: var(--space-2); min-height: 6rem; max-height: 22rem; overflow-y: auto; padding: 2px; }
.ns-board-card[draggable] { cursor: grab; }
.ns-board-card-dragging { opacity: 0.4; }
.ns-board-card[data-pending] { opacity: 0.7; }
.ns-board-card-error { font-size: 11px; color: var(--clay-deep); }
.ns-board-card { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2) var(--space-3); background: var(--paper); border: 1px solid var(--dust); border-radius: var(--radius-md); box-shadow: var(--shadow-card); text-decoration: none; color: inherit; border-left: 3px solid var(--sand); }
.ns-board-card:hover { border-color: var(--dust-deep); border-left-color: var(--sand-deep); }
.ns-board-card-awarded { border-left-color: var(--clay); }
.ns-board-card-lost { border-left-color: var(--dust-deep); }
.ns-board-card-lost .ns-board-card-name { color: var(--ink-mute); }
.ns-board-tag-awarded { color: var(--clay); }
.ns-map-section .ns-schedule-title { margin-bottom: var(--space-3); }
.ns-map { height: 28rem; border: 1px solid var(--dust); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; background: var(--aggregate-tint); }
.ns-map .leaflet-tooltip { font: inherit; font-size: 12px; }
.ns-board-card-name { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-board-card-meta { display: flex; justify-content: space-between; gap: var(--space-2); font-size: 11px; color: var(--ink-mute); }
.ns-board-tag { color: var(--clay-deep); }
.ns-board-empty { font-size: 12px; color: var(--ink-mute); margin: var(--space-2) var(--space-1); }

.ns-home-lower { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-5); align-items: start; }
.ns-home-schedule { min-width: 0; }
.ns-attention .ns-schedule-title { margin-bottom: var(--space-3); }
.ns-attention-card { background: var(--paper); border: 1px solid var(--dust); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); max-height: 24rem; overflow-y: auto; }
.ns-attention-list { list-style: none; margin: 0; padding: 0; }
.ns-attention-item { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--dust); border-left: 3px solid transparent; }
.ns-attention-item:last-child { border-bottom: 0; }
.ns-attention-bid_due { border-left-color: var(--clay); }
.ns-attention-no_bids { border-left-color: var(--sand); }
.ns-attention-no_dates { border-left-color: var(--dust-deep); }
.ns-attention-project { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.ns-attention-project:hover { color: var(--link); }
.ns-attention-text { font-size: 12px; color: var(--ink-soft); }
.ns-attention-clear { padding: var(--space-4); margin: 0; }

@media (max-width: 1100px) {
  .ns-board { grid-auto-columns: 240px; overflow-x: auto; padding-bottom: var(--space-2); }
  .ns-home-lower { grid-template-columns: 1fr; }
  .ns-pipeline { flex-wrap: wrap; }
  .ns-pipeline-stage { flex-basis: calc(50% - var(--space-2)); }
  .ns-pipeline-arrow { display: none; }
  .ns-pipeline-total { margin-left: 0; }
}
@media (max-width: 720px) {
  .ns-home-bar { flex-wrap: wrap; padding-right: 6rem; }
  .ns-pipeline-stage { flex-basis: 100%; }
  .ns-map { height: 18rem; }
  .ns-home-search { flex: 1 1 100%; order: 3; margin-right: -6rem; /* the bar clears the floating buttons; this row sits below them */ }
  .ns-home-search .ns-input { width: 100%; }
  .ns-palette-anchored { left: 0; right: 0; width: auto; max-width: none; transform: none; }
  .ns-palette-centered { width: auto; max-width: none; height: 100%; max-height: 100%; margin: 0; border-radius: 0; }
  .ns-palette-centered[open] { display: flex; flex-direction: column; }
  .ns-palette-centered .ns-palette-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
  .ns-palette-centered .ns-palette-list { max-height: none; flex: 1; }
  .ns-board { grid-auto-columns: 80vw; }
}

.ns-companies-cards, .ns-related-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
