@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --line-strong: #cbd5e1;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --band: #f3f6fa;
  --nav: #160d31;
  --nav-2: #2b195f;
  --nav-3: #40218a;
  --accent: #0f766e;
  --accent-2: #14b8a6;
  --accent-rgb: 15, 118, 110;
  --amber: #b7791f;
  --red: #b42318;
  --green: #287d3c;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.delivery-module {
  --accent: #7a5cff;
  --accent-2: #9b82ff;
  --accent-rgb: 122, 92, 255;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--band);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(243, 246, 250, 0.95)),
    radial-gradient(circle at 20% 0%, rgba(20, 184, 166, 0.08), transparent 26%);
}

.login-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(14, 7, 32, 0.98), rgba(42, 18, 84, 0.96) 52%, rgba(21, 93, 88, 0.92)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

.login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 25%, rgba(255, 255, 255, 0.08) 25% 25.5%, transparent 25.5% 100%),
    linear-gradient(300deg, transparent 0 58%, rgba(20, 184, 166, 0.14) 58% 58.4%, transparent 58.4% 100%);
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  width: min(920px, 100%);
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.login-brand strong {
  display: block;
  font-size: 48px;
  line-height: 0.95;
  letter-spacing: 0;
}

.login-brand span,
.login-card p,
.login-note {
  color: var(--muted);
}

.login-brand-panel {
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: 38px;
  color: #fff;
  background:
    linear-gradient(150deg, rgba(18, 8, 49, 0.98), rgba(50, 24, 115, 0.96) 64%, rgba(15, 118, 110, 0.88));
}

.login-brand-panel .login-brand span:not(.brand-mark),
.login-brand-panel p {
  color: rgba(255, 255, 255, 0.75);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #ccfbf1;
  font-size: 26px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.login-brand-copy {
  display: grid;
  gap: 12px;
  max-width: 380px;
}

.login-badge {
  width: fit-content;
  border: 1px solid rgba(20, 184, 166, 0.38);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(20, 184, 166, 0.16);
  color: #ccfbf1;
  font-size: 12px;
  font-weight: 850;
}

.login-badge.subtle {
  background: #ecfeff;
  color: #0f766e;
}

.login-brand-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 38px;
  line-height: 1.04;
}

.login-brand-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.login-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.login-highlights span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.login-form-panel {
  display: grid;
  align-content: center;
  padding: 38px;
}

.login-form-panel h2 {
  margin: 14px 0 8px;
  font-size: 31px;
}

.login-form-panel p {
  margin: 0;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}

.login-form input {
  min-height: 48px;
  background: #fff;
}

.login-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 3px;
  font-weight: 850;
}

.google-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  font-weight: 800;
}

.auth-error {
  margin-top: 14px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f0;
  color: var(--red);
  padding: 10px 12px;
}

.login-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

.layout {
  min-height: 100vh;
  display: block;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand strong {
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: 0;
}

.module-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px 6px 4px 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.module-switch-label span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.module-select {
  width: 110px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #223047;
  padding: 5px 26px 5px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  outline: 0;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.module-select:hover,
.module-select:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}

.module-select option {
  color: var(--ink);
}

.nav,
.nav-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-menu {
  position: relative;
}

.nav-menu::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 12px;
  z-index: 90;
}

.nav button {
  border: 0;
  background: transparent;
  color: #f8fafc;
  text-align: left;
  padding: 9px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-caret {
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  transition: transform 160ms ease;
}

.nav-icon {
  width: 20px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(20, 184, 166, 0.16);
  color: #d8fbf6;
  font-size: 13px;
  font-weight: 800;
}

.layout.pipeline-module .nav-icon {
  background: rgba(209, 250, 229, 0.14);
  color: #d1fae5;
}

.nav-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav button.subnav {
  margin-left: 0;
  padding: 8px 10px;
  color: #e5e7eb;
  font-size: 13px;
  border-left: 0;
  border-radius: 8px;
  animation: slideFade 180ms ease;
}

.nav-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 100;
  display: grid;
  gap: 6px;
  width: 272px;
  padding: 10px;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-menu:hover:not(.hover-disabled) .nav-dropdown,
.nav-menu:focus-within:not(.hover-disabled) .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

body.nav-dropdown-locked .nav-dropdown {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-6px) scale(0.98) !important;
}

.nav-menu:hover:not(.hover-disabled) .nav-caret,
.nav-menu:focus-within:not(.hover-disabled) .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown button {
  width: 100%;
  color: var(--ink);
  padding: 11px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  white-space: normal;
}

