:root {
  --aw-bg: #f5f7fb;
  --aw-surface: #ffffff;
  --aw-surface-soft: #fafbfd;
  --aw-border: #e6eaf2;
  --aw-border-strong: #d4dbe8;
  --aw-text: #111827;
  --aw-text-soft: #4b5563;
  --aw-text-dim: #6b7280;
  --aw-accent: #2563eb;
  --aw-accent-soft: #e8efff;
  --aw-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --aw-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
  --aw-radius-sm: 10px;
  --aw-radius-md: 14px;
  --aw-radius-lg: 18px;
  --aw-anim: 180ms ease;
  --aw-good: #198754;
  --aw-warn: #b45309;
  --aw-primary-soft: #eff4ff;
}

body {
  background:
    radial-gradient(1200px 600px at 95% -15%, #eef3ff 0%, transparent 60%),
    radial-gradient(1100px 560px at -5% -20%, #eff6ff 0%, transparent 58%),
    var(--aw-bg);
  color: var(--aw-text);
}

.analyst-shell {
  max-width: none;
  width: calc(100% - 24px);
  padding-bottom: 24px;
}

.analyst-hero {
  margin-top: 16px;
  border-radius: var(--aw-radius-lg);
  border: 1px solid var(--aw-border);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: var(--aw-shadow-sm);
}

.analyst-hero .service-menu {
  gap: 8px;
}

.analyst-hero .service-menu a {
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--aw-text-soft);
  transition: all var(--aw-anim);
}

.analyst-hero .service-menu a:hover {
  border-color: var(--aw-border);
  background: var(--aw-surface-soft);
  color: var(--aw-text);
}

.analyst-hero .service-menu a.is-active {
  border-color: #c6d5fb;
  background: var(--aw-accent-soft);
  color: #1d4ed8;
}

.analyst-hero .eyebrow {
  color: #6e7695;
  letter-spacing: 0.08em;
}

.analyst-hero h1 {
  color: #0f172a;
  letter-spacing: -0.02em;
}

.session-shell {
  border: 1px solid var(--aw-border);
  border-radius: var(--aw-radius-md);
  background: var(--aw-surface-soft);
  padding: 12px;
  margin-bottom: 12px;
}

.session-shell .status {
  margin: 0;
}

.analyst-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  margin-top: 16px;
}

.analyst-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.analyst-chip {
  border: 1px solid #dbe3f1;
  background: #f8fbff;
  color: #475467;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 10px;
}

.analyst-chip.is-active {
  border-color: #bfd0f8;
  background: #edf3ff;
  color: #1d4ed8;
}

.analyst-toolbar > * {
  margin-top: 0 !important;
}

.analyst-range {
  min-width: 240px;
}

.analyst-link-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.analyst-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.analyst-main {
  min-width: 0;
  grid-column: 2;
}

.analyst-sidebar {
  grid-column: 1;
  position: sticky;
  top: 16px;
  margin-top: 16px;
  border-radius: var(--aw-radius-md);
  border: 1px solid var(--aw-border);
  background: var(--aw-surface);
  box-shadow: var(--aw-shadow-sm);
  padding: 16px;
}

.analyst-sidebar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e6eaf2;
}

.analyst-sidebar-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.analyst-sidebar-title {
  font-size: 0.86rem;
  font-weight: 750;
  color: #0f172a;
}

.analyst-sidebar-sub {
  font-size: 0.72rem;
  color: #667085;
}

.analyst-panel {
  margin-top: 16px;
  border-radius: var(--aw-radius-md);
  border: 1px solid var(--aw-border);
  background: var(--aw-surface);
  box-shadow: var(--aw-shadow-sm);
  padding: 16px;
}

.analyst-panel > h2,
.analyst-sidebar > h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.analyst-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.aw-help {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475467;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  padding: 0;
  transform: none !important;
}

.aw-help::after {
  content: attr(data-tip);
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 220px;
  max-width: 360px;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 8px;
  border: 1px solid #1e293b;
  padding: 8px 10px;
  font-size: 0.74rem;
  line-height: 1.45;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28);
  opacity: 0;
  pointer-events: none;
  z-index: 25;
  white-space: normal;
}

.aw-help:hover::after,
.aw-help:focus-visible::after {
  opacity: 1;
}

.analyst-side-nav {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.analyst-side-nav a {
  display: block;
  text-decoration: none;
  border-radius: var(--aw-radius-sm);
  border: 1px solid var(--aw-border);
  background: var(--aw-surface-soft);
  color: var(--aw-text-soft);
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--aw-anim);
}

.analyst-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.analyst-summary-card {
  border: 1px solid var(--aw-border);
  border-radius: var(--aw-radius-sm);
  background: #fff;
  padding: 12px;
  transition: border-color var(--aw-anim), box-shadow var(--aw-anim);
}

.analyst-summary-card:hover {
  border-color: #cfd9ee;
  box-shadow: var(--aw-shadow-sm);
}

.analyst-summary-card.tone-good {
  border-color: #c8e8d5;
  background: #f7fcf9;
}

.analyst-summary-card.tone-warn {
  border-color: #f2d6b9;
  background: #fffaf4;
}

.analyst-summary-label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #667085;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.analyst-summary-value {
  margin-top: 5px;
  font-size: 1.02rem;
  color: #101828;
  font-weight: 750;
}

.analyst-summary-sub {
  margin-top: 4px;
  font-size: 0.78rem;
  color: #475467;
  line-height: 1.4;
}

.analyst-alert-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.analyst-alert {
  border-radius: var(--aw-radius-sm);
  border: 1px solid var(--aw-border);
  background: #fff;
  padding: 10px 12px;
}

.analyst-alert-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.analyst-alert-body {
  margin-top: 3px;
  font-size: 0.8rem;
  color: #475467;
}

.analyst-alert.ok {
  border-color: #cfe7d7;
  background: #f7fcf8;
}

.analyst-alert.warn {
  border-color: #f3d2b3;
  background: #fffaf5;
}

.analyst-nav-btn {
  width: 100%;
  text-align: left;
  margin-top: 0 !important;
  border-radius: var(--aw-radius-sm);
  border: 1px solid var(--aw-border);
  background: var(--aw-surface-soft);
  color: var(--aw-text-soft);
  padding: 10px 12px 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--aw-anim);
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
}

.analyst-nav-btn:hover {
  border-color: #cfd8ea;
  color: #1f2937;
  background: #f5f8ff;
}

.analyst-nav-btn.is-active {
  border-color: #c8d4f6;
  background: #eef3ff;
  color: #1d4ed8;
}

.analyst-nav-btn.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: #1d4ed8;
}

.analyst-nav-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid #d7dff0;
  background: #f8faff;
  color: #475467;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
}

