@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/Inter-opsz-wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("./assets/fonts/Figtree-wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --auto-base-50: #f9fafb;
  --auto-base-100: #f3f4f6;
  --auto-base-200: #e5e7eb;
  --auto-base-300: #d1d5db;
  --auto-base-500: #6b7280;
  --auto-base-600: #4b5563;
  --auto-base-700: #374151;
  --auto-base-800: #1f2a37;
  --auto-base-900: #111928;
  --auto-primary-lighter: #e1effe;
  --auto-primary-light: #3f83f8;
  --auto-primary: #1a56db;
  --auto-primary-dark: #1e429f;
  --auto-primary-darker: #233876;
  --auto-success: #057a55;
  --auto-warning: #faca15;
  --auto-danger: #c81e1e;
  --auto-cyan: #6bdee7;
  --auto-petrol: #53a0b5;
  --auto-navy: #020617;
  --auto-deep-teal: #005f59;
  --portal-topbar: 66px;
  --portal-sidebar: 234px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--auto-base-50);
  color: var(--auto-base-900);
  font-family: "Inter", system-ui, sans-serif;
}

body::before {
  display: none;
}

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  color: var(--auto-base-900);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.2;
}

.auth-shell {
  min-height: 100vh;
  padding: 32px 20px;
  background: var(--auto-base-50);
}

.auth-card {
  width: min(880px, 100%);
  padding: 28px;
  border: 1px solid var(--auto-base-200);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: -8px 0 28px;
}

.auth-brand img {
  width: 142px;
  height: 38px;
  object-fit: contain;
}

.auth-brand span {
  position: relative;
  color: var(--auto-base-900);
  font-size: 15px;
  font-weight: 650;
}

.auth-brand span::before {
  position: absolute;
  top: 50%;
  left: -24px;
  width: 1px;
  height: 30px;
  background: var(--auto-base-300);
  content: "";
  transform: translateY(-50%);
}

.auth-card > .eyebrow {
  margin-bottom: 6px;
  color: var(--auto-primary-dark);
  font-size: 11px;
}

.auth-card > h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -.025em;
}

.auth-card > .lede {
  max-width: 72ch;
  margin: 10px 0 0;
  color: var(--auto-base-600);
  font-size: 14px;
  line-height: 1.55;
}

.auth-grid {
  gap: 16px;
  margin-top: 24px;
}

.auth-panel {
  padding: 20px;
  border: 1px solid var(--auto-base-200);
  border-radius: 7px;
  background: #fff;
}

.auth-panel:first-child {
  background: var(--auto-base-50);
}

.auth-panel h2 {
  font-size: 18px;
}

.auth-panel p {
  margin-top: 8px;
  color: var(--auto-base-600);
  font-size: 13px;
  line-height: 1.5;
}

.auth-form {
  gap: 8px;
  margin-top: 16px;
}

.auth-form label {
  margin: 4px 0 0;
  color: var(--auto-base-700);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.auth-form input {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--auto-base-300);
  border-radius: 6px;
  background: #fff;
  color: var(--auto-base-900);
  box-shadow: none;
}

.auth-form input:focus {
  border-color: var(--auto-primary);
  outline: 3px solid var(--auto-primary-lighter);
}

.auth-button {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 13px;
}

.auth-button-primary,
.auth-button-secondary {
  background: var(--auto-primary);
  color: #fff;
}

.auth-button-primary:hover,
.auth-button-primary:focus-visible,
.auth-button-secondary:hover,
.auth-button-secondary:focus-visible {
  background: var(--auto-primary-dark);
}

.auth-feedback.has-message {
  border-color: var(--auto-base-200);
  border-radius: 6px;
  background: var(--auto-base-50);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
}

.app-shell {
  min-height: 100vh;
}

.portal-topbar {
  position: sticky;
  z-index: 80;
  top: 0;
  display: flex;
  height: var(--portal-topbar);
  align-items: center;
  justify-content: space-between;
  padding: 0 28px 0 24px;
  border-bottom: 1px solid var(--auto-base-200);
  background: #fff;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  color: var(--auto-base-900);
  text-decoration: none;
}

