.watermark {
    display: none !important;
  }

#readme-button {
  display: none;
}

/* Hide favicon in the login page */
/* 
img[src*="favicon"] {
  display: none !important;
}  */


/* Hide right empty pane in the login page */
div.relative.hidden.bg-muted.lg\:block {
  display: none !important;
}

/* Center login form when right pane is hidden */
.grid.min-h-svh {
  display: flex !important;
  justify-content: center !important;
}

.grid.min-h-svh > .flex.flex-col {
  width: 100% !important;
  max-width: 480px !important;
  align-items: center !important;
}

/* Login title styling */
.grid.min-h-svh h1.text-2xl {
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  color: #64748b !important;
  letter-spacing: 0.02em !important;
}

/* Login button styling */
.grid.min-h-svh form button {
  border-radius: 8px !important;
  font-weight: 500 !important;
  transition: box-shadow 0.2s ease !important;
}

.grid.min-h-svh form button:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.version-footer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 4px;
  z-index: 20;
  background: transparent;
  border: none;
  pointer-events: none;
}

.version-footer-text {
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #b7bfcb;
}

.version-label {
  color: #adb6c2;
}

.version-divider {
  display: inline-block;
  width: 1px;
  height: 11px;
  margin: 0 10px -1px;
  background-color: #d9dfe7;
}

@media (max-width: 640px) {
  .version-footer-text {
    font-size: 11px;
  }
}

