/* ── DESIGN TOKENS — Hodi (honey & amber) ──────────────
   "Hodi is the call at the door; karibu is the answer."
   Ink #2B2319 is the brand dark; amber #EF9F27 the primary
   action; gold #FAC775 the coin (wallet figures); deep amber
   #BA7517 links/accents. Legacy var names (--terra, --gold…)
   are kept and repointed so existing markup still works. */
:root {
  /* Brand */
  --ink:        #2B2319;   /* brand dark: wordmark, wallet, dark chrome */
  --amber:      #EF9F27;   /* primary action */
  --amber-c:    #D98C15;   /* pressed / gradient end-stop */
  --coin:       #FAC775;   /* the gold coin — wallet figures, highlights */
  --terra:      #BA7517;   /* deep amber — links, icons, brand accents */
  --terra-c:    #8A5A0B;   /* tonal text on amber containers */
  --terra-l:    #FAC775;   /* light fill (chart bars, active-row edge) */
  --terra-xl:   #FBEBCB;   /* amber container / highlighted rows */
  /* Value (legacy gold aliases → Hodi amber family) */
  --gold:       #BA7517;   --gold-c:   #8A5A0B;
  --gold-l:     #FAC775;   --gold-xl:  #FBEBCB;
  --gold-d:     #8A5A0B;   /* was referenced but undefined pre-Hodi */
  /* Digital rail */
  --blue:       #0D50D5;   --blue-c:   #386BEF;
  /* Surface scale */
  --surface:        #FFFDF8;   /* content ground */
  --surface-low:    #FBF6EC;   /* inputs, fee previews, frame tint */
  --surface-cont:   #FBEBCB;   /* amber container */
  --surface-high:   #F3E9D8;   /* parchment — secondary fills, tracks */
  --surface-highest:#EBDDC2;   /* parchment hover step */
  --surface-dim:    #FBF6EC;   /* sidebar / table-header ground */
  /* On-surface */
  --on-surface: #2B2319;
  --on-s-var:   #5A4E42;
  /* Muted text: the mock's #A9884F caption lands ~3.1:1 on the warm
     ground — below AA. Alphas of ink keep the honey hue but hold
     ~6.2:1 / ~4.6:1 (sunlight legibility is a product requirement). */
  --on-s-2:     rgba(43,35,25,.72);
  --on-s-3:     rgba(43,35,25,.62);
  /* Outline / hairlines */
  --outline:    #A9884F;
  --outline-v:  #E4D2AE;
  --line:       #F0E4CE;   /* card borders, structural dividers */
  --line-soft:  #F3E9D8;   /* table row dividers */
  /* Status — received / pending / overdue */
  --forest:  #3B6D11;  --forest-l: #3B6D11;  --forest-xl: #E7F0DD;
  --red:     #B03A1E;  --red-bg:   #F9E2D8;
  --amber-d: #8A5A0B;  --amber-bg: #FBEBCB;
  /* Legacy aliases kept so existing markup still compiles */
  --text-1: #2B2319;  --text-2: #5A4E42;  --text-3: rgba(43,35,25,.55);
  --bark: #2B2319;  --sand: #F3E9D8;  --cream: #FFFDF8;  --border: #F0E4CE;
  /* Type */
  --font-display: 'Plus Jakarta Sans', 'Manrope', sans-serif;
  --font-body: 'Manrope', 'DM Sans', sans-serif;
}

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

html, body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--on-surface);
  font-size: 14px; line-height: 1.6;
}

a { color: var(--terra); }

/* Material Symbols */
.msym {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 20px; line-height: 1; display: inline-block;
  vertical-align: middle;
}
.msym-sm { font-size: 16px; }
.msym-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ── APP SHELL ──────────────────────────────────────── */
.nc-shell { display: flex; min-height: 100vh; }

/* ── SIDEBAR ────────────────────────────────────────── */
.nc-sidebar {
  width: 220px;
  background: var(--surface-dim);
  display: flex; flex-direction: column;
  flex-shrink: 0; position: fixed;
  top: 0; left: 0; height: 100vh; z-index: 100;
  border-right: 1px solid var(--line);
}

