@charset "UTF-8";
/* ============================================================================
   NeoDesk (neodesk.neotriad.com) — Main SCSS Manifest
   Clean Architecture Design System Neotriad 2026
   ============================================================================ */
:root,
:root[data-theme=light] {
  --brand-primary: #1565FF;
  --brand-primary-dark: #0A4FD1;
  --brand-primary-bright: #00C2FF;
  --brand-yellow: #E8A400;
  --brand-salmon: #E0323C;
  --brand-impact: #7C3AED;
  --brand-flow: #00C2FF;
  --gradient-focus: linear-gradient(135deg, #1565FF 0%, #00C2FF 100%);
  --gradient-impact: linear-gradient(135deg, #1565FF 0%, #7C3AED 100%);
  --gradient-hero: linear-gradient(135deg, #F8FAFC 0%, #EEF4FF 100%);
  --triad-urgente: #E0323C;
  --triad-importante: #1565FF;
  --triad-circunstancial: #E8A400;
  --triad-sem-triade: #64748B;
  --status-progress: #1565FF;
  --status-done: #16A34A;
  --status-critical: #E0323C;
  --status-warning: #D97706;
  --status-pending: #64748B;
  --success: #16A34A;
  --warning: #D97706;
  --error: #E0323C;
  --info: #1565FF;
  --bg-app: #EDF1F7;
  --bg-panel: #F4F7FB;
  --surface-card: #FAFBFD;
  --surface-raised: #EEF3F9;
  --surface-input: #FFFFFF;
  --surface-hover: rgba(15, 23, 42, 0.045);
  --surface-popover: #FAFBFD;
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-disabled: #94A3B8;
  --text-on-brand: #FFFFFF;
  --text-link: #1565FF;
  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;
  --border-focus: #1565FF;
  --divider: #E2E8F0;
  --track: #E2E8F0;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.14);
  --shadow-glow-blue: 0 4px 16px rgba(21, 101, 255, 0.22);
  --ring: 0 0 0 3px rgba(21, 101, 255, 0.22);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Liberation Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-2xl: 18px;
  --radius-full: 9999px;
  --sidebar-w: 236px;
  --topbar-h: 58px;
}

:root[data-theme=dark],
html.theme-dark {
  --bg-app: #0B1120;
  --bg-panel: #111827;
  --surface-card: #151E32;
  --surface-raised: #1B263B;
  --surface-input: #0F172A;
  --surface-hover: rgba(255, 255, 255, 0.05);
  --surface-popover: #1B263B;
  --gradient-hero: linear-gradient(135deg, #111827 0%, #0C2342 100%);
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-disabled: #64748B;
  --text-on-brand: #FFFFFF;
  --text-link: #38BDF8;
  --success: #34D399;
  --warning: #FBBF24;
  --error: #FB7185;
  --status-done: #34D399;
  --status-warning: #FBBF24;
  --border-subtle: #243049;
  --border-strong: #334155;
  --border-focus: #38BDF8;
  --divider: rgba(255, 255, 255, 0.07);
  --track: #243049;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.48);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.60);
  --shadow-glow-blue: 0 4px 20px rgba(21, 101, 255, 0.35);
  --ring: 0 0 0 3px rgba(56, 189, 248, 0.30);
}

/* ============================================================================
   1. Base Reset & Clean Typography
   ============================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-primary);
  background-color: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  transition: background-color 150ms ease, color 150ms ease;
}

::selection {
  background-color: rgba(21, 101, 255, 0.2);
  color: var(--text-primary);
}

input,
textarea,
[contenteditable=true] {
  caret-color: var(--brand-primary);
}

td,
th,
.nd-num,
.nd-tabular {
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--text-link);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

code,
pre,
.nd-mono {
  font-family: var(--font-mono);
  font-size: 12px;
}

.nd-hidden,
.nd-select-native {
  display: none !important;
}

.nd-caption {
  font-size: 12px;
  color: var(--text-muted);
}

.nd-overline {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================================
   2. Brand Logos (Automatic Dark / Light Theme Switching)
   ============================================================================ */
.nd-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nd-brand__logo-img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nd-brand__emblem {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}
.nd-brand__badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: #E8F0FE;
  color: #0A4FD1;
  border: 1px solid #BFDBFE;
}
:root[data-theme=dark] .nd-brand__badge {
  color: #E0F2FE;
  background: rgba(14, 165, 233, 0.22);
  border-color: rgba(56, 189, 248, 0.4);
}

.nd-brand-logo--dark {
  display: none;
}

.nd-brand-logo--light {
  display: block;
}

:root[data-theme=dark] .nd-brand-logo--dark {
  display: block;
}
:root[data-theme=dark] .nd-brand-logo--light {
  display: none;
}

/* ============================================================================
   3. Shell Layouts: Painel do Agente (.nd-shell) & Portal/KB (.nd-portal)
   ============================================================================ */
.nd-shell {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-app);
  color: var(--text-primary);
}

.nd-sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-panel);
  border-right: 1px solid var(--border-subtle);
  z-index: 40;
}
.nd-sidebar__brand {
  height: var(--topbar-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}
.nd-sidebar__nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}
.nd-sidebar__section {
  padding: 12px 10px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nd-sidebar__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all 120ms ease;
}
.nd-sidebar__link i {
  font-size: 16px;
}
.nd-sidebar__link:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}
.nd-sidebar__link--active {
  background: rgba(21, 101, 255, 0.1);
  color: var(--brand-primary);
  font-weight: 600;
}
:root[data-theme=dark] .nd-sidebar__link--active {
  background: rgba(21, 101, 255, 0.22);
  color: var(--brand-primary-bright);
}
.nd-sidebar__link-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nd-sidebar__footer {
  padding: 10px 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.nd-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-app);
}

.nd-topbar {
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  padding: 0 20px;
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 35;
}
.nd-topbar__left, .nd-topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nd-topbar__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.nd-topbar__search {
  position: relative;
  width: 240px;
}
.nd-topbar__search .nd-input {
  padding-left: 32px;
  height: 34px;
}
.nd-topbar__search i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.nd-topbar__user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nd-content {
  flex: 1;
  padding: 18px 22px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.nd-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.nd-page-header__left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nd-page-header__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}
.nd-page-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================================================================
   4. Custom Icon + Text Dropdown (.nd-dropdown) — Replaces All Native <select>
   ============================================================================ */
.nd-dropdown {
  position: relative;
  display: inline-flex;
  min-width: 140px;
  width: 100%;
  user-select: none;
}
.nd-dropdown--compact {
  width: auto;
  min-width: 118px;
}
.nd-dropdown__trigger {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  background-color: var(--surface-input);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.nd-dropdown__trigger:hover {
  border-color: var(--border-strong);
  background-color: var(--surface-raised);
}
.nd-dropdown__trigger:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--ring);
}
.nd-dropdown--open .nd-dropdown__trigger {
  border-color: var(--border-focus);
  box-shadow: var(--ring);
}
.nd-dropdown__value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.nd-dropdown__value i {
  font-size: 15px;
  flex-shrink: 0;
  color: var(--brand-primary);
}
:root[data-theme=dark] .nd-dropdown__value i {
  color: var(--brand-primary-bright);
}
.nd-dropdown__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nd-dropdown__caret {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 150ms ease;
}
.nd-dropdown--open .nd-dropdown__caret {
  transform: rotate(180deg);
}
.nd-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 320px;
  max-height: 260px;
  overflow-y: auto;
  background-color: var(--surface-popover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 4px;
  z-index: 95;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.nd-dropdown--open .nd-dropdown__menu {
  display: flex;
}
.nd-dropdown--align-right .nd-dropdown__menu {
  left: auto;
  right: 0;
}
.nd-dropdown__item {
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: background-color 100ms ease;
}
.nd-dropdown__item:hover {
  background-color: var(--surface-hover);
}
.nd-dropdown__item--selected {
  background-color: rgba(21, 101, 255, 0.1);
  color: var(--brand-primary);
  font-weight: 600;
}
:root[data-theme=dark] .nd-dropdown__item--selected {
  background-color: rgba(21, 101, 255, 0.22);
  color: var(--brand-primary-bright);
}
.nd-dropdown__item-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.nd-dropdown__item-left i {
  font-size: 15px;
  flex-shrink: 0;
}
.nd-dropdown__item-check {
  font-size: 13px;
  opacity: 0;
}
.nd-dropdown__item--selected .nd-dropdown__item-check {
  opacity: 1;
}

/* ============================================================================
   5. Interactive Popovers (.nd-popover-wrap) — "Menos é Mais" Contextual Help
   ============================================================================ */
.nd-popover-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nd-popover-trigger {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-raised);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  transition: all 120ms ease;
}
.nd-popover-trigger:hover, .nd-popover-trigger[aria-expanded=true] {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  background-color: rgba(21, 101, 255, 0.1);
}
.nd-popover-trigger--pill {
  width: auto;
  height: 24px;
  padding: 0 8px;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
}

.nd-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 290px;
  padding: 12px 14px;
  background-color: var(--surface-popover);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 110;
  display: none;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.nd-popover--right {
  left: auto;
  right: 0;
}
.nd-popover__title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nd-popover__title i {
  color: var(--brand-primary);
}
.nd-popover__text {
  color: var(--text-secondary);
  margin: 0;
}

.nd-popover-wrap:hover .nd-popover,
.nd-popover-wrap.nd-popover-wrap--open .nd-popover {
  display: flex;
}

/* ============================================================================
   6. 1-Line Compact Filter Bar (.nd-filter-bar)
   ============================================================================ */
.nd-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 8px 12px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
}
@media (max-width: 1150px) {
  .nd-filter-bar {
    flex-wrap: wrap;
  }
}
.nd-filter-bar__group {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
@media (max-width: 1150px) {
  .nd-filter-bar__group {
    flex-wrap: wrap;
  }
}
.nd-filter-bar__group > .nd-filter-bar__search {
  flex: 1.4 1 170px;
  min-width: 150px;
  position: relative;
}
.nd-filter-bar__group > .nd-filter-bar__search i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.nd-filter-bar__group > .nd-filter-bar__search .nd-input {
  padding-left: 30px;
}
.nd-filter-bar__group > .nd-dropdown,
.nd-filter-bar__group > .nd-select,
.nd-filter-bar__group > .nd-input {
  flex: 1 1 135px;
  min-width: 120px;
  width: auto;
}
.nd-filter-bar__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ============================================================================
   7. Badges, Buttons, Cards, Inputs, Tables & Tabs
   ============================================================================ */
.nd-badge,
.nd-status-badge,
.nd-triad-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.nd-badge--triad-1, .nd-badge--urgente, .nd-badge--critical,
.nd-status-badge--triad-1,
.nd-status-badge--urgente,
.nd-status-badge--critical,
.nd-triad-badge--triad-1,
.nd-triad-badge--urgente,
.nd-triad-badge--critical {
  background-color: rgba(224, 50, 60, 0.12);
  color: var(--triad-urgente);
  border-color: rgba(224, 50, 60, 0.3);
}
:root[data-theme=dark] .nd-badge--triad-1, :root[data-theme=dark] .nd-badge--urgente, :root[data-theme=dark] .nd-badge--critical,
:root[data-theme=dark] .nd-status-badge--triad-1,
:root[data-theme=dark] .nd-status-badge--urgente,
:root[data-theme=dark] .nd-status-badge--critical,
:root[data-theme=dark] .nd-triad-badge--triad-1,
:root[data-theme=dark] .nd-triad-badge--urgente,
:root[data-theme=dark] .nd-triad-badge--critical {
  color: #FDA4AF;
  background-color: rgba(224, 50, 60, 0.22);
}
.nd-badge--triad-2, .nd-badge--importante, .nd-badge--in-progress, .nd-badge--new,
.nd-status-badge--triad-2,
.nd-status-badge--importante,
.nd-status-badge--in-progress,
.nd-status-badge--new,
.nd-triad-badge--triad-2,
.nd-triad-badge--importante,
.nd-triad-badge--in-progress,
.nd-triad-badge--new {
  background-color: rgba(21, 101, 255, 0.12);
  color: var(--triad-importante);
  border-color: rgba(21, 101, 255, 0.28);
}
:root[data-theme=dark] .nd-badge--triad-2, :root[data-theme=dark] .nd-badge--importante, :root[data-theme=dark] .nd-badge--in-progress, :root[data-theme=dark] .nd-badge--new,
:root[data-theme=dark] .nd-status-badge--triad-2,
:root[data-theme=dark] .nd-status-badge--importante,
:root[data-theme=dark] .nd-status-badge--in-progress,
:root[data-theme=dark] .nd-status-badge--new,
:root[data-theme=dark] .nd-triad-badge--triad-2,
:root[data-theme=dark] .nd-triad-badge--importante,
:root[data-theme=dark] .nd-triad-badge--in-progress,
:root[data-theme=dark] .nd-triad-badge--new {
  color: #7DD3FC;
  background-color: rgba(21, 101, 255, 0.24);
}
.nd-badge--triad-3, .nd-badge--circunstancial, .nd-badge--waiting, .nd-badge--warning,
.nd-status-badge--triad-3,
.nd-status-badge--circunstancial,
.nd-status-badge--waiting,
.nd-status-badge--warning,
.nd-triad-badge--triad-3,
.nd-triad-badge--circunstancial,
.nd-triad-badge--waiting,
.nd-triad-badge--warning {
  background-color: rgba(232, 164, 0, 0.14);
  color: #B45309;
  border-color: rgba(232, 164, 0, 0.35);
}
:root[data-theme=dark] .nd-badge--triad-3, :root[data-theme=dark] .nd-badge--circunstancial, :root[data-theme=dark] .nd-badge--waiting, :root[data-theme=dark] .nd-badge--warning,
:root[data-theme=dark] .nd-status-badge--triad-3,
:root[data-theme=dark] .nd-status-badge--circunstancial,
:root[data-theme=dark] .nd-status-badge--waiting,
:root[data-theme=dark] .nd-status-badge--warning,
:root[data-theme=dark] .nd-triad-badge--triad-3,
:root[data-theme=dark] .nd-triad-badge--circunstancial,
:root[data-theme=dark] .nd-triad-badge--waiting,
:root[data-theme=dark] .nd-triad-badge--warning {
  color: #FDE047;
  background-color: rgba(232, 164, 0, 0.2);
}
.nd-badge--resolved, .nd-badge--done,
.nd-status-badge--resolved,
.nd-status-badge--done,
.nd-triad-badge--resolved,
.nd-triad-badge--done {
  background-color: rgba(22, 163, 74, 0.12);
  color: var(--status-done);
  border-color: rgba(22, 163, 74, 0.3);
}
.nd-badge--neutral,
.nd-status-badge--neutral,
.nd-triad-badge--neutral {
  background-color: rgba(100, 116, 139, 0.12);
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}
.nd-badge--ai,
.nd-status-badge--ai,
.nd-triad-badge--ai {
  background: var(--gradient-impact);
  color: #FFFFFF;
  border: none;
}

.nd-status-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  display: inline-block;
  background-color: currentColor;
}

.nd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 120ms ease;
  white-space: nowrap;
}
.nd-btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.nd-btn--primary {
  background: var(--gradient-focus);
  color: #FFFFFF;
  box-shadow: var(--shadow-xs);
}
.nd-btn--primary:hover {
  filter: brightness(1.06);
  box-shadow: var(--shadow-glow-blue);
  color: #FFFFFF;
}
.nd-btn--secondary {
  background-color: var(--surface-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.nd-btn--secondary:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-strong);
}
.nd-btn--ghost {
  background-color: transparent;
  color: var(--text-secondary);
}
.nd-btn--ghost:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}
.nd-btn--sm {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: var(--radius-md);
}
.nd-btn--lg {
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
}

.nd-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
}
.nd-card__header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.nd-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nd-card__body {
  padding: 16px;
}
.nd-card__footer {
  padding: 10px 16px;
  background-color: var(--surface-raised);
  border-top: 1px solid var(--border-subtle);
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nd-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.nd-field:last-child {
  margin-bottom: 0;
}
.nd-field__label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.nd-field__error {
  font-size: 12px;
  color: var(--error);
  font-weight: 600;
}

.nd-input,
.nd-select,
.nd-textarea {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  background-color: var(--surface-input);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 13px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.nd-input:focus,
.nd-select:focus,
.nd-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--ring);
}
.nd-input::placeholder,
.nd-select::placeholder,
.nd-textarea::placeholder {
  color: var(--text-muted);
}

.nd-textarea {
  height: auto;
  min-height: 80px;
  padding: 8px 11px;
  resize: vertical;
}

.nd-table-wrap {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow-x: auto;
  box-shadow: var(--shadow-xs);
}

.nd-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.nd-table th {
  padding: 10px 14px;
  background-color: var(--surface-raised);
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.nd-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--divider);
  color: var(--text-primary);
  vertical-align: middle;
}
.nd-table tbody tr:hover {
  background-color: var(--surface-hover);
}
.nd-table tbody tr:last-child td {
  border-bottom: none;
}
.nd-table__empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--text-muted);
}

/* Tabs */
.nd-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.nd-tab-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 120ms ease;
}
.nd-tab-btn--active {
  background: var(--gradient-focus);
  color: #FFFFFF;
}

.nd-tab-pane {
  display: none;
}
.nd-tab-pane--active {
  display: block;
}

/* ============================================================================
   8. Ticket Workspace (Clean 2-Column Cockpit)
   ============================================================================ */
.nd-ticket-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1100px) {
  .nd-ticket-workspace {
    grid-template-columns: 1fr;
  }
}
.nd-ticket-workspace__main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.nd-ticket-workspace__sidebar {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
}

.nd-ticket-header {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nd-ticket-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.nd-ticket-header__protocol {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-primary);
  background-color: rgba(21, 101, 255, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}
:root[data-theme=dark] .nd-ticket-header__protocol {
  color: var(--brand-primary-bright);
  background-color: rgba(0, 194, 255, 0.14);
}
.nd-ticket-header__subject {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.nd-ticket-header__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.nd-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nd-message {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 12px 16px;
  box-shadow: var(--shadow-xs);
}
.nd-message--internal {
  background-color: rgba(232, 164, 0, 0.07);
  border-color: rgba(232, 164, 0, 0.35);
}
.nd-message__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--divider);
}
.nd-message__author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
}
.nd-message__avatar {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--gradient-focus);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.nd-message__meta {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nd-message__body {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-primary);
  word-break: break-word;
}
.nd-message__body p {
  margin: 0 0 8px;
}
.nd-message__body p:last-child {
  margin-bottom: 0;
}
.nd-message__body img:not(.nd-sig-card img),
.nd-message__body .nd-inline-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin: 6px 0;
  display: block;
}
.nd-message__attachments {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nd-metadata-section {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.nd-metadata-section:last-child {
  border-bottom: none;
}
.nd-metadata-section__title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nd-inline-creator {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nd-inline-creator__row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nd-inline-creator__row > .nd-dropdown,
.nd-inline-creator__row > .nd-select,
.nd-inline-creator__row > .nd-input {
  flex: 1;
  min-width: 0;
}
.nd-inline-creator__btn {
  width: 34px;
  height: 36px;
  min-width: 34px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-raised);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nd-inline-creator__btn:hover {
  background-color: var(--brand-primary);
  color: #FFFFFF;
}
.nd-inline-creator__form {
  display: none;
  padding: 8px;
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  gap: 6px;
  flex-direction: column;
}
.nd-inline-creator__form--open {
  display: flex;
}
.nd-inline-creator__actions {
  display: flex;
  justify-content: flex-end;
}

.nd-waiting-reason {
  padding: 8px;
  border-radius: var(--radius-md);
  background-color: rgba(232, 164, 0, 0.08);
  border: 1px solid rgba(232, 164, 0, 0.35);
  margin-top: 6px;
}
.nd-waiting-reason--hidden {
  display: none !important;
}
.nd-waiting-reason--visible {
  display: block;
}

.nd-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 4px;
}

.nd-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
}
.nd-tag-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--brand-primary);
}
.nd-tag-pill__remove {
  background: none;
  border: none;
  padding: 0;
  margin-left: 2px;
  color: var(--text-muted);
  cursor: pointer;
}
.nd-tag-pill__remove:hover {
  color: var(--error);
}

/* ============================================================================
   9. Rich Text Editor (.nd-editor)
   ============================================================================ */
.nd-editor {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
}
.nd-editor--internal {
  border-color: var(--brand-yellow);
}
.nd-editor__header {
  padding: 8px 12px;
  background-color: var(--surface-raised);
  border-bottom: 1px solid var(--border-subtle);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.nd-editor__mode-toggle {
  display: inline-flex;
  background-color: var(--surface-input);
  padding: 2px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.nd-editor__mode-btn {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nd-editor__mode-btn--active {
  background-color: var(--brand-primary);
  color: #FFFFFF;
}
.nd-editor__mode-btn--internal.nd-editor__mode-btn--active {
  background-color: var(--brand-yellow);
  color: #0F172A;
}
.nd-editor__signature-selector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.nd-editor__toolbar {
  padding: 6px 10px;
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.nd-editor__tool-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding-right: 6px;
  margin-right: 2px;
  border-right: 1px solid var(--divider);
}
.nd-editor__tool-group:last-child {
  border-right: none;
}
.nd-editor__tool-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nd-editor__tool-btn:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}
.nd-editor__canvas {
  min-height: 150px;
  max-height: 400px;
  overflow-y: auto;
  padding: 12px 14px;
  background-color: var(--surface-input);
  color: var(--text-primary);
  font-size: 13.5px;
  line-height: 1.5;
  outline: none;
}
.nd-editor__canvas:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  pointer-events: none;
}
.nd-editor__canvas img:not(.nd-sig-card img),
.nd-editor__canvas .nd-inline-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin: 6px 0;
}
.nd-editor__dropzone {
  padding: 6px 12px;
  background-color: var(--surface-raised);
  border-top: 1px dashed var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.nd-editor__footer {
  padding: 8px 12px;
  background-color: var(--surface-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.nd-signature-preview {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
}

/* ============================================================================
   10. Portal do Cliente & Base de Conhecimento — 100% Unified Light/Dark
   ============================================================================ */
.nd-portal {
  min-height: 100vh;
  background-color: var(--bg-app);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}
.nd-portal__header {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-panel);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 35;
}
.nd-portal__container {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px;
}
.nd-portal__hero {
  background: var(--gradient-hero);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 24px 28px;
  border-radius: var(--radius-2xl);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.nd-portal__hero h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
  color: var(--text-primary);
}
.nd-portal__search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 340px;
  flex: 1;
  max-width: 480px;
}
.nd-portal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.nd-article {
  max-width: 840px;
  margin: 0 auto;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-xs);
}
.nd-article__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.nd-article__title {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.nd-article__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.nd-article__content {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-primary);
}
.nd-article__content h2, .nd-article__content h3, .nd-article__content h4 {
  color: var(--text-primary);
  margin-top: 20px;
  margin-bottom: 8px;
}
.nd-article__content p {
  color: var(--text-secondary);
}
.nd-article__feedback {
  margin-top: 24px;
  padding: 14px 18px;
  background-color: var(--surface-raised);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.nd-csat {
  max-width: 460px;
  margin: 32px auto;
  padding: 24px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

/* ============================================================================
   11. Metrics Dashboard (.nd-metrics)
   ============================================================================ */
.nd-metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nd-metrics__kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.nd-metrics__charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
}

.nd-kpi-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 14px 16px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nd-kpi-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nd-kpi-card__label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nd-kpi-card__icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  background-color: rgba(21, 101, 255, 0.12);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.nd-kpi-card__value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.nd-kpi-card__meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

.nd-bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nd-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nd-bar-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
}
.nd-bar-item__label {
  color: var(--text-primary);
}
.nd-bar-item__value {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.nd-toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}

.nd-toast {
  padding: 10px 14px;
  background-color: var(--surface-popover);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-size: 12.5px;
  font-weight: 500;
}
.nd-toast--success {
  border-color: var(--success);
}
.nd-toast--warning {
  border-color: var(--warning);
}
.nd-toast--error {
  border-color: var(--error);
}

/* ============================================================================
   12. Print Layout (@media print)
   ============================================================================ */
.nd-print-only {
  display: none;
}

@media print {
  :root,
  :root[data-theme=dark],
  body,
  html {
    --bg-app: #FFFFFF !important;
    --bg-panel: #F8FAFC !important;
    --surface-card: #FFFFFF !important;
    --text-primary: #0F172A !important;
    --text-secondary: #334155 !important;
    --text-muted: #64748B !important;
    --border-subtle: #CBD5E1 !important;
    background-color: #FFFFFF !important;
    color: #0F172A !important;
  }
  .nd-sidebar,
  .nd-topbar,
  .nd-portal__header,
  .nd-editor,
  .nd-filter-bar,
  .nd-toast-container,
  .nd-btn,
  .nd-inline-creator__btn,
  .nd-inline-creator__form,
  .nd-tag-pill__remove,
  .nd-popover-wrap,
  .nd-no-print {
    display: none !important;
  }
  .nd-print-only {
    display: block !important;
  }
}
/* Utility spacing & layout helpers (zero inline styles) */
.nd-btn--block {
  width: 100%;
}

.nd-mb-3 {
  margin-bottom: 12px;
}

.nd-mt-3 {
  margin-top: 14px;
}

.nd-my-3 {
  margin: 14px 0;
}

.nd-flex-center {
  justify-content: center;
  margin-bottom: 12px;
}

.nd-flex-between {
  justify-content: space-between;
  margin-top: 12px;
}

.nd-col-1 {
  flex: 1;
  margin-bottom: 0;
}

/* Country Flags inside Custom Dropdowns & AI Review Gate */
.nd-flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  display: inline-flex;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.nd-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nd-ai-review-gate {
  display: none;
  padding: 10px 14px;
  background-color: rgba(232, 164, 0, 0.12);
  border-top: 1px solid rgba(232, 164, 0, 0.45);
  border-bottom: 1px solid rgba(232, 164, 0, 0.45);
  color: var(--text-primary);
  font-size: 12.5px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.nd-ai-review-gate--visible {
  display: flex;
}
.nd-ai-review-gate__warning {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--warning);
  font-weight: 600;
}
.nd-ai-review-gate__confirm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-primary);
}

.nd-it-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.nd-it-guide__step {
  padding: 14px;
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nd-it-guide__step-num {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nd-recaptcha-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-md);
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
}

/* 3D Logo Lockup, Triade Dot with Popover & Custom File Upload */
.nd-brand__icon-3d {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(21, 101, 255, 0.25));
}