.nav-dropdown button:hover,
.nav-dropdown button:focus {
  color: var(--ink);
  border-color: #5eead4;
  background: #ccfbf1;
  transform: none;
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-dropdown span:not(.nav-icon) {
  display: grid;
  gap: 2px;
}

.nav-dropdown strong {
  font-size: 13px;
  line-height: 1.2;
  color: #0f172a;
}

.nav-dropdown small {
  color: #475467;
  font-size: 12px;
  line-height: 1.3;
}

.nav-dropdown .nav-icon {
  background: rgba(20, 184, 166, 0.12);
  color: var(--accent);
}

.layout.pipeline-module .nav-dropdown {
  border-color: rgba(20, 184, 166, 0.45);
}

.layout.pipeline-module .nav-dropdown button:hover,
.layout.pipeline-module .nav-dropdown button:focus {
  border-color: #0f766e;
  background: linear-gradient(90deg, #d1fae5 0%, #ccfbf1 55%, #f0fdfa 100%);
  box-shadow: inset 4px 0 0 #0f766e, 0 8px 18px rgba(6, 95, 70, 0.12);
}

.layout.pipeline-module .nav-dropdown button:hover .nav-icon,
.layout.pipeline-module .nav-dropdown button:focus .nav-icon {
  background: #0f766e;
  color: #ffffff;
}

.settings-dropdown {
  width: auto !important;
  max-width: 580px;
  padding: 0 !important;
}

.settings-dropdown-cols {
  display: flex;
}

.settings-dropdown-col {
  width: 270px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-dropdown-col:not(:last-child) {
  border-right: 1px solid var(--line);
}

.dropdown-section-label-top {
  margin: 4px 6px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-section-label {
  margin: 8px 4px 2px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.nav-divider {
  align-self: stretch;
  width: 1px;
  height: auto;
  margin: 4px 6px;
  background: rgba(255, 255, 255, 0.12);
}

.nav button.active,
.nav button:hover {
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.2), rgba(122, 92, 255, 0.22));
  color: #fff;
  transform: translateX(2px);
}

.layout.pipeline-module .nav button.active,
.layout.pipeline-module .nav button:hover {
  background: linear-gradient(90deg, rgba(209, 250, 229, 0.18), rgba(20, 184, 166, 0.24));
}

.nav button.subnav:hover,
.nav button.active-subnav {
  background: rgba(20, 184, 166, 0.14);
  color: #fff;
}

.layout.pipeline-module .nav button.subnav {
  color: #d9fff7;
}

.main {
  min-width: 0;
}

.app-chrome {
  position: sticky;
  top: 0;
  z-index: 30;
  color: #fff;
  background:
    linear-gradient(135deg, #110823 0%, #21104b 50%, #3d197d 100%);
  box-shadow: 0 12px 30px rgba(29, 13, 73, 0.18);
}

.pipeline-module .app-chrome {
  background:
    linear-gradient(135deg, #042f2e 0%, #065f46 50%, #0f766e 100%);
  box-shadow: 0 12px 30px rgba(6, 95, 70, 0.18);
}

.app-header {
  min-height: 56px;
  padding: 10px 28px;
  display: grid;
  grid-template-columns: minmax(240px, max-content) minmax(320px, 1fr);
  align-items: center;
  gap: 18px;
}

.app-nav-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.app-nav {
  min-width: 0;
}

.topbar {
  min-height: 82px;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar h1 {
  font-size: 25px;
  line-height: 1.12;
  margin: 0;
}

.topbar-controls,
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.log-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.log-actions-left,
.log-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-queues {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.quick-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 750;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.quick-chip span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
}

.quick-chip:hover {
  transform: translateY(-1px);
  border-color: var(--accent-2);
}

.quick-chip.active {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrap .search-icon {
  position: absolute;
  left: 10px;
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.search-wrap .search-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-wrap input {
  padding-left: 34px;
  width: 250px;
  margin: 0;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sort-control select {
  min-width: 170px;
  height: 44px;
  margin: 0;
}

.topbar-controls {
  justify-content: flex-end;
}

.app-header .topbar-controls {
  min-width: 0;
  gap: 8px;
  flex-wrap: nowrap;
}

.app-header .btn.subtle {
  background: rgba(255, 255, 255, 0.9);
}

.app-header .user-chip {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.app-header .user-chip:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.context-selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(390px, 36vw);
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px 7px 4px 11px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.context-selector span {
  color: inherit;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.project-context {
  width: min(270px, 24vw);
  min-width: 190px;
}

.app-header .project-context {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 5px 28px 5px 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #223047;
  box-shadow: none;
  font-size: 13px;
}

.app-header .project-context:focus {
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(204, 251, 241, 0.64);
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 150px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px 5px 5px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-chip:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
}

.user-chip strong {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  min-width: 25px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-size: 11px;
}

.user-chip span {
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-logout {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.icon-logout:hover,
.icon-logout:focus {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.icon-logout svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content {
  padding: 24px 28px 44px;
}

.section {
  display: none;
}

.section.active {
  display: grid;
  gap: 20px;
  animation: fadeUp 220ms ease both;
}

.admin-tabs {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.settings-tab-strip {
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.settings-tab-strip .btn {
  border-color: transparent;
  background: transparent;
  font-weight: 800;
}

.settings-tab-strip .btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.18);
}

.admin-copy {
  margin-top: -8px;
}

.assignment-layout {
  display: grid;
  gap: 16px;
}

.team-header-panel select {
  min-width: min(460px, 100%);
}

.team-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.team-summary > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
}

.team-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.team-role-control {
  display: grid;
  gap: 6px;
}

.team-role-control label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.team-role-control select {
  margin: 0;
  min-width: 0;
}

.team-board {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.single-column-team {
  grid-template-columns: 1fr;
}

.team-board h3 {
  margin: 16px 0 10px;
  font-size: 14px;
}

.member-list {
  display: grid;
  gap: 10px;
}

.available-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.member-card strong,
.member-card span,
.member-card small {
  display: block;
}

.member-card span,
.member-card small {
  color: var(--muted);
  margin-top: 3px;
}

.member-card .role-tag {
  display: inline-block;
  width: fit-content;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

.team-search {
  margin-bottom: 14px;
}

.team-search .search-icon {
  font-size: 12px;
}

.team-search input {
  width: 100%;
  padding-left: 58px;
}

.readonly-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--surface-soft);
}

.readonly-chips span {
  border-radius: 999px;
  background: #eaf4ff;
  color: #1d4ed8;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.mini-chip {
  display: inline-block;
  margin: 2px 4px 2px 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
}

.mini-chip.red,
.item-signals span.red,
.health-flags span.red {
  border-color: #fecaca;
  background: #fee2e2;
  color: #b42318;
}

.mini-chip.amber,
.item-signals span.amber,
.health-flags span.amber {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.mini-chip.blue,
.item-signals span.blue,
.health-flags span.blue {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.about-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 14px;
}

.about-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.about-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.about-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.about-card.delivery-card {
  border-left: 4px solid #7a5cff;
}

.about-card.pipeline-card {
  border-left: 4px solid #14b8a6;
}

.module-indicator {
  height: 4px;
  border-radius: 0 0 8px 8px;
  margin: 14px -14px -14px -14px;
}

.module-indicator.delivery-indicator {
  background: linear-gradient(90deg, #7a5cff 0%, #9b82ff 100%);
}

.module-indicator.pipeline-indicator {
  background: linear-gradient(90deg, #14b8a6 0%, #5eead4 100%);
}

.readonly-chips em,
.field-hint {
  color: var(--muted);
  font-size: 12px;
}

.team-assigned-table table {
  min-width: 820px;
}

.filter-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
  transform-origin: top;
}

.filter-panel.open {
  display: block;
  animation: expandFade 180ms ease both;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 10px;
}

.panel,
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 18px;
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
  min-width: 0;
}

.panel:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.grid {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-soft) 55%, rgba(var(--accent-rgb), 0.06) 100%);
  box-shadow: var(--shadow-soft);
}

.dashboard-hero h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.dashboard-hero p {
  margin: 0;
  color: var(--muted);
}

.action-kpis {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}

.kpi {
  padding: 16px;
  text-align: left;
  min-height: 92px;
  cursor: default;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.kpi span {
  color: var(--muted);
  font-size: 12px;
}

.info-label,
.kpi .info-label,
.panel h2 .info-label,
.table-titlebar h2 .info-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-size: inherit;
  min-width: 0;
}

.info-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
  z-index: 5;
}

.info-tooltip {
  display: none;
}

.floating-info-tooltip {
  position: fixed;
  left: 12px;
  top: 12px;
  width: min(280px, calc(100vw - 24px));
  transform: translateY(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1000;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  padding: 9px 10px;
  background: #111827;
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

.floating-info-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.kpi strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.kpi.clickable {
  cursor: pointer;
}

.kpi.clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.kpi.blue {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.kpi.blue strong {
  color: var(--blue);
}

.kpi.red {
  border-color: #fecaca;
  background: #fff1f0;
}

.kpi.red strong {
  color: var(--red);
}

.kpi.amber {
  border-color: #fde68a;
  background: #fffbeb;
}

.kpi.amber strong {
  color: var(--amber);
}

.kpi.green {
  border-color: #99f6e4;
  background: #ecfdf5;
}

.kpi.green strong {
  color: var(--accent);
}

.kpi.neutral strong {
  color: var(--ink);
}

.dashboard-list {
  display: grid;
  gap: 8px;
}

.dashboard-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dashboard-list-item:hover {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.dashboard-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dashboard-item:hover {
  border-color: rgba(122, 92, 255, 0.42);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.dashboard-item-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dashboard-item-main strong,
.dashboard-item-main span,
.dashboard-item-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-item-main strong {
  color: var(--ink);
  font-size: 13px;
}

.dashboard-item-main span,
.dashboard-item-main small,
.dashboard-item-meta span {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-item-main small {
  color: #475569;
}

.dashboard-item-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 220px;
}

.dashboard-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
}

.dashboard-report-panel {
  border-color: rgba(var(--accent-rgb), 0.18);
}

.dashboard-report-command {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.06), rgba(var(--accent-rgb), 0.02)),
    var(--surface-soft);
}

.dashboard-report-project {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
}

.dashboard-report-project span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(var(--accent-rgb), 0.08);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-report-project select {
  width: 100%;
  min-height: 38px;
  background: #ffffff;
}

.dashboard-report-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-report-actions .btn {
  min-height: 38px;
  white-space: nowrap;
}

.dashboard-report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 8px 0 12px;
}

.report-snapshot-card {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}

.report-snapshot-card span,
.report-snapshot-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.report-snapshot-card strong {
  color: var(--ink);
  font-size: 18px;
}

.dashboard-report-preview {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.dashboard-report-preview summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  color: var(--accent);
  font-weight: 850;
  cursor: pointer;
}

.dashboard-report-preview .report-box {
  margin-top: 8px;
  max-height: 260px;
}

@media (max-width: 900px) {
  .dashboard-report-command {
    grid-template-columns: 1fr;
  }

  .dashboard-report-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .dashboard-report-project {
    grid-template-columns: 1fr;
  }
}

.workspace-hero {
  border-color: rgba(20, 184, 166, 0.24);
}

.quick-launch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.quick-launch-card {
  display: grid;
  gap: 4px;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.quick-launch-card:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: var(--shadow-soft);
}

.quick-launch-card span {
  color: var(--muted);
  font-size: 12px;
}

.notification-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.notification-button svg {
  width: 17px;
  height: 17px;
}

.notification-button span {
  position: absolute;
  top: -4px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  display: none;
  place-items: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.notification-button.has-items span {
  display: grid;
}

.notification-panel {
  position: fixed;
  top: 128px;
  right: 18px;
  z-index: 80;
  width: min(390px, calc(100vw - 32px));
  max-height: calc(100vh - 160px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  padding: 14px;
  animation: expandFade 160ms ease both;
}

.notification-list {
  display: grid;
  gap: 8px;
}

.notification-guidance {
  display: grid;
  gap: 3px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 8px;
  background: #f0fdfa;
}

.notification-guidance strong {
  font-size: 12px;
}

.notification-guidance span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.notification-item {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.notification-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.notification-item.red {
  border-color: #fecaca;
  background: #fff7f6;
}

.notification-item.amber {
  border-color: #fde68a;
  background: #fffbeb;
}

.notification-item.module-delivery {
  border-color: rgba(122, 92, 255, 0.32);
  background: linear-gradient(90deg, rgba(122, 92, 255, 0.12), rgba(250, 247, 255, 0.96));
  box-shadow: inset 4px 0 0 #7a5cff;
}

.notification-item.module-delivery.red {
  border-color: rgba(220, 38, 38, 0.28);
  background: linear-gradient(90deg, rgba(122, 92, 255, 0.15), rgba(255, 241, 242, 0.96));
}

.notification-item.module-delivery.amber {
  border-color: rgba(245, 158, 11, 0.34);
  background: linear-gradient(90deg, rgba(122, 92, 255, 0.12), rgba(255, 251, 235, 0.96));
}

.notification-item.module-pipeline {
  border-color: rgba(20, 184, 166, 0.34);
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.12), rgba(240, 253, 250, 0.96));
  box-shadow: inset 4px 0 0 #0f766e;
}

.notification-item.module-pipeline.red {
  border-color: rgba(220, 38, 38, 0.28);
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.15), rgba(255, 241, 242, 0.96));
}

.notification-item.module-pipeline.amber {
  border-color: rgba(245, 158, 11, 0.34);
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.13), rgba(255, 251, 235, 0.96));
}

.notification-item span,
.notification-item em {
  color: var(--muted);
  font-size: 12px;
}

.notification-item em {
  font-style: normal;
  text-transform: capitalize;
}

@media (max-width: 760px) {
  .notification-panel {
    top: 64px !important;
    right: 12px !important;
    width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 90px) !important;
    padding: 10px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
  }
  
  .notification-panel .notification-guidance {
    display: none !important;
  }
  
  .notification-list {
    gap: 6px !important;
  }
  
  .notification-item {
    padding: 8px 10px !important;
    gap: 2px !important;
  }
  
  .notification-item strong {
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
  }
  
  .notification-item span {
    font-size: 11px !important;
  }
  
  .notification-item em {
    font-size: 10px !important;
    margin-top: 2px !important;
  }
}

.pipeline-attention-panel {
  border-color: rgba(245, 158, 11, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.delivery-attention-panel {
  border-color: rgba(122, 92, 255, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f8f5ff 100%);
}

.delivery-attention-panel .attention-card.blue {
  border-color: rgba(122, 92, 255, 0.28);
  background: #f5f3ff;
}

.delivery-attention-panel .attention-kind {
  background: rgba(122, 92, 255, 0.14);
  color: #5b21b6;
}

.attention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 10px;
}

.attention-card {
  display: grid;
  gap: 5px;
  min-height: 132px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.attention-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.attention-card.red {
  border-color: #fecaca;
  background: #fff7f6;
}

.attention-card.amber {
  border-color: #fde68a;
  background: #fffbeb;
}

.attention-card.blue {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.attention-kind {
  justify-self: start;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
}

.attention-card.red .attention-kind {
  background: #fee2e2;
  color: var(--red);
}

.attention-card.amber .attention-kind {
  background: #fef3c7;
  color: #92400e;
}

.attention-card strong {
  font-size: 14px;
  line-height: 1.25;
}

.attention-meta,
.attention-owner,
.attention-reason {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.attention-reason {
  color: var(--ink);
  font-weight: 700;
}

.two-col {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-inline {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.metric-inline strong {
  font-size: 34px;
}

.metric-inline span {
  color: var(--muted);
}

.dashboard-secondary-grid {
  margin-top: 20px;
}

.dashboard-project-metric {
  padding: 24px 0;
}

.radial-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.attention-list {
  display: grid;
  gap: 8px;
}

.attention-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 11px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.attention-row:hover {
  border-color: var(--accent-2);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.attention-id {
  font-weight: 800;
  color: var(--accent);
}

.attention-row strong,
.line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.attention-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.review-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--surface) 0%, rgba(var(--accent-rgb), 0.05) 55%, rgba(var(--accent-rgb), 0.08) 100%);
  box-shadow: var(--shadow-soft);
}

.review-hero h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.review-hero p {
  margin: 0;
  color: var(--muted);
}

.client-review-shell {
  display: grid;
  gap: 16px;
}

.meeting-stage {
  border: 1px solid rgba(122, 92, 255, 0.24);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.meeting-stage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f6f3ff 100%);
  border-bottom: 1px solid var(--line);
}

.meeting-stage-header h2 {
  margin: 0 0 6px;
  font-size: 30px;
  letter-spacing: 0;
}

.meeting-stage-header p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.meeting-stage-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.meeting-focus-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 440px;
}

.meeting-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: #eaedf2; /* slightly deeper grey for sidebar */
}

.meeting-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
  transition: all 180ms ease;
}

.meeting-nav button:hover:not(.active) {
  background: var(--surface-soft);
  border-color: var(--line-strong);
}

.meeting-nav button.active {
  border-color: #7a5cff;
  background: #f5f3ff;
  box-shadow: 0 0 0 3px rgba(122, 92, 255, 0.12);
}

.meeting-nav button strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.meeting-nav button.active strong {
  background: rgba(122, 92, 255, 0.12);
  color: #7a5cff;
}

.meeting-nav em {
  display: inline-grid;
  place-items: center;
  min-width: 56px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
  font-size: 12px;
}

.meeting-nav span {
  flex: 1;
  font-weight: 800;
  font-size: 13px;
}

.layout.pipeline-module .meeting-stage {
  border-color: rgba(20, 184, 166, 0.28);
}

.layout.pipeline-module .meeting-stage-header {
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}

.review-export-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.review-export-actions .action-link,
.page-toolbar-actions .action-link {
  min-height: 32px;
  padding: 0 8px;
  border-radius: 999px;
}

.review-export-actions .action-link:hover:not(:disabled),
.page-toolbar-actions .action-link:hover:not(:disabled) {
  background: rgba(var(--accent-rgb), 0.08);
}

.review-limit-hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Fullscreen Client Presentation Mode overrides */
.layout.review-fullscreen .app-chrome {
  display: none !important;
}

.layout.review-fullscreen {
  grid-template-rows: 1fr !important;
}

.layout.review-fullscreen .main {
  padding: 0 !important;
}

.layout.review-fullscreen .content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 20px !important;
}

.layout.review-fullscreen .meeting-stage {
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  min-height: calc(100vh - 40px);
}

.layout.review-fullscreen .meeting-focus-panel {
  padding: 10px 24px 24px !important;
}

.layout.pipeline-module .meeting-nav {
  background: var(--surface-soft);
}

.layout.pipeline-module .meeting-nav button.active {
  border-color: #0f766e;
  background: #ccfbf1;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.layout.pipeline-module .meeting-nav em {
  background: var(--surface-soft);
  color: var(--muted);
}

.layout.pipeline-module .meeting-nav button.active em {
  background: #0f766e;
  color: #ffffff;
}

.layout.pipeline-module .meeting-nav button.active strong {
  background: rgba(20, 184, 166, 0.14);
  color: #0f766e;
}

.meeting-focus-panel {
  padding: 18px;
  background: #f4f6f9; /* soft light-grey background so cards stand out */
}

.meeting-focus-list {
  display: grid;
  gap: 12px;
}

.meeting-review-item {
  grid-template-columns: 74px minmax(0, 1fr) auto;
  min-height: 116px;
  padding: 18px;
}

.meeting-review-item .review-item-id {
  font-size: 20px;
}

.meeting-review-item .review-item-main strong {
  font-size: 18px;
  line-height: 1.35;
}

.review-record-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #ffffff; /* pure white cards */
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.review-record-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.review-record-card strong {
  display: block;
  margin: 6px 0 3px;
  font-size: 15px;
  line-height: 1.3;
}

.review-record-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.review-record-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 260px;
}

.pipeline-summary-card {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(20, 184, 166, 0.32);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

.pipeline-summary-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.pipeline-summary-card p {
  margin: 0;
  color: var(--muted);
}

.share-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.share-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  padding-right: 42px;
}

.summary-metrics span {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
}

.summary-metrics strong {
  color: var(--ink);
  font-size: 16px;
}

.summary-attention {
  display: grid;
  gap: 6px;
}

.summary-attention ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.forecast-guidance-panel {
  border-color: rgba(20, 184, 166, 0.28);
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

.forecast-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.forecast-guide-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.forecast-guide-grid strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.forecast-guide-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.sales-org-panel {
  overflow: hidden;
}

.sales-org-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--surface-soft);
  border-radius: 12px;
  border: 1px solid var(--line);
  min-height: auto;
}

.sales-org-node {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

.sales-org-card.compact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 280px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
}

.sales-org-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sales-org-coverage {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-style: italic;
  margin-top: 2px;
  max-width: 210px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sales-org-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed rgba(var(--accent-rgb), 0.16);
  font-size: 11px;
}

.sales-org-stats span {
  color: var(--muted);
}

.sales-org-stats strong {
  color: var(--accent);
}

/* Senior Level: Sales Director */
.sales-org-card.compact.sales-director {
  border-color: #0f766e;
  border-width: 2px;
  background: linear-gradient(180deg, #ffffff 0%, #ccfbf1 100%);
  box-shadow: 0 4px 10px rgba(20, 184, 166, 0.08);
}

/* Mid Level: Sales Manager */
.sales-org-card.compact.sales-manager {
  border-color: rgba(20, 184, 166, 0.65);
  background: linear-gradient(180deg, #ffffff 0%, #e2fbf5 100%);
}

/* Reps & BD */
.sales-org-card.compact.sales-executive,
.sales-org-card.compact.business-development {
  border-left: 4.5px solid var(--accent);
}

.sales-org-card.compact:hover {
  transform: translateX(4px);
  border-color: #0f766e !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.sales-org-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 99px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-size: 11px;
  font-weight: 850;
  flex-shrink: 0;
  border: 1px solid rgba(20, 184, 166, 0.22);
}

.sales-org-card.sales-director .sales-org-avatar {
  background: #0f766e;
  color: #ffffff;
}

.sales-org-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sales-org-name {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.sales-org-role {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.sales-org-children {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 36px;
  margin-top: 12px;
  margin-bottom: 4px;
  position: relative;
}

/* Connecting Lines */
.sales-org-children::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 16px;
  width: 2px;
  height: calc(100% + 12px);
  background: rgba(20, 184, 166, 0.35);
  z-index: 1;
}

.sales-org-children .sales-org-node::before {
  content: "";
  position: absolute;
  top: 26px;
  left: -20px;
  width: 16px;
  height: 2px;
  background: rgba(20, 184, 166, 0.35);
  z-index: 1;
}

.access-reference-panel {
  padding: 0;
  overflow: hidden;
}

.access-reference-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.access-reference-panel summary::-webkit-details-marker {
  display: none;
}

.access-reference-panel summary > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.access-reference-panel summary strong {
  color: var(--ink);
  font-size: 15px;
}

.access-reference-panel summary small {
  color: var(--muted);
  font-size: 12px;
}

.reference-toggle {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--teal-dark);
  background: rgba(20, 184, 166, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.access-reference-panel[open] .reference-toggle {
  color: var(--muted);
  background: var(--surface-soft);
}

.access-reference-panel[open] .reference-toggle::before {
  content: "Hide ";
}

.access-reference-body {
  padding: 0 16px 16px;
}

.meeting-review-item .review-item-main small,
.meeting-review-item .review-item-main em {
  font-size: 14px;
}

.review-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.review-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.review-sections {
  align-items: start;
}

.count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8fbf7;
  color: var(--accent);
  font-weight: 800;
}

.review-list {
  display: grid;
  gap: 8px;
}

.review-item {
  width: 100%;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.review-item:hover {
  transform: translateY(-1px);
  border-color: var(--accent-2);
  box-shadow: var(--shadow-soft);
}

.review-item-id {
  color: var(--accent);
  font-weight: 850;
}

.review-item-main strong,
.review-item-main small,
.review-item-main em {
  display: block;
}

.review-item-main small,
.review-item-main em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.review-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.table-hint {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.table-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  min-height: 42px;
}

.table-titlebar h2 {
  margin-bottom: 4px;
}

.contextual-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 42px;
  padding: 6px 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
  animation: slideFade 200ms ease;
}

@keyframes slideFade {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.table-titlebar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.page-toolbar-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-left: auto;
}

.toolbar-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.table-export-btn {
  width: 36px;
  height: 36px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.22);
  text-decoration: none;
  box-shadow: none;
}

.table-export-btn:hover {
  background: rgba(var(--accent-rgb), 0.16);
  border-color: rgba(var(--accent-rgb), 0.36);
}

.table-export-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.table-export-link {
  margin: 0;
  white-space: nowrap;
}

.table-export-link span,
.review-export-actions .action-link span,
.page-toolbar-actions .action-link span {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}

.subtab-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.subtab,
.subtab-row > button {
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.subtab:hover,
.subtab.active,
.subtab-row > button:hover,
.subtab-row > button.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.subtab-row > button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  margin-left: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.subtab-row > button.active span {
  background: rgba(var(--accent-rgb), 0.18);
}

.tiny-text {
  margin-top: 3px;
  font-size: 11px;
}

.audit-titlebar {
  margin-top: 12px;
}

.form-section-title {
  margin: 12px 0 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
}

.selected-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

#tracker-table-wrap {
  max-height: calc(100vh - 260px);
  overflow: auto;
  position: relative;
}

#tracker-table-wrap table {
  min-width: 1180px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  background: #f1f5f9;
  color: #26394c;
  font-size: 12px;
  font-weight: 750;
}

#tracker-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 3;
}

.admin-table {
  max-height: min(520px, calc(100vh - 280px));
  overflow: auto;
  position: relative;
}

.admin-table.paginated-table {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

.admin-table table {
  min-width: 760px;
}

.wide-admin-table table {
  min-width: 1080px;
}

.kanban-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-height: 420px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  overscroll-behavior-inline: contain;
}

.kanban-column {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  min-width: 260px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px;
}

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kanban-column-header strong {
  display: block;
}

.kanban-column-header span {
  color: var(--muted);
  font-size: 12px;
}

.kanban-card-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 150px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 4px;
}

.kanban-card-list.drag-over {
  background: rgba(var(--accent-rgb), 0.06) !important;
  border-color: rgba(var(--accent-rgb), 0.35) !important;
  border-style: dashed !important;
}

.kanban-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
  box-shadow: var(--shadow-soft);
  cursor: grab;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card.dragging {
  opacity: 0.45 !important;
  border: 2px dashed var(--accent-2) !important;
  transform: scale(0.96);
  box-shadow: none !important;
}

.kanban-card:hover {
  border-color: rgba(20, 184, 166, 0.45);
}

.kanban-card.selected-kanban-card {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12), var(--shadow-soft);
}

.kanban-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.kanban-card > span,
.kanban-card p,
.kanban-card-meta {
  color: var(--muted);
  font-size: 12px;
}

.kanban-card p {
  margin: 0;
  line-height: 1.4;
}

.kanban-card-meta,
.kanban-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.forecast-hero {
  align-items: flex-start;
}

.forecast-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.forecast-headline-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: -6px;
  color: var(--muted);
  font-size: 12px;
}

.forecast-headline-label strong {
  color: var(--ink);
  font-size: 14px;
}

.forecast-headline-kpis {
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
}

.forecast-overview-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  align-items: start;
}

.forecast-breakdown-table td {
  vertical-align: middle;
}

.money-bars .bar-row {
  grid-template-columns: 130px minmax(110px, 1fr) minmax(96px, auto);
}

.forecast-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.forecast-card {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.forecast-card-head,
.forecast-card-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.forecast-card-main {
  align-items: baseline;
}

.forecast-card span,
.forecast-card small {
  color: var(--muted);
  font-size: 12px;
}

.forecast-card-value {
  font-size: 17px;
  font-weight: 900;
}

.forecast-card-bar {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
}

.forecast-card-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.compact-empty {
  min-height: 80px;
  display: grid;
  place-items: center;
}

.score-pill {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 26px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.score-pill.green {
  background: #dcfce7;
  color: #166534;
}

.score-pill.amber {
  background: #fef3c7;
  color: #92400e;
}

.score-pill.red {
  background: #fee2e2;
  color: #991b1b;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.row-actions {
  vertical-align: top !important;
  min-width: 170px;
}


.danger-link {
  color: #b42318;
}

.danger-link span {
  background: #fee4e2;
  color: #b42318;
}

.status-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.status-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px 12px;
}

.status-chip span {
  color: var(--muted);
  font-size: 13px;
}

.status-chip strong {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.13);
  color: var(--accent);
}

td {
  background: var(--surface);
}

tr[data-open-item] {
  cursor: pointer;
}

.description-cell {
  min-width: 280px;
}

.item-signals {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.item-signals span,
.health-flags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 750;
}

.health-flags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.health-flags h3 {
  width: 100%;
}

.density-compact th,
.density-compact td {
  padding: 7px 9px;
  font-size: 12px;
}

.density-compact .latest-update {
  display: none;
}

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  flex-wrap: wrap;
}