.analyst-nav-btn.is-active .analyst-nav-icon {
  border-color: #bfd1fb;
  background: #eaf1ff;
  color: #1d4ed8;
}

.analyst-view-hidden {
  display: none !important;
}

.analyst-side-nav a:hover {
  border-color: #cfd8ea;
  color: #1f2937;
  background: #f5f8ff;
  transform: translateY(-1px);
}

.analyst-side-nav a:active {
  transform: translateY(0);
}

.analyst-side-box {
  margin-top: 8px;
  border-radius: var(--aw-radius-sm);
  border: 1px solid var(--aw-border);
  background: var(--aw-surface-soft);
  padding: 12px;
}

.analyst-side-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.analyst-side-value {
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

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

.analyst-kpi {
  border-radius: var(--aw-radius-sm);
  border: 1px solid var(--aw-border);
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  padding: 14px;
  transition: border-color var(--aw-anim), box-shadow var(--aw-anim), transform var(--aw-anim);
}

.analyst-kpi:hover {
  border-color: #ccd7ee;
  box-shadow: var(--aw-shadow-sm);
  transform: translateY(-1px);
}

.analyst-kpi-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--aw-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.analyst-kpi-value {
  margin-top: 6px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.analyst-kpi-sub {
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--aw-text-soft);
}

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

.analyst-complexity-card {
  border-radius: var(--aw-radius-sm);
  border: 1px solid var(--aw-border);
  background: var(--aw-surface-soft);
  padding: 12px;
}

.analyst-complexity-label {
  font-size: 0.76rem;
  color: var(--aw-text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.analyst-complexity-value {
  margin-top: 4px;
  font-size: 1.2rem;
  font-weight: 750;
  color: #0f172a;
}

.analyst-complexity-sub {
  margin-top: 3px;
  font-size: 0.76rem;
  color: var(--aw-text-soft);
}

.analyst-card-surface {
  border: 1px solid var(--aw-border);
  border-radius: var(--aw-radius-sm);
  background: var(--aw-surface-soft);
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.analyst-card-surface h3 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: #111827;
}

.analyst-card-surface .analyst-table {
  margin-top: 2px;
}

.analyst-trend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 184px;
}

.analyst-bar {
  border: 1px solid var(--aw-border);
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  display: grid;
  gap: 4px;
  min-height: 84px;
}

.analyst-bar-fill {
  width: 100%;
  border-radius: 6px;
  min-height: 4px;
  background: linear-gradient(180deg, #4f87ff, var(--aw-accent));
}

.analyst-bar-label {
  font-size: 0.7rem;
  color: var(--aw-text-dim);
}

.analyst-bar-value {
  font-size: 0.73rem;
  font-weight: 700;
  color: #1f2937;
}

.analyst-stack {
  display: grid;
  gap: 8px;
}

.analyst-stack-row {
  border: 1px solid var(--aw-border);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.analyst-stack-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--aw-text-soft);
}

.analyst-stack-track {
  width: 100%;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: #e8edf8;
}

.analyst-stack-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f87ff, var(--aw-accent));
}

.analyst-mix-grid {
  display: grid;
  gap: 8px;
}

.analyst-mix-row {
  display: grid;
  grid-template-columns: 220px 1fr 84px;
  gap: 8px;
  align-items: center;
}

.analyst-mix-label {
  font-size: 0.8rem;
  color: #374151;
}

.analyst-mix-track {
  height: 9px;
  border-radius: 999px;
  background: #e8edf8;
}

.analyst-mix-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b8dff, var(--aw-accent));
}

.analyst-mix-value {
  text-align: right;
  font-size: 0.78rem;
  color: #374151;
  font-weight: 700;
}

.analyst-mini-bars {
  display: grid;
  gap: 8px;
}

.analyst-mini-bar-row {
  display: grid;
  grid-template-columns: 78px 1fr 84px;
  gap: 8px;
  align-items: center;
}

.analyst-mini-bar-label {
  font-size: 0.78rem;
  color: #475467;
}

.analyst-mini-bar-track {
  height: 8px;
  border-radius: 999px;
  background: #e8edf8;
}

.analyst-mini-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.analyst-mini-bar-value {
  text-align: right;
  font-size: 0.78rem;
  color: #344054;
  font-weight: 700;
}

.analyst-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--aw-border);
  border-radius: 10px;
  background: #fff;
  font-variant-numeric: tabular-nums;
}

.analyst-table th,
.analyst-table td {
  text-align: left;
  border-bottom: 1px solid var(--aw-border);
  padding: 10px 10px;
  font-size: 0.8rem;
}

.analyst-table th {
  background: #f8faff;
  color: #334155;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.72rem;
}

.analyst-table tbody tr:last-child td {
  border-bottom: none;
}

.analyst-table tbody tr:hover td {
  background: #f9fbff;
}

.analyst-table tbody tr:nth-child(even) td {
  background: #fcfdff;
}

.analyst-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 10px;
}

.analyst-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: #475467;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e1e7f2;
  background: #fbfdff;
}

.analyst-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.analyst-legend-dot-primary {
  background: #1d4ed8;
}

.analyst-legend-dot-soft {
  background: #93c5fd;
}

.analyst-legend-dot-alert {
  background: #f59e0b;
}

.decision-card {
  border: 1px solid var(--aw-border);
  border-radius: var(--aw-radius-sm);
  background: #fff;
  padding: 12px;
  box-shadow: var(--aw-shadow-sm);
}

.decision-card + .decision-card {
  margin-top: 8px;
}

.decision-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.decision-card-body {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #374151;
}

.insights p {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--aw-border);
  border-radius: 10px;
  background: #fff;
  color: #334155;
  line-height: 1.5;
  font-size: 0.84rem;
}

.insights p + p {
  margin-top: 8px;
}

.analyst-empty {
  border: 1px dashed var(--aw-border-strong);
  border-radius: 10px;
  background: #fbfcff;
  color: #64748b;
  font-size: 0.84rem;
  padding: 16px;
}

.analyst-studio-frame {
  width: 100%;
  min-height: 78vh;
  border: 1px solid var(--aw-border);
  border-radius: var(--aw-radius-md);
  background: #fff;
}

.status {
  color: var(--aw-text-soft);
}

/* Visual states */
button,
.btn-secondary,
.analyst-link-btn,
select,
input,
a {
  transition: all var(--aw-anim);
}

button:hover:not(:disabled),
.btn-secondary:hover:not(:disabled),
.analyst-link-btn:hover {
  transform: translateY(-1px);
}

button:active:not(:disabled),
.btn-secondary:active:not(:disabled),
.analyst-link-btn:active {
  transform: translateY(0);
}

button:disabled,
.btn-secondary:disabled,
select:disabled,
input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(37, 99, 235, 0.45);
  border-radius: 8px;
}