.portal-brand img {
  width: 162px;
  height: 42px;
  object-fit: contain;
}

.portal-brand span {
  position: relative;
  font-size: 17px;
  font-weight: 650;
}

.portal-brand span::before {
  position: absolute;
  top: 50%;
  left: -28px;
  width: 1px;
  height: 34px;
  background: var(--auto-base-300);
  content: "";
  transform: translateY(-50%);
}

.portal-topbar .session-bar {
  display: flex;
  width: auto;
  max-width: none;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.portal-topbar .session-copy-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.portal-topbar .session-copy-block strong {
  font-size: 13px;
  line-height: 1.3;
}

.portal-topbar .session-copy {
  max-width: 280px;
  margin: 0;
  overflow: hidden;
  color: var(--auto-base-500);
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-topbar .session-actions {
  gap: 8px;
}

.session-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--auto-primary);
  border-radius: 999px;
  color: var(--auto-primary);
}

.portal-topbar .session-badge {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--auto-base-600);
  font-size: 12px;
  font-weight: 500;
}

.portal-topbar .sign-out-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--auto-base-200);
  border-radius: 6px;
  background: #fff;
  color: var(--auto-base-700);
  font-size: 12px;
}

.portal-frame {
  display: grid;
  min-height: calc(100vh - var(--portal-topbar));
  grid-template-columns: var(--portal-sidebar) minmax(0, 1fr);
}

.portal-sidebar {
  position: sticky;
  top: var(--portal-topbar);
  display: flex;
  height: calc(100vh - var(--portal-topbar));
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 14px 20px;
  border-right: 1px solid var(--auto-base-200);
  background: #fff;
}

.portal-sidebar nav {
  display: grid;
  gap: 8px;
}

.portal-nav-item {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--auto-base-700);
  cursor: pointer;
  font-size: 15px;
  text-align: left;
}

.portal-nav-item:hover,
.portal-nav-item:focus-visible {
  background: var(--auto-base-100);
  color: var(--auto-primary);
  outline: none;
}

.portal-nav-item.is-active {
  background: var(--auto-primary-lighter);
  color: var(--auto-primary);
  font-weight: 650;
}

.audience-control {
  display: grid;
  gap: 7px;
  padding: 14px;
  border-top: 1px solid var(--auto-base-200);
}

.audience-control span {
  color: var(--auto-base-500);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.audience-control select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--auto-base-300);
  border-radius: 6px;
  background: #fff;
  color: var(--auto-base-800);
  font-size: 12px;
}

.portal-main {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 34px 42px 64px;
}

.portal-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  scroll-margin-top: 90px;
}

.portal-page-head h1 {
  margin: 0;
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 720;
  letter-spacing: -.035em;
}

.portal-kicker {
  margin: 0 0 6px;
  color: var(--auto-deep-teal);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.portal-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auto-button,
.icon-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 650;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.auto-button {
  padding: 0 16px;
  border: 1px solid transparent;
  font-size: 14px;
}

.auto-button.filled {
  background: var(--auto-primary);
  color: #fff;
}

.auto-button.filled:hover,
.auto-button.filled:focus-visible {
  background: var(--auto-primary-dark);
  outline: none;
}

.auto-button.text {
  background: transparent;
  color: var(--auto-primary);
}

.auto-button.text:hover,
.auto-button.text:focus-visible {
  background: var(--auto-primary-lighter);
  outline: none;
}

.auto-button.outlined {
  border-color: var(--auto-base-300);
  background: #fff;
  color: var(--auto-base-800);
}

.auto-button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.icon-button {
  width: 42px;
  padding: 0;
  border: 1px solid var(--auto-base-300);
  background: #fff;
  color: var(--auto-base-800);
}

.export-control {
  position: relative;
}

.export-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 8px);
  right: 0;
  width: 282px;
  padding: 8px;
  border: 1px solid var(--auto-base-200);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 25, 40, .12);
}

.export-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--auto-base-800);
  cursor: pointer;
  text-align: left;
}