.nc-logo { padding: 20px 16px 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.nc-logo-mark { width: 30px; height: 30px; flex-shrink: 0; display: block; }
.nc-logo-text {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 800;
  color: var(--on-surface); letter-spacing: -0.02em;
  line-height: 1.1;
}
.nc-logo-text span { color: var(--amber); }
.nc-logo-sub {
  font-family: var(--font-display); font-style: italic;
  font-size: 10px; font-weight: 600;
  color: var(--terra); margin-top: 1px;
}

.nc-nav { padding: 4px 8px; flex: 1; overflow-y: auto; }

.nc-nav-label {
  font-size: 9px; font-weight: 700; color: var(--on-s-3);
  text-transform: uppercase; letter-spacing: 1.2px; padding: 14px 10px 5px;
}

.nc-nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 10px;
  color: var(--on-s-2); font-size: 12px; font-weight: 600;
  cursor: pointer; margin-bottom: 1px; text-decoration: none;
  transition: all .15s;
}
.nc-nav-item:hover {
  background: rgba(255,255,255,.7);
  color: var(--terra-c);
}
.nc-nav-item.active {
  background: var(--surface-cont);
  color: var(--terra-c); font-weight: 700;
  border-right: 3px solid var(--amber);
  border-radius: 10px 0 0 10px;
}
.nc-nav-item .nc-nav-icon { font-size: 17px; opacity: .75; flex-shrink: 0; }
.nc-nav-item.active .nc-nav-icon {
  opacity: 1;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.nc-nav-badge {
  margin-left: auto; background: var(--red); color: #fff;
  font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 99px;
}

/* sidebar footer */
.nc-sidebar-user {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
}
.nc-sidebar-uname { font-size: 11px; font-weight: 700; color: var(--on-surface); }
.nc-sidebar-urole { font-size: 9px; color: var(--on-s-3); }
.nc-sidebar-logout {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: var(--on-s-3); font-size: 18px; padding: 0; line-height: 1;
  display: flex; align-items: center;
}
.nc-sidebar-logout:hover { color: var(--red); }
.nc-sidebar-profile {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
  text-decoration: none; border-radius: 8px; padding: 4px 6px; margin: -4px -6px;
  transition: background .15s;
}
.nc-sidebar-profile:hover { background: rgba(255,255,255,.6); }

/* ── AVATAR ─────────────────────────────────────────── */
.nc-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--amber); display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 800;
  color: var(--ink); flex-shrink: 0;
}
.nc-avatar.gold  { background: var(--coin); color: var(--ink); }
.nc-avatar.green { background: var(--forest); color: #fff; }
.nc-avatar.blue  { background: var(--blue); color: #fff; }
/* Table avatar — the design's rounded SQUARE (radius 8), tinted by the row's
   status container (green = in good standing, amber = pending, red = knocking).
   The circular .nc-avatar above stays reserved for people chrome (sidebar/topbar). */
.nc-av { width: 28px; height: 28px; border-radius: 8px;
  background: var(--forest-xl); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; flex-shrink: 0; }
/* Modifier names are prefixed (av-*) — MudBlazor ships bare Material color
   utilities (.amber/.green/.red/.blue set background-color) that would
   otherwise paint these elements. Never use bare color-word classes. */
.nc-av.av-amber { background: var(--amber-bg);       color: var(--amber-d); }
.nc-av.av-red   { background: var(--red-bg);         color: var(--red); }
.nc-av.av-blue  { background: rgba(13,80,213,.1);    color: var(--blue); }
.nc-av.av-sand  { background: var(--surface-high);   color: var(--on-s-var); }

/* ── MAIN AREA ──────────────────────────────────────── */
.nc-main {
  margin-left: 220px; flex: 1;
  display: flex; flex-direction: column; min-height: 100vh;
  background: var(--surface);
}

/* ── TOPBAR ─────────────────────────────────────────── */
.nc-topbar {
  background: rgba(255,253,248,.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 14px 64px 14px 24px;   /* reserve right space for the floating bell */
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.nc-page-title {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 800;
  color: var(--on-surface); letter-spacing: -0.02em; margin: 0;
}
.nc-topbar-right { display: flex; align-items: center; gap: 8px; }

/* ── NOTIFICATION BELL (floating, top-right of header) ── */
.nc-bell {
  position: fixed; top: 9px; right: 20px; z-index: 70; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--on-s-2); background: rgba(255,255,255,.55);
  transition: background .15s, color .15s;
}
.nc-bell:hover { background: rgba(255,255,255,.95); color: var(--terra); }
.nc-bell .msym { font-size: 22px; }
.nc-bell-badge {
  position: absolute; top: 1px; right: 1px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
}

/* ── CONTENT ────────────────────────────────────────── */
.nc-content { padding: 24px; flex: 1; }

/* ── BUTTONS ────────────────────────────────────────── */
.nc-btn {
  padding: 10px 18px; border-radius: 11px;
  font-size: 13px; font-weight: 800;
  cursor: pointer; font-family: var(--font-body); border: none;
  transition: all .2s; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.nc-btn:disabled { opacity: .45; cursor: default; }

/* Amber solid = the one money/primary action per screen; flat, ink text. */
.nc-btn-primary {
  background: var(--amber);
  color: var(--ink);
}
.nc-btn-primary:hover:not(:disabled) {
  background: var(--amber-c);
  box-shadow: 0 4px 14px rgba(239,159,39,.35);
  transform: translateY(-1px);
}

/* Tonal amber = supportive actions in the door's voice ("Knock back"). */
.nc-btn-secondary {
  background: var(--amber-bg); color: var(--terra-c); border: none;
  font-size: 12px; font-weight: 700; border-radius: 9px;
}
.nc-btn-secondary:hover:not(:disabled) { background: #F7DFAE; }

/* Tonal green = confirm/receive-flavoured supportive action. */
.nc-btn-tonal-green {
  background: var(--forest-xl); color: var(--forest); border: none;
  font-size: 12px; font-weight: 700; border-radius: 9px;
}
.nc-btn-tonal-green:hover:not(:disabled) { background: #DCE9CE; }

/* Ghost = low-emphasis text action (table "View", "Cancel"). */
.nc-btn-ghost {
  background: transparent; color: var(--terra-c); border: none;
  font-size: 12px; font-weight: 700; border-radius: 9px; padding: 6px 12px;
}
.nc-btn-ghost:hover:not(:disabled) { background: var(--amber-bg); }

.nc-btn-gold {
  background: var(--coin); color: var(--ink);
}
.nc-btn-gold:hover:not(:disabled) { background: #F5B84F; }
.nc-btn-danger  { background: var(--red); color: #fff; border: none; }
.nc-btn-danger:hover:not(:disabled) { background: #9B3016; }
.nc-btn-success { background: var(--forest); color: #fff; }
.nc-btn-success:hover:not(:disabled) { background: #2F5A0C; }
.nc-btn-blue    {
  background: var(--blue); color: #fff;
}
.nc-btn-blue:hover:not(:disabled) { background: #0B46BC; }
.nc-btn-sm { padding: 6px 13px; font-size: 11px; border-radius: 9px; }

@media (prefers-reduced-motion: reduce) {
  .nc-btn, .nc-btn-primary:hover:not(:disabled) { transition: background .15s; transform: none; }
}

/* ── SEARCH / FILTER ────────────────────────────────── */
.nc-search {
  background: var(--surface-low); border: 1px solid var(--line);
  border-radius: 99px; padding: 7px 16px;
  font-size: 12px; color: var(--on-s-var);
  font-family: var(--font-body); outline: none; transition: all .2s;
}
.nc-search:focus { background: #fff; box-shadow: 0 0 0 2px rgba(13,80,213,.2); }
.nc-select-filter {
  background: var(--surface-low); border: 1px solid var(--line);
  border-radius: 99px; padding: 7px 16px;
  font-size: 12px; color: var(--on-s-var);
  font-family: var(--font-body); outline: none; cursor: pointer;
}

/* ── KPI / STAT CARDS ───────────────────────────────── */
.nc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin-bottom: 24px;
}
.nc-stat-card {
  background: #fff; border-radius: 14px; padding: 20px;
  box-shadow: 0 1px 8px rgba(99,56,6,.06);
}
/* Hodi KPI accent: 3px semantic top border */
.nc-stat-card.accent-amber, .nc-kpi-card.accent-amber { border-top: 3px solid var(--amber); }
.nc-stat-card.accent-red,   .nc-kpi-card.accent-red   { border-top: 3px solid var(--red); }
.nc-stat-card.accent-green, .nc-kpi-card.accent-green { border-top: 3px solid var(--forest); }
.nc-stat-card.accent-blue,  .nc-kpi-card.accent-blue  { border-top: 3px solid var(--blue); }
.nc-stat-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--on-s-3); margin-bottom: 6px;
}
.nc-stat-value {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  color: var(--on-surface); line-height: 1.1; letter-spacing: -0.02em;
}
.nc-stat-value.red-text   { color: var(--red); }
.nc-stat-value.green-text { color: var(--forest); }
.nc-stat-value.terra { color: var(--terra); }
.nc-stat-sub { font-size: 11px; color: var(--on-s-3); margin-top: 5px; }
.nc-stat-sub.green-text { color: var(--forest); }
.nc-stat-sub.red-text   { color: var(--red); }

/* ── LL/Agent dashboard (portfolio) ─────────────────── */
.nc-dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.nc-dash-cols { display: grid; grid-template-columns: 1fr 360px; gap: 20px; }
/* Collection bar chart: value labels ride each bar, months on a shared baseline axis */
/* Collection-trend chart: [y-title | y-ticks | plot] grid; gridlines at rounded
   tick values sit behind the bars; value labels ride each bar top. */
.nc-chart {
  display: grid;
  grid-template-columns: 14px 40px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 8px;
}
.nc-chart-ytitle {
  grid-column: 1; grid-row: 1;
  writing-mode: vertical-rl; transform: rotate(180deg);
  align-self: center; justify-self: center;
  font-size: 9px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--on-s-3); white-space: nowrap;
}
.nc-chart-yaxis { grid-column: 2; grid-row: 1; position: relative; height: 170px; }
.nc-ytick {
  position: absolute; right: 0; transform: translateY(50%);
  font-size: 9px; font-weight: 600; color: var(--on-s-3);
  font-variant-numeric: tabular-nums;
}
.nc-chart-plotarea { grid-column: 3; grid-row: 1; position: relative; height: 170px; }
.nc-gridline {
  position: absolute; left: 0; right: 0; height: 1px;
  background: var(--line-soft); pointer-events: none;
}
.nc-gridline.baseline { background: var(--outline-v); }
.nc-chart-plot { position: relative; display: flex; align-items: flex-end; gap: 10px; height: 100%; }
.nc-bar-col { flex: 1; height: 100%; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.nc-bar-val {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; color: var(--on-s-2);
  font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none;
}
/* Cream = past months; amber gradient = current/highlight. */
.nc-bar { width: 100%; max-width: 44px; border-radius: 6px 6px 0 0; min-height: 4px; background: var(--surface-cont); transition: filter .15s; }
.nc-bar:hover { filter: brightness(.96); }
.nc-bar.current { background: linear-gradient(180deg, var(--amber), var(--amber-c)); }
.nc-chart-axis { grid-column: 3; grid-row: 2; display: flex; gap: 10px; margin-top: 6px; }
.nc-chart-axis .nc-bar-lbl { flex: 1; text-align: center; font-size: 10px; font-weight: 600; color: var(--on-s-3); }
.nc-chart-axis .nc-bar-lbl.current { color: var(--terra-c); font-weight: 700; }
.nc-chart-xtitle {
  grid-column: 3; grid-row: 3; text-align: center; margin-top: 4px;
  font-size: 9px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--on-s-3);
}
@media (prefers-reduced-motion: reduce) { .nc-bar { transition: none; } }
/* The wallet vault — the one intentionally dark surface. */
.nc-wallet-card { border-radius: 14px; padding: 22px; background: linear-gradient(135deg, #2B2319, #4A3410); }
.nc-wallet-label { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--coin); margin-bottom: 4px; }
.nc-wallet-val { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--coin); letter-spacing: -.02em; }
.nc-wallet-sub { font-size: 10px; color: rgba(255,249,236,.55); margin-bottom: 16px; }
@media (max-width: 980px) {
  .nc-dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .nc-dash-cols { grid-template-columns: 1fr; }
}

/* ── QUICK ACTIONS (dashboard rail) ─────────────────── */
.nc-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nc-qa {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 14px; border-radius: 12px; border: none; cursor: pointer;
  background: var(--surface-low); color: var(--on-surface);
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  text-align: left; transition: background .15s, transform .15s;
}
.nc-qa:hover { background: var(--surface-cont); transform: translateY(-1px); }
.nc-qa-icon { font-size: 20px; color: var(--terra); }
@media (prefers-reduced-motion: reduce) { .nc-qa { transition: background .15s; } .nc-qa:hover { transform: none; } }

/* KPI alias */
.nc-kpi-card { background: #fff; border-radius: 14px; border: none; padding: 20px; box-shadow: 0 1px 8px rgba(99,56,6,.06); }
.nc-kpi-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-s-3); margin-bottom: 6px; }
.nc-kpi-value { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--on-surface); line-height: 1.1; letter-spacing: -0.02em; }

/* ── PROPERTY CARDS ─────────────────────────────────── */
.nc-prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.nc-prop-card {
  background: #fff; border-radius: 14px; overflow: hidden; cursor: pointer;
  box-shadow: 0 1px 8px rgba(99,56,6,.06);
  transition: box-shadow .2s, transform .2s;
}
.nc-prop-card:hover {
  box-shadow: 0 8px 28px rgba(43,35,25,.13);
  transform: translateY(-2px);
}
.nc-prop-header {
  height: 88px; position: relative; overflow: hidden;
  /* Hodi property hero — dark-earth gradient, one consistent treatment. */
  background: linear-gradient(135deg, #2B2319, #5C3A20);
  display: flex; align-items: flex-end; padding: 10px 14px;
}
.nc-prop-header .msym-bg {
  position: absolute; bottom: 6px; right: 10px;
  font-size: 48px; color: rgba(255,249,236,.12);
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
  line-height: 1;
}
/* Legacy accent bar */
.nc-prop-accent { height: 5px; background: var(--amber); }
.nc-prop-accent.gold  { background: var(--coin); }
.nc-prop-accent.green { background: var(--forest); }
.nc-prop-body { padding: 14px; }
.nc-prop-name { font-size: 14px; font-weight: 800; color: var(--on-surface); margin-bottom: 2px; }
.nc-prop-address { font-size: 11px; color: var(--on-s-3); margin-bottom: 10px; }
.nc-prop-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; font-size: 11px; margin-bottom: 12px; }
.nc-prop-stat-label { color: var(--on-s-3); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.nc-prop-stat-val { font-weight: 700; color: var(--on-surface); font-size: 13px; }
.nc-prop-actions { display: flex; gap: 6px; }
.nc-prop-add {
  background: var(--surface-low); border: 2px dashed var(--outline-v);
  border-radius: 14px; min-height: 160px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all .2s;
}
.nc-prop-add:hover { border-color: var(--amber); background: var(--surface-cont); }
.nc-prop-add-inner { text-align: center; }
.nc-prop-add-icon { font-size: 28px; margin-bottom: 6px; color: var(--terra); }
.nc-prop-add-label { font-size: 12px; font-weight: 700; color: var(--terra); }

/* ── UNIT DETAIL: main table + vertical summary rail ── */
.nc-unit-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px; align-items: start;
}
.nc-unit-rail { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 980px) { .nc-unit-grid { grid-template-columns: 1fr; } }

/* ── COUNT TILES (units & tenants header row) ───────── */
.nc-count-tiles { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.nc-count-tile {
  background: #fff; border-radius: 10px; padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 1px 6px rgba(99,56,6,.06);
}
.nc-count-tile .val {
  font-family: var(--font-display); font-size: 20px; font-weight: 800;
  color: var(--on-surface); letter-spacing: -.02em;
}
.nc-count-tile .val.val-green { color: var(--forest); }
.nc-count-tile .val.val-amber { color: var(--amber-d); }
.nc-count-tile .val.val-red   { color: var(--red); }
.nc-count-tile .lbl { font-size: 11px; color: var(--on-s-3); }

/* ── TABLE ──────────────────────────────────────────── */
.nc-table-wrap {
  background: #fff; border-radius: 14px;
  box-shadow: 0 1px 8px rgba(99,56,6,.06);
  overflow: hidden;
}
.nc-pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 12px; flex-wrap: wrap;
}
.nc-pager-controls { display: flex; align-items: center; gap: 8px; }

/* ── COMMUNICATIONS ─────────────────────────────────── */
.nc-comms-grid {
  display: grid; grid-template-columns: minmax(0, 620px) minmax(260px, 340px);
  gap: 20px; align-items: start;
}
@media (max-width: 980px) { .nc-comms-grid { grid-template-columns: 1fr; } }
.nc-tpl-list { display: grid; gap: 4px; }
.nc-tpl-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
}
.nc-tpl-row:hover { background: var(--surface-low); }
.nc-tpl-info { flex: 1; min-width: 0; }
.nc-tpl-snippet { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-tpl-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nc-icon-btn {
  border: none; background: transparent; cursor: pointer;
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--on-s-2);
}
.nc-icon-btn:hover { background: var(--surface-cont); color: var(--terra-c); }
.nc-icon-btn.danger:hover { background: var(--red-bg); color: var(--red); }

/* ── BANK RECON IMPORT ──────────────────────────────── */
.nc-recon-grid { display: grid; grid-template-columns: 1fr 280px; }
@media (max-width: 860px) { .nc-recon-grid { grid-template-columns: 1fr; } }
.nc-recon-help {
  background: var(--surface-low); border-left: 1px solid var(--line);
  padding: 18px; font-size: 11px; color: var(--on-s-2);
}
@media (max-width: 860px) { .nc-recon-help { border-left: none; border-top: 1px solid var(--line); } }
.nc-recon-steps { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 8px; line-height: 1.5; }
.nc-recon-note { font-size: 10px; color: var(--on-s-3); line-height: 1.6; }
.nc-recon-result { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.nc-dropzone {
  position: relative; border: 1.5px dashed var(--outline-v); border-radius: 12px;
  padding: 22px 16px; text-align: center; background: var(--surface);
  transition: border-color .15s, background .15s; cursor: pointer;
}
.nc-dropzone:hover, .nc-dropzone:focus-within { border-color: var(--amber); background: var(--surface-low); }
.nc-dropzone.has-file { border-style: solid; border-color: var(--forest); background: var(--forest-xl); }
.nc-dropzone-input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.nc-dropzone-icon { font-size: 26px; color: var(--terra); display: block; margin-bottom: 6px; }
.nc-dropzone-icon.ok { color: var(--forest); }
.nc-dropzone-title { font-size: 12px; font-weight: 700; color: var(--on-surface); }
.nc-dropzone-hint { font-size: 10px; color: var(--on-s-3); margin-top: 3px; }
/* Design's table: headers ride the white card (no band) in honey caption
   type; every body row carries a soft parchment top border. */
.nc-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.nc-table th {
  text-align: left; padding: 10px 14px;
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--terra-c);
  white-space: nowrap;
}
.nc-table td {
  padding: 12px 14px; vertical-align: middle;
  color: var(--on-surface);
  border-top: 1px solid var(--line-soft);
}
.nc-table tr:last-child td  { border-bottom: none; }
.nc-table tbody tr:hover td { background: var(--surface-low); cursor: pointer; }
.nc-td-mono { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: var(--blue); }
.nc-td-sub  { font-size: 11px; color: var(--on-s-3); }
.nc-td-bold { font-weight: 700; }

/* ── CHIPS ──────────────────────────────────────────── */
.nc-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 800;
  padding: 3px 10px; border-radius: 99px; white-space: nowrap;
}
.nc-chip-green  { background: var(--forest-xl);        color: var(--forest); }
.nc-chip-amber  { background: var(--amber-bg);         color: var(--amber-d); }
.nc-chip-red    { background: var(--red-bg);           color: var(--red); }
.nc-chip-terra  { background: rgba(186,117,23,.12);    color: var(--terra); }
.nc-chip-gold   { background: rgba(250,199,117,.35);   color: var(--terra-c); }
.nc-chip-blue   { background: rgba(13,80,213,.1);      color: var(--blue); }
.nc-chip-sand   { background: var(--surface-high);     color: var(--on-s-var); }

/* ── FORM ───────────────────────────────────────────── */
.nc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.nc-form-row.full { grid-template-columns: 1fr; }
.nc-form-group { display: flex; flex-direction: column; gap: 4px; }
.nc-form-group.span2 { grid-column: span 2; }
.nc-form-label {
  font-size: 10px; font-weight: 700; color: var(--on-s-3);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.nc-form-input, .nc-form-select {
  background: var(--surface-low); border: none; border-radius: 10px;
  padding: 10px 13px; font-size: 13px; color: var(--on-surface);
  font-family: var(--font-body); width: 100%; transition: all .2s;
  outline: none;
}
.nc-form-input:focus, .nc-form-select:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(13,80,213,.2);
}
.nc-form-select {
  appearance: none; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%235A4E42' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  background-color: var(--surface-low);
}
.nc-form-textarea { resize: vertical; min-height: 72px; }
.nc-form-hint { font-size: 10px; color: var(--on-s-3); margin-top: 2px; }

/* ── CARD ───────────────────────────────────────────── */
.nc-card {
  background: #fff; border-radius: 14px;
  box-shadow: 0 1px 8px rgba(99,56,6,.06);
  overflow: hidden;
}
.nc-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.nc-card-title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 800; color: var(--on-surface);
  letter-spacing: -0.01em;
}
.nc-card-body { padding: 16px 18px; }

/* ── STATUS TABS ────────────────────────────────────── */
.nc-status-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.nc-status-tab {
  padding: 7px 16px; border-radius: 99px;
  font-size: 11px; font-weight: 700; cursor: pointer; border: none;
  font-family: var(--font-body); transition: all .15s;
}

/* ── INFO / ALERT BOX ───────────────────────────────── */
.nc-info-box {
  border-radius: 12px; padding: 12px 16px;
  /* Colour carried by the background tint, not a side-stripe. */
  background: var(--amber-bg);
  font-size: 12px; color: var(--on-surface);
  line-height: 1.5; margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px;
}
.nc-info-box.success { background: var(--forest-xl); }
.nc-info-box.error   { background: var(--red-bg); }

/* ── DETAIL ROW ─────────────────────────────────────── */
.nc-detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.nc-detail-row:last-child { border-bottom: none; }
.nc-detail-row span:first-child {
  color: var(--on-s-3); font-size: 10px;
  text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
}

/* ── FEE PREVIEW ────────────────────────────────────── */
.nc-fee-preview {
  background: var(--surface-low); border-radius: 12px;
  padding: 14px; margin-bottom: 14px;
}
.nc-fee-preview-title { font-size: 10px; font-weight: 700; color: var(--on-s-var); margin-bottom: 8px; }
.nc-fee-preview-row   { display: flex; gap: 20px; font-size: 12px; }
.nc-fee-preview-label { color: var(--on-s-3); margin-bottom: 2px; font-size: 10px; }
.nc-fee-preview-val   { font-weight: 700; font-family: 'JetBrains Mono', monospace; }

/* ── MODE TABS ──────────────────────────────────────── */
.nc-mode-tab        { background: var(--surface-high); color: var(--on-s-var); transition: all .15s; }
.nc-mode-tab-active { background: var(--amber); color: var(--ink); }
.nc-mode-tab:hover:not(.nc-mode-tab-active) { background: var(--surface-highest); }

/* ── UPLOAD ZONES ───────────────────────────────────── */
.nc-upload-zone {
  border: 1.5px dashed var(--outline-v); background: var(--surface-low);
  border-radius: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  color: var(--terra-c); font-size: 10px; font-weight: 700;
  cursor: pointer; padding: 10px;
}
.nc-upload-done {
  border: 1.5px solid var(--forest); background: var(--forest-xl);
  border-radius: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  color: var(--forest); font-size: 10px; font-weight: 700;
  cursor: pointer; padding: 10px;
}

/* ── UTILITY ────────────────────────────────────────── */
.nc-flex { display: flex; align-items: center; }
.nc-flex-between { display: flex; align-items: center; justify-content: space-between; }
.nc-gap-4 { gap: 4px; } .nc-gap-6 { gap: 6px; } .nc-gap-8 { gap: 8px; } .nc-gap-12 { gap: 12px; }
.nc-mb-4 { margin-bottom: 4px; } .nc-mb-8 { margin-bottom: 8px; }
.nc-mb-12 { margin-bottom: 12px; } .nc-mb-16 { margin-bottom: 16px; } .nc-mb-20 { margin-bottom: 20px; }
.nc-mt-4 { margin-top: 4px; } .nc-mt-8 { margin-top: 8px; }
.nc-fw-600 { font-weight: 600; } .nc-fw-700 { font-weight: 700; }
.nc-text-1 { color: var(--on-surface); } .nc-text-2 { color: var(--on-s-var); } .nc-text-3 { color: var(--on-s-3); }
.nc-terra  { color: var(--terra); } .nc-forest { color: var(--forest); }
.nc-red    { color: var(--red); }   .nc-gold   { color: var(--terra-c); }
.nc-fs-9 { font-size: 9px; } .nc-fs-10 { font-size: 10px; } .nc-fs-11 { font-size: 11px; } .nc-fs-12 { font-size: 12px; } .nc-fs-13 { font-size: 13px; }
.nc-mb-6 { margin-bottom: 6px; }
.nc-mono { font-family: 'JetBrains Mono', monospace; }
.nc-w-full { width: 100%; }
/* Legacy name — now the Hodi display face. */
.nc-serif { font-family: var(--font-display); }

/* Section label (admin / review panels) */
.nc-sec-lbl {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--on-s-3);
}

/* Highlighted row in queue tables */
.nc-row-active { background: var(--surface-cont) !important; }
.nc-row-active td { border-bottom-color: var(--coin) !important; }

/* ── AUTH SPLIT (login) ─────────────────────────────────
   The design system's "Login — web": ink-gradient brand panel
   ("The knock, answered.") beside the form on the surface. */
.nc-auth-split {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface);
}
.nc-auth-brandpanel {
  background: linear-gradient(135deg, #2B2319, #4A3410);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 48px;
}
.nc-auth-glow {
  position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(239,159,39,.14); pointer-events: none;
}
.nc-auth-brandpanel .nc-logo-mark { width: 64px; height: 64px; margin-bottom: 18px; }
.nc-auth-punch {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800; line-height: 1.3;
  letter-spacing: -.02em; color: #FFF9EC;
}
.nc-auth-punch-sub {
  font-size: 13px; color: rgba(255,249,236,.55);
  margin-top: 8px; line-height: 1.6; max-width: 340px;
}
.nc-auth-formpanel {
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px;
}
.nc-auth-form { width: 100%; max-width: 340px; }
.nc-auth-form-logo { display: none; align-items: center; gap: 10px; margin-bottom: 24px; }
.nc-auth-form-logo .nc-logo-mark { width: 34px; height: 34px; }
.nc-auth-form-logo span {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  letter-spacing: -.02em; color: var(--on-surface);
}
.nc-auth-form-logo span span { color: var(--amber); }
@media (max-width: 860px) {
  .nc-auth-split { grid-template-columns: 1fr; }
  .nc-auth-brandpanel { display: none; }
  .nc-auth-formpanel { padding: 32px 24px; align-items: center; }
  .nc-auth-form-logo { display: flex; }
}

/* ── AUTH / ONBOARDING ──────────────────────────────── */
.nc-auth-shell {
  min-height: 100vh; background: var(--surface-dim);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.nc-auth-card {
  background: #fff; border-radius: 20px;
  padding: 40px 36px; width: 100%; max-width: 420px;
  box-shadow: 0 8px 32px rgba(43,35,25,.08);
}
.nc-auth-logo {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 800;
  margin-bottom: 2px; letter-spacing: -0.02em;
  color: var(--on-surface);
  display: flex; align-items: center; gap: 10px;
}
.nc-auth-logo span span { color: var(--amber); }
.nc-auth-logo .nc-logo-mark { width: 34px; height: 34px; }
.nc-auth-sub { font-size: 12px; color: var(--on-s-3); margin-bottom: 28px; }
.nc-auth-heading {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800;
  color: var(--on-surface); margin: 0 0 16px; letter-spacing: -0.01em;
}
.nc-role-card {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--surface-low); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 14px 16px; cursor: pointer;
  text-align: left; transition: border-color .15s, background .15s;
  font-family: var(--font-body);
}
.nc-role-card:hover:not(:disabled) { border-color: var(--amber); background: #fff; }
.nc-role-card:disabled { opacity: .5; cursor: not-allowed; }
.nc-role-icon { font-size: 22px; flex-shrink: 0; }

/* ── SKELETON LOADING ───────────────────────────────────
   Content loads as its own silhouette on the parchment tint —
   never a spinner in the middle of the page. */
.nc-skel {
  position: relative; overflow: hidden;
  background: var(--surface-high); border-radius: 8px;
}
.nc-skel::after {
  content: ""; position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  animation: nc-shimmer 1.4s ease-out infinite;
}
@keyframes nc-shimmer { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .nc-skel::after { animation: none; } }
.nc-skel-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-top: 1px solid var(--line-soft);
}

/* ── TOASTS (Mud snackbar → Hodi containers) ─────────────
   Semantic container tint + deep tone text, warm shadow —
   the same voice as chips and info boxes, never Material fills. */
.mud-snackbar {
  border-radius: 12px !important;
  font-family: var(--font-body) !important;
  font-size: 12.5px; font-weight: 700;
  box-shadow: 0 6px 24px rgba(43,35,25,.16) !important;
  padding: 10px 16px;
}
.mud-snackbar.mud-alert-filled-success {
  background: var(--forest-xl) !important; color: var(--forest) !important;
}
.mud-snackbar.mud-alert-filled-error {
  background: var(--red-bg) !important; color: var(--red) !important;
}
.mud-snackbar.mud-alert-filled-warning {
  background: var(--amber-bg) !important; color: var(--amber-d) !important;
}
.mud-snackbar.mud-alert-filled-info,
.mud-snackbar.mud-alert-filled-normal {
  background: var(--surface-low) !important; color: var(--on-surface) !important;
}
.mud-snackbar .mud-snackbar-icon svg { fill: currentColor; }
.mud-snackbar .mud-button-root { color: currentColor !important; font-weight: 800; }

/* ── MUD OVERRIDES ──────────────────────────────────── */
.mud-dialog { border-radius: 16px !important; font-family: var(--font-body) !important; }
.mud-dialog-title {
  font-family: var(--font-display) !important; font-weight: 800 !important;
  font-size: 17px !important; color: var(--on-surface) !important;
  border-bottom: 1px solid var(--line); padding: 18px 22px !important;
}
.mud-dialog-content { padding: 20px !important; }
.mud-dialog-actions {
  padding: 12px 22px !important;
  border-top: 1px solid var(--line);
  gap: 8px; display: flex; justify-content: flex-end;
}
.mud-dialog .nc-form-group { margin-bottom: 14px; }
.mud-dialog .nc-form-row   { gap: 12px; }

/* ── BLAZOR INFRA ───────────────────────────────────── */
/* Unhandled-exception notice — a Hodi toast (red container, deep-red text),
   floated bottom-center, not a full-width system bar. */
#blazor-error-ui {
  display: none; position: fixed; z-index: 1000;
  left: 50%; bottom: 20px; transform: translateX(-50%);
  max-width: 480px; width: calc(100% - 40px);
  background: var(--red-bg); color: var(--red);
  border-radius: 12px; padding: 12px 44px 12px 16px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700;
  line-height: 1.5;
  box-shadow: 0 6px 24px rgba(43,35,25,.16);
}
#blazor-error-ui .reload {
  color: var(--red); font-weight: 800; text-decoration: underline; margin-left: 6px;
}
#blazor-error-ui .dismiss {
  cursor: pointer; position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%); font-weight: 800; opacity: .7;
}
#blazor-error-ui .dismiss:hover { opacity: 1; }

.loading-progress { position: relative; display: block; width: 8rem; height: 8rem; margin: 20vh auto 1rem; }
.loading-progress circle { fill: none; stroke: #F3E9D8; stroke-width: .6rem; transform-origin: 50% 50%; transform: rotate(-90deg); }
.loading-progress circle:last-child { stroke: var(--amber); stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * .8), 500%; transition: stroke-dasharray .05s ease-in-out; }
.loading-progress-text { position: absolute; text-align: center; font-weight: bold; inset: calc(20vh + 3.25rem) 0 auto .2rem; }
.loading-progress-text:after { content: var(--blazor-load-percentage-text, "Loading"); }