.nd-brand__wordmark {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nd-triad-dot-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-raised);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.nd-triad-dot {
  width: 11px;
  height: 11px;
  border-radius: var(--radius-full);
  display: inline-block;
}
.nd-triad-dot--urgent {
  background-color: var(--triad-urgente);
  box-shadow: 0 0 8px rgba(224, 50, 60, 0.55);
}
.nd-triad-dot--important {
  background-color: var(--triad-importante);
  box-shadow: 0 0 8px rgba(21, 101, 255, 0.55);
}
.nd-triad-dot--circumstantial {
  background-color: var(--triad-circunstancial);
  box-shadow: 0 0 8px rgba(232, 164, 0, 0.55);
}

.nd-file-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nd-file-upload__btn {
  cursor: pointer;
  margin: 0;
}
.nd-file-upload__input {
  display: none !important;
}
.nd-file-upload__status {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Phone Country + DDI Input Group */
.nd-phone-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nd-phone-group > .nd-dropdown {
  width: 155px;
  min-width: 155px;
  flex-shrink: 0;
}
.nd-phone-group > .nd-input {
  flex: 1;
  min-width: 0;
}

/* Cc Email Pills Box (; trigger, Pencil Edit + X Remove) */
.nd-cc-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  min-height: 36px;
  background-color: var(--surface-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.nd-cc-box:focus-within {
  border-color: var(--border-focus);
  box-shadow: var(--ring);
}
.nd-cc-box__pills {
  display: contents;
}
.nd-cc-box__input {
  flex: 1 1 130px;
  min-width: 110px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  outline: none;
  height: 24px;
  padding: 0 4px;
}
.nd-cc-box__input::placeholder {
  color: var(--text-muted);
}

.nd-cc-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background-color: rgba(21, 101, 255, 0.12);
  border: 1px solid rgba(21, 101, 255, 0.3);
  color: var(--brand-primary);
  font-size: 11.5px;
  font-weight: 600;
}
:root[data-theme=dark] .nd-cc-pill {
  background-color: rgba(0, 194, 255, 0.14);
  border-color: rgba(0, 194, 255, 0.32);
  color: var(--brand-primary-bright);
}
.nd-cc-pill__btn {
  background: none;
  border: none;
  padding: 0 2px;
  color: inherit;
  cursor: pointer;
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
}
.nd-cc-pill__btn:hover {
  opacity: 1;
}
.nd-cc-pill__btn--remove:hover {
  color: var(--error);
}

/* Multi-Select Tag Dropdown with Checkboxes + Inline Create */
.nd-tag-multiselect {
  position: relative;
  width: 100%;
}
.nd-tag-multiselect__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background-color: var(--surface-popover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 98;
  display: none;
  flex-direction: column;
  gap: 6px;
}
.nd-tag-multiselect--open .nd-tag-multiselect__menu {
  display: flex;
}
.nd-tag-multiselect__list {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nd-tag-multiselect__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-primary);
  cursor: pointer;
}
.nd-tag-multiselect__item:hover {
  background-color: var(--surface-hover);
}
.nd-tag-multiselect__item input[type=checkbox] {
  accent-color: var(--brand-primary);
  cursor: pointer;
}
.nd-tag-multiselect__create {
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Practical Day / Month / Year Selector (.nd-date-triple) */
.nd-date-triple {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nd-date-triple__selects {
  display: grid;
  grid-template-columns: 78px 1fr 92px;
  gap: 6px;
}
.nd-date-triple__selects .nd-dropdown {
  min-width: 0;
}
.nd-date-triple__presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.nd-date-triple__preset-btn {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-raised);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.nd-date-triple__preset-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* 2-Line Dropdown Descriptions & Inline Add inside Dropdowns */
.nd-dropdown__item-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nd-dropdown__item-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.nd-dropdown__item-desc {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  white-space: normal;
  line-height: 1.35;
}

.nd-dropdown__inline-add {
  padding: 6px 4px 2px;
  margin-top: 4px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nd-dropdown__inline-add .nd-input {
  height: 30px;
  font-size: 12px;
  flex: 1;
}
.nd-dropdown__inline-add .nd-inline-creator__btn {
  height: 30px;
  width: 30px;
  min-width: 30px;
}

/* Stacked Vertical Pills (One Pill per Line for Inbound Mailboxes & Select Options) */
.nd-cc-box--stacked {
  flex-direction: column;
  align-items: stretch;
  padding: 8px;
  gap: 6px;
}
.nd-cc-box--stacked .nd-cc-box__pills {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}
.nd-cc-box--stacked .nd-cc-pill {
  width: 100%;
  justify-content: space-between;
  padding: 5px 10px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
}
.nd-cc-box--stacked .nd-cc-pill__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nd-cc-box--stacked .nd-cc-box__input {
  width: 100%;
  flex: none;
  height: 28px;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 4px;
}

.nd-readonly-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-lg);
  background-color: var(--surface-raised);
  border: 1px dashed var(--border-strong);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* IT Guide Readable Typography (13.5px - 14px) */
.nd-it-guide__step {
  font-size: 13.5px;
  line-height: 1.55;
}
.nd-it-guide__step strong {
  font-size: 14px;
  color: var(--text-primary);
}
.nd-it-guide__step p,
.nd-it-guide__step .nd-it-guide__text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* Dual-Logo Signature Card (NeoDesk + Neotriad Symbol) & Dark-Mode Contrast Fix */
.nd-signature-body img,
.nd-signature-preview img,
.nd-email-signature img,
#nd-signature-form .nd-editor__canvas img {
  max-height: 36px !important;
  max-width: 140px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  vertical-align: middle !important;
  display: inline-block !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.nd-sig-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-raised);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  max-width: 540px;
}
.nd-sig-card__logos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nd-sig-card__logos img {
  display: block !important;
  object-fit: contain !important;
  width: 32px !important;
  height: 32px !important;
  max-width: 38px !important;
  max-height: 32px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
.nd-sig-card__logos img:first-child {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
}
.nd-sig-card__logos img:last-child {
  width: 38px !important;
  height: 24px !important;
  max-width: 38px !important;
  max-height: 24px !important;
}
.nd-sig-card__divider {
  width: 1px;
  height: 28px;
  background-color: var(--border-strong);
  flex-shrink: 0;
}
.nd-sig-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nd-sig-card__title {
  margin: 0 !important;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-primary) !important;
}
.nd-sig-card__sub {
  margin: 0 !important;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-secondary) !important;
}
.nd-sig-card__links {
  margin: 2px 0 0 !important;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-link) !important;
}
.nd-sig-card__links a {
  color: var(--text-link) !important;
  font-weight: 600;
}

:root[data-theme=dark] .nd-signature-body *,
:root[data-theme=dark] .nd-signature-preview *,
:root[data-theme=dark] .nd-email-signature * {
  color: var(--text-primary);
}

:root[data-theme=dark] .nd-signature-body a,
:root[data-theme=dark] .nd-signature-preview a,
:root[data-theme=dark] .nd-email-signature a {
  color: var(--text-link);
}

.nd-floating-popover {
  position: fixed;
  max-width: 280px;
  padding: 8px 12px;
  background-color: var(--surface-popover);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 12px;
  line-height: 1.4;
  z-index: 250;
  pointer-events: none;
  display: none;
}
.nd-floating-popover--visible {
  display: block;
}

/* ============================================================================
   13. Distinct Disabled Button State, Minimized Rail Sidebar (Ref Image #1),
       Spacious Smart Date Picker (Year->Month->Day), KB Slug Ellipsis &
       Dual In-App + Browser Notification Icons
   ============================================================================ */
.nd-btn:disabled,
.nd-btn--primary:disabled,
button.nd-btn[disabled] {
  background: var(--track) !important;
  color: var(--text-disabled) !important;
  border: 1px dashed var(--border-strong) !important;
  box-shadow: none !important;
  opacity: 0.58 !important;
  cursor: not-allowed !important;
  filter: grayscale(1);
  transform: none !important;
}

/* Sidebar com Botão Único de Minimizar / Maximizar (Sem expansão no hover) */
.nd-sidebar {
  width: 236px;
  min-width: 236px;
  transition: width 180ms cubic-bezier(0.22, 1, 0.36, 1), min-width 180ms cubic-bezier(0.22, 1, 0.36, 1);
  position: sticky;
  top: 0;
  overflow-x: hidden;
  z-index: 45;
}
.nd-sidebar .nd-sidebar__brand {
  min-height: 64px;
  padding: 12px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.nd-sidebar .nd-brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.nd-sidebar .nd-brand__wordmark {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nd-sidebar .nd-sidebar__toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-raised);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 140ms ease;
}
.nd-sidebar .nd-sidebar__toggle-btn i {
  font-size: 17px;
}
.nd-sidebar .nd-sidebar__toggle-btn:hover {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFFFFF;
}
.nd-sidebar .nd-sidebar__nav {
  padding: 12px 10px;
  gap: 6px;
}
.nd-sidebar .nd-sidebar__link {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}
.nd-sidebar .nd-sidebar__link-main {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.nd-sidebar .nd-sidebar__link-main i {
  font-size: 18px;
}
.nd-sidebar .nd-sidebar__footer {
  padding: 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nd-sidebar .nd-sidebar__logout-form {
  width: 100%;
  margin: 0;
}
.nd-sidebar .nd-sidebar__theme-btn,
.nd-sidebar .nd-sidebar__logout-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 140ms ease;
}
.nd-sidebar .nd-sidebar__theme-btn i,
.nd-sidebar .nd-sidebar__logout-btn i {
  font-size: 17px;
}
.nd-sidebar .nd-sidebar__theme-btn:hover {
  background-color: var(--surface-hover);
  border-color: var(--brand-primary);
  color: var(--text-primary);
}
.nd-sidebar .nd-sidebar__logout-btn:hover {
  background-color: var(--surface-hover);
  border-color: var(--triad-urgente);
  color: var(--triad-urgente);
}

/* Estado Minimizado do Menu Lateral (Controlado apenas pelo botão) */
html[data-sidebar=collapsed] .nd-sidebar {
  width: 88px;
  min-width: 88px;
}
html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__brand {
  height: auto !important;
  min-height: 108px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 14px 8px 12px;
  gap: 8px;
}
html[data-sidebar=collapsed] .nd-sidebar .nd-brand {
  flex-direction: column;
  gap: 3px;
  text-align: center;
}
html[data-sidebar=collapsed] .nd-sidebar .nd-brand__wordmark {
  font-size: 9.5px;
  letter-spacing: 0.06em;
}
html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__section,
html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__ext-icon {
  display: none !important;
}
html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__nav {
  padding: 10px 6px;
}
html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__link {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 9px 4px;
  font-size: 10.5px;
  text-align: center;
}
html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__link-main {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__link-main i {
  font-size: 20px;
}
html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__footer {
  padding: 10px 6px;
}
html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__theme-btn,
html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__logout-btn {
  flex-direction: column;
  height: auto;
  padding: 8px 4px;
  gap: 3px;
  font-size: 10px;
  text-align: center;
}
html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__theme-btn i,
html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__logout-btn i {
  font-size: 18px;
}

/* Spacious Smart Date Picker Popover (Year -> Month -> Valid Days Grid) */
.nd-smart-date {
  position: relative;
  width: 100%;
}
.nd-smart-date__trigger {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  background-color: var(--surface-input);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: all 120ms ease;
}
.nd-smart-date__trigger:hover {
  border-color: var(--border-strong);
  background-color: var(--surface-raised);
}
.nd-smart-date__trigger-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nd-smart-date__trigger-left i {
  font-size: 16px;
  color: var(--brand-primary);
}
.nd-smart-date__popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 300px;
  background-color: var(--surface-popover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  z-index: 120;
  display: none;
  flex-direction: column;
  gap: 12px;
}
.nd-smart-date--open .nd-smart-date__popover {
  display: flex;
}
.nd-smart-date__section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}
.nd-smart-date__years {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.nd-smart-date__months {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.nd-smart-date__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.nd-smart-date__pill-btn {
  height: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-raised);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 100ms ease;
}
.nd-smart-date__pill-btn:hover {
  border-color: var(--brand-primary);
  color: var(--text-primary);
}
.nd-smart-date__pill-btn--active {
  background: var(--gradient-focus);
  color: #FFFFFF !important;
  border-color: transparent;
}
.nd-smart-date__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  gap: 6px;
}

/* Knowledge Base Single-Line Slug with Ellipsis */
.nd-slug-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-link);
  white-space: nowrap;
}
.nd-slug-link__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  max-width: 190px;
}
.nd-slug-link i {
  flex-shrink: 0;
  font-size: 13px;
}

/* Dual In-App Notification Icons with Top Counter Badges & Browser Notification Gate */
.nd-notif-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nd-notif-wrap {
  position: relative;
  display: inline-flex;
}

.nd-notif-bell {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-card);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 120ms ease;
}
.nd-notif-bell:hover {
  border-color: var(--brand-primary);
  color: var(--text-primary);
  background-color: var(--surface-raised);
}
.nd-notif-bell__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  border: 2px solid var(--bg-panel);
  line-height: 1;
}
.nd-notif-bell__badge--new {
  background-color: var(--triad-urgente);
}
.nd-notif-bell__badge--active {
  background-color: var(--brand-primary);
}

.nd-notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background-color: var(--surface-popover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  z-index: 130;
  display: none;
  flex-direction: column;
  gap: 8px;
}
.nd-notif-panel--open {
  display: flex;
}
.nd-notif-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}
.nd-notif-panel__list {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nd-notif-panel__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 12px;
  transition: border-color 120ms ease;
}
.nd-notif-panel__item:hover {
  border-color: var(--brand-primary);
}
.nd-notif-panel__item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

/* nd-browser-notif-gate migrado para components/layout-2026 como botão discreto de sino */
/* ============================================================================
   14. Theme-Adaptive Scrollbars (Dark & Light Mode)
   ============================================================================ */
:root,
:root[data-theme=dark],
html.theme-dark {
  color-scheme: dark;
}

:root[data-theme=light],
html.theme-light {
  color-scheme: light;
}

*,
html,
body,
.nd-table-wrap,
.nd-dropdown__list,
.nd-editor__canvas,
.nd-notif-panel__list,
.nd-tag-multiselect__list,
.nd-sidebar__nav {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) var(--bg-panel);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--bg-panel);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
  border: 2px solid var(--bg-panel);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

*::-webkit-scrollbar-corner {
  background: var(--bg-panel);
}

/* ============================================================================
   15. Large Lightweight NeoDesk Favicon Watermark (Articles, Print & PDF)
   ============================================================================ */
.nd-article,
.nd-print-sheet,
.nd-ai-report-sheet {
  position: relative;
  overflow: hidden;
}

.nd-watermark {
  pointer-events: none !important;
  user-select: none !important;
  z-index: 0;
}
.nd-watermark--article {
  position: absolute;
  right: -32px;
  bottom: -32px;
  width: 360px;
  height: 360px;
  object-fit: contain;
  opacity: 0.055;
  filter: saturate(0.85);
}
.nd-watermark--print {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 400px;
  height: 400px;
  object-fit: contain;
  opacity: 0.06;
}

.nd-article > *:not(.nd-watermark),
.nd-print-sheet > *:not(.nd-watermark),
.nd-ai-report-sheet > *:not(.nd-watermark) {
  position: relative;
  z-index: 1;
}

@media print {
  .nd-watermark--print {
    display: block !important;
    position: fixed !important;
    right: 30px !important;
    bottom: 30px !important;
    width: 420px !important;
    height: 420px !important;
    opacity: 0.07 !important;
    z-index: 0 !important;
  }
}
/* ============================================================================
   16. AI Executive Report (/AiReports) & MCP Setup Guide (/Settings?tab=mcp)
   ============================================================================ */
.nd-ai-report-sheet {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.nd-ai-report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 960px) {
  .nd-ai-report-grid {
    grid-template-columns: 1fr;
  }
}

.nd-insight-card {
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nd-insight-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.nd-insight-card__title i {
  color: var(--brand-primary);
  font-size: 18px;
}
.nd-insight-card__list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.nd-code-block {
  background-color: var(--surface-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-primary);
  overflow-x: auto;
  white-space: pre;
  margin: 8px 0 0;
}

/* ============================================================================
   17. Responsive Content Images (Prevent Large Screenshots from Breaking Layout)
   ============================================================================ */
.nd-article__content,
.nd-message__body,
.nd-editor__canvas,
.nd-print-sheet {
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}
.nd-article__content img,
.nd-message__body img,
.nd-editor__canvas img,
.nd-print-sheet img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  margin: 12px 0;
  object-fit: contain;
  box-sizing: border-box;
}

/* ============================================================================
   18. Portal Mentor IA da Tríade & Ajuda app.neotriad.com + Amazon Book Card
   ============================================================================ */
.nd-mentor-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 980px) {
  .nd-mentor-layout {
    grid-template-columns: 1fr;
  }
}

.nd-mentor-chat {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.nd-mentor-chat__header {
  padding: 14px 18px;
  background-color: var(--surface-raised);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.nd-mentor-chat__prompts {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nd-mentor-chat__prompt-btn {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 120ms ease;
}
.nd-mentor-chat__prompt-btn:hover {
  border-color: var(--brand-primary);
  color: var(--text-primary);
  background-color: var(--surface-hover);
}
.nd-mentor-chat__messages {
  padding: 18px;
  min-height: 360px;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nd-mentor-chat__footer {
  padding: 14px 18px;
  background-color: var(--surface-raised);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 10px;
  align-items: center;
}

.nd-mentor-msg {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 92%;
}
.nd-mentor-msg--ai {
  align-self: flex-start;
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
.nd-mentor-msg--user {
  align-self: flex-end;
  background: var(--gradient-focus);
  color: #FFFFFF;
  font-weight: 500;
}
.nd-mentor-msg__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-primary);
}
.nd-mentor-msg p {
  margin: 0 0 8px;
}
.nd-mentor-msg p:last-child {
  margin-bottom: 0;
}
.nd-mentor-msg ol,
.nd-mentor-msg ul {
  margin: 6px 0 10px;
  padding-left: 20px;
}

.nd-amazon-book-card {
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.12), rgba(21, 101, 255, 0.08));
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: var(--radius-xl);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nd-amazon-book-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background-color: rgba(249, 115, 22, 0.2);
  color: #F97316;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nd-amazon-book-card__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}
.nd-amazon-book-card__desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}
.nd-amazon-book-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-lg);
  background-color: #F97316;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: transform 120ms ease, filter 120ms ease;
}
.nd-amazon-book-card__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ============================================================================
   15. Marca D'Água Sutil NeoDesk, Ícones Coloridos da Tríade, Autocomplete
       Lazy-Load, Anexos com Ícones por Tipo e Vitrine Visual de Artigos KB
   ============================================================================ */
/* Marca d'água removida das telas operacionais (Brief UX - Fundação) */
/* Ícones Coloridos da Tríade na Tabela e nos Dropdowns */
.nd-triad-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  transition: transform 120ms ease, background-color 120ms ease;
}
.nd-triad-icon-btn i {
  font-size: 18px;
}
.nd-triad-icon-btn--1, .nd-triad-icon-btn--urgent {
  color: var(--triad-urgente);
  background-color: rgba(224, 50, 60, 0.12);
  border-color: rgba(224, 50, 60, 0.28);
}
.nd-triad-icon-btn--2, .nd-triad-icon-btn--important {
  color: var(--triad-importante);
  background-color: rgba(21, 101, 255, 0.12);
  border-color: rgba(21, 101, 255, 0.28);
}
.nd-triad-icon-btn--3, .nd-triad-icon-btn--circumstantial {
  color: var(--triad-circunstancial);
  background-color: rgba(232, 164, 0, 0.14);
  border-color: rgba(232, 164, 0, 0.32);
}
.nd-triad-icon-btn:hover {
  transform: scale(1.08);
}

.nd-custom-select i.ph-fire {
  color: var(--triad-urgente) !important;
}

.nd-custom-select i.ph-target {
  color: var(--triad-importante) !important;
}

.nd-custom-select i.ph-clock {
  color: var(--triad-circunstancial) !important;
}

/* Cabeçalhos de Coluna Ordenáveis na Tabela de Tickets */
.nd-table__sort-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
}
.nd-table__sort-btn:hover {
  color: var(--brand-primary);
}
.nd-table__sort-btn--active {
  color: var(--brand-primary);
}

/* Autocomplete de Busca de Tickets com Lazy Load */
.nd-topbar__search,
.nd-filter-bar__search {
  position: relative;
}

.nd-search-autocomplete {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 340px;
  max-height: 250px;
  overflow-y: auto;
  background-color: var(--surface-popover);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 180;
  display: none;
  flex-direction: column;
}
.nd-search-autocomplete--open {
  display: flex;
}
.nd-search-autocomplete__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--divider);
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color 120ms ease;
}
.nd-search-autocomplete__item:hover {
  background-color: var(--surface-hover);
  text-decoration: none;
}
.nd-search-autocomplete__item:last-child {
  border-bottom: none;
}
.nd-search-autocomplete__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.nd-search-autocomplete__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nd-search-autocomplete__subject {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nd-search-autocomplete__meta {
  font-size: 11px;
  color: var(--text-muted);
}
.nd-search-autocomplete__status {
  font-size: 11px;
  padding: 8px 12px;
  text-align: center;
  color: var(--text-muted);
}

/* Lista de Anexos Selecionados com Ícone por Tipo e Botão Remover */
.nd-staged-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  background-color: var(--bg-panel);
  border-top: 1px dashed var(--border-subtle);
}
.nd-staged-files:empty {
  display: none;
}

.nd-staged-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-primary);
}
.nd-staged-file__thumb {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-raised);
  color: var(--brand-primary);
  font-size: 15px;
  flex-shrink: 0;
}
.nd-staged-file__name {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.nd-staged-file__remove {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nd-staged-file__remove:hover {
  background-color: rgba(224, 50, 60, 0.14);
  color: var(--triad-urgente);
}

/* Vitrine Visual de Artigos KB e Livros Christian Barbosa */
.nd-kb-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.nd-kb-visual-card {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nd-kb-visual-card strong {
  font-size: 14px;
}
.nd-kb-visual-card span {
  font-size: 12.5px;
  color: var(--text-secondary);
}
.nd-kb-visual-card--important {
  border-left-color: var(--triad-importante);
}
.nd-kb-visual-card--urgent {
  border-left-color: var(--triad-urgente);
}
.nd-kb-visual-card--circumstantial {
  border-left-color: var(--triad-circunstancial);
}

.nd-kb-cta-banner {
  margin: 18px 0;
  padding: 16px 20px;
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.nd-kb-cta-banner p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.nd-kb-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.nd-kb-book-card {
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nd-kb-book-card__cover {
  width: 110px;
  height: 160px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 6px;
}
.nd-kb-book-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.nd-kb-book-card__body h4 {
  margin: 4px 0 0 !important;
  font-size: 14.5px;
}
.nd-kb-book-card__body p {
  font-size: 12.5px;
  color: var(--text-secondary);
  flex: 1;
  margin: 0 0 8px !important;
}

/* Tradução Inline de Mensagens Estrangeiras no Ticket */
.nd-msg-translation {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
}

html:not(.nd-theme-ready) *,
html:not(.nd-theme-ready) *::before,
html:not(.nd-theme-ready) *::after {
  transition: none !important;
}

/* ============================================================================
   16. Portal Integrado (Sem Abas), Dicionário/Glossário de Palavras-Chave,
       Cards de Artigo com Banner/Thumbnail e Chatbot Mentor IA Flutuante
   ============================================================================ */
.nd-portal-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.nd-portal-action-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  box-shadow: var(--shadow-xs);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.nd-portal-action-card:hover, .nd-portal-action-card--active {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-glow-blue);
  transform: translateY(-2px);
}
.nd-portal-action-card__left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nd-portal-action-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-focus);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.nd-portal-action-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 3px;
}
.nd-portal-action-card__desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 0;
}

.nd-portal-drawer {
  display: none;
  margin-bottom: 24px;
}
.nd-portal-drawer--open {
  display: block;
}

/* Dicionário / Glossário Interativo de Palavras-Chave */
.nd-glossary {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-xs);
}
.nd-glossary__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.nd-glossary__title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.nd-glossary__title i {
  color: var(--brand-primary);
  font-size: 17px;
}
.nd-glossary__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nd-glossary__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-raised);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 140ms ease;
}
.nd-glossary__pill:hover {
  border-color: var(--brand-primary);
  color: var(--text-primary);
}
.nd-glossary__pill--active {
  background: var(--gradient-focus);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: var(--shadow-glow-blue);
}
.nd-glossary__count {
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background-color: rgba(15, 23, 42, 0.12);
}

/* Cards de Artigo com Banner / Thumbnail Chamativa */
.nd-article-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}
.nd-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}
.nd-article-card__cover-wrap {
  position: relative;
  width: 100%;
  height: 176px;
  overflow: hidden;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border-subtle);
}
.nd-article-card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 240ms ease;
}
.nd-article-card:hover .nd-article-card__cover {
  transform: scale(1.04);
}
.nd-article-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: rgba(11, 17, 32, 0.78);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.nd-article-card__body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.nd-article-card__title {
  font-size: 16px;
  line-height: 1.38;
  font-weight: 700;
  margin: 0;
}
.nd-article-card__title a {
  color: var(--text-primary);
  text-decoration: none;
}
.nd-article-card__title a:hover {
  color: var(--brand-primary);
}
.nd-article-card__summary {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}
.nd-article-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.nd-article-card__footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--surface-raised);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.nd-article__cover-hero {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  margin-bottom: 22px;
  display: block;
}

