/* ════════════════════════════════════════════════════════════
   DCNA GARAGE — DT-COMPLIANT SHELL (shared across all pages)
   Pure DT tokens. No Atelier remnants.
   ════════════════════════════════════════════════════════════ */

@import url('mb-trucks-fonts.css');
@import url('mb-trucks-tokens.css');

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

:root {
  /* Pure Blue */
  --pure-blue: #0078D6;
  --pure-blue-bright: #008DFC;
  --pure-blue-700: #005496;
  --pure-blue-800: #013C6B;
  --pure-blue-950: #00182C;

  /* Neutrals */
  --neutral-white: #FFFFFF;
  --neutral-50:  #F2F2F2;
  --neutral-100: #E6E6E6;
  --neutral-200: #CCCCCC;
  --neutral-300: #B3B3B3;
  --neutral-400: #999999;
  --neutral-500: #808080;
  --neutral-600: #666666;
  --neutral-700: #4D4D4D;
  --neutral-800: #373737;
  --neutral-900: #232323;
  --neutral-black: #000000;

  /* Semantic */
  --success: #21A330;
  --warning: #FACC00;
  --error:   #FF4A4A;

  /* Workflow */
  --pending:  var(--warning);
  --parts:    var(--pure-blue);
  --mgr:      #6B4F9E;
  --approved: var(--success);
  --rejected: var(--error);

  /* App-density typography */
  --t-h1: 22px;     --t-h1-lh: 28px;
  --t-h2: 18px;     --t-h2-lh: 24px;
  --t-h3: 14px;     --t-h3-lh: 20px;
  --t-body: 13px;   --t-body-lh: 20px;
  --t-cap:  11px;   --t-cap-lh: 16px;
  --t-mini: 10.5px; --t-mini-lh: 14px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  /* Layout */
  --sidebar-w: 220px;
  --sidebar-w-collapsed: 56px;
  --header-h: 56px;
}

html, body { height: 100%; overflow: hidden; }

body {
  font-family: 'MB Corpo S Text', Arial, Helvetica, sans-serif;
  font-size: var(--t-body);
  line-height: var(--t-body-lh);
  color: var(--neutral-black);
  background: var(--neutral-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ════════════════════════════════════════════════════════════
   SHELL
   ════════════════════════════════════════════════════════════ */
.shell { display: flex; height: 100vh; }

/* ════════════════════════════════════════════════════════════
   SIDEBAR — solid black, per-item color accents on active
   ════════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: #000000;
  color: rgba(255,255,255,0.85);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 200ms cubic-bezier(0.2,0,0,1);
}

/* Collapsed state — auto-slide on hover when not pinned */
.sidebar.collapsed { width: var(--sidebar-w-collapsed); }

.sidebar.collapsed:hover {
  width: var(--sidebar-w);
}

/* When hovering collapsed sidebar, show all text */
.sidebar.collapsed:hover .nav-section,
.sidebar.collapsed:hover .nav-item-label,
.sidebar.collapsed:hover .brand-text,
.sidebar.collapsed:hover .bottom-link > span:not(.bottom-icon),
.sidebar.collapsed:hover .user-info,
.sidebar.collapsed:hover .user-action,
.sidebar.collapsed:hover .nav-badge,
.sidebar.collapsed:hover .chevron { display: initial; }

.sidebar.collapsed:hover .brand,
.sidebar.collapsed:hover .nav-item,
.sidebar.collapsed:hover .bottom-link,
.sidebar.collapsed:hover .user-block {
  justify-content: initial;
  padding-left: 18px;
  padding-right: 18px;
}

.sidebar.collapsed:hover .brand { padding-left: 16px; padding-right: 16px; }

.sidebar.collapsed:hover .brand-star {
  transform: none;
  width: 38px;
  height: 38px;
}

/* When collapsed, hide everything text-based */
.sidebar.collapsed .nav-section,
.sidebar.collapsed .nav-item-label,
.sidebar.collapsed .brand-text,
.sidebar.collapsed .bottom-link > span:not(.bottom-icon),
.sidebar.collapsed .user-info,
.sidebar.collapsed .user-action,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .chevron { display: none; }

.sidebar.collapsed .brand,
.sidebar.collapsed .nav-item,
.sidebar.collapsed .bottom-link,
.sidebar.collapsed .user-block {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

/* Mercedes star spins on expand/collapse */
.sidebar.collapsed .brand-star {
  transform: rotate(360deg);
  width: 30px;
  height: 30px;
}

/* Brand — pronounced star + "DCNA Garage" (italic Garage)
   Height = exactly --header-h (56px) so it aligns with the chrome bar
   bottom border on every page. */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  box-sizing: border-box;
}

.brand-star {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  transition: transform 400ms cubic-bezier(0.2,0,0,1),
              width 200ms cubic-bezier(0.2,0,0,1),
              height 200ms cubic-bezier(0.2,0,0,1);
}

.brand-text { line-height: 1; min-width: 0; }

.brand-name {
  font-family: 'MB Corpo A Title Cond', Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFFFFF;
  white-space: nowrap;
  display: inline-flex;
  gap: 5px;
}

.brand-name .dcna {
  font-style: normal;
}

.brand-name .garage {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* Nav */
.nav-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.nav-section {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  padding: 12px 18px 4px 18px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 18px;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  cursor: pointer;
  transition: background 120ms, color 120ms;
  border-left: 2px solid transparent;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: #FFFFFF;
}

.nav-item.active {
  background: rgba(255,255,255,0.06);
  color: #FFFFFF;
  font-weight: 700;
}

/* Per-item color accent on active state — rail icons get their
   designated color, plus a colored 2px left border. */
.nav-item.active[data-c="gold"]   { border-left-color: #E5A913; }
.nav-item.active[data-c="amber"]  { border-left-color: #F59E0B; }
.nav-item.active[data-c="purple"] { border-left-color: #A855F7; }
.nav-item.active[data-c="blue"]   { border-left-color: #3B82F6; }
.nav-item.active[data-c="pink"]   { border-left-color: #EC4899; }
.nav-item.active[data-c="indigo"] { border-left-color: #6366F1; }

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg { width: 100%; height: 100%; fill: currentColor; }

/* Active icon picks up the data-c color */
.nav-item.active[data-c="gold"]   .nav-icon { color: #E5A913; }
.nav-item.active[data-c="amber"]  .nav-icon { color: #F59E0B; }
.nav-item.active[data-c="purple"] .nav-icon { color: #A855F7; }
.nav-item.active[data-c="blue"]   .nav-icon { color: #3B82F6; }
.nav-item.active[data-c="pink"]   .nav-icon { color: #EC4899; }
.nav-item.active[data-c="indigo"] .nav-icon { color: #6366F1; }

.nav-badge {
  margin-left: auto;
  background: var(--error);
  color: #FFFFFF;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}

/* Sidebar bottom — compact, uses flexbox */
.sidebar-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  position: relative; /* anchor for dropdown menus */
}

.bottom-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 18px;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: color 120ms, background 120ms;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  position: relative;
}

.bottom-link:hover {
  color: #FFFFFF;
  background: rgba(255,255,255,0.04);
}

.bottom-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bottom-icon svg { width: 100%; height: 100%; fill: currentColor; }

.bottom-link .chevron {
  margin-left: auto;
  width: 10px;
  height: 10px;
  opacity: 0.6;
}

/* Dropdown menu (theme switcher, role switcher) */
.menu {
  position: absolute;
  bottom: 100%;
  left: 8px;
  right: 8px;
  background: #1A1D24;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 4px 0;
  margin-bottom: 4px;
  z-index: 100;
  display: none;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.5);
}

.menu.open { display: block; }

.menu-header {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 8px 12px 4px 12px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 100ms;
}

.menu-item:hover { background: rgba(255,255,255,0.08); color: #FFFFFF; }
.menu-item.active { color: #FFFFFF; font-weight: 700; background: rgba(0,141,252,0.18); }

.menu-item .check {
  width: 12px;
  height: 12px;
  margin-left: auto;
  visibility: hidden;
  color: var(--pure-blue-bright);
}

.menu-item.active .check { visibility: visible; }

.menu-header {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 8px 12px 4px 12px;
}

/* User block */
.user-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.user-avatar {
  width: 30px;
  height: 30px;
  background: var(--pure-blue);
  color: #FFFFFF;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-info { line-height: 1.2; min-width: 0; flex: 1; }

.user-name {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 10.5px;
  color: rgba(255,255,255,0.5);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-action {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.user-action:hover { color: #FFFFFF; }
.user-action svg { width: 14px; height: 14px; fill: currentColor; }

/* ════════════════════════════════════════════════════════════
   MAIN
   ════════════════════════════════════════════════════════════ */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--neutral-white);
}

/* Chrome (top header) */
.chrome {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--space-6);
  border-bottom: 1px solid var(--neutral-100);
  gap: var(--space-3);
  flex-shrink: 0;
  background: var(--neutral-white);
}

.chrome-back {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: var(--neutral-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-right: 4px;
}

.chrome-back:hover { color: var(--neutral-black); }
.chrome-back svg { width: 18px; height: 18px; fill: currentColor; }

.chrome-title-block { display: flex; align-items: baseline; gap: 12px; }

.chrome-title {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--neutral-black);
}

.chrome-subtitle {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 12.5px;
  color: var(--neutral-500);
}

.chrome-spacer { flex: 1; }

/* ════════════════════════════════════════════════════════════
   DT SELECT — outlined dropdown per DT spec
   1px border (black on light, white on dark), sharp corners,
   Pure Blue 550 active bg with white text
   ════════════════════════════════════════════════════════════ */
.dt-select {
  position: relative;
  display: inline-block;
}

.dt-select-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--neutral-black);
  background: var(--neutral-white);
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--neutral-black);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 120ms;
  border-radius: 0;
}

.dt-select-trigger:hover {
  border-color: var(--pure-blue);
  color: var(--pure-blue);
}

.dt-select-trigger svg.chevron {
  width: 10px;
  height: 10px;
  fill: currentColor;
  transition: transform 200ms;
}

.dt-select.open .dt-select-trigger svg.chevron {
  transform: rotate(180deg);
}

.dt-select-trigger .badge-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(0,0,0,0.10);
  color: var(--neutral-700);
  padding: 0 5px;
  height: 14px;
  min-width: 14px;
  margin-left: 2px;
}

.dt-select-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 100%;
  background: var(--neutral-white);
  border: 1px solid var(--neutral-black);
  z-index: 200;
  display: none;
  box-shadow: 0 8px 16px rgba(0,0,0,0.10);
}

.dt-select.align-right .dt-select-menu {
  left: auto;
  right: 0;
}

.dt-select.open .dt-select-menu { display: block; }

.dt-select-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--neutral-black);
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  transition: none;
}

.dt-select-item:hover {
  background: var(--pure-blue);
  color: #FFFFFF;
}

.dt-select-item.active {
  background: var(--pure-blue);
  color: #FFFFFF;
}

.dt-select-item .badge-cnt {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(0,0,0,0.08);
  color: var(--neutral-700);
  padding: 0 5px;
  height: 14px;
  min-width: 14px;
}

.dt-select-item:hover .badge-cnt,
.dt-select-item.active .badge-cnt {
  background: rgba(255,255,255,0.22);
  color: #FFFFFF;
}

.dt-select-item .item-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.dt-select-item .item-icon svg { width: 100%; height: 100%; fill: currentColor; }

/* Tabs (chrome-level segmented control) */
.tabs {
  display: flex;
  background: var(--neutral-50);
  padding: 2px;
}

.tab-btn {
  padding: 5px 14px;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--neutral-700);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 120ms;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tab-btn .badge-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(0,0,0,0.08);
  color: var(--neutral-700);
  padding: 0 5px;
  height: 14px;
  min-width: 14px;
}

.tab-btn.active {
  background: var(--pure-blue);
  color: #FFFFFF;
}

.tab-btn.active .badge-cnt {
  background: rgba(255,255,255,0.22);
  color: #FFFFFF;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 14px;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms, color 120ms, border-color 120ms;
  white-space: nowrap;
}

.btn svg { width: 14px; height: 14px; fill: currentColor; }

.btn-primary {
  background: var(--pure-blue);
  color: #FFFFFF;
  border-color: var(--pure-blue);
}
.btn-primary:hover { background: var(--pure-blue-700); border-color: var(--pure-blue-700); }

.btn-outline {
  border-color: var(--neutral-200);
  color: var(--neutral-black);
}
.btn-outline:hover {
  border-color: var(--neutral-black);
  color: var(--neutral-black);
}

.btn-ghost {
  color: var(--neutral-700);
}
.btn-ghost:hover { background: var(--neutral-50); color: var(--neutral-black); }

.btn-sm { height: 28px; padding: 0 10px; font-size: 11px; }

/* Icon buttons */
.icon-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--neutral-600);
  cursor: pointer;
  transition: all 120ms;
  position: relative;
}

.icon-btn:hover { background: var(--neutral-50); color: var(--neutral-black); }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Bell icon gets extra size so the badge sits outside the glyph */
.icon-btn.bell {
  width: 36px;
  height: 36px;
}

.bell-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--error);
  color: #FFFFFF;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 8px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 0 2px var(--neutral-white);
  line-height: 1;
  z-index: 1;
}

html[data-theme="ink"] .bell-badge {
  box-shadow: 0 0 0 2px #14161B;
}

.icon-cluster { display: flex; align-items: center; gap: 2px; }

/* Content */
.content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}

/* ════════════════════════════════════════════════════════════
   CARDS / TILES (used across pages)
   ════════════════════════════════════════════════════════════ */
.card {
  background: var(--neutral-white);
  border: 1px solid var(--neutral-100);
  padding: 16px 18px;
}

.card-padded-md { padding: 14px 16px 0 16px; }
.card-flush { padding: 0; }

.card-title {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neutral-600);
  margin-bottom: 14px;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--neutral-100);
}

.card-title-inline {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neutral-600);
}

