/*
 * UI Kit Nájela Maurício — Foco Líquido v1.1
 * Fonte canônica: Folha de Componentes responsiva de 16/08/2026.
 * sopro.applied=true | sopro.version=2.6 | sopro.stage=consolidated
 */
:root {
  --nm-black: #080706;
  --nm-brown: #2e241d;
  --nm-gray: #534d44;
  --nm-beige: #e1dbcf;
  --nm-gold: #a9763d;
  --nm-white: #ffffff;

  --canvas: #e1dbcf;
  --surface: #f7f3ec;
  --surface-raised: #ffffff;
  --surface-liquid: rgba(255, 255, 255, .74);
  --text-primary: #343231;
  /* Ajuste técnico de #66635f para preservar contraste AA sobre o bege canônico. */
  --text-secondary: #625f5b;
  --border: rgba(83, 77, 68, .24);
  --accent: #a9763d;
  --accent-hover: #8f602f;
  --accent-soft: #e8d4bc;

  --success: #2f6b4f;
  --success-bg: #e3f0e9;
  --warning: #8a621f;
  --warning-bg: #f5ebd8;
  --error: #934545;
  --error-bg: #f6e4e2;
  --information: #4d6372;
  --information-bg: #e5edf1;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --blur-liquid: 20px;
  --control-height: 48px;
  --touch-target: 44px;
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 5px rgba(169, 118, 61, .58);
  --shadow-liquid: 0 12px 32px rgba(46, 36, 29, .14);
  --shadow-raised: 0 18px 48px rgba(46, 36, 29, .18);
  --font-display: Georgia, "Times New Roman", serif;
  --font-interface: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --motion-fast: 160ms ease-out;
  --motion-base: 220ms ease-out;
}

[data-theme="executive"],
html[data-theme="dark"] {
  --canvas: #080706;
  --surface: #151210;
  --surface-raised: #211a15;
  --surface-liquid: rgba(33, 26, 21, .78);
  --text-primary: #f3ede4;
  --text-secondary: #b9b0a7;
  --border: rgba(169, 118, 61, .32);
  --accent: #a9763d;
  --accent-hover: #c08b50;
  --accent-soft: rgba(169, 118, 61, .2);
  --success-bg: #14261d;
  --warning-bg: #2a2113;
  --error-bg: #2a1717;
  --information-bg: #172127;
  --shadow-liquid: 0 18px 48px rgba(0, 0, 0, .36);
  --shadow-raised: 0 24px 64px rgba(0, 0, 0, .46);
}
html[data-theme="dark"] { color-scheme: dark; }

.nm-ui {
  color: var(--text-primary);
  background: var(--canvas);
  font-family: var(--font-interface);
}

.nm-display,
.nm-title,
.nm-card__title {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.035em;
}
.nm-display { font-size: clamp(2.125rem, 4vw, 3rem); line-height: 1.17; }
.nm-title { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.22; }
.nm-subtitle { font-size: clamp(1.25rem, 2vw, 1.375rem); line-height: 1.36; }
.nm-body { font-size: 1rem; line-height: 1.5; }
.nm-label { font-size: .875rem; line-height: 1.43; }
.nm-caption { font-size: .75rem; line-height: 1.5; }
.nm-muted { color: var(--text-secondary); }
.nm-number { font-variant-numeric: tabular-nums; }

.liquid-surface {
  border: 1px solid var(--border);
  background: var(--surface-liquid);
  box-shadow: var(--shadow-liquid);
  -webkit-backdrop-filter: blur(var(--blur-liquid)) saturate(1.08);
  backdrop-filter: blur(var(--blur-liquid)) saturate(1.08);
}

.nm-card {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  background: var(--surface);
}
.nm-card--liquid { background: var(--surface-liquid); box-shadow: var(--shadow-liquid); }
.nm-card--raised { background: var(--surface-raised); box-shadow: var(--shadow-raised); }
.nm-card--action { border-color: color-mix(in srgb, var(--accent) 64%, transparent); }
.nm-card--clickable { transition: transform var(--motion-base), border-color var(--motion-base), box-shadow var(--motion-base); }
.nm-card--clickable:hover { border-color: var(--accent); transform: translateY(-2px); }
.nm-card--clickable:focus-within { box-shadow: var(--focus-ring); }
.nm-card__eyebrow { margin: 0 0 .75rem; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nm-card__title { margin: 0; font-size: 1.5rem; line-height: 1.25; }
.nm-card__body { margin: .75rem 0 0; color: var(--text-secondary); line-height: 1.55; }
.nm-card__footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }

