/* Generated by apps/www/scripts/build.mjs from packages/ui/src/styles/. Do not edit. */
/* Northloop Design System 1.54.3: copy of styles.css, without the Inter @import (the app loads the font itself) and without the components/bundle.css import (components.css holds it). Edit in the Design System project, then sync (ADR-0023). */
:root {
  --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --northloop-space-1: 4px;
  --northloop-space-2: 8px;
  --northloop-space-3: 12px;
  --northloop-space-4: 16px;
  --northloop-space-5: 20px;
  --northloop-space-6: 24px;
  --northloop-space-7: 32px;
  --northloop-space-8: 40px;
  --northloop-space-9: 48px;
  --northloop-space-10: 64px;
  --northloop-radius-sm: 4px;
  --northloop-radius-md: 8px;
  --northloop-radius-lg: 10px;
  --northloop-radius-xl: 14px;
  --northloop-shadow-sm: 0 1px 2px rgba(18,26,31,0.06), 0 1px 1px rgba(18,26,31,0.04);
  --northloop-shadow-md: 0 12px 32px rgba(18,26,31,0.12), 0 2px 6px rgba(18,26,31,0.06);
  --northloop-shadow-lg: 0 24px 64px rgba(18,26,31,0.18), 0 4px 12px rgba(18,26,31,0.08);
  --northloop-page-width-normal: 1200px;
  --northloop-page-width-compact: 960px;
  --northloop-page-gutter: 32px;
  --northloop-page-gutter-sm: 16px;
}
:root, [data-theme="light"] {
  --northloop-color-white: #FFFFFF;
  --northloop-color-light: #DCE2E4;
  --northloop-color-mid: #8F9AA1;
  --northloop-color-dark: #38444B;
  --northloop-color-accent: #38B2F6;
  --northloop-bg: #F7F9FA;
  --northloop-surface: #FFFFFF;
  --northloop-surface-raised: #FFFFFF;
  --northloop-surface-subtle: #E8EDF0;
  --northloop-text: #38444B;
  --northloop-text-muted: #46565F;
  --northloop-text-disabled: #8F9AA1;
  --northloop-border: #7E8B93;
  --northloop-border-subtle: #C9D2D7;
  --northloop-primary: #0077B6;
  --northloop-primary-hover: #00659B;
  --northloop-primary-soft: #E5F5FE;
  --northloop-on-primary: #FFFFFF;
  --northloop-link: #006B9F;
  --northloop-focus: #006B9F;
  --northloop-color-success: #1A6B43;
  --northloop-color-warning: #8A5A00;
  --northloop-color-danger: #B42318;
  --northloop-color-info: #006B9F;
  --northloop-color-neutral: #52636C;
  --northloop-on-danger: #FFFFFF;
  --northloop-color-success-soft: #E6F4EC;
  --northloop-color-warning-soft: #FBF0DC;
  --northloop-color-danger-soft: #FCE9E7;
  --northloop-color-info-soft: #E5F5FE;
  --northloop-color-neutral-soft: #EDF1F3;
  --northloop-shell-surface: #ECF0F3;
  --northloop-shell-surface-subtle: #DCE3E8;
  --northloop-shell-border-subtle: #D3DAE0;
  --northloop-scrim: rgba(56,68,75,0.45);
  --northloop-photo-overlay: #005F92;
  --northloop-on-photo-action: #0077B6;
  --northloop-on-photo-action-hover: #00659B;
}
[data-theme="dark"] {
  --northloop-color-white: #FFFFFF;
  --northloop-color-light: #DCE2E4;
  --northloop-color-mid: #8F9AA1;
  --northloop-color-dark: #38444B;
  --northloop-color-accent: #38B2F6;
  --northloop-bg: #121A1F;
  --northloop-surface: #1B252B;
  --northloop-surface-raised: #26333B;
  --northloop-surface-subtle: #38444B;
  --northloop-text: #FFFFFF;
  --northloop-text-muted: #B7C0C5;
  --northloop-text-disabled: #7E8B93;
  --northloop-border: #7E8B93;
  --northloop-border-subtle: #46545C;
  --northloop-primary: #38B2F6;
  --northloop-primary-hover: #5BC0FA;
  --northloop-primary-soft: #173A4D;
  --northloop-on-primary: #121A1F;
  --northloop-link: #5BC0FA;
  --northloop-focus: #5BC0FA;
  --northloop-color-success: #52C78B;
  --northloop-color-warning: #E7B95B;
  --northloop-color-danger: #F97066;
  --northloop-color-info: #5BC0FA;
  --northloop-color-neutral: #B7C0C5;
  --northloop-on-danger: #FFFFFF;
  --northloop-color-success-soft: #16342A;
  --northloop-color-warning-soft: #3A2C12;
  --northloop-color-danger-soft: #3B1D1B;
  --northloop-color-info-soft: #173A4D;
  --northloop-color-neutral-soft: #24313A;
  --northloop-shell-surface: #0E151A;
  --northloop-shell-surface-subtle: #1C262D;
  --northloop-shell-border-subtle: #253139;
  --northloop-scrim: rgba(18,26,31,0.70);
  --northloop-photo-overlay: #005F92;
  --northloop-on-photo-action: #0077B6;
  --northloop-on-photo-action-hover: #00659B;
  --northloop-shadow-sm: 0 1px 2px rgba(0,0,0,0.35), 0 1px 1px rgba(0,0,0,0.25);
  --northloop-shadow-md: 0 12px 32px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.3);
  --northloop-shadow-lg: 0 24px 64px rgba(0,0,0,0.6), 0 4px 12px rgba(0,0,0,0.35);
}

/* Northloop Design System 1.54.3: copy of styles.css (without the Inter @import) and components/bundle.css. Edit in the Design System project, then sync (ADR-0023). */
/* Northloop component styles (.nl-*). Colors, spacing, radii and shadows come from tokens.css. */
:root {
  --northloop-font-sans: var(--font-sans);
  --northloop-font-mono: var(--font-mono);
  --northloop-font-size-page: 1.875rem;
  --northloop-font-size-section: 1.125rem;
  --northloop-font-size-body: 0.9375rem;
  --northloop-font-size-secondary: 0.8125rem;
  --northloop-font-size-label: 0.875rem;
  --northloop-font-size-button: 0.875rem;
  --northloop-font-size-badge: 0.6875rem;
  --northloop-font-size-caption: 0.75rem;
  --northloop-font-size-display-xl: clamp(2.75rem, 5.8vw, 5.25rem);
  --northloop-font-size-display-lg: clamp(2.25rem, 5vw, 4rem);
  --northloop-font-size-display-md: clamp(1.875rem, 3.4vw, 2.75rem);
  --northloop-font-size-display-sm: clamp(1.375rem, 2.2vw, 1.75rem);
  --northloop-line-tight: 1.25; /* @kind other */
  --northloop-line-body: 1.5; /* @kind other */
  --northloop-focus-width: 2px;
  --northloop-focus-offset: 2px;
  --northloop-duration-fast: 120ms; /* @kind other */
  --northloop-duration-base: 240ms; /* @kind other */
  --northloop-easing-soft: cubic-bezier(0.32, 0.72, 0, 1); /* @kind other */
  --northloop-easing: cubic-bezier(0.2, 0, 0, 1); /* @kind other */
  --northloop-z-overlay: 100; /* @kind other */
  --northloop-weight-medium: 600;
  --northloop-weight-strong: 650;
  --northloop-weight-page: 690;
  --northloop-weight-bold: 700;
  --northloop-tracking-page: -0.045em;
  --northloop-tracking-section: -0.02em;
}
/* Scrollbar: thin, border-colored thumb on a transparent track. Color is inherited and width is set on every element (scrollbar-width does not inherit). Standard properties only. */
:root { scrollbar-color: var(--northloop-border) transparent; }
* { scrollbar-width: thin; }
body { font-family: var(--northloop-font-sans); font-size: var(--northloop-font-size-body); line-height: var(--northloop-line-body); color: var(--northloop-text); background: var(--northloop-bg); }
/* --------------------------------------------------------------------- base */
.nl-stack { display: grid; gap: var(--northloop-space-4); }
.nl-row { display: flex; align-items: center; gap: var(--northloop-space-3); flex-wrap: wrap; }
.nl-page-title { font-size: var(--northloop-font-size-page); font-weight: var(--northloop-weight-page); line-height: 1.12; margin: 0; letter-spacing: var(--northloop-tracking-page); }
.nl-eyebrow { margin: 0; font-size: var(--northloop-font-size-caption); font-weight: var(--northloop-weight-bold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--northloop-text-muted); }
.nl-section-title { font-size: var(--northloop-font-size-section); font-weight: var(--northloop-weight-bold); letter-spacing: var(--northloop-tracking-section); margin: 0; }
/* Display: marketing surfaces only (site, landing pages). Inside a product the scale stops at .nl-page-title. */
.nl-display-xl, .nl-display-lg, .nl-display-md, .nl-display-sm { margin: 0; font-weight: var(--northloop-weight-page); letter-spacing: var(--northloop-tracking-page); text-wrap: balance; }
.nl-display-xl { font-size: var(--northloop-font-size-display-xl); line-height: 0.98; }
.nl-display-lg { font-size: var(--northloop-font-size-display-lg); line-height: 1; }
.nl-display-md { font-size: var(--northloop-font-size-display-md); line-height: 1.05; }
.nl-display-sm { font-size: var(--northloop-font-size-display-sm); line-height: 1.15; }
.nl-label { font-size: var(--northloop-font-size-label); font-weight: var(--northloop-weight-strong); }
.nl-caption { font-size: var(--northloop-font-size-caption); color: var(--northloop-text-muted); }
.nl-muted { color: var(--northloop-text-muted); }
.nl-mono { font-family: var(--northloop-font-mono); font-size: var(--northloop-font-size-secondary); }
.nl-divider { border: 0; border-top: 1px solid var(--northloop-border-subtle); margin: 0; }

:where(.nl-btn, .nl-input, .nl-tab, .nl-nav-item, .nl-row-item, .nl-pagination__step, .nl-breadcrumb__link, .nl-breadcrumb__more, .nl-audio__play, .nl-audio__rate, .nl-audio__seek):focus-visible {
  outline: var(--northloop-focus-width) solid var(--northloop-focus);
  outline-offset: var(--northloop-focus-offset);
}
/* A control made of several parts (a field with an icon, a button and a keycap) rings its whole box. */
:where(.nl-search):focus-within {
  outline: var(--northloop-focus-width) solid var(--northloop-focus);
  outline-offset: var(--northloop-focus-offset);
}

/* ------------------------------------------------------------------ buttons */
.nl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--northloop-space-2);
  min-height: 44px; padding: 0 var(--northloop-space-5);
  font: inherit; font-size: var(--northloop-font-size-button); font-weight: var(--northloop-weight-strong); line-height: 1;
  border-radius: var(--northloop-radius-md); border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background var(--northloop-duration-base) var(--northloop-easing-soft), transform var(--northloop-duration-fast) var(--northloop-easing);
}
.nl-btn:active:not(:disabled) { transform: scale(0.98); }
.nl-btn--primary { background: var(--northloop-primary); color: var(--northloop-on-primary); }
.nl-btn--primary:hover:not(:disabled) { background: var(--northloop-primary-hover); }
.nl-btn--secondary { background: var(--northloop-surface-subtle); color: var(--northloop-text); }
.nl-btn--secondary:hover:not(:disabled) { background: var(--northloop-border-subtle); }
.nl-btn--text { background: none; color: var(--northloop-link); padding: 0 var(--northloop-space-2); min-height: 32px; }
.nl-btn--outlined { background: transparent; color: var(--northloop-text-muted); border: 1px solid var(--northloop-border-subtle); border-radius: var(--northloop-radius-lg); min-height: 32px; padding: 4px 10px; }
.nl-btn--outlined:hover:not(:disabled) { background: var(--northloop-surface-subtle); }
.nl-btn--outlined-primary { border-color: var(--northloop-primary); color: var(--northloop-primary); }
.nl-btn--danger { background: var(--northloop-color-danger); color: var(--northloop-on-danger); }
/* On photo: the action over northloop-photo-overlay, fixed in both themes. */
.nl-btn--on-photo { background: var(--northloop-color-white); color: var(--northloop-on-photo-action); }
.nl-btn--on-photo:hover:not(:disabled) { background: var(--northloop-color-light); color: var(--northloop-on-photo-action-hover); }
.nl-btn--on-photo:focus-visible { outline-color: var(--northloop-color-white); }
.nl-btn--icon { min-height: 40px; width: 40px; padding: 0; background: none; color: var(--northloop-text-muted); border-color: transparent; }
.nl-btn:disabled, .nl-btn[aria-disabled='true'] { background: var(--northloop-surface-subtle); color: var(--northloop-text-disabled); border-color: var(--northloop-border-subtle); cursor: not-allowed; }
/* Icon and text have no container when enabled; disabled changes only the color (1.54.0). */
.nl-btn--icon:disabled, .nl-btn--icon[aria-disabled='true'],
.nl-btn--text:disabled, .nl-btn--text[aria-disabled='true'] { background: none; border-color: transparent; }
.nl-btn[data-loading='true'] { color: transparent; position: relative; }
.nl-btn[data-loading='true']::after {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent; color: var(--northloop-on-primary);
  animation: nl-spin 700ms linear infinite;
}
@keyframes nl-spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------------------- forms */
.nl-field { display: grid; gap: var(--northloop-space-2); }
.nl-input {
  min-height: 44px; padding: 0 var(--northloop-space-3); font: inherit;
  color: var(--northloop-text); background: var(--northloop-surface);
  border: 1px solid var(--northloop-border); border-radius: var(--northloop-radius-md);
}
.nl-input::placeholder { color: var(--northloop-text-muted); }
.nl-input:disabled { background: var(--northloop-surface-subtle); color: var(--northloop-text-disabled); }
.nl-input[aria-invalid='true'] { border-color: var(--northloop-color-danger); }
.nl-help { font-size: var(--northloop-font-size-caption); color: var(--northloop-text-muted); }
.nl-error { font-size: var(--northloop-font-size-caption); color: var(--northloop-color-danger); }
.nl-toggle { display: inline-flex; align-items: center; gap: var(--northloop-space-2); }
.nl-toggle input { flex: none; width: 48px; height: 28px; appearance: none; background: var(--northloop-border); border: 0; border-radius: 14px; position: relative; cursor: pointer; transition: background var(--northloop-duration-fast) var(--northloop-easing); }
.nl-toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--northloop-surface); box-shadow: var(--northloop-shadow-sm); transition: transform var(--northloop-duration-fast) var(--northloop-easing); }
.nl-toggle input:checked { background: var(--northloop-primary); }
.nl-toggle input:checked::after { background: var(--northloop-on-primary); transform: translateX(20px); }
.nl-toggle input:focus-visible { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: var(--northloop-focus-offset); }
@media (prefers-reduced-motion: reduce) { .nl-toggle input, .nl-toggle input::after { transition: none; } }

.nl-textarea { min-height: 96px; padding: var(--northloop-space-3); resize: vertical; line-height: 1.5; box-sizing: border-box; width: 100%; }
.nl-textarea--compact { min-height: 0; padding: 10px 12px; resize: none; }
.nl-select { appearance: none; padding-right: var(--northloop-space-8); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237E8B93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--northloop-space-3) center; }
.nl-check { display: flex; width: fit-content; align-items: center; gap: var(--northloop-space-2); min-height: 44px; cursor: pointer; }
.nl-check input { flex: none; width: 20px; height: 20px; margin: 0; appearance: none; display: grid; place-content: center; background: var(--northloop-surface); border: 1px solid var(--northloop-border); border-radius: var(--northloop-radius-sm); cursor: pointer; }
.nl-check input[type='radio'] { border-radius: 50%; }
.nl-check input::after { content: ''; width: 10px; height: 10px; transform: scale(0); background: var(--northloop-on-primary); clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 17%, 84% 0, 40% 67%); transition: transform var(--northloop-duration-fast) var(--northloop-easing); }
.nl-check input[type='radio']::after { clip-path: none; border-radius: 50%; width: 8px; height: 8px; }
.nl-check input:checked, .nl-check input:indeterminate { background: var(--northloop-primary); border-color: var(--northloop-primary); }
.nl-check input:checked::after { transform: scale(1); }
.nl-check input:indeterminate::after { transform: scale(1); clip-path: none; height: 2px; }
.nl-check input:focus-visible { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: var(--northloop-focus-offset); }
.nl-check input:disabled { background: var(--northloop-surface-subtle); border-color: var(--northloop-border-subtle); cursor: not-allowed; }
.nl-check input:disabled:checked { background: var(--northloop-text-disabled); border-color: var(--northloop-text-disabled); }
.nl-check input[aria-invalid='true'] { border-color: var(--northloop-color-danger); }