/* Hover lift (no border/color override) */
.hover-lift {
  cursor: pointer;
  transition: box-shadow 120ms cubic-bezier(0.2,0,0,1),
              transform 120ms cubic-bezier(0.2,0,0,1);
}

.hover-lift:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  transform: translateY(-1px);
}

.hover-lift:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* Quick action tile */
.qa-tile {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 16px;
  background: var(--neutral-white);
  border: 1px solid var(--neutral-100);
  position: relative;
}

.qa-tile::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}

.qa-tile[data-c="blue"]::before   { background: var(--pure-blue); }
.qa-tile[data-c="green"]::before  { background: var(--success); }
.qa-tile[data-c="purple"]::before { background: #6B4F9E; }
.qa-tile[data-c="amber"]::before  { background: var(--warning); }

.qa-icon-wrap {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qa-icon-wrap svg { width: 22px; height: 22px; }

.qa-tile[data-c="blue"]   .qa-icon-wrap { background: rgba(0,120,214,0.10); }
.qa-tile[data-c="blue"]   .qa-icon-wrap svg { fill: var(--pure-blue); }
.qa-tile[data-c="green"]  .qa-icon-wrap { background: rgba(33,163,48,0.10); }
.qa-tile[data-c="green"]  .qa-icon-wrap svg { fill: var(--success); }
.qa-tile[data-c="purple"] .qa-icon-wrap { background: rgba(107,79,158,0.10); }
.qa-tile[data-c="purple"] .qa-icon-wrap svg { fill: #6B4F9E; }
.qa-tile[data-c="amber"]  .qa-icon-wrap { background: rgba(250,204,0,0.14); }
.qa-tile[data-c="amber"]  .qa-icon-wrap svg { fill: #B47F00; }

.qa-label {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--neutral-black);
}

/* KPI card */
.kpi-card { padding: 14px 16px 0 16px; overflow: hidden; }

.kpi-label {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neutral-600);
  margin-bottom: 8px;
}

.kpi-value {
  font-family: 'MB Corpo S Title Cond', Arial, sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--neutral-black);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.kpi-suffix {
  font-family: 'MB Corpo S Text', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--neutral-400);
  text-transform: none;
}

.kpi-trend {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kpi-trend.up    { color: var(--success); }
.kpi-trend.down  { color: var(--error); }
.kpi-trend.neutral { color: var(--neutral-500); }

/* Inline sparkline inside KPI cards (positioned right of value or trend) */
.kpi-spark {
  display: block;
  margin-top: -4px;
  margin-bottom: 8px;
  width: 100%;
  height: 28px;
}

.kpi-spark polyline { fill: none; stroke-width: 1.5; }
.kpi-spark .area { fill: currentColor; opacity: 0.10; stroke: none; }

.kpi-spark.up { color: var(--success); }
.kpi-spark.down { color: var(--error); }
.kpi-spark.amber { color: var(--warning); }
.kpi-spark.blue { color: var(--pure-blue); }
.kpi-spark.gray { color: var(--neutral-400); }

.kpi-bar { margin: 0 -16px; height: 3px; }
.kpi-bar.green  { background: linear-gradient(90deg, var(--success) 0%, rgba(33,163,48,0.2) 100%); }
.kpi-bar.red    { background: linear-gradient(90deg, var(--error)   0%, rgba(255,74,74,0.2) 100%); }
.kpi-bar.amber  { background: linear-gradient(90deg, var(--warning) 0%, rgba(250,204,0,0.2) 100%); }
.kpi-bar.gray   { background: linear-gradient(90deg, var(--neutral-400) 0%, rgba(153,153,153,0.2) 100%); }
.kpi-bar.blue   { background: linear-gradient(90deg, var(--pure-blue) 0%, rgba(0,120,214,0.2) 100%); }

/* ════════════════════════════════════════════════════════════
   GRIDS
   ════════════════════════════════════════════════════════════ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.grid-2-3 { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-3); }

.stack-3 { display: flex; flex-direction: column; gap: var(--space-3); }
.stack-6 { display: flex; flex-direction: column; gap: var(--space-6); }

.mb-6 { margin-bottom: var(--space-6); }
.mb-3 { margin-bottom: var(--space-3); }

/* ════════════════════════════════════════════════════════════
   TABLES
   ════════════════════════════════════════════════════════════ */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'MB Corpo S Text', sans-serif;
}

thead tr { background: var(--neutral-50); }

th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neutral-600);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--neutral-100);
  white-space: nowrap;
}