.export-menu button:hover,
.export-menu button:focus-visible {
  background: var(--auto-base-100);
  outline: none;
}

.export-menu button > span:last-child {
  display: grid;
  gap: 2px;
}

.export-menu small {
  color: var(--auto-base-500);
  font-size: 11px;
}

.portal-filters,
body.partner-report-mode .portal-filters {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: none;
  margin: 18px 0 22px;
  padding: 0;
  border: 0;
  background: transparent;
}

.control-field.compact {
  position: relative;
  display: flex;
  height: 42px;
  min-width: 198px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--auto-base-300);
  border-radius: 6px;
  background: #fff;
}

.control-field.compact .material-symbols-rounded,
.period-details summary .material-symbols-rounded {
  color: var(--auto-base-600);
}

.control-field.compact select {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--auto-base-800);
  font-weight: 550;
}

.period-details {
  position: relative;
}

.period-details summary {
  display: flex;
  height: 42px;
  min-width: 198px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid var(--auto-base-300);
  border-radius: 6px;
  background: #fff;
  color: var(--auto-base-800);
  cursor: pointer;
  font-size: 14px;
  font-weight: 550;
  list-style: none;
}

.period-details summary::-webkit-details-marker {
  display: none;
}

.period-details summary .caret {
  margin-left: auto;
}

.period-details[open] summary .caret {
  transform: rotate(180deg);
}

.period-popover {
  position: absolute;
  z-index: 110;
  top: calc(100% + 8px);
  left: 0;
  width: 360px;
  padding: 16px;
  border: 1px solid var(--auto-base-200);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 25, 40, .12);
}

.period-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.period-fields label {
  display: grid;
  gap: 5px;
  color: var(--auto-base-600);
  font-size: 11px;
  font-weight: 650;
}

.period-fields input {
  width: 100%;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--auto-base-300);
  border-radius: 6px;
  color: var(--auto-base-800);
}

.period-popover .preset-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.period-popover .preset-group button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--auto-base-200);
  border-radius: 6px;
  background: var(--auto-base-50);
  color: var(--auto-base-700);
  cursor: pointer;
  font-size: 12px;
}

.period-popover .preset-group button.is-active {
  border-color: var(--auto-primary);
  background: var(--auto-primary-lighter);
  color: var(--auto-primary-dark);
}

.portal-filters .controls-status {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.portal-filters .status-chip {
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid #bcf0da;
  border-radius: 6px;
  background: #f3faf7;
  color: var(--auto-success);
  font-size: 11px;
  font-weight: 650;
}

.portal-filters .status-copy {
  max-width: 360px;
  margin: 0;
  overflow: hidden;
  color: var(--auto-base-500);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-report-document {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--auto-base-200);
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}

body:not(.partner-report-mode) .report-summary {
  display: flex !important;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 17px 20px;
  border: 1px solid #bfdbfe;
  border-radius: 6px 6px 0 0;
  background: #f8fbff;
}

.portal-insight-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--auto-primary-lighter);
  color: var(--auto-primary);
}

.portal-insight-copy {
  display: grid;
  gap: 3px;
}

.portal-insight-copy span {
  color: var(--auto-base-600);
  font-size: 12px;
  font-weight: 650;
}

.portal-insight-copy strong {
  color: var(--auto-base-900);
  font-size: 17px;
  font-weight: 620;
}

.portal-insight-copy strong em {
  color: var(--auto-primary);
  font-style: normal;
}

body:not(.partner-report-mode) #kpi-grid {
  display: grid !important;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--auto-base-200);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body:not(.partner-report-mode) .portal-kpi {
  min-height: 116px;
  padding: 20px 24px 17px;
}

body:not(.partner-report-mode) .portal-kpi + .portal-kpi {
  border-left: 1px solid var(--auto-base-200);
}

.portal-kpi-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--auto-base-700);
  font-size: 12px;
  font-weight: 560;
}

.portal-kpi-label .material-symbols-rounded {
  color: var(--auto-base-400);
  font-size: 16px;
}