.nd-kb-chart-box {
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  margin: 18px 0;
}
.nd-kb-chart-box__title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nd-kb-author-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  border: 1px solid var(--border-strong);
  margin: 18px 0;
  flex-wrap: wrap;
}
.nd-kb-author-hero__photo {
  width: 110px !important;
  height: 110px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid var(--brand-primary) !important;
  margin: 0 !important;
  flex-shrink: 0;
}
.nd-kb-author-hero__info {
  flex: 1;
  min-width: 220px;
}
.nd-kb-author-hero__info h3 {
  margin: 0 0 6px !important;
}
.nd-kb-author-hero__info p {
  margin: 0 !important;
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* Widget Flutuante Fixo do Mentor IA (Canto Inferior Direito) */
.nd-floating-chatbot {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 210;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.nd-floating-chatbot__fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 20px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--gradient-impact);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(21, 101, 255, 0.42);
  transition: transform 150ms ease, filter 150ms ease;
}
.nd-floating-chatbot__fab i {
  font-size: 22px;
}
.nd-floating-chatbot__fab:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
}
.nd-floating-chatbot__window {
  width: 400px;
  max-width: calc(100vw - 32px);
  max-height: 580px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.nd-floating-chatbot--open .nd-floating-chatbot__window {
  display: flex;
}

/* ============================================================================
   19. Mobile UX & Full Responsive Overhaul (Smartphones & Tablets <= 960px)
       Projetado com @Agent-Mobile-UX: Hamburger Drawer, Touch Targets >= 40px,
       Mobile Ticket Cards, Stacked Ticket Workspace & Responsive Portal/Modals
   ============================================================================ */
.nd-mobile-menu-btn,
.nd-mobile-close-btn,
.nd-sidebar-backdrop,
.nd-mobile-filter-toggle,
.nd-mobile-categorize-btn,
.nd-categorize-modal-backdrop,
.nd-categorize-modal__header {
  display: none;
}

@media (max-width: 960px) {
  html,
  body {
    overflow-x: hidden;
  }
  /* 1. Botão Hambúrguer na Topbar e Gaveta Lateral Off-Canvas (0px quando fechada) */
  .nd-mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background-color: var(--surface-card);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .nd-mobile-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background-color: var(--surface-raised);
    color: var(--text-secondary);
    font-size: 17px;
    cursor: pointer;
  }
  .nd-sidebar__toggle-btn {
    display: none !important;
  }
  .nd-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(3px);
    z-index: 290;
    display: none;
  }
  html[data-mobile-nav=open] .nd-sidebar-backdrop {
    display: block;
  }
  .nd-sidebar,
  html[data-sidebar=collapsed] .nd-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: 272px !important;
    min-width: 272px !important;
    max-width: 84vw;
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 300 !important;
    box-shadow: var(--shadow-lg);
  }
  .nd-sidebar .nd-sidebar__brand,
  html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__brand {
    min-height: 62px;
    padding: 12px 16px !important;
    flex-direction: row !important;
    justify-content: space-between !important;
  }
  .nd-sidebar .nd-brand,
  html[data-sidebar=collapsed] .nd-sidebar .nd-brand {
    flex-direction: row !important;
    gap: 10px !important;
  }
  .nd-sidebar .nd-brand__wordmark,
  html[data-sidebar=collapsed] .nd-sidebar .nd-brand__wordmark {
    display: inline !important;
    font-size: 15px !important;
  }
  .nd-sidebar .nd-sidebar__section,
  html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__section {
    display: block !important;
  }
  .nd-sidebar .nd-sidebar__nav,
  html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__nav {
    padding: 12px 10px !important;
    gap: 4px !important;
  }
  .nd-sidebar .nd-sidebar__link,
  html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__link {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
    text-align: left !important;
  }
  .nd-sidebar .nd-sidebar__link-main,
  html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__link-main {
    flex-direction: row !important;
    gap: 12px !important;
  }
  .nd-sidebar .nd-sidebar__link-main span,
  html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__link-main span {
    display: inline !important;
  }
  .nd-sidebar .nd-sidebar__link-main i,
  html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__link-main i {
    font-size: 20px !important;
  }
  .nd-sidebar .nd-sidebar__footer,
  html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__footer {
    flex-direction: column !important;
    padding: 12px 14px !important;
    gap: 8px !important;
  }
  .nd-sidebar .nd-sidebar__theme-btn,
  .nd-sidebar .nd-sidebar__logout-btn,
  html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__theme-btn,
  html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__logout-btn {
    flex-direction: row !important;
    height: 40px !important;
    width: 100% !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 13px !important;
  }
  .nd-sidebar .nd-sidebar__theme-btn span,
  .nd-sidebar .nd-sidebar__logout-btn span,
  html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__theme-btn span,
  html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__logout-btn span {
    display: inline !important;
  }
  html[data-mobile-nav=open] .nd-sidebar {
    transform: translateX(0) !important;
  }
  /* 2. Topbar Mobile em 1 Única Linha Compacta (sem busca duplicada) */
  .nd-hide-mobile {
    display: none !important;
  }
  .nd-mobile-filter-toggle,
  .nd-mobile-categorize-btn {
    display: inline-flex !important;
  }
  .nd-topbar {
    height: 52px;
    min-height: 52px;
    padding: 0 10px;
    flex-wrap: nowrap;
    gap: 6px;
  }
  .nd-topbar__left {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }
  .nd-topbar__left .nd-brand__emblem {
    width: 24px;
    height: 24px;
  }
  .nd-topbar__left .nd-popover-wrap {
    display: none;
  }
  .nd-topbar__title {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 145px;
  }
  .nd-topbar__right {
    flex: 0 0 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
  }
  .nd-topbar__search {
    display: none !important;
  }
  .nd-browser-notif-gate {
    display: none !important;
  }
  /* Compactar seletor de idioma no topo mobile (exibir apenas Bandeira + Seta) */
  .nd-topbar__right .nd-dropdown--compact,
  .nd-portal__header .nd-dropdown--compact {
    min-width: 56px;
    width: auto;
  }
  .nd-topbar__right .nd-dropdown--compact .nd-dropdown__label,
  .nd-portal__header .nd-dropdown--compact .nd-dropdown__label {
    display: none;
  }
  /* Painéis de Notificação e Autocomplete centralizados na largura da tela mobile */
  .nd-notif-panel {
    position: fixed !important;
    top: 56px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none !important;
  }
  .nd-search-autocomplete {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
  }
  /* 3. Conteúdo Principal, Cabeçalhos e Abas Touch */
  .nd-content {
    padding: 12px 10px;
  }
  .nd-page-header {
    gap: 8px;
    margin-bottom: 10px;
  }
  .nd-page-header__title {
    font-size: 16px;
  }
  .nd-tabs {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    gap: 6px;
  }
  .nd-tabs .nd-tab-btn {
    min-height: 40px;
    white-space: nowrap;
  }
  /* 4. Barra de Filtros Colapsável no Mobile (apenas busca visível por padrão; seletores abrem ao tocar em 'Filtros') */
  .nd-filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    height: auto !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    overflow: visible !important;
  }
  .nd-filter-bar__group {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
    width: 100% !important;
  }
  .nd-filter-bar__group > .nd-dropdown {
    display: none !important;
  }
  .nd-filter-bar__search {
    grid-column: 1/-1;
    width: 100% !important;
    min-width: 0 !important;
  }
  .nd-filter-bar .nd-dropdown,
  .nd-filter-bar .nd-input {
    width: 100% !important;
    min-width: 0 !important;
  }
  .nd-filter-bar__actions {
    display: none !important;
    width: 100%;
    justify-content: flex-end;
  }
  .nd-filter-bar--mobile-open .nd-filter-bar__group > .nd-dropdown {
    display: inline-flex !important;
  }
  .nd-filter-bar--mobile-open .nd-filter-bar__actions {
    display: flex !important;
  }
  /* 5. Tela do Ticket Limpa no Mobile + Modal Popup "Categorizar Ticket" */
  .nd-ticket-workspace {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .nd-ticket-workspace__sidebar {
    display: none !important;
  }
  html[data-categorize-modal=open] .nd-categorize-modal-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
    z-index: 305;
  }
  html[data-categorize-modal=open] .nd-ticket-workspace__sidebar {
    display: block !important;
    position: fixed !important;
    top: 44px;
    left: 10px;
    right: 10px;
    bottom: 14px;
    max-height: calc(100dvh - 58px);
    overflow-y: auto;
    z-index: 310;
    background-color: var(--surface-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    padding: 0 14px 16px !important;
  }
  html[data-categorize-modal=open] .nd-categorize-modal__header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background-color: var(--surface-card);
    padding: 14px 0 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
    z-index: 15;
  }
  .nd-ticket-header {
    padding: 10px 12px;
  }
  .nd-ticket-header__subject {
    font-size: 14.5px;
    margin: 6px 0 4px;
  }
  .nd-editor__mode-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }
  .nd-editor__modes {
    flex-wrap: wrap;
    gap: 6px;
  }
  .nd-editor__signature-selector {
    width: 100%;
  }
  .nd-editor__signature-selector .nd-dropdown {
    width: 100% !important;
  }
  .nd-editor__toolbar {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding: 8px 10px;
  }
  .nd-editor__dropzone {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .nd-editor__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  .nd-editor__footer .nd-page-header__actions {
    width: 100%;
  }
  .nd-editor__footer .nd-page-header__actions .nd-dropdown {
    width: 100% !important;
  }
  .nd-editor__footer .nd-btn {
    width: 100%;
    height: 42px;
    justify-content: center;
  }
  .nd-smart-date__popover {
    left: 0 !important;
    right: auto !important;
    width: min(300px, 100vw - 36px) !important;
  }
  /* 6. Portal do Cliente, Artigos e Chatbot Flutuante no Celular */
  .nd-portal__header {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .nd-portal__container {
    padding: 12px 10px;
  }
  .nd-portal__hero {
    padding: 16px 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .nd-portal__search {
    width: 100%;
    flex-direction: column;
  }
  .nd-portal__search .nd-btn {
    width: 100%;
    justify-content: center;
  }
  .nd-phone-group {
    flex-direction: column;
    align-items: stretch;
  }
  .nd-phone-group > .nd-dropdown {
    width: 100% !important;
  }
  .nd-floating-chatbot {
    right: 12px;
    bottom: 12px;
  }
  .nd-floating-chatbot__fab {
    height: 46px;
    padding: 0 14px;
    font-size: 13px;
  }
  .nd-floating-chatbot__window {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 66px;
    width: auto;
    max-width: none;
    max-height: 76dvh;
  }
}
/* 7. Fila de Tickets Ultra-Enxuta em Cards Clicáveis (<= 768px: sem dados desnecessários) */
@media (max-width: 768px) {
  .nd-filter-bar__group {
    grid-template-columns: 1fr !important;
  }
  .nd-table--tickets {
    border: none;
    background: transparent;
  }
  .nd-table--tickets thead {
    display: none;
  }
  .nd-table--tickets tbody {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .nd-table--tickets tr.nd-ticket-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 4px 8px;
    padding: 10px 12px;
    background-color: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    cursor: pointer;
  }
  .nd-table--tickets td {
    padding: 0 !important;
    border: none !important;
    white-space: normal !important;
  }
  .nd-table--tickets td.nd-td-triad {
    grid-column: 1;
    grid-row: 1;
  }
  .nd-table--tickets td.nd-td-protocol {
    grid-column: 2;
    grid-row: 1;
  }
  .nd-table--tickets td.nd-td-requester {
    grid-column: 3;
    grid-row: 1;
    font-size: 11.5px;
    color: var(--text-secondary);
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nd-table--tickets td.nd-td-requester .nd-caption {
    display: none !important;
  }
  .nd-table--tickets td.nd-td-status {
    grid-column: 4;
    grid-row: 1;
    text-align: right;
  }
  .nd-table--tickets td.nd-td-status .nd-caption {
    display: none !important;
  }
  .nd-table--tickets td.nd-td-subject {
    grid-column: 1/-1;
    grid-row: 2;
    font-size: 13.5px;
    line-height: 1.32;
    padding-top: 2px !important;
  }
  .nd-table--tickets td.nd-td-actions {
    display: none !important;
  }
}
/* Sentinela de Lazy Loading (Infinite Scroll) na Fila de Tickets */
.nd-lazy-sentinel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  margin-top: 10px;
  background-color: var(--surface-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}
.nd-lazy-sentinel:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}
.nd-lazy-sentinel__inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

:root,
:root[data-theme=light] {
  --bg-app: #F3F5F8;
  --bg-panel: #FFFFFF;
  --surface-card: #FFFFFF;
  --surface-raised: #F8FAFC;
  --surface-input: #FFFFFF;
  --surface-popover: #FFFFFF;
  --surface-hover: rgba(15, 23, 42, 0.04);
  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;
  --divider: #E2E8F0;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --radius-2xl: 12px;
  --sidebar-w: 224px;
  --topbar-h: 52px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 24px rgba(15, 23, 42, 0.12);
  --shadow-glow-blue: none;
  --ring: 0 0 0 2px rgba(21, 101, 255, 0.18);
}

:root[data-theme=dark],
html.theme-dark {
  --bg-app: #0B0F17;
  --bg-panel: #0F1623;
  --surface-card: #131B2E;
  --surface-raised: #172136;
  --surface-input: #0D1320;
  --surface-popover: #162033;
  --surface-hover: rgba(255, 255, 255, 0.045);
  --border-subtle: #1E293B;
  --border-strong: #334155;
  --divider: #1E293B;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.22);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.55);
  --shadow-glow-blue: none;
  --ring: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.nd-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

::selection {
  background-color: rgba(21, 101, 255, 0.16);
  color: var(--text-primary);
}

:root[data-theme=dark] ::selection,
html.theme-dark ::selection {
  background-color: rgba(56, 189, 248, 0.24);
  color: #F8FAFC;
}

body,
input,
textarea,
select {
  caret-color: var(--brand-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
.nd-page-header__title,
.nd-card__title {
  text-wrap: balance;
  letter-spacing: -0.015em;
}

p,
.nd-article-card__summary {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--brand-primary) !important;
  outline-offset: 2px !important;
}

.nd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
}
.nd-btn:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  box-shadow: none;
}
.nd-btn--primary {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-xs);
}
.nd-btn--primary:hover {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
  filter: none;
}
.nd-btn--primary:active {
  background: #083EAB;
  border-color: #083EAB;
  transform: translateY(1px);
}
.nd-btn--secondary {
  background-color: var(--surface-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.nd-btn--secondary:hover {
  background-color: var(--surface-raised);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}
.nd-btn--secondary:active {
  background-color: var(--surface-hover);
  transform: translateY(1px);
}
:root[data-theme=dark] .nd-btn--secondary {
  background-color: var(--surface-card);
  border-color: var(--border-strong);
}
:root[data-theme=dark] .nd-btn--secondary:hover {
  background-color: var(--surface-raised);
  border-color: var(--brand-primary-bright);
  color: var(--brand-primary-bright);
}
.nd-btn--ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.nd-btn--ghost:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}
.nd-btn--ghost:active {
  background-color: var(--surface-raised);
}
.nd-btn--danger {
  background-color: rgba(224, 50, 60, 0.1);
  color: var(--triad-urgente);
  border-color: rgba(224, 50, 60, 0.25);
}
.nd-btn--danger:hover {
  background-color: var(--triad-urgente);
  border-color: var(--triad-urgente);
  color: #FFFFFF;
}
.nd-btn--danger:active {
  background-color: #B91C1C;
  border-color: #B91C1C;
}
.nd-btn:disabled, .nd-btn.nd-btn--disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
  filter: grayscale(0.2) !important;
}
.nd-btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.nd-btn--loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: calc(50% - 8px);
  left: calc(50% - 8px);
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: nd-spin 600ms linear infinite;
}
.nd-btn--sm {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}
.nd-btn--lg {
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
  border-radius: var(--radius-md);
}
.nd-btn--icon-only {
  width: 36px;
  padding: 0;
}
.nd-btn--icon-only.nd-btn--sm {
  width: 30px;
}

@keyframes nd-spin {
  to {
    transform: rotate(360deg);
  }
}
.nd-badge,
.nd-status-badge,
.nd-triad-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.nd-badge--triad-1, .nd-badge--urgente, .nd-badge--critical,
.nd-status-badge--triad-1,
.nd-status-badge--urgente,
.nd-status-badge--critical,
.nd-triad-badge--triad-1,
.nd-triad-badge--urgente,
.nd-triad-badge--critical {
  background-color: rgba(224, 50, 60, 0.12);
  color: #C5221F;
  border-color: rgba(224, 50, 60, 0.22);
}
:root[data-theme=dark] .nd-badge--triad-1, :root[data-theme=dark] .nd-badge--urgente, :root[data-theme=dark] .nd-badge--critical,
:root[data-theme=dark] .nd-status-badge--triad-1,
:root[data-theme=dark] .nd-status-badge--urgente,
:root[data-theme=dark] .nd-status-badge--critical,
:root[data-theme=dark] .nd-triad-badge--triad-1,
:root[data-theme=dark] .nd-triad-badge--urgente,
:root[data-theme=dark] .nd-triad-badge--critical {
  color: #FCA5A5;
  background-color: rgba(224, 50, 60, 0.2);
  border-color: rgba(224, 50, 60, 0.35);
}
.nd-badge--triad-2, .nd-badge--importante, .nd-badge--in-progress, .nd-badge--new,
.nd-status-badge--triad-2,
.nd-status-badge--importante,
.nd-status-badge--in-progress,
.nd-status-badge--new,
.nd-triad-badge--triad-2,
.nd-triad-badge--importante,
.nd-triad-badge--in-progress,
.nd-triad-badge--new {
  background-color: rgba(21, 101, 255, 0.1);
  color: #0A4FD1;
  border-color: rgba(21, 101, 255, 0.2);
}
:root[data-theme=dark] .nd-badge--triad-2, :root[data-theme=dark] .nd-badge--importante, :root[data-theme=dark] .nd-badge--in-progress, :root[data-theme=dark] .nd-badge--new,
:root[data-theme=dark] .nd-status-badge--triad-2,
:root[data-theme=dark] .nd-status-badge--importante,
:root[data-theme=dark] .nd-status-badge--in-progress,
:root[data-theme=dark] .nd-status-badge--new,
:root[data-theme=dark] .nd-triad-badge--triad-2,
:root[data-theme=dark] .nd-triad-badge--importante,
:root[data-theme=dark] .nd-triad-badge--in-progress,
:root[data-theme=dark] .nd-triad-badge--new {
  color: #93C5FD;
  background-color: rgba(21, 101, 255, 0.2);
  border-color: rgba(21, 101, 255, 0.35);
}
.nd-badge--triad-3, .nd-badge--circunstancial, .nd-badge--waiting, .nd-badge--warning,
.nd-status-badge--triad-3,
.nd-status-badge--circunstancial,
.nd-status-badge--waiting,
.nd-status-badge--warning,
.nd-triad-badge--triad-3,
.nd-triad-badge--circunstancial,
.nd-triad-badge--waiting,
.nd-triad-badge--warning {
  background-color: rgba(232, 164, 0, 0.12);
  color: #78350F;
  border-color: rgba(232, 164, 0, 0.25);
}
:root[data-theme=dark] .nd-badge--triad-3, :root[data-theme=dark] .nd-badge--circunstancial, :root[data-theme=dark] .nd-badge--waiting, :root[data-theme=dark] .nd-badge--warning,
:root[data-theme=dark] .nd-status-badge--triad-3,
:root[data-theme=dark] .nd-status-badge--circunstancial,
:root[data-theme=dark] .nd-status-badge--waiting,
:root[data-theme=dark] .nd-status-badge--warning,
:root[data-theme=dark] .nd-triad-badge--triad-3,
:root[data-theme=dark] .nd-triad-badge--circunstancial,
:root[data-theme=dark] .nd-triad-badge--waiting,
:root[data-theme=dark] .nd-triad-badge--warning {
  color: #FCD34D;
  background-color: rgba(232, 164, 0, 0.18);
  border-color: rgba(232, 164, 0, 0.32);
}
.nd-badge--resolved, .nd-badge--done,
.nd-status-badge--resolved,
.nd-status-badge--done,
.nd-triad-badge--resolved,
.nd-triad-badge--done {
  background-color: rgba(22, 163, 74, 0.1);
  color: #15803D;
  border-color: rgba(22, 163, 74, 0.22);
}
:root[data-theme=dark] .nd-badge--resolved, :root[data-theme=dark] .nd-badge--done,
:root[data-theme=dark] .nd-status-badge--resolved,
:root[data-theme=dark] .nd-status-badge--done,
:root[data-theme=dark] .nd-triad-badge--resolved,
:root[data-theme=dark] .nd-triad-badge--done {
  color: #86EFAC;
  background-color: rgba(22, 163, 74, 0.18);
  border-color: rgba(22, 163, 74, 0.3);
}
.nd-badge--neutral, .nd-badge--cancelled,
.nd-status-badge--neutral,
.nd-status-badge--cancelled,
.nd-triad-badge--neutral,
.nd-triad-badge--cancelled {
  background-color: rgba(100, 116, 139, 0.1);
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}
:root[data-theme=dark] .nd-badge--neutral, :root[data-theme=dark] .nd-badge--cancelled,
:root[data-theme=dark] .nd-status-badge--neutral,
:root[data-theme=dark] .nd-status-badge--cancelled,
:root[data-theme=dark] .nd-triad-badge--neutral,
:root[data-theme=dark] .nd-triad-badge--cancelled {
  color: var(--text-secondary);
  background-color: rgba(148, 163, 184, 0.12);
}
.nd-badge--ai,
.nd-status-badge--ai,
.nd-triad-badge--ai {
  background: rgba(124, 58, 237, 0.12);
  color: #7C3AED;
  border: 1px solid rgba(124, 58, 237, 0.25);
}
:root[data-theme=dark] .nd-badge--ai,
:root[data-theme=dark] .nd-status-badge--ai,
:root[data-theme=dark] .nd-triad-badge--ai {
  color: #C4B5FD;
  background-color: rgba(124, 58, 237, 0.22);
  border-color: rgba(124, 58, 237, 0.35);
}

.nd-badge,
.nd-status-badge,
.nd-triad-badge,
.nd-glossary__count,
.nd-notif-bell__badge,
.nd-table td {
  font-variant-numeric: tabular-nums;
}

.nd-notif-bell__badge[hidden] {
  display: none !important;
}

.nd-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: none;
}
.nd-card__header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.nd-card__body {
  padding: 16px;
}
.nd-card__footer {
  padding: 10px 16px;
  background-color: var(--surface-raised);
  border-top: 1px solid var(--border-subtle);
  border-bottom-left-radius: calc(var(--radius-lg) - 1px);
  border-bottom-right-radius: calc(var(--radius-lg) - 1px);
}
.nd-card .nd-card {
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: none;
}

.nd-shell .nd-card,
.nd-shell .nd-table-wrap,
.nd-shell .nd-filter-bar {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}

.nd-table-wrap {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.nd-input,
.nd-select,
.nd-textarea,
.nd-dropdown__trigger,
.nd-smart-date__trigger {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-input);
  box-shadow: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.nd-input:hover,
.nd-select:hover,
.nd-textarea:hover,
.nd-dropdown__trigger:hover,
.nd-smart-date__trigger:hover {
  border-color: var(--border-strong);
}
.nd-input:focus, .nd-input:focus-visible,
.nd-select:focus,
.nd-select:focus-visible,
.nd-textarea:focus,
.nd-textarea:focus-visible,
.nd-dropdown__trigger:focus,
.nd-dropdown__trigger:focus-visible,
.nd-smart-date__trigger:focus,
.nd-smart-date__trigger:focus-visible {
  outline: none !important;
  border-color: var(--brand-primary);
  box-shadow: var(--ring);
}

.nd-dropdown__menu {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  background-color: var(--surface-popover);
}

.nd-glossary {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: 14px 18px;
}
.nd-glossary__toggle, .nd-glossary__mobile-toggle,
.nd-glossary [data-glossary-toggle] {
  display: none;
}
.nd-glossary__pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.nd-glossary__pill {
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 11px;
  gap: 6px;
  box-shadow: none;
}
.nd-glossary__pill--active {
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #FFFFFF !important;
  font-weight: 600;
  box-shadow: none !important;
}
.nd-glossary__pill--active .nd-glossary__count {
  background-color: rgba(0, 0, 0, 0.28) !important;
  color: #FFFFFF !important;
}
@media (max-width: 768px) {
  .nd-glossary {
    padding: 10px 12px;
  }
  .nd-glossary__header {
    margin-bottom: 0 !important;
  }
  .nd-glossary__header .nd-caption {
    display: none !important;
  }
  .nd-glossary__header:has([data-glossary-toggle]) {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }
  .nd-glossary__header:has([data-glossary-toggle]) .nd-glossary__heading,
  .nd-glossary__header:has([data-glossary-toggle]) .nd-glossary__title {
    display: none !important;
  }
  .nd-glossary__toggle, .nd-glossary__mobile-toggle,
  .nd-glossary [data-glossary-toggle] {
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background-color: var(--surface-card);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease;
  }
  .nd-glossary__toggle:hover, .nd-glossary__mobile-toggle:hover,
  .nd-glossary [data-glossary-toggle]:hover {
    border-color: var(--border-strong);
    background-color: var(--surface-hover);
  }
  .nd-glossary__toggle i, .nd-glossary__mobile-toggle i,
  .nd-glossary [data-glossary-toggle] i {
    font-size: 16px;
    color: var(--brand-primary);
    flex-shrink: 0;
  }
  .nd-glossary__toggle [data-glossary-active-label], .nd-glossary__mobile-toggle [data-glossary-active-label],
  .nd-glossary [data-glossary-toggle] [data-glossary-active-label] {
    color: var(--brand-primary);
    font-weight: 600;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  :root[data-theme=dark] .nd-glossary__toggle [data-glossary-active-label], :root[data-theme=dark] .nd-glossary__mobile-toggle [data-glossary-active-label],
  :root[data-theme=dark] .nd-glossary [data-glossary-toggle] [data-glossary-active-label] {
    color: #38BDF8;
  }
  .nd-glossary__pills {
    display: none !important;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .nd-glossary.nd-glossary--open .nd-glossary__pills {
    display: flex !important;
  }
  .nd-glossary__pill {
    width: 100%;
    min-height: 44px;
    justify-content: space-between;
    padding: 8px 12px;
  }
}

@media (max-width: 768px) {
  .nd-popover-trigger,
  .nd-btn--sm,
  .nd-input,
  .nd-dropdown__trigger {
    min-height: 44px !important;
    min-width: 44px !important;
  }
}
.nd-shell {
  min-height: 100vh;
  background-color: var(--bg-app);
  color: var(--text-primary);
}

.nd-main {
  background-color: var(--bg-app);
  min-width: 0;
}

.nd-content {
  padding: 20px 24px;
  max-width: 1560px;
}

.nd-topbar {
  height: 52px;
  min-height: 52px;
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 20px;
  gap: 16px;
}
.nd-topbar__left {
  min-width: 0;
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (min-width: 961px) {
  .nd-topbar__left .nd-brand__emblem {
    display: none;
  }
}
.nd-topbar__title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
  line-height: 1.25;
}
.nd-topbar__right {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.nd-topbar__right .nd-dropdown--compact .nd-dropdown__trigger {
  height: 32px;
  padding: 0 9px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  background-color: transparent;
  border: 1px solid var(--border-subtle);
}
.nd-topbar__right .nd-dropdown--compact .nd-dropdown__trigger:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-strong);
}
.nd-topbar__search {
  position: relative;
  width: 316px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nd-topbar__search .nd-input {
  height: 32px;
  width: 100%;
  padding-left: 30px;
  padding-right: 44px;
  font-size: 12.5px;
  border-radius: var(--radius-md);
  background-color: var(--bg-app);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  box-shadow: none;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}
.nd-topbar__search .nd-input::placeholder {
  color: var(--text-muted);
}
.nd-topbar__search .nd-input:hover {
  border-color: var(--border-strong);
}
.nd-topbar__search .nd-input:focus {
  background-color: var(--surface-input);
  border-color: var(--brand-primary);
  box-shadow: var(--ring);
  outline: none;
}
.nd-topbar__search > i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 120ms ease;
}
.nd-topbar__search:focus-within > i {
  color: var(--brand-primary);
}
.nd-topbar__search-kbd {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 19px;
  padding: 0 5px;
  border-radius: 4px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: opacity 120ms ease;
}
.nd-topbar__search:focus-within .nd-topbar__search-kbd {
  opacity: 0.45;
}

.nd-browser-notif-gate,
.nd-notif-bell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-md);
  background-color: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
  flex-shrink: 0;
}
.nd-browser-notif-gate:hover,
.nd-notif-bell:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.nd-browser-notif-gate:focus-visible,
.nd-notif-bell:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.nd-browser-notif-gate--granted {
  color: var(--status-done);
  background-color: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.25);
}
.nd-browser-notif-gate--granted:hover {
  background-color: rgba(22, 163, 74, 0.14);
  color: #15803D;
}
:root[data-theme=dark] .nd-browser-notif-gate--granted {
  color: #86EFAC;
  background-color: rgba(22, 163, 74, 0.16);
  border-color: rgba(22, 163, 74, 0.35);
}