/* Segmented control: 2 to 4 mutually exclusive options (theme, view). role=radiogroup + button[role=radio][aria-checked]. */
.nl-segmented { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--northloop-space-1); padding: var(--northloop-space-1); box-sizing: border-box; border-radius: var(--northloop-radius-md); background: var(--northloop-surface-subtle); }
.nl-segmented--block { display: grid; width: 100%; }
.nl-segmented > button { min-height: 36px; padding: 0 var(--northloop-space-4); border: 0; border-radius: var(--northloop-radius-sm); background: transparent; color: var(--northloop-text-muted); font: inherit; font-size: var(--northloop-font-size-button); font-weight: 650; cursor: pointer; white-space: nowrap; transition: background var(--northloop-duration-base) var(--northloop-easing-soft), color var(--northloop-duration-base) var(--northloop-easing-soft); }
.nl-segmented > button:hover { color: var(--northloop-text); }
.nl-segmented > button[aria-checked='true'] { background: var(--northloop-bg); color: var(--northloop-text); box-shadow: var(--northloop-shadow-sm); }
.nl-segmented > button:focus-visible { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: var(--northloop-focus-offset); }
.nl-segmented > button:disabled { color: var(--northloop-text-disabled); cursor: not-allowed; }
.nl-segmented--sm { min-width: 0; max-width: 100%; }
.nl-segmented--sm > button { min-height: 32px; min-width: 0; padding: 0 10px; font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; }
/* Count variant: 2 to 4 options with a number (Pipeline stages on mobile). Use with --block. Markup: label, then <span>count</span>. */
.nl-segmented--count { grid-auto-columns: minmax(0, 1fr); }
.nl-segmented--count > button { min-width: 0; display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: var(--northloop-space-1); min-height: 52px; padding: var(--northloop-space-1) 2px; font-size: 0.75rem; line-height: 1.2; }
.nl-segmented--count > button > span { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; color: var(--northloop-text); }
/* Pill variant (1.38.0): pill rail, selected in primary-soft + link like the active filter chip; optional .nl-chip__count after the label. */
.nl-segmented--pill { padding: 3px; border: 1px solid var(--northloop-border-subtle); border-radius: 999px; background: var(--northloop-surface); }
.nl-segmented--pill > button { display: inline-flex; align-items: center; justify-content: center; gap: var(--northloop-space-2); border-radius: 999px; }
.nl-segmented--pill > button[aria-checked='true'] { background: var(--northloop-primary-soft); color: var(--northloop-link); box-shadow: none; }
.nl-segmented--pill > button[aria-checked='true'] .nl-chip__count { background: var(--northloop-surface); color: var(--northloop-link); }
.nl-segmented--pill .nl-chip__count { flex: none; }
.nl-segmented--pill > button > span:not(.nl-chip__count) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nl-segmented--pill.nl-segmented--sm { grid-auto-columns: auto; }
.nl-segmented--pill.nl-segmented--sm > button { gap: var(--northloop-space-1); padding: 0 var(--northloop-space-1); }

/* ------------------------------------------------------------------ content */
.nl-card { background: var(--northloop-surface); box-shadow: var(--northloop-shadow-sm); border-radius: var(--northloop-radius-lg); padding: var(--northloop-space-6); display: grid; gap: var(--northloop-space-3); }
.nl-row-item { display: grid; grid-template-columns: auto 1fr auto; gap: var(--northloop-space-3); align-items: start; padding: var(--northloop-space-3); border: 0; border-radius: var(--northloop-radius-md); background: var(--northloop-surface); position: relative; transition: background var(--northloop-duration-base) var(--northloop-easing-soft); text-align: left; width: 100%; font: inherit; color: inherit; cursor: pointer; }
.nl-row-item:hover { background: var(--northloop-surface-subtle); }
.nl-row-item[aria-selected='true'] { background: var(--northloop-surface-subtle); }
.nl-row-item__title { font-weight: 650; }
.nl-row-item__body { display: grid; gap: 2px; min-width: 0; }
.nl-row-item__action { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; font-size: var(--northloop-font-size-label); white-space: nowrap; }
.nl-row-item__action svg { flex: none; color: var(--northloop-text-muted); }
.nl-row-item__action b { font-weight: var(--northloop-weight-medium); overflow: hidden; text-overflow: ellipsis; }
.nl-row-item__action .nl-row-item__when { flex: none; white-space: nowrap; color: var(--northloop-text-muted); }
.nl-row-item__action[data-overdue='true'] .nl-row-item__when { color: var(--northloop-color-danger); font-weight: var(--northloop-weight-medium); }
.nl-row-item__preview { display: block; color: var(--northloop-text-muted); font-size: var(--northloop-font-size-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl-row-item .nl-avatar { width: 44px; height: 44px; }
.nl-row-item:not(:has(.nl-avatar)) { grid-template-columns: 1fr; }
/* Channel: always-visible 20px chip on the avatar's bottom-right corner. */
.nl-row-item .nl-row-item__channel { display: grid; place-items: center; position: absolute; left: calc(var(--northloop-space-3) + 28px); top: calc(var(--northloop-space-3) + 28px); width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; background: var(--northloop-surface-raised); border: 1px solid var(--northloop-border); color: var(--northloop-text); }
.nl-row-item .nl-row-item__channel svg { width: 12px; height: 12px; }
/* Unread: bold preview and a count badge, vertically centered at the right. */
.nl-row-item.has-un .nl-row-item__preview { padding-right: 36px; font-weight: 700; color: var(--northloop-text); }
.nl-row-item__count, .nl-btn__count { position: absolute; right: var(--northloop-space-3); top: 50%; transform: translateY(-50%); min-width: 20px; height: 20px; box-sizing: border-box; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--northloop-primary); color: var(--northloop-on-primary); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.nl-row-item__preview + br, .nl-row-item__action + br { display: none; }
.nl-row-item .nl-channel { display: flex; margin-top: var(--northloop-space-1); }
.nl-row-item:not(:hover):not([aria-selected='true']) .nl-channel { display: none; }
.nl-row-item:hover .nl-avatar, .nl-row-item[aria-selected='true'] .nl-avatar { background: var(--northloop-surface); }
.nl-empty { display: grid; gap: var(--northloop-space-3); justify-items: start; padding: var(--northloop-space-7); border-radius: var(--northloop-radius-lg); background: var(--northloop-surface-subtle); }
.nl-skeleton { height: 14px; border-radius: var(--northloop-radius-sm); background: var(--northloop-surface-subtle); animation: nl-pulse 1.4s ease-in-out infinite; }
@keyframes nl-pulse { 50% { opacity: 0.55; } }

/* ------------------------------------------------------------------- status */
.nl-badge { display: inline-flex; align-items: center; gap: var(--northloop-space-2); padding: 2px var(--northloop-space-3); border-radius: 999px; font-size: var(--northloop-font-size-badge); font-weight: 600; }
.nl-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nl-badge--info { background: var(--northloop-color-neutral-soft); color: var(--northloop-text); }
.nl-badge--info::before { background: var(--northloop-link); }
.nl-badge--success { background: var(--northloop-color-neutral-soft); color: var(--northloop-color-success); }
.nl-badge--warning { background: var(--northloop-color-neutral-soft); color: var(--northloop-color-warning); }
.nl-badge--danger { background: var(--northloop-color-neutral-soft); color: var(--northloop-color-danger); }
.nl-badge--neutral { background: var(--northloop-color-neutral-soft); color: var(--northloop-text-muted); }

/* ------------------------------------------------------- domínio Insight Sales */
.nl-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--northloop-surface-subtle); color: var(--northloop-text); font-size: var(--northloop-font-size-secondary); font-weight: 650; }
.nl-channel { display: inline-flex; align-items: center; gap: var(--northloop-space-2); font-size: var(--northloop-font-size-caption); color: var(--northloop-text-muted); }
.nl-bubble { max-width: 34rem; padding: var(--northloop-space-3) var(--northloop-space-4); border-radius: var(--northloop-radius-lg); background: var(--northloop-surface-subtle); }
.nl-bubble--outbound { background: var(--northloop-primary-soft); margin-left: auto; }
.nl-bubble--ai { background: var(--northloop-surface); box-shadow: var(--northloop-shadow-sm); }
.nl-bubble__meta { display: block; margin-top: var(--northloop-space-2); font-size: var(--northloop-font-size-caption); color: var(--northloop-text-muted); }
/* Audio bubble (NOR-731): a modifier on .nl-bubble, inbound or --outbound. --p on __seek is value/max (0 to 1). */
.nl-audio { display: flex; flex-direction: column; gap: var(--northloop-space-3); width: min(340px, 100%); box-sizing: border-box; }
.nl-audio .nl-bubble__meta { margin-top: 0; }
.nl-audio__player { display: flex; align-items: center; gap: var(--northloop-space-3); }
.nl-audio__play, .nl-audio__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.nl-audio__play { padding: 0; border: 0; background: var(--northloop-primary); color: var(--northloop-on-primary); cursor: pointer; }
.nl-audio__play svg { margin-left: 1px; }
.nl-audio__icon { background: var(--northloop-surface); color: var(--northloop-text-muted); }
.nl-audio__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nl-audio__label { font-size: var(--northloop-font-size-label); font-weight: 650; }
.nl-audio__time { font-size: var(--northloop-font-size-caption); color: var(--northloop-text-muted); font-variant-numeric: tabular-nums; }
.nl-audio__seek { width: 100%; height: 24px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.nl-audio__seek::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(var(--northloop-primary), var(--northloop-primary)) 0 0 / calc(7px + (100% - 14px) * var(--p, 0)) 100% no-repeat, var(--northloop-border); }
.nl-audio__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%; background: var(--northloop-primary); }
.nl-audio__seek::-moz-range-track { height: 4px; border-radius: 999px; background: var(--northloop-border); }
.nl-audio__seek::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--northloop-primary); }
.nl-audio__seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--northloop-primary); }
.nl-audio__rate { flex: none; display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.nl-audio__rate span { min-width: 36px; padding: 3px 6px; box-sizing: border-box; border: 1px solid var(--northloop-border); border-radius: 999px; color: var(--northloop-text); font-size: var(--northloop-font-size-caption); font-weight: 650; font-variant-numeric: tabular-nums; text-align: center; }
.nl-audio__rate:hover span { background: var(--northloop-surface); }
.nl-audio__tx { display: flex; flex-direction: column; align-items: flex-start; gap: var(--northloop-space-1); padding-top: var(--northloop-space-3); border-top: 1px solid var(--northloop-border-subtle); }
.nl-audio__tx .nl-show-more { margin-top: 0; }
.nl-audio__text { margin: 0; line-height: 1.5; text-wrap: pretty; }
.nl-audio__text[data-clamp] { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nl-audio__note { display: flex; align-items: flex-start; gap: var(--northloop-space-2); margin: 0; font-size: var(--northloop-font-size-secondary); color: var(--northloop-text-muted); }
.nl-audio__note svg { flex: none; margin-top: 1px; }
.nl-audio__note a { color: var(--northloop-link); }
.nl-next-action { display: grid; gap: var(--northloop-space-2); padding: var(--northloop-space-4); box-shadow: var(--northloop-shadow-sm); border-radius: var(--northloop-radius-md); background: var(--northloop-surface); }
.nl-next-action[data-overdue='true'] { position: relative; }
.nl-source { display: inline-flex; align-items: center; gap: var(--northloop-space-2); font-size: var(--northloop-font-size-caption); color: var(--northloop-text-muted); }
.nl-source--ai::before { content: '✦'; color: var(--northloop-link); }
.nl-source--unconfirmed { font-style: italic; }
.nl-timeline { display: grid; gap: var(--northloop-space-3); }
.nl-timeline__item { display: grid; grid-template-columns: 10px 1fr auto; gap: var(--northloop-space-3); align-items: baseline; }
.nl-timeline__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--northloop-border); }
.nl-timeline__item[data-kind='status'] .nl-timeline__dot { background: var(--northloop-text); }
.nl-timeline__item[data-kind='converted'] .nl-timeline__dot { background: var(--northloop-color-success); }

/* --------------------------------------------------------------- app shell (1.35.0, NOR-366) */
/* Sidebar, top bar and bottom nav sit one step behind the content. No shared token is remapped: only the elements that sit on the shell ground read shell-*, named one by one, so menus, the search panel and the search field that open inside keep the content tone. */
.nl-shell-scope { background: var(--northloop-shell-surface); }
.nl-shell-scope.nl-bottom-nav { background: var(--northloop-shell-surface); border-top-color: var(--northloop-shell-border-subtle); }
.nl-shell-scope .nl-nav-item:not([aria-disabled='true']):hover, .nl-shell-scope .nl-nav-item[aria-current='page'], .nl-shell-scope .nl-ws__trigger, .nl-shell-scope .nl-ws__trigger .nl-ws__mark:not(.nl-ws__mark--active) { background: var(--northloop-shell-surface-subtle); }
.nl-shell-scope .nl-ws__trigger:hover:not(:disabled), .nl-shell-scope .nl-account__trigger:hover, .nl-shell-scope .nl-account__trigger[aria-expanded='true'] { background: var(--northloop-shell-border-subtle); }
.nl-shell-scope .nl-nav .nl-divider { border-top-color: var(--northloop-shell-border-subtle); }
.nl-shell-scope .nl-ws__trigger .nl-ws__dot, .nl-shell-scope .nl-bottom-nav__dot { box-shadow: 0 0 0 2px var(--northloop-shell-surface); }
.nl-shell-scope .nl-ws__trigger .nl-ws__mark--active { color: var(--northloop-shell-surface); }

/* --------------------------------------------------------------- navegação */
.nl-nav { display: grid; gap: var(--northloop-space-1); }
.nl-nav-item { display: flex; align-items: center; gap: var(--northloop-space-3); min-height: 44px; padding: 0 var(--northloop-space-3); border-radius: var(--northloop-radius-md); font-size: var(--northloop-font-size-label); color: var(--northloop-text-muted); text-decoration: none;  transition: background var(--northloop-duration-base) var(--northloop-easing-soft), color var(--northloop-duration-base) var(--northloop-easing-soft); }
.nl-nav-item:hover { background: var(--northloop-surface-subtle); color: var(--northloop-text); }
.nl-nav-item[aria-current='page'] { background: var(--northloop-surface-subtle); color: var(--northloop-text); font-weight: 650; box-shadow: inset 3px 0 0 var(--northloop-primary); }
.nl-nav-item[aria-disabled='true'], .nl-nav-item[aria-disabled='true']:hover { background: none; color: var(--northloop-text-disabled); cursor: not-allowed; }
.nl-nav-item__count { margin-left: auto; min-width: 22px; height: 20px; line-height: 20px; padding: 0 7px; border-radius: 999px; text-align: center; font-size: var(--northloop-font-size-caption); font-weight: 650; background: var(--northloop-color-danger); color: var(--northloop-on-danger); }
.nl-tabs { display: flex; gap: var(--northloop-space-4);  }
.nl-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: var(--northloop-space-3) 0; font: inherit; color: var(--northloop-text-muted); cursor: pointer;  transition: color var(--northloop-duration-base) var(--northloop-easing-soft), border-color var(--northloop-duration-base) var(--northloop-easing-soft); }
.nl-tab[aria-selected='true'], .nl-tab[aria-current='page'] { color: var(--northloop-text); border-bottom-color: var(--northloop-text); font-weight: 650; }
a.nl-tab { text-decoration: none; }

/* ---------------------------------------------------------------- overlays */
.nl-popover { position: relative; z-index: var(--northloop-z-overlay); background: var(--northloop-surface-raised); border-radius: var(--northloop-radius-lg); padding: var(--northloop-space-4); display: grid; gap: var(--northloop-space-3); max-width: 22rem; box-shadow: var(--northloop-shadow-md); }
.nl-toast { display: flex; align-items: center; gap: var(--northloop-space-3); padding: var(--northloop-space-3) var(--northloop-space-4); border-radius: var(--northloop-radius-md); background: var(--northloop-surface-raised); box-shadow: var(--northloop-shadow-md); }
.nl-toast__icon { flex: none; width: 20px; height: 20px; color: var(--northloop-color-success); }
.nl-toast__icon--warning { color: var(--northloop-color-warning); }
.nl-toast__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--northloop-color-success); }
.nl-toast__dot--pulse { background: var(--northloop-color-warning); animation: nl-pulse 1.2s ease-in-out infinite; }
.nl-toast__text { min-width: 0; margin: 0; color: var(--northloop-text); }
.nl-toast .nl-btn--text { flex: none; min-height: 44px; margin-block: calc(-1 * var(--northloop-space-3)); margin-inline-end: calc(-1 * var(--northloop-space-2)); white-space: nowrap; }
/* Floating placement: fixed to the bottom, centered, 24px from the edge. Above the bottom navigation on mobile (set --nl-bottom-nav-height). */
.nl-toast--float { position: fixed; z-index: var(--northloop-z-overlay); left: 0; right: 0; bottom: var(--northloop-space-6); box-sizing: border-box; width: max-content; max-width: calc(100vw - 24px); margin-inline: auto; }
@media (max-width: 48rem) { .nl-toast--float { bottom: calc(var(--nl-bottom-nav-height, 56px) + var(--northloop-space-6) + env(safe-area-inset-bottom, 0px)); } }
/* Optional position, wide screens only; default is bottom center. Mobile stays centered. */
@media (min-width: 48.0625rem) { .nl-toast--float.nl-toast--start { right: auto; left: var(--northloop-space-6); margin-inline: 0; } .nl-toast--float.nl-toast--end { left: auto; right: var(--northloop-space-6); margin-inline: 0; } }

/* -------------------------------------------------------- busca, atalho e busca por comando */
/*
 * Search (ADR-0026). A field with an icon, a shortcut keycap and, with a value, a clear button. Markup:
 *   <div class="nl-search"> <span class="nl-search__icon">svg</span>
 *     <div class="nl-search__field" data-placeholder-short="Buscar…"><input class="nl-search__input" placeholder="…"></div>
 *     <button type="reset" class="nl-search__clear" aria-label="Limpar busca">svg</button>
 *     <span class="nl-search__spinner"></span> <kbd class="nl-kbd">⌘K</kbd> </div>
 * The input needs a placeholder: an empty field is detected with :placeholder-shown. Only tokens: the
 * border is the input border (3:1), because a fill of surface-subtle alone does not set the field apart.
 */