/* Lightweight loading skin if host uses aria-busy */
[aria-busy="true"] .analyst-kpi,
[aria-busy="true"] .analyst-complexity-card,
[aria-busy="true"] .analyst-card-surface {
  position: relative;
  overflow: hidden;
}

[aria-busy="true"] .analyst-kpi::after,
[aria-busy="true"] .analyst-complexity-card::after,
[aria-busy="true"] .analyst-card-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.75) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: analyst-shimmer 1.1s linear infinite;
}

@keyframes analyst-shimmer {
  to { transform: translateX(100%); }
}

@media (max-width: 1280px) {
  .analyst-layout {
    grid-template-columns: minmax(0, 1fr) 292px;
  }
}

@media (max-width: 1180px) {
  .analyst-layout {
    grid-template-columns: 1fr;
  }

  .analyst-sidebar {
    position: static;
    grid-column: auto;
  }

  .analyst-main {
    grid-column: auto;
  }
}

@media (max-width: 1024px) {
  .analyst-kpi-grid,
  .analyst-complexity-grid,
  .analyst-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .analyst-two-col {
    grid-template-columns: 1fr;
  }

  .analyst-mix-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .analyst-shell {
    max-width: calc(100% - 16px);
  }

  .analyst-kpi-grid,
  .analyst-complexity-grid,
  .analyst-summary-grid {
    grid-template-columns: 1fr;
  }

  .analyst-panel,
  .analyst-sidebar {
    border-radius: 12px;
    padding: 12px;
  }

  .analyst-table th,
  .analyst-table td {
    padding: 8px;
    font-size: 0.76rem;
  }

  .analyst-chip {
    font-size: 0.72rem;
    padding: 4px 8px;
  }
}

/* Strong enterprise overrides to detach from legacy theme */
.analyst-shell,
.analyst-shell * {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
}

.analyst-shell {
  max-width: none !important;
  width: calc(100% - 24px) !important;
}

.analyst-shell .hero {
  padding: 20px !important;
}

.analyst-shell .panel {
  border-radius: 14px !important;
  border: 1px solid #e3e8f2 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 24px rgba(15, 23, 42, 0.04) !important;
  background: #fff !important;
}

.analyst-shell .service-menu a {
  border: 1px solid #d8deea !important;
  background: #fff !important;
  color: #475467 !important;
  font-weight: 600 !important;
  padding: 6px 11px !important;
}

.analyst-shell .service-menu a.is-active {
  background: #eef3ff !important;
  border-color: #c8d4f6 !important;
  color: #1d4ed8 !important;
}

.analyst-shell .eyebrow {
  color: #667085 !important;
}

.analyst-shell h1 {
  color: #101828 !important;
  font-size: clamp(2rem, 2.9vw, 2.7rem) !important;
  letter-spacing: -0.02em !important;
}

.analyst-shell h2 {
  color: #101828 !important;
  font-size: 1.01rem !important;
}

.analyst-shell .status {
  color: #667085 !important;
  font-family: "IBM Plex Mono", monospace !important;
}

.analyst-shell input,
.analyst-shell select,
.analyst-shell button,
.analyst-shell .btn-secondary,
.analyst-shell .analyst-link-btn {
  border-radius: 10px !important;
  border: 1px solid #d8deea !important;
  box-shadow: none !important;
  min-height: 38px;
}

.analyst-shell input,
.analyst-shell select {
  background: #fff !important;
  color: #101828 !important;
}

.analyst-shell input:focus,
.analyst-shell select:focus {
  outline: 0 !important;
  border-color: #99b3f5 !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
}

.analyst-shell button {
  background: #1d4ed8 !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.analyst-shell .aw-help {
  background: #f8fafc !important;
  color: #475467 !important;
  border-color: #cfd8ea !important;
}

.analyst-shell .btn-secondary,
.analyst-shell .analyst-link-btn {
  background: #f8fafc !important;
  color: #344054 !important;
  border-color: #d8deea !important;
}

.analyst-shell button:hover:not(:disabled),
.analyst-shell .btn-secondary:hover:not(:disabled),
.analyst-shell .analyst-link-btn:hover {
  filter: none !important;
  border-color: #bcc6d9 !important;
  background: #f2f5fa !important;
  transform: translateY(-1px);
}

.analyst-shell .analyst-kpi {
  border-color: #dfe5f0 !important;
  background: #fff !important;
}

.analyst-shell .analyst-kpi-value {
  color: #101828 !important;
  font-size: clamp(1.5rem, 2.2vw, 2rem) !important;
}

.analyst-shell .analyst-kpi-label {
  color: #667085 !important;
}

.analyst-shell .analyst-kpi-sub {
  color: #475467 !important;
}

.analyst-shell .analyst-complexity-card,
.analyst-shell .analyst-card-surface,
.analyst-shell .analyst-side-box {
  background: #fff !important;
  border-color: #dfe5f0 !important;
}

.analyst-shell .analyst-bar-fill,
.analyst-shell .analyst-stack-fill,
.analyst-shell .analyst-mix-fill {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8) !important;
}

.analyst-shell .analyst-table th {
  background: #f8fafc !important;
  color: #475467 !important;
}

.analyst-shell .analyst-table td {
  color: #101828 !important;
}

.analyst-shell .analyst-empty {
  background: #fcfdff !important;
  border-style: solid !important;
  border-color: #e1e7f2 !important;
  color: #667085 !important;
}

/* Enterprise 60/30/10 skin (60 neutral, 30 brand blue, 10 action orange) */
body {
  background: #eef2f7 !important;
}

.analyst-shell {
  width: calc(100% - 16px) !important;
  max-width: none !important;
}

.analyst-hero {
  border-radius: 12px !important;
  border: 1px solid #dfe5ef !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.analyst-hero .service-menu a {
  border-radius: 8px !important;
}

.analyst-layout {
  grid-template-columns: 260px minmax(0, 1fr) !important;
  gap: 14px !important;
}

.analyst-sidebar {
  background: #123b77 !important;
  border: 1px solid #123469 !important;
  box-shadow: none !important;
}

.analyst-sidebar h2,
.analyst-sidebar .analyst-sidebar-title {
  color: #eaf1ff !important;
}

.analyst-sidebar .analyst-sidebar-sub,
.analyst-sidebar .analyst-side-label,
.analyst-sidebar .analyst-side-value {
  color: #c7d7f7 !important;
}

.analyst-sidebar-head {
  border-bottom-color: rgba(199, 215, 247, 0.22) !important;
}

.analyst-sidebar-logo {
  background: #f97316 !important;
  color: #fff !important;
}

.analyst-nav-btn {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(199, 215, 247, 0.18) !important;
  color: #eaf1ff !important;
}