.nd-notif-bell__badge[hidden] {
  display: none !important;
}

.nd-notif-bell__badge--new {
  background-color: #C81E2B !important;
  color: #FFFFFF !important;
}

.nd-notif-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  background-color: var(--surface-popover);
}

.nd-sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background-color: var(--bg-panel);
  border-right: 1px solid var(--border-subtle);
  height: 100vh;
  position: sticky;
  top: 0;
}
.nd-sidebar .nd-sidebar__brand {
  height: 52px;
  min-height: 52px;
  padding: 0 10px 0 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.nd-sidebar .nd-brand {
  gap: 9px;
}
.nd-sidebar .nd-brand__icon-3d {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: contain;
  flex-shrink: 0;
}
.nd-sidebar .nd-brand__wordmark {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}
.nd-sidebar .nd-sidebar__toggle-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--text-muted);
}
.nd-sidebar .nd-sidebar__toggle-btn i {
  font-size: 15px;
}
.nd-sidebar .nd-sidebar__toggle-btn:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}
.nd-sidebar .nd-sidebar__nav {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nd-sidebar .nd-sidebar__section {
  padding: 14px 10px 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
}
.nd-sidebar .nd-sidebar__section:first-child {
  padding-top: 4px;
}
:root[data-theme=dark] .nd-sidebar .nd-sidebar__section, html.theme-dark .nd-sidebar .nd-sidebar__section {
  color: #94A3B8;
}
.nd-sidebar .nd-sidebar__link {
  position: relative;
  height: 36px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.nd-sidebar .nd-sidebar__link::before {
  display: none !important;
  content: none !important;
}
.nd-sidebar .nd-sidebar__link .nd-sidebar__link-main {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.nd-sidebar .nd-sidebar__link .nd-sidebar__link-main span {
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nd-sidebar .nd-sidebar__link .nd-sidebar__link-main i {
  font-size: 16px;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #64748B;
  transition: color 120ms ease;
}
.nd-sidebar .nd-sidebar__link .nd-sidebar__ext-icon {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.75;
  flex-shrink: 0;
}
.nd-sidebar .nd-sidebar__link:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}
.nd-sidebar .nd-sidebar__link:hover .nd-sidebar__link-main span,
.nd-sidebar .nd-sidebar__link:hover .nd-sidebar__link-main i {
  color: var(--text-primary);
}
:root[data-theme=dark] .nd-sidebar .nd-sidebar__link, html.theme-dark .nd-sidebar .nd-sidebar__link {
  color: #CBD5E1;
}
:root[data-theme=dark] .nd-sidebar .nd-sidebar__link .nd-sidebar__link-main span, html.theme-dark .nd-sidebar .nd-sidebar__link .nd-sidebar__link-main span {
  color: #CBD5E1;
}
:root[data-theme=dark] .nd-sidebar .nd-sidebar__link .nd-sidebar__link-main i, html.theme-dark .nd-sidebar .nd-sidebar__link .nd-sidebar__link-main i {
  color: #94A3B8;
}
:root[data-theme=dark] .nd-sidebar .nd-sidebar__link:hover, html.theme-dark .nd-sidebar .nd-sidebar__link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #F8FAFC;
}
:root[data-theme=dark] .nd-sidebar .nd-sidebar__link:hover .nd-sidebar__link-main span,
:root[data-theme=dark] .nd-sidebar .nd-sidebar__link:hover .nd-sidebar__link-main i, html.theme-dark .nd-sidebar .nd-sidebar__link:hover .nd-sidebar__link-main span,
html.theme-dark .nd-sidebar .nd-sidebar__link:hover .nd-sidebar__link-main i {
  color: #F8FAFC;
}
.nd-sidebar .nd-sidebar__link--active {
  background-color: rgba(21, 101, 255, 0.08) !important;
  border-color: rgba(21, 101, 255, 0.18) !important;
  color: #0A4FD1 !important;
  font-weight: 600 !important;
}
.nd-sidebar .nd-sidebar__link--active .nd-sidebar__link-main span,
.nd-sidebar .nd-sidebar__link--active .nd-sidebar__link-main i {
  color: #0A4FD1 !important;
}
:root[data-theme=dark] .nd-sidebar .nd-sidebar__link--active, html.theme-dark .nd-sidebar .nd-sidebar__link--active {
  background-color: rgba(21, 101, 255, 0.18) !important;
  border-color: rgba(56, 189, 248, 0.28) !important;
  color: #F8FAFC !important;
}
:root[data-theme=dark] .nd-sidebar .nd-sidebar__link--active .nd-sidebar__link-main span, html.theme-dark .nd-sidebar .nd-sidebar__link--active .nd-sidebar__link-main span {
  color: #F8FAFC !important;
}
:root[data-theme=dark] .nd-sidebar .nd-sidebar__link--active .nd-sidebar__link-main i, html.theme-dark .nd-sidebar .nd-sidebar__link--active .nd-sidebar__link-main i {
  color: #38BDF8 !important;
}
.nd-sidebar .nd-sidebar__footer {
  padding: 10px 8px;
  gap: 6px;
  border-top: 1px solid var(--border-subtle);
}
.nd-sidebar .nd-sidebar__theme-btn,
.nd-sidebar .nd-sidebar__logout-btn {
  height: 34px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: transparent;
  color: var(--text-secondary);
  justify-content: flex-start;
  gap: 9px;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.nd-sidebar .nd-sidebar__theme-btn i,
.nd-sidebar .nd-sidebar__logout-btn i {
  font-size: 15px;
  width: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nd-sidebar .nd-sidebar__theme-btn:hover,
.nd-sidebar .nd-sidebar__logout-btn:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

html[data-sidebar=collapsed] .nd-sidebar {
  width: 72px;
  min-width: 72px;
}
html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__brand {
  min-height: 52px;
  height: auto;
  padding: 8px 6px;
  flex-direction: column;
  gap: 6px;
}
html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__link {
  height: auto;
  min-height: 44px;
  padding: 6px 4px;
  justify-content: center;
}
html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__theme-btn,
html[data-sidebar=collapsed] .nd-sidebar .nd-sidebar__logout-btn {
  justify-content: center;
  padding: 6px 4px;
}

.nd-portal__header {
  height: 52px;
  min-height: 52px;
  padding: 0 24px;
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-subtle);
}
.nd-portal__header .nd-brand {
  gap: 9px;
}
.nd-portal__header .nd-brand__icon-3d {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: contain;
}
.nd-portal__header .nd-brand__wordmark {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.nd-portal__header .nd-brand__badge {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}
.nd-portal__header .nd-page-header__actions {
  gap: 8px;
}
.nd-portal__header .nd-page-header__actions .nd-btn--sm,
.nd-portal__header .nd-page-header__actions .nd-dropdown--compact .nd-dropdown__trigger {
  height: 32px;
  border-radius: var(--radius-md);
}

@media (max-width: 960px) {
  .nd-topbar {
    height: 52px;
    min-height: 52px;
    padding: 0 12px;
    gap: 8px;
  }
  .nd-topbar__left {
    gap: 8px;
  }
  .nd-topbar__title {
    font-size: 14px;
    max-width: 150px;
  }
  .nd-topbar .nd-mobile-menu-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius-md);
    font-size: 20px;
  }
  .nd-topbar .nd-notif-bell,
  .nd-topbar .nd-browser-notif-gate {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .nd-topbar__right .nd-dropdown--compact .nd-dropdown__trigger {
    height: 44px;
    min-height: 44px;
    min-width: 44px;
  }
  .nd-mobile-close-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    font-size: 20px !important;
  }
  .nd-sidebar .nd-sidebar__link {
    height: 44px;
    min-height: 44px;
    padding: 0 12px;
  }
  .nd-sidebar .nd-sidebar__theme-btn,
  .nd-sidebar .nd-sidebar__logout-btn {
    height: 44px !important;
    min-height: 44px !important;
    width: 100% !important;
    font-size: 13.5px !important;
  }
}
@media (max-width: 768px) {
  a.nd-brand {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
:root[data-theme=dark] .nd-ticket-header__protocol {
  color: #F8FAFC !important;
  background-color: rgba(21, 101, 255, 0.28) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
}

/* ============================================================================
   1. Container Principal & Topbar do Portal (Touch Targets >= 44x44px)
   ============================================================================ */
.nd-portal__container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px 96px;
  position: relative;
}
@media (max-width: 768px) {
  .nd-portal__container {
    padding: 14px 16px 88px;
  }
}

.nd-portal__header {
  height: var(--topbar-h, 56px);
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--surface-card);
  padding: 0 24px;
}
@media (max-width: 768px) {
  .nd-portal__header {
    height: auto;
    min-height: 56px;
    padding: 8px 16px;
    gap: 8px;
  }
  .nd-portal__header .nd-page-header__actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .nd-portal__header .nd-page-header__actions .nd-btn,
  .nd-portal__header .nd-page-header__actions select[data-lang-switcher],
  .nd-portal__header .nd-page-header__actions button[data-action=toggle-theme],
  .nd-portal__header .nd-page-header__actions a.nd-btn,
  .nd-portal__header .nd-page-header__actions .nd-dropdown-compact,
  .nd-portal__header .nd-page-header__actions .nd-dropdown--compact .nd-dropdown__trigger {
    min-height: 44px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
  }
}

/* ============================================================================
   2. Portal Home: Hero Editorial (Sem "Caixão"), Barra de Ações e Glossário
   ============================================================================ */
.nd-portal__hero {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 6px 0 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.nd-portal__hero-copy {
  flex: 1 1 320px;
  min-width: 0;
}
.nd-portal__hero h1 {
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.22;
  color: var(--text-primary);
  margin: 0;
}
.nd-portal__hero-sub {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 6px 0 0;
  max-width: 62ch;
}
@media (max-width: 768px) {
  .nd-portal__hero {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 2px 0 14px;
    margin-bottom: 14px;
  }
  .nd-portal__hero-copy {
    flex: none;
    width: 100%;
  }
  .nd-portal__hero-sub {
    font-size: 12.5px;
    margin-top: 4px;
  }
}

.nd-portal__search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 360px;
  max-width: 460px;
  min-width: 0 !important;
}
.nd-portal__search .nd-input {
  height: 42px;
  min-height: 42px;
  border-radius: 10px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  padding: 0 14px;
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color 140ms ease, box-shadow 140ms ease;
  flex: 1;
  min-width: 0;
}
.nd-portal__search .nd-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(21, 101, 255, 0.14);
  outline: none;
}
.nd-portal__search .nd-btn--primary {
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 13.5px;
  padding: 0 18px;
  height: 42px;
  min-height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: none;
}
.nd-portal__search .nd-btn--primary:hover {
  background: var(--brand-primary-dark, #0A4FD1);
  border-color: var(--brand-primary-dark, #0A4FD1);
}
@media (max-width: 768px) {
  .nd-portal__search {
    flex: none;
    flex-direction: row !important;
    width: 100%;
    max-width: 100%;
  }
  .nd-portal__search .nd-input {
    height: 44px;
    min-height: 44px;
    font-size: 14px;
  }
  .nd-portal__search .nd-btn--primary {
    height: 44px;
    min-height: 44px;
    width: auto !important;
    padding: 0 16px;
  }
}

/* Barra de Acesso Rápido Compacta (Abrir Chamado / Consultar Chamado) */
.nd-portal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 680px) {
  .nd-portal-actions {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 14px;
  }
}

.nd-portal-action-card {
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-card);
  box-shadow: none;
  padding: 12px 16px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 140ms ease, background-color 140ms ease;
  transform: none !important;
}
.nd-portal-action-card:hover {
  border-color: var(--border-strong);
  background-color: var(--surface-hover);
  box-shadow: none;
  transform: none !important;
}
.nd-portal-action-card:focus-visible {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: var(--ring);
}
.nd-portal-action-card__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.nd-portal-action-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(21, 101, 255, 0.1);
  color: var(--brand-primary);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 140ms ease, color 140ms ease;
}
.nd-portal-action-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 2px;
  line-height: 1.25;
}
.nd-portal-action-card__desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.35;
}
.nd-portal-action-card__caret {
  font-size: 15px;
  color: var(--text-muted);
  transition: transform 160ms ease, color 160ms ease;
  flex-shrink: 0;
}
.nd-portal-action-card--active {
  border-color: var(--brand-primary);
  background-color: var(--surface-hover);
  box-shadow: none;
}
.nd-portal-action-card--active .nd-portal-action-card__icon {
  background: var(--brand-primary);
  color: #FFFFFF;
}
.nd-portal-action-card--active .nd-portal-action-card__caret {
  transform: rotate(180deg);
  color: var(--brand-primary);
}
@media (max-width: 768px) {
  .nd-portal-action-card {
    padding: 10px 14px;
    min-height: 52px;
  }
  .nd-portal-action-card__desc {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

:root[data-theme=dark] .nd-portal-action-card:not(.nd-portal-action-card--active) .nd-portal-action-card__icon,
.theme-dark .nd-portal-action-card:not(.nd-portal-action-card--active) .nd-portal-action-card__icon {
  background: rgba(59, 130, 246, 0.18);
  color: #60A5FA;
}

/* Gavetas de Abertura e Consulta de Chamado */
.nd-portal-drawer {
  margin-bottom: 20px;
}
.nd-portal-drawer .nd-card {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  box-shadow: none;
  background-color: var(--surface-card);
}
.nd-portal-drawer .nd-card__header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.nd-portal-drawer .nd-card__body {
  padding: 18px;
}

/* ============================================================================
   2.1 Glossário Editorial & Menu Hambúrguer de Categorias no Mobile
   ============================================================================ */
.nd-portal .nd-glossary {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 18px;
}
.nd-portal .nd-glossary .nd-glossary__header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.nd-portal .nd-glossary .nd-glossary__header .nd-caption {
  color: #475569 !important;
}
.nd-portal .nd-glossary .nd-glossary__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}
.nd-portal .nd-glossary .nd-glossary__title {
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.nd-portal .nd-glossary .nd-glossary__title i {
  color: var(--brand-primary);
  font-size: 16px;
}
.nd-portal .nd-glossary .nd-glossary__mobile-toggle {
  display: none !important;
}
.nd-portal .nd-glossary .nd-glossary__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nd-portal .nd-glossary .nd-glossary__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-card);
  color: var(--text-secondary);
  box-shadow: none;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}
.nd-portal .nd-glossary .nd-glossary__pill:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background-color: var(--surface-hover);
}
.nd-portal .nd-glossary .nd-glossary__pill:focus-visible {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: var(--ring);
}
.nd-portal .nd-glossary .nd-glossary__pill--active {
  background: var(--brand-primary) !important;
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #FFFFFF !important;
  font-weight: 600;
  box-shadow: none !important;
}
.nd-portal .nd-glossary .nd-glossary__pill--active .nd-glossary__count {
  background-color: rgba(0, 0, 0, 0.28) !important;
  color: #FFFFFF !important;
}
.nd-portal .nd-glossary .nd-glossary__count {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 1px 6px;
  border-radius: 6px;
  background-color: var(--surface-raised);
  color: #334155;
}
@media (max-width: 768px) {
  .nd-portal .nd-glossary {
    margin-bottom: 14px;
  }
  .nd-portal .nd-glossary .nd-glossary__header {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 0 !important;
  }
  .nd-portal .nd-glossary .nd-glossary__header .nd-caption {
    display: none !important;
  }
  .nd-portal .nd-glossary .nd-glossary__heading {
    display: none !important;
  }
  .nd-portal .nd-glossary .nd-glossary__mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background-color: var(--surface-card);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: border-color 140ms ease, background-color 140ms ease;
  }
  .nd-portal .nd-glossary .nd-glossary__mobile-toggle > i:first-child {
    color: var(--brand-primary);
    font-size: 18px;
    flex-shrink: 0;
  }
  .nd-portal .nd-glossary .nd-glossary__mobile-toggle > span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
  }
  .nd-portal .nd-glossary .nd-glossary__mobile-toggle > span strong {
    color: var(--text-primary);
    font-weight: 600;
  }
  .nd-portal .nd-glossary .nd-glossary__mobile-toggle .nd-glossary__caret {
    font-size: 15px;
    color: var(--text-muted);
    transition: transform 160ms ease, color 160ms ease;
    flex-shrink: 0;
  }
  .nd-portal .nd-glossary .nd-glossary__mobile-toggle:focus-visible {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: var(--ring);
  }
  .nd-portal .nd-glossary .nd-glossary__pills {
    display: none !important;
  }
  .nd-portal .nd-glossary.nd-glossary--open .nd-glossary__mobile-toggle {
    border-color: var(--brand-primary);
  }
  .nd-portal .nd-glossary.nd-glossary--open .nd-glossary__mobile-toggle .nd-glossary__caret {
    transform: rotate(180deg);
    color: var(--brand-primary);
  }
  .nd-portal .nd-glossary.nd-glossary--open .nd-glossary__pills {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 8px;
    padding: 8px;
    background-color: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
  }
  .nd-portal .nd-glossary.nd-glossary--open .nd-glossary__pill {
    min-height: 44px !important;
    width: 100%;
    justify-content: flex-start;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13.5px;
  }
  .nd-portal .nd-glossary.nd-glossary--open .nd-glossary__pill .nd-glossary__count {
    margin-left: auto;
  }
}

/* ============================================================================
   2.2 Grade Editorial de Artigos (Bordas 1px, Raio 10px, Zero Poluição)
   ============================================================================ */
.nd-portal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 640px) {
  .nd-portal__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.nd-article-card {
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-card);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transition: border-color 140ms ease;
  overflow: hidden;
  transform: none !important;
}
.nd-article-card__cover-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  height: 156px;
  max-height: 156px;
  overflow: hidden;
  position: relative;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border-subtle);
}
.nd-article-card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}
.nd-article-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 6px;
  background-color: rgba(15, 23, 42, 0.82);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nd-article-card:hover {
  border-color: var(--border-strong);
  box-shadow: none;
  transform: none !important;
}
.nd-article-card:hover .nd-article-card__cover {
  transform: scale(1.015);
}
.nd-article-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nd-article-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text-primary);
}
.nd-article-card__title a {
  color: inherit;
  text-decoration: none;
}
.nd-article-card__title a:hover {
  color: var(--brand-primary);
}
.nd-article-card__summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nd-article-card__tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nd-article-card__footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border-subtle);
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #475569;
}
.nd-article-card__footer .nd-caption {
  color: #475569;
}
.nd-article-card {
  /* Card Destaque Horizontal Refinado */
}
.nd-article-card--featured {
  grid-column: 1/-1;
  display: grid !important;
  grid-template-columns: 360px 1fr !important;
  grid-template-rows: 1fr auto !important;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  box-shadow: none;
  min-height: 216px;
  max-height: 252px;
}
.nd-article-card--featured .nd-article-card__cover-wrap {
  grid-row: 1/-1;
  width: 100% !important;
  height: 100% !important;
  max-height: 252px !important;
  min-height: 216px;
  border-bottom: none;
  border-right: 1px solid var(--border-subtle);
}
.nd-article-card--featured .nd-article-card__body {
  grid-column: 2;
  padding: 20px 24px 12px;
  justify-content: center;
  gap: 8px;
}
.nd-article-card--featured .nd-article-card__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 2px;
}
.nd-article-card--featured .nd-article-card__summary {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 8px;
  -webkit-line-clamp: 2;
}
.nd-article-card--featured .nd-article-card__footer {
  grid-column: 2;
  border-top: 1px solid var(--border-subtle);
  padding: 10px 24px;
}
@media (max-width: 860px) {
  .nd-article-card--featured {
    display: flex !important;
    flex-direction: column !important;
    max-height: none;
    min-height: 0;
  }
  .nd-article-card--featured .nd-article-card__cover-wrap {
    flex: none;
    width: 100% !important;
    height: 164px !important;
    min-height: 0;
    max-height: 164px !important;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nd-article-card--featured .nd-article-card__body {
    padding: 14px 16px 10px;
  }
  .nd-article-card--featured .nd-article-card__title {
    font-size: 16.5px;
  }
  .nd-article-card--featured .nd-article-card__footer {
    padding: 10px 16px;
  }
}

/* ============================================================================
   3. Acompanhar Chamado (Track.cshtml): Header, Stepper e Conversa Limpa
   ============================================================================ */
.nd-portal .nd-ticket-header {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px 22px;
  box-shadow: none;
  gap: 10px;
}
.nd-portal .nd-ticket-header__protocol {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-raised);
  color: var(--text-primary);
}
.nd-portal .nd-ticket-header__subject {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 2px 0;
}
.nd-portal .nd-ticket-header__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}
.nd-portal .nd-ticket-header__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 600px) {
  .nd-portal .nd-ticket-header {
    padding: 14px 16px;
  }
  .nd-portal .nd-ticket-header__subject {
    font-size: 16.5px;
  }
  .nd-portal .nd-ticket-header .nd-btn {
    min-height: 44px;
  }
}
.nd-portal .nd-card {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  box-shadow: none;
  background-color: var(--surface-card);
}

.nd-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px 24px;
  margin-bottom: 18px;
  box-shadow: none;
}
.nd-stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}
.nd-stepper__step--active .nd-stepper__indicator {
  background-color: var(--brand-primary);
  color: #FFFFFF !important;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(21, 101, 255, 0.16);
}
.nd-stepper__step--active .nd-stepper__title {
  color: var(--brand-primary) !important;
  font-weight: 600;
}
.nd-stepper__step--completed .nd-stepper__indicator {
  background-color: #16A34A;
  color: #FFFFFF !important;
  border-color: #16A34A;
}
.nd-stepper__step--completed .nd-stepper__title {
  color: var(--text-primary) !important;
  font-weight: 600;
}
.nd-stepper__indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--border-strong);
  background-color: var(--surface-raised);
  color: var(--text-secondary);
  transition: all 140ms ease;
}
.nd-stepper__title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
}
.nd-stepper__line {
  flex: 1;
  height: 1px;
  background-color: var(--border-strong);
  margin: 0 12px;
  position: relative;
  top: -11px;
  z-index: 1;
}
.nd-stepper__line--completed {
  background-color: #16A34A;
}
@media (max-width: 600px) {
  .nd-stepper {
    padding: 12px 14px;
  }
  .nd-stepper__title {
    font-size: 11px;
  }
  .nd-stepper__indicator {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .nd-stepper__line {
    margin: 0 6px;
    top: -10px;
  }
}

.nd-portal .nd-message {
  border: 1px solid var(--border-subtle) !important;
  border-left: 1px solid var(--border-subtle) !important;
  border-radius: 10px;
  padding: 16px 18px;
  background-color: var(--surface-card);
  margin-bottom: 10px;
  box-shadow: none;
}
.nd-portal .nd-message--inbound {
  background-color: var(--surface-card);
}
.nd-portal .nd-message--outbound {
  background-color: var(--surface-raised);
}
.nd-portal .nd-message__header {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.nd-portal .nd-message__avatar {
  background: #0F172A !important;
  background-color: #0F172A !important;
  color: #FFFFFF !important;
  font-weight: 700;
}
.nd-portal .nd-message--outbound .nd-message__avatar {
  background: #0A4FD1 !important;
  background-color: #0A4FD1 !important;
  color: #FFFFFF !important;
}
.nd-portal .nd-message__role {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background-color: #F1F5F9;
  border: 1px solid var(--border-subtle);
  color: #1E293B !important;
}
.nd-portal .nd-message--outbound .nd-message__role {
  background-color: rgba(21, 101, 255, 0.08);
  border-color: rgba(21, 101, 255, 0.24);
  color: #0A4FD1 !important;
}
.nd-portal .nd-message__time {
  font-variant-numeric: tabular-nums;
  color: #475569 !important;
}

:root[data-theme=dark] .nd-portal .nd-glossary .nd-glossary__header .nd-caption,
.theme-dark .nd-portal .nd-glossary .nd-glossary__header .nd-caption {
  color: #CBD5E1 !important;
}
:root[data-theme=dark] .nd-portal .nd-glossary .nd-glossary__pill:not(.nd-glossary__pill--active) .nd-glossary__count,
.theme-dark .nd-portal .nd-glossary .nd-glossary__pill:not(.nd-glossary__pill--active) .nd-glossary__count {
  background-color: #1E293B;
  color: #E2E8F0;
}
:root[data-theme=dark] .nd-article-card__footer,
:root[data-theme=dark] .nd-article-card__footer .nd-caption,
.theme-dark .nd-article-card__footer,
.theme-dark .nd-article-card__footer .nd-caption {
  color: #CBD5E1;
}
:root[data-theme=dark] .nd-stepper__indicator,
.theme-dark .nd-stepper__indicator {
  color: #E2E8F0 !important;
  border-color: var(--border-strong);
  background-color: var(--surface-raised);
}
:root[data-theme=dark] .nd-stepper__step:not(:root[data-theme=dark] .nd-stepper__step--active,
.theme-dark .nd-stepper__step--active):not(:root[data-theme=dark] .nd-stepper__step--completed,
.theme-dark .nd-stepper__step--completed) .nd-stepper__title,
.theme-dark .nd-stepper__step:not(:root[data-theme=dark] .nd-stepper__step--active,
.theme-dark .nd-stepper__step--active):not(:root[data-theme=dark] .nd-stepper__step--completed,
.theme-dark .nd-stepper__step--completed) .nd-stepper__title {
  color: #CBD5E1 !important;
}
:root[data-theme=dark] .nd-stepper__step--active .nd-stepper__title,
.theme-dark .nd-stepper__step--active .nd-stepper__title {
  color: #60A5FA !important;
}
:root[data-theme=dark] .nd-portal .nd-message__avatar,
.theme-dark .nd-portal .nd-message__avatar {
  background: #1E293B !important;
  background-color: #1E293B !important;
  color: #F8FAFC !important;
  border: 1px solid #334155;
}
:root[data-theme=dark] .nd-portal .nd-message--outbound .nd-message__avatar,
.theme-dark .nd-portal .nd-message--outbound .nd-message__avatar {
  background: #1565FF !important;
  background-color: #1565FF !important;
  color: #FFFFFF !important;
  border: none;
}
:root[data-theme=dark] .nd-portal .nd-message__role,
.theme-dark .nd-portal .nd-message__role {
  background-color: #1E293B;
  border-color: #334155;
  color: #E2E8F0 !important;
}
:root[data-theme=dark] .nd-portal .nd-message--outbound .nd-message__role,
.theme-dark .nd-portal .nd-message--outbound .nd-message__role {
  background-color: rgba(59, 130, 246, 0.18);
  border-color: rgba(96, 165, 250, 0.35);
  color: #93C5FD !important;
}
:root[data-theme=dark] .nd-portal .nd-message__time,
.theme-dark .nd-portal .nd-message__time {
  color: #CBD5E1 !important;
}
:root[data-theme=dark] .nd-portal .nd-ticket-header__meta span,
.theme-dark .nd-portal .nd-ticket-header__meta span {
  color: #CBD5E1;
}
:root[data-theme=dark] .nd-portal .nd-ticket-header__meta span strong,
.theme-dark .nd-portal .nd-ticket-header__meta span strong {
  color: #F8FAFC;
}

/* ============================================================================
   4. Pesquisa CSAT (Csat.cshtml): Cartão Enxuto e Estrelas 1-Toque
   ============================================================================ */
.nd-csat,
.nd-csat-card {
  max-width: 460px;
  margin: 36px auto;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 28px 26px;
  box-shadow: none;
  text-align: left;
}
.nd-csat .nd-btn,
.nd-csat-card .nd-btn {
  min-height: 44px !important;
}
@media (max-width: 480px) {
  .nd-csat,
  .nd-csat-card {
    margin: 20px auto;
    padding: 22px 18px;
  }
}

.nd-csat select.nd-hidden,
.nd-csat .nd-select-native + .nd-dropdown,
#csat-rating-select + .nd-dropdown,
.nd-csat .nd-dropdown {
  display: none !important;
}

.nd-csat__header {
  text-align: center;
  margin-bottom: 20px;
}
.nd-csat__header .nd-page-header__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 10px 0 6px;
}

.nd-csat__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: rgba(232, 164, 0, 0.14);
  color: #D97706;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.nd-csat__subtitle {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
}