th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--neutral-black); }
th.sorted::after { content: ' ▲'; font-size: 8px; }
th.sorted.desc::after { content: ' ▼'; }

td {
  font-size: 12.5px;
  color: var(--neutral-700);
  padding: 11px 14px;
  border-bottom: 1px solid var(--neutral-50);
  vertical-align: middle;
}

tbody tr {
  cursor: pointer;
  transition: background 100ms;
}

tbody tr:hover { background: rgba(0,120,214,0.03); }
tbody tr:last-child td { border-bottom: none; }

td.mono {
  font-family: 'IBM Plex Mono', 'SF Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--pure-blue);
}

td.mono-vin {
  font-family: 'IBM Plex Mono', 'SF Mono', monospace;
  font-size: 11px;
  color: var(--neutral-500);
}

td.amount {
  font-family: 'IBM Plex Mono', 'SF Mono', monospace;
  font-weight: 700;
  color: var(--neutral-black);
}

td.title-cell { color: var(--neutral-black); }

td.numeric {
  font-family: 'IBM Plex Mono', 'SF Mono', monospace;
  text-align: right;
  font-weight: 600;
}

td.actions { text-align: right; white-space: nowrap; }

td.actions .icon-btn { display: inline-flex; }

td.checkbox-cell { width: 36px; padding: 11px 6px 11px 14px; }

input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--pure-blue);
  cursor: pointer;
}

/* ════════════════════════════════════════════════════════════
   PILLS / BADGES
   ════════════════════════════════════════════════════════════ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 12px;
  height: 22px;
  white-space: nowrap;
}

.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pill-pending  { background: rgba(250,204,0,0.18);  color: #8A6900; }
.pill-pending::before  { background: var(--warning); }
.pill-parts    { background: rgba(0,120,214,0.10);  color: var(--pure-blue-700); }
.pill-parts::before    { background: var(--pure-blue); }
.pill-mgr      { background: rgba(107,79,158,0.10); color: #5A3F88; }
.pill-mgr::before      { background: #6B4F9E; }
.pill-approved { background: rgba(33,163,48,0.10);  color: #1A8225; }
.pill-approved::before { background: var(--success); }
.pill-rejected { background: rgba(255,74,74,0.10);  color: #C92020; }
.pill-rejected::before { background: var(--error); }
.pill-open     { background: rgba(0,120,214,0.10);  color: var(--pure-blue-700); }
.pill-open::before     { background: var(--pure-blue); }
.pill-progress { background: rgba(250,204,0,0.18);  color: #8A6900; }
.pill-progress::before { background: var(--warning); }
.pill-resolved { background: rgba(33,163,48,0.10);  color: #1A8225; }
.pill-resolved::before { background: var(--success); }
.pill-closed   { background: var(--neutral-100);    color: var(--neutral-700); }
.pill-closed::before   { background: var(--neutral-500); }
.pill-waiting  { background: rgba(255,140,0,0.14);  color: #B45309; }
.pill-waiting::before  { background: #FF8C00; }

.priority-pill {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 10px;
  height: 18px;
  white-space: nowrap;
}

.priority-low      { background: var(--neutral-100); color: var(--neutral-700); }
.priority-medium   { background: rgba(250,204,0,0.18); color: #8A6900; }
.priority-high     { background: rgba(255,140,0,0.14); color: #B45309; }
.priority-critical { background: rgba(255,74,74,0.14); color: #C92020; }

.type-tag {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--neutral-100);
  color: var(--neutral-700);
  height: 18px;
  border-radius: 0;
  margin-right: 6px;
}

.type-tag.cd {
  background: rgba(255,74,74,0.14);
  color: #C92020;
}

/* ════════════════════════════════════════════════════════════
   TOOLBAR (above tables)
   ════════════════════════════════════════════════════════════ */
.toolbar {
  display: flex;
  align-items: center;
  padding: 12px 0;
  gap: var(--space-3);
}

.search-input {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-white);
  width: 280px;
  transition: border-color 120ms;
}

.search-input:focus-within { border-color: var(--pure-blue); }

.search-input svg { width: 14px; height: 14px; fill: var(--neutral-500); flex-shrink: 0; }

.search-input input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 12.5px;
  background: transparent;
  color: var(--neutral-black);
}

.search-input input::placeholder { color: var(--neutral-400); }

.view-toggle {
  display: flex;
  border: 1px solid var(--neutral-200);
}

.view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--neutral-white);
  color: var(--neutral-600);
  border: none;
  cursor: pointer;
  transition: all 120ms;
}

.view-toggle button + button { border-left: 1px solid var(--neutral-200); }
.view-toggle button.active { background: var(--neutral-black); color: #FFFFFF; }
.view-toggle button svg { width: 13px; height: 13px; fill: currentColor; }

/* Filter chip */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px dashed var(--neutral-300);
  background: var(--neutral-white);
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--neutral-700);
  cursor: pointer;
  transition: all 120ms;
}

.filter-chip:hover {
  border-color: var(--pure-blue);
  border-style: solid;
  color: var(--pure-blue);
}

.filter-chip svg { width: 12px; height: 12px; fill: currentColor; }

/* ════════════════════════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--neutral-100);
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11.5px;
  color: var(--neutral-600);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination select {
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-white);
  font-family: inherit;
  font-size: 11.5px;
}

.pagination-arrow {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--neutral-200);
  cursor: pointer;
  color: var(--neutral-600);
  transition: all 120ms;
}

.pagination-arrow:hover:not(:disabled) {
  border-color: var(--pure-blue);
  color: var(--pure-blue);
}

.pagination-arrow:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination-arrow svg { width: 12px; height: 12px; fill: currentColor; }

/* ════════════════════════════════════════════════════════════
   CHARTS / DONUT / BARS
   ════════════════════════════════════════════════════════════ */
.donut-wrap { display: flex; align-items: center; gap: 18px; }

.donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  background: conic-gradient(
    var(--error)   0% 11%,
    var(--warning) 11% 39%,
    var(--pure-blue) 39% 61%,
    var(--success) 61% 100%
  );
}

.donut::after {
  content: '';
  position: absolute;
  inset: 24px;
  background: var(--neutral-white);
  border-radius: 50%;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.donut-num {
  font-family: 'MB Corpo S Title Cond', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--neutral-black);
  text-transform: uppercase;
}