/* ===== Single-record profile cards (rendered as HTML by the orchestrator) ===== */
.profile-card {
  background: #ffffff;
  border: 1px solid #ececf1;
  border-radius: 14px;
  padding: 20px 26px 24px;
  margin: 12px 0;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.profile-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1c2433;
  margin: 4px 0 18px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
}
.profile-item {
  min-width: 0;
}
.profile-label {
  color: #8b93a7;
  font-size: 0.82rem;
  line-height: 1.2;
  margin-bottom: 3px;
}
.profile-value {
  color: #1c2433;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  word-break: break-word;
}
.profile-value a { color: #2563eb; text-decoration: none; }
@media (max-width: 640px) {
  .profile-grid { grid-template-columns: 1fr; gap: 14px; }
}
/* Dark theme */
html.dark .profile-card,
.dark .profile-card {
  background: #1f2230;
  border-color: #333748;
  box-shadow: none;
}
html.dark .profile-card-title,
.dark .profile-card-title,
html.dark .profile-value,
.dark .profile-value { color: #e8eaf0; }
html.dark .profile-label,
.dark .profile-label { color: #9aa2b5; }

/* ===== Nova landing (home) screen ===== */
.nova-home {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0 16px;
  color: var(--foreground, #1a1a1f);
}
.nova-orb {
  display: block;
  width: 120px;
  height: 120px;
  margin: 30px auto 22px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 60px rgba(127, 119, 221, 0.18);
}
.nova-title {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}
.nova-sub {
  font-size: 14px;
  color: #6b6b73;
  text-align: center;
  margin-top: 4px;
}
.nova-seclbl {
  font-size: 11.5px;
  color: #9a9aa2;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 26px 0 11px;
}
.nova-seclbl-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nova-pill {
  font-size: 11.5px;
  text-transform: none;
  letter-spacing: 0;
  padding: 3px 9px;
  border-radius: 8px;
  background: #fbf0dc;
  color: #ba7517;
}
.nova-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 11px;
}
.nova-qa {
  text-align: left;
  background: #ffffff;
  border: 1px solid #ececef;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.nova-qa:hover {
  border-color: #3b82c4;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.05);
}
/* "Coming soon" quick actions: dimmed, non-interactive, slanted corner ribbon */
.nova-qa.is-soon { opacity: 0.6; cursor: default; }
.nova-qa.is-soon:hover { border-color: #ececef; transform: none; box-shadow: none; }
.nova-qa-soon {
  position: absolute; top: 10px; right: -30px; transform: rotate(45deg);
  background: #fdf3e3; color: #b3791b;
  font-size: 9px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  padding: 2px 34px; line-height: 1.4; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.10);
}
html.dark .nova-qa.is-soon:hover, .dark .nova-qa.is-soon:hover { border-color: #26262c; }
html.dark .nova-qa-soon, .dark .nova-qa-soon { background: #3a2f1a; color: #e3b35e; }
.nova-qa-ico { width: 23px; height: 23px; color: #3b82c4; }
.nova-qa-title { font-size: 14px; font-weight: 500; }
.nova-qa-sub { font-size: 12px; color: #6b6b73; line-height: 1.4; }
.nova-queue { display: flex; flex-direction: column; gap: 8px; }
.nova-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid #ececef;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nova-item:hover { border-color: #e0e0e4; background: #fafafa; }
.nova-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nova-ico-danger { background: #fbeae8; color: #c0392b; }
.nova-ico-warning { background: #fbf0dc; color: #ba7517; }
.nova-ico-success { background: #e4f5ee; color: #1d9e75; }
.nova-item-text { min-width: 0; flex: 1; }
.nova-item-title { display: block; font-size: 13.5px; font-weight: 500; }
.nova-item-sub { display: block; font-size: 12px; color: #6b6b73; }
.nova-item-chev { width: 18px; height: 18px; margin-left: auto; color: #9a9aa2; flex-shrink: 0; }

/* Always-on entitlement chip injected into the top bar */
.nova-scope-chip {
  position: fixed;
  top: 11px;
  right: 64px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid #ececef;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #6b6b73;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  pointer-events: none;
}
.nova-scope-chip svg { width: 14px; height: 14px; color: #3b82c4; }
.nova-scope-chip b { color: #1a1a1f; font-weight: 600; }

/* Dark theme */
html.dark .nova-title, .dark .nova-title { color: #f4f4f6; }
html.dark .nova-sub, .dark .nova-sub,
html.dark .nova-qa-sub, .dark .nova-qa-sub,
html.dark .nova-item-sub, .dark .nova-item-sub { color: #a2a2ac; }
html.dark .nova-qa, .dark .nova-qa,
html.dark .nova-item, .dark .nova-item { background: #17171c; border-color: #26262c; }
html.dark .nova-qa:hover, .dark .nova-qa:hover { border-color: #3b82c4; }
html.dark .nova-item:hover, .dark .nova-item:hover { background: #1c1c22; border-color: #32323a; }
html.dark .nova-item-title, .dark .nova-item-title { color: #f4f4f6; }
html.dark .nova-scope-chip, .dark .nova-scope-chip { background: #17171c; border-color: #26262c; color: #a2a2ac; }
html.dark .nova-scope-chip b, .dark .nova-scope-chip b { color: #f4f4f6; }

/* ===== "Nova is working" animated indicator ===== */
.nova-thinking { display: inline-flex; gap: 5px; align-items: center; height: 1.1em; vertical-align: middle; }
.nova-thinking > span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #8b93a7; display: inline-block;
  animation: nova-bounce 1.2s infinite ease-in-out both;
}
.nova-thinking > span:nth-child(1) { animation-delay: -0.24s; }
.nova-thinking > span:nth-child(2) { animation-delay: -0.12s; }
@keyframes nova-bounce {
  0%, 80%, 100% { transform: scale(0.5); opacity: 0.35; }
  40% { transform: scale(1); opacity: 1; }
}

/* ===== Nova flow cards (Client lookup, etc.) ===== */
.nova-card {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #ececef;
  border-radius: 12px;
  overflow: hidden;
}
.nova-card-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid #ececef;
  background: #fafafa;
}
.nova-card-hd-title { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; }
.nova-card-hd-note { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #6b6b73; }
.nova-ok { color: #1d9e75; }
.nova-muted { color: #9a9aa2; }
.nova-card-body { padding: 18px; }
.nova-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e0e0e4;
  border-radius: 10px;
  padding: 12px 14px;
}
.nova-search-input { flex: 1; border: none; outline: none; background: none; font-size: 15px; color: inherit; font-family: inherit; }
.nova-search-input::placeholder { color: #9a9aa2; }
.nova-search-hint { font-size: 12px; color: #9a9aa2; white-space: nowrap; }
.nova-recent { display: flex; flex-direction: column; }
.nova-recent-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 4px; background: none; border: none; cursor: pointer; border-radius: 8px; }
.nova-recent-row:hover { background: #fafafa; }
.nova-recent-name { font-size: 14px; font-weight: 500; }
.nova-recent-when { margin-left: auto; font-size: 12px; color: #9a9aa2; }
.nova-note { margin-top: 16px; padding: 12px 14px; background: #fafafa; border-radius: 8px; display: flex; gap: 10px; font-size: 12.5px; color: #6b6b73; line-height: 1.5; }
/* Rep-code badge (client detail header) */
.nova-rep-badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  background: #e4f5ee; color: #1d9e75; font-size: 12px; font-weight: 500;
  padding: 5px 11px; border-radius: 8px;
}
/* Identity row */
.nova-detail-id { display: flex; align-items: center; gap: 14px; }
.nova-avatar-lg {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: #eaf2fb; color: #3b82c4; font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.nova-detail-id-text { min-width: 0; flex: 1; }
.nova-detail-name { font-size: 18px; font-weight: 600; line-height: 1.2; }
.nova-detail-contact { font-size: 12.5px; color: #6b6b73; margin-top: 3px; word-break: break-word; }
.nova-status {
  margin-left: auto; flex-shrink: 0; font-size: 12px; font-weight: 500;
  padding: 4px 11px; border-radius: 999px; background: #ececef; color: #6b6b73;
}
.nova-status-ok { background: #e4f5ee; color: #1d9e75; }
/* Stat tiles */
.nova-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.nova-stat { background: #fafafa; border-radius: 8px; padding: 12px 14px; }
.nova-stat-l { font-size: 12px; color: #6b6b73; }
.nova-stat-v { font-size: 20px; font-weight: 600; margin-top: 2px; }
.nova-warn { color: #ba7517; }
/* Detail action buttons */
.nova-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.nova-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: 13px; padding: 9px 14px; border-radius: 8px;
  border: 1px solid #e0e0e4; background: #fff; color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nova-btn:hover { background: #fafafa; border-color: #c9c9d1; }
/* Follow-up suggestion pills */
.nova-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; }
.nova-suggestion {
  font-size: 13px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid #d7e3f2; background: #f3f8ff; color: #2563eb;
  transition: background 0.15s ease;
}
.nova-suggestion:hover { background: #e7f0ff; }
/* Multiple-match results */
.nova-results { display: flex; flex-direction: column; gap: 6px; }
.nova-result-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px 12px; border: 1px solid #ececef; border-radius: 10px; background: #fff; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nova-result-row:hover { border-color: #c9c9d1; background: #fafafa; }
.nova-avatar-sm {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: #eaf2fb; color: #3b82c4; font-weight: 600; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.nova-result-text { min-width: 0; flex: 1; }
.nova-result-name { display: block; font-size: 14px; font-weight: 500; }
.nova-result-sub { display: block; font-size: 12px; color: #6b6b73; }

/* Ask-a-procedure screen */
.nova-ask-btn {
  width: 100%; margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #3b82c4; color: #fff; border: none; border-radius: 10px; padding: 12px 16px;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: filter 0.15s ease;
}
.nova-ask-btn:hover { filter: brightness(0.95); }
.nova-proc-list { display: flex; flex-direction: column; gap: 8px; }
.nova-proc-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 13px 14px; border: 1px solid #ececef; border-radius: 10px; background: #fff; cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.nova-proc-row:hover { border-color: #3b82c4; box-shadow: 0 2px 10px rgba(16,24,40,0.05); }
.nova-proc-icon { width: 20px; height: 20px; color: #3b82c4; flex-shrink: 0; }
.nova-proc-text { min-width: 0; flex: 1; }
.nova-proc-title { display: block; font-size: 14px; font-weight: 500; }
.nova-proc-meta { display: block; font-size: 12px; color: #9a9aa2; margin-top: 1px; }
.nova-cert-badge {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
  background: #e4f5ee; color: #1d9e75; font-size: 11.5px; font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
}
.nova-proc-cites { display: flex; flex-wrap: wrap; gap: 8px; }

/* Provenance markers (trust layer). Retrieved fact = solid; AI-generated = dashed/amber, distinct. */
.nova-prov {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  border: 1px solid transparent; letter-spacing: .2px;
}
.nova-prov-footer { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

/* Virtual Assistant intake + tracker */
.nova-va-grid { display: flex; flex-direction: column; gap: 10px; }
.nova-va-choice { text-align: left; background: #fff; border: 1px solid #ececef; border-radius: 10px;
  padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 3px;
  transition: border-color .15s, background .15s; }
.nova-va-choice:hover { border-color: #3b82c4; }
.nova-va-choice-label { font-weight: 600; font-size: 14px; }
.nova-va-choice-sub { font-size: 12px; color: #6b6b73; }
.nova-va-sel { border-color: #3b82c4 !important; background: #eef4fb; }
.nova-va-track { display: flex; flex-direction: column; gap: 1px; margin-top: 14px; }
.nova-va-trow { display: flex; align-items: center; gap: 10px; padding: 7px 4px; opacity: .5; }
.nova-va-trow.nova-va-done { opacity: .85; }
.nova-va-trow.nova-va-on { opacity: 1; }
.nova-va-dot { width: 22px; height: 22px; border-radius: 999px; border: 1.5px solid #d4d4d8;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #6b6b73; flex-shrink: 0; }
.nova-va-trow.nova-va-done .nova-va-dot { background: #e4f5ee; border-color: #1d9e75; color: #1d9e75; }
.nova-va-trow.nova-va-on .nova-va-dot { background: #3b82c4; border-color: #3b82c4; color: #fff; }
.nova-va-stage { flex: 1; font-size: 13.5px; }
.nova-va-trow.nova-va-on .nova-va-stage { font-weight: 600; }
html.dark .nova-va-choice, .dark .nova-va-choice { background: #17171c; border-color: #26262c; }
html.dark .nova-va-sel, .dark .nova-va-sel { background: #14243a; }

/* Wide data tables scroll horizontally instead of clipping */
.nova-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; padding-bottom: 4px; }
.nova-dtable { min-width: max-content; }
.nova-dtable th, .nova-dtable td { white-space: nowrap; }

/* Accessibility: screen-reader-only text + visible keyboard focus on interactive block controls */
.nova-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nova-btn:focus-visible, .nova-ask-btn:focus-visible, .nova-suggestion:focus-visible,
.nova-card-hd.nova-clickable:focus-visible, .nova-match-table button:focus-visible,
.nova-input:focus-visible, select.nova-input:focus-visible {
  outline: 2px solid #3b82c4; outline-offset: 2px; border-radius: 6px;
}

/* Collapsible block cards (conversation hygiene) — prior blocks collapse to their header */
.nova-card-hd.nova-clickable { cursor: pointer; }
.nova-card-hd.nova-clickable:hover { background: #f7f7f9; }
html.dark .nova-card-hd.nova-clickable:hover, .dark .nova-card-hd.nova-clickable:hover { background: #15151b; }
.nova-card.nova-collapsed .nova-card-body { display: none; }
.nova-card.nova-collapsed > .nova-card-hd { border-bottom: none; }
.nova-hd-chev2 { margin-left: 8px; opacity: .45; font-size: 13px; line-height: 1; transition: transform .15s ease; flex-shrink: 0; }
.nova-card.nova-collapsed .nova-hd-chev2 { transform: rotate(-90deg); }

/* Density / responsive — same blocks, denser on narrow screens */
@media (max-width: 640px) {
  .nova-card-body { padding: 10px 12px; }
  .nova-match-table th, .nova-match-table td { padding: 6px 8px; font-size: 12.5px; }
  .nova-rcpt-row { font-size: 13px; }
  .nova-stat-row { gap: 6px; }
}

/* Loading skeleton (shape-matching, not a spinner) */
.nova-skel { display: block; border-radius: 6px;
  background: linear-gradient(90deg, #ececef 25%, #f6f6f8 37%, #ececef 63%);
  background-size: 400% 100%; animation: nova-shimmer 1.3s ease infinite; }
.nova-skel-line { height: 11px; margin: 8px 0; }
@keyframes nova-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
html.dark .nova-skel, .dark .nova-skel {
  background: linear-gradient(90deg, #24242b 25%, #2e2e36 37%, #24242b 63%); background-size: 400% 100%; }
.nova-prov-live { background: #e4f5ee; color: #1d9e75; }
.nova-prov-cert { background: #e4f5ee; color: #1d9e75; }
.nova-prov-snap { background: #eef0f3; color: #6b6b73; }
.nova-prov-ai   { background: #fdf3e3; color: #b3791b; border-style: dashed; border-color: #e7be7a; }
html.dark .nova-prov-live, .dark .nova-prov-live { background: #14352a; color: #4fd1a3; }
html.dark .nova-prov-cert, .dark .nova-prov-cert { background: #14352a; color: #4fd1a3; }
html.dark .nova-prov-snap, .dark .nova-prov-snap { background: #24242b; color: #a8a8b0; }
html.dark .nova-prov-ai,   .dark .nova-prov-ai   { background: #3a2f1a; color: #e3b35e; border-color: #6b5320; }

html.dark .nova-proc-row, .dark .nova-proc-row { background: #17171c; border-color: #26262c; }
html.dark .nova-proc-row:hover, .dark .nova-proc-row:hover { border-color: #3b82c4; }
html.dark .nova-proc-title, .dark .nova-proc-title { color: #f4f4f6; }

/* Collapsible action-card header */
.nova-hd-toggle { cursor: pointer; user-select: none; }
.nova-hd-toggle:hover { background: #f2f2f4; }
html.dark .nova-hd-toggle:hover, .dark .nova-hd-toggle:hover { background: #14141a; }
.nova-hd-chev {
  width: 18px; height: 18px; margin-left: 10px; flex-shrink: 0; color: #9a9aa2;
  transition: transform 0.18s ease;
}
.nova-hd-chev.nova-collapsed { transform: rotate(-90deg); }

/* Address-change wizard */
.nova-wiz-progress { display: flex; align-items: center; max-width: 720px; margin: 0 auto 14px; padding: 4px 0; }
.nova-wstep { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.nova-wnum { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; background: #fff; border: 1.5px solid #e0e0e4; color: #9a9aa2; }
.nova-wlabel { font-size: 11.5px; color: #9a9aa2; white-space: nowrap; }
.nova-wstep.nova-wactive .nova-wnum { border-color: #3b82c4; color: #3b82c4; background: #eaf2fb; }
.nova-wstep.nova-wactive .nova-wlabel { color: #3b82c4; font-weight: 500; }
.nova-wstep.nova-wdone .nova-wnum { background: #1d9e75; border-color: #1d9e75; color: #fff; }
.nova-wstep.nova-wdone .nova-wlabel { color: #1d9e75; }
.nova-wline { flex: 1; height: 2px; background: #e0e0e4; margin: 0 6px; margin-bottom: 20px; }
.nova-wline.nova-wdone { background: #1d9e75; }
.nova-addr-l1 { font-size: 16px; }
.nova-addr-l2 { font-size: 16px; color: #6b6b73; }
.nova-diff { display: flex; align-items: stretch; gap: 14px; margin-bottom: 14px; }
.nova-diff-old, .nova-diff-new { flex: 1; border-radius: 10px; padding: 14px 16px; font-size: 14px; }
.nova-diff-old { background: #fafafa; color: #6b6b73; }
.nova-diff-new { background: #e4f5ee; color: #1a1a1f; }
.nova-diff-h { font-size: 11px; letter-spacing: 0.5px; color: #9a9aa2; margin-bottom: 6px; }
.nova-diff-new .nova-diff-h { color: #1d9e75; }
.nova-diff-arrow { display: flex; align-items: center; color: #9a9aa2; font-size: 18px; }
.nova-check { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 2px; border-bottom: 1px solid #f2f2f4; font-size: 14px; }
.nova-check:last-of-type { border-bottom: none; }
.nova-wiz-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.nova-fld-label { display: block; font-size: 12px; color: #6b6b73; margin-bottom: 4px; }
.nova-done-check { width: 52px; height: 52px; border-radius: 50%; background: #e4f5ee; color: #1d9e75;
  font-size: 27px; display: flex; align-items: center; justify-content: center; margin: 8px auto 12px; }
.nova-done-title { font-size: 18px; font-weight: 600; }
.nova-rcpt-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; font-size: 14px; }
.nova-rcpt-k { color: #6b6b73; }
.nova-rcpt-v { font-weight: 500; text-align: right; }
html.dark .nova-wnum, .dark .nova-wnum { background: #17171c; border-color: #32323a; }
html.dark .nova-diff-old, .dark .nova-diff-old { background: #1c1c22; }
html.dark .nova-addr-l1, .dark .nova-addr-l1, html.dark .nova-done-title, .dark .nova-done-title,
html.dark .nova-rcpt-v, .dark .nova-rcpt-v { color: #f4f4f6; }

/* Address match picker table */
.nova-match-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.nova-match-table th { text-align: left; font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase;
  color: #9a9aa2; font-weight: 600; padding: 6px 10px; border-bottom: 1px solid #ececef; }
.nova-match-table td { padding: 9px 10px; border-bottom: 1px solid #f4f4f6; vertical-align: middle; }
.nova-match-table tbody tr:last-child td { border-bottom: none; }
.nova-match-table tbody tr:hover td { background: #f7f9fc; }
.nova-mt-id { color: #6b6b73; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nova-mt-name { font-weight: 600; }
html.dark .nova-match-table th, .dark .nova-match-table th { border-color: #32323a; }
html.dark .nova-match-table td, .dark .nova-match-table td { border-color: #26262c; }
html.dark .nova-match-table tbody tr:hover td, .dark .nova-match-table tbody tr:hover td { background: #1c1c22; }

/* SOP Admin form */
.nova-upload-btn {
  width: 100%; margin-bottom: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px dashed #b9c6d6; border-radius: 10px; padding: 12px 16px; background: #f3f8ff;
  font-size: 13.5px; font-weight: 500; color: #2563eb; cursor: pointer; transition: background 0.15s ease;
}
.nova-upload-btn:hover { background: #e7f0ff; }
.nova-upload-btn:disabled { opacity: 0.7; cursor: default; }
html.dark .nova-upload-btn, .dark .nova-upload-btn { background: #16263a; border-color: #1f3a5a; color: #6fb3f0; }
.nova-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.nova-input {
  width: 100%; border: 1px solid #e0e0e4; border-radius: 8px; padding: 10px 12px;
  font-size: 13.5px; color: inherit; background: #fff; font-family: inherit; outline: none;
}
.nova-input:focus { border-color: #3b82c4; }
.nova-textarea {
  width: 100%; border: 1px solid #e0e0e4; border-radius: 8px; padding: 10px 12px;
  font-size: 13.5px; color: inherit; background: #fff; font-family: inherit; outline: none; resize: vertical;
}
.nova-textarea:focus { border-color: #3b82c4; }
.nova-form-row { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.nova-select { width: 160px; flex-shrink: 0; }
.nova-save-btn { width: auto; flex: 1; margin-top: 0; }
.nova-sop-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border: 1px solid #ececef; border-radius: 10px; background: #fff;
}
.nova-sop-actions { display: flex; gap: 6px; flex-shrink: 0; }
.nova-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: 1px solid #e0e0e4; border-radius: 8px; background: #fff; color: #6b6b73; cursor: pointer;
}
.nova-icon-btn:hover { background: #fafafa; color: #1a1a1f; }
.nova-icon-danger:hover { color: #c0392b; border-color: #f3c6c1; }
.nova-badge-muted { background: #ececef !important; color: #6b6b73 !important; }
@media (max-width: 640px) { .nova-form-grid { grid-template-columns: 1fr; } }
html.dark .nova-input, .dark .nova-input,
html.dark .nova-textarea, .dark .nova-textarea,
html.dark .nova-sop-row, .dark .nova-sop-row,
html.dark .nova-icon-btn, .dark .nova-icon-btn { background: #17171c; border-color: #32323a; }

/* Multiple-match grid table */
.nova-grid-table { display: flex; flex-direction: column; font-size: 13px; }
.nova-gt-head, .nova-gt-row {
  display: grid; grid-template-columns: 64px 1.2fr 1.6fr 1fr; gap: 10px;
  padding: 9px 8px; align-items: center;
}
.nova-gt-head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #9a9aa2; border-bottom: 1px solid #ececef; }
.nova-gt-row { border-bottom: 1px solid #f2f2f4; }
.nova-gt-row:last-child { border-bottom: none; }
.nova-gt-id { color: #6b6b73; font-variant-numeric: tabular-nums; }
.nova-gt-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nova-gt-hint { margin-top: 10px; font-size: 12px; color: #9a9aa2; }
html.dark .nova-gt-head, .dark .nova-gt-head { border-color: #26262c; }
html.dark .nova-gt-row, .dark .nova-gt-row { border-color: #222228; }

/* Dark theme */
html.dark .nova-card, .dark .nova-card { background: #17171c; border-color: #26262c; }
html.dark .nova-card-hd, .dark .nova-card-hd { background: #0e0e12; border-color: #26262c; }
html.dark .nova-search-box, .dark .nova-search-box { border-color: #32323a; }
html.dark .nova-recent-row:hover, .dark .nova-recent-row:hover,
html.dark .nova-note, .dark .nova-note,
html.dark .nova-stat, .dark .nova-stat { background: #1c1c22; }
html.dark .nova-detail-name, .dark .nova-detail-name,
html.dark .nova-stat-v, .dark .nova-stat-v,
html.dark .nova-result-name, .dark .nova-result-name { color: #f4f4f6; }
html.dark .nova-detail-contact, .dark .nova-detail-contact,
html.dark .nova-result-sub, .dark .nova-result-sub { color: #a2a2ac; }
html.dark .nova-btn, .dark .nova-btn,
html.dark .nova-result-row, .dark .nova-result-row { background: #17171c; border-color: #32323a; }
html.dark .nova-btn:hover, .dark .nova-btn:hover,
html.dark .nova-result-row:hover, .dark .nova-result-row:hover { background: #1c1c22; }
html.dark .nova-suggestion, .dark .nova-suggestion { background: #16263a; border-color: #1f3a5a; color: #6fb3f0; }

/* Response time statistics — subtle styling */
.markdown-body em:last-child,
.message-content em:last-child,
[class*="message"] em:last-child {
  color: #c0c7d0 !important;
  font-size: 0.7rem !important;
  font-style: normal !important;
  font-weight: 400 !important;
}