.segmented button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}

.segmented button.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.mode-toggle {
  padding: 5px;
  border-color: rgba(var(--accent-rgb), 0.34);
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.08);
}

.mode-toggle button {
  min-width: 64px;
}

.mode-toggle button.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.22);
}

.segmented button span {
  color: inherit;
  opacity: 0.8;
}

tbody tr {
  transition: background 160ms ease;
}

tbody tr:hover td {
  background: var(--surface-soft);
}

tbody tr.selected-row td {
  background: rgba(var(--accent-rgb), 0.12);
}

.row-select {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.page-controls {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  background: #e8eef4;
  color: #26394c;
  white-space: nowrap;
}

.badge.red {
  background: #fee4e2;
  color: var(--red);
}

.badge.amber {
  background: #fff1d6;
  color: var(--amber);
}

.badge.green {
  background: #dcfce7;
  color: var(--green);
}

.badge.blue {
  background: #dbeafe;
  color: var(--blue);
}

.latest-update {
  margin-top: 8px;
  padding-left: 10px;
  border-left: 3px solid var(--line);
  color: #334155;
  line-height: 1.35;
}

.latest-update span {
  color: var(--muted);
  font-size: 12px;
}

.action-link {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 8px 7px 0;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.action-link span {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent);
  font-size: 11px;
}

.action-link span svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-link:hover:not(:disabled) {
  color: var(--accent);
  text-decoration: underline;
}

.action-link:disabled {
  color: #98a2b3;
  cursor: not-allowed;
  text-decoration: none;
}

.action-link:disabled span {
  background: var(--surface-soft);
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-sections {
  display: grid;
  gap: 16px;
}

.form-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 14px;
}

.form-section h3 {
  margin: 0 0 12px;
  font-size: 14px;
}

.conditional-escalation {
  display: none;
}

.conditional-escalation.show {
  display: grid;
}

.form-note {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.required-dot {
  color: var(--red);
  font-weight: 800;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pipeline-contact-list {
  display: grid;
  gap: 8px;
}

.pipeline-contact-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) minmax(120px, 1fr) minmax(160px, 1.1fr) minmax(110px, 0.8fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:disabled,
select:disabled,
textarea:disabled {
  background: var(--surface-soft);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.7;
}


input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  accent-color: var(--accent);
  cursor: pointer;
}


.active-filter-field {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 13px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn.subtle {
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  border-color: var(--line);
  box-shadow: none;
}

.btn.subtle:hover:not(:disabled) {
  color: var(--ink);
}


.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn.primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-color: var(--accent);
  color: #fff;
}

/* Delivery module primary button purple accent */
.delivery-module .btn.primary {
  background: linear-gradient(180deg, var(--nav-3), var(--nav-2));
  border-color: var(--nav-2);
}

.btn.warn {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}

.btn.outcome {
  background: #ecfdf5;
  border-color: #99f6e4;
  color: #0f766e;
  font-weight: 700;
}

.btn.outcome:hover:not(:disabled) {
  border-color: var(--accent);
  background: #ccfbf1;
}

.btn.active-filter {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
  font-weight: 700;
}

.btn.danger {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.muted {
  color: var(--muted);
}

.chart-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 36px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.bar {
  height: 10px;
  background: #e8eef4;
  border-radius: 999px;
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.report-box {
  white-space: pre-wrap;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  line-height: 1.5;
}

.compact-report-box {
  max-height: 340px;
  overflow: auto;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 140;
  max-width: 420px;
  background: #17202a;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  display: none;
  animation: fadeUp 180ms ease both;
}

.toast.show {
  display: block;
}

.field-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: none;
}

.dialog-error {
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
  color: #b91c1c;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 750;
}

.modal-backdrop,
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  animation: fadeUp 160ms ease both;
}

.modal-card,
.drawer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.modal-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 20px;
}

.drawer-backdrop {
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.drawer {
  width: min(820px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 22px;
  animation: fadeUp 160ms ease both;
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.drawer-header span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}

.drawer-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dialog-header h2 {
  margin: 0;
  font-size: 20px;
}

.dialog-header p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:active {
  transform: scale(0.92);
}

/* Delivery close button (Concept 3 - Purple Brand Badge) */
.delivery-module .icon-btn {
  background: var(--nav-2);
  color: #ffffff;
}

.delivery-module .icon-btn:hover {
  background: var(--nav-3) !important;
  border-color: var(--nav-3) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(43, 25, 95, 0.3) !important;
  transform: translateY(-2px) scale(1.08) rotate(90deg);
}

/* Pipeline close button (Concept 3 - Teal Brand Badge) */
.pipeline-module .icon-btn {
  background: var(--accent);
  color: #ffffff;
}

.pipeline-module .icon-btn:hover {
  background: var(--accent-2) !important;
  border-color: var(--accent-2) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.3) !important;
  transform: translateY(-2px) scale(1.08) rotate(90deg);
}

.dialog-form {
  display: grid;
  gap: 16px;
}

.current-next-action {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.current-next-action span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.current-next-action strong {
  line-height: 1.45;
}

.dialog-actions {
  position: sticky;
  bottom: -20px;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 14px 0 0;
  background: var(--surface);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.detail-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-soft);
}

.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.drawer h3 {
  margin: 8px 0 14px;
}

.drawer-actions {
  position: sticky;
  bottom: -22px;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 -22px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.modal-actionbar,
.drawer-actions.modal-actionbar {
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
}

.actionbar-note {
  max-width: 340px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.actionbar-groups {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.action-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.close-outcome-group {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.action-group-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.drawer-section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}

.drawer-section h3 {
  margin: 0 0 8px;
}

.drawer-section p {
  margin: 0;
  line-height: 1.5;
}

.drawer-card-list {
  display: grid;
  gap: 8px;
}

.drawer-mini-card {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.drawer-mini-card strong {
  display: block;
  font-size: 13px;
}

.drawer-mini-card span {
  color: var(--muted);
  font-size: 12px;
}

.drawer-meta-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.drawer-meta-row span {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--surface-soft);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.drawer-card-note {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mobile-layout {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.72), rgba(243, 246, 250, 0.96)),
    radial-gradient(circle at 12% 0%, rgba(20, 184, 166, 0.13), transparent 28%);
}

.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #064e3b, #0f766e);
  color: #fff;
  box-shadow: 0 10px 28px rgba(6, 78, 59, 0.18);
}

.mobile-brand-row,
.mobile-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mobile-brand-row .orbit-home-link {
  font-size: 19px;
  font-weight: 900;
  color: #fff;
}

.mobile-module-switch {
  display: inline-flex;
  align-items: center;
  border: none;
  background: transparent;
  padding: 0;
  min-height: auto;
}

.mobile-module-switch span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
}

.mobile-module-switch .module-select {
  min-height: 24px;
  max-width: 108px;
  padding: 2px 24px 2px 10px;
}

.mobile-module-pill {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 850;
}

  .mobile-topbar .notification-button,
  .mobile-topbar .icon-logout {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
  }

  .mobile-topbar .user-chip.compact {
    width: 32px;
    height: 32px;
    min-height: 32px;
    flex: 0 0 auto;
    padding: 0;
    justify-content: center;
  }

  .mobile-module-switch {
    max-width: 190px;
  }

  .mobile-module-switch .module-select {
    max-width: 92px;
    font-size: 12px;
  }

.mobile-topbar .user-chip.compact span {
  display: none;
}

.mobile-topbar .demo-badge {
  display: none;
}

.mobile-main {
  padding: 12px 12px 88px;
}

.mobile-screen {
  display: grid;
  gap: 12px;
}

.mobile-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 12px;
  padding: 13px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.84));
  box-shadow: var(--shadow-soft);
}