.donut-cap {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-top: 3px;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 12px;
  color: var(--neutral-700);
}

.lg-dot { width: 8px; height: 8px; flex-shrink: 0; }
.lg-count { color: var(--neutral-500); font-weight: 700; }

/* Bar chart */
.bar-chart { display: flex; flex-direction: column; gap: 9px; }

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11.5px;
}

.bar-label {
  width: 90px;
  text-align: left;
  color: var(--neutral-700);
  flex-shrink: 0;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.bar-track { flex: 1; height: 6px; background: var(--neutral-50); overflow: hidden; }
.bar-fill { height: 100%; }

.bar-value {
  width: 18px;
  text-align: right;
  font-weight: 700;
  color: var(--neutral-black);
  flex-shrink: 0;
  font-family: 'MB Corpo S Title Cond', sans-serif;
}

/* Sparkline placeholder */
.sparkline {
  width: 60px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

/* Lifecycle progress bar (Case status pipeline) */
.lifecycle-bar {
  width: 120px;
  height: 4px;
  background: var(--neutral-50);
  display: block;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}

.lifecycle-fill {
  height: 100%;
  background: linear-gradient(to right,
    var(--pure-blue) 0%,
    var(--pure-blue) var(--p, 50%),
    var(--neutral-50) var(--p, 50%));
}

.lifecycle-fill.warn { background: linear-gradient(to right, var(--pure-blue) 0%, var(--warning) var(--p, 50%), var(--neutral-50) var(--p, 50%)); }
.lifecycle-fill.done { background: linear-gradient(to right, var(--success) 0%, var(--success) var(--p, 100%), var(--neutral-50) var(--p, 100%)); }

html[data-theme="ink"] .lifecycle-bar { background: rgba(255,255,255,0.06); }
html[data-theme="ink"] .lifecycle-fill { background: linear-gradient(to right, var(--pure-blue-bright) 0%, var(--pure-blue-bright) var(--p, 50%), rgba(255,255,255,0.06) var(--p, 50%)); }
html[data-theme="ink"] .lifecycle-fill.warn { background: linear-gradient(to right, var(--pure-blue-bright) 0%, var(--warning) var(--p, 50%), rgba(255,255,255,0.06) var(--p, 50%)); }
html[data-theme="ink"] .lifecycle-fill.done { background: linear-gradient(to right, var(--success) 0%, var(--success) var(--p, 100%), rgba(255,255,255,0.06) var(--p, 100%)); }

.lifecycle-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
}

.lifecycle-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--neutral-500);
  font-size: 10.5px;
}

.lifecycle-stage {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
}

.lifecycle-stage::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pure-blue);
}

.lifecycle-stage.warn::before { background: var(--warning); }
.lifecycle-stage.done::before { background: var(--success); }
.lifecycle-stage.error::before { background: var(--error); }

/* ════════════════════════════════════════════════════════════
   EMPTY STATES
   ════════════════════════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.empty-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  fill: var(--neutral-300);
}

.empty-title {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--neutral-black);
  margin-bottom: 4px;
}

.empty-sub {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 12.5px;
  color: var(--neutral-500);
  margin-bottom: 16px;
}

.empty-actions { display: flex; gap: 8px; justify-content: center; }

/* ════════════════════════════════════════════════════════════
   KANBAN BOARD
   ════════════════════════════════════════════════════════════ */
.kanban {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}

.kanban-col {
  background: var(--neutral-50);
  padding: 12px;
}

.kanban-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kanban-title {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neutral-600);
}

.kanban-count {
  font-family: 'MB Corpo S Title Cond', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--neutral-black);
}

.kanban-cards { display: flex; flex-direction: column; gap: 8px; }

.kanban-card {
  background: var(--neutral-white);
  border: 1px solid var(--neutral-100);
  padding: 10px 12px;
  cursor: pointer;
  transition: box-shadow 120ms, transform 120ms;
}

.kanban-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}

.kanban-tags {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
  align-items: center;
}

.kanban-card-title {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--neutral-black);
  margin-bottom: 6px;
  line-height: 1.3;
}

.kanban-card-meta {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11px;
  color: var(--neutral-500);
}

/* ════════════════════════════════════════════════════════════
   WORKBENCH HEADER
   ════════════════════════════════════════════════════════════ */
.workbench-header {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--space-6);
  border-bottom: 1px solid var(--neutral-100);
  gap: 8px;
  flex-shrink: 0;
}

.workbench-title-block { display: flex; flex-direction: column; gap: 2px; }
.workbench-title-block .chrome-subtitle { font-size: 11.5px; }

.workbench-actions { display: flex; align-items: center; gap: 4px; }

.divider { width: 1px; height: 20px; background: var(--neutral-200); margin: 0 4px; }

/* ════════════════════════════════════════════════════════════
   "VIEW ALL" LINK
   ════════════════════════════════════════════════════════════ */
.view-all {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pure-blue);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.view-all:hover { color: var(--pure-blue-700); }

/* ════════════════════════════════════════════════════════════
   ALERTS / WHATS NEW
   ════════════════════════════════════════════════════════════ */
.alert-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  text-align: center;
}

.alert-bell-svg {
  width: 36px;
  height: 36px;
  fill: var(--neutral-300);
  margin-bottom: 10px;
}

.alert-msg {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--neutral-black);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.alert-sub {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11.5px;
  color: var(--neutral-500);
  margin-top: 2px;
}

.wn-version { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

.wn-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0,120,214,0.10);
  color: var(--pure-blue);
  height: 22px;
  border-radius: 11px;
}

.wn-tag svg { width: 11px; height: 11px; fill: currentColor; }

.wn-close {
  width: 22px;
  height: 22px;
  background: none;
  border: none;
  color: var(--neutral-500);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wn-close:hover { color: var(--neutral-black); }

.wn-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.wn-list li {
  display: flex;
  gap: 10px;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 12px;
  color: var(--neutral-700);
  line-height: 1.45;
  padding-left: 12px;
  position: relative;
}

.wn-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  background: var(--pure-blue);
}

.wn-link {
  display: inline-block;
  margin-top: 12px;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pure-blue);
  text-decoration: none;
}

.wn-link:hover { color: var(--pure-blue-700); }

/* ════════════════════════════════════════════════════════════
   CHROME ICON MENUS (notifications, help, watch)
   ════════════════════════════════════════════════════════════ */

.chrome-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 340px;
  background: var(--neutral-white);
  border: 1px solid var(--neutral-100);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 300;
  display: none;
}

.chrome-menu.open { display: block; }
.chrome-menu.narrow { width: 240px; }

/* ── Notification slide-in panel ── */
.notif-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: var(--neutral-white);
  border-left: 1px solid var(--neutral-100);
  box-shadow: -8px 0 24px rgba(0,0,0,0.10);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transition: right 250ms cubic-bezier(0.2,0,0,1);
}

.notif-panel.open { right: 0; }

html[data-theme="ink"] .notif-panel {
  background: #1C1F26;
  border-left-color: rgba(255,255,255,0.08);
  box-shadow: -8px 0 24px rgba(0,0,0,0.40);
}

.notif-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--neutral-100);
  flex-shrink: 0;
}

html[data-theme="ink"] .notif-panel-header { border-bottom-color: rgba(255,255,255,0.06); }

.notif-panel-title {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--neutral-black);
}