.nl-kbd { display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; height: 22px; min-width: 22px; padding: 0 var(--northloop-space-2); border: 1px solid var(--northloop-border-subtle); border-radius: var(--northloop-radius-sm); background: var(--northloop-surface); color: var(--northloop-text-muted); font-family: var(--northloop-font-mono); font-size: var(--northloop-font-size-caption); font-weight: var(--northloop-weight-medium); line-height: 1; white-space: nowrap; }
@supports (text-box: trim-both cap alphabetic) { .nl-kbd { display: inline-block; line-height: 1; text-align: center; text-box: trim-both cap alphabetic; padding-block: calc((20px - 1cap) / 2); } }

.nl-search {
  position: relative; display: flex; align-items: center; gap: var(--northloop-space-3);
  width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 0 var(--northloop-space-3) 0 var(--northloop-space-4);
  background: var(--northloop-surface-subtle); border: 1px solid var(--northloop-border); border-radius: var(--northloop-radius-md);
  color: var(--northloop-text-muted); container-type: inline-size;
  transition: border-color var(--northloop-duration-fast) var(--northloop-easing), background var(--northloop-duration-fast) var(--northloop-easing);
}
.nl-search:hover { border-color: var(--northloop-text-muted); }
.nl-search:focus-within { background: var(--northloop-surface); color: var(--northloop-text); }
.nl-search__icon { display: inline-flex; flex: none; }
.nl-search:focus-within .nl-search__icon { color: var(--northloop-link); }
.nl-search__field { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; align-self: stretch; }
.nl-search__input {
  flex: 1; width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none;
  color: var(--northloop-text); font: inherit; text-overflow: ellipsis;
}
.nl-search__input:focus-visible { outline: 0; }
.nl-search__input::placeholder { color: var(--northloop-text-muted); opacity: 1; }
.nl-search__input::-webkit-search-decoration, .nl-search__input::-webkit-search-cancel-button { appearance: none; display: none; }
.nl-search__clear {
  display: none; flex: none; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--northloop-radius-sm);
  background: none; color: var(--northloop-text-muted); font: inherit; cursor: pointer;
}
.nl-search__clear:hover { background: var(--northloop-surface); color: var(--northloop-text); }
.nl-search__clear:focus-visible { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: 0; }
.nl-search__field:has(.nl-search__input:not(:placeholder-shown)) ~ .nl-search__clear { display: inline-grid; }
.nl-search__field:has(.nl-search__input:not(:placeholder-shown)) ~ .nl-kbd { display: none; }
.nl-search__spinner { display: none; flex: none; width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: nl-spin 700ms linear infinite; }

/* Loading: the spinner takes the place of the clear button and the keycap. */
.nl-search[data-loading='true'] .nl-search__spinner { display: block; }
.nl-search[data-loading='true'] .nl-search__field ~ .nl-search__clear, .nl-search[data-loading='true'] .nl-search__field ~ .nl-kbd { display: none; }

/* Disabled: communicated by aria-disabled on the box and `disabled` on the input. */
.nl-search[aria-disabled='true'] { border-color: var(--northloop-border-subtle); color: var(--northloop-text-disabled); cursor: not-allowed; }
.nl-search[aria-disabled='true'] .nl-search__input { color: var(--northloop-text-disabled); cursor: not-allowed; }
.nl-search[aria-disabled='true'] .nl-search__input::placeholder, .nl-search[aria-disabled='true'] .nl-search__field::after { color: var(--northloop-text-disabled); }
.nl-search[aria-disabled='true'] .nl-kbd { background: none; color: var(--northloop-text-disabled); }

/* Compact: for tight bars and toolbars. */
.nl-search--compact { min-height: 36px; gap: var(--northloop-space-2); padding: 0 var(--northloop-space-2) 0 var(--northloop-space-3); font-size: var(--northloop-font-size-secondary); }
.nl-search--compact .nl-kbd { height: 20px; }
@supports (text-box: trim-both cap alphabetic) { .nl-search--compact .nl-kbd { padding-block: calc((18px - 1cap) / 2); } }

/* Narrow: a short placeholder (data-placeholder-short) under 20rem, no keycap under 11rem or on touch. */
.nl-search__field[data-placeholder-short]::after { content: attr(data-placeholder-short); position: absolute; inset-inline: 0; display: none; overflow: hidden; color: var(--northloop-text-muted); white-space: nowrap; text-overflow: ellipsis; pointer-events: none; }
@container (max-width: 20rem) {
  .nl-search__field[data-placeholder-short]:has(.nl-search__input:placeholder-shown)::after { display: block; }
  .nl-search__field[data-placeholder-short] .nl-search__input::placeholder { color: transparent; }
}
@container (max-width: 11rem) { .nl-search .nl-kbd { display: none; } }
@media (hover: none) and (pointer: coarse) { .nl-search .nl-kbd { display: none; } }

/*
 * Command search, the structure of a command palette (ADR-0026). Prepared, not wired: the results come from
 * the search that does not exist yet. Roles: the dialog holds a combobox (the Search input) that controls a
 * listbox of options grouped by category; the categories are tabs. Keyboard: Esc closes, ↑ ↓ move the
 * selection (aria-selected), Enter opens the selected option, ← → or Tab reach the categories.
 */
.nl-command { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; max-width: 46rem; overflow: hidden; background: var(--northloop-surface-raised); border-radius: var(--northloop-radius-lg); box-shadow: var(--northloop-shadow-lg); }
.nl-command__search { padding: var(--northloop-space-3); border-bottom: 1px solid var(--northloop-border-subtle); }
.nl-command__body { display: grid; grid-template-columns: 11rem minmax(0, 1fr); min-height: 0; max-height: 26rem; }
.nl-command__nav { display: grid; align-content: start; gap: 2px; padding: var(--northloop-space-2); border-right: 1px solid var(--northloop-border-subtle); }
.nl-command__tab { display: flex; align-items: center; justify-content: space-between; gap: var(--northloop-space-2); min-height: 40px; padding: 0 var(--northloop-space-3); border: 0; border-radius: var(--northloop-radius-md); background: none; color: var(--northloop-text-muted); font: inherit; text-align: left; cursor: pointer; }
.nl-command__tab:hover { background: var(--northloop-surface-subtle); color: var(--northloop-text); }
.nl-command__tab[aria-selected='true'] { background: var(--northloop-surface-subtle); color: var(--northloop-text); font-weight: 650; }
.nl-command__count { min-width: 1.5rem; padding: 0 var(--northloop-space-2); border-radius: 999px; background: var(--northloop-surface-subtle); color: var(--northloop-text-muted); font-size: var(--northloop-font-size-caption); font-weight: 650; text-align: center; }
.nl-command__tab[aria-selected='true'] .nl-command__count { background: var(--northloop-text); color: var(--northloop-bg); }
.nl-command__results { overflow-y: auto; padding: var(--northloop-space-2); }
.nl-command__heading { padding: var(--northloop-space-2) var(--northloop-space-3); color: var(--northloop-text-muted); font-size: var(--northloop-font-size-caption); font-weight: 650; }
.nl-command__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--northloop-space-3); min-height: 52px; padding: var(--northloop-space-2) var(--northloop-space-3); border-radius: var(--northloop-radius-md); color: var(--northloop-text); text-decoration: none; cursor: pointer; }
.nl-command__item:hover { background: var(--northloop-surface-subtle); }
.nl-command__item[aria-selected='true'] { background: var(--northloop-surface-subtle); }
.nl-command__item:focus-visible, .nl-command__tab:focus-visible { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: calc(-1 * var(--northloop-focus-width)); }
.nl-command__text { display: grid; min-width: 0; }
.nl-command__title { overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.nl-command__meta { overflow: hidden; color: var(--northloop-text-muted); font-size: var(--northloop-font-size-caption); text-overflow: ellipsis; white-space: nowrap; }
.nl-command__empty { display: grid; justify-items: center; gap: var(--northloop-space-3); padding: var(--northloop-space-7) var(--northloop-space-4); text-align: center; }
.nl-command__shortcuts { display: grid; gap: var(--northloop-space-2); margin: var(--northloop-space-2) 0 0; padding: 0; list-style: none; text-align: left; }
.nl-command__shortcuts li { display: grid; grid-template-columns: 5.5rem auto; align-items: center; gap: var(--northloop-space-3); }
.nl-command__footer { display: flex; flex-wrap: wrap; gap: var(--northloop-space-2) var(--northloop-space-4); padding: var(--northloop-space-2) var(--northloop-space-4); border-top: 1px solid var(--northloop-border-subtle); color: var(--northloop-text-muted); font-size: var(--northloop-font-size-caption); }
.nl-command__footer span { display: inline-flex; align-items: center; gap: var(--northloop-space-2); }
/* Anchored under the field it serves (the top bar's Search): no own search row and no category column;
 * the categories live on the results page (ADR-0032). The app positions it; it never covers the field. */
.nl-command--anchored { grid-template-rows: minmax(0, 1fr) auto; max-width: 37.5rem; }
.nl-command--anchored .nl-command__body { grid-template-columns: minmax(0, 1fr); max-height: min(32rem, 70vh); }
.nl-command__item--all { color: var(--northloop-link); font-weight: 600; }
/* The part of a result that matched the query. Weight carries it too, never the fill alone. */
.nl-mark { padding: 0 1px; border-radius: 3px; background: var(--northloop-color-warning-soft); color: inherit; font-weight: 650; }
/* A count beside a tab label (results by type). */
.nl-tab__count { display: inline-block; min-width: 1.25rem; margin-left: var(--northloop-space-2); padding: 0 var(--northloop-space-2); border-radius: 999px; background: var(--northloop-surface-subtle); color: var(--northloop-text-muted); font-size: var(--northloop-font-size-caption); font-weight: 650; line-height: 1.6; text-align: center; }
.nl-tab[aria-selected='true'] .nl-tab__count, .nl-tab[aria-current='page'] .nl-tab__count { background: var(--northloop-text); color: var(--northloop-bg); }
/* Pagination, after Base Web's: quiet steps with a chevron, a page selector with "de N", and the count of
 * items per page. Every control is a link or a plain GET form, so it works without JavaScript; the steps
 * that cannot move are `aria-disabled` with no `href` (first and previous on page 1, next and last on the
 * last). Steps are `.nl-pagination__step`, never `.nl-btn`: borderless, the label in `northloop-text`. */
.nl-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: var(--northloop-space-3) var(--northloop-space-5); color: var(--northloop-text-muted); font-size: var(--northloop-font-size-secondary); }
.nl-pagination__summary { margin: 0 auto 0 0; }
.nl-pagination__size, .nl-pagination__jump { display: inline-flex; align-items: center; gap: var(--northloop-space-2); }
.nl-pagination .nl-input { min-height: 36px; box-sizing: border-box; }
.nl-pagination .nl-select { padding-right: var(--northloop-space-7); background-position: right var(--northloop-space-2) center; }
.nl-pagination .nl-btn { min-height: 36px; padding: 0 var(--northloop-space-4); }
.nl-pagination label, .nl-pagination__jump > span { white-space: nowrap; line-height: 36px; }
.nl-pagination__step { line-height: 1; }
.nl-pagination form { margin: 0; }
.nl-pagination__jump .nl-input[type='number'] { width: 5rem; }
.nl-pagination__nav { display: inline-flex; align-items: center; gap: var(--northloop-space-1); }
.nl-pagination__step { display: inline-flex; align-items: center; justify-content: center; gap: var(--northloop-space-1); min-height: 36px; min-width: 36px; padding: 0 var(--northloop-space-2); border: 0; border-radius: var(--northloop-radius-md); background: none; color: var(--northloop-text); font: inherit; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; }
.nl-pagination__step:hover { background: var(--northloop-surface-subtle); }
.nl-pagination__step[aria-disabled='true'] { background: none; color: var(--northloop-text-disabled); cursor: not-allowed; }
/* Compact, by container (the list may sit in a narrow panel): row 1 is the nav as auto 1fr auto
 * (Anterior, "Página [n] de N" centred, Próxima); row 2 is the summary left and the page size right, in caption.
 * First and last (--end) drop out; the page selector covers the jump. Steps and selects grow to 44px. */
.nl-pagination { container: nl-pagination / inline-size; }
@container nl-pagination (max-width: 40rem) {
  .nl-pagination__nav { order: -1; flex: 1 1 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
  .nl-pagination__jump { justify-self: center; min-width: 0; }
  .nl-pagination__step--end { display: none; }
  .nl-pagination__step, .nl-pagination__nav .nl-input, .nl-pagination__nav .nl-btn { min-height: 44px; }
  .nl-pagination__jump > span, .nl-pagination__jump label { line-height: 44px; }
  .nl-pagination__jump .nl-input[type='number'] { width: 4rem; }
  .nl-pagination__jump .nl-btn[type='submit'] { display: none; }
  .nl-pagination__summary, .nl-pagination__size { font-size: var(--northloop-font-size-caption); }
  .nl-pagination__size .nl-input { min-height: 44px; }
  .nl-pagination__size label { line-height: 44px; }
}
@media (max-width: 40rem) {
  .nl-command__body { grid-template-columns: minmax(0, 1fr); }
  .nl-command__nav { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--northloop-border-subtle); }
  .nl-command__tab { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .nl-search__spinner { animation: none; }
}

/* ====================================================================================================
 * Additions: ResizableSplitPane, SidePanel, KeyValueList, Timeline (rail, compact) and StageStepper.
 * Additive only: nothing above this line was changed. Colors, spacing, radii and shadows come from tokens.
 * ==================================================================================================== */

/* Visually hidden, still announced. For state words that the visual design shows with shape or color. */
.nl-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

:where(.nl-split__handle):focus-visible {
  outline: var(--northloop-focus-width) solid var(--northloop-focus);
  outline-offset: var(--northloop-focus-offset);
}

/* ------------------------------------------------------------------ resizable split pane */
/*
 * Columns the person can resize. The workspace shell (sidebar, top bar) is not part of it.
 *   <div class="nl-split">
 *     <section class="nl-split__pane" id="pane-list">…</section>
 *     <div class="nl-split__handle" role="separator" aria-orientation="vertical" aria-controls="pane-list" …></div>
 *     <section class="nl-split__pane nl-split__pane--fill">…</section>
 *   </div>
 * The handle's ARIA values are the configuration: aria-valuemin / aria-valuemax (px) and data-default.
 * The pane's current width is the custom property --nl-pane-width, written by the behavior.
 */
.nl-split { position: relative; display: flex; align-items: stretch; width: 100%; height: 100%; min-width: 0; min-height: 0; container-type: inline-size; background: var(--northloop-surface); }
.nl-split__pane { position: relative; flex: 0 0 var(--nl-pane-width, 20rem); min-width: var(--nl-pane-min, 0px); max-width: var(--nl-pane-max, none); min-height: 0; overflow: auto; background: var(--northloop-surface); }
.nl-split__pane--fill { flex: 1 1 0; max-width: none; min-width: var(--nl-pane-min, 20rem); }
.nl-split__handle { position: relative; z-index: 2; flex: none; width: 1px; background: var(--northloop-border-subtle); cursor: col-resize; touch-action: none; }
/* A wider hit area than the 1px line; the visible bar appears on hover, drag and focus. */
.nl-split__handle::before { content: ''; position: absolute; inset: 0 -6px; }
.nl-split__handle::after { content: ''; position: absolute; inset: 0 -1px; background: transparent; pointer-events: none; transition: background var(--northloop-duration-fast) var(--northloop-easing); }
.nl-split__handle:hover::after, .nl-split__handle[data-hover='true']::after { background: var(--northloop-border); }
.nl-split__handle:focus-visible::after { background: var(--northloop-border); }
.nl-split__handle[data-dragging='true']::after { background: var(--northloop-primary); }
.nl-split__handle[aria-disabled='true'] { cursor: default; pointer-events: none; }
.nl-split__handle[aria-disabled='true']::after { background: transparent; }
.nl-split[data-dragging='true'] { cursor: col-resize; user-select: none; }
.nl-split[data-dragging='true'] .nl-split__pane { pointer-events: none; }
@media (pointer: coarse) { .nl-split__handle::before { inset: 0 -22px; } }

/* ------------------------------------------------------------------- side panel and drawer */
/*
 * A contextual panel. A column at desktop widths; a drawer over a scrim when its host is narrower than 64rem.
 * The host is `.nl-split`, or `.nl-panel-host` for a panel used on its own: it is the drawer's containing block.
 *   <aside class="nl-panel" aria-labelledby="t"> <header class="nl-panel__header">…</header>
 *     <div class="nl-panel__body">…</div> <footer class="nl-panel__footer">…</footer> </aside>
 *   <div class="nl-panel__scrim"></div>
 * `data-open="false"` closes it in both modes. Modifiers: --sm, --lg (width), --column and --drawer (force a mode).
 */
.nl-panel-host { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; container-type: inline-size; }
.nl-panel { display: flex; flex-direction: column; flex: none; width: var(--nl-pane-width, 22rem); min-height: 0; max-height: 100%; overflow: hidden; background: var(--northloop-surface); color: var(--northloop-text); border-inline-start: 1px solid var(--northloop-border-subtle); }
/* On its own, the panel takes the host's height so the body scrolls instead of the panel growing past it. */
.nl-panel-host > .nl-panel { height: 100%; }
.nl-panel--sm { width: var(--nl-pane-width, 18rem); }
.nl-panel--lg { width: var(--nl-pane-width, 28rem); }
.nl-panel[data-open='false'] { display: none; }
.nl-split__pane.nl-panel { flex: 0 0 var(--nl-pane-width, 22rem); width: auto; overflow: hidden; }
.nl-panel:focus { outline: 0; }
.nl-panel__header { display: flex; align-items: center; gap: var(--northloop-space-3); flex: none; min-height: 64px; padding: var(--northloop-space-3) var(--northloop-space-3) var(--northloop-space-3) var(--northloop-space-6); border-bottom: 1px solid var(--northloop-border-subtle); }
.nl-panel__heading { flex: 1; min-width: 0; }
.nl-panel__title { margin: 0; overflow: hidden; font-size: 1.125rem; font-weight: 700; line-height: var(--northloop-line-tight); text-overflow: ellipsis; white-space: nowrap; }
.nl-panel__subtitle { margin: 0; overflow: hidden; color: var(--northloop-text-muted); font-size: var(--northloop-font-size-caption); text-overflow: ellipsis; white-space: nowrap; }
.nl-panel__close { flex: none; min-height: 44px; width: 44px; }
.nl-panel__close:hover { background: var(--northloop-surface-subtle); color: var(--northloop-text); }
.nl-panel__body { display: grid; flex: 1 1 auto; align-content: start; gap: var(--northloop-space-6); min-height: 0; padding: var(--northloop-space-6); overflow-y: auto; overscroll-behavior: contain; }
.nl-panel__section { display: grid; gap: var(--northloop-space-3); }
.nl-panel__section + .nl-panel__section { padding-top: var(--northloop-space-6); border-top: 1px solid var(--northloop-border-subtle); }
.nl-panel__section-title { margin: 0; font-size: var(--northloop-font-size-secondary); font-weight: var(--northloop-weight-strong); }
.nl-panel__footer { display: flex; flex: none; flex-wrap: wrap; justify-content: flex-end; gap: var(--northloop-space-3); padding: var(--northloop-space-4) var(--northloop-space-6); border-top: 1px solid var(--northloop-border-subtle); }

/* The scrim color is the northloop-scrim token, which adapts to both themes. */
.nl-panel__scrim { position: absolute; inset: 0; z-index: calc(var(--northloop-z-overlay) - 1); background: var(--northloop-scrim); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--northloop-duration-fast) var(--northloop-easing), visibility 0s linear var(--northloop-duration-fast); }