.portal-kpi-value {
  display: block;
  margin-top: 9px;
  color: var(--auto-base-900);
  font-size: 29px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
}

.portal-kpi-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--auto-base-500);
  font-size: 11px;
}

.portal-kpi-detail .delta {
  font-weight: 650;
}

.portal-kpi-detail .delta.up {
  color: var(--auto-success);
}

.portal-kpi-detail .delta.dn {
  color: var(--auto-danger);
}

.portal-primary-grid,
body:not(.partner-report-mode) #partner-layout {
  display: grid;
  min-height: 432px;
  margin: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
}

.portal-primary-grid > .card {
  margin: 0;
  padding: 20px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.portal-primary-grid > .card + .card {
  border-left: 1px solid var(--auto-base-200);
}

.portal-primary-grid .section-head {
  min-height: 34px;
  align-items: center;
  margin-bottom: 12px;
  padding-top: 0;
  border-top: 0;
}

.portal-primary-grid .section-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.portal-primary-grid .section-head .subtle {
  margin: 0;
  color: var(--auto-base-500);
  font-size: 11px;
}

.portal-primary-grid .chart-wrap {
  min-height: 300px;
}

.portal-primary-grid .legend {
  margin-top: 8px;
  color: var(--auto-base-600);
  font-size: 11px;
}

.action-card .partner-overview {
  display: grid;
  gap: 0;
}

.action-goal,
.action-decision,
.action-row {
  border: 1px solid var(--auto-base-200);
  background: #fff;
}

.action-goal {
  display: grid;
  min-height: 92px;
  align-items: center;
  padding: 14px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
}

.action-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: #e7f9fb;
  color: #0f8f94;
}

.action-goal-copy {
  display: grid;
  gap: 4px;
}

.action-goal-copy span,
.action-decision-copy span {
  color: var(--auto-base-500);
  font-size: 11px;
}

.action-goal-copy strong,
.action-decision-copy strong {
  color: var(--auto-base-900);
  font-size: 13px;
  line-height: 1.4;
}

.action-progress {
  display: grid;
  min-width: 66px;
  gap: 3px;
  text-align: right;
}

.action-progress strong {
  color: var(--auto-deep-teal);
  font-size: 15px;
}

.action-progress small {
  color: var(--auto-base-500);
  font-size: 10px;
}

.action-decision {
  display: grid;
  min-height: 72px;
  align-items: center;
  margin-top: -1px;
  padding: 12px 14px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
}

.action-decision .action-icon {
  width: 34px;
  height: 34px;
  background: #fff9db;
  color: #b7791f;
}

.action-decision-copy {
  display: grid;
  gap: 3px;
}

.action-list {
  display: grid;
  margin-top: 12px;
}

.action-row {
  display: grid;
  width: 100%;
  min-height: 70px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 0;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.action-row + .action-row {
  margin-top: -1px;
}

.action-row:hover,
.action-row:focus-visible {
  position: relative;
  z-index: 1;
  border-color: #bfdbfe;
  outline: none;
}

.action-row.is-priority {
  border-color: #bfdbfe;
  background: #f8fbff;
  box-shadow: inset 3px 0 0 var(--auto-primary);
}

.action-row.is-complete {
  opacity: .62;
}

.action-row.is-complete .action-row-copy strong {
  text-decoration: line-through;
}

.action-row .action-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--auto-base-200);
  background: #fff;
  color: var(--auto-primary);
  font-size: 17px;
}

.action-row-copy {
  display: grid;
  gap: 2px;
}

.action-row-copy strong {
  color: var(--auto-base-900);
  font-size: 12px;
  line-height: 1.35;
}

.action-row-copy small,
.action-row-meta small {
  color: var(--auto-base-500);
  font-size: 10px;
  line-height: 1.35;
}

.action-row-meta {
  display: grid;
  min-width: 108px;
  gap: 3px;
  text-align: right;
}

.action-row-meta strong {
  color: var(--auto-base-700);
  font-size: 10px;
}

.action-row.is-priority .action-row-meta strong {
  color: var(--auto-danger);
}