.analyst-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(199, 215, 247, 0.34) !important;
  color: #ffffff !important;
}

.analyst-nav-btn.is-active {
  background: rgba(249, 115, 22, 0.16) !important;
  border-color: rgba(249, 115, 22, 0.48) !important;
  color: #ffffff !important;
}

.analyst-nav-btn.is-active::before {
  background: #f97316 !important;
}

.analyst-nav-icon {
  border-color: rgba(199, 215, 247, 0.36) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #eaf1ff !important;
}

.analyst-nav-btn.is-active .analyst-nav-icon {
  border-color: #f8a56f !important;
  background: rgba(249, 115, 22, 0.18) !important;
  color: #ffd8be !important;
}

.analyst-side-box {
  border-color: rgba(199, 215, 247, 0.25) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.analyst-panel,
.analyst-card-surface,
.analyst-kpi,
.analyst-summary-card,
.decision-card {
  box-shadow: none !important;
  border-color: #dfe5ef !important;
}

.analyst-chip.is-active {
  border-color: #f8a56f !important;
  background: #fff3eb !important;
  color: #b45309 !important;
}

.analyst-shell button {
  background: #f97316 !important;
  border-color: #ea580c !important;
  color: #fff !important;
}

.analyst-shell .btn-secondary,
.analyst-shell .analyst-link-btn {
  background: #ffffff !important;
  border-color: #d7deea !important;
  color: #334155 !important;
}

.analyst-shell button:hover:not(:disabled) {
  background: #ea580c !important;
}

.analyst-bar-fill,
.analyst-stack-fill,
.analyst-mix-fill,
.analyst-mini-bar-fill {
  background: #2563eb !important;
}

.analyst-legend-dot-primary {
  background: #2563eb !important;
}

.analyst-legend-dot-soft {
  background: #93c5fd !important;
}

.analyst-legend-dot-alert {
  background: #f97316 !important;
}

@media (max-width: 1180px) {
  .analyst-layout {
    grid-template-columns: 1fr !important;
  }

  .analyst-sidebar {
    position: static !important;
  }
}

/* Accessibility + compact header improvements */
.analyst-skip-link {
  position: absolute;
  left: 10px;
  top: -42px;
  z-index: 1000;
  background: #0f172a;
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.78rem;
}

.analyst-skip-link:focus {
  top: 10px;
}

.analyst-section-help {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #e4eaf4;
  border-radius: 8px;
  background: #f9fbff;
  color: #475467;
  font-size: 0.8rem;
  line-height: 1.45;
}

.analyst-hero {
  margin-top: 6px !important;
}

.analyst-shell .hero {
  padding: 12px 14px !important;
}

.analyst-shell h1 {
  font-size: clamp(1.7rem, 2.2vw, 2.2rem) !important;
  margin: 0 0 4px !important;
}

.analyst-shell .status {
  margin: 6px 0 !important;
}

.analyst-panel {
  margin-top: 12px !important;
}

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

.analyst-nav-btn:focus-visible,
.analyst-side-box:focus-within,
.analyst-chip:focus-visible {
  outline: 2px solid #f59e0b !important;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Visual calm hotfix: remove harsh orange + over-saturated blue */
.analyst-sidebar {
  background: #14345f !important;
  border-color: #112c4f !important;
}

.analyst-sidebar-logo {
  background: #365f98 !important;
}

.analyst-nav-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(205, 220, 245, 0.22) !important;
  color: #eaf2ff !important;
}

.analyst-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(205, 220, 245, 0.42) !important;
  color: #ffffff !important;
}

.analyst-nav-btn.is-active {
  background: rgba(112, 146, 201, 0.26) !important;
  border-color: rgba(165, 193, 237, 0.62) !important;
  color: #ffffff !important;
}

.analyst-nav-btn.is-active::before {
  background: #a8c2ea !important;
}

.analyst-nav-btn.is-active .analyst-nav-icon {
  border-color: #b8cdf0 !important;
  background: rgba(167, 194, 233, 0.24) !important;
  color: #eaf2ff !important;
}

.analyst-side-box {
  border-color: rgba(205, 220, 245, 0.32) !important;
}

.analyst-shell button {
  background: #365f98 !important;
  border-color: #2f5488 !important;
  color: #fff !important;
}

.analyst-shell button:hover:not(:disabled) {
  background: #2f5488 !important;
}

.analyst-shell .btn-secondary,
.analyst-shell .analyst-link-btn {
  background: #f8fafc !important;
  border-color: #d8deea !important;
  color: #334155 !important;
}

.analyst-bar-fill,
.analyst-stack-fill,
.analyst-mix-fill,
.analyst-mini-bar-fill {
  background: #5c739a !important;
}

.analyst-legend-dot-primary {
  background: #5c739a !important;
}

.analyst-legend-dot-soft {
  background: #9fb1cb !important;
}

.analyst-legend-dot-alert {
  background: #7a889e !important;
}

/* Sidebar premium final pass */
.analyst-sidebar {
  background: #102a4d !important;
  border: 1px solid #0d2340 !important;
  border-radius: 14px !important;
}

.analyst-sidebar h2,
.analyst-sidebar .analyst-sidebar-title {
  color: #f2f7ff !important;
}

.analyst-sidebar .analyst-sidebar-sub {
  color: #c5d6ef !important;
}

.analyst-sidebar .analyst-side-label {
  color: #b7cbed !important;
}

.analyst-sidebar .analyst-side-value {
  color: #f2f7ff !important;
}

.analyst-side-nav {
  gap: 8px !important;
}

.analyst-nav-btn {
  border-radius: 10px !important;
  background: transparent !important;
  border: 1px solid rgba(188, 208, 236, 0.24) !important;
  color: #e7f0ff !important;
  min-height: 42px !important;
  padding: 9px 11px 9px 14px !important;
}

.analyst-nav-btn:hover {
  background: rgba(147, 176, 222, 0.16) !important;
  border-color: rgba(188, 208, 236, 0.45) !important;
  color: #ffffff !important;
}

.analyst-nav-btn.is-active {
  background: rgba(124, 164, 219, 0.28) !important;
  border-color: rgba(176, 202, 239, 0.74) !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(214, 228, 249, 0.22) !important;
}

.analyst-nav-btn.is-active::before {
  background: #d9e7fb !important;
  width: 2px !important;
}

.analyst-nav-icon {
  width: 22px !important;
  height: 22px !important;
  border-radius: 7px !important;
  border: 1px solid rgba(184, 204, 235, 0.4) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f2f7ff !important;
  font-size: 0.66rem !important;
}

.analyst-nav-btn.is-active .analyst-nav-icon {
  border-color: rgba(224, 236, 252, 0.76) !important;
  background: rgba(221, 234, 252, 0.24) !important;
  color: #ffffff !important;
}

