:root {
  --bg: #090d0c;
  --surface: #141b19;
  --surface-raised: #19221f;
  --surface-soft: #101715;
  --ink: #edf4f1;
  --muted: #91a19c;
  --line: #2a3733;
  --primary: #35d3a4;
  --primary-dark: #0b5745;
  --nav: #0d1311;
  --accent: #e2a63c;
  --blue: #52a5c8;
  --danger: #ef7373;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

/* NEXUS Intelligence: analytical motion, never decorative noise. */
.is-revealed .intelligence-income-year i,
.is-revealed .intelligence-balance-year i,
.is-revealed .review-bar span,
.is-revealed .projection-bar span {
  transform-origin: center bottom;
  animation: nexusIntelligenceBar .72s cubic-bezier(.2,.82,.2,1) both;
}
.is-revealed .intelligence-income-year:nth-child(2) i,
.is-revealed .intelligence-balance-year:nth-child(2) i,
.is-revealed .review-bar:nth-child(2) span,
.is-revealed .projection-bar:nth-child(2) span { animation-delay: .06s; }
.is-revealed .intelligence-income-year:nth-child(3) i,
.is-revealed .intelligence-balance-year:nth-child(3) i,
.is-revealed .review-bar:nth-child(3) span,
.is-revealed .projection-bar:nth-child(3) span { animation-delay: .12s; }
.is-revealed .intelligence-income-year:nth-child(n+4) i,
.is-revealed .intelligence-balance-year:nth-child(n+4) i,
.is-revealed .review-bar:nth-child(n+4) span,
.is-revealed .projection-bar:nth-child(n+4) span { animation-delay: .18s; }

.is-revealed .intelligence-income-year b {
  animation: nexusIntelligencePoint .4s cubic-bezier(.2,.85,.25,1.3) .38s both;
}
.is-revealed .intelligence-donut {
  animation: nexusDonutIn .8s cubic-bezier(.2,.75,.2,1) both;
}
.is-revealed .intelligence-donut-key b em,
.is-revealed .growth-scenario > i span {
  transform-origin: left center;
  animation: nexusTrackGrow .7s cubic-bezier(.2,.8,.2,1) .18s both;
}
.is-revealed .intelligence-peer {
  animation: nexusRowIn .42s ease both;
}
.is-revealed .intelligence-peer:nth-of-type(2) { animation-delay: .04s; }
.is-revealed .intelligence-peer:nth-of-type(3) { animation-delay: .08s; }
.is-revealed .intelligence-peer:nth-of-type(4) { animation-delay: .12s; }
.is-revealed .intelligence-peer:nth-of-type(n+5) { animation-delay: .16s; }

@keyframes nexusIntelligenceBar { from { opacity: .25; transform: scaleY(.03); } to { opacity: 1; transform: scaleY(1); } }
@keyframes nexusIntelligencePoint { from { opacity: 0; transform: translate(-50%, 50%) scale(.2); } to { opacity: 1; transform: translate(-50%, 50%) scale(1); } }
@keyframes nexusDonutIn { from { opacity: .25; transform: scale(.82) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes nexusRowIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .main { overflow-x: clip; }
  .analytics-panel, .profile-section, .benchmark-trend, .dimension-map { border-radius: 12px; }
  button, select, input { min-height: 42px; }
}

/* Simulator cockpit: persistent assumptions at left, live decision canvas at right. */
@media (min-width: 1301px) {
  #simulatorView {
    display: grid;
    grid-template-columns: minmax(390px, .72fr) minmax(0, 1.65fr);
    align-items: start;
    gap: 18px;
  }

  #simulatorView > .simulator-header {
    grid-column: 1 / -1;
    min-height: 148px;
    margin-bottom: 0;
    padding-block: 24px;
  }

  #simulatorView > .simulator-header h1 {
    margin-block: 4px 8px;
    font-size: 40px;
  }

  #simulatorView > .simulator-header > div > p:last-child {
    margin-bottom: 0;
    font-size: 13px;
  }

  #simulatorView > .simulator-console {
    position: sticky;
    top: 16px;
    grid-column: 1;
    max-height: calc(100vh - 32px);
    margin-top: 0;
    overflow: auto;
    scrollbar-color: rgba(53,211,164,.45) transparent;
    scrollbar-width: thin;
  }

  #simulatorView > .simulator-console > section {
    padding: 17px;
  }

  #simulatorView .simulator-section-title {
    margin-bottom: 13px;
  }

  #simulatorView .simulator-section-title > span {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 10px;
  }

  #simulatorView .simulator-section-title h2 {
    font-size: 16px;
  }

  #simulatorView .simulator-setup-grid {
    grid-template-columns: minmax(0, 1fr) 1fr;
  }

  #simulatorView .simulator-setup-grid .company-picker {
    grid-column: 1 / -1;
  }

  #simulatorView .assumption-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #simulatorView .assumption-grid > label {
    padding: 10px;
  }

  #simulatorView .assumption-grid > label > span {
    min-height: 0;
  }

  #simulatorView .shock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #simulatorView .shock-card {
    grid-template-columns: 16px 28px 1fr;
    min-height: 68px;
    gap: 7px;
    padding: 9px;
  }

  #simulatorView .shock-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  #simulatorView .shock-details {
    grid-template-columns: repeat(2, 1fr);
  }

  #simulatorView .simulator-run-row {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 15px 17px 17px;
  }

  #simulatorView .simulator-run-row button {
    width: 100%;
  }

  #simulatorView > .simulator-empty,
  #simulatorView > .simulator-result {
    grid-column: 2;
    margin-top: 0;
  }

  #simulatorView > .simulator-empty {
    min-height: 690px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: radial-gradient(circle at 50% 44%, rgba(53,211,164,.07), transparent 27%), rgba(6,15,13,.38);
  }

  #simulatorView > .simulator-result {
    display: grid;
    grid-template-columns: minmax(250px, .48fr) minmax(0, 1.52fr);
    gap: 12px;
  }

  #simulatorView .simulator-result-header,
  #simulatorView .simulator-result-grid,
  #simulatorView .simulator-trace {
    grid-column: 1 / -1;
  }

  #simulatorView .simulator-kpis {
    grid-column: 1;
    grid-template-columns: 1fr;
    align-self: stretch;
    gap: 9px;
    margin: 0;
  }

  #simulatorView .simulator-kpis article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 96px;
    padding: 16px;
  }

  #simulatorView .simulator-kpis article:first-child {
    min-height: 132px;
    border-color: rgba(53,211,164,.46);
    background: linear-gradient(145deg, rgba(21,111,88,.44), rgba(8,31,25,.98));
    box-shadow: inset 0 1px rgba(255,255,255,.035), 0 15px 35px rgba(0,0,0,.18);
  }

  #simulatorView .simulator-kpis article:first-child strong {
    font-size: 34px;
  }

  #simulatorView .simulator-chart-panel {
    grid-column: 2;
    min-width: 0;
    min-height: 465px;
  }

  #simulatorView .simulator-chart-canvas {
    height: 330px;
  }

  #simulatorView .simulator-result-grid {
    margin-top: 0;
  }

  #simulatorView .simulator-trace {
    margin-top: 0;
  }
}

@media (min-width: 1301px) and (max-height: 820px) {
  #simulatorView > .simulator-console {
    position: static;
    max-height: none;
  }
}

/* Compact simulation desk: essentials beside the chart, scenario presets below. */
.app-shell { overflow-x: clip; will-change: grid-template-columns; transition: grid-template-columns .24s cubic-bezier(.2,.78,.28,1); }
.sidebar { will-change: transform; transition: transform .24s cubic-bezier(.2,.78,.28,1); }
.main { transition: max-width .24s cubic-bezier(.2,.78,.28,1); }

.sidebar-collapse {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: auto;
  border: 1px solid rgba(53,211,164,.24);
  border-radius: 7px;
  background: rgba(53,211,164,.055);
  color: var(--primary);
  padding: 0;
  font-size: 0;
  line-height: 0;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.sidebar-collapse::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: center;
}

.sidebar-collapse:hover { border-color: rgba(53,211,164,.55); background: rgba(53,211,164,.1); box-shadow: 0 0 14px rgba(53,211,164,.12); transform: translateY(-1px); }
.sidebar-collapse:active { transform: scale(.94); }

.sidebar-reveal {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 28px;
  height: 62px;
  border: 1px solid rgba(53,211,164,.34);
  border-left: 0;
  border-radius: 0 9px 9px 0;
  background: #10251f;
  color: var(--primary);
  padding: 0;
  font-size: 0;
  line-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(-100%, -50%);
  transition: opacity .25s ease, transform .34s cubic-bezier(.22,.8,.3,1), background .2s ease;
}

.sidebar-reveal::before { width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; content: ""; transform: rotate(45deg); }
.sidebar-reveal::before { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(45deg); transform-origin: center; }
.sidebar-reveal:hover { background: #16352c; }

.app-shell.sidebar-collapsed { grid-template-columns: 0 minmax(0, 1fr); }
.app-shell.sidebar-collapsed .sidebar { opacity: 1; pointer-events: none; transform: translate3d(-100%,0,0); }
.app-shell.sidebar-collapsed .main { max-width: 1760px; }
.app-shell.sidebar-collapsed .sidebar-reveal { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }

.simulator-detail-disclosure {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(5,16,13,.52);
}

.simulator-detail-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 17px;
  color: #c4d6d0;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.simulator-detail-disclosure > summary::-webkit-details-marker { display: none; }
.simulator-detail-disclosure > summary span { color: var(--primary); font-size: 17px; transition: transform .2s ease; }
.simulator-detail-disclosure[open] > summary span { transform: rotate(45deg); }
.simulator-detail-disclosure .simulator-result-grid { margin: 0 12px 12px; }
.simulator-detail-disclosure .simulator-trace { margin: 0 12px 12px; }

@media (min-width: 1301px) {
  #simulatorView {
    grid-template-columns: minmax(350px, .62fr) minmax(0, 1.68fr);
    grid-template-rows: auto auto auto auto auto;
  }

  #simulatorView > .simulator-header { grid-column: 1 / -1; grid-row: 1; }
  #simulatorView > .simulator-console { display: contents; }

  #simulatorView .simulator-setup,
  #simulatorView .simulator-assumptions,
  #simulatorView .simulator-run-row {
    grid-column: 1;
    margin: 0;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(12,30,26,.98), rgba(7,18,16,.98));
  }

  #simulatorView .simulator-setup {
    grid-row: 2;
    border-radius: 14px 14px 0 0;
  }

  #simulatorView .simulator-assumptions {
    grid-row: 3;
    border-top: 0;
    border-radius: 0;
  }

  #simulatorView .simulator-run-row {
    grid-row: 4;
    border-top: 0;
    border-radius: 0 0 14px 14px;
  }

  #simulatorView .simulator-assumptions .assumption-grid {
    grid-template-columns: 1fr;
  }

  #simulatorView .simulator-assumptions .assumption-grid > label {
    display: grid;
    grid-template-columns: 135px 1fr;
    align-items: center;
    gap: 10px;
    border: 0;
    border-top: 1px solid rgba(128,153,145,.13);
    border-radius: 0;
    background: transparent;
  }

  #simulatorView .simulator-assumptions .assumption-grid > label:first-child { border-top: 0; }
  #simulatorView .simulator-assumptions .assumption-grid > label > div { margin: 0; }
  #simulatorView .simulator-assumptions .assumption-grid > label > small { display: none; }

  #simulatorView > .simulator-empty,
  #simulatorView > .simulator-result {
    grid-column: 2;
    grid-row: 2 / 5;
  }

  #simulatorView > .simulator-result {
    grid-template-columns: minmax(220px, .42fr) minmax(0, 1.58fr);
    align-content: start;
  }

  #simulatorView .simulator-result-header { padding: 16px 20px; }
  #simulatorView .simulator-result-header h2 { font-size: 23px; }
  #simulatorView .simulator-kpis article { min-height: 108px; }
  #simulatorView .simulator-chart-panel { min-height: 430px; }
  #simulatorView .simulator-chart-canvas { height: 300px; }

  #simulatorView .simulator-shocks {
    grid-column: 1 / -1;
    grid-row: 5;
    margin-top: 2px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(12,30,26,.96), rgba(7,18,16,.98));
  }

  #simulatorView .simulator-shocks .simulator-section-title {
    margin-bottom: 11px;
  }

  #simulatorView .simulator-shocks .shock-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #simulatorView .simulator-shocks .shock-card {
    grid-template-columns: 18px 34px 1fr;
    min-height: 58px;
    padding: 10px 13px;
  }

  #simulatorView .simulator-shocks .shock-icon {
    width: 34px;
    height: 34px;
  }

  #simulatorView .simulator-shocks .shock-details {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .sidebar-collapse,
  .sidebar-reveal { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-motion-ready="true"] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .history-line, .history-points circle, .benchmark-bar-pair i,
  .comparison-row .bar, .competitive-value span, .dimension-track span,
  .intelligence-income-year i, .intelligence-balance-year i, .intelligence-income-year b,
  .intelligence-donut, .intelligence-donut-key b em, .intelligence-peer,
  .growth-scenario > i span, .review-bar span, .projection-bar span { animation: none !important; }
}

* { box-sizing: border-box; }

html { min-width: 320px; }
html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

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

button { cursor: pointer; }

[hidden] { display: none !important; }

.app-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 38px;
  height: 100vh;
  min-width: 0;
  box-sizing: border-box;
  padding: 30px 24px;
  background: var(--nav);
  color: #f7faf9;
  border-right: 1px solid #26322f;
}