.portfolio-table {
  width: 100%;
  border-collapse: collapse;
}

.portfolio-table th,
.portfolio-table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--auto-base-200);
  color: var(--auto-base-600);
  font-size: 11px;
  text-align: left;
}

.portfolio-table th {
  color: var(--auto-base-500);
  font-weight: 650;
}

.portfolio-table td:first-child {
  color: var(--auto-base-900);
  font-weight: 650;
}

.portal-detail-section {
  margin-top: 34px;
  scroll-margin-top: 90px;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.section-heading-row h2 {
  margin: 0;
  font-size: 21px;
}

.section-heading-row > p {
  margin: 0;
  color: var(--auto-base-500);
  font-size: 12px;
}

body:not(.partner-report-mode) #mix-layout {
  display: grid;
  gap: 14px;
  margin: 0 0 14px;
  grid-template-columns: 1fr 1fr;
}

body:not(.partner-report-mode) #mix-layout .card,
body:not(.partner-report-mode) #insight-table-card {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--auto-base-200);
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}

body:not(.partner-report-mode) #mix-layout h3,
body:not(.partner-report-mode) #insight-table-card h3 {
  margin: 0;
  font-size: 15px;
}

body:not(.partner-report-mode) .bar-track {
  background: var(--auto-base-100);
}

body:not(.partner-report-mode) .bar-fill {
  background: var(--auto-primary);
}

body:not(.partner-report-mode) .table-mode-toggle,
body:not(.partner-report-mode) .view-mode-toggle {
  padding: 3px;
  border-radius: 6px;
  background: var(--auto-base-100);
}

body:not(.partner-report-mode) .table-mode-toggle button {
  min-height: 30px;
  border-radius: 5px;
}

body:not(.partner-report-mode) .table-mode-toggle button.is-active,
body:not(.partner-report-mode) .view-mode-toggle button.is-active {
  border-color: var(--auto-primary);
  background: var(--auto-primary);
  color: #fff;
  box-shadow: none;
}

body:not(.partner-report-mode) .report-footer {
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--auto-base-200);
}

.portal-toast {
  position: fixed;
  z-index: 250;
  right: 24px;
  bottom: 24px;
  max-width: 380px;
  padding: 12px 16px;
  border: 1px solid var(--auto-base-200);
  border-radius: 7px;
  background: var(--auto-base-900);
  color: #fff;
  box-shadow: 0 14px 36px rgba(17, 25, 40, .2);
  font-size: 13px;
}

.portal-toast.is-error {
  border-color: #f8b4b4;
  background: #7f1d1d;
}

.meeting-overlay {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  background: var(--auto-base-100);
  grid-template-rows: 64px minmax(0, 1fr) 56px;
}

.meeting-toolbar,
.meeting-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  background: #fff;
}

.meeting-toolbar {
  border-bottom: 1px solid var(--auto-base-200);
}

.meeting-toolbar > div:first-child {
  display: grid;
  gap: 2px;
}