.analyst-side-box {
  border: 1px solid rgba(188, 208, 236, 0.3) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: 10px !important;
}

.analyst-sidebar-toggle {
  border-color: rgba(188, 208, 236, 0.46) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f2f7ff !important;
}

.analyst-sidebar-toggle:hover {
  background: rgba(180, 204, 238, 0.2) !important;
}

.analyst-shell.sidebar-collapsed .analyst-nav-btn {
  min-height: 38px !important;
  padding: 7px 6px !important;
}

/* Final usability override: compact enterprise layout */
.analyst-shell .hero {
  padding: 10px 12px !important;
}

.analyst-hero {
  margin-top: 4px !important;
}

.analyst-hero .eyebrow {
  font-size: 0.65rem !important;
  margin-bottom: 2px !important;
}

.analyst-shell h1 {
  font-size: clamp(1.35rem, 1.8vw, 1.7rem) !important;
  line-height: 1.15 !important;
  margin: 2px 0 !important;
}

.analyst-toolbar {
  margin-top: 6px !important;
}

.analyst-chip-row {
  margin-top: 6px !important;
}

.analyst-section-help {
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
  color: #334155 !important;
  background: #f8fafc !important;
}

.analyst-sidebar-toggle {
  width: 26px;
  height: 26px;
  border-radius: 7px !important;
  border: 1px solid rgba(205, 220, 245, 0.32) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #eaf2ff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-right: 4px;
  min-height: 0 !important;
}

.analyst-sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.16) !important;
}

.analyst-shell.sidebar-collapsed .analyst-layout {
  grid-template-columns: 74px minmax(0, 1fr) !important;
}

.analyst-shell.sidebar-collapsed .analyst-sidebar-title,
.analyst-shell.sidebar-collapsed .analyst-sidebar-sub,
.analyst-shell.sidebar-collapsed .analyst-sidebar > h2,
.analyst-shell.sidebar-collapsed .analyst-side-box,
.analyst-shell.sidebar-collapsed .analyst-nav-btn span:last-child {
  display: none !important;
}

.analyst-shell.sidebar-collapsed .analyst-sidebar-head {
  justify-content: center;
}

.analyst-shell.sidebar-collapsed .analyst-nav-btn {
  justify-content: center;
  padding: 9px 6px !important;
}

.analyst-shell.sidebar-collapsed .analyst-nav-icon {
  width: 26px;
  height: 26px;
}

.analyst-shell.sidebar-collapsed .analyst-nav-btn.is-active::before {
  left: 4px;
}

.analyst-build-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 24px;
  margin: 4px 0 2px;
  border-radius: 999px;
  border: 1px solid #9bb7e0;
  background: #e9f1ff;
  color: #23406b;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Final cleanup: readable, compact, enterprise */
.analyst-hero {
  margin-top: 2px !important;
  border-radius: 10px !important;
  border: 1px solid #dbe3ef !important;
  background: #ffffff !important;
}

.analyst-shell .hero {
  padding: 10px 12px !important;
}

.session-shell {
  padding: 6px 10px !important;
  margin-bottom: 6px !important;
  background: #f8fafc !important;
}

.session-shell .status {
  font-size: 0.82rem !important;
  color: #334155 !important;
}

.analyst-shell h1 {
  font-size: clamp(1.28rem, 1.65vw, 1.55rem) !important;
  line-height: 1.18 !important;
  margin: 2px 0 4px !important;
}

.analyst-toolbar {
  margin-top: 4px !important;
}

.analyst-section-help {
  font-size: 0.98rem !important;
  line-height: 1.52 !important;
  color: #1f2937 !important;
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
}

.analyst-layout {
  grid-template-columns: 252px minmax(0, 1fr) !important;
  gap: 12px !important;
}

.analyst-sidebar {
  background: #0f2744 !important;
  border: 1px solid #0b1f36 !important;
  box-shadow: none !important;
}

.analyst-sidebar-title,
.analyst-sidebar h2 {
  color: #f8fbff !important;
}

.analyst-sidebar-sub,
.analyst-side-label {
  color: #bfd2ee !important;
}

.analyst-side-value {
  color: #e9f2ff !important;
}

.analyst-nav-btn {
  background: transparent !important;
  border: 1px solid rgba(191, 210, 238, 0.3) !important;
  color: #e8f1ff !important;
  min-height: 40px !important;
  border-radius: 9px !important;
}

.analyst-nav-btn:hover {
  background: rgba(191, 210, 238, 0.14) !important;
  border-color: rgba(191, 210, 238, 0.56) !important;
  color: #ffffff !important;
}

.analyst-nav-btn.is-active {
  background: rgba(141, 171, 214, 0.26) !important;
  border-color: rgba(191, 210, 238, 0.76) !important;
  color: #ffffff !important;
}

.analyst-nav-btn.is-active::before {
  background: #e5efff !important;
}

.analyst-nav-icon {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(191, 210, 238, 0.45) !important;
  color: #f4f8ff !important;
}

.analyst-side-box {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(191, 210, 238, 0.36) !important;
}

.analyst-sidebar-toggle {
  color: #f4f8ff !important;
  border-color: rgba(191, 210, 238, 0.54) !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

@media (max-width: 1180px) {
  .analyst-layout {
    grid-template-columns: 1fr !important;
  }
}

/* Extreme-quality sidebar interaction redesign */
.analyst-side-nav {
  gap: 7px !important;
}

.analyst-nav-group-label {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a9c1e5;
  font-weight: 700;
  margin: 10px 4px 4px;
}

.analyst-nav-btn {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 40px !important;
  border-radius: 10px !important;
  padding: 8px 10px 8px 12px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)) !important;
  border: 1px solid rgba(176, 201, 236, 0.26) !important;
}

.analyst-nav-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(166, 193, 230, 0.2), rgba(166, 193, 230, 0.12)) !important;
}

.analyst-nav-btn.is-active {
  background: linear-gradient(180deg, rgba(152, 185, 231, 0.34), rgba(131, 168, 220, 0.24)) !important;
  border-color: rgba(198, 220, 250, 0.82) !important;
}

.analyst-nav-icon {
  width: 22px !important;
  height: 22px !important;
  font-size: 0.62rem !important;
  font-weight: 800 !important;
}

.analyst-nav-text {
  font-size: 0.87rem;
  font-weight: 700;
  color: #ecf4ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analyst-nav-meta {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #d8e7ff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(203, 222, 247, 0.35);
  border-radius: 999px;
  padding: 2px 7px;
}

.analyst-nav-btn.is-active .analyst-nav-meta {
  background: rgba(216, 232, 255, 0.28);
  border-color: rgba(216, 232, 255, 0.56);
  color: #ffffff;
}