/* Drawer mode: below 64rem of host width, or forced with .nl-panel--drawer. Keep the two blocks in sync. */
@container (max-width: 64rem) {
  .nl-split__handle:has(+ .nl-panel:not(.nl-panel--column)) { display: none; }
  .nl-panel:not(.nl-panel--column) {
    position: absolute; inset-block: 0; inset-inline-end: 0; z-index: var(--northloop-z-overlay);
    display: flex; width: min(var(--nl-pane-width, 22rem), calc(100% - 2rem)); overflow: hidden;
    box-shadow: var(--northloop-shadow-sm); transform: translateX(100%); visibility: hidden;
    transition: transform var(--northloop-duration-fast) var(--northloop-easing), visibility 0s linear var(--northloop-duration-fast);
  }
  .nl-panel:not(.nl-panel--column):not([data-open='false']) { transform: none; visibility: visible; transition-delay: 0s; }
  .nl-panel:not(.nl-panel--column):not([data-open='false']) ~ .nl-panel__scrim { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
}
.nl-panel.nl-panel--drawer {
  position: absolute; inset-block: 0; inset-inline-end: 0; z-index: var(--northloop-z-overlay);
  display: flex; width: min(var(--nl-pane-width, 22rem), calc(100% - 2rem)); overflow: hidden;
  box-shadow: var(--northloop-shadow-sm); transform: translateX(100%); visibility: hidden;
  transition: transform var(--northloop-duration-fast) var(--northloop-easing), visibility 0s linear var(--northloop-duration-fast);
}
.nl-panel.nl-panel--drawer:not([data-open='false']) { transform: none; visibility: visible; transition-delay: 0s; }
.nl-panel.nl-panel--drawer:not([data-open='false']) ~ .nl-panel__scrim { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }

/* Split pane, narrow: one pane at a time. Mark the pane in view with data-current="true" and the rest "false". */
@container (max-width: 48rem) {
  .nl-split__handle { display: none; }
  .nl-split__pane:not(.nl-panel) { flex: 1 1 100%; min-width: 0; max-width: none; }
  .nl-split__pane[data-current='false']:not(.nl-panel) { display: none; }
}

/* ------------------------------------------------------------------------ key-value list */
/*
 * Attributes and their values. Stacked by default; --inline, --two-column, --compact and --divided change it.
 *   <dl class="nl-kv"> <div class="nl-kv__row"><dt class="nl-kv__label">Local</dt><dd class="nl-kv__value">Vila Madalena</dd></div> </dl>
 */
.nl-kv { display: grid; gap: var(--northloop-space-4); width: 100%; min-width: 0; margin: 0; padding: 0; container-type: inline-size; }
.nl-kv__row { display: grid; gap: 2px; min-width: 0; margin: 0; }
.nl-kv__label { margin: 0; color: var(--northloop-text-muted); font-size: var(--northloop-font-size-secondary); }
.nl-kv__value { min-width: 0; margin: 0; color: var(--northloop-text); overflow-wrap: anywhere; }
.nl-kv__value[data-empty='true'] { color: var(--northloop-text-muted); }
.nl-kv--inline { gap: var(--northloop-space-3); }
.nl-kv--inline .nl-kv__row { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: var(--northloop-space-4); }
.nl-kv--inline .nl-kv__value { text-align: right; }
.nl-kv--two-column .nl-kv__row { grid-template-columns: var(--nl-kv-label-width, 9rem) minmax(0, 1fr); align-items: baseline; gap: var(--northloop-space-4); }
.nl-kv--compact { gap: var(--northloop-space-2); }
.nl-kv--compact .nl-kv__label { font-size: var(--northloop-font-size-caption); }
.nl-kv--compact .nl-kv__value { font-size: var(--northloop-font-size-secondary); }
.nl-kv--divided { gap: 0; }
.nl-kv--divided .nl-kv__row { padding-block: var(--northloop-space-3); }
.nl-kv--divided .nl-kv__row + .nl-kv__row { border-top: 1px solid var(--northloop-border-subtle); }
.nl-kv--divided.nl-kv--compact .nl-kv__row { padding-block: var(--northloop-space-2); }
@container (max-width: 20rem) {
  .nl-kv--two-column .nl-kv__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------------------------------------------------------------------- timeline (extended) */
/*
 * `.nl-timeline` and its `__item`, `__dot` and data-kind rules above are unchanged. This adds a list reset,
 * the parts a full event carries (`__body`, `__title`, `__detail`, `__time`), the states `current` and
 * `scheduled`, the kind `danger`, and two modifiers: `--rail` (a line joins the events) and `--compact`.
 */
ol.nl-timeline, ul.nl-timeline { margin: 0; padding: 0; list-style: none; }
.nl-timeline__body { display: grid; gap: 2px; min-width: 0; }
.nl-timeline__title { overflow-wrap: anywhere; }
.nl-timeline__detail { color: var(--northloop-text-muted); font-size: var(--northloop-font-size-secondary); overflow-wrap: anywhere; }
.nl-timeline__time { color: var(--northloop-text-muted); font-size: var(--northloop-font-size-caption); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nl-timeline__item[data-kind='danger'] .nl-timeline__dot { background: var(--northloop-color-danger); }
/* The latest event: a ring around its dot and a stronger title. */
.nl-timeline__item[data-state='current'] .nl-timeline__dot { box-shadow: 0 0 0 3px var(--northloop-surface-subtle); }
.nl-timeline__item[data-kind='status'][data-state='current'] .nl-timeline__dot { box-shadow: 0 0 0 3px var(--northloop-primary-soft); }
.nl-timeline__item[data-kind='converted'][data-state='current'] .nl-timeline__dot { box-shadow: 0 0 0 3px var(--northloop-color-success-soft); }
.nl-timeline__item[data-kind='danger'][data-state='current'] .nl-timeline__dot { box-shadow: 0 0 0 3px var(--northloop-color-danger-soft); }
.nl-timeline__item[data-state='current'] .nl-timeline__title { font-weight: var(--northloop-weight-strong); }
/* An event that has not happened yet: a hollow dot and a muted title. */
.nl-timeline__item[data-state='scheduled'] .nl-timeline__dot { background: var(--northloop-surface); box-shadow: inset 0 0 0 2px var(--northloop-border); }
.nl-timeline__item[data-state='scheduled'] .nl-timeline__title { color: var(--northloop-text-muted); }

.nl-timeline--rail { gap: 0; }
.nl-timeline--rail .nl-timeline__item { position: relative; align-items: start; padding-bottom: 20px; }
.nl-timeline--rail.nl-timeline--compact .nl-timeline__item { position: relative; align-items: start; padding-bottom: 12px; }
.nl-timeline--rail .nl-timeline__item:last-child { padding-bottom: 0; }
.nl-timeline--rail .nl-timeline__dot { margin-top: calc((24px - 8px) / 2); }
.nl-timeline--rail.nl-timeline--compact .nl-timeline__dot { margin-top: calc((21px - 8px) / 2); }
.nl-timeline--rail .nl-timeline__time { margin-top: calc((24px - 18px) / 2); }
.nl-timeline--rail.nl-timeline--compact .nl-timeline__time { margin-top: calc((21px - 18px) / 2); }
.nl-timeline--rail .nl-timeline__item:not(:last-child)::before { content: ''; position: absolute; left: 3px; top: calc((24px + 8px) / 2 + 4px); bottom: calc(4px - (24px - 8px) / 2); width: 0; border-left: 2px solid var(--northloop-border-subtle); }
.nl-timeline--rail.nl-timeline--compact .nl-timeline__item:not(:last-child)::before { content: ''; position: absolute; left: 3px; top: calc((21px + 8px) / 2 + 4px); bottom: calc(4px - (21px - 8px) / 2); width: 0; border-left: 2px solid var(--northloop-border-subtle); }
.nl-timeline--rail .nl-timeline__item:has(+ [data-state='scheduled'])::before { border-left-style: dashed; }

.nl-timeline--compact { gap: var(--northloop-space-2); font-size: var(--northloop-font-size-secondary); line-height: 21px; }
.nl-timeline--compact .nl-timeline__item { column-gap: var(--northloop-space-2); }
.nl-timeline--compact .nl-timeline__detail { display: none; }
.nl-timeline--compact .nl-timeline__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-timeline--compact.nl-timeline--rail { gap: 0; }

/* ------------------------------------------------------------------------- stage stepper */
/*
 * Where a lead stands in the stages. Read-only. Full when its container is wide enough, compact below 34rem
 * (or forced with --compact): a segmented bar and a summary line.
 *   <div class="nl-stepper"> <ol class="nl-stepper__list" aria-label="Etapas do lead">
 *     <li class="nl-stepper__item" data-state="done|current|upcoming"> <span class="nl-stepper__marker">…</span>
 *       <span class="nl-stepper__label">Novo</span> </li> … </ol> <p class="nl-stepper__summary">…</p> </div>
 */
.nl-stepper { width: 100%; min-width: 0; container-type: inline-size; }
.nl-stepper__list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.nl-stepper__item { position: relative; display: flex; align-items: center; flex: 1 1 auto; gap: var(--northloop-space-2); min-width: 0; color: var(--northloop-text-muted); }
.nl-stepper__item:last-child { flex: 0 0 auto; }
.nl-stepper__item:not(:last-child)::after { content: ''; flex: 1 1 var(--northloop-space-6); min-width: var(--northloop-space-4); height: 2px; margin-inline: var(--northloop-space-2); border-radius: 1px; background: var(--northloop-border-subtle); }
.nl-stepper__item[data-state='done']:not(:last-child)::after { background: var(--northloop-primary); }
.nl-stepper__marker { display: grid; flex: none; place-items: center; box-sizing: border-box; width: 24px; height: 24px; border: 1.5px solid var(--northloop-border); border-radius: 50%; background: var(--northloop-surface); color: var(--northloop-text-muted); font-size: var(--northloop-font-size-caption); font-weight: var(--northloop-weight-strong); line-height: 1; }
.nl-stepper__label { min-width: 0; overflow: hidden; font-size: var(--northloop-font-size-secondary); text-overflow: ellipsis; white-space: nowrap; }
.nl-stepper__item[data-state='done'] { color: var(--northloop-text); }
.nl-stepper__item[data-state='done'] .nl-stepper__marker { border-color: var(--northloop-primary); background: var(--northloop-primary-soft); color: var(--northloop-link); }
.nl-stepper__item[data-state='current'] { color: var(--northloop-text); }
.nl-stepper__item[data-state='current'] .nl-stepper__label { font-weight: var(--northloop-weight-strong); }
.nl-stepper__item[data-state='current'] .nl-stepper__marker { border-color: transparent; background: var(--northloop-surface-subtle); color: var(--northloop-text); font-weight: var(--northloop-weight-bold); box-shadow: none; }
.nl-stepper__summary { display: none; margin: var(--northloop-space-2) 0 0; color: var(--northloop-text-muted); font-size: var(--northloop-font-size-secondary); }
.nl-stepper__summary strong { color: var(--northloop-text); font-weight: var(--northloop-weight-strong); }

/* Compact: forced with --compact, or automatic below 34rem of container width. Keep the two blocks in sync. */
.nl-stepper--compact .nl-stepper__list { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--northloop-space-1); }
.nl-stepper--compact .nl-stepper__item { display: block; flex: none; }
.nl-stepper--compact .nl-stepper__item::after { display: none; }
.nl-stepper--compact .nl-stepper__marker { display: block; width: 100%; height: 4px; border: 0; border-radius: 999px; background: var(--northloop-border-subtle); box-shadow: none; font-size: 0; overflow: hidden; }
.nl-stepper--compact .nl-stepper__marker svg { display: none; }
.nl-stepper--compact .nl-stepper__item[data-state='done'] .nl-stepper__marker { background: var(--northloop-primary); }
.nl-stepper--compact .nl-stepper__item[data-state='current'] .nl-stepper__marker { height: 8px; background: var(--northloop-text); box-shadow: none; }
.nl-stepper--compact .nl-stepper__label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.nl-stepper--compact .nl-stepper__summary { display: block; }
@container (max-width: 34rem) {
  .nl-stepper__list { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--northloop-space-1); }
  .nl-stepper__item { display: block; flex: none; }
  .nl-stepper__item::after { display: none; }
  .nl-stepper__marker { display: block; width: 100%; height: 4px; border: 0; border-radius: 999px; background: var(--northloop-border-subtle); box-shadow: none; font-size: 0; overflow: hidden; }
  .nl-stepper__marker svg { display: none; }
  .nl-stepper__item[data-state='done'] .nl-stepper__marker { background: var(--northloop-primary); }
  .nl-stepper__item[data-state='current'] .nl-stepper__marker { height: 8px; background: var(--northloop-text); box-shadow: none; }
  .nl-stepper__label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  .nl-stepper__summary { display: block; }
}

/* Neutral selection: selected = surface-subtle + text. No tint of primary, no outline. Check marks stay on nl-check. */
.nl-chip { display: inline-flex; align-items: center; gap: var(--northloop-space-2); min-height: 32px; padding: 0 var(--northloop-space-3); border: 0; border-radius: 999px; background: transparent; color: var(--northloop-text-muted); font: inherit; font-size: var(--northloop-font-size-secondary); font-weight: var(--northloop-weight-medium); cursor: pointer; white-space: nowrap; transition: background var(--northloop-duration-base) var(--northloop-easing-soft), color var(--northloop-duration-base) var(--northloop-easing-soft); }
.nl-chip:hover { background: var(--northloop-surface-subtle); color: var(--northloop-text); }
.nl-chip[aria-pressed='true'], .nl-chip[aria-selected='true'], .nl-chip[aria-checked='true'] { background: var(--northloop-surface-subtle); color: var(--northloop-text); }
.nl-chip:focus-visible { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: var(--northloop-focus-offset); }
.nl-chip:disabled { color: var(--northloop-text-disabled); cursor: not-allowed; background: none; }
/* Exception to the neutral rule: a list filter with one current option (Contatos, Inbox). */
.nl-chip--filter { box-sizing: border-box; min-height: 44px; padding: 0 var(--northloop-space-4); border: 1px solid var(--northloop-border); border-radius: var(--northloop-radius-md); background: var(--northloop-surface); color: var(--northloop-text-muted); font-size: 14px; font-weight: 600; line-height: 20px; text-decoration: none; transition: background var(--northloop-duration-base) var(--northloop-easing-soft), color var(--northloop-duration-base) var(--northloop-easing-soft), border-color var(--northloop-duration-base) var(--northloop-easing-soft); }
.nl-chip--filter:hover { background: var(--northloop-surface-subtle); color: var(--northloop-text); }
.nl-chip--filter[aria-current='true'], .nl-chip--filter[aria-pressed='true'] { background: var(--northloop-primary-soft); border-color: var(--northloop-link); color: var(--northloop-link); }
.nl-chip__count { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--northloop-surface-subtle); color: var(--northloop-text); font-size: 12px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.nl-chip--filter[aria-current='true'] .nl-chip__count, .nl-chip--filter[aria-pressed='true'] .nl-chip__count { background: var(--northloop-surface); color: var(--northloop-link); }
.nl-chips { display: flex; flex-wrap: wrap; gap: var(--northloop-space-2); }
/* Long sets (Inbox): one line, scrolls sideways. Padding keeps the focus ring inside the scroll box. */
.nl-chips--scroll { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: calc(var(--northloop-focus-width) + var(--northloop-focus-offset)); margin: calc(-1 * (var(--northloop-focus-width) + var(--northloop-focus-offset))); scroll-padding-inline: calc(var(--northloop-focus-width) + var(--northloop-focus-offset)); }
.nl-chips--scroll::-webkit-scrollbar { display: none; }
.nl-chips--scroll > * { flex: none; }
.nl-choice { display: flex; align-items: flex-start; gap: var(--northloop-space-3); padding: var(--northloop-space-4); border-radius: var(--northloop-radius-lg); background: var(--northloop-surface); box-shadow: var(--northloop-shadow-sm); cursor: pointer; transition: background var(--northloop-duration-base) var(--northloop-easing-soft); }
.nl-choice:hover { background: var(--northloop-surface-subtle); }
.nl-choice:has(input:checked), .nl-choice[aria-checked='true'] { background: var(--northloop-surface-subtle); }
.nl-choice:has(input:focus-visible) { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: var(--northloop-focus-offset); }
.nl-choice .nl-check { min-height: 0; margin-top: 2px; }
.nl-choice .nl-check input:not(:checked):not(:indeterminate):not(:disabled) { background: transparent; border-width: 2px; border-color: var(--northloop-text-muted); }
.nl-choice__title { display: block; font-weight: var(--northloop-weight-strong); }
.nl-choice__desc { display: block; color: var(--northloop-text-muted); font-size: var(--northloop-font-size-secondary); }
/* Toolbar: segmented sm, icon and text buttons on one line; every item can shrink. */
.nl-toolbar { display: flex; align-items: center; gap: 2px; min-width: 0; }
.nl-toolbar > * { flex-shrink: 1; min-width: 0; }
.nl-toolbar > .nl-btn--icon { flex: none; }
.nl-toolbar > .nl-btn { padding-inline: var(--northloop-space-2); min-height: 32px; white-space: nowrap; }
.nl-toolbar > .nl-btn--text { flex: none; }
.nl-toolbar > .nl-toolbar__spacer { flex: 1 1 0; }

/* Entrance for floating layers; collapses under reduced motion. */
@keyframes nl-rise { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
.nl-popover, .nl-toast, .nl-command { animation: nl-rise var(--northloop-duration-base) var(--northloop-easing-soft); }

/* ---- Modal: centered dialog over a scrim, for a short task that must finish or be cancelled. ---- */
.nl-modal { box-sizing: border-box; width: min(var(--nl-modal-width, 30rem), calc(100% - 2rem)); max-height: calc(100% - 3rem); padding: 0; border: 0; border-radius: var(--northloop-radius-xl); background: var(--northloop-surface-raised); color: var(--northloop-text); box-shadow: var(--northloop-shadow-lg); overflow: hidden; animation: nl-rise var(--northloop-duration-base) var(--northloop-easing-soft); }
.nl-modal[open] { display: flex; flex-direction: column; }
.nl-modal--sm { width: min(var(--nl-modal-width, 24rem), calc(100% - 2rem)); }
.nl-modal--lg { width: min(var(--nl-modal-width, 40rem), calc(100% - 2rem)); }
.nl-modal::backdrop { background: var(--northloop-scrim); }
.nl-modal:focus, .nl-modal__title:focus { outline: 0; }
.nl-modal__header { display: flex; align-items: flex-start; gap: var(--northloop-space-3); flex: none; padding: var(--northloop-space-5) var(--northloop-space-3) 0 var(--northloop-space-6); }
.nl-modal__heading { display: grid; gap: var(--northloop-space-1); flex: 1; min-width: 0; padding-top: var(--northloop-space-2); }
.nl-modal__title { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: var(--northloop-line-tight); }
.nl-modal__subtitle { margin: 0; color: var(--northloop-text-muted); font-size: var(--northloop-font-size-caption); }
.nl-modal__close { flex: none; min-height: 44px; width: 44px; }
.nl-modal__close:hover { background: var(--northloop-surface-subtle); color: var(--northloop-text); }
.nl-modal__body { display: grid; align-content: start; gap: var(--northloop-space-4); min-height: 0; padding: var(--northloop-space-5) var(--northloop-space-6); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.nl-modal__footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--northloop-space-2); flex: none; padding: var(--northloop-space-4) var(--northloop-space-6) var(--northloop-space-6); }
@media (max-width: 40rem) { .nl-modal__header { padding-left: var(--northloop-space-4); } .nl-modal__body { padding: var(--northloop-space-4); } .nl-modal__footer { padding: var(--northloop-space-3) var(--northloop-space-4) var(--northloop-space-4); } }
@media (prefers-reduced-motion: reduce) { .nl-modal { animation: none; } }

/* ---- Combobox: a text field that suggests items from a closed list. ---- */
.nl-combobox { position: relative; width: 100%; }
.nl-combobox .nl-input { width: 100%; box-sizing: border-box; }
.nl-combobox__list { position: absolute; z-index: var(--northloop-z-overlay); top: calc(100% + var(--northloop-space-1)); left: 0; right: 0; display: grid; gap: 2px; max-height: 22rem; margin: 0; padding: var(--northloop-space-2); list-style: none; overflow-y: auto; overscroll-behavior: contain; background: var(--northloop-surface-raised); border: 1px solid var(--northloop-border-subtle); border-radius: var(--northloop-radius-lg); box-shadow: var(--northloop-shadow-md); animation: nl-rise var(--northloop-duration-base) var(--northloop-easing-soft); }
.nl-combobox__list[hidden] { display: none; }
.nl-combobox__option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--northloop-space-3); min-height: 44px; padding: var(--northloop-space-2) var(--northloop-space-3); border-radius: var(--northloop-radius-md); cursor: pointer; }
.nl-combobox__option:hover, .nl-combobox__option[aria-selected='true'] { background: var(--northloop-surface-subtle); }
.nl-combobox__option:not(:has(.nl-combobox__icon)) { grid-template-columns: minmax(0, 1fr) auto; }
.nl-combobox__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--northloop-radius-md); background: var(--northloop-surface-subtle); color: var(--northloop-text); }
.nl-combobox__option[aria-selected='true'] .nl-combobox__icon, .nl-combobox__option:hover .nl-combobox__icon { background: var(--northloop-surface); }
.nl-combobox__text { display: grid; min-width: 0; }
.nl-combobox__title { overflow: hidden; font-weight: var(--northloop-weight-strong); text-overflow: ellipsis; white-space: nowrap; }
.nl-combobox__meta { overflow: hidden; color: var(--northloop-text-muted); font-size: var(--northloop-font-size-caption); text-overflow: ellipsis; white-space: nowrap; }
.nl-combobox__trail { color: var(--northloop-text-muted); font-size: var(--northloop-font-size-caption); font-weight: var(--northloop-weight-strong); white-space: nowrap; }
.nl-combobox__empty { padding: var(--northloop-space-2) var(--northloop-space-3); color: var(--northloop-text-muted); font-size: var(--northloop-font-size-secondary); }
.nl-combobox__option--action .nl-combobox__title { color: var(--northloop-link); }
@media (prefers-reduced-motion: reduce) { .nl-combobox__list { animation: none; } }
@media (prefers-reduced-motion: reduce) { .nl-chip, .nl-chip--filter, .nl-choice { transition: none; } .nl-popover, .nl-toast, .nl-command { animation: none; } .nl-toast__dot--pulse { animation: none; } .nl-btn, .nl-row-item, .nl-nav-item, .nl-tab, .nl-segmented > button { transition: none; } .nl-btn:active:not(:disabled) { transform: none; } }