.meeting-eyebrow {
  color: var(--auto-deep-teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.meeting-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meeting-stage {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 22px;
  overflow: auto;
}

.meeting-deck {
  width: 100%;
}

.meeting-slide {
  position: relative;
  display: none;
  width: min(1180px, calc((100vh - 160px) * 1.7778));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--auto-base-200);
  background: #fff;
  box-shadow: 0 18px 48px rgba(17, 25, 40, .12);
}

.meeting-slide.is-active {
  display: grid;
}

.slide-inner {
  display: grid;
  height: 100%;
  padding: 6.2% 7.2% 5.4%;
}

.slide-cover .slide-inner {
  grid-template-columns: 1.05fr .95fr;
  gap: 7%;
}

.slide-cover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-logo {
  width: 180px;
  height: auto;
  margin-bottom: 36px;
}

.slide-label {
  color: var(--auto-deep-teal);
  font-size: clamp(10px, 1vw, 15px);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.meeting-slide h2 {
  margin: 12px 0 14px;
  font-family: "Figtree", "Inter", sans-serif;
  font-size: clamp(30px, 3.4vw, 54px);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.meeting-slide h3 {
  margin: 0;
  font-family: "Figtree", "Inter", sans-serif;
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.12;
}

.slide-lead {
  max-width: 620px;
  margin: 0;
  color: var(--auto-base-700);
  font-size: clamp(15px, 1.35vw, 21px);
  line-height: 1.48;
}

.slide-cover-signal {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10%;
  background: var(--auto-navy);
  color: #fff;
}

.slide-cover-signal strong {
  font-family: "Figtree", "Inter", sans-serif;
  font-size: clamp(22px, 2.2vw, 36px);
  line-height: 1.2;
}

.slide-cover-signal span {
  margin-top: 18px;
  color: var(--auto-cyan);
  font-size: clamp(12px, 1.1vw, 17px);
}

.slide-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.slide-topline img {
  width: 110px;
}

.slide-kpi-row {
  display: grid;
  align-items: end;
  margin-top: 7%;
  padding: 4.5% 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  grid-template-columns: repeat(3, 1fr);
}

.slide-kpi {
  display: grid;
  gap: 8px;
  padding: 0 8%;
}

.slide-kpi + .slide-kpi {
  border-left: 1px solid rgba(255, 255, 255, .22);
}

.slide-kpi span {
  color: rgba(255, 255, 255, .72);
  font-size: clamp(10px, .9vw, 14px);
  text-transform: uppercase;
}

.slide-kpi strong {
  font-family: "Figtree", "Inter", sans-serif;
  font-size: clamp(30px, 3.2vw, 50px);
}

.slide-kpi small {
  color: var(--auto-cyan);
  font-size: clamp(10px, .85vw, 13px);
}

.slide-executive {
  background: var(--auto-navy);
  color: #fff;
}

.slide-executive h2,
.slide-executive h3 {
  color: #fff;
}

.slide-executive .slide-lead {
  color: rgba(255, 255, 255, .82);
}

.slide-chart-layout {
  display: grid;
  min-height: 0;
  margin-top: 4%;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, .5fr);
  gap: 5%;
}

.slide-chart-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
}

.slide-interpretation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.slide-interpretation strong {
  color: var(--auto-base-900);
  font-family: "Figtree", "Inter", sans-serif;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.2;
}

.slide-interpretation p {
  margin: 0;
  color: var(--auto-base-600);
  font-size: clamp(13px, 1.15vw, 18px);
  line-height: 1.45;
}

.slide-data-table {
  width: 100%;
  margin-top: 5%;
  border-collapse: collapse;
}

.slide-data-table th {
  padding: 14px 18px;
  background: var(--auto-navy);
  color: #fff;
  font-size: clamp(10px, .9vw, 14px);
  text-align: left;
}

.slide-data-table th:first-child {
  border-radius: 7px 0 0 7px;
}

.slide-data-table th:last-child {
  border-radius: 0 7px 7px 0;
  text-align: right;
}

.slide-data-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--auto-base-200);
  color: var(--auto-base-600);
  font-size: clamp(11px, 1vw, 15px);
}

.slide-data-table td:first-child {
  color: var(--auto-base-900);
  font-weight: 650;
}

.slide-data-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.slide-action-list {
  display: grid;
  margin-top: 5%;
}

.slide-action-item {
  display: grid;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--auto-base-200);
  grid-template-columns: 44px minmax(0, 1fr) 150px;
  gap: 18px;
}

.slide-action-index {
  color: var(--auto-primary);
  font-size: clamp(16px, 1.5vw, 24px);
  font-weight: 700;
}

.slide-action-item strong {
  color: var(--auto-base-900);
  font-size: clamp(13px, 1.25vw, 19px);
}

.slide-action-item p {
  margin: 4px 0 0;
  color: var(--auto-base-600);
  font-size: clamp(11px, 1vw, 15px);
}

.slide-action-meta {
  color: var(--auto-base-600);
  font-size: clamp(10px, .9vw, 14px);
  text-align: right;
}