@media (min-width: 1301px) {
  .sidebar { width: 310px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 56px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 10px;
  background: var(--primary);
  color: #07110e;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(53, 211, 164, 0.16);
}

.brand strong,
.brand small { display: block; }

.brand strong { font-size: 18px; }

.brand small,
.dataset-status small {
  margin-top: 4px;
  color: #7e8f89;
  font-size: 13px;
}

.nav { display: grid; gap: 10px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #dce7e3;
  font-size: 16px;
  font-weight: 650;
  text-align: left;
  will-change: transform, background-color;
  transition: color .2s ease, background-color .24s ease, box-shadow .24s ease, transform .2s ease;
}

.nav-item.active { background: #172b25; color: #fff; box-shadow: inset 3px 0 0 var(--primary); }
.nav-item:hover { background: rgba(53,211,164,.065); color: #f4faf7; transform: translateX(3px); }
.nav-item.active:hover { background: #1a312a; }
.nav-item:active { transform: translateX(2px) scale(.985); }

.nav-icon { width: 25px; font-size: 26px; line-height: 1; }
.nav-icon-ai { color: var(--primary); }

.dataset-status {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
  padding: 20px 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.user-panel {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
  padding: 18px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #20332d;
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
}

.user-copy { min-width: 0; }
.user-copy small,
.user-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy small { color: #7e8f89; font-size: 12px; }
.user-copy strong { margin-top: 4px; font-size: 14px; }

.user-menu-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #dce7e3;
}
.user-menu-button:hover { background: rgba(255, 255, 255, 0.08); }

.user-menu {
  position: absolute;
  right: 8px;
  bottom: 48px;
  z-index: 20;
  width: 210px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.user-menu button {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  text-align: left;
}
.user-menu button:hover { background: var(--surface-soft); }

.dataset-status strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
}

.status-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(53, 211, 164, 0.12);
}

.main {
  min-width: 0;
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 30px clamp(22px, 3.4vw, 54px) 56px;
}

.main::before {
  position: fixed;
  top: 0;
  right: 0;
  z-index: -1;
  width: 38vw;
  height: 1px;
  background: var(--primary);
  content: "";
  opacity: 0.45;
}

.topbar,
.search-heading,
.company-header,
.section-heading,
.company-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar { margin-bottom: 26px; }

h1, h2, h3, p { margin-top: 0; }

h1 { margin-bottom: 0; font-size: 30px; line-height: 1.15; }
h2 { margin-bottom: 0; font-size: 20px; }
h3 { margin-bottom: 0; font-size: 17px; }

.eyebrow {
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.period-badge,
.rank-badge,
.context-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.top-period-control {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.top-period-control select {
  min-width: 126px;
  height: 38px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
  color: var(--ink);
  font-weight: 750;
}

.top-period-control select:disabled { color: var(--muted); cursor: not-allowed; }

.search-section {
  position: relative;
  z-index: 10;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.search-heading { margin-bottom: 14px; }
.search-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

.text-button {
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 650;
}

.search-wrap { position: relative; max-width: 820px; }

.company-search {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  height: 56px;
  padding: 0 17px;
  border: 1px solid #3a4944;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.company-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(53, 211, 164, 0.12);
}

.company-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

.company-search input::placeholder { color: #667570; }

.search-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid var(--primary);
  border-radius: 50%;
}

.search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  background: var(--primary);
  content: "";
  transform: rotate(45deg);
}

.spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: spin 700ms linear infinite;
}

.spinner.visible { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.suggestions {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  max-height: 370px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.suggestion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  min-height: 65px;
  padding: 12px 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.suggestion:last-child { border-bottom: 0; }
.suggestion:hover,
.suggestion.active { background: var(--surface-soft); }
.suggestion strong,
.suggestion small { display: block; overflow-wrap: anywhere; }
.suggestion strong { margin-bottom: 5px; font-size: 13px; }
.suggestion small { color: var(--muted); font-size: 12px; }
.suggestion-rank { color: var(--primary); font-size: 12px; font-weight: 700; }

.no-results { padding: 20px; color: var(--muted); font-size: 13px; text-align: center; }

.welcome-state {
  display: grid;
  place-items: center;
  min-height: 440px;
  padding: 60px 20px;
  text-align: center;
}

.welcome-symbol {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  border: 1px solid #294039;
  background: #14231f;
  color: var(--primary);
  font-size: 34px;
}

.welcome-state h2 { margin-bottom: 9px; font-size: 23px; }
.welcome-state p { max-width: 540px; margin-bottom: 22px; color: var(--muted); line-height: 1.6; }
.data-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.data-points span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }

.loading-state { padding: 46px 0; }
.loading-line,
.loading-grid span { display: block; background: #202c28; animation: pulse 1.2s ease-in-out infinite alternate; }
.loading-line { width: 56%; height: 24px; margin-bottom: 10px; border-radius: 5px; }
.loading-line.short { width: 34%; height: 15px; }
.loading-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.loading-grid span { height: 122px; border-radius: 8px; }
@keyframes pulse { to { opacity: 0.45; } }

.error-state {
  margin-top: 28px;
  padding: 20px;
  border-left: 4px solid var(--danger);
  background: var(--surface);
}
.error-state p { margin: 6px 0 0; color: var(--muted); }

.dashboard { padding-top: 30px; }

.company-header {
  align-items: flex-start;
  padding-bottom: 24px;
}

.company-identity { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.company-identity > div { min-width: 0; }
.company-initial {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 8px;
  border: 1px solid #386e5e;
  background: #102c24;
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
}
.company-title-row { justify-content: flex-start; flex-wrap: wrap; }
.company-title-row h2 { min-width: 0; max-width: 850px; font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; }
.company-meta,
.location { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.location { max-width: 270px; text-align: right; line-height: 1.5; }
.rank-badge { border-color: #6e572c; background: #292315; color: #f2c667; font-weight: 700; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card {
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}
.metric-top { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.metric-accent { width: 8px; height: 8px; margin-top: 3px; border-radius: 50%; background: var(--accent); }
.metric-card strong { display: block; margin-top: 14px; font-size: clamp(20px, 2vw, 28px); line-height: 1.1; overflow-wrap: anywhere; }
.metric-card small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }

.metric-change {
  display: inline-flex;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 700;
}
.metric-change.positive { color: var(--primary); }
.metric-change.negative { color: var(--danger); }
.metric-change.neutral { color: var(--muted); }

.analysis-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.75fr); gap: 18px; }

.analytics-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}
.section-heading { align-items: flex-start; margin-bottom: 22px; }

.trend-panel { margin-bottom: 18px; }
.trend-heading { flex-wrap: wrap; }
.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}
.segment {
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.segment.active { background: var(--surface-raised); color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.18); }

.trend-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 22px;
}

.trend-visualization { min-width: 0; }

.trend-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.trend-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.trend-controls select {
  width: 100%;
  height: 38px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  text-transform: none;
}

.range-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.history-insight {
  margin-top: auto;
  padding: 13px;
  border-left: 3px solid var(--primary);
  background: #11231e;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.55;
}

.history-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.history-summary span { min-width: 0; }
.history-summary small,
.history-summary strong { display: block; }
.history-summary small { margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.history-summary strong { font-size: 14px; overflow-wrap: anywhere; }

.history-chart { width: 100%; min-height: 250px; margin-top: 14px; overflow: hidden; }
.history-chart svg { display: block; width: 100%; height: 250px; overflow: visible; }
.history-line { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.history-points circle { fill: var(--surface); stroke: var(--primary); stroke-width: 2; }
.history-points circle.selected { fill: var(--accent); stroke: #141b19; stroke-width: 3; }
.chart-grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 5; }
.history-labels text { fill: var(--muted); font-size: 10px; }

.data-notice {
  margin: 8px 0 0;
  padding: 11px 13px;
  border: 1px solid #6e572c;
  border-radius: 6px;
  background: #292315;
  color: #e6c47d;
  font-size: 11px;
  line-height: 1.5;
}

.chart-legend { display: flex; gap: 18px; margin-bottom: 22px; color: var(--muted); font-size: 11px; }
.chart-legend span { display: flex; align-items: center; gap: 7px; }
.chart-legend i { width: 15px; height: 7px; border-radius: 2px; }
.legend-company { background: var(--primary); }
.legend-benchmark { background: #596963; }

.comparison-chart { display: grid; gap: 19px; }
.comparison-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 100px; gap: 12px; align-items: center; }
.comparison-label { color: var(--muted); font-size: 12px; }
.bar-stack { display: grid; gap: 5px; }
.bar-track { height: 9px; overflow: hidden; border-radius: 2px; background: #25312e; }
.bar { display: block; width: 0; height: 100%; min-width: 2px; transition: width 500ms ease; }
.bar.company { background: var(--primary); }
.bar.benchmark { background: #596963; }
.comparison-value { font-size: 11px; text-align: right; }
.comparison-value strong,
.comparison-value small { display: block; }
.comparison-value small { margin-top: 4px; color: var(--muted); }

.ratios-list { display: grid; gap: 3px; }
.ratio-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ratio-row:last-child { border-bottom: 0; }
.ratio-row span { color: var(--muted); font-size: 12px; }
.ratio-row strong { font-size: 16px; }
.ratio-row small { display: block; margin-top: 4px; color: #71817c; font-size: 10px; }

.profile-section { margin-top: 30px; padding-top: 27px; border-top: 1px solid var(--line); }
.profile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.profile-field span,
.activity-block span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.profile-field strong { display: block; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.activity-block { margin-top: 24px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.activity-block p { max-width: 1100px; margin-bottom: 0; font-size: 13px; line-height: 1.65; }

.primary-button,
.secondary-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 650;
}
.primary-button { background: var(--primary); color: #06120e; }
.secondary-button { border-color: var(--line); background: var(--surface-raised); color: var(--ink); }

dialog {
  width: min(480px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(10, 29, 24, 0.55); }
.quota-dialog{width:min(610px,calc(100vw - 28px));padding:0;border:1px solid rgba(53,211,164,.32);border-radius:22px;background:#071712;color:var(--text);box-shadow:0 35px 100px rgba(0,0,0,.55),0 0 55px rgba(53,211,164,.08)}
.quota-dialog::backdrop{background:rgba(1,8,6,.78);backdrop-filter:blur(7px)}
.quota-dialog-shell{position:relative;padding:34px}.quota-close{position:absolute;top:18px;right:18px}.quota-icon{display:grid;place-items:center;width:58px;height:58px;margin:22px 0 18px;border:1px solid rgba(53,211,164,.34);border-radius:16px;background:rgba(53,211,164,.09);color:var(--accent);font-size:28px;box-shadow:inset 0 0 24px rgba(53,211,164,.07)}
.quota-dialog h2{margin:0 45px 10px 0;font-size:30px;line-height:1.1}.quota-dialog>div>p:not(.eyebrow){margin:0;color:var(--muted);font-size:15px;line-height:1.55}
.quota-meter{height:8px;margin:25px 0 17px;overflow:hidden;border-radius:8px;background:rgba(255,255,255,.07)}.quota-meter i{display:block;width:100%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#23b98f,#51e4bb);box-shadow:0 0 14px rgba(53,211,164,.3)}
.quota-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quota-summary span{display:grid;padding:13px 15px;border:1px solid rgba(255,255,255,.08);border-radius:11px;background:rgba(255,255,255,.025)}.quota-summary small{color:var(--muted);font-size:10px;text-transform:uppercase}.quota-summary strong{margin-top:5px;font-size:15px}
.quota-recommendations{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.quota-recommendations article{padding:14px;border:1px solid rgba(53,211,164,.16);border-radius:11px;background:#0a2119}.quota-recommendations small{display:block;color:var(--accent);font-size:10px;font-weight:900}.quota-recommendations strong{display:block;margin:4px 0}.quota-recommendations span{color:var(--muted);font-size:11px}.quota-dialog .dialog-actions{margin-top:22px}.quota-upgrade{min-height:44px;text-decoration:none}
@media(max-width:560px){.quota-dialog-shell{padding:26px 20px}.quota-summary,.quota-recommendations{grid-template-columns:1fr}.quota-dialog h2{font-size:25px}}
.password-form { display: grid; gap: 15px; padding: 22px; }
.password-form label,
.login-form label { color: var(--muted); font-size: 12px; font-weight: 650; }
.password-form input,
.login-form input {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: var(--surface-raised);
  color: var(--ink);
}
.password-form input:focus,
.login-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(53,211,164,.11); }
.dialog-heading,
.dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 22px;
}
.dialog-actions { justify-content: flex-end; margin-top: 4px; }
.form-error { margin: 0; color: var(--danger); font-size: 12px; line-height: 1.45; }

.login-page { background: var(--bg); }
.login-layout { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(460px, 1.1fr); min-height: 100vh; }
.login-brand {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: clamp(40px, 7vw, 100px);
  background-color: var(--nav);
  background: var(--nav);
  color: #fff;
}
.login-brand::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
}
.login-brand-inner { max-width: 500px; }
.login-brand .brand-mark { margin-bottom: 42px; }
.login-brand .eyebrow { color: var(--primary); }
.login-brand h1 { margin-bottom: 18px; font-size: clamp(34px, 5vw, 58px); }
.login-brand p:not(.eyebrow) { max-width: 440px; color: #c4d0cc; line-height: 1.7; }
.login-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.login-facts span { padding: 8px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #dce7e3; font-size: 11px; }
.login-form-section { display: grid; place-items: center; padding: 32px; background: #0b100f; }
.login-form { display: grid; gap: 19px; width: min(410px, 100%); }
.login-form h2 { margin-bottom: 8px; font-size: 28px; }
.form-intro { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.password-field { position: relative; }
.password-field input { padding-right: 72px; }
.password-field button {
  position: absolute;
  top: 7px;
  right: 4px;
  height: 36px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}
.login-button {
  height: 46px;
  border: 0;
  border-radius: 7px;
  background: var(--primary);
  color: #06120e;
  font-weight: 750;
}
.login-button:disabled { opacity: .65; cursor: wait; }
.privacy-note { color: var(--muted); font-size: 10px; text-align: center; }

/* NEXUS access experience */
.login-page { overflow-x: hidden; }
.login-layout { grid-template-columns: 54% 46%; }
.login-brand { min-height: 100vh; overflow: hidden; align-items: stretch; grid-template-rows: auto 1fr auto; padding: clamp(32px, 4vw, 58px); }
.login-depth-scene { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.login-depth-scene i {
  position: absolute;
  inset: -7%;
  background: url("/assets/nexus-login-grid.jpg") 53% center / cover no-repeat;
  opacity: 0;
  transform-origin: 50% 82%;
  will-change: transform, opacity;
  animation: loginDepthJourney 12s linear infinite;
}
.login-depth-scene i:nth-child(2) { animation-delay: -6s; }
.login-brand::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(3, 9, 8, .4) 0%, rgba(3, 9, 8, .16) 55%, rgba(3, 9, 8, .32) 100%);
  content: "";
}
.login-brand-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.login-brand-top > div { display: flex; align-items: center; gap: 11px; }
.login-brand-top > div > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(53,211,164,.55); border-radius: 5px; color: var(--primary); font-size: 13px; font-weight: 800; }
.login-brand-top p { margin: 0; }
.login-brand-top strong,
.login-brand-top small { display: block; }
.login-brand-top strong { color: #edf5f2; font-size: 12px; }
.login-brand-top small { margin-top: 3px; color: #7f928b; font-size: 8px; text-transform: uppercase; }
.login-brand-status { display: flex; align-items: center; gap: 7px; color: #9aaba5; font-size: 8px; text-transform: uppercase; }
.login-brand-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px rgba(53,211,164,.65); }
.login-brand-inner { position: relative; z-index: 3; align-self: end; max-width: 690px; margin-bottom: clamp(42px, 7vh, 76px); animation: none; }
.login-brand h1 { margin-top: 7px; margin-bottom: 15px; font-size: clamp(46px, 5vw, 72px); line-height: .95; }
.login-brand .login-brand-statement { max-width: 570px; margin: 0; color: #d3dfdb; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.5; }
.login-brand-rule { display: flex; align-items: center; gap: 13px; margin-top: 24px; }
.login-brand-rule span { width: 52px; height: 1px; background: var(--primary); }
.login-brand-rule small { color: #849790; font-size: 8px; }
.login-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: min(650px, 100%); margin-top: 38px; border-block: 1px solid rgba(255,255,255,.14); }
.login-facts article { min-width: 0; padding: 16px 18px 16px 0; }
.login-facts article + article { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.14); }
.login-facts strong,
.login-facts small { display: block; }
.login-facts strong { color: #edf5f2; font-size: 16px; }
.login-facts small { margin-top: 6px; color: #879a93; font-size: 9px; }
.login-brand-footer { position: relative; z-index: 3; display: flex; gap: 24px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.1); color: #8b9e97; font-size: 8px; text-transform: uppercase; }
.login-brand-footer span { display: flex; align-items: center; gap: 8px; }
.login-brand-footer span::before { width: 3px; height: 3px; border-radius: 50%; background: var(--primary); content: ""; }

/* Editorial product cover */
.login-brand { place-items: center; grid-template-rows: 1fr; }
.login-brand-centered {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(700px, 88%);
  text-align: center;
}
.login-brand-lockup { display: inline-flex; align-items: center; justify-content: center; gap: 11px; margin-bottom: 30px; padding: 7px 13px 7px 7px; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; background: rgba(7,16,13,.5); }
.login-brand-lockup > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; background: var(--primary); color: #07110e; font-size: 14px; font-weight: 800; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.login-brand-lockup > i { width: 1px; height: 24px; background: rgba(255,255,255,.16); }
.login-brand-lockup > small { color: #dce7e3; font-size: 11px; font-style: normal; font-weight: 650; line-height: 1; text-align: left; white-space: nowrap; }
.login-brand-centered .eyebrow { margin: 0 0 16px; color: var(--primary); font-size: 10px; }
.login-brand-centered h1 {
  margin: 0;
  color: #f4f8f6;
  font-size: clamp(60px, 5.7vw, 88px);
  line-height: .9;
}
.login-brand-centered h1 > span { color: var(--primary); }
.login-brand .login-brand-centered .login-brand-statement {
  max-width: 590px;
  margin: 27px auto 0;
  color: #bdcbc6;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.65;
}
.login-brand-centered .login-capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin-top: 34px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px;
  background: rgba(7, 16, 13, .45);
  backdrop-filter: blur(5px);
}
.login-brand-centered .login-capabilities article {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 4px 9px;
  padding: 17px 18px;
  border: 0;
  text-align: left;
}
.login-brand-centered .login-capabilities article + article { border-left: 1px solid rgba(255,255,255,.14); }
.login-brand-centered .login-capabilities article > span { grid-row: 1 / 3; padding-top: 2px; color: var(--primary); font-size: 9px; font-weight: 750; }
.login-brand-centered .login-capabilities strong,
.login-brand-centered .login-capabilities small { display: block; }
.login-brand-centered .login-capabilities strong { color: #e8f0ed; font-size: 14px; }
.login-brand-centered .login-capabilities small { margin-top: 1px; color: #83958f; font-size: 10px; line-height: 1.35; }
.login-brand-footnote { display: flex; align-items: center; gap: 9px; margin: 22px 0 0; color: #91a39d; font-size: 11px; text-transform: uppercase; }
.login-brand-footnote span { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.login-brand-footnote i { width: 1px; height: 11px; background: rgba(255,255,255,.18); }
.login-brand-composition {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(230px, .85fr);
  gap: clamp(38px, 5vw, 76px);
  align-items: end;
  align-self: end;
  margin-bottom: clamp(42px, 8vh, 86px);
}
.login-brand-composition .login-brand-inner {
  align-self: auto;
  margin: 0;
}
.login-brand-composition .login-brand-inner::before {
  display: block;
  width: 58px;
  height: 2px;
  margin-bottom: 23px;
  background: var(--primary);
  content: "";
}
.login-brand-composition .login-brand-inner .eyebrow { margin-bottom: 13px; }
.login-brand-composition .login-brand-inner h1 {
  margin: 0;
  color: #f3f8f6;
  font-size: clamp(60px, 6vw, 96px);
  line-height: .88;
}
.login-brand .login-brand-composition .login-brand-statement {
  max-width: 500px;
  margin-top: 28px;
  color: #aebeb8;
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.55;
}
.login-brand .login-brand-composition .login-brand-statement strong { color: #f1f6f4; font-weight: 650; }
.login-capabilities { border-top: 1px solid rgba(255,255,255,.2); }
.login-capabilities article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 13px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.login-capabilities article > span { padding-top: 2px; color: var(--primary); font-size: 9px; font-weight: 750; }
.login-capabilities strong,
.login-capabilities small { display: block; }
.login-capabilities strong { color: #eaf2ef; font-size: 12px; }
.login-capabilities small { margin-top: 5px; color: #83968f; font-size: 9px; line-height: 1.4; }
.login-brand .login-brand-footer {
  align-items: baseline;
  gap: 9px;
  color: #81958e;
  text-transform: none;
}
.login-brand .login-brand-footer strong { color: #dce7e3; font-size: 12px; }
.login-brand .login-brand-footer span { display: inline; }
.login-brand .login-brand-footer span::before { display: none; }
.login-brand .login-brand-footer i { width: 1px; height: 13px; margin: 0 10px; background: rgba(255,255,255,.2); }

.login-data-scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.data-orbit { position: absolute; border: 1px solid rgba(53,211,164,.16); border-radius: 50%; }
.orbit-one { top: 13%; right: -16%; width: 48vw; max-width: 690px; aspect-ratio: 1; animation: orbitDrift 16s ease-in-out infinite alternate; }
.orbit-two { right: 3%; bottom: -24%; width: 35vw; max-width: 510px; aspect-ratio: 1; border-color: rgba(82,165,200,.13); animation: orbitDrift 20s 1s ease-in-out infinite alternate-reverse; }
.data-stream { position: absolute; display: flex; align-items: center; justify-content: space-around; height: 1px; background: linear-gradient(90deg, transparent, rgba(53,211,164,.45), transparent); transform-origin: left center; }
.data-stream::after { position: absolute; width: 34px; height: 1px; background: #35d3a4; box-shadow: 0 0 9px #35d3a4; content: ""; animation: streamScan 4.8s linear infinite; }
.data-stream span { width: 5px; height: 5px; border: 1px solid rgba(53,211,164,.75); border-radius: 50%; background: #07100d; }
.stream-one { top: 32%; right: 2%; width: 45%; transform: rotate(-5deg); }
.stream-two { right: 9%; bottom: 24%; width: 34%; transform: rotate(7deg); }
.stream-two::after { background: var(--blue); box-shadow: 0 0 9px var(--blue); animation-delay: -2.4s; }
.market-pulse {
  position: absolute;
  top: 18%;
  right: 7%;
  width: 230px;
  padding: 17px;
  border: 1px solid rgba(196,215,208,.2);
  border-radius: 7px;
  background: rgba(7,16,13,.72);
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  animation: dataPanelFloat 7s ease-in-out infinite;
}
.market-pulse header { display: flex; align-items: center; justify-content: space-between; color: #99aaa4; font-size: 9px; text-transform: uppercase; }
.market-pulse header i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); animation: statusPulse 1.8s ease-in-out infinite; }
.market-pulse-value { display: flex; align-items: end; justify-content: space-between; margin-top: 16px; }
.market-pulse-value strong { color: #eef7f4; font-size: 25px; }
.market-pulse-value small { padding-bottom: 3px; color: #80918b; font-size: 8px; }
.market-bars { display: flex; align-items: end; gap: 6px; height: 58px; margin-top: 15px; padding-top: 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
.market-bars i { width: 100%; height: var(--bar); min-height: 3px; border-radius: 2px 2px 0 0; background: linear-gradient(#35d3a4, #17785e); transform-origin: bottom; animation: barRise 1s cubic-bezier(.2,.75,.25,1) both; }
.market-bars i:nth-child(2) { animation-delay: .08s; }
.market-bars i:nth-child(3) { animation-delay: .16s; }
.market-bars i:nth-child(4) { animation-delay: .24s; }
.market-bars i:nth-child(5) { animation-delay: .32s; }
.market-bars i:nth-child(6) { animation-delay: .4s; }
.market-bars i:nth-child(7) { animation-delay: .48s; }
.market-bars i:nth-child(8) { background: linear-gradient(#e2a63c, #976b1e); animation-delay: .56s; }
.live-metric { position: absolute; display: grid; grid-template-columns: 1fr auto; gap: 4px 17px; min-width: 145px; padding: 12px 14px; border-left: 2px solid var(--blue); background: rgba(7,16,13,.72); backdrop-filter: blur(7px); animation: metricIn .7s .55s ease-out both, metricFloat 8s 1.25s ease-in-out infinite; }
.live-metric > span { grid-column: 1 / -1; color: #84958f; font-size: 8px; }
.live-metric strong { color: #e4eeea; font-size: 13px; }
.live-metric i { color: var(--primary); font-size: 9px; font-style: normal; }
.metric-sales { right: 25%; bottom: 17%; }
.metric-margin { right: 5%; bottom: 36%; border-color: var(--accent); animation-delay: .75s, 1.45s; }

.login-form-section { position: relative; isolation: isolate; display: grid; place-items: center; overflow: visible; padding: 38px clamp(42px, 4vw, 76px); background: #0a0f0e; }
.login-form-section::before { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(53,211,164,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(53,211,164,.028) 1px, transparent 1px); background-size: 42px 42px; content: ""; }
.login-form-section::after {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 3;
  width: 1px;
  background: linear-gradient(to bottom, rgba(53,211,164,.12) 0%, rgba(53,211,164,.12) 38%, rgba(53,211,164,.9) 50%, rgba(53,211,164,.12) 62%, rgba(53,211,164,.12) 100%);
  background-position: center -100vh;
  background-size: 100% 200vh;
  content: "";
  pointer-events: none;
  animation: edgeScan 7s linear infinite;
}
.login-access-column {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 30px;
  width: min(590px, 100%);
  padding: clamp(30px, 4vh, 42px) clamp(32px, 3.5vw, 48px) 30px;
  border: 1px solid #31423c;
  border-left-width: 2px;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(16, 25, 22, .985), rgba(11, 18, 16, .985));
  box-shadow:
    0 28px 72px rgba(0, 0, 0, .3),
    0 1px 0 rgba(255, 255, 255, .025),
    inset 0 0 0 1px rgba(255, 255, 255, .012);
  transform: none;
}
.login-access-column::before {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(123, 151, 141, .09);
  border-radius: 4px;
  content: "";
  pointer-events: none;
}
.login-access-column::after {
  position: absolute;
  top: -1px;
  left: 44px;
  width: 72px;
  height: 2px;
  border: 0;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(53, 211, 164, .18);
  content: "";
  pointer-events: none;
}
.login-form-brand { display: flex; align-items: center; gap: 9px; color: #cfdad6; font-size: 11px; }
.login-form-brand span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #315047; border-radius: 4px; color: var(--primary); font-weight: 800; }
.login-form { position: relative; z-index: 2; gap: 20px; width: 100%; animation: none; }
.login-form::before { display: block; width: 36px; height: 2px; margin-bottom: 5px; background: var(--primary); content: ""; }
.login-form h2 { margin: 6px 0 9px; font-size: 31px; }
.form-intro { font-size: 13px; line-height: 1.55; }
.login-form label { font-size: 11px; text-transform: uppercase; }
.login-form input { height: 50px; padding-inline: 14px; border-color: #2b3935; background: #111916; font-size: 14px; text-transform: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.login-form input:hover { border-color: #3a4b46; background: #131d1a; }
.login-form input:focus { background: #141f1c; }
.password-field button { top: 9px; right: 6px; }
.login-button { position: relative; display: flex; align-items: center; justify-content: center; height: 50px; margin-top: 3px; overflow: hidden; transition: transform .2s, box-shadow .2s, background .2s; }
.login-button::before { display: none; }
.login-button:hover { background: #42dfaf; box-shadow: 0 10px 25px rgba(53,211,164,.16); transform: translateY(-1px); }
.login-button > span { position: relative; z-index: 1; }
.login-button > i { position: absolute; right: 18px; width: 14px; height: 1px; background: currentColor; }
.login-button > i::after { position: absolute; top: -3px; right: 0; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; content: ""; transform: rotate(45deg); }
.login-button.is-loading > i { width: 7px; height: 7px; border: 0; border-radius: 50%; background: #06120e; animation: none; }
.login-button.is-loading > i::after { display: none; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 10px; }
.privacy-note > i { width: 6px; height: 6px; border: 1px solid var(--primary); border-radius: 50%; }
.login-environment { display: flex; align-items: center; gap: 7px; margin: -8px 0 0; color: #65756f; font-size: 9px; text-transform: uppercase; }
.login-environment span { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 7px rgba(53,211,164,.7); }

@keyframes loginContentIn { from { opacity: 0; transform: translateY(18px); } }
@keyframes loginFormIn { from { opacity: 0; transform: translateX(18px); } }
@keyframes brandSignal { 0%, 100% { opacity: .35; transform: scale(.94); } 50% { opacity: .9; transform: scale(1.03); } }
@keyframes orbitDrift { to { opacity: .45; transform: translate3d(-18px, 12px, 0) scale(1.035); } }
@keyframes dataPanelFloat { 0%, 100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-7px,0); } }
@keyframes metricFloat { 0%, 100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(5px,-5px,0); } }
@keyframes metricIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes barRise { from { transform: scaleY(.05); opacity: .25; } }
@keyframes streamScan { from { left: 0; opacity: 0; } 12%, 88% { opacity: 1; } to { left: calc(100% - 34px); opacity: 0; } }
@keyframes statusPulse { 50% { opacity: .35; transform: scale(.75); } }
@keyframes edgeScan {
  from { background-position: center -100vh; }
  to { background-position: center 100vh; }
}
@keyframes loginDepthJourney {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(1); }
  14% { opacity: 1; }
  58% { opacity: 1; }
  76%, 100% { opacity: 0; transform: translate3d(0, -1.5%, 0) scale(1.24); }
}

@media (prefers-reduced-motion: reduce) {
  .login-page *,
  .login-page *::before,
  .login-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .login-depth-scene i { opacity: 1; transform: none; animation: none !important; }
  .login-depth-scene i:nth-child(2) { display: none; }
}

/* Audit management */
.audit-workspace { --audit-green: #35d3a4; --audit-blue: #4a9df4; --audit-yellow: #ecb94d; --audit-red: #f0646e; }
.audit-module-header { align-items: flex-end; }
.audit-new-button { display: inline-flex; align-items: center; gap: 8px; min-width: 172px; justify-content: center; }
.audit-new-button span { font-size: 18px; line-height: 0; }
.audit-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.audit-kpis article { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, rgba(255,255,255,.025), transparent), var(--surface); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.audit-kpi-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px; background: rgba(53,211,164,.1); color: var(--audit-green); font-size: 18px; }
.audit-kpi-icon.client { background: rgba(236,185,77,.1); color: var(--audit-yellow); }
.audit-kpi-icon.review { background: rgba(74,157,244,.1); color: var(--audit-blue); }
.audit-kpi-icon.complete { background: rgba(145,160,155,.1); color: #a9b5b1; }
.audit-kpis small, .audit-kpis strong, .audit-kpis em { display: block; }
.audit-kpis small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.audit-kpis strong { margin: 4px 0 2px; font-size: 25px; }
.audit-kpis em { color: var(--muted); font-size: 9px; font-style: normal; }
.audit-portfolio { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: rgba(7,17,14,.32); box-shadow: 0 20px 55px rgba(0,0,0,.13); }
.audit-section-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.audit-section-header h2 { margin: 4px 0 0; font-size: 18px; }
.audit-toolbar { display: flex; gap: 9px; }
.audit-search { display: flex; align-items: center; gap: 8px; width: min(270px, 30vw); height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); }
.audit-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 11px; }
.audit-toolbar select { height: 40px; padding: 0 30px 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 11px; }
.audit-layout { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(0, 1.55fr); min-height: 650px; }
.audit-list { padding: 10px; overflow-y: auto; border-right: 1px solid var(--line); background: rgba(0,0,0,.08); }
.audit-card { display: grid; grid-template-columns: 8px minmax(0,1fr); gap: 11px; width: 100%; margin: 0 0 7px; padding: 15px 14px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: .2s ease; }
.audit-card:hover { background: rgba(255,255,255,.025); border-color: var(--line); }
.audit-card.selected { border-color: rgba(53,211,164,.28); background: linear-gradient(100deg, rgba(53,211,164,.08), rgba(53,211,164,.015)); box-shadow: inset 3px 0 var(--audit-green); }
.audit-traffic { display: inline-block; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #77827e; box-shadow: 0 0 0 4px rgba(119,130,126,.09); }
.audit-traffic.green { background: var(--audit-green); box-shadow: 0 0 0 4px rgba(53,211,164,.09), 0 0 12px rgba(53,211,164,.25); }
.audit-traffic.yellow { background: var(--audit-yellow); box-shadow: 0 0 0 4px rgba(236,185,77,.09); }
.audit-traffic.red { background: var(--audit-red); box-shadow: 0 0 0 4px rgba(240,100,110,.09); }
.audit-card-main { min-width: 0; }
.audit-card-top, .audit-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.audit-card-top strong { min-width: 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.audit-card-main > small { display: block; margin: 5px 0 12px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.audit-status, .audit-risk { flex: 0 0 auto; padding: 4px 7px; border-radius: 99px; background: rgba(53,211,164,.1); color: var(--audit-green); font-size: 8px; font-style: normal; font-weight: 750; text-transform: uppercase; }
.audit-status.recorded { background: rgba(74,157,244,.1); color: var(--audit-blue); }
.audit-status.client, .audit-risk.high { background: rgba(236,185,77,.1); color: var(--audit-yellow); }
.audit-status.review { background: rgba(74,157,244,.1); color: var(--audit-blue); }
.audit-status.complete { background: rgba(145,160,155,.1); color: #a9b5b1; }
.audit-risk.critical { background: rgba(240,100,110,.1); color: var(--audit-red); }
.audit-progress { display: block; height: 5px; overflow: hidden; border-radius: 9px; background: rgba(255,255,255,.07); }
.audit-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #229b79, var(--audit-green)); }
.audit-card-bottom { margin-top: 7px; color: var(--muted); font-size: 8px; }
.audit-detail { min-width: 0; padding: 25px; }
.audit-detail-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.audit-detail-hero > div { position: relative; min-width: 0; padding-left: 19px; }
.audit-detail-hero .audit-traffic { position: absolute; top: 1px; left: 0; }
.audit-detail-hero p { margin: 0 0 5px; color: var(--primary); font-size: 9px; font-weight: 750; letter-spacing: .08em; }
.audit-detail-hero h2 { margin: 0 0 6px; font-size: 20px; overflow-wrap: anywhere; }
.audit-detail-hero small { color: var(--muted); font-size: 10px; }
.audit-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin: 18px 0; border: 1px solid var(--line); border-radius: 10px; }
.audit-summary-grid article { min-width: 0; padding: 13px; }
.audit-summary-grid article + article { border-left: 1px solid var(--line); }
.audit-summary-grid small, .audit-summary-grid strong { display: block; }
.audit-summary-grid small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.audit-summary-grid strong { margin-top: 5px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.audit-process { padding: 19px; border: 1px solid rgba(53,211,164,.14); border-radius: 12px; background: linear-gradient(145deg, rgba(53,211,164,.045), transparent); }
.audit-company-data { margin-bottom: 16px; padding: 17px; border: 1px solid rgba(74,157,244,.18); border-radius: 11px; background: linear-gradient(145deg, rgba(74,157,244,.055), transparent); }
.audit-company-data header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.audit-company-data h3 { margin: 4px 0 0; font-size: 13px; }
.audit-company-data header > span { color: var(--audit-blue); font-size: 9px; font-weight: 750; }
.audit-company-data > p { margin: 12px 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.audit-company-data > div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.audit-company-data article { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.08); }
.audit-company-data article small, .audit-company-data article strong { display: block; }
.audit-company-data article small { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.audit-company-data article strong { margin-top: 5px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.audit-company-data footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 7px; }
.audit-request-document { margin-bottom: 16px; padding: 18px; border: 1px solid rgba(236,185,77,.2); border-radius: 12px; background: linear-gradient(145deg, rgba(236,185,77,.06), transparent); }
.audit-request-document > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.audit-request-document h3 { margin: 4px 0 5px; font-size: 15px; }
.audit-request-document header p:last-child { max-width: 620px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.audit-request-document header > span { flex: 0 0 auto; padding: 5px 8px; border-radius: 99px; background: rgba(236,185,77,.1); color: var(--accent); font-size: 8px; font-weight: 750; }
.audit-request-document form { display: grid; grid-template-columns: 1.15fr 1fr .9fr .85fr auto; gap: 9px; align-items: end; margin-top: 15px; }
.audit-request-document label { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.audit-request-document input { min-width: 0; width: 100%; height: 39px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: var(--surface); color: var(--text); font: inherit; font-size: 10px; }
.audit-request-document input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(236,185,77,.08); }
.audit-company-picker { position: relative; }
.audit-company-picker > div:first-of-type { position: relative; }
.audit-company-picker > div:first-of-type input { padding-right: 32px; }
.audit-company-search-icon { position: absolute; top: 50%; right: 11px; color: var(--muted); font-size: 13px; transform: translateY(-50%); pointer-events: none; }
.audit-company-suggestions { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(430px, 92vw); max-height: 280px; padding: 6px; overflow-y: auto; border: 1px solid rgba(53,211,164,.24); border-radius: 9px; background: #0b1b17; box-shadow: 0 18px 45px rgba(0,0,0,.42); }
.audit-company-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.audit-company-option:hover, .audit-company-option:focus { outline: 0; background: rgba(53,211,164,.08); }
.audit-company-option span { min-width: 0; }
.audit-company-option strong, .audit-company-option small { display: block; }
.audit-company-option strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.audit-company-option small { margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 400; text-transform: none; }
.audit-company-option em { flex: 0 0 auto; color: var(--accent); font-size: 8px; font-style: normal; font-weight: 600; text-transform: none; }
.audit-company-no-results { margin: 0; padding: 15px 10px; color: var(--muted); font-size: 9px; font-weight: 400; text-align: center; text-transform: none; }
.audit-request-document button { height: 39px; white-space: nowrap; }
.audit-request-message { margin: 11px 0 0; padding-top: 9px; border-top: 1px solid var(--line); font-size: 9px; }
.audit-request-message.success { color: var(--primary); }
.audit-request-message.error { color: var(--danger); }
.audit-process header { display: flex; justify-content: space-between; gap: 15px; }
.audit-process h3 { margin: 4px 0 0; font-size: 15px; }
.audit-process header > strong { color: var(--primary); font-size: 16px; }
.audit-process ol { display: grid; grid-template-columns: repeat(10, minmax(42px, 1fr)); margin: 20px 0 0; padding: 0; list-style: none; }
.audit-process li { position: relative; display: grid; justify-items: center; gap: 7px; min-width: 0; text-align: center; }
.audit-process li::before { content: ""; position: absolute; top: 11px; right: 50%; width: 100%; height: 1px; background: var(--line); }
.audit-process li:first-child::before { display: none; }
.audit-process li > span { position: relative; z-index: 1; display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 50%; background: #0b1b17; color: var(--muted); font-size: 7px; }
.audit-process li.done > span { border-color: var(--primary); background: var(--primary); color: #07110e; }
.audit-process li.current > span { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px rgba(53,211,164,.09); }
.audit-process li.done::before, .audit-process li.current::before { background: var(--primary); }
.audit-process li small { max-width: 70px; color: var(--muted); font-size: 7px; overflow-wrap: anywhere; }
.audit-process li.current small { color: var(--text); }
.audit-control-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin: 16px 0; }
.audit-control-grid article { position: relative; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.audit-control-grid article > span { position: absolute; top: 12px; right: 12px; color: var(--primary); }
.audit-control-grid small, .audit-control-grid strong, .audit-control-grid em { display: block; }
.audit-control-grid small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.audit-control-grid strong { margin: 8px 0 3px; font-size: 16px; }
.audit-control-grid em { overflow: hidden; color: var(--muted); font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.audit-actions { padding-top: 4px; }
.audit-actions h3 { margin: 4px 0 10px; font-size: 14px; }
.audit-actions article { display: grid; grid-template-columns: 7px minmax(0,1fr); gap: 11px; padding: 10px 0; border-top: 1px solid var(--line); }
.audit-actions article > span { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--audit-blue); }
.audit-actions article.urgent > span { background: var(--audit-red); }
.audit-actions article.warning > span { background: var(--audit-yellow); }
.audit-actions article strong { font-size: 10px; }
.audit-actions article p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.audit-detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.audit-detail-footer span { color: var(--muted); font-size: 9px; }
.audit-detail-footer button { min-width: 120px; }
.audit-empty { display: grid; place-items: center; align-content: center; min-height: 220px; padding: 30px; color: var(--muted); text-align: center; }
.audit-empty strong { color: var(--text); }
.audit-empty p { font-size: 10px; }
.audit-dialog { width: min(760px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 1px solid var(--line); border-radius: 15px; background: #0b1b17; color: var(--text); }
.audit-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.audit-form { padding: 24px; }
.audit-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 20px 0 14px; }
.audit-form label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.audit-form input, .audit-form select, .audit-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: var(--surface); color: var(--text); font: inherit; font-size: 11px; }
.audit-form input:focus, .audit-form select:focus, .audit-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(53,211,164,.08); }

@media (max-width: 1050px) {
  .audit-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .audit-layout { grid-template-columns: minmax(270px,.75fr) minmax(0,1.25fr); }
  .audit-summary-grid, .audit-control-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .audit-summary-grid article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .audit-summary-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .audit-process { overflow-x: auto; }
  .audit-process ol { min-width: 650px; }
  .audit-request-document form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .audit-module-header { display: flex; align-items: flex-start; }
  .audit-section-header { align-items: stretch; flex-direction: column; }
  .audit-toolbar { width: 100%; }
  .audit-search { width: 100%; }
  .audit-layout { grid-template-columns: 1fr; }
  .audit-list { max-height: 360px; border-right: 0; border-bottom: 1px solid var(--line); }
  .audit-detail { padding: 20px; }
  .audit-company-data > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .audit-request-document form { grid-template-columns: 1fr; }
  .audit-request-document button { width: 100%; }
}
@media (max-width: 520px) {
  .audit-module-header { display: block; }
  .audit-new-button { width: 100%; margin-top: 16px; }
  .audit-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .audit-kpis article { align-items: flex-start; padding: 13px; }
  .audit-kpi-icon { width: 31px; height: 31px; flex-basis: 31px; font-size: 13px; }
  .audit-kpis em { display: none; }
  .audit-toolbar { flex-direction: column; }
  .audit-toolbar select { width: 100%; }
  .audit-detail { padding: 16px; }
  .audit-detail-hero { flex-direction: column; }
  .audit-summary-grid, .audit-control-grid { grid-template-columns: 1fr 1fr; }
  .audit-control-grid article { padding: 12px; }
  .audit-detail-footer { align-items: stretch; flex-direction: column; }
  .audit-detail-footer button { width: 100%; }
  .audit-company-data footer { flex-direction: column; gap: 4px; }
  .audit-request-document > header { flex-direction: column; }
  .audit-form-grid { grid-template-columns: 1fr; }
  .audit-form { padding: 19px; }
}

/* Intelligence orientation experiment: inputs above, full-width insight canvas below. */
#intelligenceView .workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

#intelligenceView .workspace-controls {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto auto repeat(3, auto);
  gap: 12px 16px;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.018), transparent), var(--surface-soft);
  box-shadow: 0 16px 42px rgba(0,0,0,.14);
}

#intelligenceView .workspace-controls > .control-heading:first-child { grid-column: 1 / -1; grid-row: 1; margin: 0 0 4px; }
#intelligenceView .workspace-controls > .company-picker { grid-column: 1 / 5; grid-row: 2; margin: 0; }
#intelligenceView .workspace-controls > .company-picker + .field-group { grid-column: 5 / 7; grid-row: 2; margin: 0; }
#intelligenceView .workspace-controls > .company-picker + .field-group + .field-group { grid-column: 7 / 13; grid-row: 2; margin: 0; }
#intelligenceView .workspace-controls > .company-picker + .field-group + .field-group textarea { min-height: 44px; height: 44px; resize: vertical; }
#intelligenceView .workspace-controls > .control-heading.compact { grid-column: 1 / -1; grid-row: 3; margin: 12px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
#intelligenceView .workspace-controls > .document-drop { grid-column: 1 / 5; grid-row: 4 / 7; min-height: 128px; margin: 0; }
#intelligenceView .workspace-controls > .document-list { grid-column: 5 / 9; grid-row: 4; margin: 0; align-self: start; }
#intelligenceView .workspace-controls > .source-toggle:nth-of-type(2) { grid-column: 5 / 9; grid-row: 5; }
#intelligenceView .workspace-controls > .source-toggle:nth-of-type(3) { grid-column: 5 / 9; grid-row: 6; }
#intelligenceView .workspace-controls > .source-toggle { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.015); }
#intelligenceView .workspace-controls > .workspace-action { grid-column: 9 / 13; grid-row: 4 / 7; align-self: stretch; min-height: 74px; margin: 0; border-radius: 10px; font-size: 13px; }

#intelligenceView .workspace-output {
  min-width: 0;
  padding: 34px 0 28px;
}
#intelligenceView .module-empty { min-height: 300px; }
#intelligenceView .intelligence-report { width: 100%; max-width: none; }
#intelligenceView .intelligence-report > .report-header { display: none !important; }
#intelligenceView .intelligence-market-grid { grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); }
#intelligenceView .intelligence-financial-charts { gap: 28px; }

@media (max-width: 1050px) {
  #intelligenceView .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  #intelligenceView .workspace-controls > .company-picker { grid-column: 1 / 7; }
  #intelligenceView .workspace-controls > .company-picker + .field-group { grid-column: 7 / 13; }
  #intelligenceView .workspace-controls > .company-picker + .field-group + .field-group { grid-column: 1 / -1; grid-row: 3; }
  #intelligenceView .workspace-controls > .control-heading.compact { grid-row: 4; }
  #intelligenceView .workspace-controls > .document-drop { grid-column: 1 / 7; grid-row: 5 / 8; }
  #intelligenceView .workspace-controls > .document-list { grid-column: 7 / 13; grid-row: 5; }
  #intelligenceView .workspace-controls > .source-toggle:nth-of-type(2) { grid-column: 7 / 13; grid-row: 6; }
  #intelligenceView .workspace-controls > .source-toggle:nth-of-type(3) { grid-column: 7 / 13; grid-row: 7; }
  #intelligenceView .workspace-controls > .workspace-action { grid-column: 1 / -1; grid-row: 8; min-height: 48px; }
}

@media (max-width: 620px) {
  #intelligenceView .workspace-controls { display: flex; flex-direction: column; padding: 18px; }
  #intelligenceView .workspace-controls > * { width: 100%; }
  #intelligenceView .workspace-controls > .control-heading.compact { margin-top: 8px; }
  #intelligenceView .workspace-controls > .workspace-action { min-height: 48px; }
  #intelligenceView .workspace-output { padding-top: 24px; }
}

@media (max-width: 1200px) {
  .login-brand-composition { grid-template-columns: 1fr; gap: 26px; margin-bottom: 38px; }
  .login-capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .login-capabilities article { grid-template-columns: 22px minmax(0, 1fr); padding: 13px 10px 13px 0; }
  .login-capabilities article + article { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.14); }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--surface-raised) inset;
}

.module-view { min-width: 0; }
.module-view:not([hidden]) { animation: nexusModuleEnter .3s cubic-bezier(.22,.8,.3,1) both; }

@keyframes nexusModuleEnter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

.module-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 5px 0 28px;
  border-bottom: 1px solid var(--line);
}

.module-header h1 { margin: 3px 0 8px; font-size: 32px; }
.module-header > div > p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.connection-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.connection-status.connected { color: var(--primary); }
.connection-status.connected i { background: var(--primary); box-shadow: 0 0 0 4px rgba(53, 211, 164, .1); }

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(310px, 390px) minmax(0, 1fr);
  min-height: 690px;
}

.workspace-controls { padding: 28px 28px 28px 0; border-right: 1px solid var(--line); }
.workspace-output { min-width: 0; padding: 28px 0 28px 32px; }

.control-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.control-heading.compact { margin-top: 30px; }
.control-heading h2 { margin: 0 0 5px; font-size: 16px; }
.control-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.step-index { color: var(--primary); font-size: 11px; font-weight: 800; }

.field-group { display: grid; gap: 7px; margin-bottom: 16px; }
.field-group > label,
.benchmark-period { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.field-group select,
.field-group textarea,
.picker-input,
.benchmark-period select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: var(--surface);
  color: var(--ink);
}
.field-group select,
.benchmark-period select { height: 42px; padding: 0 11px; }
.field-group textarea { resize: vertical; min-height: 94px; padding: 11px; line-height: 1.5; }
.field-group select:focus,
.field-group textarea:focus,
.picker-input:focus-within,
.benchmark-period select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(53, 211, 164, .1); }

.company-picker { position: relative; min-width: 0; }
.picker-input { display: flex; align-items: center; gap: 11px; height: 44px; padding: 0 13px; }
.picker-input input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.picker-input input::placeholder { color: #667570; }
.picker-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 30;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}
.picker-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.picker-option:last-child { border-bottom: 0; }
.picker-option:hover { background: var(--surface-soft); }
.picker-option span { min-width: 0; }
.picker-option strong,
.picker-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-option strong { max-width: 270px; font-size: 11px; }
.picker-option small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.picker-empty { margin: 0; padding: 18px; color: var(--muted); font-size: 11px; text-align: center; }

.document-drop {
  display: grid;
  place-items: center;
  min-height: 126px;
  margin-bottom: 12px;
  padding: 17px;
  border: 1px dashed #3c514a;
  border-radius: 7px;
  background: var(--surface-soft);
  text-align: center;
  cursor: pointer;
}
.document-drop:hover { border-color: var(--primary); }
.upload-symbol { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 8px; border: 1px solid #356456; border-radius: 6px; color: var(--primary); font-size: 18px; }
.document-drop strong { font-size: 12px; }
.document-drop small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.document-list,
.report-documents { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.document-list span,
.report-documents span { min-width: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.document-list strong,
.document-list small,
.report-documents strong,
.report-documents small { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.document-list small,
.report-documents small { margin-top: 3px; color: var(--muted); }

.source-toggle { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.source-toggle input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--primary); }
.source-toggle span,
.source-toggle strong,
.source-toggle small { display: block; }
.source-toggle strong { font-size: 11px; }
.source-toggle small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.workspace-action { width: 100%; margin-top: 20px; }

.module-empty { display: grid; place-items: center; min-height: 570px; padding: 40px; text-align: center; }
.module-empty h2 { margin: 18px 0 8px; font-size: 20px; }
.module-empty p { max-width: 460px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.empty-monogram { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #386e5e; border-radius: 8px; background: #102c24; color: var(--primary); font-size: 15px; font-weight: 850; }

.analysis-loading { display: grid; grid-template-columns: repeat(3, 8px); place-content: center; gap: 7px; min-height: 500px; text-align: center; }
.analysis-loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: intelligencePulse .9s infinite alternate; }
.analysis-loading span:nth-child(2) { animation-delay: .15s; }
.analysis-loading span:nth-child(3) { animation-delay: .3s; }
.analysis-loading p { grid-column: 1 / -1; margin-top: 12px; color: var(--muted); font-size: 11px; }
@keyframes intelligencePulse { to { opacity: .2; transform: translateY(-4px); } }

.report-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.report-print-cover,
.report-print-footer { display: none; }
.report-export { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 34px; padding: 24px 0 4px; border-top: 1px solid var(--line); }
.report-export h3 { margin: 4px 0 5px; font-size: 18px; }
.report-export p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.report-export-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: 0 0 auto; min-width: 170px; }
.report-export-button > span { position: relative; width: 15px; height: 17px; border: 1.5px solid currentColor; border-top: 0; }
.report-export-button > span::before { content: ""; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateX(-50%) rotate(45deg); }
.report-export-button > span::after { content: ""; position: absolute; left: 50%; top: -8px; width: 1.5px; height: 10px; background: currentColor; transform: translateX(-50%); }
.report-header h2 { margin: 4px 0 7px; font-size: 23px; }
.report-header p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.report-warning { padding: 11px 13px; border-left: 3px solid var(--accent); background: #292315; color: #e6c47d; font-size: 11px; }
.report-documents { margin-top: 18px; }
.ai-narrative { margin-top: 20px; padding: 18px; border-left: 3px solid var(--blue); background: #101c20; }
.ai-narrative h3 { margin: 0 0 10px; font-size: 14px; }
.ai-narrative p { margin: 0; color: #c2d1cd; font-size: 12px; line-height: 1.7; }
.local-narrative { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.insight-block { min-height: 170px; padding: 17px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.insight-block h3 { margin: 0 0 12px; font-size: 13px; }
.insight-block ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.insight-block li + li { margin-top: 7px; }
.insight-block.positive { border-top-color: var(--primary); }
.insight-block.risk { border-top-color: var(--danger); }
.insight-block.action { border-top-color: var(--accent); }

/* Executive answer: question first, evidence second, actions last. */
.nexus-answer { display: grid; gap: 18px; }
.nexus-answer-question {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid #263a34;
  border-radius: 10px;
  background: rgba(255,255,255,.018);
}
.nexus-answer-question span { color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.nexus-answer-question p { margin: 0; color: #dce8e4; font-size: 15px; font-weight: 650; line-height: 1.55; }
.nexus-answer-verdict {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(53,211,164,.34);
  border-radius: 13px;
  background: radial-gradient(circle at 88% 12%, rgba(53,211,164,.12), transparent 30%), linear-gradient(135deg, #10241e, #0d1714 72%);
  box-shadow: 0 18px 48px rgba(0,0,0,.17), inset 0 1px rgba(255,255,255,.025);
}
.nexus-verdict-mark { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(53,211,164,.55); border-radius: 12px; background: rgba(53,211,164,.09); color: var(--primary); font-size: 24px; font-weight: 900; box-shadow: 0 0 24px rgba(53,211,164,.1); }
.nexus-answer-verdict small,
.nexus-answer-actions header small,
.insight-block header small { color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.nexus-answer-verdict h3 { margin: 5px 0 10px; color: #f3f8f6; font-size: 24px; line-height: 1.2; }
.nexus-answer-verdict p { max-width: 900px; margin: 0; color: #aebdb8; font-size: 14px; line-height: 1.75; }
.nexus-evidence-badge { padding: 7px 10px; border: 1px solid #315047; border-radius: 999px; color: #a9bbb5; font-size: 10px; white-space: nowrap; }
.nexus-answer-evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nexus-answer .insight-block { min-height: 210px; padding: 22px; border-radius: 12px; color: #fff; box-shadow: 0 18px 42px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.08); }
.nexus-answer .insight-block header { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.nexus-answer .insight-block header > span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid rgba(255,255,255,.38); border-radius: 10px; background: rgba(4,14,12,.2); color: #fff; font-size: 18px; font-weight: 900; }
.nexus-answer .insight-block header small { color: rgba(255,255,255,.76); }
.nexus-answer .insight-block h3 { margin: 3px 0 0; color: #fff; font-size: 18px; }
.nexus-answer .insight-block ul { padding-left: 19px; color: rgba(255,255,255,.92); font-size: 14px; line-height: 1.72; }
.nexus-answer .insight-block li::marker { color: rgba(255,255,255,.88); }
.nexus-answer .insight-block.neutral { border-color: #1e9cb0; background: radial-gradient(circle at 100% 0, rgba(79,220,231,.22), transparent 36%), linear-gradient(145deg, #126f80, #0b4c5b); }
.nexus-answer .insight-block.positive { border-color: #35d3a4; background: radial-gradient(circle at 100% 0, rgba(129,255,214,.2), transparent 38%), linear-gradient(145deg, #168b69, #0b5d47); }
.nexus-answer .insight-block.risk { border-color: #f06d74; background: radial-gradient(circle at 100% 0, rgba(255,175,179,.18), transparent 38%), linear-gradient(145deg, #a7333d, #711f29); }
.nexus-answer .insight-block.neutral header > span { box-shadow: 0 0 20px rgba(102,225,235,.18); }
.nexus-answer .insight-block.positive header > span { box-shadow: 0 0 20px rgba(111,255,207,.17); }
.nexus-answer .insight-block.risk header > span { box-shadow: 0 0 20px rgba(255,143,149,.18); }
.nexus-answer-actions { padding: 25px 27px; border: 1px solid #a98a3d; border-radius: 12px; background: radial-gradient(circle at 100% 0, rgba(226,190,99,.14), transparent 36%), linear-gradient(145deg, #756027, #59491f); color: #fff; box-shadow: 0 18px 42px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.08); }
.nexus-answer-actions > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.nexus-answer-actions header small { color: #eadba9; }
.nexus-answer-actions h3 { margin: 4px 0 0; color: #fff; font-size: 21px; }
.nexus-answer-actions > header > span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; background: rgba(18,14,5,.18); color: #f4e8bd; font-size: 10px; font-weight: 800; }
.nexus-answer-actions ol { display: block; margin: 0; padding-left: 21px; list-style: disc; }
.nexus-answer-actions li { display: list-item; padding: 3px 0; border: 0; background: none; color: rgba(255,255,255,.9); }
.nexus-answer-actions li + li { margin-top: 8px; }
.nexus-answer-actions li::marker { color: #f0cf72; font-size: 1.05em; }
.nexus-answer-actions li > span { display: none; }
.nexus-answer-actions li p { display: inline; margin: 0; color: rgba(255,255,255,.92); font-size: 14px; font-weight: 500; line-height: 1.65; }

@media (max-width: 900px) {
  .nexus-answer-verdict { grid-template-columns: 52px minmax(0, 1fr); }
  .nexus-evidence-badge { grid-column: 2; justify-self: start; }
  .nexus-answer-evidence { grid-template-columns: 1fr; }
  .nexus-answer .insight-block { min-height: 0; }
}

@media (max-width: 600px) {
  .nexus-answer-question { grid-template-columns: 1fr; gap: 6px; }
  .nexus-answer-verdict { grid-template-columns: 1fr; padding: 21px; }
  .nexus-evidence-badge { grid-column: auto; }
  .nexus-answer-verdict h3 { font-size: 21px; }
  .nexus-answer-actions ol { padding-left: 19px; }
}

.local-narrative.adaptive-report { display: block; }
.executive-insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.intelligence-command-center { padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.intelligence-command-center > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 5px 0 20px; border-bottom: 1px solid var(--line); }
.intelligence-command-center > header h2 { margin: 4px 0 6px; font-size: 21px; }
.intelligence-command-center > header p:last-child { max-width: 650px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.intelligence-command-center > header > span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--muted); font-size: 8px; white-space: nowrap; }
.intelligence-market-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 18px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.intelligence-market-grid h3,
.intelligence-kpi-strip h3,
.intelligence-financial-charts h3 { margin: 4px 0 0; font-size: 14px; }
.intelligence-peer-table { min-width: 0; }
.intelligence-peer-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.intelligence-peer-title > span { color: var(--muted); font-size: 7px; text-align: right; text-transform: uppercase; }
.intelligence-peer-head,
.intelligence-peer { display: grid; grid-template-columns: 22px minmax(0, 1fr) 72px 42px; gap: 8px; align-items: center; min-height: 31px; border-bottom: 1px solid var(--line); }
.intelligence-peer-head { min-height: 24px; color: var(--muted); font-size: 7px; text-transform: uppercase; }
.intelligence-peer-head em,
.intelligence-peer-head small,
.intelligence-peer em,
.intelligence-peer small { text-align: right; }
.intelligence-peer-head em,
.intelligence-peer em { font-style: normal; }
.intelligence-peer > span { color: var(--muted); font-size: 7px; }
.intelligence-peer > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #c8d3cf; font-size: 8px; white-space: nowrap; }
.intelligence-peer > em,
.intelligence-peer > small { color: var(--muted); font-size: 7px; font-style: normal; }
.intelligence-peer.selected { border-left: 2px solid var(--primary); background: rgba(53, 211, 164, .04); }
.intelligence-peer.selected > strong,
.intelligence-peer.selected > small { color: var(--primary); }
.intelligence-position-stack { display: grid; grid-column: 1; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.intelligence-position-stack article { display: grid; place-content: center; min-height: 84px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); text-align: center; }
.intelligence-position-stack span,
.intelligence-position-stack strong,
.intelligence-position-stack small { display: block; }
.intelligence-position-stack span { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.intelligence-position-stack strong { margin: 6px 0 4px; color: var(--primary); font-size: 17px; overflow-wrap: anywhere; }
.intelligence-position-stack small { color: var(--muted); font-size: 7px; }
.intelligence-share { display: flex; grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.intelligence-share h3 { margin-bottom: 14px; }
.intelligence-donut { display: grid; place-items: center; width: min(270px, 92%); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.intelligence-donut > span { display: grid; place-content: center; width: 58%; aspect-ratio: 1; border: 1px solid #3a4a45; border-radius: 50%; background: var(--bg); }
.intelligence-donut strong,
.intelligence-donut small { display: block; }
.intelligence-donut strong { color: var(--primary); font-size: 18px; }
.intelligence-donut small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.intelligence-donut-legend { display: grid; gap: 5px; width: 100%; margin-top: 14px; }
.intelligence-donut-key { display: grid; grid-template-columns: 8px minmax(0, 1fr) minmax(45px, .7fr) 34px; gap: 6px; align-items: center; min-height: 18px; }
.intelligence-donut-key > i { width: 7px; height: 7px; border-radius: 2px; }
.intelligence-donut-key > span { min-width: 0; overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.intelligence-donut-key > b { display: block; height: 4px; overflow: hidden; border-radius: 2px; background: #26332f; }
.intelligence-donut-key > b em { display: block; min-width: 2px; height: 100%; }
.intelligence-donut-key > strong { color: var(--muted); font-size: 7px; text-align: right; }
.intelligence-donut-key.selected > span,
.intelligence-donut-key.selected > strong { color: var(--primary); }
.intelligence-share > p { margin: 12px 0 0; color: var(--muted); font-size: 7px; line-height: 1.5; }
.intelligence-share > p strong { color: var(--ink); }
.intelligence-kpi-strip { padding: 22px 0; border-bottom: 1px solid var(--line); }
.intelligence-kpi-strip > div:last-child { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.intelligence-kpi-strip article { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.intelligence-kpi-strip article span,
.intelligence-kpi-strip article strong,
.intelligence-kpi-strip article small { display: block; }
.intelligence-kpi-strip article span { min-height: 20px; color: var(--muted); font-size: 7px; text-transform: uppercase; }
.intelligence-kpi-strip article strong { margin: 7px 0 5px; font-size: 13px; overflow-wrap: anywhere; }
.intelligence-kpi-strip article small { color: var(--muted); font-size: 7px; line-height: 1.35; }
.intelligence-financial-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 22px 0; }
.intelligence-financial-charts > section { min-width: 0; }
.intelligence-financial-charts > section > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: 100%; height: 81px; min-height: 81px; }
.intelligence-chart-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 55%; color: var(--muted); font-size: 7px; }
.intelligence-chart-legend span { display: flex; align-items: center; gap: 4px; }
.intelligence-chart-legend i { width: 9px; height: 6px; background: var(--primary); }
.intelligence-chart-legend b { width: 7px; height: 7px; border: 2px solid var(--accent); border-radius: 50%; }
.intelligence-chart-legend.balance span:nth-child(1) i { background: var(--blue); }
.intelligence-chart-legend.balance span:nth-child(2) i { background: var(--danger); }
.intelligence-chart-legend.balance span:nth-child(3) i { background: var(--primary); }
.intelligence-chart-legend.balance { flex-wrap: nowrap; max-width: none; white-space: nowrap; }
.intelligence-income-chart,
.intelligence-balance-chart { display: flex; align-items: end; gap: 6px; min-height: 225px; margin-top: 15px; padding: 12px 5px 0; border-bottom: 1px solid var(--line); }
.intelligence-income-year,
.intelligence-balance-year { display: grid; grid-template-rows: 174px 14px 12px; gap: 5px; width: 100%; min-width: 0; text-align: center; }
.intelligence-income-year > div,
.intelligence-balance-year > div { position: relative; display: flex; align-items: end; justify-content: center; height: 174px; }
.intelligence-income-year i { display: block; width: min(24px, 55%); min-height: 2px; border-radius: 2px 2px 0 0; background: var(--primary); }
.intelligence-income-year b { position: absolute; left: 50%; width: 8px; height: 8px; transform: translate(-50%, 50%); border: 2px solid var(--accent); border-radius: 50%; background: var(--bg); }
.intelligence-income-year small,
.intelligence-balance-year small { color: var(--muted); font-size: 7px; }
.intelligence-income-year em { color: var(--accent); font-size: 7px; font-style: normal; }
.intelligence-balance-year { grid-template-rows: 174px 14px 12px; }
.intelligence-balance-year > div { gap: 2px; height: 174px; }
.intelligence-balance-year i { display: block; width: min(14px, 27%); min-height: 2px; border-radius: 2px 2px 0 0; }
.intelligence-balance-year i.assets { background: var(--blue); }
.intelligence-balance-year i.liabilities { background: var(--danger); }
.intelligence-balance-year i.equity { background: var(--primary); }
.intelligence-market-note { margin: 0; padding: 10px 12px; border-left: 2px solid var(--accent); background: rgba(226,166,60,.05); color: var(--muted); font-size: 8px; line-height: 1.5; }
.intelligence-requested-analysis { padding-top: 27px; }
.intelligence-answer-heading { margin-bottom: 18px; }
.intelligence-answer-heading h2 { margin: 4px 0 0; font-size: 18px; }
.growth-overview { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 6px 0 24px; border-bottom: 1px solid var(--line); }
.growth-overview h2 { margin: 4px 0 8px; font-size: 22px; }
.growth-overview > div:first-child > p:last-child { max-width: 680px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.growth-baseline { min-width: 150px; padding-left: 18px; border-left: 2px solid var(--primary); text-align: right; }
.growth-baseline span,
.growth-baseline strong,
.growth-baseline small { display: block; }
.growth-baseline span,
.growth-baseline small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.growth-baseline strong { margin: 6px 0; font-size: 18px; }
.growth-section { padding: 25px 0; border-bottom: 1px solid var(--line); }
.growth-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.growth-section-heading h2,
.growth-execution h2,
.market-sources h2 { margin: 4px 0 0; font-size: 17px; }
.assumption-label { padding: 6px 8px; border: 1px solid #6e572c; border-radius: 5px; color: #e6c47d; font-size: 9px; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.growth-scenario { padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.growth-scenario.recommended { border-color: #397563; background: #13221d; }
.growth-scenario > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.growth-scenario > div span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.growth-scenario > div small { color: var(--primary); font-size: 8px; text-transform: uppercase; }
.growth-scenario > strong { display: block; margin: 12px 0 5px; font-size: 18px; }
.growth-scenario > p { margin: 0; color: var(--muted); font-size: 9px; }
.growth-scenario > i { display: block; height: 6px; margin-top: 14px; overflow: hidden; border-radius: 2px; background: #25312e; }
.growth-scenario > i span { display: block; height: 100%; background: var(--primary); }
.strategy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.growth-strategy { display: flex; flex-direction: column; min-height: 245px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.growth-strategy header { display: flex; align-items: flex-start; gap: 11px; }
.growth-strategy header > span { color: var(--primary); font-size: 10px; font-weight: 800; }
.growth-strategy header small { color: var(--accent); font-size: 8px; text-transform: uppercase; }
.growth-strategy h3 { margin: 5px 0 0; font-size: 13px; }
.growth-strategy > p { margin: 14px 0 10px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.growth-strategy ul { margin: 0 0 14px; padding-left: 16px; color: #c0cdc9; font-size: 10px; line-height: 1.5; }
.growth-strategy li + li { margin-top: 5px; }
.growth-strategy footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); }
.growth-strategy footer span { color: var(--muted); font-size: 8px; }
.growth-strategy footer strong { font-size: 9px; text-align: right; }
.growth-execution { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); gap: 28px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.roadmap { display: grid; gap: 0; margin-top: 17px; }
.roadmap-stage { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; padding-bottom: 16px; }
.roadmap-stage > span { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #386e5e; border-radius: 50%; color: var(--primary); font-size: 9px; font-weight: 800; }
.roadmap-stage:not(:last-child) > span::after { position: absolute; }
.roadmap-stage strong { font-size: 10px; }
.roadmap-stage p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.growth-kpis { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.growth-kpis span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: #c5d0cc; font-size: 9px; }
.market-sources { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr); gap: 28px; padding-top: 25px; }
.market-sources > div:first-child > p:last-child { color: var(--muted); font-size: 10px; line-height: 1.55; }
.market-sources > div:last-child { display: grid; gap: 7px; }
.market-sources a { display: grid; grid-template-columns: 52px minmax(0, 1fr) 16px; gap: 10px; align-items: center; min-height: 45px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; }
.market-sources a:hover { border-color: var(--primary); }
.market-sources a strong { color: var(--primary); font-size: 10px; }
.market-sources a span { color: var(--muted); font-size: 9px; }
.market-sources a i { color: var(--muted); font-style: normal; }

.review-overview { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 6px 0 24px; border-bottom: 1px solid var(--line); }
.review-overview h2 { margin: 4px 0 8px; font-size: 22px; }
.review-overview > div:first-child > p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.review-verdict { min-width: 170px; padding-left: 18px; border-left: 2px solid var(--line); text-align: right; }
.review-overview.positive .review-verdict { border-left-color: var(--primary); }
.review-overview.negative .review-verdict { border-left-color: var(--danger); }
.review-verdict span,
.review-verdict strong,
.review-verdict small { display: block; }
.review-verdict span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.review-verdict strong { margin: 6px 0; font-size: 20px; }
.review-verdict small { color: var(--primary); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.review-overview.negative .review-verdict small { color: var(--danger); }
.review-limitation { margin: 16px 0 0; padding: 11px 13px; border-left: 3px solid var(--accent); background: #292315; color: #e6c47d; font-size: 10px; line-height: 1.5; }
.review-section { padding: 25px 0; border-bottom: 1px solid var(--line); }
.coverage-label { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.review-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.review-metric { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.review-metric > span,
.review-metric > strong,
.review-metric > small { display: block; }
.review-metric > span { color: var(--muted); font-size: 9px; }
.review-metric > strong { margin: 10px 0 7px; font-size: 16px; overflow-wrap: anywhere; }
.review-metric > small { font-size: 8px; font-weight: 700; }
.review-metric > small.positive { color: var(--primary); }
.review-metric > small.negative { color: var(--danger); }
.review-metric > small.neutral { color: var(--muted); }
.review-analysis-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr); gap: 24px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.review-analysis-grid h2 { margin: 4px 0 18px; font-size: 17px; }
.review-chart { display: flex; align-items: end; gap: 9px; min-height: 205px; padding: 17px 10px 0; border-bottom: 1px solid var(--line); }
.review-bar { display: grid; grid-template-rows: 165px 18px; gap: 6px; width: 100%; min-width: 0; text-align: center; }
.review-bar > div { display: flex; align-items: end; justify-content: center; height: 165px; }
.review-bar > div span { display: block; width: min(32px, 70%); min-height: 2px; border-radius: 2px 2px 0 0; background: var(--primary); }
.review-bar small { color: var(--muted); font-size: 8px; }
.review-findings { padding-left: 22px; border-left: 1px solid var(--line); }
.review-findings ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.review-findings li + li { margin-top: 9px; }
.review-next-step { display: grid; grid-template-columns: minmax(200px, .6fr) minmax(0, 1.4fr); gap: 24px; align-items: start; padding-top: 25px; }
.review-next-step h2 { margin: 4px 0 0; font-size: 16px; }
.review-next-step > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

.projection-overview { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 6px 0 24px; border-bottom: 1px solid var(--line); }
.projection-overview h2 { margin: 4px 0 8px; font-size: 22px; }
.projection-overview > div:first-child > p:last-child { max-width: 680px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.projection-base { min-width: 170px; padding-left: 18px; border-left: 2px solid var(--blue); text-align: right; }
.projection-base span,
.projection-base strong,
.projection-base small { display: block; }
.projection-base span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.projection-base strong { margin: 6px 0; font-size: 19px; }
.projection-base small { color: var(--blue); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.projection-method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.projection-method span { min-width: 0; }
.projection-method small,
.projection-method strong { display: block; }
.projection-method small { margin-bottom: 6px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.projection-method strong { font-size: 12px; overflow-wrap: anywhere; }
.projection-scenarios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.projection-scenario { padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.projection-scenario.central { border-color: #46778b; background: #111f24; }
.projection-scenario > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.projection-scenario > div span { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.projection-scenario > div small { color: var(--blue); font-size: 8px; text-transform: uppercase; }
.projection-scenario > strong { display: block; margin: 13px 0 6px; font-size: 19px; }
.projection-scenario > p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.projection-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 28px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.projection-body h2 { margin: 4px 0 18px; font-size: 17px; }
.projection-chart { display: flex; align-items: end; gap: 7px; min-height: 235px; padding: 20px 8px 0; border-bottom: 1px solid var(--line); }
.projection-bar { display: grid; grid-template-rows: 190px 23px; gap: 6px; width: 100%; min-width: 0; text-align: center; }
.projection-bar > div { display: flex; align-items: end; justify-content: center; height: 190px; }
.projection-bar > div span { display: block; width: min(28px, 68%); min-height: 2px; border-radius: 2px 2px 0 0; background: #596963; }
.projection-bar.projected > div span { background: var(--blue); }
.projection-bar small { color: var(--muted); font-size: 7px; line-height: 1.2; }
.projection-legend { display: flex; gap: 14px; margin-top: 10px; color: var(--muted); font-size: 8px; }
.projection-legend span { display: flex; align-items: center; gap: 6px; }
.projection-legend i { width: 11px; height: 6px; background: #596963; }
.projection-legend span:last-child i { background: var(--blue); }
.projection-proposals { display: grid; gap: 8px; }
.projection-proposal { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.projection-proposal > span { color: var(--blue); font-size: 9px; font-weight: 800; }
.projection-proposal h3 { margin: 0 0 6px; font-size: 11px; }
.projection-proposal p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.projection-proposal footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.projection-proposal footer small { color: var(--muted); font-size: 7px; }
.projection-proposal footer strong { font-size: 8px; text-align: right; }
.projection-assumptions { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr); gap: 25px; padding-top: 25px; }
.projection-assumptions h2 { margin: 4px 0 0; font-size: 16px; }
.projection-assumptions ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.projection-assumptions li + li { margin-top: 7px; }

.benchmark-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 38px minmax(220px, 1fr) 130px auto;
  gap: 14px;
  align-items: end;
  padding: 22px;
  border: 1px solid rgba(53, 211, 164, .15);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(53, 211, 164, .055), rgba(32, 129, 223, .025) 55%, rgba(255,255,255,.015));
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
}
.benchmark-picker { min-width: 0; }
.company-side-label { display: block; margin-bottom: 7px; color: var(--primary); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.versus-mark { display: grid; place-items: center; align-content: center; width: 38px; height: 44px; padding: 0; border: 1px solid rgba(236,185,77,.25); border-radius: 50%; background: rgba(236,185,77,.07); color: var(--accent); font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.versus-mark span, .versus-mark i { display: block; line-height: 1; }
.versus-mark i { margin-top: 2px; font-size: 11px; font-style: normal; }
.versus-mark:hover { transform: rotate(180deg); border-color: var(--accent); background: rgba(236,185,77,.14); }
.benchmark-period { display: grid; gap: 7px; }
.benchmark-controls > .primary-button { height: 42px; }
.benchmark-output { min-width: 0; }
.benchmark-empty { min-height: 540px; }

.duel-header { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 22px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(circle at 50% 0, rgba(53,211,164,.1), transparent 38%), var(--surface); box-shadow: 0 22px 55px rgba(0,0,0,.16); }
.duel-header::before { content: ""; position: absolute; inset: 0 auto 0 50%; width: 1px; background: linear-gradient(transparent, var(--line), transparent); }
.duel-company { display: flex; align-items: center; gap: 13px; min-width: 0; }
.duel-company.right { justify-content: flex-end; text-align: right; }
.duel-company > span { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; border: 1px solid #386e5e; border-radius: 14px; background: linear-gradient(145deg, #15392f, #0a211b); color: var(--primary); font-size: 18px; font-weight: 800; box-shadow: inset 0 0 18px rgba(53,211,164,.08); }
.duel-company.right > span { border-color: rgba(32,129,223,.38); background: linear-gradient(145deg, rgba(32,129,223,.22), #0a1824); color: var(--blue); }
.duel-company div { min-width: 0; }
.duel-company small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.duel-company h2 { margin: 5px 0; font-size: 17px; overflow-wrap: anywhere; }
.duel-company p { margin: 0; color: var(--muted); font-size: 9px; }
.duel-score { text-align: center; }
.duel-score > small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.duel-score strong { display: flex; justify-content: center; gap: 12px; margin: 7px 0; font-size: 36px; line-height: 1; }
.duel-score strong i { color: var(--line); font-style: normal; }
.duel-score p { margin: 0; color: var(--accent); font-size: 10px; font-weight: 700; }

.benchmark-executive,
.benchmark-visual-section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.benchmark-executive .section-heading,
.benchmark-visual-section .section-heading { margin-bottom: 18px; }
.benchmark-executive .section-heading h2,
.benchmark-visual-section .section-heading h2 { font-size: 18px; }
#benchmarkExecutive { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); gap: 24px; align-items: center; }
.benchmark-verdict { padding: 18px 20px; border: 1px solid rgba(53,211,164,.15); border-left: 4px solid var(--primary); border-radius: 0 10px 10px 0; background: linear-gradient(90deg, rgba(53,211,164,.06), transparent); }
.benchmark-verdict strong { display: block; margin-bottom: 7px; font-size: 15px; }
.benchmark-verdict p { max-width: 720px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.benchmark-score-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.benchmark-score-summary span { padding: 12px; text-align: center; }
.benchmark-score-summary span + span { border-left: 1px solid var(--line); }
.benchmark-score-summary small,
.benchmark-score-summary strong { display: block; }
.benchmark-score-summary small { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.benchmark-score-summary strong { margin-top: 5px; font-size: 18px; }
.benchmark-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; max-width: 50%; }
.benchmark-legend span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; }
.benchmark-legend i { width: 12px; height: 7px; }
.company-a { background: var(--primary); }
.company-b { background: var(--blue); }
.benchmark-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.benchmark-trend,
.dimension-map { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, rgba(255,255,255,.022), transparent), var(--surface); box-shadow: 0 12px 32px rgba(0,0,0,.1); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.benchmark-trend:hover, .dimension-map:hover { transform: translateY(-3px); border-color: rgba(53,211,164,.3); box-shadow: 0 18px 42px rgba(0,0,0,.17); }
.benchmark-trend header,
.dimension-map header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.benchmark-trend header small,
.dimension-map header small { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.benchmark-trend header h3,
.dimension-map header h3 { margin: 4px 0 0; font-size: 13px; }
.benchmark-trend header > span { color: var(--muted); font-size: 8px; }
.benchmark-trend-plot { display: flex; align-items: end; gap: 9px; min-height: 190px; margin-top: 15px; padding: 8px 4px 0; border-bottom: 1px solid var(--line); }
.benchmark-trend-plot > p { align-self: center; width: 100%; color: var(--muted); font-size: 9px; text-align: center; }
.benchmark-year { display: grid; grid-template-rows: 145px 16px; gap: 6px; width: 100%; min-width: 0; text-align: center; }
.benchmark-bar-pair { display: flex; align-items: end; justify-content: center; gap: 3px; height: 145px; }
.benchmark-bar-pair i { display: block; width: min(18px, 40%); min-height: 2px; border-radius: 4px 4px 1px 1px; transform-origin: bottom; transition: height .5s ease, filter .2s ease, opacity .2s ease; }
.benchmark-bar-pair:hover i { filter: brightness(1.25); }
.benchmark-bar-pair i.negative { background: var(--danger); opacity: .8; }
.benchmark-year small { color: var(--muted); font-size: 7px; }
.benchmark-trend > footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.benchmark-trend > footer span { min-width: 0; }
.benchmark-trend > footer small,
.benchmark-trend > footer strong,
.benchmark-trend > footer em { display: block; }
.benchmark-trend > footer small { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.benchmark-trend > footer strong { margin: 4px 0; font-size: 11px; }
.benchmark-trend > footer em { color: var(--muted); font-size: 7px; font-style: normal; }
.benchmark-trend > footer span:first-child strong { color: var(--primary); }
.benchmark-trend > footer span:last-child { text-align: right; }
.benchmark-trend > footer span:last-child strong { color: var(--blue); }
.dimension-map { grid-column: 1 / -1; }
.dimension-row { display: grid; grid-template-columns: minmax(210px, .8fr) minmax(240px, 1.2fr) 90px; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.dimension-map header + .dimension-row { margin-top: 14px; }
.dimension-row > div:first-child strong,
.dimension-row > div:first-child small { display: block; }
.dimension-row > div:first-child strong { margin-bottom: 4px; font-size: 10px; }
.dimension-row > div:first-child small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.dimension-track { display: flex; height: 11px; overflow: hidden; border-radius: 99px; background: var(--line); }
.dimension-track span { transition: width .7s cubic-bezier(.2,.8,.2,1); }
.dimension-track span { display: block; height: 100%; }
.dimension-values { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 8px; }
.dimension-map > p { margin: 8px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }

.comparison-table-section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.benchmark-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 18px; }
.benchmark-filters button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--muted); font: inherit; font-size: 10px; cursor: pointer; transition: .2s ease; }
.benchmark-filters button:hover { color: var(--text); border-color: rgba(53,211,164,.35); }
.benchmark-filters button.active { border-color: rgba(53,211,164,.45); background: rgba(53,211,164,.1); color: var(--primary); }
.competitive-metrics { display: grid; gap: 9px; }
.competitive-row { display: grid; grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr); gap: 18px; align-items: center; min-height: 82px; padding: 12px 16px; border: 1px solid transparent; border-radius: 10px; background: rgba(255,255,255,.012); transition: opacity .25s ease, transform .25s ease, border-color .2s ease, background .2s ease; }
.competitive-row:hover { border-color: var(--line); background: rgba(255,255,255,.025); }
.competitive-row[hidden] { display: none; }
.competitive-label { text-align: center; }
.competitive-label strong,
.competitive-label small { display: block; }
.competitive-label strong { font-size: 11px; }
.competitive-label small { margin-top: 4px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.competitive-label em { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; font-style: normal; line-height: 1.35; }
.competitive-value { display: grid; gap: 7px; }
.competitive-value strong { font-size: 13px; }
.competitive-value.right { text-align: right; }
.competitive-value span { display: block; height: 8px; max-width: 100%; border-radius: 99px; background: #596963; transition: width .65s cubic-bezier(.2,.8,.2,1); }
.competitive-value.left span { margin-left: auto; }
.competitive-row.left .competitive-value.left span,
.competitive-row.right .competitive-value.right span { background: var(--primary); }
.competitive-row.left .competitive-value.left strong,
.competitive-row.right .competitive-value.right strong { color: var(--primary); }

.competitive-insights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-top: 28px; }
.competitive-insights > section { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, rgba(255,255,255,.018), transparent), var(--surface); }
.competitive-insights h2 { margin: 4px 0 16px; font-size: 16px; }
.competitive-insights .strategy-panel { grid-column: 1 / -1; padding: 22px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.competitive-note { padding: 12px 0; border-top: 1px solid var(--line); }
.competitive-note:first-child { border-top: 0; }
.competitive-note strong { font-size: 11px; }
.competitive-note p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.competitive-note.strength strong { color: var(--primary); }
.competitive-note.gap strong { color: var(--danger); }
.strategy-intro { max-width: 760px; margin: -8px 0 18px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.benchmark-context-warning { margin: 0 0 14px; padding: 10px 12px; border-left: 2px solid var(--accent); background: rgba(236, 185, 77, .05); color: var(--muted); font-size: 9px; line-height: 1.5; }
.benchmark-context-warning strong { color: var(--accent); }
.recommendation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.benchmark-recommendation { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: transform .2s ease, border-color .2s ease; }
.benchmark-recommendation:hover { transform: translateY(-3px); border-color: rgba(236,185,77,.3); }

#benchmarkResult .duel-header, #benchmarkResult .benchmark-executive, #benchmarkResult .benchmark-visual-section, #benchmarkResult .comparison-table-section, #benchmarkResult .competitive-insights { opacity: 0; transform: translateY(14px); }
#benchmarkResult.benchmark-result-ready .duel-header, #benchmarkResult.benchmark-result-ready .benchmark-executive, #benchmarkResult.benchmark-result-ready .benchmark-visual-section, #benchmarkResult.benchmark-result-ready .comparison-table-section, #benchmarkResult.benchmark-result-ready .competitive-insights { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
#benchmarkResult.benchmark-result-ready .benchmark-executive { transition-delay: .06s; }
#benchmarkResult.benchmark-result-ready .benchmark-visual-section { transition-delay: .12s; }
#benchmarkResult.benchmark-result-ready .comparison-table-section { transition-delay: .18s; }
#benchmarkResult.benchmark-result-ready .competitive-insights { transition-delay: .24s; }
.benchmark-recommendation header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.benchmark-recommendation header span { color: var(--primary); font-size: 9px; font-weight: 800; }
.benchmark-recommendation header small { color: var(--accent); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.benchmark-recommendation h3 { margin: 12px 0 9px; font-size: 13px; }
.benchmark-recommendation p { margin: 7px 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.benchmark-recommendation p strong { color: var(--text); }
.benchmark-recommendation footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.benchmark-recommendation footer span { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.benchmark-recommendation footer strong { max-width: 75%; font-size: 8px; text-align: right; }

/* Legibility scale */
.eyebrow { font-size: 12px; }
.top-period-control,
.field-group > label,
.benchmark-period,
.company-side-label { font-size: 12px; }
.control-heading h2 { font-size: 18px; }
.control-heading p,
.step-index { font-size: 13px; }
.field-group select,
.field-group textarea,
.picker-input input,
.benchmark-period select { font-size: 14px; }
.picker-option strong { font-size: 13px; }
.picker-option small,
.document-drop small,
.document-list strong,
.document-list small,
.report-documents strong,
.report-documents small,
.source-toggle small { font-size: 11px; }
.source-toggle strong { font-size: 13px; }
.report-header p:last-child,
.report-warning { font-size: 13px; }
.ai-narrative p,
.insight-block ul { font-size: 13px; }
.ai-narrative h3,
.insight-block h3 { font-size: 15px; }
.metric-card small,
.history-summary small,
.comparison-value,
.ratio-row small,
.activity-block span { font-size: 12px; }
.history-labels text,
.history-chart-note,
.history-insight,
.chart-tooltip { font-size: 12px; }
.intelligence-command-center > header h2 { font-size: 24px; }
.intelligence-command-center > header p:last-child { font-size: 12px; }
.intelligence-command-center > header > span { font-size: 10px; }
.intelligence-market-grid h3,
.intelligence-kpi-strip h3,
.intelligence-financial-charts h3 { font-size: 17px; }
.intelligence-peer-title > span { font-size: 10px; }
.intelligence-peer-head { min-height: 30px; font-size: 10px; }
.intelligence-peer { min-height: 39px; }
.intelligence-peer > span,
.intelligence-peer > em,
.intelligence-peer > small { font-size: 10px; }
.intelligence-peer > strong { font-size: 11px; }
.intelligence-position-stack article { min-height: 100px; }
.intelligence-position-stack span,
.intelligence-position-stack small { font-size: 10px; }
.intelligence-position-stack strong { font-size: 21px; }
.intelligence-donut strong { font-size: 22px; }
.intelligence-donut small { font-size: 10px; }
.intelligence-donut-key { min-height: 23px; grid-template-columns: 10px minmax(0, 1fr) minmax(50px, .7fr) 42px; }
.intelligence-donut-key > span,
.intelligence-donut-key > strong { font-size: 10px; }
.intelligence-share > p { font-size: 10px; }
.intelligence-kpi-strip > div:last-child { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.intelligence-kpi-strip article { min-height: 106px; padding: 15px; }
.intelligence-kpi-strip article span { min-height: 24px; font-size: 10px; }
.intelligence-kpi-strip article strong { font-size: 17px; }
.intelligence-kpi-strip article small { font-size: 10px; line-height: 1.45; }
.intelligence-chart-legend { font-size: 10px; }
.intelligence-income-year small,
.intelligence-balance-year small,
.intelligence-income-year em { font-size: 10px; }
.intelligence-market-note { font-size: 11px; }
.intelligence-answer-heading h2 { font-size: 21px; }
.growth-overview > div:first-child > p:last-child,
.review-overview > div:first-child > p:last-child,
.projection-overview > div:first-child > p:last-child { font-size: 13px; }
.growth-baseline span,
.growth-baseline small,
.review-verdict span,
.review-verdict small,
.projection-base span,
.projection-base small,
.coverage-label { font-size: 11px; }
.assumption-label,
.growth-scenario > div span,
.growth-scenario > div small,
.growth-scenario > p,
.growth-strategy header small,
.growth-strategy footer span,
.growth-strategy footer strong,
.growth-kpis span,
.market-sources a span,
.review-metric > span,
.review-metric > small,
.projection-method small,
.projection-scenario > div span,
.projection-scenario > div small,
.projection-scenario > p,
.projection-legend,
.projection-proposal > span,
.projection-proposal footer small,
.projection-proposal footer strong { font-size: 11px; }
.growth-strategy h3,
.projection-proposal h3 { font-size: 14px; }
.growth-strategy > p,
.growth-strategy ul,
.roadmap-stage strong,
.roadmap-stage p,
.market-sources > div:first-child > p:last-child,
.review-limitation,
.review-findings ul,
.review-next-step > p,
.projection-proposal p,
.projection-assumptions ul { font-size: 12px; }
.market-sources a strong { font-size: 12px; }
.review-bar small,
.projection-bar small { font-size: 10px; }
.duel-company small,
.duel-company p,
.duel-score > small,
.duel-score p { font-size: 11px; }
.benchmark-verdict p,
.strategy-intro { font-size: 12px; }
.benchmark-score-summary small,
.benchmark-legend span,
.benchmark-trend header small,
.dimension-map header small,
.benchmark-trend header > span,
.benchmark-year small,
.benchmark-trend > footer small,
.benchmark-trend > footer em,
.dimension-row > div:first-child small,
.dimension-values,
.dimension-map > p,
.competitive-label small,
.competitive-label em,
.benchmark-recommendation header span,
.benchmark-recommendation header small,
.benchmark-recommendation footer span,
.benchmark-recommendation footer strong { font-size: 10px; }
.benchmark-trend > footer strong,
.dimension-row > div:first-child strong,
.competitive-label strong,
.competitive-note strong { font-size: 12px; }
.competitive-value strong,
.benchmark-recommendation h3 { font-size: 15px; }
.competitive-note p,
.benchmark-context-warning,
.benchmark-recommendation p { font-size: 12px; }
.competitive-row { grid-template-columns: minmax(0, 1fr) 250px minmax(0, 1fr); min-height: 82px; }
.benchmark-recommendation { padding: 19px; }

@media print {
  @page { size: A4 portrait; margin: 12mm 11mm 14mm; }
  html, body { min-width: 0 !important; background: #fff !important; color: #17211e !important; }
  body.printing-intelligence { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing-intelligence .app-shell { display: block; min-height: 0; }
  body.printing-intelligence .sidebar,
  body.printing-intelligence .main > :not(#intelligenceView),
  body.printing-intelligence #intelligenceView > .module-header,
  body.printing-intelligence .workspace-controls,
  body.printing-intelligence .module-empty,
  body.printing-intelligence .analysis-loading,
  body.printing-intelligence .report-export { display: none !important; }
  body.printing-intelligence .main { width: 100%; padding: 0; }
  body.printing-intelligence #intelligenceView,
  body.printing-intelligence .workspace-grid,
  body.printing-intelligence .workspace-output,
  body.printing-intelligence .intelligence-report { display: block !important; width: 100%; min-width: 0; padding: 0; border: 0; background: #fff; }
  body.printing-intelligence .report-print-cover { display: flex; flex-direction: column; min-height: 267mm; color: #f2f7f5; background: #07100d; break-after: page; page-break-after: always; }
  body.printing-intelligence .report-print-brand { display: flex; align-items: center; gap: 11px; padding: 15mm 15mm 0; color: #35d3a4; font-size: 17px; }
  body.printing-intelligence .report-print-brand span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #35d3a4; font-weight: 800; }
  body.printing-intelligence .report-print-cover-copy { margin: auto 15mm; }
  body.printing-intelligence .report-print-cover-copy > p { margin: 0 0 8mm; color: #35d3a4; font-size: 10px; font-weight: 800; }
  body.printing-intelligence .report-print-cover h1 { max-width: 155mm; margin: 0; color: #f4f8f6; font-size: 29px; line-height: 1.12; }
  body.printing-intelligence .report-print-rule { width: 26mm; height: 2px; margin: 10mm 0; background: #35d3a4; }
  body.printing-intelligence .report-print-cover dl { display: grid; gap: 6mm; max-width: 150mm; margin: 0; }
  body.printing-intelligence .report-print-cover dl div { display: grid; grid-template-columns: 35mm 1fr; gap: 7mm; }
  body.printing-intelligence .report-print-cover dt { color: #8ea09a; font-size: 9px; font-weight: 700; text-transform: uppercase; }
  body.printing-intelligence .report-print-cover dd { margin: 0; color: #d8e2de; font-size: 11px; line-height: 1.45; }
  body.printing-intelligence .report-print-cover footer { padding: 0 15mm 12mm; color: #8ea09a; font-size: 8px; }
  body.printing-intelligence .report-header { padding: 4mm 0 7mm; border-color: #cdd8d4; }
  body.printing-intelligence .report-header h2 { color: #101916; font-size: 22px; }
  body.printing-intelligence .report-header p:last-child,
  body.printing-intelligence .intelligence-command-center > header p:last-child,
  body.printing-intelligence .intelligence-share > p,
  body.printing-intelligence .intelligence-market-note { color: #566660; }
  body.printing-intelligence .context-label,
  body.printing-intelligence .intelligence-command-center > header > span { border-color: #cbd7d3; background: #eef3f1; color: #52635d; }
  body.printing-intelligence .eyebrow { color: #078b68 !important; }
  body.printing-intelligence .intelligence-command-center,
  body.printing-intelligence .intelligence-market-grid,
  body.printing-intelligence .intelligence-kpi-strip,
  body.printing-intelligence .intelligence-financial-charts { border-color: #cdd8d4; }
  body.printing-intelligence .intelligence-command-center > header h2,
  body.printing-intelligence .intelligence-market-grid h3,
  body.printing-intelligence .intelligence-kpi-strip h3,
  body.printing-intelligence .intelligence-financial-charts h3,
  body.printing-intelligence .intelligence-answer-heading h2,
  body.printing-intelligence .growth-section h2,
  body.printing-intelligence .review-section h2,
  body.printing-intelligence .projection-body h2 { color: #17211e; }
  body.printing-intelligence .intelligence-peer-head,
  body.printing-intelligence .intelligence-peer,
  body.printing-intelligence .intelligence-income-chart,
  body.printing-intelligence .intelligence-balance-chart { border-color: #cad5d1; }
  body.printing-intelligence .intelligence-peer > strong { color: #273530; }
  body.printing-intelligence .intelligence-peer.selected { background: #edf9f5; }
  body.printing-intelligence .intelligence-position-stack article,
  body.printing-intelligence .intelligence-kpi-strip article,
  body.printing-intelligence .insight-block,
  body.printing-intelligence .growth-scenario,
  body.printing-intelligence .growth-strategy,
  body.printing-intelligence .review-metric,
  body.printing-intelligence .projection-scenario,
  body.printing-intelligence .projection-proposal { border-color: #cbd6d2; background: #f5f8f7; color: #17211e; box-shadow: none; }
  body.printing-intelligence .intelligence-donut > span { border-color: #cbd6d2; background: #fff; }
  body.printing-intelligence .intelligence-donut-key > b { background: #dfe7e4; }
  body.printing-intelligence .intelligence-income-year b { background: #fff; }
  body.printing-intelligence .intelligence-market-note,
  body.printing-intelligence .report-warning { background: #fff8e8; }
  body.printing-intelligence .ai-narrative { border-color: #cbd6d2; background: #f2f7f5; color: #273530; }
  body.printing-intelligence .report-documents span { border-color: #cbd6d2; background: #f5f8f7; }
  body.printing-intelligence .report-print-footer { display: block; margin-top: 10mm; padding-top: 5mm; border-top: 1px solid #cbd6d2; color: #65756f; break-inside: avoid; }
  body.printing-intelligence .report-print-footer strong { color: #078b68; font-size: 10px; }
  body.printing-intelligence .report-print-footer p { max-width: 155mm; margin: 2mm 0 0; font-size: 8px; line-height: 1.45; }
  body.printing-intelligence .intelligence-market-grid { grid-template-columns: 1fr; gap: 7mm; }
  body.printing-intelligence .intelligence-peer-table,
  body.printing-intelligence .intelligence-position-stack,
  body.printing-intelligence .intelligence-share { grid-column: 1; grid-row: auto; }
  body.printing-intelligence .intelligence-share {
    width: 100%;
    padding: 7mm 8mm 6mm;
    border: 1px solid #cbd6d2;
    background: #f8faf9;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.printing-intelligence .intelligence-share > div:first-child { width: 100%; text-align: center; }
  body.printing-intelligence .intelligence-share h3 { margin-bottom: 5mm; }
  body.printing-intelligence .intelligence-donut { width: 62mm; margin-inline: auto; box-shadow: 0 3mm 7mm rgba(18, 43, 35, .14); }
  body.printing-intelligence .intelligence-donut-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2mm 7mm;
    width: 100%;
    max-width: 165mm;
    margin: 6mm auto 0;
  }
  body.printing-intelligence .intelligence-donut-key {
    grid-template-columns: 3mm minmax(0, 1fr) 24mm 11mm;
    gap: 2mm;
    min-height: 6mm;
  }
  body.printing-intelligence .intelligence-donut-key > i { width: 2.5mm; height: 2.5mm; }
  body.printing-intelligence .intelligence-donut-key > span,
  body.printing-intelligence .intelligence-donut-key > strong { font-size: 8px; }
  body.printing-intelligence .intelligence-share > p { max-width: 155mm; margin: 5mm auto 0; text-align: center; }
  body.printing-intelligence .intelligence-kpi-strip > div:last-child { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.printing-intelligence .intelligence-financial-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6mm; }
  body.printing-intelligence .intelligence-financial-charts > section > header { height: 24mm; min-height: 24mm; }
  body.printing-intelligence .intelligence-income-chart,
  body.printing-intelligence .intelligence-balance-chart { min-height: 61mm; }
  body.printing-intelligence .intelligence-income-year,
  body.printing-intelligence .intelligence-balance-year { grid-template-rows: 44mm 5mm 4mm; }
  body.printing-intelligence .intelligence-income-year > div,
  body.printing-intelligence .intelligence-balance-year > div { height: 44mm; }
  body.printing-intelligence .report-header,
  body.printing-intelligence .report-documents span,
  body.printing-intelligence .intelligence-command-center > header,
  body.printing-intelligence .intelligence-peer,
  body.printing-intelligence .intelligence-position-stack article,
  body.printing-intelligence .intelligence-kpi-strip article,
  body.printing-intelligence .intelligence-financial-charts > section,
  body.printing-intelligence .intelligence-share,
  body.printing-intelligence .insight-block,
  body.printing-intelligence .growth-scenario,
  body.printing-intelligence .growth-strategy,
  body.printing-intelligence .roadmap-stage,
  body.printing-intelligence .review-metric,
  body.printing-intelligence .review-analysis-grid,
  body.printing-intelligence .projection-scenario,
  body.printing-intelligence .projection-proposal,
  body.printing-intelligence .projection-assumptions { break-inside: avoid; page-break-inside: avoid; }
}

@media (max-width: 1050px) {
  .login-layout { grid-template-columns: 52% 48%; }
  .login-brand { padding: 36px; }
  .login-brand-inner { margin-bottom: 38px; }
  .login-facts article { padding-block: 13px; }
  .login-facts strong { font-size: 14px; }
  .login-form-section { padding-inline: 34px; }
  .login-access-column { padding-inline: 32px; transform: none; }
  .market-pulse { top: 14%; right: 4%; width: 205px; }
  .metric-sales { right: 19%; }
  .metric-margin { right: 4%; }
  .app-shell { grid-template-columns: 84px minmax(0, 1fr); }
  .sidebar { align-items: center; padding-inline: 13px; }
  .brand-copy,
  .nav-item span:last-child,
  .dataset-status div,
  .user-copy { display: none; }
  .nav-item { justify-content: center; padding: 0; }
  .dataset-status { justify-content: center; width: 100%; padding-inline: 0; }
  .user-panel { grid-template-columns: 34px 30px; padding-inline: 0; }
  .analysis-grid { grid-template-columns: 1fr; }
  .trend-layout { grid-template-columns: minmax(0, 1fr) 190px; }
  .workspace-grid { grid-template-columns: 330px minmax(0, 1fr); }
  .intelligence-market-grid { grid-template-columns: 1fr; }
  .intelligence-peer-table,
  .intelligence-position-stack,
  .intelligence-share { grid-column: auto; grid-row: auto; }
  .intelligence-position-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intelligence-donut { width: min(250px, 80%); }
  .intelligence-kpi-strip > div:last-child { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intelligence-financial-charts { grid-template-columns: 1fr; }
  .benchmark-controls { grid-template-columns: minmax(190px, 1fr) 30px minmax(190px, 1fr); }
  .benchmark-period { grid-column: 1 / 2; }
  .benchmark-controls > .primary-button { grid-column: 3 / 4; }
}

@media (max-width: 900px) and (min-width: 761px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-brand { min-height: 310px; padding: 28px 34px; background-position: center; }
  .login-brand::after { background: rgba(5, 10, 9, .48); }
  .login-brand-inner { align-self: center; margin: 22px 0; }
  .login-brand h1 { margin-bottom: 8px; font-size: 38px; }
  .login-brand .login-brand-statement { max-width: 470px; font-size: 14px; }
  .login-brand-rule { margin-top: 14px; }
  .login-facts { max-width: 540px; margin-top: 18px; }
  .login-facts article { padding-block: 10px; }
  .login-brand-footer { padding-top: 11px; }
  .login-form-section { min-height: calc(100vh - 310px); padding: 38px 28px; }
  .login-access-column { width: min(570px, 100%); transform: none; }
}

@media (max-width: 760px) {
  .login-page { overflow: auto; }
  .app-shell { display: block; }
  .sidebar {
    position: static;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    height: 68px;
    padding: 12px 18px;
  }
  .nav { display: flex; gap: 5px; }
  .brand-copy { display: block; }
  .brand-copy small { display: none; }
  .nav { margin-left: auto; }
  .nav-item { width: 42px; }
  .dataset-status { width: auto; margin: 0; padding: 0 0 0 14px; border-top: 0; border-left: 1px solid rgba(255,255,255,.13); }
  .user-panel { display: flex; padding: 0 0 0 12px; border-top: 0; border-left: 1px solid rgba(255,255,255,.13); }
  .user-avatar { width: 32px; height: 32px; }
  .user-menu { position: fixed; top: 58px; right: 10px; bottom: auto; }
  .main { padding: 22px 18px 42px; }
  .topbar { align-items: flex-start; }
  h1 { font-size: 25px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-header { display: block; }
  .location { max-width: none; margin: 13px 0 0 64px; text-align: left; }
  .history-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trend-layout { grid-template-columns: 1fr; }
  .trend-controls { grid-row: 1; display: grid; grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr); padding: 0 0 18px; border-left: 0; border-bottom: 1px solid var(--line); }
  .history-insight { grid-column: 1 / -1; margin-top: 0; }
  .login-layout { grid-template-columns: 1fr; }
  .login-brand { min-height: 300px; padding: 24px 28px; background-position: center; }
  .login-brand::after { background: rgba(5, 10, 9, .48); }
  .market-pulse,
  .live-metric { display: none; }
  .data-stream { opacity: .65; }
  .stream-one { top: 32%; width: 48%; }
  .stream-two { bottom: 20%; width: 45%; }
  .login-brand-status { display: none; }
  .login-brand-composition { margin: 14px 0 12px; }
  .login-brand-composition .login-brand-inner::before { width: 40px; margin-bottom: 12px; }
  .login-brand-composition .login-brand-inner .eyebrow { margin-bottom: 8px; }
  .login-brand-composition .login-brand-inner h1 { font-size: 42px; }
  .login-brand .login-brand-composition .login-brand-statement { margin-top: 12px; font-size: 13px; line-height: 1.4; }
  .login-capabilities { display: none; }
  .login-brand-inner { align-self: center; margin: 18px 0; }
  .login-brand h1 { margin-bottom: 8px; font-size: 36px; }
  .login-brand .login-brand-statement { max-width: 450px; font-size: 14px; }
  .login-brand-rule { margin-top: 14px; }
  .login-facts { margin-top: 17px; }
  .login-facts article { padding-block: 9px; }
  .login-brand-footer { gap: 15px; padding-top: 10px; }
  .login-form-section { min-height: calc(100vh - 300px); padding: 70px 24px 52px; }
  .login-access-column { transform: none; }
  .login-form-brand { top: 22px; left: 24px; }
  .login-environment { right: 20px; bottom: 15px; }
  .module-header { display: block; }
  .module-header .connection-status { margin-top: 16px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .workspace-controls { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace-output { padding: 24px 0; }
  .module-empty { min-height: 380px; }
  .benchmark-controls { grid-template-columns: 1fr 38px 1fr; }
  #benchmarkExecutive { grid-template-columns: 1fr; }
  .benchmark-legend { max-width: 55%; }
  .competitive-row { grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); }
  .duel-header { grid-template-columns: 1fr 100px 1fr; gap: 12px; }
  .duel-company { display: grid; justify-items: start; }
  .duel-company.right { justify-items: end; }
  .duel-company.right div { grid-row: 2; }
  .duel-company h2 { font-size: 14px; }
  .duel-header { padding: 22px; }
  .benchmark-controls { padding: 18px; }
  .competitive-row { grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1fr); padding-inline: 10px; }
}

@media (max-width: 520px) {
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .brand strong { font-size: 13px; }
  .dataset-status { display: none; }
  .user-panel { margin-left: auto; }
  .topbar { display: block; }
  .top-period-control { grid-template-columns: 1fr; margin-top: 14px; }
  .top-period-control select { width: 100%; }
  .search-heading { align-items: flex-start; flex-wrap: wrap; }
  .search-heading > div { min-width: 0; }
  .search-heading .text-button { margin-left: auto; }
  .company-search { height: 52px; }
  .company-search input { font-size: 14px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 112px; }
  .analytics-panel { padding: 18px 15px; }
  .comparison-row { grid-template-columns: 70px minmax(0, 1fr); }
  .comparison-value { grid-column: 2; text-align: left; }
  .profile-grid { grid-template-columns: 1fr; }
  .company-title-row h2 { font-size: 20px; }
  .company-title-row { align-items: flex-start; }
  .rank-badge { flex-basis: max-content; }
  .company-initial { width: 46px; height: 46px; flex-basis: 46px; }
  .location { margin-left: 60px; }
  .trend-controls { grid-template-columns: 1fr; }
  .history-insight { grid-column: auto; }
  .history-summary { grid-template-columns: 1fr 1fr; }
  .login-brand { min-height: 230px; padding: 20px 22px; }
  .login-brand-top small,
  .login-brand-rule,
  .login-brand-footer { display: none; }
  .login-brand-composition { margin: 10px 0 0; }
  .login-brand-composition .login-brand-inner h1 { font-size: 36px; }
  .login-brand-inner { margin: 12px 0 0; }
  .login-brand h1 { margin-bottom: 0; font-size: 34px; }
  .login-brand .login-brand-statement,
  .login-facts { display: none; }
  .login-form-section { min-height: calc(100vh - 230px); padding: 62px 20px 48px; }
  .login-form { gap: 18px; }
  .login-form h2 { font-size: 27px; }
  .sidebar { gap: 8px; }
  .brand-copy { display: none; }
  .nav { margin-left: 0; }
  .nav-item { width: 38px; min-height: 38px; }
  .nav-icon { width: 18px; font-size: 18px; }
  .module-header h1 { font-size: 26px; }
  .local-narrative { grid-template-columns: 1fr; }
  .executive-insight-grid,
  .intelligence-market-grid { grid-template-columns: 1fr; }
  .intelligence-peer-table { grid-column: auto; }
  .intelligence-position-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intelligence-position-stack article { min-height: 112px; padding: 9px; }
  .intelligence-position-stack strong { font-size: 17px; }
  .intelligence-kpi-strip > div:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intelligence-peer-head,
  .intelligence-peer { grid-template-columns: 18px minmax(0, 1fr) 62px 42px; gap: 5px; }
  .intelligence-financial-charts > section > header { display: block; height: auto; min-height: 0; }
  .intelligence-chart-legend { justify-content: flex-start; max-width: none; margin-top: 10px; }
  .intelligence-income-chart,
  .intelligence-balance-chart { gap: 3px; overflow-x: auto; }
  .intelligence-income-year,
  .intelligence-balance-year { min-width: 30px; }
  .growth-overview { display: block; }
  .review-overview { display: block; }
  .projection-overview { display: block; }
  .projection-base { margin-top: 18px; padding: 11px 0 0; border-top: 2px solid var(--blue); border-left: 0; text-align: left; }
  .review-verdict { margin-top: 18px; padding: 11px 0 0; border-top: 2px solid var(--line); border-left: 0; text-align: left; }
  .growth-baseline { margin-top: 18px; padding: 11px 0 0; border-top: 2px solid var(--primary); border-left: 0; text-align: left; }
  .scenario-grid,
  .strategy-grid,
  .growth-execution,
  .market-sources { grid-template-columns: 1fr; }
  .growth-strategy { min-height: 0; }
  .review-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-analysis-grid,
  .review-next-step { grid-template-columns: 1fr; }
  .review-findings { padding: 20px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .review-chart { gap: 4px; }
  .projection-method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projection-scenarios,
  .projection-body,
  .projection-assumptions { grid-template-columns: 1fr; }
  .projection-chart { gap: 3px; overflow-x: auto; }
  .projection-bar { min-width: 24px; }
  .report-export { align-items: stretch; flex-direction: column; }
  .report-export-button { width: 100%; }
  .benchmark-controls { grid-template-columns: 1fr; }
  .benchmark-visual-section .section-heading { display: block; }
  .benchmark-legend { justify-content: flex-start; max-width: none; margin-top: 12px; }
  .benchmark-charts,
  .recommendation-grid { grid-template-columns: 1fr; }
  .dimension-map { grid-column: auto; }
  .dimension-row { grid-template-columns: 1fr; gap: 8px; }
  .benchmark-score-summary span { padding: 10px 6px; }
  .benchmark-trend-plot { gap: 4px; }
  .versus-mark { width: 100%; height: 32px; border-radius: 8px; }
  .versus-mark span, .versus-mark i { display: inline; margin: 0 2px; }
  .duel-header { padding: 20px 16px; }
  .duel-header::before { display: none; }
  .benchmark-filters { flex-wrap: nowrap; margin-bottom: 14px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
  .benchmark-filters::-webkit-scrollbar { display: none; }
  .benchmark-filters button { flex: 0 0 auto; }
  .benchmark-period,
  .benchmark-controls > .primary-button { grid-column: auto; }
  .duel-header { grid-template-columns: 1fr; }
  .duel-company,
  .duel-company.right { display: flex; justify-content: flex-start; text-align: left; }
  .duel-company.right div { grid-row: auto; order: 2; }
  .duel-score { grid-row: 2; padding: 12px 0; border-block: 1px solid var(--line); }
  .competitive-row { grid-template-areas: "label label" "left right"; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 12px 0; }
  .competitive-label { grid-area: label; }
  .competitive-value.left { grid-area: left; }
  .competitive-value.right { grid-area: right; }
  .competitive-value strong { font-size: 13px; }
  .competitive-insights { grid-template-columns: 1fr; }
  .competitive-insights .strategy-panel { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .versus-mark,
  .benchmark-trend,
  .dimension-map,
  .benchmark-recommendation,
  .benchmark-bar-pair i,
  .dimension-track span,
  .competitive-value span,
  #benchmarkResult * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 900px) {
  .login-brand-centered { width: min(620px, 92%); }
  .login-brand-lockup { margin-bottom: 16px; }
  .login-brand-lockup > span { width: 32px; height: 32px; }
  .login-brand-centered h1 { font-size: 44px; }
  .login-brand .login-brand-centered .login-brand-statement { margin-top: 13px; font-size: 13px; line-height: 1.45; }
  .login-brand-centered .login-capabilities { margin-top: 17px; }
  .login-brand-centered .login-capabilities article { padding-block: 11px; }
  .login-brand-footnote { margin-top: 13px; }
}

@media (max-width: 520px) {
  .login-brand-centered { width: 94%; }
  .login-brand-lockup { margin-bottom: 10px; }
  .login-brand-lockup > span { width: 32px; height: 32px; }
  .login-brand-lockup > i,
  .login-brand-lockup > small { display: none; }
  .login-brand-centered .eyebrow { margin-bottom: 8px; }
  .login-brand-centered h1 { font-size: 36px; }
  .login-brand .login-brand-centered .login-brand-statement { display: block; max-width: 310px; margin-top: 9px; font-size: 11px; }
  .login-brand-divider { display: none; }
  .login-brand-centered .login-capabilities { display: none; }
  .login-brand-footnote { margin-top: 12px; font-size: 8px; }
}

/* Login cover 2026-09: centered corporate composition */
.login-page { overflow: hidden; background: #07100d; }
.login-layout { grid-template-columns: 51% 49%; height: 100vh; min-height: 620px; }
.login-brand {
  place-items: center;
  grid-template-rows: 1fr;
  min-height: 100%;
  padding: 48px;
  background-position: center;
}
.login-brand::after { background: rgba(3, 13, 11, .34); }
.login-brand-centered { width: min(560px, 86%); }
.login-hero-mark {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 28px;
  border: 1px solid rgba(53, 211, 164, .72);
  border-radius: 8px;
  background: rgba(7, 20, 16, .7);
  color: var(--primary);
  font-size: 44px;
  font-weight: 850;
  box-shadow: 0 16px 46px rgba(0, 0, 0, .28), inset 0 0 26px rgba(53, 211, 164, .035);
}
.login-brand-centered h1 { margin: 0; color: #f5f8f7; font-size: 68px; line-height: 1; }
.login-brand .login-brand-centered .login-brand-statement {
  margin: 28px 0 0;
  color: #aabbb5;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.4;
}
.login-form-section { overflow: hidden; padding: 46px; }
.login-access-column {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(570px, 92%);
  min-height: 560px;
  padding: 56px 46px;
  border: 1px solid #2a3b35;
  border-radius: 8px;
  background: rgba(11, 18, 16, .96);
  box-shadow: 0 30px 76px rgba(0, 0, 0, .34), inset 0 0 0 1px rgba(255,255,255,.012);
}
.login-access-column::before { inset: 9px; border-color: rgba(132, 158, 149, .09); }
.login-access-column::after { top: -1px; left: 50%; width: 52px; height: 3px; transform: translateX(-50%); }
.login-form-brand { gap: 9px; }
.login-form-brand span { width: 28px; height: 28px; }
.login-form-brand strong { font-size: 11px; }
.login-form { gap: 27px; width: 100%; }
.login-form::before { display: none; }
.login-form h2 { margin: 0 0 11px; font-size: 36px; }
.form-intro { font-size: 14px; line-height: 1.6; }
.login-form label { font-size: 12px; }
.login-input-field,
.password-field { position: relative; margin-top: 9px; }
.login-form .login-input-field input,
.login-form .password-field input {
  height: 56px;
  margin-top: 0;
  padding-left: 52px;
  border-color: #30413b;
  background: #111a17;
  font-size: 15px;
}
.login-form input::placeholder { color: #667771; opacity: 1; }
.login-user-icon,
.login-lock-icon { position: absolute; top: 50%; left: 18px; z-index: 2; width: 17px; height: 17px; transform: translateY(-50%); color: var(--primary); pointer-events: none; }
.login-user-icon::before { position: absolute; top: 0; left: 4px; width: 5px; height: 5px; border: 1.5px solid currentColor; border-radius: 50%; content: ""; }
.login-user-icon::after { position: absolute; bottom: 0; left: 1px; width: 11px; height: 6px; border: 1.5px solid currentColor; border-radius: 6px 6px 2px 2px; content: ""; }
.login-lock-icon::before { position: absolute; top: 0; left: 3px; width: 7px; height: 7px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 7px 7px 0 0; content: ""; }
.login-lock-icon::after { position: absolute; right: 1px; bottom: 0; left: 1px; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; content: ""; }
.password-field button { top: 7px; right: 7px; height: 42px; font-size: 13px; }
.login-button { height: 56px; margin-top: 8px; font-size: 16px; border-radius: 9px; }

@media (max-width: 900px) {
  .login-page { overflow: auto; }
  .login-layout { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
  .login-brand { min-height: 300px; padding: 35px; }
  .login-hero-mark { width: 62px; height: 62px; margin-bottom: 18px; font-size: 31px; }
  .login-brand-centered h1 { font-size: 48px; }
  .login-brand .login-brand-centered .login-brand-statement { margin-top: 17px; font-size: 13px; }
  .login-form-section { min-height: 500px; padding: 40px 24px; }
  .login-access-column { width: min(570px, 100%); min-height: 520px; }
}

@media (max-width: 520px) {
  .login-brand { min-height: 230px; padding: 25px; }
  .login-hero-mark { width: 52px; height: 52px; margin-bottom: 13px; font-size: 26px; }
  .login-brand-centered h1 { font-size: 39px; }
  .login-brand .login-brand-centered .login-brand-statement { max-width: none; margin-top: 12px; font-size: 11px; }
  .login-form-section { min-height: calc(100vh - 230px); padding: 28px 18px; }
  .login-access-column { min-height: 0; padding: 34px 26px 38px; }
  .login-form { gap: 21px; }
  .login-form h2 { font-size: 30px; }
  .form-intro { font-size: 12px; }
}

/* Executive report: print composition matching the NEXUS dashboard. */
@media print {
  @page { size: A4 portrait; margin: 9mm; }

  body.printing-intelligence,
  body.printing-intelligence .intelligence-report {
    background: #f2f6f4 !important;
  }

  body.printing-intelligence .report-print-cover {
    position: relative;
    display: block;
    min-height: 0;
    margin: 0 0 7mm;
    overflow: hidden;
    border: 1px solid #17483b;
    border-radius: 4mm;
    color: #f3f8f6;
    background:
      radial-gradient(circle at 88% 18%, rgba(53, 211, 164, .2), transparent 27%),
      linear-gradient(135deg, #06110e 0%, #09231c 58%, #0b392d 100%);
    break-after: auto;
    page-break-after: auto;
  }

  body.printing-intelligence .report-print-cover::after {
    content: "";
    position: absolute;
    right: -15mm;
    bottom: -24mm;
    width: 75mm;
    height: 75mm;
    border: 1px solid rgba(53, 211, 164, .18);
    border-radius: 50%;
  }

  body.printing-intelligence .report-print-brand {
    position: relative;
    z-index: 1;
    padding: 7mm 8mm 0;
    gap: 3mm;
    font-size: 13px;
    letter-spacing: .08em;
  }

  body.printing-intelligence .report-print-brand span {
    width: 9mm;
    height: 9mm;
    border-radius: 2mm;
    background: rgba(53, 211, 164, .12);
    font-size: 13px;
  }

  body.printing-intelligence .report-print-cover-copy {
    position: relative;
    z-index: 1;
    margin: 7mm 8mm 0;
  }

  body.printing-intelligence .report-print-cover-copy > p {
    margin: 0 0 2.5mm;
    font-size: 8px;
    letter-spacing: .16em;
  }

  body.printing-intelligence .report-print-cover h1 {
    max-width: none;
    font-size: 24px;
    line-height: 1.08;
  }

  body.printing-intelligence .report-print-rule {
    width: 17mm;
    margin: 4mm 0;
  }

  body.printing-intelligence .report-print-cover dl {
    grid-template-columns: 26mm minmax(0, .55fr) minmax(0, 1.45fr);
    gap: 4mm;
    max-width: none;
  }

  body.printing-intelligence .report-print-cover dl div {
    display: block;
  }

  body.printing-intelligence .report-print-cover dt {
    margin-bottom: 1.3mm;
    color: #79b6a3;
    font-size: 7px;
  }

  body.printing-intelligence .report-print-cover dd {
    font-size: 9px;
    line-height: 1.35;
  }

  body.printing-intelligence .report-print-executive {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 6mm;
    margin-top: 5mm;
    padding-top: 4mm;
    border-top: 1px solid rgba(107, 197, 169, .25);
  }

  body.printing-intelligence .report-print-executive small,
  body.printing-intelligence .report-print-kpis small {
    display: block;
    color: #71b29e;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  body.printing-intelligence .report-print-executive p {
    margin: 1.5mm 0 0;
    color: #dce9e4;
    font-size: 9px;
    line-height: 1.45;
  }

  body.printing-intelligence .report-print-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2mm;
  }

  body.printing-intelligence .report-print-kpis span {
    padding: 2.3mm 2.5mm;
    border: 1px solid rgba(108, 196, 168, .2);
    border-radius: 2mm;
    background: rgba(5, 18, 14, .35);
  }

  body.printing-intelligence .report-print-kpis strong {
    display: block;
    margin-top: 1mm;
    color: #43dcad;
    font-size: 11px;
  }

  body.printing-intelligence .report-print-cover footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 5mm;
    margin-top: 5mm;
    padding: 3mm 8mm;
    border-top: 1px solid rgba(107, 197, 169, .18);
    background: rgba(1, 9, 7, .25);
    color: #79a699;
    font-size: 7px;
  }

  body.printing-intelligence .intelligence-command-center,
  body.printing-intelligence .intelligence-market-grid,
  body.printing-intelligence .intelligence-kpi-strip,
  body.printing-intelligence .intelligence-financial-charts,
  body.printing-intelligence .intelligence-requested-analysis {
    background: #fff !important;
  }

  body.printing-intelligence .intelligence-command-center {
    padding: 6mm;
    border: 1px solid #c9d8d2;
    border-radius: 3mm;
  }

  body.printing-intelligence .intelligence-command-center > header,
  body.printing-intelligence .intelligence-kpi-strip,
  body.printing-intelligence .intelligence-financial-charts > section,
  body.printing-intelligence .intelligence-requested-analysis,
  body.printing-intelligence .nexus-answer-verdict,
  body.printing-intelligence .nexus-answer-actions {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.printing-intelligence .nexus-answer .insight-block.neutral,
  body.printing-intelligence .nexus-answer .insight-block.positive,
  body.printing-intelligence .nexus-answer .insight-block.risk,
  body.printing-intelligence .nexus-answer-actions {
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.printing-intelligence .nexus-answer .insight-block.neutral {
    border-color: #168da0;
    background: linear-gradient(145deg, #126f80, #0b4c5b) !important;
  }

  body.printing-intelligence .nexus-answer .insight-block.positive {
    border-color: #2ec998;
    background: linear-gradient(145deg, #168b69, #0b5d47) !important;
  }

  body.printing-intelligence .nexus-answer .insight-block.risk {
    border-color: #e15c65;
    background: linear-gradient(145deg, #a7333d, #711f29) !important;
  }

  body.printing-intelligence .nexus-answer .insight-block h3,
  body.printing-intelligence .nexus-answer .insight-block li,
  body.printing-intelligence .nexus-answer .insight-block p,
  body.printing-intelligence .nexus-answer .insight-block small {
    color: #fff !important;
  }

  body.printing-intelligence .nexus-answer-actions {
    border-color: #9a7b31;
    background: linear-gradient(145deg, #756027, #59491f) !important;
  }

  body.printing-intelligence .nexus-answer-actions h3,
  body.printing-intelligence .nexus-answer-actions li,
  body.printing-intelligence .nexus-answer-actions li p {
    color: #fff !important;
  }

  body.printing-intelligence .intelligence-financial-charts,
  body.printing-intelligence .intelligence-kpi-strip,
  body.printing-intelligence .intelligence-market-grid {
    margin-top: 6mm;
    padding-top: 5mm;
  }

  body.printing-intelligence .intelligence-requested-analysis {
    margin-top: 7mm;
    padding: 6mm;
    border: 1px solid #cbd8d3;
    border-radius: 3mm;
  }

  body.printing-intelligence .report-print-footer {
    padding: 4mm 5mm;
    border: 1px solid #cbd8d3;
    border-radius: 2mm;
    background: #e9f1ee;
  }
}

/* Final PDF layout: four editorial pages, no interactive workspace. */
@media print {
  @page { size: A4 portrait; margin: 8mm; }

  body.printing-intelligence #intelligenceView #intelligenceForm,
  body.printing-intelligence #intelligenceView > .module-header,
  body.printing-intelligence .report-export {
    display: none !important;
  }

  body.printing-intelligence .workspace-grid,
  body.printing-intelligence .workspace-output,
  body.printing-intelligence #intelligenceReport {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body.printing-intelligence .report-print-cover {
    display: flex;
    flex-direction: column;
    min-height: 245mm;
    margin: 0;
    break-after: page;
    page-break-after: always;
  }

  body.printing-intelligence .report-print-cover-copy {
    margin-top: auto;
    margin-bottom: auto;
  }

  body.printing-intelligence .report-print-cover h1 { font-size: 30px; }
  body.printing-intelligence .report-print-executive { margin-top: 9mm; padding-top: 7mm; }
  body.printing-intelligence .report-print-executive p { font-size: 10px; line-height: 1.6; }
  body.printing-intelligence .report-print-kpis strong { font-size: 13px; }

  body.printing-intelligence .intelligence-command-center {
    padding: 0;
    border: 0;
    background: transparent !important;
  }

  body.printing-intelligence .intelligence-command-center > header {
    padding: 3mm 0 5mm;
  }

  body.printing-intelligence .intelligence-command-center > header h2 { font-size: 20px; }
  body.printing-intelligence .intelligence-command-center > header p:last-child { font-size: 8.5px; }

  body.printing-intelligence .intelligence-market-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.35fr) minmax(58mm, .65fr) !important;
    grid-template-rows: auto auto;
    gap: 4mm 6mm;
    margin: 0;
    padding: 5mm 0;
    background: transparent !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.printing-intelligence .intelligence-peer-table {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.printing-intelligence .intelligence-position-stack {
    grid-column: 1 !important;
    grid-row: 2 !important;
    gap: 2mm;
  }

  body.printing-intelligence .intelligence-position-stack article {
    min-height: 20mm;
    padding: 2mm;
  }

  body.printing-intelligence .intelligence-position-stack strong {
    margin: 1.5mm 0 1mm;
    font-size: 13px;
  }

  body.printing-intelligence .intelligence-share {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    width: auto;
    padding: 4mm;
  }

  body.printing-intelligence .intelligence-share h3 { margin-bottom: 3mm; font-size: 12px; }
  body.printing-intelligence .intelligence-donut { width: 43mm; box-shadow: none; }
  body.printing-intelligence .intelligence-donut strong { font-size: 15px; }
  body.printing-intelligence .intelligence-donut-legend { display: grid; grid-template-columns: 1fr; gap: 1mm; margin-top: 3mm; }
  body.printing-intelligence .intelligence-donut-key { grid-template-columns: 2mm minmax(0, 1fr) 14mm 8mm; min-height: 4mm; }
  body.printing-intelligence .intelligence-donut-key > span,
  body.printing-intelligence .intelligence-donut-key > strong { font-size: 6.5px; }
  body.printing-intelligence .intelligence-share > p { margin-top: 2mm; font-size: 6.5px; }

  body.printing-intelligence .intelligence-peer-title { margin-bottom: 2mm; }
  body.printing-intelligence .intelligence-peer-head,
  body.printing-intelligence .intelligence-peer { min-height: 7mm; }
  body.printing-intelligence .intelligence-peer > strong { font-size: 7.5px; }

  body.printing-intelligence .intelligence-kpi-strip {
    margin-top: 5mm;
    padding: 5mm 0 0;
    background: transparent !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.printing-intelligence .intelligence-kpi-strip > div:last-child {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5mm;
    margin-top: 3mm;
  }

  body.printing-intelligence .intelligence-kpi-strip article {
    min-height: 22mm;
    padding: 3mm;
  }

  body.printing-intelligence .intelligence-kpi-strip article span { min-height: 0; font-size: 7px; }
  body.printing-intelligence .intelligence-kpi-strip article strong { margin: 2mm 0 1mm; font-size: 13px; }
  body.printing-intelligence .intelligence-kpi-strip article small { font-size: 6.5px; }

  body.printing-intelligence .intelligence-financial-charts {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8mm;
    margin: 0;
    padding: 4mm 0 0;
    background: transparent !important;
    break-before: page;
    page-break-before: always;
  }

  body.printing-intelligence .intelligence-financial-charts > section {
    padding: 5mm;
    border: 1px solid #cbd8d3;
    border-radius: 3mm;
    background: #fff;
  }

  body.printing-intelligence .intelligence-financial-charts > section > header {
    height: 16mm;
    min-height: 16mm;
  }

  body.printing-intelligence .intelligence-financial-charts h3 { font-size: 16px; }
  body.printing-intelligence .intelligence-chart-legend { font-size: 8px; }
  body.printing-intelligence .intelligence-income-chart,
  body.printing-intelligence .intelligence-balance-chart { min-height: 74mm; margin-top: 2mm; }
  body.printing-intelligence .intelligence-income-year,
  body.printing-intelligence .intelligence-balance-year { grid-template-rows: 58mm 5mm 5mm; }
  body.printing-intelligence .intelligence-income-year > div,
  body.printing-intelligence .intelligence-balance-year > div { height: 58mm; }
  body.printing-intelligence .chart-bar-value,
  body.printing-intelligence .balance-chart-values span { font-size: 7px !important; }
  body.printing-intelligence .intelligence-income-year small,
  body.printing-intelligence .intelligence-balance-year small,
  body.printing-intelligence .intelligence-income-year em { font-size: 7.5px; }

  body.printing-intelligence .intelligence-market-note {
    margin-top: 5mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.printing-intelligence .intelligence-requested-analysis {
    margin: 0;
    padding: 4mm;
    break-before: page;
    page-break-before: always;
    background: #fff !important;
  }

  body.printing-intelligence .intelligence-answer-heading { margin-bottom: 3mm; }
  body.printing-intelligence .intelligence-answer-heading h2 { font-size: 17px; }
  body.printing-intelligence .nexus-answer { gap: 3mm; }
  body.printing-intelligence .nexus-answer-question { grid-template-columns: 32mm minmax(0, 1fr); gap: 3mm; padding: 3mm 4mm; }
  body.printing-intelligence .nexus-answer-question span { font-size: 7px; }
  body.printing-intelligence .nexus-answer-question p { color: #273530; font-size: 9px; }

  body.printing-intelligence .nexus-answer-verdict {
    grid-template-columns: 12mm minmax(0, 1fr) auto;
    gap: 3mm;
    padding: 5mm;
  }

  body.printing-intelligence .nexus-verdict-mark { width: 12mm; height: 12mm; border-radius: 2mm; font-size: 14px; }
  body.printing-intelligence .nexus-answer-verdict h3 { margin: 1mm 0 1.5mm; font-size: 16px; }
  body.printing-intelligence .nexus-answer-verdict p { font-size: 8px; line-height: 1.5; }
  body.printing-intelligence .nexus-evidence-badge { padding: 2mm 3mm; font-size: 7px; }

  body.printing-intelligence .nexus-answer-evidence { gap: 3mm; }
  body.printing-intelligence .nexus-answer .insight-block { min-height: 0; padding: 4mm; border-radius: 3mm; }
  body.printing-intelligence .nexus-answer .insight-block header { gap: 2mm; margin-bottom: 3mm; }
  body.printing-intelligence .nexus-answer .insight-block header > span { width: 8mm; height: 8mm; flex-basis: 8mm; border-radius: 2mm; font-size: 11px; }
  body.printing-intelligence .nexus-answer .insight-block header small { font-size: 6px; }
  body.printing-intelligence .nexus-answer .insight-block h3 { font-size: 11px; }
  body.printing-intelligence .nexus-answer .insight-block ul { padding-left: 4mm; font-size: 8px; line-height: 1.45; }
  body.printing-intelligence .nexus-answer .insight-block li + li { margin-top: 1.5mm; }

  body.printing-intelligence .nexus-answer-actions { padding: 4mm 5mm; border-radius: 3mm; }
  body.printing-intelligence .nexus-answer-actions > header { margin-bottom: 2mm; }
  body.printing-intelligence .nexus-answer-actions h3 { margin-top: 1mm; font-size: 13px; }
  body.printing-intelligence .nexus-answer-actions header small,
  body.printing-intelligence .nexus-answer-actions > header > span { font-size: 6.5px; }
  body.printing-intelligence .nexus-answer-actions ol { padding-left: 4mm; }
  body.printing-intelligence .nexus-answer-actions li { padding: 0; }
  body.printing-intelligence .nexus-answer-actions li + li { margin-top: 1.5mm; }
  body.printing-intelligence .nexus-answer-actions li p { font-size: 8px; line-height: 1.45; }

  body.printing-intelligence .report-print-footer {
    margin-top: 4mm;
    padding: 3mm 4mm;
  }
}

/* Unified NEXUS paper: one calm corporate background across the PDF. */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
    background: #f1f5f2;
  }

  html,
  body.printing-intelligence,
  body.printing-intelligence .main,
  body.printing-intelligence #intelligenceView,
  body.printing-intelligence .workspace-output,
  body.printing-intelligence .intelligence-report {
    background-color: #f1f5f2 !important;
  }

  body.printing-intelligence .intelligence-report {
    background-image:
      linear-gradient(90deg, rgba(14, 111, 84, .035) 1px, transparent 1px),
      linear-gradient(rgba(14, 111, 84, .035) 1px, transparent 1px) !important;
    background-size: 12mm 12mm !important;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  body.printing-intelligence .report-print-cover {
    border: 1px solid #b8cec6;
    color: #14241f;
    background:
      radial-gradient(circle at 88% 18%, rgba(53, 211, 164, .16), transparent 26%),
      linear-gradient(145deg, rgba(255,255,255,.96), rgba(232,242,238,.96)) !important;
    box-shadow: inset 0 2.5mm 0 #087b5d;
  }

  body.printing-intelligence .report-print-cover::before {
    content: "N";
    position: absolute;
    right: 10mm;
    top: 12mm;
    display: grid;
    place-items: center;
    width: 30mm;
    height: 30mm;
    border: 1px solid rgba(8, 123, 93, .22);
    border-radius: 7mm;
    color: rgba(8, 123, 93, .11);
    font-size: 58px;
    font-weight: 900;
    transform: rotate(-4deg);
  }

  body.printing-intelligence .report-print-cover::after {
    border-color: rgba(8, 123, 93, .1);
  }

  body.printing-intelligence .report-print-brand {
    color: #087b5d;
  }

  body.printing-intelligence .report-print-brand span {
    border-color: #159b76;
    background: #087b5d;
    color: #fff;
  }

  body.printing-intelligence .report-print-cover-copy > p,
  body.printing-intelligence .report-print-executive small,
  body.printing-intelligence .report-print-kpis small {
    color: #087b5d;
  }

  body.printing-intelligence .report-print-cover h1 {
    max-width: 145mm;
    color: #10231d;
  }

  body.printing-intelligence .report-print-rule {
    background: linear-gradient(90deg, #087b5d, #35d3a4);
  }

  body.printing-intelligence .report-print-cover dt { color: #547069; }
  body.printing-intelligence .report-print-cover dd { color: #263a34; }

  body.printing-intelligence .report-print-executive {
    border-top-color: #bfd2cb;
  }

  body.printing-intelligence .report-print-executive p {
    color: #3d554e;
  }

  body.printing-intelligence .report-print-kpis span {
    border-color: #c1d5ce;
    background: rgba(255,255,255,.74);
  }

  body.printing-intelligence .report-print-kpis strong {
    color: #087b5d;
  }

  body.printing-intelligence .report-print-cover footer {
    border-top-color: #c5d6d0;
    background: rgba(219,234,228,.72);
    color: #547069;
  }

  body.printing-intelligence .intelligence-command-center > header,
  body.printing-intelligence .intelligence-market-grid,
  body.printing-intelligence .intelligence-kpi-strip,
  body.printing-intelligence .intelligence-financial-charts,
  body.printing-intelligence .intelligence-requested-analysis {
    border-color: #bdd0c9;
  }

  body.printing-intelligence .intelligence-financial-charts > section,
  body.printing-intelligence .intelligence-share,
  body.printing-intelligence .intelligence-kpi-strip article,
  body.printing-intelligence .intelligence-position-stack article,
  body.printing-intelligence .intelligence-requested-analysis {
    background: rgba(255,255,255,.92) !important;
    box-shadow: 0 1.5mm 5mm rgba(24, 59, 48, .055);
  }

  body.printing-intelligence .report-print-footer {
    background: rgba(222,235,230,.94) !important;
  }
}

/* User-supplied A4 NEXUS template, repeated as the paper on every PDF page. */
@media print {
  @page {
    size: A4 portrait;
    margin: 40mm 9mm 17mm;
    background: #03100d url("/assets/nexus-pdf-template.png") center -40mm / 210mm 297mm no-repeat;
  }

  html,
  body.printing-intelligence,
  body.printing-intelligence .main,
  body.printing-intelligence #intelligenceView,
  body.printing-intelligence .workspace-output,
  body.printing-intelligence .intelligence-report {
    background: transparent !important;
  }

  body.printing-intelligence::before {
    content: "";
    position: fixed;
    z-index: 0;
    top: -40mm;
    left: -9mm;
    width: 209.5mm;
    height: 296mm;
    background: #03100d url("/assets/nexus-pdf-template.png") center / 210mm 297mm no-repeat;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    pointer-events: none;
  }

  body.printing-intelligence .app-shell,
  body.printing-intelligence .main,
  body.printing-intelligence #intelligenceView,
  body.printing-intelligence .workspace-grid,
  body.printing-intelligence .workspace-output,
  body.printing-intelligence .intelligence-report {
    position: relative;
    z-index: 1;
  }

  body.printing-intelligence .report-print-cover {
    min-height: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    color: #eef8f5;
    background: transparent !important;
    box-shadow: none;
  }

  body.printing-intelligence .report-print-cover::before,
  body.printing-intelligence .report-print-cover::after,
  body.printing-intelligence .report-print-brand {
    display: none !important;
  }

  body.printing-intelligence .report-print-cover-copy {
    margin: 14mm 7mm auto;
    padding: 8mm;
    border: 1px solid rgba(53, 211, 164, .38);
    border-radius: 4mm;
    background: rgba(2, 18, 14, .82);
    box-shadow: 0 4mm 14mm rgba(0, 0, 0, .28);
  }

  body.printing-intelligence .report-print-cover-copy > p,
  body.printing-intelligence .report-print-executive small,
  body.printing-intelligence .report-print-kpis small {
    color: #40dfb0;
  }

  body.printing-intelligence .report-print-cover h1 {
    max-width: 150mm;
    color: #f3faf7;
  }

  body.printing-intelligence .report-print-cover dt { color: #81a89c; }
  body.printing-intelligence .report-print-cover dd,
  body.printing-intelligence .report-print-executive p { color: #d8e7e2; }
  body.printing-intelligence .report-print-executive { border-top-color: rgba(76, 202, 165, .28); }

  body.printing-intelligence .report-print-kpis span {
    border-color: rgba(63, 211, 168, .3);
    background: rgba(1, 12, 9, .62);
  }

  body.printing-intelligence .report-print-kpis strong { color: #40dfb0; }

  body.printing-intelligence .report-print-cover footer {
    margin: auto 7mm 5mm;
    border: 1px solid rgba(53, 211, 164, .25);
    border-radius: 2mm;
    background: rgba(2, 18, 14, .78);
    color: #a9c4bb;
  }

  body.printing-intelligence .intelligence-command-center > header,
  body.printing-intelligence .intelligence-market-grid,
  body.printing-intelligence .intelligence-kpi-strip,
  body.printing-intelligence .intelligence-financial-charts,
  body.printing-intelligence .intelligence-requested-analysis {
    border-color: rgba(65, 185, 150, .35);
  }

  body.printing-intelligence .intelligence-command-center > header,
  body.printing-intelligence .intelligence-market-grid,
  body.printing-intelligence .intelligence-kpi-strip {
    padding-right: 4mm;
    padding-left: 4mm;
    background: rgba(3, 18, 14, .9) !important;
  }

  body.printing-intelligence .intelligence-command-center > header {
    padding-top: 4mm;
    border: 1px solid rgba(65, 185, 150, .35);
    border-radius: 3mm 3mm 0 0;
  }

  body.printing-intelligence .intelligence-market-grid {
    border-right: 1px solid rgba(65, 185, 150, .35);
    border-left: 1px solid rgba(65, 185, 150, .35);
  }

  body.printing-intelligence .intelligence-kpi-strip {
    padding-bottom: 5mm;
    border: 1px solid rgba(65, 185, 150, .35);
    border-radius: 0 0 3mm 3mm;
  }

  body.printing-intelligence .intelligence-command-center h2,
  body.printing-intelligence .intelligence-command-center h3,
  body.printing-intelligence .intelligence-answer-heading h2,
  body.printing-intelligence .intelligence-peer > strong {
    color: #f0f7f4 !important;
  }

  body.printing-intelligence .intelligence-command-center > header p:last-child,
  body.printing-intelligence .intelligence-peer > span,
  body.printing-intelligence .intelligence-peer > em,
  body.printing-intelligence .intelligence-peer > small,
  body.printing-intelligence .intelligence-peer-head,
  body.printing-intelligence .intelligence-share > p,
  body.printing-intelligence .intelligence-position-stack span,
  body.printing-intelligence .intelligence-position-stack small,
  body.printing-intelligence .intelligence-kpi-strip article span,
  body.printing-intelligence .intelligence-kpi-strip article small {
    color: #9ab4ac !important;
  }

  body.printing-intelligence .intelligence-peer-head,
  body.printing-intelligence .intelligence-peer { border-color: rgba(116, 160, 147, .28); }
  body.printing-intelligence .intelligence-peer.selected { background: rgba(53, 211, 164, .1); }

  body.printing-intelligence .intelligence-share,
  body.printing-intelligence .intelligence-kpi-strip article,
  body.printing-intelligence .intelligence-position-stack article,
  body.printing-intelligence .intelligence-financial-charts > section,
  body.printing-intelligence .intelligence-requested-analysis {
    border-color: rgba(65, 185, 150, .32);
    background: rgba(5, 24, 19, .92) !important;
    color: #eaf5f1;
    box-shadow: 0 2mm 8mm rgba(0,0,0,.18);
  }

  body.printing-intelligence .intelligence-donut > span,
  body.printing-intelligence .intelligence-income-year b {
    border-color: rgba(74, 183, 151, .42);
    background: #071713 !important;
  }

  body.printing-intelligence .intelligence-donut-key > b { background: #18332b; }
  body.printing-intelligence .intelligence-donut-key > span,
  body.printing-intelligence .intelligence-donut-key > strong,
  body.printing-intelligence .intelligence-chart-legend,
  body.printing-intelligence .intelligence-income-year small,
  body.printing-intelligence .intelligence-balance-year small { color: #a5bdb5; }

  body.printing-intelligence .intelligence-financial-charts {
    background: transparent !important;
  }

  body.printing-intelligence .intelligence-financial-charts h3 { color: #f1f8f5 !important; }
  body.printing-intelligence .intelligence-income-chart,
  body.printing-intelligence .intelligence-balance-chart { border-color: rgba(116,160,147,.35); }

  body.printing-intelligence .intelligence-market-note {
    border-color: #d3a83f;
    background: rgba(61, 47, 13, .9) !important;
    color: #ead9a9 !important;
  }

  body.printing-intelligence .intelligence-requested-analysis {
    padding: 5mm;
  }

  body.printing-intelligence .nexus-answer-question {
    border-color: rgba(65,185,150,.34);
    background: rgba(4, 20, 16, .88);
  }

  body.printing-intelligence .nexus-answer-question p { color: #e7f2ee; }

  body.printing-intelligence .report-print-footer {
    border-color: rgba(65,185,150,.35);
    background: rgba(4, 22, 17, .92) !important;
    color: #aac0b9;
  }

  body.printing-intelligence .report-print-footer strong { color: #40dfb0; }
}

/* Calm, progressive presentation for data-heavy views. */
[data-motion-ready="true"] {
  opacity: 0;
  transform: translateY(18px) scale(.992);
  transition:
    opacity .58s cubic-bezier(.2,.72,.2,1) var(--reveal-delay, 0ms),
    transform .58s cubic-bezier(.2,.72,.2,1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-motion-ready="true"].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.is-revealed .history-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: nexusLineDraw .9s cubic-bezier(.25,.7,.2,1) .12s forwards;
}

.is-revealed .history-points circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: nexusPointIn .36s cubic-bezier(.2,.85,.25,1.25) both;
}

.is-revealed .history-points circle:nth-child(2n) { animation-delay: .08s; }
.is-revealed .history-points circle:nth-child(3n) { animation-delay: .14s; }
.is-revealed .benchmark-bar-pair i { animation: nexusBarRise .7s cubic-bezier(.2,.8,.2,1) both; }
.is-revealed .benchmark-year:nth-child(2) i { animation-delay: .06s; }
.is-revealed .benchmark-year:nth-child(3) i { animation-delay: .12s; }
.is-revealed .benchmark-year:nth-child(4) i { animation-delay: .18s; }
.is-revealed .benchmark-year:nth-child(5) i { animation-delay: .24s; }
.is-revealed .benchmark-year:nth-child(6) i { animation-delay: .3s; }

.is-revealed .comparison-row .bar,
.is-revealed .competitive-value span,
.is-revealed .dimension-track span {
  transform-origin: left center;
  animation: nexusTrackGrow .68s cubic-bezier(.2,.8,.2,1) both;
}
.is-revealed .competitive-value.left span { transform-origin: right center; }

@keyframes nexusLineDraw { to { stroke-dashoffset: 0; } }
@keyframes nexusPointIn { from { opacity: 0; transform: scale(.25); } to { opacity: 1; transform: scale(1); } }
@keyframes nexusBarRise { from { opacity: .25; transform: scaleY(.04); } to { opacity: 1; transform: scaleY(1); } }
@keyframes nexusTrackGrow { from { opacity: .3; transform: scaleX(.03); } to { opacity: 1; transform: scaleX(1); } }

.pdf-sheet { display: contents; }
.pdf-page-background { display: none; }
.pdf-sheet-dashboard > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 5px 0 20px; border-bottom: 1px solid var(--line); }
.pdf-sheet-dashboard > header h2 { margin: 4px 0 6px; font-size: 21px; }
.pdf-sheet-dashboard > header p:last-child { max-width: 650px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.pdf-sheet-dashboard > header > span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--muted); font-size: 8px; white-space: nowrap; }

@media print {
  @page {
    size: A4 portrait;
    margin: 40mm 9mm 17mm;
    background: #03100d;
  }

  body.printing-intelligence .pdf-sheet {
    position: relative;
    z-index: 1;
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 235mm;
    overflow: visible;
    break-after: page;
    page-break-after: always;
  }

  body.printing-intelligence .pdf-sheet-answer {
    break-after: auto;
    page-break-after: auto;
  }

  body.printing-intelligence .pdf-sheet-dashboard > header {
    padding: 4mm;
    border: 1px solid rgba(65, 185, 150, .35);
    border-radius: 3mm 3mm 0 0;
    background: rgba(3, 18, 14, .9) !important;
  }

  body.printing-intelligence .pdf-sheet-dashboard > header h2 { color: #f0f7f4 !important; font-size: 20px; }
  body.printing-intelligence .pdf-sheet-dashboard > header p:last-child { color: #9ab4ac !important; font-size: 8.5px; }
  body.printing-intelligence .pdf-sheet-dashboard > header > span { border-color: rgba(65,185,150,.35); background: rgba(5,24,19,.92); color: #9ab4ac; }

  body.printing-intelligence .pdf-page-background { display: none !important; }

  body.printing-intelligence .pdf-sheet > :not(.pdf-page-background),
  body.printing-intelligence .report-print-cover > :not(.pdf-page-background) {
    position: relative;
    z-index: 1;
  }

  body.printing-intelligence .report-print-cover {
    position: relative;
    min-height: 207mm;
  }

  body.printing-intelligence .intelligence-financial-charts {
    break-before: auto;
    page-break-before: auto;
  }

  body.printing-intelligence .intelligence-requested-analysis {
    break-before: auto;
    page-break-before: auto;
  }
}

.print-page-background { display: none; }

@media print {
  @page {
    size: A4 portrait;
    margin: 40mm 9mm 17mm;
    background: #03100d url("/assets/nexus-pdf-template.png") center -40mm / 210mm 297mm no-repeat;
  }

  body.printing-intelligence::before { content: none !important; display: none !important; }

  body.printing-intelligence .print-page-background {
    display: none !important;
  }

  body.printing-intelligence .report-print-cover {
    min-height: 207mm;
  }

  body.printing-intelligence .report-print-footer {
    display: none !important;
  }
}

/* Deterministic PDF renderer: captured A4 pages, independent from browser print. */
.pdf-export-stage {
  position: fixed;
  z-index: -10000;
  top: 0;
  left: -12000px;
  width: 794px;
  pointer-events: none;
}

.pdf-export-page {
  position: relative;
  width: 794px;
  height: 1123px;
  overflow: hidden;
  background: #03100d;
  color: #edf4f1;
  font-family: Inter, Arial, sans-serif;
}

.pdf-export-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.pdf-export-content {
  position: absolute;
  z-index: 1;
  top: 151px;
  right: 34px;
  bottom: 64px;
  left: 34px;
  overflow: hidden;
}

.pdf-export-content .pdf-sheet { display: block; }
.pdf-export-content [data-motion-ready="true"] { opacity: 1 !important; transform: none !important; }

.pdf-export-content .report-print-cover {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border: 0;
  color: #edf7f3;
  background: transparent;
}

.pdf-export-content .report-print-brand,
.pdf-export-content .pdf-page-background { display: none !important; }

.pdf-export-content .report-print-cover-copy {
  margin: 36px 28px auto;
  padding: 30px;
  border: 1px solid rgba(53,211,164,.42);
  border-radius: 14px;
  background: rgba(2,18,14,.88);
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
}

.pdf-export-content .report-print-cover-copy > p { margin: 0 0 12px; color: #42dfb1; font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.pdf-export-content .report-print-cover h1 { max-width: 610px; margin: 0; color: #f4faf7; font-size: 38px; line-height: 1.08; }
.pdf-export-content .report-print-rule { width: 72px; height: 3px; margin: 18px 0; background: #35d3a4; }
.pdf-export-content .report-print-cover dl { display: grid; grid-template-columns: 90px .7fr 1.5fr; gap: 15px; margin: 0; }
.pdf-export-content .report-print-cover dl div { display: block; }
.pdf-export-content .report-print-cover dt { margin-bottom: 5px; color: #75aa9a; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.pdf-export-content .report-print-cover dd { margin: 0; color: #d9e8e3; font-size: 11px; line-height: 1.4; }
.pdf-export-content .report-print-executive { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(53,211,164,.28); }
.pdf-export-content .report-print-executive small { display: block; color: #42dfb1; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.pdf-export-content .report-print-executive p { margin: 7px 0 0; color: #d5e5df; font-size: 11px; line-height: 1.55; }
.pdf-export-content .report-print-kpis { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.pdf-export-content .report-print-kpis span { padding: 10px; border: 1px solid rgba(53,211,164,.28); border-radius: 7px; background: rgba(0,10,8,.55); }
.pdf-export-content .report-print-kpis strong { display: block; margin-top: 4px; color: #42dfb1; font-size: 16px; }
.pdf-export-content .report-print-cover footer { display: flex; justify-content: space-between; gap: 20px; margin: auto 28px 16px; padding: 11px 14px; border: 1px solid rgba(53,211,164,.28); border-radius: 7px; background: rgba(2,18,14,.82); color: #9bb8af; font-size: 9px; }

.pdf-export-content .pdf-sheet-dashboard > header { padding: 18px; border: 1px solid rgba(53,211,164,.35); border-radius: 10px 10px 0 0; background: rgba(3,18,14,.94); }
.pdf-export-content .pdf-sheet-dashboard > header h2 { color: #f2f8f5; font-size: 22px; }
.pdf-export-content .pdf-sheet-dashboard > header p:last-child { color: #9cb6ae; font-size: 10px; }
.pdf-export-content .intelligence-market-grid { grid-template-columns: minmax(0,1.35fr) minmax(260px,.65fr); gap: 14px 18px; padding: 18px; border: 1px solid rgba(53,211,164,.35); background: rgba(3,18,14,.94); }
.pdf-export-content .intelligence-market-grid h3 { color: #f0f7f4; font-size: 14px; }
.pdf-export-content .intelligence-peer-head,
.pdf-export-content .intelligence-peer { min-height: 29px; }
.pdf-export-content .intelligence-position-stack article,
.pdf-export-content .intelligence-kpi-strip article { background: rgba(7,31,24,.96); }
.pdf-export-content .intelligence-position-stack article { min-height: 70px; }
.pdf-export-content .intelligence-share { padding: 8px 10px; }
.pdf-export-content .intelligence-donut { width: 168px; }
.pdf-export-content .intelligence-donut-legend { gap: 3px; margin-top: 8px; }
.pdf-export-content .intelligence-share > p { margin-top: 7px; }
.pdf-export-content .intelligence-kpi-strip { padding: 18px; border: 1px solid rgba(53,211,164,.35); border-radius: 0 0 10px 10px; background: rgba(3,18,14,.94); }
.pdf-export-content .intelligence-kpi-strip > div:last-child { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.pdf-export-content .intelligence-kpi-strip article { padding: 10px; }

.pdf-export-content .pdf-sheet-charts { height: 100%; }
.pdf-export-content .intelligence-financial-charts { grid-template-columns: 1fr; gap: 22px; padding: 0; }
.pdf-export-content .intelligence-financial-charts > section { padding: 18px; border: 1px solid rgba(53,211,164,.35); border-radius: 10px; background: rgba(3,18,14,.94); }
.pdf-export-content .intelligence-financial-charts > section > header { height: 52px; min-height: 52px; }
.pdf-export-content .intelligence-financial-charts h3 { color: #f1f8f5; font-size: 18px; }
.pdf-export-content .intelligence-income-chart,
.pdf-export-content .intelligence-balance-chart { min-height: 295px; margin-top: 4px; }
.pdf-export-content .intelligence-income-year,
.pdf-export-content .intelligence-balance-year { grid-template-rows: 245px 16px 16px; }
.pdf-export-content .intelligence-income-year > div,
.pdf-export-content .intelligence-balance-year > div { height: 245px; }
.pdf-export-content .intelligence-market-note { margin-top: 14px; background: rgba(63,48,13,.92); color: #ead9a9; }

.pdf-export-content .pdf-sheet-answer { height: 100%; padding: 18px; border: 1px solid rgba(53,211,164,.35); border-radius: 10px; background: rgba(3,18,14,.94); }
.pdf-export-content .intelligence-answer-heading { margin-bottom: 12px; }
.pdf-export-content .nexus-answer { gap: 12px; }
.pdf-export-content .nexus-answer-question { grid-template-columns: 125px 1fr; gap: 12px; padding: 12px 15px; }
.pdf-export-content .nexus-answer-question p { font-size: 12px; }
.pdf-export-content .nexus-answer-verdict { grid-template-columns: 46px 1fr auto; gap: 13px; padding: 17px; }
.pdf-export-content .nexus-verdict-mark { width: 46px; height: 46px; font-size: 18px; }
.pdf-export-content .nexus-answer-verdict h3 { margin: 3px 0 6px; font-size: 18px; }
.pdf-export-content .nexus-answer-verdict p { font-size: 10px; line-height: 1.5; }
.pdf-export-content .nexus-answer-evidence { gap: 10px; }
.pdf-export-content .nexus-answer .insight-block { min-height: 0; padding: 14px; }
.pdf-export-content .nexus-answer .insight-block header { gap: 8px; margin-bottom: 10px; }
.pdf-export-content .nexus-answer .insight-block header > span { width: 30px; height: 30px; flex-basis: 30px; font-size: 13px; }
.pdf-export-content .nexus-answer .insight-block h3 { font-size: 13px; }
.pdf-export-content .nexus-answer .insight-block ul { padding-left: 15px; font-size: 10px; line-height: 1.45; }
.pdf-export-content .nexus-answer-actions { padding: 15px 18px; }
.pdf-export-content .nexus-answer-actions > header { margin-bottom: 8px; }
.pdf-export-content .nexus-answer-actions h3 { font-size: 16px; }
.pdf-export-content .nexus-answer-actions li p { font-size: 10px; line-height: 1.45; }

/* PDF alignment refinements: centered statistics and single-line values. */
.pdf-export-content .intelligence-peer-table {
  grid-column: 1;
  grid-row: 1;
}

.pdf-export-content .intelligence-position-stack {
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: stretch;
  gap: 8px;
}

.pdf-export-content .intelligence-position-stack article {
  min-width: 0;
  padding: 8px 5px;
}

.pdf-export-content .intelligence-position-stack strong {
  margin: 5px 0 4px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  overflow-wrap: normal;
}

.pdf-export-content .intelligence-position-stack span,
.pdf-export-content .intelligence-position-stack small {
  font-size: 7px;
  line-height: 1.25;
}

.pdf-export-content .intelligence-share {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  padding: 12px 24px 8px;
  justify-self: center;
  text-align: center;
}

.pdf-export-content .intelligence-share > div:first-child {
  width: 100%;
  text-align: center;
}

.pdf-export-content .intelligence-donut {
  width: 148px;
  margin-inline: auto;
}

.pdf-export-content .intelligence-donut-legend {
  width: min(620px, 100%);
  margin: 9px auto 0;
}

.pdf-export-content .intelligence-donut-key {
  grid-template-columns: 8px minmax(0, 1fr) 150px 40px;
  gap: 8px;
}

.pdf-export-content .intelligence-share > p {
  max-width: 620px;
  margin: 7px auto 0;
  text-align: center;
}

.pdf-export-content .chart-bar-value {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  color: #f2f7f5;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

.pdf-export-content .intelligence-income-year,
.pdf-export-content .intelligence-balance-year {
  justify-items: center;
  text-align: center;
}

.pdf-export-content .intelligence-income-year > div:first-child,
.pdf-export-content .intelligence-balance-year > div:first-child {
  width: 100%;
  justify-content: center;
}

.pdf-export-content .intelligence-income-year > small,
.pdf-export-content .intelligence-income-year > em,
.pdf-export-content .intelligence-balance-year > small {
  width: 100%;
  white-space: nowrap;
  text-align: center;
}

.pdf-export-content .balance-chart-values {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center !important;
  justify-content: stretch !important;
  gap: 2px !important;
  width: 100%;
  height: 16px !important;
  min-height: 16px !important;
}

.pdf-export-content .balance-chart-values span {
  min-width: 0;
  color: #b8cbc5;
  font-size: 6px;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

/* Readable dashboard typography on screen. PDF export keeps its own compact scale. */
@media screen {
  body:not(.exporting-pdf) #intelligenceView .pdf-sheet-dashboard > header .eyebrow,
  body:not(.exporting-pdf) #intelligenceView .intelligence-peer-title .eyebrow,
  body:not(.exporting-pdf) #intelligenceView .intelligence-share .eyebrow,
  body:not(.exporting-pdf) #intelligenceView .intelligence-kpi-strip .eyebrow {
    font-size: 13px;
  }

  body:not(.exporting-pdf) #intelligenceView .pdf-sheet-dashboard > header h2 {
    font-size: 30px;
    line-height: 1.12;
  }

  body:not(.exporting-pdf) #intelligenceView .pdf-sheet-dashboard > header p:last-child {
    max-width: 980px;
    font-size: 14px;
    line-height: 1.65;
  }

  body:not(.exporting-pdf) #intelligenceView .pdf-sheet-dashboard > header > span {
    font-size: 11px;
  }

  body:not(.exporting-pdf) #intelligenceView .intelligence-market-grid h3,
  body:not(.exporting-pdf) #intelligenceView .intelligence-kpi-strip h3,
  body:not(.exporting-pdf) #intelligenceView .intelligence-financial-charts h3 {
    font-size: 22px;
    line-height: 1.2;
  }

  body:not(.exporting-pdf) #intelligenceView .intelligence-peer-title > span {
    font-size: 11px;
  }

  body:not(.exporting-pdf) #intelligenceView .intelligence-peer-head {
    font-size: 11px;
  }

  body:not(.exporting-pdf) #intelligenceView .intelligence-peer > span,
  body:not(.exporting-pdf) #intelligenceView .intelligence-peer > em,
  body:not(.exporting-pdf) #intelligenceView .intelligence-peer > small {
    font-size: 12px;
  }

  body:not(.exporting-pdf) #intelligenceView .intelligence-peer > strong {
    font-size: 13px;
  }

  body:not(.exporting-pdf) #intelligenceView .intelligence-position-stack span,
  body:not(.exporting-pdf) #intelligenceView .intelligence-position-stack small {
    font-size: 11px;
  }

  body:not(.exporting-pdf) #intelligenceView .intelligence-position-stack strong {
    font-size: 21px;
  }

  body:not(.exporting-pdf) #intelligenceView .intelligence-donut strong {
    font-size: 25px;
  }

  body:not(.exporting-pdf) #intelligenceView .intelligence-donut small,
  body:not(.exporting-pdf) #intelligenceView .intelligence-donut-key > span,
  body:not(.exporting-pdf) #intelligenceView .intelligence-donut-key > strong,
  body:not(.exporting-pdf) #intelligenceView .intelligence-share > p {
    font-size: 11px;
  }

  body:not(.exporting-pdf) #intelligenceView .intelligence-kpi-strip article span,
  body:not(.exporting-pdf) #intelligenceView .intelligence-kpi-strip article small {
    font-size: 11px;
  }

  body:not(.exporting-pdf) #intelligenceView .intelligence-kpi-strip article strong {
    font-size: 18px;
  }
}

/* NEXUS Simulator */
.simulator-header {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(53,211,164,.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 82% 45%, rgba(53,211,164,.2), transparent 24%),
    linear-gradient(118deg, #07110f 0%, #09201b 58%, #07161a 100%);
}

.simulator-header::after {
  position: absolute;
  right: 8%;
  bottom: -52px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(53,211,164,.32);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(53,211,164,.025), 0 0 70px rgba(53,211,164,.16);
  content: "";
}

.simulator-header > div { position: relative; z-index: 1; max-width: 720px; }
.simulator-header h1 { margin: 7px 0 13px; font-size: clamp(38px, 4vw, 58px); }
.simulator-header h1 span { color: var(--primary); }
.simulator-header > div > p:last-child { max-width: 650px; font-size: 15px; line-height: 1.65; }

.simulator-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  padding: 9px 13px;
  border: 1px solid rgba(53,211,164,.28);
  border-radius: 999px;
  background: rgba(3,16,13,.72);
  color: #b5cac3;
  font-size: 11px;
}

.simulator-console {
  margin-top: 20px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(12,30,26,.96), rgba(7,18,16,.98));
  box-shadow: 0 20px 48px rgba(0,0,0,.22);
}

.simulator-console > section { padding: 22px 24px; }
.simulator-console > section + section { border-top: 1px solid var(--line); }

.simulator-section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.simulator-section-title > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(53,211,164,.55);
  border-radius: 50%;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}
.simulator-section-title .eyebrow { margin-bottom: 2px; }
.simulator-section-title h2 { margin: 0; font-size: 19px; }

.simulator-setup-grid { display: grid; grid-template-columns: minmax(300px,1.4fr) minmax(150px,.45fr) minmax(150px,.45fr); gap: 14px; align-items: end; }
.simulator-setup-grid .field-group { margin: 0; }

.assumption-grid { display: grid; grid-template-columns: repeat(6,minmax(120px,1fr)); gap: 10px; }
.assumption-grid > label {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.018);
}
.assumption-grid > label > span { display: block; min-height: 28px; color: #d7e5e0; font-size: 11px; font-weight: 750; }
.assumption-grid > label > div { display: flex; align-items: center; gap: 4px; margin: 7px 0 4px; }
.assumption-grid input { width: 100%; min-width: 0; padding: 6px 2px; border: 0; border-bottom: 1px solid rgba(53,211,164,.25); border-radius: 0; background: transparent; color: var(--primary); font-size: 20px; font-weight: 850; }
.assumption-grid input:focus { outline: 0; border-color: var(--primary); }
.assumption-grid b { color: var(--primary); font-size: 13px; }
.assumption-grid input[type="range"] { height: 6px; padding: 0; border: 0; border-radius: 99px; background: linear-gradient(90deg, rgba(53,211,164,.55), #20332d); accent-color: var(--primary); cursor: ew-resize; }
.assumption-grid output { min-width: 45px; color: var(--primary); font-size: 16px; font-weight: 850; text-align: right; }
.assumption-grid small { color: var(--muted); font-size: 9px; }

.shock-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.shock-card {
  display: grid;
  grid-template-columns: 18px 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.018);
  cursor: pointer;
  transition: .2s ease;
}
.shock-card:hover, .shock-card:has(input:checked) { border-color: rgba(53,211,164,.5); background: rgba(53,211,164,.06); transform: translateY(-2px); }
.shock-card input { accent-color: var(--primary); }
.shock-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: rgba(53,211,164,.08); color: var(--primary); font-size: 18px; }
.shock-card strong, .shock-card small { display: block; }
.shock-card strong { color: #e8f2ef; font-size: 12px; }
.shock-card small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }

.shock-details { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 12px; padding: 13px; border: 1px dashed rgba(53,211,164,.3); border-radius: 9px; }
.shock-details label { color: var(--muted); font-size: 10px; font-weight: 700; }
.shock-details input { width: 100%; margin-top: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 6px; background: #0d1916; color: #eef7f4; }

.simulator-run-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px; border-top: 1px solid var(--line); }
.simulator-run-row p { max-width: 760px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.simulator-run-row p strong { color: #dbe9e4; }
.simulator-run-row button { min-width: 220px; min-height: 48px; }

.simulator-empty { min-height: 330px; }
.simulator-result { margin-top: 22px; }
.simulator-result-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px; border: 1px solid rgba(53,211,164,.25); border-radius: 13px; background: linear-gradient(120deg, rgba(10,35,29,.96), rgba(7,18,16,.98)); }
.simulator-result-header h2 { margin: 5px 0; font-size: 28px; }
.simulator-result-header p:last-child { margin: 0; color: var(--muted); }
.simulator-result-header > span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; }

.simulator-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 12px 0; }
.simulator-kpis article { padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.simulator-kpis span, .simulator-kpis small { display: block; color: var(--muted); font-size: 10px; }
.simulator-kpis strong { display: block; margin: 9px 0 6px; color: var(--primary); font-size: 24px; }
.simulator-kpis strong.negative, .simulator-table .negative { color: #f27c83; }

.simulator-chart-panel, .simulator-result-grid > section, .simulator-trace { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.simulator-chart-panel > header { display: flex; justify-content: space-between; gap: 20px; }
.simulator-chart-panel h3, .simulator-result-grid h3, .simulator-trace h3 { margin: 5px 0 0; font-size: 19px; }
.simulator-chart-controls { display: grid; justify-items: end; gap: 11px; }
.simulator-metric-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: rgba(1,10,8,.45); }
.simulator-metric-switch button { padding: 7px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 800; cursor: pointer; transition: .18s ease; }
.simulator-metric-switch button:hover { color: #e6f2ee; }
.simulator-metric-switch button.active { background: rgba(53,211,164,.14); color: var(--primary); box-shadow: inset 0 0 0 1px rgba(53,211,164,.24); }
.simulator-legend { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 10px; }
.simulator-legend span { display: flex; align-items: center; gap: 5px; }
.simulator-legend i, .simulator-table-row i { width: 9px; height: 9px; border-radius: 50%; background: #71847e; }
.simulator-legend .base, .simulator-table-row i.base { background: #35d3a4; }
.simulator-legend .optimistic, .simulator-table-row i.optimistic { background: #55a9c8; }
.simulator-legend .conservative, .simulator-table-row i.conservative { background: #ed747c; }
.simulator-chart { margin-top: 20px; }
.simulator-chart-canvas { height: 300px; }
.simulator-chart svg { width: 100%; height: 100%; overflow: visible; }
.simulator-chart .grid line { stroke: rgba(145,169,161,.12); stroke-width: 1; }
.simulator-chart .grid line.zero { stroke: rgba(237,116,124,.4); stroke-dasharray: 8 7; }
.simulator-chart .scenario-band { fill: url(#simulatorBand); stroke: none; }
.simulator-chart polyline { fill: none; stroke-width: 5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.simulator-chart polyline.conservative { stroke: #ed747c; }
.simulator-chart polyline.base { stroke: #35d3a4; filter: drop-shadow(0 0 6px rgba(53,211,164,.35)); }
.simulator-chart polyline.optimistic { stroke: #55a9c8; }
.simulator-chart .scenario-points circle { vector-effect: non-scaling-stroke; cursor: help; transition: r .16s ease, filter .16s ease; }
.simulator-chart .scenario-points circle.conservative { fill: #ed747c; stroke: #351619; stroke-width: 2; }
.simulator-chart .scenario-points circle.base { fill: #35d3a4; stroke: #061d16; stroke-width: 3; }
.simulator-chart .scenario-points circle.optimistic { fill: #55a9c8; stroke: #0a222b; stroke-width: 2; }
.simulator-chart .scenario-points circle:hover,
.simulator-chart .scenario-points circle:focus { r: 9; filter: drop-shadow(0 0 7px currentColor); outline: none; }
.simulator-chart-years { position: relative; height: 20px; margin: 5px 34px 0; }
.simulator-chart-years span { position: absolute; color: var(--muted); font-size: 10px; transform: translateX(-50%); }
.simulator-chart-help { margin: 10px 0 0; color: var(--muted); font-size: 9px; text-align: center; }

.simulator-result-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; margin-top: 12px; }
.simulator-table { margin-top: 16px; }
.simulator-table-row { display: grid; grid-template-columns: 1.1fr repeat(3,1fr); align-items: center; min-height: 46px; border-top: 1px solid var(--line); color: #c9d9d4; font-size: 11px; text-align: right; }
.simulator-table-row.head { min-height: 34px; border-top: 0; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.simulator-table-row > :first-child { text-align: left; }
.simulator-table-row strong { display: flex; align-items: center; gap: 8px; }
.simulator-sensitivity { margin-top: 16px; }
.simulator-sensitivity > div { display: grid; grid-template-columns: minmax(150px,.9fr) 1fr; align-items: center; gap: 14px; min-height: 50px; border-top: 1px solid var(--line); }
.simulator-sensitivity > div:first-child { border-top: 0; }
.simulator-sensitivity span strong, .simulator-sensitivity span small { display: block; }
.simulator-sensitivity span strong { color: #dce9e5; font-size: 11px; }
.simulator-sensitivity span small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.simulator-sensitivity > div > i { height: 7px; overflow: hidden; border-radius: 99px; background: #1a2c27; }
.simulator-sensitivity > div > i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #35d3a4, #55a9c8); }

.simulator-trace { display: grid; grid-template-columns: 230px 1fr; gap: 24px; margin-top: 12px; }
.simulator-trace > div:last-child { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.simulator-trace article { padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.015); }
.simulator-trace article > span { display: inline-block; margin-bottom: 9px; padding: 4px 6px; border-radius: 4px; color: #06110e; font-size: 8px; font-weight: 900; }
.trace-source { background: #35d3a4; }
.trace-user { background: #55a9c8; }
.trace-model { background: #d4a642; }
.simulator-trace article strong { display: block; color: #e3eeea; font-size: 11px; }
.simulator-trace article p { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

@media (max-width: 1200px) {
  .assumption-grid { grid-template-columns: repeat(3,1fr); }
  .shock-grid { grid-template-columns: repeat(2,1fr); }
  .simulator-kpis { grid-template-columns: repeat(2,1fr); }
  .simulator-trace { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .simulator-header { min-height: 240px; }
  .simulator-header::after { opacity: .35; }
  .simulator-badge { top: auto; right: 18px; bottom: 18px; }
  .simulator-setup-grid, .assumption-grid, .shock-grid, .shock-details, .simulator-kpis, .simulator-result-grid, .simulator-trace > div:last-child { grid-template-columns: 1fr; }
  .simulator-run-row, .simulator-chart-panel > header, .simulator-result-header { align-items: stretch; flex-direction: column; }
  .simulator-chart-controls { justify-items: start; }
  .simulator-run-row button { width: 100%; }
  .simulator-chart-canvas { height: 220px; }
  .simulator-legend { flex-wrap: wrap; }
  .simulator-table-row { grid-template-columns: 1fr repeat(3,.75fr); font-size: 9px; }
}

/* Corporate analysis energy-orb steps and refined command panels. */
#intelligenceView .workspace-controls {
  overflow: visible;
  border-color: rgba(53,211,164,.3) !important;
  background:
    linear-gradient(90deg, rgba(53,211,164,.035) 1px, transparent 1px),
    linear-gradient(rgba(53,211,164,.025) 1px, transparent 1px),
    linear-gradient(145deg, rgba(9,31,26,.98), rgba(5,19,16,.99)) !important;
  background-size: 52px 52px, 52px 52px, auto !important;
  box-shadow: 0 22px 54px rgba(0,0,0,.28), inset 0 1px rgba(109,255,215,.035), 0 0 32px rgba(53,211,164,.035) !important;
}

#intelligenceView .control-heading {
  position: relative;
  min-height: 52px;
}

#intelligenceView .control-heading::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 58px;
  height: 1px;
  background: linear-gradient(90deg, rgba(53,211,164,.28), rgba(53,211,164,.03), transparent);
  content: "";
}

#intelligenceView .control-heading .step-index {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: visible;
  border-color: rgba(69,245,194,.76);
  background: radial-gradient(circle at 42% 38%, rgba(75,255,204,.15), rgba(9,58,46,.7) 46%, rgba(3,19,15,.98) 74%);
  box-shadow: 0 0 0 1px rgba(74,255,202,.07), 0 0 11px rgba(39,239,182,.2), inset 0 0 10px rgba(53,211,164,.12);
  text-shadow: 0 0 5px rgba(111,255,215,.48);
  animation: nexusOrbBreath 3.8s ease-in-out infinite;
}

#intelligenceView .control-heading .step-index::before,
#intelligenceView .control-heading .step-index::after { content: none; }

#intelligenceView .picker-input,
#intelligenceView select,
#intelligenceView textarea,
#intelligenceView .source-toggle,
#intelligenceView .document-drop {
  border-color: rgba(91,154,136,.32);
  background-color: rgba(9,27,23,.82);
  box-shadow: inset 0 1px rgba(255,255,255,.018);
}

#intelligenceView .picker-input:focus-within,
#intelligenceView select:focus,
#intelligenceView textarea:focus {
  border-color: rgba(53,211,164,.78);
  box-shadow: 0 0 0 2px rgba(53,211,164,.1), 0 0 22px rgba(53,211,164,.09);
}

#intelligenceView .intelligence-sources-strip .workspace-action {
  border: 1px solid rgba(126,255,218,.38);
  box-shadow: 0 13px 34px rgba(35,210,167,.2), inset 0 1px rgba(255,255,255,.24), 0 0 24px rgba(53,211,164,.08);
}

@keyframes nexusOrbBreath {
  0%, 100% { box-shadow: 0 0 0 1px rgba(74,255,202,.06), 0 0 8px rgba(39,239,182,.15), inset 0 0 8px rgba(53,211,164,.09); }
  50% { box-shadow: 0 0 0 1px rgba(74,255,202,.09), 0 0 15px rgba(39,239,182,.27), inset 0 0 12px rgba(53,211,164,.15); }
}

@media (prefers-reduced-motion: reduce) {
  #intelligenceView .control-heading .step-index,
  #intelligenceView .control-heading .step-index::before,
  #intelligenceView .control-heading .step-index::after { animation: none; }
}

/* Benchmark competitive command deck. */
#benchmarkView > .module-header {
  position: relative;
  min-height: 190px;
  padding: 34px 36px;
  overflow: hidden;
  border: 1px solid rgba(53,211,164,.55);
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 78% 70%, rgba(24,175,136,.17), transparent 36%),
    linear-gradient(116deg, rgba(5,17,14,.99) 0%, rgba(7,28,23,.98) 58%, rgba(5,19,17,.99) 100%);
  box-shadow: inset 0 1px rgba(117,255,216,.04), 0 22px 55px rgba(0,0,0,.24);
  isolation: isolate;
}

#benchmarkView > .module-header::before {
  position: absolute;
  right: -3%;
  bottom: -54%;
  z-index: -2;
  width: 60%;
  height: 145%;
  background:
    repeating-radial-gradient(ellipse at center, transparent 0 13px, rgba(53,211,164,.075) 14px 15px),
    linear-gradient(90deg, transparent, rgba(53,211,164,.05));
  content: "";
  opacity: .82;
  transform: rotate(-7deg);
}

#benchmarkView > .module-header::after {
  position: absolute;
  top: 50%;
  right: 11%;
  z-index: -1;
  display: grid;
  place-items: center;
  width: 112px;
  height: 132px;
  border: 1px solid rgba(69,242,191,.62);
  border-radius: 13px;
  background: url('/assets/nexus-symbol.png') center / 82% auto no-repeat, linear-gradient(145deg, rgba(18,93,73,.72), rgba(4,26,21,.94));
  box-shadow: -105px 12px 0 -24px rgba(7,48,38,.92), 105px 12px 0 -24px rgba(7,48,38,.92), 0 0 32px rgba(53,211,164,.22), inset 0 0 28px rgba(53,211,164,.11);
  color: #42dfb1;
  content: "";
  transform: translateY(-50%);
}

#benchmarkView > .module-header > div { position: relative; z-index: 2; max-width: 860px; }
#benchmarkView > .module-header h1 { margin: 6px 0 28px; color: #eef8f4; font-size: clamp(34px,4vw,52px); letter-spacing: -.04em; }
#benchmarkView > .module-header h1 span { color: var(--primary); }
#benchmarkView > .module-header h1::after { display: block; width: 50px; height: 3px; margin-top: 14px; border-radius: 9px; background: var(--primary); box-shadow: 0 0 12px rgba(53,211,164,.35); content: ""; }
#benchmarkView > .module-header p:last-child { max-width: 800px; color: #91aaa2; font-size: 19px; line-height: 1.6; }

#benchmarkView .benchmark-controls {
  grid-template-columns: minmax(260px,1fr) 62px minmax(260px,1fr) 160px 142px;
  gap: 14px;
  margin-top: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(53,211,164,.26);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(9,27,23,.98), rgba(5,17,14,.98));
  box-shadow: 0 18px 42px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.02);
}

#benchmarkView .company-side-label,
#benchmarkView .benchmark-period { color: #52dcb4; font-size: 13px; font-weight: 850; letter-spacing: .025em; text-transform: uppercase; }
#benchmarkView .picker-input,
#benchmarkView .benchmark-period select { min-height: 54px; border-color: rgba(95,145,130,.32); background: rgba(12,27,23,.92); }
#benchmarkView .picker-input input,
#benchmarkView .benchmark-period select { color: #dce9e4; font-size: 15px; }
#benchmarkView .picker-input input::placeholder { color: #6f8780; opacity: 1; }
#benchmarkView .picker-input:focus-within,
#benchmarkView .benchmark-period select:focus { border-color: rgba(53,211,164,.74); box-shadow: 0 0 0 2px rgba(53,211,164,.09), 0 0 18px rgba(53,211,164,.07); }

#benchmarkView .versus-mark {
  width: 54px;
  height: 54px;
  border-color: rgba(226,166,60,.65);
  background: radial-gradient(circle, rgba(226,166,60,.12), rgba(20,19,9,.84));
  box-shadow: 0 0 18px rgba(226,166,60,.08), inset 0 0 12px rgba(226,166,60,.06);
}

#benchmarkView .benchmark-controls > .primary-button {
  height: 54px;
  border: 1px solid rgba(118,255,215,.34);
  border-radius: 9px;
  background: linear-gradient(135deg, #35d3a4, #21cdb0);
  box-shadow: 0 12px 27px rgba(35,210,167,.18);
  font-size: 17px;
  font-weight: 850;
}

#benchmarkView .benchmark-controls > .primary-button::after { margin-left: 9px; content: "→"; }

#benchmarkView .benchmark-output { margin-top: 14px; }
#benchmarkView .benchmark-empty {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(53,211,164,.25);
  border-radius: 15px;
  background:
    linear-gradient(rgba(53,211,164,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53,211,164,.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 40%, rgba(53,211,164,.09), transparent 30%),
    rgba(5,17,14,.82);
  background-size: 54px 54px, 54px 54px, auto, auto;
  box-shadow: inset 0 1px rgba(255,255,255,.02);
}

#benchmarkView .benchmark-empty::before {
  position: absolute;
  top: 72px;
  left: 50%;
  width: 290px;
  height: 180px;
  border: 1px solid rgba(53,211,164,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(53,211,164,.025), 0 0 0 44px rgba(53,211,164,.018);
  content: "";
  transform: translateX(-50%);
}

.benchmark-empty-visual { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 25px; }
.benchmark-empty-visual article { display: grid; justify-items: center; width: 106px; height: 150px; padding: 16px 14px; border: 1px solid rgba(53,211,164,.55); border-radius: 9px; background: linear-gradient(160deg, rgba(17,82,65,.72), rgba(5,27,22,.96)); box-shadow: 0 15px 34px rgba(0,0,0,.25), inset 0 0 22px rgba(53,211,164,.08); }
.benchmark-empty-visual article b { color: var(--primary); font-size: 24px; }
.benchmark-empty-visual article span { display: flex; align-items: end; gap: 5px; height: 48px; }
.benchmark-empty-visual article i { display: block; width: 12px; border-radius: 3px 3px 0 0; background: linear-gradient(#52e7bc,#159675); box-shadow: 0 0 8px rgba(53,211,164,.18); }
.benchmark-empty-visual article i:nth-child(1) { height: 20px; }
.benchmark-empty-visual article i:nth-child(2) { height: 33px; }
.benchmark-empty-visual article i:nth-child(3) { height: 45px; }
.benchmark-empty-visual article em { width: 62px; height: 6px; border-radius: 99px; background: rgba(53,211,164,.42); }
.benchmark-empty-visual article em:last-child { width: 43px; opacity: .62; }
.benchmark-empty-visual > strong { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(53,211,164,.48); border-radius: 50%; background: #0a2921; color: var(--primary); font-size: 17px; box-shadow: 0 0 23px rgba(53,211,164,.15); }
#benchmarkView .benchmark-empty h2 { position: relative; z-index: 1; margin-bottom: 11px; color: #eef8f4; font-size: 32px; }
#benchmarkView .benchmark-empty h2 span { color: var(--primary); }
#benchmarkView .benchmark-empty > p { position: relative; z-index: 1; max-width: 680px; color: #91aaa2; font-size: 16px; line-height: 1.65; }

#benchmarkView .duel-company small,
#benchmarkView .duel-score small,
#benchmarkView .section-heading .eyebrow,
#benchmarkView .competitive-insights .eyebrow { color: #52dcb4; font-size: 13px; }
#benchmarkView .duel-company h2 { color: #eef8f4; font-size: 22px; }
#benchmarkView .duel-company p,
#benchmarkView .duel-score p { color: #91aaa2; font-size: 14px; }
#benchmarkView .section-heading h2,
#benchmarkView .competitive-insights h2 { color: #eef8f4; font-size: 25px; }
#benchmarkView .strategy-intro { color: #91aaa2; font-size: 15px; line-height: 1.65; }
#benchmarkView .benchmark-filters button { font-size: 13px; }

@media (max-width: 1200px) {
  #benchmarkView > .module-header::after { right: 7%; opacity: .55; }
  #benchmarkView .benchmark-controls { grid-template-columns: minmax(200px,1fr) 52px minmax(200px,1fr); }
  #benchmarkView .benchmark-period { grid-column: 1 / 3; }
  #benchmarkView .benchmark-controls > .primary-button { grid-column: 3; }
}

@media (max-width: 760px) {
  #benchmarkView > .module-header { min-height: 250px; padding: 26px 22px; }
  #benchmarkView > .module-header::after { right: 10px; bottom: -20px; top: auto; width: 90px; height: 100px; opacity: .35; transform: none; }
  #benchmarkView > .module-header h1 { font-size: 34px; }
  #benchmarkView .benchmark-controls { grid-template-columns: 1fr; padding: 16px; }
  #benchmarkView .benchmark-period,
  #benchmarkView .benchmark-controls > .primary-button { grid-column: auto; }
  #benchmarkView .versus-mark { width: 100%; height: 36px; border-radius: 8px; }
  #benchmarkView .benchmark-empty { min-height: 430px; padding-inline: 18px; }
  .benchmark-empty-visual { gap: 10px; transform: scale(.85); }
  #benchmarkView .benchmark-empty h2 { font-size: 22px; }
}

/* Subtle floating comparison cards. */
.benchmark-empty-visual article:first-child {
  animation: nexusBenchmarkFloatA 5.8s ease-in-out infinite;
}

.benchmark-empty-visual article:last-child {
  animation: nexusBenchmarkFloatB 5.8s ease-in-out infinite;
}

.benchmark-empty-visual > strong {
  animation: nexusBenchmarkVsBreath 4.4s ease-in-out infinite;
}

@keyframes nexusBenchmarkFloatA {
  0%, 100% { transform: translateY(0) rotate(-.15deg); }
  50% { transform: translateY(-7px) rotate(.2deg); }
}

@keyframes nexusBenchmarkFloatB {
  0%, 100% { transform: translateY(-6px) rotate(.15deg); }
  50% { transform: translateY(1px) rotate(-.2deg); }
}

@keyframes nexusBenchmarkVsBreath {
  0%, 100% { box-shadow: 0 0 17px rgba(53,211,164,.1); transform: scale(1); }
  50% { box-shadow: 0 0 25px rgba(53,211,164,.2); transform: scale(1.025); }
}

@media (prefers-reduced-motion: reduce) {
  .benchmark-empty-visual article,
  .benchmark-empty-visual > strong { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell,
  .sidebar,
  .main,
  .nav-item,
  .sidebar-collapse,
  .sidebar-reveal { transition-duration: .01ms !important; }
  .module-view:not([hidden]) { animation: none; }
}

/* Corporate banner accommodates the expanded positioning statement. */
@media (min-width: 1450px) {
  #intelligenceView > .module-header > div { max-width: 810px; }
  #intelligenceView > .module-header h1 { font-size: clamp(36px, 3.25vw, 48px); white-space: nowrap; }
  #intelligenceView > .module-header > div > p:last-child { max-width: 790px; }
}

#intelligenceView > .module-header > div > p:last-child {
  font-size: 17px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  #intelligenceView > .module-header > div > p:last-child { font-size: 15px; }
}

/* Simulation Empresarial: predictive command banner and unified legibility. */
#simulatorView > .simulator-header {
  position: relative;
  display: block;
  min-height: 240px;
  padding: 34px 36px;
  overflow: hidden;
  border-color: rgba(53,211,164,.32);
  background:
    linear-gradient(rgba(53,211,164,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53,211,164,.035) 1px, transparent 1px),
    radial-gradient(circle at 68% 48%, rgba(26,207,158,.12), transparent 29%),
    linear-gradient(115deg, #06110e 0%, #071a17 55%, #061513 100%);
  background-size: 42px 42px, 42px 42px, auto, auto;
  isolation: isolate;
}

#simulatorView > .simulator-header::after { display: none; }
#simulatorView .simulator-banner-copy { position: relative; z-index: 3; width: 58%; max-width: 820px; }
#simulatorView > .simulator-header h1 {
  margin: 6px 0 28px;
  color: #eef8f4;
  font-size: clamp(34px,4vw,52px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
#simulatorView > .simulator-header h1::after {
  display: block;
  width: 50px;
  height: 3px;
  margin-top: 14px;
  border-radius: 9px;
  background: var(--primary);
  box-shadow: 0 0 14px rgba(53,211,164,.4);
  content: "";
}
#simulatorView > .simulator-header .simulator-banner-copy > p:last-child {
  max-width: 800px;
  margin: 0;
  color: #91aaa2;
  font-size: 19px;
  line-height: 1.6;
}

#simulatorView > .simulator-header > .simulator-banner-visual { position: absolute; inset: 0 0 0 auto; z-index: 1; width: 68%; max-width: none; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.18) 12%, #000 34%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.18) 12%, #000 34%, #000 100%); }
.simulator-banner-visual::before { display: none; }
.simulator-banner-visual svg { position: absolute; right: 0; bottom: -4px; width: 78%; height: 94%; overflow: visible; }
.simulator-banner-visual .sim-grid path { fill: none; stroke: rgba(53,211,164,.075); stroke-width: 1; }
.simulator-banner-visual .sim-line { fill: none; stroke-width: 2.5; filter: drop-shadow(0 0 5px currentColor); }
.simulator-banner-visual .sim-line.optimistic { color: #22e2b3; stroke: currentColor; }
.simulator-banner-visual .sim-line.base { color: #d8b642; stroke: currentColor; }
.simulator-banner-visual .sim-line.risk { color: #f05c63; stroke: currentColor; }
.simulator-banner-visual .sim-projection { fill: none; stroke: #22e2b3; stroke-width: 2; stroke-dasharray: 8 7; }
.simulator-banner-visual .sim-projection-node { fill: #2ce5ba; filter: drop-shadow(0 0 8px #22e2b3); }
.simulator-banner-visual .sim-warning path:first-child { fill: rgba(240,82,90,.13); stroke: #f05c63; stroke-width: 3; filter: drop-shadow(0 0 8px rgba(240,82,90,.45)); }
.simulator-banner-visual .sim-warning path:last-child { fill: none; stroke: #ff777d; stroke-width: 4; stroke-linecap: round; }
.simulator-scenario-key { position: absolute; top: 52%; right: 0; display: grid; gap: 14px; width: 230px; padding: 18px 20px; border: 1px solid rgba(53,211,164,.36); border-radius: 13px; background: rgba(6,29,24,.82); box-shadow: 0 16px 35px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.025); transform: translateY(-50%); backdrop-filter: blur(8px); }
.simulator-scenario-key span { display: grid; grid-template-columns: minmax(0,1fr) 86px; align-items: center; gap: 12px; }
.simulator-scenario-key strong { color: #dce9e4; font-size: 12px; white-space: nowrap; }
.simulator-scenario-key i { height: 9px; border-radius: 99px; background: rgba(53,211,164,.13); box-shadow: inset 0 0 8px rgba(0,0,0,.28); }
.simulator-scenario-key i::after { display: block; width: 56%; height: 100%; border-radius: inherit; content: ""; }
.simulator-scenario-key i.optimistic::after { background: #22e2b3; box-shadow: 0 0 10px rgba(34,226,179,.6); }
.simulator-scenario-key i.base::after { background: #9bbdb3; box-shadow: 0 0 10px rgba(155,189,179,.42); }
.simulator-scenario-key i.risk::after { background: #f05c63; box-shadow: 0 0 10px rgba(240,92,99,.55); }

#simulatorView .simulator-section-title { gap: 14px; margin-bottom: 20px; }
#simulatorView .simulator-section-title > span { width: 44px; height: 44px; flex-basis: 44px; border-color: rgba(69,245,194,.76); color: #52dcb4; font-size: 15px; box-shadow: 0 0 11px rgba(39,239,182,.18), inset 0 0 10px rgba(53,211,164,.1); }
#simulatorView .simulator-section-title .eyebrow { color: #52dcb4; font-size: 12px; }
#simulatorView .simulator-section-title h2 { color: #eef8f4; font-size: 21px; }
#simulatorView .field-group > label,
#simulatorView .shock-details > label { color: #52dcb4; font-size: 13px; }
#simulatorView .picker-input input,
#simulatorView select,
#simulatorView input[type="number"] { color: #dce9e4; font-size: 15px; }
#simulatorView .picker-input input::placeholder { color: #6f8780; opacity: 1; }
#simulatorView .assumption-grid > label > span { color: #dce9e4; font-size: 14px; }
#simulatorView .assumption-grid output { color: #52dcb4; font-size: 14px; }
#simulatorView .assumption-grid small { color: #78958b; font-size: 11px; }
#simulatorView .shock-card strong { color: #dce9e4; font-size: 14px; }
#simulatorView .simulator-run-row p { color: #91aaa2; font-size: 14px; line-height: 1.6; }
#simulatorView .simulator-run-row p strong { color: #dff1ea; }
#simulatorView .simulator-run-row button { font-size: 17px; }
#simulatorView > .simulator-empty h2 { color: #eef8f4; font-size: 32px; }
#simulatorView > .simulator-empty p { max-width: 680px; color: #91aaa2; font-size: 16px; line-height: 1.65; }
#simulatorView .simulator-result-header h2 { color: #eef8f4; font-size: 25px; }
#simulatorView .simulator-result-header p,
#simulatorView .simulator-chart-help { color: #91aaa2; font-size: 14px; }

@media (min-width: 1301px) {
  #simulatorView { grid-template-columns: minmax(410px,.68fr) minmax(0,1.62fr); }
  #simulatorView > .simulator-header { min-height: 240px; padding: 34px 36px; }
  #simulatorView > .simulator-header h1 { margin: 6px 0 28px; font-size: clamp(34px,4vw,52px); }
  #simulatorView > .simulator-header .simulator-banner-copy > p:last-child { font-size: 19px; }
  #simulatorView .simulator-section-title > span { width: 44px; height: 44px; flex-basis: 44px; font-size: 15px; }
  #simulatorView .simulator-section-title h2 { font-size: 21px; }
}

@media (max-width: 1180px) {
  #simulatorView .simulator-banner-copy { width: 68%; }
  #simulatorView > .simulator-header > .simulator-banner-visual { width: 60%; opacity: .58; }
  .simulator-scenario-key { display: none; }
}

@media (max-width: 760px) {
  #simulatorView > .simulator-header { min-height: 0; padding: 26px 22px; }
  #simulatorView .simulator-banner-copy { width: 100%; }
  #simulatorView > .simulator-header h1 { font-size: 34px; }
  #simulatorView > .simulator-header .simulator-banner-copy > p:last-child { font-size: 15px; }
  #simulatorView > .simulator-header > .simulator-banner-visual { display: none; }
}

/* Competitive banner: responsive market-comparison visualization. */
#benchmarkView > .module-header::after { display: none; }
#benchmarkView > .module-header > div:first-child { width: 58%; max-width: 820px; }
#benchmarkView > .module-header > .benchmark-banner-visual {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 1;
  width: 52%;
  max-width: none;
  pointer-events: none;
}
.benchmark-banner-visual::before { position: absolute; inset: 0 auto 0 -12%; z-index: 2; width: 31%; background: linear-gradient(90deg, rgba(5,17,14,.98), transparent); content: ""; }
.benchmark-banner-visual svg { display: block; width: 100%; height: 100%; overflow: visible; }
.benchmark-globe ellipse,
.benchmark-globe path { fill: none; stroke: rgba(46,225,180,.13); stroke-width: 1; }
.benchmark-globe { filter: drop-shadow(0 0 18px rgba(30,204,158,.11)); }
.benchmark-orbit { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.benchmark-orbit.orbit-a { stroke: #26dff2; filter: drop-shadow(0 0 5px rgba(38,223,242,.55)); }
.benchmark-orbit.orbit-b { stroke: #e4a53c; filter: drop-shadow(0 0 5px rgba(228,165,60,.5)); }
.benchmark-orbit.orbit-mid { stroke: rgba(57,222,180,.65); stroke-dasharray: 7 6; }
.benchmark-orbit-points circle { fill: #31e5be; }
.benchmark-company ellipse { stroke-width: 1.4; }
.benchmark-company > path:first-of-type { stroke-width: 1.4; }
.benchmark-company .tower-windows { stroke: none; }
.benchmark-company text { font-size: 16px; font-weight: 900; text-anchor: middle; }
.benchmark-company.company-a ellipse { fill: rgba(6,55,82,.9); stroke: #1b9bdf; filter: drop-shadow(0 0 8px rgba(24,154,223,.45)); }
.benchmark-company.company-a > path:first-of-type { fill: url('#benchmarkTowerA'); stroke: #32c8ff; }
.benchmark-company.company-a .tower-windows { fill: rgba(157,235,255,.65); }
.benchmark-company.company-a text { fill: #5fe0ff; }
.benchmark-company.company-b ellipse { fill: rgba(75,37,9,.92); stroke: #d87627; filter: drop-shadow(0 0 8px rgba(216,118,39,.45)); }
.benchmark-company.company-b > path:first-of-type { fill: url('#benchmarkTowerB'); stroke: #ffb343; }
.benchmark-company.company-b .tower-windows { fill: rgba(255,225,151,.68); }
.benchmark-company.company-b text { fill: #ffc051; }
.benchmark-vs-node circle { fill: rgba(5,38,32,.96); stroke: #27dfb2; stroke-width: 1.6; }
.benchmark-vs-node text { fill: #45e8bd; font-size: 22px; font-weight: 900; text-anchor: middle; }

@media (max-width: 1180px) {
  #benchmarkView > .module-header > div:first-child { width: 68%; }
  #benchmarkView > .module-header > .benchmark-banner-visual { width: 48%; opacity: .58; }
}

@media (max-width: 760px) {
  #benchmarkView > .module-header > div:first-child { width: 100%; }
  #benchmarkView > .module-header > .benchmark-banner-visual { display: none; }
}

/* Restore the previous comparative banner artwork. */
#benchmarkView > .module-header::after { display: grid; }
#benchmarkView > .module-header > div:first-child { width: auto; max-width: 860px; }
#benchmarkView > .module-header > .benchmark-banner-visual { display: none !important; }

/* Approved comparative banner artwork. */
#benchmarkView > .module-header::after {
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  display: block;
  width: 68%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: url('/assets/nexus-comparative-banner-v3.png') center / cover no-repeat;
  box-shadow: none;
  content: "";
  opacity: .96;
  transform: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.18) 12%, #000 34%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.18) 12%, #000 34%, #000 100%);
}

@media (max-width: 1180px) {
  #benchmarkView > .module-header::after { width: 60%; opacity: .58; }
}

@media (max-width: 760px) {
  #benchmarkView > .module-header::after { display: none; }
}
.nav-item.plan-locked{opacity:.48;cursor:not-allowed}.nav-item.plan-locked:after{margin-left:auto;color:#7e978f;font-size:11px;content:"PRO"}.login-back-link{display:inline-block;margin-bottom:18px;color:#35d3a4;text-decoration:none;font-size:13px;font-weight:750}.login-back-link:hover{text-decoration:underline}