/* ---- Inbox: group label (list section header). Same type as .nl-eyebrow plus a rule and a count. ---- */
.nl-group-label { display: flex; align-items: center; gap: var(--northloop-space-2); padding: var(--northloop-space-3) var(--northloop-space-3) var(--northloop-space-1); font-size: var(--northloop-font-size-caption); font-weight: var(--northloop-weight-bold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--northloop-text-muted); }
.nl-group-label--danger { color: var(--northloop-color-danger); }
.nl-group-label--warning { color: var(--northloop-color-warning); }
.nl-group-label--info { color: var(--northloop-link); }
.nl-group-label--success { color: var(--northloop-color-success); }
.nl-group-label__rule { flex: 1; height: 1px; background: var(--northloop-border-subtle); }

/* ---- Workspace switcher: trigger (current workspace) and a popover list. Reuses .nl-btn--secondary and .nl-popover. ---- */
.nl-ws { position: relative; display: block; }
.nl-ws__trigger { width: 100%; justify-content: flex-start; gap: var(--northloop-space-3); min-height: 48px; padding: 0 var(--northloop-space-2); text-align: left; font-weight: var(--northloop-weight-regular, 400); border: 1px solid var(--northloop-border-subtle); }
.nl-ws__mark { position: relative; flex: none; width: 32px; height: 32px; border-radius: var(--northloop-radius-sm); display: grid; place-items: center; background: var(--northloop-surface-subtle); color: var(--northloop-text); font-size: var(--northloop-font-size-secondary); font-weight: 650; }
.nl-ws__mark--active { background: var(--northloop-text); color: var(--northloop-surface); }
.nl-ws__text { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.nl-ws__name { overflow: hidden; font-size: var(--northloop-font-size-secondary); font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.nl-ws__role { overflow: hidden; color: var(--northloop-text-muted); font-size: var(--northloop-font-size-caption); text-overflow: ellipsis; white-space: nowrap; }
.nl-ws__chevron { flex: none; color: var(--northloop-text-muted); transition: transform var(--northloop-duration-fast) var(--northloop-easing-soft); }
.nl-ws__trigger[aria-expanded='true'] .nl-ws__chevron { transform: rotate(180deg); }
.nl-ws__dot { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--northloop-color-danger); box-shadow: 0 0 0 2px var(--northloop-surface); }
.nl-ws__menu { position: absolute; z-index: var(--northloop-z-overlay); top: calc(100% + var(--northloop-space-1)); left: 0; width: max(100%, 16.5rem); max-height: 22rem; overflow-y: auto; overscroll-behavior: contain; padding: var(--northloop-space-2); gap: 2px; }
.nl-ws__menu { transform-origin: top left; animation: nl-ws-drop var(--northloop-duration-base) var(--northloop-easing-soft); }
.nl-ws--collapsed .nl-ws__menu { animation-name: nl-ws-slide; }
@keyframes nl-ws-drop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
@keyframes nl-ws-slide { from { opacity: 0; transform: translateX(-6px) scale(0.98); } }
.nl-ws__menu[hidden] { display: none; }
.nl-ws__label { padding: var(--northloop-space-2); }
.nl-ws__item { display: flex; align-items: center; gap: var(--northloop-space-3); min-height: 48px; padding: 0 var(--northloop-space-2); border: 0; border-radius: var(--northloop-radius-md); background: none; color: var(--northloop-text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.nl-ws__item:hover { background: var(--northloop-surface-subtle); }
.nl-ws__item[aria-checked='true'] { background: var(--northloop-primary-soft); }
.nl-ws__check { flex: none; color: var(--northloop-link); }
.nl-ws__attention { flex: none; display: inline-flex; align-items: center; gap: var(--northloop-space-2); color: var(--northloop-text-muted); font-size: var(--northloop-font-size-caption); font-weight: 650; }
.nl-ws__attention::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--northloop-color-danger); }
.nl-ws--collapsed .nl-ws__trigger { width: 44px; min-height: 44px; padding: 0; justify-content: center; border-color: transparent; background: none; }
.nl-ws--collapsed .nl-ws__text, .nl-ws--collapsed .nl-ws__chevron { display: none; }
.nl-ws--collapsed .nl-ws__menu { left: calc(100% + var(--northloop-space-2)); top: 0; }
@media (max-width: 40rem) { .nl-ws__menu { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .nl-ws__chevron { transition: none; } .nl-ws__menu { animation: none; } }

/* ---- Scrollbar, quiet variant: thin, invisible at rest, visible on hover or focus inside. Opt in with .nl-scroll; popover, command results, modal body, combobox list and workspace menu use it by default. Other scroll areas keep the default bar from :root. ---- */
.nl-scroll, .nl-popover, .nl-command__results, .nl-modal__body, .nl-combobox__list, .nl-ws__menu { scrollbar-width: thin; scrollbar-color: transparent transparent; }
:is(.nl-scroll, .nl-popover, .nl-command__results, .nl-modal__body, .nl-combobox__list, .nl-ws__menu):is(:hover, :focus-within) { scrollbar-color: var(--northloop-border) transparent; }
:is(.nl-scroll, .nl-popover, .nl-command__results, .nl-modal__body, .nl-combobox__list, .nl-ws__menu)::-webkit-scrollbar { width: 8px; height: 8px; }
:is(.nl-scroll, .nl-popover, .nl-command__results, .nl-modal__body, .nl-combobox__list, .nl-ws__menu)::-webkit-scrollbar-track { background: transparent; }
:is(.nl-scroll, .nl-popover, .nl-command__results, .nl-modal__body, .nl-combobox__list, .nl-ws__menu)::-webkit-scrollbar-thumb { background: transparent; border: 2px solid transparent; border-radius: 999px; background-clip: content-box; }
:is(.nl-scroll, .nl-popover, .nl-command__results, .nl-modal__body, .nl-combobox__list, .nl-ws__menu):is(:hover, :focus-within)::-webkit-scrollbar-thumb { background-color: var(--northloop-border); }

/* ---- Motion: entrance of a pane (a column that appears when a person chooses or opens something). Never on re-render, typing, filter or tab change. ---- */
@keyframes nl-pane-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes nl-pane-in-end { from { opacity: 0; transform: translateX(24px); } }
.nl-enter { animation: nl-pane-in var(--northloop-duration-base) var(--northloop-easing) both; }
.nl-enter--end { animation-name: nl-pane-in-end; }
@media (prefers-reduced-motion: reduce) { .nl-enter, .nl-enter--end { animation: none; } }

/* ---- Pipeline: stages as columns; the card is only a frame (raised fill, subtle border, urgency bar) around a .nl-row-item body without avatar or channel. ---- */
.nl-pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--northloop-space-4); align-items: stretch; }
.nl-pipeline__col { display: grid; gap: var(--northloop-space-2); align-content: start; min-width: 0; padding: 0 var(--northloop-space-2) var(--northloop-space-2); border-radius: var(--northloop-radius-lg); background: var(--northloop-surface-subtle); }
.nl-pipeline__head { display: flex; justify-content: space-between; align-items: baseline; padding: var(--northloop-space-3) var(--northloop-space-1) 0; font-size: var(--northloop-font-size-caption); font-weight: var(--northloop-weight-bold); color: var(--northloop-text-muted); }
.nl-pipeline__card { box-sizing: border-box; position: relative; border: 1px solid var(--northloop-border-subtle); background: var(--northloop-surface-raised); border-radius: var(--northloop-radius-md); padding: var(--northloop-space-3) var(--northloop-space-4); text-decoration: none; min-width: 0; }
.nl-pipeline__card[data-urgent='true']::before, .nl-next-action[data-overdue='true']::before { content: ''; position: absolute; left: 0; top: var(--northloop-space-3); bottom: var(--northloop-space-3); width: 3px; border-radius: 0 3px 3px 0; background: var(--northloop-color-danger); }
@media (max-width: 40rem) { .nl-pipeline { grid-template-columns: minmax(0, 1fr); } }