.nm-btn {
  display: inline-flex;
  min-height: var(--control-height);
  min-width: var(--touch-target);
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: 700 .92rem/1 var(--font-interface);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--motion-fast), background var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast);
}
.nm-btn:hover { transform: translateY(-1px); }
.nm-btn:active { transform: translateY(0); }
.nm-btn:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.nm-btn:disabled,
.nm-btn[aria-disabled="true"] { opacity: .48; pointer-events: none; transform: none; }
.nm-btn--primary { color: var(--nm-black); background: var(--accent); border-color: var(--accent); }
.nm-btn--primary:hover { color: var(--nm-black); background: var(--accent-hover); border-color: var(--accent-hover); }
.nm-btn--secondary { color: var(--text-primary); background: transparent; border-color: var(--border); }
.nm-btn--secondary:hover { color: var(--text-primary); background: var(--accent-soft); border-color: var(--accent); }
.nm-btn--tertiary { color: var(--accent); background: transparent; }
.nm-btn--tertiary:hover { color: var(--accent-hover); background: var(--accent-soft); }
.nm-btn--danger { color: #fff; background: var(--error); border-color: var(--error); }
.nm-btn--danger:hover { color: #fff; background: #763535; border-color: #763535; }
.nm-btn--icon { width: var(--control-height); padding: 0; border-radius: 50%; }
.nm-btn--block { width: 100%; }
.nm-btn__spinner { width: 1rem; height: 1rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: nm-spin .8s linear infinite; }
@keyframes nm-spin { to { transform: rotate(360deg); } }

.nm-field { margin-bottom: 1.5rem; }
.nm-field__label { display: block; margin-bottom: .5rem; color: var(--text-primary); font-size: .875rem; font-weight: 700; }
.nm-field__control {
  width: 100%;
  min-height: var(--control-height);
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: var(--surface);
  font: 1rem/1.5 var(--font-interface);
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
}
.nm-field__control::placeholder { color: color-mix(in srgb, var(--text-secondary) 72%, transparent); }
.nm-field__control:hover { border-color: color-mix(in srgb, var(--accent) 62%, var(--border)); }
.nm-field__control:focus { border-color: var(--accent); outline: 0; box-shadow: var(--focus-ring); }
.nm-field__control:disabled { opacity: .58; cursor: not-allowed; }
.nm-field__control[aria-invalid="true"] { border-color: var(--error); }
.nm-field__help, .nm-field__error { margin: .45rem 0 0; font-size: .75rem; line-height: 1.5; }
.nm-field__help { color: var(--text-secondary); }
.nm-field__error { color: var(--error); }
.nm-field--code .nm-field__control { font-size: 1.5rem; letter-spacing: .28em; text-align: center; font-variant-numeric: tabular-nums; }

.nm-check { display: inline-flex; min-height: var(--touch-target); align-items: center; gap: .65rem; color: var(--text-primary); cursor: pointer; }
.nm-check input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.nm-switch { display: inline-flex; min-height: var(--touch-target); align-items: center; gap: .65rem; cursor: pointer; }
.nm-switch input { position: absolute; opacity: 0; }
.nm-switch__track { position: relative; width: 2.75rem; height: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--text-secondary); transition: background var(--motion-fast); }
.nm-switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: var(--surface); transition: transform var(--motion-fast); }
.nm-switch input:checked + .nm-switch__track { background: var(--accent); }
.nm-switch input:checked + .nm-switch__track::after { transform: translateX(1.23rem); }
.nm-switch input:focus-visible + .nm-switch__track { box-shadow: var(--focus-ring); }

.nm-alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  line-height: 1.5;
}
.nm-alert__icon { display: inline-grid; flex: 0 0 1.35rem; width: 1.35rem; height: 1.35rem; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .75rem; font-weight: 800; }
.nm-alert--success { color: var(--success); background: var(--success-bg); }
.nm-alert--warning { color: var(--warning); background: var(--warning-bg); }
.nm-alert--error { color: var(--error); background: var(--error-bg); }
.nm-alert--information { color: var(--information); background: var(--information-bg); }