.mobile-page-head h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.mobile-page-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.mobile-page-head .btn {
  min-height: 38px;
  white-space: nowrap;
}

.mobile-page-head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.mobile-header-owner-select select {
  min-height: 38px;
  padding: 0 10px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background-color: #ffffff;
  color: var(--accent);
  font-weight: 600;
  max-width: 140px;
  text-overflow: ellipsis;
  outline: none;
}

.mobile-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-metric {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-soft);
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  cursor: pointer;
}

.mobile-metric:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 24px rgba(64, 33, 138, 0.1) !important;
}

.mobile-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.mobile-metric strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.05;
}

.mobile-metric.red {
  border-color: #fecaca;
  background: #fff5f5;
}

.mobile-metric.red strong {
  color: var(--red);
}

.mobile-metric.amber {
  border-color: #fde68a;
  background: #fffbeb;
}

.mobile-metric.amber strong {
  color: var(--amber);
}

.mobile-metric.green {
  border-color: #99f6e4;
  background: #ecfdf5;
}

.mobile-metric.green strong {
  color: var(--accent);
}

.mobile-metric.blue {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.mobile-metric.blue strong {
  color: var(--blue);
}

.mobile-section-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.mobile-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-section-title h2 {
  margin: 0;
  font-size: 18px;
}

.mobile-section-title > span {
  display: inline-grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e;
  font-weight: 900;
}

.mobile-card-list {
  display: grid;
  gap: 9px;
}

.mobile-record-card,
.mobile-work-card,
.mobile-menu-card {
  display: grid;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px;
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.mobile-work-card.red,
.mobile-record-card.red {
  border-color: #fecaca;
  background: #fff7f7;
}

.mobile-work-card.amber,
.mobile-record-card.amber {
  border-color: #fde68a;
  background: #fffbeb;
}

.mobile-work-card.blue,
.mobile-record-card.blue {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.mobile-record-card.done {
  opacity: 0.72;
}

.mobile-card-top,
.mobile-money-row,
.mobile-card-actions,
.mobile-chip-row,
.mobile-pill-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.mobile-card-top {
  justify-content: space-between;
}

.mobile-chip-row.compact {
  gap: 5px;
  margin: 8px 0 2px;
}

.mobile-chip-row.compact .mini-chip {
  margin: 0;
  font-size: 11px;
  padding: 3px 7px;
}

.mobile-card-top strong,
.mobile-record-card h3,
.mobile-work-card h3,
.mobile-menu-card strong {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.mobile-record-card p,
.mobile-work-card p,
.mobile-menu-card span {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.mobile-record-card small,
.mobile-work-card small {
  color: var(--muted);
  font-size: 13px;
}

.mobile-money-row strong {
  color: var(--accent);
  font-size: 17px;
}

.mobile-money-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 7px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.mobile-next-step {
  border-left: 3px solid #99f6e4;
  padding-left: 8px;
}

.mobile-next-step.warn {
  border-color: #fcd34d;
  color: var(--amber);
  font-weight: 800;
}

.mobile-card-actions {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.mobile-card-actions a {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.mobile-pill-row {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding: 2px 2px 4px;
}

.mobile-pill-row .quick-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
}
.mobile-pill-row .quick-chip span {
  min-width: 24px;
  height: 24px;
}

.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 11px;
  background: var(--surface);
}

.mobile-search svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.mobile-search input {
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
}

.mobile-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 14px;
  color: var(--muted);
  text-align: center;
}

.mobile-bottom-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 18px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
}

.mobile-bottom-nav button {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 50px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.mobile-bottom-nav svg {
  width: 18px;
  height: 18px;
}

.mobile-bottom-nav strong {
  font-size: 11px;
}

.mobile-bottom-nav button.active {
  background: #ccfbf1;
  color: #0f766e;
}

.mobile-action-modal {
  width: min(560px, 100%);
}

.mobile-detail-backdrop {
  align-items: stretch;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
}

.mobile-detail-modal {
  width: min(560px, 100%);
  max-height: calc(100dvh - 20px);
  display: flex;
  flex-direction: column;
  padding: 16px 16px 0;
  overflow: hidden;
}

.mobile-detail-modal .dialog-header {
  flex: 0 0 auto;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.mobile-detail-modal .dialog-header h2 {
  font-size: 24px;
  line-height: 1.12;
}

.mobile-detail-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mobile-detail-stack {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 0 0 14px;
}

.mobile-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-fact-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface-soft);
}

.mobile-fact-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.mobile-fact-grid strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.mobile-detail-section {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.mobile-detail-section h3 {
  margin: 0;
  font-size: 17px;
}

.mobile-detail-section p,
.mobile-info-rows p {
  margin: 0;
  line-height: 1.45;
}

.mobile-info-rows {
  display: grid;
  gap: 6px;
}

.mobile-detail-actions {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 -16px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), #fff 32%);
  box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.08);
}

.mobile-detail-actions .btn {
  width: 100%;
  min-height: 44px;
}

.mobile-outcome-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
}

.timeline-item p {
  margin: 5px 0;
  line-height: 1.45;
}

.timeline-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .login-card {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .login-brand-panel {
    min-height: 320px;
  }

  .app-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .brand {
    min-width: 0;
  }

  .topbar-controls {
    justify-content: flex-start;
  }

  .project-context {
    width: min(100%, 420px);
  }

  .context-selector {
    width: min(100%, 420px);
    max-width: 420px;
  }

  .app-header .project-context {
    width: 100%;
  }

  .app-nav-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .kpi-grid,
  .two-col,
  .three-col,
  .filter-grid,
  .team-board {
    grid-template-columns: 1fr;
  }

  th {
    top: 0;
  }
}

@media (max-width: 720px) {
  .login-shell {
    padding: 16px;
  }

  .login-card {
    border-radius: 14px;
  }

  .login-brand-panel,
  .login-form-panel {
    padding: 24px;
  }

  .login-brand strong {
    font-size: 38px;
  }

  .login-brand-copy h1 {
    font-size: 30px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .app-header,
  .topbar {
    align-items: flex-start;
  }

  .app-header,
  .app-nav-row {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav,
  .nav-group {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-menu {
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    width: 100%;
    margin-top: 6px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }

  .settings-dropdown-cols {
    flex-direction: column;
  }

  .settings-dropdown-col {
    width: 100%;
    padding: 0;
  }

  .settings-dropdown-col:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  .nav-divider {
    width: 100%;
    height: 1px;
    margin: 4px 0;
  }

  .nav button {
    width: 100%;
  }

  .content {
    padding: 18px 14px 30px;
  }

  .review-hero,
  .meeting-stage-header {
    align-items: stretch;
    flex-direction: column;
  }

  .meeting-stage-actions,
  .review-export-actions {
    justify-content: flex-start;
  }

  .meeting-focus-grid {
    grid-template-columns: 1fr;
  }

  .meeting-nav {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mobile-layout .content {
    padding: 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal-backdrop,
  .drawer-backdrop {
    padding: 10px;
  }

  .modal-card,
  .drawer {
    max-height: calc(100vh - 20px);
    padding: 16px;
    border-radius: 14px;
  }

  .mobile-detail-modal {
    max-height: calc(100dvh - 20px);
    padding: 16px 16px 0;
  }

  .dialog-actions,
  .drawer-actions {
    bottom: -16px;
    margin-left: -2px;
    margin-right: -2px;
    padding: 12px 0 0;
  }

  .pipeline-contact-row {
    grid-template-columns: 1fr;
  }

  .modal-actionbar,
  .drawer-actions.modal-actionbar,
  .drawer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .actionbar-note {
    max-width: none;
  }

  .actionbar-groups,
  .action-group {
    align-items: stretch;
    flex-direction: column;
  }

  .close-outcome-group {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 10px;
  }

  .quick-chip {
    min-height: 40px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
  }
  .quick-chip span {
    min-width: 24px !important;
    height: 24px !important;
    font-size: 11px !important;
  }

}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandFade {
  from {
    opacity: 0;
    transform: scaleY(0.98) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scaleY(1) translateY(0);
  }
}

@keyframes slideFade {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes drawerIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

/* ==========================================================================
   Orbit Premium Beautification Styles (Option D)
   ========================================================================== */

/* Typography & Layout Smoothing */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism for Panels and Modals */
.panel, 
.modal-card {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 118, 110, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.pipeline-module .panel,
.pipeline-module .modal-card {
  border-color: rgba(20, 184, 166, 0.15) !important;
}

.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.2) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08) !important;
}

.pipeline-module .panel:hover {
  border-color: rgba(20, 184, 166, 0.3) !important;
}

/* Modal Card Fade/Slide Animation */
.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(15, 23, 42, 0.45) !important;
  animation: fadeIn 0.25s ease forwards;
}

.modal-card {
  animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* KPI Card Micro-Animations */
.kpi {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(229, 231, 235, 0.8) !important;
}

.kpi.clickable:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08) !important;
}

/* HSL Glowing Accents for KPI cards */
.kpi.blue {
  background: linear-gradient(135deg, #f0f6ff 0%, #eff6ff 100%) !important;
  border-color: rgba(191, 219, 254, 0.6) !important;
}
.kpi.blue:hover {
  border-color: var(--blue) !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12) !important;
}

.kpi.red {
  background: linear-gradient(135deg, #fff5f5 0%, #fff1f0 100%) !important;
  border-color: rgba(254, 202, 202, 0.6) !important;
}
.kpi.red:hover {
  border-color: var(--red) !important;
  box-shadow: 0 12px 24px rgba(180, 35, 24, 0.12) !important;
}

.kpi.amber {
  background: linear-gradient(135deg, #fffdf5 0%, #fffbeb 100%) !important;
  border-color: rgba(253, 230, 138, 0.6) !important;
}
.kpi.amber:hover {
  border-color: var(--amber) !important;
  box-shadow: 0 12px 24px rgba(183, 121, 31, 0.12) !important;
}

.kpi.green {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
  border-color: rgba(153, 246, 228, 0.6) !important;
}
.kpi.green:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.12) !important;
}

/* Table Row Smooth hover */
tr {
  transition: background-color 150ms ease;
}

tr:hover {
  background-color: rgba(var(--accent-rgb), 0.03) !important;
}

.selected-row {
  background-color: rgba(var(--accent-rgb), 0.06) !important;
  box-shadow: inset 3px 0 0 var(--accent);
}

/* Translucent inputs & select fields on focus */
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-2) !important;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14) !important;
  outline: none;
  transition: all 0.2s ease;
}