.slide-source-grid {
  display: grid;
  margin-top: 5%;
  grid-template-columns: 1fr 1fr;
  gap: 4%;
}

.slide-source-block {
  padding: 4%;
  border-top: 3px solid var(--auto-cyan);
  background: var(--auto-base-50);
}

.slide-source-block h4 {
  margin: 0 0 12px;
  font-size: clamp(14px, 1.2vw, 19px);
}

.slide-source-block p,
.slide-source-block li {
  color: var(--auto-base-600);
  font-size: clamp(11px, 1vw, 15px);
  line-height: 1.45;
}

.slide-footer {
  position: absolute;
  right: 7.2%;
  bottom: 3.2%;
  left: 7.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--auto-base-500);
  font-size: clamp(8px, .75vw, 11px);
}

.slide-footer img {
  width: 82px;
}

.slide-executive .slide-footer {
  color: rgba(255, 255, 255, .6);
}

.meeting-footer {
  border-top: 1px solid var(--auto-base-200);
}

.meeting-footer > span {
  color: var(--auto-base-600);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
  :root {
    --portal-sidebar: 82px;
  }

  .portal-nav-item {
    justify-content: center;
    padding: 0;
  }

  .portal-nav-item > span:last-child,
  .audience-control {
    display: none;
  }

  .portal-main {
    padding-right: 24px;
    padding-left: 24px;
  }

  .portal-primary-grid,
  body:not(.partner-report-mode) #partner-layout {
    grid-template-columns: 1fr;
  }

  .portal-primary-grid > .card + .card {
    border-top: 1px solid var(--auto-base-200);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .auth-shell {
    padding: 16px;
  }

  .auth-card {
    padding: 22px 18px;
  }

  .auth-brand {
    margin-bottom: 22px;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  :root {
    --portal-sidebar: 0px;
  }

  .portal-topbar {
    padding: 0 14px;
  }

  .portal-brand {
    gap: 0;
  }

  .portal-brand img {
    width: 124px;
  }

  .portal-brand span,
  .portal-topbar .session-copy-block,
  .portal-topbar .session-badge,
  .portal-sidebar {
    display: none;
  }

  .portal-frame {
    display: block;
  }

  .portal-main {
    padding: 22px 14px 48px;
  }

  .portal-page-head,
  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-page-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .portal-filters,
  body.partner-report-mode .portal-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .control-field.compact,
  .period-details summary {
    width: 100%;
  }

  .period-popover {
    width: min(360px, calc(100vw - 28px));
  }

  .portal-filters .controls-status {
    width: 100%;
    margin-left: 0;
  }

  body:not(.partner-report-mode) #kpi-grid,
  body:not(.partner-report-mode) #mix-layout {
    grid-template-columns: 1fr;
  }

  body:not(.partner-report-mode) .portal-kpi + .portal-kpi {
    border-top: 1px solid var(--auto-base-200);
    border-left: 0;
  }

  .action-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .action-row-meta {
    grid-column: 2;
    text-align: left;
  }

  .meeting-toolbar .auto-button span + span,
  .meeting-toolbar .auto-button {
    font-size: 0;
  }
}

@media print {
  @page {
    size: 13.333in 7.5in;
    margin: 0;
  }

  body.meeting-print {
    background: #fff !important;
  }

  body.meeting-print #app-shell,
  body.meeting-print .meeting-toolbar,
  body.meeting-print .meeting-footer,
  body.meeting-print .portal-toast {
    display: none !important;
  }

  body.meeting-print #meeting-overlay {
    position: static !important;
    display: block !important;
    background: #fff !important;
  }

  body.meeting-print .meeting-stage {
    display: block !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.meeting-print .meeting-slide,
  body.meeting-print .meeting-slide.is-active {
    display: grid !important;
    width: 13.333in !important;
    height: 7.5in !important;
    aspect-ratio: auto !important;
    border: 0 !important;
    box-shadow: none !important;
    break-after: page;
    page-break-after: always;
  }

  body.meeting-print .meeting-slide:last-child {
    break-after: auto;
    page-break-after: auto;
  }
}