.nm-badge, .nm-chip {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  gap: .35rem;
  padding: .25rem .65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
}
.nm-badge--gold { color: var(--nm-black); background: var(--accent); border-color: var(--accent); }
.nm-badge--neutral { color: var(--text-primary); background: var(--surface-raised); }
.nm-badge--success { color: var(--success); background: var(--success-bg); border-color: currentColor; }
.nm-badge--danger { color: var(--error); background: var(--error-bg); border-color: currentColor; }
.nm-chip { min-height: 2rem; color: var(--text-primary); background: transparent; font-weight: 600; }
.nm-chip--interactive:hover, .nm-chip--selected { border-color: var(--accent); background: var(--accent-soft); }

.nm-progress { width: 100%; }
.nm-progress__header { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; color: var(--text-secondary); font-size: .75rem; }
.nm-progress__track { height: .45rem; overflow: hidden; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--text-secondary) 20%, transparent); }
.nm-progress__bar { height: 100%; border-radius: inherit; background: var(--accent); }

.nm-avatar { display: inline-grid; flex: 0 0 auto; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); background: var(--surface); font-family: var(--font-display); }
.nm-avatar--sm { width: 2rem; height: 2rem; font-size: .75rem; }
.nm-avatar--md { width: 2.75rem; height: 2.75rem; font-size: .95rem; }
.nm-avatar--lg { width: 4rem; height: 4rem; font-size: 1.35rem; }
.nm-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

.nm-tooltip { position: relative; display: inline-flex; }
.nm-tooltip__content { position: absolute; z-index: 20; bottom: calc(100% + .65rem); left: 50%; width: max-content; max-width: 15rem; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); background: var(--surface-raised); box-shadow: var(--shadow-liquid); font-size: .75rem; line-height: 1.4; opacity: 0; pointer-events: none; transform: translate(-50%, .25rem); transition: opacity var(--motion-fast), transform var(--motion-fast); }
.nm-tooltip:hover .nm-tooltip__content, .nm-tooltip:focus-within .nm-tooltip__content { opacity: 1; transform: translate(-50%, 0); }

.nm-toast { display: flex; width: min(100%, 24rem); align-items: flex-start; gap: .75rem; padding: 1rem; border: 1px solid currentColor; border-radius: var(--radius-md); box-shadow: var(--shadow-raised); }
.nm-toast strong { display: block; }
.nm-toast p { margin: .25rem 0 0; font-size: .8rem; }
.nm-toast--success { color: var(--success); background: var(--success-bg); }
.nm-toast--warning { color: var(--warning); background: var(--warning-bg); }
.nm-toast--error { color: var(--error); background: var(--error-bg); }
.nm-toast--information { color: var(--information); background: var(--information-bg); }

.nm-metric__value { margin: .5rem 0 0; color: var(--text-primary); font: 400 clamp(2.25rem, 4vw, 3rem)/1 var(--font-display); }
.nm-metric__trend { margin: .75rem 0 0; color: var(--text-secondary); font-size: .75rem; }

.nm-tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--border); }
.nm-tab { min-height: var(--touch-target); padding: .7rem 1rem; border: 0; border-bottom: 2px solid transparent; color: var(--text-secondary); background: transparent; font-weight: 700; white-space: nowrap; }
.nm-tab:hover, .nm-tab[aria-selected="true"] { color: var(--text-primary); border-bottom-color: var(--accent); }
.nm-tab:focus-visible { outline: 0; box-shadow: inset var(--focus-ring); }

.nm-empty { padding: 2.5rem 1.5rem; border: 1px dashed var(--border); border-radius: var(--radius-md); text-align: center; }
.nm-empty__icon { display: inline-grid; width: 3rem; height: 3rem; margin-bottom: 1rem; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--accent); font-size: 1.25rem; }
.nm-empty h3 { margin: 0; color: var(--text-primary); font: 400 1.3rem/1.3 var(--font-display); }
.nm-empty p { max-width: 34rem; margin: .6rem auto 0; color: var(--text-secondary); }