/* Translucent buttons hover state */
.btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.btn:active {
  transform: translateY(0);
}

/* Custom styled Context Integration Cards (New Feature Highlight) */
.delivery-context-section,
.linked-opp-context {
  margin-top: 15px !important;
}

.delivery-context-card,
.linked-opp-details {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08) 0%, rgba(255, 255, 255, 0.58) 100%) !important;
  border: 1px solid rgba(var(--accent-rgb), 0.25) !important;
  border-radius: 10px !important;
  padding: 14px !important;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.04) !important;
  position: relative;
  overflow: hidden;
}

.delivery-context-card::before,
.linked-opp-details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

.delivery-context-card p,
.linked-opp-details {
  margin: 6px 0 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.delivery-outcome-success {
  color: var(--accent) !important;
}

.jump-to-delivery {
  margin-top: 12px !important;
  background: var(--accent) !important;
  color: white !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}

/* Mobile layout overrides for Delivery Module */
.delivery-module.mobile-layout {
  background:
    linear-gradient(180deg, rgba(245, 243, 255, 0.72), rgba(243, 246, 250, 0.96)),
    radial-gradient(circle at 12% 0%, rgba(64, 33, 138, 0.12), transparent 28%) !important;
}

.delivery-module .mobile-topbar {
  background: linear-gradient(135deg, var(--nav), var(--nav-2)) !important;
  box-shadow: 0 10px 28px rgba(43, 25, 95, 0.18) !important;
}

.delivery-module .mobile-page-head {
  border: 1px solid rgba(64, 33, 138, 0.2) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 230, 250, 0.84)) !important;
}