.nd-rating-group {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 10px 0 6px;
}

.nd-rating-btn {
  width: 100%;
  height: 52px;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-raised);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}
.nd-rating-btn i {
  font-size: 18px;
}
.nd-rating-btn__label {
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.nd-rating-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background-color: var(--surface-hover);
}
.nd-rating-btn:focus-visible {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: var(--ring);
}
.nd-rating-btn--selected {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFFFFF;
  box-shadow: none;
}
.nd-rating-btn--selected i {
  color: #FACC15;
}
.nd-rating-btn--selected:hover {
  background-color: var(--brand-primary-dark, #0A4FD1);
  border-color: var(--brand-primary-dark, #0A4FD1);
  color: #FFFFFF;
}

.nd-csat__scale-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #475569;
  margin-bottom: 14px;
}

:root[data-theme=dark] .nd-csat__scale-labels,
.theme-dark .nd-csat__scale-labels {
  color: #CBD5E1;
}

/* ============================================================================
   5. Login Institucional de Agente (Login.cshtml)
   ============================================================================ */
.nd-auth-card {
  max-width: 420px;
  margin: 48px auto;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: none;
  text-align: center;
}
.nd-auth-card__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.nd-auth-card .nd-brand__wordmark {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.nd-auth-card h1,
.nd-auth-card .nd-page-header__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.nd-auth-card__subtitle {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 22px;
}
.nd-auth-card .nd-card__body {
  padding: 0;
}
.nd-auth-card .nd-btn {
  min-height: 44px;
  border-radius: 8px;
  justify-content: center;
}
.nd-auth-card__footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.nd-auth-card__footer i {
  color: var(--brand-primary);
  font-size: 14px;
}
@media (max-width: 480px) {
  .nd-auth-card {
    margin: 24px auto;
    padding: 24px 18px;
  }
}

/* ============================================================================
   6. Widget Chatbot Mentor IA: Ancoragem Limpa
   ============================================================================ */
.nd-floating-chatbot {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 50 !important;
}
.nd-floating-chatbot__fab {
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 9999px;
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 140ms ease;
}
.nd-floating-chatbot__fab:hover {
  background: var(--brand-primary-dark, #0A4FD1);
  transform: none;
}
.nd-floating-chatbot__window {
  position: fixed;
  right: 24px;
  bottom: 78px;
  z-index: 51;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}
@media (max-width: 480px) {
  .nd-floating-chatbot {
    right: 14px !important;
    bottom: 14px !important;
  }
  .nd-floating-chatbot__window {
    right: 12px;
    left: 12px;
    bottom: 66px;
    width: auto;
    max-height: 75vh;
  }
}

/* ============================================================================
   7. Mobile Touch Targets >= 44x44px (WCAG 2.5.8 — <= 768px)
   ============================================================================ */
@media (max-width: 768px) {
  .nd-portal .nd-article-card__title a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .nd-portal .nd-btn,
  .nd-portal .nd-btn--sm,
  .nd-portal button[type=submit],
  .nd-portal .nd-input,
  .nd-portal .nd-dropdown__trigger,
  .nd-portal .nd-dropdown-compact {
    min-height: 44px !important;
  }
  .nd-portal .nd-editor__tool-btn,
  .nd-portal .nd-popover-trigger {
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .nd-portal .nd-date-triple__preset-btn {
    min-height: 44px !important;
    display: inline-flex;
    align-items: center;
  }
}
.nd-article {
  max-width: 780px;
  margin: 0 auto 3.5rem;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: var(--shadow-xs);
  position: relative;
}
@media (max-width: 768px) {
  .nd-article {
    padding: 24px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
  }
}

.nd-article__breadcrumb {
  max-width: 68ch;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
  font-weight: 500;
}
.nd-article__breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 150ms ease;
}
@media (max-width: 768px) {
  .nd-article__breadcrumb a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
  }
}
.nd-article__breadcrumb a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nd-article__breadcrumb a:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 3px;
}
.nd-article__breadcrumb .ph {
  font-size: 11px;
  color: var(--text-muted);
}
.nd-article__breadcrumb span {
  color: var(--text-secondary);
  font-weight: 600;
}

.nd-article__header {
  max-width: 68ch;
  margin: 0 auto 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.nd-article__title {
  font-size: 2rem;
  line-height: 1.22;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0 0 12px;
}
@media (max-width: 768px) {
  .nd-article__title {
    font-size: 1.5rem;
    line-height: 1.28;
  }
}

.nd-article__lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
  margin: 0 0 16px;
  text-wrap: pretty;
}
@media (max-width: 768px) {
  .nd-article__lead {
    font-size: 0.96875rem;
  }
}

.nd-article__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
  font-variant-numeric: tabular-nums;
}
.nd-article__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nd-article__meta .nd-article__meta-sep {
  color: var(--border-strong);
  user-select: none;
}
@media (max-width: 640px) {
  .nd-article__meta .nd-article__meta-sep {
    display: none;
  }
}
.nd-article__meta .ph {
  font-size: 15px;
  color: var(--text-muted);
}
.nd-article__meta strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.nd-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.nd-article__tags .nd-tag-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.nd-article__cover-figure {
  max-width: 68ch;
  margin: 0 auto 28px;
}

.nd-article__cover-hero {
  width: 100%;
  max-height: 300px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 0;
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  display: block;
}
@media (max-width: 768px) {
  .nd-article__cover-hero {
    max-height: 210px;
  }
}