.nm-skeleton { display: grid; gap: .7rem; }
.nm-skeleton span { display: block; height: .8rem; border-radius: var(--radius-pill); background: linear-gradient(90deg, color-mix(in srgb, var(--text-secondary) 12%, transparent), color-mix(in srgb, var(--text-secondary) 24%, transparent), color-mix(in srgb, var(--text-secondary) 12%, transparent)); background-size: 200% 100%; animation: nm-shimmer 1.4s ease-in-out infinite; }
.nm-skeleton span:nth-child(2) { width: 84%; }
.nm-skeleton span:nth-child(3) { width: 62%; }
@keyframes nm-shimmer { to { background-position: -200% 0; } }

.nm-modal .modal-content { border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text-primary); background: var(--surface); box-shadow: var(--shadow-raised); }
.nm-modal .modal-header, .nm-modal .modal-footer { border-color: var(--border); }
.nm-modal .modal-title { font-family: var(--font-display); font-weight: 400; }

.nm-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.nm-table { width: 100%; margin: 0; color: var(--text-primary); border-collapse: collapse; }
.nm-table th, .nm-table td { padding: 1rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.nm-table th { color: var(--text-secondary); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; }
.nm-table tr:last-child td { border-bottom: 0; }

.nm-topbar { min-height: 72px; border-bottom: 1px solid var(--border); background: var(--surface-liquid); }
.nm-sidebar { width: 280px; border-right: 1px solid var(--border); background: var(--surface); }
.nm-nav-link { display: flex; min-height: var(--touch-target); align-items: center; gap: .75rem; padding: .7rem .85rem; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text-secondary); text-decoration: none; }
.nm-nav-link:hover, .nm-nav-link[aria-current="page"] { color: var(--text-primary); border-color: var(--border); background: var(--accent-soft); }