.delivery-module .mobile-section-title > span {
  background: #eceafc !important;
  color: var(--nav-2) !important;
}

.delivery-module .mobile-money-row strong {
  color: var(--nav-2) !important;
}

.delivery-module .mobile-next-step {
  border-left-color: #b3a4f3 !important;
}

.delivery-module .mobile-card-actions a {
  color: var(--nav-2) !important;
}

.delivery-module .mobile-bottom-nav {
  border: 1px solid rgba(43, 25, 95, 0.18) !important;
}

.delivery-module .mobile-bottom-nav button.active {
  background: #eceafc !important;
  color: var(--nav-2) !important;
}

.delivery-module .timeline-dot {
  background: var(--nav-2) !important;
  box-shadow: 0 0 0 4px rgba(64, 33, 138, 0.14) !important;
}

/* Premium Mobile Info Card layout & styles */
.mobile-info-card {
  display: grid;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.mobile-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: var(--accent-2);
}

/* Specific hover highlight for Delivery Module info cards */
.delivery-module .mobile-info-card:hover {
  border-color: var(--nav-3) !important;
  box-shadow: 0 12px 28px rgba(43, 25, 95, 0.08) !important;
}

.mobile-info-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-info-card-header strong {
  font-size: 15px;
  color: var(--ink);
  font-weight: 700;
}

.mobile-info-card-header span {
  color: var(--muted);
  font-size: 12px;
}

.mobile-card-description {
  margin: 4px 0 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}

.mobile-info-card-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  margin: 4px 0;
}

.mobile-info-card-body > div {
  display: grid;
  gap: 2px;
}

.mobile-info-card-body span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mobile-info-card-body strong {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}

.mobile-info-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  flex-wrap: wrap;
}

.mobile-info-card-footer span {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Premium quick-chip overrides for Delivery Module */
.delivery-module .quick-chip span {
  background: rgba(64, 33, 138, 0.08) !important;
  color: var(--nav-2) !important;
}

.delivery-module .quick-chip.active {
  border-color: var(--nav-2) !important;
  background: #eceafc !important;
  color: var(--nav-2) !important;
  box-shadow: 0 0 0 3px rgba(64, 33, 138, 0.1) !important;
}

.delivery-module .quick-chip.active span {
  background: var(--nav-2) !important;
  color: #ffffff !important;
}

.delivery-module .quick-chip:hover:not(.active) {
  border-color: var(--nav-3) !important;
}

/* ==========================================================================
   Orbit Premium SVG Charts & Interactive Dashboard Layouts (Task 6)
   ========================================================================== */

.donut-bars-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 15px;
  padding: 10px 0;
}

.donut-chart-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  flex: 0 0 auto;
}

.donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* Start segments at 12 o'clock */
}

.donut-segment {
  transform-origin: 50% 50%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), stroke-width 0.2s ease;
  cursor: pointer;
}

.donut-segment:hover {
  transform: scale(1.05);
  stroke-width: 15;
}

.donut-center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  text-align: center;
}

.donut-center-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.donut-center-text {
  font-size: 11px;
  color: var(--muted);
  font-weight: 750;
  text-transform: uppercase;
  margin-top: 2px;
  letter-spacing: 0.05em;
}

/* Radial Coverage Gauge */
.radial-gauge-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto;
}

.radial-gauge-svg {
  width: 100%;
  height: 100%;
}

.radial-gauge-segment {
  transition: stroke-dasharray 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.radial-gauge-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  text-align: center;
}

.radial-gauge-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.radial-gauge-text {
  font-size: 9px;
  color: var(--muted);
  font-weight: 750;
  text-transform: uppercase;
  margin-top: 2px;
  letter-spacing: 0.03em;
}

/* Side-by-side layouts */
.donut-bars-container .chart-list {
  flex: 1 1 200px;
}

/* ==========================================================================
   Orbit Premium CSS Animations & Drag-and-Drop Polish (Task 7)
   ========================================================================== */

/* Active Easing Animations for Lists */
.bar-row .bar span {
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
  animation: growBar 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes growBar {
  from { width: 0% !important; }
}

/* High-fidelity card hover states */
.mobile-work-card,
.attention-card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.mobile-work-card:hover,
.attention-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08) !important;
}

.delivery-module .mobile-work-card:hover,
.delivery-module .attention-card:hover {
  box-shadow: 0 12px 24px rgba(64, 33, 138, 0.1) !important;
}

.pipeline-module .mobile-work-card:hover,
.pipeline-module .attention-card:hover {
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.12) !important;
}

/* Kanban Drag-and-drop visuals */
.kanban-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease !important;
}

.kanban-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg) scale(0.98);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16) !important;
}