html[data-theme="ink"] .notif-panel-title { color: #FFFFFF; }

.notif-panel-badge {
  background: var(--error);
  color: #FFFFFF;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.notif-panel-mark {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--neutral-700);
  background: none;
  border: 1px solid var(--neutral-200);
  padding: 5px 12px;
  cursor: pointer;
}

.notif-panel-mark:hover { border-color: var(--pure-blue); color: var(--pure-blue); }
html[data-theme="ink"] .notif-panel-mark { border-color: rgba(255,255,255,0.16); color: rgba(255,255,255,0.78); }

.notif-panel-close {
  background: none;
  border: none;
  color: var(--neutral-500);
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.notif-panel-close:hover { color: var(--neutral-black); }
html[data-theme="ink"] .notif-panel-close:hover { color: #FFFFFF; }
.notif-panel-close svg { width: 16px; height: 16px; fill: currentColor; }

/* Notif tabs */
.notif-tabs {
  display: flex;
  gap: 0;
  padding: 0 18px;
  border-bottom: 1px solid var(--neutral-100);
  flex-shrink: 0;
}

html[data-theme="ink"] .notif-tabs { border-bottom-color: rgba(255,255,255,0.06); }

.notif-tab {
  padding: 10px 14px;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-500);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.notif-tab:hover { color: var(--neutral-black); }
.notif-tab.active { color: var(--neutral-black); border-bottom-color: var(--neutral-black); font-weight: 700; }
html[data-theme="ink"] .notif-tab:hover { color: #FFFFFF; }
html[data-theme="ink"] .notif-tab.active { color: #FFFFFF; border-bottom-color: #FFFFFF; }

.notif-tab-cnt {
  font-size: 10px;
  color: var(--neutral-500);
  margin-left: 3px;
}

/* Notif list */
.notif-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.notif-group-header {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neutral-500);
  padding: 14px 18px 6px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-group-cnt {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--neutral-400);
}

.notif-panel-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 100ms;
  border-bottom: 1px solid var(--neutral-50);
}

.notif-panel-item:hover { background: rgba(0,120,214,0.03); }
html[data-theme="ink"] .notif-panel-item { border-bottom-color: rgba(255,255,255,0.04); }
html[data-theme="ink"] .notif-panel-item:hover { background: rgba(0,141,252,0.06); }

.notif-type-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.notif-type-dot.amber { background: #F59E0B; }
.notif-type-dot.blue { background: var(--pure-blue); }
.notif-type-dot.green { background: var(--success); }
.notif-type-dot.red { background: var(--error); }

.notif-panel-body { flex: 1; min-width: 0; }

.notif-panel-title-text {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--neutral-black);
  margin-bottom: 3px;
}

html[data-theme="ink"] .notif-panel-title-text { color: #FFFFFF; }

.notif-panel-desc {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 12px;
  color: var(--neutral-600);
  margin-bottom: 3px;
  line-height: 1.4;
}

html[data-theme="ink"] .notif-panel-desc { color: rgba(255,255,255,0.65); }

.notif-panel-time {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11px;
  color: var(--neutral-400);
}

.notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pure-blue);
  margin-top: 6px;
  flex-shrink: 0;
}

html[data-theme="ink"] .notif-unread-dot { background: var(--pure-blue-bright); }

.notif-panel-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--neutral-100);
  text-align: center;
  flex-shrink: 0;
}

html[data-theme="ink"] .notif-panel-footer { border-top-color: rgba(255,255,255,0.06); }

/* Backdrop */
.panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.30);
  z-index: 399;
  display: none;
}

.panel-backdrop.open { display: block; }

/* ── Feedback Modal ── */
.feedback-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.50);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
}

.feedback-modal-backdrop.open { display: flex; }

.feedback-modal {
  width: 480px;
  background: var(--neutral-white);
  border: 1px solid var(--neutral-100);
  box-shadow: 0 16px 48px rgba(0,0,0,0.20);
  padding: 24px;
}

html[data-theme="ink"] .feedback-modal {
  background: #1C1F26;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 16px 48px rgba(0,0,0,0.50);
}

.feedback-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.feedback-title {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--neutral-black);
}

html[data-theme="ink"] .feedback-title { color: #FFFFFF; }

.feedback-sub {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 12.5px;
  color: var(--neutral-500);
  margin-top: 2px;
}

.feedback-close {
  background: none;
  border: none;
  color: var(--neutral-500);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-close:hover { color: var(--neutral-black); }
html[data-theme="ink"] .feedback-close:hover { color: #FFFFFF; }
.feedback-close svg { width: 18px; height: 18px; fill: currentColor; }

.feedback-types {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.feedback-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-white);
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-700);
  cursor: pointer;
  flex: 1;
  justify-content: center;
  transition: all 120ms;
}

.feedback-type:hover { border-color: var(--pure-blue); }
.feedback-type.active { border-color: var(--pure-blue); background: rgba(0,120,214,0.06); color: var(--pure-blue); }

html[data-theme="ink"] .feedback-type { background: transparent; border-color: rgba(255,255,255,0.16); color: rgba(255,255,255,0.78); }
html[data-theme="ink"] .feedback-type.active { border-color: var(--pure-blue-bright); background: rgba(0,141,252,0.10); color: var(--pure-blue-bright); }

.feedback-type svg { width: 16px; height: 16px; fill: currentColor; }

.feedback-label {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--neutral-500);
  margin-bottom: 8px;
}

.feedback-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-white);
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 13px;
  color: var(--neutral-black);
  resize: vertical;
  outline: none;
  margin-bottom: 16px;
}

.feedback-textarea:focus { border-color: var(--pure-blue); }
.feedback-textarea::placeholder { color: var(--neutral-400); }

html[data-theme="ink"] .feedback-textarea {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.16);
  color: #FFFFFF;
}

.severity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.severity-btn {
  padding: 6px 16px;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-white);
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-700);
  cursor: pointer;
  transition: all 120ms;
}

.severity-btn:hover { border-color: var(--neutral-black); }

/* Severity-specific active colors */
.severity-btn.active[data-sev="low"]    { border-color: var(--success); background: rgba(33,163,48,0.08);  color: var(--success); }
.severity-btn.active[data-sev="medium"] { border-color: #F59E0B;       background: rgba(245,158,11,0.08); color: #D97706; }
.severity-btn.active[data-sev="high"]   { border-color: var(--error);   background: rgba(255,74,74,0.08);  color: var(--error); }

html[data-theme="ink"] .severity-btn { background: transparent; border-color: rgba(255,255,255,0.16); color: rgba(255,255,255,0.78); }
html[data-theme="ink"] .severity-btn.active[data-sev="low"]    { border-color: #5DD068; background: rgba(33,163,48,0.14);  color: #5DD068; }
html[data-theme="ink"] .severity-btn.active[data-sev="medium"] { border-color: #FACC00; background: rgba(250,204,0,0.12);  color: #FACC00; }
html[data-theme="ink"] .severity-btn.active[data-sev="high"]   { border-color: #FF8B8B; background: rgba(255,74,74,0.14);  color: #FF8B8B; }

.feedback-submit {
  width: 100%;
  height: 44px;
  background: var(--neutral-black);
  color: var(--neutral-white);
  border: none;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.feedback-submit:hover { background: var(--pure-blue); }
.feedback-submit svg { width: 16px; height: 16px; fill: currentColor; }

html[data-theme="ink"] .feedback-submit { background: rgba(255,255,255,0.10); }
html[data-theme="ink"] .feedback-submit:hover { background: var(--pure-blue); }

.feedback-diagnostics {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11px;
  color: var(--neutral-400);
  text-align: center;
  line-height: 1.4;
}

html[data-theme="ink"] .chrome-menu {
  background: #1C1F26;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.40);
}

.chrome-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--neutral-100);
}

html[data-theme="ink"] .chrome-menu-header { border-bottom-color: rgba(255,255,255,0.06); }

.chrome-menu-title {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--neutral-700);
}

html[data-theme="ink"] .chrome-menu-title { color: rgba(255,255,255,0.78); }

.chrome-menu-link {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--pure-blue);
  background: none;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

html[data-theme="ink"] .chrome-menu-link { color: var(--pure-blue-bright); }

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--neutral-50);
  cursor: pointer;
  transition: background 100ms;
}

.notif-item:hover { background: rgba(0,120,214,0.04); }
.notif-item:last-child { border-bottom: none; }

html[data-theme="ink"] .notif-item { border-bottom-color: rgba(255,255,255,0.04); }
html[data-theme="ink"] .notif-item:hover { background: rgba(0,141,252,0.06); }

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.notif-dot.unread { background: var(--pure-blue); }
.notif-dot.read { background: var(--neutral-200); }
html[data-theme="ink"] .notif-dot.read { background: rgba(255,255,255,0.16); }

.notif-body { flex: 1; min-width: 0; }

.notif-text {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 12.5px;
  color: var(--neutral-black);
  line-height: 1.4;
  margin-bottom: 2px;
}

html[data-theme="ink"] .notif-text { color: #FFFFFF; }

.notif-time {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 10.5px;
  color: var(--neutral-500);
}

/* Help menu items */
.help-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 13px;
  color: var(--neutral-700);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 100ms;
}