.analyst-shell.sidebar-collapsed .analyst-nav-group-label,
.analyst-shell.sidebar-collapsed .analyst-nav-text,
.analyst-shell.sidebar-collapsed .analyst-nav-meta {
  display: none !important;
}

.analyst-shell.sidebar-collapsed .analyst-nav-btn {
  grid-template-columns: 1fr !important;
  justify-items: center;
  padding: 8px 6px !important;
}

/* Menu excellence pass: readability first */
.analyst-layout {
  grid-template-columns: 286px minmax(0, 1fr) !important;
}

.analyst-sidebar {
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 22%),
    #102741 !important;
}

.analyst-sidebar-head {
  padding-bottom: 10px !important;
  margin-bottom: 10px !important;
}

.analyst-sidebar-title {
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
}

.analyst-sidebar-sub {
  font-size: 0.78rem !important;
  opacity: 0.95;
}

.analyst-nav-group-label {
  font-size: 0.7rem !important;
  letter-spacing: 0.1em !important;
  margin: 9px 4px 3px !important;
}

.analyst-nav-btn {
  grid-template-columns: 24px minmax(0, 1fr) !important;
  min-height: 44px !important;
  gap: 10px !important;
  padding: 9px 10px 9px 12px !important;
}

.analyst-nav-text {
  font-size: 0.93rem !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.analyst-nav-meta {
  display: none !important;
}

.analyst-nav-btn.is-active {
  box-shadow:
    inset 0 0 0 1px rgba(214, 228, 249, 0.28) !important,
    0 6px 18px rgba(6, 19, 35, 0.22) !important;
}

.analyst-nav-btn:focus-visible {
  outline: 2px solid #dce9ff !important;
  outline-offset: 1px !important;
}

.analyst-side-box {
  padding: 10px 12px !important;
}

.analyst-side-label {
  font-size: 0.7rem !important;
}

.analyst-side-value {
  font-size: 1.05rem !important;
}

@media (max-width: 1320px) {
  .analyst-layout {
    grid-template-columns: 264px minmax(0, 1fr) !important;
  }
}

/* Locked menu redesign v24 (single-source visual system) */
.analyst-layout {
  grid-template-columns: 300px minmax(0, 1fr) !important;
  gap: 14px !important;
}

.analyst-sidebar {
  background: #0e223a !important;
  border: 1px solid #0a1a2d !important;
  border-radius: 18px !important;
  padding: 14px !important;
}

.analyst-sidebar-head {
  margin-bottom: 12px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(177, 201, 234, 0.28) !important;
}

.analyst-sidebar-title {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: #f6f9ff !important;
}

.analyst-sidebar-sub {
  font-size: 0.8rem !important;
  color: #c8daf4 !important;
}

.analyst-sidebar > h2 {
  font-size: 1.12rem !important;
  color: #eff5ff !important;
  margin-bottom: 10px !important;
}

.analyst-nav-group-label {
  font-size: 0.72rem !important;
  letter-spacing: 0.1em !important;
  color: #aec6ea !important;
}

.analyst-side-nav {
  gap: 9px !important;
}

.analyst-nav-btn {
  display: grid !important;
  grid-template-columns: 26px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 46px !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(180, 204, 237, 0.35) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: #edf4ff !important;
}

.analyst-nav-btn:hover {
  background: rgba(164, 190, 226, 0.2) !important;
  border-color: rgba(202, 221, 246, 0.62) !important;
}

.analyst-nav-btn.is-active {
  background: linear-gradient(180deg, rgba(154, 184, 226, 0.42), rgba(132, 166, 213, 0.3)) !important;
  border-color: rgba(218, 232, 252, 0.84) !important;
  box-shadow: 0 10px 22px rgba(6, 16, 29, 0.36) !important;
}

.analyst-nav-btn.is-active::before {
  background: #e7f0ff !important;
}

.analyst-nav-icon {
  width: 24px !important;
  height: 24px !important;
  border-radius: 8px !important;
  font-size: 0.66rem !important;
  border-color: rgba(194, 214, 241, 0.58) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.analyst-nav-text {
  font-size: 0.96rem !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  color: #f4f8ff !important;
}

.analyst-nav-meta {
  display: none !important;
}

.analyst-side-box {
  border-radius: 12px !important;
  border: 1px solid rgba(180, 204, 237, 0.38) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.analyst-side-label {
  color: #bcd1ef !important;
  font-size: 0.72rem !important;
}

.analyst-side-value {
  color: #f4f8ff !important;
  font-size: 1.1rem !important;
}

.analyst-shell.sidebar-collapsed .analyst-layout {
  grid-template-columns: 86px minmax(0, 1fr) !important;
}

.analyst-shell.sidebar-collapsed .analyst-nav-btn {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  padding: 8px 4px !important;
}

.analyst-shell.sidebar-collapsed .analyst-nav-icon {
  width: 28px !important;
  height: 28px !important;
}

@media (max-width: 1280px) {
  .analyst-layout {
    grid-template-columns: 272px minmax(0, 1fr) !important;
  }
}

/* v25 Radical menu: high-contrast + premium interaction */
.analyst-sidebar {
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(86, 126, 186, 0.22), transparent 55%),
    #0b1d33 !important;
  border: 1px solid #091626 !important;
}

.analyst-sidebar-title,
.analyst-sidebar > h2 {
  color: #ffffff !important;
}

.analyst-sidebar-sub,
.analyst-side-label {
  color: #c9dcf8 !important;
}

.analyst-side-value {
  color: #ffffff !important;
}

.analyst-nav-group-label {
  color: #d8e7ff !important;
  opacity: 0.95 !important;
}

.analyst-nav-btn {
  border: 1px solid rgba(193, 216, 245, 0.4) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #f5f9ff !important;
}

.analyst-nav-btn:hover {
  background: rgba(173, 203, 244, 0.2) !important;
  border-color: rgba(214, 230, 252, 0.74) !important;
  transform: translateY(-1px);
}

.analyst-nav-btn.is-active {
  background: linear-gradient(180deg, rgba(167, 201, 247, 0.42), rgba(141, 178, 230, 0.28)) !important;
  border-color: #dcecff !important;
}

.analyst-nav-text {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.analyst-nav-icon {
  color: #ffffff !important;
  border-color: rgba(208, 226, 249, 0.72) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  font-size: 0.74rem !important;
}

.analyst-nav-meta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #f7fbff !important;
  border-color: rgba(216, 232, 252, 0.5) !important;
  font-size: 0.64rem !important;
  min-width: 44px;
}

.analyst-side-box {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(205, 223, 248, 0.48) !important;
}

.analyst-build-stamp {
  border-color: #7ea5dd !important;
  background: #dbe9ff !important;
  color: #15335d !important;
}

/* UI26 menu system: single authoritative override */
.analyst-shell {
  max-width: min(1680px, calc(100vw - 20px)) !important;
}

.analyst-hero {
  padding: 12px 16px !important;
  margin-bottom: 10px !important;
}

.analyst-hero h1 {
  margin: 4px 0 !important;
  font-size: clamp(1.55rem, 2.2vw, 2rem) !important;
  line-height: 1.1 !important;
  color: #0f172a !important;
}

.analyst-layout {
  grid-template-columns: 284px minmax(0, 1fr) !important;
  gap: 12px !important;
}

.analyst-sidebar {
  position: sticky;
  top: 10px;
  align-self: start;
  border-radius: 14px !important;
  border: 1px solid #0f2a45 !important;
  background: linear-gradient(180deg, #163a5f 0%, #102e4c 100%) !important;
  box-shadow: 0 8px 24px rgba(10, 26, 42, 0.2) !important;
  padding: 12px !important;
}

.analyst-sidebar-head {
  margin-bottom: 8px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.analyst-sidebar-logo {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #2f5f90, #224a72) !important;
  color: #f8fbff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

.analyst-sidebar-title {
  font-size: 1rem !important;
  font-weight: 760 !important;
  letter-spacing: 0.01em !important;
  color: #ffffff !important;
}

.analyst-sidebar-sub {
  color: #d7e7fa !important;
  font-size: 0.8rem !important;
}

.analyst-sidebar > h2 {
  margin: 8px 0 8px !important;
  font-size: 0.94rem !important;
  color: #eaf2ff !important;
}

.analyst-nav-group-label {
  margin: 10px 4px 4px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  color: #c2daf9 !important;
}

.analyst-side-nav {
  gap: 7px !important;
}

.analyst-nav-btn {
  min-height: 46px !important;
  border-radius: 11px !important;
  border: 1px solid rgba(232, 242, 255, 0.32) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f8fbff !important;
  grid-template-columns: 26px minmax(0, 1fr) auto !important;
  gap: 10px !important;
  padding: 9px 10px !important;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease !important;
}

.analyst-nav-btn:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(238, 246, 255, 0.62) !important;
}

.analyst-nav-btn:active {
  transform: translateY(1px) !important;
}

.analyst-nav-btn:focus-visible {
  outline: 2px solid #93c5fd !important;
  outline-offset: 2px !important;
}

.analyst-nav-btn.is-active {
  background: linear-gradient(180deg, rgba(89, 152, 219, 0.44), rgba(63, 128, 198, 0.42)) !important;
  border-color: rgba(218, 238, 255, 0.86) !important;
  box-shadow: inset 0 0 0 1px rgba(245, 250, 255, 0.35), 0 10px 18px rgba(4, 20, 36, 0.35) !important;
}

.analyst-nav-icon {
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
  border: 1px solid rgba(225, 238, 255, 0.52) !important;
  background: rgba(255, 255, 255, 0.13) !important;
  color: #f8fbff !important;
  font-size: 0.64rem !important;
  font-weight: 800 !important;
}

.analyst-nav-text {
  color: #ffffff !important;
  font-size: 0.94rem !important;
  line-height: 1.2 !important;
  font-weight: 680 !important;
}

.analyst-nav-meta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 56px !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(230, 242, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #f8fbff !important;
  font-size: 0.66rem !important;
  font-weight: 700 !important;
}

.analyst-side-box {
  margin-top: 10px !important;
  border-radius: 11px !important;
  border: 1px solid rgba(228, 241, 255, 0.36) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  padding: 10px 11px !important;
}

.analyst-side-label {
  color: #d1e5ff !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
}

.analyst-side-value {
  color: #ffffff !important;
  font-size: 1.02rem !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
}

.analyst-main .panel {
  border-radius: 12px !important;
  border: 1px solid #dbe5f3 !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06) !important;
}

.analyst-shell.sidebar-collapsed .analyst-layout {
  grid-template-columns: 86px minmax(0, 1fr) !important;
}

.analyst-shell.sidebar-collapsed .analyst-nav-group-label,
.analyst-shell.sidebar-collapsed .analyst-nav-text,
.analyst-shell.sidebar-collapsed .analyst-nav-meta,
.analyst-shell.sidebar-collapsed .analyst-sidebar-sub,
.analyst-shell.sidebar-collapsed .analyst-sidebar > h2,
.analyst-shell.sidebar-collapsed .analyst-side-box {
  display: none !important;
}

.analyst-shell.sidebar-collapsed .analyst-nav-btn {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  padding: 8px 4px !important;
}

@media (max-width: 1024px) {
  .analyst-layout {
    grid-template-columns: 1fr !important;
  }

  .analyst-sidebar {
    position: static;
    top: auto;
  }
}

/* UI27 readability pass: enterprise legibility first */
.analyst-sidebar {
  background: #12395c !important;
}

.analyst-sidebar-title {
  font-size: 1.02rem !important;
  font-weight: 780 !important;
  letter-spacing: 0 !important;
}

.analyst-sidebar-sub {
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  color: #e5f0ff !important;
}

.analyst-sidebar > h2 {
  font-size: 0.98rem !important;
  font-weight: 740 !important;
  color: #f3f8ff !important;
}

.analyst-nav-group-label {
  font-size: 0.78rem !important;
  font-weight: 760 !important;
  letter-spacing: 0.03em !important;
  text-transform: none !important;
  color: #dfecff !important;
  margin: 12px 6px 6px !important;
}

.analyst-nav-btn {
  min-height: 48px !important;
  border-radius: 10px !important;
  padding: 10px 11px !important;
}

.analyst-nav-text {
  font-size: 0.96rem !important;
  font-weight: 720 !important;
}

.analyst-nav-meta {
  min-width: 52px !important;
  padding: 2px 7px !important;
  font-size: 0.7rem !important;
  font-weight: 760 !important;
  background: rgba(255, 255, 255, 0.18) !important;
}

.analyst-side-label {
  font-size: 0.8rem !important;
  font-weight: 760 !important;
  letter-spacing: 0.03em !important;
  text-transform: none !important;
  color: #e4efff !important;
}

.analyst-side-value {
  margin-top: 3px !important;
  font-size: 1.08rem !important;
  font-weight: 780 !important;
  color: #ffffff !important;
}

@media (max-width: 720px) {
  .analyst-sidebar {
    padding: 12px 11px !important;
    border-radius: 12px !important;
  }

  .analyst-sidebar-head {
    gap: 9px !important;
  }

  .analyst-sidebar-logo {
    width: 32px !important;
    height: 32px !important;
  }

  .analyst-nav-btn {
    min-height: 50px !important;
  }
}

/* UI28 contrast lock: prevent light-on-light in sidebar */
.analyst-shell .analyst-sidebar {
  background: #103453 !important;
  border-color: #0a2236 !important;
}

.analyst-shell .analyst-sidebar .analyst-sidebar-title,
.analyst-shell .analyst-sidebar > h2,
.analyst-shell .analyst-sidebar .analyst-nav-text,
.analyst-shell .analyst-sidebar .analyst-side-value {
  color: #ffffff !important;
}

.analyst-shell .analyst-sidebar .analyst-sidebar-sub,
.analyst-shell .analyst-sidebar .analyst-nav-group-label,
.analyst-shell .analyst-sidebar .analyst-side-label {
  color: #dcecff !important;
}

.analyst-shell .analyst-sidebar .analyst-nav-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(223, 237, 255, 0.42) !important;
}

.analyst-shell .analyst-sidebar .analyst-nav-btn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(235, 245, 255, 0.66) !important;
}

.analyst-shell .analyst-sidebar .analyst-nav-btn.is-active {
  background: rgba(108, 162, 223, 0.54) !important;
  border-color: #e8f3ff !important;
}

.analyst-shell .analyst-sidebar .analyst-nav-meta {
  background: rgba(8, 29, 49, 0.36) !important;
  border-color: rgba(224, 238, 255, 0.54) !important;
  color: #ffffff !important;
}

.analyst-shell .analyst-sidebar .analyst-side-box {
  background: rgba(9, 31, 51, 0.34) !important;
  border-color: rgba(224, 238, 255, 0.36) !important;
}

/* UI29 premium enterprise reset (target >=8 across design axes) */
.analyst-shell {
  max-width: min(1720px, calc(100vw - 24px)) !important;
}

.analyst-hero {
  padding: 10px 14px !important;
}

.analyst-layout {
  grid-template-columns: 292px minmax(0, 1fr) !important;
  gap: 14px !important;
}

.analyst-shell .analyst-sidebar {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06) !important;
  border-radius: 14px !important;
  padding: 12px !important;
}

.analyst-shell .analyst-sidebar-head {
  border-bottom: 1px solid #e5eaf2 !important;
  padding-bottom: 10px !important;
  margin-bottom: 10px !important;
}

.analyst-shell .analyst-sidebar-logo {
  background: linear-gradient(180deg, #1d4ed8, #1e40af) !important;
  color: #ffffff !important;
  border: none !important;
}

.analyst-shell .analyst-sidebar-title {
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 760 !important;
}

.analyst-shell .analyst-sidebar-sub {
  color: #475569 !important;
  font-size: 0.83rem !important;
  font-weight: 540 !important;
}

.analyst-shell .analyst-sidebar > h2 {
  color: #0f172a !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  margin: 8px 0 !important;
}

.analyst-shell .analyst-nav-group-label {
  color: #64748b !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin: 10px 6px 5px !important;
}

.analyst-shell .analyst-side-nav {
  gap: 6px !important;
}

.analyst-shell .analyst-nav-btn {
  min-height: 46px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #0f172a !important;
  padding: 9px 10px !important;
  grid-template-columns: 26px minmax(0, 1fr) auto !important;
}

.analyst-shell .analyst-nav-btn:hover {
  background: #eef4ff !important;
  border-color: #d7e3f8 !important;
  transform: none !important;
}

.analyst-shell .analyst-nav-btn.is-active {
  background: #e8f0ff !important;
  border-color: #c9dafc !important;
  box-shadow: inset 3px 0 0 #2563eb !important;
}

.analyst-shell .analyst-nav-icon {
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
  background: #eaf1ff !important;
  border: 1px solid #d8e5ff !important;
  color: #1e40af !important;
  font-size: 0.64rem !important;
  font-weight: 800 !important;
}

.analyst-shell .analyst-nav-btn.is-active .analyst-nav-icon {
  background: #dbe8ff !important;
  border-color: #bfd3ff !important;
  color: #1d4ed8 !important;
}

.analyst-shell .analyst-nav-text {
  color: #0f172a !important;
  font-size: 0.95rem !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
}

.analyst-shell .analyst-nav-meta {
  color: #334155 !important;
  background: #f1f5f9 !important;
  border: 1px solid #dbe3ec !important;
  min-width: 50px !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
}

.analyst-shell .analyst-side-box {
  background: #ffffff !important;
  border: 1px solid #e3e9f2 !important;
  border-radius: 10px !important;
}

.analyst-shell .analyst-side-label {
  color: #64748b !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
}

.analyst-shell .analyst-side-value {
  color: #0f172a !important;
  font-size: 1.04rem !important;
  font-weight: 760 !important;
}

.analyst-shell .analyst-sidebar-toggle {
  width: 32px !important;
  height: 32px !important;
  border-radius: 9px !important;
  border: 1px solid #d5deea !important;
  background: #ffffff !important;
  color: #0f172a !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.analyst-shell .analyst-sidebar-toggle:hover {
  background: #f1f5f9 !important;
}

.analyst-shell .analyst-sidebar-toggle:focus-visible {
  outline: 2px solid #2563eb !important;
  outline-offset: 2px !important;
}

.analyst-shell .aw-toggle-glyph {
  position: relative;
  width: 14px;
  height: 10px;
  display: inline-block;
}

.analyst-shell .aw-toggle-glyph::before,
.analyst-shell .aw-toggle-glyph::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: #334155;
}

.analyst-shell .aw-toggle-glyph::before {
  top: 1px;
  box-shadow: 0 4px 0 #334155;
}

.analyst-shell .aw-toggle-glyph::after {
  bottom: 1px;
}

.analyst-shell.sidebar-collapsed .analyst-layout {
  grid-template-columns: 88px minmax(0, 1fr) !important;
}

.analyst-shell.sidebar-collapsed .analyst-nav-group-label,
.analyst-shell.sidebar-collapsed .analyst-nav-text,
.analyst-shell.sidebar-collapsed .analyst-nav-meta,
.analyst-shell.sidebar-collapsed .analyst-sidebar-sub,
.analyst-shell.sidebar-collapsed .analyst-sidebar > h2,
.analyst-shell.sidebar-collapsed .analyst-side-box {
  display: none !important;
}

.analyst-shell.sidebar-collapsed .analyst-nav-btn {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
}

@media (max-width: 1024px) {
  .analyst-layout {
    grid-template-columns: 1fr !important;
  }

  .analyst-shell .analyst-sidebar {
    position: static !important;
  }
}

/* Legacy UI30-UI37 sidebar/theme experiments intentionally retired.
   Canonical source of truth is:
   analyst-tokens.css + analyst-sidebar-lock.css + analyst-theme-a-ui41.css + analyst-top-tier.css */