.kanban-column.drag-over {
  border: 2px dashed var(--accent) !important;
  background: rgba(20, 184, 166, 0.03) !important;
  border-radius: 12px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.delivery-module .kanban-column.drag-over {
  border-color: var(--nav-3) !important;
  background: rgba(64, 33, 138, 0.03) !important;
}

/* Structured Mobile Status Summaries styling */
.report-structured-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.report-metadata-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: var(--surface-soft);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.report-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.report-meta-cell small {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 750;
  letter-spacing: 0.05em;
}

.report-meta-cell span {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.report-kpi-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-summary-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.report-summary-note p {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.report-summary-note p:last-child {
  margin-bottom: 0;
}

.report-kpi-chip {
  flex: 1 1 calc(50% - 4px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.report-kpi-chip.clickable {
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.report-kpi-chip.clickable:hover,
.report-kpi-chip.clickable:focus {
  background: var(--surface-soft);
  border-color: var(--nav-2);
}

.report-kpi-label {
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  text-align: left;
}

.report-kpi-value {
  font-size: 14px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
}

.report-kpi-value.blue {
  background: rgba(59, 130, 246, 0.08);
  color: #2563eb;
}

.report-kpi-value.red {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}

.report-kpi-value.amber {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
}

.report-details-accordion {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.report-details-accordion summary {
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
  background: var(--surface-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  font-weight: 700;
  color: var(--ink);
  user-select: none;
}

.report-details-accordion summary::-webkit-details-marker {
  display: none;
}

.report-details-accordion summary::after {
  content: "→";
  font-size: 13px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.report-details-accordion[open] summary::after {
  transform: rotate(90deg);
}

.report-accordion-badge {
  background: var(--nav-2);
  color: #ffffff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: auto;
  margin-right: 8px;
  font-weight: 800;
}

.report-accordion-content {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-item-row {
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-item-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.report-item-no {
  font-size: 11px;
  font-weight: 800;
  color: var(--nav-3);
  background: rgba(64, 33, 138, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.report-item-meta {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.report-item-desc {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.45;
  margin: 3px 0;
}

.report-item-footer {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--muted);
}

.report-item-footer strong {
  color: var(--ink);
}

.report-escalation-row {
  font-size: 13px;
  color: #dc2626;
  background: rgba(239, 68, 68, 0.04);
  border-left: 3px solid #ef4444;
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  line-height: 1.45;
}

.report-empty-text {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  padding: 4px 0;
}

.report-status-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
}

.report-status-badge.generated {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.report-status-badge.sent {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

/* Dashboard Drilldown Interactive Styles */
.clickable-row {
  cursor: pointer;
}
.clickable-row:hover td {
  background: rgba(109, 40, 217, 0.05) !important;
  color: var(--accent) !important;
}
.clickable-status-chip {
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.clickable-status-chip:hover {
  background: var(--surface-hover, rgba(0, 0, 0, 0.02));
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.bar-row[data-filter-type] {
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
  padding: 4px 6px;
  border-radius: 4px;
}
.bar-row[data-filter-type]:hover {
  background: rgba(0, 0, 0, 0.02);
  transform: translateX(3px);
}
.bar-row[data-filter-type]:hover span {
  color: var(--accent);
  font-weight: 600;
}
.donut-segment[data-filter-type] {
  cursor: pointer;
  transition: stroke-width 160ms ease, filter 160ms ease;
}
.donut-segment[data-filter-type]:hover {
  stroke-width: 14px;
  filter: brightness(1.05);
}
.clickable-metric-card {
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.clickable-metric-card:hover {
  background: var(--surface-hover, rgba(0, 0, 0, 0.02));
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Pipeline Chronological Activity Timeline styles */
.pipeline-activity-timeline {
  margin-top: 10px;
}
.timeline-dot.red {
  background: #b42318 !important;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.14) !important;
}
.timeline-dot.green {
  background: #287d3c !important;
  box-shadow: 0 0 0 4px rgba(40, 125, 60, 0.14) !important;
}
.timeline-dot.teal {
  background: #0f766e !important;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14) !important;
}
.timeline-meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}
.timeline-note-text {
  margin-top: 8px !important;
  padding: 8px 12px;
  background: var(--surface-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 13.5px;
  color: var(--ink);
  white-space: pre-wrap;
}

/* Dark Theme Variables Override */
body.dark-theme {
  color-scheme: dark;
  --ink: #e2e4f0; /* Default soft light grey */
  --ink-soft: #9fabbf; /* Default medium grey */
  --muted: #6b778d; /* Default subdued details */
  --line: rgba(255, 255, 255, 0.05); /* Translucent obsidian border */
  --line-strong: rgba(255, 255, 255, 0.09); /* Subtle divider */
  --surface: #0e1017; /* Slate-obsidian container bg */
  --surface-soft: #141722; /* Depth layer */
  --surface-raised: #1c2030; /* Elevated header/hover layer */
  --band: #06070a; /* Dark void base background */
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.5);
  --surface-hover: rgba(255, 255, 255, 0.04);
  background-image:
    radial-gradient(circle at 50% -20%, rgba(var(--accent-rgb), 0.06), transparent 50%),
    linear-gradient(180deg, #07080c 0%, #050609 100%);
  background-attachment: fixed;
}

/* Dynamic typography color tints per module */
body.dark-theme .delivery-module {
  --ink: #e4e4f2; /* Soft lavender-white */
  --ink-soft: #a2a4c2; /* Lavender-slate */
  --muted: #787a9e; /* Subdued slate-blue */
}

body.dark-theme .pipeline-module {
  --ink: #dfedea; /* Soft sage-white */
  --ink-soft: #9caea9; /* Sage-slate */
  --muted: #748882; /* Subdued slate-green */
}

/* Force override of hardcoded background colors in dark mode */
body.dark-theme .login-card,
body.dark-theme .dashboard-report-project select {
  background: var(--surface) !important;
}

body.dark-theme .attention-card,
body.dark-theme .mobile-info-card,
body.dark-theme .notification-item,
body.dark-theme .member-card,
body.dark-theme .report-kpi-chip,
body.dark-theme .report-details-accordion,
body.dark-theme .sales-org-card.compact,
body.dark-theme .status-chip {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 6px 16px rgba(0, 0, 0, 0.4) !important;
  color: var(--ink) !important;
}

body.dark-theme .attention-card:hover,
body.dark-theme .mobile-info-card:hover,
body.dark-theme .notification-item:hover,
body.dark-theme .member-card:hover,
body.dark-theme .report-kpi-chip.clickable:hover,
body.dark-theme .report-details-accordion summary:hover {
  background: var(--surface-soft) !important;
  border-color: var(--accent-2) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 28px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .panel,
body.dark-theme .modal-card {
  background: rgba(14, 16, 23, 0.94) !important;
  border: 1px solid var(--line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 50px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(20px);
}

body.dark-theme .panel:hover {
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 60px rgba(0, 0, 0, 0.75) !important;
}

body.dark-theme .drawer {
  background: rgba(14, 16, 23, 0.96) !important;
  border-left: 1px solid var(--line) !important;
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(24px);
}

body.dark-theme .meeting-focus-panel {
  background: var(--band) !important;
}

body.dark-theme .meeting-nav {
  background: var(--surface-soft) !important;
  border-color: var(--line) !important;
}

body.dark-theme .review-record-card {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

body.dark-theme .review-record-card:hover {
  border-color: var(--accent-2) !important;
  background: var(--surface-soft) !important;
}

body.dark-theme .notification-panel {
  background: rgba(14, 16, 23, 0.96) !important;
  border-color: var(--line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 70px rgba(0, 0, 0, 0.65) !important;
}

body.dark-theme .notification-guidance {
  background: rgba(20, 184, 166, 0.05) !important;
  border-color: rgba(20, 184, 166, 0.15) !important;
}

body.dark-theme .notification-guidance span {
  color: var(--ink-soft) !important;
}

body.dark-theme .dashboard-item {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%) !important;
  border: 1px solid var(--line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

body.dark-theme .dashboard-item:hover {
  background: linear-gradient(180deg, var(--surface-soft) 0%, var(--surface-raised) 100%) !important;
  border-color: var(--accent-2) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 24px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .kanban-column {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

body.dark-theme .delivery-context-card,
body.dark-theme .linked-opp-details {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05) 0%, rgba(14, 16, 23, 0.6) 100%) !important;
  border: 1px solid rgba(var(--accent-rgb), 0.2) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
}

body.dark-theme .btn.subtle {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: var(--line) !important;
  color: var(--muted) !important;
}

body.dark-theme .btn.subtle:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--ink) !important;
}

body.dark-theme .btn.warn {
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
  color: #fbbf24 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

body.dark-theme .btn.warn:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2) !important;
}

body.dark-theme .btn.danger {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
  color: #f87171 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

body.dark-theme .btn.danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #f87171 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2) !important;
}

/* Table dark mode overrides */
body.dark-theme table {
  background: var(--surface) !important;
}

body.dark-theme th {
  background: var(--surface-raised) !important;
  color: var(--ink) !important;
  border-bottom: 1px solid var(--line) !important;
}

body.dark-theme td {
  border-bottom: 1px solid var(--line) !important;
  color: var(--ink) !important;
}

body.dark-theme tr:hover td {
  background: rgba(255, 255, 255, 0.015) !important;
}

/* Info Icon, Tooltip and Select overrides */
body.dark-theme .info-icon {
  background: var(--surface-soft) !important;
  border-color: var(--line) !important;
  color: var(--ink-soft) !important;
}

body.dark-theme .floating-info-tooltip {
  background: var(--surface-raised) !important;
  border-color: var(--line-strong) !important;
  color: var(--ink) !important;
}

body.dark-theme .mobile-header-owner-select select {
  background-color: var(--surface-soft) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}

/* Item signals and health flags overrides */
body.dark-theme .item-signals span,
body.dark-theme .health-flags span {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}

body.dark-theme .item-signals span.red,
body.dark-theme .health-flags span.red {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
  color: #f87171 !important;
}

body.dark-theme .item-signals span.amber,
body.dark-theme .health-flags span.amber {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
  color: #fbbf24 !important;
}

body.dark-theme .item-signals span.blue,
body.dark-theme .health-flags span.blue {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
  color: #60a5fa !important;
}

/* Mobile KPI cards overrides */
body.dark-theme .mobile-metric.red {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
}
body.dark-theme .mobile-metric.red strong {
  color: #f87171 !important;
  text-shadow: 0 0 10px rgba(248, 113, 113, 0.3) !important;
}

body.dark-theme .mobile-metric.amber {
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}
body.dark-theme .mobile-metric.amber strong {
  color: #fbbf24 !important;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.3) !important;
}

body.dark-theme .mobile-metric.green {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
}
body.dark-theme .mobile-metric.green strong {
  color: var(--accent-2) !important;
  text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3) !important;
}

/* Mobile work card & record card overrides */
body.dark-theme .mobile-work-card.red,
body.dark-theme .mobile-record-card.red {
  border-color: rgba(239, 68, 68, 0.25) !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

body.dark-theme .mobile-work-card.amber,
body.dark-theme .mobile-record-card.amber {
  border-color: rgba(245, 158, 11, 0.25) !important;
  background: rgba(245, 158, 11, 0.08) !important;
}

body.dark-theme .mobile-work-card.blue,
body.dark-theme .mobile-record-card.blue {
  border-color: rgba(59, 130, 246, 0.25) !important;
  background: rgba(59, 130, 246, 0.08) !important;
}

/* Attention Cards severity overrides */
body.dark-theme .attention-card.red {
  border-color: rgba(239, 68, 68, 0.25) !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

body.dark-theme .attention-card.amber {
  border-color: rgba(245, 158, 11, 0.25) !important;
  background: rgba(245, 158, 11, 0.08) !important;
}

/* Report KPI values overrides */
body.dark-theme .report-kpi-value.blue {
  color: #60a5fa !important;
}
body.dark-theme .report-kpi-value.red {
  color: #f87171 !important;
}
body.dark-theme .report-kpi-value.amber {
  color: #fbbf24 !important;
}

/* Notification Item overrides */
body.dark-theme .notification-item.red {
  border-color: rgba(239, 68, 68, 0.3) !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

body.dark-theme .notification-item.amber {
  border-color: rgba(245, 158, 11, 0.3) !important;
  background: rgba(245, 158, 11, 0.08) !important;
}

body.dark-theme .notification-item.module-delivery {
  border-color: rgba(122, 92, 255, 0.25) !important;
  background: linear-gradient(90deg, rgba(122, 92, 255, 0.15), rgba(14, 16, 23, 0.6)) !important;
  box-shadow: inset 4px 0 0 #7a5cff !important;
}

body.dark-theme .notification-item.module-delivery.red {
  border-color: rgba(239, 68, 68, 0.3) !important;
  background: linear-gradient(90deg, rgba(122, 92, 255, 0.15), rgba(239, 68, 68, 0.08)) !important;
}

body.dark-theme .notification-item.module-delivery.amber {
  border-color: rgba(245, 158, 11, 0.3) !important;
  background: linear-gradient(90deg, rgba(122, 92, 255, 0.15), rgba(245, 158, 11, 0.08)) !important;
}

body.dark-theme .notification-item.module-pipeline {
  border-color: rgba(20, 184, 166, 0.25) !important;
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.15), rgba(14, 16, 23, 0.6)) !important;
  box-shadow: inset 4px 0 0 #0f766e !important;
}

body.dark-theme .notification-item.module-pipeline.red {
  border-color: rgba(239, 68, 68, 0.3) !important;
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.15), rgba(239, 68, 68, 0.08)) !important;
}

body.dark-theme .notification-item.module-pipeline.amber {
  border-color: rgba(245, 158, 11, 0.3) !important;
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.15), rgba(245, 158, 11, 0.08)) !important;
}

/* Dark mode inputs, selects & textareas styling override */
body.dark-theme input[type="text"],
body.dark-theme input[type="email"],
body.dark-theme input[type="password"],
body.dark-theme input[type="search"],
body.dark-theme input[type="date"],
body.dark-theme select,
body.dark-theme textarea {
  background: var(--surface-soft) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
}

body.dark-theme select option {
  background: var(--surface-soft) !important;
  color: var(--ink) !important;
}

body.dark-theme input:focus,
body.dark-theme select:focus,
body.dark-theme textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.15) !important;
  outline: none !important;
}

/* Dark topbar background */
body.dark-theme .topbar {
  background: rgba(19, 20, 28, 0.85) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line) !important;
}

/* Badge dark mode overrides */
body.dark-theme .badge {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--ink) !important;
}
body.dark-theme .badge.red {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #f87171 !important;
}
body.dark-theme .badge.amber {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #fbbf24 !important;
}
body.dark-theme .badge.green {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #34d399 !important;
}
body.dark-theme .badge.blue {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #60a5fa !important;
}

/* Mini-chip dark mode overrides */
body.dark-theme .mini-chip {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}
body.dark-theme .mini-chip.red {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
}
body.dark-theme .mini-chip.amber {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
}
body.dark-theme .mini-chip.blue {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
}

/* KPI dark mode glowing accents */
body.dark-theme .kpi {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
}

body.dark-theme .kpi strong {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .kpi.blue {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.02) 100%) !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
}
body.dark-theme .kpi.blue strong {
  color: #60a5fa !important;
  text-shadow: 0 0 12px rgba(96, 165, 250, 0.4) !important;
}
body.dark-theme .kpi.blue:hover {
  border-color: var(--blue) !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18) !important;
}

body.dark-theme .kpi.red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.02) 100%) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
}
body.dark-theme .kpi.red strong {
  color: #f87171 !important;
  text-shadow: 0 0 12px rgba(248, 113, 113, 0.4) !important;
}
body.dark-theme .kpi.red:hover {
  border-color: var(--red) !important;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.18) !important;
}

body.dark-theme .kpi.amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 100%) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}
body.dark-theme .kpi.amber strong {
  color: #fbbf24 !important;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.4) !important;
}
body.dark-theme .kpi.amber:hover {
  border-color: var(--amber) !important;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.18) !important;
}

body.dark-theme .kpi.green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
}
body.dark-theme .kpi.green strong {
  color: var(--accent-2) !important;
  text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.45) !important;
}
body.dark-theme .kpi.green:hover {
  border-color: var(--green) !important;
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.18) !important;
}