.help-item:hover { background: rgba(0,120,214,0.06); color: var(--neutral-black); }

html[data-theme="ink"] .help-item { color: rgba(255,255,255,0.78); }
html[data-theme="ink"] .help-item:hover { background: rgba(0,141,252,0.08); color: #FFFFFF; }

.help-item svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; opacity: 0.65; }

.help-separator {
  height: 1px;
  background: var(--neutral-100);
  margin: 4px 0;
}

html[data-theme="ink"] .help-separator { background: rgba(255,255,255,0.06); }

/* Watch toggle state */
.icon-btn.watching {
  color: var(--pure-blue);
  background: rgba(0,120,214,0.08);
}

html[data-theme="ink"] .icon-btn.watching {
  color: var(--pure-blue-bright);
  background: rgba(0,141,252,0.14);
}

/* ════════════════════════════════════════════════════════════
   SPOTLIGHT SEARCH (Cmd+K)
   ════════════════════════════════════════════════════════════ */
.spotlight-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.50);
  z-index: 600;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
}
.spotlight-backdrop.open { display: flex; }
.spotlight {
  width: 560px;
  background: var(--neutral-white);
  border: 1px solid var(--neutral-100);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}
html[data-theme="ink"] .spotlight { background: #1C1F26; border-color: rgba(255,255,255,0.08); }
.spotlight-input-row {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--neutral-100);
}
html[data-theme="ink"] .spotlight-input-row { border-bottom-color: rgba(255,255,255,0.06); }
.spotlight-input-row svg { width: 18px; height: 18px; fill: var(--neutral-500); flex-shrink: 0; }
.spotlight-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: 'MB Corpo S Text', sans-serif; font-size: 15px;
  color: var(--neutral-black);
}
html[data-theme="ink"] .spotlight-input { color: #FFFFFF; }
.spotlight-input::placeholder { color: var(--neutral-400); }
.spotlight-kbd {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700;
  color: var(--neutral-500); background: var(--neutral-50); padding: 2px 6px;
  border: 1px solid var(--neutral-200);
}
html[data-theme="ink"] .spotlight-kbd { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.spotlight-results { max-height: 320px; overflow-y: auto; }
.spotlight-group {
  font-family: 'MB Corpo S Text', sans-serif; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--neutral-500); padding: 10px 18px 4px 18px;
}
.spotlight-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; cursor: pointer; transition: background 80ms;
}
.spotlight-item:hover { background: rgba(0,120,214,0.06); }
html[data-theme="ink"] .spotlight-item:hover { background: rgba(0,141,252,0.08); }
.spotlight-item-icon { width: 16px; height: 16px; fill: var(--neutral-500); flex-shrink: 0; }
.spotlight-item-text { flex: 1; font-family: 'MB Corpo S Text'; font-size: 13px; color: var(--neutral-black); }
html[data-theme="ink"] .spotlight-item-text { color: #FFFFFF; }
.spotlight-item-meta { font-family: 'MB Corpo S Text'; font-size: 11px; color: var(--neutral-500); }
.spotlight-footer {
  padding: 10px 18px; border-top: 1px solid var(--neutral-100);
  font-family: 'MB Corpo S Text'; font-size: 11px; color: var(--neutral-400);
  display: flex; gap: 16px;
}
html[data-theme="ink"] .spotlight-footer { border-top-color: rgba(255,255,255,0.06); }

/* GlobalFloatingAI — circular FAB with glow ring */
.floating-ai {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--neutral-900);
  color: var(--pure-blue-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 350;
  border: none;
  box-shadow: 0 0 0 3px rgba(0,141,252,0.25), 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 150ms, box-shadow 150ms;
}

.floating-ai:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(0,141,252,0.40), 0 6px 18px rgba(0,0,0,0.30);
}

.floating-ai svg { width: 20px; height: 20px; fill: currentColor; }

html[data-theme="ink"] .floating-ai {
  background: #1C1F26;
  box-shadow: 0 0 0 3px rgba(0,141,252,0.30), 0 4px 12px rgba(0,0,0,0.40);
}

/* ── AI Chat Panel (expands from FAB) ── */
.ai-chat-panel {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 380px;
  height: 480px;
  background: var(--neutral-white);
  border: 1px solid var(--neutral-100);
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
  z-index: 351;
  display: none;
  flex-direction: column;
  border-radius: 0;
}

.ai-chat-panel.open { display: flex; }

html[data-theme="ink"] .ai-chat-panel {
  background: #1C1F26;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 12px 36px rgba(0,0,0,0.50);
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--neutral-100);
  flex-shrink: 0;
}

html[data-theme="ink"] .ai-chat-header { border-bottom-color: rgba(255,255,255,0.06); }

.ai-chat-header-title {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--neutral-black);
  flex: 1;
}

html[data-theme="ink"] .ai-chat-header-title { color: #FFFFFF; }

.ai-chat-context {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 10.5px;
  color: var(--pure-blue);
  padding: 6px 14px;
  background: rgba(0,120,214,0.04);
  border-bottom: 1px solid var(--neutral-100);
  flex-shrink: 0;
}

html[data-theme="ink"] .ai-chat-context {
  color: var(--pure-blue-bright);
  background: rgba(0,141,252,0.06);
  border-bottom-color: rgba(255,255,255,0.06);
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-msg {
  max-width: 90%;
  padding: 10px 12px;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
}

.ai-msg.bot {
  background: rgba(0,120,214,0.06);
  border: 1px solid rgba(0,120,214,0.10);
  color: var(--neutral-700);
  align-self: flex-start;
}

.ai-msg.user {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-100);
  color: var(--neutral-700);
  align-self: flex-end;
}

html[data-theme="ink"] .ai-msg.bot { background: rgba(0,141,252,0.08); border-color: rgba(0,141,252,0.12); color: rgba(255,255,255,0.85); }
html[data-theme="ink"] .ai-msg.user { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); }

.ai-chat-input {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--neutral-100);
  flex-shrink: 0;
}

html[data-theme="ink"] .ai-chat-input { border-top-color: rgba(255,255,255,0.06); }

.ai-chat-input input {
  flex: 1;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-white);
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 12.5px;
  color: var(--neutral-black);
  outline: none;
}

.ai-chat-input input:focus { border-color: var(--pure-blue); }
.ai-chat-input input::placeholder { color: var(--neutral-400); }

html[data-theme="ink"] .ai-chat-input input {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.16);
  color: #FFFFFF;
}

/* AI toggle in chrome (pink/coral brain icon) */
.icon-btn.ai-toggle {
  color: #F472B6;
}

.icon-btn.ai-toggle:hover {
  background: rgba(244,114,182,0.10);
  color: #EC4899;
}

/* ════════════════════════════════════════════════════════════
   BULK ACTION BAR — fixed bottom bar when rows selected
   ════════════════════════════════════════════════════════════ */
.bulk-bar {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-w);
  right: 0;
  height: 52px;
  background: var(--neutral-black);
  color: var(--neutral-white);
  display: none;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  z-index: 300;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

.bulk-bar.visible { display: flex; }

.bulk-count {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin-right: 8px;
}

.bulk-bar .btn {
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.30);
  height: 30px;
  font-size: 11px;
}

.bulk-bar .btn:hover {
  border-color: #FFFFFF;
  background: rgba(255,255,255,0.10);
}

.bulk-bar .btn-danger {
  border-color: var(--error);
  color: var(--error);
}

.bulk-bar .btn-danger:hover {
  background: rgba(255,74,74,0.15);
}

.bulk-bar .bulk-spacer { flex: 1; }

.bulk-bar .bulk-close {
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bulk-bar .bulk-close:hover { color: #FFFFFF; }
.bulk-bar .bulk-close svg { width: 16px; height: 16px; fill: currentColor; }

/* ════════════════════════════════════════════════════════════
   MISC HELPERS
   ════════════════════════════════════════════════════════════ */
.dcnai-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 0;
  height: 100%;
}

.dcnai-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  fill: var(--neutral-400);
}

.dcnai-title {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--neutral-black);
  margin-bottom: 3px;
}

.dcnai-sub {
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11.5px;
  color: var(--neutral-500);
  margin-bottom: 14px;
}