/* ---- Tooltip: short, non-interactive description of a control. Shown on hover and keyboard focus; Esc dismisses (data-dismissed). ---- */
.nl-tooltip-host { position: relative; display: inline-flex; }
.nl-tooltip { position: absolute; z-index: var(--northloop-z-overlay); left: 50%; bottom: calc(100% + var(--northloop-space-2)); transform: translateX(-50%); box-sizing: border-box; width: max-content; max-width: min(16rem, 80vw); padding: var(--northloop-space-2) var(--northloop-space-3); border: 1px solid var(--northloop-border-subtle); border-radius: var(--northloop-radius-md); background: var(--northloop-surface-raised); color: var(--northloop-text); box-shadow: var(--northloop-shadow-md); font-size: var(--northloop-font-size-caption); font-weight: 400; line-height: 1.4; text-align: left; white-space: normal; pointer-events: none; visibility: hidden; opacity: 0; transition: opacity var(--northloop-duration-base) var(--northloop-easing-soft), visibility 0s linear var(--northloop-duration-base); }
.nl-tooltip-host[data-placement='bottom'] > .nl-tooltip { bottom: auto; top: calc(100% + var(--northloop-space-2)); }
.nl-tooltip-host[data-placement='start'] > .nl-tooltip { left: auto; right: calc(100% + var(--northloop-space-2)); bottom: 50%; transform: translateY(50%); }
.nl-tooltip-host[data-placement='end'] > .nl-tooltip { left: calc(100% + var(--northloop-space-2)); bottom: 50%; transform: translateY(50%); }
.nl-tooltip-host:hover > .nl-tooltip, .nl-tooltip-host:focus-within > .nl-tooltip, .nl-tooltip[data-open='true'] { visibility: visible; opacity: 1; transition-delay: 0s; }
.nl-tooltip-host[data-dismissed='true'] > .nl-tooltip { visibility: hidden; opacity: 0; }
.nl-tooltip__kbd { margin-left: var(--northloop-space-2); }
.nl-tooltip--nowrap { white-space: nowrap; }
@media (hover: none) and (pointer: coarse) { .nl-tooltip-host:hover:not(:focus-within) > .nl-tooltip { visibility: hidden; opacity: 0; } }
@media (max-width: 40rem) { .nl-tooltip-host[data-placement='start'] > .nl-tooltip, .nl-tooltip-host[data-placement='end'] > .nl-tooltip { left: 50%; right: auto; bottom: calc(100% + var(--northloop-space-2)); transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .nl-tooltip { transition: none; } }

/* ---- Banner: contextual message inside the page flow. Status is a title word plus an icon, never color alone. ---- */
.nl-banner { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--northloop-space-3); box-sizing: border-box; padding: var(--northloop-space-3) var(--northloop-space-4); border: 1px solid var(--northloop-border-subtle); border-radius: var(--northloop-radius-md); background: var(--northloop-color-neutral-soft); color: var(--northloop-text); font-size: var(--northloop-font-size-secondary); line-height: 1.45; }
.nl-banner--info .nl-banner__icon { color: var(--northloop-link); }
.nl-banner--success .nl-banner__icon { color: var(--northloop-color-success); }
.nl-banner--warning .nl-banner__icon { color: var(--northloop-color-warning); }
.nl-banner--danger .nl-banner__icon { color: var(--northloop-color-danger); }
.nl-banner--neutral .nl-banner__icon { color: var(--northloop-text-muted); }
.nl-banner__icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--northloop-link); }
.nl-banner__body { flex: 9999 1 12rem; min-width: 0; display: grid; gap: 2px; }
.nl-banner__title { margin: 0; font-size: var(--northloop-font-size-label); font-weight: var(--northloop-weight-strong); color: var(--northloop-text); }
.nl-banner__text { margin: 0; color: var(--northloop-text-muted); }
.nl-banner__actions { flex: 1 1 auto; align-self: center; display: flex; flex-wrap: wrap; align-items: center; gap: var(--northloop-space-2); box-sizing: border-box; padding-left: calc(20px + var(--northloop-space-3)); }
.nl-banner__actions .nl-btn { white-space: nowrap; }
.nl-banner:has(.nl-banner__dismiss) { padding-right: calc(44px + var(--northloop-space-4)); }
.nl-banner__dismiss { position: absolute; top: 0; right: calc(var(--northloop-space-4) - var(--northloop-space-3)); display: inline-grid; place-items: center; width: 44px; height: 44px; margin: 0; border: 0; border-radius: var(--northloop-radius-md); background: none; color: var(--northloop-text-muted); cursor: pointer; }
.nl-banner__dismiss:hover { background: var(--northloop-surface-subtle); color: var(--northloop-text); }
.nl-banner__dismiss:focus-visible { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: 0; }
.nl-banner--compact { padding: var(--northloop-space-2) var(--northloop-space-3); }
.nl-banner--soft, .nl-banner--soft .nl-banner__title { color: var(--northloop-text-muted); }
.nl-banner--soft.nl-banner--info { background: var(--northloop-color-info-soft); }
.nl-banner--soft.nl-banner--success { background: var(--northloop-color-success-soft); }
.nl-banner--soft.nl-banner--warning { background: var(--northloop-color-warning-soft); }
.nl-banner--soft.nl-banner--danger { background: var(--northloop-color-danger-soft); }

/* ---- Bar row: label, horizontal bar and value. Generic; the consumer supplies the data and the scale. ---- */
.nl-bars { display: grid; gap: var(--northloop-space-3); margin: 0; padding: 0; list-style: none; container-type: inline-size; }
.nl-bars--dense { gap: var(--northloop-space-1); }
.nl-bar-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 5.5rem; align-items: center; gap: var(--northloop-space-3); box-sizing: border-box; width: 100%; min-height: 28px; padding: 0; border: 0; border-radius: var(--northloop-radius-md); background: none; color: var(--northloop-text); font: inherit; font-size: var(--northloop-font-size-secondary); text-align: left; }
.nl-bar-row__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-bar-row__track { position: relative; height: 8px; border-radius: 999px; background: var(--northloop-surface-subtle); overflow: hidden; }
.nl-bar-row__fill { position: absolute; inset: 0 auto 0 0; width: var(--nl-bar-value, 0%); min-width: 0; border-radius: 999px; background: var(--northloop-primary); transition: width var(--northloop-duration-base) var(--northloop-easing-soft); }
.nl-bar-row[data-nonzero='true'] .nl-bar-row__fill { min-width: 4px; }
.nl-bar-row__value { justify-self: end; font-weight: var(--northloop-weight-strong); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.nl-bar-row__meta { color: var(--northloop-text-muted); font-weight: 400; margin-left: var(--northloop-space-1); }
.nl-bar-row--success .nl-bar-row__fill { background: var(--northloop-color-success); }
.nl-bar-row--warning .nl-bar-row__fill { background: var(--northloop-color-warning); }
.nl-bar-row--danger .nl-bar-row__fill { background: var(--northloop-color-danger); }
.nl-bar-row--neutral .nl-bar-row__fill { background: var(--northloop-color-neutral); }
.nl-bar-row--muted .nl-bar-row__label, .nl-bar-row--muted .nl-bar-row__value { color: var(--northloop-text-muted); }
.nl-bars--dense .nl-bar-row { min-height: 24px; }
.nl-bars--dense .nl-bar-row__track { height: 6px; }
button.nl-bar-row { cursor: pointer; padding: var(--northloop-space-1) var(--northloop-space-2); margin: 0 calc(var(--northloop-space-2) * -1); width: calc(100% + var(--northloop-space-4)); min-height: 44px; transition: background var(--northloop-duration-base) var(--northloop-easing-soft); }
button.nl-bar-row:hover, .nl-bar-row[aria-pressed='true'] { background: var(--northloop-surface-subtle); }
button.nl-bar-row:focus-visible { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: 2px; }
.nl-bar-row[aria-disabled='true'] { color: var(--northloop-text-disabled); }
.nl-bar-row[aria-disabled='true'] .nl-bar-row__fill { background: var(--northloop-text-disabled); }
.nl-bars__more { margin-top: var(--northloop-space-2); color: var(--northloop-text-muted); font-size: var(--northloop-font-size-caption); }
@container (max-width: 24rem) { .nl-bar-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--northloop-space-1); } .nl-bar-row__track { grid-column: 1 / -1; grid-row: 2; } }
@media (prefers-reduced-motion: reduce) { .nl-bar-row__fill, button.nl-bar-row { transition: none; } }