/* Theme Toggle Button styling matching notification button */
.theme-toggle-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 100ms ease;
  padding: 0;
}

.theme-toggle-button:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.theme-toggle-button:active {
  transform: scale(0.95);
}

.theme-toggle-button svg {
  width: 17px;
  height: 17px;
}

/* Meeting Stage and navigation overrides for dark mode */
body.dark-theme .meeting-stage-header {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(122, 92, 255, 0.08) 100%) !important;
}

body.dark-theme .layout.pipeline-module .meeting-stage-header {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(20, 184, 166, 0.08) 100%) !important;
}

body.dark-theme .meeting-nav button.active {
  background: rgba(122, 92, 255, 0.12) !important;
  border-color: var(--accent) !important;
  color: var(--ink) !important;
  box-shadow: 0 0 0 3px rgba(122, 92, 255, 0.18) !important;
}

body.dark-theme .meeting-nav button.active em {
  background: rgba(122, 92, 255, 0.2) !important;
  color: #a855f7 !important;
}

body.dark-theme .layout.pipeline-module .meeting-nav button.active {
  background: rgba(20, 184, 166, 0.12) !important;
  border-color: var(--accent) !important;
  color: var(--ink) !important;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18) !important;
}

body.dark-theme .layout.pipeline-module .meeting-nav button.active em {
  background: rgba(20, 184, 166, 0.2) !important;
  color: #2dd4bf !important;
}

body.dark-theme .layout.pipeline-module .meeting-nav button.active em {
  background: var(--accent) !important;
  color: var(--ink) !important;
}

body.dark-theme .layout.pipeline-module .meeting-nav em {
  background: var(--surface) !important;
  color: var(--muted) !important;
}

body.dark-theme .drawer-actions {
  background: var(--surface) !important;
  border-top: 1px solid var(--line) !important;
}

/* Nav dropdown styling and hover overrides for dark mode */
body.dark-theme .nav-dropdown {
  border-color: var(--line) !important;
  background: rgba(19, 20, 28, 0.96) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.dark-theme .nav-dropdown button:hover,
body.dark-theme .nav-dropdown button:focus {
  background: rgba(122, 92, 255, 0.12) !important;
  border-color: var(--accent-2) !important;
  color: var(--ink) !important;
  box-shadow: inset 3px 0 0 var(--accent) !important;
}

body.dark-theme .layout.pipeline-module .nav-dropdown button:hover,
body.dark-theme .layout.pipeline-module .nav-dropdown button:focus {
  background: rgba(20, 184, 166, 0.12) !important;
  border-color: var(--accent) !important;
  color: var(--ink) !important;
  box-shadow: inset 3px 0 0 var(--accent) !important;
}

/* Header switcher and context selector overrides for dark mode */
body.dark-theme .module-select,
body.dark-theme .app-header .project-context {
  background: var(--surface-soft) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
}

body.dark-theme .module-select:hover,
body.dark-theme .module-select:focus,
body.dark-theme .app-header .project-context:focus {
  background: var(--surface-raised) !important;
  border-color: var(--accent-2) !important;
}

/* Quick chip text color overrides in dark mode */
body.dark-theme .quick-chip {
  color: var(--muted) !important;
}

body.dark-theme .quick-chip span {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--ink) !important;
}

body.dark-theme .quick-chip.active {
  background: rgba(var(--accent-rgb), 0.12) !important;
  color: var(--accent-2) !important;
  border-color: var(--accent-2) !important;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18) !important;
}

body.dark-theme .quick-chip.active span {
  background: var(--accent-2) !important;
  color: var(--band) !important;
}

/* Delivery-specific quick-chip overrides in dark mode */
body.dark-theme .delivery-module .quick-chip.active {
  background: rgba(122, 92, 255, 0.12) !important;
  color: #c084fc !important;
  border-color: #a855f7 !important;
  box-shadow: 0 0 0 3px rgba(122, 92, 255, 0.18) !important;
}

body.dark-theme .delivery-module .quick-chip.active span {
  background: #a855f7 !important;
  color: #0b0f19 !important;
}

body.dark-theme .delivery-module .quick-chip span {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--ink) !important;
}

/* Navigation dropdown item text color overrides in dark mode */
body.dark-theme .nav-dropdown span:not(.nav-icon),
body.dark-theme .nav-dropdown strong {
  color: var(--ink) !important;
}

body.dark-theme .nav-dropdown small {
  color: var(--muted) !important;
}

/* Mobile layout dark mode overrides */
body.dark-theme .mobile-page-head {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(20, 184, 166, 0.08)) !important;
  border-color: rgba(20, 184, 166, 0.2) !important;
}

body.dark-theme .delivery-module .mobile-page-head {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(122, 92, 255, 0.08)) !important;
  border-color: rgba(122, 92, 255, 0.2) !important;
}

body.dark-theme .mobile-bottom-nav {
  background: rgba(14, 16, 23, 0.92) !important;
  border-color: var(--line) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(14px) !important;
}

body.dark-theme .mobile-bottom-nav button {
  color: var(--ink-soft) !important;
}

body.dark-theme .mobile-bottom-nav button.active {
  background: rgba(20, 184, 166, 0.15) !important;
  color: var(--accent-2) !important;
}

body.dark-theme .delivery-module .mobile-bottom-nav button.active {
  background: rgba(122, 92, 255, 0.15) !important;
  color: #a78bfa !important;
}

/* ── Mobile KPI card dark-mode overrides (all colour variants) ─────────────── */
body.dark-theme .mobile-metric {
  background: var(--surface-soft) !important;
  border-color: var(--line) !important;
}

body.dark-theme .mobile-metric.blue {
  background: rgba(59, 130, 246, 0.08) !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
}
body.dark-theme .mobile-metric.blue strong {
  color: #60a5fa !important;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.3) !important;
}

body.dark-theme .mobile-metric.red {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
}
body.dark-theme .mobile-metric.red strong {
  color: #f87171 !important;
  text-shadow: 0 0 10px rgba(248, 113, 113, 0.3) !important;
}

body.dark-theme .mobile-metric.amber {
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}
body.dark-theme .mobile-metric.amber strong {
  color: #fbbf24 !important;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.3) !important;
}

body.dark-theme .mobile-metric.green {
  background: rgba(20, 184, 166, 0.08) !important;
  border-color: rgba(20, 184, 166, 0.25) !important;
}
body.dark-theme .mobile-metric.green strong {
  color: #2dd4bf !important;
  text-shadow: 0 0 10px rgba(45, 212, 191, 0.3) !important;
}

body.dark-theme .mobile-metric span {
  color: var(--muted) !important;
}

/* ── Mobile page-head hero gradient (delivery & pipeline) ───────────────────── */
body.dark-theme .mobile-page-head {
  background: linear-gradient(135deg, rgba(20, 23, 34, 0.92), rgba(20, 184, 166, 0.06)) !important;
  border-color: rgba(20, 184, 166, 0.18) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .delivery-module .mobile-page-head {
  background: linear-gradient(135deg, rgba(20, 23, 34, 0.92), rgba(122, 92, 255, 0.06)) !important;
  border-color: rgba(122, 92, 255, 0.18) !important;
}

/* ── Mobile section cards ────────────────────────────────────────────────────── */
body.dark-theme .mobile-section-card {
  background: var(--surface) !important;
  border-color: var(--line) !important;
}

/* ── Mobile page body background ─────────────────────────────────────────────── */
@media (max-width: 767px) {
  body.dark-theme .mobile-layout {
    background: transparent !important;
  }
  body.dark-theme .mobile-content {
    background: transparent !important;
  }
}

/* ── Premium Next Action Glow Banner ─────────────────────────────────────────── */
.next-action-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(122, 92, 255, 0.03);
  border-left: 4px solid var(--purple);
  border-radius: 4px 8px 8px 4px;
  padding: 16px;
  margin: 12px 0 20px 0;
  box-shadow: inset 0 0 12px rgba(122, 92, 255, 0.02);
  transition: all 0.2s ease;
  border: 1px solid rgba(122, 92, 255, 0.08);
  border-left-width: 4px;
}

body.dark-theme .next-action-banner {
  background: rgba(122, 92, 255, 0.06) !important;
  border-left-color: #a78bfa !important;
  border-top-color: rgba(167, 139, 250, 0.15) !important;
  border-right-color: rgba(167, 139, 250, 0.15) !important;
  border-bottom-color: rgba(167, 139, 250, 0.15) !important;
  box-shadow: inset 0 0 16px rgba(122, 92, 255, 0.03), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.pipeline-module .next-action-banner {
  background: rgba(20, 184, 166, 0.03);
  border-left-color: var(--teal);
  box-shadow: inset 0 0 12px rgba(20, 184, 166, 0.02);
  border-color: rgba(20, 184, 166, 0.08);
  border-left-width: 4px;
}

body.dark-theme .pipeline-module .next-action-banner {
  background: rgba(20, 184, 166, 0.06) !important;
  border-left-color: #2dd4bf !important;
  border-top-color: rgba(45, 212, 191, 0.15) !important;
  border-right-color: rgba(45, 212, 191, 0.15) !important;
  border-bottom-color: rgba(45, 212, 191, 0.15) !important;
  box-shadow: inset 0 0 16px rgba(20, 184, 166, 0.03), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.next-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(122, 92, 255, 0.08);
  color: var(--purple);
  flex-shrink: 0;
  margin-top: 1px;
}

body.dark-theme .next-action-icon {
  background: rgba(167, 139, 250, 0.15) !important;
  color: #a78bfa !important;
}

.pipeline-module .next-action-icon {
  background: rgba(20, 184, 166, 0.08);
  color: var(--teal);
}

body.dark-theme .pipeline-module .next-action-icon {
  background: rgba(45, 212, 191, 0.15) !important;
  color: #2dd4bf !important;
}

.next-action-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.next-action-body {
  flex-grow: 1;
}

.next-action-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.next-action-meta-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(122, 92, 255, 0.08);
  color: var(--purple);
}

body.dark-theme .next-action-meta-badge {
  background: rgba(167, 139, 250, 0.15) !important;
  color: #a78bfa !important;
}

.pipeline-module .next-action-meta-badge {
  background: rgba(20, 184, 166, 0.08);
  color: var(--teal);
}

body.dark-theme .pipeline-module .next-action-meta-badge {
  background: rgba(45, 212, 191, 0.15) !important;
  color: #2dd4bf !important;
}

.next-action-content {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

body.dark-theme .next-action-content {
  color: #e2e8f0;
}