.nd-article__content {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.nd-article__content p {
  margin: 0 0 1.25rem;
  color: var(--text-primary);
}
.nd-article__content h2,
.nd-article__content h3,
.nd-article__content h4 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.32;
}
.nd-article__content h2 {
  font-size: 1.375rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.nd-article__content h3 {
  font-size: 1.15rem;
}
.nd-article__content ul,
.nd-article__content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}
.nd-article__content ul li,
.nd-article__content ol li {
  margin-bottom: 0.55rem;
  line-height: 1.68;
  color: var(--text-primary);
}
.nd-article__content ul li strong,
.nd-article__content ol li strong {
  color: var(--text-primary);
  font-weight: 600;
}
.nd-article__content blockquote {
  margin: 1.5rem 0;
  padding: 14px 18px;
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-style: normal;
  color: var(--text-secondary);
}
.nd-article__content code {
  font-family: var(--font-mono, monospace);
  font-size: 0.88em;
  padding: 2px 6px;
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}
.nd-article__content pre {
  margin: 1.5rem 0;
  padding: 16px;
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
}
.nd-article__content pre code {
  padding: 0;
  background: transparent;
  border: none;
}
.nd-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
}
.nd-article__content .nd-kb-chart-box,
.nd-article__content .nd-kb-visual-card {
  background: var(--surface-raised) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
.nd-article__content .nd-kb-author-hero {
  background: var(--surface-raised) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 8px !important;
  padding: 18px 20px !important;
  box-shadow: none !important;
  margin: 1.5rem 0 !important;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.nd-article__content .nd-kb-author-hero__photo,
.nd-article__content .nd-kb-author-hero .nd-kb-author-hero__photo {
  width: 96px !important;
  height: 96px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  border: 1px solid var(--border-subtle) !important;
  margin: 0 !important;
  flex-shrink: 0;
}
.nd-article__content .nd-kb-author-hero__info,
.nd-article__content .nd-kb-author-hero .nd-kb-author-hero__info {
  flex: 1;
  min-width: 220px;
}
.nd-article__content .nd-kb-author-hero__info h3,
.nd-article__content .nd-kb-author-hero .nd-kb-author-hero__info h3 {
  margin: 6px 0 6px !important;
  font-size: 1.15rem;
}
.nd-article__content .nd-kb-author-hero__info p,
.nd-article__content .nd-kb-author-hero .nd-kb-author-hero__info p {
  margin: 0 !important;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.nd-article__content .nd-kb-cta-banner {
  background: var(--surface-raised) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 8px !important;
  padding: 16px 20px !important;
  box-shadow: none !important;
  margin: 1.5rem 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.nd-article__content .nd-kb-cta-banner p {
  margin: 4px 0 0 !important;
  font-size: 13px;
  color: var(--text-secondary);
}
.nd-article__content .nd-kb-cta-banner a,
.nd-article__content .nd-kb-cta-banner .nd-btn {
  border-radius: 6px;
}
@media (max-width: 768px) {
  .nd-article__content .nd-kb-cta-banner a,
  .nd-article__content .nd-kb-cta-banner .nd-btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
}
.nd-article__content .nd-kb-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.nd-article__content .nd-kb-book-card {
  background: var(--surface-raised) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 8px !important;
  padding: 16px !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nd-article__content .nd-kb-book-card__cover,
.nd-article__content .nd-kb-book-card .nd-kb-book-card__cover {
  width: 104px;
  height: 152px;
  object-fit: contain;
  margin: 0 auto !important;
  border-radius: 6px;
  border: none;
}
.nd-article__content .nd-kb-book-card__body,
.nd-article__content .nd-kb-book-card .nd-kb-book-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.nd-article__content .nd-kb-book-card__body h4,
.nd-article__content .nd-kb-book-card .nd-kb-book-card__body h4 {
  margin: 4px 0 0 !important;
  font-size: 14.5px;
}
.nd-article__content .nd-kb-book-card__body p,
.nd-article__content .nd-kb-book-card .nd-kb-book-card__body p {
  font-size: 12.5px;
  color: var(--text-secondary);
  flex: 1;
  margin: 0 0 8px !important;
}
.nd-article__content .nd-kb-book-card a,
.nd-article__content .nd-kb-book-card .nd-btn {
  border-radius: 6px;
}
@media (max-width: 768px) {
  .nd-article__content .nd-kb-book-card a,
  .nd-article__content .nd-kb-book-card .nd-btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

:root[data-theme=dark] .nd-article__content,
html.theme-dark .nd-article__content {
  line-height: 1.78;
  letter-spacing: 0;
}

.nd-article__callout {
  max-width: 68ch;
  margin: 2.75rem auto 0;
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.nd-article__feedback {
  margin: 0;
  padding: 18px 22px;
  background-color: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 640px) {
  .nd-article__feedback {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
}

.nd-article__feedback-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nd-article__feedback-header strong {
  font-size: 14.5px;
  color: var(--text-primary);
  font-weight: 600;
}
.nd-article__feedback-header .nd-caption {
  font-size: 13px;
  color: var(--text-muted);
}

.nd-article__feedback-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 640px) {
  .nd-article__feedback-actions {
    width: 100%;
  }
  .nd-article__feedback-actions form {
    flex: 1;
  }
  .nd-article__feedback-actions .nd-btn {
    width: 100%;
  }
}
.nd-article__feedback-actions form {
  margin: 0;
  display: inline-flex;
}
.nd-article__feedback-actions .nd-btn {
  min-height: 38px;
  min-width: 44px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
@media (max-width: 768px) {
  .nd-article__feedback-actions .nd-btn {
    min-height: 44px;
    padding: 0 16px;
  }
}
.nd-article__feedback-actions .nd-btn .ph,
.nd-article__feedback-actions .nd-btn i {
  font-size: 16px;
}
.nd-article__feedback-actions .nd-btn--helpful-yes {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
.nd-article__feedback-actions .nd-btn--helpful-yes:hover {
  border-color: var(--success);
  color: var(--success);
}
.nd-article__feedback-actions .nd-btn--helpful-no {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.nd-article__feedback-actions .nd-btn--helpful-no:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.nd-article__support-deflection {
  margin: 0;
  padding: 14px 22px;
  background-color: var(--surface-card);
  border: none;
  border-top: 1px solid var(--border-subtle);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (max-width: 640px) {
  .nd-article__support-deflection {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
}
.nd-article__support-deflection .nd-article__support-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.nd-article__support-deflection .nd-article__support-text strong {
  color: var(--text-primary);
  font-weight: 600;
}
.nd-article__support-deflection .nd-btn {
  white-space: nowrap;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 768px) {
  .nd-article__support-deflection .nd-btn {
    min-height: 44px;
    width: 100%;
  }
}

.nd-glossary {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: none;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.nd-glossary__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  .nd-glossary__header {
    display: none;
  }
}

.nd-glossary__title {
  font-size: 13.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.nd-glossary__title i,
.nd-glossary__title .ph {
  color: var(--brand-primary);
  font-size: 16px;
}

.nd-glossary__mobile-toggle {
  display: none;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.nd-glossary__mobile-toggle > span {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nd-glossary__mobile-toggle > span strong {
  color: var(--text-primary);
  font-weight: 600;
}
.nd-glossary__mobile-toggle .ph-list {
  font-size: 18px;
  color: var(--brand-primary);
  flex-shrink: 0;
}
.nd-glossary__mobile-toggle .nd-glossary__caret {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 160ms ease;
  flex-shrink: 0;
}
.nd-glossary__mobile-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.nd-glossary__mobile-toggle:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}
@media (max-width: 768px) {
  .nd-glossary__mobile-toggle {
    display: inline-flex;
  }
}

.nd-glossary--open .nd-glossary__mobile-toggle,
.nd-glossary__mobile-toggle[aria-expanded=true] {
  border-color: var(--brand-primary);
}
.nd-glossary--open .nd-glossary__mobile-toggle .nd-glossary__caret,
.nd-glossary__mobile-toggle[aria-expanded=true] .nd-glossary__caret {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.nd-glossary__pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
@media (max-width: 768px) {
  .nd-glossary__pills {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
  }
}

@media (max-width: 768px) {
  .nd-glossary--open .nd-glossary__pills {
    display: flex;
  }
}

.nd-glossary__pill {
  appearance: none;
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
  user-select: none;
  box-shadow: none;
}
@media (max-width: 768px) {
  .nd-glossary__pill {
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
    flex: 1 1 calc(50% - 6px);
    justify-content: flex-start;
  }
}
.nd-glossary__pill i,
.nd-glossary__pill .ph {
  font-size: 14px;
  color: var(--text-muted);
}
.nd-glossary__pill .nd-glossary__count {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}
.nd-glossary__pill:hover {
  background-color: var(--surface-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.nd-glossary__pill:hover i,
.nd-glossary__pill:hover .ph {
  color: var(--brand-primary);
}
.nd-glossary__pill:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}
.nd-glossary__pill.nd-glossary__pill--active {
  background: var(--brand-primary);
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFFFFF;
  box-shadow: none;
}
.nd-glossary__pill.nd-glossary__pill--active i,
.nd-glossary__pill.nd-glossary__pill--active .ph {
  color: #FFFFFF;
}
.nd-glossary__pill.nd-glossary__pill--active .nd-glossary__count {
  background-color: rgba(0, 0, 0, 0.28) !important;
  border-color: transparent !important;
  color: #FFFFFF !important;
}

.nd-kb-console-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
@media (max-width: 640px) {
  .nd-kb-console-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.nd-kb-console-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: none;
  transform: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.nd-kb-console-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-strong);
}
.nd-kb-console-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px 0;
}
.nd-kb-console-card__category {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nd-kb-console-card__badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.nd-kb-console-card__featured {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.nd-kb-console-card__featured i {
  color: var(--brand-primary);
  font-size: 11px;
}
.nd-kb-console-card__status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-raised);
  color: var(--text-secondary);
}
.nd-kb-console-card__status--published {
  color: #166534 !important;
  background-color: rgba(22, 163, 74, 0.12) !important;
  border-color: rgba(22, 163, 74, 0.28) !important;
}
.nd-kb-console-card__status--draft {
  color: var(--text-muted);
}
.nd-kb-console-card .nd-article-card__body {
  padding: 10px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.nd-kb-console-card .nd-article-card__title, .nd-kb-console-card__title {
  font-size: 14.5px;
  line-height: 1.38;
  font-weight: 600;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 768px) {
  .nd-kb-console-card .nd-article-card__title, .nd-kb-console-card__title {
    display: block;
    overflow: visible;
  }
}
.nd-kb-console-card .nd-article-card__title a, .nd-kb-console-card__title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 150ms ease;
}
@media (max-width: 768px) {
  .nd-kb-console-card .nd-article-card__title a, .nd-kb-console-card__title a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
  }
}
.nd-kb-console-card .nd-article-card__title a:hover, .nd-kb-console-card__title a:hover {
  color: var(--brand-primary);
}
.nd-kb-console-card .nd-article-card__title a:focus-visible, .nd-kb-console-card__title a:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 3px;
}
.nd-kb-console-card .nd-article-card__summary {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.nd-kb-console-card .nd-article-card__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  padding-top: 0;
}
.nd-kb-console-card .nd-article-card__tags .nd-tag-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 4px;
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.nd-kb-console-card .nd-article-card__footer {
  padding: 8px 16px;
  background-color: var(--surface-raised);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.nd-kb-console-card .nd-article-card__footer .nd-article-card__stats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  flex-shrink: 1;
}
@media (max-width: 420px) {
  .nd-kb-console-card .nd-article-card__footer .nd-article-card__stats {
    gap: 8px;
    font-size: 11.5px;
  }
}
.nd-kb-console-card .nd-article-card__footer .nd-article-card__stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nd-kb-console-card .nd-article-card__footer .nd-article-card__stats .nd-article-card__date {
  color: var(--text-muted);
  padding-left: 8px;
  border-left: 1px solid var(--border-subtle);
}
@media (max-width: 380px) {
  .nd-kb-console-card .nd-article-card__footer .nd-article-card__stats .nd-article-card__date {
    display: none;
  }
}
.nd-kb-console-card .nd-article-card__footer .nd-page-header__actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap !important;
  width: auto !important;
  flex-shrink: 0;
  gap: 6px;
}
.nd-kb-console-card .nd-article-card__footer .nd-page-header__actions .nd-btn {
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
@media (max-width: 768px) {
  .nd-kb-console-card .nd-article-card__footer .nd-page-header__actions .nd-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0 12px;
  }
}

:root[data-theme=dark] .nd-kb-console-card__status--published,
html.theme-dark .nd-kb-console-card__status--published {
  color: #4ADE80 !important;
  background-color: rgba(22, 163, 74, 0.18) !important;
  border-color: rgba(74, 222, 128, 0.32) !important;
}

.nd-kb-edit-card {
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.nd-kb-edit-card > .nd-card__body {
  padding: 0 !important;
}

.nd-kb-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  align-items: start;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .nd-kb-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.nd-kb-form-grid .nd-field {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.nd-kb-form-grid .nd-field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-height: 20px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.nd-kb-form-grid .nd-field__label .nd-caption {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.nd-kb-form-grid .nd-input,
.nd-kb-form-grid .nd-dropdown__trigger {
  height: 40px;
  min-height: 40px;
  border-radius: var(--radius-sm);
}
@media (max-width: 768px) {
  .nd-kb-form-grid .nd-input,
  .nd-kb-form-grid .nd-dropdown__trigger {
    min-height: 44px;
    height: 44px;
  }
}

.nd-kb-editor-field {
  margin-bottom: 20px;
}
.nd-kb-editor-field__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.nd-kb-editor-field__header .nd-field__label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.nd-kb-editor-field .nd-editor {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.nd-kb-editor-field .nd-editor:focus-within {
  border-color: var(--brand-primary);
  box-shadow: var(--ring);
}
.nd-kb-editor-field .nd-editor__toolbar {
  padding: 6px 10px;
  background-color: var(--surface-raised);
  border-bottom: 1px solid var(--border-subtle);
}
.nd-kb-editor-field .nd-editor__tool-btn {
  border-radius: 4px;
}
@media (max-width: 768px) {
  .nd-kb-editor-field .nd-editor__tool-btn {
    min-width: 44px;
    min-height: 44px;
  }
}
.nd-kb-editor-field .nd-editor__canvas {
  min-height: 320px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.7;
}

.nd-kb-ai-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  background-color: transparent;
  border: none;
  padding: 0;
}
.nd-kb-ai-notice i {
  color: var(--brand-primary);
  font-size: 13.5px;
  flex-shrink: 0;
}

.nd-kb-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
@media (max-width: 640px) {
  .nd-kb-form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .nd-kb-form-footer .nd-page-header__actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.nd-kb-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
@media (max-width: 768px) {
  .nd-kb-checkbox {
    min-height: 44px;
    min-width: 44px;
  }
}
.nd-kb-checkbox input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nd-page-header .nd-btn--sm,
  .nd-page-header .nd-btn,
  .nd-kb-form-footer .nd-btn--sm,
  .nd-kb-form-footer .nd-btn,
  .nd-kb-cta-banner a,
  .nd-kb-book-card a,
  .nd-article__breadcrumb a,
  .nd-kb-console-card__title a,
  .nd-kb-console-card .nd-article-card__title a {
    min-height: 44px !important;
    min-width: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
  }
}
.nd-tickets-header {
  margin-bottom: 10px;
}
.nd-tickets-header .nd-page-header__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.nd-tickets-header .nd-mobile-filter-toggle {
  display: none !important;
}
.nd-tickets-header .nd-popover-trigger {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-card);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease;
}
.nd-tickets-header .nd-popover-trigger:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background-color: var(--surface-raised);
}

.nd-filter-bar.nd-tickets-filter-bar,
.nd-filter-bar[data-realtime-filter-form] {
  margin-bottom: 0 !important;
  padding: 8px 12px !important;
  gap: 8px !important;
  background-color: var(--surface-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  border-radius: 8px 8px 0 0 !important;
  box-shadow: none !important;
}
.nd-filter-bar.nd-tickets-filter-bar .nd-filter-bar__group,
.nd-filter-bar[data-realtime-filter-form] .nd-filter-bar__group {
  gap: 6px;
}
.nd-filter-bar.nd-tickets-filter-bar .nd-filter-bar__group > .nd-filter-bar__search,
.nd-filter-bar[data-realtime-filter-form] .nd-filter-bar__group > .nd-filter-bar__search {
  flex: 1.6 1 200px;
}
.nd-filter-bar.nd-tickets-filter-bar .nd-filter-bar__group > .nd-filter-bar__search i,
.nd-filter-bar[data-realtime-filter-form] .nd-filter-bar__group > .nd-filter-bar__search i {
  left: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.nd-filter-bar.nd-tickets-filter-bar .nd-filter-bar__group > .nd-filter-bar__search .nd-input,
.nd-filter-bar[data-realtime-filter-form] .nd-filter-bar__group > .nd-filter-bar__search .nd-input {
  padding-left: 30px;
}
.nd-filter-bar.nd-tickets-filter-bar .nd-input,
.nd-filter-bar.nd-tickets-filter-bar .nd-select,
.nd-filter-bar.nd-tickets-filter-bar .nd-dropdown__trigger,
.nd-filter-bar[data-realtime-filter-form] .nd-input,
.nd-filter-bar[data-realtime-filter-form] .nd-select,
.nd-filter-bar[data-realtime-filter-form] .nd-dropdown__trigger {
  height: 32px;
  min-height: 32px;
  font-size: 12.5px;
  border-radius: 6px !important;
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-input);
  box-shadow: none;
}
.nd-filter-bar.nd-tickets-filter-bar .nd-filter-bar__actions .nd-btn,
.nd-filter-bar[data-realtime-filter-form] .nd-filter-bar__actions .nd-btn {
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
}

.nd-table-wrap.nd-tickets-table-wrap,
.nd-filter-bar[data-realtime-filter-form] + .nd-table-wrap {
  margin-top: 0 !important;
  background-color: var(--surface-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-top: none !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: none !important;
}

.nd-table--tickets {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.nd-table--tickets thead th {
  height: 36px;
  padding: 0 4px;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em !important;
  color: #475569;
  background-color: var(--surface-raised);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
  vertical-align: middle;
}
.nd-table--tickets thead th.nd-th-triad, .nd-table--tickets thead th:first-child {
  width: 44px;
  text-align: center;
  padding: 0 2px 0 6px;
}
.nd-table--tickets thead th.nd-th-protocol, .nd-table--tickets thead th:nth-child(2) {
  width: 140px;
  text-align: left;
}
.nd-table--tickets thead th.nd-th-subject, .nd-table--tickets thead th:nth-child(3) {
  min-width: 260px;
  text-align: left;
}
.nd-table--tickets thead th.nd-th-requester, .nd-table--tickets thead th:nth-child(4) {
  width: 220px;
  text-align: left;
}
.nd-table--tickets thead th.nd-th-status, .nd-table--tickets thead th:nth-child(5) {
  width: 185px;
  text-align: right;
  padding-right: 6px;
}
.nd-table--tickets thead th.nd-th-status .nd-table__sort-btn,
.nd-table--tickets thead th.nd-th-status button.nd-th-sort, .nd-table--tickets thead th:nth-child(5) .nd-table__sort-btn,
.nd-table--tickets thead th:nth-child(5) button.nd-th-sort {
  justify-content: flex-end;
  margin-left: auto;
}
.nd-table--tickets thead th .nd-table__sort-btn,
.nd-table--tickets thead th button.nd-th-sort {
  min-height: 36px;
  height: 36px;
  padding: 6px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  gap: 4px;
  transition: color 120ms ease, background-color 120ms ease;
}
.nd-table--tickets thead th .nd-table__sort-btn:hover,
.nd-table--tickets thead th button.nd-th-sort:hover {
  color: var(--text-primary);
}
.nd-table--tickets thead th .nd-table__sort-btn--active,
.nd-table--tickets thead th button.nd-th-sort--active {
  color: #0E4FD8;
}
.nd-table--tickets tbody tr.nd-ticket-row {
  height: 48px;
  cursor: pointer;
  transition: background-color 120ms ease;
}
.nd-table--tickets tbody tr.nd-ticket-row td {
  height: 48px;
  max-height: 48px;
  padding: 0 12px;
  box-sizing: border-box;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}
.nd-table--tickets tbody tr.nd-ticket-row:last-child td {
  border-bottom: none;
}
.nd-table--tickets tbody tr.nd-ticket-row:hover {
  background-color: var(--surface-hover);
}
.nd-table--tickets tbody tr.nd-ticket-row:hover .nd-td-triad::before {
  opacity: 1;
}
.nd-table--tickets tbody tr.nd-ticket-row:hover .nd-td-subject a,
.nd-table--tickets tbody tr.nd-ticket-row:hover .nd-ticket-subject-link {
  color: #0E4FD8;
}
.nd-table--tickets tbody tr.nd-ticket-row:hover .nd-td-protocol .nd-ticket-header__protocol {
  background-color: #E0ECFF !important;
  border-color: #B9D5FF !important;
}
.nd-table--tickets tbody tr.nd-ticket-row:focus-visible, .nd-table--tickets tbody tr.nd-ticket-row:focus-within {
  background-color: var(--surface-hover);
}
.nd-table--tickets tbody tr.nd-ticket-row:focus-visible .nd-td-triad::before, .nd-table--tickets tbody tr.nd-ticket-row:focus-within .nd-td-triad::before {
  opacity: 1;
}
.nd-table--tickets tbody tr.nd-ticket-row:focus-visible {
  outline: 2px solid var(--brand-primary) !important;
  outline-offset: -2px !important;
}
.nd-table--tickets .nd-td-triad {
  position: relative;
  text-align: center;
  padding: 0 4px 0 12px !important;
  width: 44px;
}
.nd-table--tickets .nd-td-triad::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background-color: var(--brand-primary);
  opacity: 0;
  transition: opacity 120ms ease;
  pointer-events: none;
}
.nd-table--tickets .nd-td-triad .nd-triad-icon-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 6px;
  border: none;
  background: transparent !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  transition: transform 120ms ease, background-color 120ms ease;
}
.nd-table--tickets .nd-td-triad .nd-triad-icon-btn:hover {
  transform: scale(1.1);
}
.nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon--urgent, .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon-btn--urgent {
  color: #C5221F !important;
}
.nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon--important, .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon-btn--important {
  color: #0E4FD8 !important;
}
.nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon--circumstantial, .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon-btn--circumstantial {
  color: #92400E !important;
}
.nd-table--tickets .nd-td-protocol {
  white-space: nowrap !important;
  width: 140px;
}
.nd-table--tickets .nd-td-protocol .nd-page-header__left,
.nd-table--tickets .nd-td-protocol .nd-protocol-cluster {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  white-space: nowrap !important;
}
.nd-table--tickets .nd-td-protocol .nd-ticket-header__protocol {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1;
  height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap !important;
  color: #0E4FD8 !important;
  background-color: #EEF4FF !important;
  border: 1px solid #D0E1FD !important;
  text-decoration: none !important;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.nd-table--tickets .nd-td-protocol .nd-ticket-header__protocol:hover {
  background-color: #E0ECFF !important;
  border-color: #B9D5FF !important;
}
.nd-table--tickets .nd-td-protocol .nd-popover-trigger--lock {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  margin: -5px -4px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.nd-table--tickets .nd-td-protocol .nd-popover-trigger--lock:hover {
  color: #0E4FD8;
}
.nd-table--tickets .nd-td-subject a,
.nd-table--tickets .nd-td-subject .nd-ticket-subject-link {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 500 !important;
  line-height: 20px;
  color: var(--text-primary, #0F172A);
  text-decoration: none !important;
  transition: color 120ms ease;
}
.nd-table--tickets .nd-td-subject a strong,
.nd-table--tickets .nd-td-subject .nd-ticket-subject-link strong {
  font-weight: 500 !important;
  color: inherit !important;
}
.nd-table--tickets .nd-td-requester {
  width: 220px;
}
.nd-table--tickets .nd-td-requester div strong,
.nd-table--tickets .nd-td-requester .nd-requester-name {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 15px;
  color: var(--text-primary, #0F172A);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 205px;
}
.nd-table--tickets .nd-td-requester .nd-caption,
.nd-table--tickets .nd-td-requester .nd-requester-email {
  display: block;
  font-size: 11px;
  font-weight: 400;
  line-height: 13px;
  color: #64748B !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 205px;
  margin-top: 1px;
}
.nd-table--tickets .nd-td-status {
  width: 185px;
  text-align: right;
  padding-right: 14px !important;
  white-space: nowrap;
}
.nd-table--tickets .nd-td-status .nd-status-stack {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  white-space: nowrap;
}
.nd-table--tickets .nd-td-status .nd-status-line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nd-table--tickets .nd-td-status .nd-waiting-reason,
.nd-table--tickets .nd-td-status .nd-caption {
  display: none !important;
}
.nd-table--tickets .nd-td-status .nd-status-badge {
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
}
.nd-table--tickets .nd-td-status .nd-status-badge--waiting {
  background-color: #FEF3C7 !important;
  color: #78350F !important;
  border: 1px solid #FDE68A !important;
}
.nd-table--tickets .nd-td-status .nd-ticket-age {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-width: 48px;
  font-size: 11.5px;
  font-weight: 500;
  color: #475569 !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}
.nd-table--tickets .nd-td-status .nd-ticket-age i {
  font-size: 12px;
}
.nd-table--tickets .nd-td-status .nd-ticket-age--warning {
  color: #B91C1C !important;
  font-weight: 600;
}
.nd-table--tickets .nd-td-actions {
  display: none !important;
}
.nd-table--tickets .nd-table__empty {
  height: auto !important;
  max-height: none !important;
  padding: 36px 20px !important;
}
.nd-table--tickets .nd-tickets-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
}
.nd-table--tickets .nd-tickets-empty i {
  font-size: 24px;
  color: var(--text-muted);
}
.nd-table--tickets .nd-tickets-empty__text {
  font-size: 13px;
  color: var(--text-secondary);
}

.nd-lazy-sentinel {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-card);
  font-size: 12px;
}

:root[data-theme=dark] .nd-table--tickets thead th,
[data-theme=dark] .nd-table--tickets thead th,
html.theme-dark .nd-table--tickets thead th {
  color: #94A3B8 !important;
}
:root[data-theme=dark] .nd-table--tickets thead th .nd-table__sort-btn:hover,
[data-theme=dark] .nd-table--tickets thead th .nd-table__sort-btn:hover,
html.theme-dark .nd-table--tickets thead th .nd-table__sort-btn:hover {
  color: #F8FAFC !important;
}
:root[data-theme=dark] .nd-table--tickets thead th .nd-table__sort-btn--active,
[data-theme=dark] .nd-table--tickets thead th .nd-table__sort-btn--active,
html.theme-dark .nd-table--tickets thead th .nd-table__sort-btn--active {
  color: #93C5FD !important;
}
:root[data-theme=dark] .nd-table--tickets .nd-td-triad::before,
[data-theme=dark] .nd-table--tickets .nd-td-triad::before,
html.theme-dark .nd-table--tickets .nd-td-triad::before {
  background-color: #38BDF8;
}
:root[data-theme=dark] .nd-table--tickets .nd-td-protocol .nd-ticket-header__protocol,
[data-theme=dark] .nd-table--tickets .nd-td-protocol .nd-ticket-header__protocol,
html.theme-dark .nd-table--tickets .nd-td-protocol .nd-ticket-header__protocol {
  background-color: #1E293B !important;
  border-color: #334155 !important;
  color: #93C5FD !important;
}
:root[data-theme=dark] .nd-table--tickets .nd-td-protocol .nd-ticket-header__protocol:hover,
[data-theme=dark] .nd-table--tickets .nd-td-protocol .nd-ticket-header__protocol:hover,
html.theme-dark .nd-table--tickets .nd-td-protocol .nd-ticket-header__protocol:hover {
  background-color: #334155 !important;
  border-color: #475569 !important;
}
:root[data-theme=dark] .nd-table--tickets .nd-td-subject a,
:root[data-theme=dark] .nd-table--tickets .nd-td-subject .nd-ticket-subject-link,
[data-theme=dark] .nd-table--tickets .nd-td-subject a,
[data-theme=dark] .nd-table--tickets .nd-td-subject .nd-ticket-subject-link,
html.theme-dark .nd-table--tickets .nd-td-subject a,
html.theme-dark .nd-table--tickets .nd-td-subject .nd-ticket-subject-link {
  color: #F8FAFC !important;
}
:root[data-theme=dark] .nd-table--tickets .nd-td-subject a strong,
:root[data-theme=dark] .nd-table--tickets .nd-td-subject .nd-ticket-subject-link strong,
[data-theme=dark] .nd-table--tickets .nd-td-subject a strong,
[data-theme=dark] .nd-table--tickets .nd-td-subject .nd-ticket-subject-link strong,
html.theme-dark .nd-table--tickets .nd-td-subject a strong,
html.theme-dark .nd-table--tickets .nd-td-subject .nd-ticket-subject-link strong {
  color: #F8FAFC !important;
}
:root[data-theme=dark] .nd-table--tickets .nd-td-requester div strong,
:root[data-theme=dark] .nd-table--tickets .nd-td-requester .nd-requester-name,
[data-theme=dark] .nd-table--tickets .nd-td-requester div strong,
[data-theme=dark] .nd-table--tickets .nd-td-requester .nd-requester-name,
html.theme-dark .nd-table--tickets .nd-td-requester div strong,
html.theme-dark .nd-table--tickets .nd-td-requester .nd-requester-name {
  color: #F8FAFC !important;
}
:root[data-theme=dark] .nd-table--tickets .nd-td-requester .nd-caption,
:root[data-theme=dark] .nd-table--tickets .nd-td-requester .nd-requester-email,
[data-theme=dark] .nd-table--tickets .nd-td-requester .nd-caption,
[data-theme=dark] .nd-table--tickets .nd-td-requester .nd-requester-email,
html.theme-dark .nd-table--tickets .nd-td-requester .nd-caption,
html.theme-dark .nd-table--tickets .nd-td-requester .nd-requester-email {
  color: #94A3B8 !important;
}
:root[data-theme=dark] .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon--urgent, :root[data-theme=dark] .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon-btn--urgent,
[data-theme=dark] .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon--urgent,
[data-theme=dark] .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon-btn--urgent,
html.theme-dark .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon--urgent,
html.theme-dark .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon-btn--urgent {
  color: #F87171 !important;
}
:root[data-theme=dark] .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon--important, :root[data-theme=dark] .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon-btn--important,
[data-theme=dark] .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon--important,
[data-theme=dark] .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon-btn--important,
html.theme-dark .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon--important,
html.theme-dark .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon-btn--important {
  color: #60A5FA !important;
}
:root[data-theme=dark] .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon--circumstantial, :root[data-theme=dark] .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon-btn--circumstantial,
[data-theme=dark] .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon--circumstantial,
[data-theme=dark] .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon-btn--circumstantial,
html.theme-dark .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon--circumstantial,
html.theme-dark .nd-table--tickets .nd-td-triad .nd-triad-icon-btn.nd-triad-icon-btn--circumstantial {
  color: #FBBF24 !important;
}
:root[data-theme=dark] .nd-table--tickets .nd-td-status .nd-status-badge--waiting,
[data-theme=dark] .nd-table--tickets .nd-td-status .nd-status-badge--waiting,
html.theme-dark .nd-table--tickets .nd-td-status .nd-status-badge--waiting {
  background-color: #372505 !important;
  color: #FCD34D !important;
  border-color: #78350F !important;
}
:root[data-theme=dark] .nd-table--tickets .nd-td-status .nd-ticket-age,
[data-theme=dark] .nd-table--tickets .nd-td-status .nd-ticket-age,
html.theme-dark .nd-table--tickets .nd-td-status .nd-ticket-age {
  color: #94A3B8 !important;
}
:root[data-theme=dark] .nd-table--tickets .nd-td-status .nd-ticket-age--warning,
[data-theme=dark] .nd-table--tickets .nd-td-status .nd-ticket-age--warning,
html.theme-dark .nd-table--tickets .nd-td-status .nd-ticket-age--warning {
  color: #FCA5A5 !important;
}
:root[data-theme=dark] .nd-table--tickets tbody tr.nd-ticket-row:hover .nd-td-subject a,
:root[data-theme=dark] .nd-table--tickets tbody tr.nd-ticket-row:hover .nd-ticket-subject-link,
[data-theme=dark] .nd-table--tickets tbody tr.nd-ticket-row:hover .nd-td-subject a,
[data-theme=dark] .nd-table--tickets tbody tr.nd-ticket-row:hover .nd-ticket-subject-link,
html.theme-dark .nd-table--tickets tbody tr.nd-ticket-row:hover .nd-td-subject a,
html.theme-dark .nd-table--tickets tbody tr.nd-ticket-row:hover .nd-ticket-subject-link {
  color: #93C5FD !important;
}
:root[data-theme=dark] .nd-table--tickets tbody tr.nd-ticket-row:hover .nd-td-subject a strong,
:root[data-theme=dark] .nd-table--tickets tbody tr.nd-ticket-row:hover .nd-ticket-subject-link strong,
[data-theme=dark] .nd-table--tickets tbody tr.nd-ticket-row:hover .nd-td-subject a strong,
[data-theme=dark] .nd-table--tickets tbody tr.nd-ticket-row:hover .nd-ticket-subject-link strong,
html.theme-dark .nd-table--tickets tbody tr.nd-ticket-row:hover .nd-td-subject a strong,
html.theme-dark .nd-table--tickets tbody tr.nd-ticket-row:hover .nd-ticket-subject-link strong {
  color: #93C5FD !important;
}
:root[data-theme=dark] .nd-table--tickets tbody tr.nd-ticket-row:hover .nd-td-protocol .nd-ticket-header__protocol,
[data-theme=dark] .nd-table--tickets tbody tr.nd-ticket-row:hover .nd-td-protocol .nd-ticket-header__protocol,
html.theme-dark .nd-table--tickets tbody tr.nd-ticket-row:hover .nd-td-protocol .nd-ticket-header__protocol {
  background-color: #334155 !important;
  border-color: #475569 !important;
}

@media (max-width: 960px) {
  .nd-tickets-header .nd-mobile-filter-toggle {
    display: inline-flex !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
  }
  .nd-tickets-header .nd-page-header__actions .nd-btn {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
  }
  .nd-tickets-header .nd-popover-trigger {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: -6px -4px;
    background: transparent;
    border-color: transparent;
  }
  .nd-filter-bar.nd-tickets-filter-bar,
  .nd-filter-bar[data-realtime-filter-form] {
    padding: 8px 10px !important;
  }
  .nd-filter-bar.nd-tickets-filter-bar .nd-input,
  .nd-filter-bar.nd-tickets-filter-bar .nd-select,
  .nd-filter-bar.nd-tickets-filter-bar .nd-dropdown__trigger,
  .nd-filter-bar[data-realtime-filter-form] .nd-input,
  .nd-filter-bar[data-realtime-filter-form] .nd-select,
  .nd-filter-bar[data-realtime-filter-form] .nd-dropdown__trigger {
    height: 44px !important;
    min-height: 44px !important;
    font-size: 13px !important;
  }
  .nd-filter-bar.nd-tickets-filter-bar .nd-filter-bar__actions .nd-btn,
  .nd-filter-bar[data-realtime-filter-form] .nd-filter-bar__actions .nd-btn {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
  }
}
@media (max-width: 768px) {
  .nd-table-wrap.nd-tickets-table-wrap,
  .nd-filter-bar[data-realtime-filter-form] + .nd-table-wrap {
    background-color: var(--surface-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    overflow: hidden !important;
  }
  .nd-table--tickets {
    border: none !important;
    background: transparent !important;
  }
  .nd-table--tickets thead {
    display: none !important;
  }
  .nd-table--tickets tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row {
    display: grid !important;
    grid-template-columns: 24px auto 1fr !important;
    grid-template-areas: "triad protocol status" "subject subject subject" "requester requester requester" !important;
    align-items: center !important;
    row-gap: 4px !important;
    column-gap: 8px !important;
    height: auto !important;
    min-height: 76px !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: relative !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row:last-child {
    border-bottom: none !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row:hover {
    background-color: var(--surface-hover) !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row td {
    height: auto !important;
    max-height: none !important;
    padding: 0 !important;
    border: none !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-triad {
    grid-area: triad !important;
    width: 24px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-triad::before {
    display: none !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-triad .nd-triad-icon-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: -11px -10px !important;
    font-size: 16px !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-protocol {
    grid-area: protocol !important;
    width: auto !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-protocol .nd-page-header__left,
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-protocol .nd-protocol-cluster {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-protocol .nd-ticket-header__protocol {
    position: relative;
    z-index: 1;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: -11px 0 !important;
    padding: 0 6px !important;
    font-size: 11px !important;
    background: transparent !important;
    border: none !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-protocol .nd-ticket-header__protocol::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 22px;
    transform: translateY(-50%);
    background-color: #EEF4FF;
    border: 1px solid #D0E1FD;
    border-radius: 4px;
    z-index: -1;
  }
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-protocol .nd-popover-trigger--lock {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: -11px -10px !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-status {
    grid-area: status !important;
    width: auto !important;
    padding-right: 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
    text-align: right !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-status .nd-status-stack {
    align-items: center !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    gap: 6px !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-status .nd-status-badge {
    height: 20px !important;
    min-height: 20px !important;
    padding: 0 7px !important;
    font-size: 10.5px !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-status .nd-ticket-age {
    min-width: auto !important;
    font-size: 11px !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-subject {
    grid-area: subject !important;
    width: 100% !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-subject a,
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-subject .nd-ticket-subject-link {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    min-height: 44px !important;
    margin: -8px 0 !important;
    padding: 8px 0 !important;
    display: flex !important;
    align-items: center !important;
    -webkit-line-clamp: 2 !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-requester {
    grid-area: requester !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-requester div strong,
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-requester .nd-requester-name {
    display: inline !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    color: var(--text-secondary) !important;
    max-width: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-requester .nd-caption,
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-requester .nd-requester-email {
    display: inline !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    margin-top: 0 !important;
    max-width: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: var(--text-muted) !important;
    min-width: 0 !important;
  }
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-requester .nd-caption::before,
  .nd-table--tickets tbody tr.nd-ticket-row .nd-td-requester .nd-requester-email::before {
    content: "·";
    margin-right: 6px;
  }
  :root[data-theme=dark] .nd-table--tickets tbody tr.nd-ticket-row .nd-td-protocol .nd-ticket-header__protocol,
  [data-theme=dark] .nd-table--tickets tbody tr.nd-ticket-row .nd-td-protocol .nd-ticket-header__protocol,
  html.theme-dark .nd-table--tickets tbody tr.nd-ticket-row .nd-td-protocol .nd-ticket-header__protocol {
    background: transparent !important;
    border: none !important;
  }
  :root[data-theme=dark] .nd-table--tickets tbody tr.nd-ticket-row .nd-td-protocol .nd-ticket-header__protocol::before,
  [data-theme=dark] .nd-table--tickets tbody tr.nd-ticket-row .nd-td-protocol .nd-ticket-header__protocol::before,
  html.theme-dark .nd-table--tickets tbody tr.nd-ticket-row .nd-td-protocol .nd-ticket-header__protocol::before {
    background-color: #1E293B !important;
    border-color: #334155 !important;
  }
}
.nd-ticket-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 0;
  align-items: stretch;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: none;
  overflow: visible;
}
@media (max-width: 1100px) {
  .nd-ticket-workspace {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
@media (max-width: 960px) {
  .nd-ticket-workspace {
    grid-template-columns: 1fr;
    border-radius: 6px;
  }
}
.nd-ticket-workspace__main {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  background-color: var(--surface-card);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
@media (max-width: 960px) {
  .nd-ticket-workspace__main {
    border-radius: 6px;
  }
}
.nd-ticket-workspace__sidebar {
  background-color: var(--bg-panel);
  border: none;
  border-left: 1px solid var(--border-subtle);
  border-radius: 0;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  box-shadow: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
}
.nd-ticket-workspace__sidebar > form {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.nd-ticket-workspace__sidebar .nd-input,
.nd-ticket-workspace__sidebar .nd-select,
.nd-ticket-workspace__sidebar .nd-dropdown__trigger,
.nd-ticket-workspace__sidebar .nd-smart-date__trigger {
  height: 34px;
  border-radius: 6px;
  font-size: 12.5px;
  background-color: var(--surface-input);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}
.nd-ticket-workspace__sidebar .nd-input:hover,
.nd-ticket-workspace__sidebar .nd-select:hover,
.nd-ticket-workspace__sidebar .nd-dropdown__trigger:hover,
.nd-ticket-workspace__sidebar .nd-smart-date__trigger:hover {
  border-color: var(--border-strong);
}
.nd-ticket-workspace__sidebar .nd-input:focus, .nd-ticket-workspace__sidebar .nd-input:focus-visible,
.nd-ticket-workspace__sidebar .nd-select:focus,
.nd-ticket-workspace__sidebar .nd-select:focus-visible,
.nd-ticket-workspace__sidebar .nd-dropdown__trigger:focus,
.nd-ticket-workspace__sidebar .nd-dropdown__trigger:focus-visible,
.nd-ticket-workspace__sidebar .nd-smart-date__trigger:focus,
.nd-ticket-workspace__sidebar .nd-smart-date__trigger:focus-visible {
  border-color: var(--brand-primary);
  outline: 2px solid var(--brand-primary);
  outline-offset: 1px;
}
.nd-ticket-workspace__sidebar .nd-inline-creator__btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 6px;
}
.nd-ticket-workspace__sidebar .nd-cc-box {
  border-radius: 6px;
  min-height: 34px;
  padding: 4px 8px;
}

.nd-mobile-categorize-btn {
  display: none !important;
}
@media (max-width: 960px) {
  .nd-mobile-categorize-btn {
    display: inline-flex !important;
  }
}

.nd-ticket-header {
  background-color: var(--surface-card);
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  border-top-left-radius: 8px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: none;
}
.nd-ticket-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
}
.nd-ticket-header__badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nd-ticket-header__badges .nd-status-badge,
.nd-ticket-header__badges .nd-triad-badge {
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
}
.nd-ticket-header__protocol {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0b45b2;
  background-color: rgba(21, 101, 255, 0.08);
  border: 1px solid rgba(21, 101, 255, 0.22);
  padding: 2px 8px;
  border-radius: 6px;
}
:root[data-theme=dark] .nd-ticket-header__protocol, [data-theme=dark] .nd-ticket-header__protocol, .theme-dark .nd-ticket-header__protocol {
  color: #93c5fd !important;
  background-color: rgba(59, 130, 246, 0.16) !important;
  border-color: rgba(96, 165, 250, 0.32) !important;
}
.nd-ticket-header .nd-page-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nd-ticket-header .nd-page-header__actions .nd-btn--ghost,
.nd-ticket-header .nd-page-header__actions .nd-btn--secondary {
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  color: var(--text-secondary);
  border: 1px solid transparent;
  background: transparent;
}
.nd-ticket-header .nd-page-header__actions .nd-btn--ghost:hover,
.nd-ticket-header .nd-page-header__actions .nd-btn--secondary:hover {
  background-color: var(--surface-raised);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}
.nd-ticket-header__subject {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  text-wrap: balance;
  color: var(--text-primary);
  margin: 0;
  word-break: break-word;
}
.nd-ticket-header__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #334155;
}
.nd-ticket-header__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
:root[data-theme=dark] .nd-ticket-header__meta, [data-theme=dark] .nd-ticket-header__meta, .theme-dark .nd-ticket-header__meta {
  color: #94a3b8 !important;
}
:root[data-theme=dark] .nd-ticket-header__meta strong, [data-theme=dark] .nd-ticket-header__meta strong, .theme-dark .nd-ticket-header__meta strong {
  color: #e2e8f0;
}

.nd-ticket-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 4px;
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 500;
  color: #1e293b;
}
.nd-ticket-meta-chip i {
  font-size: 11.5px;
  color: #475569;
}
:root[data-theme=dark] .nd-ticket-meta-chip, [data-theme=dark] .nd-ticket-meta-chip, .theme-dark .nd-ticket-meta-chip {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--border-subtle) !important;
  color: #cbd5e1 !important;
}
:root[data-theme=dark] .nd-ticket-meta-chip i, [data-theme=dark] .nd-ticket-meta-chip i, .theme-dark .nd-ticket-meta-chip i {
  color: #94a3b8 !important;
}

.nd-editor {
  background-color: var(--surface-card);
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.nd-editor--internal {
  background-color: rgba(232, 164, 0, 0.03);
}
.nd-editor--internal .nd-editor__header {
  background-color: rgba(232, 164, 0, 0.08);
  border-bottom-color: rgba(232, 164, 0, 0.25);
}
.nd-editor--internal .nd-editor__canvas {
  background-color: rgba(232, 164, 0, 0.02);
}
.nd-editor__header {
  padding: 8px 20px;
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.nd-editor__header .nd-page-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
.nd-editor__mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background-color: var(--surface-input);
  padding: 2px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}
.nd-editor__mode-btn {
  height: 26px;
  padding: 0 10px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: background-color 120ms ease, color 120ms ease;
}
.nd-editor__mode-btn:hover:not(.nd-editor__mode-btn--active) {
  color: var(--text-primary);
  background-color: var(--surface-hover);
}
.nd-editor__mode-btn--active {
  background-color: var(--brand-primary);
  color: #ffffff;
}
.nd-editor__mode-btn--internal.nd-editor__mode-btn--active {
  background-color: #b45309;
  color: #ffffff;
}
.nd-editor__signature-selector {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}
.nd-editor__signature-selector .nd-dropdown {
  width: auto;
  min-width: 170px;
  max-width: 240px;
}
.nd-editor__signature-selector .nd-dropdown__trigger {
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
}
.nd-editor__toolbar {
  padding: 4px 20px;
  background-color: var(--surface-card);
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
}
.nd-editor__tool-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-right: 6px;
  margin-right: 2px;
  border-right: 1px solid var(--divider);
  flex-shrink: 0;
}
.nd-editor__tool-group:last-child {
  border-right: none;
}
.nd-editor__tool-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  flex-shrink: 0;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.nd-editor__tool-btn:hover {
  background-color: var(--surface-raised);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.nd-editor__tool-btn:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 1px;
}
.nd-editor__more-formatting {
  position: relative;
  display: inline-flex;
  margin-left: auto;
  flex-shrink: 0;
}
.nd-editor__more-formatting:not([open]) > .nd-editor__more-popover {
  display: none !important;
}
.nd-editor__more-formatting[open] .nd-editor__more-btn {
  background-color: var(--surface-raised);
  border-color: var(--border-subtle);
  color: var(--brand-primary);
}
.nd-editor__more-formatting[open] > .nd-editor__more-popover {
  display: flex;
}
.nd-editor__more-btn {
  height: 26px;
  padding: 0 8px;
  font-size: 11.5px;
  border-radius: 4px;
  gap: 4px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  white-space: nowrap;
}
.nd-editor__more-btn::-webkit-details-marker {
  display: none;
}
.nd-editor__more-popover {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: auto;
  z-index: 60;
  min-width: 250px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  padding: 10px 12px;
  display: none;
  flex-direction: column;
  gap: 8px;
}
.nd-editor__more-popover .nd-editor__tool-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding-right: 0;
  margin-right: 0;
  border-right: none;
  width: 100%;
}
.nd-editor__more-popover .nd-editor__tool-group select,
.nd-editor__more-popover .nd-editor__tool-group .nd-dropdown {
  width: 100%;
}
.nd-editor__tool-row {
  display: flex;
  gap: 4px;
}
.nd-editor__canvas {
  min-height: 116px;
  max-height: 360px;
  overflow-y: auto;
  padding: 12px 20px;
  background-color: var(--surface-card);
  color: var(--text-primary);
  font-size: 13.5px;
  line-height: 1.55;
  text-wrap: pretty;
  outline: none;
}
.nd-editor__canvas p {
  margin: 0 0 6px;
}
.nd-editor__canvas p:last-child {
  margin-bottom: 0;
}
.nd-editor__dropzone {
  padding: 6px 20px;
  background-color: var(--surface-card);
  border-top: 1px solid var(--divider);
  font-size: 11.5px;
  color: #334155 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.nd-editor__dropzone span {
  color: #334155 !important;
}
.nd-editor__dropzone kbd {
  background-color: #e2e8f0;
  color: #0f172a !important;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
  font-weight: 600;
}
:root[data-theme=dark] .nd-editor__dropzone, [data-theme=dark] .nd-editor__dropzone, .theme-dark .nd-editor__dropzone {
  color: #cbd5e1 !important;
}
:root[data-theme=dark] .nd-editor__dropzone span, [data-theme=dark] .nd-editor__dropzone span, .theme-dark .nd-editor__dropzone span {
  color: #cbd5e1 !important;
}
:root[data-theme=dark] .nd-editor__dropzone kbd, [data-theme=dark] .nd-editor__dropzone kbd, .theme-dark .nd-editor__dropzone kbd {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.nd-editor__footer {
  padding: 8px 20px;
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-subtle);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.nd-editor__footer .nd-page-header__actions {
  flex: 0 1 280px;
  min-width: 220px;
}
.nd-editor__footer .nd-page-header__actions .nd-dropdown {
  width: 100%;
}
.nd-editor__footer .nd-page-header__actions .nd-dropdown__trigger {
  height: 34px;
  border-radius: 6px;
  font-size: 12.5px;
}
.nd-editor__footer #btn-submit-reply {
  height: 34px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
}
.nd-editor__footer #btn-submit-reply:disabled {
  background-color: var(--surface-raised) !important;
  color: #475569 !important;
  border: 1px solid var(--border-strong) !important;
  opacity: 1 !important;
  filter: none !important;
}
:root[data-theme=dark] .nd-editor__footer #btn-submit-reply:disabled, [data-theme=dark] .nd-editor__footer #btn-submit-reply:disabled, .theme-dark .nd-editor__footer #btn-submit-reply:disabled {
  background-color: var(--ink-750) !important;
  color: #94a3b8 !important;
  border-color: var(--ink-600) !important;
}

.nd-file-upload__status {
  color: #334155 !important;
  font-weight: 500;
}
:root[data-theme=dark] .nd-file-upload__status, [data-theme=dark] .nd-file-upload__status, .theme-dark .nd-file-upload__status {
  color: #94a3b8 !important;
}

.nd-signature-preview {
  margin-top: 10px !important;
  padding-top: 0 !important;
  border-top: none !important;
}

.nd-sig-card {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100% !important;
  border: 1px solid var(--border-subtle) !important;
  border-left: 1px solid var(--border-subtle) !important;
  background-color: var(--bg-panel) !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  box-shadow: none !important;
}
.nd-sig-card::before {
  display: none !important;
}
.nd-sig-card__logos {
  gap: 6px;
}
.nd-sig-card__logos img,
.nd-sig-card__logos img:first-child,
.nd-sig-card__logos img:last-child {
  width: 24px !important;
  height: 24px !important;
  max-width: 28px !important;
  max-height: 24px !important;
  border-radius: 4px !important;
}
.nd-sig-card__divider {
  height: 22px;
  background-color: var(--border-subtle);
}
.nd-sig-card__title {
  font-size: 12px !important;
  color: #0f172a !important;
  font-weight: 600 !important;
}
:root[data-theme=dark] .nd-sig-card__title, [data-theme=dark] .nd-sig-card__title, .theme-dark .nd-sig-card__title {
  color: #f8fafc !important;
}
.nd-sig-card__sub {
  font-size: 11px !important;
  color: #334155 !important;
  font-weight: 400 !important;
}
:root[data-theme=dark] .nd-sig-card__sub, [data-theme=dark] .nd-sig-card__sub, .theme-dark .nd-sig-card__sub {
  color: #cbd5e1 !important;
}
.nd-sig-card__links {
  font-size: 11px !important;
  color: #334155 !important;
}
:root[data-theme=dark] .nd-sig-card__links, [data-theme=dark] .nd-sig-card__links, .theme-dark .nd-sig-card__links {
  color: #94a3b8 !important;
}
.nd-sig-card__links a {
  color: #0b45b2 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  font-weight: 600 !important;
}
.nd-sig-card__links a:hover {
  color: #002d7a !important;
}

:root[data-theme=dark] .nd-sig-card__links,
[data-theme=dark] .nd-sig-card__links,
.theme-dark .nd-sig-card__links {
  color: #cbd5e1 !important;
}
:root[data-theme=dark] .nd-sig-card__links a,
[data-theme=dark] .nd-sig-card__links a,
.theme-dark .nd-sig-card__links a {
  color: #93c5fd !important;
}
:root[data-theme=dark] .nd-sig-card__links a:hover,
[data-theme=dark] .nd-sig-card__links a:hover,
.theme-dark .nd-sig-card__links a:hover {
  color: #bfdbfe !important;
}

.nd-thread {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nd-message {
  background-color: var(--surface-card);
  border: none !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  border-left: none !important;
  border-radius: 0 !important;
  padding: 14px 20px;
  box-shadow: none !important;
  transition: none;
}
.nd-message:last-child {
  border-bottom: none !important;
  border-bottom-left-radius: 8px !important;
}
.nd-message::before {
  display: none !important;
  content: none !important;
}
.nd-message--inbound {
  background-color: var(--surface-card);
}
.nd-message--outbound {
  background-color: var(--surface-card) !important;
}
.nd-message--internal {
  background-color: rgba(232, 164, 0, 0.05) !important;
  border-bottom: 1px solid rgba(232, 164, 0, 0.25) !important;
}
.nd-message--internal .nd-caption,
.nd-message--internal .nd-message__author .nd-caption {
  color: #334155 !important;
  font-weight: 500;
}
:root[data-theme=dark] .nd-message--internal .nd-caption, [data-theme=dark] .nd-message--internal .nd-caption, .theme-dark .nd-message--internal .nd-caption,
:root[data-theme=dark] .nd-message--internal .nd-message__author .nd-caption,
[data-theme=dark] .nd-message--internal .nd-message__author .nd-caption,
.theme-dark .nd-message--internal .nd-message__author .nd-caption {
  color: #cbd5e1 !important;
}
.nd-message--ai {
  background-color: rgba(14, 165, 233, 0.04) !important;
}
.nd-message__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: nowrap;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: none;
  min-width: 0;
}
.nd-message__author {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}
.nd-message__author .nd-badge {
  padding: 1px 7px;
  font-size: 11px;
  border-radius: 4px;
  flex-shrink: 0;
}
.nd-message__author .nd-badge--warning {
  color: #78350F !important;
  background-color: rgba(232, 164, 0, 0.14) !important;
  border-color: rgba(232, 164, 0, 0.3) !important;
}
:root[data-theme=dark] .nd-message__author .nd-badge--warning, [data-theme=dark] .nd-message__author .nd-badge--warning, .theme-dark .nd-message__author .nd-badge--warning {
  color: #FCD34D !important;
  background-color: rgba(232, 164, 0, 0.18) !important;
  border-color: rgba(232, 164, 0, 0.32) !important;
}
.nd-message__author-name {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
  min-width: 0;
}
.nd-message__author-email {
  color: #475569;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
:root[data-theme=dark] .nd-message__author-email, [data-theme=dark] .nd-message__author-email, .theme-dark .nd-message__author-email {
  color: #94a3b8 !important;
}
.nd-message__avatar {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  background-image: none !important;
  box-shadow: none !important;
}
.nd-message__avatar--agent {
  background-color: var(--brand-primary);
  color: #ffffff;
}
.nd-message__avatar--client {
  background-color: #0369A1 !important;
  color: #FFFFFF !important;
}
.nd-message__avatar--internal {
  background-color: #b45309 !important;
  color: #FFFFFF !important;
}
.nd-message__meta {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
:root[data-theme=dark] .nd-message__meta, [data-theme=dark] .nd-message__meta, .theme-dark .nd-message__meta {
  color: #94a3b8 !important;
}
.nd-message__date {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nd-message__body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-primary);
  word-break: break-word;
  text-wrap: pretty;
  max-width: 72ch;
  padding-left: 32px;
}
.nd-message__attachments {
  margin-top: 8px;
  padding-top: 8px;
  padding-left: 32px;
  border-top: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nd-metadata-section {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.nd-metadata-section:last-child {
  border-bottom: none;
}
.nd-metadata-section__title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-primary);
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nd-metadata-section__title a.nd-caption {
  font-weight: 600;
  color: var(--text-link);
  text-transform: none;
  letter-spacing: 0;
}
.nd-metadata-section .nd-field {
  margin-bottom: 8px;
  gap: 4px;
}
.nd-metadata-section .nd-field:last-child {
  margin-bottom: 0;
}
.nd-metadata-section .nd-field__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nd-metadata-section--footer {
  position: static;
  margin-top: auto;
  padding: 14px 16px;
  background-color: var(--surface-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: none;
  border-bottom-right-radius: 8px;
}

.nd-metadata-save-btn {
  height: 38px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  background: var(--brand-primary) !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid var(--brand-primary-dark, #0a4fd1) !important;
  box-shadow: none !important;
}
.nd-metadata-save-btn:hover {
  background: var(--brand-primary-dark, #0a4fd1) !important;
}

.nd-print-logo,
.nd-print-only img,
.nd-print-sheet .nd-page-header img,
.nd-print-card__brand img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  flex-shrink: 0;
  display: inline-block !important;
}

.nd-print-sheet {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nd-print-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0;
  color: var(--text-primary);
  overflow: hidden;
}
.nd-print-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0;
  background-color: var(--bg-panel);
}
.nd-print-card__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nd-print-card__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}
.nd-print-card__protocol-box {
  text-align: right;
}
.nd-print-card__protocol {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}
.nd-print-card__body {
  padding: 18px 24px 0;
}
.nd-print-card__subject {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--text-primary);
}

.nd-print-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  padding: 14px 0;
  background-color: transparent;
  border: none;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  font-variant-numeric: tabular-nums;
}
.nd-print-grid__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
}
.nd-print-grid__item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.nd-print-thread {
  margin-top: 0 !important;
}
.nd-print-thread .nd-message {
  padding: 14px 24px;
}
.nd-print-thread .nd-message__body {
  padding-left: 0;
}

@media (max-width: 960px) {
  .nd-mobile-categorize-btn {
    min-height: 44px !important;
    padding: 0 14px !important;
    font-size: 12.5px !important;
    border-radius: 6px !important;
  }
  .nd-ticket-header {
    padding: 12px 14px;
  }
  .nd-ticket-header__subject {
    font-size: 15.5px;
  }
  .nd-ticket-header .nd-popover-trigger--pill {
    min-height: 44px;
    padding: 0 12px;
  }
  .nd-editor__header {
    padding: 10px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .nd-editor__header .nd-page-header__actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .nd-editor__header .nd-popover-trigger {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nd-editor__header [data-action=ai-improve-reply] {
    flex: 1 1 auto;
    min-height: 44px;
    justify-content: center;
  }
  .nd-editor__mode-toggle {
    flex: 1 1 100%;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 3px;
  }
  .nd-editor__mode-toggle .nd-editor__mode-btn {
    justify-content: center;
    min-height: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
  }
  .nd-editor__signature-selector {
    width: 100%;
  }
  .nd-editor__signature-selector .nd-dropdown {
    width: 100%;
    max-width: none;
  }
  .nd-editor__signature-selector .nd-dropdown__trigger {
    min-height: 44px;
    height: 44px;
  }
  .nd-editor__toolbar {
    padding: 6px 10px;
    gap: 4px;
    flex-wrap: wrap !important;
    overflow-x: visible;
    justify-content: flex-start;
  }
  .nd-editor__tool-group {
    padding-right: 4px;
    margin-right: 0;
    gap: 4px;
  }
  .nd-editor__tool-btn {
    min-width: 44px !important;
    width: 44px !important;
    min-height: 44px !important;
    height: 44px !important;
  }
  .nd-editor__more-btn,
  .nd-editor summary.nd-editor__more-btn {
    min-width: 44px !important;
    width: 44px !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 8px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .nd-editor__more-btn span,
  .nd-editor summary.nd-editor__more-btn span {
    display: none;
  }
  .nd-editor__more-popover .nd-dropdown__trigger,
  .nd-editor__more-popover .nd-editor__tool-btn {
    min-width: 44px !important;
    min-height: 44px !important;
    height: 44px !important;
  }
  .nd-editor__canvas {
    padding: 12px 14px;
  }
  .nd-editor__dropzone {
    padding: 8px 14px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .nd-editor__dropzone .nd-file-upload__btn {
    min-height: 44px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
  }
  .nd-editor__footer {
    padding: 10px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .nd-editor__footer .nd-page-header__actions {
    flex: none;
    width: 100%;
    min-width: 0;
  }
  .nd-editor__footer .nd-page-header__actions .nd-dropdown__trigger {
    min-height: 44px;
    height: 44px;
  }
  .nd-editor__footer #btn-submit-reply {
    width: 100%;
    min-height: 44px;
    height: 44px;
  }
  .nd-message {
    padding: 12px 14px;
  }
  .nd-message__header {
    gap: 6px;
  }
  .nd-message__author {
    gap: 6px;
  }
  .nd-message__author-email {
    display: none;
  }
  .nd-message__author-name {
    max-width: none;
  }
  .nd-message__meta {
    font-size: 11px;
    gap: 6px;
  }
  .nd-message__meta .nd-btn {
    min-height: 44px;
  }
  .nd-message__body, .nd-message__attachments {
    padding-left: 0;
  }
  .nd-message__attachments .nd-btn {
    min-height: 44px;
  }
  .nd-ticket-workspace__sidebar .nd-mobile-close-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nd-ticket-workspace__sidebar .nd-input,
  .nd-ticket-workspace__sidebar .nd-select,
  .nd-ticket-workspace__sidebar .nd-dropdown__trigger,
  .nd-ticket-workspace__sidebar .nd-smart-date__trigger {
    min-height: 44px;
    height: 44px;
  }
  .nd-ticket-workspace__sidebar .nd-inline-creator__btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .nd-ticket-workspace__sidebar .nd-metadata-section--footer {
    position: sticky;
    bottom: 0;
    z-index: 20;
  }
  .nd-ticket-workspace__sidebar .nd-metadata-save-btn {
    min-height: 44px !important;
    height: 44px !important;
  }
  .nd-print-sheet .nd-page-header .nd-btn {
    min-height: 44px;
  }
  .nd-print-card__header {
    padding: 14px 16px;
    flex-wrap: wrap;
  }
  .nd-print-card__body {
    padding: 14px 16px 0;
  }
  .nd-print-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .nd-print-thread .nd-message {
    padding: 12px 16px;
  }
}
.nd-metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nd-metrics-toolbar.nd-filter-bar {
  border-radius: 8px;
  padding: 8px 12px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  margin-bottom: 16px;
  gap: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nd-metrics-toolbar.nd-filter-bar .nd-filter-bar__group {
  gap: 8px;
  flex: 1 1 auto;
  max-width: 640px;
}
.nd-metrics-toolbar.nd-filter-bar.nd-ai-filter-bar .nd-filter-bar__group {
  max-width: 860px;
}
.nd-metrics-toolbar.nd-filter-bar .nd-metrics-toolbar__dispatch,
.nd-metrics-toolbar.nd-filter-bar > .nd-page-header__actions {
  display: inline-flex;
  align-items: center;
  padding-left: 14px;
  margin-left: auto;
  border-left: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.nd-metrics-toolbar.nd-filter-bar .nd-dropdown,
.nd-metrics-toolbar.nd-filter-bar .nd-select,
.nd-metrics-toolbar.nd-filter-bar .nd-input {
  border-radius: 6px;
}

.nd-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
}
@media (max-width: 1024px) {
  .nd-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .nd-kpi-strip {
    grid-template-columns: 1fr;
  }
}

.nd-kpi-strip__item {
  background-color: var(--surface-card);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  border-right: 1px solid var(--border-subtle);
  transition: background-color 140ms ease;
}
.nd-kpi-strip__item:last-child {
  border-right: none;
}
.nd-kpi-strip__item:hover {
  background-color: var(--surface-raised);
}
@media (max-width: 1024px) {
  .nd-kpi-strip__item:nth-child(2n) {
    border-right: none;
  }
  .nd-kpi-strip__item:nth-child(-n+2) {
    border-bottom: 1px solid var(--border-subtle);
  }
}
@media (max-width: 600px) {
  .nd-kpi-strip__item {
    border-right: none !important;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nd-kpi-strip__item:last-child {
    border-bottom: none;
  }
}

.nd-kpi-strip__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 20px;
}

.nd-kpi-strip__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.nd-kpi-strip__badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.25;
  border: 1px solid transparent;
}
.nd-kpi-strip__badge--good {
  background-color: rgba(22, 163, 74, 0.12);
  color: #166534;
  border-color: rgba(22, 163, 74, 0.24);
}
:root[data-theme=dark] .nd-kpi-strip__badge--good, html.theme-dark .nd-kpi-strip__badge--good {
  background-color: rgba(22, 163, 74, 0.2);
  color: #86EFAC;
  border-color: rgba(22, 163, 74, 0.34);
}
.nd-kpi-strip__badge--warning {
  background-color: rgba(232, 164, 0, 0.14);
  color: #9A6700;
  border-color: rgba(232, 164, 0, 0.26);
}
:root[data-theme=dark] .nd-kpi-strip__badge--warning, html.theme-dark .nd-kpi-strip__badge--warning {
  background-color: rgba(232, 164, 0, 0.2);
  color: #FCD34D;
}
.nd-kpi-strip__badge--info {
  background-color: rgba(21, 101, 255, 0.1);
  color: #0A4FD1;
  border-color: rgba(21, 101, 255, 0.22);
}
:root[data-theme=dark] .nd-kpi-strip__badge--info, html.theme-dark .nd-kpi-strip__badge--info {
  background-color: rgba(21, 101, 255, 0.2);
  color: #93C5FD;
}

.nd-kpi-strip__value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "cv05" 1;
}
.nd-kpi-strip__value small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: normal;
}

.nd-kpi-strip__target {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}
.nd-kpi-strip__target span.nd-meta-hint {
  color: var(--text-secondary);
  font-size: 11.5px;
}

.nd-metrics__charts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1080px) {
  .nd-metrics__charts-grid {
    grid-template-columns: 1fr;
  }
}
.nd-metrics__charts-grid > .nd-card {
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}
.nd-metrics__charts-grid > .nd-card .nd-card__header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background-color: transparent;
}
.nd-metrics__charts-grid > .nd-card .nd-card__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.nd-metrics__charts-grid > .nd-card .nd-card__title i {
  color: var(--text-secondary);
  font-size: 15px;
}
.nd-metrics__charts-grid > .nd-card .nd-card__body {
  padding: 14px 16px;
  flex: 1;
}

.nd-bar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nd-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nd-bar-item__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.35;
}
.nd-bar-item__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  font-weight: 500;
  min-width: 0;
  flex: 1 1 auto;
}
.nd-bar-item__label > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nd-bar-item__label i {
  font-size: 13px;
  flex-shrink: 0;
}
.nd-bar-item__label i.nd-icon--urgente {
  color: #E0323C;
}
.nd-bar-item__label i.nd-icon--importante {
  color: #1565FF;
}
.nd-bar-item__label i.nd-icon--circunstancial {
  color: #E8A400;
}
.nd-bar-item__label i.nd-icon--novo {
  color: #1565FF;
}
.nd-bar-item__label i.nd-icon--aguardando {
  color: #E8A400;
}
.nd-bar-item__label i.nd-icon--resolvido {
  color: #16A34A;
}
.nd-bar-item__value {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  min-width: 82px;
  text-align: right;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.nd-bar-item__count {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 12.5px;
}
.nd-bar-item__pct {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 11.5px;
  text-align: right;
}

progress.nd-progress {
  width: 100%;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 9999px;
  background-color: var(--track);
  overflow: hidden;
  display: block;
}
progress.nd-progress::-webkit-progress-bar {
  background-color: var(--track);
  border-radius: 9999px;
}
progress.nd-progress::-webkit-progress-value {
  background-image: none !important;
  background-color: #1565FF;
  border-radius: 9999px;
  transition: width 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
progress.nd-progress::-moz-progress-bar {
  background-image: none !important;
  background-color: #1565FF;
  border-radius: 9999px;
}
progress.nd-progress.nd-progress--urgente::-webkit-progress-value {
  background: #E0323C !important;
  background-color: #E0323C !important;
}
progress.nd-progress.nd-progress--urgente::-moz-progress-bar {
  background: #E0323C !important;
  background-color: #E0323C !important;
}
progress.nd-progress.nd-progress--importante::-webkit-progress-value {
  background: #1565FF !important;
  background-color: #1565FF !important;
}
progress.nd-progress.nd-progress--importante::-moz-progress-bar {
  background: #1565FF !important;
  background-color: #1565FF !important;
}
progress.nd-progress.nd-progress--circunstancial::-webkit-progress-value {
  background: #E8A400 !important;
  background-color: #E8A400 !important;
}
progress.nd-progress.nd-progress--circunstancial::-moz-progress-bar {
  background: #E8A400 !important;
  background-color: #E8A400 !important;
}
progress.nd-progress.nd-progress--novo::-webkit-progress-value {
  background: #1565FF !important;
  background-color: #1565FF !important;
}
progress.nd-progress.nd-progress--novo::-moz-progress-bar {
  background: #1565FF !important;
  background-color: #1565FF !important;
}
progress.nd-progress.nd-progress--aguardando::-webkit-progress-value {
  background: #E8A400 !important;
  background-color: #E8A400 !important;
}
progress.nd-progress.nd-progress--aguardando::-moz-progress-bar {
  background: #E8A400 !important;
  background-color: #E8A400 !important;
}
progress.nd-progress.nd-progress--resolvido::-webkit-progress-value {
  background: #16A34A !important;
  background-color: #16A34A !important;
}
progress.nd-progress.nd-progress--resolvido::-moz-progress-bar {
  background: #16A34A !important;
  background-color: #16A34A !important;
}

.nd-ai-diagnostic-grid .nd-card__body {
  padding: 8px 16px;
}

.nd-insight-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nd-insight-item {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--divider);
  border-radius: 0;
  padding: 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.nd-insight-item:last-child {
  border-bottom: none;
}
.nd-insight-item__icon {
  font-size: 13px;
  margin-top: 4px;
  flex-shrink: 0;
}
.nd-insight-item__icon--urgente {
  color: #E0323C;
}
.nd-insight-item__icon--produto {
  color: #1565FF;
}
.nd-insight-item__icon--acao {
  color: #16A34A;
}
.nd-insight-item__icon--info {
  color: var(--text-secondary);
}
.nd-insight-item__text {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  flex: 1;
  text-wrap: pretty;
}
.nd-insight-item__text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.nd-ai-report-sheet {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nd-ai-report-sheet > .nd-page-header {
  margin-bottom: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.nd-ai-report-sheet > .nd-kpi-strip {
  margin-top: 0 !important;
}

.nd-ai-summary-section {
  padding: 12px 16px;
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nd-ai-summary-section__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nd-ai-summary-section__title i {
  color: var(--brand-primary);
  font-size: 15px;
}

.nd-insight-card__summary {
  margin: 0;
  line-height: 1.6;
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 75ch;
}

.nd-ai-report-col {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nd-ai-report-col__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 7px;
}
.nd-ai-report-col__title i {
  color: var(--text-secondary);
  font-size: 15px;
}

.nd-ai-demand-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 4px;
}
@media (max-width: 960px) {
  .nd-ai-demand-strip {
    grid-template-columns: 1fr;
  }
}
.nd-ai-demand-strip__col {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 16px;
  background-color: var(--surface-card);
}
.nd-ai-demand-strip__title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nd-ai-demand-strip__title i {
  color: var(--text-secondary);
  font-size: 14px;
}

@media (max-width: 960px) {
  .nd-metrics-toolbar.nd-filter-bar {
    padding: 10px;
    gap: 10px;
  }
  .nd-metrics-toolbar.nd-filter-bar .nd-filter-bar__group {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    max-width: none !important;
  }
  .nd-metrics-toolbar.nd-filter-bar .nd-filter-bar__group > .nd-dropdown,
  .nd-metrics-toolbar.nd-filter-bar .nd-filter-bar__group > .nd-select,
  .nd-metrics-toolbar.nd-filter-bar .nd-filter-bar__group > .nd-input {
    display: inline-flex !important;
    width: 100% !important;
    min-height: 44px;
  }
  .nd-metrics-toolbar.nd-filter-bar .nd-filter-bar__group .nd-dropdown__trigger {
    min-height: 44px;
  }
  .nd-metrics-toolbar.nd-filter-bar .nd-metrics-toolbar__dispatch,
  .nd-metrics-toolbar.nd-filter-bar .nd-page-header__actions,
  .nd-metrics-toolbar.nd-filter-bar > button.nd-btn {
    width: 100%;
    padding-left: 0 !important;
    padding-top: 10px;
    margin-left: 0 !important;
    border-left: none !important;
    border-top: 1px solid var(--border-subtle);
  }
  .nd-metrics-toolbar.nd-filter-bar .nd-metrics-toolbar__dispatch .nd-btn,
  .nd-metrics-toolbar.nd-filter-bar .nd-page-header__actions .nd-btn,
  .nd-metrics-toolbar.nd-filter-bar > button.nd-btn .nd-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
  .nd-ai-report-sheet {
    padding: 14px;
  }
}
@media (max-width: 600px) {
  .nd-page-header__actions button.nd-btn,
  .nd-metrics-toolbar button.nd-btn,
  button.nd-btn--primary.nd-btn--sm {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}
.nd-tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: none;
}

.nd-tab-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.nd-tab-btn i {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 140ms ease;
}
.nd-tab-btn:hover:not(.nd-tab-btn--active) {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}
.nd-tab-btn:hover:not(.nd-tab-btn--active) i {
  color: var(--text-primary);
}
.nd-tab-btn--active {
  background: var(--surface-card) !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  border-color: var(--border-subtle);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.nd-tab-btn--active i {
  color: var(--brand-primary) !important;
}
:root[data-theme=dark] .nd-tab-btn--active, html.theme-dark .nd-tab-btn--active {
  background: var(--surface-card) !important;
  color: #F8FAFC !important;
  border-color: var(--border-strong);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
:root[data-theme=dark] .nd-tab-btn--active i, html.theme-dark .nd-tab-btn--active i {
  color: #60A5FA !important;
}
@media (max-width: 960px) {
  .nd-tabs .nd-tab-btn {
    flex: 1 1 calc(50% - 4px);
    min-height: 44px !important;
    height: auto !important;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.25;
  }
}

[data-tabs-scope] .nd-card {
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}
[data-tabs-scope] .nd-card__header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
[data-tabs-scope] .nd-card__title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
[data-tabs-scope] .nd-card__title i {
  color: var(--text-secondary);
  font-size: 16px;
}
[data-tabs-scope] .nd-card__body {
  padding: 16px;
}
[data-tabs-scope] .nd-card__footer {
  padding: 10px 16px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

[data-tabs-scope] .nd-card form.nd-filter-bar.nd-settings-inline-form,
[data-tabs-scope] .nd-card .nd-settings-inline-form.nd-filter-bar,
[data-tabs-scope] .nd-card .nd-settings-custom-field-form,
section.nd-card form.nd-filter-bar.nd-settings-inline-form,
section.nd-card .nd-settings-inline-form.nd-filter-bar,
section.nd-card .nd-settings-custom-field-form {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 0 14px 0 !important;
  margin: 0 0 14px 0 !important;
  gap: 10px;
  align-items: center;
}
[data-tabs-scope] .nd-card form.nd-filter-bar.nd-settings-inline-form:last-child,
[data-tabs-scope] .nd-card .nd-settings-inline-form.nd-filter-bar:last-child,
[data-tabs-scope] .nd-card .nd-settings-custom-field-form:last-child,
section.nd-card form.nd-filter-bar.nd-settings-inline-form:last-child,
section.nd-card .nd-settings-inline-form.nd-filter-bar:last-child,
section.nd-card .nd-settings-custom-field-form:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
[data-tabs-scope] .nd-card form.nd-filter-bar.nd-settings-inline-form .nd-filter-bar__group,
[data-tabs-scope] .nd-card .nd-settings-inline-form.nd-filter-bar .nd-filter-bar__group,
[data-tabs-scope] .nd-card .nd-settings-custom-field-form .nd-filter-bar__group,
section.nd-card form.nd-filter-bar.nd-settings-inline-form .nd-filter-bar__group,
section.nd-card .nd-settings-inline-form.nd-filter-bar .nd-filter-bar__group,
section.nd-card .nd-settings-custom-field-form .nd-filter-bar__group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  flex: 1;
  width: 100%;
}
[data-tabs-scope] .nd-card form.nd-filter-bar.nd-settings-inline-form .nd-filter-bar__group > .nd-input,
[data-tabs-scope] .nd-card form.nd-filter-bar.nd-settings-inline-form .nd-filter-bar__group > .nd-select,
[data-tabs-scope] .nd-card form.nd-filter-bar.nd-settings-inline-form .nd-filter-bar__group > .nd-dropdown,
[data-tabs-scope] .nd-card .nd-settings-inline-form.nd-filter-bar .nd-filter-bar__group > .nd-input,
[data-tabs-scope] .nd-card .nd-settings-inline-form.nd-filter-bar .nd-filter-bar__group > .nd-select,
[data-tabs-scope] .nd-card .nd-settings-inline-form.nd-filter-bar .nd-filter-bar__group > .nd-dropdown,
[data-tabs-scope] .nd-card .nd-settings-custom-field-form .nd-filter-bar__group > .nd-input,
[data-tabs-scope] .nd-card .nd-settings-custom-field-form .nd-filter-bar__group > .nd-select,
[data-tabs-scope] .nd-card .nd-settings-custom-field-form .nd-filter-bar__group > .nd-dropdown,
section.nd-card form.nd-filter-bar.nd-settings-inline-form .nd-filter-bar__group > .nd-input,
section.nd-card form.nd-filter-bar.nd-settings-inline-form .nd-filter-bar__group > .nd-select,
section.nd-card form.nd-filter-bar.nd-settings-inline-form .nd-filter-bar__group > .nd-dropdown,
section.nd-card .nd-settings-inline-form.nd-filter-bar .nd-filter-bar__group > .nd-input,
section.nd-card .nd-settings-inline-form.nd-filter-bar .nd-filter-bar__group > .nd-select,
section.nd-card .nd-settings-inline-form.nd-filter-bar .nd-filter-bar__group > .nd-dropdown,
section.nd-card .nd-settings-custom-field-form .nd-filter-bar__group > .nd-input,
section.nd-card .nd-settings-custom-field-form .nd-filter-bar__group > .nd-select,
section.nd-card .nd-settings-custom-field-form .nd-filter-bar__group > .nd-dropdown {
  width: 100%;
  min-width: 0;
  height: 36px;
  border-radius: 6px;
}
[data-tabs-scope] .nd-card form.nd-filter-bar.nd-settings-inline-form .nd-filter-bar__group .nd-dropdown__trigger,
[data-tabs-scope] .nd-card .nd-settings-inline-form.nd-filter-bar .nd-filter-bar__group .nd-dropdown__trigger,
[data-tabs-scope] .nd-card .nd-settings-custom-field-form .nd-filter-bar__group .nd-dropdown__trigger,
section.nd-card form.nd-filter-bar.nd-settings-inline-form .nd-filter-bar__group .nd-dropdown__trigger,
section.nd-card .nd-settings-inline-form.nd-filter-bar .nd-filter-bar__group .nd-dropdown__trigger,
section.nd-card .nd-settings-custom-field-form .nd-filter-bar__group .nd-dropdown__trigger {
  height: 36px;
  border-radius: 6px;
}
[data-tabs-scope] .nd-card form.nd-filter-bar.nd-settings-inline-form > .nd-btn,
[data-tabs-scope] .nd-card .nd-settings-inline-form.nd-filter-bar > .nd-btn,
[data-tabs-scope] .nd-card .nd-settings-custom-field-form > .nd-btn,
section.nd-card form.nd-filter-bar.nd-settings-inline-form > .nd-btn,
section.nd-card .nd-settings-inline-form.nd-filter-bar > .nd-btn,
section.nd-card .nd-settings-custom-field-form > .nd-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  flex-shrink: 0;
}
[data-tabs-scope] .nd-card .nd-settings-custom-field-form,
section.nd-card .nd-settings-custom-field-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
[data-tabs-scope] .nd-card div.nd-table-wrap,
[data-tabs-scope] .nd-card .nd-table-wrap,
section.nd-card div.nd-table-wrap,
section.nd-card .nd-table-wrap {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.nd-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.nd-settings-grid--3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 960px) {
  .nd-settings-grid {
    grid-template-columns: 1fr;
  }
}
.nd-settings-grid .nd-field {
  margin-bottom: 0;
}

.nd-settings-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.nd-settings-toggle-item {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.nd-settings-toggle-item label.nd-caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  margin: 0;
}
.nd-settings-toggle-item label.nd-caption input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.nd-settings-form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.nd-settings-form-footer--split {
  justify-content: space-between;
  flex-wrap: wrap;
}

.nd-settings-options-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

[data-tabs-scope] .nd-card form.nd-settings-mcp-form.nd-filter-bar,
.nd-settings-mcp-form.nd-filter-bar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}
[data-tabs-scope] .nd-card form.nd-settings-mcp-form.nd-filter-bar .nd-settings-mcp-form__key,
.nd-settings-mcp-form.nd-filter-bar .nd-settings-mcp-form__key {
  flex: 1 1 320px;
  margin-bottom: 0;
}
[data-tabs-scope] .nd-card form.nd-settings-mcp-form.nd-filter-bar .nd-settings-mcp-form__key .nd-input,
.nd-settings-mcp-form.nd-filter-bar .nd-settings-mcp-form__key .nd-input {
  height: 36px;
  border-radius: 6px;
}
[data-tabs-scope] .nd-card form.nd-settings-mcp-form.nd-filter-bar .nd-settings-mcp-form__controls,
.nd-settings-mcp-form.nd-filter-bar .nd-settings-mcp-form__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
[data-tabs-scope] .nd-card form.nd-settings-mcp-form.nd-filter-bar .nd-settings-mcp-form__controls .nd-btn,
.nd-settings-mcp-form.nd-filter-bar .nd-settings-mcp-form__controls .nd-btn {
  height: 36px;
  border-radius: 6px;
}
[data-tabs-scope] .nd-card form.nd-settings-mcp-form.nd-filter-bar .nd-settings-toggle-label,
.nd-settings-mcp-form.nd-filter-bar .nd-settings-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 10px;
  font-size: 12.5px;
  color: var(--text-primary);
  cursor: pointer;
}
[data-tabs-scope] .nd-card form.nd-settings-mcp-form.nd-filter-bar .nd-settings-toggle-label input[type=checkbox],
.nd-settings-mcp-form.nd-filter-bar .nd-settings-toggle-label input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-primary);
}

[data-tabs-scope] .nd-table {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
[data-tabs-scope] .nd-table th {
  padding: 9px 12px;
  background-color: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
[data-tabs-scope] .nd-table th:first-child {
  padding-left: 0;
}
[data-tabs-scope] .nd-table th:last-child {
  text-align: right;
  padding-right: 0;
}
[data-tabs-scope] .nd-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--divider);
  vertical-align: middle;
}
[data-tabs-scope] .nd-table td:first-child {
  padding-left: 0;
}
[data-tabs-scope] .nd-table td:last-child {
  text-align: right;
  padding-right: 0;
}
[data-tabs-scope] .nd-table td .nd-input {
  height: 34px;
  border-radius: 6px;
  font-size: 12.5px;
}

.nd-table--tfs-devs th:nth-child(1),
.nd-table--tfs-devs td:nth-child(1) {
  width: 30%;
  min-width: 180px;
}
.nd-table--tfs-devs th:nth-child(2),
.nd-table--tfs-devs td:nth-child(2) {
  width: 32%;
  min-width: 190px;
}
.nd-table--tfs-devs th:nth-child(3),
.nd-table--tfs-devs td:nth-child(3) {
  width: 24%;
  min-width: 150px;
}
.nd-table--tfs-devs th:nth-child(4),
.nd-table--tfs-devs td:nth-child(4) {
  width: 14%;
  white-space: nowrap;
}

.nd-table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.nd-table-actions form {
  margin: 0;
}

div.nd-ticket-workspace.nd-settings-signatures-grid,
.nd-settings-signatures-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
  gap: 16px !important;
  align-items: start !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
}
@media (max-width: 960px) {
  div.nd-ticket-workspace.nd-settings-signatures-grid,
  .nd-settings-signatures-grid {
    grid-template-columns: 1fr !important;
  }
}

.nd-cc-pill__btn {
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

:root:not([data-theme=dark]) .nd-table th {
  color: #475569 !important;
}
:root:not([data-theme=dark]) .nd-badge--resolved,
:root:not([data-theme=dark]) .nd-badge--done,
:root:not([data-theme=dark]) .nd-status-badge--resolved,
:root:not([data-theme=dark]) .nd-status-badge--done {
  color: #166534 !important;
}
:root:not([data-theme=dark]) .nd-cc-pill {
  color: #0A4FD1 !important;
  background-color: #E8F0FE !important;
  border-color: #B9D3FC !important;
}
:root:not([data-theme=dark]) .nd-cc-pill .nd-cc-pill__btn {
  color: #0A4FD1 !important;
  opacity: 0.85;
}
:root:not([data-theme=dark]) .nd-cc-pill .nd-cc-pill__btn:hover {
  opacity: 1;
  background-color: rgba(10, 79, 209, 0.1);
}
:root:not([data-theme=dark]) .nd-cc-pill .nd-cc-pill__btn--remove:hover {
  color: #B91C1C !important;
  background-color: rgba(185, 28, 28, 0.1);
}

@media (max-width: 960px) {
  [data-tabs-scope] input.nd-input,
  [data-tabs-scope] .nd-input,
  [data-tabs-scope] .nd-select,
  [data-tabs-scope] .nd-dropdown,
  [data-tabs-scope] .nd-dropdown__trigger,
  [data-tabs-scope] .nd-cc-box__input,
  [data-tabs-scope] .nd-readonly-box {
    min-height: 44px !important;
    height: 44px !important;
  }
  [data-tabs-scope] .nd-btn,
  [data-tabs-scope] .nd-btn--sm,
  [data-tabs-scope] button.nd-btn,
  [data-tabs-scope] a.nd-btn {
    min-height: 44px !important;
    height: auto !important;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  [data-tabs-scope] .nd-table td .nd-btn--ghost,
  [data-tabs-scope] .nd-table td .nd-btn--sm {
    min-width: 44px !important;
    min-height: 44px !important;
  }
  [data-tabs-scope] .nd-cc-pill {
    min-height: 44px;
    padding: 4px 10px;
  }
  [data-tabs-scope] .nd-cc-pill__btn {
    min-width: 44px !important;
    min-height: 44px !important;
  }
  [data-tabs-scope] .nd-popover-trigger {
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  [data-tabs-scope] .nd-editor__tool-btn {
    min-width: 44px !important;
    min-height: 44px !important;
  }
  [data-tabs-scope] .nd-settings-toggle-item label.nd-caption,
  [data-tabs-scope] .nd-settings-toggle-label,
  [data-tabs-scope] .nd-page-header__actions label.nd-caption {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
  }
  [data-tabs-scope] .nd-card form.nd-filter-bar.nd-settings-inline-form,
  .nd-settings-inline-form.nd-filter-bar {
    padding: 0 0 14px 0 !important;
  }
  [data-tabs-scope] .nd-card form.nd-filter-bar.nd-settings-inline-form .nd-filter-bar__group,
  .nd-settings-inline-form.nd-filter-bar .nd-filter-bar__group {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  [data-tabs-scope] .nd-card form.nd-filter-bar.nd-settings-inline-form .nd-filter-bar__group > .nd-dropdown,
  [data-tabs-scope] .nd-card form.nd-filter-bar.nd-settings-inline-form .nd-filter-bar__group > .nd-select,
  [data-tabs-scope] .nd-card form.nd-filter-bar.nd-settings-inline-form .nd-filter-bar__group > .nd-input,
  .nd-settings-inline-form.nd-filter-bar .nd-filter-bar__group > .nd-dropdown,
  .nd-settings-inline-form.nd-filter-bar .nd-filter-bar__group > .nd-select,
  .nd-settings-inline-form.nd-filter-bar .nd-filter-bar__group > .nd-input {
    display: inline-flex !important;
    width: 100% !important;
    min-height: 44px !important;
  }
  [data-tabs-scope] .nd-card form.nd-filter-bar.nd-settings-inline-form .nd-filter-bar__group .nd-dropdown__trigger,
  .nd-settings-inline-form.nd-filter-bar .nd-filter-bar__group .nd-dropdown__trigger {
    min-height: 44px !important;
  }
  [data-tabs-scope] .nd-card form.nd-filter-bar.nd-settings-inline-form > .nd-btn,
  .nd-settings-inline-form.nd-filter-bar > .nd-btn {
    width: 100%;
    min-height: 44px !important;
    justify-content: center;
  }
  [data-tabs-scope] .nd-card form.nd-settings-mcp-form.nd-filter-bar,
  .nd-settings-mcp-form.nd-filter-bar {
    align-items: stretch !important;
  }
  [data-tabs-scope] .nd-card form.nd-settings-mcp-form.nd-filter-bar .nd-settings-mcp-form__key,
  .nd-settings-mcp-form.nd-filter-bar .nd-settings-mcp-form__key {
    flex: 1 1 100%;
  }
  [data-tabs-scope] .nd-card form.nd-settings-mcp-form.nd-filter-bar .nd-settings-mcp-form__controls,
  .nd-settings-mcp-form.nd-filter-bar .nd-settings-mcp-form__controls {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  [data-tabs-scope] .nd-card form.nd-settings-mcp-form.nd-filter-bar .nd-settings-mcp-form__controls .nd-btn,
  .nd-settings-mcp-form.nd-filter-bar .nd-settings-mcp-form__controls .nd-btn {
    width: 100%;
    min-height: 44px !important;
    justify-content: center;
  }
  .nd-settings-form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .nd-settings-form-footer .nd-btn {
    width: 100%;
    min-height: 44px !important;
    justify-content: center;
  }
}
/* ==========================================================================
   Popovers Estruturados Multi-Linha (.nd-floating-popover)
   ========================================================================== */
.nd-floating-popover {
  position: fixed;
  max-width: 360px;
  min-width: 180px;
  padding: 10px 13px;
  background-color: var(--surface-popover);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  font-size: 12px;
  line-height: 1.45;
  z-index: 520;
  pointer-events: none;
  display: none;
}
.nd-floating-popover--visible {
  display: block;
}
.nd-floating-popover__title {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-primary);
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}
.nd-floating-popover__list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nd-floating-popover__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  line-height: 1.35;
}
.nd-floating-popover__row--plain {
  display: block;
  color: var(--text-secondary);
}
.nd-floating-popover__key {
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}
.nd-floating-popover__val {
  color: var(--text-primary);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.nd-floating-popover__single {
  color: var(--text-primary);
}

/* ==========================================================================
   20. Módulo Pós-Venda & Sucesso do Cliente (/PostSales — Minimalist UI)
   ========================================================================== */
.nd-postsales-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 84px;
}

.nd-ps-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1320px) {
  .nd-ps-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .nd-ps-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .nd-ps-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.nd-ps-kpi-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  cursor: help;
  transition: border-color 140ms ease, transform 140ms ease;
}
.nd-ps-kpi-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.nd-ps-kpi-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.nd-ps-kpi-card__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.nd-ps-kpi-card__label i {
  font-size: 12px;
  color: var(--text-muted);
}
.nd-ps-kpi-card__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.nd-ps-kpi-card__icon--emerald {
  background: rgba(16, 185, 129, 0.14);
  color: #10B981;
}
.nd-ps-kpi-card__icon--blue {
  background: rgba(21, 101, 255, 0.14);
  color: var(--brand-primary);
}
.nd-ps-kpi-card__icon--purple {
  background: rgba(124, 58, 237, 0.14);
  color: #8B5CF6;
}
.nd-ps-kpi-card__icon--amber {
  background: rgba(245, 158, 11, 0.14);
  color: #F59E0B;
}
.nd-ps-kpi-card__icon--cyan {
  background: rgba(6, 182, 212, 0.14);
  color: #06B6D4;
}
.nd-ps-kpi-card__value {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.nd-ps-kpi-card__value small {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.nd-ps-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.nd-ps-tabbar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  max-width: 100%;
}

.nd-ps-tab {
  height: 34px;
  padding: 0 13px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 140ms ease;
}
.nd-ps-tab i {
  font-size: 15px;
}
.nd-ps-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}
.nd-ps-tab:hover:not(.nd-ps-tab--active) {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}
.nd-ps-tab--active {
  background: var(--gradient-focus);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(21, 101, 255, 0.28);
}
.nd-ps-tab--active .nd-ps-tab__count {
  background: rgba(255, 255, 255, 0.22);
  border-color: transparent;
  color: #FFFFFF;
}

.nd-ps-Controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.nd-ps-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 220px;
  max-width: 290px;
  flex: 1 1 220px;
}
.nd-ps-search i {
  position: absolute;
  left: 11px;
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}
.nd-ps-search .nd-input {
  height: 34px;
  padding-left: 32px;
  font-size: 12.5px;
  width: 100%;
}

.nd-ps-seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.nd-ps-seg__btn {
  height: 28px;
  padding: 0 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 120ms ease;
}
.nd-ps-seg__btn:hover:not(.nd-ps-seg__btn--active) {
  color: var(--text-primary);
  background-color: var(--surface-hover);
}
.nd-ps-seg__btn--active {
  background-color: rgba(21, 101, 255, 0.15);
  color: var(--brand-primary);
  font-weight: 700;
}

.nd-ps-panel--hidden {
  display: none !important;
}

.nd-ps-table th {
  padding: 10px 12px !important;
  font-size: 10.5px !important;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.nd-ps-table td {
  padding: 9px 12px !important;
  vertical-align: middle !important;
  white-space: nowrap;
}

.nd-ps-col-check {
  width: 36px;
  text-align: center;
}
.nd-ps-col-check input[type=checkbox] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--brand-primary);
}

.nd-ps-col-rank {
  width: 44px;
}

.nd-ps-col-num {
  text-align: right !important;
}

.nd-ps-col-act {
  width: 110px;
  text-align: right !important;
}

.nd-ps-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 21px;
  padding: 0 5px;
  border-radius: 5px;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.nd-ps-cell-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 290px;
}

.nd-ps-title-truncate {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nd-ps-info-btn {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}
.nd-ps-info-btn:hover {
  background: var(--surface-hover);
  color: var(--brand-primary);
}
.nd-ps-info-btn--verified {
  color: #10B981;
}

.nd-ps-dot-alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(224, 50, 60, 0.16);
  color: #F87171;
  font-size: 10.5px;
  font-weight: 800;
  text-decoration: none;
}

.nd-ps-contact-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 280px;
  overflow: hidden;
}
.nd-ps-contact-line__name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
}
.nd-ps-contact-line__email {
  font-size: 11.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.nd-ps-email-text {
  font-size: 12px;
  color: var(--text-secondary);
}

.nd-ps-pills-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nd-ps-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}
.nd-ps-pill--adv {
  background: rgba(124, 58, 237, 0.14);
  color: #A78BFA;
  border-color: rgba(124, 58, 237, 0.25);
}
.nd-ps-pill--int {
  background: rgba(21, 101, 255, 0.14);
  color: #60A5FA;
  border-color: rgba(21, 101, 255, 0.25);
}
.nd-ps-pill--bas {
  background: rgba(16, 185, 129, 0.14);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.25);
}

[data-theme=light] .nd-ps-pill--adv {
  color: #6D28D9;
}
[data-theme=light] .nd-ps-pill--int {
  color: #1D4ED8;
}
[data-theme=light] .nd-ps-pill--bas {
  color: #047857;
}

.nd-ps-users-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: help;
}

.nd-ps-cycle-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: help;
}
.nd-ps-cycle-tag--annual {
  background: rgba(21, 101, 255, 0.12);
  color: var(--brand-primary);
}
.nd-ps-cycle-tag--monthly {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
}

.nd-ps-val {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  cursor: help;
}
.nd-ps-val--monthly {
  color: #10B981;
}
.nd-ps-val--annual {
  color: var(--text-primary);
}

.nd-ps-act-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nd-ps-sent-icon {
  color: #10B981;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  cursor: help;
}

.nd-ps-send-btn {
  height: 28px !important;
  padding: 0 10px !important;
  font-size: 11.5px !important;
}

.nd-ps-bulkbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  z-index: 220;
  display: none;
  align-items: center;
  gap: 18px;
  padding: 10px 16px;
  background: var(--surface-card);
  border: 1px solid var(--brand-primary);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}
.nd-ps-bulkbar--visible {
  display: inline-flex;
}
.nd-ps-bulkbar__info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.nd-ps-bulkbar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 12px;
}
.nd-ps-bulkbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nd-ps-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(6, 10, 20, 0.72);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.nd-ps-modal-backdrop--open {
  display: flex;
}

.nd-ps-modal {
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.52);
  display: flex;
  flex-direction: column;
}
.nd-ps-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.nd-ps-modal__title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nd-ps-modal__title-group h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-primary);
}
.nd-ps-modal__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(21, 101, 255, 0.14);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.nd-ps-modal__subtitle {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-secondary);
}
.nd-ps-modal__reply-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #10B981;
  font-weight: 600;
  cursor: help;
}
.nd-ps-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nd-ps-modal__close:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}
.nd-ps-modal__body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nd-ps-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.nd-ps-modal__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.nd-ps-modal__status code {
  color: var(--text-secondary);
  font-size: 11.5px;
}
.nd-ps-modal__buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nd-ps-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) {
  .nd-ps-form-row {
    grid-template-columns: 1fr;
  }
}

.nd-ps-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nd-ps-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.nd-ps-vars-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.nd-ps-vars-bar__hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-right: 2px;
}

.nd-ps-var-chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(21, 101, 255, 0.1);
  border: 1px solid rgba(21, 101, 255, 0.25);
  color: var(--brand-primary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 120ms ease;
}
.nd-ps-var-chip:hover {
  background: var(--brand-primary);
  color: #FFFFFF;
}

.nd-ps-studio-editor {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
}

.nd-ps-editor-canvas {
  min-height: 170px !important;
  max-height: 260px !important;
}
.nd-ps-editor-canvas p {
  margin: 0 0 8px 0;
}
.nd-ps-editor-canvas ul, .nd-ps-editor-canvas ol {
  margin: 0 0 8px 0;
  padding-left: 20px;
}

@media (max-width: 768px) {
  .nd-ps-nav-row {
    flex-direction: column;
    align-items: stretch;
  }
  .nd-ps-Controls {
    justify-content: stretch;
  }
  .nd-ps-search {
    max-width: none;
  }
  .nd-ps-table thead {
    display: none;
  }
  .nd-ps-table tbody, .nd-ps-table tr, .nd-ps-table td {
    display: block;
    width: 100%;
  }
  .nd-ps-table tr.nd-ps-row {
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--surface-card);
  }
  .nd-ps-table td {
    padding: 4px 0 !important;
    border: none !important;
    text-align: left !important;
  }
}