.dcnai-btn {
  height: 36px;
  padding: 0 20px;
  font-family: 'MB Corpo S Text', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral-black);
  background: transparent;
  border: 1px solid var(--neutral-black);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 120ms;
}

.dcnai-btn:hover { border-color: var(--pure-blue); color: var(--pure-blue); }
.dcnai-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* ════════════════════════════════════════════════════════════
   THEMES — scoped to <html> so menu-item data-theme attrs don't trigger
   ════════════════════════════════════════════════════════════ */

/* PAPER: warm off-white surface */
html[data-theme="paper"]      { background: #FAFAF8; }
html[data-theme="paper"] .main { background: #FAFAF8; }

/* CHALK: pure white (default) — uses base tokens, no overrides needed */

/* ════════════════════════════════════════════════════════════
   INK — comprehensive dark theme override
   Every interactive surface needs to invert; partial dark = ugly
   ════════════════════════════════════════════════════════════ */

html[data-theme="ink"] {
  /* Token overrides — propagate everywhere via var() consumers */
  --neutral-white: #14161B;     /* "white" surfaces become near-black */
  --neutral-50:    #1C1F26;     /* striped headers / subtle bg */
  --neutral-100:   rgba(255,255,255,0.08);  /* borders */
  --neutral-200:   rgba(255,255,255,0.16);
  --neutral-300:   rgba(255,255,255,0.24);
  --neutral-400:   rgba(255,255,255,0.40);
  --neutral-500:   rgba(255,255,255,0.55);  /* muted text */
  --neutral-600:   rgba(255,255,255,0.70);  /* secondary text */
  --neutral-700:   rgba(255,255,255,0.80);  /* primary body */
  --neutral-800:   rgba(255,255,255,0.90);
  --neutral-900:   rgba(255,255,255,0.95);
  --neutral-black: #FFFFFF;     /* "black" text becomes white */

  background: #0E1116;
  color: rgba(255,255,255,0.85);
}

html[data-theme="ink"] body { background: #0E1116; }

html[data-theme="ink"] .main { background: #0E1116; }

/* Ink rail: keep the blue-tinted darker than pure black so it reads
   distinctly from the page surface */
html[data-theme="ink"] .sidebar { background: var(--pure-blue-950); }

/* Chrome bar */
html[data-theme="ink"] .chrome {
  background: #14161B;
  border-bottom-color: rgba(255,255,255,0.08);
}

html[data-theme="ink"] .chrome-title { color: #FFFFFF; }
html[data-theme="ink"] .chrome-subtitle { color: rgba(255,255,255,0.55); }

/* Workbench header (separate from chrome) */
html[data-theme="ink"] .workbench-header {
  background: #14161B;
  border-bottom-color: rgba(255,255,255,0.08);
}

/* All cards */
html[data-theme="ink"] .card {
  background: #1C1F26;
  border-color: rgba(255,255,255,0.06);
}

/* Card titles */
html[data-theme="ink"] .card-title,
html[data-theme="ink"] .card-title-inline,
html[data-theme="ink"] .tbl-title {
  color: rgba(255,255,255,0.65);
}

/* Card-header divider */
html[data-theme="ink"] .card-header-row {
  border-bottom-color: rgba(255,255,255,0.06);
}

/* Quick action tiles */
html[data-theme="ink"] .qa-tile {
  background: #1C1F26;
  border-color: rgba(255,255,255,0.06);
}

html[data-theme="ink"] .qa-label { color: #FFFFFF; }

/* Stronger icon backgrounds for dark mode */
html[data-theme="ink"] .qa-tile[data-c="blue"]   .qa-icon-wrap { background: rgba(0,141,252,0.18); }
html[data-theme="ink"] .qa-tile[data-c="blue"]   .qa-icon-wrap svg { fill: var(--pure-blue-bright); }
html[data-theme="ink"] .qa-tile[data-c="green"]  .qa-icon-wrap { background: rgba(33,163,48,0.18); }
html[data-theme="ink"] .qa-tile[data-c="purple"] .qa-icon-wrap { background: rgba(139,92,246,0.18); }
html[data-theme="ink"] .qa-tile[data-c="purple"] .qa-icon-wrap svg { fill: #B596F7; }
html[data-theme="ink"] .qa-tile[data-c="amber"]  .qa-icon-wrap { background: rgba(250,204,0,0.20); }
html[data-theme="ink"] .qa-tile[data-c="amber"]  .qa-icon-wrap svg { fill: var(--warning); }

/* KPI cards */
html[data-theme="ink"] .kpi-card { background: #1C1F26; border-color: rgba(255,255,255,0.06); }
html[data-theme="ink"] .kpi-label { color: rgba(255,255,255,0.55); }
html[data-theme="ink"] .kpi-value { color: #FFFFFF; }
html[data-theme="ink"] .kpi-suffix { color: rgba(255,255,255,0.40); }

/* Tables */
html[data-theme="ink"] thead tr { background: #1C1F26; }
html[data-theme="ink"] th {
  color: rgba(255,255,255,0.55);
  border-bottom-color: rgba(255,255,255,0.08);
}

html[data-theme="ink"] td {
  color: rgba(255,255,255,0.78);
  border-bottom-color: rgba(255,255,255,0.04);
}

html[data-theme="ink"] td.title-cell { color: #FFFFFF; }
html[data-theme="ink"] td.amount { color: #FFFFFF; }
html[data-theme="ink"] td.mono-vin { color: rgba(255,255,255,0.50); }

html[data-theme="ink"] tbody tr:hover { background: rgba(0,141,252,0.08); }

/* Pagination */
html[data-theme="ink"] .pagination {
  border-top-color: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
}

html[data-theme="ink"] .pagination select {
  background: #1C1F26;
  border-color: rgba(255,255,255,0.16);
  color: #FFFFFF;
}

html[data-theme="ink"] .pagination-arrow {
  background: #1C1F26;
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.65);
}

html[data-theme="ink"] .pagination-arrow:hover:not(:disabled) {
  border-color: var(--pure-blue-bright);
  color: var(--pure-blue-bright);
}

/* Tabs (segmented control in chrome) */
html[data-theme="ink"] .tabs {
  background: rgba(255,255,255,0.06);
}

html[data-theme="ink"] .tab-btn {
  color: rgba(255,255,255,0.65);
}

html[data-theme="ink"] .tab-btn:hover { color: #FFFFFF; }

html[data-theme="ink"] .tab-btn .badge-cnt {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.65);
}

html[data-theme="ink"] .tab-btn.active {
  background: var(--pure-blue);
  color: #FFFFFF;
}

/* Filter chip */
html[data-theme="ink"] .filter-chip {
  background: transparent;
  border-color: rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.70);
}

html[data-theme="ink"] .filter-chip:hover {
  border-color: var(--pure-blue-bright);
  color: var(--pure-blue-bright);
}

/* Search input */
html[data-theme="ink"] .search-input {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}

html[data-theme="ink"] .search-input:focus-within { border-color: var(--pure-blue-bright); }
html[data-theme="ink"] .search-input input { color: #FFFFFF; }
html[data-theme="ink"] .search-input input::placeholder { color: rgba(255,255,255,0.40); }
html[data-theme="ink"] .search-input svg { fill: rgba(255,255,255,0.45); }

/* View toggle */
html[data-theme="ink"] .view-toggle { border-color: rgba(255,255,255,0.12); }
html[data-theme="ink"] .view-toggle button {
  background: transparent;
  color: rgba(255,255,255,0.65);
}

html[data-theme="ink"] .view-toggle button + button { border-left-color: rgba(255,255,255,0.12); }

html[data-theme="ink"] .view-toggle button.active {
  background: rgba(255,255,255,0.10);
  color: #FFFFFF;
}

/* Buttons */
html[data-theme="ink"] .btn-outline {
  border-color: rgba(255,255,255,0.20);
  color: #FFFFFF;
}

html[data-theme="ink"] .btn-outline:hover {
  border-color: var(--pure-blue-bright);
  color: var(--pure-blue-bright);
}

html[data-theme="ink"] .btn-ghost { color: rgba(255,255,255,0.70); }
html[data-theme="ink"] .btn-ghost:hover { background: rgba(255,255,255,0.06); color: #FFFFFF; }

html[data-theme="ink"] .icon-btn { color: rgba(255,255,255,0.55); }
html[data-theme="ink"] .icon-btn:hover { background: rgba(255,255,255,0.06); color: #FFFFFF; }

html[data-theme="ink"] .divider { background: rgba(255,255,255,0.16); }

html[data-theme="ink"] .chrome-back { color: rgba(255,255,255,0.55); }
html[data-theme="ink"] .chrome-back:hover { color: #FFFFFF; }

/* Pills - tweak for dark mode visibility (slightly stronger backgrounds) */
html[data-theme="ink"] .pill-pending  { background: rgba(250,204,0,0.18);  color: #FACC00; }
html[data-theme="ink"] .pill-parts    { background: rgba(0,141,252,0.18);  color: var(--pure-blue-bright); }
html[data-theme="ink"] .pill-mgr      { background: rgba(139,92,246,0.18); color: #B596F7; }
html[data-theme="ink"] .pill-approved { background: rgba(33,163,48,0.18);  color: #5DD068; }
html[data-theme="ink"] .pill-rejected { background: rgba(255,74,74,0.18);  color: #FF8B8B; }
html[data-theme="ink"] .pill-open     { background: rgba(0,141,252,0.18);  color: var(--pure-blue-bright); }
html[data-theme="ink"] .pill-progress { background: rgba(250,204,0,0.18);  color: #FACC00; }
html[data-theme="ink"] .pill-resolved { background: rgba(33,163,48,0.18);  color: #5DD068; }
html[data-theme="ink"] .pill-closed   { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.65); }

html[data-theme="ink"] .priority-low      { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.65); }
html[data-theme="ink"] .priority-medium   { background: rgba(250,204,0,0.18); color: #FACC00; }
html[data-theme="ink"] .priority-high     { background: rgba(255,140,0,0.18); color: #FFB870; }
html[data-theme="ink"] .priority-critical { background: rgba(255,74,74,0.20); color: #FF8B8B; }

/* Type tags */
html[data-theme="ink"] .type-tag { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.70); }
html[data-theme="ink"] .type-tag.cd { background: rgba(255,74,74,0.20); color: #FF8B8B; }

/* Donut center cut-out matches new card bg */
html[data-theme="ink"] .donut::after { background: #1C1F26; }
html[data-theme="ink"] .donut-num { color: #FFFFFF; }
html[data-theme="ink"] .donut-cap { color: rgba(255,255,255,0.55); }
html[data-theme="ink"] .lg-item { color: rgba(255,255,255,0.78); }
html[data-theme="ink"] .lg-count { color: rgba(255,255,255,0.50); }

/* Bar chart track */
html[data-theme="ink"] .bar-track { background: rgba(255,255,255,0.06); }
html[data-theme="ink"] .bar-label { color: rgba(255,255,255,0.55); }
html[data-theme="ink"] .bar-value { color: #FFFFFF; }

/* DCNAi panel */
html[data-theme="ink"] .dcnai-icon { fill: rgba(255,255,255,0.30); }
html[data-theme="ink"] .dcnai-title { color: #FFFFFF; }
html[data-theme="ink"] .dcnai-sub { color: rgba(255,255,255,0.55); }
html[data-theme="ink"] .dcnai-btn {
  background: transparent;
  border-color: rgba(255,255,255,0.30);
  color: #FFFFFF;
}
html[data-theme="ink"] .dcnai-btn:hover {
  border-color: var(--pure-blue-bright);
  color: var(--pure-blue-bright);
}

/* Alerts empty state */
html[data-theme="ink"] .alert-bell-svg { fill: rgba(255,255,255,0.25); }
html[data-theme="ink"] .alert-msg { color: #FFFFFF; }
html[data-theme="ink"] .alert-sub { color: rgba(255,255,255,0.55); }

/* What's New */
html[data-theme="ink"] .wn-tag { background: rgba(0,141,252,0.18); color: var(--pure-blue-bright); }
html[data-theme="ink"] .wn-list li { color: rgba(255,255,255,0.78); }
html[data-theme="ink"] .wn-list li::before { background: var(--pure-blue-bright); }
html[data-theme="ink"] .wn-link { color: var(--pure-blue-bright); }
html[data-theme="ink"] .wn-close { color: rgba(255,255,255,0.55); }
html[data-theme="ink"] .wn-close:hover { color: #FFFFFF; }

/* Empty state */
html[data-theme="ink"] .empty-icon { fill: rgba(255,255,255,0.25); }
html[data-theme="ink"] .empty-title { color: #FFFFFF; }
html[data-theme="ink"] .empty-sub { color: rgba(255,255,255,0.55); }

/* Kanban */
html[data-theme="ink"] .kanban-col { background: rgba(255,255,255,0.04); }
html[data-theme="ink"] .kanban-card { background: #1C1F26; border-color: rgba(255,255,255,0.06); }
html[data-theme="ink"] .kanban-card-title { color: #FFFFFF; }
html[data-theme="ink"] .kanban-card-meta { color: rgba(255,255,255,0.55); }
html[data-theme="ink"] .kanban-title { color: rgba(255,255,255,0.65); }
html[data-theme="ink"] .kanban-count { color: #FFFFFF; }

/* Hover lift shadow tweak for dark surfaces */
html[data-theme="ink"] .hover-lift:hover,
html[data-theme="ink"] .qa-tile.hover-lift:hover,
html[data-theme="ink"] .kpi-card.hover-lift:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
}

/* Sparklines on dark */
html[data-theme="ink"] .sparkline polyline { stroke: var(--pure-blue-bright); }

/* Control Center secondary nav */
html[data-theme="ink"] .cc-sidebar { background: #14161B; border-right-color: rgba(255,255,255,0.06); }
html[data-theme="ink"] .cc-tab:hover { background: rgba(0,141,252,0.06); }
html[data-theme="ink"] .cc-tab.active {
  background: rgba(0,141,252,0.12);
  border-right-color: var(--pure-blue-bright);
}
html[data-theme="ink"] .cc-tab-label { color: #FFFFFF; }
html[data-theme="ink"] .cc-tab.active .cc-tab-label { color: var(--pure-blue-bright); }
html[data-theme="ink"] .cc-tab-desc { color: rgba(255,255,255,0.55); }
html[data-theme="ink"] .cc-tab-icon { color: rgba(255,255,255,0.55); }
html[data-theme="ink"] .cc-tab.active .cc-tab-icon { color: var(--pure-blue-bright); }
html[data-theme="ink"] .cc-sidebar-bottom { color: rgba(255,255,255,0.40); border-top-color: rgba(255,255,255,0.06); }

html[data-theme="ink"] .signal-tile { background: #1C1F26; border-color: rgba(255,255,255,0.06); }
html[data-theme="ink"] .signal-icon-label { color: rgba(255,255,255,0.65); }
html[data-theme="ink"] .signal-value { color: #FFFFFF; }
html[data-theme="ink"] .signal-meta { color: rgba(255,255,255,0.55); }
html[data-theme="ink"] .cc-overview-title { color: #FFFFFF; }
html[data-theme="ink"] .cc-overview-sub { color: rgba(255,255,255,0.55); }
html[data-theme="ink"] .cc-footer-text { color: rgba(255,255,255,0.55); }
html[data-theme="ink"] .refresh-btn {
  background: transparent;
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.78);
}
html[data-theme="ink"] .refresh-btn:hover {
  border-color: var(--pure-blue-bright);
  color: var(--pure-blue-bright);
}

/* Reports page select trigger */
html[data-theme="ink"] .select-trigger {
  background: transparent;
  border-color: rgba(255,255,255,0.16);
  color: #FFFFFF;
}

html[data-theme="ink"] .report-card {
  background: #1C1F26;
  border-color: rgba(255,255,255,0.06);
}

html[data-theme="ink"] .report-card-title { color: #FFFFFF; }
html[data-theme="ink"] .report-card-meta { color: rgba(255,255,255,0.55); }

html[data-theme="ink"] .kpi-strip { border-bottom-color: rgba(255,255,255,0.06); }
html[data-theme="ink"] .kpi-inline-num { color: #FFFFFF; }
html[data-theme="ink"] .kpi-inline-label { color: rgba(255,255,255,0.78); }