@media (max-width: 833px) {
  .nm-topbar { min-height: 64px; }
  .nm-table-wrap { border: 0; overflow: visible; }
  .nm-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nm-table, .nm-table tbody, .nm-table tr, .nm-table td { display: block; width: 100%; }
  .nm-table tr { margin-bottom: 1rem; padding: .75rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
  .nm-table td { display: grid; grid-template-columns: minmax(7rem, 38%) 1fr; gap: .75rem; padding: .6rem; border: 0; }
  .nm-table td::before { content: attr(data-label); color: var(--text-secondary); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
}

@media (max-width: 575px) {
  .nm-btn:not(.nm-btn--icon) { width: 100%; }
  .nm-card { padding: 1.25rem; }
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .liquid-surface, .nm-card--liquid, .nm-topbar { background: var(--surface); }
}

@media (prefers-reduced-transparency: reduce) {
  .liquid-surface, .nm-card--liquid, .nm-topbar {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Catálogo completo da Folha de Componentes 16:9 */
.ui-kit-main { overflow-x: clip; }
.nm-foundations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.nm-foundation-card { min-width: 0; }
.nm-foundation-card--wide { grid-column: 1 / -1; }
.nm-foundation-card > .nm-card__title { margin-bottom: 1.5rem; }
.nm-foundation-card .nm-card__title small { font: 500 .75rem/1 var(--font-interface); }
.nm-foundation-subtitle { margin-top: 2.25rem; }
.nm-swatches { display: grid; grid-template-columns: repeat(6, minmax(6rem, 1fr)); gap: 1rem; }
.nm-swatch { display: grid; gap: .35rem; text-align: center; }
.nm-swatch__color { display: block; height: 4rem; border: 1px solid var(--border); border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.nm-swatch__color--black { background: #080706; }
.nm-swatch__color--brown { background: #2e241d; }
.nm-swatch__color--gray { background: #534d44; }
.nm-swatch__color--beige { background: #e1dbcf; }
.nm-swatch__color--gold { background: #a9763d; }
.nm-swatch__color--white { background: #fff; }
.nm-swatch strong { font-size: .8rem; }
.nm-swatch code { color: var(--text-secondary); font-size: .72rem; }
.nm-type-scale { display: grid; gap: 1.15rem; }
.nm-type-scale > div { display: grid; gap: .25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.nm-type-scale > div:last-child { padding-bottom: 0; border: 0; }
.nm-type-scale span, .nm-type-scale small { color: var(--text-secondary); font-size: .72rem; }
.nm-type-scale strong { display: block; }
.nm-type-scale p { margin: 0; }
.nm-spacing-scale, .nm-radius-scale { display: flex; min-height: 5rem; align-items: end; gap: clamp(.45rem, 1.5vw, 1rem); overflow-x: auto; }
.nm-spacing-scale > div, .nm-radius-scale > div { display: grid; min-width: 2.25rem; justify-items: center; gap: .5rem; }
.nm-spacing-scale span { background: var(--accent); }
.nm-spacing-token--4 span { width: 4px; height: 4px; }
.nm-spacing-token--8 span { width: 8px; height: 8px; }
.nm-spacing-token--12 span { width: 12px; height: 12px; }
.nm-spacing-token--16 span { width: 16px; height: 16px; }
.nm-spacing-token--24 span { width: 24px; height: 24px; }
.nm-spacing-token--32 span { width: 32px; height: 32px; }
.nm-spacing-token--40 span { width: 40px; height: 40px; }
.nm-spacing-token--48 span { width: 48px; height: 48px; }
.nm-spacing-token--64 span { width: 64px; height: 64px; }
.nm-radius-scale span { width: 3rem; height: 3rem; border: 2px solid var(--accent); background: var(--surface-raised); }
.nm-radius-token--4 span { border-radius: 4px; }
.nm-radius-token--8 span { border-radius: 8px; }
.nm-radius-token--12 span { border-radius: 12px; }
.nm-radius-token--16 span { border-radius: 16px; }
.nm-radius-token--24 span { border-radius: 24px; }
.nm-spacing-scale small, .nm-radius-scale small { color: var(--text-secondary); font-size: .7rem; }
.nm-component-label { margin: 0 0 1rem; color: var(--text-secondary); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nm-component-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.nm-component-grid--controls { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; border: 0; }
.nm-field--visual-focus .nm-field__control, .nm-focus-demo { border-color: var(--accent); box-shadow: var(--focus-ring); }
.nm-focus-demo { min-height: var(--control-height); padding: .75rem 1rem; border: 1px solid var(--accent); border-radius: var(--radius-sm); color: var(--text-primary); background: var(--surface); }

.nm-search { display: flex; min-height: var(--control-height); align-items: center; gap: .6rem; padding: 0 .85rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color var(--motion-fast), box-shadow var(--motion-fast); }
.nm-search:focus-within { border-color: var(--accent); box-shadow: var(--focus-ring); }
.nm-search__icon { color: var(--text-secondary); font-size: 1.25rem; line-height: 1; }
.nm-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text-primary); background: transparent; font: inherit; }
.nm-search input::placeholder { color: var(--text-secondary); }
.nm-search button { display: grid; min-width: 2rem; min-height: 2rem; place-items: center; border: 0; border-radius: 50%; color: var(--text-secondary); background: transparent; }
.nm-search button:focus-visible { outline: 0; box-shadow: var(--focus-ring); }

.nm-line-chart { display: block; width: 100%; height: 14rem; margin-top: 1.25rem; overflow: visible; }
.nm-line-chart__grid path { fill: none; stroke: color-mix(in srgb, var(--text-secondary) 16%, transparent); stroke-width: 1; }
.nm-line-chart__line { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(169,118,61,.45)); }
.nm-line-chart__points circle { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.nm-line-chart__labels { fill: var(--text-secondary); font: 12px var(--font-interface); }

.ui-kit-section--dark { margin-inline: calc(50% - 50vw); padding-inline: max(1rem, calc((100vw - 1440px) / 2)); color: #f3ede4; background: radial-gradient(circle at 32% 0%, rgba(169,118,61,.12), transparent 28rem), #080706; }
.ui-kit-section--dark .nm-title { color: #f3ede4; }
.ui-kit-section--dark .nm-muted { color: #b9b0a7; }
.nm-responsive-showcase { display: grid; gap: 1.5rem; }
.nm-responsive-showcase__compact { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(19rem, .8fr); gap: 1.5rem; }
.nm-device { --demo-bg: #0b0a09; --demo-surface: #171715; --demo-raised: #1e1d19; --demo-border: rgba(169,118,61,.28); --demo-text: #f2ece3; --demo-muted: #aaa49b; overflow: hidden; border: 1px solid rgba(169,118,61,.35); border-radius: 20px; color: var(--demo-text); background: var(--demo-bg); box-shadow: 0 22px 54px rgba(0,0,0,.32); }
.nm-device * { box-sizing: border-box; }
.nm-device__label { display: flex; min-height: 2.75rem; align-items: center; justify-content: space-between; padding: .65rem 1rem; border-bottom: 1px solid var(--demo-border); color: #d3c9bd; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nm-device__label small { color: #a9763d; font: inherit; }
.nm-executive-app { display: grid; min-height: 46rem; grid-template-columns: 10rem 1fr; background: var(--demo-bg); }
.nm-executive-sidebar { display: flex; flex-direction: column; padding: 1.15rem .85rem; border-right: 1px solid var(--demo-border); background: #0a0908; }
.nm-executive-brand { display: grid; gap: .4rem; padding: 0 .55rem 1.5rem; }
.nm-executive-brand strong, .nm-executive-topbar__mark { font: 400 1.85rem/1 var(--font-display); }
.nm-executive-brand span { color: #d3c9bd; font: 400 .76rem/1.3 var(--font-display); }
.nm-executive-sidebar nav { display: grid; gap: .35rem; }
.nm-executive-sidebar a { display: flex; min-height: 2.6rem; align-items: center; gap: .65rem; padding: .5rem .7rem; border: 1px solid transparent; border-radius: 8px; color: var(--demo-muted); font-size: .72rem; text-decoration: none; }
.nm-executive-sidebar a[aria-current="page"] { border-color: var(--demo-border); color: var(--demo-text); background: var(--demo-raised); }
.nm-executive-sidebar__bottom { margin-top: auto; }
.nm-executive-shell { min-width: 0; }
.nm-executive-topbar { display: flex; min-height: 4.25rem; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1.25rem; border-bottom: 1px solid var(--demo-border); background: rgba(23,23,21,.86); }
.nm-executive-topbar .nm-search { width: min(19rem, 40%); min-height: 2.5rem; color: var(--demo-text); background: #272622; }
.nm-executive-topbar .nm-search input { color: var(--demo-text); }
.nm-executive-topbar button { display: grid; min-width: 2.75rem; min-height: 2.75rem; place-items: center; border: 0; color: var(--demo-muted); background: transparent; }
.nm-executive-user { display: flex; align-items: center; gap: .65rem; font-size: .7rem; }
.nm-executive-user > span:not(.nm-executive-avatar) { display: grid; }
.nm-executive-user small { color: var(--demo-muted); }
.nm-executive-avatar { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border: 1px solid #a9763d; border-radius: 50%; color: #a9763d; font: 400 .7rem/1 var(--font-display); }
.nm-executive-content { position: relative; padding: 1.25rem; }
.nm-executive-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.nm-executive-heading h3, .nm-executive-heading p, .nm-demo-card h4 { margin: 0; color: var(--demo-text); font-family: var(--font-display); font-weight: 400; }
.nm-executive-heading h3 { font-size: 1.45rem; }
.nm-executive-heading p { font-size: 1.2rem; }
.nm-executive-heading small, .nm-demo-card small { display: block; color: var(--demo-muted); font-size: .65rem; }
.nm-demo-button { min-height: 2.6rem; padding: .55rem 1rem; border: 1px solid #c48c4e; border-radius: 7px; color: #080706; background: #a9763d; font-size: .7rem; font-weight: 700; }
.nm-demo-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.nm-demo-card { position: relative; min-width: 0; padding: 1rem; border: 1px solid var(--demo-border); border-radius: 10px; color: var(--demo-text); background: linear-gradient(145deg, #1b1b18, #151513); }
.nm-demo-card > strong { display: block; margin: .65rem 0; font: 400 1.7rem/1 var(--font-display); }
.nm-demo-value-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .7rem 0; }
.nm-demo-value-row strong { font: 400 1.85rem/1 var(--font-display); }
.nm-demo-ring { width: 2.75rem; height: 2.75rem; border: 4px solid #4b453c; border-top-color: #a9763d; border-right-color: #a9763d; border-radius: 50%; transform: rotate(35deg); }
.nm-sparkline { display: block; overflow: hidden; color: #a9763d; letter-spacing: -.22rem; transform: rotate(-7deg); }
.nm-demo-icon { position: absolute; right: .85rem; bottom: 1.7rem; color: var(--demo-muted); font-size: 1.55rem; }
.nm-demo-icon--gold { color: #a9763d; }
.nm-executive-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(13rem, .75fr); gap: .75rem; margin-top: .75rem; }
.nm-demo-chart-card header, .nm-demo-next header, .nm-demo-assistant header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nm-demo-chart-card header span { padding: .35rem .55rem; border: 1px solid var(--demo-border); border-radius: 6px; color: var(--demo-muted); font-size: .65rem; }
.nm-demo-chart-card .nm-line-chart { height: 15rem; margin-top: .5rem; }
.nm-demo-next { display: grid; align-content: start; gap: 1rem; }
.nm-demo-next > div { display: flex; align-items: center; gap: .75rem; }
.nm-demo-next__icon { display: grid; width: 2.75rem; height: 2.75rem; flex: 0 0 auto; place-items: center; border: 1px solid #a9763d; border-radius: 50%; color: #a9763d; }
.nm-demo-next p { margin: 0; font: 400 .95rem/1.35 var(--font-display); }
.nm-demo-next p small { margin-top: .25rem; }
.nm-demo-next a, .nm-demo-diagnosis a { color: #c48c4e; font-size: .7rem; text-decoration: none; }
.nm-demo-diagnosis { display: grid; grid-template-columns: 5rem 1fr; gap: .75rem; }
.nm-demo-diagnosis h4, .nm-demo-diagnosis a { grid-column: 1 / -1; }
.nm-demo-diagnosis > div { display: grid; align-content: start; }
.nm-demo-diagnosis > div strong { font: 400 2rem/1 var(--font-display); }
.nm-demo-diagnosis > div span { color: var(--demo-muted); font-size: .62rem; }
.nm-demo-diagnosis ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.nm-demo-diagnosis li { display: flex; justify-content: space-between; padding-bottom: .35rem; border-bottom: 3px solid rgba(169,118,61,.45); color: var(--demo-muted); font-size: .62rem; }
.nm-demo-assistant p { margin: .75rem 0; color: var(--demo-muted); font-size: .72rem; }
.nm-demo-assistant label { display: flex; border: 1px solid var(--demo-border); border-radius: 7px; }
.nm-demo-assistant input { min-width: 0; flex: 1; padding: .6rem; border: 0; outline: 0; color: var(--demo-text); background: transparent; font-size: .66rem; }
.nm-demo-assistant label button { border: 0; color: #a9763d; background: transparent; }
.nm-demo-assistant > small { margin: .75rem 0 .45rem; }
.nm-demo-assistant > div { display: flex; flex-wrap: wrap; gap: .35rem; }
.nm-demo-assistant > div button { padding: .35rem .5rem; border: 1px solid var(--demo-border); border-radius: 999px; color: var(--demo-muted); background: transparent; font-size: .57rem; }
.nm-demo-modal { position: absolute; z-index: 2; bottom: .85rem; left: 1.25rem; width: 17rem; padding: .85rem; border: 1px solid var(--demo-border); border-radius: 10px; background: #22211e; box-shadow: 0 16px 32px rgba(0,0,0,.5); }
.nm-demo-modal > button { position: absolute; top: .4rem; right: .5rem; border: 0; color: var(--demo-muted); background: transparent; }
.nm-demo-modal strong { font: 400 .9rem/1.2 var(--font-display); }
.nm-demo-modal p { margin: .25rem 0 .65rem; color: var(--demo-muted); font-size: .63rem; }
.nm-demo-modal > div { display: flex; justify-content: end; gap: .35rem; }
.nm-demo-modal > div button { padding: .35rem .6rem; border: 1px solid var(--demo-border); border-radius: 5px; color: var(--demo-text); background: transparent; font-size: .58rem; }
.nm-demo-modal > div button:last-child { color: #080706; background: #a9763d; }

.nm-device--tablet .nm-executive-app, .nm-device--smartphone .nm-executive-app { display: block; min-height: 42rem; }
.nm-device--tablet .nm-executive-topbar, .nm-device--smartphone .nm-executive-topbar { min-height: 3.5rem; padding: .45rem .8rem; }
.nm-device--tablet .nm-executive-content, .nm-device--smartphone .nm-executive-content { padding: .85rem; }
.nm-device--tablet .nm-demo-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nm-device--tablet .nm-executive-grid { grid-template-columns: 1fr; }
.nm-device--tablet .nm-demo-next { grid-row: 1; }
.nm-device--tablet .nm-demo-next .nm-demo-button { display: none; }
.nm-device--tablet .nm-demo-diagnosis, .nm-device--tablet .nm-demo-assistant { display: none; }
.nm-device--tablet .nm-demo-chart-card .nm-line-chart { height: 13rem; }
.nm-device--smartphone { max-width: 25rem; justify-self: center; }
.nm-device--smartphone .nm-executive-topbar__mark { position: absolute; left: 50%; transform: translateX(-50%); }
.nm-device--smartphone .nm-demo-metrics { grid-template-columns: 1fr; }
.nm-device--smartphone .nm-executive-grid { display: flex; flex-direction: column; }
.nm-device--smartphone .nm-demo-next { order: -1; }
.nm-device--smartphone .nm-demo-next .nm-demo-button { width: 100%; }
.nm-device--smartphone .nm-demo-chart-card { min-height: 13rem; }
.nm-device--smartphone .nm-demo-chart-card .nm-line-chart { height: 9rem; }
.nm-demo-sheet { position: absolute; z-index: 3; right: .7rem; bottom: .7rem; left: .7rem; display: grid; gap: .45rem; padding: .75rem; border: 1px solid var(--demo-border); border-radius: 16px; background: rgba(36,34,30,.96); box-shadow: 0 18px 38px rgba(0,0,0,.55); backdrop-filter: blur(20px); }
.nm-demo-sheet > span { width: 2.25rem; height: .2rem; margin: 0 auto .25rem; border-radius: 999px; background: #837b70; }
.nm-demo-sheet h4 { margin: 0 0 .35rem; font: 400 1rem/1.2 var(--font-display); }
.nm-demo-sheet button { min-height: 2.35rem; padding: .45rem .7rem; border: 1px solid var(--demo-border); border-radius: 7px; color: var(--demo-text); background: #2b2925; font-size: .67rem; text-align: left; }
.nm-demo-sheet button:last-child { text-align: center; }
.nm-spec-strip { display: grid; grid-template-columns: repeat(7, minmax(9rem, 1fr)); gap: .65rem; margin-top: 1.5rem; overflow-x: auto; }
.nm-spec-strip span { display: flex; min-height: 4rem; align-items: center; justify-content: center; gap: .65rem; padding: .75rem; border: 1px solid rgba(169,118,61,.35); border-radius: 12px; color: #c7beb3; background: #17130f; font-size: .75rem; white-space: nowrap; }
.nm-spec-strip strong { color: #eee7dc; font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; }

@media (max-width: 1100px) {
  .nm-swatches { grid-template-columns: repeat(3, minmax(6rem, 1fr)); }
  .nm-component-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nm-responsive-showcase__compact { grid-template-columns: 1fr; }
  .nm-device--smartphone { width: min(100%, 25rem); }
}
@media (max-width: 767px) {
  .nm-foundations { grid-template-columns: 1fr; }
  .nm-foundation-card--wide { grid-column: auto; }
  .nm-swatches { grid-template-columns: repeat(2, minmax(6rem, 1fr)); }
  .nm-component-grid, .nm-component-grid--controls { grid-template-columns: 1fr; }
  .nm-device--desktop .nm-executive-app { grid-template-columns: 4.5rem 1fr; }
  .nm-device--desktop .nm-executive-sidebar span { display: none; }
  .nm-device--desktop .nm-executive-sidebar { padding-inline: .5rem; }
  .nm-device--desktop .nm-executive-sidebar a { justify-content: center; }
  .nm-device--desktop .nm-demo-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nm-device--desktop .nm-executive-grid { grid-template-columns: 1fr; }
  .nm-device--desktop .nm-demo-modal { display: none; }
}
@media (max-width: 520px) {
  .nm-device--desktop .nm-executive-app { display: block; min-height: 0; }
  .nm-device--desktop .nm-executive-sidebar { display: none; }
  .nm-device--desktop .nm-executive-topbar .nm-search { width: 55%; }
  .nm-device--desktop .nm-executive-user > span:not(.nm-executive-avatar) { display: none; }
  .nm-demo-metrics { grid-template-columns: 1fr !important; }
  .nm-device--desktop .nm-demo-diagnosis, .nm-device--desktop .nm-demo-assistant { display: none; }
}