/* ---- Bottom navigation: mobile only (hidden from 48.0625rem). Consumer sets --nl-bottom-nav-height on :root (default 56px); nl-toast--float reads it. ---- */
.nl-bottom-nav, .nl-popover.nl-bottom-nav__sheet { display: none; }
@media (max-width: 48rem) {
  .nl-bottom-nav { position: fixed; z-index: calc(var(--northloop-z-overlay) - 1); left: 0; right: 0; bottom: 0; box-sizing: border-box; display: flex; height: calc(var(--nl-bottom-nav-height, 56px) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--northloop-surface); border-top: 1px solid var(--northloop-border-subtle); }
  .nl-bottom-nav__item { flex: 1 1 0; min-width: 0; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 2px; border: 0; background: none; color: var(--northloop-text-muted); font: inherit; font-size: var(--northloop-font-size-caption); font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
  .nl-bottom-nav__item > span:not(.nl-bottom-nav__icon) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nl-bottom-nav__item:hover { color: var(--northloop-text); }
  .nl-bottom-nav__item[aria-current='page'], .nl-bottom-nav__item[aria-expanded='true'] { color: var(--northloop-link); font-weight: 650; }
  .nl-bottom-nav__item:focus-visible { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: calc(-1 * var(--northloop-focus-width)); }
  .nl-bottom-nav__icon { position: relative; display: inline-flex; width: 24px; height: 24px; }
  .nl-bottom-nav__icon > svg { width: 24px; height: 24px; }
  .nl-bottom-nav__dot { position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--northloop-color-danger); box-shadow: 0 0 0 2px var(--northloop-surface); }
  .nl-bottom-nav__dot[hidden] { display: none; }
  .nl-popover.nl-bottom-nav__sheet { position: fixed; right: 12px; bottom: calc(var(--nl-bottom-nav-height, 56px) + env(safe-area-inset-bottom, 0px) + var(--northloop-space-2)); box-sizing: border-box; width: 15rem; gap: var(--northloop-space-1); padding: var(--northloop-space-2); transform-origin: bottom right; }
  .nl-popover.nl-bottom-nav__sheet:not([hidden]) { display: grid; }
  .nl-bottom-nav__sheet > [role='menuitem'] { display: flex; align-items: center; min-height: 48px; padding: 0 var(--northloop-space-3); border: 0; border-radius: var(--northloop-radius-sm); background: none; color: var(--northloop-text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
  .nl-bottom-nav__sheet > [role='menuitem']:hover { background: var(--northloop-surface-subtle); }
  .nl-bottom-nav__sheet > [role='menuitem']:focus-visible { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: calc(-1 * var(--northloop-focus-width)); }
  .nl-bottom-nav__sheet > [aria-disabled='true'], .nl-bottom-nav__sheet > [aria-disabled='true']:hover { background: none; color: var(--northloop-text-disabled); cursor: not-allowed; }
}


/* ---- Stage chip (read-only compact stage indicator) ---- */
.nl-stage-chip { display: inline-flex; align-items: center; gap: var(--northloop-space-2); color: var(--northloop-text); font-size: 13px; font-weight: 600; line-height: 1.2; }
.nl-stage-chip__segments { display: inline-flex; gap: 3px; flex: none; }
.nl-stage-chip__segment { width: 14px; height: 4px; border-radius: 2px; background: var(--northloop-border); }
.nl-stage-chip__segment[data-reached='true'] { background: var(--northloop-link); }
@media (max-width: 48rem) { .nl-stage-chip__segment { width: 10px; } }

/* ---- Composer (pill field, tools inside, send outside) ---- */
.nl-composer { display: flex; align-items: flex-end; gap: var(--northloop-space-2); }
.nl-composer__field { position: relative; flex: 1 1 auto; min-width: 0; box-sizing: border-box; border-radius: 22px; background: var(--northloop-surface); border: 1px solid var(--northloop-border); }
.nl-composer__field:focus-within { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: 1px; }
.nl-composer__input { position: relative; z-index: 1; display: block; box-sizing: border-box; width: 100%; min-height: 42px; max-height: calc(22px * 8 + 20px); margin: 0; padding: 10px var(--northloop-space-4) 10px 84px; border: 0; border-radius: 22px; outline: 0; resize: none; overflow-y: auto; background: transparent; color: var(--northloop-text); font: inherit; font-size: var(--northloop-font-size-body, 15px); line-height: 22px; }
.nl-composer__input::placeholder { color: var(--northloop-text-muted); }
.nl-composer__tools { position: absolute; z-index: 2; left: 3px; bottom: 3px; display: flex; }
.nl-composer__tool, .nl-composer__send { display: inline-grid; place-items: center; flex: none; border: 0; border-radius: 50%; cursor: pointer; font: inherit; }
.nl-composer__tool { width: 36px; height: 36px; padding: 0; background: none; color: var(--northloop-text-muted); }
.nl-composer__tool:hover { background: var(--northloop-surface-subtle); }
.nl-composer__tool--ai { color: var(--northloop-link); }
.nl-composer__tool svg { width: 20px; height: 20px; }
.nl-composer__send { width: 44px; height: 44px; padding: 0; background: var(--northloop-primary); color: var(--northloop-on-primary); }
.nl-composer__send:hover { background: var(--northloop-primary-hover); }
.nl-composer__send svg { width: 20px; height: 20px; }
.nl-composer__tool:focus-visible, .nl-composer__send:focus-visible { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: 2px; }
.nl-composer__hint { display: none; position: absolute; z-index: 0; left: 84px; right: var(--northloop-space-4); top: 10px; align-items: center; gap: var(--northloop-space-2); color: var(--northloop-text-muted); font-size: var(--northloop-font-size-secondary); line-height: 20px; white-space: nowrap; overflow: hidden; pointer-events: none; }
.nl-composer__hint-text { text-box: trim-both ex alphabetic; }
@media (hover: hover) and (min-width: 48.0625rem) {
  .nl-composer__field[data-suggestion='true'] .nl-composer__input:placeholder-shown::placeholder { color: transparent; }
  .nl-composer__field[data-suggestion='true'] .nl-composer__input:placeholder-shown ~ .nl-composer__hint { display: flex; }
}

/* ---- Action bar (collapsible, above the composer) ---- */
.nl-action-bar { display: contents; }
.nl-action-bar__toggle { display: flex; align-items: center; gap: var(--northloop-space-2); box-sizing: border-box; width: 100%; height: 44px; flex: none; padding: 0 var(--northloop-space-4); border: 0; border-top: 1px solid var(--northloop-border-subtle); background: var(--northloop-surface-raised); color: var(--northloop-text); font: inherit; font-size: var(--northloop-font-size-secondary); text-align: left; cursor: pointer; }
.nl-action-bar__toggle:hover { background: var(--northloop-surface-subtle); }
.nl-action-bar__toggle:focus-visible { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: calc(-1 * var(--northloop-focus-width)); }
.nl-action-bar__icon { flex: none; width: 14px; height: 14px; color: var(--northloop-text-muted); }
.nl-action-bar__title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.nl-action-bar__when { flex: none; font-weight: 500; color: var(--northloop-text-muted); }
.nl-action-bar__when[data-overdue='true'] { color: var(--northloop-color-danger); }
.nl-action-bar__arrow { flex: none; width: 16px; height: 16px; color: var(--northloop-text-muted); }
.nl-action-bar__toggle[aria-expanded='true'] .nl-action-bar__arrow { transform: rotate(180deg); }
.nl-action-bar__panel { box-sizing: border-box; flex: none; max-height: 55%; overflow-y: auto; padding: var(--northloop-space-3) var(--northloop-space-4); border-top: 1px solid var(--northloop-border-subtle); background: var(--northloop-surface-raised); color: var(--northloop-text); font-size: var(--northloop-font-size-secondary); }
.nl-action-bar__panel[hidden] { display: none; }
.nl-action-bar__note { margin: 0 0 var(--northloop-space-3); color: var(--northloop-text-muted); }
.nl-action-bar__buttons { display: flex; flex-wrap: wrap; gap: var(--northloop-space-2); }

/* ---- Menu with submenus and checkboxes ---- */
.nl-menu__scrim { display: none; }
.nl-menu { box-sizing: border-box; width: 260px; padding: var(--northloop-space-1); border: 1px solid var(--northloop-border-subtle); border-radius: var(--northloop-radius-lg); background: var(--northloop-surface-raised); box-shadow: var(--northloop-shadow-md); color: var(--northloop-text); font-size: var(--northloop-font-size-secondary); }
.nl-menu[hidden] { display: none; }
.nl-menu__item { display: flex; align-items: center; gap: var(--northloop-space-3); box-sizing: border-box; width: 100%; min-height: 40px; padding: 0 var(--northloop-space-3); border: 0; border-radius: var(--northloop-radius-sm); background: none; color: var(--northloop-text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.nl-menu__item:hover { background: var(--northloop-surface-subtle); }
.nl-menu__item:focus-visible { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: calc(-1 * var(--northloop-focus-width)); }
.nl-menu__item--muted { color: var(--northloop-text-muted); }
.nl-menu__icon { flex: none; width: 18px; height: 18px; color: var(--northloop-text-muted); }
.nl-menu__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-menu__value { flex: none; white-space: nowrap; color: var(--northloop-text-muted); }
.nl-menu__value[data-active='true'] { color: var(--northloop-link); font-weight: 600; }
.nl-menu__chevron { flex: none; width: 16px; height: 16px; color: var(--northloop-text-muted); }
.nl-menu__divider { height: 1px; margin: var(--northloop-space-1) 0; border: 0; background: var(--northloop-border-subtle); }
.nl-menu__header { display: flex; align-items: center; gap: var(--northloop-space-1); }
.nl-menu__back { flex: 1 1 auto; min-width: 0; width: auto; font-weight: 650; }
.nl-menu__clear { flex: none; min-height: 32px; padding: 0 var(--northloop-space-3); border: 0; border-radius: var(--northloop-radius-sm); background: none; color: var(--northloop-link); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.nl-menu__clear:hover { background: var(--northloop-surface-subtle); }
.nl-menu__clear:focus-visible { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: calc(-1 * var(--northloop-focus-width)); }
.nl-menu__box { display: grid; place-items: center; flex: none; box-sizing: border-box; width: 16px; height: 16px; border: 1.5px solid var(--northloop-text-muted); border-radius: 4px; color: var(--northloop-on-primary); }
.nl-menu__box svg, .nl-menu__tick svg { display: none; width: 12px; height: 12px; }
[aria-checked='true'] > .nl-menu__box, .nl-picker__option[aria-selected='true'] > .nl-menu__box, .nl-owner-picker__option[aria-selected='true'] > .nl-menu__box { background: var(--northloop-primary); border-color: var(--northloop-primary); }
[aria-checked='true'] > .nl-menu__box svg, .nl-picker__option[aria-selected='true'] > .nl-menu__box svg, .nl-owner-picker__option[aria-selected='true'] > .nl-menu__box svg { display: block; }
.nl-menu__tick { flex: none; width: 16px; height: 16px; display: grid; place-items: center; color: var(--northloop-link); }
.nl-menu__tick svg { width: 16px; height: 16px; }
[aria-checked='true'] > .nl-menu__tick svg { display: block; }
.nl-menu__count { flex: none; color: var(--northloop-text-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 48rem) {
  .nl-menu__scrim { display: block; position: fixed; inset: 0; z-index: calc(var(--northloop-z-overlay) - 1); background: var(--northloop-scrim); }
  .nl-menu__scrim[hidden] { display: none; }
  .nl-menu { position: fixed; z-index: var(--northloop-z-overlay); left: 0; right: 0; bottom: 0; width: auto; max-height: 80%; overflow-y: auto; padding-bottom: calc(var(--northloop-space-1) + env(safe-area-inset-bottom, 0px)); border-radius: var(--northloop-radius-lg) var(--northloop-radius-lg) 0 0; }
  .nl-menu__item { min-height: 48px; }
}
/* Context menu (1.34.0): opened from the item itself, at the pointer. At 48rem and below it is the regular sheet. */
.nl-menu__heading { margin: 0; padding: var(--northloop-space-2) var(--northloop-space-3) var(--northloop-space-1); font-size: var(--northloop-font-size-secondary); font-weight: var(--northloop-weight-strong); color: var(--northloop-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 48.0625rem) { .nl-menu--context { position: fixed; z-index: var(--northloop-z-overlay); } .nl-menu__heading { display: none; } }
[data-context-menu] { -webkit-touch-callout: none; }
@media (pointer: coarse) { [data-context-menu] { -webkit-user-select: none; user-select: none; } }

/* ---- Menu action row (AI assistant menu) ---- */
.nl-menu__action { display: grid; grid-template-columns: auto 1fr; column-gap: var(--northloop-space-3); align-items: start; box-sizing: border-box; width: 100%; padding: var(--northloop-space-2) var(--northloop-space-3); border: 0; border-radius: var(--northloop-radius-sm); background: none; color: var(--northloop-text); font: inherit; text-align: left; cursor: pointer; }
.nl-menu__action:hover { background: var(--northloop-surface-subtle); }
.nl-menu__action:focus-visible { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: calc(-1 * var(--northloop-focus-width)); }
.nl-menu__action-icon { grid-row: 1 / span 2; width: 18px; text-align: center; color: var(--northloop-link); font-size: 16px; line-height: 20px; }
.nl-menu__action-title { font-size: 14px; font-weight: 650; line-height: 20px; }
.nl-menu__action-desc { color: var(--northloop-text-muted); font-size: 13px; line-height: 18px; }
.nl-menu__action[aria-disabled='true'] { opacity: 0.7; cursor: not-allowed; }
.nl-menu__action[aria-disabled='true']:hover { background: none; }

/* ---- Load error: centered block for a region that failed to load. Fixed title, one line of context, optional code, one primary retry. ---- */
.nl-load-error { display: flex; flex-direction: column; align-items: center; gap: var(--northloop-space-2); box-sizing: border-box; width: 100%; max-width: 22rem; margin: auto; padding: var(--northloop-space-6) var(--northloop-space-4); text-align: center; }
.nl-load-error__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--northloop-space-1); border-radius: 50%; background: var(--northloop-color-danger-soft); color: var(--northloop-color-danger); }
.nl-load-error__title { margin: 0; font-size: var(--northloop-font-size-body); font-weight: var(--northloop-weight-bold); line-height: var(--northloop-line-tight); color: var(--northloop-text); }
.nl-load-error__desc { margin: 0; font-size: var(--northloop-font-size-secondary); line-height: var(--northloop-line-body); color: var(--northloop-text-muted); text-wrap: pretty; }
.nl-load-error__code { font-family: var(--font-mono); font-size: var(--northloop-font-size-caption); color: var(--northloop-text-muted); }
.nl-load-error__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--northloop-space-2); margin-top: var(--northloop-space-2); }
/* ---- Composer, disabled: the form stays in place with aria-disabled. ---- */
.nl-composer[aria-disabled='true'] .nl-composer__tool, .nl-composer__tool[aria-disabled='true'] { color: var(--northloop-text-disabled); cursor: not-allowed; }
.nl-composer[aria-disabled='true'] .nl-composer__tool:hover, .nl-composer__tool[aria-disabled='true']:hover { background: none; }
.nl-composer[aria-disabled='true'] .nl-composer__send, .nl-composer__send[aria-disabled='true'], .nl-composer__send:disabled { background: var(--northloop-surface-subtle); color: var(--northloop-text-disabled); cursor: not-allowed; }

/* ---- Breadcrumb: ancestors of the current page, above its title. The current page is omitted (the title says it);
 * every item is a link and carries a trailing chevron. 5+ ancestors collapse the middle into a "…" menu (.nl-menu).
 * Under 40rem of its own width only the parent remains, as a back link "‹ Parent". ---- */
.nl-breadcrumb { container: nl-breadcrumb / inline-size; font-size: var(--northloop-font-size-secondary); }
.nl-breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--northloop-space-1); margin: 0; padding: 0; list-style: none; }
.nl-breadcrumb__item { position: relative; display: inline-flex; align-items: center; gap: var(--northloop-space-1); min-width: 0; }
.nl-breadcrumb__item::after { content: ''; flex: none; width: 16px; height: 16px; background: var(--northloop-text-muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat; }
.nl-breadcrumb__link { display: inline-flex; align-items: center; min-height: 28px; max-width: 16rem; padding: 0 var(--northloop-space-1); border-radius: var(--northloop-radius-sm); color: var(--northloop-link); font-weight: 600; line-height: 20px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-breadcrumb__link:hover { text-decoration: underline; text-underline-offset: 2px; }
.nl-breadcrumb__more { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; padding: 0 var(--northloop-space-1); border: 0; border-radius: var(--northloop-radius-sm); background: none; color: var(--northloop-link); font: inherit; font-weight: 600; letter-spacing: .08em; cursor: pointer; }
.nl-breadcrumb__more:hover, .nl-breadcrumb__more[aria-expanded='true'] { background: var(--northloop-surface-subtle); }
.nl-breadcrumb__item > .nl-menu { position: absolute; z-index: var(--northloop-z-overlay); top: calc(100% + var(--northloop-space-1)); left: 0; width: auto; min-width: 200px; max-width: 280px; }
@container nl-breadcrumb (max-width: 40rem) {
  .nl-breadcrumb__item:not(:last-child) { display: none; }
  .nl-breadcrumb__item:last-child::after { content: none; }
  .nl-breadcrumb__item:last-child .nl-breadcrumb__link { min-height: 44px; max-width: 100%; gap: var(--northloop-space-1); padding-left: 0; }
  .nl-breadcrumb__item:last-child .nl-breadcrumb__link::before { content: ''; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 6-6 6 6 6'/%3E%3C/svg%3E") center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 6-6 6 6 6'/%3E%3C/svg%3E") center / 16px no-repeat; }
}

/* ------------------------------------------------------------------ page container (NOR-335) */
/*
 * The content area's width. Sidebar and top bar stay outside it: the limit applies to the content only.
 * No page sets its own width. Bare .nl-page behaves as --normal.
 *   --fullscreen  no max-width, no side padding; the screen lays out its own panels (Inbox).
 *   --normal      up to page-width-normal, centred, page-gutter on both sides (Contatos, Contato, Insights, Integrações, Resultados).
 *   --compact     same, up to page-width-compact (Configurações, form and reading pages).
 * max-width is the content width plus 2 × gutter; under 768px the gutter is page-gutter-sm.
 */
.nl-page { box-sizing: border-box; width: 100%; max-width: calc(var(--northloop-page-width-normal) + 2 * var(--northloop-page-gutter)); margin-inline: auto; padding-inline: var(--northloop-page-gutter); }
.nl-page--compact { max-width: calc(var(--northloop-page-width-compact) + 2 * var(--northloop-page-gutter)); }
.nl-page--fullscreen { max-width: none; padding-inline: 0; }
@media (max-width: 48rem) {
  .nl-page { max-width: calc(var(--northloop-page-width-normal) + 2 * var(--northloop-page-gutter-sm)); padding-inline: var(--northloop-page-gutter-sm); }
  .nl-page--compact { max-width: calc(var(--northloop-page-width-compact) + 2 * var(--northloop-page-gutter-sm)); }
  .nl-page--fullscreen { max-width: none; padding-inline: 0; }
}

/* ------------------------------------------------------------------ 1.30.0: avatar tag, stat card, show more, timeline groups, conversation block */
/* Avatar tag: a chip on the avatar's bottom-right corner (channel, or company). 20px up to 55px avatars, 24px from 56px. */
.nl-avatar { position: relative; flex: none; container: nl-avatar / inline-size; }
.nl-avatar__tag { display: grid; place-items: center; position: absolute; right: -2px; bottom: -2px; box-sizing: border-box; width: 20px; height: 20px; border-radius: 50%; background: var(--northloop-surface-raised); border: 1px solid var(--northloop-border); color: var(--northloop-text); }
.nl-avatar__tag svg { width: 12px; height: 12px; }
@container nl-avatar (min-width: 56px) { .nl-avatar__tag { width: 24px; height: 24px; } .nl-avatar__tag svg { width: 14px; height: 14px; } }

/* Stat card: a number that sums up a group. --filter also selects that group in the list below. */
/* Four per row when the group itself is 48rem or wider, two below: the flex-basis switches on the group's width, not the viewport. */
.nl-stats { display: flex; flex-wrap: wrap; gap: var(--northloop-space-3); }
.nl-stats > .nl-stat { flex: 0 0 clamp(calc(25% - 3 * var(--northloop-space-3) / 4), calc((48rem - 100%) * 999), calc(50% - var(--northloop-space-3) / 2)); }
.nl-stat { display: flex; align-items: center; overflow: hidden; gap: var(--northloop-space-3); box-sizing: border-box; min-height: 64px; min-width: 0; padding: var(--northloop-space-3) var(--northloop-space-4); border: 1px solid var(--northloop-border-subtle); border-radius: var(--northloop-radius-lg); background: var(--northloop-surface); color: var(--northloop-text); font: inherit; text-align: left; text-decoration: none; }
.nl-stat__icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: var(--northloop-radius-md); background: var(--northloop-surface-subtle); color: var(--northloop-text-muted); }
.nl-stat__icon svg { width: 18px; height: 18px; }
.nl-stat__icon--success { background: var(--northloop-color-success-soft); color: var(--northloop-color-success); }
.nl-stat__icon--warning { background: var(--northloop-color-warning-soft); color: var(--northloop-color-warning); }
.nl-stat__icon--danger { background: var(--northloop-color-danger-soft); color: var(--northloop-color-danger); }
.nl-stat__icon--info { background: var(--northloop-primary-soft); color: var(--northloop-link); }
.nl-stat__text { display: grid; min-width: 0; }
.nl-stat__value { display: block; font-size: 20px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; }
.nl-stat__label { overflow: hidden; color: var(--northloop-text-muted); font-size: var(--northloop-font-size-caption); text-overflow: ellipsis; white-space: nowrap; }
.nl-stat__value .nl-skeleton { display: block; width: 3ch; height: 20px; margin: 2px 0; }
.nl-stat--filter { cursor: pointer; transition: background var(--northloop-duration-fast) var(--northloop-easing), border-color var(--northloop-duration-fast) var(--northloop-easing); }
.nl-stat--filter:hover { background: var(--northloop-surface-subtle); border-color: var(--northloop-border); }
.nl-stat--filter[aria-current='true'], .nl-stat--filter[aria-pressed='true'] { background: var(--northloop-primary-soft); border-color: var(--northloop-link); }
.nl-stat--filter[aria-current='true'] .nl-stat__label, .nl-stat--filter[aria-pressed='true'] .nl-stat__label { color: var(--northloop-link); font-weight: 600; }
.nl-stat--filter[aria-disabled='true'], .nl-stat--filter[aria-busy='true'] { pointer-events: none; cursor: default; }
.nl-stat--filter[aria-disabled='true']:hover, .nl-stat--filter[aria-busy='true']:hover { background: var(--northloop-surface); border-color: var(--northloop-border-subtle); }

/* Show more: a list shows its first items and reveals the rest in place. Not a replacement for Pagination. */
.nl-show-more { display: flex; align-items: center; margin-top: var(--northloop-space-3); }
.nl-show-more--toggle .nl-btn--text { margin-left: calc(-1 * var(--northloop-space-2)); }
.nl-show-more--load .nl-btn { width: 100%; min-height: 44px; gap: var(--northloop-space-1); }
.nl-show-more__rest { color: var(--northloop-text-muted); font-size: var(--northloop-font-size-caption); font-weight: 400; font-variant-numeric: tabular-nums; }
.nl-show-more__focus:focus { outline: 0; }
.nl-show-more__focus:focus-visible { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: var(--northloop-focus-offset); border-radius: var(--northloop-radius-sm); }

/* Timeline groups: a long history split by month, each month with its own title and list. The rail does not cross the title. */
.nl-timeline-group { display: grid; gap: var(--northloop-space-2); }
.nl-timeline-group + .nl-timeline-group { margin-top: var(--northloop-space-5); }
.nl-timeline-group__title { margin: 0; font-size: var(--northloop-font-size-caption); font-weight: var(--northloop-weight-bold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--northloop-text-muted); }

/* Conversation block: the summary of a conversation inside another card. <div> is read-only; <a> leads to the conversation. */
.nl-conversation-block { display: grid; gap: var(--northloop-space-1); box-sizing: border-box; min-width: 0; padding: var(--northloop-space-2) var(--northloop-space-3); border: 1px solid var(--northloop-border-subtle); border-radius: var(--northloop-radius-md); background: none; color: var(--northloop-text); text-decoration: none; }
.nl-conversation-block__head { display: flex; align-items: center; justify-content: space-between; gap: var(--northloop-space-2); min-width: 0; }
.nl-conversation-block__time { flex: none; color: var(--northloop-text-muted); font-size: var(--northloop-font-size-caption); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nl-conversation-block__line { overflow: hidden; color: var(--northloop-text-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
a.nl-conversation-block { transition: background var(--northloop-duration-fast) var(--northloop-easing), border-color var(--northloop-duration-fast) var(--northloop-easing); }
a.nl-conversation-block:hover { background: var(--northloop-surface-subtle); border-color: var(--northloop-border); }

:where(.nl-stat--filter, a.nl-conversation-block):focus-visible { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: var(--northloop-focus-offset); }
@media (prefers-reduced-motion: reduce) { .nl-stat--filter, a.nl-conversation-block { transition: none; } }

/* ------------------------------------------------------------------ app bar (1.30.0) */
/* Top bar of a detail screen on mobile: back, title, up to one action. Does not replace the shell's top bar. Only below 48rem.
   Sticks at --nl-app-bar-top (default 0, 1.36.0). Only a page whose document scrolls under a fixed banner sets it. */
.nl-app-bar { position: sticky; top: var(--nl-app-bar-top, 0px); z-index: calc(var(--northloop-z-overlay) - 2); display: flex; align-items: center; gap: var(--northloop-space-1); box-sizing: border-box; height: 56px; padding: 0 var(--northloop-space-2) 0 var(--northloop-space-1); border-bottom: 1px solid var(--northloop-border-subtle); background: var(--northloop-surface); color: var(--northloop-text); }
.nl-app-bar:has(+ .nl-app-bar__tabs) { border-bottom: 0; }
.nl-app-bar__back, .nl-app-bar__actions .nl-btn--icon { flex: none; width: 44px; min-height: 44px; height: 44px; color: var(--northloop-text); }
.nl-app-bar__back svg { width: 22px; height: 22px; }
.nl-app-bar__actions .nl-btn--icon svg { width: 20px; height: 20px; }
.nl-app-bar__back:hover:not(:disabled), .nl-app-bar__actions .nl-btn--icon:hover:not(:disabled), .nl-app-bar__actions .nl-btn--icon[aria-expanded='true'] { background: var(--northloop-surface-subtle); }
.nl-app-bar__back:disabled, .nl-app-bar__back[aria-disabled='true'], .nl-app-bar__actions .nl-btn--icon:disabled, .nl-app-bar__actions .nl-btn--icon[aria-disabled='true'] { color: var(--northloop-text-disabled); }
.nl-app-bar__title { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; font-size: 16px; font-weight: 650; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.nl-app-bar__actions { position: relative; display: flex; flex: none; align-items: center; gap: var(--northloop-space-1); }
/* The "Mais ações" menu drops from the bar, aligned right, instead of the mobile bottom sheet. */
.nl-app-bar__actions > .nl-menu { position: absolute; z-index: var(--northloop-z-overlay); top: calc(100% + 6px); right: 0; left: auto; bottom: auto; width: auto; min-width: 200px; max-width: calc(100vw - 2 * var(--northloop-space-2)); max-height: none; padding-bottom: var(--northloop-space-1); }
.nl-app-bar__actions > .nl-menu .nl-menu__item { min-height: 44px; }
.nl-app-bar__tabs { position: sticky; top: calc(var(--nl-app-bar-top, 0px) + 56px); z-index: calc(var(--northloop-z-overlay) - 2); padding: 0 var(--northloop-space-4); border-bottom: 1px solid var(--northloop-border-subtle); background: var(--northloop-surface); }
.nl-app-bar__tabs .nl-tab { min-height: 44px; }
@media (min-width: 48.0625rem) { .nl-app-bar, .nl-app-bar__tabs { display: none; } }

/* ---- 1.32.0: from the Inbox proposals, simplified (CLAUDE.md criteria) ---- */
/* Menu apply footer: last child, sticky, clearing link left, Aplicar right. Replaces the "Limpar filtros" item. */
.nl-menu__footer { position: sticky; bottom: calc(-1 * var(--northloop-space-1)); display: flex; align-items: center; justify-content: space-between; gap: var(--northloop-space-2); margin: var(--northloop-space-1) calc(-1 * var(--northloop-space-1)) calc(-1 * var(--northloop-space-1)); padding: var(--northloop-space-2); border-top: 1px solid var(--northloop-border-subtle); background: inherit; }
.nl-menu__footer .nl-btn { box-sizing: border-box; min-height: 36px; height: 36px; }
.nl-menu__footer .nl-btn--text { color: var(--northloop-text-muted); }
.nl-menu__footer .nl-btn--text:disabled, .nl-menu__footer .nl-btn--text[aria-disabled='true'] { color: var(--northloop-text-disabled); }
@media (max-width: 48rem) { .nl-menu__footer .nl-btn { min-height: 44px; height: 44px; } }
/* Collapsible group label */
button.nl-group-label { width: 100%; min-height: 36px; border: 0; background: none; font-family: inherit; text-align: left; cursor: pointer; border-radius: var(--northloop-radius-md); }
button.nl-group-label:hover { color: var(--northloop-text); }
.nl-group-label__chevron { flex: none; width: 14px; height: 14px; transition: transform var(--northloop-duration-base) var(--northloop-easing-soft); }
button.nl-group-label[aria-expanded='false'] .nl-group-label__chevron { transform: rotate(-90deg); }
/* Toolbar with tabs: tabs scroll, one icon button at the end, one divider under the row. */
.nl-toolbar--tabs { align-items: stretch; gap: var(--northloop-space-2); border-bottom: 1px solid var(--northloop-border-subtle); }
.nl-toolbar--tabs > .nl-tabs { flex: 1; margin-bottom: -1px; overflow-x: auto; scrollbar-width: none; }
.nl-toolbar--tabs .nl-tab { flex: none; white-space: nowrap; }
.nl-toolbar--tabs > .nl-btn--icon { align-self: center; width: 40px; min-height: 40px; }
/* Count on an icon button: same pill as .nl-row-item__count, moved to the corner. */
.nl-btn--icon:has(> .nl-btn__count) { position: relative; background: var(--northloop-surface-subtle); }
.nl-btn__count { top: 0; right: 0; transform: none; min-width: 16px; height: 16px; padding: 0 4px; font-size: 11px; }
/* Removable chip: the whole chip removes the filter. */
.nl-chip--removable svg { flex: none; width: 14px; height: 14px; color: var(--northloop-text-muted); }
.nl-chip--removable:hover svg { color: var(--northloop-text); }
@media (prefers-reduced-motion: reduce) { .nl-group-label__chevron { transition: none; } }

/* ---- Picker (1.43.0; Owner picker since 1.39.0): pick one item from a long searchable list (Responsável, Workspace). .nl-owner-picker* is an alias until products migrate. Was: assign a responsável from a searchable list. Always mounted in an .nl-menu (field popover or the Responsável › submenu), so the sheet and scrim at 48rem and below come from the menu. ---- */
.nl-avatar--xs { width: 24px; height: 24px; font-size: 10px; font-weight: 650; letter-spacing: 0.02em; }
.nl-avatar--none { background: transparent; color: var(--northloop-text-muted); box-shadow: inset 0 0 0 1px var(--northloop-border); }
.nl-picker__trigger, .nl-owner-picker__trigger { display: flex; align-items: center; gap: var(--northloop-space-2); width: 100%; text-align: left; cursor: pointer; }
.nl-picker__value, .nl-owner-picker__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-picker__trigger[data-empty='true'] .nl-picker__value, .nl-owner-picker__trigger[data-empty='true'] .nl-owner-picker__value { color: var(--northloop-text-muted); }
@media (min-width: 48.0625rem) { .nl-menu:has(> .nl-picker), .nl-menu:has(> .nl-owner-picker) { width: 320px; } }
.nl-picker, .nl-owner-picker { display: flex; flex-direction: column; gap: var(--northloop-space-1); min-height: 0; }
.nl-picker__list, .nl-owner-picker__list { display: grid; gap: 2px; max-height: 304px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.nl-picker__list > .nl-eyebrow, .nl-owner-picker__list > .nl-eyebrow { padding: var(--northloop-space-2) var(--northloop-space-2) var(--northloop-space-1); }
.nl-picker__option, .nl-owner-picker__option { display: grid; grid-template-columns: auto minmax(0, 1fr) 16px; align-items: center; gap: var(--northloop-space-3); min-height: 44px; padding: var(--northloop-space-1) var(--northloop-space-2); border-radius: var(--northloop-radius-md); cursor: pointer; }
.nl-picker__option:hover, .nl-owner-picker__option:hover, .nl-picker__option[data-active], .nl-owner-picker__option[data-active] { background: var(--northloop-surface-subtle); }
.nl-picker__option .nl-combobox__title, .nl-owner-picker__option .nl-combobox__title { font-weight: 400; }
.nl-picker__option[aria-selected='true'] .nl-combobox__title, .nl-owner-picker__option[aria-selected='true'] .nl-combobox__title { font-weight: 650; }
.nl-picker__option[aria-selected='true'] > .nl-menu__tick svg, .nl-owner-picker__option[aria-selected='true'] > .nl-menu__tick svg { display: block; }
/* Multiple (1.40.0): box before the avatar, count at the right; the box carries the selection, so the title keeps its weight. */
.nl-picker[data-multiple] .nl-picker__option, .nl-owner-picker[data-multiple] .nl-owner-picker__option { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.nl-picker[data-multiple] .nl-picker__option[aria-selected='true'] .nl-combobox__title, .nl-owner-picker[data-multiple] .nl-owner-picker__option[aria-selected='true'] .nl-combobox__title { font-weight: 400; }

/* ---- Side panel, details (1.41.0): tabs in the header, full-width sections. Lives in a .nl-split; the handle is the divider. ---- */
.nl-split__handle + .nl-panel { border-inline-start: 0; }
.nl-panel__header--tabs { align-items: stretch; padding-block: 0; padding-inline: var(--northloop-space-5) var(--northloop-space-2); }
.nl-panel__header--tabs > .nl-tabs { flex: 1; min-width: 0; }
.nl-panel__header--tabs .nl-tab { display: inline-flex; align-items: center; gap: 6px; }
.nl-panel__header--tabs > .nl-panel__close { align-self: center; }
.nl-tab__dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--northloop-color-danger); }
.nl-panel--details > .nl-panel__body { gap: 0; padding: 0; }
.nl-panel--details .nl-panel__section { padding: var(--northloop-space-5); }
/* Row items as links (buttons are border-box by default): same box and ink as the button rows. */
a.nl-row-item { box-sizing: border-box; color: inherit; text-decoration: none; }
/* Row items in a details section bleed by their padding, so their text lines up with the section title. */
.nl-panel--details .nl-panel__section .nl-row-item { width: auto; margin-inline: calc(-1 * var(--northloop-space-3)); }

/* ---- 1.42.0: Code input (NOR-684), from the CodeInput proposal, simplified. A real <input> over 6 aria-hidden cells, 3 + 3. ---- */
.nl-code { position: relative; width: 100%; max-width: 344px; }
.nl-code__cells { display: flex; gap: var(--northloop-space-2); border-radius: var(--northloop-radius-md); }
.nl-code__cell { position: relative; flex: 1 1 0; min-width: 0; display: grid; place-items: center; box-sizing: border-box; height: 56px; border: 1px solid var(--northloop-border); border-radius: var(--northloop-radius-md); background: var(--northloop-surface); color: var(--northloop-text); font-family: var(--northloop-font-mono); font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1; transition: border-color var(--northloop-duration-base) var(--northloop-easing); }
.nl-code__cell:nth-child(4) { margin-left: var(--northloop-space-2); }
.nl-code__input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; cursor: text; }
.nl-code__input::selection { background: transparent; }
.nl-code:focus-within .nl-code__cell.is-active { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: var(--northloop-focus-offset); }
.nl-code__cell.is-active { border-color: var(--northloop-primary); box-shadow: inset 0 0 0 1px var(--northloop-primary); }
.nl-code__cell.is-active:not(.is-filled)::after { content: ""; width: 2px; height: 26px; border-radius: 1px; background: var(--northloop-text); animation: nl-code-caret 1s steps(1) infinite; }
@keyframes nl-code-caret { 50% { opacity: 0; } }
.nl-code:has(.nl-code__input[aria-invalid="true"]) .nl-code__cell { border-color: var(--northloop-color-danger); }
.nl-code:has(.nl-code__input[aria-invalid="true"]) .nl-code__cell.is-active { box-shadow: inset 0 0 0 1px var(--northloop-color-danger); }
.nl-code:has(.nl-code__input:disabled) .nl-code__cell { background: var(--northloop-surface-subtle); border-color: var(--northloop-border-subtle); color: var(--northloop-text-disabled); }
.nl-code:has(.nl-code__input:disabled) .nl-code__input { cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .nl-code__cell { transition: none; } .nl-code__cell.is-active:not(.is-filled)::after { animation: none; } }

/* ---- 1.43.0: Workspace mark sizes for the Picker (Workspace) ---- */
.nl-ws__mark--xs { width: 24px; height: 24px; font-size: 10px; font-weight: 650; letter-spacing: 0.02em; }
.nl-ws__mark--all { background: transparent; box-shadow: inset 0 0 0 1px var(--northloop-border); }
/* ---- 1.43.0: current destination in a menu ---- */
.nl-menu__item[aria-current='page'] { font-weight: 650; }
/* ---- Account menu (1.43.0): the person, once, at the end of the top bar. Trigger + .nl-menu; the menu's items, keyboard and sheet. ---- */
.nl-account { position: relative; display: inline-flex; }
.nl-account__trigger { gap: var(--northloop-space-2); padding: 0 var(--northloop-space-2) 0 var(--northloop-space-1); }
.nl-account__chevron { flex: none; width: 16px; height: 16px; color: var(--northloop-text-muted); transition: transform var(--northloop-duration-base) var(--northloop-easing); }
.nl-account__trigger[aria-expanded='true'] .nl-account__chevron { transform: rotate(180deg); }
.nl-account__who { display: flex; align-items: center; gap: var(--northloop-space-3); min-width: 0; padding: var(--northloop-space-2) var(--northloop-space-3); }
.nl-account__who > span:last-child { display: grid; min-width: 0; }
.nl-account__who strong, .nl-account__who .nl-caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-account__who strong { font-weight: 650; }
@media (min-width: 48.0625rem) { .nl-account > .nl-menu { position: absolute; z-index: var(--northloop-z-overlay); top: calc(100% + 6px); right: 0; } }
@media (prefers-reduced-motion: reduce) { .nl-account__chevron { transition: none; } }

/* ---- 1.49.0: Lead row, conversation variant (Inbox list), from the LeadRow proposal. ---- */
.nl-row-item--conversation { grid-template-columns: auto minmax(0, 1fr); background: transparent; }
.nl-row-item--conversation:hover { background: var(--northloop-surface-subtle); }
.nl-row-item--conversation[aria-selected='true'] { background: var(--northloop-primary-soft); box-shadow: inset 3px 0 0 var(--northloop-primary); }
.nl-row-item__head { display: flex; align-items: baseline; gap: var(--northloop-space-2); min-width: 0; }
.nl-row-item__head .nl-row-item__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-row-item__time { flex: none; font-size: 12px; color: var(--northloop-text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nl-row-item.has-un .nl-row-item__time { color: var(--northloop-link); font-weight: 650; }
.nl-row-item--conversation .nl-row-item__preview { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.nl-row-item__context { display: flex; flex-wrap: wrap; align-items: center; gap: var(--northloop-space-1) var(--northloop-space-2); min-width: 0; margin-top: 6px; }
.nl-row-item__context .nl-badge { white-space: nowrap; padding: 2px var(--northloop-space-2); gap: 6px; }
.nl-row-item__meta { display: inline-flex; align-items: center; gap: var(--northloop-space-1); font-size: var(--northloop-font-size-caption); line-height: 18px; color: var(--northloop-text-muted); white-space: nowrap; }
.nl-row-item__meta svg { flex: none; width: 12px; height: 12px; }
.nl-row-item__meta + .nl-row-item__meta::before { content: ''; flex: none; width: 3px; height: 3px; margin-right: var(--northloop-space-1); border-radius: 50%; background: currentColor; }

/* ---- 1.49.0: Notifications, from the Notifications proposal. Trigger = nl-btn--icon + nl-btn__count; panel = nl-menu. ---- */
.nl-notifications { position: relative; display: inline-flex; }
.nl-notifications__trigger { width: 44px; min-height: 44px; }
.nl-notifications__trigger svg { width: 22px; height: 22px; }
.nl-notifications > .nl-menu { width: 360px; padding: 0; }
.nl-notifications__header { display: flex; align-items: center; justify-content: space-between; gap: var(--northloop-space-2); min-height: 48px; padding: 0 var(--northloop-space-2) 0 var(--northloop-space-4); border-bottom: 1px solid var(--northloop-border-subtle); }
.nl-notifications__title { margin: 0; font-size: var(--northloop-font-size-label, 14px); font-weight: 650; color: var(--northloop-text); }
.nl-notifications__list { margin: 0; padding: var(--northloop-space-1); list-style: none; max-height: 400px; overflow-y: auto; }
.nl-notifications__item { display: grid; grid-template-columns: 8px minmax(0, 1fr); column-gap: var(--northloop-space-3); align-items: start; box-sizing: border-box; width: 100%; min-height: 44px; padding: var(--northloop-space-3); border-radius: var(--northloop-radius-md); color: var(--northloop-text); text-decoration: none; font-size: 14px; line-height: 1.4; text-wrap: pretty; }
.nl-notifications__item:hover { background: var(--northloop-surface-subtle); }
.nl-notifications__item:focus-visible { outline: var(--northloop-focus-width) solid var(--northloop-focus); outline-offset: calc(-1 * var(--northloop-focus-width)); }
.nl-notifications__dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; }
.nl-notifications__item[data-unread='true'] .nl-notifications__dot { background: var(--northloop-primary); }
.nl-notifications__item[data-unread='true'] .nl-notifications__text { font-weight: 600; }
.nl-notifications__body { display: grid; gap: 2px; min-width: 0; }
.nl-notifications__time { font-size: 12px; color: var(--northloop-text-muted); font-variant-numeric: tabular-nums; }
.nl-notifications__empty { margin: 0; padding: var(--northloop-space-6) var(--northloop-space-4); font-size: 14px; color: var(--northloop-text-muted); text-align: center; }
@media (min-width: 48.0625rem) { .nl-notifications > .nl-menu { position: absolute; z-index: var(--northloop-z-overlay); top: calc(100% + 6px); right: 0; } }
@media (max-width: 48rem) { .nl-notifications > .nl-menu { width: auto; } .nl-notifications__list { max-height: none; } }

/* ------------------------------------------------------------------ table (1.53.0, NOR-882) */
/*
 * Data in rows and columns. Always inside .nl-table-wrap (horizontal scroll and the container query).
 * Under 48rem of the wrap the header hides and each row becomes a block; a cell with data-label shows
 * the label on the left and the value on the right, a cell without it takes the whole line.
 * IDs, dates and tickets use .nl-mono; secondary text and the missing-value dash use .nl-muted.
 */
.nl-table-wrap { container: nl-table / inline-size; overflow-x: auto; }
.nl-table-wrap--framed { border: 1px solid var(--northloop-border-subtle); border-radius: var(--northloop-radius-lg); background: var(--northloop-surface); padding: 0 var(--northloop-space-4); }
.nl-table { width: 100%; border-collapse: collapse; font-size: var(--northloop-font-size-label); color: var(--northloop-text); }
/* Header: same type as .nl-eyebrow. */
.nl-table th { padding: var(--northloop-space-3); vertical-align: bottom; line-height: 16px; text-align: left; font-size: var(--northloop-font-size-caption); font-weight: var(--northloop-weight-bold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--northloop-text-muted); border-bottom: 1px solid var(--northloop-border-subtle); }
.nl-table td { padding: var(--northloop-space-3); vertical-align: top; border-bottom: 1px solid var(--northloop-border-subtle); }
.nl-table th:first-child, .nl-table td:first-child { padding-left: 0; }
.nl-table th:last-child, .nl-table td:last-child { padding-right: 0; }
.nl-table tbody tr:last-child td { border-bottom: 0; }
.nl-table--middle td { vertical-align: middle; }
.nl-table--lead td:first-child { font-weight: 600; }
.nl-table .nl-table__num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nl-table td .nl-mono { white-space: nowrap; }
.nl-table td .nl-caption { display: block; font-weight: 400; }
.nl-table-wrap + .nl-pagination { margin-top: var(--northloop-space-4); }
@container nl-table (max-width: 48rem) {
  .nl-table thead { display: none; }
  .nl-table tr { display: grid; grid-template-columns: minmax(0, 1fr); padding: var(--northloop-space-3) 0; border-bottom: 1px solid var(--northloop-border-subtle); }
  .nl-table tbody tr:last-child { border-bottom: 0; }
  .nl-table td { border: 0; padding: var(--northloop-space-1) 0; }
  .nl-table td[data-label] { display: flex; justify-content: space-between; gap: var(--northloop-space-3); text-align: right; }
  .nl-table td[data-label]::before { content: attr(data-label); color: var(--northloop-text-muted); font-weight: 400; text-align: left; }
  .nl-table--lead td:first-child { padding-bottom: var(--northloop-space-2); }
}

/* ---- Local: used by the app, not in the Design System. Kept until Claude Design confirms it (NOR-827). ---- */
.nl-account__name { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 48rem) { .nl-account__name { display: none; } }
